content
stringlengths
6
1.03M
input_ids
sequencelengths
4
535k
ratio_char_token
float64
0.68
8.61
token_count
int64
4
535k
<reponame>m3g/XLStats.jl using XLStats data_dir="./data" xml_data="$data_dir/hitsDetail.xls" #xml_data="$data_dir/salbiii_hitsDetail.dat" links = read_all(xml_file=xml_data, topolink_log="$data_dir/salbiii_topolink.log", topolink_input="$data_dir/topolink.inp", xic_file_name="$data_dir/salbiii_xic.dat", domain=2:134)
[ 27, 7856, 261, 480, 29, 76, 18, 70, 14, 32457, 29668, 13, 20362, 198, 198, 3500, 16276, 29668, 628, 198, 7890, 62, 15908, 28, 1911, 14, 7890, 1, 198, 19875, 62, 7890, 2625, 3, 7890, 62, 15908, 14, 71, 896, 11242, 603, 13, 87, 7278, 1, 198, 2, 19875, 62, 7890, 2625, 3, 7890, 62, 15908, 14, 21680, 65, 15479, 62, 71, 896, 11242, 603, 13, 19608, 1, 198, 28751, 796, 1100, 62, 439, 7, 19875, 62, 7753, 28, 19875, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1353, 349, 676, 62, 6404, 2625, 3, 7890, 62, 15908, 14, 21680, 65, 15479, 62, 4852, 349, 676, 13, 6404, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1353, 349, 676, 62, 15414, 2625, 3, 7890, 62, 15908, 14, 4852, 349, 676, 13, 259, 79, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 291, 62, 7753, 62, 3672, 2625, 3, 7890, 62, 15908, 14, 21680, 65, 15479, 62, 87, 291, 13, 19608, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7386, 28, 17, 25, 19880, 8, 628, 220, 628, 628, 198 ]
1.788288
222
""" Exo2SplitBinion{T <: Real} = Parabolic{Exo1SplitBinion{T}} A 2-exo-split-binion is a parabolic Cayley-Dickson construct with 1-exo-split-binions. """ const Exo2SplitBinion{T <: Real} = Parabolic{Exo1SplitBinion{T}} function Exo2SplitBinion(z::Exo1SplitBinion{T}) where T <: Real Exo2SplitBinion{T}(z, zero(Exo1SplitBinion{T})) end function Exo2SplitBinion(z::SplitBinion{T}) where T <: Real Exo2SplitBinion{T}( Exo1SplitBinion{T}(z, zero(SplitBinion{T})), zero(Exo1SplitBinion{T}) ) end function Exo2SplitBinion(a::T, b::T, c::T, d::T, f::T, g::T, h::T, j::T) where T <: Real Exo2SplitBinion{T}( Exo1SplitBinion{T}( SplitBinion{T}(a, b), SplitBinion{T}(c, d) ), Exo1SplitBinion{T}( SplitBinion{T}(f, g), SplitBinion{T}(h, j) ) ) end function Exo2SplitBinion(a::T, b::T, c::T, d::T, f::T, g::T, h::T) where T <: Real Exo2SplitBinion{T}( Exo1SplitBinion{T}( SplitBinion{T}(a, b), SplitBinion{T}(c, d) ), Exo1SplitBinion{T}( SplitBinion{T}(f, g), SplitBinion{T}(h, zero(T)) ) ) end function Exo2SplitBinion(a::T, b::T, c::T, d::T, f::T, g::T) where T <: Real Exo2SplitBinion{T}( Exo1SplitBinion{T}( SplitBinion{T}(a, b), SplitBinion{T}(c, d) ), Exo1SplitBinion{T}( SplitBinion{T}(f, g), zero(SplitBinion{T}) ) ) end function Exo2SplitBinion(a::T, b::T, c::T, d::T, f::T) where T <: Real Exo2SplitBinion{T}( Exo1SplitBinion{T}( SplitBinion{T}(a, b), SplitBinion{T}(c, d) ), Exo1SplitBinion{T}( SplitBinion{T}(f, zero(T)), zero(SplitBinion{T}) ) ) end function Exo2SplitBinion(a::T, b::T, c::T, d::T) where T <: Real Exo2SplitBinion{T}( Exo1SplitBinion{T}( SplitBinion{T}(a, b), SplitBinion{T}(c, d) ), zero(Exo1SplitBinion{T}) ) end function Exo2SplitBinion(a::T, b::T, c::T) where T <: Real Exo2SplitBinion{T}( Exo1SplitBinion{T}( SplitBinion{T}(a, b), SplitBinion{T}(c, zero(T)) ), zero(Exo1SplitBinion{T}) ) end function Exo2SplitBinion(a::T, b::T) where T <: Real Exo2SplitBinion{T}( Exo1SplitBinion{T}( SplitBinion{T}(a, b), zero(SplitBinion{T}) ), zero(Exo1SplitBinion{T}) ) end function Exo2SplitBinion(a::T) where T <: Real Exo2SplitBinion{T}( Exo1SplitBinion{T}( SplitBinion{T}(a, zero(T)), zero(SplitBinion{T}) ), zero(Exo1SplitBinion{T}) ) end function Exo2SplitBinion(a::Real, b::Real) Exo2SplitBinion(promote(a, b)...) end function Exo2SplitBinion(a::Real, b::Real, c::Real) Exo2SplitBinion(promote(a, b, c)...) end function Exo2SplitBinion(a::Real, b::Real, c::Real, d::Real) Exo2SplitBinion(promote(a, b, c, d)...) end function Exo2SplitBinion(a::Real, b::Real, c::Real, d::Real, f::Real) Exo2SplitBinion(promote(a, b, c, d, f)...) end function Exo2SplitBinion(a::Real, b::Real, c::Real, d::Real, f::Real, g::Real) Exo2SplitBinion(promote(a, b, c, d, f, g)...) end function Exo2SplitBinion(a::Real, b::Real, c::Real, d::Real, f::Real, g::Real, h::Real) Exo2SplitBinion(promote(a, b, c, d, f, g, h)...) end function Exo2SplitBinion(a::Real, b::Real, c::Real, d::Real, f::Real, g::Real, h::Real, j::Real) Exo2SplitBinion(promote(a, b, c, d, f, g, h, j)...) end function Exo2SplitBinion(z::Exo2Real{T}) where T <: Real Exo2SplitBinion(z.l.l, zero(T), z.l.r, zero(T), z.r.l, zero(T), z.r.r) end """ unreal(z::Exo2SplitBinion) The unreal part of a 2-exo-split-binion is a 7-vector. """ function unreal(z::Exo2SplitBinion) vcat(unreal(z.l), array(z.r)) end function show(io::IO, z::Exo2SplitBinion) print(io, "[1: ") print(io, z.l.l.l) print(io, ", s: ") print(io, z.l.l.r) print(io, ", a: ") print(io, z.l.r.l) print(io, ", sa: ") print(io, z.l.r.r) print(io, ", b: ") print(io, z.r.l.l) print(io, ", sb: ") print(io, z.r.l.r) print(io, ", ab: ") print(io, z.r.r.l) print(io, ", (sa)b: ") print(io, z.r.r.r) print(io, "]") end function random(::Type{Exo2SplitBinion{T}}) where T <: Real Exo2SplitBinion{T}(random(Exo1SplitBinion{T}), random(Exo1SplitBinion{T})) end
[ 37811, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 1279, 25, 6416, 92, 796, 2547, 29304, 90, 3109, 78, 16, 41205, 33, 23971, 90, 51, 11709, 198, 198, 32, 362, 12, 1069, 78, 12, 35312, 12, 8800, 295, 318, 257, 1582, 29304, 28335, 1636, 12, 35, 46381, 5678, 351, 352, 12, 1069, 78, 12, 35312, 12, 8800, 507, 13, 198, 37811, 198, 9979, 1475, 78, 17, 41205, 33, 23971, 90, 51, 1279, 25, 6416, 92, 796, 2547, 29304, 90, 3109, 78, 16, 41205, 33, 23971, 90, 51, 11709, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 89, 3712, 3109, 78, 16, 41205, 33, 23971, 90, 51, 30072, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 89, 11, 6632, 7, 3109, 78, 16, 41205, 33, 23971, 90, 51, 92, 4008, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 89, 3712, 41205, 33, 23971, 90, 51, 30072, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 89, 11, 6632, 7, 41205, 33, 23971, 90, 51, 30072, 828, 198, 220, 220, 220, 220, 220, 220, 220, 6632, 7, 3109, 78, 16, 41205, 33, 23971, 90, 51, 30072, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 51, 11, 275, 3712, 51, 11, 269, 3712, 51, 11, 288, 3712, 51, 11, 277, 3712, 51, 11, 308, 3712, 51, 11, 289, 3712, 51, 11, 474, 3712, 51, 8, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 64, 11, 275, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 66, 11, 288, 8, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 69, 11, 308, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 71, 11, 474, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 51, 11, 275, 3712, 51, 11, 269, 3712, 51, 11, 288, 3712, 51, 11, 277, 3712, 51, 11, 308, 3712, 51, 11, 289, 3712, 51, 8, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 64, 11, 275, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 66, 11, 288, 8, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 69, 11, 308, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 71, 11, 6632, 7, 51, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 51, 11, 275, 3712, 51, 11, 269, 3712, 51, 11, 288, 3712, 51, 11, 277, 3712, 51, 11, 308, 3712, 51, 8, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 64, 11, 275, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 66, 11, 288, 8, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 69, 11, 308, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6632, 7, 41205, 33, 23971, 90, 51, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 51, 11, 275, 3712, 51, 11, 269, 3712, 51, 11, 288, 3712, 51, 11, 277, 3712, 51, 8, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 64, 11, 275, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 66, 11, 288, 8, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 69, 11, 6632, 7, 51, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6632, 7, 41205, 33, 23971, 90, 51, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 51, 11, 275, 3712, 51, 11, 269, 3712, 51, 11, 288, 3712, 51, 8, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 64, 11, 275, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 66, 11, 288, 8, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 6632, 7, 3109, 78, 16, 41205, 33, 23971, 90, 51, 30072, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 51, 11, 275, 3712, 51, 11, 269, 3712, 51, 8, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 64, 11, 275, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 66, 11, 6632, 7, 51, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 6632, 7, 3109, 78, 16, 41205, 33, 23971, 90, 51, 30072, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 51, 11, 275, 3712, 51, 8, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 64, 11, 275, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6632, 7, 41205, 33, 23971, 90, 51, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 6632, 7, 3109, 78, 16, 41205, 33, 23971, 90, 51, 30072, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 51, 8, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1475, 78, 16, 41205, 33, 23971, 90, 51, 92, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27758, 33, 23971, 90, 51, 92, 7, 64, 11, 6632, 7, 51, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6632, 7, 41205, 33, 23971, 90, 51, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 6632, 7, 3109, 78, 16, 41205, 33, 23971, 90, 51, 30072, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 15633, 11, 275, 3712, 15633, 8, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 7, 16963, 1258, 7, 64, 11, 275, 8, 23029, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 15633, 11, 275, 3712, 15633, 11, 269, 3712, 15633, 8, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 7, 16963, 1258, 7, 64, 11, 275, 11, 269, 8, 23029, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 15633, 11, 275, 3712, 15633, 11, 269, 3712, 15633, 11, 288, 3712, 15633, 8, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 7, 16963, 1258, 7, 64, 11, 275, 11, 269, 11, 288, 8, 23029, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 15633, 11, 275, 3712, 15633, 11, 269, 3712, 15633, 11, 288, 3712, 15633, 11, 277, 3712, 15633, 8, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 7, 16963, 1258, 7, 64, 11, 275, 11, 269, 11, 288, 11, 277, 8, 23029, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 15633, 11, 275, 3712, 15633, 11, 269, 3712, 15633, 11, 288, 3712, 15633, 11, 277, 3712, 15633, 11, 308, 3712, 15633, 8, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 7, 16963, 1258, 7, 64, 11, 275, 11, 269, 11, 288, 11, 277, 11, 308, 8, 23029, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 15633, 11, 275, 3712, 15633, 11, 269, 3712, 15633, 11, 288, 3712, 15633, 11, 277, 3712, 15633, 11, 308, 3712, 15633, 11, 289, 3712, 15633, 8, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 7, 16963, 1258, 7, 64, 11, 275, 11, 269, 11, 288, 11, 277, 11, 308, 11, 289, 8, 23029, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 64, 3712, 15633, 11, 275, 3712, 15633, 11, 269, 3712, 15633, 11, 288, 3712, 15633, 11, 277, 3712, 15633, 11, 308, 3712, 15633, 11, 289, 3712, 15633, 11, 474, 3712, 15633, 8, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 7, 16963, 1258, 7, 64, 11, 275, 11, 269, 11, 288, 11, 277, 11, 308, 11, 289, 11, 474, 8, 23029, 198, 437, 198, 198, 8818, 1475, 78, 17, 41205, 33, 23971, 7, 89, 3712, 3109, 78, 17, 15633, 90, 51, 30072, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 7, 89, 13, 75, 13, 75, 11, 6632, 7, 51, 828, 1976, 13, 75, 13, 81, 11, 6632, 7, 51, 828, 1976, 13, 81, 13, 75, 11, 6632, 7, 51, 828, 1976, 13, 81, 13, 81, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 22865, 7, 89, 3712, 3109, 78, 17, 41205, 33, 23971, 8, 198, 198, 464, 22865, 636, 286, 257, 362, 12, 1069, 78, 12, 35312, 12, 8800, 295, 318, 257, 767, 12, 31364, 13, 198, 37811, 198, 8818, 22865, 7, 89, 3712, 3109, 78, 17, 41205, 33, 23971, 8, 198, 220, 220, 220, 410, 9246, 7, 403, 5305, 7, 89, 13, 75, 828, 7177, 7, 89, 13, 81, 4008, 198, 437, 198, 198, 8818, 905, 7, 952, 3712, 9399, 11, 1976, 3712, 3109, 78, 17, 41205, 33, 23971, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 12878, 16, 25, 366, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 1976, 13, 75, 13, 75, 13, 75, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 33172, 264, 25, 366, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 1976, 13, 75, 13, 75, 13, 81, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 33172, 257, 25, 366, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 1976, 13, 75, 13, 81, 13, 75, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 33172, 473, 25, 366, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 1976, 13, 75, 13, 81, 13, 81, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 33172, 275, 25, 366, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 1976, 13, 81, 13, 75, 13, 75, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 33172, 264, 65, 25, 366, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 1976, 13, 81, 13, 75, 13, 81, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 33172, 450, 25, 366, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 1976, 13, 81, 13, 81, 13, 75, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 33172, 357, 11400, 8, 65, 25, 366, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 1976, 13, 81, 13, 81, 13, 81, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 366, 60, 4943, 198, 437, 198, 198, 8818, 4738, 7, 3712, 6030, 90, 3109, 78, 17, 41205, 33, 23971, 90, 51, 11709, 8, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1475, 78, 17, 41205, 33, 23971, 90, 51, 92, 7, 25120, 7, 3109, 78, 16, 41205, 33, 23971, 90, 51, 92, 828, 4738, 7, 3109, 78, 16, 41205, 33, 23971, 90, 51, 92, 4008, 198, 437, 198 ]
1.8076
2,500
function labeldims(n) if n == 1 ("\$t\$", "\$x\$") elseif n == 2 ("\$x\$", "\$y\$") else ("\$x\$", "\$y\$", "\$z\$") end end function stationarycharacteristics(P::Process; n = length(getX0(P)), labels=labeldims(n), xlabel=labels[1], ylabel=labels[2], zlabel=(length(labels) == 3 ? labels[3] : nothing), size=(400, 350)) p1 = marginaltrajectory(P; xlabel, ylabel, zlabel, size, mainalpha=0.35) display(p1) AMI = selfmutualinfo(P) p2 = plot(AMI.dims[1].val, Array((AMI isa AbstractVector ? AMI : AMI[:, end:-1:1])); legend=true, foreground_color_legend = nothing, background_color_legend = nothing, legendtitle=nothing, size, #xticks=[0, optimize_ticks(extrema(dims(AMI, 1).val)...; k_min = 3, k_max = 5)[1]...], yticks=optimize_ticks(extrema(AMI)...; k_min = 3, k_max = 6)[1], xlim=(0, Inf), xlabel="\$\\tau\$", ylabel="AMI") display(p2) return nothing end export stationarycharacteristics function plotlyapunovresponse(P::Process, p, prange; size=(400, 350), N=1000, k=length(getX0(P)), kwargs...) Ξ»s = lyapunovresponse(P, p, prange, N, k) plot(prange, Ξ»s; size, xlabel="\$\\theta\$", ylabel="\$\\lambda\$", kwargs...) end export plotlyapunovresponse
[ 8818, 2248, 68, 335, 12078, 7, 77, 8, 198, 220, 220, 220, 611, 299, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 5855, 59, 3, 83, 59, 3, 1600, 37082, 3, 87, 59, 3, 4943, 198, 220, 220, 220, 2073, 361, 299, 6624, 362, 198, 220, 220, 220, 220, 220, 220, 220, 5855, 59, 3, 87, 59, 3, 1600, 37082, 3, 88, 59, 3, 4943, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 5855, 59, 3, 87, 59, 3, 1600, 37082, 3, 88, 59, 3, 1600, 37082, 3, 89, 59, 3, 4943, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 31607, 22769, 3969, 7, 47, 3712, 18709, 26, 299, 796, 4129, 7, 1136, 55, 15, 7, 47, 36911, 14722, 28, 75, 11231, 335, 12078, 7, 77, 828, 2124, 18242, 28, 23912, 1424, 58, 16, 4357, 331, 18242, 28, 23912, 1424, 58, 17, 4357, 1976, 18242, 16193, 13664, 7, 23912, 1424, 8, 6624, 513, 5633, 14722, 58, 18, 60, 1058, 2147, 828, 2546, 16193, 7029, 11, 13803, 4008, 198, 220, 220, 220, 279, 16, 796, 14461, 9535, 752, 652, 7, 47, 26, 2124, 18242, 11, 331, 18242, 11, 1976, 18242, 11, 2546, 11, 1388, 26591, 28, 15, 13, 2327, 8, 198, 220, 220, 220, 3359, 7, 79, 16, 8, 198, 220, 220, 220, 3001, 40, 796, 2116, 21973, 723, 10951, 7, 47, 8, 198, 220, 220, 220, 279, 17, 796, 7110, 7, 43870, 13, 67, 12078, 58, 16, 4083, 2100, 11, 15690, 19510, 43870, 318, 64, 27741, 38469, 5633, 3001, 40, 1058, 3001, 40, 58, 45299, 886, 21912, 16, 25, 16, 12962, 1776, 220, 8177, 28, 7942, 11, 220, 220, 36282, 62, 8043, 62, 1455, 437, 796, 2147, 11, 198, 220, 220, 220, 4469, 62, 8043, 62, 1455, 437, 796, 2147, 11, 8177, 7839, 28, 22366, 11, 2546, 11, 198, 220, 220, 220, 1303, 742, 3378, 41888, 15, 11, 27183, 62, 83, 3378, 7, 2302, 260, 2611, 7, 67, 12078, 7, 43870, 11, 352, 737, 2100, 26513, 26, 479, 62, 1084, 796, 513, 11, 479, 62, 9806, 796, 642, 38381, 16, 60, 986, 4357, 198, 220, 220, 220, 331, 83, 3378, 28, 40085, 1096, 62, 83, 3378, 7, 2302, 260, 2611, 7, 43870, 26513, 26, 479, 62, 1084, 796, 513, 11, 479, 62, 9806, 796, 718, 38381, 16, 4357, 198, 220, 220, 220, 2124, 2475, 16193, 15, 11, 4806, 828, 2124, 18242, 2625, 59, 3, 6852, 83, 559, 59, 3, 1600, 331, 18242, 2625, 43870, 4943, 198, 220, 220, 220, 3359, 7, 79, 17, 8, 198, 220, 220, 220, 1441, 2147, 198, 437, 198, 39344, 31607, 22769, 3969, 198, 198, 8818, 7110, 306, 499, 403, 709, 26209, 7, 47, 3712, 18709, 11, 279, 11, 778, 858, 26, 2546, 16193, 7029, 11, 13803, 828, 399, 28, 12825, 11, 479, 28, 13664, 7, 1136, 55, 15, 7, 47, 36911, 479, 86, 22046, 23029, 198, 220, 220, 220, 7377, 119, 82, 796, 22404, 499, 403, 709, 26209, 7, 47, 11, 279, 11, 778, 858, 11, 399, 11, 479, 8, 198, 220, 220, 220, 7110, 7, 1050, 858, 11, 7377, 119, 82, 26, 2546, 11, 2124, 18242, 2625, 59, 3, 6852, 1169, 8326, 59, 3, 1600, 331, 18242, 2625, 59, 3, 6852, 50033, 59, 3, 1600, 479, 86, 22046, 23029, 198, 437, 198, 39344, 7110, 306, 499, 403, 709, 26209, 198 ]
2.241441
555
<filename>src/run.jl<gh_stars>0 module Run using FromFile: @from @from "./ArtefactModelling.jl" import ArtefactModelling # ArtefactModelling.geo_test() # ArtefactModelling.vis_test() # ArtefactModelling.csg_test() ArtefactModelling.prism_test() end # module
[ 27, 34345, 29, 10677, 14, 5143, 13, 20362, 27, 456, 62, 30783, 29, 15, 198, 198, 21412, 5660, 198, 3500, 3574, 8979, 25, 2488, 6738, 198, 198, 31, 6738, 366, 19571, 3163, 660, 22584, 5841, 9417, 13, 20362, 1, 1330, 943, 660, 22584, 5841, 9417, 198, 198, 2, 943, 660, 22584, 5841, 9417, 13, 469, 78, 62, 9288, 3419, 198, 2, 943, 660, 22584, 5841, 9417, 13, 4703, 62, 9288, 3419, 198, 2, 943, 660, 22584, 5841, 9417, 13, 6359, 70, 62, 9288, 3419, 198, 3163, 660, 22584, 5841, 9417, 13, 1050, 1042, 62, 9288, 3419, 198, 198, 437, 1303, 8265, 198 ]
2.568627
102
<reponame>Sacha0/FixedPointDecimals.jl using FixedPointDecimals using FixedPointDecimals: FD, value using Test using Printf using Base.Checked: checked_mul include("utils.jl") const SFD2 = FixedDecimal{Int16, 2} const SFD4 = FixedDecimal{Int16, 4} const FD1 = FixedDecimal{Int, 1} const FD2 = FixedDecimal{Int, 2} const FD3 = FixedDecimal{Int, 3} const FD4 = FixedDecimal{Int, 4} const WFD2 = FixedDecimal{Int128, 2} const WFD4 = FixedDecimal{Int128, 4} const CONTAINER_TYPES = Base.BitInteger_types # Integer concrete subtypes which are bits # these arrays should be kept sorted manually const keyvalues = Dict( FD2 => [typemin(FD2), # near minimum range FD2(-289.64), # randomly generated FD2(-1), FD2(-0.01), # near zero FD2(0), FD2(0.01), FD2(0.14), # fraction-like FD2(0.33), FD2(0.5), FD2(1), # one FD2(592.57), # randomly generated typemax(FD2)], # near maximum range WFD4 => [typemin(WFD4), reinterpret(WFD4, -157030247204331916472131926508185768261), reinterpret(WFD4, -64628160301714851880492570261792833470), reinterpret(WFD4, -11679287782747983139362515984380939763), WFD4(-1), WFD4(-0.0001), WFD4(0), WFD4(0.0001), WFD4(0.01), WFD4(1), reinterpret(WFD4, 164435910993133062409572187012743929911), typemax(WFD4)]) # Floating point values written as integer strings. Useful for testing behaviours of # trunc, floor, and ceil. const INTS = Dict( v => replace(@sprintf("%.200f", v), "." => "") for v in [ 1.22, 1.23, 1.51, 2.2, 2.3, ] ) const smaller_than_decimal = [1.22, 1.23, 2.3] const bigger_than_decimal = [1.51, 2.2] # numbers that may cause overflow islarge(x) = x == typemin(x) || abs(x) > 1000 # numbers that can never cause overflow issmall(x) = -1 < x ≀ 1 function parse_int(::Type{FD{T, f}}, val::AbstractString; ceil::Bool=false) where {T, f} reinterpret(FD{T, f}, parse(T, val[1:(f + 1)]) + T(ceil)) end @testset "FixedPointDecimals" begin # Basic tests for the methods created above @testset "alt" begin @test trunc_alt(FD2, 0.0) == FD2(0) @test floor_alt(FD2, 0.0) == FD2(0) @test ceil_alt(FD2, 0.0) == FD2(0) @test trunc_alt(FD2, 2.149) == FD2(2.14) @test floor_alt(FD2, 2.149) == FD2(2.14) @test ceil_alt(FD2, 2.149) == FD2(2.15) @test trunc_alt(FD2, -2.149) == FD2(-2.14) @test floor_alt(FD2, -2.149) == FD2(-2.15) @test ceil_alt(FD2, -2.149) == FD2(-2.14) @test trunc_alt(FD2, nextfloat(0.0)) == FD2(0) @test floor_alt(FD2, nextfloat(0.0)) == FD2(0) @test ceil_alt(FD2, nextfloat(0.0)) == FD2(0.01) @test trunc_alt(FD2, prevfloat(0.0)) == FD2(0) @test floor_alt(FD2, prevfloat(0.0)) == FD2(-0.01) @test ceil_alt(FD2, prevfloat(0.0)) == FD2(0) end @testset "max_exp10" begin @test FixedPointDecimals.max_exp10(Int8) == 2 @test FixedPointDecimals.max_exp10(Int64) == 18 @test FixedPointDecimals.max_exp10(Int128) == 38 @test FixedPointDecimals.max_exp10(UInt8) == 2 @test FixedPointDecimals.max_exp10(UInt64) == 19 @test FixedPointDecimals.max_exp10(UInt128) == 38 @test FixedPointDecimals.max_exp10(BigInt) == -1 for T in CONTAINER_TYPES x = FixedPointDecimals.max_exp10(T) @test T(10)^x == widen(T(10))^x end @testset "custom integer types" begin @eval begin primitive type Int24 <: Integer 24 end Base.typemax(::Type{Int24}) = 2^24 Base.widen(::Type{Int24}) = Int32 end @test FixedPointDecimals.max_exp10(Int24) == 7 # Note: we're just pretending that this is unbounded @eval primitive type IntUnbounded <: Integer 256 end @test_throws MethodError FixedPointDecimals.max_exp10(IntUnbounded) end end # ensure that the coefficient multiplied by the highest and lowest representable values of # the container type do not result in overflow. @testset "coefficient" begin @testset "overflow $T" for T in CONTAINER_TYPES f = FixedPointDecimals.max_exp10(T) powt = FixedPointDecimals.coefficient(FD{T, f}) @test powt % 10 == 0 @test checked_mul(widen(powt), typemax(T)) == widemul(powt, typemax(T)) @test checked_mul(widen(powt), typemin(T)) == widemul(powt, typemin(T)) end end @testset "constructor" begin @testset "invalid $T" for T in CONTAINER_TYPES f = FixedPointDecimals.max_exp10(T) + 1 @test_throws ArgumentError reinterpret(FD{T,f}, 0) @test_throws ArgumentError reinterpret(FD{T,-1}, 0) end end @testset "conversion" begin @testset for x in keyvalues[FD2] @testset for T in [Rational{Int128}, WFD2, WFD4] @test convert(FD2, convert(T, x)) == x @test T(x) == convert(T, x) end if 0 ≀ abs(x) < 2 @testset for T in [SFD2, SFD4, FD4] @test convert(FD2, convert(T, x)) == x end end end @testset "to float" begin # Convert the rational 5//7 into a FixedDecimal with as much precision as we can # without using BigInt. T = Int128 f = FixedPointDecimals.max_exp10(T) powt = FixedPointDecimals.coefficient(FD{T,f}) val = T(trunc(BigInt, widemul(5//7, powt))) fd = reinterpret(FD{T,f}, val) @test convert(Float64, fd) != convert(BigFloat, fd) @test convert(Float64, fd) == T(val) / T(powt) @test convert(BigFloat, fd) == BigInt(val) / BigInt(powt) end @testset "to rational" begin fd = reinterpret(FD2, 25) @test convert(Rational, fd) == 1//4 end @testset "invalid" begin @test_throws InexactError convert(FD2, FD4(0.0001)) @test_throws InexactError convert(FD4, typemax(FD2)) @test_throws InexactError convert(SFD2, typemax(FD2)) @test_throws InexactError convert(FD2, 1//3) @test_throws InexactError convert(FD{Int8,1}, 1//4) end @testset "limits of $T" for T in CONTAINER_TYPES max_exp = FixedPointDecimals.max_exp10(T) f = max_exp powt = widen(FixedPointDecimals.coefficient(FD{T,f})) # Smallest positive integer which is out-of-bounds for the FD x = max_exp - f + 1 oob = T(10)^(x > 0 ? x : 0) # ideally we would just use `typemax(T)` but due to precision issues with # floating-point its possible the closest float will exceed `typemax(T)`. # Note: we should be doing `trunc(T, ...)` but truncating a BigFloat can be # problematic (https://github.com/JuliaLang/julia/issues/21914) max_int = trunc(BigInt, prevfloat(typemax(T) / powt) * powt) min_int = trunc(BigInt, nextfloat(typemin(T) / powt) * powt) @test max_int <= typemax(T) @test value(convert(FD{T,f}, max_int / powt)) == max_int @test min_int >= typemin(T) @test value(convert(FD{T,f}, min_int / powt)) == min_int @test convert(FD{T,f}, typemax(T) // powt) == reinterpret(FD{T,f}, typemax(T)) @test convert(FD{T,f}, typemin(T) // powt) == reinterpret(FD{T,f}, typemin(T)) @test_throws InexactError convert(FD{T,f}, oob) # Converting to a floating-point fd = reinterpret(FD{T,f}, typemax(T)) @test convert(Float32, fd) == Float32(typemax(T) / powt) @test convert(Float64, fd) == Float64(typemax(T) / powt) @test convert(BigFloat, fd) == BigInt(typemax(T)) / powt fd = reinterpret(FD{T,f}, typemin(T)) @test convert(Float32, fd) == Float32(typemin(T) / powt) @test convert(Float64, fd) == Float64(typemin(T) / powt) @test convert(BigFloat, fd) == BigInt(typemin(T)) / powt # Converting to a rational fd = reinterpret(FD{T,f}, typemax(T)) @test convert(Rational, fd) == typemax(T) // powt fd = reinterpret(FD{T,f}, typemin(T)) @test convert(Rational, fd) == typemin(T) // powt # The following tests require that the number of decimal places allow for # `-10 < x < 10` where x is a FD{T,f}. Needed to test `convert(::FD, ::Integer)`. max_int = typemax(T) Γ· powt * powt min_int = typemin(T) Γ· powt * powt @test convert(FD{T,f}, max_int Γ· powt) == reinterpret(FD{T,f}, max_int) @test convert(FD{T,f}, min_int Γ· powt) == reinterpret(FD{T,f}, min_int) @test_throws InexactError convert(FD{T,f}, max_int Γ· powt + oob) @test_throws InexactError convert(FD{T,f}, min_int Γ· powt - oob) # Overflows with Unsigned end @testset "limits from $U to $T" for T in CONTAINER_TYPES, U in CONTAINER_TYPES f = FixedPointDecimals.max_exp10(T) g = FixedPointDecimals.max_exp10(U) powt = div( FixedPointDecimals.coefficient(FD{T, f}), FixedPointDecimals.coefficient(FD{U, g}), ) val = typemax(U) expected = widemul(typemax(U), powt) # Mixed usage of signed and unsigned types makes testing with typemin hard. if f >= g && expected <= typemax(T) @test convert(FD{T,f}, reinterpret(FD{U,g}, val)) == reinterpret(FD{T,f}, expected) else @test_throws InexactError convert(FD{T,f}, reinterpret(FD{U,g}, val)) end end end @testset "promotion" begin @test 1//10 + FD2(0.1) === 1//5 @test 0.1 + FD2(0.1) === 0.2 @test 1 + FD2(0.1) === FD2(1.1) @test FD2(0.1) + FD4(0.0001) === FD4(0.1001) @test WFD2(0.1) + FD4(0.0001) === WFD4(0.1001) end @testset "float" begin @test float(-one(SFD2)) === -1.0f0 @test float(zero(SFD2)) === 0.0f0 @test float(one(SFD2)) === 1.0f0 @test float(-one(FD2)) === -1.0 @test float(zero(FD2)) === 0.0 @test float(one(FD2)) === 1.0 end @testset "comparison" begin @testset for T in [FD2, WFD4] @testset for (i, x) in enumerate(keyvalues[T]) @test x == x @testset for y in keyvalues[T][i+1:end] @test x β‰  y @test x < y @test x ≀ y @test y β‰  x @test y > x @test y β‰₯ x end end end end @testset "traits" begin @testset "zero, one" begin @test FD2(0) == zero(FD2) @test FD2(42.42) + FD2(0) == FD2(42.42) @test FD2(1) == one(FD2) @test FD2(42.42) * FD2(1) == FD2(42.42) end @testset "eps, floatmin, floatmax" begin @test floatmin(FD2) == eps(FD2) == FD2(0.01) @test eps(FD2(1.11)) == FD2(0.01) for x in keyvalues[FD2] if x β‰  typemax(FD2) @test x + eps(x) > x end if x β‰  typemin(FD2) @test x - eps(x) < x if x β‰  0 @test floatmin(FD2) ≀ abs(x) ≀ floatmax(FD2) end end end end end @testset "addition" begin @test FD2(0) + FD2(0) == FD2(0) @test FD2(1.11) + FD2(2.22) == FD2(3.33) @test FD2(0.01) + FD2(0.01) == FD2(0.02) @test FD2(0.01) + FD2(-0.01) == FD2(0) # overflow @test typemax(FD2) + eps(FD2) == typemin(FD2) end @testset "subtraction" begin for x in keyvalues[FD2] @test x - x == 0 for y in keyvalues[FD2] @test x + y - y == x @test y + x - y == x end end end @testset "multiply" begin @testset "with integer, $T" for T in [FD2, WFD4] for x in keyvalues[T] @test 1 * x == x * 1 == x @test one(x) * x == x * one(x) == x @test (-1) * x == x * (-1) == -x @test 2 * x == x + x == (one(x) + one(x)) * x end end @testset "binary" begin @test FD2(0.33) * FD2(1.00) == FD2(0.33) @test FD2(0.33) * FD2(3.00) == FD2(0.99) @test FD2(0.33) * FD2(0.50) == FD2(0.16) @test FD2(0.33) * FD2(0.33) == FD2(0.11) @test FD2(0.67) * FD2(0.67) == FD2(0.45) end @testset "key values $T" for T in [FD2, WFD4] totest = [(x, y) for x in keyvalues[T] for y in keyvalues[T] if issmall(x) || issmall(y) || (!islarge(x) && !islarge(y))] @testset for (x, y) in totest # test the multiplication result is correctly rounded @test x * y == round(typeof(x), Base.widemul(x, y)) end @test prod(keyvalues[T]) == 0 end @testset "without promotion" begin @test_throws InexactError FD{Int8,1}(20) @test 20 * FD{Int8,1}(0.1) == FD{Int8,1}(2.0) @test FD{Int8,1}(0.1) * 20 == FD{Int8,1}(2.0) end @testset "limits of $T" for T in CONTAINER_TYPES f = FixedPointDecimals.max_exp10(T) scalar = convert(FD{T,f}, 1 // 10) # 0.1 # Since multiply will round the result we'll make sure our value does not # always rounds down. max_int = typemax(T) - (typemax(T) % 10) min_int = typemin(T) - (typemin(T) % 10) @test reinterpret(FD{T,f}, max_int) * scalar == reinterpret(FD{T,f}, div(max_int, 10)) @test reinterpret(FD{T,f}, min_int) * scalar == reinterpret(FD{T,f}, div(min_int, 10)) end end @testset "division" begin @testset "division by 1" begin @testset for x in keyvalues[FD2] @test x / one(x) == x # signed integers using two's complement have one additional negative value if x < 0 && x == typemin(x) @test_throws InexactError x / -one(x) else @test x / -one(x) == -x end end end @testset "division by 2" begin # even targets for x in FD2[-0.02, 0, 0.02, 1.00] for y in [2x-eps(x), 2x, 2x+eps(x)] @test y / 2 == y / 2one(y) == x == y * FD2(0.5) end end # odd targets for x in FD2[-0.01, 0.01, 1.01] y = 2x @test y / 2 == y / 2one(x) == x == y * FD2(0.5) end # big numbers for T in [SFD2, SFD4, FD2, FD4, WFD2, WFD4] @test typemin(T) / 2 * 2 == typemin(T) @test (typemax(T) / 2 - eps(T)) * 2 == typemax(T) - eps(T) end end @testset "division by 3" begin @test FD2(10) / 3 == FD2(3.33) @test FD2(20) / 3 == FD2(6.67) @test FD2(-1.50) / 3 == FD2(-0.50) @test FD2(-20) / 3 == FD2(-6.67) # should work with big numbers @test typemin(FD2) / 3 < 0 @test typemax(FD2) / 3 > 0 end @testset "reciprocal $x" for x in filter(!iszero, keyvalues[FD2]) # convert each keyvalue to rational to take an exact reciprocal # and check that it rounds to the in-type reciprocal. r = 1/Rational{BigInt}(x) @test round(FD2, r) == 1/x end @testset "divide $x by 0" for x in keyvalues[FD2] @test_throws DivideError x/FD2(0) end @testset "rounding" begin # RoundNearest: 1.27 / 2 == 0.635 rounds up to 0.64 @test FD2(1.27) / FD2(2) == FD2(0.64) @test FD2(-1.27) / FD2(2) == FD2(-0.64) @test FD2(1.27) / 2 == FD2(0.64) @test FD2(-1.27) / 2 == FD2(-0.64) @test 127 / FD2(200) == FD2(0.64) @test -127 / FD2(200) == FD2(-0.64) # RoundNearest: 1.29 / 2 == 0.645 rounds down to 0.64 @test FD2(1.29) / FD2(2) == FD2(0.64) @test FD2(-1.29) / FD2(2) == FD2(-0.64) @test FD2(1.29) / 2 == FD2(0.64) @test FD2(-1.29) / 2 == FD2(-0.64) @test 129 / FD2(200) == FD2(0.64) @test -129 / FD2(200) == FD2(-0.64) # Use of Float or BigFloat internally should not change the calculated result @test round(Int, 109 / 200 * 100) == 55 @test round(Int, BigInt(109) / 200 * 100) == 54 # Correct x = FD2(1.09) y = FD2(200) for T in [FD2, Int8, Int128, BigInt] @test x / T(2) == FD2(0.54) @test T(109) / y == FD2(0.54) end end @testset "without promotion" begin @test_throws InexactError FD{Int8,1}(20) @test Int8(20) / FD{Int8,1}(2) == FD{Int8,1}(10.0) @test FD{Int8,1}(2) / Int8(20) == FD{Int8,1}(0.1) end @testset "limits" begin @test_throws InexactError Int8(1) / FD{Int8,2}(0.4) @test_throws InexactError FD{Int8,2}(1) / FD{Int8,2}(0.4) end @testset "limits of $T" for T in CONTAINER_TYPES max_exp = FixedPointDecimals.max_exp10(T) f = max_exp scalar = convert(FD{T,f}, 1 // 10) # 0.1 # Should be outside of the bounds of a FD{T,f} x = T(10) @test_throws InexactError FD{T,f}(x) # Since multiply will round the result we'll make sure our value always # rounds down. max_int = typemax(T) - (typemax(T) % 10) min_int = typemin(T) - (typemin(T) % 10) max_fd = reinterpret(FD{T,f}, max_int) min_fd = reinterpret(FD{T,f}, min_int) @test (max_fd * scalar) / scalar == max_fd @test (min_fd * scalar) / scalar == min_fd @test max_fd / x == reinterpret(FD{T,f}, div(max_int, x)) @test min_fd / x == reinterpret(FD{T,f}, div(min_int, x)) end end @testset "truncating div" begin @testset "div by 1" begin @testset for x in keyvalues[FD2] @test x Γ· one(x) === trunc(x) # signed integers using two's complement have one additional negative value if x < 0 && trunc(x) === typemin(x) @test_throws InexactError x Γ· -one(x) else @test x Γ· -one(x) === -trunc(x) end end end @testset "div by 2" begin @testset for x in keyvalues[FD2] @test x Γ· 2one(x) === x Γ· 2 === FD2(x.i Γ· FD2(2).i) end end @testset "return types" begin @test div(2one(FD2), 3) isa FD2 @test one(FD2) Γ· one(FD2) isa FD2 # Promotion to bigger type @test one(FD4) Γ· one(FD2) isa FD4 @test one(FD2) Γ· one(FD4) isa FD4 @test one(FD{Int32, 2}) Γ· one(FD{Int64, 6}) isa FD{Int64, 6} end @testset "div with rounding modes" begin if VERSION >= v"1.4.0-" @testset for x in keyvalues[FD2] # TODO: Test RoundFromZero -- https://github.com/JuliaLang/julia/issues/34519 for R in (RoundToZero, RoundUp, RoundDown, RoundNearest, RoundNearestTiesAway) @test div(x, 2one(x), R) === div(x, 2, R) === FD2(div(x.i, FD2(2).i, R)) end end end @testset for x in keyvalues[FD2], f in (fld, cld, fld1, div) @test f(x, 2one(x)) === f(x, 2) === FD2(f(x.i, FD2(2).i)) end end end @testset "abs, sign" begin @testset for T in [FD2, WFD4] for x in keyvalues[T] @test sign(x)^2 ∈ [0, 1] @test abs(abs(x)) == abs(x) @test abs(x) * sign(x) == x @test abs(x) == abs(-x) if x β‰  typemin(x) @test abs(x) β‰₯ 0 @test sign(x) == -sign(-x) end @test (abs(x) == 0) === (x == 0) end end end @testset "isinteger" begin # Note: Test cannot be used unless we can construct `FD{Int8,6}` # @testset "overflow" begin # # Note: After overflow `Int8(10)^6 == 64` # @test !isinteger(reinterpret(FD{Int8,6}, 64)) # 0.000064 # end @testset "limits of $T" for T in CONTAINER_TYPES f = FixedPointDecimals.max_exp10(T) max_fd = typemax(FD{T,f}) min_fd = typemin(FD{T,f}) @test !isinteger(max_fd) @test isinteger(trunc(max_fd)) @test isinteger(min_fd) == (min_fd == zero(min_fd)) @test isinteger(trunc(min_fd)) end end @testset "round" begin @testset "to Int" begin @test round(Int, FD2(-0.51)) === -1 @test round(Int, FD2(-0.50)) === 0 @test round(Int, FD2(-0.49)) === 0 @test round(Int, FD2(0.50)) === 0 @test round(Int, FD2(0.51)) === 1 @test round(Int, FD2(1.50)) === 2 end @testset "rounding invariant $x" for x in filter(!islarge, keyvalues[FD2]) @test isinteger(round(x)) @test x - FD2(1//2) ≀ round(x) ≀ x + FD2(1//2) if x - FD2(1//2) == round(x) || x + FD2(1//2) == round(x) @test iseven(convert(Int, 100round(x))) end @testset "to Int" for T in [Int64, Int32] @test round(T, x) == round(x) end # to FD1 @test x - FD2(1//20) ≀ round(FD1, x) ≀ x + FD2(1//20) # to FD2 @test x == round(FD2, x) end @testset "limits of $T" for T in CONTAINER_TYPES f = FixedPointDecimals.max_exp10(T) powt = FixedPointDecimals.coefficient(FD{T,f}) # Ideally we would just use `typemax(T)` but due to precision issues with # floating-point its possible the closest float will exceed `typemax(T)`. # Additionally, when the division results in a `BigFloat` we need to first truncate # to a `BigInt` before we can truncate the type we want. max_int = T(trunc(BigInt, prevfloat(typemax(T) / powt) * powt)) min_int = T(trunc(BigInt, nextfloat(typemin(T) / powt) * powt)) @test round(FD{T,f}, max_int / powt) == reinterpret(FD{T,f}, max_int) @test round(FD{T,f}, min_int / powt) == reinterpret(FD{T,f}, min_int) @test round(FD{T,f}, typemax(T) // powt) == reinterpret(FD{T,f}, typemax(T)) @test round(FD{T,f}, typemin(T) // powt) == reinterpret(FD{T,f}, typemin(T)) # Note: rounding away from zero will result in an exception. max_int = typemax(T) min_int = typemin(T) max_dec = max_int / powt min_dec = min_int / powt if round(T, max_dec) == trunc(T, max_dec) @test round(reinterpret(FD{T,f}, max_int)) == FD{T,f}(round(T, max_dec)) else @test_throws InexactError round(reinterpret(FD{T,f}, max_int)) end if round(T, min_dec) == trunc(T, min_dec) @test round(reinterpret(FD{T,f}, min_int)) == FD{T,f}(round(T, min_dec)) else @test_throws InexactError round(reinterpret(FD{T,f}, min_int)) end end end @testset "trunc" begin @test trunc(Int, FD2(0.99)) === 0 @test trunc(Int, FD2(-0.99)) === 0 @test trunc(Int, FD2(1)) === 1 @test trunc(Int, FD2(-1)) === -1 @test trunc(typemax(FD2)) ≀ typemax(FD2) @test trunc(Int, typemax(FD2)) ≀ typemax(FD2) @test trunc(typemin(FD2)) β‰₯ typemin(FD2) @test trunc(Int, typemin(FD2)) β‰₯ typemin(FD2) @test trunc(eps(FD2)) == 0 @test trunc(-eps(FD2)) == 0 @testset "truncate invariant" for x in keyvalues[FD2] @test isinteger(trunc(x)) if x β‰  typemin(FD2) @test abs(x) - 1 < abs(trunc(x)) ≀ abs(x) else @test abs(trunc(x)) > 0 end # to FD1 @test isinteger(Base.widemul(10, FD2(trunc(FD1, x)))) @test abs(FD2(trunc(FD1, x))) β‰₯ 0 end @testset "truncate precision" begin for x in smaller_than_decimal @test trunc(FD2, x) β‰  trunc(FD3, x) @test trunc(FD2, x) == FD2(x - 0.01) @test trunc(FD3, x) == FD3(x - 0.001) for f in 0:18 @test trunc(FD{Int64, f}, x) == parse_int(FD{Int64, f}, INTS[x]) end for f in 0:200 @test trunc(FD{BigInt, f}, x) == parse_int(FD{BigInt, f}, INTS[x]) end end for x in bigger_than_decimal exactval = FD3(x) for f in 3:14 @test trunc(FD{Int64, f}, x) == exactval end for f in 0:18 @test trunc(FD{Int64, f}, x) == parse_int(FD{Int64, f}, INTS[x]) end end end @testset "limits of $T" for T in CONTAINER_TYPES f = FixedPointDecimals.max_exp10(T) powt = FixedPointDecimals.coefficient(FD{T,f}) # When converting from typemax to a floating-point it is possible that due to # precision issues that the closest possible float will exceed the typemax. max_float = prevfloat(convert(AbstractFloat, typemax(FD{T,f}))) min_float = nextfloat(convert(AbstractFloat, typemin(FD{T,f}))) @test trunc(FD{T,f}, max_float) == trunc_alt(FD{T,f}, max_float) @test trunc(FD{T,f}, min_float) == trunc_alt(FD{T,f}, min_float) @test trunc(reinterpret(FD{T,f}, typemax(T))) == FD{T,f}(div(typemax(T), powt)) @test trunc(reinterpret(FD{T,f}, typemin(T))) == FD{T,f}(div(typemin(T), powt)) end end # eps that works for integers too epsi(::Type{T}) where T <: Integer = one(T)::T epsi(::Type{T}) where T = eps(T) @testset "floor, ceil" begin @testset for x in filter(!islarge, keyvalues[FD2]) @test floor(x) ≀ x < floor(x) + 1 @test ceil(x) - 1 < x ≀ ceil(x) @test isinteger(floor(x)) @test isinteger(ceil(x)) @testset for T in [Int32, Int64, FD1, FD2, FD4, WFD2, WFD4] @test floor(T, x) ≀ x < floor(T, x) + epsi(T) @test ceil(T, x) - epsi(T) < x ≀ ceil(T, x) end end @testset "floor, ceil precision" begin for x in smaller_than_decimal @test floor(FD2, x) != floor(FD3, x) @test floor(FD2, x) == FD2(x - 0.01) @test floor(FD3, x) == FD3(x - 0.001) for f in 0:18 @test floor(FD{Int64, f}, x) == parse_int(FD{Int64, f}, INTS[x]) end @test ceil(FD3, x) == ceil(FD4, x) == FD4(x) end for x in bigger_than_decimal @test ceil(FD2, x) β‰  ceil(FD3, x) @test ceil(FD2, x) == FD2(x + 0.01) @test ceil(FD3, x) == FD3(x + 0.001) for f in 0:18 @test ceil(FD{Int64, f}, x) == parse_int(FD{Int64, f}, INTS[x], ceil=true) end @test floor(FD3, x) == floor(FD4, x) == FD4(x) end end @testset "limits of $T" for T in CONTAINER_TYPES f = FixedPointDecimals.max_exp10(T) powt = FixedPointDecimals.coefficient(FD{T,f}) # When converting from typemax to a floating-point it is possible that due to # precision issues that the closest possible float will exceed the typemax. max_float = prevfloat(convert(AbstractFloat, typemax(FD{T,f}))) min_float = nextfloat(convert(AbstractFloat, typemin(FD{T,f}))) @test floor(FD{T,f}, max_float) == floor_alt(FD{T,f}, max_float) @test floor(FD{T,f}, min_float) == floor_alt(FD{T,f}, min_float) @test ceil(FD{T,f}, max_float) == ceil_alt(FD{T,f}, max_float) @test ceil(FD{T,f}, min_float) == ceil_alt(FD{T,f}, min_float) # Note: rounding away from zero will result in an exception. max_int = typemax(T) min_int = typemin(T) max_dec = max_int / powt min_dec = min_int / powt @test floor(reinterpret(FD{T,f}, max_int)) == FD{T,f}(floor(T, max_dec)) if floor(T, min_dec) == trunc(T, min_dec) @test floor(reinterpret(FD{T,f}, min_int)) == FD{T,f}(floor(T, min_dec)) else @test_throws InexactError floor(reinterpret(FD{T,f}, min_int)) end if ceil(T, max_dec) == trunc(T, max_dec) @test ceil(reinterpret(FD{T,f}, max_int)) == FD{T,f}(ceil(T, max_dec)) else @test_throws InexactError ceil(reinterpret(FD{T,f}, max_int)) end @test ceil(reinterpret(FD{T,f}, min_int)) == FD{T,f}(ceil(T, min_dec)) end end @testset "type stability" begin # Test that basic operations are type stable for all the basic integer types. fs = [0, 1, 2, 7, 16, 38] # To save time, don't test all possible combinations. @testset for T in (CONTAINER_TYPES..., BigInt,) maxF = FixedPointDecimals.max_exp10(T) frange = filter(f->f<=maxF, fs) # Unary operations @testset for f in frange @test @inferred(zero(FD{T,f}(1))) === FD{T,f}(0) @test @inferred(one(FD{T,f}(1))) === FD{T,f}(1) @test @inferred(ceil(FD{T,f}(1))) === FD{T,f}(1) @test @inferred(round(FD{T,f}(1))) === FD{T,f}(1) @test @inferred(abs(FD{T,f}(1))) === FD{T,f}(1) @test @inferred(FD{T,f}(1)^2) === FD{T,f}(1) @test @inferred(typemax(FD{T,f})) isa FD{T,f} end # Binary operations @testset for (f1,f2) in Iterators.product(frange, frange) fmax = max(f1,f2) @test @inferred(FD{T,f1}(1) + FD{T,f2}(0)) === FD{T,fmax}(1) @test @inferred(FD{T,f1}(1) - FD{T,f2}(0)) === FD{T,fmax}(1) @test @inferred(FD{T,f1}(1) * FD{T,f2}(1)) === FD{T,fmax}(1) @test @inferred(FD{T,f1}(1) / FD{T,f2}(1)) === FD{T,fmax}(1) @test @inferred(FD{T,f1}(1) Γ· FD{T,f2}(1)) === FD{T,fmax}(1) @test @inferred(max(FD{T,f1}(1), FD{T,f2}(0))) === FD{T,fmax}(1) @test @inferred(min(FD{T,f1}(1), FD{T,f2}(0))) === FD{T,fmax}(0) end end end @testset "print" begin @test string(FD2(1.00)) == "1.00" @test string(FD2(1.23)) == "1.23" @test string(FD2(42.40)) == "42.40" @test string(FD2(-42.40)) == "-42.40" @test string(FD2(-0.01)) == "-0.01" @test string(FD2(0)) == "0.00" @test string(FixedDecimal{Int,0}(123.4)) == "123" # Displaying a decimal could be incorrect when using a decimal place precision which is # close to or at the limit for our storage type. @testset "limits of $T" for T in CONTAINER_TYPES f = FixedPointDecimals.max_exp10(T) function fmt(val, f) str = string(val) neg = "" if str[1] == '-' neg = "-" str = str[2:end] end return string(neg, str[1], ".", rpad(str[2:end], f, '0')) end @test string(reinterpret(FD{T,f}, typemax(T))) == fmt(typemax(T), f) @test string(reinterpret(FD{T,f}, typemin(T))) == fmt(typemin(T), f) end end @testset "show" begin @testset "compact" begin @test sprint(show, FD2(1.00), context=:compact=>true) == "1.0" @test sprint(show, FD2(1.23), context=:compact=>true) == "1.23" @test sprint(show, FD2(42.40), context=:compact=>true) == "42.4" @test sprint(show, FD2(-42.40), context=:compact=>true) == "-42.4" @test sprint(show, FD2(-0.01), context=:compact=>true) == "-0.01" @test sprint(show, FD2(0), context=:compact=>true) == "0.0" @test repr(typemin(FixedDecimal{Int64, 2})) == "FixedDecimal{Int64,2}(-92233720368547758.08)" @test repr(typemax(FixedDecimal{Int64, 2})) == "FixedDecimal{Int64,2}(92233720368547758.07)" @test repr(typemin(FixedDecimal{Int32, 2})) == "FixedDecimal{Int32,2}(-21474836.48)" @test repr(typemax(FixedDecimal{Int32, 2})) == "FixedDecimal{Int32,2}(21474836.47)" end end @testset "string" begin for x in keyvalues[FD2] if 0 ≀ abs(x) < 1000 @test Core.eval(@__MODULE__, Meta.parse(string(x))) == x end end end @testset "parse_round" begin @test FixedPointDecimals.parse_round(Int, "44", RoundNearest) == 0 @test FixedPointDecimals.parse_round(Int, "45", RoundNearest) == 0 @test FixedPointDecimals.parse_round(Int, "46", RoundNearest) == 1 @test FixedPointDecimals.parse_round(Int, "54", RoundNearest) == 0 @test FixedPointDecimals.parse_round(Int, "55", RoundNearest) == 1 @test FixedPointDecimals.parse_round(Int, "56", RoundNearest) == 1 # Handle a number of digits that exceeds the storage capacity of Int128 @test FixedPointDecimals.parse_round(Int8, "9"^40, RoundNearest) == 1 end @testset "parse" begin # Note: the underscore used in the reinterpreted integer is used to indicate the decimal # place. @testset "decimal position" begin @test parse(FD2, "123") == reinterpret(FD2, 123_00) @test parse(FD2, "0.123") == reinterpret(FD2, 0_12) @test parse(FD2, ".123") == reinterpret(FD2, 0_12) @test parse(FD2, "1.23") == reinterpret(FD2, 1_23) @test parse(FD2, "12.3") == reinterpret(FD2, 12_30) @test parse(FD2, "123.") == reinterpret(FD2, 123_00) @test parse(FD2, "123.0") == reinterpret(FD2, 123_00) @test parse(FD2, "-123") == reinterpret(FD2, -123_00) @test parse(FD2, "-0.123") == reinterpret(FD2, -0_12) @test parse(FD2, "-.123") == reinterpret(FD2, -0_12) @test parse(FD2, "-1.23") == reinterpret(FD2, -1_23) @test parse(FD2, "-12.3") == reinterpret(FD2, -12_30) @test parse(FD2, "-123.") == reinterpret(FD2, -123_00) @test parse(FD2, "-123.0") == reinterpret(FD2, -123_00) end @testset "scientific notation" begin @test parse(FD4, "12e0") == reinterpret(FD4, 00012_0000) @test parse(FD4, "12e3") == reinterpret(FD4, 12000_0000) @test parse(FD4, "12e-3") == reinterpret(FD4, 00000_0120) @test parse(FD4, "1.2e0") == reinterpret(FD4, 00001_2000) @test parse(FD4, "1.2e3") == reinterpret(FD4, 01200_0000) @test parse(FD4, "1.2e-3") == reinterpret(FD4, 00000_0012) @test parse(FD4, "1.2e-4") == reinterpret(FD4, 00000_0001) @test parse(FD4, "-12e0") == reinterpret(FD4, -00012_0000) @test parse(FD4, "-12e3") == reinterpret(FD4, -12000_0000) @test parse(FD4, "-12e-3") == reinterpret(FD4, -00000_0120) @test parse(FD4, "-1.2e0") == reinterpret(FD4, -00001_2000) @test parse(FD4, "-1.2e3") == reinterpret(FD4, -01200_0000) @test parse(FD4, "-1.2e-3") == reinterpret(FD4, -00000_0012) @test parse(FD2, "999e-1") == reinterpret(FD2, 99_90) @test parse(FD2, "999e-2") == reinterpret(FD2, 09_99) @test parse(FD2, "999e-3") == reinterpret(FD2, 01_00) @test parse(FD2, "999e-4") == reinterpret(FD2, 00_10) @test parse(FD2, "999e-5") == reinterpret(FD2, 00_01) @test parse(FD2, "999e-6") == reinterpret(FD2, 00_00) @test parse(FD2, "-999e-1") == reinterpret(FD2, -99_90) @test parse(FD2, "-999e-2") == reinterpret(FD2, -09_99) @test parse(FD2, "-999e-3") == reinterpret(FD2, -01_00) @test parse(FD2, "-999e-4") == reinterpret(FD2, -00_10) @test parse(FD2, "-999e-5") == reinterpret(FD2, -00_01) @test parse(FD2, "-999e-6") == reinterpret(FD2, -00_00) @test parse(FD4, "9"^96 * "e-100") == reinterpret(FD4, 0_001) end @testset "round to nearest" begin @test parse(FD2, "0.444") == reinterpret(FD2, 0_44) @test parse(FD2, "0.445") == reinterpret(FD2, 0_44) @test parse(FD2, "0.446") == reinterpret(FD2, 0_45) @test parse(FD2, "0.454") == reinterpret(FD2, 0_45) @test parse(FD2, "0.455") == reinterpret(FD2, 0_46) @test parse(FD2, "0.456") == reinterpret(FD2, 0_46) @test parse(FD2, "-0.444") == reinterpret(FD2, -0_44) @test parse(FD2, "-0.445") == reinterpret(FD2, -0_44) @test parse(FD2, "-0.446") == reinterpret(FD2, -0_45) @test parse(FD2, "-0.454") == reinterpret(FD2, -0_45) @test parse(FD2, "-0.455") == reinterpret(FD2, -0_46) @test parse(FD2, "-0.456") == reinterpret(FD2, -0_46) @test parse(FD2, "0.009") == reinterpret(FD2, 0_01) @test parse(FD2, "-0.009") == reinterpret(FD2, -0_01) @test parse(FD4, "1.5e-4") == reinterpret(FD4, 0_0002) end @testset "round to zero" begin @test parse(FD2, "0.444", RoundToZero) == reinterpret(FD2, 0_44) @test parse(FD2, "0.445", RoundToZero) == reinterpret(FD2, 0_44) @test parse(FD2, "0.446", RoundToZero) == reinterpret(FD2, 0_44) @test parse(FD2, "0.454", RoundToZero) == reinterpret(FD2, 0_45) @test parse(FD2, "0.455", RoundToZero) == reinterpret(FD2, 0_45) @test parse(FD2, "0.456", RoundToZero) == reinterpret(FD2, 0_45) @test parse(FD2, "-0.444", RoundToZero) == reinterpret(FD2, -0_44) @test parse(FD2, "-0.445", RoundToZero) == reinterpret(FD2, -0_44) @test parse(FD2, "-0.446", RoundToZero) == reinterpret(FD2, -0_44) @test parse(FD2, "-0.454", RoundToZero) == reinterpret(FD2, -0_45) @test parse(FD2, "-0.455", RoundToZero) == reinterpret(FD2, -0_45) @test parse(FD2, "-0.456", RoundToZero) == reinterpret(FD2, -0_45) @test parse(FD2, "0.009", RoundToZero) == reinterpret(FD2, 0_00) @test parse(FD2, "-0.009", RoundToZero) == reinterpret(FD2, 0_00) @test parse(FD4, "1.5e-4", RoundToZero) == reinterpret(FD4, 0_0001) end @testset "round throws" begin @test parse(FD2, "0.44", RoundThrows) == reinterpret(FD2, 0_44) @test parse(FD2, "0.440", RoundThrows) == reinterpret(FD2, 0_44) @test_throws InexactError parse(FD2, "0.444", RoundThrows) @test_throws InexactError parse(FD2, "0.445", RoundThrows) @test_throws InexactError parse(FD2, "0.446", RoundThrows) @test_throws InexactError parse(FD2, "0.454", RoundThrows) @test_throws InexactError parse(FD2, "0.455", RoundThrows) @test_throws InexactError parse(FD2, "0.456", RoundThrows) @test_throws InexactError parse(FD2, "-0.444", RoundThrows) @test_throws InexactError parse(FD2, "-0.445", RoundThrows) @test_throws InexactError parse(FD2, "-0.446", RoundThrows) @test_throws InexactError parse(FD2, "-0.454", RoundThrows) @test_throws InexactError parse(FD2, "-0.455", RoundThrows) @test_throws InexactError parse(FD2, "-0.456", RoundThrows) @test_throws InexactError parse(FD2, "0.009", RoundThrows) @test_throws InexactError parse(FD2, "-0.009", RoundThrows) @test_throws InexactError parse(FD4, "1.5e-4", RoundThrows) end @testset "invalid" begin @test_throws OverflowError parse(FD4, "1.2e100") @test_throws ArgumentError parse(FD4, "foo") @test_throws ArgumentError parse(FD4, "1.2.3") @test_throws ArgumentError parse(FD4, "1.2", RoundUp) end @testset "hashing" begin fd1 = FixedDecimal{Int, 4}(2.5) fd2 = FixedDecimal{Int, 5}(2.5) fd3 = FixedDecimal{Int, 4}(3.5) @test hash(fd1) == hash(fd2) @test hash(fd1) != hash(fd3) @test hash(fd1) != hash(fd1.i) @test hash(FD2(1//10)) == hash(1//10) @test hash(FD2(1//10)) β‰  hash(0.1) end end end # global testset
[ 27, 7856, 261, 480, 29, 50, 34518, 15, 14, 13715, 12727, 10707, 320, 874, 13, 20362, 198, 3500, 10832, 12727, 10707, 320, 874, 198, 3500, 10832, 12727, 10707, 320, 874, 25, 30002, 11, 1988, 198, 3500, 6208, 198, 3500, 12578, 69, 198, 3500, 7308, 13, 9787, 276, 25, 10667, 62, 76, 377, 198, 198, 17256, 7203, 26791, 13, 20362, 4943, 198, 198, 9979, 14362, 35, 17, 796, 10832, 10707, 4402, 90, 5317, 1433, 11, 362, 92, 198, 9979, 14362, 35, 19, 796, 10832, 10707, 4402, 90, 5317, 1433, 11, 604, 92, 198, 9979, 30002, 16, 796, 10832, 10707, 4402, 90, 5317, 11, 352, 92, 198, 9979, 30002, 17, 796, 10832, 10707, 4402, 90, 5317, 11, 362, 92, 198, 9979, 30002, 18, 796, 10832, 10707, 4402, 90, 5317, 11, 513, 92, 198, 9979, 30002, 19, 796, 10832, 10707, 4402, 90, 5317, 11, 604, 92, 198, 9979, 370, 26009, 17, 796, 10832, 10707, 4402, 90, 5317, 12762, 11, 362, 92, 198, 9979, 370, 26009, 19, 796, 10832, 10707, 4402, 90, 5317, 12762, 11, 604, 92, 198, 198, 9979, 7102, 30339, 1137, 62, 9936, 47, 1546, 796, 7308, 13, 13128, 46541, 62, 19199, 220, 1303, 34142, 10017, 850, 19199, 543, 389, 10340, 198, 198, 2, 777, 26515, 815, 307, 4030, 23243, 14500, 198, 9979, 1994, 27160, 796, 360, 713, 7, 198, 220, 220, 220, 30002, 17, 5218, 685, 28004, 14857, 7, 26009, 17, 828, 220, 1303, 1474, 5288, 2837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30002, 17, 32590, 27693, 13, 2414, 828, 220, 1303, 15456, 7560, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30002, 17, 32590, 16, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30002, 17, 32590, 15, 13, 486, 828, 220, 220, 220, 1303, 1474, 6632, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30002, 17, 7, 15, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30002, 17, 7, 15, 13, 486, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30002, 17, 7, 15, 13, 1415, 828, 220, 220, 220, 220, 1303, 13390, 12, 2339, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30002, 17, 7, 15, 13, 2091, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30002, 17, 7, 15, 13, 20, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30002, 17, 7, 16, 828, 220, 220, 220, 220, 220, 220, 220, 1303, 530, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30002, 17, 7, 45839, 13, 3553, 828, 220, 220, 1303, 15456, 7560, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2170, 368, 897, 7, 26009, 17, 8, 4357, 1303, 1474, 5415, 2837, 198, 220, 220, 220, 370, 26009, 19, 5218, 685, 28004, 14857, 7, 54, 26009, 19, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 27381, 7, 54, 26009, 19, 11, 532, 1314, 2154, 1270, 23753, 18638, 2091, 1129, 1433, 2857, 26427, 1129, 2075, 33042, 1507, 3553, 3104, 30057, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 27381, 7, 54, 26009, 19, 11, 532, 27720, 2078, 1433, 3070, 29326, 1415, 5332, 1507, 1795, 2920, 1495, 2154, 2075, 21738, 2078, 2091, 27790, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 27381, 7, 54, 26009, 19, 11, 532, 1157, 37601, 2078, 39761, 1983, 2857, 4089, 18, 20219, 2623, 1495, 1314, 4089, 3559, 34583, 2670, 49641, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 370, 26009, 19, 32590, 16, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 370, 26009, 19, 32590, 15, 13, 18005, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 370, 26009, 19, 7, 15, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 370, 26009, 19, 7, 15, 13, 18005, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 370, 26009, 19, 7, 15, 13, 486, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 370, 26009, 19, 7, 16, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 27381, 7, 54, 26009, 19, 11, 1467, 2598, 30743, 940, 2079, 25838, 20548, 1731, 2931, 48724, 23451, 486, 28857, 2670, 22579, 1157, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2170, 368, 897, 7, 54, 26009, 19, 8, 12962, 198, 198, 2, 49768, 966, 3815, 3194, 355, 18253, 13042, 13, 49511, 329, 4856, 38975, 286, 198, 2, 40122, 11, 4314, 11, 290, 2906, 346, 13, 198, 9979, 3268, 4694, 796, 360, 713, 7, 198, 220, 220, 220, 410, 5218, 6330, 7, 31, 82, 37435, 7203, 7225, 2167, 69, 1600, 410, 828, 366, 526, 5218, 366, 4943, 198, 220, 220, 220, 329, 410, 287, 685, 198, 220, 220, 220, 220, 220, 220, 220, 352, 13, 1828, 11, 198, 220, 220, 220, 220, 220, 220, 220, 352, 13, 1954, 11, 198, 220, 220, 220, 220, 220, 220, 220, 352, 13, 4349, 11, 198, 220, 220, 220, 220, 220, 220, 220, 362, 13, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 362, 13, 18, 11, 198, 220, 220, 220, 2361, 198, 8, 198, 9979, 4833, 62, 14813, 62, 12501, 4402, 796, 685, 16, 13, 1828, 11, 352, 13, 1954, 11, 362, 13, 18, 60, 198, 9979, 5749, 62, 14813, 62, 12501, 4402, 796, 685, 16, 13, 4349, 11, 362, 13, 17, 60, 628, 198, 2, 3146, 326, 743, 2728, 30343, 198, 3044, 1376, 7, 87, 8, 796, 2124, 6624, 2170, 14857, 7, 87, 8, 8614, 2352, 7, 87, 8, 1875, 8576, 198, 198, 2, 3146, 326, 460, 1239, 2728, 30343, 198, 747, 76, 439, 7, 87, 8, 796, 532, 16, 1279, 2124, 41305, 352, 198, 198, 8818, 21136, 62, 600, 7, 3712, 6030, 90, 26009, 90, 51, 11, 277, 92, 5512, 1188, 3712, 23839, 10100, 26, 2906, 346, 3712, 33, 970, 28, 9562, 8, 810, 1391, 51, 11, 277, 92, 198, 220, 220, 220, 302, 27381, 7, 26009, 90, 51, 11, 277, 5512, 21136, 7, 51, 11, 1188, 58, 16, 37498, 69, 1343, 352, 8, 12962, 1343, 309, 7, 344, 346, 4008, 198, 437, 198, 198, 31, 9288, 2617, 366, 13715, 12727, 10707, 320, 874, 1, 2221, 198, 198, 2, 14392, 5254, 329, 262, 5050, 2727, 2029, 198, 31, 9288, 2617, 366, 2501, 1, 2221, 198, 220, 220, 220, 2488, 9288, 40122, 62, 2501, 7, 26009, 17, 11, 657, 13, 15, 8, 6624, 30002, 17, 7, 15, 8, 198, 220, 220, 220, 2488, 9288, 4314, 62, 2501, 7, 26009, 17, 11, 657, 13, 15, 8, 6624, 30002, 17, 7, 15, 8, 198, 220, 220, 220, 2488, 9288, 2906, 346, 62, 2501, 7, 26009, 17, 11, 220, 657, 13, 15, 8, 6624, 30002, 17, 7, 15, 8, 628, 220, 220, 220, 2488, 9288, 40122, 62, 2501, 7, 26009, 17, 11, 362, 13, 19442, 8, 6624, 30002, 17, 7, 17, 13, 1415, 8, 198, 220, 220, 220, 2488, 9288, 4314, 62, 2501, 7, 26009, 17, 11, 362, 13, 19442, 8, 6624, 30002, 17, 7, 17, 13, 1415, 8, 198, 220, 220, 220, 2488, 9288, 2906, 346, 62, 2501, 7, 26009, 17, 11, 220, 362, 13, 19442, 8, 6624, 30002, 17, 7, 17, 13, 1314, 8, 628, 220, 220, 220, 2488, 9288, 40122, 62, 2501, 7, 26009, 17, 11, 532, 17, 13, 19442, 8, 6624, 30002, 17, 32590, 17, 13, 1415, 8, 198, 220, 220, 220, 2488, 9288, 4314, 62, 2501, 7, 26009, 17, 11, 532, 17, 13, 19442, 8, 6624, 30002, 17, 32590, 17, 13, 1314, 8, 198, 220, 220, 220, 2488, 9288, 2906, 346, 62, 2501, 7, 26009, 17, 11, 220, 532, 17, 13, 19442, 8, 6624, 30002, 17, 32590, 17, 13, 1415, 8, 628, 220, 220, 220, 2488, 9288, 40122, 62, 2501, 7, 26009, 17, 11, 1306, 22468, 7, 15, 13, 15, 4008, 6624, 30002, 17, 7, 15, 8, 198, 220, 220, 220, 2488, 9288, 4314, 62, 2501, 7, 26009, 17, 11, 1306, 22468, 7, 15, 13, 15, 4008, 6624, 30002, 17, 7, 15, 8, 198, 220, 220, 220, 2488, 9288, 2906, 346, 62, 2501, 7, 26009, 17, 11, 220, 1306, 22468, 7, 15, 13, 15, 4008, 6624, 30002, 17, 7, 15, 13, 486, 8, 628, 220, 220, 220, 2488, 9288, 40122, 62, 2501, 7, 26009, 17, 11, 8654, 22468, 7, 15, 13, 15, 4008, 6624, 30002, 17, 7, 15, 8, 198, 220, 220, 220, 2488, 9288, 4314, 62, 2501, 7, 26009, 17, 11, 8654, 22468, 7, 15, 13, 15, 4008, 6624, 30002, 17, 32590, 15, 13, 486, 8, 198, 220, 220, 220, 2488, 9288, 2906, 346, 62, 2501, 7, 26009, 17, 11, 220, 8654, 22468, 7, 15, 13, 15, 4008, 6624, 30002, 17, 7, 15, 8, 198, 437, 198, 198, 31, 9288, 2617, 366, 9806, 62, 11201, 940, 1, 2221, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 5317, 23, 8, 6624, 362, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 5317, 2414, 8, 6624, 1248, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 5317, 12762, 8, 6624, 4353, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 52, 5317, 23, 8, 6624, 362, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 52, 5317, 2414, 8, 6624, 678, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 52, 5317, 12762, 8, 6624, 4353, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 12804, 5317, 8, 6624, 532, 16, 628, 220, 220, 220, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 309, 7, 940, 8, 61, 87, 6624, 45676, 7, 51, 7, 940, 4008, 61, 87, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 23144, 18253, 3858, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 18206, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20049, 2099, 2558, 1731, 1279, 25, 34142, 1987, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 28004, 368, 897, 7, 3712, 6030, 90, 5317, 1731, 30072, 796, 362, 61, 1731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 86, 14029, 7, 3712, 6030, 90, 5317, 1731, 30072, 796, 2558, 2624, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 5317, 1731, 8, 6624, 767, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 5740, 25, 356, 821, 655, 23662, 326, 428, 318, 22619, 6302, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 18206, 20049, 2099, 2558, 3118, 65, 6302, 1279, 25, 34142, 17759, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 11789, 12331, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 5317, 3118, 65, 6302, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 2, 4155, 326, 262, 35381, 33096, 416, 262, 4511, 290, 9016, 2380, 540, 3815, 286, 198, 2, 262, 9290, 2099, 466, 407, 1255, 287, 30343, 13, 198, 31, 9288, 2617, 366, 1073, 16814, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 366, 2502, 11125, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7182, 83, 796, 10832, 12727, 10707, 320, 874, 13, 1073, 16814, 7, 26009, 90, 51, 11, 277, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 7182, 83, 4064, 838, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10667, 62, 76, 377, 7, 86, 14029, 7, 79, 322, 83, 828, 2170, 368, 897, 7, 51, 4008, 6624, 9214, 368, 377, 7, 79, 322, 83, 11, 2170, 368, 897, 7, 51, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10667, 62, 76, 377, 7, 86, 14029, 7, 79, 322, 83, 828, 2170, 14857, 7, 51, 4008, 6624, 9214, 368, 377, 7, 79, 322, 83, 11, 2170, 14857, 7, 51, 4008, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 41571, 273, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 366, 259, 12102, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 45751, 12331, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 45751, 12331, 302, 27381, 7, 26009, 90, 51, 12095, 16, 5512, 657, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 1102, 9641, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 309, 287, 685, 49, 864, 90, 5317, 12762, 5512, 370, 26009, 17, 11, 370, 26009, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 26009, 17, 11, 10385, 7, 51, 11, 2124, 4008, 6624, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 309, 7, 87, 8, 6624, 10385, 7, 51, 11, 2124, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 611, 657, 41305, 2352, 7, 87, 8, 1279, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 309, 287, 685, 20802, 35, 17, 11, 14362, 35, 19, 11, 30002, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 26009, 17, 11, 10385, 7, 51, 11, 2124, 4008, 6624, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 1462, 12178, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 38240, 262, 9377, 642, 1003, 22, 656, 257, 10832, 10707, 4402, 351, 355, 881, 15440, 355, 356, 460, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1231, 1262, 4403, 5317, 13, 198, 220, 220, 220, 220, 220, 220, 220, 309, 796, 2558, 12762, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7182, 83, 796, 10832, 12727, 10707, 320, 874, 13, 1073, 16814, 7, 26009, 90, 51, 11, 69, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 1188, 796, 309, 7, 2213, 19524, 7, 12804, 5317, 11, 9214, 368, 377, 7, 20, 1003, 22, 11, 7182, 83, 22305, 628, 220, 220, 220, 220, 220, 220, 220, 277, 67, 796, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 1188, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 43879, 2414, 11, 277, 67, 8, 14512, 10385, 7, 12804, 43879, 11, 277, 67, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 43879, 2414, 11, 277, 67, 8, 6624, 309, 7, 2100, 8, 1220, 309, 7, 79, 322, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 12804, 43879, 11, 277, 67, 8, 6624, 4403, 5317, 7, 2100, 8, 1220, 4403, 5317, 7, 79, 322, 83, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 1462, 9377, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 277, 67, 796, 302, 27381, 7, 26009, 17, 11, 1679, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 49, 864, 11, 277, 67, 8, 6624, 352, 1003, 19, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 259, 12102, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 10385, 7, 26009, 17, 11, 30002, 19, 7, 15, 13, 18005, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 10385, 7, 26009, 19, 11, 2170, 368, 897, 7, 26009, 17, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 10385, 7, 20802, 35, 17, 11, 2170, 368, 897, 7, 26009, 17, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 10385, 7, 26009, 17, 11, 352, 1003, 18, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 10385, 7, 26009, 90, 5317, 23, 11, 16, 5512, 352, 1003, 19, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 49196, 286, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 11201, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 3509, 62, 11201, 198, 220, 220, 220, 220, 220, 220, 220, 7182, 83, 796, 45676, 7, 13715, 12727, 10707, 320, 874, 13, 1073, 16814, 7, 26009, 90, 51, 11, 69, 92, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 10452, 395, 3967, 18253, 543, 318, 503, 12, 1659, 12, 65, 3733, 329, 262, 30002, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 3509, 62, 11201, 532, 277, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 267, 672, 796, 309, 7, 940, 8, 61, 7, 87, 1875, 657, 5633, 2124, 1058, 657, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 30274, 356, 561, 655, 779, 4600, 28004, 368, 897, 7, 51, 8, 63, 475, 2233, 284, 15440, 2428, 351, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 12462, 12, 4122, 663, 1744, 262, 11706, 12178, 481, 7074, 4600, 28004, 368, 897, 7, 51, 8, 44646, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5740, 25, 356, 815, 307, 1804, 4600, 2213, 19524, 7, 51, 11, 2644, 8, 63, 475, 40122, 803, 257, 4403, 43879, 460, 307, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 15833, 357, 5450, 1378, 12567, 13, 785, 14, 16980, 544, 43, 648, 14, 73, 43640, 14, 37165, 14, 28896, 1415, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 600, 796, 40122, 7, 12804, 5317, 11, 8654, 22468, 7, 28004, 368, 897, 7, 51, 8, 1220, 7182, 83, 8, 1635, 7182, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 600, 796, 40122, 7, 12804, 5317, 11, 1306, 22468, 7, 28004, 14857, 7, 51, 8, 1220, 7182, 83, 8, 1635, 7182, 83, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 3509, 62, 600, 19841, 2170, 368, 897, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1988, 7, 1102, 1851, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 1220, 7182, 83, 4008, 6624, 3509, 62, 600, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 949, 62, 600, 18189, 2170, 14857, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1988, 7, 1102, 1851, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 1220, 7182, 83, 4008, 6624, 949, 62, 600, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 26009, 90, 51, 11, 69, 5512, 2170, 368, 897, 7, 51, 8, 3373, 7182, 83, 8, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 368, 897, 7, 51, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 26009, 90, 51, 11, 69, 5512, 2170, 14857, 7, 51, 8, 3373, 7182, 83, 8, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 14857, 7, 51, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 10385, 7, 26009, 90, 51, 11, 69, 5512, 267, 672, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 35602, 889, 284, 257, 12462, 12, 4122, 198, 220, 220, 220, 220, 220, 220, 220, 277, 67, 796, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 368, 897, 7, 51, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 43879, 2624, 11, 277, 67, 8, 220, 6624, 48436, 2624, 7, 28004, 368, 897, 7, 51, 8, 1220, 7182, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 43879, 2414, 11, 277, 67, 8, 220, 6624, 48436, 2414, 7, 28004, 368, 897, 7, 51, 8, 1220, 7182, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 12804, 43879, 11, 277, 67, 8, 6624, 4403, 5317, 7, 28004, 368, 897, 7, 51, 4008, 1220, 7182, 83, 628, 220, 220, 220, 220, 220, 220, 220, 277, 67, 796, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 14857, 7, 51, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 43879, 2624, 11, 277, 67, 8, 220, 6624, 48436, 2624, 7, 28004, 14857, 7, 51, 8, 1220, 7182, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 43879, 2414, 11, 277, 67, 8, 220, 6624, 48436, 2414, 7, 28004, 14857, 7, 51, 8, 1220, 7182, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 12804, 43879, 11, 277, 67, 8, 6624, 4403, 5317, 7, 28004, 14857, 7, 51, 4008, 1220, 7182, 83, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 35602, 889, 284, 257, 9377, 198, 220, 220, 220, 220, 220, 220, 220, 277, 67, 796, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 368, 897, 7, 51, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 49, 864, 11, 277, 67, 8, 220, 6624, 2170, 368, 897, 7, 51, 8, 3373, 7182, 83, 628, 220, 220, 220, 220, 220, 220, 220, 277, 67, 796, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 14857, 7, 51, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 49, 864, 11, 277, 67, 8, 220, 6624, 2170, 14857, 7, 51, 8, 3373, 7182, 83, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 383, 1708, 5254, 2421, 326, 262, 1271, 286, 32465, 4113, 1249, 329, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4600, 12, 940, 1279, 2124, 1279, 838, 63, 810, 2124, 318, 257, 30002, 90, 51, 11, 69, 27422, 10664, 276, 284, 1332, 4600, 1102, 1851, 7, 3712, 26009, 11, 7904, 46541, 8, 44646, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 600, 796, 2170, 368, 897, 7, 51, 8, 6184, 115, 7182, 83, 1635, 7182, 83, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 600, 796, 2170, 14857, 7, 51, 8, 6184, 115, 7182, 83, 1635, 7182, 83, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 6184, 115, 7182, 83, 8, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 6184, 115, 7182, 83, 8, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 10385, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 6184, 115, 7182, 83, 1343, 267, 672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 10385, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 6184, 115, 7182, 83, 532, 267, 672, 8, 220, 1303, 3827, 44041, 351, 791, 32696, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 49196, 422, 720, 52, 284, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 11, 471, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 308, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 52, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7182, 83, 796, 2659, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10832, 12727, 10707, 320, 874, 13, 1073, 16814, 7, 26009, 90, 51, 11, 277, 92, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10832, 12727, 10707, 320, 874, 13, 1073, 16814, 7, 26009, 90, 52, 11, 308, 92, 828, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 1188, 796, 2170, 368, 897, 7, 52, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2938, 796, 9214, 368, 377, 7, 28004, 368, 897, 7, 52, 828, 7182, 83, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 35250, 8748, 286, 4488, 290, 22165, 3858, 1838, 4856, 351, 2170, 14857, 1327, 13, 198, 220, 220, 220, 220, 220, 220, 220, 611, 277, 18189, 308, 11405, 2938, 19841, 2170, 368, 897, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10385, 7, 26009, 90, 51, 11, 69, 5512, 302, 27381, 7, 26009, 90, 52, 11, 70, 5512, 1188, 4008, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2938, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 10385, 7, 26009, 90, 51, 11, 69, 5512, 302, 27381, 7, 26009, 90, 52, 11, 70, 5512, 1188, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 16963, 9650, 1, 2221, 198, 220, 220, 220, 2488, 9288, 352, 1003, 940, 1343, 30002, 17, 7, 15, 13, 16, 8, 24844, 352, 1003, 20, 198, 220, 220, 220, 2488, 9288, 657, 13, 16, 1343, 30002, 17, 7, 15, 13, 16, 8, 24844, 657, 13, 17, 198, 220, 220, 220, 2488, 9288, 352, 1343, 30002, 17, 7, 15, 13, 16, 8, 24844, 30002, 17, 7, 16, 13, 16, 8, 198, 220, 220, 220, 2488, 9288, 30002, 17, 7, 15, 13, 16, 8, 1343, 30002, 19, 7, 15, 13, 18005, 8, 24844, 30002, 19, 7, 15, 13, 47705, 8, 198, 220, 220, 220, 2488, 9288, 370, 26009, 17, 7, 15, 13, 16, 8, 1343, 30002, 19, 7, 15, 13, 18005, 8, 24844, 370, 26009, 19, 7, 15, 13, 47705, 8, 198, 437, 198, 198, 31, 9288, 2617, 366, 22468, 1, 2221, 198, 220, 220, 220, 2488, 9288, 12178, 32590, 505, 7, 20802, 35, 17, 4008, 24844, 532, 16, 13, 15, 69, 15, 198, 220, 220, 220, 2488, 9288, 12178, 7, 22570, 7, 20802, 35, 17, 4008, 24844, 657, 13, 15, 69, 15, 198, 220, 220, 220, 2488, 9288, 12178, 7, 505, 7, 20802, 35, 17, 4008, 24844, 352, 13, 15, 69, 15, 198, 220, 220, 220, 2488, 9288, 12178, 32590, 505, 7, 26009, 17, 4008, 24844, 532, 16, 13, 15, 198, 220, 220, 220, 2488, 9288, 12178, 7, 22570, 7, 26009, 17, 4008, 24844, 657, 13, 15, 198, 220, 220, 220, 2488, 9288, 12178, 7, 505, 7, 26009, 17, 4008, 24844, 352, 13, 15, 198, 437, 198, 198, 31, 9288, 2617, 366, 785, 1845, 1653, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 329, 309, 287, 685, 26009, 17, 11, 370, 26009, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 357, 72, 11, 2124, 8, 287, 27056, 378, 7, 2539, 27160, 58, 51, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 6624, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 331, 287, 1994, 27160, 58, 51, 7131, 72, 10, 16, 25, 437, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 15139, 254, 331, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 1279, 331, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 41305, 331, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 331, 15139, 254, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 331, 1875, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 331, 26870, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 9535, 896, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 366, 22570, 11, 530, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 15, 8, 6624, 6632, 7, 26009, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 3682, 13, 3682, 8, 1343, 30002, 17, 7, 15, 8, 6624, 30002, 17, 7, 3682, 13, 3682, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 16, 8, 6624, 530, 7, 26009, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 3682, 13, 3682, 8, 1635, 30002, 17, 7, 16, 8, 6624, 30002, 17, 7, 3682, 13, 3682, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 25386, 11, 12178, 1084, 11, 12178, 9806, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 12178, 1084, 7, 26009, 17, 8, 6624, 304, 862, 7, 26009, 17, 8, 6624, 30002, 17, 7, 15, 13, 486, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 304, 862, 7, 26009, 17, 7, 16, 13, 1157, 4008, 6624, 30002, 17, 7, 15, 13, 486, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 15139, 254, 2170, 368, 897, 7, 26009, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 1343, 304, 862, 7, 87, 8, 1875, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 15139, 254, 2170, 14857, 7, 26009, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 532, 304, 862, 7, 87, 8, 1279, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 15139, 254, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 12178, 1084, 7, 26009, 17, 8, 41305, 2352, 7, 87, 8, 41305, 12178, 9806, 7, 26009, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 2860, 653, 1, 2221, 198, 220, 220, 220, 2488, 9288, 30002, 17, 7, 15, 8, 1343, 30002, 17, 7, 15, 8, 6624, 30002, 17, 7, 15, 8, 198, 220, 220, 220, 2488, 9288, 30002, 17, 7, 16, 13, 1157, 8, 1343, 30002, 17, 7, 17, 13, 1828, 8, 6624, 30002, 17, 7, 18, 13, 2091, 8, 198, 220, 220, 220, 2488, 9288, 30002, 17, 7, 15, 13, 486, 8, 1343, 30002, 17, 7, 15, 13, 486, 8, 6624, 30002, 17, 7, 15, 13, 2999, 8, 198, 220, 220, 220, 2488, 9288, 30002, 17, 7, 15, 13, 486, 8, 1343, 30002, 17, 32590, 15, 13, 486, 8, 6624, 30002, 17, 7, 15, 8, 628, 220, 220, 220, 1303, 30343, 198, 220, 220, 220, 2488, 9288, 2170, 368, 897, 7, 26009, 17, 8, 1343, 304, 862, 7, 26009, 17, 8, 6624, 2170, 14857, 7, 26009, 17, 8, 198, 437, 198, 198, 31, 9288, 2617, 366, 7266, 83, 7861, 1, 2221, 198, 220, 220, 220, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 532, 2124, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 329, 331, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 1343, 331, 532, 331, 6624, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 331, 1343, 2124, 532, 331, 6624, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 16680, 541, 306, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 366, 4480, 18253, 11, 720, 51, 1, 329, 309, 287, 685, 26009, 17, 11, 370, 26009, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 1994, 27160, 58, 51, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 352, 1635, 2124, 6624, 2124, 1635, 352, 6624, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 530, 7, 87, 8, 1635, 2124, 6624, 2124, 1635, 530, 7, 87, 8, 6624, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 13841, 16, 8, 1635, 2124, 6624, 2124, 1635, 13841, 16, 8, 6624, 532, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 362, 1635, 2124, 6624, 2124, 1343, 2124, 6624, 357, 505, 7, 87, 8, 1343, 530, 7, 87, 4008, 1635, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 39491, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 15, 13, 2091, 8, 1635, 30002, 17, 7, 16, 13, 405, 8, 6624, 30002, 17, 7, 15, 13, 2091, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 15, 13, 2091, 8, 1635, 30002, 17, 7, 18, 13, 405, 8, 6624, 30002, 17, 7, 15, 13, 2079, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 15, 13, 2091, 8, 1635, 30002, 17, 7, 15, 13, 1120, 8, 6624, 30002, 17, 7, 15, 13, 1433, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 15, 13, 2091, 8, 1635, 30002, 17, 7, 15, 13, 2091, 8, 6624, 30002, 17, 7, 15, 13, 1157, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 15, 13, 3134, 8, 1635, 30002, 17, 7, 15, 13, 3134, 8, 6624, 30002, 17, 7, 15, 13, 2231, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 2539, 3815, 720, 51, 1, 329, 309, 287, 685, 26009, 17, 11, 370, 26009, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2006, 395, 796, 47527, 87, 11, 331, 8, 329, 2124, 287, 1994, 27160, 58, 51, 60, 329, 331, 287, 1994, 27160, 58, 51, 60, 611, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1189, 76, 439, 7, 87, 8, 8614, 1189, 76, 439, 7, 88, 8, 8614, 22759, 3044, 1376, 7, 87, 8, 11405, 5145, 3044, 1376, 7, 88, 4008, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 357, 87, 11, 331, 8, 287, 2006, 395, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1332, 262, 48473, 1255, 318, 9380, 19273, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 1635, 331, 6624, 2835, 7, 4906, 1659, 7, 87, 828, 7308, 13, 28029, 368, 377, 7, 87, 11, 331, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40426, 7, 2539, 27160, 58, 51, 12962, 6624, 657, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 19419, 12148, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 30002, 90, 5317, 23, 11, 16, 92, 7, 1238, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1160, 1635, 30002, 90, 5317, 23, 11, 16, 92, 7, 15, 13, 16, 8, 6624, 30002, 90, 5317, 23, 11, 16, 92, 7, 17, 13, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 90, 5317, 23, 11, 16, 92, 7, 15, 13, 16, 8, 1635, 1160, 6624, 30002, 90, 5317, 23, 11, 16, 92, 7, 17, 13, 15, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 49196, 286, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 16578, 283, 796, 10385, 7, 26009, 90, 51, 11, 69, 5512, 352, 3373, 838, 8, 220, 1303, 657, 13, 16, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 4619, 29162, 481, 2835, 262, 1255, 356, 1183, 787, 1654, 674, 1988, 857, 407, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1464, 9196, 866, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 600, 796, 2170, 368, 897, 7, 51, 8, 532, 357, 28004, 368, 897, 7, 51, 8, 4064, 838, 8, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 600, 796, 2170, 14857, 7, 51, 8, 532, 357, 28004, 14857, 7, 51, 8, 4064, 838, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 8, 1635, 16578, 283, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2659, 7, 9806, 62, 600, 11, 838, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 8, 1635, 16578, 283, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2659, 7, 1084, 62, 600, 11, 838, 4008, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 21426, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 366, 21426, 416, 352, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 1220, 530, 7, 87, 8, 6624, 2124, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4488, 37014, 1262, 734, 338, 16829, 423, 530, 3224, 4633, 1988, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 1279, 657, 11405, 2124, 6624, 2170, 14857, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 2124, 1220, 532, 505, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 1220, 532, 505, 7, 87, 8, 6624, 532, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 21426, 416, 362, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 772, 6670, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 30002, 17, 58, 12, 15, 13, 2999, 11, 657, 11, 657, 13, 2999, 11, 352, 13, 405, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 331, 287, 685, 17, 87, 12, 25386, 7, 87, 828, 362, 87, 11, 362, 87, 10, 25386, 7, 87, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 331, 1220, 362, 6624, 331, 1220, 362, 505, 7, 88, 8, 6624, 2124, 6624, 331, 1635, 30002, 17, 7, 15, 13, 20, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 5629, 6670, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 30002, 17, 58, 12, 15, 13, 486, 11, 657, 13, 486, 11, 352, 13, 486, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 796, 362, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 331, 1220, 362, 6624, 331, 1220, 362, 505, 7, 87, 8, 6624, 2124, 6624, 331, 1635, 30002, 17, 7, 15, 13, 20, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 1263, 3146, 198, 220, 220, 220, 220, 220, 220, 220, 329, 309, 287, 685, 20802, 35, 17, 11, 14362, 35, 19, 11, 30002, 17, 11, 30002, 19, 11, 370, 26009, 17, 11, 370, 26009, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2170, 14857, 7, 51, 8, 1220, 362, 1635, 362, 6624, 2170, 14857, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 357, 28004, 368, 897, 7, 51, 8, 1220, 362, 532, 304, 862, 7, 51, 4008, 1635, 362, 6624, 2170, 368, 897, 7, 51, 8, 532, 304, 862, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 21426, 416, 513, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 940, 8, 1220, 513, 6624, 30002, 17, 7, 18, 13, 2091, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 1238, 8, 1220, 513, 6624, 30002, 17, 7, 21, 13, 3134, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 32590, 16, 13, 1120, 8, 1220, 513, 6624, 30002, 17, 32590, 15, 13, 1120, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 32590, 1238, 8, 1220, 513, 6624, 30002, 17, 32590, 21, 13, 3134, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 815, 670, 351, 1263, 3146, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2170, 14857, 7, 26009, 17, 8, 1220, 513, 1279, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2170, 368, 897, 7, 26009, 17, 8, 1220, 513, 1875, 657, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 8344, 541, 43270, 720, 87, 1, 329, 2124, 287, 8106, 7, 0, 271, 22570, 11, 1994, 27160, 58, 26009, 17, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 10385, 1123, 1994, 8367, 284, 9377, 284, 1011, 281, 2748, 48135, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 290, 2198, 326, 340, 9196, 284, 262, 287, 12, 4906, 48135, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 796, 352, 14, 49, 864, 90, 12804, 5317, 92, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 26009, 17, 11, 374, 8, 6624, 352, 14, 87, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 7146, 485, 720, 87, 416, 657, 1, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 46894, 12331, 2124, 14, 26009, 17, 7, 15, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 744, 278, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 10485, 8199, 12423, 25, 352, 13, 1983, 1220, 362, 6624, 657, 13, 48250, 9196, 510, 284, 657, 13, 2414, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 16, 13, 1983, 8, 1220, 30002, 17, 7, 17, 8, 6624, 30002, 17, 7, 15, 13, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 32590, 16, 13, 1983, 8, 1220, 30002, 17, 7, 17, 8, 6624, 30002, 17, 32590, 15, 13, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 16, 13, 1983, 8, 1220, 362, 6624, 30002, 17, 7, 15, 13, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 32590, 16, 13, 1983, 8, 1220, 362, 6624, 30002, 17, 32590, 15, 13, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 18112, 1220, 30002, 17, 7, 2167, 8, 6624, 30002, 17, 7, 15, 13, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 532, 16799, 1220, 30002, 17, 7, 2167, 8, 6624, 30002, 17, 32590, 15, 13, 2414, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 10485, 8199, 12423, 25, 352, 13, 1959, 1220, 362, 6624, 657, 13, 49259, 9196, 866, 284, 657, 13, 2414, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 16, 13, 1959, 8, 1220, 30002, 17, 7, 17, 8, 6624, 30002, 17, 7, 15, 13, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 32590, 16, 13, 1959, 8, 1220, 30002, 17, 7, 17, 8, 6624, 30002, 17, 32590, 15, 13, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 7, 16, 13, 1959, 8, 1220, 362, 6624, 30002, 17, 7, 15, 13, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 17, 32590, 16, 13, 1959, 8, 1220, 362, 6624, 30002, 17, 32590, 15, 13, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 20248, 1220, 30002, 17, 7, 2167, 8, 6624, 30002, 17, 7, 15, 13, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 532, 18741, 1220, 30002, 17, 7, 2167, 8, 6624, 30002, 17, 32590, 15, 13, 2414, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 5765, 286, 48436, 393, 4403, 43879, 20947, 815, 407, 1487, 262, 10488, 1255, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 5317, 11, 16003, 1220, 939, 1635, 1802, 8, 6624, 5996, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 5317, 11, 4403, 5317, 7, 14454, 8, 1220, 939, 1635, 1802, 8, 6624, 7175, 220, 1303, 22941, 628, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 30002, 17, 7, 16, 13, 2931, 8, 198, 220, 220, 220, 220, 220, 220, 220, 331, 796, 30002, 17, 7, 2167, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 309, 287, 685, 26009, 17, 11, 2558, 23, 11, 2558, 12762, 11, 4403, 5317, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 1220, 309, 7, 17, 8, 6624, 30002, 17, 7, 15, 13, 4051, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 309, 7, 14454, 8, 1220, 331, 6624, 30002, 17, 7, 15, 13, 4051, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 19419, 12148, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 30002, 90, 5317, 23, 11, 16, 92, 7, 1238, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2558, 23, 7, 1238, 8, 1220, 30002, 90, 5317, 23, 11, 16, 92, 7, 17, 8, 6624, 30002, 90, 5317, 23, 11, 16, 92, 7, 940, 13, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 30002, 90, 5317, 23, 11, 16, 92, 7, 17, 8, 1220, 2558, 23, 7, 1238, 8, 6624, 30002, 90, 5317, 23, 11, 16, 92, 7, 15, 13, 16, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 49196, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 2558, 23, 7, 16, 8, 1220, 30002, 90, 5317, 23, 11, 17, 92, 7, 15, 13, 19, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 30002, 90, 5317, 23, 11, 17, 92, 7, 16, 8, 1220, 30002, 90, 5317, 23, 11, 17, 92, 7, 15, 13, 19, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 49196, 286, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 11201, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 3509, 62, 11201, 198, 220, 220, 220, 220, 220, 220, 220, 16578, 283, 796, 10385, 7, 26009, 90, 51, 11, 69, 5512, 352, 3373, 838, 8, 220, 1303, 657, 13, 16, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 10358, 307, 2354, 286, 262, 22303, 286, 257, 30002, 90, 51, 11, 69, 92, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 309, 7, 940, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 30002, 90, 51, 11, 69, 92, 7, 87, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 4619, 29162, 481, 2835, 262, 1255, 356, 1183, 787, 1654, 674, 1988, 1464, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 9196, 866, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 600, 796, 2170, 368, 897, 7, 51, 8, 532, 357, 28004, 368, 897, 7, 51, 8, 4064, 838, 8, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 600, 796, 2170, 14857, 7, 51, 8, 532, 357, 28004, 14857, 7, 51, 8, 4064, 838, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 16344, 796, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 16344, 796, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 357, 9806, 62, 16344, 1635, 16578, 283, 8, 1220, 16578, 283, 6624, 3509, 62, 16344, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 357, 1084, 62, 16344, 1635, 16578, 283, 8, 1220, 16578, 283, 6624, 949, 62, 16344, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 3509, 62, 16344, 1220, 2124, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2659, 7, 9806, 62, 600, 11, 2124, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 949, 62, 16344, 1220, 2124, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2659, 7, 1084, 62, 600, 11, 2124, 4008, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 2213, 19524, 803, 2659, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 366, 7146, 416, 352, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 6184, 115, 530, 7, 87, 8, 24844, 40122, 7, 87, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4488, 37014, 1262, 734, 338, 16829, 423, 530, 3224, 4633, 1988, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 1279, 657, 11405, 40122, 7, 87, 8, 24844, 2170, 14857, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 2124, 6184, 115, 532, 505, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 6184, 115, 532, 505, 7, 87, 8, 24844, 532, 2213, 19524, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 2617, 366, 7146, 416, 362, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 6184, 115, 362, 505, 7, 87, 8, 24844, 2124, 6184, 115, 362, 24844, 30002, 17, 7, 87, 13, 72, 6184, 115, 30002, 17, 7, 17, 737, 72, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 2617, 366, 7783, 3858, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2659, 7, 17, 505, 7, 26009, 17, 828, 513, 8, 318, 64, 30002, 17, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 530, 7, 26009, 17, 8, 6184, 115, 530, 7, 26009, 17, 8, 318, 64, 30002, 17, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 42868, 284, 5749, 2099, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 530, 7, 26009, 19, 8, 6184, 115, 530, 7, 26009, 17, 8, 318, 64, 30002, 19, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 530, 7, 26009, 17, 8, 6184, 115, 530, 7, 26009, 19, 8, 318, 64, 30002, 19, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 530, 7, 26009, 90, 5317, 2624, 11, 362, 30072, 6184, 115, 530, 7, 26009, 90, 5317, 2414, 11, 718, 30072, 318, 64, 30002, 90, 5317, 2414, 11, 718, 92, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 7146, 351, 38185, 12881, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 611, 44156, 2849, 18189, 410, 1, 16, 13, 19, 13, 15, 21215, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 16926, 46, 25, 6208, 10485, 4863, 28667, 1377, 3740, 1378, 12567, 13, 785, 14, 16980, 544, 43, 648, 14, 73, 43640, 14, 37165, 14, 27712, 1129, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 371, 287, 357, 22685, 2514, 28667, 11, 10485, 4933, 11, 10485, 8048, 11, 10485, 8199, 12423, 11, 10485, 8199, 12423, 51, 444, 32, 1014, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2659, 7, 87, 11, 362, 505, 7, 87, 828, 371, 8, 24844, 2659, 7, 87, 11, 362, 11, 371, 8, 24844, 30002, 17, 7, 7146, 7, 87, 13, 72, 11, 30002, 17, 7, 17, 737, 72, 11, 371, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 4357, 277, 287, 357, 69, 335, 11, 269, 335, 11, 277, 335, 16, 11, 2659, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 277, 7, 87, 11, 362, 505, 7, 87, 4008, 24844, 277, 7, 87, 11, 362, 8, 24844, 30002, 17, 7, 69, 7, 87, 13, 72, 11, 30002, 17, 7, 17, 737, 72, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 8937, 11, 1051, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 329, 309, 287, 685, 26009, 17, 11, 370, 26009, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 1994, 27160, 58, 51, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1051, 7, 87, 8, 61, 17, 18872, 230, 685, 15, 11, 352, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2352, 7, 8937, 7, 87, 4008, 6624, 2352, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2352, 7, 87, 8, 1635, 1051, 7, 87, 8, 6624, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2352, 7, 87, 8, 6624, 2352, 32590, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 15139, 254, 2170, 14857, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2352, 7, 87, 8, 26870, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1051, 7, 87, 8, 6624, 532, 12683, 32590, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 357, 8937, 7, 87, 8, 6624, 657, 8, 24844, 357, 87, 6624, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 271, 41433, 1, 2221, 198, 220, 220, 220, 1303, 5740, 25, 6208, 2314, 307, 973, 4556, 356, 460, 5678, 4600, 26009, 90, 5317, 23, 11, 21, 92, 63, 198, 220, 220, 220, 1303, 2488, 9288, 2617, 366, 2502, 11125, 1, 2221, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 1303, 5740, 25, 2293, 30343, 4600, 5317, 23, 7, 940, 8, 61, 21, 6624, 5598, 63, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 2488, 9288, 5145, 271, 41433, 7, 260, 27381, 7, 26009, 90, 5317, 23, 11, 21, 5512, 5598, 4008, 220, 1303, 657, 13, 2388, 2414, 198, 220, 220, 220, 1303, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 49196, 286, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 628, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 16344, 796, 2170, 368, 897, 7, 26009, 90, 51, 11, 69, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 16344, 796, 2170, 14857, 7, 26009, 90, 51, 11, 69, 30072, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 5145, 271, 41433, 7, 9806, 62, 16344, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 41433, 7, 2213, 19524, 7, 9806, 62, 16344, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 41433, 7, 1084, 62, 16344, 8, 6624, 357, 1084, 62, 16344, 6624, 6632, 7, 1084, 62, 16344, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 41433, 7, 2213, 19524, 7, 1084, 62, 16344, 4008, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 744, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 366, 1462, 2558, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 5317, 11, 30002, 17, 32590, 15, 13, 4349, 4008, 24844, 532, 16, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 5317, 11, 30002, 17, 32590, 15, 13, 1120, 4008, 24844, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 5317, 11, 30002, 17, 32590, 15, 13, 2920, 4008, 24844, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 5317, 11, 30002, 17, 7, 15, 13, 1120, 4008, 24844, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 5317, 11, 30002, 17, 7, 15, 13, 4349, 4008, 24844, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 5317, 11, 30002, 17, 7, 16, 13, 1120, 4008, 24844, 362, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 744, 278, 25275, 415, 720, 87, 1, 329, 2124, 287, 8106, 7, 0, 3044, 1376, 11, 1994, 27160, 58, 26009, 17, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 41433, 7, 744, 7, 87, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 532, 30002, 17, 7, 16, 1003, 17, 8, 41305, 2835, 7, 87, 8, 41305, 2124, 1343, 30002, 17, 7, 16, 1003, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 532, 30002, 17, 7, 16, 1003, 17, 8, 6624, 2835, 7, 87, 8, 8614, 2124, 1343, 30002, 17, 7, 16, 1003, 17, 8, 6624, 2835, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 10197, 7, 1102, 1851, 7, 5317, 11, 1802, 744, 7, 87, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 366, 1462, 2558, 1, 329, 309, 287, 685, 5317, 2414, 11, 2558, 2624, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 51, 11, 2124, 8, 6624, 2835, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 284, 30002, 16, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 532, 30002, 17, 7, 16, 1003, 1238, 8, 41305, 2835, 7, 26009, 16, 11, 2124, 8, 41305, 2124, 1343, 30002, 17, 7, 16, 1003, 1238, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 284, 30002, 17, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 6624, 2835, 7, 26009, 17, 11, 2124, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 49196, 286, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7182, 83, 796, 10832, 12727, 10707, 320, 874, 13, 1073, 16814, 7, 26009, 90, 51, 11, 69, 30072, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 40067, 356, 561, 655, 779, 4600, 28004, 368, 897, 7, 51, 8, 63, 475, 2233, 284, 15440, 2428, 351, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 12462, 12, 4122, 663, 1744, 262, 11706, 12178, 481, 7074, 4600, 28004, 368, 897, 7, 51, 8, 44646, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 12032, 11, 618, 262, 7297, 2482, 287, 257, 4600, 12804, 43879, 63, 356, 761, 284, 717, 40122, 378, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 284, 257, 4600, 12804, 5317, 63, 878, 356, 460, 40122, 378, 262, 2099, 356, 765, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 600, 796, 309, 7, 2213, 19524, 7, 12804, 5317, 11, 8654, 22468, 7, 28004, 368, 897, 7, 51, 8, 1220, 7182, 83, 8, 1635, 7182, 83, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 600, 796, 309, 7, 2213, 19524, 7, 12804, 5317, 11, 1306, 22468, 7, 28004, 14857, 7, 51, 8, 1220, 7182, 83, 8, 1635, 7182, 83, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 1220, 7182, 83, 8, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 1220, 7182, 83, 8, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 26009, 90, 51, 11, 69, 5512, 2170, 368, 897, 7, 51, 8, 3373, 7182, 83, 8, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 368, 897, 7, 51, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 26009, 90, 51, 11, 69, 5512, 2170, 14857, 7, 51, 8, 3373, 7182, 83, 8, 6624, 302, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 14857, 7, 51, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 5740, 25, 38185, 1497, 422, 6632, 481, 1255, 287, 281, 6631, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 600, 796, 2170, 368, 897, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 600, 796, 2170, 14857, 7, 51, 8, 628, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 12501, 796, 3509, 62, 600, 1220, 7182, 83, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 12501, 796, 949, 62, 600, 1220, 7182, 83, 628, 220, 220, 220, 220, 220, 220, 220, 611, 2835, 7, 51, 11, 3509, 62, 12501, 8, 6624, 40122, 7, 51, 11, 3509, 62, 12501, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 4008, 6624, 30002, 90, 51, 11, 69, 92, 7, 744, 7, 51, 11, 3509, 62, 12501, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 2835, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 611, 2835, 7, 51, 11, 949, 62, 12501, 8, 6624, 40122, 7, 51, 11, 949, 62, 12501, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2835, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 4008, 6624, 30002, 90, 51, 11, 69, 92, 7, 744, 7, 51, 11, 949, 62, 12501, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 2835, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 2213, 19524, 1, 2221, 198, 220, 220, 220, 2488, 9288, 40122, 7, 5317, 11, 30002, 17, 7, 15, 13, 2079, 4008, 24844, 657, 198, 220, 220, 220, 2488, 9288, 40122, 7, 5317, 11, 30002, 17, 32590, 15, 13, 2079, 4008, 24844, 657, 198, 220, 220, 220, 2488, 9288, 40122, 7, 5317, 11, 30002, 17, 7, 16, 4008, 24844, 352, 198, 220, 220, 220, 2488, 9288, 40122, 7, 5317, 11, 30002, 17, 32590, 16, 4008, 24844, 532, 16, 198, 220, 220, 220, 2488, 9288, 40122, 7, 28004, 368, 897, 7, 26009, 17, 4008, 41305, 2170, 368, 897, 7, 26009, 17, 8, 198, 220, 220, 220, 2488, 9288, 40122, 7, 5317, 11, 2170, 368, 897, 7, 26009, 17, 4008, 41305, 2170, 368, 897, 7, 26009, 17, 8, 198, 220, 220, 220, 2488, 9288, 40122, 7, 28004, 14857, 7, 26009, 17, 4008, 26870, 2170, 14857, 7, 26009, 17, 8, 198, 220, 220, 220, 2488, 9288, 40122, 7, 5317, 11, 2170, 14857, 7, 26009, 17, 4008, 26870, 2170, 14857, 7, 26009, 17, 8, 198, 220, 220, 220, 2488, 9288, 40122, 7, 25386, 7, 26009, 17, 4008, 6624, 657, 198, 220, 220, 220, 2488, 9288, 40122, 32590, 25386, 7, 26009, 17, 4008, 6624, 657, 628, 220, 220, 220, 2488, 9288, 2617, 366, 2213, 19524, 378, 25275, 415, 1, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 41433, 7, 2213, 19524, 7, 87, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 15139, 254, 2170, 14857, 7, 26009, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2352, 7, 87, 8, 532, 352, 1279, 2352, 7, 2213, 19524, 7, 87, 4008, 41305, 2352, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2352, 7, 2213, 19524, 7, 87, 4008, 1875, 657, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 284, 30002, 16, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 41433, 7, 14881, 13, 28029, 368, 377, 7, 940, 11, 30002, 17, 7, 2213, 19524, 7, 26009, 16, 11, 2124, 35514, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2352, 7, 26009, 17, 7, 2213, 19524, 7, 26009, 16, 11, 2124, 22305, 26870, 657, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 2213, 19524, 378, 15440, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 4833, 62, 14813, 62, 12501, 4402, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 26009, 17, 11, 2124, 8, 15139, 254, 40122, 7, 26009, 18, 11, 2124, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 26009, 17, 11, 2124, 8, 6624, 30002, 17, 7, 87, 532, 657, 13, 486, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 26009, 18, 11, 2124, 8, 6624, 30002, 18, 7, 87, 532, 657, 13, 8298, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 277, 287, 657, 25, 1507, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 26009, 90, 5317, 2414, 11, 277, 5512, 2124, 8, 6624, 21136, 62, 600, 7, 26009, 90, 5317, 2414, 11, 277, 5512, 3268, 4694, 58, 87, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 277, 287, 657, 25, 2167, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 26009, 90, 12804, 5317, 11, 277, 5512, 2124, 8, 6624, 21136, 62, 600, 7, 26009, 90, 12804, 5317, 11, 277, 5512, 3268, 4694, 58, 87, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 5749, 62, 14813, 62, 12501, 4402, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2748, 2100, 796, 30002, 18, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 277, 287, 513, 25, 1415, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 26009, 90, 5317, 2414, 11, 277, 5512, 2124, 8, 6624, 2748, 2100, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 277, 287, 657, 25, 1507, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 26009, 90, 5317, 2414, 11, 277, 5512, 2124, 8, 6624, 21136, 62, 600, 7, 26009, 90, 5317, 2414, 11, 277, 5512, 3268, 4694, 58, 87, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 49196, 286, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7182, 83, 796, 10832, 12727, 10707, 320, 874, 13, 1073, 16814, 7, 26009, 90, 51, 11, 69, 30072, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 1649, 23202, 422, 2170, 368, 897, 284, 257, 12462, 12, 4122, 340, 318, 1744, 326, 2233, 284, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 15440, 2428, 326, 262, 11706, 1744, 12178, 481, 7074, 262, 2170, 368, 897, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 22468, 796, 8654, 22468, 7, 1102, 1851, 7, 23839, 43879, 11, 2170, 368, 897, 7, 26009, 90, 51, 11, 69, 92, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 22468, 796, 1306, 22468, 7, 1102, 1851, 7, 23839, 43879, 11, 2170, 14857, 7, 26009, 90, 51, 11, 69, 92, 22305, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 22468, 8, 6624, 40122, 62, 2501, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 22468, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 22468, 8, 6624, 40122, 62, 2501, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 22468, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 368, 897, 7, 51, 22305, 6624, 30002, 90, 51, 11, 69, 92, 7, 7146, 7, 28004, 368, 897, 7, 51, 828, 7182, 83, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 40122, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 14857, 7, 51, 22305, 6624, 30002, 90, 51, 11, 69, 92, 7, 7146, 7, 28004, 14857, 7, 51, 828, 7182, 83, 4008, 198, 220, 220, 220, 886, 198, 437, 198, 198, 2, 304, 862, 326, 2499, 329, 37014, 1165, 198, 538, 13396, 7, 3712, 6030, 90, 51, 30072, 810, 309, 1279, 25, 34142, 796, 530, 7, 51, 2599, 25, 51, 198, 538, 13396, 7, 3712, 6030, 90, 51, 30072, 810, 309, 796, 304, 862, 7, 51, 8, 198, 198, 31, 9288, 2617, 366, 28300, 11, 2906, 346, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 329, 2124, 287, 8106, 7, 0, 3044, 1376, 11, 1994, 27160, 58, 26009, 17, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 87, 8, 41305, 2124, 1279, 4314, 7, 87, 8, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 87, 8, 532, 352, 1279, 2124, 41305, 2906, 346, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 41433, 7, 28300, 7, 87, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 41433, 7, 344, 346, 7, 87, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 309, 287, 685, 5317, 2624, 11, 2558, 2414, 11, 30002, 16, 11, 30002, 17, 11, 30002, 19, 11, 370, 26009, 17, 11, 370, 26009, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 51, 11, 2124, 8, 41305, 2124, 1279, 4314, 7, 51, 11, 2124, 8, 1343, 304, 862, 72, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 51, 11, 2124, 8, 532, 304, 862, 72, 7, 51, 8, 1279, 2124, 41305, 2906, 346, 7, 51, 11, 2124, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 28300, 11, 2906, 346, 15440, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 4833, 62, 14813, 62, 12501, 4402, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 26009, 17, 11, 2124, 8, 14512, 4314, 7, 26009, 18, 11, 2124, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 26009, 17, 11, 2124, 8, 6624, 30002, 17, 7, 87, 532, 657, 13, 486, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 26009, 18, 11, 2124, 8, 6624, 30002, 18, 7, 87, 532, 657, 13, 8298, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 277, 287, 657, 25, 1507, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 26009, 90, 5317, 2414, 11, 277, 5512, 2124, 8, 6624, 21136, 62, 600, 7, 26009, 90, 5317, 2414, 11, 277, 5512, 3268, 4694, 58, 87, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 26009, 18, 11, 2124, 8, 6624, 2906, 346, 7, 26009, 19, 11, 2124, 8, 6624, 30002, 19, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 5749, 62, 14813, 62, 12501, 4402, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 26009, 17, 11, 2124, 8, 15139, 254, 2906, 346, 7, 26009, 18, 11, 2124, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 26009, 17, 11, 2124, 8, 6624, 30002, 17, 7, 87, 1343, 657, 13, 486, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 26009, 18, 11, 2124, 8, 6624, 30002, 18, 7, 87, 1343, 657, 13, 8298, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 277, 287, 657, 25, 1507, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 26009, 90, 5317, 2414, 11, 277, 5512, 2124, 8, 6624, 21136, 62, 600, 7, 26009, 90, 5317, 2414, 11, 277, 5512, 3268, 4694, 58, 87, 4357, 2906, 346, 28, 7942, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 26009, 18, 11, 2124, 8, 6624, 4314, 7, 26009, 19, 11, 2124, 8, 6624, 30002, 19, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 49196, 286, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7182, 83, 796, 10832, 12727, 10707, 320, 874, 13, 1073, 16814, 7, 26009, 90, 51, 11, 69, 30072, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 1649, 23202, 422, 2170, 368, 897, 284, 257, 12462, 12, 4122, 340, 318, 1744, 326, 2233, 284, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 15440, 2428, 326, 262, 11706, 1744, 12178, 481, 7074, 262, 2170, 368, 897, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 22468, 796, 8654, 22468, 7, 1102, 1851, 7, 23839, 43879, 11, 2170, 368, 897, 7, 26009, 90, 51, 11, 69, 92, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 22468, 796, 1306, 22468, 7, 1102, 1851, 7, 23839, 43879, 11, 2170, 14857, 7, 26009, 90, 51, 11, 69, 92, 22305, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 22468, 8, 6624, 4314, 62, 2501, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 22468, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 22468, 8, 6624, 4314, 62, 2501, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 22468, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 22468, 8, 6624, 2906, 346, 62, 2501, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 22468, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 22468, 8, 6624, 2906, 346, 62, 2501, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 22468, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 5740, 25, 38185, 1497, 422, 6632, 481, 1255, 287, 281, 6631, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 600, 796, 2170, 368, 897, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 600, 796, 2170, 14857, 7, 51, 8, 628, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 12501, 796, 3509, 62, 600, 1220, 7182, 83, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 12501, 796, 949, 62, 600, 1220, 7182, 83, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 4008, 6624, 30002, 90, 51, 11, 69, 92, 7, 28300, 7, 51, 11, 3509, 62, 12501, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 611, 4314, 7, 51, 11, 949, 62, 12501, 8, 6624, 40122, 7, 51, 11, 949, 62, 12501, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4314, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 4008, 6624, 30002, 90, 51, 11, 69, 92, 7, 28300, 7, 51, 11, 949, 62, 12501, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 4314, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 611, 2906, 346, 7, 51, 11, 3509, 62, 12501, 8, 6624, 40122, 7, 51, 11, 3509, 62, 12501, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 4008, 6624, 30002, 90, 51, 11, 69, 92, 7, 344, 346, 7, 51, 11, 3509, 62, 12501, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 2906, 346, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 3509, 62, 600, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2906, 346, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 949, 62, 600, 4008, 6624, 30002, 90, 51, 11, 69, 92, 7, 344, 346, 7, 51, 11, 949, 62, 12501, 4008, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 4906, 10159, 1, 2221, 198, 220, 220, 220, 1303, 6208, 326, 4096, 4560, 389, 2099, 8245, 329, 477, 262, 4096, 18253, 3858, 13, 198, 220, 220, 220, 43458, 796, 685, 15, 11, 352, 11, 362, 11, 767, 11, 1467, 11, 4353, 60, 220, 1303, 1675, 3613, 640, 11, 836, 470, 1332, 477, 1744, 17790, 13, 198, 220, 220, 220, 2488, 9288, 2617, 329, 309, 287, 357, 10943, 30339, 1137, 62, 9936, 47, 1546, 986, 11, 4403, 5317, 35751, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 37, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1216, 858, 796, 8106, 7, 69, 3784, 69, 27, 28, 9806, 37, 11, 43458, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 791, 560, 4560, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 277, 287, 1216, 858, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 22570, 7, 26009, 90, 51, 11, 69, 92, 7, 16, 22305, 24844, 30002, 90, 51, 11, 69, 92, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 505, 7, 26009, 90, 51, 11, 69, 92, 7, 16, 22305, 24844, 30002, 90, 51, 11, 69, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 344, 346, 7, 26009, 90, 51, 11, 69, 92, 7, 16, 22305, 24844, 30002, 90, 51, 11, 69, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 744, 7, 26009, 90, 51, 11, 69, 92, 7, 16, 22305, 24844, 30002, 90, 51, 11, 69, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 8937, 7, 26009, 90, 51, 11, 69, 92, 7, 16, 22305, 24844, 30002, 90, 51, 11, 69, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 26009, 90, 51, 11, 69, 92, 7, 16, 8, 61, 17, 8, 24844, 30002, 90, 51, 11, 69, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 28004, 368, 897, 7, 26009, 90, 51, 11, 69, 92, 4008, 318, 64, 30002, 90, 51, 11, 69, 92, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 45755, 4560, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 329, 357, 69, 16, 11, 69, 17, 8, 287, 40806, 2024, 13, 11167, 7, 8310, 858, 11, 1216, 858, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 9806, 796, 3509, 7, 69, 16, 11, 69, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 26009, 90, 51, 11, 69, 16, 92, 7, 16, 8, 1343, 30002, 90, 51, 11, 69, 17, 92, 7, 15, 4008, 24844, 30002, 90, 51, 11, 69, 9806, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 26009, 90, 51, 11, 69, 16, 92, 7, 16, 8, 532, 30002, 90, 51, 11, 69, 17, 92, 7, 15, 4008, 24844, 30002, 90, 51, 11, 69, 9806, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 26009, 90, 51, 11, 69, 16, 92, 7, 16, 8, 1635, 30002, 90, 51, 11, 69, 17, 92, 7, 16, 4008, 24844, 30002, 90, 51, 11, 69, 9806, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 26009, 90, 51, 11, 69, 16, 92, 7, 16, 8, 1220, 30002, 90, 51, 11, 69, 17, 92, 7, 16, 4008, 24844, 30002, 90, 51, 11, 69, 9806, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 26009, 90, 51, 11, 69, 16, 92, 7, 16, 8, 6184, 115, 30002, 90, 51, 11, 69, 17, 92, 7, 16, 4008, 24844, 30002, 90, 51, 11, 69, 9806, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 9806, 7, 26009, 90, 51, 11, 69, 16, 92, 7, 16, 828, 30002, 90, 51, 11, 69, 17, 92, 7, 15, 22305, 24844, 30002, 90, 51, 11, 69, 9806, 92, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 1084, 7, 26009, 90, 51, 11, 69, 16, 92, 7, 16, 828, 30002, 90, 51, 11, 69, 17, 92, 7, 15, 22305, 24844, 30002, 90, 51, 11, 69, 9806, 92, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 4798, 1, 2221, 198, 220, 220, 220, 2488, 9288, 4731, 7, 26009, 17, 7, 16, 13, 405, 4008, 6624, 366, 16, 13, 405, 1, 198, 220, 220, 220, 2488, 9288, 4731, 7, 26009, 17, 7, 16, 13, 1954, 4008, 6624, 366, 16, 13, 1954, 1, 198, 220, 220, 220, 2488, 9288, 4731, 7, 26009, 17, 7, 3682, 13, 1821, 4008, 6624, 366, 3682, 13, 1821, 1, 198, 220, 220, 220, 2488, 9288, 4731, 7, 26009, 17, 32590, 3682, 13, 1821, 4008, 6624, 27444, 3682, 13, 1821, 1, 198, 220, 220, 220, 2488, 9288, 4731, 7, 26009, 17, 32590, 15, 13, 486, 4008, 6624, 27444, 15, 13, 486, 1, 198, 220, 220, 220, 2488, 9288, 4731, 7, 26009, 17, 7, 15, 4008, 6624, 366, 15, 13, 405, 1, 198, 220, 220, 220, 2488, 9288, 4731, 7, 13715, 10707, 4402, 90, 5317, 11, 15, 92, 7, 10163, 13, 19, 4008, 6624, 366, 10163, 1, 628, 220, 220, 220, 1303, 16531, 278, 257, 32465, 714, 307, 11491, 618, 1262, 257, 32465, 1295, 15440, 543, 318, 198, 220, 220, 220, 1303, 1969, 284, 393, 379, 262, 4179, 329, 674, 6143, 2099, 13, 198, 220, 220, 220, 2488, 9288, 2617, 366, 49196, 286, 720, 51, 1, 329, 309, 287, 7102, 30339, 1137, 62, 9936, 47, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 10832, 12727, 10707, 320, 874, 13, 9806, 62, 11201, 940, 7, 51, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2163, 46996, 7, 2100, 11, 277, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 965, 796, 4731, 7, 2100, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2469, 796, 13538, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 965, 58, 16, 60, 6624, 705, 19355, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2469, 796, 366, 21215, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 965, 796, 965, 58, 17, 25, 437, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 4731, 7, 12480, 11, 965, 58, 16, 4357, 366, 33283, 374, 15636, 7, 2536, 58, 17, 25, 437, 4357, 277, 11, 705, 15, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4731, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 368, 897, 7, 51, 22305, 6624, 46996, 7, 28004, 368, 897, 7, 51, 828, 277, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4731, 7, 260, 27381, 7, 26009, 90, 51, 11, 69, 5512, 2170, 14857, 7, 51, 22305, 6624, 46996, 7, 28004, 14857, 7, 51, 828, 277, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 12860, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 366, 5589, 529, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 18553, 7, 12860, 11, 30002, 17, 7, 16, 13, 405, 828, 4732, 28, 25, 5589, 529, 14804, 7942, 8, 6624, 366, 16, 13, 15, 1, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 18553, 7, 12860, 11, 30002, 17, 7, 16, 13, 1954, 828, 4732, 28, 25, 5589, 529, 14804, 7942, 8, 6624, 366, 16, 13, 1954, 1, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 18553, 7, 12860, 11, 30002, 17, 7, 3682, 13, 1821, 828, 4732, 28, 25, 5589, 529, 14804, 7942, 8, 6624, 366, 3682, 13, 19, 1, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 18553, 7, 12860, 11, 30002, 17, 32590, 3682, 13, 1821, 828, 4732, 28, 25, 5589, 529, 14804, 7942, 8, 6624, 27444, 3682, 13, 19, 1, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 18553, 7, 12860, 11, 30002, 17, 32590, 15, 13, 486, 828, 4732, 28, 25, 5589, 529, 14804, 7942, 8, 6624, 27444, 15, 13, 486, 1, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 18553, 7, 12860, 11, 30002, 17, 7, 15, 828, 4732, 28, 25, 5589, 529, 14804, 7942, 8, 6624, 366, 15, 13, 15, 1, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 41575, 7, 28004, 14857, 7, 13715, 10707, 4402, 90, 5317, 2414, 11, 362, 92, 4008, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 13715, 10707, 4402, 90, 5317, 2414, 11, 17, 92, 32590, 24, 1828, 2091, 23906, 2623, 5332, 2857, 38569, 13, 2919, 16725, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 41575, 7, 28004, 368, 897, 7, 13715, 10707, 4402, 90, 5317, 2414, 11, 362, 92, 4008, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 13715, 10707, 4402, 90, 5317, 2414, 11, 17, 92, 7, 24, 1828, 2091, 23906, 2623, 5332, 2857, 38569, 13, 2998, 16725, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 41575, 7, 28004, 14857, 7, 13715, 10707, 4402, 90, 5317, 2624, 11, 362, 92, 4008, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 13715, 10707, 4402, 90, 5317, 2624, 11, 17, 92, 32590, 17, 20198, 2780, 2623, 13, 2780, 16725, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 41575, 7, 28004, 368, 897, 7, 13715, 10707, 4402, 90, 5317, 2624, 11, 362, 92, 4008, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 13715, 10707, 4402, 90, 5317, 2624, 11, 17, 92, 7, 17, 20198, 2780, 2623, 13, 2857, 16725, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 8841, 1, 2221, 198, 220, 220, 220, 329, 2124, 287, 1994, 27160, 58, 26009, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 611, 657, 41305, 2352, 7, 87, 8, 1279, 8576, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 7231, 13, 18206, 7, 31, 834, 33365, 24212, 834, 11, 30277, 13, 29572, 7, 8841, 7, 87, 22305, 6624, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 29572, 62, 744, 1, 2221, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 29572, 62, 744, 7, 5317, 11, 366, 2598, 1600, 10485, 8199, 12423, 8, 6624, 657, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 29572, 62, 744, 7, 5317, 11, 366, 2231, 1600, 10485, 8199, 12423, 8, 6624, 657, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 29572, 62, 744, 7, 5317, 11, 366, 3510, 1600, 10485, 8199, 12423, 8, 6624, 352, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 29572, 62, 744, 7, 5317, 11, 366, 4051, 1600, 10485, 8199, 12423, 8, 6624, 657, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 29572, 62, 744, 7, 5317, 11, 366, 2816, 1600, 10485, 8199, 12423, 8, 6624, 352, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 29572, 62, 744, 7, 5317, 11, 366, 3980, 1600, 10485, 8199, 12423, 8, 6624, 352, 628, 220, 220, 220, 1303, 33141, 257, 1271, 286, 19561, 326, 21695, 262, 6143, 5339, 286, 2558, 12762, 198, 220, 220, 220, 2488, 9288, 10832, 12727, 10707, 320, 874, 13, 29572, 62, 744, 7, 5317, 23, 11, 366, 24, 1, 61, 1821, 11, 10485, 8199, 12423, 8, 6624, 352, 198, 437, 198, 198, 31, 9288, 2617, 366, 29572, 1, 2221, 198, 220, 220, 220, 1303, 5740, 25, 262, 44810, 973, 287, 262, 302, 27381, 276, 18253, 318, 973, 284, 7603, 262, 32465, 198, 220, 220, 220, 1303, 1295, 13, 198, 220, 220, 220, 2488, 9288, 2617, 366, 12501, 4402, 2292, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 10163, 4943, 220, 220, 6624, 302, 27381, 7, 26009, 17, 11, 17031, 62, 405, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 10163, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 1065, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27071, 10163, 4943, 220, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 1065, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 16, 13, 1954, 4943, 220, 6624, 302, 27381, 7, 26009, 17, 11, 352, 62, 1954, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 1065, 13, 18, 4943, 220, 6624, 302, 27381, 7, 26009, 17, 11, 1105, 62, 1270, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 10163, 19570, 220, 6624, 302, 27381, 7, 26009, 17, 11, 17031, 62, 405, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 10163, 13, 15, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 17031, 62, 405, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 10163, 4943, 220, 220, 6624, 302, 27381, 7, 26009, 17, 11, 532, 10163, 62, 405, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 10163, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 1065, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 13, 10163, 4943, 220, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 1065, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 16, 13, 1954, 4943, 220, 6624, 302, 27381, 7, 26009, 17, 11, 532, 16, 62, 1954, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 1065, 13, 18, 4943, 220, 6624, 302, 27381, 7, 26009, 17, 11, 532, 1065, 62, 1270, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 10163, 19570, 220, 6624, 302, 27381, 7, 26009, 17, 11, 532, 10163, 62, 405, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 10163, 13, 15, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 10163, 62, 405, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 41355, 33274, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 366, 1065, 68, 15, 4943, 220, 220, 6624, 302, 27381, 7, 26009, 19, 11, 3571, 30206, 62, 2388, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 366, 1065, 68, 18, 4943, 220, 220, 6624, 302, 27381, 7, 26009, 19, 11, 1105, 830, 62, 2388, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 366, 1065, 68, 12, 18, 4943, 220, 6624, 302, 27381, 7, 26009, 19, 11, 3571, 830, 62, 486, 1238, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 366, 16, 13, 17, 68, 15, 4943, 220, 6624, 302, 27381, 7, 26009, 19, 11, 17643, 16, 62, 11024, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 366, 16, 13, 17, 68, 18, 4943, 220, 6624, 302, 27381, 7, 26009, 19, 11, 5534, 2167, 62, 2388, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 366, 16, 13, 17, 68, 12, 18, 4943, 6624, 302, 27381, 7, 26009, 19, 11, 3571, 830, 62, 405, 1065, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 366, 16, 13, 17, 68, 12, 19, 4943, 6624, 302, 27381, 7, 26009, 19, 11, 3571, 830, 62, 18005, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 27444, 1065, 68, 15, 4943, 220, 220, 6624, 302, 27381, 7, 26009, 19, 11, 532, 18005, 17, 62, 2388, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 27444, 1065, 68, 18, 4943, 220, 220, 6624, 302, 27381, 7, 26009, 19, 11, 532, 1065, 830, 62, 2388, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 27444, 1065, 68, 12, 18, 4943, 220, 6624, 302, 27381, 7, 26009, 19, 11, 532, 20483, 62, 486, 1238, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 27444, 16, 13, 17, 68, 15, 4943, 220, 6624, 302, 27381, 7, 26009, 19, 11, 532, 2388, 16, 62, 11024, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 27444, 16, 13, 17, 68, 18, 4943, 220, 6624, 302, 27381, 7, 26009, 19, 11, 532, 486, 2167, 62, 2388, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 27444, 16, 13, 17, 68, 12, 18, 4943, 6624, 302, 27381, 7, 26009, 19, 11, 532, 20483, 62, 405, 1065, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 17032, 68, 12, 16, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 7388, 62, 3829, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 17032, 68, 12, 17, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 7769, 62, 2079, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 17032, 68, 12, 18, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 5534, 62, 405, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 17032, 68, 12, 19, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 3571, 62, 940, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 17032, 68, 12, 20, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 3571, 62, 486, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 17032, 68, 12, 21, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 3571, 62, 405, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 17032, 68, 12, 16, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 2079, 62, 3829, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 17032, 68, 12, 17, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 2931, 62, 2079, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 17032, 68, 12, 18, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 486, 62, 405, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 17032, 68, 12, 19, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 405, 62, 940, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 17032, 68, 12, 20, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 405, 62, 486, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 17032, 68, 12, 21, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 405, 62, 405, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 366, 24, 1, 61, 4846, 1635, 366, 68, 12, 3064, 4943, 6624, 302, 27381, 7, 26009, 19, 11, 657, 62, 8298, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 744, 284, 16936, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 30272, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 43489, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 27260, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2231, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 34229, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2231, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 30505, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 3510, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 29228, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 3510, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 30272, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 43489, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 27260, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 2231, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 34229, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 2231, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 30505, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 3510, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 29228, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 3510, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 28694, 4943, 220, 6624, 302, 27381, 7, 26009, 17, 11, 220, 657, 62, 486, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 28694, 4943, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 486, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 366, 16, 13, 20, 68, 12, 19, 4943, 6624, 302, 27381, 7, 26009, 19, 11, 657, 62, 34215, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 744, 284, 6632, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 30272, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 43489, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 27260, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 34229, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2231, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 30505, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2231, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 29228, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2231, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 30272, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 43489, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 27260, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 34229, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 2231, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 30505, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 2231, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 29228, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 532, 15, 62, 2231, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 28694, 1600, 10485, 2514, 28667, 8, 220, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 405, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 27444, 15, 13, 28694, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 405, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 19, 11, 366, 16, 13, 20, 68, 12, 19, 1600, 10485, 2514, 28667, 8, 6624, 302, 27381, 7, 26009, 19, 11, 657, 62, 18005, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 744, 12542, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 2598, 1600, 10485, 817, 8516, 8, 220, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2598, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 21136, 7, 26009, 17, 11, 366, 15, 13, 25644, 1600, 10485, 817, 8516, 8, 6624, 302, 27381, 7, 26009, 17, 11, 657, 62, 2598, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 366, 15, 13, 30272, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 366, 15, 13, 43489, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 366, 15, 13, 27260, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 366, 15, 13, 34229, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 366, 15, 13, 30505, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 366, 15, 13, 29228, 1600, 10485, 817, 8516, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 27444, 15, 13, 30272, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 27444, 15, 13, 43489, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 27444, 15, 13, 27260, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 27444, 15, 13, 34229, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 27444, 15, 13, 30505, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 27444, 15, 13, 29228, 1600, 10485, 817, 8516, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 366, 15, 13, 28694, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 17, 11, 27444, 15, 13, 28694, 1600, 10485, 817, 8516, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 554, 1069, 529, 12331, 21136, 7, 26009, 19, 11, 366, 16, 13, 20, 68, 12, 19, 1600, 10485, 817, 8516, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 259, 12102, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 3827, 11125, 12331, 21136, 7, 26009, 19, 11, 366, 16, 13, 17, 68, 3064, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 45751, 12331, 21136, 7, 26009, 19, 11, 366, 21943, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 45751, 12331, 21136, 7, 26009, 19, 11, 366, 16, 13, 17, 13, 18, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 62, 400, 8516, 45751, 12331, 21136, 7, 26009, 19, 11, 366, 16, 13, 17, 1600, 10485, 4933, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 71, 2140, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 277, 67, 16, 796, 10832, 10707, 4402, 90, 5317, 11, 604, 92, 7, 17, 13, 20, 8, 198, 220, 220, 220, 220, 220, 220, 220, 277, 67, 17, 796, 10832, 10707, 4402, 90, 5317, 11, 642, 92, 7, 17, 13, 20, 8, 198, 220, 220, 220, 220, 220, 220, 220, 277, 67, 18, 796, 10832, 10707, 4402, 90, 5317, 11, 604, 92, 7, 18, 13, 20, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 12234, 7, 16344, 16, 8, 6624, 12234, 7, 16344, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 12234, 7, 16344, 16, 8, 14512, 12234, 7, 16344, 18, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 12234, 7, 16344, 16, 8, 14512, 12234, 7, 16344, 16, 13, 72, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 12234, 7, 26009, 17, 7, 16, 1003, 940, 4008, 6624, 12234, 7, 16, 1003, 940, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 12234, 7, 26009, 17, 7, 16, 1003, 940, 4008, 15139, 254, 12234, 7, 15, 13, 16, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 437, 220, 1303, 3298, 1332, 2617, 198 ]
1.955182
19,858
<reponame>hashimoto-koh/Wild.jl import DataStructures: OrderedDict import StaticArrays: MVector import Serialization import SHA ################ # NSitem ################ abstract type AbstNSitem end struct NScst_item{T} <: AbstNSitem obj::T end mutable struct NSnoncst_item{T} <: AbstNSitem obj::T end Base.copy(x::Wild.AbstNSitem) = typeof(x)(x.obj) ################ # NSX{X} ################ struct NSX{X} <: AbstNS __dict::OrderedDict{Symbol, AbstNSitem} __fix_lck::MVector{2, Bool} # NSX{X}() where X = new{X}(#= __dict =# OrderedDict{Symbol, AbstNSitem}(), # #= __fix_lck =# MVector{2, Bool}(false, false)) NSX{X}(; ka...) where X = begin g = new(#= __dict =# OrderedDict{Symbol, AbstNSitem}(), #= __fix_lck =# MVector{2, Bool}(false, false)) setprp(g, k, v) = begin s = string(k) if length(s) > 3 && s[4] == '_' length(s) == 4 && Base.error("$(k) can't be used for property.") pre = Symbol(s[1:3]) if pre in [:cst, :dfn, :prp, :req, :mth, :fnc] setprp(Base.getproperty(g, pre), Symbol(s[5:end]), v) else Base.setproperty!(g, k, v) end else Base.setproperty!(g, k, v) end end for (k,v) in pairs(ka) setprp(g, k, v) end g end; end const NS = NSX{nothing} abstract type __NSFlgCodeMode end ################ # NS ################ Base.setproperty!(ns::AbstNS, atr::Symbol, x) = begin hasfield(typeof(ns), atr) && (return Base.setfield!(ns, atr, x)) atr == :exe && (return x(ns)) haskey(_NSdict0, atr) && Base.error("""'$(atr)' can't be used for property""") d = ns.__dict if haskey(d, atr) ns._fixed && Base.error("this NS is fixed!") o = d[atr].obj isa(o, NSPrp) && (o.fnc(ns, x); return) isa(d[atr], NScst_item) && Base.error("""'$(atr)' is const.""") else ns._lcked && Base.error("this NS is locked!") end y = isa(x, AbstNSitem) ? x : NSnoncst_item(x) d[atr] = (isa(y.obj, NSDfn) ? (isa(y, NScst_item) ? NScst_item : NSnoncst_item)(y.obj.fnc(ns)) : copy(y)) end Base.haskey(o::AbstNS, key::Symbol) = key ∈ o._keys Base.propertynames(ns::AbstNS, private::Bool=false) = (private ? tuple(Base.keys(ns.__dict)..., Base.keys(_NSdict0)..., Base.fieldnames(typeof(ns))...) : tuple(Base.keys(ns.__dict)..., Base.keys(_NSdict0)...)) Base.hasproperty(ns::AbstNS, atr::Symbol) = Base.hasfield(typeof(ns), atr) || haskey(_NSdict0, atr) || haskey(ns.__dict, atr) Base.getproperty(ns::AbstNS, atr::Symbol) = begin Base.hasfield(typeof(ns), atr) && (return Base.getfield(ns, atr)) haskey(_NSdict0, atr) && (return _NSdict0[atr](ns)) d = ns.__dict haskey(d, atr) || error("""this NS does not have a property named '$(atr)'.""") x = d[atr].obj; isa(x, Union{NSPrp, NSMth}) && (return x(ns)) isa(x, NSFnc) && (return x.fnc) isa(x, NSReq) && (y = x(ns); d[atr] = (isa(d[atr], NScst_item) ? NScst_item : NSnoncst_item)(y); return y) return x end ################ # __NSX_CodeMode ################ __NSX_CodeMode_CodeType = Vector{NamedTuple{(:atr, :obj),Tuple{Symbol,Any}}} struct __NSX_CodeMode <: AbstNS __code::__NSX_CodeMode_CodeType __instances __parallel::NSnoncst_item{Bool} __NSX_CodeMode() = new(#= __code =# __NSX_CodeMode_CodeType(), #= __instances =# [], #= __parallel =# NSnoncst_item{Bool}(false)) end __divNn(N::Integer, n::Integer) = begin k1 = (let v = fill(N ÷ n, n); v[1:N%n] .+= 1; accumulate(+, v); end) k0 = (let v = similar(k1); v[1] = 1; @. v[2:end] = k1[1:end-1] + 1; v; end) [i0:i1 for (i0,i1) in zip(k0,k1)] end Base.setproperty!(ns::__NSX_CodeMode, atr::Symbol, x) = begin hasfield(typeof(ns), atr) && (return Base.setfield!(ns, atr, x)) haskey(_NSdict0, atr) && Base.error("""'$(atr)' can't be used for property""") y = atr == :exe ? x : isa(x, AbstNSitem) ? x : NSnoncst_item(x) push!(ns.__code, NamedTuple{(:atr, :obj), Tuple{Symbol, Any}}((atr, y))) inst = ns.__instances[1] if ns.__parallel.obj @sync for r in __divNn(length(inst), Threads.nthreads()) Threads.@spawn foreach(i -> Base.setproperty!(i.o, atr, x), inst[r]) end else foreach(i -> Base.setproperty!(i.o, atr, x), inst) end end Base.haskey(ns::__NSX_CodeMode, key::Symbol) = key ∈ propertynames(ns) Base.propertynames(ns::__NSX_CodeMode, private::Bool=false) = tuple(Base.keys(_NSdict0)..., Base.fieldnames(typeof(ns))...) Base.hasproperty(ns::__NSX_CodeMode, atr::Symbol) = Base.hasfield(typeof(ns), atr) || haskey(_NSdict0, atr) Base.getproperty(ns::__NSX_CodeMode, atr::Symbol) = begin Base.hasfield(typeof(ns), atr) && (return Base.getfield(ns, atr)) haskey(_NSdict0, atr) && (return _NSdict0[atr](ns)) error("""This NS does not have a property named '$(atr)'.""") end; ################ # __NSClsInstance{X} ################ struct __NSClsInstance{X} <: AbstNS __dict::OrderedDict{Symbol, AbstNSitem} __fix_lck::MVector{2, Bool} cls::NS __NSClsInstance{X}(cls) where X = new{X}(#= __dict =# OrderedDict{Symbol, AbstNSitem}(), #= __fix_lck =# MVector{2, Bool}(false, false), #= cls =# cls) end Base.getproperty(nsi::__NSClsInstance, atr::Symbol) = begin Base.hasfield(typeof(nsi), atr) && (return Base.getfield(nsi, atr)) haskey(_NSdict0, atr) && (return _NSdict0[atr](nsi)) d = nsi.__dict if haskey(d, atr) x = d[atr].obj; isa(x, Union{NSTagFunc{:prp}, NSTagFunc{:mth}}) && (return x(nsi)) isa(x, NSTagFunc{:fnc}) && (return x.fnc) isa(x, NSTagFunc{:req}) && (y = x(nsi); d[atr] = (isa(d[atr], NScst_item) ? NScst_item : NSnoncst_item)(y); return y) return x else haskey(nsi.cls, atr) && (return Base.getproperty(nsi.cls, atr)) error("""This NS does not have a property named '$(atr)'.""") end end ################ # >>, >>> ################ Base.:>>( g::AbstNS, h::AbstNS) = h.import(g) Base.:>>>(g::AbstNS, h::AbstNS) = h.deepimport(g) ################ # genNSX, ns ################ # genNSX() = NSX{Symbol("NS_", string(bytes2hex(SHA.sha256(string(time_ns())))))} genNSX() = NSX{gensym()} genNSX(X) = NSX{X} nsx() = genNSX()() nsx(X) = genNSX(X)()
[ 27, 7856, 261, 480, 29, 17831, 43354, 12, 74, 1219, 14, 25946, 13, 20362, 198, 11748, 6060, 44909, 942, 25, 14230, 1068, 35, 713, 198, 11748, 36125, 3163, 20477, 25, 32947, 9250, 198, 11748, 23283, 1634, 198, 11748, 25630, 198, 198, 14468, 198, 2, 10896, 9186, 198, 14468, 198, 198, 397, 8709, 2099, 2275, 301, 8035, 9186, 886, 198, 198, 7249, 399, 3351, 301, 62, 9186, 90, 51, 92, 1279, 25, 2275, 301, 8035, 9186, 198, 220, 220, 220, 26181, 3712, 51, 198, 437, 198, 198, 76, 18187, 2878, 10896, 13159, 66, 301, 62, 9186, 90, 51, 92, 1279, 25, 2275, 301, 8035, 9186, 198, 220, 220, 220, 26181, 3712, 51, 198, 437, 198, 198, 14881, 13, 30073, 7, 87, 3712, 25946, 13, 4826, 301, 8035, 9186, 8, 796, 2099, 1659, 7, 87, 5769, 87, 13, 26801, 8, 198, 198, 14468, 198, 2, 10896, 55, 90, 55, 92, 198, 14468, 198, 198, 7249, 10896, 55, 90, 55, 92, 1279, 25, 2275, 301, 8035, 198, 220, 220, 220, 11593, 11600, 3712, 35422, 1068, 35, 713, 90, 13940, 23650, 11, 2275, 301, 8035, 9186, 92, 198, 220, 220, 220, 11593, 13049, 62, 75, 694, 3712, 44, 38469, 90, 17, 11, 347, 970, 92, 198, 198, 2, 220, 220, 220, 10896, 55, 90, 55, 92, 3419, 810, 1395, 796, 649, 90, 55, 92, 7, 2, 28, 11593, 11600, 220, 220, 220, 796, 2, 14230, 1068, 35, 713, 90, 13940, 23650, 11, 2275, 301, 8035, 9186, 92, 22784, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 28, 11593, 13049, 62, 75, 694, 796, 2, 32947, 9250, 90, 17, 11, 347, 970, 92, 7, 9562, 11, 3991, 4008, 198, 220, 220, 220, 10896, 55, 90, 55, 92, 7, 26, 38387, 23029, 810, 1395, 796, 198, 220, 220, 220, 220, 220, 220, 220, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 796, 649, 7, 2, 28, 11593, 11600, 220, 220, 220, 796, 2, 14230, 1068, 35, 713, 90, 13940, 23650, 11, 2275, 301, 8035, 9186, 92, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 28, 11593, 13049, 62, 75, 694, 796, 2, 32947, 9250, 90, 17, 11, 347, 970, 92, 7, 9562, 11, 3991, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 900, 1050, 79, 7, 70, 11, 479, 11, 410, 8, 796, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 796, 4731, 7, 74, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4129, 7, 82, 8, 1875, 513, 11405, 264, 58, 19, 60, 6624, 705, 62, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4129, 7, 82, 8, 6624, 604, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 18224, 7203, 3, 7, 74, 8, 460, 470, 307, 973, 329, 3119, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 662, 796, 38357, 7, 82, 58, 16, 25, 18, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 662, 287, 685, 25, 66, 301, 11, 1058, 7568, 77, 11, 1058, 1050, 79, 11, 1058, 42180, 11, 1058, 76, 400, 11, 1058, 69, 10782, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 900, 1050, 79, 7, 14881, 13, 1136, 26745, 7, 70, 11, 662, 828, 38357, 7, 82, 58, 20, 25, 437, 46570, 410, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 2617, 26745, 0, 7, 70, 11, 479, 11, 410, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 2617, 26745, 0, 7, 70, 11, 479, 11, 410, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 74, 11, 85, 8, 287, 14729, 7, 4914, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 900, 1050, 79, 7, 70, 11, 479, 11, 410, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 198, 220, 220, 220, 220, 220, 220, 220, 886, 26, 198, 437, 198, 198, 9979, 10896, 796, 10896, 55, 90, 22366, 92, 198, 198, 397, 8709, 2099, 11593, 8035, 7414, 70, 10669, 19076, 886, 198, 198, 14468, 198, 2, 10896, 198, 14468, 198, 198, 14881, 13, 2617, 26745, 0, 7, 5907, 3712, 4826, 301, 8035, 11, 379, 81, 3712, 13940, 23650, 11, 2124, 8, 796, 198, 220, 220, 220, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 468, 3245, 7, 4906, 1659, 7, 5907, 828, 379, 81, 8, 11405, 357, 7783, 7308, 13, 2617, 3245, 0, 7, 5907, 11, 379, 81, 11, 2124, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 379, 81, 6624, 1058, 13499, 11405, 357, 7783, 2124, 7, 5907, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 468, 2539, 28264, 8035, 11600, 15, 11, 379, 81, 8, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 18224, 7203, 15931, 6, 3, 7, 265, 81, 33047, 460, 470, 307, 973, 329, 3119, 15931, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 288, 796, 36545, 13, 834, 11600, 628, 220, 220, 220, 220, 220, 220, 220, 611, 468, 2539, 7, 67, 11, 379, 81, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36545, 13557, 34021, 11405, 7308, 13, 18224, 7203, 5661, 10896, 318, 5969, 2474, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 267, 796, 288, 58, 265, 81, 4083, 26801, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 64, 7, 78, 11, 399, 4303, 81, 79, 8, 11405, 357, 78, 13, 69, 10782, 7, 5907, 11, 2124, 1776, 1441, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 64, 7, 67, 58, 265, 81, 4357, 399, 3351, 301, 62, 9186, 8, 11405, 7308, 13, 18224, 7203, 15931, 6, 3, 7, 265, 81, 33047, 318, 1500, 32203, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36545, 13557, 75, 694, 276, 11405, 7308, 13, 18224, 7203, 5661, 10896, 318, 8970, 2474, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 331, 796, 318, 64, 7, 87, 11, 2275, 301, 8035, 9186, 8, 5633, 2124, 1058, 10896, 13159, 66, 301, 62, 9186, 7, 87, 8, 628, 220, 220, 220, 220, 220, 220, 220, 288, 58, 265, 81, 60, 796, 357, 9160, 7, 88, 13, 26801, 11, 399, 10305, 22184, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5633, 357, 9160, 7, 88, 11, 399, 3351, 301, 62, 9186, 8, 5633, 399, 3351, 301, 62, 9186, 1058, 10896, 13159, 66, 301, 62, 9186, 5769, 88, 13, 26801, 13, 69, 10782, 7, 5907, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 4866, 7, 88, 4008, 198, 220, 220, 220, 886, 198, 198, 14881, 13, 10134, 2539, 7, 78, 3712, 4826, 301, 8035, 11, 1994, 3712, 13940, 23650, 8, 796, 1994, 18872, 230, 267, 13557, 13083, 198, 198, 14881, 13, 26745, 14933, 7, 5907, 3712, 4826, 301, 8035, 11, 2839, 3712, 33, 970, 28, 9562, 8, 796, 198, 220, 220, 220, 357, 19734, 198, 220, 220, 220, 220, 5633, 46545, 7, 14881, 13, 13083, 7, 5907, 13, 834, 11600, 26513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 13083, 28264, 8035, 11600, 15, 26513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 3245, 14933, 7, 4906, 1659, 7, 5907, 4008, 23029, 198, 220, 220, 220, 220, 1058, 46545, 7, 14881, 13, 13083, 7, 5907, 13, 834, 11600, 26513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 13083, 28264, 8035, 11600, 15, 26513, 4008, 628, 198, 14881, 13, 10134, 26745, 7, 5907, 3712, 4826, 301, 8035, 11, 379, 81, 3712, 13940, 23650, 8, 796, 198, 220, 220, 220, 7308, 13, 10134, 3245, 7, 4906, 1659, 7, 5907, 828, 379, 81, 8, 8614, 198, 220, 220, 220, 468, 2539, 28264, 8035, 11600, 15, 11, 379, 81, 8, 8614, 198, 220, 220, 220, 468, 2539, 7, 5907, 13, 834, 11600, 11, 379, 81, 8, 198, 198, 14881, 13, 1136, 26745, 7, 5907, 3712, 4826, 301, 8035, 11, 379, 81, 3712, 13940, 23650, 8, 796, 198, 220, 220, 220, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 10134, 3245, 7, 4906, 1659, 7, 5907, 828, 379, 81, 8, 11405, 357, 7783, 7308, 13, 1136, 3245, 7, 5907, 11, 379, 81, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 468, 2539, 28264, 8035, 11600, 15, 11, 379, 81, 8, 11405, 357, 7783, 4808, 8035, 11600, 15, 58, 265, 81, 16151, 5907, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 288, 796, 36545, 13, 834, 11600, 628, 220, 220, 220, 220, 220, 220, 220, 468, 2539, 7, 67, 11, 379, 81, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 15931, 5661, 10896, 857, 407, 423, 257, 3119, 3706, 705, 3, 7, 265, 81, 8, 30827, 1, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 288, 58, 265, 81, 4083, 26801, 26, 198, 220, 220, 220, 220, 220, 220, 220, 318, 64, 7, 87, 11, 4479, 90, 45, 4303, 81, 79, 11, 10896, 44, 400, 30072, 11405, 357, 7783, 2124, 7, 5907, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 318, 64, 7, 87, 11, 10896, 37, 10782, 8, 11405, 357, 7783, 2124, 13, 69, 10782, 8, 198, 220, 220, 220, 220, 220, 220, 220, 318, 64, 7, 87, 11, 10896, 3041, 80, 8, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 88, 796, 2124, 7, 5907, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 58, 265, 81, 60, 796, 357, 9160, 7, 67, 58, 265, 81, 4357, 399, 3351, 301, 62, 9186, 8, 5633, 399, 3351, 301, 62, 9186, 1058, 10896, 13159, 66, 301, 62, 9186, 5769, 88, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 331, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2124, 198, 220, 220, 220, 886, 198, 198, 14468, 198, 2, 11593, 8035, 55, 62, 10669, 19076, 198, 14468, 198, 198, 834, 8035, 55, 62, 10669, 19076, 62, 10669, 6030, 796, 20650, 90, 45, 2434, 51, 29291, 90, 7, 25, 265, 81, 11, 1058, 26801, 828, 51, 29291, 90, 13940, 23650, 11, 7149, 42535, 198, 7249, 11593, 8035, 55, 62, 10669, 19076, 1279, 25, 2275, 301, 8035, 198, 220, 220, 220, 11593, 8189, 3712, 834, 8035, 55, 62, 10669, 19076, 62, 10669, 6030, 198, 220, 220, 220, 11593, 8625, 1817, 198, 220, 220, 220, 11593, 1845, 29363, 3712, 8035, 13159, 66, 301, 62, 9186, 90, 33, 970, 92, 198, 220, 220, 220, 11593, 8035, 55, 62, 10669, 19076, 3419, 796, 198, 220, 220, 220, 220, 220, 220, 220, 649, 7, 2, 28, 11593, 8189, 220, 220, 220, 220, 220, 796, 2, 11593, 8035, 55, 62, 10669, 19076, 62, 10669, 6030, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 28, 11593, 8625, 1817, 796, 2, 685, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 28, 11593, 1845, 29363, 220, 796, 2, 10896, 13159, 66, 301, 62, 9186, 90, 33, 970, 92, 7, 9562, 4008, 198, 437, 198, 198, 834, 7146, 45, 77, 7, 45, 3712, 46541, 11, 299, 3712, 46541, 8, 796, 198, 27471, 198, 220, 220, 220, 479, 16, 796, 357, 1616, 410, 796, 6070, 7, 45, 6184, 115, 299, 11, 299, 1776, 410, 58, 16, 25, 45, 4, 77, 60, 764, 47932, 352, 26, 29915, 7, 28200, 410, 1776, 886, 8, 198, 220, 220, 220, 479, 15, 796, 357, 1616, 410, 796, 2092, 7, 74, 16, 1776, 410, 58, 16, 60, 796, 352, 26, 2488, 13, 410, 58, 17, 25, 437, 60, 796, 479, 16, 58, 16, 25, 437, 12, 16, 60, 1343, 352, 26, 410, 26, 886, 8, 198, 220, 220, 220, 685, 72, 15, 25, 72, 16, 329, 357, 72, 15, 11, 72, 16, 8, 287, 19974, 7, 74, 15, 11, 74, 16, 15437, 198, 437, 198, 198, 14881, 13, 2617, 26745, 0, 7, 5907, 3712, 834, 8035, 55, 62, 10669, 19076, 11, 379, 81, 3712, 13940, 23650, 11, 2124, 8, 796, 198, 220, 220, 220, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 468, 3245, 7, 4906, 1659, 7, 5907, 828, 379, 81, 8, 11405, 357, 7783, 7308, 13, 2617, 3245, 0, 7, 5907, 11, 379, 81, 11, 2124, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 468, 2539, 28264, 8035, 11600, 15, 11, 379, 81, 8, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 18224, 7203, 15931, 6, 3, 7, 265, 81, 33047, 460, 470, 307, 973, 329, 3119, 15931, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 331, 796, 379, 81, 6624, 1058, 13499, 5633, 2124, 1058, 318, 64, 7, 87, 11, 2275, 301, 8035, 9186, 8, 5633, 2124, 1058, 10896, 13159, 66, 301, 62, 9186, 7, 87, 8, 628, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 5907, 13, 834, 8189, 11, 34441, 51, 29291, 90, 7, 25, 265, 81, 11, 1058, 26801, 828, 309, 29291, 90, 13940, 23650, 11, 4377, 11709, 19510, 265, 81, 11, 331, 22305, 628, 220, 220, 220, 220, 220, 220, 220, 916, 796, 36545, 13, 834, 8625, 1817, 58, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 611, 36545, 13, 834, 1845, 29363, 13, 26801, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 27261, 329, 374, 287, 11593, 7146, 45, 77, 7, 13664, 7, 8625, 828, 14122, 82, 13, 77, 16663, 82, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14122, 82, 13, 31, 48183, 1674, 620, 7, 72, 4613, 7308, 13, 2617, 26745, 0, 7, 72, 13, 78, 11, 379, 81, 11, 2124, 828, 916, 58, 81, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1674, 620, 7, 72, 4613, 7308, 13, 2617, 26745, 0, 7, 72, 13, 78, 11, 379, 81, 11, 2124, 828, 916, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 198, 14881, 13, 10134, 2539, 7, 5907, 3712, 834, 8035, 55, 62, 10669, 19076, 11, 1994, 3712, 13940, 23650, 8, 796, 1994, 18872, 230, 3119, 14933, 7, 5907, 8, 198, 198, 14881, 13, 26745, 14933, 7, 5907, 3712, 834, 8035, 55, 62, 10669, 19076, 11, 2839, 3712, 33, 970, 28, 9562, 8, 796, 198, 220, 220, 220, 46545, 7, 14881, 13, 13083, 28264, 8035, 11600, 15, 26513, 11, 7308, 13, 3245, 14933, 7, 4906, 1659, 7, 5907, 4008, 23029, 198, 198, 14881, 13, 10134, 26745, 7, 5907, 3712, 834, 8035, 55, 62, 10669, 19076, 11, 379, 81, 3712, 13940, 23650, 8, 796, 198, 220, 220, 220, 7308, 13, 10134, 3245, 7, 4906, 1659, 7, 5907, 828, 379, 81, 8, 8614, 468, 2539, 28264, 8035, 11600, 15, 11, 379, 81, 8, 628, 198, 14881, 13, 1136, 26745, 7, 5907, 3712, 834, 8035, 55, 62, 10669, 19076, 11, 379, 81, 3712, 13940, 23650, 8, 796, 198, 220, 220, 220, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 10134, 3245, 7, 4906, 1659, 7, 5907, 828, 379, 81, 8, 11405, 357, 7783, 7308, 13, 1136, 3245, 7, 5907, 11, 379, 81, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 468, 2539, 28264, 8035, 11600, 15, 11, 379, 81, 8, 11405, 357, 7783, 4808, 8035, 11600, 15, 58, 265, 81, 16151, 5907, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 15931, 1212, 10896, 857, 407, 423, 257, 3119, 3706, 705, 3, 7, 265, 81, 8, 30827, 1, 4943, 198, 220, 220, 220, 886, 26, 198, 198, 14468, 198, 2, 11593, 8035, 2601, 82, 33384, 90, 55, 92, 198, 14468, 198, 198, 7249, 11593, 8035, 2601, 82, 33384, 90, 55, 92, 1279, 25, 2275, 301, 8035, 198, 220, 220, 220, 11593, 11600, 3712, 35422, 1068, 35, 713, 90, 13940, 23650, 11, 2275, 301, 8035, 9186, 92, 198, 220, 220, 220, 11593, 13049, 62, 75, 694, 3712, 44, 38469, 90, 17, 11, 347, 970, 92, 198, 220, 220, 220, 537, 82, 3712, 8035, 628, 220, 220, 220, 11593, 8035, 2601, 82, 33384, 90, 55, 92, 7, 565, 82, 8, 810, 1395, 796, 198, 220, 220, 220, 220, 220, 220, 220, 649, 90, 55, 92, 7, 2, 28, 11593, 11600, 220, 220, 220, 796, 2, 14230, 1068, 35, 713, 90, 13940, 23650, 11, 2275, 301, 8035, 9186, 92, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 28, 11593, 13049, 62, 75, 694, 796, 2, 32947, 9250, 90, 17, 11, 347, 970, 92, 7, 9562, 11, 3991, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 28, 537, 82, 220, 220, 220, 220, 220, 220, 796, 2, 537, 82, 8, 198, 437, 198, 198, 14881, 13, 1136, 26745, 7, 5907, 72, 3712, 834, 8035, 2601, 82, 33384, 11, 379, 81, 3712, 13940, 23650, 8, 796, 198, 220, 220, 220, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 10134, 3245, 7, 4906, 1659, 7, 5907, 72, 828, 379, 81, 8, 11405, 357, 7783, 7308, 13, 1136, 3245, 7, 5907, 72, 11, 379, 81, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 468, 2539, 28264, 8035, 11600, 15, 11, 379, 81, 8, 11405, 357, 7783, 4808, 8035, 11600, 15, 58, 265, 81, 16151, 5907, 72, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 288, 796, 299, 13396, 13, 834, 11600, 628, 220, 220, 220, 220, 220, 220, 220, 611, 468, 2539, 7, 67, 11, 379, 81, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 288, 58, 265, 81, 4083, 26801, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 64, 7, 87, 11, 4479, 90, 45, 2257, 363, 37, 19524, 90, 25, 1050, 79, 5512, 399, 2257, 363, 37, 19524, 90, 25, 76, 400, 11709, 8, 11405, 357, 7783, 2124, 7, 5907, 72, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 64, 7, 87, 11, 399, 2257, 363, 37, 19524, 90, 25, 69, 10782, 30072, 11405, 357, 7783, 2124, 13, 69, 10782, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 64, 7, 87, 11, 399, 2257, 363, 37, 19524, 90, 25, 42180, 30072, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 88, 796, 2124, 7, 5907, 72, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 58, 265, 81, 60, 796, 357, 9160, 7, 67, 58, 265, 81, 4357, 399, 3351, 301, 62, 9186, 8, 5633, 399, 3351, 301, 62, 9186, 1058, 10896, 13159, 66, 301, 62, 9186, 5769, 88, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 331, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 468, 2539, 7, 5907, 72, 13, 565, 82, 11, 379, 81, 8, 11405, 357, 7783, 7308, 13, 1136, 26745, 7, 5907, 72, 13, 565, 82, 11, 379, 81, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 15931, 1212, 10896, 857, 407, 423, 257, 3119, 3706, 705, 3, 7, 265, 81, 8, 30827, 1, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 198, 14468, 198, 2, 9609, 11, 13163, 198, 14468, 198, 198, 14881, 11207, 4211, 7, 308, 3712, 4826, 301, 8035, 11, 289, 3712, 4826, 301, 8035, 8, 796, 289, 13, 11748, 7, 70, 8, 198, 14881, 11207, 33409, 7, 70, 3712, 4826, 301, 8035, 11, 289, 3712, 4826, 301, 8035, 8, 796, 289, 13, 22089, 11748, 7, 70, 8, 198, 198, 14468, 198, 2, 2429, 8035, 55, 11, 36545, 198, 14468, 198, 198, 2, 2429, 8035, 55, 3419, 796, 10896, 55, 90, 13940, 23650, 7203, 8035, 62, 1600, 4731, 7, 33661, 17, 33095, 7, 37596, 13, 26270, 11645, 7, 8841, 7, 2435, 62, 5907, 3419, 4008, 22305, 92, 198, 5235, 8035, 55, 3419, 796, 10896, 55, 90, 70, 641, 4948, 3419, 92, 198, 5235, 8035, 55, 7, 55, 8, 796, 10896, 55, 90, 55, 92, 198, 198, 5907, 87, 3419, 796, 2429, 8035, 55, 3419, 3419, 198, 5907, 87, 7, 55, 8, 796, 2429, 8035, 55, 7, 55, 8, 3419, 198 ]
1.861032
3,857
<reponame>aerappa/Gridap.jl module AlgebraTests using Test @testset "AlgebraInterfaces" begin include("AlgebraInterfacesTests.jl") end @testset "SparseMatrixCSC" begin include("SparseMatrixCSCTests.jl") end @testset "SparseMatrixCSR" begin include("SparseMatrixCSRTests.jl") end @testset "SymSparseMatrixCSR" begin include("SymSparseMatrixCSRTests.jl") end @testset "NonlinearOperators" begin include("NonlinearOperatorsTests.jl") end @testset "NonlinearSolvers" begin include("NonlinearSolversTests.jl") end @testset "NLSolvers" begin include("NLSolversTests.jl") end @testset "LinearSolvers" begin include("LinearSolversTests.jl") end end # module
[ 27, 7856, 261, 480, 29, 25534, 20975, 14, 41339, 499, 13, 20362, 198, 21412, 978, 29230, 51, 3558, 198, 198, 3500, 6208, 198, 198, 31, 9288, 2617, 366, 2348, 29230, 9492, 32186, 1, 2221, 2291, 7203, 2348, 29230, 9492, 32186, 51, 3558, 13, 20362, 4943, 886, 198, 198, 31, 9288, 2617, 366, 50, 29572, 46912, 34, 6173, 1, 2221, 2291, 7203, 50, 29572, 46912, 7902, 4177, 3558, 13, 20362, 4943, 886, 198, 198, 31, 9288, 2617, 366, 50, 29572, 46912, 7902, 49, 1, 2221, 2291, 7203, 50, 29572, 46912, 7902, 14181, 3558, 13, 20362, 4943, 886, 198, 198, 31, 9288, 2617, 366, 43094, 50, 29572, 46912, 7902, 49, 1, 2221, 2291, 7203, 43094, 50, 29572, 46912, 7902, 14181, 3558, 13, 20362, 4943, 886, 198, 198, 31, 9288, 2617, 366, 15419, 29127, 18843, 2024, 1, 2221, 2291, 7203, 15419, 29127, 18843, 2024, 51, 3558, 13, 20362, 4943, 886, 198, 198, 31, 9288, 2617, 366, 15419, 29127, 36949, 690, 1, 2221, 2291, 7203, 15419, 29127, 36949, 690, 51, 3558, 13, 20362, 4943, 886, 198, 198, 31, 9288, 2617, 366, 45, 6561, 349, 690, 1, 2221, 2291, 7203, 45, 6561, 349, 690, 51, 3558, 13, 20362, 4943, 886, 198, 198, 31, 9288, 2617, 366, 14993, 451, 36949, 690, 1, 2221, 2291, 7203, 14993, 451, 36949, 690, 51, 3558, 13, 20362, 4943, 886, 198, 198, 437, 1303, 8265, 198 ]
2.933333
225
<reponame>frederikgeth/PowerModelsPrivacyPreserving.jl """ Creates Ohms constraints (yt post fix indicates that Y and T values are in rectangular form) ``` p[f_idx] == (g+g_fr)/tm*v[f_bus]^2 + (-g*tr+b*ti)/tm^2*(v[f_bus]*v[t_bus]*cos(t[f_bus]-t[t_bus])) + (-b*tr-g*ti)/tm^2*(v[f_bus]*v[t_bus]*sin(t[f_bus]-t[t_bus])) q[f_idx] == -(b+b_fr)/tm*v[f_bus]^2 - (-b*tr-g*ti)/tm^2*(v[f_bus]*v[t_bus]*cos(t[f_bus]-t[t_bus])) + (-g*tr+b*ti)/tm^2*(v[f_bus]*v[t_bus]*sin(t[f_bus]-t[t_bus])) ``` """ function constraint_ohms_from_variable_impedance(pm::_PM.AbstractACPModel, n::Int, f_bus, t_bus, f_idx, t_idx, g, b, g_fr, b_fr, tr, ti, tm) (l,i,j) = f_idx p_fr = _PM.var(pm, n, :p, f_idx) q_fr = _PM.var(pm, n, :q, f_idx) vm_fr = _PM.var(pm, n, :vm, f_bus) vm_to = _PM.var(pm, n, :vm, t_bus) va_fr = _PM.var(pm, n, :va, f_bus) va_to = _PM.var(pm, n, :va, t_bus) b = _PM.var(pm, n, :b, l) g = _PM.var(pm, n, :g, l) # g = y*r b_fr = _PM.var(pm, n, :b_shunt, l) g_fr = _PM.var(pm, n, :g_shunt, l) JuMP.@NLconstraint(pm.model, p_fr == (g+g_fr)/tm^2*vm_fr^2 + (-g*tr+b*ti)/tm^2*(vm_fr*vm_to*cos(va_fr-va_to)) + (-b*tr-g*ti)/tm^2*(vm_fr*vm_to*sin(va_fr-va_to)) ) JuMP.@NLconstraint(pm.model, q_fr == -(b+b_fr)/tm^2*vm_fr^2 - (-b*tr-g*ti)/tm^2*(vm_fr*vm_to*cos(va_fr-va_to)) + (-g*tr+b*ti)/tm^2*(vm_fr*vm_to*sin(va_fr-va_to)) ) end """ Creates Ohms constraints (yt post fix indicates that Y and T values are in rectangular form) ``` p[t_idx] == (g+g_to)*v[t_bus]^2 + (-g*tr-b*ti)/tm^2*(v[t_bus]*v[f_bus]*cos(t[t_bus]-t[f_bus])) + (-b*tr+g*ti)/tm^2*(v[t_bus]*v[f_bus]*sin(t[t_bus]-t[f_bus])) q[t_idx] == -(b+b_to)*v[t_bus]^2 - (-b*tr+g*ti)/tm^2*(v[t_bus]*v[f_bus]*cos(t[f_bus]-t[t_bus])) + (-g*tr-b*ti)/tm^2*(v[t_bus]*v[f_bus]*sin(t[t_bus]-t[f_bus])) ``` """ function constraint_ohms_to_variable_impedance(pm::_PM.AbstractACPModel, n::Int, f_bus, t_bus, f_idx, t_idx, g, b, g_to, b_to, tr, ti, tm) (l,i,j) = f_idx p_to = _PM.var(pm, n, :p, t_idx) q_to = _PM.var(pm, n, :q, t_idx) vm_fr = _PM.var(pm, n, :vm, f_bus) vm_to = _PM.var(pm, n, :vm, t_bus) va_fr = _PM.var(pm, n, :va, f_bus) va_to = _PM.var(pm, n, :va, t_bus) # r = g/b b = _PM.var(pm, n, :b, l) g = _PM.var(pm, n, :g, l) b_to = _PM.var(pm, n, :b_shunt, l) g_to = _PM.var(pm, n, :g_shunt, l) # g = y*r JuMP.@NLconstraint(pm.model, p_to == (g+g_to)*vm_to^2 + (-g*tr-b*ti)/tm^2*(vm_to*vm_fr*cos(va_to-va_fr)) + (-b*tr+g*ti)/tm^2*(vm_to*vm_fr*sin(va_to-va_fr)) ) JuMP.@NLconstraint(pm.model, q_to == -(b+b_to)*vm_to^2 - (-b*tr+g*ti)/tm^2*(vm_to*vm_fr*cos(va_to-va_fr)) + (-g*tr-b*ti)/tm^2*(vm_to*vm_fr*sin(va_to-va_fr)) ) end """ Defines the faithfullness in terms of grid losses |actual_loss - reference_loss|/(reference_loss) <= beta we split this in two constraints to deal with the absolute value |x| <= y iff x <=y and -x<=y """ function constraint_loss_faithfulness(pm::_PM.AbstractPowerModel, n::Int, ref_loss, beta) arcs_from = _PM.ref(pm, :arcs_from) p = _PM.var(pm, :p) loss = sum(p[(l,i,j)] + p[(l,j,i)] for (l,i,j) in arcs_from) JuMP.@constraint(pm.model, (loss - ref_loss)/(ref_loss) <= beta) JuMP.@constraint(pm.model, (ref_loss - loss)/(ref_loss) <= beta) end function constraint_cost_faithfulness(pm::_PM.AbstractPowerModel, n::Int, ref_cost, beta) cost = _PM.var(pm, :cost) JuMP.@constraint(pm.model, (cost - ref_cost)/(ref_cost) <= beta) JuMP.@constraint(pm.model, (ref_cost - cost)/(ref_cost) <= beta) end "Supporting only quadratic cost functions for generators breaks compatibility with Matpower to some extent" function constraint_fuel_cost_quadratic(pm::_PM.AbstractPowerModel) gen_cost = Dict() for (n, nw_ref) in _PM.nws(pm) for (i,gen) in nw_ref[:gen] pg = sum( _PM.var(pm, n, :pg, i)[c] for c in _PM.conductor_ids(pm, n) ) if length(gen["cost"]) == 1 gen_cost[(n,i)] = gen["cost"][1] elseif length(gen["cost"]) == 2 gen_cost[(n,i)] = gen["cost"][1]*pg + gen["cost"][2] elseif length(gen["cost"]) == 3 gen_cost[(n,i)] = gen["cost"][1]*pg^2 + gen["cost"][2]*pg + gen["cost"][3] else gen_cost[(n,i)] = 0.0 end end end cost = _PM.var(pm, :cost) JuMP.@constraint(pm.model, cost == sum( sum( gen_cost[(n,i)] for (i,gen) in nw_ref[:gen] ) for (n, nw_ref) in _PM.nws(pm)) ) end function constraint_gen_bounds_cc(pm::_PM.AbstractPowerModel, n::Int, i, pmin, pmax, qmin, qmax, eta) pg = _PM.var(pm, n, :pg, i) qg = _PM.var(pm, n, :qg, i) d = Distributions.Normal() z = Distributions.quantile(d,eta) # JuMP.@constraint(pm.model, (cost - ref_cost)/(ref_cost) <= beta) end
[ 27, 7856, 261, 480, 29, 39193, 263, 1134, 1136, 71, 14, 13434, 5841, 1424, 48948, 25460, 14344, 13, 20362, 198, 198, 37811, 198, 16719, 274, 3966, 907, 17778, 357, 20760, 1281, 4259, 9217, 326, 575, 290, 309, 3815, 389, 287, 36954, 1296, 8, 198, 15506, 63, 198, 79, 58, 69, 62, 312, 87, 60, 6624, 220, 357, 70, 10, 70, 62, 8310, 20679, 17209, 9, 85, 58, 69, 62, 10885, 60, 61, 17, 1343, 13841, 70, 9, 2213, 10, 65, 9, 20259, 20679, 17209, 61, 17, 9, 7, 85, 58, 69, 62, 10885, 60, 9, 85, 58, 83, 62, 10885, 60, 9, 6966, 7, 83, 58, 69, 62, 10885, 45297, 83, 58, 83, 62, 10885, 60, 4008, 1343, 13841, 65, 9, 2213, 12, 70, 9, 20259, 20679, 17209, 61, 17, 9, 7, 85, 58, 69, 62, 10885, 60, 9, 85, 58, 83, 62, 10885, 60, 9, 31369, 7, 83, 58, 69, 62, 10885, 45297, 83, 58, 83, 62, 10885, 60, 4008, 198, 80, 58, 69, 62, 312, 87, 60, 6624, 532, 7, 65, 10, 65, 62, 8310, 20679, 17209, 9, 85, 58, 69, 62, 10885, 60, 61, 17, 532, 13841, 65, 9, 2213, 12, 70, 9, 20259, 20679, 17209, 61, 17, 9, 7, 85, 58, 69, 62, 10885, 60, 9, 85, 58, 83, 62, 10885, 60, 9, 6966, 7, 83, 58, 69, 62, 10885, 45297, 83, 58, 83, 62, 10885, 60, 4008, 1343, 13841, 70, 9, 2213, 10, 65, 9, 20259, 20679, 17209, 61, 17, 9, 7, 85, 58, 69, 62, 10885, 60, 9, 85, 58, 83, 62, 10885, 60, 9, 31369, 7, 83, 58, 69, 62, 10885, 45297, 83, 58, 83, 62, 10885, 60, 4008, 198, 15506, 63, 198, 37811, 198, 8818, 32315, 62, 1219, 907, 62, 6738, 62, 45286, 62, 320, 9124, 590, 7, 4426, 3712, 62, 5868, 13, 23839, 33056, 17633, 11, 299, 3712, 5317, 11, 277, 62, 10885, 11, 256, 62, 10885, 11, 277, 62, 312, 87, 11, 256, 62, 312, 87, 11, 308, 11, 275, 11, 308, 62, 8310, 11, 275, 62, 8310, 11, 491, 11, 46668, 11, 256, 76, 8, 198, 220, 220, 220, 357, 75, 11, 72, 11, 73, 8, 796, 277, 62, 312, 87, 198, 220, 220, 220, 279, 62, 8310, 220, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 220, 1058, 79, 11, 277, 62, 312, 87, 8, 198, 220, 220, 220, 10662, 62, 8310, 220, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 220, 1058, 80, 11, 277, 62, 312, 87, 8, 198, 220, 220, 220, 45887, 62, 8310, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 14761, 11, 277, 62, 10885, 8, 198, 220, 220, 220, 45887, 62, 1462, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 14761, 11, 256, 62, 10885, 8, 198, 220, 220, 220, 46935, 62, 8310, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 6862, 11, 277, 62, 10885, 8, 198, 220, 220, 220, 46935, 62, 1462, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 6862, 11, 256, 62, 10885, 8, 628, 220, 220, 220, 275, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 65, 11, 300, 8, 198, 220, 220, 220, 308, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 70, 11, 300, 8, 220, 220, 220, 1303, 308, 796, 331, 9, 81, 198, 220, 220, 220, 275, 62, 8310, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 65, 62, 1477, 2797, 11, 300, 8, 198, 220, 220, 220, 308, 62, 8310, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 70, 62, 1477, 2797, 11, 300, 8, 628, 220, 220, 220, 12585, 7378, 13, 31, 32572, 1102, 2536, 2913, 7, 4426, 13, 19849, 11, 279, 62, 8310, 6624, 220, 357, 70, 10, 70, 62, 8310, 20679, 17209, 61, 17, 9, 14761, 62, 8310, 61, 17, 198, 220, 220, 220, 1343, 13841, 70, 9, 2213, 10, 65, 9, 20259, 20679, 17209, 61, 17, 9, 7, 14761, 62, 8310, 9, 14761, 62, 1462, 9, 6966, 7, 6862, 62, 8310, 12, 6862, 62, 1462, 4008, 198, 220, 220, 220, 1343, 13841, 65, 9, 2213, 12, 70, 9, 20259, 20679, 17209, 61, 17, 9, 7, 14761, 62, 8310, 9, 14761, 62, 1462, 9, 31369, 7, 6862, 62, 8310, 12, 6862, 62, 1462, 4008, 1267, 198, 220, 220, 220, 12585, 7378, 13, 31, 32572, 1102, 2536, 2913, 7, 4426, 13, 19849, 11, 10662, 62, 8310, 6624, 532, 7, 65, 10, 65, 62, 8310, 20679, 17209, 61, 17, 9, 14761, 62, 8310, 61, 17, 198, 220, 220, 220, 532, 13841, 65, 9, 2213, 12, 70, 9, 20259, 20679, 17209, 61, 17, 9, 7, 14761, 62, 8310, 9, 14761, 62, 1462, 9, 6966, 7, 6862, 62, 8310, 12, 6862, 62, 1462, 4008, 198, 220, 220, 220, 1343, 13841, 70, 9, 2213, 10, 65, 9, 20259, 20679, 17209, 61, 17, 9, 7, 14761, 62, 8310, 9, 14761, 62, 1462, 9, 31369, 7, 6862, 62, 8310, 12, 6862, 62, 1462, 4008, 1267, 198, 437, 198, 198, 37811, 198, 16719, 274, 3966, 907, 17778, 357, 20760, 1281, 4259, 9217, 326, 575, 290, 309, 3815, 389, 287, 36954, 1296, 8, 198, 15506, 63, 198, 79, 58, 83, 62, 312, 87, 60, 6624, 220, 357, 70, 10, 70, 62, 1462, 27493, 85, 58, 83, 62, 10885, 60, 61, 17, 1343, 13841, 70, 9, 2213, 12, 65, 9, 20259, 20679, 17209, 61, 17, 9, 7, 85, 58, 83, 62, 10885, 60, 9, 85, 58, 69, 62, 10885, 60, 9, 6966, 7, 83, 58, 83, 62, 10885, 45297, 83, 58, 69, 62, 10885, 60, 4008, 1343, 13841, 65, 9, 2213, 10, 70, 9, 20259, 20679, 17209, 61, 17, 9, 7, 85, 58, 83, 62, 10885, 60, 9, 85, 58, 69, 62, 10885, 60, 9, 31369, 7, 83, 58, 83, 62, 10885, 45297, 83, 58, 69, 62, 10885, 60, 4008, 198, 80, 58, 83, 62, 312, 87, 60, 6624, 532, 7, 65, 10, 65, 62, 1462, 27493, 85, 58, 83, 62, 10885, 60, 61, 17, 532, 13841, 65, 9, 2213, 10, 70, 9, 20259, 20679, 17209, 61, 17, 9, 7, 85, 58, 83, 62, 10885, 60, 9, 85, 58, 69, 62, 10885, 60, 9, 6966, 7, 83, 58, 69, 62, 10885, 45297, 83, 58, 83, 62, 10885, 60, 4008, 1343, 13841, 70, 9, 2213, 12, 65, 9, 20259, 20679, 17209, 61, 17, 9, 7, 85, 58, 83, 62, 10885, 60, 9, 85, 58, 69, 62, 10885, 60, 9, 31369, 7, 83, 58, 83, 62, 10885, 45297, 83, 58, 69, 62, 10885, 60, 4008, 198, 15506, 63, 198, 37811, 198, 8818, 32315, 62, 1219, 907, 62, 1462, 62, 45286, 62, 320, 9124, 590, 7, 4426, 3712, 62, 5868, 13, 23839, 33056, 17633, 11, 299, 3712, 5317, 11, 277, 62, 10885, 11, 256, 62, 10885, 11, 277, 62, 312, 87, 11, 256, 62, 312, 87, 11, 308, 11, 275, 11, 308, 62, 1462, 11, 275, 62, 1462, 11, 491, 11, 46668, 11, 256, 76, 8, 198, 220, 220, 220, 357, 75, 11, 72, 11, 73, 8, 796, 277, 62, 312, 87, 198, 220, 220, 220, 279, 62, 1462, 220, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 220, 1058, 79, 11, 256, 62, 312, 87, 8, 198, 220, 220, 220, 10662, 62, 1462, 220, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 220, 1058, 80, 11, 256, 62, 312, 87, 8, 198, 220, 220, 220, 45887, 62, 8310, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 14761, 11, 277, 62, 10885, 8, 198, 220, 220, 220, 45887, 62, 1462, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 14761, 11, 256, 62, 10885, 8, 198, 220, 220, 220, 46935, 62, 8310, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 6862, 11, 277, 62, 10885, 8, 198, 220, 220, 220, 46935, 62, 1462, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 6862, 11, 256, 62, 10885, 8, 628, 220, 220, 220, 1303, 374, 796, 308, 14, 65, 198, 220, 220, 220, 275, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 65, 11, 300, 8, 198, 220, 220, 220, 308, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 70, 11, 300, 8, 198, 220, 220, 220, 275, 62, 1462, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 65, 62, 1477, 2797, 11, 300, 8, 198, 220, 220, 220, 308, 62, 1462, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 70, 62, 1477, 2797, 11, 300, 8, 198, 220, 220, 220, 1303, 308, 796, 331, 9, 81, 628, 220, 220, 220, 12585, 7378, 13, 31, 32572, 1102, 2536, 2913, 7, 4426, 13, 19849, 11, 279, 62, 1462, 6624, 220, 357, 70, 10, 70, 62, 1462, 27493, 14761, 62, 1462, 61, 17, 198, 220, 220, 220, 1343, 13841, 70, 9, 2213, 12, 65, 9, 20259, 20679, 17209, 61, 17, 9, 7, 14761, 62, 1462, 9, 14761, 62, 8310, 9, 6966, 7, 6862, 62, 1462, 12, 6862, 62, 8310, 4008, 198, 220, 220, 220, 1343, 13841, 65, 9, 2213, 10, 70, 9, 20259, 20679, 17209, 61, 17, 9, 7, 14761, 62, 1462, 9, 14761, 62, 8310, 9, 31369, 7, 6862, 62, 1462, 12, 6862, 62, 8310, 4008, 1267, 198, 220, 220, 220, 12585, 7378, 13, 31, 32572, 1102, 2536, 2913, 7, 4426, 13, 19849, 11, 10662, 62, 1462, 6624, 532, 7, 65, 10, 65, 62, 1462, 27493, 14761, 62, 1462, 61, 17, 198, 220, 220, 220, 532, 13841, 65, 9, 2213, 10, 70, 9, 20259, 20679, 17209, 61, 17, 9, 7, 14761, 62, 1462, 9, 14761, 62, 8310, 9, 6966, 7, 6862, 62, 1462, 12, 6862, 62, 8310, 4008, 198, 220, 220, 220, 1343, 13841, 70, 9, 2213, 12, 65, 9, 20259, 20679, 17209, 61, 17, 9, 7, 14761, 62, 1462, 9, 14761, 62, 8310, 9, 31369, 7, 6862, 62, 1462, 12, 6862, 62, 8310, 4008, 1267, 198, 437, 198, 198, 37811, 198, 7469, 1127, 262, 4562, 12853, 1108, 287, 2846, 286, 10706, 9089, 198, 91, 50039, 62, 22462, 532, 4941, 62, 22462, 91, 29006, 35790, 62, 22462, 8, 19841, 12159, 198, 732, 6626, 428, 287, 734, 17778, 284, 1730, 351, 262, 4112, 1988, 198, 91, 87, 91, 19841, 331, 611, 69, 2124, 19841, 88, 290, 532, 87, 27, 28, 88, 198, 37811, 198, 8818, 32315, 62, 22462, 62, 41751, 15538, 7, 4426, 3712, 62, 5868, 13, 23839, 13434, 17633, 11, 299, 3712, 5317, 11, 1006, 62, 22462, 11, 12159, 8, 198, 220, 220, 220, 44606, 62, 6738, 796, 4808, 5868, 13, 5420, 7, 4426, 11, 1058, 5605, 82, 62, 6738, 8, 198, 220, 220, 220, 279, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 1058, 79, 8, 628, 220, 220, 220, 2994, 796, 2160, 7, 79, 58, 7, 75, 11, 72, 11, 73, 15437, 1343, 279, 58, 7, 75, 11, 73, 11, 72, 15437, 329, 357, 75, 11, 72, 11, 73, 8, 287, 44606, 62, 6738, 8, 628, 220, 220, 220, 12585, 7378, 13, 31, 1102, 2536, 2913, 7, 4426, 13, 19849, 11, 357, 22462, 532, 1006, 62, 22462, 20679, 7, 5420, 62, 22462, 8, 19841, 12159, 8, 198, 220, 220, 220, 12585, 7378, 13, 31, 1102, 2536, 2913, 7, 4426, 13, 19849, 11, 357, 5420, 62, 22462, 532, 2994, 20679, 7, 5420, 62, 22462, 8, 19841, 12159, 8, 198, 437, 628, 198, 8818, 32315, 62, 15805, 62, 41751, 15538, 7, 4426, 3712, 62, 5868, 13, 23839, 13434, 17633, 11, 299, 3712, 5317, 11, 1006, 62, 15805, 11, 12159, 8, 198, 220, 220, 220, 1575, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 1058, 15805, 8, 628, 220, 220, 220, 12585, 7378, 13, 31, 1102, 2536, 2913, 7, 4426, 13, 19849, 11, 357, 15805, 532, 1006, 62, 15805, 20679, 7, 5420, 62, 15805, 8, 19841, 12159, 8, 198, 220, 220, 220, 12585, 7378, 13, 31, 1102, 2536, 2913, 7, 4426, 13, 19849, 11, 357, 5420, 62, 15805, 532, 1575, 20679, 7, 5420, 62, 15805, 8, 19841, 12159, 8, 198, 437, 628, 198, 1, 15514, 278, 691, 15094, 81, 1512, 1575, 5499, 329, 27298, 9457, 17764, 351, 6550, 6477, 284, 617, 6287, 1, 198, 8818, 32315, 62, 25802, 62, 15805, 62, 421, 41909, 1512, 7, 4426, 3712, 62, 5868, 13, 23839, 13434, 17633, 8, 198, 220, 220, 220, 2429, 62, 15805, 796, 360, 713, 3419, 198, 220, 220, 220, 329, 357, 77, 11, 299, 86, 62, 5420, 8, 287, 4808, 5868, 13, 77, 18504, 7, 4426, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 72, 11, 5235, 8, 287, 299, 86, 62, 5420, 58, 25, 5235, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23241, 796, 2160, 7, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 6024, 11, 1312, 38381, 66, 60, 329, 269, 287, 4808, 5868, 13, 17561, 33029, 62, 2340, 7, 4426, 11, 299, 8, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4129, 7, 5235, 14692, 15805, 8973, 8, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2429, 62, 15805, 58, 7, 77, 11, 72, 15437, 796, 2429, 14692, 15805, 1, 7131, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 4129, 7, 5235, 14692, 15805, 8973, 8, 6624, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2429, 62, 15805, 58, 7, 77, 11, 72, 15437, 796, 2429, 14692, 15805, 1, 7131, 16, 60, 9, 6024, 1343, 2429, 14692, 15805, 1, 7131, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 4129, 7, 5235, 14692, 15805, 8973, 8, 6624, 513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2429, 62, 15805, 58, 7, 77, 11, 72, 15437, 796, 2429, 14692, 15805, 1, 7131, 16, 60, 9, 6024, 61, 17, 1343, 2429, 14692, 15805, 1, 7131, 17, 60, 9, 6024, 1343, 2429, 14692, 15805, 1, 7131, 18, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2429, 62, 15805, 58, 7, 77, 11, 72, 15437, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1575, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 1058, 15805, 8, 198, 220, 220, 220, 12585, 7378, 13, 31, 1102, 2536, 2913, 7, 4426, 13, 19849, 11, 1575, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 7, 2429, 62, 15805, 58, 7, 77, 11, 72, 15437, 329, 357, 72, 11, 5235, 8, 287, 299, 86, 62, 5420, 58, 25, 5235, 60, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 77, 11, 299, 86, 62, 5420, 8, 287, 4808, 5868, 13, 77, 18504, 7, 4426, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 32315, 62, 5235, 62, 65, 3733, 62, 535, 7, 4426, 3712, 62, 5868, 13, 23839, 13434, 17633, 11, 299, 3712, 5317, 11, 1312, 11, 279, 1084, 11, 9114, 897, 11, 10662, 1084, 11, 10662, 9806, 11, 2123, 64, 8, 198, 220, 220, 220, 23241, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 6024, 11, 1312, 8, 198, 220, 220, 220, 10662, 70, 796, 4808, 5868, 13, 7785, 7, 4426, 11, 299, 11, 1058, 80, 70, 11, 1312, 8, 198, 220, 220, 220, 288, 796, 46567, 507, 13, 26447, 3419, 198, 220, 220, 220, 1976, 796, 46567, 507, 13, 40972, 576, 7, 67, 11, 17167, 8, 628, 220, 220, 220, 1303, 12585, 7378, 13, 31, 1102, 2536, 2913, 7, 4426, 13, 19849, 11, 357, 15805, 532, 1006, 62, 15805, 20679, 7, 5420, 62, 15805, 8, 19841, 12159, 8, 198, 437, 198 ]
1.811918
2,685
#= ellipse_sino.jl 2019-07-12, <NAME> 2019-07-13, <NAME>, refactor to use sg.grid =# export ellipse_sino #using MIRT: sino_geom, SinoGeom, downsample2 """ `sino = ellipse_sino(sg, ells ; oversample=1, xscale=1, yscale=1)` Create sinogram projection of one or more ellipses. Works for any sinogram geometry. in - `sg::SinoGeom` sinogram geometry object from `sino_geom()` - `ells::Matrix` `[ne 6]` ellipse parameters * `[centx centy radx rady angle_degrees amplitude]` options - `oversample::Int` oversampling factor for emulating "strips" * default 1: just 1 ray per detector element - `xscale::Int` use -1 to flip in x (not recommended); default 1 - `yscale::Int` use -1 to flip in y (not recommended); default 1 out - `sino` `[nb na]` sinogram To get the sample locations, use `(pos,ang) = sg.grid` """ function ellipse_sino( sg::SinoGeom, ells::AbstractMatrix{<:Real} ; oversample::Int = 1, kwargs..., ) sg = sg.over(oversample) (rg, Ο•g) = sg.grid sino = ellipse_sino(rg, Ο•g, ells ; kwargs...) if oversample > 1 sino = downsample2(sino, (oversample, 1)) end return sino end """ `sino = ellipse_sino(rg::AbstractArray{<:Real}, Ο•g::AbstractArray{<:Real}, ells ; oversample=1, xscale=1, yscale=1)` Create sinogram projection of one or more ellipses, for arbitrary radial/angular sampling grid locations `(rg, Ο•g)` in - `rg::AbstractArray{<:Real}` radial sampling locations - `Ο•g::AbstractArray{<:Real}` angular sampling locations (radians) - `ells::Matrix` `[ne 6]` ellipse parameters * `[centx centy radx rady angle_degrees amplitude]` options - `xscale::Int` use -1 to flip in x (not recommended); default 1 - `yscale::Int` use -1 to flip in y (not recommended); default 1 out - `sino::AbstractArray{Float32}` same size as `rg` and `Ο•g` """ function ellipse_sino( rg::AbstractArray{<:Real}, Ο•g::AbstractArray{<:Real}, ells::AbstractMatrix{<:Real} ; xscale::Int = 1, yscale::Int = 1, ) size(ells,2) != 6 && throw("6 parameters per ellipse") size(rg) != size(Ο•g) && throw("rg and Ο•g size mismatch") sino = zeros(Float32, size(rg)) cangs = cos.(Ο•g) sangs = sin.(Ο•g) #loop over ellipses #ticker reset ne = size(ells, 1) for ie in 1:ne #ticker(mfilename, ie, ne) ell = ells[ie, :] cx = ell[1] * xscale cy = ell[2] * yscale rx = ell[3] ry = ell[4] (rx <= 0) || (ry <= 0) && throw("need positive radii") eang = deg2rad(ell[5]) val = ell[6] if yscale == -1 eang = -eang end if xscale == -1 eang = pi - eang end scale = 2 * val * rx * ry # square of projected radius: rp2 = @. (rx * (cangs * cos(eang) + sangs * sin(eang)))^2 + (ry * (sangs * cos(eang) - cangs * sin(eang)))^2 sp = cx * cangs + cy * sangs # radial shift dis2 = (rg - sp).^2 # square of distances from center @. sino += scale / rp2 * sqrt(max(rp2 - dis2, 0)) end return sino end
[ 2, 28, 198, 695, 541, 325, 62, 82, 2879, 13, 20362, 198, 23344, 12, 2998, 12, 1065, 11, 1279, 20608, 29, 198, 23344, 12, 2998, 12, 1485, 11, 1279, 20608, 22330, 1006, 11218, 284, 779, 264, 70, 13, 25928, 198, 46249, 198, 198, 39344, 30004, 541, 325, 62, 82, 2879, 198, 198, 2, 3500, 337, 48771, 25, 264, 2879, 62, 469, 296, 11, 311, 2879, 10082, 296, 11, 21838, 1403, 17, 628, 198, 37811, 198, 63, 82, 2879, 796, 30004, 541, 325, 62, 82, 2879, 7, 45213, 11, 30004, 82, 2162, 10753, 1403, 28, 16, 11, 2124, 9888, 28, 16, 11, 331, 9888, 28, 16, 8, 63, 198, 198, 16447, 7813, 21857, 20128, 286, 530, 393, 517, 30004, 2419, 274, 13, 198, 23044, 329, 597, 7813, 21857, 22939, 13, 198, 198, 259, 198, 12, 4600, 45213, 3712, 50, 2879, 10082, 296, 63, 7813, 21857, 22939, 2134, 422, 4600, 82, 2879, 62, 469, 296, 3419, 63, 198, 12, 4600, 19187, 3712, 46912, 63, 4600, 58, 710, 718, 60, 63, 30004, 541, 325, 10007, 198, 220, 220, 1635, 4600, 58, 1087, 87, 1247, 88, 2511, 87, 2511, 88, 9848, 62, 13500, 6037, 37188, 60, 63, 198, 198, 25811, 198, 12, 4600, 13801, 1403, 3712, 5317, 63, 197, 13801, 321, 11347, 5766, 329, 795, 8306, 366, 33565, 862, 1, 198, 220, 220, 1635, 4277, 352, 25, 655, 352, 26842, 583, 31029, 5002, 198, 12, 4600, 87, 9888, 3712, 5317, 63, 197, 197, 1904, 532, 16, 284, 14283, 287, 2124, 357, 1662, 7151, 1776, 4277, 352, 198, 12, 4600, 28349, 1000, 3712, 5317, 63, 197, 197, 1904, 532, 16, 284, 14283, 287, 331, 357, 1662, 7151, 1776, 4277, 352, 198, 198, 448, 198, 12, 4600, 82, 2879, 63, 4600, 58, 46803, 12385, 60, 63, 7813, 21857, 198, 198, 2514, 651, 262, 6291, 7064, 11, 779, 4600, 7, 1930, 11, 648, 8, 796, 264, 70, 13, 25928, 63, 198, 37811, 198, 8818, 30004, 541, 325, 62, 82, 2879, 7, 198, 220, 220, 220, 264, 70, 3712, 50, 2879, 10082, 296, 11, 198, 220, 220, 220, 30004, 82, 3712, 23839, 46912, 90, 27, 25, 15633, 92, 2162, 198, 220, 220, 220, 10753, 1403, 3712, 5317, 796, 352, 11, 198, 220, 220, 220, 479, 86, 22046, 986, 11, 198, 8, 628, 197, 45213, 796, 264, 70, 13, 2502, 7, 13801, 1403, 8, 198, 197, 7, 41345, 11, 18074, 243, 70, 8, 796, 264, 70, 13, 25928, 198, 197, 82, 2879, 796, 30004, 541, 325, 62, 82, 2879, 7, 41345, 11, 18074, 243, 70, 11, 30004, 82, 2162, 479, 86, 22046, 23029, 198, 197, 361, 10753, 1403, 1875, 352, 198, 197, 197, 82, 2879, 796, 21838, 1403, 17, 7, 82, 2879, 11, 357, 13801, 1403, 11, 352, 4008, 198, 197, 437, 198, 197, 7783, 264, 2879, 198, 437, 628, 198, 37811, 198, 63, 82, 2879, 796, 30004, 541, 325, 62, 82, 2879, 7, 41345, 3712, 23839, 19182, 90, 27, 25, 15633, 5512, 18074, 243, 70, 3712, 23839, 19182, 90, 27, 25, 15633, 5512, 198, 197, 197, 19187, 2162, 10753, 1403, 28, 16, 11, 2124, 9888, 28, 16, 11, 331, 9888, 28, 16, 8, 63, 198, 198, 16447, 7813, 21857, 20128, 286, 530, 393, 517, 30004, 2419, 274, 11, 198, 1640, 14977, 44503, 14, 21413, 19232, 10706, 7064, 4600, 7, 41345, 11, 18074, 243, 70, 8, 63, 198, 198, 259, 198, 12, 4600, 41345, 3712, 23839, 19182, 90, 27, 25, 15633, 92, 63, 197, 6335, 498, 19232, 7064, 198, 12, 4600, 139, 243, 70, 3712, 23839, 19182, 90, 27, 25, 15633, 92, 63, 197, 21413, 19232, 7064, 357, 6335, 1547, 8, 198, 12, 4600, 19187, 3712, 46912, 63, 4600, 58, 710, 718, 60, 63, 30004, 541, 325, 10007, 198, 220, 220, 1635, 4600, 58, 1087, 87, 1247, 88, 2511, 87, 2511, 88, 9848, 62, 13500, 6037, 37188, 60, 63, 198, 198, 25811, 198, 12, 4600, 87, 9888, 3712, 5317, 63, 779, 532, 16, 284, 14283, 287, 2124, 357, 1662, 7151, 1776, 4277, 352, 198, 12, 4600, 28349, 1000, 3712, 5317, 63, 779, 532, 16, 284, 14283, 287, 331, 357, 1662, 7151, 1776, 4277, 352, 198, 198, 448, 198, 12, 4600, 82, 2879, 3712, 23839, 19182, 90, 43879, 2624, 92, 63, 976, 2546, 355, 4600, 41345, 63, 290, 4600, 139, 243, 70, 63, 198, 37811, 198, 8818, 30004, 541, 325, 62, 82, 2879, 7, 198, 220, 220, 220, 48670, 3712, 23839, 19182, 90, 27, 25, 15633, 5512, 198, 220, 220, 220, 18074, 243, 70, 3712, 23839, 19182, 90, 27, 25, 15633, 5512, 198, 220, 220, 220, 30004, 82, 3712, 23839, 46912, 90, 27, 25, 15633, 92, 2162, 198, 220, 220, 220, 2124, 9888, 3712, 5317, 796, 352, 11, 198, 220, 220, 220, 331, 9888, 3712, 5317, 796, 352, 11, 198, 8, 628, 197, 7857, 7, 19187, 11, 17, 8, 14512, 718, 11405, 3714, 7203, 21, 10007, 583, 30004, 541, 325, 4943, 198, 197, 7857, 7, 41345, 8, 14512, 2546, 7, 139, 243, 70, 8, 11405, 3714, 7203, 41345, 290, 18074, 243, 70, 2546, 46318, 4943, 628, 197, 82, 2879, 796, 1976, 27498, 7, 43879, 2624, 11, 2546, 7, 41345, 4008, 628, 197, 66, 27725, 796, 8615, 12195, 139, 243, 70, 8, 198, 197, 82, 27725, 796, 7813, 12195, 139, 243, 70, 8, 628, 197, 2, 26268, 625, 30004, 2419, 274, 198, 197, 2, 83, 15799, 13259, 198, 197, 710, 796, 2546, 7, 19187, 11, 352, 8, 198, 197, 1640, 37941, 287, 352, 25, 710, 198, 197, 197, 2, 83, 15799, 7, 76, 34345, 11, 37941, 11, 497, 8, 198, 197, 197, 695, 796, 30004, 82, 58, 494, 11, 1058, 60, 628, 197, 197, 66, 87, 796, 30004, 58, 16, 60, 1635, 2124, 9888, 198, 197, 197, 948, 796, 30004, 58, 17, 60, 1635, 331, 9888, 198, 197, 197, 40914, 796, 30004, 58, 18, 60, 198, 197, 197, 563, 796, 30004, 58, 19, 60, 198, 197, 197, 7, 40914, 19841, 657, 8, 8614, 357, 563, 19841, 657, 8, 11405, 3714, 7203, 31227, 3967, 2511, 4178, 4943, 198, 197, 197, 68, 648, 796, 3396, 17, 6335, 7, 695, 58, 20, 12962, 198, 197, 197, 2100, 796, 30004, 58, 21, 60, 628, 197, 197, 361, 331, 9888, 6624, 532, 16, 198, 197, 197, 197, 68, 648, 796, 532, 68, 648, 198, 197, 197, 437, 198, 197, 197, 361, 2124, 9888, 6624, 532, 16, 198, 197, 197, 197, 68, 648, 796, 31028, 532, 304, 648, 198, 197, 197, 437, 198, 197, 197, 9888, 796, 362, 1635, 1188, 1635, 374, 87, 1635, 374, 88, 628, 197, 197, 2, 6616, 286, 13301, 16874, 25, 198, 197, 197, 81, 79, 17, 796, 2488, 13, 357, 40914, 1635, 357, 66, 27725, 1635, 8615, 7, 68, 648, 8, 1343, 25889, 82, 1635, 7813, 7, 68, 648, 22305, 61, 17, 1343, 198, 197, 197, 197, 197, 7, 563, 1635, 357, 82, 27725, 1635, 8615, 7, 68, 648, 8, 532, 460, 14542, 1635, 7813, 7, 68, 648, 22305, 61, 17, 198, 197, 197, 2777, 796, 43213, 1635, 460, 14542, 1343, 3075, 1635, 25889, 82, 1303, 44503, 6482, 198, 197, 197, 6381, 17, 796, 357, 41345, 532, 599, 737, 61, 17, 1303, 6616, 286, 18868, 422, 3641, 198, 197, 197, 31, 13, 264, 2879, 15853, 5046, 1220, 374, 79, 17, 1635, 19862, 17034, 7, 9806, 7, 81, 79, 17, 532, 595, 17, 11, 657, 4008, 198, 197, 437, 628, 197, 7783, 264, 2879, 198, 437, 198 ]
2.370675
1,214
module Car export nb_months function nb_months(startPriceOld, startPriceNew, savingperMonth, percentLossByMonth) priceDelta = startPriceNew-startPriceOld lossFactor = 1 - percentLossByMonth/100 saving = 0 month = 0 while saving < priceDelta month += 1 saving += savingperMonth priceDelta *= lossFactor if isodd(month) lossFactor -= 0.5/100 end end [month, round(Int,saving-priceDelta)] end end
[ 21412, 1879, 198, 220, 220, 220, 10784, 299, 65, 62, 41537, 628, 220, 220, 220, 2163, 299, 65, 62, 41537, 7, 9688, 18124, 19620, 11, 923, 18124, 3791, 11, 8914, 525, 31948, 11, 1411, 43, 793, 3886, 31948, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2756, 42430, 796, 923, 18124, 3791, 12, 9688, 18124, 19620, 198, 220, 220, 220, 220, 220, 220, 220, 2994, 41384, 796, 352, 532, 1411, 43, 793, 3886, 31948, 14, 3064, 198, 220, 220, 220, 220, 220, 220, 220, 8914, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 1227, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 981, 8914, 1279, 2756, 42430, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1227, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8914, 15853, 8914, 525, 31948, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2756, 42430, 1635, 28, 2994, 41384, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 5088, 7, 8424, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2994, 41384, 48185, 657, 13, 20, 14, 3064, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 685, 8424, 11, 2835, 7, 5317, 11, 29336, 12, 20888, 42430, 15437, 198, 220, 220, 220, 886, 198, 198, 437 ]
2.122047
254
<reponame>jlchan/EntropyStableEuler.jl<filename>test/runtests.jl<gh_stars>1-10 using EntropyStableEuler using Test using StaticArrays @testset "Logmean tests" begin uL,uR = 1,2 @test logmean(uL,uR) == logmean(uL,uR,log(uL),log(uR)) @test logmean(uL,uR) == logmean(uR,uL) @test logmean(uL,uL) β‰ˆ uL end function init_prim(d) if d==1 rho,u,p = 1,.1,2 Q = (rho,u,p) elseif d==2 rho,u,v,p = 1,.1,.2,2 Q = (rho,u,v,p) elseif d==3 rho,u,v,w,p = 1,.1,.2,.3,2 Q = (rho,u,v,w,p) end return Q end @testset "Tests for d = $d" for d in (1:3) @testset "Entropy variable tests" begin U = prim_to_cons(Euler{d}(),init_prim(d)) V = v_ufun(Euler{d}(),U) h = 1e-7 central_diff(f,x) = (f(x+h) - f(x-h))/(2*h) swapentry(x,y,i) = (x[begin:i-1]...,y,x[i+1:end]...) for j = 1:d+2 @test abs(V[j] - central_diff(x->Sfun(Euler{d}(),swapentry(U,x,j)),U[j])) < h end UV = u_vfun(Euler{d}(),V) @test all(UV .β‰ˆ U) end @testset "Symmetry" begin # test symmetry UL = prim_to_cons(Euler{d}(),init_prim(d)) UR = prim_to_cons(Euler{d}(),init_prim(d).*1.1) FLR = fS(Euler{d}(),UL,UR) FRL = fS(Euler{d}(),UR,UL) @test all(FLR .β‰ˆ FRL) end @testset "Consistency" begin Q = init_prim(d) U = prim_to_cons(Euler{d}(),Q) F = fS(Euler{d}(),U,U) p = pfun(Euler{d}(),U) if d==1 rho,rhou,E = U u = rhou./rho Fexact = SVector{3}(rho*u, rho*u^2 + p, u*(E+p)) elseif d==2 rho,rhou,rhov,E = U u,v = rhou./rho, rhov./rho Fx = SVector{4}(rho*u, rho*u^2 + p, rho*u*v, u*(E+p)) Fy = SVector{4}(rho*v, rho*u*v, rho*v^2 + p, v*(E+p)) Fexact = (Fx,Fy) elseif d==3 rho,rhou,rhov,rhow,E = U u,v,w = rhou./rho, rhov./rho, rhow./rho Fx = SVector{5}(rho*u, rho*u^2 + p, rho*u*v, rho*u*w, u*(E+p)) Fy = SVector{5}(rho*v, rho*u*v, rho*v^2 + p, rho*v*w, v*(E+p)) Fz = SVector{5}(rho*w, rho*u*w, rho*v*w, rho*w^2 + p, w*(E+p)) Fexact = (Fx,Fy,Fz) end @test all(F .β‰ˆ Fexact) end @testset "Entropy conservation property" begin Ξ³ = Euler{d}().Ξ³ UL = prim_to_cons(Euler{d}(),init_prim(d)) UR = prim_to_cons(Euler{d}(),init_prim(d).*1.1) VL = v_ufun(Euler{d}(),UL) VR = v_ufun(Euler{d}(),UR) ψ(U) = (Ξ³-1).*U[2:d+1] F = fS(Euler{d}(),UL,UR) vTF(VL,VR,F) = sum((VL .- VR).*F) for j = 1:d if d==1 @test vTF(VL,VR,F) β‰ˆ ψ(UL)[j]-ψ(UR)[j] else @test vTF(VL,VR,F[j]) β‰ˆ ψ(UL)[j]-ψ(UR)[j] end end end @testset "Type stability tests" begin Q = init_prim(d) U = prim_to_cons(Euler{d}(),Q) V = v_ufun(Euler{d}(),U) @inferred prim_to_cons(Euler{d}(),Q) @inferred cons_to_prim_beta(Euler{d}(),U) @inferred v_ufun(Euler{d}(),U) @inferred u_vfun(Euler{d}(),V) @inferred fS(Euler{d}(),U,U) end end
[ 27, 7856, 261, 480, 29, 20362, 3147, 14, 14539, 28338, 1273, 540, 36, 18173, 13, 20362, 27, 34345, 29, 9288, 14, 81, 2797, 3558, 13, 20362, 27, 456, 62, 30783, 29, 16, 12, 940, 198, 3500, 7232, 28338, 1273, 540, 36, 18173, 198, 3500, 6208, 198, 3500, 36125, 3163, 20477, 198, 198, 31, 9288, 2617, 366, 11187, 32604, 5254, 1, 2221, 198, 220, 220, 220, 334, 43, 11, 84, 49, 796, 352, 11, 17, 198, 220, 220, 220, 2488, 9288, 2604, 32604, 7, 84, 43, 11, 84, 49, 8, 6624, 2604, 32604, 7, 84, 43, 11, 84, 49, 11, 6404, 7, 84, 43, 828, 6404, 7, 84, 49, 4008, 198, 220, 220, 220, 2488, 9288, 2604, 32604, 7, 84, 43, 11, 84, 49, 8, 6624, 2604, 32604, 7, 84, 49, 11, 84, 43, 8, 198, 220, 220, 220, 2488, 9288, 2604, 32604, 7, 84, 43, 11, 84, 43, 8, 15139, 230, 334, 43, 198, 437, 198, 198, 8818, 2315, 62, 19795, 7, 67, 8, 198, 220, 220, 220, 611, 288, 855, 16, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 11, 84, 11, 79, 796, 352, 38508, 16, 11, 17, 198, 220, 220, 220, 220, 220, 220, 220, 1195, 796, 357, 81, 8873, 11, 84, 11, 79, 8, 198, 220, 220, 220, 2073, 361, 288, 855, 17, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 11, 84, 11, 85, 11, 79, 796, 352, 38508, 16, 38508, 17, 11, 17, 198, 220, 220, 220, 220, 220, 220, 220, 1195, 796, 357, 81, 8873, 11, 84, 11, 85, 11, 79, 8, 198, 220, 220, 220, 2073, 361, 288, 855, 18, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 11, 84, 11, 85, 11, 86, 11, 79, 796, 352, 38508, 16, 38508, 17, 38508, 18, 11, 17, 198, 220, 220, 220, 220, 220, 220, 220, 1195, 796, 357, 81, 8873, 11, 84, 11, 85, 11, 86, 11, 79, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1195, 198, 437, 198, 198, 31, 9288, 2617, 366, 51, 3558, 329, 288, 796, 720, 67, 1, 329, 288, 287, 357, 16, 25, 18, 8, 628, 220, 220, 220, 2488, 9288, 2617, 366, 14539, 28338, 7885, 5254, 1, 2221, 628, 220, 220, 220, 220, 220, 220, 220, 471, 796, 2684, 62, 1462, 62, 5936, 7, 36, 18173, 90, 67, 92, 22784, 15003, 62, 19795, 7, 67, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 569, 796, 410, 62, 3046, 403, 7, 36, 18173, 90, 67, 92, 22784, 52, 8, 628, 220, 220, 220, 220, 220, 220, 220, 289, 796, 352, 68, 12, 22, 198, 220, 220, 220, 220, 220, 220, 220, 4318, 62, 26069, 7, 69, 11, 87, 8, 796, 357, 69, 7, 87, 10, 71, 8, 532, 277, 7, 87, 12, 71, 4008, 29006, 17, 9, 71, 8, 198, 220, 220, 220, 220, 220, 220, 220, 16075, 13000, 7, 87, 11, 88, 11, 72, 8, 796, 357, 87, 58, 27471, 25, 72, 12, 16, 60, 986, 11, 88, 11, 87, 58, 72, 10, 16, 25, 437, 60, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 329, 474, 796, 352, 25, 67, 10, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2352, 7, 53, 58, 73, 60, 532, 4318, 62, 26069, 7, 87, 3784, 50, 12543, 7, 36, 18173, 90, 67, 92, 22784, 2032, 499, 13000, 7, 52, 11, 87, 11, 73, 36911, 52, 58, 73, 60, 4008, 1279, 289, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 22033, 796, 334, 62, 85, 12543, 7, 36, 18173, 90, 67, 92, 22784, 53, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 477, 7, 31667, 764, 35705, 230, 471, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 13940, 3020, 11973, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1332, 40686, 198, 220, 220, 220, 220, 220, 220, 220, 44475, 796, 2684, 62, 1462, 62, 5936, 7, 36, 18173, 90, 67, 92, 22784, 15003, 62, 19795, 7, 67, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 37902, 796, 2684, 62, 1462, 62, 5936, 7, 36, 18173, 90, 67, 92, 22784, 15003, 62, 19795, 7, 67, 737, 9, 16, 13, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 9977, 49, 796, 277, 50, 7, 36, 18173, 90, 67, 92, 22784, 6239, 11, 4261, 8, 198, 220, 220, 220, 220, 220, 220, 220, 376, 7836, 796, 277, 50, 7, 36, 18173, 90, 67, 92, 22784, 4261, 11, 6239, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 477, 7, 3697, 49, 764, 35705, 230, 376, 7836, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 9444, 396, 1387, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 1195, 796, 2315, 62, 19795, 7, 67, 8, 198, 220, 220, 220, 220, 220, 220, 220, 471, 796, 2684, 62, 1462, 62, 5936, 7, 36, 18173, 90, 67, 92, 22784, 48, 8, 198, 220, 220, 220, 220, 220, 220, 220, 376, 796, 277, 50, 7, 36, 18173, 90, 67, 92, 22784, 52, 11, 52, 8, 628, 220, 220, 220, 220, 220, 220, 220, 279, 796, 279, 12543, 7, 36, 18173, 90, 67, 92, 22784, 52, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 288, 855, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 11, 81, 15710, 11, 36, 796, 471, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 796, 9529, 280, 19571, 81, 8873, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 1069, 529, 796, 20546, 9250, 90, 18, 92, 7, 81, 8873, 9, 84, 11, 374, 8873, 9, 84, 61, 17, 1343, 279, 11, 334, 9, 7, 36, 10, 79, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 288, 855, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 11, 81, 15710, 11, 17179, 709, 11, 36, 796, 471, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 11, 85, 796, 9529, 280, 19571, 81, 8873, 11, 9529, 709, 19571, 81, 8873, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 87, 796, 20546, 9250, 90, 19, 92, 7, 81, 8873, 9, 84, 11, 374, 8873, 9, 84, 61, 17, 1343, 279, 11, 374, 8873, 9, 84, 9, 85, 11, 220, 220, 220, 220, 334, 9, 7, 36, 10, 79, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 88, 796, 20546, 9250, 90, 19, 92, 7, 81, 8873, 9, 85, 11, 374, 8873, 9, 84, 9, 85, 11, 220, 220, 220, 220, 374, 8873, 9, 85, 61, 17, 1343, 279, 11, 410, 9, 7, 36, 10, 79, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 1069, 529, 796, 357, 37, 87, 11, 37, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 288, 855, 18, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 11, 81, 15710, 11, 17179, 709, 11, 81, 4919, 11, 36, 796, 471, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 11, 85, 11, 86, 796, 9529, 280, 19571, 81, 8873, 11, 9529, 709, 19571, 81, 8873, 11, 374, 4919, 19571, 81, 8873, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 87, 796, 20546, 9250, 90, 20, 92, 7, 81, 8873, 9, 84, 11, 374, 8873, 9, 84, 61, 17, 1343, 279, 11, 374, 8873, 9, 84, 9, 85, 11, 220, 220, 220, 220, 374, 8873, 9, 84, 9, 86, 11, 220, 220, 220, 220, 334, 9, 7, 36, 10, 79, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 88, 796, 20546, 9250, 90, 20, 92, 7, 81, 8873, 9, 85, 11, 374, 8873, 9, 84, 9, 85, 11, 220, 220, 220, 220, 374, 8873, 9, 85, 61, 17, 1343, 279, 11, 374, 8873, 9, 85, 9, 86, 11, 220, 220, 220, 220, 410, 9, 7, 36, 10, 79, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 89, 796, 20546, 9250, 90, 20, 92, 7, 81, 8873, 9, 86, 11, 374, 8873, 9, 84, 9, 86, 11, 220, 220, 220, 220, 374, 8873, 9, 85, 9, 86, 11, 220, 220, 220, 220, 374, 8873, 9, 86, 61, 17, 1343, 279, 11, 266, 9, 7, 36, 10, 79, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 1069, 529, 796, 357, 37, 87, 11, 37, 88, 11, 37, 89, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 477, 7, 37, 764, 35705, 230, 376, 1069, 529, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 14539, 28338, 14903, 3119, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 7377, 111, 796, 412, 18173, 90, 67, 92, 22446, 42063, 628, 220, 220, 220, 220, 220, 220, 220, 44475, 796, 2684, 62, 1462, 62, 5936, 7, 36, 18173, 90, 67, 92, 22784, 15003, 62, 19795, 7, 67, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 37902, 796, 2684, 62, 1462, 62, 5936, 7, 36, 18173, 90, 67, 92, 22784, 15003, 62, 19795, 7, 67, 737, 9, 16, 13, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 569, 43, 796, 410, 62, 3046, 403, 7, 36, 18173, 90, 67, 92, 22784, 6239, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6453, 796, 410, 62, 3046, 403, 7, 36, 18173, 90, 67, 92, 22784, 4261, 8, 628, 220, 220, 220, 220, 220, 220, 220, 18074, 230, 7, 52, 8, 796, 357, 42063, 12, 16, 737, 9, 52, 58, 17, 25, 67, 10, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 376, 796, 277, 50, 7, 36, 18173, 90, 67, 92, 22784, 6239, 11, 4261, 8, 198, 220, 220, 220, 220, 220, 220, 220, 410, 10234, 7, 47468, 11, 13024, 11, 37, 8, 796, 2160, 19510, 47468, 764, 12, 6453, 737, 9, 37, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 474, 796, 352, 25, 67, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 288, 855, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 410, 10234, 7, 47468, 11, 13024, 11, 37, 8, 15139, 230, 18074, 230, 7, 6239, 38381, 73, 45297, 139, 230, 7, 4261, 38381, 73, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 410, 10234, 7, 47468, 11, 13024, 11, 37, 58, 73, 12962, 15139, 230, 18074, 230, 7, 6239, 38381, 73, 45297, 139, 230, 7, 4261, 38381, 73, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 6030, 10159, 5254, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 1195, 796, 2315, 62, 19795, 7, 67, 8, 198, 220, 220, 220, 220, 220, 220, 220, 471, 796, 2684, 62, 1462, 62, 5936, 7, 36, 18173, 90, 67, 92, 22784, 48, 8, 198, 220, 220, 220, 220, 220, 220, 220, 569, 796, 410, 62, 3046, 403, 7, 36, 18173, 90, 67, 92, 22784, 52, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 18186, 2684, 62, 1462, 62, 5936, 7, 36, 18173, 90, 67, 92, 22784, 48, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 18186, 762, 62, 1462, 62, 19795, 62, 31361, 7, 36, 18173, 90, 67, 92, 22784, 52, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 18186, 410, 62, 3046, 403, 7, 36, 18173, 90, 67, 92, 22784, 52, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 18186, 334, 62, 85, 12543, 7, 36, 18173, 90, 67, 92, 22784, 53, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 18186, 277, 50, 7, 36, 18173, 90, 67, 92, 22784, 52, 11, 52, 8, 198, 220, 220, 220, 886, 198, 437, 198 ]
1.560976
2,091
# The format of simplegraph files is as follows: # a one line header: <num_vertices>, <num_edges>, {"d" | "u"}, <name> # - num_vertices is an integer # - num_edges is an integer # - "d" for directed graph, "u" for undirected. Note that this # option does not perform any additional edge construction; it's # merely used to return the correct type of graph. # - name is a string # header followed by a list of (comma-delimited) edges - src,dst. # Multiple graphs may be present in one file. function _lg_read_one_graph(f::IO, n_v::Integer, n_e::Integer, directed::Bool) if directed g = DiGraph(n_v) else g = Graph(n_v) end for i = 1:n_e line = chomp(readline(f)) if length(line) > 0 src_s, dst_s = split(line,r"\s*,\s*") src = parse(Int, src_s) dst = parse(Int, dst_s) add_edge!(g, src, dst) end end return g end function _lg_skip_one_graph(f::IO, n_e::Integer) for _ in 1:n_e readline(f) end end """Returns a dictionary of (name=>graph) loaded from file `fn`.""" function loadlg_mult(io::IO) graphs = Dict{AbstractString, SimpleGraph}() while !eof(io) line = strip(chomp(readline(io))) if startswith(line,"#") || line == "" next else nvstr, nestr, dirundir, graphname = split(line, r"s*,s*", limit=4) n_v = parse(Int, nvstr) n_e = parse(Int, nestr) dirundir = strip(dirundir) graphname = strip(graphname) directed = !(dirundir == "u") g = _lg_read_one_graph(io, n_v, n_e, directed) graphs[graphname] = g end end return graphs end function loadlg(io::IO, gname::AbstractString) while !eof(io) line = strip(chomp(readline(io))) (startswith(line,"#") || line == "") && continue nvstr, nestr, dirundir, graphname = split(line, r"s*,s*", limit=4) n_v = parse(Int, nvstr) n_e = parse(Int, nestr) graphname = strip(graphname) if gname == graphname dirundir = strip(dirundir) directed = !(dirundir == "u") return _lg_read_one_graph(io, n_v, n_e, directed) else _lg_skip_one_graph(io, n_e) end end error("Graph $gname not found") end """Writes a graph `g` with name `graphname` in a proprietary format to the IO stream designated by `io`. Returns 1 (number of graphs written). """ function savelg(io::IO, g::SimpleGraph, gname::AbstractString) # write header line dir = is_directed(g)? "d" : "u" line = join([nv(g), ne(g), dir, gname], ",") write(io, "$line\n") # write edges for e in edges(g) write(io, "$(src(e)),$(dst(e))\n") end return 1 end """Writes a dictionary of (name=>graph) to a file `fn`, with default `GZip` compression. Returns number of graphs written. """ function savelg_mult(io::IO, graphs::Dict) ng = 0 for (gname, g) in graphs ng += savelg(io, g, gname) end return ng end # savelg(io::IO, g::SimpleGraph, n::AbstractString) = # savelg_mult(io, Dict(n=>g)) # write(g::Graph, fn::AbstractString; compress::Bool=true) = write(g, "graph", fn; compress=compress) # write(g::DiGraph, fn::AbstractString; compress::Bool=true) = write(g, "digraph", fn; compress=compress) filemap[:lg] = (loadlg, loadlg_mult, savelg, savelg_mult)
[ 2, 383, 5794, 286, 2829, 34960, 3696, 318, 355, 5679, 25, 198, 2, 257, 530, 1627, 13639, 25, 1279, 22510, 62, 1851, 1063, 22330, 1279, 22510, 62, 276, 3212, 22330, 19779, 67, 1, 930, 366, 84, 25719, 1279, 3672, 29, 198, 2, 220, 220, 532, 997, 62, 1851, 1063, 318, 281, 18253, 198, 2, 220, 220, 532, 997, 62, 276, 3212, 318, 281, 18253, 198, 2, 220, 220, 532, 366, 67, 1, 329, 7924, 4823, 11, 366, 84, 1, 329, 3318, 1060, 276, 13, 5740, 326, 428, 198, 2, 220, 220, 220, 220, 220, 220, 3038, 857, 407, 1620, 597, 3224, 5743, 5103, 26, 340, 338, 198, 2, 220, 220, 220, 220, 220, 220, 6974, 973, 284, 1441, 262, 3376, 2099, 286, 4823, 13, 198, 2, 220, 220, 532, 1438, 318, 257, 4731, 198, 2, 13639, 3940, 416, 257, 1351, 286, 357, 785, 2611, 12, 12381, 320, 863, 8, 13015, 532, 12351, 11, 67, 301, 13, 198, 2, 20401, 28770, 743, 307, 1944, 287, 530, 2393, 13, 628, 198, 198, 8818, 4808, 75, 70, 62, 961, 62, 505, 62, 34960, 7, 69, 3712, 9399, 11, 299, 62, 85, 3712, 46541, 11, 299, 62, 68, 3712, 46541, 11, 7924, 3712, 33, 970, 8, 198, 220, 220, 220, 611, 7924, 198, 220, 220, 220, 220, 220, 220, 220, 308, 796, 6031, 37065, 7, 77, 62, 85, 8, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 308, 796, 29681, 7, 77, 62, 85, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 77, 62, 68, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 442, 3361, 7, 961, 1370, 7, 69, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 611, 4129, 7, 1370, 8, 1875, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12351, 62, 82, 11, 29636, 62, 82, 796, 6626, 7, 1370, 11, 81, 1, 59, 82, 25666, 59, 82, 9, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12351, 796, 21136, 7, 5317, 11, 12351, 62, 82, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29636, 796, 21136, 7, 5317, 11, 29636, 62, 82, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 751, 62, 14907, 0, 7, 70, 11, 12351, 11, 29636, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 308, 198, 437, 198, 198, 8818, 4808, 75, 70, 62, 48267, 62, 505, 62, 34960, 7, 69, 3712, 9399, 11, 299, 62, 68, 3712, 46541, 8, 198, 220, 220, 220, 329, 4808, 287, 352, 25, 77, 62, 68, 198, 220, 220, 220, 220, 220, 220, 220, 1100, 1370, 7, 69, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 37811, 35561, 257, 22155, 286, 357, 3672, 14804, 34960, 8, 9639, 422, 2393, 4600, 22184, 63, 526, 15931, 198, 8818, 3440, 75, 70, 62, 16680, 7, 952, 3712, 9399, 8, 198, 220, 220, 220, 28770, 796, 360, 713, 90, 23839, 10100, 11, 17427, 37065, 92, 3419, 198, 220, 220, 220, 981, 5145, 68, 1659, 7, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 10283, 7, 354, 3361, 7, 961, 1370, 7, 952, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 611, 923, 2032, 342, 7, 1370, 553, 2, 4943, 8614, 1627, 6624, 13538, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1306, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 85, 2536, 11, 16343, 81, 11, 26672, 917, 343, 11, 4823, 3672, 796, 6626, 7, 1370, 11, 374, 1, 82, 25666, 82, 9, 1600, 4179, 28, 19, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 62, 85, 796, 21136, 7, 5317, 11, 299, 85, 2536, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 62, 68, 796, 21136, 7, 5317, 11, 16343, 81, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26672, 917, 343, 796, 10283, 7, 15908, 917, 343, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4823, 3672, 796, 10283, 7, 34960, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7924, 796, 5145, 7, 15908, 917, 343, 6624, 366, 84, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 796, 4808, 75, 70, 62, 961, 62, 505, 62, 34960, 7, 952, 11, 299, 62, 85, 11, 299, 62, 68, 11, 7924, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28770, 58, 34960, 3672, 60, 796, 308, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 28770, 198, 437, 198, 198, 8818, 3440, 75, 70, 7, 952, 3712, 9399, 11, 308, 3672, 3712, 23839, 10100, 8, 198, 220, 220, 220, 981, 5145, 68, 1659, 7, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 10283, 7, 354, 3361, 7, 961, 1370, 7, 952, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 357, 9688, 2032, 342, 7, 1370, 553, 2, 4943, 8614, 1627, 6624, 366, 4943, 11405, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 299, 85, 2536, 11, 16343, 81, 11, 26672, 917, 343, 11, 4823, 3672, 796, 6626, 7, 1370, 11, 374, 1, 82, 25666, 82, 9, 1600, 4179, 28, 19, 8, 198, 220, 220, 220, 220, 220, 220, 220, 299, 62, 85, 796, 21136, 7, 5317, 11, 299, 85, 2536, 8, 198, 220, 220, 220, 220, 220, 220, 220, 299, 62, 68, 796, 21136, 7, 5317, 11, 16343, 81, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4823, 3672, 796, 10283, 7, 34960, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 308, 3672, 6624, 4823, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26672, 917, 343, 796, 10283, 7, 15908, 917, 343, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7924, 796, 5145, 7, 15908, 917, 343, 6624, 366, 84, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 4808, 75, 70, 62, 961, 62, 505, 62, 34960, 7, 952, 11, 299, 62, 85, 11, 299, 62, 68, 11, 7924, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 75, 70, 62, 48267, 62, 505, 62, 34960, 7, 952, 11, 299, 62, 68, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 4049, 7203, 37065, 720, 70, 3672, 407, 1043, 4943, 198, 437, 198, 198, 37811, 20257, 274, 257, 4823, 4600, 70, 63, 351, 1438, 4600, 34960, 3672, 63, 287, 257, 20622, 5794, 198, 1462, 262, 24418, 4269, 11032, 416, 4600, 952, 44646, 198, 198, 35561, 352, 357, 17618, 286, 28770, 3194, 737, 198, 37811, 198, 8818, 473, 626, 70, 7, 952, 3712, 9399, 11, 308, 3712, 26437, 37065, 11, 308, 3672, 3712, 23839, 10100, 8, 198, 220, 220, 220, 1303, 3551, 13639, 1627, 198, 220, 220, 220, 26672, 796, 318, 62, 34762, 7, 70, 19427, 366, 67, 1, 1058, 366, 84, 1, 198, 220, 220, 220, 1627, 796, 4654, 26933, 48005, 7, 70, 828, 497, 7, 70, 828, 26672, 11, 308, 3672, 4357, 366, 553, 8, 198, 220, 220, 220, 3551, 7, 952, 11, 17971, 1370, 59, 77, 4943, 198, 220, 220, 220, 1303, 3551, 13015, 198, 220, 220, 220, 329, 304, 287, 13015, 7, 70, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3551, 7, 952, 11, 17971, 7, 10677, 7, 68, 36911, 3, 7, 67, 301, 7, 68, 4008, 59, 77, 4943, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 352, 198, 437, 198, 198, 37811, 20257, 274, 257, 22155, 286, 357, 3672, 14804, 34960, 8, 284, 257, 2393, 4600, 22184, 47671, 198, 4480, 4277, 4600, 38, 41729, 63, 19794, 13, 198, 198, 35561, 1271, 286, 28770, 3194, 13, 198, 37811, 198, 8818, 473, 626, 70, 62, 16680, 7, 952, 3712, 9399, 11, 28770, 3712, 35, 713, 8, 198, 220, 220, 220, 23370, 796, 657, 198, 220, 220, 220, 329, 357, 70, 3672, 11, 308, 8, 287, 28770, 198, 220, 220, 220, 220, 220, 220, 220, 23370, 15853, 473, 626, 70, 7, 952, 11, 308, 11, 308, 3672, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 23370, 198, 437, 198, 198, 2, 473, 626, 70, 7, 952, 3712, 9399, 11, 308, 3712, 26437, 37065, 11, 299, 3712, 23839, 10100, 8, 796, 198, 2, 220, 220, 220, 220, 473, 626, 70, 62, 16680, 7, 952, 11, 360, 713, 7, 77, 14804, 70, 4008, 198, 198, 2, 3551, 7, 70, 3712, 37065, 11, 24714, 3712, 23839, 10100, 26, 27413, 3712, 33, 970, 28, 7942, 8, 796, 3551, 7, 70, 11, 366, 34960, 1600, 24714, 26, 27413, 28, 5589, 601, 8, 198, 2, 3551, 7, 70, 3712, 18683, 37065, 11, 24714, 3712, 23839, 10100, 26, 27413, 3712, 33, 970, 28, 7942, 8, 796, 3551, 7, 70, 11, 366, 12894, 1470, 1600, 24714, 26, 27413, 28, 5589, 601, 8, 198, 198, 7753, 8899, 58, 25, 75, 70, 60, 796, 357, 2220, 75, 70, 11, 3440, 75, 70, 62, 16680, 11, 473, 626, 70, 11, 473, 626, 70, 62, 16680, 8, 198 ]
2.168342
1,592
<gh_stars>1-10 module Truss using LinearAlgebra using Plots using GraphRecipes export define, solve, show """ truss_object This object holds all the definitions (material properties, section properties, geometry) and the solution (displacements, reactions, internal forces) for a system of truss elements. num_dof_per_node::Int64 members::Array{NTuple{4,Int64},1} node_geometry::Array{Float64,2} section_properties::Array{Float64,1} material_properties::Array{Float64,1} supports::Array{Int64,1} external_forces::Array{Float64,1} L::Array{Float64,1} E::Array{Float64,1} A::Array{Float64,1} ΞΈ::Array{Float64,1} K::Array{Float64,2} Kff::Array{Float64,2} Ksf::Array{Float64,2} Kfs::Array{Float64,2} Kss::Array{Float64,2} F::Array{Float64,1} Fs::Array{Float64,1} Ff::Array{Float64,1} s::Array{Int64,1} f::Array{Int64,1} T::Array{Array{Float64,2},1} k_element_local::Array{Array{Float64,2},1} k_element_global::Array{Array{Float64,2},1} u::Array{Float64,1} uf::Array{Float64,1} f_element::Array{Array{Float64,1},2} """ mutable struct truss_object num_dof_per_node::Int64 members::Array{NTuple{4,Int64},1} node_geometry::Array{Float64,2} section_properties::Array{Float64,1} material_properties::Array{Float64,1} supports::Array{Int64,1} external_forces::Array{Float64,1} L::Array{Float64,1} E::Array{Float64,1} A::Array{Float64,1} ΞΈ::Array{Float64,1} K::Array{Float64,2} Kff::Array{Float64,2} Ksf::Array{Float64,2} Kfs::Array{Float64,2} Kss::Array{Float64,2} F::Array{Float64,1} Fs::Array{Float64,1} Ff::Array{Float64,1} s::Array{Int64,1} f::Array{Int64,1} T::Array{Array{Float64,2},1} k_element_local::Array{Array{Float64,2},1} k_element_global::Array{Array{Float64,2},1} u::Array{Float64,1} uf::Array{Float64,1} f_element::Array{Array{Float64,1},2} #This allows for the construction of a new object. truss_object() = new() end """ calculate_truss_element_lengths(members, node_geometry) Calculate the truss member lengths in a structural system. `members` is a NTuple{4, Int64} containing node i, node j, A, E assignments `node_geometry` is array with the global x-y coordinates """ function calculate_truss_element_lengths(members, node_geometry) #Initialize array to hold truss lengths. truss_lengths=zeros(Float64, length(members)) #Loop over each truss element. for i=1:length(members) #Define truss node numbers. node_i=members[i][1] node_j=members[i][2] #Define truss node coordinates. node_i_xy=node_geometry[node_i,:] node_j_xy=node_geometry[node_j,:] #Calculate the truss element length. truss_lengths[i] =norm(node_i_xy - node_j_xy) end return truss_lengths end """ define_local_truss_element_stiffness_matrix(E, A, L) Define a truss element stiffness matrix in its local coordinate system. `E` is elastic modulus. `A` is the cross-sectional area. `L` is truss length. There are 4 degrees of freedom for the truss element. 2 4 1>^--------------->3^ """ function define_local_truss_element_stiffness_matrix(E, A, L) k_truss_element_local = E * A/ L * [1 0 -1 0 0 0 0 0 -1 0 1 0 0 0 0 0] return k_truss_element_local end """ define_truss_element_orientations(members, node_geometry) Define the truss element orientation angle. `members` is a NTuple{4, Int64} containing node i, node j, A, E assignments `node_geometry` is array with the global x-y coordinates A positive angle is defined counterclockwise from the horizon, rotating about node i. """ function define_truss_element_orientations(members, node_geometry) # Initialize the orientation array for all truss elements in a structural system. ΞΈ = zeros(Float64, length(members)) # Loop over the truss elements. for i=1:length(members) point_i = node_geometry[members[i][1], :] point_j = node_geometry[members[i][2], :] element_vector = point_j - point_i #Calculate the orientation angle. #https://en.wikipedia.org/wiki/Atan2 ΞΈ[i] = atan(element_vector[2], element_vector[1]) end return ΞΈ end """ vector_rotation_operator(ΞΈ) Define an operator matrix that converts truss element displacements to a new, rotated coordinate system. `ΞΈ` is the orientation angle of a truss element. A positive angle is defined counterclockwise from the horizon, rotating about node i. """ function vector_rotation_operator(ΞΈ) T = [cos(ΞΈ) sin(ΞΈ) 0 0 -sin(ΞΈ) cos(ΞΈ) 0 0 0 0 cos(ΞΈ) sin(ΞΈ) 0 0 -sin(ΞΈ) cos(ΞΈ)] return T end """ assign_member_properties(members, member_property, property_order, property_type) Define an array containing the member property values for each element in a structural system. For example, define all the cross-sectional areas for all the members in a truss. `members` is a NTuple{4, Int64} containing node i, node j, A, E assignments. `member_property` is an array containing all the available properties that a member can take on. `property order` is the index in the `members` NTuple where the specific property is assigned. """ function assign_member_properties(members, member_property, property_order, property_type) #Initialize the property array property = zeros(Float64, length(members)) #Loop over all the members. for i=1:length(members) #Assign a specific property (area, elastic modulus) to each element in a structural system. property[i] = member_property[members[i][property_order]][property_type] end return property end """ calculate_global_element_stiffness_matrix(k_element_local, ΞΈ) Transform a local element stiffness matrix to global coordinates. `k_element_local` is the element stiffness matrix in its local coordinate system. `ΞΈ` is the orientation angle of the element. """ function calculate_global_element_stiffness_matrix(k_element_local, T) #Transform the local element stiffness matrix to global coordinates. k_element_global = T' * k_element_local * T return k_element_global end """ assemble_global_stiffness_matrix(node_geometry, members, k_element_global, num_dof_per_node) Assemble all the element stiffness matrices into the global system stiffness matrix. `node_geometry` is an array with the global node x-y coordinates. `members` is a NTuple{4, Int64} containing node i, node j, and property assignments. `k_element_global` are all the element stiffness matrices in a 3D array. `num_dof_per_node` defines the number of degrees of freedom per element node. For a truss, this is 2, for a beam it is 3, ... """ function assemble_global_stiffness_matrix(node_geometry, members, k_element_global, num_dof_per_node) num_nodes = size(node_geometry)[1] k_system_global = zeros(Float64, num_nodes * num_dof_per_node, num_nodes * num_dof_per_node) for i=1:length(members) node_i = members[i][1] node_j = members[i][2] node_i_dof = [1;2] .+ (node_i - 1) * num_dof_per_node node_j_dof = [1;2] .+ (node_j - 1) * num_dof_per_node global_dof = [node_i_dof; node_j_dof] k_system_global[global_dof, global_dof] = k_system_global[global_dof, global_dof] + k_element_global[i] end return k_system_global end """ define(members, section_properties, material_properties, node_geometry, supports, external_forces) Define and partition the global system stiffness matrix and external force vector. `members` is a NTuple{4, Int64} containing node i, node j, and property assignments. 'section_properties' defines a library of section properties. 'material_properties' defines a library of material properties. `node_geometry` is an array with the global node x-y coordinates. `supports` defines the degrees of freedom that are free (0) and fixed(1). `external_forces` is an array of the external forces applied to the nodes, in global coordinates. Partition the stiffness matrix into Kff (free free), Kfs (free supported), Ksf (supported free), and Kss (supported supported). Partition the external forces at the free dof into Ff. Also return `f` array of free global degrees of freedom, `s` fixed global degrees of freedom, `T` all the rotation matrices for each truss element, and the `k_element_local` and `k_element_global` matrices. """ function define(members, section_properties, material_properties, node_geometry, supports, external_forces) truss = truss_object() truss.members = members truss.section_properties = section_properties truss.material_properties = material_properties truss.node_geometry = node_geometry truss.supports = supports num_nodes = size(node_geometry)[1] truss.external_forces = zeros(Float64, num_nodes * 2) truss.external_forces .= external_forces #Define the number of degrees of freedom per node. truss.num_dof_per_node = 2 #Calculate truss member lengths. truss.L = calculate_truss_element_lengths(members, node_geometry) #Calculate truss member orientations. truss.ΞΈ = define_truss_element_orientations(members, node_geometry) #Define truss properties for stiffness matrix calculations. truss.A = assign_member_properties(members, section_properties, 3, 1) truss.E = assign_member_properties(members, material_properties, 4, 1) #Calculate the local stiffness matrix for each element. truss.k_element_local = define_local_truss_element_stiffness_matrix.(truss.A, truss.E, truss.L) #Define rotation matrix for each element. truss.T = vector_rotation_operator.(truss.ΞΈ) #Rotate local stiffness matrix into global coordinates. truss.k_element_global = calculate_global_element_stiffness_matrix.(truss.k_element_local, truss.T) #Assemble the global stiffness matrix. truss.K = assemble_global_stiffness_matrix(node_geometry, members, truss.k_element_global, truss.num_dof_per_node) #Define free degrees of freedom. truss.f = findall(x-> x==0, supports) #Define number of free dof. num_free_dof = length(truss.f) #Define fixed degrees of freedom. truss.s = findall(x-> x==1, supports) #Define number of fixed dof. num_fixed_dof = length(truss.s) #Initialize partitioned stiffness matrices. truss.Kff = zeros(Float64, (num_free_dof, num_free_dof)) truss.Ksf = zeros(Float64, (num_fixed_dof, num_free_dof)) truss.Kfs = zeros(Float64, (num_free_dof, num_fixed_dof)) truss.Kss = zeros(Float64, (num_fixed_dof, num_fixed_dof)) #Partition the global stiffness matrix. truss.Kff .= truss.K[truss.f, truss.f] truss.Ksf .= truss.K[truss.s, truss.f] truss.Kfs .= truss.K[truss.f, truss.s] truss.Kss .= truss.K[truss.s, truss.s] #Partition the external force vectors. truss.F = external_forces truss.Ff = zeros(Float64, length(truss.f)) truss.Ff .= truss.F[truss.f] return truss end """ solve(K, Kff, Ksf, F, Ff, s, f, T, k_element_local) Solve for system displacements, reactions, and internal forces. `K` is the global stiffness matrix. 'Kff' is the partitioned portion of the global stiffness matrix, free by free. 'Ksf' is the partitioned portion of the global stiffness matrix, support by free. `F` is an array of the external forces. `s` is an array of the fixed degrees of freedom. `f` is an array of the support degrees of freedom. `T` are all the rotation matrices for each element. `k_element_local` are all the element local stiffness matrices. Calculate the global displacement vector `uf` for the free degrees of freedom, provide the full global displacement vector `u`, and calculate all the element internal forces as an array of arrays `f_element`. """ function solve(truss) #Define the total number of degrees of freedom in the system. num_dof = size(truss.K)[1] #Initialize the global displacement vector. truss.u = zeros(Float64, num_dof) #Calculate the global displacements at the free degrees of freedom. truss.uf = truss.Kff^-1 * truss.Ff #Insert uf into u. truss.u[truss.f] .= truss.uf #Calculate the global system reactions. truss.Fs = truss.Ksf * truss.uf #Insert Fs into F. truss.F[truss.s] .= truss.Fs #Define the number of elements. num_elem = length(truss.A) #Initialize an array of element force vectors. truss.f_element = fill(Float64[], num_elem, 1) #Calculate the internal forces in each element. for i = 1:num_elem #Define node i and j for an element. node_i = truss.members[i][1] node_j = truss.members[i][2] #Calculate the global dof numbers at each element nodes i and j. node_i_dof = [1;2] .+ (node_i - 1) * truss.num_dof_per_node node_j_dof = [1;2] .+ (node_j - 1) * truss.num_dof_per_node #Assemble all the global dof numbers for the element. global_dof = [node_i_dof; node_j_dof] #Find the element displacements in global coordinates. u_element_global = zeros(Float64, length(global_dof)) u_element_global .= truss.u[global_dof] #Transform the element displacements into local coordinates. u_element_local = truss.T[i] * u_element_global #Calculate the element local forces. truss.f_element[i] = truss.k_element_local[i] * u_element_local end return truss end function show(truss_object, scale_x, scale_y) Ξ΄x = truss_object.u[1:2:end] Ξ΄y = truss_object.u[2:2:end] num_nodes = floor(Int, length(truss_object.u)/2) g = zeros(Int64, (num_nodes, num_nodes)) start_nodes = [x[1] for x in truss_object.members] end_nodes = [x[2] for x in truss_object.members] for i = 1:num_nodes index = findall(x->x==i, start_nodes) g[i, end_nodes[index]] .= 1 end graphplot(g, x=truss_object.node_geometry[:,1], y=truss_object.node_geometry[:,2], nodeshape=:circle, nodesize=2, axis_buffer=0.01, curves=false, color=:red, linewidth=0.5, arrowlengthfrac=0) graphplot!(g, x=truss_object.node_geometry[:,1] .+ Ξ΄x .* scale_x, y=truss_object.node_geometry[:,2] .+ Ξ΄y .* scale_y, nodeshape=:circle, nodesize=2, axis_buffer=0.01, curves=false, color=:black, linewidth=2, arrowlengthfrac=0) quiver!(truss_object.node_geometry[:,1],truss_object.node_geometry[:,2],quiver=(truss_object.external_forces[1:2:end]./10, truss_object.external_forces[2:2:end]./10)) return current() end end #module
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 21412, 833, 1046, 198, 198, 3500, 44800, 2348, 29230, 198, 3500, 1345, 1747, 198, 3500, 29681, 6690, 18636, 198, 198, 39344, 8160, 11, 8494, 11, 905, 628, 198, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 491, 1046, 62, 15252, 198, 198, 1212, 2134, 6622, 477, 262, 17336, 357, 33665, 6608, 11, 2665, 6608, 11, 22939, 8, 290, 262, 4610, 357, 6381, 489, 28613, 11, 12737, 11, 5387, 3386, 8, 329, 257, 1080, 286, 491, 1046, 4847, 13, 198, 198, 22510, 62, 67, 1659, 62, 525, 62, 17440, 3712, 5317, 2414, 198, 30814, 3712, 19182, 90, 11251, 29291, 90, 19, 11, 5317, 2414, 5512, 16, 92, 198, 17440, 62, 469, 15748, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 5458, 62, 48310, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 33665, 62, 48310, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 18608, 2096, 3712, 19182, 90, 5317, 2414, 11, 16, 92, 198, 22615, 62, 27087, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 43, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 36, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 32, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 138, 116, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 42, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 42, 487, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 42, 28202, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 42, 9501, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 42, 824, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 37, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 42388, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 37, 69, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 82, 3712, 19182, 90, 5317, 2414, 11, 16, 92, 198, 69, 3712, 19182, 90, 5317, 2414, 11, 16, 92, 198, 51, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 92, 198, 74, 62, 30854, 62, 12001, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 92, 198, 74, 62, 30854, 62, 20541, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 92, 220, 220, 198, 84, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 3046, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 69, 62, 30854, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 16, 5512, 17, 92, 220, 220, 198, 198, 37811, 628, 198, 76, 18187, 2878, 491, 1046, 62, 15252, 628, 220, 220, 220, 997, 62, 67, 1659, 62, 525, 62, 17440, 3712, 5317, 2414, 198, 220, 220, 220, 1866, 3712, 19182, 90, 11251, 29291, 90, 19, 11, 5317, 2414, 5512, 16, 92, 198, 220, 220, 220, 10139, 62, 469, 15748, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 220, 220, 220, 2665, 62, 48310, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 2587, 62, 48310, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 6971, 3712, 19182, 90, 5317, 2414, 11, 16, 92, 198, 220, 220, 220, 7097, 62, 27087, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 406, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 412, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 317, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 7377, 116, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 509, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 220, 220, 220, 509, 487, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 220, 220, 220, 509, 28202, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 220, 220, 220, 509, 9501, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 220, 220, 220, 509, 824, 3712, 19182, 90, 43879, 2414, 11, 17, 92, 198, 220, 220, 220, 376, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 376, 82, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 376, 69, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 264, 3712, 19182, 90, 5317, 2414, 11, 16, 92, 198, 220, 220, 220, 277, 3712, 19182, 90, 5317, 2414, 11, 16, 92, 198, 220, 220, 220, 309, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 92, 198, 220, 220, 220, 479, 62, 30854, 62, 12001, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 92, 198, 220, 220, 220, 479, 62, 30854, 62, 20541, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 92, 220, 220, 198, 220, 220, 220, 334, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 334, 69, 3712, 19182, 90, 43879, 2414, 11, 16, 92, 198, 220, 220, 220, 277, 62, 30854, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 16, 5512, 17, 92, 220, 220, 628, 220, 220, 220, 1303, 1212, 3578, 329, 262, 5103, 286, 257, 649, 2134, 13, 198, 220, 220, 220, 491, 1046, 62, 15252, 3419, 796, 649, 3419, 198, 220, 220, 220, 220, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 15284, 62, 2213, 1046, 62, 30854, 62, 13664, 82, 7, 30814, 11, 10139, 62, 469, 15748, 8, 198, 198, 9771, 3129, 378, 262, 491, 1046, 2888, 20428, 287, 257, 13204, 1080, 13, 198, 198, 63, 30814, 63, 318, 257, 24563, 29291, 90, 19, 11, 2558, 2414, 92, 7268, 10139, 1312, 11, 10139, 474, 11, 317, 11, 412, 25815, 198, 63, 17440, 62, 469, 15748, 63, 318, 7177, 351, 262, 3298, 2124, 12, 88, 22715, 198, 198, 37811, 198, 198, 8818, 15284, 62, 2213, 1046, 62, 30854, 62, 13664, 82, 7, 30814, 11, 10139, 62, 469, 15748, 8, 628, 220, 220, 220, 1303, 24243, 1096, 7177, 284, 1745, 491, 1046, 20428, 13, 198, 220, 220, 220, 491, 1046, 62, 13664, 82, 28, 9107, 418, 7, 43879, 2414, 11, 4129, 7, 30814, 4008, 628, 220, 220, 220, 1303, 39516, 625, 1123, 491, 1046, 5002, 13, 198, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 30814, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 7469, 500, 491, 1046, 10139, 3146, 13, 220, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 72, 28, 30814, 58, 72, 7131, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 73, 28, 30814, 58, 72, 7131, 17, 60, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 7469, 500, 491, 1046, 10139, 22715, 13, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 72, 62, 5431, 28, 17440, 62, 469, 15748, 58, 17440, 62, 72, 11, 47715, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 73, 62, 5431, 28, 17440, 62, 469, 15748, 58, 17440, 62, 73, 11, 47715, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 9771, 3129, 378, 262, 491, 1046, 5002, 4129, 13, 198, 220, 220, 220, 220, 220, 220, 220, 491, 1046, 62, 13664, 82, 58, 72, 60, 796, 27237, 7, 17440, 62, 72, 62, 5431, 532, 10139, 62, 73, 62, 5431, 8, 628, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 491, 1046, 62, 13664, 82, 198, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 8160, 62, 12001, 62, 2213, 1046, 62, 30854, 62, 301, 733, 1108, 62, 6759, 8609, 7, 36, 11, 317, 11, 406, 8, 198, 198, 7469, 500, 257, 491, 1046, 5002, 49586, 17593, 287, 663, 1957, 20435, 1080, 13, 198, 198, 63, 36, 63, 318, 27468, 953, 23515, 13, 198, 63, 32, 63, 318, 262, 3272, 12, 44330, 1989, 13, 198, 63, 43, 63, 318, 491, 1046, 4129, 13, 198, 198, 1858, 389, 604, 7370, 286, 4925, 329, 262, 491, 1046, 5002, 13, 628, 220, 220, 220, 220, 220, 362, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 604, 198, 220, 220, 220, 352, 29, 61, 26171, 3784, 18, 61, 198, 198, 37811, 198, 198, 8818, 8160, 62, 12001, 62, 2213, 1046, 62, 30854, 62, 301, 733, 1108, 62, 6759, 8609, 7, 36, 11, 317, 11, 406, 8, 198, 197, 198, 197, 74, 62, 2213, 1046, 62, 30854, 62, 12001, 796, 412, 1635, 317, 14, 406, 1635, 685, 16, 220, 657, 532, 16, 657, 198, 197, 197, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 657, 220, 657, 657, 657, 198, 197, 197, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 16, 657, 220, 352, 657, 198, 197, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 657, 220, 657, 220, 657, 657, 60, 198, 197, 198, 197, 7783, 479, 62, 2213, 1046, 62, 30854, 62, 12001, 198, 197, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 8160, 62, 2213, 1046, 62, 30854, 62, 13989, 602, 7, 30814, 11, 10139, 62, 469, 15748, 8, 198, 198, 7469, 500, 262, 491, 1046, 5002, 12852, 9848, 13, 198, 198, 63, 30814, 63, 318, 257, 24563, 29291, 90, 19, 11, 2558, 2414, 92, 7268, 10139, 1312, 11, 10139, 474, 11, 317, 11, 412, 25815, 198, 63, 17440, 62, 469, 15748, 63, 318, 7177, 351, 262, 3298, 2124, 12, 88, 22715, 198, 198, 32, 3967, 9848, 318, 5447, 3753, 15750, 3083, 422, 262, 17810, 11, 24012, 546, 10139, 1312, 13, 220, 220, 198, 198, 37811, 198, 198, 8818, 8160, 62, 2213, 1046, 62, 30854, 62, 13989, 602, 7, 30814, 11, 10139, 62, 469, 15748, 8, 628, 220, 220, 220, 1303, 20768, 1096, 262, 12852, 7177, 329, 477, 491, 1046, 4847, 287, 257, 13204, 1080, 13, 198, 220, 220, 220, 7377, 116, 796, 1976, 27498, 7, 43879, 2414, 11, 4129, 7, 30814, 4008, 628, 220, 220, 220, 1303, 26304, 625, 262, 491, 1046, 4847, 13, 198, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 30814, 8, 628, 220, 220, 220, 220, 220, 220, 220, 966, 62, 72, 796, 10139, 62, 469, 15748, 58, 30814, 58, 72, 7131, 16, 4357, 1058, 60, 198, 220, 220, 220, 220, 220, 220, 220, 966, 62, 73, 796, 10139, 62, 469, 15748, 58, 30814, 58, 72, 7131, 17, 4357, 1058, 60, 628, 220, 220, 220, 220, 220, 220, 220, 5002, 62, 31364, 796, 966, 62, 73, 532, 966, 62, 72, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 9771, 3129, 378, 262, 12852, 9848, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 2953, 272, 17, 198, 220, 220, 220, 220, 220, 220, 220, 7377, 116, 58, 72, 60, 796, 379, 272, 7, 30854, 62, 31364, 58, 17, 4357, 5002, 62, 31364, 58, 16, 12962, 198, 220, 220, 220, 220, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 7377, 116, 198, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 15879, 62, 10599, 341, 62, 46616, 7, 138, 116, 8, 198, 198, 7469, 500, 281, 10088, 17593, 326, 26161, 491, 1046, 5002, 7845, 28613, 284, 257, 649, 11, 38375, 20435, 1080, 13, 220, 220, 220, 198, 198, 63, 138, 116, 63, 318, 262, 12852, 9848, 286, 257, 491, 1046, 5002, 13, 198, 198, 32, 3967, 9848, 318, 5447, 3753, 15750, 3083, 422, 262, 17810, 11, 24012, 546, 10139, 1312, 13, 220, 220, 198, 198, 37811, 198, 198, 8818, 15879, 62, 10599, 341, 62, 46616, 7, 138, 116, 8, 198, 197, 198, 197, 51, 796, 685, 6966, 7, 138, 116, 8, 7813, 7, 138, 116, 8, 657, 657, 198, 197, 197, 532, 31369, 7, 138, 116, 8, 8615, 7, 138, 116, 8, 657, 657, 198, 197, 197, 657, 657, 8615, 7, 138, 116, 8, 7813, 7, 138, 116, 8, 198, 197, 197, 657, 657, 220, 532, 31369, 7, 138, 116, 8, 8615, 7, 138, 116, 15437, 198, 197, 198, 197, 7783, 309, 198, 197, 198, 437, 198, 197, 198, 37811, 198, 220, 220, 220, 8333, 62, 19522, 62, 48310, 7, 30814, 11, 2888, 62, 26745, 11, 3119, 62, 2875, 11, 3119, 62, 4906, 8, 198, 198, 7469, 500, 281, 7177, 7268, 262, 2888, 3119, 3815, 329, 1123, 5002, 287, 257, 13204, 1080, 13, 220, 220, 1114, 1672, 11, 8160, 477, 262, 3272, 12, 44330, 3006, 329, 477, 262, 1866, 287, 257, 491, 1046, 13, 220, 198, 198, 63, 30814, 63, 318, 257, 24563, 29291, 90, 19, 11, 2558, 2414, 92, 7268, 10139, 1312, 11, 10139, 474, 11, 317, 11, 412, 25815, 13, 198, 63, 19522, 62, 26745, 63, 318, 281, 7177, 7268, 477, 262, 1695, 6608, 326, 257, 2888, 460, 1011, 319, 13, 220, 198, 63, 26745, 1502, 63, 318, 262, 6376, 287, 262, 4600, 30814, 63, 24563, 29291, 810, 262, 2176, 3119, 318, 8686, 13, 198, 198, 37811, 628, 198, 8818, 8333, 62, 19522, 62, 48310, 7, 30814, 11, 2888, 62, 26745, 11, 3119, 62, 2875, 11, 3119, 62, 4906, 8, 628, 220, 220, 220, 1303, 24243, 1096, 262, 3119, 7177, 198, 220, 220, 220, 3119, 796, 1976, 27498, 7, 43879, 2414, 11, 4129, 7, 30814, 4008, 628, 220, 220, 220, 1303, 39516, 625, 477, 262, 1866, 13, 198, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 30814, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 8021, 570, 257, 2176, 3119, 357, 20337, 11, 27468, 953, 23515, 8, 284, 1123, 5002, 287, 257, 13204, 1080, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3119, 58, 72, 60, 796, 2888, 62, 26745, 58, 30814, 58, 72, 7131, 26745, 62, 2875, 60, 7131, 26745, 62, 4906, 60, 628, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 3119, 198, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 15284, 62, 20541, 62, 30854, 62, 301, 733, 1108, 62, 6759, 8609, 7, 74, 62, 30854, 62, 12001, 11, 7377, 116, 8, 198, 198, 41762, 257, 1957, 5002, 49586, 17593, 284, 3298, 22715, 13, 198, 198, 63, 74, 62, 30854, 62, 12001, 63, 318, 262, 5002, 49586, 17593, 287, 663, 1957, 20435, 1080, 13, 198, 63, 138, 116, 63, 318, 262, 12852, 9848, 286, 262, 5002, 13, 198, 198, 37811, 198, 198, 8818, 15284, 62, 20541, 62, 30854, 62, 301, 733, 1108, 62, 6759, 8609, 7, 74, 62, 30854, 62, 12001, 11, 309, 8, 628, 220, 220, 220, 1303, 41762, 262, 1957, 5002, 49586, 17593, 284, 3298, 22715, 13, 198, 220, 220, 220, 479, 62, 30854, 62, 20541, 796, 309, 6, 1635, 479, 62, 30854, 62, 12001, 1635, 309, 628, 220, 220, 220, 1441, 479, 62, 30854, 62, 20541, 198, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 25432, 62, 20541, 62, 301, 733, 1108, 62, 6759, 8609, 7, 17440, 62, 469, 15748, 11, 1866, 11, 479, 62, 30854, 62, 20541, 11, 997, 62, 67, 1659, 62, 525, 62, 17440, 8, 198, 198, 1722, 15140, 477, 262, 5002, 49586, 2603, 45977, 656, 262, 3298, 1080, 49586, 17593, 13, 198, 198, 63, 17440, 62, 469, 15748, 63, 318, 281, 7177, 351, 262, 3298, 10139, 2124, 12, 88, 22715, 13, 198, 63, 30814, 63, 318, 257, 24563, 29291, 90, 19, 11, 2558, 2414, 92, 7268, 10139, 1312, 11, 10139, 474, 11, 290, 3119, 25815, 13, 198, 63, 74, 62, 30854, 62, 20541, 63, 389, 477, 262, 5002, 49586, 2603, 45977, 287, 257, 513, 35, 7177, 13, 198, 63, 22510, 62, 67, 1659, 62, 525, 62, 17440, 63, 15738, 262, 1271, 286, 7370, 286, 4925, 583, 5002, 10139, 13, 220, 1114, 257, 491, 1046, 11, 428, 318, 362, 11, 329, 257, 15584, 340, 318, 513, 11, 2644, 198, 198, 37811, 198, 198, 8818, 25432, 62, 20541, 62, 301, 733, 1108, 62, 6759, 8609, 7, 17440, 62, 469, 15748, 11, 1866, 11, 479, 62, 30854, 62, 20541, 11, 997, 62, 67, 1659, 62, 525, 62, 17440, 8, 628, 220, 220, 220, 997, 62, 77, 4147, 796, 2546, 7, 17440, 62, 469, 15748, 38381, 16, 60, 628, 220, 220, 220, 479, 62, 10057, 62, 20541, 796, 1976, 27498, 7, 43879, 2414, 11, 997, 62, 77, 4147, 1635, 997, 62, 67, 1659, 62, 525, 62, 17440, 11, 997, 62, 77, 4147, 1635, 997, 62, 67, 1659, 62, 525, 62, 17440, 8, 628, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 30814, 8, 628, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 72, 796, 1866, 58, 72, 7131, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 73, 796, 1866, 58, 72, 7131, 17, 60, 628, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 72, 62, 67, 1659, 796, 685, 16, 26, 17, 60, 764, 10, 357, 17440, 62, 72, 532, 352, 8, 1635, 997, 62, 67, 1659, 62, 525, 62, 17440, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 73, 62, 67, 1659, 796, 685, 16, 26, 17, 60, 764, 10, 357, 17440, 62, 73, 532, 352, 8, 1635, 997, 62, 67, 1659, 62, 525, 62, 17440, 628, 220, 220, 220, 220, 220, 220, 220, 3298, 62, 67, 1659, 796, 685, 17440, 62, 72, 62, 67, 1659, 26, 10139, 62, 73, 62, 67, 1659, 60, 628, 220, 220, 220, 220, 220, 220, 220, 479, 62, 10057, 62, 20541, 58, 20541, 62, 67, 1659, 11, 3298, 62, 67, 1659, 60, 796, 479, 62, 10057, 62, 20541, 58, 20541, 62, 67, 1659, 11, 3298, 62, 67, 1659, 60, 1343, 479, 62, 30854, 62, 20541, 58, 72, 60, 628, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 479, 62, 10057, 62, 20541, 198, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 8160, 7, 30814, 11, 2665, 62, 48310, 11, 2587, 62, 48310, 11, 10139, 62, 469, 15748, 11, 6971, 11, 7097, 62, 27087, 8, 198, 198, 7469, 500, 290, 18398, 262, 3298, 1080, 49586, 17593, 290, 7097, 2700, 15879, 13, 198, 198, 63, 30814, 63, 318, 257, 24563, 29291, 90, 19, 11, 2558, 2414, 92, 7268, 10139, 1312, 11, 10139, 474, 11, 290, 3119, 25815, 13, 198, 338, 3213, 62, 48310, 6, 15738, 257, 5888, 286, 2665, 6608, 13, 220, 220, 198, 1101, 2273, 62, 48310, 6, 15738, 257, 5888, 286, 2587, 6608, 13, 220, 220, 198, 63, 17440, 62, 469, 15748, 63, 318, 281, 7177, 351, 262, 3298, 10139, 2124, 12, 88, 22715, 13, 198, 63, 18608, 2096, 63, 15738, 262, 7370, 286, 4925, 326, 389, 1479, 357, 15, 8, 290, 5969, 7, 16, 737, 198, 63, 22615, 62, 27087, 63, 318, 281, 7177, 286, 262, 7097, 3386, 5625, 284, 262, 13760, 11, 287, 3298, 22715, 13, 198, 198, 7841, 653, 262, 49586, 17593, 656, 509, 487, 357, 5787, 1479, 828, 509, 9501, 357, 5787, 4855, 828, 509, 28202, 357, 15999, 1479, 828, 290, 509, 824, 357, 15999, 4855, 737, 220, 2142, 653, 262, 7097, 3386, 379, 262, 1479, 466, 69, 656, 376, 69, 13, 4418, 1441, 4600, 69, 63, 7177, 286, 1479, 3298, 7370, 286, 4925, 11, 4600, 82, 63, 5969, 3298, 7370, 286, 4925, 11, 4600, 51, 63, 477, 262, 13179, 2603, 45977, 329, 1123, 491, 1046, 5002, 11, 290, 262, 4600, 74, 62, 30854, 62, 12001, 63, 290, 4600, 74, 62, 30854, 62, 20541, 63, 2603, 45977, 13, 198, 198, 37811, 198, 198, 8818, 8160, 7, 30814, 11, 2665, 62, 48310, 11, 2587, 62, 48310, 11, 10139, 62, 469, 15748, 11, 6971, 11, 7097, 62, 27087, 8, 628, 220, 220, 220, 491, 1046, 796, 491, 1046, 62, 15252, 3419, 628, 220, 220, 220, 491, 1046, 13, 30814, 796, 1866, 198, 220, 220, 220, 491, 1046, 13, 5458, 62, 48310, 796, 2665, 62, 48310, 198, 220, 220, 220, 491, 1046, 13, 33665, 62, 48310, 796, 2587, 62, 48310, 198, 220, 220, 220, 491, 1046, 13, 17440, 62, 469, 15748, 796, 10139, 62, 469, 15748, 198, 220, 220, 220, 491, 1046, 13, 18608, 2096, 796, 6971, 628, 220, 220, 220, 997, 62, 77, 4147, 796, 2546, 7, 17440, 62, 469, 15748, 38381, 16, 60, 198, 220, 220, 220, 491, 1046, 13, 22615, 62, 27087, 796, 1976, 27498, 7, 43879, 2414, 11, 997, 62, 77, 4147, 1635, 362, 8, 198, 220, 220, 220, 491, 1046, 13, 22615, 62, 27087, 764, 28, 7097, 62, 27087, 628, 220, 220, 220, 1303, 7469, 500, 262, 1271, 286, 7370, 286, 4925, 583, 10139, 13, 198, 220, 220, 220, 491, 1046, 13, 22510, 62, 67, 1659, 62, 525, 62, 17440, 796, 362, 628, 220, 220, 220, 1303, 9771, 3129, 378, 491, 1046, 2888, 20428, 13, 198, 220, 220, 220, 491, 1046, 13, 43, 796, 15284, 62, 2213, 1046, 62, 30854, 62, 13664, 82, 7, 30814, 11, 10139, 62, 469, 15748, 8, 628, 220, 220, 220, 1303, 9771, 3129, 378, 491, 1046, 2888, 11367, 602, 13, 198, 220, 220, 220, 491, 1046, 13, 138, 116, 796, 8160, 62, 2213, 1046, 62, 30854, 62, 13989, 602, 7, 30814, 11, 10139, 62, 469, 15748, 8, 628, 220, 220, 220, 1303, 7469, 500, 491, 1046, 6608, 329, 49586, 17593, 16765, 13, 198, 220, 220, 220, 491, 1046, 13, 32, 796, 8333, 62, 19522, 62, 48310, 7, 30814, 11, 2665, 62, 48310, 11, 513, 11, 352, 8, 198, 220, 220, 220, 491, 1046, 13, 36, 796, 8333, 62, 19522, 62, 48310, 7, 30814, 11, 2587, 62, 48310, 11, 604, 11, 352, 8, 628, 220, 220, 220, 1303, 9771, 3129, 378, 262, 1957, 49586, 17593, 329, 1123, 5002, 13, 198, 220, 220, 220, 491, 1046, 13, 74, 62, 30854, 62, 12001, 796, 8160, 62, 12001, 62, 2213, 1046, 62, 30854, 62, 301, 733, 1108, 62, 6759, 8609, 12195, 2213, 1046, 13, 32, 11, 491, 1046, 13, 36, 11, 491, 1046, 13, 43, 8, 628, 220, 220, 220, 1303, 7469, 500, 13179, 17593, 329, 1123, 5002, 13, 198, 220, 220, 220, 491, 1046, 13, 51, 796, 15879, 62, 10599, 341, 62, 46616, 12195, 2213, 1046, 13, 138, 116, 8, 628, 220, 220, 220, 1303, 24864, 378, 1957, 49586, 17593, 656, 3298, 22715, 13, 198, 220, 220, 220, 491, 1046, 13, 74, 62, 30854, 62, 20541, 796, 15284, 62, 20541, 62, 30854, 62, 301, 733, 1108, 62, 6759, 8609, 12195, 2213, 1046, 13, 74, 62, 30854, 62, 12001, 11, 491, 1046, 13, 51, 8, 628, 220, 220, 220, 1303, 1722, 15140, 262, 3298, 49586, 17593, 13, 198, 220, 220, 220, 491, 1046, 13, 42, 796, 25432, 62, 20541, 62, 301, 733, 1108, 62, 6759, 8609, 7, 17440, 62, 469, 15748, 11, 1866, 11, 491, 1046, 13, 74, 62, 30854, 62, 20541, 11, 491, 1046, 13, 22510, 62, 67, 1659, 62, 525, 62, 17440, 8, 628, 220, 220, 220, 1303, 7469, 500, 1479, 7370, 286, 4925, 13, 220, 220, 198, 220, 220, 220, 491, 1046, 13, 69, 796, 1064, 439, 7, 87, 3784, 2124, 855, 15, 11, 6971, 8, 628, 220, 220, 220, 1303, 7469, 500, 1271, 286, 1479, 466, 69, 13, 198, 220, 220, 220, 997, 62, 5787, 62, 67, 1659, 796, 4129, 7, 2213, 1046, 13, 69, 8, 628, 220, 220, 220, 1303, 7469, 500, 5969, 7370, 286, 4925, 13, 198, 220, 220, 220, 491, 1046, 13, 82, 796, 1064, 439, 7, 87, 3784, 2124, 855, 16, 11, 6971, 8, 628, 220, 220, 220, 1303, 7469, 500, 1271, 286, 5969, 466, 69, 13, 198, 220, 220, 220, 997, 62, 34021, 62, 67, 1659, 796, 4129, 7, 2213, 1046, 13, 82, 8, 628, 220, 220, 220, 1303, 24243, 1096, 18398, 276, 49586, 2603, 45977, 13, 198, 220, 220, 220, 491, 1046, 13, 42, 487, 796, 1976, 27498, 7, 43879, 2414, 11, 357, 22510, 62, 5787, 62, 67, 1659, 11, 997, 62, 5787, 62, 67, 1659, 4008, 198, 220, 220, 220, 491, 1046, 13, 42, 28202, 796, 1976, 27498, 7, 43879, 2414, 11, 357, 22510, 62, 34021, 62, 67, 1659, 11, 997, 62, 5787, 62, 67, 1659, 4008, 198, 220, 220, 220, 491, 1046, 13, 42, 9501, 796, 1976, 27498, 7, 43879, 2414, 11, 357, 22510, 62, 5787, 62, 67, 1659, 11, 997, 62, 34021, 62, 67, 1659, 4008, 198, 220, 220, 220, 491, 1046, 13, 42, 824, 796, 1976, 27498, 7, 43879, 2414, 11, 357, 22510, 62, 34021, 62, 67, 1659, 11, 997, 62, 34021, 62, 67, 1659, 4008, 628, 220, 220, 220, 1303, 7841, 653, 262, 3298, 49586, 17593, 13, 198, 220, 220, 220, 491, 1046, 13, 42, 487, 764, 28, 491, 1046, 13, 42, 58, 2213, 1046, 13, 69, 11, 491, 1046, 13, 69, 60, 198, 220, 220, 220, 491, 1046, 13, 42, 28202, 764, 28, 491, 1046, 13, 42, 58, 2213, 1046, 13, 82, 11, 491, 1046, 13, 69, 60, 198, 220, 220, 220, 491, 1046, 13, 42, 9501, 764, 28, 491, 1046, 13, 42, 58, 2213, 1046, 13, 69, 11, 491, 1046, 13, 82, 60, 198, 220, 220, 220, 491, 1046, 13, 42, 824, 764, 28, 491, 1046, 13, 42, 58, 2213, 1046, 13, 82, 11, 491, 1046, 13, 82, 60, 628, 220, 220, 220, 1303, 7841, 653, 262, 7097, 2700, 30104, 13, 198, 220, 220, 220, 491, 1046, 13, 37, 796, 7097, 62, 27087, 198, 220, 220, 220, 491, 1046, 13, 37, 69, 796, 1976, 27498, 7, 43879, 2414, 11, 4129, 7, 2213, 1046, 13, 69, 4008, 198, 220, 220, 220, 491, 1046, 13, 37, 69, 764, 28, 491, 1046, 13, 37, 58, 2213, 1046, 13, 69, 60, 628, 220, 220, 220, 1441, 491, 1046, 198, 198, 437, 628, 198, 198, 37811, 198, 220, 220, 220, 8494, 7, 42, 11, 509, 487, 11, 509, 28202, 11, 376, 11, 376, 69, 11, 264, 11, 277, 11, 309, 11, 479, 62, 30854, 62, 12001, 8, 198, 198, 50, 6442, 329, 1080, 7845, 28613, 11, 12737, 11, 290, 5387, 3386, 13, 198, 198, 63, 42, 63, 318, 262, 3298, 49586, 17593, 13, 198, 6, 42, 487, 6, 318, 262, 18398, 276, 6903, 286, 262, 3298, 49586, 17593, 11, 1479, 416, 1479, 13, 198, 6, 42, 28202, 6, 318, 262, 18398, 276, 6903, 286, 262, 3298, 49586, 17593, 11, 1104, 416, 1479, 13, 220, 198, 63, 37, 63, 318, 281, 7177, 286, 262, 7097, 3386, 13, 198, 63, 82, 63, 318, 281, 7177, 286, 262, 5969, 7370, 286, 4925, 13, 198, 63, 69, 63, 318, 281, 7177, 286, 262, 1104, 7370, 286, 4925, 13, 198, 63, 51, 63, 389, 477, 262, 13179, 2603, 45977, 329, 1123, 5002, 13, 198, 63, 74, 62, 30854, 62, 12001, 63, 389, 477, 262, 5002, 1957, 49586, 2603, 45977, 13, 198, 198, 9771, 3129, 378, 262, 3298, 29358, 15879, 4600, 3046, 63, 329, 262, 1479, 7370, 286, 4925, 11, 2148, 262, 1336, 3298, 29358, 15879, 4600, 84, 47671, 290, 15284, 477, 262, 5002, 5387, 3386, 355, 281, 7177, 286, 26515, 4600, 69, 62, 30854, 44646, 220, 198, 198, 37811, 198, 198, 8818, 8494, 7, 2213, 1046, 8, 628, 220, 220, 220, 1303, 7469, 500, 262, 2472, 1271, 286, 7370, 286, 4925, 287, 262, 1080, 13, 198, 220, 220, 220, 997, 62, 67, 1659, 796, 2546, 7, 2213, 1046, 13, 42, 38381, 16, 60, 628, 220, 220, 220, 1303, 24243, 1096, 262, 3298, 29358, 15879, 13, 198, 220, 220, 220, 491, 1046, 13, 84, 796, 1976, 27498, 7, 43879, 2414, 11, 997, 62, 67, 1659, 8, 628, 220, 220, 220, 1303, 9771, 3129, 378, 262, 3298, 7845, 28613, 379, 262, 1479, 7370, 286, 4925, 13, 198, 220, 220, 220, 491, 1046, 13, 3046, 796, 491, 1046, 13, 42, 487, 61, 12, 16, 1635, 491, 1046, 13, 37, 69, 628, 220, 220, 220, 1303, 44402, 334, 69, 656, 334, 13, 198, 220, 220, 220, 491, 1046, 13, 84, 58, 2213, 1046, 13, 69, 60, 764, 28, 491, 1046, 13, 3046, 628, 220, 220, 220, 1303, 9771, 3129, 378, 262, 3298, 1080, 12737, 13, 198, 220, 220, 220, 491, 1046, 13, 42388, 796, 491, 1046, 13, 42, 28202, 1635, 491, 1046, 13, 3046, 628, 220, 220, 220, 1303, 44402, 376, 82, 656, 376, 13, 198, 220, 220, 220, 491, 1046, 13, 37, 58, 2213, 1046, 13, 82, 60, 764, 28, 491, 1046, 13, 42388, 628, 220, 220, 220, 1303, 7469, 500, 262, 1271, 286, 4847, 13, 198, 220, 220, 220, 997, 62, 68, 10671, 796, 4129, 7, 2213, 1046, 13, 32, 8, 628, 220, 220, 220, 1303, 24243, 1096, 281, 7177, 286, 5002, 2700, 30104, 13, 198, 220, 220, 220, 491, 1046, 13, 69, 62, 30854, 796, 6070, 7, 43879, 2414, 58, 4357, 997, 62, 68, 10671, 11, 352, 8, 220, 628, 220, 220, 220, 1303, 9771, 3129, 378, 262, 5387, 3386, 287, 1123, 5002, 13, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 22510, 62, 68, 10671, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 7469, 500, 10139, 1312, 290, 474, 329, 281, 5002, 13, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 72, 796, 491, 1046, 13, 30814, 58, 72, 7131, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 73, 796, 491, 1046, 13, 30814, 58, 72, 7131, 17, 60, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 9771, 3129, 378, 262, 3298, 466, 69, 3146, 379, 1123, 5002, 13760, 1312, 290, 474, 13, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 72, 62, 67, 1659, 796, 685, 16, 26, 17, 60, 764, 10, 357, 17440, 62, 72, 532, 352, 8, 1635, 491, 1046, 13, 22510, 62, 67, 1659, 62, 525, 62, 17440, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 73, 62, 67, 1659, 796, 685, 16, 26, 17, 60, 764, 10, 357, 17440, 62, 73, 532, 352, 8, 1635, 491, 1046, 13, 22510, 62, 67, 1659, 62, 525, 62, 17440, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 1722, 15140, 477, 262, 3298, 466, 69, 3146, 329, 262, 5002, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3298, 62, 67, 1659, 796, 685, 17440, 62, 72, 62, 67, 1659, 26, 10139, 62, 73, 62, 67, 1659, 60, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 16742, 262, 5002, 7845, 28613, 287, 3298, 22715, 13, 198, 220, 220, 220, 220, 220, 220, 220, 334, 62, 30854, 62, 20541, 796, 1976, 27498, 7, 43879, 2414, 11, 4129, 7, 20541, 62, 67, 1659, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 334, 62, 30854, 62, 20541, 764, 28, 491, 1046, 13, 84, 58, 20541, 62, 67, 1659, 60, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 41762, 262, 5002, 7845, 28613, 656, 1957, 22715, 13, 198, 220, 220, 220, 220, 220, 220, 220, 334, 62, 30854, 62, 12001, 796, 491, 1046, 13, 51, 58, 72, 60, 1635, 334, 62, 30854, 62, 20541, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 9771, 3129, 378, 262, 5002, 1957, 3386, 13, 198, 220, 220, 220, 220, 220, 220, 220, 491, 1046, 13, 69, 62, 30854, 58, 72, 60, 796, 491, 1046, 13, 74, 62, 30854, 62, 12001, 58, 72, 60, 1635, 334, 62, 30854, 62, 12001, 628, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 491, 1046, 198, 198, 437, 198, 198, 8818, 905, 7, 2213, 1046, 62, 15252, 11, 5046, 62, 87, 11, 5046, 62, 88, 8, 198, 197, 198, 197, 198, 197, 138, 112, 87, 796, 491, 1046, 62, 15252, 13, 84, 58, 16, 25, 17, 25, 437, 60, 198, 197, 138, 112, 88, 796, 491, 1046, 62, 15252, 13, 84, 58, 17, 25, 17, 25, 437, 60, 198, 197, 198, 197, 22510, 62, 77, 4147, 796, 4314, 7, 5317, 11, 4129, 7, 2213, 1046, 62, 15252, 13, 84, 20679, 17, 8, 198, 197, 198, 197, 70, 796, 1976, 27498, 7, 5317, 2414, 11, 357, 22510, 62, 77, 4147, 11, 997, 62, 77, 4147, 4008, 198, 197, 198, 197, 9688, 62, 77, 4147, 796, 685, 87, 58, 16, 60, 329, 2124, 287, 491, 1046, 62, 15252, 13, 30814, 60, 198, 197, 437, 62, 77, 4147, 796, 685, 87, 58, 17, 60, 329, 2124, 287, 491, 1046, 62, 15252, 13, 30814, 60, 628, 197, 1640, 1312, 796, 352, 25, 22510, 62, 77, 4147, 198, 197, 198, 197, 197, 9630, 796, 1064, 439, 7, 87, 3784, 87, 855, 72, 11, 923, 62, 77, 4147, 8, 198, 197, 198, 197, 197, 70, 58, 72, 11, 886, 62, 77, 4147, 58, 9630, 11907, 764, 28, 352, 198, 197, 198, 197, 437, 198, 197, 198, 197, 34960, 29487, 7, 70, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 28, 2213, 1046, 62, 15252, 13, 17440, 62, 469, 15748, 58, 45299, 16, 4357, 331, 28, 2213, 1046, 62, 15252, 13, 17440, 62, 469, 15748, 58, 45299, 17, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13760, 71, 1758, 28, 25, 45597, 11, 13760, 1096, 28, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16488, 62, 22252, 28, 15, 13, 486, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23759, 28, 9562, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3124, 28, 25, 445, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9493, 413, 5649, 28, 15, 13, 20, 11, 198, 197, 220, 220, 220, 220, 220, 15452, 13664, 31944, 28, 15, 8, 198, 197, 198, 197, 34960, 29487, 0, 7, 70, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 28, 2213, 1046, 62, 15252, 13, 17440, 62, 469, 15748, 58, 45299, 16, 60, 764, 10, 7377, 112, 87, 764, 9, 5046, 62, 87, 11, 331, 28, 2213, 1046, 62, 15252, 13, 17440, 62, 469, 15748, 58, 45299, 17, 60, 764, 10, 7377, 112, 88, 764, 9, 220, 197, 9888, 62, 88, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13760, 71, 1758, 28, 25, 45597, 11, 13760, 1096, 28, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16488, 62, 22252, 28, 15, 13, 486, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23759, 28, 9562, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3124, 28, 25, 13424, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9493, 413, 5649, 28, 17, 11, 198, 197, 220, 220, 220, 220, 220, 15452, 13664, 31944, 28, 15, 8, 198, 197, 198, 197, 421, 1428, 0, 7, 2213, 1046, 62, 15252, 13, 17440, 62, 469, 15748, 58, 45299, 16, 4357, 2213, 1046, 62, 15252, 13, 17440, 62, 469, 15748, 58, 45299, 17, 4357, 421, 1428, 16193, 2213, 1046, 62, 15252, 13, 22615, 62, 27087, 58, 16, 25, 17, 25, 437, 4083, 14, 940, 11, 491, 1046, 62, 15252, 13, 22615, 62, 27087, 58, 17, 25, 17, 25, 437, 4083, 14, 940, 4008, 198, 197, 198, 197, 7783, 1459, 3419, 198, 197, 198, 437, 628, 628, 198, 437, 1303, 21412, 628, 628, 628 ]
2.559896
5,760
<gh_stars>0 using Test using NSGAII include("./cornercases.jl") @testset "Domination" begin L=[[2,1,1],[1,2,2],[1,0,0]] fitness(x::FloatIndividual)=0 cfg=Cambrian.get_config("./test.yaml";n_population= 3,n_offsprings=5,d_fitness=3) e=NSGA2Evolution{FloatIndividual}(cfg,fitness) for i in 1:3 copyto!(e.population[i].fitness,L[i]) end @test dominates(e,e.population[1],e.population[2])==false @test dominates(e,e.population[2],e.population[1])==false @test dominates(e,e.population[1],e.population[3])==true @test dominates(e,e.population[3],e.population[1])==false end @testset "fastNonDominatedSort" begin fitness1,ranks1=pop1D() fitness2,ranks2=pop3D() fitness(x::FloatIndividual)=0 cfg=Cambrian.get_config("./test.yaml";n_population= 20,n_offsprings=5,d_fitness=1) e=NSGA2Evolution{FloatIndividual}(cfg,fitness) for i in 1:20 copyto!(e.population[i].fitness,fitness1[i]) end oldPop1D=copy(e.population) fastNonDominatedSort!(e) @test length(e.population)==length(oldPop1D) for x in oldPop1D @test x in e.population end for i in 1:e.config.n_population @test ranks1[i]==e.rank[objectid(e.population[i])] end cfg=Cambrian.get_config("./test.yaml";n_population= 16,n_offsprings=5,d_fitness=3) e=NSGA2Evolution{FloatIndividual}(cfg,fitness) for i in 1:16 copyto!(e.population[i].fitness,fitness2[i]) end oldPop3D=copy(e.population) fastNonDominatedSort!(e) @test length(e.population)==length(oldPop3D) for x in oldPop3D @test x in e.population end for i in 1:e.config.n_population @test ranks2[i]==e.rank[objectid(e.population[i])] end end
[ 27, 456, 62, 30783, 29, 15, 198, 3500, 6208, 198, 3500, 10896, 9273, 3978, 198, 198, 17256, 7, 1911, 14, 10215, 1008, 33964, 13, 20362, 4943, 198, 198, 31, 9288, 2617, 366, 24510, 1883, 1, 2221, 198, 220, 220, 220, 406, 28, 30109, 17, 11, 16, 11, 16, 38430, 16, 11, 17, 11, 17, 38430, 16, 11, 15, 11, 15, 11907, 198, 220, 220, 220, 13547, 7, 87, 3712, 43879, 35392, 47505, 15, 198, 220, 220, 220, 30218, 70, 28, 34, 4131, 4484, 13, 1136, 62, 11250, 7, 1911, 14, 9288, 13, 88, 43695, 8172, 77, 62, 39748, 28, 513, 11, 77, 62, 8210, 1050, 654, 28, 20, 11, 67, 62, 69, 3659, 28, 18, 8, 198, 220, 220, 220, 304, 28, 8035, 9273, 17, 15200, 2122, 90, 43879, 35392, 92, 7, 37581, 11, 69, 3659, 8, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 18, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 1462, 0, 7, 68, 13, 39748, 58, 72, 4083, 69, 3659, 11, 43, 58, 72, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 38777, 7, 68, 11, 68, 13, 39748, 58, 16, 4357, 68, 13, 39748, 58, 17, 12962, 855, 9562, 198, 220, 220, 220, 2488, 9288, 38777, 7, 68, 11, 68, 13, 39748, 58, 17, 4357, 68, 13, 39748, 58, 16, 12962, 855, 9562, 198, 220, 220, 220, 2488, 9288, 38777, 7, 68, 11, 68, 13, 39748, 58, 16, 4357, 68, 13, 39748, 58, 18, 12962, 855, 7942, 198, 220, 220, 220, 2488, 9288, 38777, 7, 68, 11, 68, 13, 39748, 58, 18, 4357, 68, 13, 39748, 58, 16, 12962, 855, 9562, 198, 437, 198, 198, 31, 9288, 2617, 366, 7217, 15419, 24510, 3898, 42758, 1, 2221, 198, 220, 220, 220, 13547, 16, 11, 81, 2283, 16, 28, 12924, 16, 35, 3419, 198, 220, 220, 220, 13547, 17, 11, 81, 2283, 17, 28, 12924, 18, 35, 3419, 198, 220, 220, 220, 13547, 7, 87, 3712, 43879, 35392, 47505, 15, 198, 220, 220, 220, 30218, 70, 28, 34, 4131, 4484, 13, 1136, 62, 11250, 7, 1911, 14, 9288, 13, 88, 43695, 8172, 77, 62, 39748, 28, 1160, 11, 77, 62, 8210, 1050, 654, 28, 20, 11, 67, 62, 69, 3659, 28, 16, 8, 198, 220, 220, 220, 304, 28, 8035, 9273, 17, 15200, 2122, 90, 43879, 35392, 92, 7, 37581, 11, 69, 3659, 8, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 1238, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 1462, 0, 7, 68, 13, 39748, 58, 72, 4083, 69, 3659, 11, 69, 3659, 16, 58, 72, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1468, 16979, 16, 35, 28, 30073, 7, 68, 13, 39748, 8, 198, 220, 220, 220, 3049, 15419, 24510, 3898, 42758, 0, 7, 68, 8, 198, 220, 220, 220, 2488, 9288, 4129, 7, 68, 13, 39748, 8, 855, 13664, 7, 727, 16979, 16, 35, 8, 198, 220, 220, 220, 329, 2124, 287, 1468, 16979, 16, 35, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 287, 304, 13, 39748, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 68, 13, 11250, 13, 77, 62, 39748, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 9803, 16, 58, 72, 60, 855, 68, 13, 43027, 58, 15252, 312, 7, 68, 13, 39748, 58, 72, 12962, 60, 198, 220, 220, 220, 886, 628, 220, 220, 220, 30218, 70, 28, 34, 4131, 4484, 13, 1136, 62, 11250, 7, 1911, 14, 9288, 13, 88, 43695, 8172, 77, 62, 39748, 28, 1467, 11, 77, 62, 8210, 1050, 654, 28, 20, 11, 67, 62, 69, 3659, 28, 18, 8, 198, 220, 220, 220, 304, 28, 8035, 9273, 17, 15200, 2122, 90, 43879, 35392, 92, 7, 37581, 11, 69, 3659, 8, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 1433, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 1462, 0, 7, 68, 13, 39748, 58, 72, 4083, 69, 3659, 11, 69, 3659, 17, 58, 72, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1468, 16979, 18, 35, 28, 30073, 7, 68, 13, 39748, 8, 198, 220, 220, 220, 3049, 15419, 24510, 3898, 42758, 0, 7, 68, 8, 198, 220, 220, 220, 2488, 9288, 4129, 7, 68, 13, 39748, 8, 855, 13664, 7, 727, 16979, 18, 35, 8, 198, 220, 220, 220, 329, 2124, 287, 1468, 16979, 18, 35, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 287, 304, 13, 39748, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 68, 13, 11250, 13, 77, 62, 39748, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 9803, 17, 58, 72, 60, 855, 68, 13, 43027, 58, 15252, 312, 7, 68, 13, 39748, 58, 72, 12962, 60, 198, 220, 220, 220, 886, 198, 437, 198 ]
2.160248
805
<filename>src/gp_de.jl<gh_stars>1-10 export SparseGP, GPmodel, GPODE export samplegp, gpmeanvar # https://github.com/SciML/DiffEqFlux.jl/blob/c59971fd4d3ee84aff39f88b7073d7e8cf51c34c/src/neural_de.jl#L38 abstract type TrajType end struct SampleTraj <: TrajType end struct MeanTraj <: TrajType end abstract type SparseGPMethod end struct FITC <: SparseGPMethod end struct VLB <: SparseGPMethod end struct Vanilla <: SparseGPMethod end ### # Struct that contains everything needed for prediction ### struct SparseGP{K, T<:Real, N, A<: NTuple{N, Array{<:Array{<:Real,1},1}}, M<:SparseGPMethod} kernel::K Οƒ_n::T inP::A # inducing points mean::Function trafo::Function method::M # type? FITC, SOR, PITC end #ToDo: Update Οƒ_n in this object function zeromean(n) return x -> fill(0, n) end identitytrafo(x) = x function SparseGP(kernel, Z, U; Οƒ_n = 1e-6, mean = zeromean(length(U[1])), trafo = identitytrafo, method = Vanilla()) indP = (trafo.(Z), U) N = length(indP) SparseGP{typeof(kernel), typeof(Οƒ_n), N, typeof(indP), typeof(method)}(kernel, Οƒ_n, indP, mean, trafo, method) end function SparseGP(kernel, Z, X, Y; Οƒ_n = 1e-6, mean = zeromean(length(Y[1])), trafo = identitytrafo, method = FITC()) indP = (trafo.(Z), trafo.(X), Y) N = length(indP) SparseGP{typeof(kernel), typeof(Οƒ_n), N, typeof(indP), typeof(method)}(kernel, Οƒ_n, indP, mean, trafo, method) end function (sgp::SparseGP)(x::T) where T <: Real Z = sgp.inP[1] ker = sgp.kernel Kx = kernelmatrix(ker, [[x]], Z) end function (sgp::SparseGP)(x::Array{T,1}) where T <: Real Z = sgp.inP[1] ker = sgp.kernel Kx = kernelmatrix(ker, [x], Z) end ### # GP model, that contains the sparse GP object with all necessary data, and struct GPmodel{SGP <: SparseGP, T<:Real} sgp::SGP KinvU::Array{T,2} Ξ£::Array{T,2} end # maybe with data function GPmodel(sgp::SparseGP) KiU, Ξ£ = computeKinvU(sgp) GPmodel(sgp, KiU, Ξ£) end function (gpm::GPmodel)(x, traj::MeanTraj = MeanTraj()) Kx = gpm.sgp(gpm.sgp.trafo(x)) ΞΌ = gpm.sgp.mean return (ΞΌ(x) .+ (Kx * gpm.KinvU)[:]) end function (gpm::GPmodel)(x, traj::SampleTraj) Kx = gpm.sgp(gpm.sgp.trafo(x)) ΞΌ = gpm.sgp.mean m = (ΞΌ(x) .+ (Kx * gpm.KinvU))[:] Ξ£ = gpm.Ξ£ std = sqrt.(diag(Kx * (Ξ£ \ Kx'))) # var = diag(Kx*Kuu*Kx') s = randn(length(x)) .* std return (m .+ s) end # this can almost certainly be removed. might be interesting for comparison purposes function (gpm::GPmodel)(xv::MS) where MS <: Array{<:Measurement{<:Real}, 1} x = getfield.(xv, :val) Sigma = diagm(getfield.(xv, err)) Kx = gpm.sgp(gpm.sgp.trafo(x)) ΞΌ = gpm.sgp.mean m = (ΞΌ(x) .+ (Kx * gpm.KinvU))[:] Ξ£ = gpm.Ξ£ var = sqrt.(diag(Kx * (Ξ£ \ Kx'))) # var = diag(Kx*Kuu*Kx') return (m .Β± var) end #### # functions to facilitate efficient computation, as per Q-C&R function computeKinvU(sgp::SparseGP) return _computeKinvU(sgp, sgp.inP, sgp.method) end function _computeKinvU(sgp::SparseGP, indP::NTuple{2, Array{<:Array{<:Real,1},1}}, method::M) where M<:SparseGPMethod Z = indP[1] U = indP[2] Οƒ_n = sgp.Οƒ_n ΞΌ = sgp.mean U = U .- ΞΌ.(Z) # vU = reduce(vcat, U) # ToDo: might have to make output(?) dimensions more explicit vU = reshape(reduce(vcat, U), :, length(Z)*length(Z[1])) vU = permutedims(vU) ker = sgp.kernel K = kernelmatrix(ker, Z) + Οƒ_n * I KinvU = K \ vU return (KinvU, K) end function _computeKinvU(sgp::SparseGP, indP::NTuple{3, Array{<:Array{<:Real,1},1}}, method::M) where M <: SparseGPMethod Z = indP[1] X = indP[2] Y = indP[3] ΞΌ = sgp.mean Y = Y .- ΞΌ.(X) ker = sgp.kernel Kff = kernelmatrix(ker, X) Kfu = kernelmatrix(ker, X, Z) Kuu = kernelmatrix(ker, Z) Qff = Kfu * ( Kuu \ Kfu' ) noise = sgp.Οƒ_n Ξ› = _computelambda(Kff, Qff, noise, method) Ξ£ = _computesigma(Kuu, Kfu, Ξ›) vY = reshape(reduce(vcat, Y), :, length(X)*length(X[1])) vY = permutedims(vY) KinvU = Ξ£ \ (Kfu' * (Ξ› \ vY)) return (KinvU, Ξ£) end function _computesigma(Kuu, Kfu, Ξ›) return Kuu + Kfu' * (Ξ› \ Kfu) end function _computelambda(Kff, Qff, noise, method::VLB) return noise * I end function _computelambda(Kff, Qff, noise, method::FITC) return Diagonal(diag( Kff - Qff) .+ noise) end ##### # complete GPODE construct ##### basic_tgrad(u,p,t) = zero(u) struct GPODE{M<:GPmodel,T,A,K,TT<: TrajType} #<: NeuralDELayer model::M # p::P, parameters, maybe one day tspan::T args::A kwargs::K trajtype::TT function GPODE(model::GPM,tspan,args...; sample = false, kwargs...) where GPM <: GPmodel tt = sample ? SampleTraj() : MeanTraj() new{typeof(model),typeof(tspan),typeof(args),typeof(kwargs), typeof(tt)}( model,tspan,args,kwargs,tt) end end function GPODE(sgp::SGP,tspan,args...;sample::Bool=false, kwargs...) where SGP <: SparseGP gpm = GPmodel(sgp) return GPODE(gpm,tspan,args..., sample = sample, kwargs...) end function (gp::GPODE)(x0) dudt_(u,p,t) = gp.model(u, gp.trajtype) ff = ODEFunction{false}(dudt_,tgrad=basic_tgrad) prob = ODEProblem{false}(ff,x0,getfield(gp,:tspan)) solve(prob,gp.args...;gp.kwargs...) end function samplegp(x, gp, n, args = gp.args; kwargs...) # dudt_(u,p,t) = gp.model(u, GaussianProcessODEs.SampleTraj()) # ff = ODEFunction{false}(dudt_,tgrad=GaussianProcessODEs.basic_tgrad) # prob = ODEProblem{false}(ff,x,getfield(gp,:tspan)) # ensemble = EnsembleProblem(prob) # solve(ensemble, gp.args..., EnsembleThreads(); trajectories = n, gp.kwargs...) sample_gpODE = GPODE(gp.model, gp.tspan, args...; sample = true, kwargs...); t = @elapsed sols = ThreadsX.collect(sample_gpODE(x) for i in 1:n) EnsembleSolution(sols, t, true) end using DifferentialEquations.EnsembleAnalysis function gpmeanvar(samplesols, ts) meanvar = timepoint_meanvar(samplesols,ts) mtrajs = meanvar[1] stdtrajs = sqrt.(meanvar[2]) return mtrajs, stdtrajs end
[ 27, 34345, 29, 10677, 14, 31197, 62, 2934, 13, 20362, 27, 456, 62, 30783, 29, 16, 12, 940, 198, 39344, 1338, 17208, 16960, 11, 14714, 19849, 11, 14714, 16820, 198, 39344, 6291, 31197, 11, 27809, 32604, 7785, 198, 198, 2, 3740, 1378, 12567, 13, 785, 14, 50, 979, 5805, 14, 28813, 36, 80, 37, 22564, 13, 20362, 14, 2436, 672, 14, 66, 43452, 4869, 16344, 19, 67, 18, 1453, 5705, 2001, 2670, 69, 3459, 65, 2154, 4790, 67, 22, 68, 23, 12993, 4349, 66, 2682, 66, 14, 10677, 14, 710, 1523, 62, 2934, 13, 20362, 2, 43, 2548, 198, 198, 397, 8709, 2099, 4759, 73, 6030, 886, 198, 7249, 27565, 15721, 73, 1279, 25, 4759, 73, 6030, 886, 198, 7249, 22728, 15721, 73, 1279, 25, 4759, 73, 6030, 886, 198, 198, 397, 8709, 2099, 1338, 17208, 38, 5868, 316, 2065, 886, 198, 7249, 376, 2043, 34, 1279, 25, 1338, 17208, 38, 5868, 316, 2065, 886, 198, 7249, 569, 30501, 1279, 25, 1338, 17208, 38, 5868, 316, 2065, 886, 198, 7249, 33897, 1279, 25, 1338, 17208, 38, 5868, 316, 2065, 886, 198, 198, 21017, 198, 2, 32112, 326, 4909, 2279, 2622, 329, 17724, 198, 21017, 198, 7249, 1338, 17208, 16960, 90, 42, 11, 309, 27, 25, 15633, 11, 399, 11, 317, 27, 25, 24563, 29291, 90, 45, 11, 15690, 90, 27, 25, 19182, 90, 27, 25, 15633, 11, 16, 5512, 16, 92, 5512, 337, 27, 25, 50, 29572, 38, 5868, 316, 2065, 92, 198, 220, 220, 220, 9720, 3712, 42, 198, 220, 220, 220, 18074, 225, 62, 77, 3712, 51, 198, 220, 220, 220, 287, 47, 3712, 32, 1303, 44561, 2173, 198, 220, 220, 220, 1612, 3712, 22203, 198, 220, 220, 220, 1291, 6513, 3712, 22203, 198, 220, 220, 220, 2446, 3712, 44, 198, 220, 220, 220, 1303, 2099, 30, 376, 2043, 34, 11, 311, 1581, 11, 49040, 34, 198, 437, 198, 198, 2, 2514, 5211, 25, 10133, 18074, 225, 62, 77, 287, 428, 2134, 198, 198, 8818, 1976, 263, 462, 272, 7, 77, 8, 220, 198, 220, 220, 220, 1441, 2124, 4613, 6070, 7, 15, 11, 299, 8, 198, 437, 198, 738, 414, 9535, 6513, 7, 87, 8, 796, 2124, 198, 198, 8818, 1338, 17208, 16960, 7, 33885, 11, 1168, 11, 471, 26, 18074, 225, 62, 77, 796, 352, 68, 12, 21, 11, 1612, 796, 1976, 263, 462, 272, 7, 13664, 7, 52, 58, 16, 12962, 828, 1291, 6513, 796, 5369, 9535, 6513, 11, 2446, 796, 33897, 28955, 198, 220, 220, 220, 773, 47, 796, 357, 9535, 6513, 12195, 57, 828, 471, 8, 198, 220, 220, 220, 399, 796, 4129, 7, 521, 47, 8, 198, 220, 220, 220, 1338, 17208, 16960, 90, 4906, 1659, 7, 33885, 828, 2099, 1659, 7, 38392, 62, 77, 828, 399, 11, 2099, 1659, 7, 521, 47, 828, 2099, 1659, 7, 24396, 38165, 7, 33885, 11, 18074, 225, 62, 77, 11, 773, 47, 11, 1612, 11, 1291, 6513, 11, 2446, 8, 198, 437, 198, 8818, 1338, 17208, 16960, 7, 33885, 11, 1168, 11, 1395, 11, 575, 26, 18074, 225, 62, 77, 796, 352, 68, 12, 21, 11, 1612, 796, 1976, 263, 462, 272, 7, 13664, 7, 56, 58, 16, 12962, 828, 1291, 6513, 796, 5369, 9535, 6513, 11, 2446, 796, 376, 2043, 34, 28955, 198, 220, 220, 220, 773, 47, 796, 357, 9535, 6513, 12195, 57, 828, 1291, 6513, 12195, 55, 828, 575, 8, 198, 220, 220, 220, 399, 796, 4129, 7, 521, 47, 8, 198, 220, 220, 220, 1338, 17208, 16960, 90, 4906, 1659, 7, 33885, 828, 2099, 1659, 7, 38392, 62, 77, 828, 399, 11, 2099, 1659, 7, 521, 47, 828, 2099, 1659, 7, 24396, 38165, 7, 33885, 11, 18074, 225, 62, 77, 11, 773, 47, 11, 1612, 11, 1291, 6513, 11, 2446, 8, 198, 437, 198, 198, 8818, 357, 82, 31197, 3712, 50, 29572, 16960, 5769, 87, 3712, 51, 8, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1168, 796, 264, 31197, 13, 259, 47, 58, 16, 60, 198, 220, 220, 220, 41927, 796, 264, 31197, 13, 33885, 198, 220, 220, 220, 509, 87, 796, 9720, 6759, 8609, 7, 6122, 11, 16410, 87, 60, 4357, 1168, 8, 198, 437, 198, 198, 8818, 357, 82, 31197, 3712, 50, 29572, 16960, 5769, 87, 3712, 19182, 90, 51, 11, 16, 30072, 810, 309, 1279, 25, 6416, 198, 220, 220, 220, 1168, 796, 264, 31197, 13, 259, 47, 58, 16, 60, 198, 220, 220, 220, 41927, 796, 264, 31197, 13, 33885, 198, 220, 220, 220, 509, 87, 796, 9720, 6759, 8609, 7, 6122, 11, 685, 87, 4357, 1168, 8, 198, 437, 628, 198, 198, 21017, 198, 2, 14714, 2746, 11, 326, 4909, 262, 29877, 14714, 2134, 351, 477, 3306, 1366, 11, 290, 220, 198, 7249, 14714, 19849, 90, 50, 16960, 1279, 25, 1338, 17208, 16960, 11, 309, 27, 25, 15633, 92, 198, 220, 220, 220, 264, 31197, 3712, 50, 16960, 198, 220, 220, 220, 509, 16340, 52, 3712, 19182, 90, 51, 11, 17, 92, 198, 220, 220, 220, 7377, 96, 3712, 19182, 90, 51, 11, 17, 92, 198, 437, 220, 198, 198, 2, 3863, 351, 1366, 198, 8818, 14714, 19849, 7, 82, 31197, 3712, 50, 29572, 16960, 8, 198, 220, 220, 220, 21927, 52, 11, 7377, 96, 796, 24061, 42, 16340, 52, 7, 82, 31197, 8, 198, 220, 220, 220, 14714, 19849, 7, 82, 31197, 11, 21927, 52, 11, 7377, 96, 8, 198, 437, 198, 198, 8818, 357, 70, 4426, 3712, 16960, 19849, 5769, 87, 11, 1291, 73, 3712, 5308, 272, 15721, 73, 796, 22728, 15721, 73, 28955, 198, 220, 220, 220, 509, 87, 796, 308, 4426, 13, 82, 31197, 7, 70, 4426, 13, 82, 31197, 13, 9535, 6513, 7, 87, 4008, 198, 220, 220, 220, 18919, 796, 308, 4426, 13, 82, 31197, 13, 32604, 198, 220, 220, 220, 1441, 357, 34703, 7, 87, 8, 764, 10, 357, 42, 87, 1635, 308, 4426, 13, 42, 16340, 52, 38381, 25, 12962, 198, 437, 198, 198, 8818, 357, 70, 4426, 3712, 16960, 19849, 5769, 87, 11, 1291, 73, 3712, 36674, 15721, 73, 8, 198, 220, 220, 220, 509, 87, 796, 308, 4426, 13, 82, 31197, 7, 70, 4426, 13, 82, 31197, 13, 9535, 6513, 7, 87, 4008, 198, 220, 220, 220, 18919, 796, 308, 4426, 13, 82, 31197, 13, 32604, 198, 220, 220, 220, 285, 796, 220, 357, 34703, 7, 87, 8, 764, 10, 357, 42, 87, 1635, 308, 4426, 13, 42, 16340, 52, 4008, 58, 47715, 198, 220, 220, 220, 220, 198, 220, 220, 220, 7377, 96, 796, 308, 4426, 13, 138, 96, 628, 220, 220, 220, 14367, 796, 19862, 17034, 12195, 10989, 363, 7, 42, 87, 1635, 357, 138, 96, 3467, 509, 87, 6, 22305, 198, 220, 220, 220, 1303, 1401, 796, 2566, 363, 7, 42, 87, 9, 42, 12303, 9, 42, 87, 11537, 198, 220, 220, 220, 264, 796, 43720, 77, 7, 13664, 7, 87, 4008, 764, 9, 14367, 198, 220, 220, 220, 1441, 357, 76, 764, 10, 264, 8, 198, 437, 198, 198, 2, 428, 460, 2048, 3729, 307, 4615, 13, 1244, 307, 3499, 329, 7208, 4959, 198, 8818, 357, 70, 4426, 3712, 16960, 19849, 5769, 87, 85, 3712, 5653, 8, 810, 6579, 220, 1279, 25, 15690, 90, 27, 25, 47384, 434, 90, 27, 25, 15633, 5512, 352, 92, 198, 220, 220, 220, 2124, 796, 651, 3245, 12195, 87, 85, 11, 1058, 2100, 8, 198, 220, 220, 220, 31669, 796, 2566, 363, 76, 7, 1136, 3245, 12195, 87, 85, 11, 11454, 4008, 198, 220, 220, 220, 220, 198, 220, 220, 220, 509, 87, 796, 308, 4426, 13, 82, 31197, 7, 70, 4426, 13, 82, 31197, 13, 9535, 6513, 7, 87, 4008, 198, 220, 220, 220, 18919, 796, 308, 4426, 13, 82, 31197, 13, 32604, 198, 220, 220, 220, 285, 796, 220, 357, 34703, 7, 87, 8, 764, 10, 357, 42, 87, 1635, 308, 4426, 13, 42, 16340, 52, 4008, 58, 47715, 198, 220, 220, 220, 220, 198, 220, 220, 220, 7377, 96, 796, 308, 4426, 13, 138, 96, 628, 220, 220, 220, 1401, 796, 19862, 17034, 12195, 10989, 363, 7, 42, 87, 1635, 357, 138, 96, 3467, 509, 87, 6, 22305, 198, 220, 220, 220, 1303, 1401, 796, 2566, 363, 7, 42, 87, 9, 42, 12303, 9, 42, 87, 11537, 628, 220, 220, 220, 1441, 357, 76, 764, 22519, 1401, 8, 198, 437, 628, 198, 4242, 198, 2, 5499, 284, 15570, 6942, 29964, 11, 355, 583, 1195, 12, 34, 5, 49, 198, 8818, 24061, 42, 16340, 52, 7, 82, 31197, 3712, 50, 29572, 16960, 8, 198, 220, 220, 220, 1441, 4808, 5589, 1133, 42, 16340, 52, 7, 82, 31197, 11, 264, 31197, 13, 259, 47, 11, 264, 31197, 13, 24396, 8, 198, 437, 198, 198, 8818, 4808, 5589, 1133, 42, 16340, 52, 7, 82, 31197, 3712, 50, 29572, 16960, 11, 773, 47, 3712, 11251, 29291, 90, 17, 11, 15690, 90, 27, 25, 19182, 90, 27, 25, 15633, 11, 16, 5512, 16, 92, 5512, 2446, 3712, 44, 8, 810, 337, 27, 25, 50, 29572, 38, 5868, 316, 2065, 220, 198, 220, 220, 220, 1168, 796, 773, 47, 58, 16, 60, 198, 220, 220, 220, 471, 796, 773, 47, 58, 17, 60, 198, 220, 220, 220, 18074, 225, 62, 77, 796, 264, 31197, 13, 38392, 62, 77, 198, 220, 220, 220, 18919, 796, 264, 31197, 13, 32604, 198, 220, 220, 220, 471, 796, 471, 764, 12, 18919, 12195, 57, 8, 198, 2, 220, 220, 220, 220, 410, 52, 796, 4646, 7, 85, 9246, 11, 471, 8, 198, 220, 220, 220, 1303, 1675, 5211, 25, 1244, 423, 284, 787, 5072, 7, 10091, 15225, 517, 7952, 198, 220, 220, 220, 410, 52, 796, 27179, 1758, 7, 445, 7234, 7, 85, 9246, 11, 471, 828, 1058, 11, 4129, 7, 57, 27493, 13664, 7, 57, 58, 16, 60, 4008, 198, 220, 220, 220, 410, 52, 796, 9943, 7241, 12078, 7, 85, 52, 8, 198, 220, 220, 220, 41927, 796, 264, 31197, 13, 33885, 198, 220, 220, 220, 509, 796, 9720, 6759, 8609, 7, 6122, 11, 1168, 8, 1343, 18074, 225, 62, 77, 1635, 314, 198, 220, 220, 220, 509, 16340, 52, 796, 509, 3467, 410, 52, 198, 220, 220, 220, 1441, 357, 42, 16340, 52, 11, 509, 8, 220, 198, 437, 198, 198, 8818, 4808, 5589, 1133, 42, 16340, 52, 7, 82, 31197, 3712, 50, 29572, 16960, 11, 773, 47, 3712, 11251, 29291, 90, 18, 11, 15690, 90, 27, 25, 19182, 90, 27, 25, 15633, 11, 16, 5512, 16, 92, 5512, 2446, 3712, 44, 8, 810, 337, 1279, 25, 1338, 17208, 38, 5868, 316, 2065, 220, 198, 220, 220, 220, 1168, 796, 773, 47, 58, 16, 60, 198, 220, 220, 220, 1395, 796, 773, 47, 58, 17, 60, 198, 220, 220, 220, 575, 796, 773, 47, 58, 18, 60, 198, 220, 220, 220, 18919, 796, 264, 31197, 13, 32604, 198, 220, 220, 220, 575, 796, 575, 764, 12, 18919, 12195, 55, 8, 198, 220, 220, 220, 41927, 796, 264, 31197, 13, 33885, 198, 220, 220, 220, 220, 198, 220, 220, 220, 509, 487, 796, 9720, 6759, 8609, 7, 6122, 11, 1395, 8, 198, 220, 220, 220, 509, 20942, 796, 9720, 6759, 8609, 7, 6122, 11, 1395, 11, 1168, 8, 198, 220, 220, 220, 509, 12303, 796, 9720, 6759, 8609, 7, 6122, 11, 1168, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1195, 487, 796, 509, 20942, 1635, 357, 509, 12303, 3467, 509, 20942, 6, 1267, 198, 220, 220, 220, 220, 198, 220, 220, 220, 7838, 796, 264, 31197, 13, 38392, 62, 77, 198, 220, 220, 220, 7377, 249, 796, 4808, 785, 1996, 417, 4131, 6814, 7, 42, 487, 11, 1195, 487, 11, 7838, 11, 2446, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 7377, 96, 796, 4808, 5589, 1769, 13495, 7, 42, 12303, 11, 509, 20942, 11, 7377, 249, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 410, 56, 796, 27179, 1758, 7, 445, 7234, 7, 85, 9246, 11, 575, 828, 1058, 11, 4129, 7, 55, 27493, 13664, 7, 55, 58, 16, 60, 4008, 198, 220, 220, 220, 410, 56, 796, 9943, 7241, 12078, 7, 85, 56, 8, 198, 220, 220, 220, 509, 16340, 52, 796, 7377, 96, 3467, 357, 42, 20942, 6, 1635, 357, 138, 249, 3467, 410, 56, 4008, 198, 220, 220, 220, 1441, 357, 42, 16340, 52, 11, 7377, 96, 8, 198, 437, 198, 198, 8818, 4808, 5589, 1769, 13495, 7, 42, 12303, 11, 509, 20942, 11, 7377, 249, 8, 198, 220, 220, 220, 1441, 509, 12303, 1343, 509, 20942, 6, 1635, 357, 138, 249, 3467, 509, 20942, 8, 198, 437, 198, 198, 8818, 4808, 785, 1996, 417, 4131, 6814, 7, 42, 487, 11, 1195, 487, 11, 7838, 11, 2446, 3712, 53, 30501, 8, 198, 220, 220, 220, 1441, 7838, 1635, 314, 198, 437, 198, 198, 8818, 4808, 785, 1996, 417, 4131, 6814, 7, 42, 487, 11, 1195, 487, 11, 7838, 11, 2446, 3712, 37, 2043, 34, 8, 198, 220, 220, 220, 1441, 6031, 27923, 7, 10989, 363, 7, 509, 487, 532, 1195, 487, 8, 764, 10, 7838, 8, 198, 437, 198, 198, 4242, 2, 198, 2, 1844, 14714, 16820, 5678, 198, 4242, 2, 198, 35487, 62, 83, 9744, 7, 84, 11, 79, 11, 83, 8, 796, 6632, 7, 84, 8, 198, 7249, 14714, 16820, 90, 44, 27, 25, 16960, 19849, 11, 51, 11, 32, 11, 42, 11, 15751, 27, 25, 4759, 73, 6030, 92, 1303, 27, 25, 47986, 35, 3698, 2794, 198, 220, 220, 220, 2746, 3712, 44, 198, 220, 220, 220, 1303, 279, 3712, 47, 11, 10007, 11, 3863, 530, 1110, 198, 220, 220, 220, 256, 12626, 3712, 51, 198, 220, 220, 220, 26498, 3712, 32, 198, 220, 220, 220, 479, 86, 22046, 3712, 42, 198, 220, 220, 220, 1291, 73, 4906, 3712, 15751, 628, 220, 220, 220, 2163, 14714, 16820, 7, 19849, 3712, 38, 5868, 11, 912, 6839, 11, 22046, 986, 26, 6291, 796, 3991, 11, 479, 86, 22046, 23029, 810, 402, 5868, 1279, 25, 14714, 19849, 198, 220, 220, 220, 220, 220, 220, 220, 256, 83, 796, 6291, 5633, 27565, 15721, 73, 3419, 1058, 22728, 15721, 73, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 649, 90, 4906, 1659, 7, 19849, 828, 4906, 1659, 7, 912, 6839, 828, 4906, 1659, 7, 22046, 828, 4906, 1659, 7, 46265, 22046, 828, 2099, 1659, 7, 926, 38165, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2746, 11, 912, 6839, 11, 22046, 11, 46265, 22046, 11, 926, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 14714, 16820, 7, 82, 31197, 3712, 50, 16960, 11, 912, 6839, 11, 22046, 986, 26, 39873, 3712, 33, 970, 28, 9562, 11, 479, 86, 22046, 23029, 810, 311, 16960, 1279, 25, 1338, 17208, 16960, 198, 220, 220, 220, 308, 4426, 796, 14714, 19849, 7, 82, 31197, 8, 198, 220, 220, 220, 1441, 14714, 16820, 7, 70, 4426, 11, 912, 6839, 11, 22046, 986, 11, 6291, 796, 6291, 11, 479, 86, 22046, 23029, 198, 437, 198, 198, 8818, 357, 31197, 3712, 16960, 16820, 5769, 87, 15, 8, 198, 220, 220, 220, 288, 463, 83, 41052, 84, 11, 79, 11, 83, 8, 796, 27809, 13, 19849, 7, 84, 11, 27809, 13, 9535, 73, 4906, 8, 198, 220, 220, 220, 31246, 796, 440, 7206, 22203, 90, 9562, 92, 7, 67, 463, 83, 62, 11, 83, 9744, 28, 35487, 62, 83, 9744, 8, 198, 220, 220, 220, 1861, 796, 440, 7206, 40781, 90, 9562, 92, 7, 487, 11, 87, 15, 11, 1136, 3245, 7, 31197, 11, 25, 912, 6839, 4008, 198, 220, 220, 220, 8494, 7, 1676, 65, 11, 31197, 13, 22046, 986, 26, 31197, 13, 46265, 22046, 23029, 198, 437, 628, 198, 8818, 6291, 31197, 7, 87, 11, 27809, 11, 299, 11, 26498, 796, 27809, 13, 22046, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 288, 463, 83, 41052, 84, 11, 79, 11, 83, 8, 796, 27809, 13, 19849, 7, 84, 11, 12822, 31562, 18709, 16820, 82, 13, 36674, 15721, 73, 28955, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 31246, 796, 440, 7206, 22203, 90, 9562, 92, 7, 67, 463, 83, 62, 11, 83, 9744, 28, 35389, 31562, 18709, 16820, 82, 13, 35487, 62, 83, 9744, 8, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 1861, 796, 440, 7206, 40781, 90, 9562, 92, 7, 487, 11, 87, 11, 1136, 3245, 7, 31197, 11, 25, 912, 6839, 4008, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 34549, 796, 2039, 15140, 40781, 7, 1676, 65, 8, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 8494, 7, 1072, 11306, 11, 27809, 13, 22046, 986, 11, 2039, 15140, 16818, 82, 9783, 20134, 1749, 796, 299, 11, 27809, 13, 46265, 22046, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 6291, 62, 31197, 16820, 796, 14714, 16820, 7, 31197, 13, 19849, 11, 27809, 13, 912, 6839, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26498, 986, 26, 6291, 796, 2081, 11, 479, 86, 22046, 986, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 256, 796, 2488, 417, 28361, 1540, 82, 796, 14122, 82, 55, 13, 33327, 7, 39873, 62, 31197, 16820, 7, 87, 8, 329, 1312, 287, 352, 25, 77, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2039, 15140, 46344, 7, 82, 10220, 11, 256, 11, 2081, 8, 198, 437, 628, 198, 3500, 20615, 498, 23588, 602, 13, 4834, 15140, 32750, 198, 8818, 27809, 32604, 7785, 7, 82, 12629, 10220, 11, 40379, 8, 198, 220, 220, 220, 1612, 7785, 796, 640, 4122, 62, 32604, 7785, 7, 82, 12629, 10220, 11, 912, 8, 198, 220, 220, 220, 285, 9535, 8457, 796, 1612, 7785, 58, 16, 60, 198, 220, 220, 220, 14367, 9535, 8457, 796, 19862, 17034, 12195, 32604, 7785, 58, 17, 12962, 198, 220, 220, 220, 1441, 285, 9535, 8457, 11, 14367, 9535, 8457, 198, 437 ]
2.086178
2,959
module mesh_examples using FinEtools using FinEtoolsFlexStructures.FESetCorotBeamModule: FESetL2CorotBeam using FinEtoolsFlexStructures.CrossSectionModule: CrossSectionCircle, CrossSectionRectangle using FinEtoolsFlexStructures.MeshFrameMemberModule: frame_member, merge_members using VisualStructures: plot_nodes, plot_midline, render, plot_space_box, plot_solid, space_aspectratio using PlotlyJS using JSON function curve_mesh() L = 42 xyz = [0 0 0; 0 L/4 L*1/4; L/4 L/4 L*2/4; L/4 0 L*3/4; 0 0 L] nL = 20 cs = CrossSectionCircle(s -> 5.9910, s -> [0.0, 0.0, 1.0]) fens, fes = frame_member(xyz, nL, cs) plots = cat(plot_nodes(fens), plot_midline(fens, fes; color = "rgb(155, 155, 255)", lwidth = 4), dims = 1) # push!(plots, plot_nodes(fens)) render(plots; aspectratio = [1.0 1.0 4.0]) true end # curve_mesh function line_mesh_solid() L = 40.2 xyz = [0 0 0; 0 0 L] nL = 1 cs = CrossSectionCircle(s -> 2.5, s -> [0.0, 1.0, 0.0]) fens, fes = frame_member(xyz, nL, cs) plots = cat(plot_nodes(fens), plot_solid(fens, fes); dims = 1) # push!(plots, plot_nodes(fens)) render(plots; aspectratio = [1.0 1.0 1.0]) true end # curve_mesh function curve_mesh_solid() L = 42 xyz = [0 0 0; 0 L/4 L*1/4; L/4 L/4 L*2/4; L/4 0 L*3/4; 0 0 L] nL = 20 cs = CrossSectionCircle(s -> 0.5, s -> [0.0, 0.0, 1.0]) fens, fes = frame_member(xyz, nL, cs) plots = cat(plot_nodes(fens), plot_solid(fens, fes); dims = 1) # push!(plots, plot_nodes(fens)) render(plots; aspectratio = space_aspectratio(fens.xyz)) true end # curve_mesh function argyr_l_frame() # Parameters: E=71240.0;#MPa nu=0.31;# Poisson ratio rho=5e-9; b=3.0; h=30.0; L=240.0; # cross-sectional dimensions and length of each leg in millimeters # Cross-sectional properties cs = CrossSectionRectangle(s -> b, s -> h, s -> [0.0, 1.0, 0.0]) ## # Choose the mass formulation: mass_type=2; ## # Reference frequencies reffs = [11.2732, 30.5269] neigvs = 2; # Select the number of elements per half the length. xyz = n=8; members = [] push!(members, frame_member([0 0 L; L 0 L], n, cs)) push!(members, frame_member([L 0 L; L 0 0], n, cs)) fens, fes = merge_members(members; tolerance = L / 10000); plots = cat(plot_space_box([[0 -L/2 0]; [L L/2 L]]), plot_nodes(fens), plot_midline(fens, fes; color = "rgb(155, 155, 255)", lwidth = 4), dims = 1) render(plots; aspectratio = [1.0 1.0 1.0]) true end # argyr_l_frame function argyr_l_frame_movable() # Parameters: E=71240.0;#MPa nu=0.31;# Poisson ratio rho=5e-9; b=3.0; h=30.0; L=240.0; # cross-sectional dimensions and length of each leg in millimeters # Cross-sectional properties cs = CrossSectionRectangle(s -> b, s -> h, s -> [0.0, 1.0, 0.0]) ## # Choose the mass formulation: mass_type=2; ## # Reference frequencies reffs = [11.2732, 30.5269] neigvs = 2; # Select the number of elements per half the length. xyz = n=1; members = [] push!(members, frame_member([0 0 L; L 0 L], n, cs)) push!(members, frame_member([L 0 L; L 0 0], n, cs)) fens, fes = merge_members(members; tolerance = L / 10000); plots = cat(plot_space_box([[0 -L/2 0]; [L L/2 L]]), plot_nodes(fens), plot_midline(fens, fes; color = "rgb(155, 155, 255)", lwidth = 4), dims = 1) p = render(plots; aspectratio = [1.0 1.0 1.0]) @show p.plot.data true end # argyr_l_frame function argyr_l_frame_solid() # Parameters: E=71240.0;#MPa nu=0.31;# Poisson ratio rho=5e-9; b=3.0; h=30.0; L=240.0; # cross-sectional dimensions and length of each leg in millimeters # Cross-sectional properties cs = CrossSectionRectangle(s -> b, s -> h, s -> [0.0, 1.0, 0.0]) ## # Choose the mass formulation: mass_type=2; ## # Reference frequencies reffs = [11.2732, 30.5269] neigvs = 2; # Select the number of elements per half the length. xyz = n=8; members = [] push!(members, frame_member([0 0 L; L 0 L], n, cs)) push!(members, frame_member([L 0 L; L 0 0], n, cs)) fens, fes = merge_members(members; tolerance = L / 10000); plots = cat(plot_space_box([[0 -L/2 0]; [L L/2 L]]), plot_nodes(fens), plot_solid(fens, fes; facecolor = "rgb(155, 0, 0)"), dims = 1) render(plots; aspectratio = [1.0 1.0 1.0]) true end # argyr_l_frame function curve_mesh_change_view() L = 42 xyz = [0 0 0; 0 L/4 L*1/4; L/4 L/4 L*2/4; L/4 0 L*3/4; 0 0 L] nL = 20 cs = CrossSectionCircle(s -> 5.9910, s -> [0.0, 0.0, 1.0]) fens, fes = frame_member(xyz, nL, cs) plots = cat(plot_nodes(fens), plot_midline(fens, fes; color = "rgb(155, 155, 255)", lwidth = 4), dims = 1) # push!(plots, plot_nodes(fens)) pl = render(plots; aspectratio = [1.0 1.0 4.0]) savejson(pl, "plot.json") true end # curve_mesh function allrun() println("#####################################################") println("# curve_mesh ") curve_mesh() println("#####################################################") println("# curve_mesh_solid ") curve_mesh_solid() println("#####################################################") println("# argyr_l_frame ") argyr_l_frame() return true end # function allrun @info "All examples may be executed with " println("using .$(@__MODULE__); $(@__MODULE__).allrun()") end # module nothing
[ 21412, 19609, 62, 1069, 12629, 198, 198, 3500, 4463, 36, 31391, 198, 3500, 4463, 36, 31391, 37, 2588, 44909, 942, 13, 37, 1546, 316, 10606, 313, 3856, 321, 26796, 25, 376, 1546, 316, 43, 17, 10606, 313, 3856, 321, 198, 3500, 4463, 36, 31391, 37, 2588, 44909, 942, 13, 21544, 16375, 26796, 25, 6372, 16375, 31560, 293, 11, 6372, 16375, 45474, 9248, 198, 3500, 4463, 36, 31391, 37, 2588, 44909, 942, 13, 37031, 19778, 27608, 26796, 25, 5739, 62, 19522, 11, 20121, 62, 30814, 198, 3500, 15612, 44909, 942, 25, 7110, 62, 77, 4147, 11, 7110, 62, 13602, 1370, 11, 8543, 11, 7110, 62, 13200, 62, 3524, 11, 7110, 62, 39390, 11, 2272, 62, 292, 806, 10366, 952, 198, 3500, 28114, 306, 20120, 198, 3500, 19449, 198, 198, 8818, 12133, 62, 76, 5069, 3419, 198, 220, 220, 220, 406, 796, 5433, 198, 220, 220, 220, 2124, 45579, 796, 685, 15, 657, 657, 26, 198, 220, 220, 220, 657, 406, 14, 19, 406, 9, 16, 14, 19, 26, 198, 220, 220, 220, 406, 14, 19, 406, 14, 19, 406, 9, 17, 14, 19, 26, 198, 220, 220, 220, 406, 14, 19, 657, 406, 9, 18, 14, 19, 26, 198, 220, 220, 220, 657, 657, 406, 60, 198, 220, 220, 220, 299, 43, 796, 1160, 628, 220, 220, 220, 50115, 796, 6372, 16375, 31560, 293, 7, 82, 4613, 642, 13, 2079, 940, 11, 264, 4613, 685, 15, 13, 15, 11, 657, 13, 15, 11, 352, 13, 15, 12962, 198, 220, 220, 220, 277, 641, 11, 277, 274, 796, 5739, 62, 19522, 7, 5431, 89, 11, 299, 43, 11, 50115, 8, 198, 220, 220, 220, 21528, 796, 3797, 7, 29487, 62, 77, 4147, 7, 69, 641, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 62, 13602, 1370, 7, 69, 641, 11, 277, 274, 26, 3124, 796, 366, 81, 22296, 7, 18742, 11, 20708, 11, 14280, 42501, 300, 10394, 796, 604, 828, 198, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 352, 8, 198, 220, 220, 220, 1303, 4574, 0, 7, 489, 1747, 11, 7110, 62, 77, 4147, 7, 69, 641, 4008, 198, 220, 220, 220, 8543, 7, 489, 1747, 26, 4843, 10366, 952, 796, 685, 16, 13, 15, 352, 13, 15, 604, 13, 15, 12962, 198, 220, 220, 220, 2081, 198, 437, 1303, 12133, 62, 76, 5069, 198, 198, 8818, 1627, 62, 76, 5069, 62, 39390, 3419, 198, 220, 220, 220, 406, 796, 2319, 13, 17, 198, 220, 220, 220, 2124, 45579, 796, 685, 15, 657, 657, 26, 198, 220, 220, 220, 657, 657, 406, 60, 198, 220, 220, 220, 299, 43, 796, 352, 628, 220, 220, 220, 50115, 796, 6372, 16375, 31560, 293, 7, 82, 4613, 362, 13, 20, 11, 264, 4613, 685, 15, 13, 15, 11, 352, 13, 15, 11, 657, 13, 15, 12962, 198, 220, 220, 220, 277, 641, 11, 277, 274, 796, 5739, 62, 19522, 7, 5431, 89, 11, 299, 43, 11, 50115, 8, 198, 220, 220, 220, 21528, 796, 3797, 7, 29487, 62, 77, 4147, 7, 69, 641, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 62, 39390, 7, 69, 641, 11, 277, 274, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 352, 8, 198, 220, 220, 220, 1303, 4574, 0, 7, 489, 1747, 11, 7110, 62, 77, 4147, 7, 69, 641, 4008, 198, 220, 220, 220, 8543, 7, 489, 1747, 26, 4843, 10366, 952, 796, 685, 16, 13, 15, 352, 13, 15, 352, 13, 15, 12962, 198, 220, 220, 220, 2081, 198, 437, 1303, 12133, 62, 76, 5069, 198, 198, 8818, 12133, 62, 76, 5069, 62, 39390, 3419, 198, 220, 220, 220, 406, 796, 5433, 198, 220, 220, 220, 2124, 45579, 796, 685, 15, 657, 657, 26, 198, 220, 220, 220, 657, 406, 14, 19, 406, 9, 16, 14, 19, 26, 198, 220, 220, 220, 406, 14, 19, 406, 14, 19, 406, 9, 17, 14, 19, 26, 198, 220, 220, 220, 406, 14, 19, 657, 406, 9, 18, 14, 19, 26, 198, 220, 220, 220, 657, 657, 406, 60, 198, 220, 220, 220, 299, 43, 796, 1160, 628, 220, 220, 220, 50115, 796, 6372, 16375, 31560, 293, 7, 82, 4613, 657, 13, 20, 11, 264, 4613, 685, 15, 13, 15, 11, 657, 13, 15, 11, 352, 13, 15, 12962, 198, 220, 220, 220, 277, 641, 11, 277, 274, 796, 5739, 62, 19522, 7, 5431, 89, 11, 299, 43, 11, 50115, 8, 198, 220, 220, 220, 21528, 796, 3797, 7, 29487, 62, 77, 4147, 7, 69, 641, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 62, 39390, 7, 69, 641, 11, 277, 274, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 352, 8, 198, 220, 220, 220, 1303, 4574, 0, 7, 489, 1747, 11, 7110, 62, 77, 4147, 7, 69, 641, 4008, 198, 220, 220, 220, 8543, 7, 489, 1747, 26, 4843, 10366, 952, 796, 2272, 62, 292, 806, 10366, 952, 7, 69, 641, 13, 5431, 89, 4008, 198, 220, 220, 220, 2081, 198, 437, 1303, 12133, 62, 76, 5069, 198, 198, 8818, 610, 1360, 81, 62, 75, 62, 14535, 3419, 198, 220, 220, 220, 1303, 40117, 25, 198, 220, 220, 220, 412, 28, 49517, 1821, 13, 15, 26, 2, 7378, 64, 198, 220, 220, 220, 14364, 28, 15, 13, 3132, 26, 2, 7695, 30927, 8064, 198, 220, 220, 220, 374, 8873, 28, 20, 68, 12, 24, 26, 198, 220, 220, 220, 275, 28, 18, 13, 15, 26, 289, 28, 1270, 13, 15, 26, 406, 28, 16102, 13, 15, 26, 1303, 3272, 12, 44330, 15225, 290, 4129, 286, 1123, 1232, 287, 3939, 31551, 628, 220, 220, 220, 1303, 6372, 12, 44330, 6608, 198, 220, 220, 220, 50115, 796, 6372, 16375, 45474, 9248, 7, 82, 4613, 275, 11, 264, 4613, 289, 11, 264, 4613, 685, 15, 13, 15, 11, 352, 13, 15, 11, 657, 13, 15, 12962, 628, 220, 220, 220, 22492, 198, 220, 220, 220, 1303, 17489, 262, 2347, 31760, 25, 198, 220, 220, 220, 2347, 62, 4906, 28, 17, 26, 628, 220, 220, 220, 22492, 198, 220, 220, 220, 1303, 20984, 19998, 198, 220, 220, 220, 302, 487, 82, 796, 685, 1157, 13, 1983, 2624, 11, 1542, 13, 20, 26276, 60, 198, 220, 220, 220, 497, 328, 14259, 796, 362, 26, 628, 220, 220, 220, 1303, 9683, 262, 1271, 286, 4847, 583, 2063, 262, 4129, 13, 198, 220, 220, 220, 2124, 45579, 796, 198, 220, 220, 220, 299, 28, 23, 26, 198, 220, 220, 220, 1866, 796, 17635, 198, 220, 220, 220, 4574, 0, 7, 30814, 11, 5739, 62, 19522, 26933, 15, 657, 406, 26, 406, 657, 406, 4357, 299, 11, 50115, 4008, 198, 220, 220, 220, 4574, 0, 7, 30814, 11, 5739, 62, 19522, 26933, 43, 657, 406, 26, 406, 657, 657, 4357, 299, 11, 50115, 4008, 198, 220, 220, 220, 277, 641, 11, 277, 274, 796, 20121, 62, 30814, 7, 30814, 26, 15621, 796, 406, 1220, 33028, 1776, 628, 220, 220, 220, 21528, 796, 3797, 7, 29487, 62, 13200, 62, 3524, 26933, 58, 15, 532, 43, 14, 17, 657, 11208, 685, 43, 406, 14, 17, 406, 11907, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 62, 77, 4147, 7, 69, 641, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 62, 13602, 1370, 7, 69, 641, 11, 277, 274, 26, 3124, 796, 366, 81, 22296, 7, 18742, 11, 20708, 11, 14280, 42501, 300, 10394, 796, 604, 828, 5391, 82, 796, 352, 8, 198, 220, 220, 220, 8543, 7, 489, 1747, 26, 4843, 10366, 952, 796, 685, 16, 13, 15, 352, 13, 15, 352, 13, 15, 12962, 198, 220, 220, 220, 2081, 198, 437, 1303, 610, 1360, 81, 62, 75, 62, 14535, 198, 198, 8818, 610, 1360, 81, 62, 75, 62, 14535, 62, 76, 21985, 3419, 198, 220, 220, 220, 1303, 40117, 25, 198, 220, 220, 220, 412, 28, 49517, 1821, 13, 15, 26, 2, 7378, 64, 198, 220, 220, 220, 14364, 28, 15, 13, 3132, 26, 2, 7695, 30927, 8064, 198, 220, 220, 220, 374, 8873, 28, 20, 68, 12, 24, 26, 198, 220, 220, 220, 275, 28, 18, 13, 15, 26, 289, 28, 1270, 13, 15, 26, 406, 28, 16102, 13, 15, 26, 1303, 3272, 12, 44330, 15225, 290, 4129, 286, 1123, 1232, 287, 3939, 31551, 628, 220, 220, 220, 1303, 6372, 12, 44330, 6608, 198, 220, 220, 220, 50115, 796, 6372, 16375, 45474, 9248, 7, 82, 4613, 275, 11, 264, 4613, 289, 11, 264, 4613, 685, 15, 13, 15, 11, 352, 13, 15, 11, 657, 13, 15, 12962, 628, 220, 220, 220, 22492, 198, 220, 220, 220, 1303, 17489, 262, 2347, 31760, 25, 198, 220, 220, 220, 2347, 62, 4906, 28, 17, 26, 628, 220, 220, 220, 22492, 198, 220, 220, 220, 1303, 20984, 19998, 198, 220, 220, 220, 302, 487, 82, 796, 685, 1157, 13, 1983, 2624, 11, 1542, 13, 20, 26276, 60, 198, 220, 220, 220, 497, 328, 14259, 796, 362, 26, 628, 220, 220, 220, 1303, 9683, 262, 1271, 286, 4847, 583, 2063, 262, 4129, 13, 198, 220, 220, 220, 2124, 45579, 796, 198, 220, 220, 220, 299, 28, 16, 26, 198, 220, 220, 220, 1866, 796, 17635, 198, 220, 220, 220, 4574, 0, 7, 30814, 11, 5739, 62, 19522, 26933, 15, 657, 406, 26, 406, 657, 406, 4357, 299, 11, 50115, 4008, 198, 220, 220, 220, 4574, 0, 7, 30814, 11, 5739, 62, 19522, 26933, 43, 657, 406, 26, 406, 657, 657, 4357, 299, 11, 50115, 4008, 198, 220, 220, 220, 277, 641, 11, 277, 274, 796, 20121, 62, 30814, 7, 30814, 26, 15621, 796, 406, 1220, 33028, 1776, 628, 220, 220, 220, 21528, 796, 3797, 7, 29487, 62, 13200, 62, 3524, 26933, 58, 15, 532, 43, 14, 17, 657, 11208, 685, 43, 406, 14, 17, 406, 11907, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 62, 77, 4147, 7, 69, 641, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 62, 13602, 1370, 7, 69, 641, 11, 277, 274, 26, 3124, 796, 366, 81, 22296, 7, 18742, 11, 20708, 11, 14280, 42501, 300, 10394, 796, 604, 828, 5391, 82, 796, 352, 8, 198, 220, 220, 220, 279, 796, 8543, 7, 489, 1747, 26, 4843, 10366, 952, 796, 685, 16, 13, 15, 352, 13, 15, 352, 13, 15, 12962, 198, 220, 220, 220, 2488, 12860, 279, 13, 29487, 13, 7890, 198, 220, 220, 220, 2081, 198, 437, 1303, 610, 1360, 81, 62, 75, 62, 14535, 198, 198, 8818, 610, 1360, 81, 62, 75, 62, 14535, 62, 39390, 3419, 198, 220, 220, 220, 1303, 40117, 25, 198, 220, 220, 220, 412, 28, 49517, 1821, 13, 15, 26, 2, 7378, 64, 198, 220, 220, 220, 14364, 28, 15, 13, 3132, 26, 2, 7695, 30927, 8064, 198, 220, 220, 220, 374, 8873, 28, 20, 68, 12, 24, 26, 198, 220, 220, 220, 275, 28, 18, 13, 15, 26, 289, 28, 1270, 13, 15, 26, 406, 28, 16102, 13, 15, 26, 1303, 3272, 12, 44330, 15225, 290, 4129, 286, 1123, 1232, 287, 3939, 31551, 628, 220, 220, 220, 1303, 6372, 12, 44330, 6608, 198, 220, 220, 220, 50115, 796, 6372, 16375, 45474, 9248, 7, 82, 4613, 275, 11, 264, 4613, 289, 11, 264, 4613, 685, 15, 13, 15, 11, 352, 13, 15, 11, 657, 13, 15, 12962, 628, 220, 220, 220, 22492, 198, 220, 220, 220, 1303, 17489, 262, 2347, 31760, 25, 198, 220, 220, 220, 2347, 62, 4906, 28, 17, 26, 628, 220, 220, 220, 22492, 198, 220, 220, 220, 1303, 20984, 19998, 198, 220, 220, 220, 302, 487, 82, 796, 685, 1157, 13, 1983, 2624, 11, 1542, 13, 20, 26276, 60, 198, 220, 220, 220, 497, 328, 14259, 796, 362, 26, 628, 220, 220, 220, 1303, 9683, 262, 1271, 286, 4847, 583, 2063, 262, 4129, 13, 198, 220, 220, 220, 2124, 45579, 796, 198, 220, 220, 220, 299, 28, 23, 26, 198, 220, 220, 220, 1866, 796, 17635, 198, 220, 220, 220, 4574, 0, 7, 30814, 11, 5739, 62, 19522, 26933, 15, 657, 406, 26, 406, 657, 406, 4357, 299, 11, 50115, 4008, 198, 220, 220, 220, 4574, 0, 7, 30814, 11, 5739, 62, 19522, 26933, 43, 657, 406, 26, 406, 657, 657, 4357, 299, 11, 50115, 4008, 198, 220, 220, 220, 277, 641, 11, 277, 274, 796, 20121, 62, 30814, 7, 30814, 26, 15621, 796, 406, 1220, 33028, 1776, 628, 220, 220, 220, 21528, 796, 3797, 7, 29487, 62, 13200, 62, 3524, 26933, 58, 15, 532, 43, 14, 17, 657, 11208, 685, 43, 406, 14, 17, 406, 11907, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 62, 77, 4147, 7, 69, 641, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 62, 39390, 7, 69, 641, 11, 277, 274, 26, 1986, 8043, 796, 366, 81, 22296, 7, 18742, 11, 657, 11, 657, 8, 12340, 5391, 82, 796, 352, 8, 198, 220, 220, 220, 8543, 7, 489, 1747, 26, 4843, 10366, 952, 796, 685, 16, 13, 15, 352, 13, 15, 352, 13, 15, 12962, 198, 220, 220, 220, 2081, 198, 437, 1303, 610, 1360, 81, 62, 75, 62, 14535, 198, 198, 8818, 12133, 62, 76, 5069, 62, 3803, 62, 1177, 3419, 198, 220, 220, 220, 406, 796, 5433, 198, 220, 220, 220, 2124, 45579, 796, 685, 15, 657, 657, 26, 198, 220, 220, 220, 657, 406, 14, 19, 406, 9, 16, 14, 19, 26, 198, 220, 220, 220, 406, 14, 19, 406, 14, 19, 406, 9, 17, 14, 19, 26, 198, 220, 220, 220, 406, 14, 19, 657, 406, 9, 18, 14, 19, 26, 198, 220, 220, 220, 657, 657, 406, 60, 198, 220, 220, 220, 299, 43, 796, 1160, 628, 220, 220, 220, 50115, 796, 6372, 16375, 31560, 293, 7, 82, 4613, 642, 13, 2079, 940, 11, 264, 4613, 685, 15, 13, 15, 11, 657, 13, 15, 11, 352, 13, 15, 12962, 198, 220, 220, 220, 277, 641, 11, 277, 274, 796, 5739, 62, 19522, 7, 5431, 89, 11, 299, 43, 11, 50115, 8, 198, 220, 220, 220, 21528, 796, 3797, 7, 29487, 62, 77, 4147, 7, 69, 641, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 62, 13602, 1370, 7, 69, 641, 11, 277, 274, 26, 3124, 796, 366, 81, 22296, 7, 18742, 11, 20708, 11, 14280, 42501, 300, 10394, 796, 604, 828, 198, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 352, 8, 198, 220, 220, 220, 1303, 4574, 0, 7, 489, 1747, 11, 7110, 62, 77, 4147, 7, 69, 641, 4008, 198, 220, 220, 220, 458, 796, 8543, 7, 489, 1747, 26, 4843, 10366, 952, 796, 685, 16, 13, 15, 352, 13, 15, 604, 13, 15, 12962, 198, 220, 220, 220, 3613, 17752, 7, 489, 11, 366, 29487, 13, 17752, 4943, 198, 220, 220, 220, 2081, 198, 437, 1303, 12133, 62, 76, 5069, 198, 198, 8818, 477, 5143, 3419, 198, 220, 220, 220, 44872, 7203, 29113, 14468, 4242, 2, 4943, 198, 220, 220, 220, 44872, 7203, 2, 12133, 62, 76, 5069, 366, 8, 198, 220, 220, 220, 12133, 62, 76, 5069, 3419, 198, 220, 220, 220, 44872, 7203, 29113, 14468, 4242, 2, 4943, 198, 220, 220, 220, 44872, 7203, 2, 12133, 62, 76, 5069, 62, 39390, 366, 8, 198, 220, 220, 220, 12133, 62, 76, 5069, 62, 39390, 3419, 198, 220, 220, 220, 44872, 7203, 29113, 14468, 4242, 2, 4943, 198, 220, 220, 220, 44872, 7203, 2, 610, 1360, 81, 62, 75, 62, 14535, 366, 8, 198, 220, 220, 220, 610, 1360, 81, 62, 75, 62, 14535, 3419, 198, 220, 220, 220, 1441, 2081, 198, 437, 1303, 2163, 477, 5143, 198, 198, 31, 10951, 366, 3237, 6096, 743, 307, 10945, 351, 366, 198, 35235, 7203, 3500, 764, 3, 7, 31, 834, 33365, 24212, 834, 1776, 29568, 31, 834, 33365, 24212, 834, 737, 439, 5143, 3419, 4943, 198, 198, 437, 1303, 8265, 198, 22366, 628 ]
2.167813
2,616
using FastRationals using Polynomials, LinearAlgebra, BenchmarkTools, MacroTools BenchmarkTools.DEFAULT_PARAMETERS.evals = 1; BenchmarkTools.DEFAULT_PARAMETERS.samples = 200; BenchmarkTools.DEFAULT_PARAMETERS.time_tolerance = 1.0e-8; BenchmarkTools.DEFAULT_PARAMETERS.overhead = BenchmarkTools.estimate_overhead(); walk(x, inner, outer) = outer(x) walk(x::Expr, inner, outer) = outer(Expr(x.head, map(inner, x.args)...)) postwalk(f, x) = walk(x, x -> postwalk(f, x), f) function referred(expr::Expr) if expr.head == :$ :($(Expr(:$, :(Ref($(expr.args...)))))[]) else expr end end referred(x) = x """ @noelide _bmacro_ expression where _bmacro_ is one of @btime, @belapsed, @benchmark Wraps all interpolated code in _expression_ in a __Ref()__ to stop the compiler from cheating at simple benchmarks. Works with any macro that accepts interpolation #Example julia> @btime \$a + \$b 0.024 ns (0 allocations: 0 bytes) 3 julia> @noelide @btime \$a + \$b 1.277 ns (0 allocations: 0 bytes) 3 """ macro noelide(expr) out = postwalk(referred, expr) |> esc end function testadd(x,y,z) a = x + y b = a + z c = b + a d = c + x return d end function testmul(x,y,z) a = x * y b = a * z c = z * x d = a * b return d end function testarith(x,y,z) a = x + y b = x * y c = z - b d = a / c return d end w32,x32,y32,z32 = Rational{Int32}.([1//12, -2//77, 3//54, -4//17]); q32 = Int32(1)//Int32(7); u32,v32 = w32+z32, w32-z32 w64,x64,y64,z64 = Rational{Int64}.([1//12, -2//77, 3//54, -4//17]); q64 = Int64(1)//Int64(7); u64,v64 = w64+z64, w64-z64 ply32 = Poly([w32, x32, y32, z32]); ply64 = Poly([w64, x64, y64, z64]); ply64w = Poly([u64, v64, w64, x64, y64, z64]); a32,b32,c32,d32,e32,f32 = FastQ32.((w32,x32,y32,z32,u32,v32)); fastq32 = FastQ32(q32); fastply32=Poly([a32,b32,c32,d32]); a64,b64,c64,d64,e64,f64 = FastQ64.((w64,x64,y64,z64,u64,v64)); fastq64 = FastQ64(q64); fastply64=Poly([a64,b64,c64,d64]); fastply64w=Poly([a64,b64,c64,d64,e64,f64]); m = [1//1 1//5 1//9 1//13; 1//2 1//6 1//10 1//14; 1//3 1//7 1//11 1//15; 1//4 1//8 1//12 1//16]; m32 = Rational{Int32}.(m); m64 = Rational{Int64}.(m); mfast32 = FastQ32.(m); mfast64 = FastQ64.(m); relspeed_arith32 = round( (@noelide @belapsed testarith($x32,$y32,$z32)) / (@noelide @belapsed testarith($a32,$b32,$c32)), digits=1); relspeed_arith64 = round( (@noelide @belapsed testarith($x64,$y64,$z64)) / (@noelide @belapsed testarith($a64,$b64,$c64)), digits=1); relspeed_add32 = round( (@noelide @belapsed testadd($x32,$y32,$z32)) / (@noelide @belapsed testadd($a32,$b32,$c32)), digits=1); relspeed_add64 = round( (@noelide @belapsed testadd($x64,$y64,$z64)) / (@noelide @belapsed testadd($a64,$b64,$c64)), digits=1); relspeed_mul32 = round( (@noelide @belapsed testmul($x32,$y32,$z32)) / (@noelide @belapsed testmul($a32,$b32,$c32)), digits=1); relspeed_mul64 = round( (@noelide @belapsed testmul($x64,$y64,$z64)) / (@noelide @belapsed testmul($a64,$b64,$c64)), digits=1); relspeed_ply32 = round( (@noelide @belapsed polyval($ply32, $q32)) / (@noelide @belapsed polyval($fastply32, $fastq32)), digits=1); relspeed_ply64 = round( (@noelide @belapsed polyval($ply64, $q64)) / (@noelide @belapsed polyval($fastply64, $fastq64)), digits=1); relspeed_ply64w = round( (@noelide @belapsed polyval($ply64w, $q64)) / (@noelide @belapsed polyval($fastply64w, $fastq64)), digits=1); relspeeds = string( "\n\n\trelative speeds", "\n\t (32)\t (64)\n\n", "mul: \t $relspeed_mul32 \t $relspeed_mul64 \n", "muladd:\t $relspeed_arith32 \t $relspeed_arith64 \n", "add: \t $relspeed_add32 \t $relspeed_add64 \n", "poly: \t $relspeed_ply32 \t $relspeed_ply64w \n"); print(relspeeds); ;
[ 3500, 12549, 49, 864, 82, 198, 3500, 12280, 26601, 8231, 11, 44800, 2348, 29230, 11, 25187, 4102, 33637, 11, 42755, 33637, 198, 198, 44199, 4102, 33637, 13, 7206, 38865, 62, 27082, 2390, 2767, 4877, 13, 1990, 874, 796, 352, 26, 198, 44199, 4102, 33637, 13, 7206, 38865, 62, 27082, 2390, 2767, 4877, 13, 82, 12629, 796, 939, 26, 198, 44199, 4102, 33637, 13, 7206, 38865, 62, 27082, 2390, 2767, 4877, 13, 2435, 62, 83, 37668, 796, 352, 13, 15, 68, 12, 23, 26, 198, 44199, 4102, 33637, 13, 7206, 38865, 62, 27082, 2390, 2767, 4877, 13, 2502, 2256, 796, 25187, 4102, 33637, 13, 395, 1920, 62, 2502, 2256, 9783, 198, 198, 11152, 7, 87, 11, 8434, 11, 12076, 8, 796, 12076, 7, 87, 8, 198, 11152, 7, 87, 3712, 3109, 1050, 11, 8434, 11, 12076, 8, 796, 12076, 7, 3109, 1050, 7, 87, 13, 2256, 11, 3975, 7, 5083, 11, 2124, 13, 22046, 26513, 4008, 198, 7353, 11152, 7, 69, 11, 2124, 8, 796, 2513, 7, 87, 11, 2124, 4613, 1281, 11152, 7, 69, 11, 2124, 828, 277, 8, 198, 198, 8818, 6412, 7, 31937, 3712, 3109, 1050, 8, 198, 220, 220, 220, 611, 44052, 13, 2256, 6624, 1058, 3, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 16763, 7, 3109, 1050, 7, 25, 47113, 36147, 8134, 16763, 7, 31937, 13, 22046, 986, 4008, 22305, 58, 12962, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 44052, 198, 220, 220, 220, 886, 198, 437, 198, 260, 18186, 7, 87, 8, 220, 796, 2124, 198, 198, 37811, 198, 220, 220, 220, 2488, 3919, 417, 485, 4808, 65, 20285, 305, 62, 5408, 198, 3003, 4808, 65, 20285, 305, 62, 318, 530, 286, 2488, 65, 2435, 11, 2488, 6667, 28361, 11, 2488, 26968, 4102, 198, 36918, 862, 477, 39555, 515, 2438, 287, 4808, 38011, 62, 287, 257, 11593, 8134, 3419, 834, 284, 198, 11338, 262, 17050, 422, 21608, 379, 2829, 31747, 13, 10933, 198, 4480, 597, 15021, 326, 18178, 39555, 341, 198, 2, 16281, 198, 220, 220, 220, 474, 43640, 29, 2488, 65, 2435, 3467, 3, 64, 1343, 3467, 3, 65, 198, 220, 220, 220, 220, 220, 657, 13, 40839, 36545, 357, 15, 49157, 25, 657, 9881, 8, 198, 220, 220, 220, 513, 198, 220, 220, 220, 474, 43640, 29, 2488, 3919, 417, 485, 2488, 65, 2435, 3467, 3, 64, 1343, 3467, 3, 65, 198, 220, 220, 220, 220, 220, 352, 13, 27019, 36545, 357, 15, 49157, 25, 657, 9881, 8, 198, 220, 220, 220, 513, 198, 37811, 198, 20285, 305, 645, 417, 485, 7, 31937, 8, 198, 220, 220, 220, 503, 796, 1281, 11152, 7, 260, 18186, 11, 44052, 8, 930, 29, 3671, 198, 437, 628, 198, 198, 8818, 1332, 2860, 7, 87, 11, 88, 11, 89, 8, 198, 220, 220, 257, 796, 2124, 1343, 331, 198, 220, 220, 275, 796, 257, 1343, 1976, 198, 220, 220, 269, 796, 275, 1343, 257, 198, 220, 220, 288, 796, 269, 1343, 2124, 198, 220, 220, 1441, 288, 198, 437, 198, 198, 8818, 1332, 76, 377, 7, 87, 11, 88, 11, 89, 8, 198, 220, 220, 257, 796, 2124, 1635, 331, 198, 220, 220, 275, 796, 257, 1635, 1976, 198, 220, 220, 269, 796, 1976, 1635, 2124, 198, 220, 220, 288, 796, 257, 1635, 275, 198, 220, 220, 1441, 288, 198, 437, 198, 198, 8818, 1332, 283, 342, 7, 87, 11, 88, 11, 89, 8, 198, 220, 220, 257, 796, 2124, 1343, 331, 198, 220, 220, 275, 796, 2124, 1635, 331, 198, 220, 220, 269, 796, 1976, 532, 275, 198, 220, 220, 288, 796, 257, 1220, 269, 198, 220, 220, 1441, 288, 198, 437, 628, 198, 86, 2624, 11, 87, 2624, 11, 88, 2624, 11, 89, 2624, 796, 46863, 90, 5317, 2624, 92, 12195, 58, 16, 1003, 1065, 11, 532, 17, 1003, 3324, 11, 513, 1003, 4051, 11, 532, 19, 1003, 1558, 36563, 10662, 2624, 796, 2558, 2624, 7, 16, 8, 1003, 5317, 2624, 7, 22, 1776, 198, 84, 2624, 11, 85, 2624, 796, 266, 2624, 10, 89, 2624, 11, 266, 2624, 12, 89, 2624, 198, 198, 86, 2414, 11, 87, 2414, 11, 88, 2414, 11, 89, 2414, 796, 46863, 90, 5317, 2414, 92, 12195, 58, 16, 1003, 1065, 11, 532, 17, 1003, 3324, 11, 513, 1003, 4051, 11, 532, 19, 1003, 1558, 36563, 10662, 2414, 796, 2558, 2414, 7, 16, 8, 1003, 5317, 2414, 7, 22, 1776, 198, 84, 2414, 11, 85, 2414, 796, 266, 2414, 10, 89, 2414, 11, 266, 2414, 12, 89, 2414, 198, 198, 2145, 2624, 796, 12280, 26933, 86, 2624, 11, 2124, 2624, 11, 331, 2624, 11, 1976, 2624, 36563, 198, 2145, 2414, 796, 12280, 26933, 86, 2414, 11, 2124, 2414, 11, 331, 2414, 11, 1976, 2414, 36563, 198, 2145, 2414, 86, 796, 12280, 26933, 84, 2414, 11, 410, 2414, 11, 266, 2414, 11, 2124, 2414, 11, 331, 2414, 11, 1976, 2414, 36563, 198, 198, 64, 2624, 11, 65, 2624, 11, 66, 2624, 11, 67, 2624, 11, 68, 2624, 11, 69, 2624, 796, 12549, 48, 2624, 12195, 7, 86, 2624, 11, 87, 2624, 11, 88, 2624, 11, 89, 2624, 11, 84, 2624, 11, 85, 2624, 18125, 3049, 80, 2624, 796, 12549, 48, 2624, 7, 80, 2624, 1776, 198, 7217, 2145, 2624, 28, 34220, 26933, 64, 2624, 11, 65, 2624, 11, 66, 2624, 11, 67, 2624, 36563, 198, 198, 64, 2414, 11, 65, 2414, 11, 66, 2414, 11, 67, 2414, 11, 68, 2414, 11, 69, 2414, 796, 12549, 48, 2414, 12195, 7, 86, 2414, 11, 87, 2414, 11, 88, 2414, 11, 89, 2414, 11, 84, 2414, 11, 85, 2414, 18125, 3049, 80, 2414, 796, 12549, 48, 2414, 7, 80, 2414, 1776, 198, 7217, 2145, 2414, 28, 34220, 26933, 64, 2414, 11, 65, 2414, 11, 66, 2414, 11, 67, 2414, 36563, 198, 7217, 2145, 2414, 86, 28, 34220, 26933, 64, 2414, 11, 65, 2414, 11, 66, 2414, 11, 67, 2414, 11, 68, 2414, 11, 69, 2414, 36563, 628, 198, 76, 796, 685, 16, 1003, 16, 352, 1003, 20, 352, 1003, 24, 352, 1003, 1485, 26, 352, 1003, 17, 352, 1003, 21, 352, 1003, 940, 352, 1003, 1415, 26, 352, 1003, 18, 352, 1003, 22, 352, 1003, 1157, 352, 1003, 1314, 26, 352, 1003, 19, 352, 1003, 23, 352, 1003, 1065, 352, 1003, 1433, 11208, 198, 76, 2624, 796, 46863, 90, 5317, 2624, 92, 12195, 76, 1776, 198, 76, 2414, 796, 46863, 90, 5317, 2414, 92, 12195, 76, 1776, 198, 76, 7217, 2624, 796, 12549, 48, 2624, 12195, 76, 1776, 198, 76, 7217, 2414, 796, 12549, 48, 2414, 12195, 76, 1776, 628, 198, 2411, 12287, 62, 283, 342, 2624, 796, 198, 220, 220, 220, 2835, 7, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 283, 342, 16763, 87, 2624, 11, 3, 88, 2624, 11, 3, 89, 2624, 4008, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 283, 342, 16763, 64, 2624, 11, 3, 65, 2624, 11, 3, 66, 2624, 36911, 19561, 28, 16, 1776, 198, 198, 2411, 12287, 62, 283, 342, 2414, 796, 198, 220, 220, 2835, 7, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 283, 342, 16763, 87, 2414, 11, 3, 88, 2414, 11, 3, 89, 2414, 4008, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 283, 342, 16763, 64, 2414, 11, 3, 65, 2414, 11, 3, 66, 2414, 36911, 19561, 28, 16, 1776, 628, 198, 2411, 12287, 62, 2860, 2624, 796, 198, 220, 2835, 7, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 2860, 16763, 87, 2624, 11, 3, 88, 2624, 11, 3, 89, 2624, 4008, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 2860, 16763, 64, 2624, 11, 3, 65, 2624, 11, 3, 66, 2624, 36911, 19561, 28, 16, 1776, 198, 198, 2411, 12287, 62, 2860, 2414, 796, 198, 2835, 7, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 2860, 16763, 87, 2414, 11, 3, 88, 2414, 11, 3, 89, 2414, 4008, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 2860, 16763, 64, 2414, 11, 3, 65, 2414, 11, 3, 66, 2414, 36911, 19561, 28, 16, 1776, 628, 198, 2411, 12287, 62, 76, 377, 2624, 796, 198, 2835, 7, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 76, 377, 16763, 87, 2624, 11, 3, 88, 2624, 11, 3, 89, 2624, 4008, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 76, 377, 16763, 64, 2624, 11, 3, 65, 2624, 11, 3, 66, 2624, 36911, 19561, 28, 16, 1776, 198, 198, 2411, 12287, 62, 76, 377, 2414, 796, 198, 2835, 7, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 76, 377, 16763, 87, 2414, 11, 3, 88, 2414, 11, 3, 89, 2414, 4008, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 4275, 3919, 417, 485, 2488, 6667, 28361, 1332, 76, 377, 16763, 64, 2414, 11, 3, 65, 2414, 11, 3, 66, 2414, 36911, 19561, 28, 16, 1776, 628, 198, 2411, 12287, 62, 2145, 2624, 796, 198, 2835, 7, 4275, 3919, 417, 485, 2488, 6667, 28361, 7514, 2100, 16763, 2145, 2624, 11, 720, 80, 2624, 4008, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 4275, 3919, 417, 485, 2488, 6667, 28361, 7514, 2100, 16763, 7217, 2145, 2624, 11, 720, 7217, 80, 2624, 36911, 19561, 28, 16, 1776, 198, 198, 2411, 12287, 62, 2145, 2414, 796, 198, 2835, 7, 4275, 3919, 417, 485, 2488, 6667, 28361, 7514, 2100, 16763, 2145, 2414, 11, 720, 80, 2414, 4008, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 4275, 3919, 417, 485, 2488, 6667, 28361, 7514, 2100, 16763, 7217, 2145, 2414, 11, 720, 7217, 80, 2414, 36911, 19561, 28, 16, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2411, 12287, 62, 2145, 2414, 86, 796, 198, 2835, 7, 4275, 3919, 417, 485, 2488, 6667, 28361, 7514, 2100, 16763, 2145, 2414, 86, 11, 720, 80, 2414, 4008, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 4275, 3919, 417, 485, 2488, 6667, 28361, 7514, 2100, 16763, 7217, 2145, 2414, 86, 11, 720, 7217, 80, 2414, 36911, 19561, 28, 16, 1776, 628, 198, 2411, 4125, 5379, 796, 4731, 7, 198, 1, 59, 77, 59, 77, 59, 83, 43762, 12055, 1600, 198, 1, 59, 77, 59, 83, 357, 2624, 19415, 83, 357, 2414, 19415, 77, 59, 77, 1600, 198, 1, 76, 377, 25, 220, 220, 3467, 83, 720, 2411, 12287, 62, 76, 377, 2624, 3467, 83, 720, 2411, 12287, 62, 76, 377, 2414, 3467, 77, 1600, 198, 1, 76, 377, 2860, 7479, 83, 720, 2411, 12287, 62, 283, 342, 2624, 3467, 83, 720, 2411, 12287, 62, 283, 342, 2414, 3467, 77, 1600, 198, 1, 2860, 25, 220, 220, 3467, 83, 720, 2411, 12287, 62, 2860, 2624, 3467, 83, 720, 2411, 12287, 62, 2860, 2414, 3467, 77, 1600, 198, 1, 35428, 25, 220, 3467, 83, 720, 2411, 12287, 62, 2145, 2624, 3467, 83, 720, 2411, 12287, 62, 2145, 2414, 86, 3467, 77, 15341, 198, 198, 4798, 7, 2411, 4125, 5379, 1776, 198, 26, 198 ]
2.087805
1,845
import Test: @test, @testset, @test_throws import Luna: Capillary, Tools, PhysData @testset "Params" begin m = Capillary.MarcatiliMode(125e-6, :He, 0.4, model=:reduced) p = Tools.params(300e-6, 10e-15, 800e-9, m, :He, P=0.4) # compare to Pufe @test isapprox(p.N, 2.239, rtol=1e-3) @test isapprox(p.Lfiss, 1.768, rtol=1e-3) @test isapprox(p.zdw, 378.8e-9, rtol=1e-2) @test isapprox(p.P0/p.Pcr, 0.0398, rtol=2e-2) # test backup zdw method p = Tools.capillary_params(6e-9, 20e-15, 800e-9, 14e-6, :Kr, P=15.0) @test isapprox(p.zdw, 7.693023014958748e-7, rtol=1e-7) end @testset "RDW phasematching" begin a = 125e-6 gas = :HeJ pressure = 1 Ξ»0 = 800e-9 Ξ»RDW = Tools.Ξ»RDW(a, gas, pressure, Ξ»0) @test Ξ»RDW - 188e-9 < 1e-9 @test Tools.pressureRDW(a, gas, Ξ»RDW, Ξ»0) β‰ˆ pressure end
[ 11748, 6208, 25, 2488, 9288, 11, 2488, 9288, 2617, 11, 2488, 9288, 62, 400, 8516, 198, 11748, 23694, 25, 4476, 15856, 11, 20003, 11, 8687, 6601, 198, 198, 31, 9288, 2617, 366, 10044, 4105, 1, 2221, 198, 76, 796, 4476, 15856, 13, 22697, 265, 2403, 19076, 7, 11623, 68, 12, 21, 11, 1058, 1544, 11, 657, 13, 19, 11, 2746, 28, 25, 445, 19513, 8, 198, 79, 796, 20003, 13, 37266, 7, 6200, 68, 12, 21, 11, 838, 68, 12, 1314, 11, 10460, 68, 12, 24, 11, 285, 11, 1058, 1544, 11, 350, 28, 15, 13, 19, 8, 198, 2, 8996, 284, 350, 3046, 68, 198, 31, 9288, 318, 1324, 13907, 7, 79, 13, 45, 11, 362, 13, 23516, 11, 374, 83, 349, 28, 16, 68, 12, 18, 8, 198, 31, 9288, 318, 1324, 13907, 7, 79, 13, 43, 69, 747, 11, 352, 13, 30610, 11, 374, 83, 349, 28, 16, 68, 12, 18, 8, 198, 31, 9288, 318, 1324, 13907, 7, 79, 13, 89, 67, 86, 11, 45473, 13, 23, 68, 12, 24, 11, 374, 83, 349, 28, 16, 68, 12, 17, 8, 198, 31, 9288, 318, 1324, 13907, 7, 79, 13, 47, 15, 14, 79, 13, 47, 6098, 11, 657, 13, 15, 31952, 11, 374, 83, 349, 28, 17, 68, 12, 17, 8, 198, 2, 1332, 11559, 1976, 67, 86, 2446, 198, 79, 796, 20003, 13, 11128, 15856, 62, 37266, 7, 21, 68, 12, 24, 11, 1160, 68, 12, 1314, 11, 10460, 68, 12, 24, 11, 1478, 68, 12, 21, 11, 1058, 42, 81, 11, 350, 28, 1314, 13, 15, 8, 198, 31, 9288, 318, 1324, 13907, 7, 79, 13, 89, 67, 86, 11, 767, 13, 3388, 1270, 1954, 486, 2920, 44617, 2780, 68, 12, 22, 11, 374, 83, 349, 28, 16, 68, 12, 22, 8, 198, 437, 198, 198, 31, 9288, 2617, 366, 35257, 54, 872, 292, 368, 19775, 1, 2221, 198, 64, 796, 13151, 68, 12, 21, 198, 22649, 796, 1058, 1544, 41, 198, 36151, 796, 352, 198, 39377, 15, 796, 10460, 68, 12, 24, 198, 198, 39377, 35257, 54, 796, 20003, 13, 39377, 35257, 54, 7, 64, 11, 3623, 11, 3833, 11, 7377, 119, 15, 8, 198, 31, 9288, 7377, 119, 35257, 54, 532, 27778, 68, 12, 24, 1279, 352, 68, 12, 24, 198, 31, 9288, 20003, 13, 36151, 35257, 54, 7, 64, 11, 3623, 11, 7377, 119, 35257, 54, 11, 7377, 119, 15, 8, 15139, 230, 3833, 198, 437, 198 ]
1.906404
406
<filename>stdlib/Random/src/deprecated.jl # This file is a part of Julia. License is MIT: https://julialang.org/license # PR #25567 Base.@deprecate_binding dSFMT DSFMT # PR #21359 @deprecate srand(r::MersenneTwister, filename::AbstractString, n::Integer=4) srand(r, read!(filename, Vector{UInt32}(uninitialized, Int(n)))) @deprecate srand(filename::AbstractString, n::Integer=4) srand(read!(filename, Vector{UInt32}(uninitialized, Int(n)))) @deprecate MersenneTwister(filename::AbstractString) srand(MersenneTwister(0), read!(filename, Vector{UInt32}(uninitialized, Int(4)))) function randjump(mt::MersenneTwister, jumps::Integer, jumppoly::AbstractString) depwarn("`randjump(rng, jumps, jumppoly::AbstractString)` is deprecated; use `randjump(rng, steps, jumps)` instead", :randjump) Base.Random._randjump(mt, DSFMT.GF2X(jumppoly), jumps) end @deprecate randjump(mt::MersenneTwister, jumps::Integer) randjump(mt, big(10)^20, jumps) @deprecate convert(::Type{UInt128}, u::UUID) UInt128(u) @deprecate convert(::Type{UUID}, s::AbstractString) UUID(s) # PR #25429 @deprecate rand(r::AbstractRNG, dims::Dims) rand(r, Float64, dims) @deprecate rand( dims::Dims) rand(Float64, dims) # PR #25668 @deprecate RandomDevice(unlimited::Bool) RandomDevice(; unlimited=unlimited)
[ 27, 34345, 29, 19282, 8019, 14, 29531, 14, 10677, 14, 10378, 31023, 13, 20362, 198, 2, 770, 2393, 318, 257, 636, 286, 22300, 13, 13789, 318, 17168, 25, 3740, 1378, 73, 377, 498, 648, 13, 2398, 14, 43085, 198, 198, 2, 4810, 1303, 13381, 3134, 198, 14881, 13, 31, 10378, 8344, 378, 62, 30786, 288, 20802, 13752, 17400, 37, 13752, 198, 198, 2, 4810, 1303, 26427, 3270, 198, 198, 31, 10378, 8344, 378, 19677, 392, 7, 81, 3712, 44, 364, 29727, 5080, 1694, 11, 29472, 3712, 23839, 10100, 11, 299, 3712, 46541, 28, 19, 8, 19677, 392, 7, 81, 11, 1100, 0, 7, 34345, 11, 20650, 90, 52, 5317, 2624, 92, 7, 403, 17532, 11, 2558, 7, 77, 35514, 198, 31, 10378, 8344, 378, 19677, 392, 7, 34345, 3712, 23839, 10100, 11, 299, 3712, 46541, 28, 19, 8, 19677, 392, 7, 961, 0, 7, 34345, 11, 20650, 90, 52, 5317, 2624, 92, 7, 403, 17532, 11, 2558, 7, 77, 35514, 198, 31, 10378, 8344, 378, 337, 364, 29727, 5080, 1694, 7, 34345, 3712, 23839, 10100, 8, 220, 19677, 392, 7, 44, 364, 29727, 5080, 1694, 7, 15, 828, 1100, 0, 7, 34345, 11, 20650, 90, 52, 5317, 2624, 92, 7, 403, 17532, 11, 2558, 7, 19, 35514, 198, 198, 8818, 43720, 43327, 7, 16762, 3712, 44, 364, 29727, 5080, 1694, 11, 18045, 3712, 46541, 11, 474, 388, 381, 3366, 3712, 23839, 10100, 8, 198, 220, 220, 220, 1207, 40539, 7203, 63, 25192, 43327, 7, 81, 782, 11, 18045, 11, 474, 388, 381, 3366, 3712, 23839, 10100, 8, 63, 318, 39224, 26, 779, 4600, 25192, 43327, 7, 81, 782, 11, 4831, 11, 18045, 8, 63, 2427, 1600, 1058, 25192, 43327, 8, 198, 220, 220, 220, 7308, 13, 29531, 13557, 25192, 43327, 7, 16762, 11, 17400, 37, 13752, 13, 21713, 17, 55, 7, 73, 388, 381, 3366, 828, 18045, 8, 198, 437, 198, 198, 31, 10378, 8344, 378, 43720, 43327, 7, 16762, 3712, 44, 364, 29727, 5080, 1694, 11, 18045, 3712, 46541, 8, 220, 43720, 43327, 7, 16762, 11, 1263, 7, 940, 8, 61, 1238, 11, 18045, 8, 198, 198, 31, 10378, 8344, 378, 10385, 7, 3712, 6030, 90, 52, 5317, 12762, 5512, 220, 220, 220, 220, 334, 3712, 52, 27586, 8, 220, 220, 220, 220, 471, 5317, 12762, 7, 84, 8, 198, 31, 10378, 8344, 378, 10385, 7, 3712, 6030, 90, 52, 27586, 5512, 264, 3712, 23839, 10100, 8, 220, 471, 27586, 7, 82, 8, 198, 198, 2, 4810, 1303, 1495, 11785, 198, 31, 10378, 8344, 378, 43720, 7, 81, 3712, 23839, 49, 10503, 11, 5391, 82, 3712, 35, 12078, 8, 43720, 7, 81, 11, 48436, 2414, 11, 5391, 82, 8, 198, 31, 10378, 8344, 378, 43720, 7, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 3712, 35, 12078, 8, 43720, 7, 43879, 2414, 11, 5391, 82, 8, 198, 198, 2, 4810, 1303, 1495, 35809, 198, 31, 10378, 8344, 378, 14534, 24728, 7, 403, 10698, 3712, 33, 970, 8, 14534, 24728, 7, 26, 15822, 28, 403, 10698, 8, 198 ]
2.579882
507
# --------------- # Global Commands # --------------- handle("julia.set-global-client") do req, data global global_client = req[1] Base.notify(connect_notify) global_client end handle("cwd") do _, path path == nothing && return path = isfile(path) ? dirname(path) : path cd(path) end function command(cmd, data = Dict()) data[:cmd] = cmd raise(global_client, "editor.eval.julia.command", data) end function popup(header, body="", buttons = [@d(:label => "Ok")]) command("popup", @d(:header => header, :body => body, :buttons => buttons)) end function ltprint(message; error = false) command("print", @d(:value => message, :error => error)) end function notify_done(msg = nothing) command("done", @d(:msg => msg)) end function notify(message; class = "") command("notify", @d(:msg => message, :class => class)) end function notify_error(message) notify(message, class = "error") end function console(value::AbstractString; html = false) command("console", @d("value" => value, "html" => html)) end
[ 2, 220, 24305, 198, 2, 8060, 49505, 198, 2, 220, 24305, 198, 198, 28144, 7203, 73, 43640, 13, 2617, 12, 20541, 12, 16366, 4943, 466, 43089, 11, 1366, 198, 220, 3298, 3298, 62, 16366, 796, 43089, 58, 16, 60, 198, 220, 7308, 13, 1662, 1958, 7, 8443, 62, 1662, 1958, 8, 198, 220, 3298, 62, 16366, 198, 437, 198, 198, 28144, 7203, 66, 16993, 4943, 466, 4808, 11, 3108, 198, 220, 3108, 6624, 2147, 11405, 1441, 198, 220, 3108, 796, 318, 7753, 7, 6978, 8, 5633, 26672, 3672, 7, 6978, 8, 1058, 3108, 198, 220, 22927, 7, 6978, 8, 198, 437, 198, 198, 8818, 3141, 7, 28758, 11, 1366, 796, 360, 713, 28955, 198, 220, 1366, 58, 25, 28758, 60, 796, 23991, 198, 220, 5298, 7, 20541, 62, 16366, 11, 366, 35352, 13, 18206, 13, 73, 43640, 13, 21812, 1600, 1366, 8, 198, 437, 198, 198, 8818, 46207, 7, 25677, 11, 1767, 2625, 1600, 12163, 796, 685, 31, 67, 7, 25, 18242, 5218, 366, 18690, 4943, 12962, 198, 220, 3141, 7203, 12924, 929, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 67, 7, 25, 25677, 5218, 13639, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 2618, 5218, 1767, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 4360, 27288, 5218, 12163, 4008, 198, 437, 198, 198, 8818, 300, 83, 4798, 7, 20500, 26, 4049, 796, 3991, 8, 198, 220, 3141, 7203, 4798, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 67, 7, 25, 8367, 5218, 3275, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 18224, 5218, 4049, 4008, 198, 437, 198, 198, 8818, 19361, 62, 28060, 7, 19662, 796, 2147, 8, 198, 220, 3141, 7203, 28060, 1600, 2488, 67, 7, 25, 19662, 5218, 31456, 4008, 198, 437, 198, 198, 8818, 19361, 7, 20500, 26, 1398, 796, 366, 4943, 198, 220, 3141, 7203, 1662, 1958, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 67, 7, 25, 19662, 5218, 3275, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 4871, 5218, 1398, 4008, 198, 437, 198, 198, 8818, 19361, 62, 18224, 7, 20500, 8, 198, 220, 19361, 7, 20500, 11, 1398, 796, 366, 18224, 4943, 198, 437, 198, 198, 8818, 8624, 7, 8367, 3712, 23839, 10100, 26, 27711, 796, 3991, 8, 198, 220, 3141, 7203, 41947, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 67, 7203, 8367, 1, 5218, 1988, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 6494, 1, 220, 5218, 27711, 4008, 198, 437, 198 ]
2.511013
454
# FIXME temporary copy/paste from: # https://github.com/FluxML/MacroTools.jl/blob/master/src/utils.jl#L55-L87 isexpr(x::Expr) = true isexpr(x) = false isexpr(x::Expr, ts...) = x.head in ts isexpr(x, ts...) = any(T->isa(T, Type) && isa(x, T), ts) isline(ex) = isexpr(ex, :line) || isa(ex, LineNumberNode) rmlines(x) = x function rmlines(x::Expr) # Do not strip the first argument to a macrocall, which is # required. if x.head == :macrocall && length(x.args) >= 2 Expr(x.head, x.args[1], nothing, filter(x->!isline(x), x.args[3:end])...) else Expr(x.head, filter(x->!isline(x), x.args)...) end end striplines(ex) = prewalk(rmlines, ex) walk(x, inner, outer) = outer(x) walk(x::Expr, inner, outer) = outer(Expr(x.head, map(inner, x.args)...)) prewalk(f, x) = walk(f(x), x -> prewalk(f, x), identity)
[ 2, 44855, 11682, 8584, 4866, 14, 34274, 422, 25, 198, 2, 3740, 1378, 12567, 13, 785, 14, 37, 22564, 5805, 14, 14155, 305, 33637, 13, 20362, 14, 2436, 672, 14, 9866, 14, 10677, 14, 26791, 13, 20362, 2, 43, 2816, 12, 43, 5774, 198, 198, 786, 87, 1050, 7, 87, 3712, 3109, 1050, 8, 796, 2081, 198, 786, 87, 1050, 7, 87, 8, 796, 3991, 198, 786, 87, 1050, 7, 87, 3712, 3109, 1050, 11, 40379, 23029, 796, 2124, 13, 2256, 287, 40379, 198, 786, 87, 1050, 7, 87, 11, 40379, 23029, 796, 597, 7, 51, 3784, 9160, 7, 51, 11, 5994, 8, 11405, 318, 64, 7, 87, 11, 309, 828, 40379, 8, 198, 198, 271, 1370, 7, 1069, 8, 796, 318, 31937, 7, 1069, 11, 1058, 1370, 8, 8614, 318, 64, 7, 1069, 11, 6910, 15057, 19667, 8, 198, 198, 81, 4029, 1127, 7, 87, 8, 796, 2124, 198, 8818, 374, 4029, 1127, 7, 87, 3712, 3109, 1050, 8, 198, 220, 1303, 2141, 407, 10283, 262, 717, 4578, 284, 257, 8352, 12204, 439, 11, 543, 318, 198, 220, 1303, 2672, 13, 198, 220, 611, 2124, 13, 2256, 6624, 1058, 20285, 12204, 439, 11405, 4129, 7, 87, 13, 22046, 8, 18189, 362, 198, 220, 220, 220, 1475, 1050, 7, 87, 13, 2256, 11, 2124, 13, 22046, 58, 16, 4357, 2147, 11, 8106, 7, 87, 3784, 0, 271, 1370, 7, 87, 828, 2124, 13, 22046, 58, 18, 25, 437, 12962, 23029, 198, 220, 2073, 198, 220, 220, 220, 1475, 1050, 7, 87, 13, 2256, 11, 8106, 7, 87, 3784, 0, 271, 1370, 7, 87, 828, 2124, 13, 22046, 8, 23029, 198, 220, 886, 198, 437, 198, 198, 33565, 489, 1127, 7, 1069, 8, 796, 662, 11152, 7, 81, 4029, 1127, 11, 409, 8, 198, 198, 11152, 7, 87, 11, 8434, 11, 12076, 8, 796, 12076, 7, 87, 8, 198, 11152, 7, 87, 3712, 3109, 1050, 11, 8434, 11, 12076, 8, 796, 12076, 7, 3109, 1050, 7, 87, 13, 2256, 11, 3975, 7, 5083, 11, 2124, 13, 22046, 26513, 4008, 198, 79, 1809, 971, 7, 69, 11, 2124, 8, 220, 796, 2513, 7, 69, 7, 87, 828, 2124, 4613, 662, 11152, 7, 69, 11, 2124, 828, 5369, 8, 198 ]
2.239782
367
using StatsModels using RegressionFormulae using RegressionFormulae: fulldummy using Test include("dummymod.jl") dat = (; y=zeros(10), a=["u","i","o"], b=["q","w","e"], c=["s","d","f"], x=1:10) @testset "error checking" begin @test_throws ArgumentError fulldummy(term(:a)) sch = schema(dat) @test_throws ArgumentError apply_schema(@formula(y ~ fulldummy(x)), sch, RegressionModel) end
[ 3500, 20595, 5841, 1424, 198, 3500, 3310, 2234, 8479, 377, 3609, 198, 3500, 3310, 2234, 8479, 377, 3609, 25, 1336, 67, 13513, 198, 3500, 6208, 198, 198, 17256, 7203, 67, 13513, 4666, 13, 20362, 4943, 198, 198, 19608, 796, 357, 26, 331, 28, 9107, 418, 7, 940, 828, 257, 28, 14692, 84, 2430, 72, 2430, 78, 33116, 275, 28, 14692, 80, 2430, 86, 2430, 68, 33116, 269, 28, 14692, 82, 2430, 67, 2430, 69, 33116, 2124, 28, 16, 25, 940, 8, 198, 198, 31, 9288, 2617, 366, 18224, 10627, 1, 2221, 198, 220, 220, 220, 2488, 9288, 62, 400, 8516, 45751, 12331, 1336, 67, 13513, 7, 4354, 7, 25, 64, 4008, 628, 220, 220, 220, 5513, 796, 32815, 7, 19608, 8, 198, 220, 220, 220, 2488, 9288, 62, 400, 8516, 45751, 12331, 4174, 62, 15952, 2611, 7, 31, 687, 4712, 7, 88, 5299, 1336, 67, 13513, 7, 87, 36911, 5513, 11, 3310, 2234, 17633, 8, 198, 437, 198 ]
2.537975
158
using Plots V(x,y) = (1/2)*(x^2 + y^2 + 2*x^2*y - (2/3)*y^3) x = y = range(-1,stop = 1, length = 1000) V(x,y) = (1/2)*(x^2 + y^2 + 2*x^2*y - (2/3)*y^3) x = y = range(-1,stop = 1, length = 1000) contourf(x,y,V) contour!(x,y,V,levels=0:1/6:1,title = "Henon-Heiles potential: Intensity map",linecolor = :white) # savefig("potential_intensity.png") plot(x,y,V,title = "Henon-Heiles potential: Surface map") # savefig("potential_surface.png")
[ 3500, 1345, 1747, 201, 198, 201, 198, 53, 7, 87, 11, 88, 8, 796, 357, 16, 14, 17, 27493, 7, 87, 61, 17, 1343, 331, 61, 17, 1343, 362, 9, 87, 61, 17, 9, 88, 532, 357, 17, 14, 18, 27493, 88, 61, 18, 8, 201, 198, 87, 796, 331, 796, 2837, 32590, 16, 11, 11338, 796, 352, 11, 4129, 796, 8576, 8, 201, 198, 53, 7, 87, 11, 88, 8, 796, 357, 16, 14, 17, 27493, 7, 87, 61, 17, 1343, 331, 61, 17, 1343, 362, 9, 87, 61, 17, 9, 88, 532, 357, 17, 14, 18, 27493, 88, 61, 18, 8, 201, 198, 87, 796, 331, 796, 2837, 32590, 16, 11, 11338, 796, 352, 11, 4129, 796, 8576, 8, 201, 198, 3642, 454, 69, 7, 87, 11, 88, 11, 53, 8, 201, 198, 3642, 454, 0, 7, 87, 11, 88, 11, 53, 11, 46170, 28, 15, 25, 16, 14, 21, 25, 16, 11, 7839, 796, 366, 26055, 261, 12, 1544, 2915, 2785, 25, 2558, 6377, 3975, 1600, 1370, 8043, 796, 1058, 11186, 8, 201, 198, 2, 3613, 5647, 7203, 13059, 1843, 62, 47799, 13, 11134, 4943, 201, 198, 201, 198, 29487, 7, 87, 11, 88, 11, 53, 11, 7839, 796, 366, 26055, 261, 12, 1544, 2915, 2785, 25, 20321, 3975, 4943, 201, 198, 2, 3613, 5647, 7203, 13059, 1843, 62, 42029, 13, 11134, 4943 ]
1.99115
226
<reponame>kiranshila/SIGPROC.jl using RecipesBase, Statistics, DimensionalData @recipe f(::Type{Filterbank}, fb::Filterbank) = fb.data @userplot Waterfall @recipe function f(h::Waterfall) if h.args[1] isa Filterbank data = h.args[1].data elseif h.args[1] isa DimArray data = h.args[1] else @error "Argument must be a filterbank or DimArray" end # set up the subplots fc := :viridis legend := false link := :both framestyle := [:none :axes :none] grid := false layout := @layout [topav _ heatmap{0.9w,0.9h} _] # Main Waterfall @series begin seriestype := :heatmap subplot := 2 data end # these are common to both average plots linecolor := :black seriestype := :line # upper @series begin title := "" subplot := 1 dropdims(mean(data,dims=Freq),dims=Freq) end end
[ 27, 7856, 261, 480, 29, 74, 343, 504, 71, 10102, 14, 50, 3528, 4805, 4503, 13, 20362, 198, 3500, 44229, 14881, 11, 14370, 11, 360, 16198, 6601, 198, 198, 31, 29102, 431, 277, 7, 3712, 6030, 90, 22417, 17796, 5512, 277, 65, 3712, 22417, 17796, 8, 796, 277, 65, 13, 7890, 198, 198, 31, 7220, 29487, 5638, 7207, 198, 198, 31, 29102, 431, 2163, 277, 7, 71, 3712, 19184, 7207, 8, 198, 220, 220, 220, 611, 289, 13, 22046, 58, 16, 60, 318, 64, 25853, 17796, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 289, 13, 22046, 58, 16, 4083, 7890, 198, 220, 220, 220, 2073, 361, 289, 13, 22046, 58, 16, 60, 318, 64, 14048, 19182, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 289, 13, 22046, 58, 16, 60, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 18224, 366, 28100, 1713, 1276, 307, 257, 8106, 17796, 393, 14048, 19182, 1, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1303, 900, 510, 262, 850, 489, 1747, 628, 220, 220, 220, 277, 66, 19039, 1058, 37040, 29207, 198, 220, 220, 220, 8177, 19039, 3991, 198, 220, 220, 220, 2792, 19039, 1058, 16885, 198, 220, 220, 220, 5346, 10992, 19039, 685, 25, 23108, 1058, 897, 274, 1058, 23108, 60, 198, 220, 220, 220, 10706, 19039, 3991, 198, 220, 220, 220, 12461, 19039, 2488, 39786, 685, 4852, 615, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4894, 8899, 90, 15, 13, 24, 86, 11, 15, 13, 24, 71, 92, 4808, 60, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 8774, 5638, 7207, 198, 220, 220, 220, 2488, 25076, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 1055, 6386, 2981, 19039, 1058, 25080, 8899, 198, 220, 220, 220, 220, 220, 220, 220, 850, 29487, 19039, 362, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1303, 777, 389, 2219, 284, 1111, 2811, 21528, 198, 220, 220, 220, 1627, 8043, 19039, 1058, 13424, 198, 220, 220, 220, 1055, 6386, 2981, 19039, 1058, 1370, 628, 220, 220, 220, 1303, 6727, 198, 220, 220, 220, 2488, 25076, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 19039, 13538, 198, 220, 220, 220, 220, 220, 220, 220, 850, 29487, 19039, 352, 198, 220, 220, 220, 220, 220, 220, 220, 4268, 67, 12078, 7, 32604, 7, 7890, 11, 67, 12078, 28, 20366, 80, 828, 67, 12078, 28, 20366, 80, 8, 198, 220, 220, 220, 886, 198, 437 ]
2.126106
452
<filename>src/incidence_to_triangles.jl function find_zero_indices(a) eachindex(a)'[a .== 0] end function find_nonzero_indices(a) eachindex(a)'[a .!= 0] end """ `INCIDENCE_TO_INCIDENT_LIST_ARRAY` - takes in M edges on N nodes in NxM sparse format and returns an 3xN array where the N-th column includes the indices of the nodes connected (one-direction) to node N * Currently assumes that there's at most 3 points, and furthermore that the nonzeros alternate * 0 in the incidence_array means that there's less than 3 points """ function incidence_to_incident_list_array(E) incident_list_array = zeros(Int64, 3, size(E, 1)) incident_list_counts = ones(Int64, size(E, 1)) rows = rowvals(E) vals = nonzeros(E) ind = 1 # for each edge for j in 1:size(E, 2) node_first = rows[ind] node_second = rows[ind+1] incident_list_count = incident_list_counts[node_first] incident_list_array[incident_list_count, node_first] = node_second incident_list_counts[node_first] = incident_list_count+1 ind = ind+2 end return incident_list_array end # checks if p -> p(pa,pb) is the same as p -> pc -> pca(b,c) and writes the triangle function check_and_write_triangles!(triangles, cur_triangle, p, pa, pb, pc, pca, pcb, pcc) if p == 0 return cur_triangle end if pc == 0 return cur_triangle end if pa != 0 if pa == pca || pa == pcb || pa == pcc triangles[1, cur_triangle] = p triangles[2, cur_triangle] = pc triangles[3, cur_triangle] = pa cur_triangle += 1 end end if pb != 0 if pb == pca || pb == pcb || pb == pcc triangles[1, cur_triangle] = p triangles[2, cur_triangle] = pc triangles[3, cur_triangle] = pb cur_triangle += 1 end end return cur_triangle end """ `INCIDENT_LIST_ARRAY_TO_TRIANGLES` - Convert incidence array to 3xN list triangle node index vectors """ function incident_list_array_to_triangles(incident_list_array) triangles = zeros(Int64, 3, size(incident_list_array, 2) * 10) max_edges = size(incident_list_array, 1) cur_triangle = 1 # absolutely awful, but really fast # for each node at j for p in 1:size(incident_list_array, 2) # the up to 3 points that have edges from j pa = incident_list_array[1, p] pb = incident_list_array[2, p] pc = incident_list_array[3, p] if pa != 0 # the up to 9 points that have edges from pa, pb, pc paa = incident_list_array[1, pa]; pab = incident_list_array[2, pa]; pac = incident_list_array[3, pa] else paa = 0; pab = 0; pac = 0 end if pb != 0 pba = incident_list_array[1, pb]; pbb = incident_list_array[2, pb]; pbc = incident_list_array[3, pb] else pba = 0; pbb = 0; pbc = 0 end if pc != 0 pca = incident_list_array[1, pc]; pcb = incident_list_array[2, pc]; pcc = incident_list_array[3, pc] else pca = 0; pcb = 0; pcc = 0 end cur_triangle = check_and_write_triangles!(triangles, cur_triangle, p, pa, pb, pc, pca, pcb, pcc) cur_triangle = check_and_write_triangles!(triangles, cur_triangle, p, pa, pc, pb, pba, pbb, pbc) cur_triangle = check_and_write_triangles!(triangles, cur_triangle, p, pb, pc, pa, paa, pab, pac) end return triangles[:, 1:(cur_triangle - 1)] end """ `INCIDENCE_TO_TRIANGLES` - Convert node-edge incidence matrix into triangle array (triples of node indices defining all triangles in the mesh). The triangle array will be used when applying piecewise affine transforms through the meshwarp function. See Mesh type documentation for definition of an incidence matrix. ``` triangles = incidence_to_triangles(E) ``` * E: node-edge incidence matrix * triangles: 3xN array of ints, each column represents the indices of three nodes in one triangle. """ function incidence_to_triangles(E) incident_list_array = incidence_to_incident_list_array(E) return incident_list_array_to_triangles(incident_list_array) end #= THESE FUNCTIONS ARE SLOW """ `INCIDENCE_TO_DICT` - Create dictionary of node sets connected to indexing node """ function incidence_to_dict(D) D = abs.(D) node_dict = Dict() for i = 1:size(D,1) j = 1 while D[i,j] == 0 j += 1 end if !(j in keys(node_dict)) node_dict[j] = Set{Int64}() end k = j+1 while D[i,k] == 0 k += 1 end push!(node_dict[j], k) end return node_dict end """ `DICT_TO_TRIANGLES` - Convert node dict to Nx3 list triangle node index vectors """ function dict_to_triangles(node_dict) triangles = Array{Int64}(0, 3) for a in sort(collect(keys(node_dict))) setA = node_dict[a] for b in sort(collect(setA)) if !(b in keys(node_dict)) continue end setB = node_dict[b] setC = intersect(setA, setB) for c in sort(collect(setC)) triangles = vcat(triangles, [a b c]) end end end return triangles end """ `INCIDENCE_TO_TRIANGLES` - Convert edge-node incidence matrix into triangle array (triples of node indices defining all triangles in the mesh). The triangle array will be used when applying piecewise affine transforms through the meshwarp function. See Mesh type documentation for definition of an incidence matrix. ``` triangles = incidence_to_triangles(D) ``` * D: edge-node incidence matrix * triangles: Nx3 array of ints, each row represents the indices of three nodes in one triangle. """ function incidence_to_triangles(D) node_dict = incidence_to_dict(D) return dict_to_triangles(node_dict) end =#
[ 27, 34345, 29, 10677, 14, 1939, 1704, 62, 1462, 62, 28461, 27787, 13, 20362, 198, 8818, 1064, 62, 22570, 62, 521, 1063, 7, 64, 8, 198, 220, 1123, 9630, 7, 64, 33047, 58, 64, 764, 855, 657, 60, 198, 437, 198, 198, 8818, 1064, 62, 13159, 22570, 62, 521, 1063, 7, 64, 8, 198, 220, 1123, 9630, 7, 64, 33047, 58, 64, 764, 0, 28, 657, 60, 198, 437, 628, 198, 37811, 198, 63, 30158, 2389, 18310, 62, 10468, 62, 30158, 25256, 62, 45849, 62, 1503, 30631, 63, 532, 2753, 287, 337, 13015, 319, 399, 13760, 287, 399, 87, 44, 29877, 5794, 290, 5860, 281, 513, 87, 45, 7177, 810, 262, 399, 12, 400, 5721, 3407, 262, 36525, 286, 262, 13760, 5884, 357, 505, 12, 37295, 8, 284, 10139, 399, 198, 1635, 16888, 18533, 326, 612, 338, 379, 749, 513, 2173, 11, 290, 50002, 326, 262, 1729, 9107, 418, 13527, 198, 1635, 657, 287, 262, 18349, 62, 18747, 1724, 326, 612, 338, 1342, 621, 513, 2173, 198, 37811, 198, 8818, 18349, 62, 1462, 62, 1939, 738, 62, 4868, 62, 18747, 7, 36, 8, 198, 220, 4519, 62, 4868, 62, 18747, 796, 1976, 27498, 7, 5317, 2414, 11, 513, 11, 2546, 7, 36, 11, 352, 4008, 198, 220, 4519, 62, 4868, 62, 9127, 82, 796, 3392, 7, 5317, 2414, 11, 2546, 7, 36, 11, 352, 4008, 198, 220, 15274, 796, 5752, 12786, 7, 36, 8, 198, 220, 410, 874, 796, 1729, 9107, 418, 7, 36, 8, 628, 220, 773, 796, 352, 198, 220, 1303, 329, 1123, 5743, 198, 220, 329, 474, 287, 352, 25, 7857, 7, 36, 11, 362, 8, 198, 220, 220, 220, 220, 197, 17440, 62, 11085, 796, 15274, 58, 521, 60, 198, 220, 220, 220, 220, 197, 17440, 62, 12227, 796, 15274, 58, 521, 10, 16, 60, 198, 197, 1939, 738, 62, 4868, 62, 9127, 796, 4519, 62, 4868, 62, 9127, 82, 58, 17440, 62, 11085, 60, 198, 197, 1939, 738, 62, 4868, 62, 18747, 58, 1939, 738, 62, 4868, 62, 9127, 11, 10139, 62, 11085, 60, 796, 10139, 62, 12227, 198, 197, 1939, 738, 62, 4868, 62, 9127, 82, 58, 17440, 62, 11085, 60, 796, 4519, 62, 4868, 62, 9127, 10, 16, 198, 197, 521, 796, 773, 10, 17, 198, 220, 886, 198, 220, 1441, 4519, 62, 4868, 62, 18747, 198, 437, 198, 198, 2, 8794, 611, 279, 4613, 279, 7, 8957, 11, 40842, 8, 318, 262, 976, 355, 279, 4613, 40653, 4613, 279, 6888, 7, 65, 11, 66, 8, 290, 6797, 262, 22950, 198, 8818, 2198, 62, 392, 62, 13564, 62, 28461, 27787, 0, 7, 28461, 27787, 11, 1090, 62, 28461, 9248, 11, 279, 11, 14187, 11, 279, 65, 11, 40653, 11, 279, 6888, 11, 279, 21101, 11, 279, 535, 8, 198, 220, 611, 279, 6624, 657, 1441, 1090, 62, 28461, 9248, 886, 198, 220, 611, 40653, 6624, 657, 1441, 1090, 62, 28461, 9248, 886, 198, 220, 611, 14187, 14512, 657, 198, 197, 361, 14187, 6624, 279, 6888, 8614, 14187, 6624, 279, 21101, 8614, 14187, 6624, 279, 535, 198, 197, 28461, 27787, 58, 16, 11, 1090, 62, 28461, 9248, 60, 796, 279, 198, 197, 28461, 27787, 58, 17, 11, 1090, 62, 28461, 9248, 60, 796, 40653, 198, 197, 28461, 27787, 58, 18, 11, 1090, 62, 28461, 9248, 60, 796, 14187, 198, 197, 22019, 62, 28461, 9248, 15853, 352, 198, 220, 220, 220, 220, 220, 886, 198, 220, 886, 198, 220, 611, 279, 65, 14512, 657, 198, 197, 361, 279, 65, 6624, 279, 6888, 8614, 279, 65, 6624, 279, 21101, 8614, 279, 65, 6624, 279, 535, 198, 197, 28461, 27787, 58, 16, 11, 1090, 62, 28461, 9248, 60, 796, 279, 198, 197, 28461, 27787, 58, 17, 11, 1090, 62, 28461, 9248, 60, 796, 40653, 198, 197, 28461, 27787, 58, 18, 11, 1090, 62, 28461, 9248, 60, 796, 279, 65, 198, 197, 22019, 62, 28461, 9248, 15853, 352, 198, 220, 220, 220, 220, 220, 886, 198, 220, 886, 198, 220, 1441, 1090, 62, 28461, 9248, 198, 437, 198, 37811, 198, 63, 30158, 25256, 62, 45849, 62, 1503, 30631, 62, 10468, 62, 5446, 16868, 8763, 1546, 63, 532, 38240, 18349, 7177, 284, 513, 87, 45, 1351, 22950, 10139, 6376, 30104, 198, 37811, 198, 8818, 4519, 62, 4868, 62, 18747, 62, 1462, 62, 28461, 27787, 7, 1939, 738, 62, 4868, 62, 18747, 8, 198, 220, 44360, 796, 1976, 27498, 7, 5317, 2414, 11, 513, 11, 2546, 7, 1939, 738, 62, 4868, 62, 18747, 11, 362, 8, 1635, 838, 8, 198, 220, 3509, 62, 276, 3212, 796, 2546, 7, 1939, 738, 62, 4868, 62, 18747, 11, 352, 8, 198, 220, 1090, 62, 28461, 9248, 796, 352, 198, 220, 1303, 5543, 12659, 11, 475, 1107, 3049, 198, 220, 1303, 329, 1123, 10139, 379, 474, 198, 220, 329, 279, 287, 352, 25, 7857, 7, 1939, 738, 62, 4868, 62, 18747, 11, 362, 8, 198, 220, 220, 220, 1303, 262, 510, 284, 513, 2173, 326, 423, 13015, 422, 474, 198, 220, 220, 220, 220, 197, 8957, 796, 4519, 62, 4868, 62, 18747, 58, 16, 11, 279, 60, 198, 220, 220, 220, 220, 197, 40842, 796, 4519, 62, 4868, 62, 18747, 58, 17, 11, 279, 60, 198, 220, 220, 220, 220, 197, 14751, 796, 4519, 62, 4868, 62, 18747, 58, 18, 11, 279, 60, 628, 220, 220, 220, 220, 220, 611, 14187, 14512, 657, 198, 197, 2, 262, 510, 284, 860, 2173, 326, 423, 13015, 422, 14187, 11, 279, 65, 11, 40653, 198, 197, 79, 7252, 796, 4519, 62, 4868, 62, 18747, 58, 16, 11, 14187, 11208, 279, 397, 796, 4519, 62, 4868, 62, 18747, 58, 17, 11, 14187, 11208, 23503, 796, 4519, 62, 4868, 62, 18747, 58, 18, 11, 14187, 60, 198, 220, 220, 220, 220, 220, 2073, 198, 197, 79, 7252, 796, 657, 26, 279, 397, 796, 657, 26, 23503, 796, 657, 198, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 611, 279, 65, 14512, 657, 198, 197, 79, 7012, 796, 4519, 62, 4868, 62, 18747, 58, 16, 11, 279, 65, 11208, 279, 11848, 796, 4519, 62, 4868, 62, 18747, 58, 17, 11, 279, 65, 11208, 279, 15630, 796, 4519, 62, 4868, 62, 18747, 58, 18, 11, 279, 65, 60, 198, 220, 220, 220, 220, 220, 2073, 198, 197, 79, 7012, 796, 657, 26, 279, 11848, 796, 657, 26, 279, 15630, 796, 657, 198, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 611, 40653, 14512, 657, 198, 197, 79, 6888, 796, 4519, 62, 4868, 62, 18747, 58, 16, 11, 40653, 11208, 279, 21101, 796, 4519, 62, 4868, 62, 18747, 58, 17, 11, 40653, 11208, 279, 535, 796, 4519, 62, 4868, 62, 18747, 58, 18, 11, 40653, 60, 198, 220, 220, 220, 220, 220, 2073, 198, 197, 79, 6888, 796, 657, 26, 279, 21101, 796, 657, 26, 279, 535, 796, 657, 198, 220, 220, 220, 220, 220, 886, 628, 197, 22019, 62, 28461, 9248, 796, 2198, 62, 392, 62, 13564, 62, 28461, 27787, 0, 7, 28461, 27787, 11, 1090, 62, 28461, 9248, 11, 279, 11, 14187, 11, 279, 65, 11, 40653, 11, 279, 6888, 11, 279, 21101, 11, 279, 535, 8, 198, 197, 22019, 62, 28461, 9248, 796, 2198, 62, 392, 62, 13564, 62, 28461, 27787, 0, 7, 28461, 27787, 11, 1090, 62, 28461, 9248, 11, 279, 11, 14187, 11, 40653, 11, 279, 65, 11, 279, 7012, 11, 279, 11848, 11, 279, 15630, 8, 198, 197, 22019, 62, 28461, 9248, 796, 2198, 62, 392, 62, 13564, 62, 28461, 27787, 0, 7, 28461, 27787, 11, 1090, 62, 28461, 9248, 11, 279, 11, 279, 65, 11, 40653, 11, 14187, 11, 279, 7252, 11, 279, 397, 11, 23503, 8, 198, 220, 886, 198, 220, 1441, 44360, 58, 45299, 352, 37498, 22019, 62, 28461, 9248, 532, 352, 15437, 198, 437, 198, 198, 37811, 198, 63, 30158, 2389, 18310, 62, 10468, 62, 5446, 16868, 8763, 1546, 63, 532, 38240, 10139, 12, 14907, 18349, 17593, 656, 22950, 220, 198, 18747, 357, 28461, 2374, 286, 10139, 36525, 16215, 477, 44360, 287, 262, 19609, 737, 383, 22950, 220, 198, 18747, 481, 307, 973, 618, 11524, 3704, 3083, 1527, 500, 31408, 832, 262, 220, 198, 76, 5069, 86, 5117, 2163, 13, 198, 198, 6214, 47529, 2099, 10314, 329, 6770, 286, 281, 18349, 17593, 13, 198, 198, 15506, 63, 198, 28461, 27787, 796, 18349, 62, 1462, 62, 28461, 27787, 7, 36, 8, 198, 15506, 63, 198, 198, 9, 412, 25, 10139, 12, 14907, 18349, 17593, 198, 9, 44360, 25, 513, 87, 45, 7177, 286, 493, 82, 11, 1123, 5721, 6870, 262, 36525, 286, 1115, 13760, 198, 220, 220, 220, 287, 530, 22950, 13, 198, 37811, 198, 8818, 18349, 62, 1462, 62, 28461, 27787, 7, 36, 8, 198, 197, 1939, 738, 62, 4868, 62, 18747, 796, 18349, 62, 1462, 62, 1939, 738, 62, 4868, 62, 18747, 7, 36, 8, 198, 197, 7783, 4519, 62, 4868, 62, 18747, 62, 1462, 62, 28461, 27787, 7, 1939, 738, 62, 4868, 62, 18747, 8, 198, 437, 198, 198, 2, 28, 48947, 29397, 4177, 11053, 15986, 12419, 3913, 198, 37811, 198, 63, 30158, 2389, 18310, 62, 10468, 62, 35, 18379, 63, 532, 13610, 22155, 286, 10139, 5621, 5884, 284, 6376, 278, 10139, 198, 37811, 198, 8818, 18349, 62, 1462, 62, 11600, 7, 35, 8, 198, 220, 360, 796, 2352, 12195, 35, 8, 198, 220, 10139, 62, 11600, 796, 360, 713, 3419, 628, 220, 329, 1312, 796, 352, 25, 7857, 7, 35, 11, 16, 8, 198, 220, 220, 220, 474, 796, 352, 198, 220, 220, 220, 981, 360, 58, 72, 11, 73, 60, 6624, 657, 198, 220, 220, 220, 220, 220, 474, 15853, 352, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 5145, 7, 73, 287, 8251, 7, 17440, 62, 11600, 4008, 198, 220, 220, 220, 220, 220, 10139, 62, 11600, 58, 73, 60, 796, 5345, 90, 5317, 2414, 92, 3419, 198, 220, 220, 220, 886, 198, 220, 220, 220, 479, 796, 474, 10, 16, 198, 220, 220, 220, 981, 360, 58, 72, 11, 74, 60, 6624, 657, 198, 220, 220, 220, 220, 220, 479, 15853, 352, 198, 220, 220, 220, 886, 198, 220, 220, 220, 4574, 0, 7, 17440, 62, 11600, 58, 73, 4357, 479, 8, 198, 220, 886, 198, 220, 1441, 10139, 62, 11600, 198, 437, 628, 198, 37811, 198, 63, 35, 18379, 62, 10468, 62, 5446, 16868, 8763, 1546, 63, 532, 38240, 10139, 8633, 284, 399, 87, 18, 1351, 22950, 10139, 6376, 30104, 198, 37811, 198, 8818, 8633, 62, 1462, 62, 28461, 27787, 7, 17440, 62, 11600, 8, 198, 220, 44360, 796, 15690, 90, 5317, 2414, 92, 7, 15, 11, 513, 8, 198, 220, 329, 257, 287, 3297, 7, 33327, 7, 13083, 7, 17440, 62, 11600, 22305, 198, 220, 220, 220, 900, 32, 796, 10139, 62, 11600, 58, 64, 60, 198, 220, 220, 220, 329, 275, 287, 3297, 7, 33327, 7, 2617, 32, 4008, 198, 220, 220, 220, 220, 220, 611, 5145, 7, 65, 287, 8251, 7, 17440, 62, 11600, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 900, 33, 796, 10139, 62, 11600, 58, 65, 60, 198, 220, 220, 220, 220, 220, 900, 34, 796, 36177, 7, 2617, 32, 11, 900, 33, 8, 198, 220, 220, 220, 220, 220, 329, 269, 287, 3297, 7, 33327, 7, 2617, 34, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 44360, 796, 410, 9246, 7, 28461, 27787, 11, 685, 64, 275, 269, 12962, 198, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 886, 198, 220, 1441, 44360, 198, 437, 198, 198, 37811, 198, 63, 30158, 2389, 18310, 62, 10468, 62, 5446, 16868, 8763, 1546, 63, 532, 38240, 5743, 12, 17440, 18349, 17593, 656, 22950, 220, 198, 18747, 357, 28461, 2374, 286, 10139, 36525, 16215, 477, 44360, 287, 262, 19609, 737, 383, 22950, 220, 198, 18747, 481, 307, 973, 618, 11524, 3704, 3083, 1527, 500, 31408, 832, 262, 220, 198, 76, 5069, 86, 5117, 2163, 13, 198, 198, 6214, 47529, 2099, 10314, 329, 6770, 286, 281, 18349, 17593, 13, 198, 198, 15506, 63, 198, 28461, 27787, 796, 18349, 62, 1462, 62, 28461, 27787, 7, 35, 8, 198, 15506, 63, 198, 198, 9, 360, 25, 5743, 12, 17440, 18349, 17593, 198, 9, 44360, 25, 399, 87, 18, 7177, 286, 493, 82, 11, 1123, 5752, 6870, 262, 36525, 286, 1115, 13760, 198, 220, 220, 220, 287, 530, 22950, 13, 198, 37811, 198, 8818, 18349, 62, 1462, 62, 28461, 27787, 7, 35, 8, 198, 220, 10139, 62, 11600, 796, 18349, 62, 1462, 62, 11600, 7, 35, 8, 198, 220, 1441, 8633, 62, 1462, 62, 28461, 27787, 7, 17440, 62, 11600, 8, 198, 437, 198, 46249, 198 ]
2.595124
2,092
<filename>test/runtests.jl using AtomBase using Test @testset "Atom.jl" begin atom1 = Atom() atom2 = Atom("H", [1.0, 0.0, 0.0]) io = IOBuffer() show(io, atom2) @test atom2() == ("H", [1.0, 0.0, 0.0]) @test !(atom1 == atom2) @test String(take!(io)) == "H\t[1.0, 0.0, 0.0]" end @testset "Atoms.jl Properties" begin property1 = Properties() property2 = Properties{Float64}("Force", 1.0) property3 = Properties("energy") energy1 = Energy() energy2 = Energy(1.0) energy3 = Energy(2) @test eltype(property1) == eltype(property2) == eltype(energy1) == eltype(energy2) == eltype(energy3) == Float64 @test property2() == 1.0 @test energy3() == 2.0 energy1(4.0) @test energy1() == 4.0 io = IOBuffer() show(io, property2) @test String(take!(io)) == "Force=1.0" show(io, energy3) @test String(take!(io)) == "energy=2.0" end @testset "Atoms.jl Atoms" begin atom = Atom("H", [1.0, 0.0, 0.0]) property = Energy(1.0) atoms0 = Atoms() atoms1 = Atoms([atom, atom], 2, [property, property]) atoms2 = Atoms([atom, atom, atom], [property,]) atoms3 = Atoms([atom,]) atoms4 = Atoms(atom, [property, ]) atoms5 = Atoms(atom) atoms6 = Atoms([atom, atom], 2, property) atoms7 = Atoms([atom, atom], property) atoms8 = Atoms(atom, property) @test atoms2.number == 3 addAtom!(atoms2, atom) @test atoms2.number == 4 addProperty!(atoms3, property) @test atoms3.properties == [property,] @test iterate(atoms2) == (atoms2.atom[1], 2) @test iterate(atoms2, 2) == (atoms2.atom[2], 3) @test length(atoms2) == 4 @test getindex(atoms2, 1) == atom @test firstindex(atoms2) == 1 @test lastindex(atoms2) == 4 @test getindex(atoms2, 1.0) == atom @test getindex(atoms2, [1, 2]) == [atom, atom] io = IOBuffer() show(io, atoms8) @test String(take!(io)) == "1\nenergy=1.0 \nH\t[1.0, 0.0, 0.0]\n" end
[ 27, 34345, 29, 9288, 14, 81, 2797, 3558, 13, 20362, 198, 3500, 33102, 14881, 198, 3500, 6208, 198, 198, 31, 9288, 2617, 366, 2953, 296, 13, 20362, 1, 2221, 198, 220, 220, 220, 22037, 16, 796, 33102, 3419, 198, 220, 220, 220, 22037, 17, 796, 33102, 7203, 39, 1600, 685, 16, 13, 15, 11, 657, 13, 15, 11, 657, 13, 15, 12962, 198, 220, 220, 220, 33245, 796, 314, 9864, 13712, 3419, 198, 220, 220, 220, 905, 7, 952, 11, 22037, 17, 8, 198, 220, 220, 220, 2488, 9288, 22037, 17, 3419, 6624, 5855, 39, 1600, 685, 16, 13, 15, 11, 657, 13, 15, 11, 657, 13, 15, 12962, 198, 220, 220, 220, 2488, 9288, 5145, 7, 37696, 16, 6624, 22037, 17, 8, 198, 220, 220, 220, 2488, 9288, 10903, 7, 20657, 0, 7, 952, 4008, 6624, 366, 39, 59, 83, 58, 16, 13, 15, 11, 657, 13, 15, 11, 657, 13, 15, 30866, 198, 437, 198, 198, 31, 9288, 2617, 366, 2953, 3150, 13, 20362, 24946, 1, 2221, 198, 220, 220, 220, 3119, 16, 796, 24946, 3419, 198, 220, 220, 220, 3119, 17, 796, 24946, 90, 43879, 2414, 92, 7203, 10292, 1600, 352, 13, 15, 8, 198, 220, 220, 220, 3119, 18, 796, 24946, 7203, 22554, 4943, 198, 220, 220, 220, 2568, 16, 796, 6682, 3419, 198, 220, 220, 220, 2568, 17, 796, 6682, 7, 16, 13, 15, 8, 198, 220, 220, 220, 2568, 18, 796, 6682, 7, 17, 8, 198, 220, 220, 220, 2488, 9288, 1288, 4906, 7, 26745, 16, 8, 6624, 1288, 4906, 7, 26745, 17, 8, 6624, 1288, 4906, 7, 22554, 16, 8, 6624, 1288, 4906, 7, 22554, 17, 8, 6624, 1288, 4906, 7, 22554, 18, 8, 6624, 48436, 2414, 198, 220, 220, 220, 2488, 9288, 3119, 17, 3419, 6624, 352, 13, 15, 198, 220, 220, 220, 2488, 9288, 2568, 18, 3419, 6624, 362, 13, 15, 198, 220, 220, 220, 2568, 16, 7, 19, 13, 15, 8, 198, 220, 220, 220, 2488, 9288, 2568, 16, 3419, 6624, 604, 13, 15, 198, 220, 220, 220, 33245, 796, 314, 9864, 13712, 3419, 198, 220, 220, 220, 905, 7, 952, 11, 3119, 17, 8, 198, 220, 220, 220, 2488, 9288, 10903, 7, 20657, 0, 7, 952, 4008, 6624, 366, 10292, 28, 16, 13, 15, 1, 198, 220, 220, 220, 905, 7, 952, 11, 2568, 18, 8, 198, 220, 220, 220, 2488, 9288, 10903, 7, 20657, 0, 7, 952, 4008, 6624, 366, 22554, 28, 17, 13, 15, 1, 198, 437, 198, 198, 31, 9288, 2617, 366, 2953, 3150, 13, 20362, 1629, 3150, 1, 2221, 198, 220, 220, 220, 22037, 796, 33102, 7203, 39, 1600, 685, 16, 13, 15, 11, 657, 13, 15, 11, 657, 13, 15, 12962, 198, 220, 220, 220, 3119, 796, 6682, 7, 16, 13, 15, 8, 198, 220, 220, 220, 23235, 15, 796, 1629, 3150, 3419, 198, 220, 220, 220, 23235, 16, 796, 1629, 3150, 26933, 37696, 11, 22037, 4357, 362, 11, 685, 26745, 11, 3119, 12962, 198, 220, 220, 220, 23235, 17, 796, 1629, 3150, 26933, 37696, 11, 22037, 11, 22037, 4357, 685, 26745, 11, 12962, 198, 220, 220, 220, 23235, 18, 796, 1629, 3150, 26933, 37696, 11, 12962, 198, 220, 220, 220, 23235, 19, 796, 1629, 3150, 7, 37696, 11, 685, 26745, 11, 33761, 198, 220, 220, 220, 23235, 20, 796, 1629, 3150, 7, 37696, 8, 198, 220, 220, 220, 23235, 21, 796, 1629, 3150, 26933, 37696, 11, 22037, 4357, 362, 11, 3119, 8, 198, 220, 220, 220, 23235, 22, 796, 1629, 3150, 26933, 37696, 11, 22037, 4357, 3119, 8, 198, 220, 220, 220, 23235, 23, 796, 1629, 3150, 7, 37696, 11, 3119, 8, 198, 220, 220, 220, 2488, 9288, 23235, 17, 13, 17618, 6624, 513, 198, 220, 220, 220, 751, 2953, 296, 0, 7, 265, 3150, 17, 11, 22037, 8, 198, 220, 220, 220, 2488, 9288, 23235, 17, 13, 17618, 6624, 604, 198, 220, 220, 220, 751, 21746, 0, 7, 265, 3150, 18, 11, 3119, 8, 198, 220, 220, 220, 2488, 9288, 23235, 18, 13, 48310, 6624, 685, 26745, 11, 60, 198, 220, 220, 220, 2488, 9288, 11629, 378, 7, 265, 3150, 17, 8, 6624, 357, 265, 3150, 17, 13, 37696, 58, 16, 4357, 362, 8, 198, 220, 220, 220, 2488, 9288, 11629, 378, 7, 265, 3150, 17, 11, 362, 8, 6624, 357, 265, 3150, 17, 13, 37696, 58, 17, 4357, 513, 8, 198, 220, 220, 220, 2488, 9288, 4129, 7, 265, 3150, 17, 8, 6624, 604, 198, 220, 220, 220, 2488, 9288, 651, 9630, 7, 265, 3150, 17, 11, 352, 8, 6624, 22037, 198, 220, 220, 220, 2488, 9288, 717, 9630, 7, 265, 3150, 17, 8, 6624, 352, 198, 220, 220, 220, 2488, 9288, 938, 9630, 7, 265, 3150, 17, 8, 6624, 604, 198, 220, 220, 220, 2488, 9288, 651, 9630, 7, 265, 3150, 17, 11, 352, 13, 15, 8, 6624, 22037, 220, 198, 220, 220, 220, 2488, 9288, 651, 9630, 7, 265, 3150, 17, 11, 685, 16, 11, 362, 12962, 6624, 685, 37696, 11, 22037, 60, 198, 220, 220, 220, 33245, 796, 314, 9864, 13712, 3419, 198, 220, 220, 220, 905, 7, 952, 11, 23235, 23, 8, 198, 220, 220, 220, 2488, 9288, 10903, 7, 20657, 0, 7, 952, 4008, 6624, 366, 16, 59, 77, 22554, 28, 16, 13, 15, 3467, 77, 39, 59, 83, 58, 16, 13, 15, 11, 657, 13, 15, 11, 657, 13, 15, 60, 59, 77, 1, 198, 437, 198 ]
2.193946
892
using Dash app = dash() app.layout = html_div() do dcc_input(id="input", value = "initial value"), html_div(id = "output") end callback!(app, [Output("output","children")], Input("input","value") ) do value return (value,) end run_server(app)
[ 198, 3500, 16189, 198, 198, 1324, 796, 14470, 3419, 198, 198, 1324, 13, 39786, 796, 27711, 62, 7146, 3419, 466, 198, 220, 220, 220, 288, 535, 62, 15414, 7, 312, 2625, 15414, 1600, 1988, 796, 366, 36733, 1988, 12340, 198, 220, 220, 220, 27711, 62, 7146, 7, 312, 796, 366, 22915, 4943, 198, 437, 198, 47423, 0, 7, 1324, 11, 198, 220, 220, 220, 685, 26410, 7203, 22915, 2430, 17197, 4943, 4357, 198, 220, 220, 220, 23412, 7203, 15414, 2430, 8367, 4943, 198, 220, 220, 220, 1267, 466, 1988, 198, 220, 220, 220, 1441, 357, 8367, 35751, 198, 437, 198, 198, 5143, 62, 15388, 7, 1324, 8, 198 ]
2.509259
108
using NMRPulses using Test id = IdlePulse(1, 1e-3) Ξ© = 2*pi pi_2 = PiHalfPulse(Ξ©, 0, 1e-3) pi_pulse = PiPulse(Ξ©, 0, 1e-3) s = Sequence([pi_2, id, pi_pulse, id, pi_2]) a, b, c = prepare_sequence(s) @testset "NMRPulses.jl" begin # Write your tests here. @test s(0.0)[1] == a[1] @test pi_2(0.0)[1] == a[1] end
[ 3500, 399, 13599, 47, 5753, 274, 198, 3500, 6208, 198, 198, 312, 796, 37130, 47, 9615, 7, 16, 11, 352, 68, 12, 18, 8, 198, 138, 102, 796, 362, 9, 14415, 198, 14415, 62, 17, 796, 13993, 31305, 47, 9615, 7, 138, 102, 11, 657, 11, 352, 68, 12, 18, 8, 198, 14415, 62, 79, 9615, 796, 13993, 47, 9615, 7, 138, 102, 11, 657, 11, 352, 68, 12, 18, 8, 198, 198, 82, 796, 45835, 26933, 14415, 62, 17, 11, 4686, 11, 31028, 62, 79, 9615, 11, 4686, 11, 31028, 62, 17, 12962, 198, 198, 64, 11, 275, 11, 269, 796, 8335, 62, 43167, 7, 82, 8, 628, 198, 31, 9288, 2617, 366, 45, 13599, 47, 5753, 274, 13, 20362, 1, 2221, 198, 220, 220, 220, 1303, 19430, 534, 5254, 994, 13, 198, 220, 220, 220, 2488, 9288, 264, 7, 15, 13, 15, 38381, 16, 60, 6624, 257, 58, 16, 60, 198, 220, 220, 220, 2488, 9288, 31028, 62, 17, 7, 15, 13, 15, 38381, 16, 60, 6624, 257, 58, 16, 60, 628, 220, 220, 220, 220, 198, 437 ]
1.827778
180
# ********************************************************************************* # REopt, Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this list # of conditions and the following disclaimer. # # Redistributions in binary form must reproduce the above copyright notice, this # list of conditions and the following disclaimer in the documentation and/or other # materials provided with the distribution. # # Neither the name of the copyright holder nor the names of its contributors may be # used to endorse or promote products derived from this software without specific # prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED # OF THE POSSIBILITY OF SUCH DAMAGE. # ********************************************************************************* struct MPCInputs <: AbstractInputs s::MPCScenario techs::Techs existing_sizes::DenseAxisArray{Float64, 1} # (techs.all) time_steps::UnitRange time_steps_with_grid::Array{Int, 1} time_steps_without_grid::Array{Int, 1} hours_per_time_step::Float64 months::UnitRange production_factor::DenseAxisArray{Float64, 2} # (techs.all, time_steps) levelization_factor::Dict{String, Float64} # (techs.all) value_of_lost_load_per_kwh::Array{R, 1} where R<:Real #default set to 1 US dollar per kwh pwf_e::Float64 pwf_om::Float64 pwf_fuel::Dict{String, Float64} third_party_factor::Float64 ratchets::UnitRange techs_by_exportbin::DenseAxisArray{Array{String,1}} # indexed on [:NEM, :WHL] export_bins_by_tech::Dict{String, Array{Symbol, 1}} cop::Dict{String, Float64} # (techs.cooling) thermal_cop::Dict{String, Float64} # (techs.absorption_chiller) end function MPCInputs(fp::String) s = MPCScenario(JSON.parsefile(fp)) MPCInputs(s) end function MPCInputs(s::MPCScenario) time_steps = 1:length(s.electric_load.loads_kw) hours_per_time_step = 1 / s.settings.time_steps_per_hour techs, production_factor, existing_sizes = setup_tech_inputs(s) months = 1:length(s.electric_tariff.monthly_demand_rates) techs_by_exportbin = DenseAxisArray([ techs.all, techs.all, techs.all], s.electric_tariff.export_bins) # TODO account for which techs have access to export bins (when we add more techs than PV) levelization_factor = Dict(t => 1.0 for t in techs.all) pwf_e = 1.0 pwf_om = 1.0 pwf_fuel = Dict{String, Float64}() pwf_fuel["Generator"] = 1.0 third_party_factor = 1.0 time_steps_with_grid, time_steps_without_grid, = setup_electric_utility_inputs(s) export_bins_by_tech = Dict{String, Array{Symbol, 1}}() for t in techs.elec export_bins_by_tech[t] = s.electric_tariff.export_bins end # TODO implement export bins by tech (rather than assuming that all techs share the export_bins) #Placeholder COP because the REopt model expects it cop = Dict("ExistingChiller" => s.cooling_load.cop) thermal_cop = Dict{String, Float64}() MPCInputs( s, techs, existing_sizes, time_steps, time_steps_with_grid, time_steps_without_grid, hours_per_time_step, months, production_factor, levelization_factor, # TODO need this? typeof(s.financial.value_of_lost_load_per_kwh) <: Array{<:Real, 1} ? s.financial.value_of_lost_load_per_kwh : fill(s.financial.value_of_lost_load_per_kwh, length(time_steps)), pwf_e, pwf_om, pwf_fuel, third_party_factor, # maxsize_pv_locations, 1:length(s.electric_tariff.tou_demand_ratchet_time_steps), # ratchets techs_by_exportbin, export_bins_by_tech, cop, thermal_cop # s.site.min_resil_time_steps, # s.site.mg_tech_sizes_equal_grid_sizes, # s.site.node ) end function setup_tech_inputs(s::MPCScenario) techs = Techs(s) time_steps = 1:length(s.electric_load.loads_kw) # REoptInputs indexed on techs: existing_sizes = DenseAxisArray{Float64}(undef, techs.all) production_factor = DenseAxisArray{Float64}(undef, techs.all, time_steps) if !isempty(techs.pv) setup_pv_inputs(s, existing_sizes, production_factor) end if "Generator" in techs.all setup_gen_inputs(s, existing_sizes, production_factor) end return techs, production_factor, existing_sizes end function setup_pv_inputs(s::MPCScenario, existing_sizes, production_factor) for pv in s.pvs production_factor[pv.name, :] = pv.prod_factor_series existing_sizes[pv.name] = pv.size_kw end return nothing end function setup_gen_inputs(s::MPCScenario, existing_sizes, production_factor) existing_sizes["Generator"] = s.generator.size_kw production_factor["Generator", :] = ones(length(s.electric_load.loads_kw)) return nothing end
[ 2, 41906, 17174, 8412, 9, 198, 2, 4526, 8738, 11, 15069, 357, 66, 8, 13130, 12, 42334, 11, 10302, 329, 45276, 6682, 11, 11419, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 17613, 11, 198, 2, 389, 10431, 2810, 326, 262, 1708, 3403, 389, 1138, 25, 198, 2, 198, 2, 2297, 396, 2455, 507, 286, 2723, 2438, 1276, 12377, 262, 2029, 6634, 4003, 11, 428, 1351, 198, 2, 286, 3403, 290, 262, 1708, 37592, 13, 198, 2, 198, 2, 2297, 396, 2455, 507, 287, 13934, 1296, 1276, 22919, 262, 2029, 6634, 4003, 11, 428, 198, 2, 1351, 286, 3403, 290, 262, 1708, 37592, 287, 262, 10314, 290, 14, 273, 584, 198, 2, 5696, 2810, 351, 262, 6082, 13, 198, 2, 198, 2, 16126, 262, 1438, 286, 262, 6634, 15762, 4249, 262, 3891, 286, 663, 20420, 743, 307, 198, 2, 973, 284, 11438, 393, 7719, 3186, 10944, 422, 428, 3788, 1231, 2176, 198, 2, 3161, 3194, 7170, 13, 198, 2, 198, 2, 12680, 47466, 3180, 36592, 2389, 1961, 11050, 3336, 27975, 38162, 9947, 367, 15173, 4877, 5357, 27342, 9865, 3843, 20673, 366, 1921, 3180, 1, 5357, 198, 2, 15529, 7788, 32761, 6375, 8959, 49094, 34764, 11015, 11, 47783, 2751, 11, 21728, 5626, 40880, 5390, 11, 3336, 8959, 49094, 198, 2, 34764, 11015, 3963, 34482, 3398, 1565, 5603, 25382, 5357, 376, 46144, 7473, 317, 16652, 2149, 37232, 33079, 48933, 15986, 13954, 48778, 1961, 13, 198, 2, 3268, 8005, 49261, 50163, 3336, 27975, 38162, 9947, 49707, 14418, 6375, 27342, 9865, 3843, 20673, 9348, 43031, 19146, 7473, 15529, 42242, 11, 198, 2, 3268, 17931, 23988, 11, 19387, 25256, 1847, 11, 38846, 11, 7788, 3620, 6489, 13153, 11, 6375, 7102, 5188, 10917, 3525, 12576, 29506, 25552, 357, 1268, 39149, 2751, 11, 198, 2, 21728, 5626, 40880, 5390, 11, 41755, 11335, 10979, 3963, 28932, 2257, 2043, 37780, 21090, 50, 6375, 49254, 26, 406, 18420, 3963, 23210, 11, 198, 2, 42865, 11, 6375, 4810, 19238, 29722, 26, 6375, 43949, 44180, 23255, 49, 8577, 24131, 8, 29630, 36, 5959, 7257, 2937, 1961, 5357, 6177, 15529, 3336, 15513, 3963, 198, 2, 43031, 25382, 11, 7655, 2767, 16879, 3268, 27342, 10659, 11, 19269, 18379, 43031, 25382, 11, 6375, 309, 9863, 357, 1268, 39149, 2751, 399, 7156, 43, 3528, 18310, 198, 2, 6375, 25401, 54, 24352, 8, 5923, 1797, 2751, 3268, 15529, 34882, 16289, 3963, 3336, 23210, 3963, 12680, 47466, 11, 45886, 16876, 5984, 29817, 1961, 198, 2, 3963, 3336, 28069, 11584, 25382, 3963, 13558, 3398, 29506, 11879, 13, 198, 2, 41906, 17174, 8412, 9, 198, 198, 7249, 4904, 34, 20560, 82, 1279, 25, 27741, 20560, 82, 198, 220, 220, 220, 264, 3712, 44, 5662, 3351, 39055, 198, 220, 220, 220, 7261, 82, 3712, 17760, 82, 198, 220, 220, 220, 4683, 62, 82, 4340, 3712, 35, 1072, 31554, 271, 19182, 90, 43879, 2414, 11, 352, 92, 220, 1303, 357, 13670, 82, 13, 439, 8, 198, 220, 220, 220, 640, 62, 20214, 3712, 26453, 17257, 198, 220, 220, 220, 640, 62, 20214, 62, 4480, 62, 25928, 3712, 19182, 90, 5317, 11, 352, 92, 198, 220, 220, 220, 640, 62, 20214, 62, 19419, 62, 25928, 3712, 19182, 90, 5317, 11, 352, 92, 198, 220, 220, 220, 2250, 62, 525, 62, 2435, 62, 9662, 3712, 43879, 2414, 198, 220, 220, 220, 1933, 3712, 26453, 17257, 198, 220, 220, 220, 3227, 62, 31412, 3712, 35, 1072, 31554, 271, 19182, 90, 43879, 2414, 11, 362, 92, 220, 1303, 357, 13670, 82, 13, 439, 11, 640, 62, 20214, 8, 198, 220, 220, 220, 1241, 1634, 62, 31412, 3712, 35, 713, 90, 10100, 11, 48436, 2414, 92, 220, 1303, 357, 13670, 82, 13, 439, 8, 198, 220, 220, 220, 1988, 62, 1659, 62, 33224, 62, 2220, 62, 525, 62, 74, 1929, 3712, 19182, 90, 49, 11, 352, 92, 810, 371, 27, 25, 15633, 1303, 12286, 900, 284, 352, 1294, 8872, 583, 479, 1929, 198, 220, 220, 220, 279, 86, 69, 62, 68, 3712, 43879, 2414, 198, 220, 220, 220, 279, 86, 69, 62, 296, 3712, 43879, 2414, 198, 220, 220, 220, 279, 86, 69, 62, 25802, 3712, 35, 713, 90, 10100, 11, 48436, 2414, 92, 198, 220, 220, 220, 2368, 62, 10608, 62, 31412, 3712, 43879, 2414, 198, 220, 220, 220, 4227, 2395, 912, 3712, 26453, 17257, 198, 220, 220, 220, 7261, 82, 62, 1525, 62, 39344, 8800, 3712, 35, 1072, 31554, 271, 19182, 90, 19182, 90, 10100, 11, 16, 11709, 220, 1303, 41497, 319, 685, 25, 45, 3620, 11, 1058, 54, 6581, 60, 198, 220, 220, 220, 10784, 62, 65, 1040, 62, 1525, 62, 13670, 3712, 35, 713, 90, 10100, 11, 15690, 90, 13940, 23650, 11, 352, 11709, 198, 220, 220, 220, 2243, 3712, 35, 713, 90, 10100, 11, 48436, 2414, 92, 220, 1303, 357, 13670, 82, 13, 24494, 278, 8, 198, 220, 220, 220, 18411, 62, 22163, 3712, 35, 713, 90, 10100, 11, 48436, 2414, 92, 220, 1303, 357, 13670, 82, 13, 46303, 1159, 62, 354, 4665, 8, 198, 437, 628, 198, 8818, 4904, 34, 20560, 82, 7, 46428, 3712, 10100, 8, 198, 220, 220, 220, 264, 796, 4904, 34, 3351, 39055, 7, 40386, 13, 29572, 7753, 7, 46428, 4008, 198, 220, 220, 220, 4904, 34, 20560, 82, 7, 82, 8, 198, 437, 628, 198, 8818, 4904, 34, 20560, 82, 7, 82, 3712, 44, 5662, 3351, 39055, 8, 628, 220, 220, 220, 640, 62, 20214, 796, 352, 25, 13664, 7, 82, 13, 31067, 62, 2220, 13, 46030, 62, 46265, 8, 198, 220, 220, 220, 2250, 62, 525, 62, 2435, 62, 9662, 796, 352, 1220, 264, 13, 33692, 13, 2435, 62, 20214, 62, 525, 62, 9769, 198, 220, 220, 220, 7261, 82, 11, 3227, 62, 31412, 11, 4683, 62, 82, 4340, 796, 9058, 62, 13670, 62, 15414, 82, 7, 82, 8, 198, 220, 220, 220, 1933, 796, 352, 25, 13664, 7, 82, 13, 31067, 62, 18870, 733, 13, 8424, 306, 62, 28550, 62, 9700, 8, 628, 220, 220, 220, 7261, 82, 62, 1525, 62, 39344, 8800, 796, 360, 1072, 31554, 271, 19182, 26933, 7261, 82, 13, 439, 11, 7261, 82, 13, 439, 11, 7261, 82, 13, 439, 4357, 264, 13, 31067, 62, 18870, 733, 13, 39344, 62, 65, 1040, 8, 198, 220, 220, 220, 1303, 16926, 46, 1848, 329, 543, 7261, 82, 423, 1895, 284, 10784, 41701, 357, 12518, 356, 751, 517, 7261, 82, 621, 31392, 8, 628, 220, 220, 220, 1241, 1634, 62, 31412, 796, 360, 713, 7, 83, 5218, 352, 13, 15, 329, 256, 287, 7261, 82, 13, 439, 8, 198, 220, 220, 220, 279, 86, 69, 62, 68, 796, 352, 13, 15, 198, 220, 220, 220, 279, 86, 69, 62, 296, 796, 352, 13, 15, 198, 220, 220, 220, 279, 86, 69, 62, 25802, 796, 360, 713, 90, 10100, 11, 48436, 2414, 92, 3419, 198, 220, 220, 220, 279, 86, 69, 62, 25802, 14692, 8645, 1352, 8973, 796, 352, 13, 15, 220, 198, 220, 220, 220, 2368, 62, 10608, 62, 31412, 796, 352, 13, 15, 628, 220, 220, 220, 640, 62, 20214, 62, 4480, 62, 25928, 11, 640, 62, 20214, 62, 19419, 62, 25928, 11, 796, 9058, 62, 31067, 62, 315, 879, 62, 15414, 82, 7, 82, 8, 628, 220, 220, 220, 10784, 62, 65, 1040, 62, 1525, 62, 13670, 796, 360, 713, 90, 10100, 11, 15690, 90, 13940, 23650, 11, 352, 11709, 3419, 198, 220, 220, 220, 329, 256, 287, 7261, 82, 13, 11129, 66, 198, 220, 220, 220, 220, 220, 220, 220, 10784, 62, 65, 1040, 62, 1525, 62, 13670, 58, 83, 60, 796, 264, 13, 31067, 62, 18870, 733, 13, 39344, 62, 65, 1040, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1303, 16926, 46, 3494, 10784, 41701, 416, 7261, 357, 34330, 621, 13148, 326, 477, 7261, 82, 2648, 262, 10784, 62, 65, 1040, 8, 198, 220, 198, 220, 220, 220, 1303, 27271, 13829, 27975, 780, 262, 4526, 8738, 2746, 13423, 340, 198, 220, 220, 220, 2243, 796, 360, 713, 7203, 3109, 9665, 1925, 4665, 1, 5218, 264, 13, 24494, 278, 62, 2220, 13, 22163, 8, 198, 220, 220, 220, 18411, 62, 22163, 796, 360, 713, 90, 10100, 11, 48436, 2414, 92, 3419, 628, 220, 220, 220, 4904, 34, 20560, 82, 7, 198, 220, 220, 220, 220, 220, 220, 220, 264, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7261, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4683, 62, 82, 4340, 11, 198, 220, 220, 220, 220, 220, 220, 220, 640, 62, 20214, 11, 198, 220, 220, 220, 220, 220, 220, 220, 640, 62, 20214, 62, 4480, 62, 25928, 11, 198, 220, 220, 220, 220, 220, 220, 220, 640, 62, 20214, 62, 19419, 62, 25928, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2250, 62, 525, 62, 2435, 62, 9662, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3227, 62, 31412, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1241, 1634, 62, 31412, 11, 220, 1303, 16926, 46, 761, 428, 30, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 1659, 7, 82, 13, 46921, 13, 8367, 62, 1659, 62, 33224, 62, 2220, 62, 525, 62, 74, 1929, 8, 1279, 25, 15690, 90, 27, 25, 15633, 11, 352, 92, 5633, 264, 13, 46921, 13, 8367, 62, 1659, 62, 33224, 62, 2220, 62, 525, 62, 74, 1929, 1058, 6070, 7, 82, 13, 46921, 13, 8367, 62, 1659, 62, 33224, 62, 2220, 62, 525, 62, 74, 1929, 11, 4129, 7, 2435, 62, 20214, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 279, 86, 69, 62, 68, 11, 198, 220, 220, 220, 220, 220, 220, 220, 279, 86, 69, 62, 296, 11, 198, 220, 220, 220, 220, 220, 220, 220, 279, 86, 69, 62, 25802, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2368, 62, 10608, 62, 31412, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3509, 7857, 62, 79, 85, 62, 17946, 602, 11, 198, 220, 220, 220, 220, 220, 220, 220, 352, 25, 13664, 7, 82, 13, 31067, 62, 18870, 733, 13, 83, 280, 62, 28550, 62, 10366, 20043, 62, 2435, 62, 20214, 828, 220, 1303, 4227, 2395, 912, 198, 220, 220, 220, 220, 220, 220, 220, 7261, 82, 62, 1525, 62, 39344, 8800, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10784, 62, 65, 1040, 62, 1525, 62, 13670, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2243, 11, 198, 220, 220, 220, 220, 220, 220, 220, 18411, 62, 22163, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 264, 13, 15654, 13, 1084, 62, 411, 346, 62, 2435, 62, 20214, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 264, 13, 15654, 13, 11296, 62, 13670, 62, 82, 4340, 62, 40496, 62, 25928, 62, 82, 4340, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 264, 13, 15654, 13, 17440, 198, 220, 220, 220, 1267, 198, 437, 628, 198, 8818, 9058, 62, 13670, 62, 15414, 82, 7, 82, 3712, 44, 5662, 3351, 39055, 8, 628, 220, 220, 220, 7261, 82, 796, 9634, 82, 7, 82, 8, 628, 220, 220, 220, 640, 62, 20214, 796, 352, 25, 13664, 7, 82, 13, 31067, 62, 2220, 13, 46030, 62, 46265, 8, 628, 220, 220, 220, 1303, 4526, 8738, 20560, 82, 41497, 319, 7261, 82, 25, 198, 220, 220, 220, 4683, 62, 82, 4340, 796, 360, 1072, 31554, 271, 19182, 90, 43879, 2414, 92, 7, 917, 891, 11, 7261, 82, 13, 439, 8, 198, 220, 220, 220, 3227, 62, 31412, 796, 360, 1072, 31554, 271, 19182, 90, 43879, 2414, 92, 7, 917, 891, 11, 7261, 82, 13, 439, 11, 640, 62, 20214, 8, 628, 220, 220, 220, 611, 5145, 271, 28920, 7, 13670, 82, 13, 79, 85, 8, 198, 220, 220, 220, 220, 220, 220, 220, 9058, 62, 79, 85, 62, 15414, 82, 7, 82, 11, 4683, 62, 82, 4340, 11, 3227, 62, 31412, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 611, 366, 8645, 1352, 1, 287, 7261, 82, 13, 439, 198, 220, 220, 220, 220, 220, 220, 220, 9058, 62, 5235, 62, 15414, 82, 7, 82, 11, 4683, 62, 82, 4340, 11, 3227, 62, 31412, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 7261, 82, 11, 3227, 62, 31412, 11, 4683, 62, 82, 4340, 198, 437, 628, 198, 8818, 9058, 62, 79, 85, 62, 15414, 82, 7, 82, 3712, 44, 5662, 3351, 39055, 11, 4683, 62, 82, 4340, 11, 3227, 62, 31412, 8, 198, 220, 220, 220, 329, 279, 85, 287, 264, 13, 79, 14259, 198, 220, 220, 220, 220, 220, 220, 220, 3227, 62, 31412, 58, 79, 85, 13, 3672, 11, 1058, 60, 796, 279, 85, 13, 1676, 67, 62, 31412, 62, 25076, 198, 220, 220, 220, 220, 220, 220, 220, 4683, 62, 82, 4340, 58, 79, 85, 13, 3672, 60, 796, 279, 85, 13, 7857, 62, 46265, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2147, 198, 437, 628, 198, 8818, 9058, 62, 5235, 62, 15414, 82, 7, 82, 3712, 44, 5662, 3351, 39055, 11, 4683, 62, 82, 4340, 11, 3227, 62, 31412, 8, 198, 220, 220, 220, 4683, 62, 82, 4340, 14692, 8645, 1352, 8973, 796, 264, 13, 8612, 1352, 13, 7857, 62, 46265, 198, 220, 220, 220, 3227, 62, 31412, 14692, 8645, 1352, 1600, 1058, 60, 796, 3392, 7, 13664, 7, 82, 13, 31067, 62, 2220, 13, 46030, 62, 46265, 4008, 198, 220, 220, 220, 1441, 2147, 198, 437, 198 ]
2.599462
2,232
<filename>docs/make.jl using Documenter deploydocs(repo = "github.com/uva-bi-sdad/CareerOneStop.jl.git", push_preview = true, devbranch = "main")
[ 27, 34345, 29, 31628, 14, 15883, 13, 20362, 198, 3500, 16854, 263, 198, 198, 2934, 1420, 31628, 7, 260, 7501, 796, 366, 12567, 13, 785, 14, 84, 6862, 12, 8482, 12, 21282, 324, 14, 17784, 263, 3198, 19485, 13, 20362, 13, 18300, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 62, 3866, 1177, 796, 2081, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1614, 1671, 3702, 796, 366, 12417, 4943, 198 ]
2.1125
80
<gh_stars>1-10 module MultiInterface export Interface, Policy, @interface, @impl, enable_multiinterface_validation, get_policy, set_policy, with_policy, @unpack, list_impls, get_imp, get_method using MacroTools import Parameters: with_kw, @unpack SE = Union{Symbol,Expr} __policy = nothing __num_imps = Dict() __modules = Dict{Symbol,Module}() # __interface = Dict{Symbol, Signature}() enable_display() = global display = true disable_display() = global display = false display = false gen_argname() = Symbol(replace(string(gensym("arg")), "#"=>"")) mi_types(e::Expr) = length(e.args) == 1 ? e.args[1] : e.args[2] mi_types(::Symbol) = :Any mi_argname(arg::Expr) = length(arg.args) == 1 ? gen_argname() : arg.args[1] mi_argname(arg::Symbol) = arg mi_getname(f::Symbol) = f mi_getname(f::Expr) = f.args[2].value function register_module(str, mod) global __modules push!(__modules, str=>mod) end function get_module(mod, str) global __modules get(__modules, str, mod) end # TODO do we want to allow the same interface name in different modules? function register_interface(source, str, mod, args, retval, wparams) global __interface haskey(__interface, str) && @warn "reregistering interface for $str at $source" was___=get_interface(str) willbe=Signature(mod, args, retval, wparams) push!(__interface, str=>Signature(mod, args, retval, wparams)) end function get_interface(str) get(__interface, str, nothing) end function getvars(t::Type) v = [] getvars(t) = nothing getvars(t::DataType) = append!(v, collect(t.parameters)) getvars(t::UnionAll) = begin push!(v, t.var) getvars(t.body) end unique(v) end function get_and_inc_imp_number(imp_type) global __num_imps if ~(imp_type in keys(__num_imps)) __num_imps[imp_type] = 0 end __num_imps[imp_type] += 1 return __num_imps[imp_type] end function get_policy() global __policy return __policy end function set_policy(new_policy) global __policy old_policy = __policy __policy = new_policy return old_policy end abstract type Interface end abstract type Policy end get_imp(policy::Policy, args...) = nothing OptionalPolicy = Union{Policy, Nothing} function list_impls(imp_type, args_type=nothing) if isnothing(args_type) args_type = Tuple{<:Interface, Vararg{Any}} else args_type = Tuple{<:Interface, args_type.parameters...} end return [get_impl(m.sig) for m in methods(imp_type, args_type)] end function get_impl(t::UnionAll) return get_impl(t.body) end function get_impl(t::DataType) return t.parameters[2] end function strip_module(s) l = findlast('.', s) l === nothing || return s[(l+1):end] s end function firstcaps_to_lowerunder(s) s = strip_module(s) return lowercase(strip(replace(s,r"[A-Z]"=>s"_\0"),['_'])) end function lowerunder_to_firstcaps(s) s = strip_module(s) return replace(titlecase(s),"_"=>"") end nothing2any(::Nothing) = :Any nothing2any(x::Union{Symbol,Expr}) = x """ macro interface(interface_exp) Called ``` @interface a(x::I)::O where {I,O} ``` Generates the following code: ``` abstract type A <: Interface end function (a(x::I; )::O) where {I,O} policy = get_policy() return a(policy, x::I) end function (a(policy::Policy, x::I; )::O) where {I,O} imp = get_imp(policy, A, x::I) return a(imp, x::I) end ``` """ macro interface(interface_exp) return esc(interface_macro(__module__, __source__, interface_exp)) end function interface_macro(mod, source, interface_exp) f, args, R, W = interface_capture(interface_exp) args = add_missing_argnames(args) if display println("name: ", f, ": ", typeof(f)) println("args: ", args, ": ", typeof(args)) println("returntype: ", R, ": ", typeof(R)) println("where: ", W, ": ", typeof(W)) end W = isnothing(W) ? () : W interface_type_name = Symbol(lowerunder_to_firstcaps(String(f))) body = quote policy = get_policy() return $f(policy, $(get_arg_vars(args)...)) end use_policy_body = quote imp = get_imp(policy, $interface_type_name, $(get_arg_vars(args)...)) return $f(imp, $(get_arg_vars(args)...)) end bare_func_sig_dict = Dict(:name => f, :args => args, :kwargs => Any[], :body => body, :rtype => R, :whereparams => W, ) default_func_sig_dict = Dict(:name => f, :args => [:(policy::Policy); args], :kwargs => Any[], :body => use_policy_body, :rtype => R, :whereparams => W, ) register_module(interface_type_name, mod) # WIP # register_interface(source, interface_type_name, mod, get_arg_types(args), nothing2any(R), W) result = quote abstract type $interface_type_name <: Interface end $(combinedef(bare_func_sig_dict)) $(combinedef(default_func_sig_dict)) end if display println(prettify(result)) end return result end function get_arg_vars(args) tovar(s::Symbol) = s tovar(expr::Expr) = tovar(Val(expr.head), expr) tovar(::Val{:(::)}, expr) = expr.args[1] map(tovar, args) end function add_missing_argnames(args) map(args) do arg m = match(r"^::\s*(.*)", string(arg)) if m !== nothing arg = copy(arg) insert!(arg.args, 1, gen_argname()) end return arg end end function get_arg_type_sigs(args) map(args) do arg m = match(r".*?::\s*(.*)", string(arg)) s = m === nothing ? :Type : Meta.parse(string("Type{<:", m.captures[1],"}")) return Expr(:(::), s) end end function get_arg_types(args)::Vector{Union{Symbol, Expr}} map(args) do arg m = match(r".*?::\s*(.*)", string(arg)) return m === nothing ? :Any : Meta.parse(m.captures[1]) end end function mi_join_args(func_sig_dicts) zippedargs = zip([[mi_types(a) for a in fsd[:args]] for fsd in func_sig_dicts]...) argnames = [mi_argname(a) for a in first(func_sig_dicts)[:args]] function mi_merge_into!(s::Expr, t) t in s.args && return s push!(s.args, t) return s end do_union(s,t) = :(Union{$s,$t}) mi_merge(::Val, s::Expr, t::Symbol) = do_union(s,t) mi_merge(::Val, s::Expr, ::Val, t::Expr) = do_union(s,t) function mi_merge(::Val{:Union}, s::Expr, ::Val{:Union}, t::Expr) v = deepcopy(s) append!(v.args, t.args) unique!(v.args) return v end mi_merge(::Val{:Union}, s::Expr, t::Symbol) = mi_merge_into!(deepcopy(s), t) mi_merge(::Val{:Union}, s::Expr, ::Val, t::Expr) = mi_merge_into!(deepcopy(s), t) mi_merge(::Val, s::Expr, ::Val{:Union}, t::Expr) = mi_merge(t, s) mi_merge(s::Symbol, t::Symbol) = s === t ? s : do_union(s,t) mi_merge(s::Expr, t::Symbol) = mi_merge(Val(s.args[1]), s, t) mi_merge(s::Symbol, t::Expr) = mi_merge(t,s) mi_merge(s::Expr, t::Expr) = mi_merge(Val(s.args[1]), s, Val(t.args[1]), t) args = [reduce(mi_merge, arg) for arg in zippedargs] exprs = map(argnames, args) do n,arg :($(n)::$(arg)) end collect(exprs) end parameter_names(e::Symbol) = e parameter_names(e::Expr) = length(e.args) == 1 ? gen_argname() : e.args[1] """ macro impl(expr) Called ``` @impl begin struct MyA precision::Int64 end function a(x::Int) c = 1 return x + c + precision end end ``` The `MyA` can be considered an identifier for this particular method, as opposed to different implementations of this function. This macro generates the following code: ``` begin Base.@__doc__ struct MyA <: A precision::Int64 MyA(; precision = error("Field '" * "precision" * "' has no default, supply it with keyword.")) = MyA(precision) MyA(precision) = new(precision) end () () MyA(pp::MyA; kws...) = (Parameters).reconstruct(pp, kws) MyA(pp::MyA, di::(Parameters).AbstractDict) = (Parameters).reconstruct(pp, di) MyA(pp::MyA, di::Vararg{Tuple{Symbol, Any}}) = (Parameters).reconstruct(pp, di) nothing macro unpack_MyA(ex) esc((Parameters)._unpack(ex, Any[:precision])) end macro pack_MyA() esc((Parameters)._pack_new(MyA, Any[:precision])) end MyA function a(impl::MyA, x::Int; ) @unpack (precision,) = impl c = 1 return x + c + precision end function a(policy::Nothing, x::Int; ) return a(MyA(), x::Int) end @generated function get_method(imp::Type{MyA}) m = ([m for m = methods(a, Tuple{MyA, Vararg})])[1] return m end (s::MyA)(args...) = a(s, args...) end ``` """ macro impl(expr) return esc(implement_macro(__module__, __source__, expr)) end function implement_macro(mod, source, implement_expr) stripped = MacroTools.prewalk(rmlines, implement_expr) T, fields, fname, func_sig_dicts = struct_capture(stripped) interface_name = Symbol(lowerunder_to_firstcaps(string(fname))) impl_type_name = isnothing(T) ? Symbol(string(interface_name, get_and_inc_imp_number(interface_name))) : T first_func_sig_dict = first(func_sig_dicts) specific_imp_func_decs = Dict[] for func_sig_dict in func_sig_dicts specific_imp_func_dec = deepcopy(func_sig_dict) specific_imp_func_dec[:args] = [:(impl::$impl_type_name); specific_imp_func_dec[:args]] if length(fields) > 0 fieldnames = [namify(f) for f in fields] # Have to do some wonky thing here to get this to parse right unpack_expr = :(@unpack $(fieldnames[1:(end-1)]...), $(fieldnames[end]) = impl) else unpack_expr = :(begin end) end specific_imp_func_dec[:body] = quote try $unpack_expr $(specific_imp_func_dec[:body]) catch src = $(string(source)) @error "error at $(src)" rethrow() end end push!(specific_imp_func_decs, specific_imp_func_dec) end joined_args = mi_join_args(func_sig_dicts) joined_params = [parameter_names(e) for e in joined_args] default_imp_func_dec = deepcopy(first_func_sig_dict) default_imp_func_dec[:args] = [:(impl::Nothing); joined_args] default_imp_func_dec[:whereparams] = unique(reduce((x,fsd)->append!(x,get(fsd,:whereparams,[])), func_sig_dicts;init=[])) default_imp_func_dec[:body] = quote try return $(default_imp_func_dec[:name])($impl_type_name(), $(joined_params...)) catch src = $(string(source)) @error "error at $(src)" rethrow() end end # TODO should do a typejoin on all retvals default_imp_func_dec[:rtype] = :Any if ~(:rtype in keys(first_func_sig_dict)) first_func_sig_dict[:rtype] = :Any end interface_module = get_module(mod, interface_name) if length(fields) >= 1 struct_exp = with_kw(:(struct $impl_type_name <: $(interface_module).$(interface_name) $(fields...) end), @__MODULE__, false) else struct_exp = quote struct $impl_type_name <: $(interface_module).$(interface_name) $(fields...) end end end wparams = reduce(append!, [get(fsd, :whereparams, []) for fsd in func_sig_dicts]; init=[]) wparams = unique(wparams) argtypes = [[get(fsd,:rtype,:Any);get_arg_types(fsd[:args])] for fsd in func_sig_dicts] source_str = string(source) result = quote $struct_exp $([combinedef(sifd) for sifd in specific_imp_func_decs]...) $(combinedef(default_imp_func_dec)) @generated function get_method(imp::Type{$impl_type_name}) m = [m for m in methods($(first_func_sig_dict[:name]), Tuple{$impl_type_name, Vararg{Any}})][1] return m end (s::$impl_type_name)(args...) = $(first_func_sig_dict[:name])(s, args...) end if display println(prettify(result)) end return result end function interface_capture(interface_exp) @capture(interface_exp, (f_(args__)::R_ where W__) | (f_(args__) where W__) | (f_(args__)::R_) | (f_(args__))) return f, args, R, W end function struct_capture(expr) if expr.args[1].head === :struct @capture(expr.args[1], (struct T_ fields__ end) | (mutable struct T_ fields__ end)) fs = [splitdef(a) for a in expr.args[2:end]] else T = nothing fields = [] fs = [splitdef(a) for a in expr.args] end fname = first(fs)[:name] T,fields,fname,fs end ### ### USING POLICIES ### function with_policy(f, new_policy) last_policy = set_policy(new_policy) result = nothing try result = f() catch err rethrow() finally _ = set_policy(last_policy) end return result end end # module
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 21412, 15237, 39317, 198, 198, 39344, 26491, 11, 198, 220, 220, 220, 220, 220, 220, 7820, 11, 198, 220, 220, 220, 220, 220, 220, 2488, 39994, 11, 198, 220, 220, 220, 220, 220, 220, 2488, 23928, 11, 198, 220, 220, 220, 220, 220, 220, 7139, 62, 41684, 39994, 62, 12102, 341, 11, 198, 220, 220, 220, 220, 220, 220, 651, 62, 30586, 11, 198, 220, 220, 220, 220, 220, 220, 900, 62, 30586, 11, 198, 220, 220, 220, 220, 220, 220, 351, 62, 30586, 11, 198, 220, 220, 220, 220, 220, 220, 2488, 403, 8002, 11, 198, 220, 220, 220, 220, 220, 220, 1351, 62, 23928, 82, 11, 198, 220, 220, 220, 220, 220, 220, 651, 62, 11011, 11, 198, 220, 220, 220, 220, 220, 220, 651, 62, 24396, 198, 198, 3500, 42755, 33637, 198, 11748, 40117, 25, 351, 62, 46265, 11, 2488, 403, 8002, 198, 198, 5188, 796, 4479, 90, 13940, 23650, 11, 3109, 1050, 92, 198, 198, 834, 30586, 796, 2147, 198, 834, 22510, 62, 320, 862, 796, 360, 713, 3419, 198, 834, 18170, 796, 360, 713, 90, 13940, 23650, 11, 26796, 92, 3419, 198, 2, 11593, 39994, 796, 360, 713, 90, 13940, 23650, 11, 34894, 92, 3419, 198, 198, 21633, 62, 13812, 3419, 796, 3298, 3359, 796, 2081, 198, 40223, 62, 13812, 3419, 796, 3298, 3359, 796, 3991, 198, 13812, 796, 3991, 198, 198, 5235, 62, 853, 3672, 3419, 796, 38357, 7, 33491, 7, 8841, 7, 70, 641, 4948, 7203, 853, 4943, 828, 25113, 1, 14804, 15931, 4008, 198, 198, 11632, 62, 19199, 7, 68, 3712, 3109, 1050, 8, 796, 4129, 7, 68, 13, 22046, 8, 6624, 352, 5633, 304, 13, 22046, 58, 16, 60, 1058, 304, 13, 22046, 58, 17, 60, 198, 11632, 62, 19199, 7, 3712, 13940, 23650, 8, 796, 1058, 7149, 198, 198, 11632, 62, 853, 3672, 7, 853, 3712, 3109, 1050, 8, 796, 4129, 7, 853, 13, 22046, 8, 6624, 352, 5633, 2429, 62, 853, 3672, 3419, 1058, 1822, 13, 22046, 58, 16, 60, 198, 11632, 62, 853, 3672, 7, 853, 3712, 13940, 23650, 8, 796, 1822, 198, 198, 11632, 62, 1136, 3672, 7, 69, 3712, 13940, 23650, 8, 796, 277, 198, 11632, 62, 1136, 3672, 7, 69, 3712, 3109, 1050, 8, 796, 277, 13, 22046, 58, 17, 4083, 8367, 198, 198, 8818, 7881, 62, 21412, 7, 2536, 11, 953, 8, 220, 198, 220, 220, 220, 3298, 11593, 18170, 198, 220, 220, 220, 4574, 0, 7, 834, 18170, 11, 965, 14804, 4666, 8, 198, 437, 198, 198, 8818, 651, 62, 21412, 7, 4666, 11, 965, 8, 198, 220, 220, 220, 3298, 11593, 18170, 198, 220, 220, 220, 651, 7, 834, 18170, 11, 965, 11, 953, 8, 198, 437, 198, 198, 2, 16926, 46, 466, 356, 765, 284, 1249, 262, 976, 7071, 1438, 287, 1180, 13103, 30, 198, 8818, 7881, 62, 39994, 7, 10459, 11, 965, 11, 953, 11, 26498, 11, 1005, 2100, 11, 266, 37266, 8, 198, 220, 220, 220, 3298, 11593, 39994, 198, 220, 220, 220, 468, 2539, 7, 834, 39994, 11, 965, 8, 11405, 2488, 40539, 366, 260, 30238, 278, 7071, 329, 720, 2536, 379, 720, 10459, 1, 373, 17569, 28, 1136, 62, 39994, 7, 2536, 8, 481, 1350, 28, 11712, 1300, 7, 4666, 11, 26498, 11, 1005, 2100, 11, 266, 37266, 8, 198, 220, 220, 220, 4574, 0, 7, 834, 39994, 11, 965, 14804, 11712, 1300, 7, 4666, 11, 26498, 11, 1005, 2100, 11, 266, 37266, 4008, 198, 437, 198, 198, 8818, 651, 62, 39994, 7, 2536, 8, 198, 220, 220, 220, 651, 7, 834, 39994, 11, 965, 11, 2147, 8, 198, 437, 198, 198, 8818, 651, 85, 945, 7, 83, 3712, 6030, 8, 198, 220, 220, 220, 410, 796, 17635, 628, 220, 220, 220, 651, 85, 945, 7, 83, 8, 796, 2147, 198, 220, 220, 220, 651, 85, 945, 7, 83, 3712, 6601, 6030, 8, 796, 24443, 0, 7, 85, 11, 2824, 7, 83, 13, 17143, 7307, 4008, 198, 220, 220, 220, 651, 85, 945, 7, 83, 3712, 38176, 3237, 8, 796, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 85, 11, 256, 13, 7785, 8, 198, 220, 220, 220, 220, 220, 220, 220, 651, 85, 945, 7, 83, 13, 2618, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 220, 198, 220, 220, 220, 3748, 7, 85, 8, 198, 437, 198, 198, 8818, 651, 62, 392, 62, 1939, 62, 11011, 62, 17618, 7, 11011, 62, 4906, 8, 198, 220, 220, 220, 3298, 11593, 22510, 62, 320, 862, 198, 220, 220, 220, 611, 5299, 7, 11011, 62, 4906, 287, 8251, 7, 834, 22510, 62, 320, 862, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 11593, 22510, 62, 320, 862, 58, 11011, 62, 4906, 60, 796, 657, 198, 220, 220, 220, 886, 628, 220, 220, 220, 11593, 22510, 62, 320, 862, 58, 11011, 62, 4906, 60, 15853, 352, 198, 220, 220, 220, 1441, 11593, 22510, 62, 320, 862, 58, 11011, 62, 4906, 60, 198, 437, 198, 198, 8818, 651, 62, 30586, 3419, 198, 220, 220, 220, 3298, 11593, 30586, 198, 220, 220, 220, 1441, 11593, 30586, 198, 437, 198, 198, 8818, 900, 62, 30586, 7, 3605, 62, 30586, 8, 198, 220, 220, 220, 3298, 11593, 30586, 198, 220, 220, 220, 1468, 62, 30586, 796, 11593, 30586, 198, 220, 220, 220, 11593, 30586, 796, 649, 62, 30586, 198, 220, 220, 220, 1441, 1468, 62, 30586, 198, 437, 198, 198, 397, 8709, 2099, 26491, 886, 198, 198, 397, 8709, 2099, 7820, 886, 198, 1136, 62, 11011, 7, 30586, 3712, 36727, 11, 26498, 23029, 796, 2147, 198, 198, 30719, 36727, 796, 4479, 90, 36727, 11, 10528, 92, 198, 198, 8818, 1351, 62, 23928, 82, 7, 11011, 62, 4906, 11, 26498, 62, 4906, 28, 22366, 8, 198, 220, 220, 220, 611, 318, 22366, 7, 22046, 62, 4906, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 62, 4906, 796, 309, 29291, 90, 27, 25, 39317, 11, 12372, 853, 90, 7149, 11709, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 62, 4906, 796, 309, 29291, 90, 27, 25, 39317, 11, 26498, 62, 4906, 13, 17143, 7307, 986, 92, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 685, 1136, 62, 23928, 7, 76, 13, 82, 328, 8, 329, 285, 287, 5050, 7, 11011, 62, 4906, 11, 26498, 62, 4906, 15437, 198, 437, 198, 8818, 651, 62, 23928, 7, 83, 3712, 38176, 3237, 8, 198, 220, 220, 220, 1441, 651, 62, 23928, 7, 83, 13, 2618, 8, 198, 437, 198, 8818, 651, 62, 23928, 7, 83, 3712, 6601, 6030, 8, 198, 220, 220, 220, 1441, 256, 13, 17143, 7307, 58, 17, 60, 198, 437, 198, 198, 8818, 10283, 62, 21412, 7, 82, 8, 198, 220, 220, 220, 300, 796, 1064, 12957, 10786, 2637, 11, 264, 8, 198, 220, 220, 220, 300, 24844, 2147, 8614, 1441, 264, 58, 7, 75, 10, 16, 2599, 437, 60, 198, 220, 220, 220, 264, 198, 437, 198, 198, 8818, 717, 27979, 62, 1462, 62, 21037, 4625, 7, 82, 8, 198, 220, 220, 220, 264, 796, 10283, 62, 21412, 7, 82, 8, 198, 220, 220, 220, 1441, 2793, 7442, 7, 36311, 7, 33491, 7, 82, 11, 81, 17912, 32, 12, 57, 30866, 14804, 82, 1, 62, 59, 15, 12340, 17816, 62, 20520, 4008, 198, 437, 198, 198, 8818, 2793, 4625, 62, 1462, 62, 11085, 27979, 7, 82, 8, 198, 220, 220, 220, 264, 796, 10283, 62, 21412, 7, 82, 8, 198, 220, 220, 220, 1441, 6330, 7, 7839, 7442, 7, 82, 27267, 62, 1, 14804, 1, 4943, 198, 437, 198, 198, 22366, 17, 1092, 7, 3712, 18465, 8, 796, 1058, 7149, 198, 22366, 17, 1092, 7, 87, 3712, 38176, 90, 13940, 23650, 11, 3109, 1050, 30072, 796, 2124, 198, 198, 37811, 198, 220, 220, 220, 15021, 7071, 7, 39994, 62, 11201, 8, 198, 198, 34, 4262, 198, 15506, 63, 198, 31, 39994, 257, 7, 87, 3712, 40, 2599, 25, 46, 810, 1391, 40, 11, 46, 92, 198, 15506, 63, 198, 198, 8645, 689, 262, 1708, 2438, 25, 198, 15506, 63, 198, 397, 8709, 2099, 317, 1279, 25, 26491, 886, 198, 198, 8818, 357, 64, 7, 87, 3712, 40, 26, 1267, 3712, 46, 8, 810, 1391, 40, 11, 46, 92, 198, 220, 220, 220, 2450, 796, 651, 62, 30586, 3419, 198, 220, 220, 220, 1441, 257, 7, 30586, 11, 2124, 3712, 40, 8, 198, 437, 198, 198, 8818, 357, 64, 7, 30586, 3712, 36727, 11, 2124, 3712, 40, 26, 1267, 3712, 46, 8, 810, 1391, 40, 11, 46, 92, 198, 220, 220, 220, 848, 796, 651, 62, 11011, 7, 30586, 11, 317, 11, 2124, 3712, 40, 8, 198, 220, 220, 220, 1441, 257, 7, 11011, 11, 2124, 3712, 40, 8, 198, 437, 198, 15506, 63, 198, 37811, 198, 20285, 305, 7071, 7, 39994, 62, 11201, 8, 198, 220, 220, 220, 1441, 3671, 7, 39994, 62, 20285, 305, 7, 834, 21412, 834, 11, 11593, 10459, 834, 11, 7071, 62, 11201, 4008, 198, 437, 198, 198, 8818, 7071, 62, 20285, 305, 7, 4666, 11, 2723, 11, 7071, 62, 11201, 8, 198, 220, 220, 220, 277, 11, 26498, 11, 371, 11, 370, 796, 7071, 62, 27144, 495, 7, 39994, 62, 11201, 8, 198, 220, 220, 220, 26498, 796, 751, 62, 45688, 62, 853, 14933, 7, 22046, 8, 198, 220, 220, 220, 611, 3359, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 3672, 25, 33172, 277, 11, 366, 25, 33172, 2099, 1659, 7, 69, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 22046, 25, 33172, 26498, 11, 366, 25, 33172, 2099, 1659, 7, 22046, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 1186, 333, 429, 2981, 25, 33172, 371, 11, 366, 25, 33172, 2099, 1659, 7, 49, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 3003, 25, 33172, 370, 11, 366, 25, 33172, 2099, 1659, 7, 54, 4008, 198, 220, 220, 220, 886, 628, 220, 220, 220, 370, 796, 318, 22366, 7, 54, 8, 5633, 7499, 1058, 370, 628, 220, 220, 220, 7071, 62, 4906, 62, 3672, 796, 38357, 7, 21037, 4625, 62, 1462, 62, 11085, 27979, 7, 10100, 7, 69, 22305, 628, 220, 220, 220, 1767, 796, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 2450, 796, 651, 62, 30586, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 720, 69, 7, 30586, 11, 29568, 1136, 62, 853, 62, 85, 945, 7, 22046, 26513, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 220, 198, 220, 220, 220, 779, 62, 30586, 62, 2618, 796, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 848, 796, 651, 62, 11011, 7, 30586, 11, 720, 39994, 62, 4906, 62, 3672, 11, 29568, 1136, 62, 853, 62, 85, 945, 7, 22046, 26513, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 720, 69, 7, 11011, 11, 29568, 1136, 62, 853, 62, 85, 945, 7, 22046, 26513, 4008, 198, 220, 220, 220, 886, 628, 220, 220, 220, 6247, 62, 20786, 62, 82, 328, 62, 11600, 796, 360, 713, 7, 25, 3672, 5218, 277, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 22046, 5218, 26498, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 46265, 22046, 5218, 4377, 58, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 2618, 5218, 1767, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 5218, 371, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 3003, 37266, 5218, 370, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 4277, 62, 20786, 62, 82, 328, 62, 11600, 796, 360, 713, 7, 25, 3672, 5218, 277, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 22046, 5218, 685, 37498, 30586, 3712, 36727, 1776, 26498, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 46265, 22046, 5218, 4377, 58, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 2618, 5218, 779, 62, 30586, 62, 2618, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 5218, 371, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 3003, 37266, 5218, 370, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 7881, 62, 21412, 7, 39994, 62, 4906, 62, 3672, 11, 953, 8, 198, 220, 220, 220, 1303, 370, 4061, 198, 220, 220, 220, 1303, 7881, 62, 39994, 7, 10459, 11, 7071, 62, 4906, 62, 3672, 11, 953, 11, 651, 62, 853, 62, 19199, 7, 22046, 828, 2147, 17, 1092, 7, 49, 828, 370, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1255, 796, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 12531, 2099, 720, 39994, 62, 4906, 62, 3672, 1279, 25, 26491, 886, 198, 220, 220, 220, 220, 220, 220, 220, 29568, 24011, 1389, 891, 7, 49382, 62, 20786, 62, 82, 328, 62, 11600, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 29568, 24011, 1389, 891, 7, 12286, 62, 20786, 62, 82, 328, 62, 11600, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 3359, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7, 3866, 926, 1958, 7, 20274, 4008, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 1255, 198, 437, 198, 198, 8818, 651, 62, 853, 62, 85, 945, 7, 22046, 8, 198, 220, 220, 220, 284, 7785, 7, 82, 3712, 13940, 23650, 8, 796, 264, 198, 220, 220, 220, 284, 7785, 7, 31937, 3712, 3109, 1050, 8, 796, 284, 7785, 7, 7762, 7, 31937, 13, 2256, 828, 44052, 8, 198, 220, 220, 220, 284, 7785, 7, 3712, 7762, 90, 37498, 3712, 8, 5512, 44052, 8, 796, 44052, 13, 22046, 58, 16, 60, 198, 220, 220, 220, 220, 198, 220, 220, 220, 3975, 7, 83, 709, 283, 11, 26498, 8, 198, 437, 198, 198, 8818, 751, 62, 45688, 62, 853, 14933, 7, 22046, 8, 198, 220, 220, 220, 3975, 7, 22046, 8, 466, 1822, 198, 220, 220, 220, 220, 220, 220, 220, 285, 796, 2872, 7, 81, 1, 61, 3712, 59, 82, 9, 7, 15885, 42501, 4731, 7, 853, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 611, 285, 5145, 855, 2147, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1822, 796, 4866, 7, 853, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7550, 0, 7, 853, 13, 22046, 11, 352, 11, 2429, 62, 853, 3672, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1822, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 651, 62, 853, 62, 4906, 62, 82, 9235, 7, 22046, 8, 198, 220, 220, 220, 3975, 7, 22046, 8, 466, 1822, 198, 220, 220, 220, 220, 220, 220, 220, 285, 796, 2872, 7, 81, 1911, 9, 30, 3712, 59, 82, 9, 7, 15885, 42501, 4731, 7, 853, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 264, 796, 285, 24844, 2147, 5633, 1058, 6030, 1058, 30277, 13, 29572, 7, 8841, 7203, 6030, 90, 27, 25, 1600, 285, 13, 27144, 942, 58, 16, 17241, 36786, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1475, 1050, 7, 37498, 3712, 828, 264, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 651, 62, 853, 62, 19199, 7, 22046, 2599, 25, 38469, 90, 38176, 90, 13940, 23650, 11, 1475, 1050, 11709, 198, 220, 220, 220, 3975, 7, 22046, 8, 466, 1822, 198, 220, 220, 220, 220, 220, 220, 220, 285, 796, 2872, 7, 81, 1911, 9, 30, 3712, 59, 82, 9, 7, 15885, 42501, 4731, 7, 853, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 285, 24844, 2147, 5633, 1058, 7149, 1058, 30277, 13, 29572, 7, 76, 13, 27144, 942, 58, 16, 12962, 198, 220, 220, 220, 886, 198, 437, 628, 198, 8818, 21504, 62, 22179, 62, 22046, 7, 20786, 62, 82, 328, 62, 11600, 82, 8, 198, 220, 220, 220, 1976, 3949, 22046, 796, 19974, 26933, 58, 11632, 62, 19199, 7, 64, 8, 329, 257, 287, 277, 21282, 58, 25, 22046, 11907, 329, 277, 21282, 287, 25439, 62, 82, 328, 62, 11600, 82, 60, 23029, 198, 220, 220, 220, 1822, 14933, 796, 685, 11632, 62, 853, 3672, 7, 64, 8, 329, 257, 287, 717, 7, 20786, 62, 82, 328, 62, 11600, 82, 38381, 25, 22046, 11907, 628, 220, 220, 220, 2163, 21504, 62, 647, 469, 62, 20424, 0, 7, 82, 3712, 3109, 1050, 11, 256, 8, 198, 220, 220, 220, 220, 220, 220, 220, 256, 287, 264, 13, 22046, 11405, 1441, 264, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 82, 13, 22046, 11, 256, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 264, 198, 220, 220, 220, 886, 628, 220, 220, 220, 466, 62, 24592, 7, 82, 11, 83, 8, 796, 36147, 38176, 90, 3, 82, 11, 3, 83, 30072, 198, 220, 220, 220, 21504, 62, 647, 469, 7, 3712, 7762, 11, 264, 3712, 3109, 1050, 11, 256, 3712, 13940, 23650, 8, 796, 466, 62, 24592, 7, 82, 11, 83, 8, 198, 220, 220, 220, 21504, 62, 647, 469, 7, 3712, 7762, 11, 264, 3712, 3109, 1050, 11, 7904, 7762, 11, 256, 3712, 3109, 1050, 8, 796, 466, 62, 24592, 7, 82, 11, 83, 8, 628, 220, 220, 220, 2163, 21504, 62, 647, 469, 7, 3712, 7762, 90, 25, 38176, 5512, 264, 3712, 3109, 1050, 11, 7904, 7762, 90, 25, 38176, 5512, 256, 3712, 3109, 1050, 8, 198, 220, 220, 220, 220, 220, 220, 220, 410, 796, 2769, 30073, 7, 82, 8, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 0, 7, 85, 13, 22046, 11, 256, 13, 22046, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3748, 0, 7, 85, 13, 22046, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 410, 220, 198, 220, 220, 220, 886, 198, 220, 220, 220, 220, 198, 220, 220, 220, 21504, 62, 647, 469, 7, 3712, 7762, 90, 25, 38176, 5512, 264, 3712, 3109, 1050, 11, 256, 3712, 13940, 23650, 8, 796, 21504, 62, 647, 469, 62, 20424, 0, 7, 22089, 30073, 7, 82, 828, 256, 8, 198, 220, 220, 220, 21504, 62, 647, 469, 7, 3712, 7762, 90, 25, 38176, 5512, 264, 3712, 3109, 1050, 11, 7904, 7762, 11, 256, 3712, 3109, 1050, 8, 796, 21504, 62, 647, 469, 62, 20424, 0, 7, 22089, 30073, 7, 82, 828, 256, 8, 198, 220, 220, 220, 21504, 62, 647, 469, 7, 3712, 7762, 11, 264, 3712, 3109, 1050, 11, 7904, 7762, 90, 25, 38176, 5512, 256, 3712, 3109, 1050, 8, 796, 21504, 62, 647, 469, 7, 83, 11, 264, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 21504, 62, 647, 469, 7, 82, 3712, 13940, 23650, 11, 256, 3712, 13940, 23650, 8, 796, 264, 24844, 256, 5633, 264, 1058, 466, 62, 24592, 7, 82, 11, 83, 8, 198, 220, 220, 220, 21504, 62, 647, 469, 7, 82, 3712, 3109, 1050, 11, 256, 3712, 13940, 23650, 8, 796, 21504, 62, 647, 469, 7, 7762, 7, 82, 13, 22046, 58, 16, 46570, 264, 11, 256, 8, 198, 220, 220, 220, 21504, 62, 647, 469, 7, 82, 3712, 13940, 23650, 11, 256, 3712, 3109, 1050, 8, 796, 21504, 62, 647, 469, 7, 83, 11, 82, 8, 628, 220, 220, 220, 21504, 62, 647, 469, 7, 82, 3712, 3109, 1050, 11, 256, 3712, 3109, 1050, 8, 796, 21504, 62, 647, 469, 7, 7762, 7, 82, 13, 22046, 58, 16, 46570, 264, 11, 3254, 7, 83, 13, 22046, 58, 16, 46570, 256, 8, 628, 220, 220, 220, 26498, 796, 685, 445, 7234, 7, 11632, 62, 647, 469, 11, 1822, 8, 329, 1822, 287, 1976, 3949, 22046, 60, 198, 220, 220, 220, 1033, 3808, 796, 3975, 7, 853, 14933, 11, 26498, 8, 466, 299, 11, 853, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 16763, 7, 77, 2599, 25, 3, 7, 853, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2824, 7, 31937, 82, 8, 198, 437, 198, 198, 17143, 2357, 62, 14933, 7, 68, 3712, 13940, 23650, 8, 796, 304, 198, 17143, 2357, 62, 14933, 7, 68, 3712, 3109, 1050, 8, 796, 4129, 7, 68, 13, 22046, 8, 6624, 352, 5633, 2429, 62, 853, 3672, 3419, 1058, 304, 13, 22046, 58, 16, 60, 198, 198, 37811, 198, 220, 220, 220, 15021, 4114, 7, 31937, 8, 198, 198, 34, 4262, 198, 15506, 63, 198, 31, 23928, 2221, 198, 220, 220, 220, 2878, 2011, 32, 198, 220, 220, 220, 220, 220, 220, 220, 15440, 3712, 5317, 2414, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2163, 257, 7, 87, 3712, 5317, 8, 198, 220, 220, 220, 220, 220, 269, 796, 352, 198, 220, 220, 220, 220, 220, 1441, 2124, 1343, 269, 1343, 15440, 198, 220, 220, 220, 886, 198, 437, 198, 15506, 63, 198, 198, 464, 4600, 3666, 32, 63, 460, 307, 3177, 281, 27421, 329, 428, 1948, 2446, 11, 355, 6886, 284, 1180, 25504, 286, 220, 198, 5661, 2163, 13, 198, 198, 1212, 15021, 18616, 262, 1708, 2438, 25, 198, 15506, 63, 198, 27471, 198, 220, 220, 220, 7308, 13, 31, 834, 15390, 834, 2878, 2011, 32, 1279, 25, 317, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15440, 3712, 5317, 2414, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2011, 32, 7, 26, 15440, 796, 4049, 7203, 15878, 705, 1, 1635, 366, 3866, 16005, 1, 1635, 24018, 468, 645, 4277, 11, 5127, 340, 351, 21179, 526, 4008, 796, 2011, 32, 7, 3866, 16005, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2011, 32, 7, 3866, 16005, 8, 796, 649, 7, 3866, 16005, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 7499, 198, 220, 220, 220, 7499, 198, 220, 220, 220, 2011, 32, 7, 381, 3712, 3666, 32, 26, 479, 18504, 23029, 796, 357, 48944, 737, 260, 41571, 7, 381, 11, 479, 18504, 8, 198, 220, 220, 220, 2011, 32, 7, 381, 3712, 3666, 32, 11, 2566, 3712, 7, 48944, 737, 23839, 35, 713, 8, 796, 357, 48944, 737, 260, 41571, 7, 381, 11, 2566, 8, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 2011, 32, 7, 381, 3712, 3666, 32, 11, 2566, 3712, 19852, 853, 90, 51, 29291, 90, 13940, 23650, 11, 4377, 11709, 8, 796, 357, 48944, 737, 260, 41571, 7, 381, 11, 2566, 8, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 2147, 198, 220, 220, 220, 15021, 555, 8002, 62, 3666, 32, 7, 1069, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3671, 19510, 48944, 737, 62, 403, 8002, 7, 1069, 11, 4377, 58, 25, 3866, 16005, 60, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 15021, 2353, 62, 3666, 32, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 3671, 19510, 48944, 737, 62, 8002, 62, 3605, 7, 3666, 32, 11, 4377, 58, 25, 3866, 16005, 60, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2011, 32, 198, 220, 220, 220, 2163, 257, 7, 23928, 3712, 3666, 32, 11, 2124, 3712, 5317, 26, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 403, 8002, 357, 3866, 16005, 35751, 796, 4114, 198, 220, 220, 220, 220, 220, 220, 220, 269, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2124, 1343, 269, 1343, 15440, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2163, 257, 7, 30586, 3712, 18465, 11, 2124, 3712, 5317, 26, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 257, 7, 3666, 32, 22784, 2124, 3712, 5317, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 27568, 2163, 651, 62, 24396, 7, 11011, 3712, 6030, 90, 3666, 32, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 796, 29565, 76, 329, 285, 796, 5050, 7, 64, 11, 309, 29291, 90, 3666, 32, 11, 12372, 853, 30072, 12962, 58, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 285, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 357, 82, 3712, 3666, 32, 5769, 22046, 23029, 796, 257, 7, 82, 11, 26498, 23029, 198, 437, 198, 15506, 63, 198, 37811, 198, 20285, 305, 4114, 7, 31937, 8, 198, 220, 220, 220, 1441, 3671, 7, 320, 26908, 62, 20285, 305, 7, 834, 21412, 834, 11, 11593, 10459, 834, 11, 44052, 4008, 198, 437, 198, 198, 8818, 3494, 62, 20285, 305, 7, 4666, 11, 2723, 11, 3494, 62, 31937, 8, 198, 220, 220, 220, 18818, 796, 42755, 33637, 13, 79, 1809, 971, 7, 81, 4029, 1127, 11, 3494, 62, 31937, 8, 198, 220, 220, 220, 309, 11, 7032, 11, 277, 3672, 11, 25439, 62, 82, 328, 62, 11600, 82, 796, 2878, 62, 27144, 495, 7, 33565, 1496, 8, 628, 220, 220, 220, 7071, 62, 3672, 796, 38357, 7, 21037, 4625, 62, 1462, 62, 11085, 27979, 7, 8841, 7, 69, 3672, 22305, 198, 220, 220, 220, 4114, 62, 4906, 62, 3672, 796, 318, 22366, 7, 51, 8, 5633, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 38357, 7, 8841, 7, 39994, 62, 3672, 11, 651, 62, 392, 62, 1939, 62, 11011, 62, 17618, 7, 39994, 62, 3672, 22305, 1058, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 309, 628, 220, 220, 220, 717, 62, 20786, 62, 82, 328, 62, 11600, 796, 717, 7, 20786, 62, 82, 328, 62, 11600, 82, 8, 198, 220, 220, 220, 2176, 62, 11011, 62, 20786, 62, 12501, 82, 796, 360, 713, 21737, 198, 220, 220, 220, 329, 25439, 62, 82, 328, 62, 11600, 287, 25439, 62, 82, 328, 62, 11600, 82, 198, 220, 220, 220, 220, 220, 220, 220, 2176, 62, 11011, 62, 20786, 62, 12501, 796, 2769, 30073, 7, 20786, 62, 82, 328, 62, 11600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2176, 62, 11011, 62, 20786, 62, 12501, 58, 25, 22046, 60, 796, 685, 37498, 23928, 3712, 3, 23928, 62, 4906, 62, 3672, 1776, 2176, 62, 11011, 62, 20786, 62, 12501, 58, 25, 22046, 11907, 198, 220, 220, 220, 220, 220, 220, 220, 611, 4129, 7, 25747, 8, 1875, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 14933, 796, 685, 7402, 1958, 7, 69, 8, 329, 277, 287, 7032, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 8192, 284, 466, 617, 1839, 2584, 1517, 994, 284, 651, 428, 284, 21136, 826, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 555, 8002, 62, 31937, 796, 36147, 31, 403, 8002, 29568, 3245, 14933, 58, 16, 37498, 437, 12, 16, 15437, 986, 828, 29568, 3245, 14933, 58, 437, 12962, 796, 4114, 8, 220, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 555, 8002, 62, 31937, 796, 36147, 27471, 886, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2176, 62, 11011, 62, 20786, 62, 12501, 58, 25, 2618, 60, 796, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 720, 403, 8002, 62, 31937, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29568, 11423, 62, 11011, 62, 20786, 62, 12501, 58, 25, 2618, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12351, 796, 29568, 8841, 7, 10459, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 18224, 366, 18224, 379, 29568, 10677, 16725, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 16939, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 11423, 62, 11011, 62, 20786, 62, 12501, 82, 11, 2176, 62, 11011, 62, 20786, 62, 12501, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 5399, 62, 22046, 796, 21504, 62, 22179, 62, 22046, 7, 20786, 62, 82, 328, 62, 11600, 82, 8, 198, 220, 220, 220, 5399, 62, 37266, 796, 685, 17143, 2357, 62, 14933, 7, 68, 8, 329, 304, 287, 5399, 62, 22046, 60, 198, 220, 220, 220, 4277, 62, 11011, 62, 20786, 62, 12501, 796, 2769, 30073, 7, 11085, 62, 20786, 62, 82, 328, 62, 11600, 8, 198, 220, 220, 220, 4277, 62, 11011, 62, 20786, 62, 12501, 58, 25, 22046, 60, 796, 685, 37498, 23928, 3712, 18465, 1776, 5399, 62, 22046, 60, 198, 220, 220, 220, 4277, 62, 11011, 62, 20786, 62, 12501, 58, 25, 3003, 37266, 60, 796, 3748, 7, 445, 7234, 19510, 87, 11, 9501, 67, 8, 3784, 33295, 0, 7, 87, 11, 1136, 7, 9501, 67, 11, 25, 3003, 37266, 17414, 12962, 828, 25439, 62, 82, 328, 62, 11600, 82, 26, 15003, 28, 21737, 4008, 198, 220, 220, 220, 4277, 62, 11011, 62, 20786, 62, 12501, 58, 25, 2618, 60, 796, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 29568, 12286, 62, 11011, 62, 20786, 62, 12501, 58, 25, 3672, 60, 5769, 3, 23928, 62, 4906, 62, 3672, 22784, 29568, 46416, 62, 37266, 986, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12351, 796, 29568, 8841, 7, 10459, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 18224, 366, 18224, 379, 29568, 10677, 16725, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 16939, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1303, 16926, 46, 815, 466, 257, 2099, 22179, 319, 477, 1005, 12786, 198, 220, 220, 220, 4277, 62, 11011, 62, 20786, 62, 12501, 58, 25, 81, 4906, 60, 796, 1058, 7149, 628, 220, 220, 220, 611, 5299, 7, 25, 81, 4906, 287, 8251, 7, 11085, 62, 20786, 62, 82, 328, 62, 11600, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 717, 62, 20786, 62, 82, 328, 62, 11600, 58, 25, 81, 4906, 60, 796, 1058, 7149, 198, 220, 220, 220, 886, 628, 220, 220, 220, 7071, 62, 21412, 796, 651, 62, 21412, 7, 4666, 11, 7071, 62, 3672, 8, 628, 220, 220, 220, 611, 4129, 7, 25747, 8, 18189, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2878, 62, 11201, 796, 351, 62, 46265, 7, 37498, 7249, 720, 23928, 62, 4906, 62, 3672, 1279, 25, 29568, 39994, 62, 21412, 737, 3, 7, 39994, 62, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29568, 25747, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 834, 33365, 24212, 834, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3991, 8, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 2878, 62, 11201, 796, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2878, 720, 23928, 62, 4906, 62, 3672, 1279, 25, 29568, 39994, 62, 21412, 737, 3, 7, 39994, 62, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29568, 25747, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 266, 37266, 796, 4646, 7, 33295, 28265, 685, 1136, 7, 9501, 67, 11, 1058, 3003, 37266, 11, 685, 12962, 329, 277, 21282, 287, 25439, 62, 82, 328, 62, 11600, 82, 11208, 2315, 41888, 12962, 198, 220, 220, 220, 266, 37266, 796, 3748, 7, 86, 37266, 8, 198, 220, 220, 220, 1822, 19199, 796, 16410, 1136, 7, 9501, 67, 11, 25, 81, 4906, 11, 25, 7149, 1776, 1136, 62, 853, 62, 19199, 7, 9501, 67, 58, 25, 22046, 12962, 60, 329, 277, 21282, 287, 25439, 62, 82, 328, 62, 11600, 82, 60, 198, 220, 220, 220, 2723, 62, 2536, 796, 4731, 7, 10459, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1255, 796, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 720, 7249, 62, 11201, 198, 220, 220, 220, 220, 220, 220, 220, 720, 26933, 24011, 1389, 891, 7, 82, 361, 67, 8, 329, 264, 361, 67, 287, 2176, 62, 11011, 62, 20786, 62, 12501, 82, 60, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 29568, 24011, 1389, 891, 7, 12286, 62, 11011, 62, 20786, 62, 12501, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 27568, 2163, 651, 62, 24396, 7, 11011, 3712, 6030, 90, 3, 23928, 62, 4906, 62, 3672, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 796, 685, 76, 329, 285, 287, 5050, 16763, 7, 11085, 62, 20786, 62, 82, 328, 62, 11600, 58, 25, 3672, 46570, 309, 29291, 90, 3, 23928, 62, 4906, 62, 3672, 11, 12372, 853, 90, 7149, 11709, 8, 7131, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 285, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 357, 82, 3712, 3, 23928, 62, 4906, 62, 3672, 5769, 22046, 23029, 796, 29568, 11085, 62, 20786, 62, 82, 328, 62, 11600, 58, 25, 3672, 60, 5769, 82, 11, 26498, 23029, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 3359, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7, 3866, 926, 1958, 7, 20274, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1255, 198, 437, 198, 198, 8818, 7071, 62, 27144, 495, 7, 39994, 62, 11201, 8, 198, 220, 220, 220, 2488, 27144, 495, 7, 39994, 62, 11201, 11, 357, 69, 41052, 22046, 834, 2599, 25, 49, 62, 810, 370, 834, 8, 930, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 69, 41052, 22046, 834, 8, 810, 370, 834, 8, 930, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 69, 41052, 22046, 834, 2599, 25, 49, 62, 8, 930, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 69, 41052, 22046, 834, 22305, 198, 220, 220, 220, 1441, 277, 11, 26498, 11, 371, 11, 370, 198, 437, 198, 198, 8818, 2878, 62, 27144, 495, 7, 31937, 8, 198, 220, 220, 220, 611, 44052, 13, 22046, 58, 16, 4083, 2256, 24844, 1058, 7249, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 27144, 495, 7, 31937, 13, 22046, 58, 16, 4357, 357, 7249, 309, 62, 7032, 834, 886, 8, 930, 357, 76, 18187, 2878, 309, 62, 7032, 834, 886, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 43458, 796, 685, 35312, 4299, 7, 64, 8, 329, 257, 287, 44052, 13, 22046, 58, 17, 25, 437, 11907, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 309, 796, 2147, 198, 220, 220, 220, 220, 220, 220, 220, 7032, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 43458, 796, 685, 35312, 4299, 7, 64, 8, 329, 257, 287, 44052, 13, 22046, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 277, 3672, 796, 717, 7, 9501, 38381, 25, 3672, 60, 198, 220, 220, 220, 309, 11, 25747, 11, 69, 3672, 11, 9501, 198, 437, 198, 198, 21017, 198, 21017, 1294, 2751, 20634, 2149, 11015, 198, 21017, 198, 8818, 351, 62, 30586, 7, 69, 11, 649, 62, 30586, 8, 198, 220, 220, 220, 938, 62, 30586, 796, 900, 62, 30586, 7, 3605, 62, 30586, 8, 198, 220, 220, 220, 1255, 796, 2147, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 277, 3419, 198, 220, 220, 220, 4929, 11454, 198, 220, 220, 220, 220, 220, 220, 220, 302, 16939, 3419, 198, 220, 220, 220, 3443, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 796, 900, 62, 30586, 7, 12957, 62, 30586, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1255, 198, 437, 198, 198, 437, 1303, 8265, 198 ]
2.094771
6,521
incx = 1 incy = 1
[ 1939, 87, 796, 352, 198, 259, 948, 796, 352, 198 ]
1.8
10
<filename>src/GeometricTools_gridabstract.jl #=############################################################################## # DESCRIPTION Abstract grid type definition. # AUTHORSHIP * Author : <NAME> * Email : <EMAIL> * Created : May 2018 * License : MIT License =############################################################################### ################################################################################ # ABSTRACT GRID TYPE ################################################################################ """ Implementations of AbstractGrid are expected to have the following fields: * `dims::Int64` : Number of dimensions. * `nnodes::Int64` : Number of nodes in the grid. * `ncells::Int64` : Number of cells in the grid. <!-- * `bbox::Array{Int64, 1}` : Bounding box of the grid (cells in each dim). --> and the following functions ```julia function get_node(self::MyGrid, i::Int64) # Returns the position of the i-th node (1-indexed) in the grid end function get_node(self::MyGrid, coor::Array{Int64,1}) # Returns the position of the node of subscript coordinates `coor` # (1-indexed) end function get_cell(self::MyGrid, i::Int64) # Returns the nodes indices of i-th cell in the grid (1-indexed) end function get_cell(self::MyGrid, coor::Array{Int64,1}) # Returns the node indices of the cell with subscript coordinates `coor` # (1-indexed). The format corresponds to VTK_HEXAHEDRON (=12) in 3D, # VTK_QUAD (=9) in 2D, or VTK_LINE (=3) in 1D---except that points are # 1-indexed instead of 0-indexed. end function get_fieldval(self::MyGrid, field_name::String, coor::Array{Int64,1}) # Returns the value of node of coordinates `coor` (1-indexed) in the field # 'field_name'. end function get_fieldval(self::MyGrid, field_name::String, i::Int64) # Returns the value of i-th node (1-indexed) in the field 'field_name'. end function add_field(self::MyGrid, field_name::String, field_type::String, field_data) # Adds a field of data associated to each node. # # NOTE: each data entry must be a single value if `field_type==scalar`, or a # 3-element array if `field_type==vector`. end function calculate_field(self::MyGrid, f, field_name::String, field_type::String) # Evaluates the function `f` at each nodes and stores the values as a new # field. # # NOTE: f must return a single value if `field_type==scalar`, or a 3-element # array if `field_type==vector`. end function lintransform!(self::MyGrid, M::Array{Float64,2}, T::Array{Float64,1}; reset_fields::Bool=true) # Rotates and translates the grid by the rotation matrix `M` and translation # vector `T` (linear transformation). end function transform!(self::MyGrid, f; reset_fields::Bool=true) # Applies the space transformation given by function `f` to the grid. end function save(self::MyGrid, filename::String; args...) # Outputs a vtk file of this grid end function plot(self::MyGrid; fig_name="gridplot", fontsize=15, xlims=nothing, ylims=nothing, zlims=nothing, labelcells=true, labelnodes=false, labelndivs=true, title_str=nothing) # Plots the grid on PyPlot end ``` """ abstract type AbstractGrid end # Implementations for header_name in ["grid", "gridmulti", "gridspecials"] include("GeometricTools_"*header_name*".jl") end # Implementations of AbstractGrid GridTypes = Union{Grid, MultiGrid, GridTriangleSurface} #= Extension of the Grid type (extensions are any type that have properties `_ndivsnodes` and `_ndivsnodes`) =# GridExtentions = Union{Grid, GridTriangleSurface} # Extensions for header_name in ["gridextensions"] include("GeometricTools_"*header_name*".jl") end ##### GENERIC FUNCTIONS ####################################################### "Returns the centroid of the cell" function get_cellcenter(self::GridTypes, args...) nodes = get_cell(self, args...) C = sum([get_node(self, node) for node in nodes])/size(nodes, 1) return C end ##### END OF ABSTRACT GRID #####################################################
[ 27, 34345, 29, 10677, 14, 10082, 16996, 33637, 62, 25928, 397, 8709, 13, 20362, 198, 2, 28, 29113, 29113, 7804, 4242, 2235, 198, 2, 22196, 40165, 198, 220, 220, 220, 27741, 10706, 2099, 6770, 13, 198, 2, 44746, 49423, 198, 220, 1635, 6434, 220, 220, 220, 1058, 1279, 20608, 29, 198, 220, 1635, 9570, 220, 220, 220, 220, 1058, 1279, 27630, 4146, 29, 198, 220, 1635, 15622, 220, 220, 1058, 1737, 2864, 198, 220, 1635, 13789, 220, 220, 1058, 17168, 13789, 198, 28, 29113, 29113, 7804, 4242, 21017, 198, 198, 29113, 29113, 14468, 198, 2, 9564, 18601, 10659, 10863, 2389, 41876, 198, 29113, 29113, 14468, 198, 37811, 198, 220, 48282, 602, 286, 27741, 41339, 389, 2938, 284, 423, 262, 1708, 7032, 25, 628, 220, 1635, 4600, 67, 12078, 3712, 5317, 2414, 63, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 7913, 286, 15225, 13, 198, 220, 1635, 4600, 20471, 4147, 3712, 5317, 2414, 63, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 7913, 286, 13760, 287, 262, 10706, 13, 198, 220, 1635, 4600, 1198, 297, 82, 3712, 5317, 2414, 63, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 7913, 286, 4778, 287, 262, 10706, 13, 198, 220, 37922, 1635, 4600, 65, 3524, 3712, 19182, 90, 5317, 2414, 11, 352, 92, 63, 220, 220, 220, 220, 1058, 347, 9969, 3091, 286, 262, 10706, 357, 46342, 287, 1123, 5391, 737, 14610, 628, 220, 290, 262, 1708, 5499, 198, 220, 7559, 63, 73, 43640, 198, 220, 2163, 651, 62, 17440, 7, 944, 3712, 3666, 41339, 11, 1312, 3712, 5317, 2414, 8, 198, 220, 220, 220, 1303, 16409, 262, 2292, 286, 262, 1312, 12, 400, 10139, 357, 16, 12, 9630, 276, 8, 287, 262, 10706, 198, 220, 886, 198, 220, 2163, 651, 62, 17440, 7, 944, 3712, 3666, 41339, 11, 763, 273, 3712, 19182, 90, 5317, 2414, 11, 16, 30072, 198, 220, 220, 220, 1303, 16409, 262, 2292, 286, 262, 10139, 286, 32891, 22715, 4600, 1073, 273, 63, 198, 220, 220, 220, 1303, 357, 16, 12, 9630, 276, 8, 198, 220, 886, 198, 220, 2163, 651, 62, 3846, 7, 944, 3712, 3666, 41339, 11, 1312, 3712, 5317, 2414, 8, 198, 220, 220, 220, 1303, 16409, 262, 13760, 36525, 286, 1312, 12, 400, 2685, 287, 262, 10706, 357, 16, 12, 9630, 276, 8, 198, 220, 886, 198, 220, 2163, 651, 62, 3846, 7, 944, 3712, 3666, 41339, 11, 763, 273, 3712, 19182, 90, 5317, 2414, 11, 16, 30072, 198, 220, 220, 220, 1303, 16409, 262, 10139, 36525, 286, 262, 2685, 351, 32891, 22715, 4600, 1073, 273, 63, 198, 220, 220, 220, 1303, 357, 16, 12, 9630, 276, 737, 383, 5794, 24866, 284, 32751, 42, 62, 39, 6369, 18429, 1961, 45806, 46121, 1065, 8, 287, 513, 35, 11, 198, 220, 220, 220, 1303, 32751, 42, 62, 10917, 2885, 46121, 24, 8, 287, 362, 35, 11, 393, 32751, 42, 62, 24027, 46121, 18, 8, 287, 352, 35, 6329, 16341, 326, 2173, 389, 198, 220, 220, 220, 1303, 352, 12, 9630, 276, 2427, 286, 657, 12, 9630, 276, 13, 198, 220, 886, 198, 220, 2163, 651, 62, 3245, 2100, 7, 944, 3712, 3666, 41339, 11, 2214, 62, 3672, 3712, 10100, 11, 763, 273, 3712, 19182, 90, 5317, 2414, 11, 16, 30072, 198, 220, 220, 220, 1303, 16409, 262, 1988, 286, 10139, 286, 22715, 4600, 1073, 273, 63, 357, 16, 12, 9630, 276, 8, 287, 262, 2214, 198, 220, 220, 220, 1303, 705, 3245, 62, 3672, 4458, 198, 220, 886, 198, 220, 2163, 651, 62, 3245, 2100, 7, 944, 3712, 3666, 41339, 11, 2214, 62, 3672, 3712, 10100, 11, 1312, 3712, 5317, 2414, 8, 198, 220, 220, 220, 1303, 16409, 262, 1988, 286, 1312, 12, 400, 10139, 357, 16, 12, 9630, 276, 8, 287, 262, 2214, 705, 3245, 62, 3672, 4458, 198, 220, 886, 198, 220, 2163, 751, 62, 3245, 7, 944, 3712, 3666, 41339, 11, 2214, 62, 3672, 3712, 10100, 11, 2214, 62, 4906, 3712, 10100, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 7890, 8, 198, 220, 220, 220, 1303, 34333, 257, 2214, 286, 1366, 3917, 284, 1123, 10139, 13, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 24550, 25, 1123, 1366, 5726, 1276, 307, 257, 2060, 1988, 611, 4600, 3245, 62, 4906, 855, 1416, 282, 283, 47671, 393, 257, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 513, 12, 30854, 7177, 611, 4600, 3245, 62, 4906, 855, 31364, 44646, 198, 220, 886, 198, 220, 2163, 15284, 62, 3245, 7, 944, 3712, 3666, 41339, 11, 277, 11, 2214, 62, 3672, 3712, 10100, 11, 2214, 62, 4906, 3712, 10100, 8, 198, 220, 220, 220, 1303, 26439, 12632, 262, 2163, 4600, 69, 63, 379, 1123, 13760, 290, 7000, 262, 3815, 355, 257, 649, 198, 220, 220, 220, 1303, 2214, 13, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 24550, 25, 277, 1276, 1441, 257, 2060, 1988, 611, 4600, 3245, 62, 4906, 855, 1416, 282, 283, 47671, 393, 257, 513, 12, 30854, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 7177, 611, 4600, 3245, 62, 4906, 855, 31364, 44646, 198, 220, 886, 198, 220, 2163, 300, 600, 26084, 687, 0, 7, 944, 3712, 3666, 41339, 11, 337, 3712, 19182, 90, 43879, 2414, 11, 17, 5512, 309, 3712, 19182, 90, 43879, 2414, 11, 16, 19629, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13259, 62, 25747, 3712, 33, 970, 28, 7942, 8, 198, 220, 220, 220, 1303, 18481, 689, 290, 23677, 262, 10706, 416, 262, 13179, 17593, 4600, 44, 63, 290, 11059, 198, 220, 220, 220, 1303, 15879, 4600, 51, 63, 357, 29127, 13389, 737, 198, 220, 886, 198, 220, 2163, 6121, 0, 7, 944, 3712, 3666, 41339, 11, 277, 26, 13259, 62, 25747, 3712, 33, 970, 28, 7942, 8, 198, 220, 220, 220, 1303, 2034, 13508, 262, 2272, 13389, 1813, 416, 2163, 4600, 69, 63, 284, 262, 10706, 13, 198, 220, 886, 198, 220, 2163, 3613, 7, 944, 3712, 3666, 41339, 11, 29472, 3712, 10100, 26, 26498, 23029, 198, 220, 220, 220, 1303, 25235, 82, 257, 410, 30488, 2393, 286, 428, 10706, 198, 220, 886, 198, 220, 2163, 7110, 7, 944, 3712, 3666, 41339, 26, 2336, 62, 3672, 2625, 25928, 29487, 1600, 10369, 7857, 28, 1314, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 2475, 82, 28, 22366, 11, 331, 2475, 82, 28, 22366, 11, 1976, 2475, 82, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6167, 46342, 28, 7942, 11, 6167, 77, 4147, 28, 9562, 11, 6167, 358, 452, 82, 28, 7942, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 62, 2536, 28, 22366, 8, 198, 220, 220, 220, 1303, 1345, 1747, 262, 10706, 319, 9485, 43328, 198, 220, 886, 198, 220, 7559, 63, 198, 37811, 198, 397, 8709, 2099, 27741, 41339, 886, 198, 198, 2, 48282, 602, 198, 1640, 13639, 62, 3672, 287, 14631, 25928, 1600, 366, 25928, 41684, 1600, 366, 2164, 2340, 431, 2413, 82, 8973, 198, 220, 2291, 7203, 10082, 16996, 33637, 62, 1, 9, 25677, 62, 3672, 9, 1911, 20362, 4943, 198, 437, 198, 198, 2, 48282, 602, 286, 27741, 41339, 198, 41339, 31431, 796, 4479, 90, 41339, 11, 15237, 41339, 11, 24846, 14824, 9248, 14214, 2550, 92, 198, 198, 2, 28, 27995, 286, 262, 24846, 2099, 198, 7, 2302, 5736, 389, 597, 2099, 326, 423, 6608, 4600, 62, 358, 452, 16184, 4147, 63, 290, 4600, 62, 358, 452, 16184, 4147, 63, 8, 198, 46249, 198, 41339, 11627, 298, 507, 796, 4479, 90, 41339, 11, 24846, 14824, 9248, 14214, 2550, 92, 198, 198, 2, 49751, 198, 1640, 13639, 62, 3672, 287, 14631, 2164, 485, 742, 5736, 8973, 198, 220, 2291, 7203, 10082, 16996, 33637, 62, 1, 9, 25677, 62, 3672, 9, 1911, 20362, 4943, 198, 437, 628, 198, 198, 4242, 2, 24700, 1137, 2149, 29397, 4177, 11053, 220, 1303, 29113, 14468, 4242, 2235, 198, 1, 35561, 262, 1247, 3882, 286, 262, 2685, 1, 198, 8818, 651, 62, 3846, 16159, 7, 944, 3712, 41339, 31431, 11, 26498, 23029, 198, 220, 13760, 796, 651, 62, 3846, 7, 944, 11, 26498, 23029, 198, 220, 327, 796, 2160, 26933, 1136, 62, 17440, 7, 944, 11, 10139, 8, 329, 10139, 287, 13760, 12962, 14, 7857, 7, 77, 4147, 11, 352, 8, 198, 220, 1441, 327, 198, 437, 198, 198, 4242, 2, 23578, 3963, 9564, 18601, 10659, 10863, 2389, 1303, 29113, 14468, 4242, 198 ]
2.836589
1,536
function write_xsf( filnam, LL_in, atpos; molecule=false ) # f = open(filnam, "w") Natoms = size(atpos)[2] # if molecule @printf(f, "MOLECULE\n") else @printf(f, "CRYSTAL\n") end LL = LL_in' @printf(f, "PRIMVEC\n") @printf(f, "%18.10f %18.10f %18.10f\n", LL[1,1], LL[1,2], LL[1,3]) @printf(f, "%18.10f %18.10f %18.10f\n", LL[2,1], LL[2,2], LL[2,3]) @printf(f, "%18.10f %18.10f %18.10f\n", LL[3,1], LL[3,2], LL[3,3]) @printf(f, "PRIMCOORD\n") @printf(f, "%8d %8d\n", Natoms, 1) for ia = 1:Natoms @printf(f, "H %18.10f %18.10f %18.10f\n", atpos[1,ia], atpos[2,ia], atpos[3,ia]) end close(f) end function write_xsf_3d_crystal( filnam, Ns, LL_in, data3d; center=zeros(3) ) # f = open(filnam, "a") # FIXME: What if filnam is not exist? # LL = LL_in' @printf(f, "BEGIN_BLOCK_DATAGRID_3D\n") @printf(f, "made_by_ffr\n") @printf(f, "DATAGRID_3D_UNKNOWN\n") @printf(f, "%8d %8d %8d\n", Ns[1]+1, Ns[2]+1, Ns[3]+1 ) @printf(f, "%18.10f %18.10f %18.10f\n", center[1], center[2], center[3]) @printf(f, "%18.10f %18.10f %18.10f\n", LL[1,1], LL[1,2], LL[1,3]) @printf(f, "%18.10f %18.10f %18.10f\n", LL[2,1], LL[2,2], LL[2,3]) @printf(f, "%18.10f %18.10f %18.10f\n", LL[3,1], LL[3,2], LL[3,3]) # rDat3d = reshape( data3d, (Ns[1],Ns[2],Ns[3]) ) for k = 1:Ns[3]+1 for j = 1:Ns[2]+1 for i = 1:Ns[1]+1 ii = ( i == Ns[1]+1 ? 1 : i ) jj = ( j == Ns[2]+1 ? 1 : j ) kk = ( k == Ns[3]+1 ? 1 : k ) # @printf(f, "%18.10f\n", rDat3d[ii,jj,kk]) end end end @printf(f, "END_DATAGRID_3D\n") @printf(f, "END_BLOCK_DATAGRID_3D\n") close(f) end
[ 8818, 3551, 62, 87, 28202, 7, 1226, 7402, 11, 27140, 62, 259, 11, 379, 1930, 26, 27756, 28, 9562, 1267, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 277, 796, 1280, 7, 10379, 7402, 11, 366, 86, 4943, 198, 220, 220, 220, 14393, 3150, 796, 2546, 7, 265, 1930, 38381, 17, 60, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 611, 27756, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 37435, 7, 69, 11, 366, 11770, 2538, 34, 24212, 59, 77, 4943, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 37435, 7, 69, 11, 366, 9419, 56, 2257, 1847, 59, 77, 4943, 198, 220, 220, 220, 886, 198, 220, 220, 220, 27140, 796, 27140, 62, 259, 6, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 366, 4805, 3955, 53, 2943, 59, 77, 4943, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 36521, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 59, 77, 1600, 27140, 58, 16, 11, 16, 4357, 27140, 58, 16, 11, 17, 4357, 27140, 58, 16, 11, 18, 12962, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 36521, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 59, 77, 1600, 27140, 58, 17, 11, 16, 4357, 27140, 58, 17, 11, 17, 4357, 27140, 58, 17, 11, 18, 12962, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 36521, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 59, 77, 1600, 27140, 58, 18, 11, 16, 4357, 27140, 58, 18, 11, 17, 4357, 27140, 58, 18, 11, 18, 12962, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 366, 4805, 3955, 8220, 12532, 59, 77, 4943, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 36521, 23, 67, 4064, 23, 67, 59, 77, 1600, 14393, 3150, 11, 352, 8, 198, 220, 220, 220, 329, 220, 544, 796, 352, 25, 47849, 3150, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 37435, 7, 69, 11, 366, 39, 220, 4064, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 59, 77, 1600, 379, 1930, 58, 16, 11, 544, 4357, 379, 1930, 58, 17, 11, 544, 4357, 379, 1930, 58, 18, 11, 544, 12962, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1969, 7, 69, 8, 198, 437, 198, 198, 8818, 3551, 62, 87, 28202, 62, 18, 67, 62, 20470, 7757, 7, 1226, 7402, 11, 399, 82, 11, 27140, 62, 259, 11, 1366, 18, 67, 26, 3641, 28, 9107, 418, 7, 18, 8, 1267, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 277, 796, 1280, 7, 10379, 7402, 11, 366, 64, 4943, 220, 1303, 44855, 11682, 25, 1867, 611, 1226, 7402, 318, 407, 2152, 30, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 27140, 796, 27140, 62, 259, 6, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 366, 33, 43312, 62, 9148, 11290, 62, 35, 1404, 4760, 49, 2389, 62, 18, 35, 59, 77, 4943, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 366, 9727, 62, 1525, 62, 487, 81, 59, 77, 4943, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 366, 35, 1404, 4760, 49, 2389, 62, 18, 35, 62, 4944, 44706, 59, 77, 4943, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 36521, 23, 67, 4064, 23, 67, 4064, 23, 67, 59, 77, 1600, 399, 82, 58, 16, 48688, 16, 11, 399, 82, 58, 17, 48688, 16, 11, 399, 82, 58, 18, 48688, 16, 1267, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 36521, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 59, 77, 1600, 3641, 58, 16, 4357, 3641, 58, 17, 4357, 3641, 58, 18, 12962, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 36521, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 59, 77, 1600, 27140, 58, 16, 11, 16, 4357, 27140, 58, 16, 11, 17, 4357, 27140, 58, 16, 11, 18, 12962, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 36521, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 59, 77, 1600, 27140, 58, 17, 11, 16, 4357, 27140, 58, 17, 11, 17, 4357, 27140, 58, 17, 11, 18, 12962, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 36521, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 4064, 1507, 13, 940, 69, 59, 77, 1600, 27140, 58, 18, 11, 16, 4357, 27140, 58, 18, 11, 17, 4357, 27140, 58, 18, 11, 18, 12962, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 374, 27354, 18, 67, 796, 27179, 1758, 7, 1366, 18, 67, 11, 357, 47503, 58, 16, 4357, 47503, 58, 17, 4357, 47503, 58, 18, 12962, 1267, 198, 220, 220, 220, 329, 479, 796, 352, 25, 47503, 58, 18, 48688, 16, 198, 220, 220, 220, 220, 220, 220, 220, 329, 474, 796, 352, 25, 47503, 58, 17, 48688, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 796, 352, 25, 47503, 58, 16, 48688, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 796, 357, 1312, 6624, 399, 82, 58, 16, 48688, 16, 5633, 352, 1058, 1312, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 73, 796, 357, 474, 6624, 399, 82, 58, 17, 48688, 16, 5633, 352, 1058, 474, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 74, 796, 357, 479, 6624, 399, 82, 58, 18, 48688, 16, 5633, 352, 1058, 479, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 37435, 7, 69, 11, 36521, 1507, 13, 940, 69, 59, 77, 1600, 374, 27354, 18, 67, 58, 4178, 11, 41098, 11, 28747, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 366, 10619, 62, 35, 1404, 4760, 49, 2389, 62, 18, 35, 59, 77, 4943, 198, 220, 220, 220, 2488, 37435, 7, 69, 11, 366, 10619, 62, 9148, 11290, 62, 35, 1404, 4760, 49, 2389, 62, 18, 35, 59, 77, 4943, 198, 220, 220, 220, 1969, 7, 69, 8, 198, 437, 198 ]
1.64
1,100
<reponame>climate-machine/JRRTMGP function setup_rfmip_as( ds_lw_in, idx_gases, exp_no, lookup, ::Type{FT}, ::Type{DA}, ::Type{VMR}, max_threads, ) where {FT <: AbstractFloat, DA, VMR} FTA1D = DA{FT, 1} FTA2D = DA{FT, 2} deg2rad = FT(Ο€) / FT(180) nlay = Int(ds_lw_in.dim["layer"]) ncol = Int(ds_lw_in.dim["site"]) nlev = nlay + 1 ngas = lookup.n_gases nbnd = lookup.n_bnd lon = DA{FT, 1}(ds_lw_in["lon"][:]) lat = DA{FT, 1}(ds_lw_in["lat"][:]) lon = nothing # This example skips latitude dependent gravity computation lat = nothing # to be consistent with the FORTRAN RRTMGP test case. sfc_emis = DA{FT, 2}(repeat(reshape(Array{FT}(ds_lw_in["surface_emissivity"][:]), 1, :), nbnd, 1)) # all bands use same emissivity sfc_alb = DA{FT, 2}(repeat(reshape(Array{FT}(ds_lw_in["surface_albedo"][:]), 1, :), nbnd, 1)) # all bands use same albedo #-------------------------------------------------------------- zenith = Array{FT, 1}(deg2rad .* ds_lw_in["solar_zenith_angle"][:]) irrad = Array{FT, 1}(ds_lw_in["total_solar_irradiance"][:]) # block out coluumns with zenith > Ο€/2 usecol = BitArray(undef, ncol) usecol .= 1 for i in 1:ncol if zenith[i] > FT(Ο€) / 2 - 2 * eps(FT) irrad[i] = FT(0) usecol[i] = 0 end end zenith = DA{FT, 1}(zenith) irrad = DA{FT, 1}(irrad) #-------------------------------------------------------------- p_lev = ds_lw_in["pres_level"][:] lev_ind = p_lev[1, 1] > p_lev[end, 1] ? (1:nlev) : (nlev:-1:1) lay_ind = p_lev[1, 1] > p_lev[end, 1] ? (1:nlay) : (nlay:-1:1) p_lev[lev_ind[end], :] .= lookup.p_ref_min p_lev = DA{FT, 2}(p_lev[lev_ind, :]) p_lay = DA{FT, 2}(ds_lw_in["pres_layer"][:][lay_ind, :]) t_lev = DA{FT, 2}(ds_lw_in["temp_level"][:][lev_ind, :, exp_no]) t_lay = DA{FT, 2}(ds_lw_in["temp_layer"][:][lay_ind, :, exp_no]) t_sfc = DA{FT, 1}(ds_lw_in["surface_temperature"][:, exp_no]) col_dry = DA{FT, 2}(undef, nlay, ncol) # Reading volume mixing ratios vmr_h2o = FTA2D(ds_lw_in["water_vapor"][:][lay_ind, :, exp_no]) # vmr of H2O and O3 vmr_o3 = FTA2D(ds_lw_in["ozone"][:][lay_ind, :, exp_no]) # vary with height vmrat = zeros(FT, ngas) vmrat[idx_gases["co2"]] = FT(ds_lw_in["carbon_dioxide_GM"][exp_no]) * parse(FT, ds_lw_in["carbon_dioxide_GM"].attrib["units"]) vmrat[idx_gases["n2o"]] = FT(ds_lw_in["nitrous_oxide_GM"][exp_no]) * parse(FT, ds_lw_in["nitrous_oxide_GM"].attrib["units"]) vmrat[idx_gases["co"]] = FT(ds_lw_in["carbon_monoxide_GM"][exp_no]) * parse(FT, ds_lw_in["carbon_monoxide_GM"].attrib["units"]) vmrat[idx_gases["ch4"]] = FT(ds_lw_in["methane_GM"][exp_no]) * parse(FT, ds_lw_in["methane_GM"].attrib["units"]) vmrat[idx_gases["o2"]] = FT(ds_lw_in["oxygen_GM"][exp_no]) * parse(FT, ds_lw_in["oxygen_GM"].attrib["units"]) vmrat[idx_gases["n2"]] = FT(ds_lw_in["nitrogen_GM"][exp_no]) * parse(FT, ds_lw_in["nitrogen_GM"].attrib["units"]) vmrat[idx_gases["ccl4"]] = FT(ds_lw_in["carbon_tetrachloride_GM"][exp_no]) * parse(FT, ds_lw_in["carbon_tetrachloride_GM"].attrib["units"]) vmrat[idx_gases["cfc11"]] = FT(ds_lw_in["cfc11_GM"][exp_no]) * parse(FT, ds_lw_in["cfc11_GM"].attrib["units"]) vmrat[idx_gases["cfc12"]] = FT(ds_lw_in["cfc12_GM"][exp_no]) * parse(FT, ds_lw_in["cfc12_GM"].attrib["units"]) vmrat[idx_gases["cfc22"]] = FT(ds_lw_in["hcfc22_GM"][exp_no]) * parse(FT, ds_lw_in["hcfc22_GM"].attrib["units"]) vmrat[idx_gases["hfc143a"]] = FT(ds_lw_in["hfc143a_GM"][exp_no]) * parse(FT, ds_lw_in["hfc143a_GM"].attrib["units"]) vmrat[idx_gases["hfc125"]] = FT(ds_lw_in["hfc125_GM"][exp_no]) * parse(FT, ds_lw_in["hfc125_GM"].attrib["units"]) vmrat[idx_gases["hfc23"]] = FT(ds_lw_in["hfc23_GM"][exp_no]) * parse(FT, ds_lw_in["hfc23_GM"].attrib["units"]) vmrat[idx_gases["hfc32"]] = FT(ds_lw_in["hfc32_GM"][exp_no]) * parse(FT, ds_lw_in["hfc32_GM"].attrib["units"]) vmrat[idx_gases["hfc134a"]] = FT(ds_lw_in["hfc134a_GM"][exp_no]) * parse(FT, ds_lw_in["hfc134a_GM"].attrib["units"]) vmrat[idx_gases["cf4"]] = FT(ds_lw_in["cf4_GM"][exp_no]) * parse(FT, ds_lw_in["hfc23_GM"].attrib["units"]) # vmr[idx_gases["no2"]] = FT(ds_lw_in["no2_GM"][exp_no]) * # missing from input file # parse(FT, ds_lw_in["hfc32_GM"].attrib["units"]) # This example skips latitude dependent gravity compution to be consistent with the # FORTRAN RRTMGP test case. compute_col_dry!(p_lev, col_dry, param_set, vmr_h2o, lat) # the example skips lat based gravity calculation vmr = VMR(vmr_h2o, vmr_o3, FTA1D(vmrat)) cld_r_eff_liq = nothing cld_r_eff_ice = nothing cld_path_liq = nothing cld_path_ice = nothing cld_mask = nothing ice_rgh = 1 #------------------ return ( AtmosphericState{ FT, typeof(t_sfc), typeof(lat), typeof(p_lev), typeof(cld_r_eff_liq), typeof(cld_mask), typeof(vmr), Int, }( lon, lat, p_lay, p_lev, t_lay, t_lev, t_sfc, col_dry, vmr, cld_r_eff_liq, cld_r_eff_ice, cld_path_liq, cld_path_ice, cld_mask, ice_rgh, nlay, ncol, ngas, ), sfc_emis, sfc_alb, zenith, irrad, usecol, ) #= return ( ClearAtmosphericState{ FT, DA{FT,1}, typeof(lat), DA{FT,2}, typeof(vmr), Int, }( lon, lat, p_lay, p_lev, t_lay, t_lev, t_sfc, col_dry, vmr, nlay, ncol, ngas, ), sfc_emis, sfc_alb, zenith, irrad, ) =# end
[ 27, 7856, 261, 480, 29, 42570, 12, 30243, 14, 44817, 14181, 44, 16960, 628, 198, 8818, 9058, 62, 81, 38353, 541, 62, 292, 7, 198, 220, 220, 220, 288, 82, 62, 75, 86, 62, 259, 11, 198, 220, 220, 220, 4686, 87, 62, 70, 1386, 11, 198, 220, 220, 220, 1033, 62, 3919, 11, 198, 220, 220, 220, 35847, 11, 198, 220, 220, 220, 7904, 6030, 90, 9792, 5512, 198, 220, 220, 220, 7904, 6030, 90, 5631, 5512, 198, 220, 220, 220, 7904, 6030, 90, 53, 13599, 5512, 198, 220, 220, 220, 3509, 62, 16663, 82, 11, 198, 8, 810, 1391, 9792, 1279, 25, 27741, 43879, 11, 17051, 11, 569, 13599, 92, 198, 220, 220, 220, 48076, 16, 35, 796, 17051, 90, 9792, 11, 352, 92, 198, 220, 220, 220, 48076, 17, 35, 796, 17051, 90, 9792, 11, 362, 92, 628, 220, 220, 220, 3396, 17, 6335, 796, 19446, 7, 46582, 8, 1220, 19446, 7, 15259, 8, 198, 220, 220, 220, 299, 10724, 796, 2558, 7, 9310, 62, 75, 86, 62, 259, 13, 27740, 14692, 29289, 8973, 8, 198, 220, 220, 220, 299, 4033, 796, 2558, 7, 9310, 62, 75, 86, 62, 259, 13, 27740, 14692, 15654, 8973, 8, 198, 220, 220, 220, 299, 2768, 796, 299, 10724, 1343, 352, 198, 220, 220, 220, 299, 22649, 796, 35847, 13, 77, 62, 70, 1386, 198, 220, 220, 220, 299, 65, 358, 796, 35847, 13, 77, 62, 65, 358, 628, 220, 220, 220, 300, 261, 796, 17051, 90, 9792, 11, 352, 92, 7, 9310, 62, 75, 86, 62, 259, 14692, 14995, 1, 7131, 25, 12962, 198, 220, 220, 220, 3042, 796, 17051, 90, 9792, 11, 352, 92, 7, 9310, 62, 75, 86, 62, 259, 14692, 15460, 1, 7131, 25, 12962, 628, 220, 220, 220, 300, 261, 796, 2147, 1303, 770, 1672, 1341, 2419, 32477, 10795, 13522, 29964, 198, 220, 220, 220, 3042, 796, 2147, 1303, 284, 307, 6414, 351, 262, 7473, 5446, 1565, 371, 14181, 44, 16960, 1332, 1339, 13, 628, 220, 220, 220, 264, 16072, 62, 30561, 796, 17051, 90, 9792, 11, 362, 92, 7, 44754, 7, 3447, 1758, 7, 19182, 90, 9792, 92, 7, 9310, 62, 75, 86, 62, 259, 14692, 42029, 62, 368, 747, 3458, 1, 7131, 25, 46570, 352, 11, 1058, 828, 299, 65, 358, 11, 352, 4008, 1303, 477, 11760, 779, 976, 795, 747, 3458, 198, 220, 220, 220, 264, 16072, 62, 282, 65, 796, 17051, 90, 9792, 11, 362, 92, 7, 44754, 7, 3447, 1758, 7, 19182, 90, 9792, 92, 7, 9310, 62, 75, 86, 62, 259, 14692, 42029, 62, 282, 3077, 78, 1, 7131, 25, 46570, 352, 11, 1058, 828, 299, 65, 358, 11, 352, 4008, 1303, 477, 11760, 779, 976, 435, 3077, 78, 198, 220, 220, 220, 1303, 47232, 26171, 198, 220, 220, 220, 1976, 268, 342, 796, 15690, 90, 9792, 11, 352, 92, 7, 13500, 17, 6335, 764, 9, 288, 82, 62, 75, 86, 62, 259, 14692, 82, 6192, 62, 4801, 342, 62, 9248, 1, 7131, 25, 12962, 198, 220, 220, 220, 47537, 796, 15690, 90, 9792, 11, 352, 92, 7, 9310, 62, 75, 86, 62, 259, 14692, 23350, 62, 82, 6192, 62, 343, 6335, 3610, 1, 7131, 25, 12962, 198, 220, 220, 220, 1303, 2512, 503, 951, 84, 4182, 82, 351, 1976, 268, 342, 1875, 18074, 222, 14, 17, 198, 220, 220, 220, 779, 4033, 796, 4722, 19182, 7, 917, 891, 11, 299, 4033, 8, 198, 220, 220, 220, 779, 4033, 764, 28, 352, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 77, 4033, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1976, 268, 342, 58, 72, 60, 1875, 19446, 7, 46582, 8, 1220, 362, 532, 362, 1635, 304, 862, 7, 9792, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47537, 58, 72, 60, 796, 19446, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 779, 4033, 58, 72, 60, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1976, 268, 342, 796, 17051, 90, 9792, 11, 352, 92, 7, 4801, 342, 8, 198, 220, 220, 220, 47537, 796, 17051, 90, 9792, 11, 352, 92, 7, 343, 6335, 8, 198, 220, 220, 220, 1303, 47232, 26171, 628, 220, 220, 220, 279, 62, 2768, 796, 288, 82, 62, 75, 86, 62, 259, 14692, 18302, 62, 5715, 1, 7131, 47715, 628, 220, 220, 220, 23145, 62, 521, 796, 279, 62, 2768, 58, 16, 11, 352, 60, 1875, 279, 62, 2768, 58, 437, 11, 352, 60, 5633, 357, 16, 25, 77, 2768, 8, 1058, 357, 77, 2768, 21912, 16, 25, 16, 8, 198, 220, 220, 220, 3830, 62, 521, 796, 279, 62, 2768, 58, 16, 11, 352, 60, 1875, 279, 62, 2768, 58, 437, 11, 352, 60, 5633, 357, 16, 25, 77, 10724, 8, 1058, 357, 77, 10724, 21912, 16, 25, 16, 8, 628, 220, 220, 220, 279, 62, 2768, 58, 2768, 62, 521, 58, 437, 4357, 1058, 60, 764, 28, 35847, 13, 79, 62, 5420, 62, 1084, 628, 220, 220, 220, 279, 62, 2768, 796, 17051, 90, 9792, 11, 362, 92, 7, 79, 62, 2768, 58, 2768, 62, 521, 11, 1058, 12962, 198, 220, 220, 220, 279, 62, 10724, 796, 17051, 90, 9792, 11, 362, 92, 7, 9310, 62, 75, 86, 62, 259, 14692, 18302, 62, 29289, 1, 7131, 25, 7131, 10724, 62, 521, 11, 1058, 12962, 198, 220, 220, 220, 256, 62, 2768, 796, 17051, 90, 9792, 11, 362, 92, 7, 9310, 62, 75, 86, 62, 259, 14692, 29510, 62, 5715, 1, 7131, 25, 7131, 2768, 62, 521, 11, 1058, 11, 1033, 62, 3919, 12962, 198, 220, 220, 220, 256, 62, 10724, 796, 17051, 90, 9792, 11, 362, 92, 7, 9310, 62, 75, 86, 62, 259, 14692, 29510, 62, 29289, 1, 7131, 25, 7131, 10724, 62, 521, 11, 1058, 11, 1033, 62, 3919, 12962, 628, 220, 220, 220, 256, 62, 82, 16072, 796, 17051, 90, 9792, 11, 352, 92, 7, 9310, 62, 75, 86, 62, 259, 14692, 42029, 62, 11498, 21069, 1, 7131, 45299, 1033, 62, 3919, 12962, 198, 220, 220, 220, 951, 62, 39140, 796, 17051, 90, 9792, 11, 362, 92, 7, 917, 891, 11, 299, 10724, 11, 299, 4033, 8, 628, 220, 220, 220, 1303, 11725, 6115, 17090, 22423, 220, 628, 220, 220, 220, 410, 43395, 62, 71, 17, 78, 796, 48076, 17, 35, 7, 9310, 62, 75, 86, 62, 259, 14692, 7050, 62, 85, 12687, 1, 7131, 25, 7131, 10724, 62, 521, 11, 1058, 11, 1033, 62, 3919, 12962, 1303, 410, 43395, 286, 367, 17, 46, 290, 440, 18, 198, 220, 220, 220, 410, 43395, 62, 78, 18, 796, 48076, 17, 35, 7, 9310, 62, 75, 86, 62, 259, 14692, 8590, 505, 1, 7131, 25, 7131, 10724, 62, 521, 11, 1058, 11, 1033, 62, 3919, 12962, 220, 220, 220, 220, 220, 220, 1303, 7565, 351, 6001, 628, 220, 220, 220, 45887, 10366, 796, 1976, 27498, 7, 9792, 11, 299, 22649, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 1073, 17, 8973, 60, 796, 198, 220, 220, 220, 220, 220, 220, 220, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 29255, 62, 67, 16671, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 29255, 62, 67, 16671, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 77, 17, 78, 8973, 60, 796, 198, 220, 220, 220, 220, 220, 220, 220, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 48825, 7596, 62, 28885, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 48825, 7596, 62, 28885, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 1073, 8973, 60, 796, 198, 220, 220, 220, 220, 220, 220, 220, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 29255, 62, 2144, 28885, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 29255, 62, 2144, 28885, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 354, 19, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 76, 2788, 1531, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 76, 2788, 1531, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 78, 17, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 23536, 5235, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 23536, 5235, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 77, 17, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 48825, 8648, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 48825, 8648, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 535, 75, 19, 8973, 60, 796, 198, 220, 220, 220, 220, 220, 220, 220, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 29255, 62, 83, 21879, 620, 4685, 485, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 29255, 62, 83, 21879, 620, 4685, 485, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 12993, 66, 1157, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 12993, 66, 1157, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 12993, 66, 1157, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 12993, 66, 1065, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 12993, 66, 1065, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 12993, 66, 1065, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 12993, 66, 1828, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 71, 12993, 66, 1828, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 71, 12993, 66, 1828, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 71, 16072, 21139, 64, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 71, 16072, 21139, 64, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 71, 16072, 21139, 64, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 71, 16072, 11623, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 71, 16072, 11623, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 71, 16072, 11623, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 71, 16072, 1954, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 71, 16072, 1954, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 71, 16072, 1954, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 71, 16072, 2624, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 71, 16072, 2624, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 71, 16072, 2624, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 71, 16072, 19880, 64, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 71, 16072, 19880, 64, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 71, 16072, 19880, 64, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 45887, 10366, 58, 312, 87, 62, 70, 1386, 14692, 12993, 19, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 12993, 19, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 71, 16072, 1954, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 1303, 220, 220, 220, 410, 43395, 58, 312, 87, 62, 70, 1386, 14692, 3919, 17, 8973, 60, 796, 19446, 7, 9310, 62, 75, 86, 62, 259, 14692, 3919, 17, 62, 15548, 1, 7131, 11201, 62, 3919, 12962, 1635, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4814, 422, 5128, 2393, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21136, 7, 9792, 11, 288, 82, 62, 75, 86, 62, 259, 14692, 71, 16072, 2624, 62, 15548, 1, 4083, 1078, 822, 14692, 41667, 8973, 8, 628, 220, 220, 220, 1303, 770, 1672, 1341, 2419, 32477, 10795, 13522, 552, 1009, 284, 307, 6414, 351, 262, 198, 220, 220, 220, 1303, 7473, 5446, 1565, 371, 14181, 44, 16960, 1332, 1339, 13, 198, 220, 220, 220, 24061, 62, 4033, 62, 39140, 0, 7, 79, 62, 2768, 11, 951, 62, 39140, 11, 5772, 62, 2617, 11, 410, 43395, 62, 71, 17, 78, 11, 3042, 8, 1303, 262, 1672, 1341, 2419, 3042, 1912, 13522, 17952, 628, 220, 220, 220, 410, 43395, 796, 569, 13599, 7, 14761, 81, 62, 71, 17, 78, 11, 410, 43395, 62, 78, 18, 11, 48076, 16, 35, 7, 14761, 10366, 4008, 198, 220, 220, 220, 269, 335, 62, 81, 62, 14822, 62, 4528, 80, 796, 2147, 198, 220, 220, 220, 269, 335, 62, 81, 62, 14822, 62, 501, 796, 2147, 198, 220, 220, 220, 269, 335, 62, 6978, 62, 4528, 80, 796, 2147, 198, 220, 220, 220, 269, 335, 62, 6978, 62, 501, 796, 2147, 198, 220, 220, 220, 269, 335, 62, 27932, 796, 2147, 198, 220, 220, 220, 4771, 62, 81, 456, 796, 352, 198, 220, 220, 220, 1303, 1783, 438, 198, 220, 220, 220, 1441, 357, 198, 220, 220, 220, 220, 220, 220, 220, 41516, 9012, 90, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19446, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1659, 7, 83, 62, 82, 16072, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1659, 7, 15460, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1659, 7, 79, 62, 2768, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1659, 7, 66, 335, 62, 81, 62, 14822, 62, 4528, 80, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1659, 7, 66, 335, 62, 27932, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1659, 7, 14761, 81, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 261, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3042, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 2768, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 2768, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 82, 16072, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 39140, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 43395, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 335, 62, 81, 62, 14822, 62, 4528, 80, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 335, 62, 81, 62, 14822, 62, 501, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 335, 62, 6978, 62, 4528, 80, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 335, 62, 6978, 62, 501, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 335, 62, 27932, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4771, 62, 81, 456, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 4033, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 22649, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 264, 16072, 62, 30561, 11, 198, 220, 220, 220, 220, 220, 220, 220, 264, 16072, 62, 282, 65, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 268, 342, 11, 198, 220, 220, 220, 220, 220, 220, 220, 47537, 11, 198, 220, 220, 220, 220, 220, 220, 220, 779, 4033, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 1303, 28, 198, 220, 220, 220, 1441, 357, 198, 220, 220, 220, 220, 220, 220, 220, 11459, 2953, 6384, 15011, 9012, 90, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19446, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17051, 90, 9792, 11, 16, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1659, 7, 15460, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17051, 90, 9792, 11, 17, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1659, 7, 14761, 81, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 261, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3042, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 2768, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 2768, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 82, 16072, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 39140, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 43395, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 4033, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 22649, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 264, 16072, 62, 30561, 11, 198, 220, 220, 220, 220, 220, 220, 220, 264, 16072, 62, 282, 65, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 268, 342, 11, 198, 220, 220, 220, 220, 220, 220, 220, 47537, 11, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 796, 2, 198, 198, 437, 198 ]
1.765647
3,499
<reponame>xijiang/AGH.jl<gh_stars>0 """ function read_g012(file) --- This function read a `plink 012` genotype `file`. It return a named tuple, with an `ID` string vector, and `genotype` Int8 matrix. Note, this function doesn't do error check. The file integrity should be checked before this function. The genotype matrix is of `nLoci` by `nID`, i.e., ID column majored. Genotypes of the same ID are in the same column. """ function read_g012(file) # Determine the dimensions of the genotypes nid = countlines(file) nlc = length(split(readline(file))) - 1 id = String[] genotype = zeros(Int8, nlc, nid) i = 1 for line in eachline(file) # ToDo: speed up this reading using buffer. t = split(line) push!(id, t[1]) genotype[:, i] = parse.(Int8, t[2:end]) i += 1 end return (ID = id, genotype = genotype) end
[ 27, 7856, 261, 480, 29, 87, 2926, 15483, 14, 4760, 39, 13, 20362, 27, 456, 62, 30783, 29, 15, 198, 37811, 198, 220, 220, 220, 2163, 1100, 62, 70, 30206, 7, 7753, 8, 198, 6329, 198, 1212, 2163, 1100, 257, 4600, 489, 676, 5534, 17, 63, 2429, 8690, 4600, 7753, 44646, 198, 1026, 1441, 257, 3706, 46545, 11, 351, 281, 4600, 2389, 63, 4731, 15879, 11, 198, 392, 4600, 5235, 8690, 63, 2558, 23, 17593, 13, 198, 198, 6425, 11, 428, 2163, 1595, 470, 466, 4049, 2198, 13, 198, 464, 2393, 11540, 815, 307, 10667, 878, 428, 2163, 13, 198, 198, 464, 2429, 8690, 17593, 318, 286, 4600, 77, 43, 1733, 63, 416, 4600, 77, 2389, 47671, 1312, 13, 68, 1539, 4522, 5721, 16486, 1850, 13, 198, 13746, 13567, 286, 262, 976, 4522, 389, 287, 262, 976, 5721, 13, 198, 37811, 198, 8818, 1100, 62, 70, 30206, 7, 7753, 8, 198, 220, 220, 220, 1303, 45559, 3810, 262, 15225, 286, 262, 2429, 13567, 198, 220, 220, 220, 299, 312, 796, 954, 6615, 7, 7753, 8, 198, 220, 220, 220, 299, 44601, 796, 4129, 7, 35312, 7, 961, 1370, 7, 7753, 22305, 532, 352, 198, 220, 220, 220, 4686, 796, 10903, 21737, 198, 220, 220, 220, 2429, 8690, 796, 1976, 27498, 7, 5317, 23, 11, 299, 44601, 11, 299, 312, 8, 198, 220, 220, 220, 1312, 796, 352, 198, 220, 220, 220, 329, 1627, 287, 1123, 1370, 7, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1675, 5211, 25, 2866, 510, 428, 3555, 1262, 11876, 13, 198, 220, 220, 220, 220, 220, 220, 220, 256, 796, 6626, 7, 1370, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 312, 11, 256, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2429, 8690, 58, 45299, 1312, 60, 796, 21136, 12195, 5317, 23, 11, 256, 58, 17, 25, 437, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 357, 2389, 796, 4686, 11, 2429, 8690, 796, 2429, 8690, 8, 198, 437, 198 ]
2.537143
350
<filename>misc/judge.jl using PkgBenchmark: judge, target_result, baseline_result, writeresults, export_markdown mkpath("tmp") JUDGE_BASELINE = get(ENV, "JUDGE_BASELINE", "^HEAD") results = judge("LyapunovExponents", JUDGE_BASELINE) writeresults("tmp/benchmarks_target.json", target_result(results)) writeresults("tmp/benchmarks_baseline.json", baseline_result(results)) export_markdown("tmp/benchmarks_judge.md", results) showall(results) println()
[ 27, 34345, 29, 44374, 14, 10456, 469, 13, 20362, 198, 3500, 350, 10025, 44199, 4102, 25, 5052, 11, 2496, 62, 20274, 11, 14805, 62, 20274, 11, 198, 220, 220, 220, 3551, 43420, 11, 10784, 62, 4102, 2902, 198, 198, 28015, 6978, 7203, 22065, 4943, 198, 41, 8322, 8264, 62, 33, 1921, 3698, 8881, 796, 651, 7, 1677, 53, 11, 366, 41, 8322, 8264, 62, 33, 1921, 3698, 8881, 1600, 366, 61, 37682, 4943, 198, 43420, 796, 5052, 7203, 31633, 499, 403, 709, 16870, 3906, 1600, 449, 8322, 8264, 62, 33, 1921, 3698, 8881, 8, 198, 13564, 43420, 7203, 22065, 14, 26968, 14306, 62, 16793, 13, 17752, 1600, 2496, 62, 20274, 7, 43420, 4008, 198, 13564, 43420, 7203, 22065, 14, 26968, 14306, 62, 12093, 4470, 13, 17752, 1600, 14805, 62, 20274, 7, 43420, 4008, 198, 39344, 62, 4102, 2902, 7203, 22065, 14, 26968, 14306, 62, 10456, 469, 13, 9132, 1600, 2482, 8, 198, 12860, 439, 7, 43420, 8, 198, 35235, 3419, 198 ]
2.826087
161
""" Re-factoring and re-implementation of MGT """ module GapLas import Printf: @printf import GraphIdx import GraphIdx: Graph, EdgeGraph, Edge, Weights, WeightedGraph import GraphIdx: PrimMstMem, prim_mst_edges import GraphIdx.Tree: RootedTree import ..Dual: dual!, gap_vec! import ..TreeDP: TreeDPMem, tree_dp! import ..TreeFlow: extract_non_tree!, update_tree! struct Sol{N} x::Array{Float64, N} Ξ±::Vector{Float64} end struct GapMem{N, WL<:Weights{Float64}} sol::Sol{N} y_tree::Array{Float64,N} Ξ±_tree::Vector{Float64} Ξ»_tree::WL gamma::Vector{Float64} wgraph::WeightedGraph egraph::EdgeGraph dp_mem::TreeDPMem mst::PrimMstMem tree::RootedTree end function GapMem(y::Array{Float64,N}, graph::Graph, lambda::Weights{Float64}) where {N} @assert length(y) == GraphIdx.num_nodes(graph) root_node = 1 m = GraphIdx.num_edges(graph) n = GraphIdx.num_nodes(graph) Ξ»_tree = similar(lambda, n) Ξ±_tree = Vector{Float64}(undef, n) egraph = collect(graph) mst = PrimMstMem(egraph) lam = Float64[lambda[i] for i=1:m] tree = RootedTree(root_node, mst.parent) return GapMem( Sol(copy(y), zeros(Float64, m)), # sol similar(y), # y_tree Ξ±_tree, Ξ»_tree, Vector{Float64}(undef, m), # gamma WeightedGraph(mst.neighbors, lam), egraph, TreeDPMem(n), mst, tree, ) end """ General framework for iterated tree optimizer: 1. Allocate memory (of type `Mem`) 2. Call `gaplas!(mem, y, graph, Ξ», ΞΌ)` in every iteration (`max_iter` many times). !!! note `mem` must contain a `gamma` and an `x` field """ function gaplas( y::Array{Float64,N}, graph::GraphT, lambda::Weights{Float64}, mu::W2, ::Type{Mem} = GapMem; max_iter::Int = 5, verbose::Bool = true, )::Array{Float64,N} where {N, GraphT<:Graph, W2<:Weights{Float64}, Mem} mem = Mem(y, graph, lambda) for it in 1:max_iter gaplas!(mem, y, graph, lambda, mu) if verbose let gap = -sum(mem.gamma) @printf("%4d %12.4f\n", it, gap) end end end return mem.sol.x end """ Optional: node weights `ΞΌ` are set to `GraphIdx.Ones{Float64}` """ function gaplas( y::Array{Float64,N}, graph::Graph, lambda::Weights{Float64}, ::Type{Mem} = GapMem; max_iter::Int = 5, verbose::Bool = true, )::Array{Float64,N} where {N, Mem} gaplas( y, graph, lambda, GraphIdx.Ones{Float64}(), Mem; max_iter=max_iter, verbose=verbose ) end """ Called in every iteration. Implements the actual optimization, i.e. """ function gaplas!( mem::GapMem{N, W1}, y::Array{Float64,N}, graph::Graph, lambda::Weights{Float64}, mu::Weights{Float64}, ) where {N, W1<:Weights{Float64}} find_gap_tree!(mem, y, graph, lambda) tree_dp!(mem.sol.x, mem.y_tree, mem.tree, mem.Ξ»_tree, mu, mem.dp_mem) mem.Ξ±_tree .= vec(mem.sol.x) .- vec(mem.y_tree) dual!(mem.Ξ±_tree, mem.dp_mem.proc_order, mem.mst.parent) update_tree!( mem.sol.Ξ±, mem.Ξ±_tree, mem.mst.selected, mem.egraph, mem.mst.parent, ) end """ Determine a tree by choosing edges with high gap value. """ function find_gap_tree!( mem::GapMem{N, W1}, y::Array{Float64,N}, graph::Graph, lambda::Weights{Float64} ) where {N, W1<:Weights{Float64}} gap_vec!(mem.gamma, mem.sol.x, mem.sol.Ξ±, mem.wgraph, -1.0) prim_mst_edges(mem.gamma, mem.tree.root, mem.mst) mem.y_tree .= y extract_non_tree!( graph, mem.mst.parent, mem.y_tree, mem.sol.Ξ±, mem.Ξ»_tree, lambda, ) end end
[ 37811, 198, 3041, 12, 22584, 3255, 290, 302, 12, 320, 32851, 286, 337, 19555, 198, 37811, 198, 21412, 33899, 46898, 198, 198, 11748, 12578, 69, 25, 2488, 37435, 198, 11748, 29681, 7390, 87, 198, 11748, 29681, 7390, 87, 25, 29681, 11, 13113, 37065, 11, 13113, 11, 775, 2337, 11, 14331, 276, 37065, 198, 11748, 29681, 7390, 87, 25, 11460, 44, 301, 13579, 11, 2684, 62, 76, 301, 62, 276, 3212, 198, 11748, 29681, 7390, 87, 13, 27660, 25, 20410, 276, 27660, 198, 198, 11748, 11485, 36248, 25, 10668, 28265, 7625, 62, 35138, 0, 198, 11748, 11485, 27660, 6322, 25, 12200, 35, 5868, 368, 11, 5509, 62, 26059, 0, 198, 11748, 11485, 27660, 37535, 25, 7925, 62, 13159, 62, 21048, 28265, 4296, 62, 21048, 0, 628, 198, 7249, 4294, 90, 45, 92, 198, 220, 220, 220, 2124, 3712, 19182, 90, 43879, 2414, 11, 399, 92, 198, 220, 220, 220, 26367, 3712, 38469, 90, 43879, 2414, 92, 198, 437, 628, 198, 7249, 33899, 13579, 90, 45, 11, 370, 43, 27, 25, 1135, 2337, 90, 43879, 2414, 11709, 198, 220, 220, 220, 1540, 3712, 36949, 90, 45, 92, 198, 220, 220, 220, 331, 62, 21048, 3712, 19182, 90, 43879, 2414, 11, 45, 92, 198, 220, 220, 220, 26367, 62, 21048, 3712, 38469, 90, 43879, 2414, 92, 198, 220, 220, 220, 7377, 119, 62, 21048, 3712, 54, 43, 198, 220, 220, 220, 34236, 3712, 38469, 90, 43879, 2414, 92, 198, 220, 220, 220, 266, 34960, 3712, 25844, 276, 37065, 198, 220, 220, 220, 29206, 1470, 3712, 37021, 37065, 198, 220, 220, 220, 288, 79, 62, 11883, 3712, 27660, 35, 5868, 368, 198, 220, 220, 220, 285, 301, 3712, 23828, 44, 301, 13579, 198, 220, 220, 220, 5509, 3712, 30016, 276, 27660, 198, 437, 628, 198, 8818, 33899, 13579, 7, 88, 3712, 19182, 90, 43879, 2414, 11, 45, 5512, 4823, 3712, 37065, 11, 37456, 3712, 1135, 2337, 90, 43879, 2414, 30072, 810, 1391, 45, 92, 198, 220, 220, 220, 2488, 30493, 4129, 7, 88, 8, 6624, 29681, 7390, 87, 13, 22510, 62, 77, 4147, 7, 34960, 8, 198, 220, 220, 220, 6808, 62, 17440, 796, 352, 198, 220, 220, 220, 285, 796, 29681, 7390, 87, 13, 22510, 62, 276, 3212, 7, 34960, 8, 198, 220, 220, 220, 299, 796, 29681, 7390, 87, 13, 22510, 62, 77, 4147, 7, 34960, 8, 198, 220, 220, 220, 7377, 119, 62, 21048, 796, 2092, 7, 50033, 11, 299, 8, 198, 220, 220, 220, 26367, 62, 21048, 796, 20650, 90, 43879, 2414, 92, 7, 917, 891, 11, 299, 8, 198, 220, 220, 220, 29206, 1470, 796, 2824, 7, 34960, 8, 198, 220, 220, 220, 285, 301, 796, 11460, 44, 301, 13579, 7, 1533, 1470, 8, 198, 220, 220, 220, 30592, 796, 48436, 2414, 58, 50033, 58, 72, 60, 329, 1312, 28, 16, 25, 76, 60, 198, 220, 220, 220, 5509, 796, 20410, 276, 27660, 7, 15763, 62, 17440, 11, 285, 301, 13, 8000, 8, 198, 220, 220, 220, 1441, 33899, 13579, 7, 198, 220, 220, 220, 220, 220, 220, 220, 4294, 7, 30073, 7, 88, 828, 1976, 27498, 7, 43879, 2414, 11, 285, 36911, 1303, 1540, 198, 220, 220, 220, 220, 220, 220, 220, 2092, 7, 88, 828, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 331, 62, 21048, 198, 220, 220, 220, 220, 220, 220, 220, 26367, 62, 21048, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7377, 119, 62, 21048, 11, 198, 220, 220, 220, 220, 220, 220, 220, 20650, 90, 43879, 2414, 92, 7, 917, 891, 11, 285, 828, 220, 220, 220, 220, 220, 1303, 34236, 198, 220, 220, 220, 220, 220, 220, 220, 14331, 276, 37065, 7, 76, 301, 13, 710, 394, 32289, 11, 30592, 828, 198, 220, 220, 220, 220, 220, 220, 220, 29206, 1470, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12200, 35, 5868, 368, 7, 77, 828, 198, 220, 220, 220, 220, 220, 220, 220, 285, 301, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5509, 11, 198, 220, 220, 220, 1267, 198, 437, 628, 198, 37811, 198, 12218, 9355, 329, 11629, 515, 5509, 6436, 7509, 25, 198, 16, 13, 1439, 13369, 4088, 357, 1659, 2099, 4600, 13579, 63, 8, 198, 17, 13, 4889, 4600, 4908, 489, 292, 0, 7, 11883, 11, 331, 11, 4823, 11, 7377, 119, 11, 18919, 8, 63, 287, 790, 24415, 357, 63, 9806, 62, 2676, 63, 867, 1661, 737, 198, 198, 10185, 3465, 628, 220, 220, 220, 4600, 11883, 63, 1276, 3994, 257, 4600, 28483, 2611, 63, 290, 281, 4600, 87, 63, 2214, 198, 198, 37811, 198, 8818, 31986, 489, 292, 7, 198, 220, 220, 220, 331, 3712, 19182, 90, 43879, 2414, 11, 45, 5512, 198, 220, 220, 220, 4823, 3712, 37065, 51, 11, 198, 220, 220, 220, 37456, 3712, 1135, 2337, 90, 43879, 2414, 5512, 198, 220, 220, 220, 38779, 3712, 54, 17, 11, 198, 220, 220, 220, 7904, 6030, 90, 13579, 92, 796, 33899, 13579, 26, 198, 220, 220, 220, 3509, 62, 2676, 3712, 5317, 796, 642, 11, 198, 220, 220, 220, 15942, 577, 3712, 33, 970, 796, 2081, 11, 198, 2599, 25, 19182, 90, 43879, 2414, 11, 45, 92, 810, 1391, 45, 11, 29681, 51, 27, 25, 37065, 11, 370, 17, 27, 25, 1135, 2337, 90, 43879, 2414, 5512, 4942, 92, 198, 220, 220, 220, 1066, 796, 4942, 7, 88, 11, 4823, 11, 37456, 8, 198, 220, 220, 220, 329, 340, 287, 352, 25, 9806, 62, 2676, 198, 220, 220, 220, 220, 220, 220, 220, 31986, 489, 292, 0, 7, 11883, 11, 331, 11, 4823, 11, 37456, 11, 38779, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1309, 7625, 796, 532, 16345, 7, 11883, 13, 28483, 2611, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 37435, 7203, 4, 19, 67, 4064, 1065, 13, 19, 69, 59, 77, 1600, 340, 11, 7625, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1066, 13, 34453, 13, 87, 198, 437, 198, 198, 37811, 198, 198, 30719, 25, 10139, 19590, 4600, 34703, 63, 389, 900, 284, 4600, 37065, 7390, 87, 13, 2202, 274, 90, 43879, 2414, 92, 63, 198, 37811, 198, 8818, 31986, 489, 292, 7, 198, 220, 220, 220, 331, 3712, 19182, 90, 43879, 2414, 11, 45, 5512, 198, 220, 220, 220, 4823, 3712, 37065, 11, 198, 220, 220, 220, 37456, 3712, 1135, 2337, 90, 43879, 2414, 5512, 198, 220, 220, 220, 7904, 6030, 90, 13579, 92, 796, 33899, 13579, 26, 198, 220, 220, 220, 3509, 62, 2676, 3712, 5317, 796, 642, 11, 198, 220, 220, 220, 15942, 577, 3712, 33, 970, 796, 2081, 11, 198, 2599, 25, 19182, 90, 43879, 2414, 11, 45, 92, 810, 1391, 45, 11, 4942, 92, 198, 220, 220, 220, 31986, 489, 292, 7, 198, 220, 220, 220, 220, 220, 220, 220, 331, 11, 4823, 11, 37456, 11, 29681, 7390, 87, 13, 2202, 274, 90, 43879, 2414, 92, 22784, 4942, 26, 3509, 62, 2676, 28, 9806, 62, 2676, 11, 15942, 577, 28, 19011, 577, 198, 220, 220, 220, 1267, 198, 437, 628, 198, 198, 37811, 198, 34, 4262, 287, 790, 24415, 13, 198, 3546, 1154, 902, 262, 4036, 23989, 11, 1312, 13, 68, 13, 198, 37811, 198, 8818, 31986, 489, 292, 0, 7, 198, 220, 220, 220, 1066, 3712, 38, 499, 13579, 90, 45, 11, 370, 16, 5512, 198, 220, 220, 220, 331, 3712, 19182, 90, 43879, 2414, 11, 45, 5512, 198, 220, 220, 220, 4823, 3712, 37065, 11, 198, 220, 220, 220, 37456, 3712, 1135, 2337, 90, 43879, 2414, 5512, 198, 220, 220, 220, 38779, 3712, 1135, 2337, 90, 43879, 2414, 5512, 198, 8, 810, 1391, 45, 11, 370, 16, 27, 25, 1135, 2337, 90, 43879, 2414, 11709, 198, 220, 220, 220, 1064, 62, 43554, 62, 21048, 0, 7, 11883, 11, 331, 11, 4823, 11, 37456, 8, 198, 220, 220, 220, 5509, 62, 26059, 0, 7, 11883, 13, 34453, 13, 87, 11, 1066, 13, 88, 62, 21048, 11, 1066, 13, 21048, 11, 1066, 13, 39377, 62, 21048, 11, 38779, 11, 1066, 13, 26059, 62, 11883, 8, 198, 220, 220, 220, 1066, 13, 17394, 62, 21048, 764, 28, 43030, 7, 11883, 13, 34453, 13, 87, 8, 764, 12, 43030, 7, 11883, 13, 88, 62, 21048, 8, 198, 220, 220, 220, 10668, 0, 7, 11883, 13, 17394, 62, 21048, 11, 1066, 13, 26059, 62, 11883, 13, 36942, 62, 2875, 11, 1066, 13, 76, 301, 13, 8000, 8, 198, 220, 220, 220, 4296, 62, 21048, 0, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1066, 13, 34453, 13, 17394, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1066, 13, 17394, 62, 21048, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1066, 13, 76, 301, 13, 34213, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1066, 13, 1533, 1470, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1066, 13, 76, 301, 13, 8000, 11, 198, 220, 220, 220, 1267, 198, 437, 628, 198, 37811, 198, 35, 2357, 3810, 257, 5509, 416, 11236, 13015, 351, 1029, 7625, 1988, 13, 198, 37811, 198, 8818, 1064, 62, 43554, 62, 21048, 0, 7, 198, 220, 220, 220, 1066, 3712, 38, 499, 13579, 90, 45, 11, 370, 16, 5512, 331, 3712, 19182, 90, 43879, 2414, 11, 45, 5512, 4823, 3712, 37065, 11, 37456, 3712, 1135, 2337, 90, 43879, 2414, 92, 198, 8, 810, 1391, 45, 11, 370, 16, 27, 25, 1135, 2337, 90, 43879, 2414, 11709, 198, 220, 220, 220, 7625, 62, 35138, 0, 7, 11883, 13, 28483, 2611, 11, 1066, 13, 34453, 13, 87, 11, 1066, 13, 34453, 13, 17394, 11, 1066, 13, 86, 34960, 11, 532, 16, 13, 15, 8, 198, 220, 220, 220, 2684, 62, 76, 301, 62, 276, 3212, 7, 11883, 13, 28483, 2611, 11, 1066, 13, 21048, 13, 15763, 11, 1066, 13, 76, 301, 8, 198, 220, 220, 220, 1066, 13, 88, 62, 21048, 764, 28, 331, 198, 220, 220, 220, 7925, 62, 13159, 62, 21048, 0, 7, 198, 220, 220, 220, 220, 220, 220, 220, 4823, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1066, 13, 76, 301, 13, 8000, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1066, 13, 88, 62, 21048, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1066, 13, 34453, 13, 17394, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1066, 13, 39377, 62, 21048, 11, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 11, 198, 220, 220, 220, 1267, 198, 437, 628, 198, 437, 198 ]
2.085297
1,782
using DrWatson @quickactivate "dummy_project" using DrWatsonSim using BSON using Dates function long_running_computation(p,output_path) sleep(p[:duration]) result = p[:a]^p[:b] BSON.bson(output_path, Dict(:result=>result)) return nothing end duration = [0.1, 1] a = [1,3] b = 1 parameter = @dict duration a b if in_simulation_mode() # Using simid() here is actually better, because then the # no lookup it the index file is need which means, that the # database must not be loked. m = Metadata(simdir()) println("$(simid()): Loaded metadata file") m["type"] = "Simple Computation" m["started at"] = Dates.now() println("$(simid()): Creating new files") m_new = Metadata(simdir("newfile")) m_new["extra"] = "This should be blocked" println("$(simid()): Done creating new file") end @runsync x->long_running_computation(x, simdir("output.bson")) dict_list(parameter) datadir("sims") if in_simulation_mode() @info "Simulation done" simid() isfile(simdir("output_first_run.bson")) || mv(simdir("output.bson"),simdir("output_first_run.bson")) end if !in_simulation_mode() @info "All simulations done" for folder in readdir(datadir("sims")) path = datadir("sims", folder) @rerunsync x->long_running_computation(x, simdir("output.bson")) path end end
[ 3500, 1583, 54, 13506, 198, 31, 24209, 39022, 366, 67, 13513, 62, 16302, 1, 198, 3500, 1583, 54, 13506, 8890, 198, 3500, 347, 11782, 198, 3500, 44712, 198, 198, 8818, 890, 62, 20270, 62, 785, 1996, 341, 7, 79, 11, 22915, 62, 6978, 8, 198, 220, 220, 220, 3993, 7, 79, 58, 25, 32257, 12962, 198, 220, 220, 220, 1255, 796, 279, 58, 25, 64, 60, 61, 79, 58, 25, 65, 60, 198, 220, 220, 220, 347, 11782, 13, 1443, 261, 7, 22915, 62, 6978, 11, 360, 713, 7, 25, 20274, 14804, 20274, 4008, 198, 220, 220, 220, 1441, 2147, 198, 437, 198, 198, 32257, 796, 685, 15, 13, 16, 11, 352, 60, 198, 64, 796, 685, 16, 11, 18, 60, 198, 65, 796, 352, 198, 17143, 2357, 796, 2488, 11600, 9478, 257, 275, 198, 198, 361, 287, 62, 14323, 1741, 62, 14171, 3419, 198, 220, 220, 220, 1303, 8554, 985, 312, 3419, 994, 318, 1682, 1365, 11, 780, 788, 262, 220, 198, 220, 220, 220, 1303, 645, 35847, 340, 262, 6376, 2393, 318, 761, 543, 1724, 11, 326, 262, 220, 198, 220, 220, 220, 1303, 6831, 1276, 407, 307, 300, 6545, 13, 198, 220, 220, 220, 285, 796, 3395, 14706, 7, 14323, 15908, 28955, 198, 220, 220, 220, 44872, 7203, 3, 7, 14323, 312, 3419, 2599, 42485, 20150, 2393, 4943, 198, 220, 220, 220, 285, 14692, 4906, 8973, 796, 366, 26437, 22476, 341, 1, 198, 220, 220, 220, 285, 14692, 46981, 379, 8973, 796, 44712, 13, 2197, 3419, 198, 220, 220, 220, 44872, 7203, 3, 7, 14323, 312, 3419, 2599, 30481, 649, 3696, 4943, 198, 220, 220, 220, 285, 62, 3605, 796, 3395, 14706, 7, 14323, 15908, 7203, 3605, 7753, 48774, 198, 220, 220, 220, 285, 62, 3605, 14692, 26086, 8973, 796, 366, 1212, 815, 307, 10226, 1, 198, 220, 220, 220, 44872, 7203, 3, 7, 14323, 312, 3419, 2599, 24429, 4441, 649, 2393, 4943, 198, 437, 198, 198, 31, 5143, 27261, 2124, 3784, 6511, 62, 20270, 62, 785, 1996, 341, 7, 87, 11, 985, 15908, 7203, 22915, 13, 1443, 261, 48774, 8633, 62, 4868, 7, 17143, 2357, 8, 4818, 324, 343, 7203, 82, 12078, 4943, 198, 198, 361, 287, 62, 14323, 1741, 62, 14171, 3419, 198, 220, 220, 220, 2488, 10951, 366, 8890, 1741, 1760, 1, 985, 312, 3419, 198, 220, 220, 220, 318, 7753, 7, 14323, 15908, 7203, 22915, 62, 11085, 62, 5143, 13, 1443, 261, 48774, 8614, 285, 85, 7, 14323, 15908, 7203, 22915, 13, 1443, 261, 12340, 14323, 15908, 7203, 22915, 62, 11085, 62, 5143, 13, 1443, 261, 48774, 198, 437, 198, 198, 361, 5145, 259, 62, 14323, 1741, 62, 14171, 3419, 198, 220, 220, 220, 2488, 10951, 366, 3237, 27785, 1760, 1, 198, 220, 220, 220, 329, 9483, 287, 1100, 15908, 7, 19608, 324, 343, 7203, 82, 12078, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 3108, 796, 4818, 324, 343, 7203, 82, 12078, 1600, 9483, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 260, 5143, 27261, 2124, 3784, 6511, 62, 20270, 62, 785, 1996, 341, 7, 87, 11, 985, 15908, 7203, 22915, 13, 1443, 261, 48774, 3108, 198, 220, 220, 220, 886, 198, 437, 198 ]
2.567619
525
<reponame>igutierrezm/ANOVADDPTest.jl<filename>src/poisson.jl struct PoissonData X::Matrix{Int} x::Vector{Int} y::Vector{Int} Xunique::Vector{Vector{Int}} function PoissonData(X::Matrix{Int}, y::Vector{Int}) x = denserank([X[i, :] for i in 1:size(X, 1)]) Xunique = sort(unique([X[i, :] for i in 1:size(X, 1)])) new(X, x, y, Xunique) end end PoissonData(x::Vector{Int}, y::Vector{Int}) = PoissonData(x[:, :], y) struct PoissonDDP <: AbstractDPM parent::DPM a0::Float64 b0::Float64 a1::Vector{Vector{Int}} b1::Vector{Vector{Int}} sumlogu::Vector{Vector{Float64}} gammaprior::Womack gamma::Vector{Bool} G::Int function PoissonDDP( rng::AbstractRNG, N::Int, G::Int; K0::Int = 1, αa0::Float64 = 2.0, αb0::Float64 = 4.0, a0::Float64 = 2.0, b0::Float64 = 4.0, ΢0::Float64 = 1.0, ) parent = DPM(rng, N; K0, a0 = αa0, b0 = αb0) a1 = [a0 * ones(Int, G)] b1 = [b0 * ones(Int, G)] sumlogu = [zeros(G)] gammaprior = Womack(G - 1, ΢0) gamma = ones(Bool, G) new(parent, a0, b0, a1, b1, sumlogu, gammaprior, gamma, G) end end function parent_dpm(m::PoissonDDP) m.parent end function add_cluster!(m::PoissonDDP) @extract m : G a0 b0 a1 b1 sumlogu push!(a1, a0 * ones(G)) push!(b1, b0 * ones(G)) push!(sumlogu, zeros(G)) end function update_suffstats!(m::PoissonDDP, data) @extract data : y x @extract m : a0 b0 a1 b1 sumlogu gamma d = cluster_labels(m) while length(a1) < cluster_capacity(m) add_cluster!(m) end for k in active_clusters(m) a1[k] .= a0 b1[k] .= b0 sumlogu[k] .= 0.0 end for i = 1:length(y) di = d[i] zi = iszero(gamma[x[i]]) ? 1 : x[i] sumlogu[di][zi] += logfactorial(y[i]) a1[di][zi] += y[i] b1[di][zi] += 1 end end function update_suffstats!(m::PoissonDDP, data, i::Int, k1::Int, k2::Int) @extract data : y x @extract m : a0 b0 a1 b1 sumlogu gamma while length(a1) < cluster_capacity(m) add_cluster!(m) end zi = iszero(gamma[x[i]]) ? 1 : x[i] # Modify cluster/group k2/zi a1[k2][zi] += y[i] b1[k2][zi] += 1 sumlogu[k2][zi] += logfactorial(y[i]) # Modify cluster/group k1/zi a1[k1][zi] -= y[i] b1[k1][zi] -= 1 sumlogu[k1][zi] -= logfactorial(y[i]) end function logpredlik(m::PoissonDDP, data, i::Int, k::Int) d = cluster_labels(m) @extract m : a1 b1 gamma @extract data : y x j = iszero(gamma[x[i]]) ? 1 : x[i] a1kj = a1[k][j] - (d[i] == k) * y[i] b1kj = b1[k][j] - (d[i] == k) return logpdf(NegativeBinomial(a1kj, b1kj / (b1kj + 1)), y[i]) end function logpredlik(m::PoissonDDP, train, predict, i::Int, k::Int) @extract m : a1 b1 gamma @extract predict : y x j = iszero(gamma[x[i]]) ? 1 : x[i] a1kj = a1[k][j] b1kj = b1[k][j] return logpdf(NegativeBinomial(a1kj, b1kj / (b1kj + 1)), y[i]) end function logmglik(m::PoissonDDP, j::Int, k::Int) @extract m : a0 b0 a1 b1 sumlogu return ( a0 * log(b0) - a1[k][j] * log(b1[k][j]) + loggamma(a1[k][j]) - loggamma(a0) - sumlogu[k][j] ) end function update_gamma!(rng::AbstractRNG, m::PoissonDDP, data) @extract m : gammaprior gamma A = active_clusters(m) # Resample gamma[g], given the other gamma's for g = 2:length(gamma) # log-odds (numerator) gamma[g] = 1 update_suffstats!(m, data) log_num = logpdf(gammaprior, gamma[2:end]) for k ∈ A, j ∈ (1, g) log_num += logmglik(m, j, k) end # log-odds (denominator) gamma[g] = 0 update_suffstats!(m, data) log_den = logpdf(gammaprior, gamma[2:end]) for k ∈ A, j ∈ (1) log_den += logmglik(m, j, k) end # log-odds and new gamma[g] log_odds = log_num - log_den gamma[g] = rand(rng) <= 1 / (1 + exp(-log_odds)) end end function update_hyperpars!(rng::AbstractRNG, m::PoissonDDP, data) update_gamma!(rng, m, data) end # <NAME> (<EMAIL>) University of Tartu, Tartu, Estonia
[ 27, 7856, 261, 480, 29, 328, 315, 44448, 76, 14, 1565, 8874, 2885, 6322, 14402, 13, 20362, 27, 34345, 29, 10677, 14, 7501, 30927, 13, 20362, 198, 7249, 7695, 30927, 6601, 198, 220, 220, 220, 1395, 3712, 46912, 90, 5317, 92, 198, 220, 220, 220, 2124, 3712, 38469, 90, 5317, 92, 198, 220, 220, 220, 331, 3712, 38469, 90, 5317, 92, 198, 220, 220, 220, 1395, 34642, 3712, 38469, 90, 38469, 90, 5317, 11709, 198, 220, 220, 220, 2163, 7695, 30927, 6601, 7, 55, 3712, 46912, 90, 5317, 5512, 331, 3712, 38469, 90, 5317, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 29509, 263, 962, 26933, 55, 58, 72, 11, 1058, 60, 329, 1312, 287, 352, 25, 7857, 7, 55, 11, 352, 8, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1395, 34642, 796, 3297, 7, 34642, 26933, 55, 58, 72, 11, 1058, 60, 329, 1312, 287, 352, 25, 7857, 7, 55, 11, 352, 15437, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 649, 7, 55, 11, 2124, 11, 331, 11, 1395, 34642, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 18833, 30927, 6601, 7, 87, 3712, 38469, 90, 5317, 5512, 331, 3712, 38469, 90, 5317, 30072, 796, 7695, 30927, 6601, 7, 87, 58, 45299, 1058, 4357, 331, 8, 198, 198, 7249, 7695, 30927, 35, 6322, 1279, 25, 27741, 35, 5868, 198, 220, 220, 220, 2560, 3712, 35, 5868, 198, 220, 220, 220, 257, 15, 3712, 43879, 2414, 198, 220, 220, 220, 275, 15, 3712, 43879, 2414, 198, 220, 220, 220, 257, 16, 3712, 38469, 90, 38469, 90, 5317, 11709, 198, 220, 220, 220, 275, 16, 3712, 38469, 90, 38469, 90, 5317, 11709, 198, 220, 220, 220, 2160, 6404, 84, 3712, 38469, 90, 38469, 90, 43879, 2414, 11709, 198, 220, 220, 220, 308, 6475, 499, 7701, 3712, 54, 296, 441, 198, 220, 220, 220, 34236, 3712, 38469, 90, 33, 970, 92, 198, 220, 220, 220, 402, 3712, 5317, 198, 220, 220, 220, 2163, 7695, 30927, 35, 6322, 7, 198, 220, 220, 220, 220, 220, 220, 220, 374, 782, 3712, 23839, 49, 10503, 11, 198, 220, 220, 220, 220, 220, 220, 220, 399, 3712, 5317, 11, 198, 220, 220, 220, 220, 220, 220, 220, 402, 3712, 5317, 26, 198, 220, 220, 220, 220, 220, 220, 220, 509, 15, 3712, 5317, 796, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26367, 64, 15, 3712, 43879, 2414, 796, 362, 13, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26367, 65, 15, 3712, 43879, 2414, 796, 604, 13, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 257, 15, 3712, 43879, 2414, 796, 362, 13, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 275, 15, 3712, 43879, 2414, 796, 604, 13, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7377, 114, 15, 3712, 43879, 2414, 796, 352, 13, 15, 11, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2560, 796, 360, 5868, 7, 81, 782, 11, 399, 26, 509, 15, 11, 257, 15, 796, 26367, 64, 15, 11, 275, 15, 796, 26367, 65, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 257, 16, 796, 685, 64, 15, 1635, 3392, 7, 5317, 11, 402, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 275, 16, 796, 685, 65, 15, 1635, 3392, 7, 5317, 11, 402, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 6404, 84, 796, 685, 9107, 418, 7, 38, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 308, 6475, 499, 7701, 796, 370, 296, 441, 7, 38, 532, 352, 11, 7377, 114, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 34236, 796, 3392, 7, 33, 970, 11, 402, 8, 198, 220, 220, 220, 220, 220, 220, 220, 649, 7, 8000, 11, 257, 15, 11, 275, 15, 11, 257, 16, 11, 275, 16, 11, 2160, 6404, 84, 11, 308, 6475, 499, 7701, 11, 34236, 11, 402, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 2560, 62, 67, 4426, 7, 76, 3712, 18833, 30927, 35, 6322, 8, 198, 220, 220, 220, 285, 13, 8000, 198, 437, 198, 198, 8818, 751, 62, 565, 5819, 0, 7, 76, 3712, 18833, 30927, 35, 6322, 8, 198, 220, 220, 220, 2488, 2302, 974, 285, 1058, 402, 257, 15, 275, 15, 257, 16, 275, 16, 2160, 6404, 84, 198, 220, 220, 220, 4574, 0, 7, 64, 16, 11, 257, 15, 1635, 3392, 7, 38, 4008, 198, 220, 220, 220, 4574, 0, 7, 65, 16, 11, 275, 15, 1635, 3392, 7, 38, 4008, 198, 220, 220, 220, 4574, 0, 7, 16345, 6404, 84, 11, 1976, 27498, 7, 38, 4008, 198, 437, 198, 198, 8818, 4296, 62, 37333, 34242, 0, 7, 76, 3712, 18833, 30927, 35, 6322, 11, 1366, 8, 198, 220, 220, 220, 2488, 2302, 974, 1366, 1058, 331, 2124, 198, 220, 220, 220, 2488, 2302, 974, 285, 1058, 257, 15, 275, 15, 257, 16, 275, 16, 2160, 6404, 84, 34236, 198, 220, 220, 220, 288, 796, 13946, 62, 23912, 1424, 7, 76, 8, 198, 220, 220, 220, 981, 4129, 7, 64, 16, 8, 1279, 13946, 62, 42404, 7, 76, 8, 198, 220, 220, 220, 220, 220, 220, 220, 751, 62, 565, 5819, 0, 7, 76, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 479, 287, 4075, 62, 565, 13654, 7, 76, 8, 198, 220, 220, 220, 220, 220, 220, 220, 257, 16, 58, 74, 60, 764, 28, 257, 15, 198, 220, 220, 220, 220, 220, 220, 220, 275, 16, 58, 74, 60, 764, 28, 275, 15, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 6404, 84, 58, 74, 60, 764, 28, 657, 13, 15, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 13664, 7, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2566, 796, 288, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 72, 796, 318, 22570, 7, 28483, 2611, 58, 87, 58, 72, 11907, 8, 5633, 352, 1058, 2124, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 6404, 84, 58, 10989, 7131, 17027, 60, 15853, 2604, 22584, 5132, 7, 88, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 257, 16, 58, 10989, 7131, 17027, 60, 15853, 331, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 275, 16, 58, 10989, 7131, 17027, 60, 15853, 352, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 4296, 62, 37333, 34242, 0, 7, 76, 3712, 18833, 30927, 35, 6322, 11, 1366, 11, 1312, 3712, 5317, 11, 479, 16, 3712, 5317, 11, 479, 17, 3712, 5317, 8, 198, 220, 220, 220, 2488, 2302, 974, 1366, 1058, 331, 2124, 198, 220, 220, 220, 2488, 2302, 974, 285, 1058, 257, 15, 275, 15, 257, 16, 275, 16, 2160, 6404, 84, 34236, 198, 220, 220, 220, 981, 4129, 7, 64, 16, 8, 1279, 13946, 62, 42404, 7, 76, 8, 198, 220, 220, 220, 220, 220, 220, 220, 751, 62, 565, 5819, 0, 7, 76, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1976, 72, 796, 318, 22570, 7, 28483, 2611, 58, 87, 58, 72, 11907, 8, 5633, 352, 1058, 2124, 58, 72, 60, 628, 220, 220, 220, 1303, 3401, 1958, 13946, 14, 8094, 479, 17, 14, 17027, 198, 220, 220, 220, 257, 16, 58, 74, 17, 7131, 17027, 60, 15853, 331, 58, 72, 60, 198, 220, 220, 220, 275, 16, 58, 74, 17, 7131, 17027, 60, 15853, 352, 198, 220, 220, 220, 2160, 6404, 84, 58, 74, 17, 7131, 17027, 60, 15853, 2604, 22584, 5132, 7, 88, 58, 72, 12962, 628, 220, 220, 220, 1303, 3401, 1958, 13946, 14, 8094, 479, 16, 14, 17027, 198, 220, 220, 220, 257, 16, 58, 74, 16, 7131, 17027, 60, 48185, 331, 58, 72, 60, 198, 220, 220, 220, 275, 16, 58, 74, 16, 7131, 17027, 60, 48185, 352, 198, 220, 220, 220, 2160, 6404, 84, 58, 74, 16, 7131, 17027, 60, 48185, 2604, 22584, 5132, 7, 88, 58, 72, 12962, 198, 437, 198, 198, 8818, 2604, 28764, 46965, 7, 76, 3712, 18833, 30927, 35, 6322, 11, 1366, 11, 1312, 3712, 5317, 11, 479, 3712, 5317, 8, 198, 220, 220, 220, 288, 796, 13946, 62, 23912, 1424, 7, 76, 8, 198, 220, 220, 220, 2488, 2302, 974, 285, 1058, 257, 16, 275, 16, 34236, 198, 220, 220, 220, 2488, 2302, 974, 1366, 1058, 331, 2124, 198, 220, 220, 220, 474, 796, 318, 22570, 7, 28483, 2611, 58, 87, 58, 72, 11907, 8, 5633, 352, 1058, 2124, 58, 72, 60, 198, 220, 220, 220, 257, 16, 42421, 796, 257, 16, 58, 74, 7131, 73, 60, 532, 357, 67, 58, 72, 60, 6624, 479, 8, 1635, 331, 58, 72, 60, 198, 220, 220, 220, 275, 16, 42421, 796, 275, 16, 58, 74, 7131, 73, 60, 532, 357, 67, 58, 72, 60, 6624, 479, 8, 198, 220, 220, 220, 1441, 2604, 12315, 7, 32863, 876, 33, 259, 49070, 7, 64, 16, 42421, 11, 275, 16, 42421, 1220, 357, 65, 16, 42421, 1343, 352, 36911, 331, 58, 72, 12962, 198, 437, 198, 198, 8818, 2604, 28764, 46965, 7, 76, 3712, 18833, 30927, 35, 6322, 11, 4512, 11, 4331, 11, 1312, 3712, 5317, 11, 479, 3712, 5317, 8, 198, 220, 220, 220, 2488, 2302, 974, 285, 1058, 257, 16, 275, 16, 34236, 198, 220, 220, 220, 2488, 2302, 974, 4331, 1058, 331, 2124, 198, 220, 220, 220, 474, 796, 318, 22570, 7, 28483, 2611, 58, 87, 58, 72, 11907, 8, 5633, 352, 1058, 2124, 58, 72, 60, 198, 220, 220, 220, 257, 16, 42421, 796, 257, 16, 58, 74, 7131, 73, 60, 198, 220, 220, 220, 275, 16, 42421, 796, 275, 16, 58, 74, 7131, 73, 60, 198, 220, 220, 220, 1441, 2604, 12315, 7, 32863, 876, 33, 259, 49070, 7, 64, 16, 42421, 11, 275, 16, 42421, 1220, 357, 65, 16, 42421, 1343, 352, 36911, 331, 58, 72, 12962, 198, 437, 198, 198, 8818, 2604, 76, 4743, 1134, 7, 76, 3712, 18833, 30927, 35, 6322, 11, 474, 3712, 5317, 11, 479, 3712, 5317, 8, 198, 220, 220, 220, 2488, 2302, 974, 285, 1058, 257, 15, 275, 15, 257, 16, 275, 16, 2160, 6404, 84, 198, 220, 220, 220, 1441, 357, 198, 220, 220, 220, 220, 220, 220, 220, 257, 15, 1635, 2604, 7, 65, 15, 8, 532, 257, 16, 58, 74, 7131, 73, 60, 1635, 2604, 7, 65, 16, 58, 74, 7131, 73, 12962, 1343, 198, 220, 220, 220, 220, 220, 220, 220, 2604, 28483, 2611, 7, 64, 16, 58, 74, 7131, 73, 12962, 532, 2604, 28483, 2611, 7, 64, 15, 8, 532, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 6404, 84, 58, 74, 7131, 73, 60, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 4296, 62, 28483, 2611, 0, 7, 81, 782, 3712, 23839, 49, 10503, 11, 285, 3712, 18833, 30927, 35, 6322, 11, 1366, 8, 198, 220, 220, 220, 2488, 2302, 974, 285, 1058, 308, 6475, 499, 7701, 34236, 198, 220, 220, 220, 317, 796, 4075, 62, 565, 13654, 7, 76, 8, 628, 220, 220, 220, 1303, 1874, 1403, 34236, 58, 70, 4357, 1813, 262, 584, 34236, 338, 198, 220, 220, 220, 329, 308, 796, 362, 25, 13664, 7, 28483, 2611, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2604, 12, 5088, 82, 357, 77, 6975, 1352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 34236, 58, 70, 60, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 37333, 34242, 0, 7, 76, 11, 1366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2604, 62, 22510, 796, 2604, 12315, 7, 70, 6475, 499, 7701, 11, 34236, 58, 17, 25, 437, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 329, 479, 18872, 230, 317, 11, 474, 18872, 230, 357, 16, 11, 308, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2604, 62, 22510, 15853, 2604, 76, 4743, 1134, 7, 76, 11, 474, 11, 479, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 2604, 12, 5088, 82, 357, 6559, 6351, 1352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 34236, 58, 70, 60, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 37333, 34242, 0, 7, 76, 11, 1366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2604, 62, 6559, 796, 2604, 12315, 7, 70, 6475, 499, 7701, 11, 34236, 58, 17, 25, 437, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 329, 479, 18872, 230, 317, 11, 474, 18872, 230, 357, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2604, 62, 6559, 15853, 2604, 76, 4743, 1134, 7, 76, 11, 474, 11, 479, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 2604, 12, 5088, 82, 290, 649, 34236, 58, 70, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2604, 62, 5088, 82, 796, 2604, 62, 22510, 532, 2604, 62, 6559, 198, 220, 220, 220, 220, 220, 220, 220, 34236, 58, 70, 60, 796, 43720, 7, 81, 782, 8, 19841, 352, 1220, 357, 16, 1343, 1033, 32590, 6404, 62, 5088, 82, 4008, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 4296, 62, 49229, 79, 945, 0, 7, 81, 782, 3712, 23839, 49, 10503, 11, 285, 3712, 18833, 30927, 35, 6322, 11, 1366, 8, 198, 220, 220, 220, 4296, 62, 28483, 2611, 0, 7, 81, 782, 11, 285, 11, 1366, 8, 198, 437, 198, 198, 2, 1279, 20608, 29, 38155, 27630, 4146, 43734, 2059, 286, 37109, 84, 11, 37109, 84, 11, 30912, 198 ]
1.858834
2,281
<gh_stars>0 using FuzzySets, Test step_size = 0.005 levels = collect(0:step_size:1) A₁ = FuzzyNumber(levels, number=1) Aβ‚‚ = FuzzyNumber(levels, number=2) B₁ = FuzzyNumber(levels, number=0) Bβ‚‚ = FuzzyNumber(levels, number=0) Aβƒ— = FuzzyVector([A₁, Aβ‚‚]) @test length(Aβƒ—) == 2 @test Aβƒ—[1] == A₁ @test Aβƒ—[2] == Aβ‚‚ @test iterate(Aβƒ—, 1) == A₁ @test iterate(Aβƒ—, 2) == Aβ‚‚ @test isnothing(iterate(Aβƒ—, 3)) Bβƒ— = FuzzyVector([B₁]) @test length(Bβƒ—) == 1 @test Bβƒ—[1] == B₁ Bβƒ— = Bβƒ— βˆͺ [Bβ‚‚] @test length(Bβƒ—) == 2 @test Bβƒ—[1] == B₁ @test Bβƒ—[2] == Bβ‚‚ @test Aβƒ— == Aβƒ— @test Aβƒ— == FuzzyVector([A₁, Aβ‚‚]) @test Bβƒ— != FuzzyVector([A₁, Aβ‚‚]) @test cut(Aβƒ—, 0) == [Interval(0.5, 1.5), Interval(1.5, 2.5)] @test cut(Aβƒ—, 1) == [Interval(1), Interval(2)] C₁ = FuzzyNumber(levels, number=-1) Cβ‚‚ = FuzzyNumber(levels, number=3) Cβƒ— = FuzzyVector([C₁, Cβ‚‚]) patterns = [Aβƒ—, Cβƒ—] @test cut(patterns, 1, 1) == [Interval(1), Interval(-1)] @test cut(patterns, 2, 1) == [Interval(2), Interval(3)]
[ 27, 456, 62, 30783, 29, 15, 198, 3500, 376, 4715, 88, 50, 1039, 11, 6208, 198, 198, 9662, 62, 7857, 796, 657, 13, 22544, 198, 46170, 796, 2824, 7, 15, 25, 9662, 62, 7857, 25, 16, 8, 198, 198, 32, 158, 224, 223, 796, 376, 4715, 88, 15057, 7, 46170, 11, 1271, 28, 16, 8, 198, 32, 158, 224, 224, 796, 376, 4715, 88, 15057, 7, 46170, 11, 1271, 28, 17, 8, 198, 33, 158, 224, 223, 796, 376, 4715, 88, 15057, 7, 46170, 11, 1271, 28, 15, 8, 198, 33, 158, 224, 224, 796, 376, 4715, 88, 15057, 7, 46170, 11, 1271, 28, 15, 8, 198, 198, 32, 158, 225, 245, 796, 376, 4715, 88, 38469, 26933, 32, 158, 224, 223, 11, 317, 158, 224, 224, 12962, 198, 31, 9288, 4129, 7, 32, 158, 225, 245, 8, 6624, 362, 198, 31, 9288, 317, 158, 225, 245, 58, 16, 60, 6624, 317, 158, 224, 223, 198, 31, 9288, 317, 158, 225, 245, 58, 17, 60, 6624, 317, 158, 224, 224, 198, 31, 9288, 11629, 378, 7, 32, 158, 225, 245, 11, 352, 8, 6624, 317, 158, 224, 223, 198, 31, 9288, 11629, 378, 7, 32, 158, 225, 245, 11, 362, 8, 6624, 317, 158, 224, 224, 198, 31, 9288, 318, 22366, 7, 2676, 378, 7, 32, 158, 225, 245, 11, 513, 4008, 198, 198, 33, 158, 225, 245, 796, 376, 4715, 88, 38469, 26933, 33, 158, 224, 223, 12962, 198, 31, 9288, 4129, 7, 33, 158, 225, 245, 8, 6624, 352, 198, 31, 9288, 347, 158, 225, 245, 58, 16, 60, 6624, 347, 158, 224, 223, 198, 33, 158, 225, 245, 796, 347, 158, 225, 245, 18872, 103, 685, 33, 158, 224, 224, 60, 198, 31, 9288, 4129, 7, 33, 158, 225, 245, 8, 6624, 362, 198, 31, 9288, 347, 158, 225, 245, 58, 16, 60, 6624, 347, 158, 224, 223, 198, 31, 9288, 347, 158, 225, 245, 58, 17, 60, 6624, 347, 158, 224, 224, 198, 198, 31, 9288, 317, 158, 225, 245, 6624, 317, 158, 225, 245, 198, 31, 9288, 317, 158, 225, 245, 6624, 376, 4715, 88, 38469, 26933, 32, 158, 224, 223, 11, 317, 158, 224, 224, 12962, 198, 31, 9288, 347, 158, 225, 245, 14512, 376, 4715, 88, 38469, 26933, 32, 158, 224, 223, 11, 317, 158, 224, 224, 12962, 198, 198, 31, 9288, 2005, 7, 32, 158, 225, 245, 11, 657, 8, 6624, 685, 9492, 2100, 7, 15, 13, 20, 11, 352, 13, 20, 828, 4225, 2100, 7, 16, 13, 20, 11, 362, 13, 20, 15437, 198, 31, 9288, 2005, 7, 32, 158, 225, 245, 11, 352, 8, 6624, 685, 9492, 2100, 7, 16, 828, 4225, 2100, 7, 17, 15437, 198, 198, 34, 158, 224, 223, 796, 376, 4715, 88, 15057, 7, 46170, 11, 1271, 10779, 16, 8, 198, 34, 158, 224, 224, 796, 376, 4715, 88, 15057, 7, 46170, 11, 1271, 28, 18, 8, 198, 34, 158, 225, 245, 796, 376, 4715, 88, 38469, 26933, 34, 158, 224, 223, 11, 327, 158, 224, 224, 12962, 198, 198, 33279, 82, 796, 685, 32, 158, 225, 245, 11, 327, 158, 225, 245, 60, 198, 31, 9288, 2005, 7, 33279, 82, 11, 352, 11, 352, 8, 6624, 685, 9492, 2100, 7, 16, 828, 4225, 2100, 32590, 16, 15437, 198, 31, 9288, 2005, 7, 33279, 82, 11, 362, 11, 352, 8, 6624, 685, 9492, 2100, 7, 17, 828, 4225, 2100, 7, 18, 15437 ]
1.696113
566
module PeriodizeSC using Cubature: hcubature using Cuba using JSON using NPZ _Nc = 4 _NcN = 8 #Sites for nambu = _Nc*2 # Global Variables II = eye(Complex{Float64}, _Nc) ZEROS = zeros(Complex{Float64}, _Nc, _Nc) """ Type ModelVector holds all the relevant quantities needed for computations. The built-in member function ModelVector() creates an instance of the type ModelVector. #Arguments of ModelVector(): - t_::Float64: Nearest-neighbor hopping amplitude (Float64) - tp_::Float64: Second nearest-neighbor hopping amplitude (Float64) - tpp_::Float64: Third nearest-neighbor hopping amplitude (Float64) - mu_::Float64: Chemical potential (Float64) - wvec_::Float64: Matsubara frequency grid (Array{Complex{Float64}, 1}) - sEvec_c::Array{Complex{Float64}, 3}: Vector of self-energies (Array{Complex{Float64}, 3}) - cumulants_::Array{Complex{Float64}, 3}: Vector of cumulants of the Green's function (Array{Complex{Float64}, 3}) #Returns: - ModelVector instance. """ type ModelVector t_::Float64 ; tp_::Float64 ; tpp_::Float64; mu_::Float64 wvec_::Array{Complex{Float64}, 1} ; sEvec_c_::Array{Complex{Float64}, 3} cumulants_::Array{Complex{Float64}, 3} function ModelVector(t::Float64, tp::Float64, tpp::Float64, mu::Float64, wvec::Array{Complex{Float64}, 1}, sEvec_c::Array{Complex{Float64}, 3}) cumulants = build_cumulants(wvec, mu, sEvec_c) return new(t, tp, tpp, mu, wvec, sEvec_c, cumulants) end end """ Function member of the type ModelVector returning the cumulant of the Green's function. Useful to compute the superfluid stiffness by periodizing the cumulant. #Arguments: - wvec_::Array{Complex{Float64}, 1}: Matsubara frequency grid (Array{Complex{Float64}, 1}) - mu_::Float64: Chemical potential (Float64) - sEvec_c_::Array{Complex{Float64}, 3}: Vector of self-energies (Array{Complex{Float64}, 3}) #Returns: - cumulants: Cumulants of the Green's function (Complex{Float64} matrix of size 2*Nc X 2*Nc) """ function build_cumulants(wvec::Array{Complex{Float64}, 1}, mu::Float64, sEvec_c::Array{Complex{Float64}, 3}) cumulants = zeros(Complex{Float64}, size(sEvec_c)) for (ii, ww) in enumerate(wvec) tmp = zeros(Complex{Float64}, (_NcN, _NcN)) tmp[1, 1] = tmp[2, 2] = tmp[3, 3] = tmp[4, 4] = (ww + mu) tmp[5, 5] = tmp[6, 6] = tmp[7, 7] = tmp[8, 8] = -conj((ww + mu)) tmp -= sEvec_c[ii, :, :] cumulants[ii, :, :] = inv(tmp) end return cumulants end """ Type Model holds all the relevant quantities needed for computations for a given Matsubara frequency. The built-in member function Model() instantiates an object that a priori has a type ModelVector. #Arguments of Model(): - modelvec: Object of type ModelVector - ii::Integer: Matsubara frequency index number (Int64) #Returns: - Model instance. """ type Model t_::Float64 ; tp_::Float64 ; tpp_::Float64 ; mu_::Float64 w_::Complex{Float64} ; sE_::Array{Complex{Float64}, 2} cumulant_::Array{Complex{Float64}, 2} function Model(modelvec::ModelVector, ii::Integer) (t, tp, tpp, mu, w, sE_c, cumulant) = (modelvec.t_, modelvec.tp_, modelvec.tpp_, modelvec.mu_, modelvec.wvec_[ii], modelvec.sEvec_c_[ii, :, :], modelvec.cumulants_[ii, :, :]) return new(t, tp, tpp, mu, w, sE_c, cumulant) end end """ Function to construct the nearest-neighbor dispersion relation on CuO2 square lattice. #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - epsilonk: Value of the dispersion relation on the 2d reciprocal lattice """ function epsilonk(model::Model, kx::Float64, ky::Float64) epsilonk = -2.0*model.t_*(cos(kx) + cos(ky)) return epsilonk end """ Function to construct the nearest-neighbor dispersion relation derivative with respect to kx on CuO2 square lattice. #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - dxepsilonk: Value of the dispersion relation derivative along kx on the 2d reciprocal lattice """ function Dxepsilonk(model::Model, kx::Float64, ky::Float64) dxepsilonk = 2.0*model.t_*sin(kx) return dxepsilonk end """ Function to construct the nearest-neighbor dispersion relation derivative with respect to ky on CuO2 square lattice. #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - dyepsilonk: Value of the dispersion relation derivative along ky on the 2d reciprocal lattice """ function Dyepsilonk(model::Model, kx::Float64, ky::Float64) dyepsilonk = 2.0*model.t_*sin(ky) return dyepsilonk end """ Function to construct the second nearest-neighbor dispersion relation on CuO2 square lattice. #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - zetak: Value of the dispersion relation on the 2d reciprocal lattice """ function zetak(model::Model, kx::Float64, ky::Float64) zetak = -2.0*model.tp_*(cos(kx+ky) + cos(kx-ky)) return zetak end """ Function to construct the second nearest-neighbor dispersion relation derivative along kx on CuO2 square lattice. #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - dxzetak: Value of the dispersion relation derivative along kx on the 2d reciprocal lattice """ function Dxzetak(model::Model, kx::Float64, ky::Float64) dxzetak = 2.0*model.tp_*(sin(kx+ky)+sin(kx-ky)) return dxzetak end """ Function to construct the second nearest-neighbor dispersion relation derivative along ky on CuO2 square lattice. #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - dyzetak: Value of the dispersion relation derivative along ky on the 2d reciprocal lattice """ function Dyzetak(model::Model, kx::Float64, ky::Float64) dyzetak = 2.0*model.tp_*(sin(kx+ky)-sin(kx-ky)) return dyzetak end """ Function to construct the third nearest-neighbor dispersion relation on CuO2 square lattice. #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - omegak: Value of the dispersion relation on the 2d reciprocal lattice """ function omegak(model::Model, kx::Float64, ky::Float64) omegak = -2.0*model.tpp_*(cos(2.0*kx)+cos(2.0*ky)) return omegak end """ Function to construct the third nearest-neighbor dispersion relation derivative along kx on CuO2 square lattice #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - dxomegak: Value of the dispersion relation derivative along kx on the 2d reciprocal lattice """ function Dxomegak(model::Model, kx::Float64, ky::Float64) dxomegak = 4.0*model.tpp_*sin(2.0*kx) return dxomegak end """ Function to construct the third-nearest-neighbor dispersion relation derivative along ky on CuO2 square lattice #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - dyomegak: Value of the dispersion relation derivative along ky on the 2d reciprocal lattice """ function Dyomegak(model::Model, kx::Float64, ky::Float64) dyomegak = 4.0*model.tpp_*sin(2.0*ky) return dyomegak end """ Function to construct the full dispersion relation on CuO2 square lattice #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - eps_0: Value of the full dispersion relation on the 2d reciprocal lattice """ function eps_0(model::Model, kx::Float64, ky::Float64) return(epsilonk(model,kx,ky)+zetak(model,kx,ky)+omegak(model,kx,ky)) end ############################################################################## Important Note ########################################################################### ## The following functions construct the bare current vertices used when computing the in-plane superfluid stiffness. The situation in which each and every one of the ## ## functions is used is specified. ## ######################################################################################################################################################################### ######## Cumulant and Green's function periodization schemes SC only function DxDxEpsilonbark(model::Model, kx::Float64, ky::Float64) return (Dxepsilonk(model,kx,ky)+Dxzetak(model,kx,ky)+Dxomegak(model,kx,ky))*(Dxepsilonk(model,kx,ky)+Dxzetak(model,kx,ky)+Dxomegak(model,kx,ky)) end function DyDyEpsilonbark(model::Model, kx::Float64, ky::Float64) return (Dyepsilonk(model,kx,ky)+Dyzetak(model,kx,ky)+Dyomegak(model,kx,ky))*(Dyepsilonk(model,kx,ky)+Dyzetak(model,kx,ky)+Dyomegak(model,kx,ky)) end ####### Cumulant and Green's function periodization schemes SC+AFM mixed state function DxDxZetakbar(model::Model, kx::Float64, ky::Float64) return (Dxzetak(model,kx,ky)+Dxomegak(model,kx,ky))*(Dxzetak(model,kx,ky)+Dxomegak(model,kx,ky)) end function DyDyZetakbar(model::Model, kx::Float64, ky::Float64) return (Dyzetak(model,kx,ky)+Dyomegak(model,kx,ky))*(Dyzetak(model,kx,ky)+Dyomegak(model,kx,ky)) end function DxDxZetakbarepsilonk(model::Model, kx::Float64, ky::Float64) return (Dxzetak(model,kx,ky)+Dxomegak(model,kx,ky))*Dxepsilonk(model,kx,ky) end function DyDyZetakbarepsilonk(model::Model, kx::Float64, ky::Float64) return (Dyzetak(model,kx,ky)+Dyomegak(model,kx,ky))*Dyepsilonk(model,kx,ky) end ######## Trace scheme for SC+AFM mixed state function DxDxzetak(model::Model, kx::Float64, ky::Float64) return Dxzetak(model,kx,ky)*Dxzetak(model,kx,ky) end function DyDyzetak(model::Model, kx::Float64, ky::Float64) return Dyzetak(model,kx,ky)*Dyzetak(model,kx,ky) end function DxDxomegak(model::Model, kx::Float64, ky::Float64) return Dxomegak(model,kx,ky)*Dxomegak(model,kx,ky) end function DyDyomegak(model::Model, kx::Float64, ky::Float64) return Dyomegak(model,kx,ky)*Dyomegak(model,kx,ky) end function DxDxepsilonk(model::Model, kx::Float64, ky::Float64) return Dxepsilonk(model,kx,ky)*Dxepsilonk(model,kx,ky) end function DyDyepsilonk(model::Model, kx::Float64, ky::Float64) return Dyepsilonk(model,kx,ky)*Dyepsilonk(model,kx,ky) end function DxDxzetakomegak(model::Model, kx::Float64, ky::Float64) return Dxzetak(model,kx,ky)*Dxomegak(model,kx,ky) end function DyDyzetakomegak(model::Model, kx::Float64, ky::Float64) return Dyzetak(model,kx,ky)*Dyomegak(model,kx,ky) end function DxDxzetakepsilonk(model::Model, kx::Float64, ky::Float64) return Dxzetak(model,kx,ky)*Dxepsilonk(model,kx,ky) end function DyDyzetakepsilonk(model::Model, kx::Float64, ky::Float64) return Dyzetak(model,kx,ky)*Dyepsilonk(model,kx,ky) end function DxDxomegakepsilonk(model::Model, kx::Float64, ky::Float64) return Dxomegak(model,kx,ky)*Dxepsilonk(model,kx,ky) end function DyDyomegakepsilonk(model::Model, kx::Float64, ky::Float64) return Dyomegak(model,kx,ky)*Dyepsilonk(model,kx,ky) end ###################################################################### End of Important Note ################################################################################ ############################################################################################################################################################################# """ Function defining the hopping between two layers (CuO2 planes) within a unit cell. #Arguments: - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - tperp_squared: Value of the bilayer hopping in terms of the in-plane wavevectors (Represents the current vertices in the current-current correlation function) """ function tperp(kx::Float64,ky::Float64) coskx = cos(kx) cosky = cos(ky) tperp = -(coskx-cosky)*(coskx-cosky) tperp_squared = tperp*tperp return 1/2*tperp_squared ### In reality, one must add a factor of 1/2 to account of the integral along z-axis. end """ Function adding the proper phases proportional to the reduced supercluster BZ to the intercluster hoppings. #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - 2N_c x 2N_c complex-valued matrix t(k^{tilde}) """ function tktilde(model::Model, kx::Float64, ky::Float64) t = model.t_ ; tp = model.tp_; tpp = model.tpp_ k = [kx, ky] r_sites = [[0.0, 0.0], [1.0, 0.0], [0.0, 1.0], [1.0, 1.0]] K_sites = pi*deepcopy(r_sites) t_array = zeros(Complex{Float64}, (_Nc, _Nc)) for i in 1:_Nc for j in 1:_Nc for K in K_sites t_array[i, j] += 1.0/_Nc * exp(1.0im*dot(K + k, r_sites[i] - r_sites[j])) * eps_0(model, (K + k)...) end end end return (vcat(hcat(t_array, ZEROS), hcat(ZEROS, -t_array))) end """ Function building the full cluster Green's function. #Arguments: - model: model instance to have access to the attributes such as hopping elements, self-energy and chemical potential - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - gf_ktilde: 2N_c x 2N_c complex-valued matrix G_c(i omega_n,k^{tilde}) """ function build_gf_ktilde(model::Model, kx::Float64, ky::Float64) zz = (model.w_ + model.mu_)*II zz_c = -conj(-conj(model.w_) + model.mu_)*II tmp_zz = (vcat(hcat(zz, ZEROS), hcat(ZEROS, -conj(zz)))) #### -conj(zz) gf_ktilde = inv(tmp_zz - tktilde(model, kx, ky) - model.sE_) return gf_ktilde end """ Function pre-computing the full cluster Green's function on the BZ. Useful to speed up in-plane computations. #Arguments: - model: model instance to have access to the attributes such as hopping elements, self-energy and chemical potential - tk_el::Array{Complex{Float64},2}: pre-computed k-tilde-dependent hopping term (t(k^{tilde})) #Returns: - gf_ktilde: 2N_c x 2N_c complex-valued matrix G_c(i omega_n,k^{tilde}) """ function build_gf_ktilde_prebuild(model::Model, tk_el::Array{Complex{Float64},2}) zz = (model.w_ + model.mu_)*II tmp_zz = (vcat(hcat(zz, ZEROS), hcat(ZEROS, -conj(zz)))) #Same thing as zz_c = -conj(-conj(model.w_) + model.mu_)*II gf_ktilde = inv(tmp_zz - tk_el - model.sE_) return gf_ktilde end """ Function used to periodize the Green's function with SC only. #Arguments: - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction - args::Array{Complex{Float64},2}: Lattice Green's function in terms of k_tilde before being periodized (Array{Complex{Float64}, 2}) #Returns: - nambu_periodized: Periodized lattice Green's function (Complex{Float64}-valued matrix 0.5*Nc X 0.5*Nc) """ function periodize_nocoex(kx::Float64, ky::Float64, arg::Array{Complex{Float64},2}) ex = exp(1.0im*kx) ey = exp(1.0im*ky) emx = conj(ex) emy = conj(ey) vk1 = [1.0,-1.0*ex,-1.0*ey,ex*ey] #equivalent transformation matrix for Green per. would be: vk2 = [-1.0*emx,1.0,emx*ey,-1.0*ey] #[1.0,-1.0*ex,-1.0*ey,ex*ey] vk3 = [-1.0*emy,emy*ex,1.0,-1.0*ex] #[-1.0*emx,1.0,emx*ey,-1.0*ey] vk4 = [emx*emy,-1.0*emy,-1.0*emx,1.0] #[-1.0*emy,emy*ex,1.0,-1.0*ex] nambu_periodized = zeros(Complex{Float64},(2,2)) #[emx*emy,-1.0*emy,-1.0*emx,1.0] gup = arg[1:4,1:4] ff = arg[1:4,5:end] ffdag = arg[5:end,1:4] gdown = arg[5:end,5:end] llperiodized = [gup,ff,ffdag,gdown] vk = [vk1,vk2,vk3,vk4] list_total = [] for elem in llperiodized list_i = [] summ=0.0 for i in 1:size(elem)[1] for j in 1:size(elem)[2] push!(list_i, elem[i,j]*vk[i][j]) end end summ=sum(list_i) #println("sum = ", summ) push!(list_total,summ) end nambu_periodized[1,1] = list_total[1] nambu_periodized[1,2] = list_total[2] nambu_periodized[2,1] = list_total[3] nambu_periodized[2,2] = list_total[4] return 0.25*nambu_periodized end """ Function used to periodize the cumulant with SC only. #Arguments: - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction - K::Array{Float64,1}: Array of superlattice reciprocal wavevectors (noted K) - args::Array{Complex{Float64},2}: Lattice Green's function in terms of k_tilde before being periodized (Array{Complex{Float64}, 2}) #Returns: - nambu_cum: Periodized lattice Green's function (Complex{Float64}-valued matrix 0.5*Nc X 0.5*Nc) """ function periodize_nocoex_cum(kx::Float64, ky::Float64, K::Array{Float64,1}, arg::Array{Complex{Float64},2}) nambu_cum = zeros(Complex{Float64},(2,2)) R = [[0,0],[1,0],[0,1],[1,1]] k = [kx,ky] gup = arg[1:4,1:4] ff = arg[1:4,5:end] ffdag = arg[5:end,1:4] gdown = arg[5:end,5:end] llperiodized = [gup,ff,ffdag,gdown] nambu_sum = Array{Complex{Float64},1}() for elem in llperiodized tot = 0.0 for (i,R1) in enumerate(R) for (j,R2) in enumerate(R) tot += exp(-1.0im*dot(k + K + [pi,pi],R1 - R2))*elem[i,j] end end push!(nambu_sum,tot) end nambu_cum[1,1] = nambu_sum[1]; nambu_cum[1,2] = nambu_sum[2] nambu_cum[2,1] = nambu_sum[3]; nambu_cum[2,2] = nambu_sum[4] return nambu_cum end """ Function associated to the function periodizing the cumulant with SC only. Adds the dispersion relations after having built the cumulant. #Arguments: - model: model instance to have access to the attributes such as hopping elements, self-energy and chemical potential - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction - K::Array{Float64,1}: Array of superlattice reciprocal wavevectors (noted K) #Returns: - Cumulant of the Green's function (Complex{Float64}-valued matrix Nc X Nc) """ function periodize_nocoex_cum_suite(model::Model, kx::Float64, ky::Float64, K::Array{Float64,1}) nambu_cum_inv = zeros(Complex{Float64},(2,2)) nambu_cum_inv = inv(periodize_nocoex_cum(kx,ky,K,model.cumulant_)) k = [kx,ky] nambu_cum_inv[1,1] -= eps_0(model,(k + K + [pi,pi])...); nambu_cum_inv[2,2] += eps_0(model,(k + K + [pi,pi])...) return inv(nambu_cum_inv) end """ Function associated to the function periodizing the cumulant with SC only. Last inversion step corresping to the full Green's function. #Arguments: - model: model instance to have access to the attributes such as hopping elements, self-energy and chemical potential - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - nambu_periodized: Periodized lattice Green's function (Complex{Float64}-valued matrix Nc X Nc) """ function periodize_nocoex_cum_finale(model::Model, kx::Float64, ky::Float64) nambu_periodized = zeros(Complex{Float64},(2,2)) Ks = [[0.,0.],[pi,0.],[0.,pi],[pi,pi]] for K in Ks #println(K) nambu_periodized += periodize_nocoex_cum_suite(model,kx,ky,K) end return 0.25*nambu_periodized end """ Function to periodize the Green's function with coexistence between AF and SC. #Arguments: - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction - args::Array{Complex{Float64},2}: Lattice Green's function in terms of k_tilde before periodized (Array{Complex{Float64}, 2}) #Returns: - nambu_periodized: Periodized lattice Green's function (Complex{Float64}-valued matrix Nc X Nc) """ function periodize_AFM_orb(arg::Array{Complex{Float64},2}, kx::Float64, ky::Float64) ###Appropriate periodization method for AF-SC systems R_A = [[0.0,0.0],[1.0,1.0]] R_B = [[1.0,0.0],[0.0,1.0]] K_x = [[0.0,0.0],[pi,0.0]]; K_y = [[0.0,0.0],[0.0,pi]] k = [kx,ky] nambu_periodized = zeros(Complex{Float64}, _Nc, _Nc) gup = arg[1:4, 1:4] ff = arg[1:4, 5:end] ffdag = arg[5:end, 1:4] gdown = arg[5:end, 5:end] llgreen = [gup, ff, ffdag, gdown] blocks = zeros(Complex{Float64},2,2,4) for (ii,elem) in enumerate(llgreen) gAA = [[elem[1,1],elem[1,4]],[elem[4,1],elem[4,4]]] gAB = [[elem[1,2],elem[1,3]],[elem[4,2],elem[4,3]]] gBA = [[elem[2,1],elem[2,4]],[elem[3,1],elem[3,4]]] gBB = [[elem[2,2],elem[2,3]],[elem[3,2],elem[3,3]]] summAA = summAB = summBA = summBB = 0.0 for K in K_y ####K_x and K_y should be equivalent for RA in 1:size(R_A)[1] for RAprime in 1:size(R_A)[1] summAA += exp(1.0im*dot(K + k, R_A[RAprime] - R_A[RA]))*gAA[RA][RAprime] end end end blocks[1,1,ii] = summAA for K in K_y for RA in 1:size(R_A)[1] for RBprime in 1:size(R_B)[1] summAB += exp(1.0im*dot(K + k, R_B[RBprime] - R_A[RA]))*gAB[RA][RBprime] end end end blocks[1,2,ii] = summAB for K in K_y for RB in 1:size(R_B)[1] for RAprime in 1:size(R_A)[1] summBA += exp(1.0im*dot(K + k, R_A[RAprime] - R_B[RB]))*gBA[RB][RAprime] end end end blocks[2,1,ii] = summBA for K in K_y for RB in 1:size(R_B)[1] for RBprime in 1:size(R_B)[1] summBB += exp(1.0im*dot(K + k, R_B[RBprime] - R_B[RB]))*gBB[RB][RBprime] end end end blocks[2,2,ii] = summBB end nambu_periodized[1:2,1:2] = blocks[:,:,1] nambu_periodized[1:2,3:end] = blocks[:,:,2] nambu_periodized[3:end,1:2] = blocks[:,:,3] nambu_periodized[3:end,3:end] = blocks[:,:,4] return(0.5*nambu_periodized) end """ Function to periodize the cumulant in the case of coexistence between AF and SC. #Arguments: - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction - args::Array{Complex{Float64},2}: Lattice Green's function in terms of k_tilde before periodized (Array{Complex{Float64}, 2}) - K::Array{Float64,1}: Array of superlattice reciprocal wavevectors (noted K) #Returns: - nambu_cum: Periodized lattice Green's function (Complex{Float64}-valued matrix of size Nc x Nc) """ function periodize_AFM_orb_cum(arg::Array{Complex{Float64},2}, kx::Float64, ky::Float64, K::Array{Float64,1}) ###Appropriate periodization method for AFM-SC systems nambu_cum = zeros(Complex{Float64},4,4) R_A = [[0.0,0.0],[1.0,1.0]] R_B = [[1.0,0.0],[0.0,1.0]] k = [kx,ky] gup = arg[1:4, 1:4] ff = arg[1:4, 5:end] ffdag = arg[5:end, 1:4] gdown = arg[5:end, 5:end] llgreen = [gup, ff, ffdag, gdown] sum_blocks = zeros(Complex{Float64},2,2,4) for (ii,elem) in enumerate(llgreen) gAA = [[elem[1,1],elem[1,4]],[elem[4,1],elem[4,4]]] gAB = [[elem[1,2],elem[1,3]],[elem[4,2],elem[4,3]]] gBA = [[elem[2,1],elem[2,4]],[elem[3,1],elem[3,4]]] gBB = [[elem[2,2],elem[2,3]],[elem[3,2],elem[3,3]]] summAA = summAB = summBA = summBB = 0.0 for RA in 1:size(R_A)[1] for RAprime in 1:size(R_A)[1] summAA += exp(1.0im*dot(K + k, R_A[RAprime] - R_A[RA]))*gAA[RA][RAprime] end end sum_blocks[1,1,ii] = summAA for RA in 1:size(R_A)[1] for RBprime in 1:size(R_B)[1] summAB += exp(1.0im*dot(K + k, R_B[RBprime] - R_A[RA]))*gAB[RA][RBprime] end end sum_blocks[1,2,ii] = summAB for RB in 1:size(R_B)[1] for RAprime in 1:size(R_A)[1] summBA += exp(1.0im*dot(K + k, R_A[RAprime] - R_B[RB]))*gBA[RB][RAprime] end end sum_blocks[2,1,ii] = summBA for RB in 1:size(R_B)[1] for RBprime in 1:size(R_B)[1] summBB += exp(1.0im*dot(K + k, R_B[RBprime] - R_B[RB]))*gBB[RB][RBprime] end end sum_blocks[2,2,ii] = summBB end nambu_cum[1:2,1:2] = sum_blocks[:,:,1] nambu_cum[1:2,3:end] = sum_blocks[:,:,2] nambu_cum[3:end,1:2] = sum_blocks[:,:,3] nambu_cum[3:end,3:end] = sum_blocks[:,:,4] return nambu_cum end """ Function associated to the function periodizing the cumulant in the case of coexistence between AFM and SC. Adds the dispersion relations after having built the cumulant. #Arguments: - model: model instance to have access to the attributes such as hopping elements, self-energy and chemical potential - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction - K::Array{Float64,1}: Array of superlattice reciprocal wavevectors (noted K) #Returns: - Cumulant of the lattice Green's function (Complex{Float64}-valued matrix of size Nc x Nc) """ function periodize_cum_coex_suite(model::Model, kx::Float64, ky::Float64, K::Array{Float64,1}) nambu_cum_inv = inv(periodize_AFM_orb_cum(model.cumulant_,kx,ky,K)) k = [kx,ky] nambu_cum_inv[1,1]-=zetak(model,(k + K)...)+omegak(model,(k + K)...); nambu_cum_inv[2,2]-=zetak(model,(k + K)...)+omegak(model,(k + K)...); nambu_cum_inv[1,2]-=epsilonk(model,(k + K)...); nambu_cum_inv[2,1]-=epsilonk(model,(k + K)...) nambu_cum_inv[3,3]+=zetak(model,(k + K)...)+omegak(model,(k + K)...); nambu_cum_inv[4,4]+=zetak(model,(k + K)...)+omegak(model,(k + K)...); nambu_cum_inv[4,3]+=epsilonk(model,(k + K)...); nambu_cum_inv[3,4]+=epsilonk(model,(k + K)...) nambu_periodized_final = inv(nambu_cum_inv) return nambu_periodized_final end """ Function associated to the function periodizing the cumulant in the case of coexistence between AF and SC. Last inversion step corresping to the full Green's function. #Arguments: - model: model instance to have access to the attributes such as hopping elements, self-energy and chemical potential - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - nambu_periodized: Periodized lattice Green's function (Complex{Float64}-valued matrix Nc X Nc) """ function periodize_coex_cum_finale(model::Model, kx::Float64, ky::Float64) nambu_periodized = zeros(Complex{Float64},(4,4)) Kx = [[0,0],[pi,0]]; Ky = [[0,0],[0,pi]] for K in Kx ## or Ky nambu_periodized += periodize_cum_coex_suite(model,kx,ky,K) end return 0.5*nambu_periodized end """ Function to compute the superfluid stiffness in the case dSC and AF coexist (with cumulant periodization) perpendicular to the CuO2 cuprates plane neglecting the current vertex corrections. #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - Superfluid stiffness: Value of the superfluid stiffness perpendicular to the plane for dSC+AF data with cumulant periodization """ function stiffness_cumulant_AFM_SC(model::Model, kx::Float64, ky::Float64) nambu_periodized_final = periodize_coex_cum_finale(model,kx,ky) return 1.0*real(tperp(kx,ky)*4.0*(nambu_periodized_final[2,4]*nambu_periodized_final[3,1]+nambu_periodized_final[1,4]*nambu_periodized_final[3,2]+ nambu_periodized_final[2,3]*nambu_periodized_final[4,1]+nambu_periodized_final[1,3]*nambu_periodized_final[4,2])) end """ Function to compute the superfluid stiffness in the case there is only dSC (with cumulant periodization) perpendicular to the CuO2 cuprates plane neglecting the current vertex corrections. #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - Superfluid stiffness: Value of the superfluid stiffness perpendicular to the plane for dSC-only data with cumulant periodization """ function stiffness_cum_SC(model::Model, kx::Float64, ky::Float64) nambu_periodized_final = periodize_nocoex_cum_finale(model,kx,ky) return 1.0*real(tperp(kx,ky)*4.0*(nambu_periodized_final[1,2]*nambu_periodized_final[2,1])) end """ Function to compute the superfluid stiffness in the case there is only dSC (with Green periodization) perpendicular to the CuO2 cuprates plane and neglecting the current vertex corrections #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - Superfluid stiffness: Value of the superfluid stiffness perpendicular to the ab plane for dSC-only data with Green periodization """ function stiffness_SC(model::Model, kx::Float64, ky::Float64) nambu_periodized = periodize_nocoex(kx, ky, build_gf_ktilde(model, kx, ky)) ###### NEW or not NEW <------------- return 1.0*real(4.0*tperp(kx,ky)*(nambu_periodized[1,2]*nambu_periodized[2,1])) ##Removed minus sign end """ Function to compute the superfluid stiffness in the case there is only dSC (with Green periodization) in the CuO2 cuprates plane neglecting the current vertex corrections #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction - inplane_axis::String: String-valued argument to specify in-plane axis along which computing the superfluid stiffness (\'xx\' or \'yy\') - AFM_SC_1::Int64: Integer value set to 1 to compute pure SC superfluid stiffness using the formula in coexisting AF+dSC regime. Otherwize, let it be 0 #Returns: - Superfluid stiffness: Value of the superfluid stiffness in the ab plane for dSC-only data with Green periodization """ function stiffness_nocoex_per_ab(model::Model, kx::Float64, ky::Float64, inplane_axis::String, AFM_SC_1::Int64) if AFM_SC_1 == 1 G = periodize_AFM_orb(build_gf_ktilde(model, kx, ky), kx, ky) if inplane_axis == "xx" kxky = [DxDxZetakbar,DxDxZetakbarepsilonk,DxDxepsilonk] elseif inplane_axis == "yy" kxky = [DyDyZetakbar,DyDyZetakbarepsilonk,DyDyepsilonk] else println("OUPS!") && throw("inplane_axis parameter takes only two possible values: \"xx\" or \"yy\".") end return 1.0*real(kxky[1](model,kx,ky)*4.0*(G[1,3]*G[3,1]+G[2,3]*G[3,2]+G[1,4]*G[4,1]+G[2,4]*G[4,2])+ kxky[2](model,kx,ky)*2.0*((G[1,3]+G[2,4])*(G[3,2]+G[4,1])+(G[1,4]+G[2,3])*(G[3,1]+G[4,2]))+ kxky[2](model,kx,ky)*2.0*((G[1,3]+G[2,4])*(G[3,2]+G[4,1])+(G[1,4]+G[2,3])*(G[3,1]+G[4,2]))+ kxky[3](model,kx,ky)*4.0*(G[2,4]*G[3,1]+G[1,4]*G[3,2]+G[2,3]*G[4,1]+G[1,3]*G[4,2])) elseif AFM_SC_1 == 0 G = periodize_nocoex(kx, ky, build_gf_ktilde(model, kx, ky)) if inplane_axis == "xx" kxky = DxDxEpsilonbark elseif inplane_axis == "yy" kxky = DyDyEpsilonbark else println("OUPS!") && throw("inplane_axis parameter takes only two possible values: \"xx\" or \"yy\".") end return 1.0*real(kxky(model,kx,ky)*4.0*(G[1,2]*G[2,1])) end end """ Function to compute the superfluid stiffness in the case dSC+AF coexist (with Green periodization) perpendicular to the CuO2 cuprates plane and neglecting the current vertex corrections #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - Superfluid stiffness: Value of the superfluid stiffness perpendicular to the ab plane for dSC+AF data with Green periodization """ function stiffness_test(model::Model, kx::Float64, ky::Float64) nambu_periodized = periodize_AFM_orb(build_gf_ktilde(model, kx, ky), kx, ky) return 1.0*real(4.0*tperp(kx,ky)*(nambu_periodized[2,4]*nambu_periodized[3,1]+nambu_periodized[1,4]*nambu_periodized[3,2]+ nambu_periodized[2,3]*nambu_periodized[4,1]+nambu_periodized[1,3]*nambu_periodized[4,2])) end """ Function to compute the superfluid stiffness in the case dSC+AF coexist (with Green periodization) in the CuO2 cuprates plane neglecting the current vertex corrections #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction - inplane_axis::String: String-valued argument to specify in-plane axis along which computing the superfluid stiffness (\'xx\' or \'yy\') - AFM_SC_1::Int64: Integer value set to 1 to compute pure SC superfluid stiffness using the formula in coexisting AF+dSC regime. Otherwise let it be 0 #Returns: - Superfluid stiffness: Value of the superfluid stiffness in the ab plane for dSC+AF data with Green periodization """ function stiffness_coex_per_ab(model::Model, kx::Float64, ky::Float64, inplane_axis::String) G = periodize_AFM_orb(build_gf_ktilde(model, kx, ky), kx, ky) if inplane_axis == "xx" kxky = [DxDxEpsilonbark,DxDxZetakbar,DxDxZetakbarepsilonk,DxDxepsilonk] elseif inplane_axis == "yy" kxky = [DyDyEpsilonbark,DyDyZetakbar,DyDyZetakbarepsilonk,DyDyepsilonk] else println("OUPS!") && throw("inplane_axis parameter takes only two possible values: \"xx\" or \"yy\".") end return 1.0*real(kxky[1](model,kx,ky)*4.0*(G[1,3]*G[3,1]+G[2,3]*G[3,2]+G[1,4]*G[4,1]+G[2,4]*G[4,2])+ kxky[2](model,kx,ky)*2.0*((G[1,3]+G[2,4])*(G[3,2]+G[4,1])+(G[1,4]+G[2,3])*(G[3,1]+G[4,2]))+ kxky[2](model,kx,ky)*2.0*((G[1,3]+G[2,4])*(G[3,2]+G[4,1])+(G[1,4]+G[2,3])*(G[3,1]+G[4,2]))+ kxky[3](model,kx,ky)*4.0*(G[2,4]*G[3,1]+G[1,4]*G[3,2]+G[2,3]*G[4,1]+G[1,3]*G[4,2])) end """ Function to compute the superfluid stiffness in the case there is dSC and AF (without periodization) perpendicular to the CuO2 cuprates plane neglecting the current vertex corrections #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - Superfluid stiffness: Value of the superfluid stiffness perpendicular to the ab plane for dSC+AF data without periodization (tracing) """ function stiffness_cluster_G(model::Model, kx::Float64, ky::Float64) G = build_gf_ktilde(model,kx,ky) return 1.0*real(tperp(kx,ky)*4.0*(sum(G[1:4,5:end]))*(sum(G[5:end,1:4]))) end """ Function used to compute the superfluid stiffness in the case there is dSC and AF (without periodization) perpendicular to the CuO2 cuprates plane neglecting the current vertex corrections #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - Superfluid stiffness: Value of the superfluid stiffness perpendicular to the ab plane for dSC+AF data without periodization """ function stiffness_cluster_G_first_neighbor(model::Model, kx::Float64, ky::Float64) G = build_gf_ktilde(model,kx,ky) return 1.0*real(tperp(kx,ky)*4.0*((G[3,7]+G[3,8]+G[4,7]+G[4,8])*(G[5,1]+G[5,2]+G[6,1]+G[6,2])+(G[1,7]+G[1,8]+ G[2,7]+G[2,8])*(G[5,3]+G[5,4]+G[6,3]+G[6,4])+(G[3,5]+G[3,6]+G[4,5]+G[4,6])*(G[7,1]+G[7,2]+G[8,1]+G[8,2])+(G[1,5]+G[1,6]+ G[2,5]+G[2,6])*(G[7,3]+G[7,4]+G[8,3]+G[8,4]))) end """ Function used to compute the superfluid stiffness in the case there is dSC and AF (without periodization) in the CuO2 cuprates plane neglecting the current vertex corrections #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction - inplane_axis::String: In-plane axis along which the superfluid stiffness is to be computed. #Returns: - Superfluid stiffness: Value of the superfluid stiffness in the ab plane for dSC+AF data without periodization """ function stiffness_cluster_G_ab(model::Model, kx::Float64, ky::Float64, inplane_axis::String) G = build_gf_ktilde(model,kx,ky) if inplane_axis == "xx" kxky = [DxDxomegak, DxDxzetakomegak, DxDxomegakepsilonk, DxDxzetakepsilonk, DxDxzetak, DxDxzetakepsilonk, DxDxomegakepsilonk, DxDxzetakepsilonk, DxDxepsilonk] elseif inplane_axis == "yy" kxky = [DyDyomegak, DyDyzetakomegak, DyDyomegakepsilonk, DyDyzetakepsilonk, DyDyzetak, DyDyzetakepsilonk, DyDyomegakepsilonk, DyDyzetakepsilonk, DyDyepsilonk] else println("OUPS!") && throw("inplane_axis parameter takes only two possible values: \"xx\" or \"yy\".") end return 1.0*real((kxky[1](model,kx,ky)*4.0*(G[1,5]*G[5,1]+G[2,5]*G[5,2]+G[3,5]*G[5,3]+G[4,5]*G[5,4]+G[1,6]*G[6,1]+G[2,6]*G[6,2]+G[3,6]*G[6,3]+G[4,6]*G[6,4]+G[1,7]*G[7,1]+G[2,7]*G[7,2]+G[3,7]*G[7,3]+G[4,7]*G[7,4]+G[1,8]*G[8,1]+G[2,8]*G[8,2]+G[3,8]*G[8,3]+G[4,8]*G[8,4])+ kxky[2](model,kx,ky)*2.0*((G[1,5]+G[2,6])*(G[5,2]+G[6,1])+(G[1,6]+G[2,5])*(G[5,1]+G[6,2])+(G[3,5]+G[4,6])*(G[5,4]+G[6,3])+(G[3,6]+G[4,5])*(G[5,3]+G[6,4])+(G[1,7]+G[2,8])*(G[7,2]+G[8,1])+(G[1,8]+G[2,7])*(G[7,1]+G[8,2])+(G[3,7]+G[4,8])*(G[7,4]+G[8,3])+(G[3,8]+G[4,7])*(G[7,3]+G[8,4]))+ kxky[3](model,kx,ky)*2.0*(G[3,5]*G[5,1]+G[4,5]*G[5,1]+G[3,5]*G[5,2]+G[4,5]*G[5,2]+G[3,7]*G[5,3]+G[3,8]*G[5,3]+(G[2,7]+G[2,8])*(G[5,2]+G[6,2])+(G[3,6]+G[4,6])*(G[6,1]+G[6,2])+G[3,7]*G[6,3]+G[3,8]*G[6,3]+(G[4,7]+G[4,8])*(G[5,4]+G[6,4])+G[2,6]*(G[6,3]+G[6,4])+G[3,7]*G[7,1]+G[4,7]*G[7,1]+G[3,7]*G[7,2]+G[4,7]*G[7,2]+G[3,5]*G[7,3]+G[3,6]*G[7,3]+G[4,5]*G[7,4]+G[4,6]*G[7,4]+G[2,7]*(G[7,3]+G[7,4])+G[1,7]*(G[5,1]+G[6,1]+G[7,3]+G[7,4])+G[3,8]*G[8,1]+G[4,8]*G[8,1]+G[1,5]*(G[5,3]+G[5,4]+G[7,1]+G[8,1])+G[1,6]*(G[6,3]+G[6,4]+G[7,1]+G[8,1])+(G[3,8]+G[4,8])*G[8,2]+G[2,6]*(G[7,2]+G[8,2])+G[2,5]*(G[5,3]+G[5,4]+G[7,2]+G[8,2])+G[3,5]*G[8,3]+G[3,6]*G[8,3]+(G[4,5]+G[4,6])*G[8,4]+G[2,8]*(G[8,3]+G[8,4])+G[1,8]*(G[5,1]+G[6,1]+G[8,3]+G[8,4]))+ kxky[4](model,kx,ky)*2.0*((G[1,5]+G[2,6])*(G[5,2]+G[6,1])+(G[1,6]+G[2,5])*(G[5,1]+G[6,2])+(G[3,5]+G[4,6])*(G[5,4]+G[6,3])+(G[3,6]+G[4,5])*(G[5,3]+G[6,4])+(G[1,7]+G[2,8])*(G[7,2]+G[8,1])+(G[1,8]+G[2,7])*(G[7,1]+G[8,2])+(G[3,7]+G[4,8])*(G[7,4]+G[8,3])+(G[3,8]+G[4,7])*(G[7,3]+G[8,4]))+ kxky[5](model,kx,ky)*4.0*(G[2,6]*G[5,1]+G[1,6]*G[5,2]+G[4,6]*G[5,3]+G[3,6]*G[5,4]+G[2,5]*G[6,1]+G[1,5]*G[6,2]+G[4,5]*G[6,3]+G[3,5]*G[6,4]+G[2,8]*G[7,1]+G[1,8]*G[7,2]+G[4,8]*G[7,3]+G[3,8]*G[7,4]+G[2,7]*G[8,1]+G[1,7]*G[8,2]+G[4,7]*G[8,3]+G[3,7]*G[8,4])+ kxky[6](model,kx,ky)*2.0*(G[3,6]*G[5,1]+G[4,6]*G[5,1]+G[3,6]*G[5,2]+G[4,6]*G[5,2]+G[4,7]*G[5,3]+G[4,8]*G[5,3]+G[3,7]*G[5,4]+G[3,8]*G[5,4]+G[3,5]*G[6,1]+G[4,5]*G[6,1]+G[3,5]*G[6,2]+G[4,5]*G[6,2]+G[4,7]*G[6,3]+G[4,8]*G[6,3]+G[3,7]*G[6,4]+G[3,8]*G[6,4]+G[3,8]*G[7,1]+G[4,8]*G[7,1]+G[3,8]*G[7,2]+G[4,8]*G[7,2]+G[4,5]*G[7,3]+G[4,6]*G[7,3]+G[3,5]*G[7,4]+G[3,6]*G[7,4]+G[2,8]*(G[5,1]+G[6,1]+G[7,3]+G[7,4])+G[1,8]*(G[5,2]+G[6,2]+G[7,3]+G[7,4])+G[3,7]*G[8,1]+G[4,7]*G[8,1]+G[2,6]*(G[5,3]+G[5,4]+G[7,1]+G[8,1])+G[2,5]*(G[6,3]+G[6,4]+G[7,1]+G[8,1])+(G[3,7]+G[4,7])*G[8,2]+G[1,6]*(G[5,3]+G[5,4]+G[7,2]+G[8,2])+G[1,5]*(G[6,3]+G[6,4]+G[7,2]+G[8,2])+G[4,5]*G[8,3]+G[4,6]*G[8,3]+(G[3,5]+G[3,6])*G[8,4]+G[2,7]*(G[5,1]+G[6,1]+G[8,3]+G[8,4])+G[1,7]*(G[5,2]+G[6,2]+G[8,3]+G[8,4]))+ kxky[7](model,kx,ky)*2.0*(G[3,5]*G[5,1]+G[4,5]*G[5,1]+G[3,5]*G[5,2]+G[4,5]*G[5,2]+G[3,7]*G[5,3]+G[3,8]*G[5,3]+(G[2,7]+G[2,8])*(G[5,2]+G[6,2])+(G[3,6]+G[4,6])*(G[6,1]+G[6,2])+G[3,7]*G[6,3]+G[3,8]*G[6,3]+(G[4,7]+G[4,8])*(G[5,4]+G[6,4])+G[2,6]*(G[6,3]+G[6,4])+G[3,7]*G[7,1]+G[4,7]*G[7,1]+G[3,7]*G[7,2]+G[4,7]*G[7,2]+G[3,5]*G[7,3]+G[3,6]*G[7,3]+G[4,5]*G[7,4]+G[4,6]*G[7,4]+G[2,7]*(G[7,3]+G[7,4])+G[1,7]*(G[5,1]+G[6,1]+G[7,3]+G[7,4])+G[3,8]*G[8,1]+G[4,8]*G[8,1]+G[1,5]*(G[5,3]+G[5,4]+G[7,1]+G[8,1])+G[1,6]*(G[6,3]+G[6,4]+G[7,1]+G[8,1])+(G[3,8]+G[4,8])*G[8,2]+G[2,6]*(G[7,2]+G[8,2])+G[2,5]*(G[5,3]+G[5,4]+G[7,2]+G[8,2])+G[3,5]*G[8,3]+G[3,6]*G[8,3]+(G[4,5]+G[4,6])*G[8,4]+G[2,8]*(G[8,3]+G[8,4])+G[1,8]*(G[5,1]+G[6,1]+G[8,3]+G[8,4]))+ kxky[8](model,kx,ky)*2.0*(G[3,6]*G[5,1]+G[4,6]*G[5,1]+G[3,6]*G[5,2]+G[4,6]*G[5,2]+G[4,7]*G[5,3]+G[4,8]*G[5,3]+G[3,7]*G[5,4]+G[3,8]*G[5,4]+G[3,5]*G[6,1]+G[4,5]*G[6,1]+G[3,5]*G[6,2]+G[4,5]*G[6,2]+G[4,7]*G[6,3]+G[4,8]*G[6,3]+G[3,7]*G[6,4]+G[3,8]*G[6,4]+G[3,8]*G[7,1]+G[4,8]*G[7,1]+G[3,8]*G[7,2]+G[4,8]*G[7,2]+G[4,5]*G[7,3]+G[4,6]*G[7,3]+G[3,5]*G[7,4]+G[3,6]*G[7,4]+G[2,8]*(G[5,1]+G[6,1]+G[7,3]+G[7,4])+G[1,8]*(G[5,2]+G[6,2]+G[7,3]+G[7,4])+G[3,7]*G[8,1]+G[4,7]*G[8,1]+G[2,6]*(G[5,3]+G[5,4]+G[7,1]+G[8,1])+G[2,5]*(G[6,3]+G[6,4]+G[7,1]+G[8,1])+(G[3,7]+G[4,7])*G[8,2]+G[1,6]*(G[5,3]+G[5,4]+G[7,2]+G[8,2])+G[1,5]*(G[6,3]+G[6,4]+G[7,2]+G[8,2])+G[4,5]*G[8,3]+G[4,6]*G[8,3]+(G[3,5]+G[3,6])*G[8,4]+G[2,7]*(G[5,1]+G[6,1]+G[8,3]+G[8,4])+G[1,7]*(G[5,2]+G[6,2]+G[8,3]+G[8,4]))+ kxky[9](model,kx,ky)*4.0*((G[3,7]+G[3,8]+G[4,7]+G[4,8])*(G[5,1]+G[5,2]+G[6,1]+G[6,2])+(G[1,7]+G[1,8]+G[2,7]+G[2,8])*(G[5,3]+G[5,4]+G[6,3]+G[6,4])+(G[3,5]+G[3,6]+G[4,5]+G[4,6])*(G[7,1]+G[7,2]+G[8,1]+G[8,2])+(G[1,5]+G[1,6]+G[2,5]+G[2,6])*(G[7,3]+G[7,4]+G[8,3]+G[8,4])))) end """ Function to compute the superfluid stiffness in the case there is dSC only (without periodization) perpendicular to the CuO2 cuprates plane neglecting the current vertex corrections #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - Superfluid stiffness: Value of the superfluid stiffness perpendicular to the ab plane for dSC-only data without periodization """ function stiffness_trace_G(model::Model, kx::Float64, ky::Float64) G = build_gf_ktilde(model,kx,ky) return 1.0*real(tperp(kx,ky)*4.0*trace(G[1:4,5:end]*G[5:end,1:4])) end """ Function to compute the superfluid stiffness in the case there is dSC only (without periodization) in the CuO2 cuprates plane neglecting the current vertex corrections #Arguments: - model: model instance to have access to the attributes such as hopping elements - kx::Float64: Wavevector in x direction - ky::Float64: Wavevector in y direction #Returns: - Superfluid stiffness: Value of the superfluid stiffness in the ab plane for dSC-only data without periodization """ function stiffness_trace_G_ab(model::Model, kx::Float64, ky::Float64, inplane_axis::String) G = build_gf_ktilde(model,kx,ky) if inplane_axis == "xx" kxky = DxDxEpsilonbark elseif inplane_axis == "yy" kxky = DyDyEpsilonbark else println("OUPS!") && throw("inplane_axis parameter takes only two possible values: \"xx\" or \"yy\".") end return 1.0*real(kxky(model,kx,ky)*kxky(model,kx,ky)*4.0*trace(G[1:4,5:end]*G[5:end,1:4])) end """ Template function useful to perform integration over the BZ when computing in-plane superfluid stiffness without periodization. Called in module Stiffness.jl. #Arguments: - model: model instance to have access to the attributes such as hopping elements - param::Tuple{String,String}: Tuple of two strings specifying the direction along which to compute the superfluid stiffness and the state (pure or mixed). #Returns: - Superfluid stiffness integrand. It is a function object used to compute integrals. """ function make_stiffness_cluster_G_kintegrand_ab(model::PeriodizeSC.Model, param::T) where T <: Tuple{AbstractString,AbstractString} function stiffness_kintegrand(kk::Array{Float64,1}) if isa(param,Tuple{String,String}) if param[1] == "xx" && param[2] == "COEX" return(PeriodizeSC.stiffness_cluster_G_ab(model,kk[1],kk[2],"xx")) elseif param[1] == "yy" && param[2] == "COEX" return(PeriodizeSC.stiffness_cluster_G_ab(model,kk[1],kk[2],"yy")) elseif param[1] == "xx" && param[2] == "NOCOEX" return(PeriodizeSC.stiffness_trace_G_ab(model,kk[1],kk[2],"xx")) elseif param[1] == "yy" && param[2] == "NOCOEX" return(PeriodizeSC.stiffness_trace_G_ab(model,kk[1],kk[2],"yy")) end else throw(ErrorException("Error occurred in function PeriodizeSC.make_stiffness_cluster_G_kintegrand_ab. Type not permitted in template.")) end end return stiffness_kintegrand end """ Template function useful to perform integration over the BZ when computing in-plane superfluid stiffness with periodization. Called in module Stiffness.jl. #Arguments: - model: model instance to have access to the attributes such as hopping elements - param::Tuple{String,String,Int64}: Tuple of three elements specifying the direction along which to compute the superfluid stiffness, the state (pure or mixed) and an internal debug parameter. #Returns: - Superfluid stiffness integrand. It is a function object used to compute integrals. """ function make_stiffness_kintegrand_per_ab(model::PeriodizeSC.Model, param::T) where T <: Tuple{AbstractString,AbstractString,Number} function stiffness_kintegrand(kk::Array{Float64,1}) if isa(param,Tuple{String,String,Int64}) if param[1] == "xx" && param[2] == "COEX" return(PeriodizeSC.stiffness_coex_per_ab(model,kk[1],kk[2],"xx")) elseif param[1] == "yy" && param[2] == "COEX" return(PeriodizeSC.stiffness_coex_per_ab(model,kk[1],kk[2],"yy")) elseif param[1] == "xx" && param[2] == "NOCOEX" && param[3] == 0 return(PeriodizeSC.stiffness_nocoex_per_ab(model,kk[1],kk[2],"xx",0)) elseif param[1] == "xx" && param[2] == "NOCOEX" && param[3] == 1 return(PeriodizeSC.stiffness_nocoex_per_ab(model,kk[1],kk[2],"xx",1)) elseif param[1] == "yy" && param[2] == "NOCOEX" && param[3] == 0 return(PeriodizeSC.stiffness_nocoex_per_ab(model,kk[1],kk[2],"yy",0)) elseif param[1] == "yy" && param[2] == "NOCOEX" && param[3] == 1 return(PeriodizeSC.stiffness_nocoex_per_ab(model,kk[1],kk[2],"yy",1)) end else throw(ErrorException("Error occurred in function PeriodizeSC.make_stiffness_cluster_G_kintegrand_ab. Type not permitted in template.")) end end return stiffness_kintegrand end ############################################################################## Important Note ########################################################################### ## The following functions act as decorators to the superfluid stiffness functions. These functions are necessary to compute the integrals over k-space. The situation ## ## in which each and every one of the functions is used is specified by its name. ## ######################################################################################################################################################################### function make_stiffness_trace_G_kintegrand(model::PeriodizeSC.Model) function stiffness_kintegrand(kk::Array{Float64,1}) return(PeriodizeSC.stiffness_trace_G(model,kk[1],kk[2])) end return stiffness_kintegrand end function make_stiffness_cluster_G_kintegrand(model::PeriodizeSC.Model) function stiffness_kintegrand(kk::Array{Float64,1}) return(PeriodizeSC.stiffness_cluster_G(model,kk[1],kk[2])) end return stiffness_kintegrand end function make_stiffness_cluster_G_kintegrand_fourth(model::PeriodizeSC.Model) function stiffness_kintegrand(kk::Array{Float64,1}) return(PeriodizeSC.stiffness_cluster_G_first_neighbor(model,kk[1],kk[2])) end return stiffness_kintegrand end function make_stiffness_kintegrand_cum_AFM_SC(model::PeriodizeSC.Model) function stiffness_kintegrand(kk::Array{Float64, 1}) return(PeriodizeSC.stiffness_cumulant_AFM_SC(model, kk[1], kk[2])) end return stiffness_kintegrand end function make_stiffness_kintegrand_cum_SC(model::PeriodizeSC.Model) function stiffness_kintegrand(kk::Array{Float64, 1}) return(PeriodizeSC.stiffness_cum_SC(model, kk[1], kk[2])) end return stiffness_kintegrand end function make_stiffness_kintegrand_SC(model::PeriodizeSC.Model) function stiffness_kintegrand(kk::Array{Float64,1}) return(PeriodizeSC.stiffness_SC(model, kk[1], kk[2])) end return stiffness_kintegrand end function make_stiffness_kintegrand_test(model::PeriodizeSC.Model) function stiffness_kintegrand(kk::Array{Float64,1}) return(PeriodizeSC.stiffness_test(model,kk[1],kk[2])) end return stiffness_kintegrand end ###################################################################### End of Important Note ################################################################################ ############################################################################################################################################################################# """ Function used to sum over a grid of the reduced BZ. #Arguments: - modelvector: modelvector instance - fct: Function object to be used to sum over the reduced BZ. - gridK::Int64: k-space grid NxN, where N is set to 100 by default. - len_sEvec_c::Int64: Length of the Matsubara frequency grid. Set by default to 500. #Returns: - Returns an array of two columns contaning the k-integrated Green's function and the associated Matsubara frequency. """ function sum_RBZ(modelvector::ModelVector, fct; gridK::Int64 = 100, len_sEvec_c::Int64=500) len_sEvec_c > size(modelvector.sEvec_c_)[1] && throw(ErrorException("You have just exceeded the number of Matsubara frequencies available for calculations!")) kx = linspace(-pi,pi,gridK) ky = linspace(-pi,pi,gridK) println("Length of len_sEvec_c and length of modelvector.sEvec_c_, respectively :", len_sEvec_c, size(modelvector.sEvec_c_)[1]) result_k_ind = Array{Float64}(len_sEvec_c) for n in 1:len_sEvec_c stiffness = 0.0 model = Model(modelvector,n) for i in 1:size(ky)[1] for j in 1:size(kx)[1] stiffness += fct(model,kx[j],ky[i]) end end stiffness = 1./(2.0*gridK^2)*stiffness result_k_ind[n] = stiffness println("stiffness = ", stiffness) end result_out = hcat(modelvector.wvec_[1:len_sEvec_c], result_k_ind) return(result_out) end function sum_BZ(modelvector::ModelVector, fct; gridK::Int64 = 100, len_sEvec_c::Int64=500) println("in sum_BZ: 2.0*sum_RBZ") result_out = 2.0*sum_RBZ(modelvector, fct, gridK=gridK, len_sEvec_c=len_sEvec_c) return result_out end """ Function used to integrate over the BZ when computing out-of-plane superfluid stiffness. #Arguments:Integer value set to 1 to compute pure SC superfluid stiffness using the formula in coexisting AF+dSC regime. Otherwize, let it be 0 - modelvectInteger value set to 1 to compute pure SC superfluid stiffness using the formula in coexisting AF+dSC regime. Otherwize, let it be 0 - fct: FuncInteger value set to 1 to compute pure SC superfluid stiffness using the formula in coexisting AF+dSC regime. Otherwize, let it be 0 - gridK::InInteger value set to 1 to compute pure SC superfluid stiffness using the formula in coexisting AF+dSC regime. Otherwize, let it be 0 - len_sEvecInteger value set to 1 to compute pure SC superfluid stiffness using the formula in coexisting AF+dSC regime. Otherwize, let it be 0 #Returns: - Returns an array of two columns contaning the k-integrated Green's function and the associated Matsubara frequency. """ function calcintegral_RBZ(modelvector::ModelVector, fct; maxevals::Int64=100_000, len_sEvec_c::Int64=500) len_sEvec_c > size(modelvector.sEvec_c_)[1] && throw(ErrorException("You have just exceeded the number of Matsubara frequencies available for calculations!")) println("Length of len_sEvec_c and length of modelvector.sEvec_c_, respectively : ", len_sEvec_c, " ", size(modelvector.sEvec_c_)[1]) result = Array{Float64,1}(len_sEvec_c) println("in calcintegral_RBZ, kwargs") for n in 1:len_sEvec_c model = Model(modelvector, n) #println("w_: ", model.w_) result[n] = (1.0/2.0)*(2.0*pi)^(-2.0)*hcubature(fct(model), (-pi,-pi), (pi,pi), reltol=1.49e-8, abstol=1.49e-8, maxevals=maxevals)[1] #println("stiff: ", result[n]) end result_out = hcat(modelvector.wvec_[1:len_sEvec_c], result) return result_out end function calcintegral_BZ(modelvector::ModelVector, fct; maxevals::Int64=100_000, len_sEvec_c::Int64=500) println("in calcintegral_BZ: 2.0*calcintegral_RBZ") result_out = 2.0*calcintegral_RBZ(modelvector,fct,len_sEvec_c=len_sEvec_c) return result_out end """ Function used to integrate over the BZ when computing in-plane superfluid stiffness. #Arguments: - modelvector: modelvector instance - fct: Function object to be used to integrate over the BZ. - param::Tuple{String,String,Int64}: Tuple of three elements necessary to provide because of the form of the parameter fct used. - gridK::Int64: k-space grid NxN, where N is set to 100 by default. - len_sEvec_c::Int64: Length of the Matsubara frequency grid. Set by default to 500. #Returns: - Returns an array of two columns contaning the k-integrated Green's function and the associated Matsubara frequency. """ function calcintegral_RBZ_ab(modelvector::ModelVector, fct, param::T; maxevals::Int64=100_000, len_sEvec_c::Int64=500) where T <: Tuple len_sEvec_c > size(modelvector.sEvec_c_)[1] && throw(ErrorException("You have just exceeded the number of Matsubara frequencies available for calculations!")) println("Length of len_sEvec_c and length of modelvector.sEvec_c_, respectively : ", len_sEvec_c, " ",size(modelvector.sEvec_c_)[1]) result = Array{Float64,1}(len_sEvec_c) println("in calcintegral_RBZ_ab, kwargs") for n in 1:len_sEvec_c model = Model(modelvector, n) result[n] = (1.0/2.0)*(2.0*pi)^(-2.0)*hcubature(fct(model,param), (-pi,-pi), (pi,pi), reltol=1.49e-8, abstol=1.49e-8, maxevals=maxevals)[1] println("stiff: ", result[n]) end result_out = hcat(modelvector.wvec_[1:len_sEvec_c], result) return result_out end function calcintegral_BZ_ab(modelvector::ModelVector, fct, param::T; maxevals::Int64=100_000, len_sEvec_c::Int64=500) where T <: Tuple println("in calcintegral_BZ_ab: 2.0*calcintegral_RBZ_ab") result_out = 2.0*calcintegral_RBZ_ab(modelvector,fct,param,maxevals=maxevals,len_sEvec_c=len_sEvec_c) return result_out end """ Function used to map any functions on desired k-space grid. Used when pre-computing current vertices. #Arguments: - model: model instance - grid::Int64: k-space grid dimension. - fct: Function object to be mapped onto the BZ grid. #Returns: - Returns an array object of type Array{Float64}(Grid,Grid). This object contains the fct values on the BZ grid. """ function k_grid(model::Model,Grid::Int64,fct) #This function can take tktilde or dispersion relation try BZ_grid = Array{Float64}(Grid,Grid) for (i,ky) in enumerate(linspace(-pi,pi,Grid)) for (j,kx) in enumerate(linspace(-pi,pi,Grid)) BZ_grid[i,j] = fct(model,kx,ky) end end return BZ_grid catch ex if isa(ex,MethodError) BZ_grid = Array{Array{Complex{Float64},2}}(Grid,Grid) for (i,ky) in enumerate(linspace(-pi,pi,Grid)) for (j,kx) in enumerate(linspace(-pi,pi,Grid)) BZ_grid[i,j] = fct(model,kx,ky) end end return BZ_grid else throw(ErrorException("Problem in definition of the type of BZ_grid. See function PeriodizeSC.k_grid.")) end end end """ Function used to in-plane AF+dSC superfluid stiffness without periodization. #Arguments: - modelvector: modelvector instance - kxky::Array{Array{Float64,2},1}: Pre-computed current vertices. - tk::Array{Array{Complex{Float64},2},2}: Pre-computed hopping matrix represented in the reduced supercluster BZ. - Grid::Int64: Value of the k-space grid dimension. - len_sEvec_c::Int64: Length of the Matsubara frequency grid. Set by default to 500. #Returns: - Returns an array of two columns contaning the k-integrated Green's function and the associated Matsubara frequency. """ function stiffness_cluster_G_ab_k_grid(modelvector::ModelVector, kxky::Array{Array{Float64,2},1}, tk::Array{Array{Complex{Float64},2},2}, Grid::Int64; len_sEvec_c::Int64=500) len_sEvec_c > size(modelvector.sEvec_c_)[1] && throw(ErrorException("You have exceeded the number of Matsubara frequencies available for calculations.")) result_n = Array{Float64,1}(len_sEvec_c) for n in 1:len_sEvec_c model = Model(modelvector,n) ########################### Should devide by two when tracing ??? Sum = 0.0 for (i,ky) in enumerate(linspace(-pi,pi,Grid)) for (j,kx) in enumerate(linspace(-pi,pi,Grid)) G = build_gf_ktilde_prebuild(model,tk[i,j]) Sum += 1.0*(kxky[1][i,j]*4.0*(G[1,5]*G[5,1]+G[2,5]*G[5,2]+G[3,5]*G[5,3]+G[4,5]*G[5,4]+G[1,6]*G[6,1]+G[2,6]*G[6,2]+G[3,6]*G[6,3]+G[4,6]*G[6,4]+G[1,7]*G[7,1]+G[2,7]*G[7,2]+G[3,7]*G[7,3]+G[4,7]*G[7,4]+G[1,8]*G[8,1]+G[2,8]*G[8,2]+G[3,8]*G[8,3]+G[4,8]*G[8,4])+ kxky[2][i,j]*2.0*((G[1,5]+G[2,6])*(G[5,2]+G[6,1])+(G[1,6]+G[2,5])*(G[5,1]+G[6,2])+(G[3,5]+G[4,6])*(G[5,4]+G[6,3])+(G[3,6]+G[4,5])*(G[5,3]+G[6,4])+(G[1,7]+G[2,8])*(G[7,2]+G[8,1])+(G[1,8]+G[2,7])*(G[7,1]+G[8,2])+(G[3,7]+G[4,8])*(G[7,4]+G[8,3])+(G[3,8]+G[4,7])*(G[7,3]+G[8,4]))+ kxky[3][i,j]*2.0*(G[3,5]*G[5,1]+G[4,5]*G[5,1]+G[3,5]*G[5,2]+G[4,5]*G[5,2]+G[3,7]*G[5,3]+G[3,8]*G[5,3]+(G[2,7]+G[2,8])*(G[5,2]+G[6,2])+(G[3,6]+G[4,6])*(G[6,1]+G[6,2])+G[3,7]*G[6,3]+G[3,8]*G[6,3]+(G[4,7]+G[4,8])*(G[5,4]+G[6,4])+G[2,6]*(G[6,3]+G[6,4])+G[3,7]*G[7,1]+G[4,7]*G[7,1]+G[3,7]*G[7,2]+G[4,7]*G[7,2]+G[3,5]*G[7,3]+G[3,6]*G[7,3]+G[4,5]*G[7,4]+G[4,6]*G[7,4]+G[2,7]*(G[7,3]+G[7,4])+G[1,7]*(G[5,1]+G[6,1]+G[7,3]+G[7,4])+G[3,8]*G[8,1]+G[4,8]*G[8,1]+G[1,5]*(G[5,3]+G[5,4]+G[7,1]+G[8,1])+G[1,6]*(G[6,3]+G[6,4]+G[7,1]+G[8,1])+(G[3,8]+G[4,8])*G[8,2]+G[2,6]*(G[7,2]+G[8,2])+G[2,5]*(G[5,3]+G[5,4]+G[7,2]+G[8,2])+G[3,5]*G[8,3]+G[3,6]*G[8,3]+(G[4,5]+G[4,6])*G[8,4]+G[2,8]*(G[8,3]+G[8,4])+G[1,8]*(G[5,1]+G[6,1]+G[8,3]+G[8,4]))+ kxky[4][i,j]*2.0*((G[1,5]+G[2,6])*(G[5,2]+G[6,1])+(G[1,6]+G[2,5])*(G[5,1]+G[6,2])+(G[3,5]+G[4,6])*(G[5,4]+G[6,3])+(G[3,6]+G[4,5])*(G[5,3]+G[6,4])+(G[1,7]+G[2,8])*(G[7,2]+G[8,1])+(G[1,8]+G[2,7])*(G[7,1]+G[8,2])+(G[3,7]+G[4,8])*(G[7,4]+G[8,3])+(G[3,8]+G[4,7])*(G[7,3]+G[8,4]))+ kxky[5][i,j]*4.0*(G[2,6]*G[5,1]+G[1,6]*G[5,2]+G[4,6]*G[5,3]+G[3,6]*G[5,4]+G[2,5]*G[6,1]+G[1,5]*G[6,2]+G[4,5]*G[6,3]+G[3,5]*G[6,4]+G[2,8]*G[7,1]+G[1,8]*G[7,2]+G[4,8]*G[7,3]+G[3,8]*G[7,4]+G[2,7]*G[8,1]+G[1,7]*G[8,2]+G[4,7]*G[8,3]+G[3,7]*G[8,4])+ kxky[6][i,j]*2.0*(G[3,6]*G[5,1]+G[4,6]*G[5,1]+G[3,6]*G[5,2]+G[4,6]*G[5,2]+G[4,7]*G[5,3]+G[4,8]*G[5,3]+G[3,7]*G[5,4]+G[3,8]*G[5,4]+G[3,5]*G[6,1]+G[4,5]*G[6,1]+G[3,5]*G[6,2]+G[4,5]*G[6,2]+G[4,7]*G[6,3]+G[4,8]*G[6,3]+G[3,7]*G[6,4]+G[3,8]*G[6,4]+G[3,8]*G[7,1]+G[4,8]*G[7,1]+G[3,8]*G[7,2]+G[4,8]*G[7,2]+G[4,5]*G[7,3]+G[4,6]*G[7,3]+G[3,5]*G[7,4]+G[3,6]*G[7,4]+G[2,8]*(G[5,1]+G[6,1]+G[7,3]+G[7,4])+G[1,8]*(G[5,2]+G[6,2]+G[7,3]+G[7,4])+G[3,7]*G[8,1]+G[4,7]*G[8,1]+G[2,6]*(G[5,3]+G[5,4]+G[7,1]+G[8,1])+G[2,5]*(G[6,3]+G[6,4]+G[7,1]+G[8,1])+(G[3,7]+G[4,7])*G[8,2]+G[1,6]*(G[5,3]+G[5,4]+G[7,2]+G[8,2])+G[1,5]*(G[6,3]+G[6,4]+G[7,2]+G[8,2])+G[4,5]*G[8,3]+G[4,6]*G[8,3]+(G[3,5]+G[3,6])*G[8,4]+G[2,7]*(G[5,1]+G[6,1]+G[8,3]+G[8,4])+G[1,7]*(G[5,2]+G[6,2]+G[8,3]+G[8,4]))+ kxky[7][i,j]*2.0*(G[3,5]*G[5,1]+G[4,5]*G[5,1]+G[3,5]*G[5,2]+G[4,5]*G[5,2]+G[3,7]*G[5,3]+G[3,8]*G[5,3]+(G[2,7]+G[2,8])*(G[5,2]+G[6,2])+(G[3,6]+G[4,6])*(G[6,1]+G[6,2])+G[3,7]*G[6,3]+G[3,8]*G[6,3]+(G[4,7]+G[4,8])*(G[5,4]+G[6,4])+G[2,6]*(G[6,3]+G[6,4])+G[3,7]*G[7,1]+G[4,7]*G[7,1]+G[3,7]*G[7,2]+G[4,7]*G[7,2]+G[3,5]*G[7,3]+G[3,6]*G[7,3]+G[4,5]*G[7,4]+G[4,6]*G[7,4]+G[2,7]*(G[7,3]+G[7,4])+G[1,7]*(G[5,1]+G[6,1]+G[7,3]+G[7,4])+G[3,8]*G[8,1]+G[4,8]*G[8,1]+G[1,5]*(G[5,3]+G[5,4]+G[7,1]+G[8,1])+G[1,6]*(G[6,3]+G[6,4]+G[7,1]+G[8,1])+(G[3,8]+G[4,8])*G[8,2]+G[2,6]*(G[7,2]+G[8,2])+G[2,5]*(G[5,3]+G[5,4]+G[7,2]+G[8,2])+G[3,5]*G[8,3]+G[3,6]*G[8,3]+(G[4,5]+G[4,6])*G[8,4]+G[2,8]*(G[8,3]+G[8,4])+G[1,8]*(G[5,1]+G[6,1]+G[8,3]+G[8,4]))+ kxky[8][i,j]*2.0*(G[3,6]*G[5,1]+G[4,6]*G[5,1]+G[3,6]*G[5,2]+G[4,6]*G[5,2]+G[4,7]*G[5,3]+G[4,8]*G[5,3]+G[3,7]*G[5,4]+G[3,8]*G[5,4]+G[3,5]*G[6,1]+G[4,5]*G[6,1]+G[3,5]*G[6,2]+G[4,5]*G[6,2]+G[4,7]*G[6,3]+G[4,8]*G[6,3]+G[3,7]*G[6,4]+G[3,8]*G[6,4]+G[3,8]*G[7,1]+G[4,8]*G[7,1]+G[3,8]*G[7,2]+G[4,8]*G[7,2]+G[4,5]*G[7,3]+G[4,6]*G[7,3]+G[3,5]*G[7,4]+G[3,6]*G[7,4]+G[2,8]*(G[5,1]+G[6,1]+G[7,3]+G[7,4])+G[1,8]*(G[5,2]+G[6,2]+G[7,3]+G[7,4])+G[3,7]*G[8,1]+G[4,7]*G[8,1]+G[2,6]*(G[5,3]+G[5,4]+G[7,1]+G[8,1])+G[2,5]*(G[6,3]+G[6,4]+G[7,1]+G[8,1])+(G[3,7]+G[4,7])*G[8,2]+G[1,6]*(G[5,3]+G[5,4]+G[7,2]+G[8,2])+G[1,5]*(G[6,3]+G[6,4]+G[7,2]+G[8,2])+G[4,5]*G[8,3]+G[4,6]*G[8,3]+(G[3,5]+G[3,6])*G[8,4]+G[2,7]*(G[5,1]+G[6,1]+G[8,3]+G[8,4])+G[1,7]*(G[5,2]+G[6,2]+G[8,3]+G[8,4]))+ kxky[9][i,j]*4.0*((G[3,7]+G[3,8]+G[4,7]+G[4,8])*(G[5,1]+G[5,2]+G[6,1]+G[6,2])+(G[1,7]+G[1,8]+G[2,7]+G[2,8])*(G[5,3]+G[5,4]+G[6,3]+G[6,4])+(G[3,5]+G[3,6]+G[4,5]+G[4,6])*(G[7,1]+G[7,2]+G[8,1]+G[8,2])+(G[1,5]+G[1,6]+G[2,5]+G[2,6])*(G[7,3]+G[7,4]+G[8,3]+G[8,4]))) end end result_n[n] = 2./(Grid^2)*real(Sum) # Factor 2 accounts for the imaginary axis end result_out = hcat(modelvector.wvec_[1:len_sEvec_c],result_n) println(result_out) return result_out end """ Function used to in-plane AF+dSC superfluid stiffness with periodization. #Arguments: - modelvector: modelvector instance - kxky::Array{Array{Float64,2},1}: Pre-computed current vertices. - tk::Array{Array{Complex{Float64},2},2}: Pre-computed hopping matrix represented in the reduced supercluster BZ. - Grid::Int64: Value of the k-space grid dimension. - Cum::Int64: 1 if the periodization is to be done on the cumulant. 0 if the periodization is to be done on Green's function. - super_data_M_el::Float64: Value of the AF order parameter amplitude. - M_tol::Float64: Relevant for debugging purposes only. - len_sEvec_c::Int64: Length of the Matsubara frequency grid. Set by default to 500. #Returns: - Returns an array of two columns contaning the k-integrated Green's function and the associated Matsubara frequency. """ function stiffness_COEX_Per_Cum_ab_k_grid(modelvector::ModelVector, kxky::Array{Array{Float64,2},1}, tk::Array{Array{Complex{Float64},2},2}, Grid::Int64, Cum::Int64, super_data_M_el::Float64, M_tol::Float64; len_sEvec_c::Int64=500) len_sEvec_c > size(modelvector.sEvec_c_)[1] && throw(ErrorException("You have exceeded the number of Matsubara frequencies available for calculations.")) result_n = Array{Float64,1}(len_sEvec_c) for n in 1:len_sEvec_c model = Model(modelvector,n) Sum = 0.0 cond = abs(super_data_M_el) > M_tol if cond for (i,ky) in enumerate(linspace(-pi,pi,Grid)) for (j,kx) in enumerate(linspace(-pi,pi,Grid)) if Cum == 0 gf_ktilde = build_gf_ktilde_prebuild(model,tk[i,j]) G = periodize_AFM_orb(gf_ktilde, kx, ky) elseif Cum == 1 G = periodize_coex_cum_finale(model, kx, ky) end Sum += 1.0*(kxky[2][i,j]*4.0*(G[1,3]*G[3,1]+G[2,3]*G[3,2]+G[1,4]*G[4,1]+G[2,4]*G[4,2])+ kxky[3][i,j]*2.0*((G[1,3]+G[2,4])*(G[3,2]+G[4,1])+(G[1,4]+G[2,3])*(G[3,1]+G[4,2]))+ kxky[3][i,j]*2.0*((G[1,3]+G[2,4])*(G[3,2]+G[4,1])+(G[1,4]+G[2,3])*(G[3,1]+G[4,2]))+ kxky[4][i,j]*4.0*(G[2,4]*G[3,1]+G[1,4]*G[3,2]+G[2,3]*G[4,1]+G[1,3]*G[4,2])) end end else for (i,ky) in enumerate(linspace(-pi,pi,Grid)) for (j,kx) in enumerate(linspace(-pi,pi,Grid)) if Cum == 0 gf_ktilde = build_gf_ktilde_prebuild(model,tk[i,j]) G = periodize_nocoex(kx, ky, gf_ktilde) elseif Cum == 1 G = stiffness_cum_SC(model, kx, ky) end Sum += 2.0*(kxky[1][i,j]*4.0*(G[1,2]*G[2,1])) ## Factor 2.0 for the spin degrees of freedom end end end result_n[n] = (1./(2*Grid^2))*real(Sum) # Factor 1/2 to avoid counting the spin degree of freedom twice end result_out = hcat(modelvector.wvec_[1:len_sEvec_c],result_n) println(result_out) return result_out end """ Function used to in-plane dSC superfluid stiffness with periodization. #Arguments: - modelvector: modelvector instance - kxky::Array{Array{Float64,2},1}: Pre-computed current vertices. - tk::Array{Array{Complex{Float64},2},2}: Pre-computed hopping matrix represented in the reduced supercluster BZ. - Grid::Int64: Value of the k-space grid dimension. - Cum::Int64: 1 if the periodization is to be done on the cumulant. 0 if the periodization is to be done on Green's function. - AFMSC::Int64: Integer value set to 1 to compute pure SC superfluid stiffness using the formula in coexisting AF+dSC regime. Otherwize, let it be 0. - len_sEvec_c::Int64: Length of the Matsubara frequency grid. Set by default to 500. #Returns: - Returns an array of two columns contaning the k-integrated Green's function and the associated Matsubara frequency. """ function stiffness_NOCOEX_Per_Cum_ab_k_grid(modelvector::ModelVector, kxky::Array{Array{Float64,2},1}, tk::Array{Array{Complex{Float64},2},2}, Grid::Int64, Cum::Int64, AFMSC::Int64; len_sEvec_c::Int64=500) len_sEvec_c > size(modelvector.sEvec_c_)[1] && throw(ErrorException("You have exceeded the number of Matsubara frequencies available for calculations.")) result_n = Array{Float64,1}(len_sEvec_c) for n in 1:len_sEvec_c model = Model(modelvector,n) Sum = 0.0 for (i,ky) in enumerate(linspace(-pi,pi,Grid)) for (j,kx) in enumerate(linspace(-pi,pi,Grid)) if Cum == 0 && AFMSC == 0 gf_ktilde = build_gf_ktilde_prebuild(model,tk[i,j]) G = periodize_nocoex(kx, ky, gf_ktilde) Sum += 1.0*(kxky[1][i,j]*4.0*(G[1,2]*G[2,1])) elseif Cum == 1 && AFMSC == 0 G = periodize_cumulant_SC(model, kx, ky) Sum += 1.0*(kxky[1][i,j]*4.0*(G[1,2]*G[2,1])) elseif Cum == 0 && AFMSC == 1 gf_ktilde = build_gf_ktilde_prebuild(model,tk[i,j]) G = periodize_AFM_orb(gf_ktilde, kx, ky) Sum += 1.0*(kxky[1][i,j]*4.0*(G[1,3]*G[3,1]+G[2,3]*G[3,2]+G[1,4]*G[4,1]+G[2,4]*G[4,2])+ kxky[2][i,j]*2.0*((G[1,3]+G[2,4])*(G[3,2]+G[4,1])+(G[1,4]+G[2,3])*(G[3,1]+G[4,2]))+ kxky[2][i,j]*2.0*((G[1,3]+G[2,4])*(G[3,2]+G[4,1])+(G[1,4]+G[2,3])*(G[3,1]+G[4,2]))+ kxky[3][i,j]*4.0*(G[2,4]*G[3,1]+G[1,4]*G[3,2]+G[2,3]*G[4,1]+G[1,3]*G[4,2])) elseif Cum == 1 && AFMSC == 1 G = periodize_coex_cum_finale(model, kx, ky) Sum += 1.0*(kxky[1][i,j]*4.0*(G[1,3]*G[3,1]+G[2,3]*G[3,2]+G[1,4]*G[4,1]+G[2,4]*G[4,2])+ kxky[2][i,j]*2.0*((G[1,3]+G[2,4])*(G[3,2]+G[4,1])+(G[1,4]+G[2,3])*(G[3,1]+G[4,2]))+ kxky[2][i,j]*2.0*((G[1,3]+G[2,4])*(G[3,2]+G[4,1])+(G[1,4]+G[2,3])*(G[3,1]+G[4,2]))+ kxky[3][i,j]*4.0*(G[2,4]*G[3,1]+G[1,4]*G[3,2]+G[2,3]*G[4,1]+G[1,3]*G[4,2])) end end end result_n[n] = 1./(Grid^2)*real(Sum) # No factor 2 to count the spin degree of freedom end result_out = hcat(modelvector.wvec_[1:len_sEvec_c],result_n) println(result_out) return result_out end end ## End of module
[ 21412, 18581, 1096, 6173, 198, 198, 3500, 7070, 1300, 25, 289, 66, 549, 1300, 198, 3500, 14159, 198, 3500, 19449, 198, 3500, 28498, 57, 198, 198, 62, 45, 66, 796, 604, 198, 62, 45, 66, 45, 796, 807, 1303, 50, 2737, 329, 299, 4131, 84, 796, 4808, 45, 66, 9, 17, 198, 198, 2, 8060, 15965, 2977, 198, 3978, 796, 4151, 7, 5377, 11141, 90, 43879, 2414, 5512, 4808, 45, 66, 8, 198, 57, 1137, 2640, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 4808, 45, 66, 11, 4808, 45, 66, 8, 198, 198, 37811, 198, 6030, 9104, 38469, 6622, 477, 262, 5981, 17794, 2622, 329, 2653, 602, 13, 383, 3170, 12, 259, 2888, 2163, 9104, 38469, 3419, 8075, 281, 198, 39098, 286, 262, 2099, 9104, 38469, 13, 198, 198, 2, 28100, 2886, 286, 9104, 38469, 33529, 198, 198, 12, 256, 62, 3712, 43879, 2414, 25, 3169, 12423, 12, 710, 394, 2865, 47153, 37188, 357, 43879, 2414, 8, 198, 12, 256, 79, 62, 3712, 43879, 2414, 25, 5498, 16936, 12, 710, 394, 2865, 47153, 37188, 357, 43879, 2414, 8, 198, 12, 256, 381, 62, 3712, 43879, 2414, 25, 10467, 16936, 12, 710, 394, 2865, 47153, 37188, 357, 43879, 2414, 8, 198, 12, 38779, 62, 3712, 43879, 2414, 25, 24872, 2785, 357, 43879, 2414, 8, 198, 12, 266, 35138, 62, 3712, 43879, 2414, 25, 30107, 549, 3301, 8373, 10706, 357, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 352, 30072, 198, 12, 264, 36, 35138, 62, 66, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 513, 38362, 20650, 286, 2116, 12, 877, 70, 444, 357, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 513, 30072, 198, 12, 10973, 377, 1187, 62, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 513, 38362, 20650, 286, 10973, 377, 1187, 286, 262, 3469, 338, 2163, 357, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 513, 30072, 198, 198, 2, 35561, 25, 198, 198, 12, 9104, 38469, 4554, 13, 198, 198, 37811, 198, 4906, 9104, 38469, 198, 220, 220, 256, 62, 3712, 43879, 2414, 2162, 256, 79, 62, 3712, 43879, 2414, 2162, 256, 381, 62, 3712, 43879, 2414, 26, 220, 38779, 62, 3712, 43879, 2414, 198, 220, 220, 266, 35138, 62, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 352, 92, 2162, 264, 36, 35138, 62, 66, 62, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 513, 92, 198, 220, 220, 10973, 377, 1187, 62, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 513, 92, 628, 220, 220, 2163, 9104, 38469, 7, 83, 3712, 43879, 2414, 11, 256, 79, 3712, 43879, 2414, 11, 256, 381, 3712, 43879, 2414, 11, 38779, 3712, 43879, 2414, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 35138, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 352, 5512, 264, 36, 35138, 62, 66, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 513, 30072, 628, 220, 220, 220, 220, 220, 220, 220, 10973, 377, 1187, 796, 1382, 62, 36340, 377, 1187, 7, 86, 35138, 11, 38779, 11, 264, 36, 35138, 62, 66, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 649, 7, 83, 11, 256, 79, 11, 256, 381, 11, 38779, 11, 266, 35138, 11, 264, 36, 35138, 62, 66, 11, 10973, 377, 1187, 8, 198, 220, 220, 220, 886, 198, 198, 437, 198, 198, 37811, 198, 22203, 2888, 286, 262, 2099, 9104, 38469, 8024, 262, 10973, 377, 415, 286, 262, 3469, 338, 2163, 13, 220, 198, 11041, 913, 284, 24061, 262, 48713, 312, 49586, 416, 2278, 2890, 262, 10973, 377, 415, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 266, 35138, 62, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 352, 38362, 30107, 549, 3301, 8373, 10706, 357, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 352, 30072, 198, 12, 38779, 62, 3712, 43879, 2414, 25, 24872, 2785, 357, 43879, 2414, 8, 198, 12, 264, 36, 35138, 62, 66, 62, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 513, 38362, 20650, 286, 2116, 12, 877, 70, 444, 357, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 513, 30072, 198, 198, 2, 35561, 25, 198, 198, 12, 10973, 377, 1187, 25, 27843, 377, 1187, 286, 262, 3469, 338, 2163, 357, 5377, 11141, 90, 43879, 2414, 92, 17593, 286, 2546, 362, 9, 45, 66, 1395, 362, 9, 45, 66, 8, 198, 198, 37811, 198, 8818, 1382, 62, 36340, 377, 1187, 7, 86, 35138, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 352, 5512, 38779, 3712, 43879, 2414, 11, 264, 36, 35138, 62, 66, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 513, 30072, 628, 220, 220, 220, 220, 220, 10973, 377, 1187, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 2546, 7, 82, 36, 35138, 62, 66, 4008, 628, 220, 220, 220, 220, 220, 329, 357, 4178, 11, 266, 86, 8, 287, 27056, 378, 7, 86, 35138, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 44104, 45, 66, 45, 11, 4808, 45, 66, 45, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 58, 16, 11, 352, 60, 796, 45218, 58, 17, 11, 362, 60, 796, 45218, 58, 18, 11, 513, 60, 796, 45218, 58, 19, 11, 604, 60, 796, 357, 1383, 1343, 38779, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 58, 20, 11, 642, 60, 796, 45218, 58, 21, 11, 718, 60, 796, 45218, 58, 22, 11, 767, 60, 796, 45218, 58, 23, 11, 807, 60, 796, 532, 1102, 73, 19510, 1383, 1343, 38779, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 48185, 264, 36, 35138, 62, 66, 58, 4178, 11, 1058, 11, 1058, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10973, 377, 1187, 58, 4178, 11, 1058, 11, 1058, 60, 796, 800, 7, 22065, 8, 198, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 1441, 10973, 377, 1187, 198, 437, 198, 198, 37811, 198, 6030, 9104, 6622, 477, 262, 5981, 17794, 2622, 329, 2653, 602, 329, 257, 1813, 30107, 549, 3301, 8373, 13, 383, 3170, 12, 259, 2888, 2163, 9104, 3419, 9113, 32820, 198, 272, 2134, 326, 257, 3161, 72, 468, 257, 2099, 9104, 38469, 13, 198, 198, 2, 28100, 2886, 286, 9104, 33529, 198, 198, 12, 2746, 35138, 25, 9515, 286, 2099, 9104, 38469, 198, 12, 21065, 3712, 46541, 25, 30107, 549, 3301, 8373, 6376, 1271, 357, 5317, 2414, 8, 198, 198, 2, 35561, 25, 198, 198, 12, 9104, 4554, 13, 198, 198, 37811, 198, 4906, 9104, 198, 220, 220, 220, 256, 62, 3712, 43879, 2414, 220, 2162, 256, 79, 62, 3712, 43879, 2414, 2162, 256, 381, 62, 3712, 43879, 2414, 2162, 38779, 62, 3712, 43879, 2414, 198, 220, 220, 220, 266, 62, 3712, 5377, 11141, 90, 43879, 2414, 92, 2162, 264, 36, 62, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 362, 92, 198, 220, 220, 220, 10973, 377, 415, 62, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 362, 92, 628, 220, 220, 220, 2163, 9104, 7, 4666, 9954, 66, 3712, 17633, 38469, 11, 21065, 3712, 46541, 8, 198, 220, 220, 220, 220, 220, 220, 220, 357, 83, 11, 256, 79, 11, 256, 381, 11, 38779, 11, 266, 11, 264, 36, 62, 66, 11, 10973, 377, 415, 8, 796, 357, 4666, 9954, 66, 13, 83, 62, 11, 2746, 35138, 13, 34788, 62, 11, 2746, 35138, 13, 83, 381, 62, 11, 2746, 35138, 13, 30300, 62, 11, 2746, 35138, 13, 86, 35138, 62, 58, 4178, 4357, 2746, 35138, 13, 82, 36, 35138, 62, 66, 62, 58, 4178, 11, 1058, 11, 1058, 4357, 2746, 35138, 13, 36340, 377, 1187, 62, 58, 4178, 11, 1058, 11, 1058, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 649, 7, 83, 11, 256, 79, 11, 256, 381, 11, 38779, 11, 266, 11, 264, 36, 62, 66, 11, 10973, 377, 415, 8, 198, 220, 220, 220, 886, 198, 198, 437, 198, 198, 37811, 198, 22203, 284, 5678, 262, 16936, 12, 710, 394, 2865, 4596, 6900, 8695, 319, 14496, 46, 17, 6616, 47240, 501, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 304, 862, 33576, 74, 25, 11052, 286, 262, 4596, 6900, 8695, 319, 262, 362, 67, 48135, 47240, 501, 198, 198, 37811, 198, 8818, 304, 862, 33576, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 304, 862, 33576, 74, 796, 532, 17, 13, 15, 9, 19849, 13, 83, 62, 9, 7, 6966, 7, 74, 87, 8, 1343, 8615, 7, 2584, 4008, 198, 220, 220, 220, 1441, 304, 862, 33576, 74, 198, 437, 198, 198, 37811, 198, 22203, 284, 5678, 262, 16936, 12, 710, 394, 2865, 4596, 6900, 8695, 27255, 351, 2461, 284, 479, 87, 319, 14496, 46, 17, 6616, 47240, 501, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 44332, 538, 18217, 261, 74, 25, 11052, 286, 262, 4596, 6900, 8695, 27255, 1863, 479, 87, 319, 262, 362, 67, 48135, 47240, 501, 198, 198, 37811, 198, 8818, 360, 87, 538, 18217, 261, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 44332, 538, 18217, 261, 74, 796, 362, 13, 15, 9, 19849, 13, 83, 62, 9, 31369, 7, 74, 87, 8, 198, 220, 220, 220, 1441, 44332, 538, 18217, 261, 74, 198, 437, 198, 198, 37811, 198, 22203, 284, 5678, 262, 16936, 12, 710, 394, 2865, 4596, 6900, 8695, 27255, 351, 2461, 284, 479, 88, 319, 14496, 46, 17, 6616, 47240, 501, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 20268, 538, 18217, 261, 74, 25, 11052, 286, 262, 4596, 6900, 8695, 27255, 1863, 479, 88, 319, 262, 362, 67, 48135, 47240, 501, 198, 198, 37811, 198, 8818, 23524, 538, 18217, 261, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 20268, 538, 18217, 261, 74, 796, 362, 13, 15, 9, 19849, 13, 83, 62, 9, 31369, 7, 2584, 8, 198, 220, 220, 220, 1441, 20268, 538, 18217, 261, 74, 198, 437, 198, 198, 37811, 198, 22203, 284, 5678, 262, 1218, 16936, 12, 710, 394, 2865, 4596, 6900, 8695, 319, 14496, 46, 17, 6616, 47240, 501, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 1976, 316, 461, 25, 11052, 286, 262, 4596, 6900, 8695, 319, 262, 362, 67, 48135, 47240, 501, 198, 198, 37811, 198, 8818, 1976, 316, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1976, 316, 461, 796, 532, 17, 13, 15, 9, 19849, 13, 34788, 62, 9, 7, 6966, 7, 74, 87, 10, 2584, 8, 1343, 8615, 7, 74, 87, 12, 2584, 4008, 198, 220, 220, 220, 1441, 1976, 316, 461, 198, 437, 198, 198, 37811, 198, 22203, 284, 5678, 262, 1218, 16936, 12, 710, 394, 2865, 4596, 6900, 8695, 27255, 1863, 479, 87, 319, 14496, 46, 17, 6616, 47240, 501, 13, 198, 220, 198, 2, 28100, 2886, 25, 198, 220, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 44332, 89, 316, 461, 25, 11052, 286, 262, 4596, 6900, 8695, 27255, 1863, 479, 87, 319, 262, 362, 67, 48135, 47240, 501, 198, 198, 37811, 198, 8818, 360, 87, 89, 316, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 44332, 89, 316, 461, 796, 362, 13, 15, 9, 19849, 13, 34788, 62, 9, 7, 31369, 7, 74, 87, 10, 2584, 47762, 31369, 7, 74, 87, 12, 2584, 4008, 198, 220, 220, 220, 1441, 44332, 89, 316, 461, 198, 437, 198, 198, 37811, 198, 22203, 284, 5678, 262, 1218, 16936, 12, 710, 394, 2865, 4596, 6900, 8695, 27255, 1863, 479, 88, 319, 14496, 46, 17, 6616, 47240, 501, 13, 198, 220, 220, 198, 2, 28100, 2886, 25, 198, 220, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 20268, 89, 316, 461, 25, 11052, 286, 262, 4596, 6900, 8695, 27255, 1863, 479, 88, 319, 262, 362, 67, 48135, 47240, 501, 198, 220, 198, 37811, 198, 8818, 23524, 89, 316, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 20268, 89, 316, 461, 796, 362, 13, 15, 9, 19849, 13, 34788, 62, 9, 7, 31369, 7, 74, 87, 10, 2584, 13219, 31369, 7, 74, 87, 12, 2584, 4008, 198, 220, 220, 220, 1441, 20268, 89, 316, 461, 198, 437, 198, 198, 37811, 198, 22203, 284, 5678, 262, 2368, 16936, 12, 710, 394, 2865, 4596, 6900, 8695, 319, 14496, 46, 17, 6616, 47240, 501, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 267, 28917, 461, 25, 11052, 286, 262, 4596, 6900, 8695, 319, 262, 362, 67, 48135, 47240, 501, 198, 198, 37811, 198, 8818, 267, 28917, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 267, 28917, 461, 796, 532, 17, 13, 15, 9, 19849, 13, 83, 381, 62, 9, 7, 6966, 7, 17, 13, 15, 9, 74, 87, 47762, 6966, 7, 17, 13, 15, 9, 2584, 4008, 198, 220, 220, 220, 1441, 267, 28917, 461, 198, 437, 198, 198, 37811, 198, 22203, 284, 5678, 262, 2368, 16936, 12, 710, 394, 2865, 4596, 6900, 8695, 27255, 1863, 479, 87, 319, 14496, 46, 17, 6616, 47240, 501, 198, 220, 198, 2, 28100, 2886, 25, 198, 220, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 44332, 462, 70, 461, 25, 11052, 286, 262, 4596, 6900, 8695, 27255, 1863, 479, 87, 319, 262, 362, 67, 48135, 47240, 501, 198, 198, 37811, 198, 8818, 360, 87, 462, 70, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 44332, 462, 70, 461, 796, 604, 13, 15, 9, 19849, 13, 83, 381, 62, 9, 31369, 7, 17, 13, 15, 9, 74, 87, 8, 198, 220, 220, 220, 1441, 44332, 462, 70, 461, 198, 437, 198, 198, 37811, 198, 22203, 284, 5678, 262, 2368, 12, 710, 12423, 12, 710, 394, 2865, 4596, 6900, 8695, 27255, 1863, 479, 88, 319, 14496, 46, 17, 6616, 47240, 501, 198, 220, 220, 198, 2, 28100, 2886, 25, 198, 220, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 20268, 462, 70, 461, 25, 11052, 286, 262, 4596, 6900, 8695, 27255, 1863, 479, 88, 319, 262, 362, 67, 48135, 47240, 501, 198, 220, 198, 37811, 198, 8818, 23524, 462, 70, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 20268, 462, 70, 461, 796, 604, 13, 15, 9, 19849, 13, 83, 381, 62, 9, 31369, 7, 17, 13, 15, 9, 2584, 8, 198, 220, 220, 220, 1441, 20268, 462, 70, 461, 198, 437, 198, 198, 37811, 198, 22203, 284, 5678, 262, 1336, 4596, 6900, 8695, 319, 14496, 46, 17, 6616, 47240, 501, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 304, 862, 62, 15, 25, 11052, 286, 262, 1336, 4596, 6900, 8695, 319, 262, 362, 67, 48135, 47240, 501, 198, 198, 37811, 198, 8818, 304, 862, 62, 15, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 7, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 47762, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 198, 437, 198, 198, 29113, 29113, 7804, 4242, 2235, 28511, 5740, 1303, 29113, 29113, 7804, 2235, 198, 2235, 383, 1708, 5499, 5678, 262, 6247, 1459, 9421, 1063, 973, 618, 14492, 262, 287, 12, 14382, 48713, 312, 49586, 13, 383, 3074, 287, 543, 1123, 290, 790, 530, 286, 262, 22492, 198, 2235, 5499, 318, 973, 318, 7368, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22492, 198, 29113, 29113, 29113, 29113, 29113, 7804, 2, 198, 198, 7804, 27843, 377, 415, 290, 3469, 338, 2163, 2278, 1634, 16546, 6374, 691, 198, 8818, 360, 87, 35, 87, 36, 862, 33576, 65, 668, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 357, 35, 87, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 87, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 87, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 9, 7, 35, 87, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 87, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 87, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 198, 437, 198, 198, 8818, 23524, 35, 88, 36, 862, 33576, 65, 668, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 357, 35, 88, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 45579, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 88, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 9, 7, 35, 88, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 45579, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 88, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 198, 437, 198, 198, 4242, 21017, 27843, 377, 415, 290, 3469, 338, 2163, 2278, 1634, 16546, 6374, 10, 8579, 44, 7668, 1181, 198, 8818, 360, 87, 35, 87, 57, 316, 461, 5657, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 357, 35, 87, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 87, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 9, 7, 35, 87, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 87, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 198, 437, 198, 198, 8818, 23524, 35, 88, 57, 316, 461, 5657, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 357, 35, 45579, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 88, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 9, 7, 35, 45579, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 88, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 198, 437, 198, 198, 8818, 360, 87, 35, 87, 57, 316, 461, 49382, 862, 33576, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 357, 35, 87, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 87, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 9, 35, 87, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 23524, 35, 88, 57, 316, 461, 49382, 862, 33576, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 357, 35, 45579, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 47762, 35, 88, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 4008, 9, 35, 88, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 7804, 34912, 7791, 329, 6374, 10, 8579, 44, 7668, 1181, 198, 8818, 360, 87, 35, 87, 89, 316, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 220, 198, 220, 220, 220, 1441, 360, 87, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 87, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 23524, 35, 45579, 316, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 23524, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 45579, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 360, 87, 35, 87, 462, 70, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 220, 198, 220, 220, 220, 1441, 360, 87, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 87, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 23524, 35, 88, 462, 70, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 23524, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 88, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 360, 87, 35, 87, 538, 18217, 261, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 360, 87, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 87, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 23524, 35, 88, 538, 18217, 261, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 23524, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 88, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 360, 87, 35, 87, 89, 316, 461, 462, 70, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 220, 198, 220, 220, 220, 1441, 360, 87, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 87, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 23524, 35, 45579, 316, 461, 462, 70, 461, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 220, 198, 220, 220, 220, 1441, 23524, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 88, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 360, 87, 35, 87, 89, 316, 539, 862, 33576, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 360, 87, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 87, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 23524, 35, 45579, 316, 539, 862, 33576, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 23524, 89, 316, 461, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 88, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 360, 87, 35, 87, 462, 70, 539, 862, 33576, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 360, 87, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 87, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 8818, 23524, 35, 88, 462, 70, 539, 862, 33576, 74, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1441, 23524, 462, 70, 461, 7, 19849, 11, 74, 87, 11, 2584, 27493, 35, 88, 538, 18217, 261, 74, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 437, 198, 198, 29113, 29113, 4242, 2235, 5268, 286, 28511, 5740, 1303, 29113, 29113, 7804, 4242, 21017, 198, 29113, 29113, 29113, 29113, 29113, 7804, 4242, 2, 198, 198, 37811, 198, 22203, 16215, 262, 47153, 1022, 734, 11685, 357, 46141, 46, 17, 13016, 8, 1626, 257, 4326, 2685, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 256, 525, 79, 62, 16485, 1144, 25, 11052, 286, 262, 47027, 2794, 47153, 287, 2846, 286, 262, 287, 12, 14382, 6769, 303, 5217, 198, 7, 6207, 6629, 262, 1459, 9421, 1063, 287, 262, 1459, 12, 14421, 16096, 2163, 8, 198, 198, 37811, 198, 8818, 256, 525, 79, 7, 74, 87, 3712, 43879, 2414, 11, 2584, 3712, 43879, 2414, 8, 198, 220, 220, 220, 8615, 74, 87, 796, 8615, 7, 74, 87, 8, 198, 220, 220, 220, 8615, 2584, 796, 8615, 7, 2584, 8, 198, 220, 220, 220, 256, 525, 79, 796, 532, 7, 6966, 74, 87, 12, 6966, 2584, 27493, 7, 6966, 74, 87, 12, 6966, 2584, 8, 198, 220, 220, 220, 256, 525, 79, 62, 16485, 1144, 796, 256, 525, 79, 9, 83, 525, 79, 198, 220, 220, 220, 1441, 352, 14, 17, 9, 83, 525, 79, 62, 16485, 1144, 220, 44386, 554, 3950, 11, 530, 1276, 751, 257, 5766, 286, 352, 14, 17, 284, 1848, 286, 262, 19287, 1863, 1976, 12, 22704, 13, 198, 437, 198, 198, 37811, 198, 22203, 4375, 262, 1774, 21164, 27111, 284, 262, 5322, 2208, 565, 5819, 347, 57, 284, 262, 987, 565, 5819, 8169, 37840, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 362, 45, 62, 66, 2124, 362, 45, 62, 66, 3716, 12, 39728, 17593, 256, 7, 74, 36796, 83, 44725, 30072, 198, 37811, 198, 8818, 256, 21841, 44725, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 256, 796, 2746, 13, 83, 62, 2162, 256, 79, 796, 2746, 13, 34788, 62, 26, 256, 381, 796, 2746, 13, 83, 381, 62, 198, 220, 220, 220, 479, 796, 685, 74, 87, 11, 479, 88, 60, 198, 220, 220, 220, 374, 62, 49315, 796, 16410, 15, 13, 15, 11, 657, 13, 15, 4357, 685, 16, 13, 15, 11, 657, 13, 15, 4357, 685, 15, 13, 15, 11, 352, 13, 15, 4357, 685, 16, 13, 15, 11, 352, 13, 15, 11907, 198, 220, 220, 220, 509, 62, 49315, 796, 31028, 9, 22089, 30073, 7, 81, 62, 49315, 8, 198, 220, 220, 220, 256, 62, 18747, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 44104, 45, 66, 11, 4808, 45, 66, 4008, 198, 220, 220, 220, 220, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 62, 45, 66, 198, 220, 220, 220, 220, 220, 220, 220, 329, 474, 287, 352, 25, 62, 45, 66, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 509, 287, 509, 62, 49315, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 18747, 58, 72, 11, 474, 60, 15853, 352, 13, 15, 47835, 45, 66, 1635, 1033, 7, 16, 13, 15, 320, 9, 26518, 7, 42, 1343, 479, 11, 374, 62, 49315, 58, 72, 60, 532, 374, 62, 49315, 58, 73, 60, 4008, 1635, 304, 862, 62, 15, 7, 19849, 11, 357, 42, 1343, 479, 8, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 357, 85, 9246, 7, 71, 9246, 7, 83, 62, 18747, 11, 1168, 1137, 2640, 828, 289, 9246, 7, 57, 1137, 2640, 11, 532, 83, 62, 18747, 22305, 198, 437, 198, 198, 37811, 198, 22203, 2615, 262, 1336, 13946, 3469, 338, 2163, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 11, 2116, 12, 22554, 290, 5931, 2785, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 308, 69, 62, 21841, 44725, 25, 362, 45, 62, 66, 2124, 362, 45, 62, 66, 3716, 12, 39728, 17593, 402, 62, 66, 7, 72, 37615, 62, 77, 11, 74, 36796, 83, 44725, 30072, 198, 37811, 198, 8818, 1382, 62, 70, 69, 62, 21841, 44725, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 1976, 89, 796, 357, 19849, 13, 86, 62, 1343, 2746, 13, 30300, 62, 27493, 3978, 198, 220, 220, 220, 1976, 89, 62, 66, 796, 532, 1102, 73, 32590, 1102, 73, 7, 19849, 13, 86, 62, 8, 1343, 2746, 13, 30300, 62, 27493, 3978, 198, 220, 220, 220, 45218, 62, 3019, 796, 357, 85, 9246, 7, 71, 9246, 7, 3019, 11, 1168, 1137, 2640, 828, 289, 9246, 7, 57, 1137, 2640, 11, 532, 1102, 73, 7, 3019, 35514, 1303, 21017, 532, 1102, 73, 7, 3019, 8, 198, 220, 220, 220, 308, 69, 62, 21841, 44725, 796, 800, 7, 22065, 62, 3019, 532, 256, 21841, 44725, 7, 19849, 11, 479, 87, 11, 479, 88, 8, 532, 2746, 13, 82, 36, 62, 8, 198, 220, 220, 220, 1441, 308, 69, 62, 21841, 44725, 198, 437, 198, 198, 37811, 198, 22203, 662, 12, 785, 48074, 262, 1336, 13946, 3469, 338, 2163, 319, 262, 347, 57, 13, 49511, 284, 2866, 510, 287, 12, 14382, 2653, 602, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 11, 2116, 12, 22554, 290, 5931, 2785, 198, 12, 256, 74, 62, 417, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 38362, 662, 12, 785, 17128, 479, 12, 83, 44725, 12, 21186, 47153, 3381, 357, 83, 7, 74, 36796, 83, 44725, 92, 4008, 198, 2, 35561, 25, 198, 198, 12, 308, 69, 62, 21841, 44725, 25, 362, 45, 62, 66, 2124, 362, 45, 62, 66, 3716, 12, 39728, 17593, 402, 62, 66, 7, 72, 37615, 62, 77, 11, 74, 36796, 83, 44725, 30072, 198, 37811, 198, 8818, 1382, 62, 70, 69, 62, 21841, 44725, 62, 3866, 11249, 7, 19849, 3712, 17633, 11, 256, 74, 62, 417, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 30072, 198, 220, 220, 220, 1976, 89, 796, 357, 19849, 13, 86, 62, 1343, 2746, 13, 30300, 62, 27493, 3978, 198, 220, 220, 220, 45218, 62, 3019, 796, 357, 85, 9246, 7, 71, 9246, 7, 3019, 11, 1168, 1137, 2640, 828, 289, 9246, 7, 57, 1137, 2640, 11, 532, 1102, 73, 7, 3019, 35514, 220, 1303, 30556, 1517, 355, 1976, 89, 62, 66, 796, 532, 1102, 73, 32590, 1102, 73, 7, 19849, 13, 86, 62, 8, 1343, 2746, 13, 30300, 62, 27493, 3978, 198, 220, 220, 220, 308, 69, 62, 21841, 44725, 796, 800, 7, 22065, 62, 3019, 532, 256, 74, 62, 417, 532, 2746, 13, 82, 36, 62, 8, 198, 220, 220, 220, 1441, 308, 69, 62, 21841, 44725, 198, 437, 198, 198, 37811, 198, 22203, 973, 284, 2278, 1096, 262, 3469, 338, 2163, 351, 6374, 691, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 12, 26498, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 38362, 406, 1078, 501, 3469, 338, 2163, 287, 2846, 286, 479, 62, 83, 44725, 878, 852, 2278, 1143, 357, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 362, 30072, 198, 198, 2, 35561, 25, 198, 198, 12, 299, 4131, 84, 62, 41007, 1143, 25, 18581, 1143, 47240, 501, 3469, 338, 2163, 357, 5377, 11141, 90, 43879, 2414, 92, 12, 39728, 17593, 657, 13, 20, 9, 45, 66, 1395, 657, 13, 20, 9, 45, 66, 8, 198, 198, 37811, 198, 8818, 2278, 1096, 62, 77, 25634, 1069, 7, 74, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 11, 1822, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 30072, 198, 220, 220, 220, 409, 796, 1033, 7, 16, 13, 15, 320, 9, 74, 87, 8, 198, 220, 220, 220, 1926, 796, 1033, 7, 16, 13, 15, 320, 9, 2584, 8, 198, 220, 220, 220, 795, 87, 796, 11644, 7, 1069, 8, 198, 220, 220, 220, 795, 88, 796, 11644, 7, 2959, 8, 198, 220, 220, 220, 410, 74, 16, 796, 685, 16, 13, 15, 12095, 16, 13, 15, 9, 1069, 12095, 16, 13, 15, 9, 2959, 11, 1069, 9, 2959, 60, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4853, 29540, 13389, 17593, 329, 3469, 583, 13, 561, 307, 25, 198, 220, 220, 220, 410, 74, 17, 796, 25915, 16, 13, 15, 9, 368, 87, 11, 16, 13, 15, 11, 368, 87, 9, 2959, 12095, 16, 13, 15, 9, 2959, 60, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 16, 13, 15, 12095, 16, 13, 15, 9, 1069, 12095, 16, 13, 15, 9, 2959, 11, 1069, 9, 2959, 60, 220, 198, 220, 220, 220, 410, 74, 18, 796, 25915, 16, 13, 15, 9, 3065, 11, 3065, 9, 1069, 11, 16, 13, 15, 12095, 16, 13, 15, 9, 1069, 60, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 12, 16, 13, 15, 9, 368, 87, 11, 16, 13, 15, 11, 368, 87, 9, 2959, 12095, 16, 13, 15, 9, 2959, 60, 198, 220, 220, 220, 410, 74, 19, 796, 685, 368, 87, 9, 3065, 12095, 16, 13, 15, 9, 3065, 12095, 16, 13, 15, 9, 368, 87, 11, 16, 13, 15, 60, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 58, 12, 16, 13, 15, 9, 3065, 11, 3065, 9, 1069, 11, 16, 13, 15, 12095, 16, 13, 15, 9, 1069, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 7, 17, 11, 17, 4008, 220, 220, 220, 220, 220, 220, 1303, 58, 368, 87, 9, 3065, 12095, 16, 13, 15, 9, 3065, 12095, 16, 13, 15, 9, 368, 87, 11, 16, 13, 15, 60, 628, 220, 220, 220, 915, 79, 796, 1822, 58, 16, 25, 19, 11, 16, 25, 19, 60, 198, 220, 220, 220, 31246, 796, 1822, 58, 16, 25, 19, 11, 20, 25, 437, 60, 198, 220, 220, 220, 277, 16344, 363, 796, 1822, 58, 20, 25, 437, 11, 16, 25, 19, 60, 198, 220, 220, 220, 308, 2902, 796, 1822, 58, 20, 25, 437, 11, 20, 25, 437, 60, 628, 220, 220, 220, 32660, 41007, 1143, 796, 685, 70, 929, 11, 487, 11, 487, 67, 363, 11, 70, 2902, 60, 198, 220, 220, 220, 410, 74, 796, 685, 85, 74, 16, 11, 85, 74, 17, 11, 85, 74, 18, 11, 85, 74, 19, 60, 628, 220, 220, 220, 1351, 62, 23350, 796, 17635, 198, 220, 220, 220, 329, 9766, 76, 287, 32660, 41007, 1143, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 72, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 30114, 28, 15, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 7857, 7, 68, 10671, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 474, 287, 352, 25, 7857, 7, 68, 10671, 38381, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 62, 72, 11, 9766, 76, 58, 72, 11, 73, 60, 9, 85, 74, 58, 72, 7131, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 30114, 28, 16345, 7, 4868, 62, 72, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 35235, 7203, 16345, 796, 33172, 30114, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 62, 23350, 11, 82, 13929, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 58, 16, 11, 16, 60, 796, 1351, 62, 23350, 58, 16, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 58, 16, 11, 17, 60, 796, 1351, 62, 23350, 58, 17, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 58, 17, 11, 16, 60, 796, 1351, 62, 23350, 58, 18, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 58, 17, 11, 17, 60, 796, 1351, 62, 23350, 58, 19, 60, 628, 220, 220, 220, 1441, 657, 13, 1495, 9, 77, 4131, 84, 62, 41007, 1143, 198, 437, 628, 198, 37811, 198, 22203, 973, 284, 2278, 1096, 262, 10973, 377, 415, 351, 6374, 691, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 12, 509, 3712, 19182, 90, 43879, 2414, 11, 16, 38362, 15690, 286, 2208, 75, 1078, 501, 48135, 6769, 303, 5217, 357, 1662, 276, 509, 8, 198, 12, 26498, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 38362, 406, 1078, 501, 3469, 338, 2163, 287, 2846, 286, 479, 62, 83, 44725, 878, 852, 2278, 1143, 357, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 362, 30072, 198, 198, 2, 35561, 25, 198, 198, 12, 299, 4131, 84, 62, 36340, 25, 18581, 1143, 47240, 501, 3469, 338, 2163, 357, 5377, 11141, 90, 43879, 2414, 92, 12, 39728, 17593, 657, 13, 20, 9, 45, 66, 1395, 657, 13, 20, 9, 45, 66, 8, 198, 198, 37811, 198, 8818, 2278, 1096, 62, 77, 25634, 1069, 62, 36340, 7, 74, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 11, 509, 3712, 19182, 90, 43879, 2414, 11, 16, 5512, 1822, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 30072, 220, 220, 220, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 7, 17, 11, 17, 4008, 198, 220, 220, 220, 371, 796, 16410, 15, 11, 15, 38430, 16, 11, 15, 38430, 15, 11, 16, 38430, 16, 11, 16, 11907, 198, 220, 220, 220, 479, 796, 685, 74, 87, 11, 2584, 60, 198, 220, 220, 220, 915, 79, 796, 1822, 58, 16, 25, 19, 11, 16, 25, 19, 60, 198, 220, 220, 220, 31246, 796, 1822, 58, 16, 25, 19, 11, 20, 25, 437, 60, 198, 220, 220, 220, 277, 16344, 363, 796, 1822, 58, 20, 25, 437, 11, 16, 25, 19, 60, 198, 220, 220, 220, 308, 2902, 796, 1822, 58, 20, 25, 437, 11, 20, 25, 437, 60, 628, 220, 220, 220, 32660, 41007, 1143, 796, 685, 70, 929, 11, 487, 11, 487, 67, 363, 11, 70, 2902, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 16345, 796, 15690, 90, 5377, 11141, 90, 43879, 2414, 5512, 16, 92, 3419, 198, 220, 220, 220, 329, 9766, 76, 287, 32660, 41007, 1143, 198, 220, 220, 220, 220, 220, 220, 220, 2006, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 72, 11, 49, 16, 8, 287, 27056, 378, 7, 49, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 73, 11, 49, 17, 8, 287, 27056, 378, 7, 49, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2006, 15853, 1033, 32590, 16, 13, 15, 320, 9, 26518, 7, 74, 1343, 509, 1343, 685, 14415, 11, 14415, 4357, 49, 16, 532, 371, 17, 4008, 9, 68, 10671, 58, 72, 11, 73, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 77, 4131, 84, 62, 16345, 11, 83, 313, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 58, 16, 11, 16, 60, 796, 299, 4131, 84, 62, 16345, 58, 16, 11208, 299, 4131, 84, 62, 36340, 58, 16, 11, 17, 60, 796, 299, 4131, 84, 62, 16345, 58, 17, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 58, 17, 11, 16, 60, 796, 299, 4131, 84, 62, 16345, 58, 18, 11208, 299, 4131, 84, 62, 36340, 58, 17, 11, 17, 60, 796, 299, 4131, 84, 62, 16345, 58, 19, 60, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1441, 299, 4131, 84, 62, 36340, 198, 437, 198, 198, 37811, 198, 22203, 3917, 284, 262, 2163, 2278, 2890, 262, 10973, 377, 415, 351, 6374, 691, 13, 34333, 262, 4596, 6900, 2316, 706, 1719, 3170, 262, 10973, 377, 415, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 11, 2116, 12, 22554, 290, 5931, 2785, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 12, 509, 3712, 19182, 90, 43879, 2414, 11, 16, 38362, 15690, 286, 2208, 75, 1078, 501, 48135, 6769, 303, 5217, 357, 1662, 276, 509, 8, 198, 198, 2, 35561, 25, 198, 198, 12, 27843, 377, 415, 286, 262, 3469, 338, 2163, 357, 5377, 11141, 90, 43879, 2414, 92, 12, 39728, 17593, 399, 66, 1395, 399, 66, 8, 198, 198, 37811, 198, 8818, 2278, 1096, 62, 77, 25634, 1069, 62, 36340, 62, 2385, 578, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 11, 509, 3712, 19182, 90, 43879, 2414, 11, 16, 30072, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 62, 16340, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 7, 17, 11, 17, 4008, 628, 220, 220, 220, 299, 4131, 84, 62, 36340, 62, 16340, 796, 800, 7, 41007, 1096, 62, 77, 25634, 1069, 62, 36340, 7, 74, 87, 11, 2584, 11, 42, 11, 19849, 13, 36340, 377, 415, 62, 4008, 198, 220, 220, 220, 220, 198, 220, 220, 220, 479, 796, 685, 74, 87, 11, 2584, 60, 198, 220, 220, 220, 220, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 62, 16340, 58, 16, 11, 16, 60, 48185, 304, 862, 62, 15, 7, 19849, 11, 7, 74, 1343, 509, 1343, 685, 14415, 11, 14415, 12962, 986, 1776, 299, 4131, 84, 62, 36340, 62, 16340, 58, 17, 11, 17, 60, 15853, 304, 862, 62, 15, 7, 19849, 11, 7, 74, 1343, 509, 1343, 685, 14415, 11, 14415, 12962, 23029, 628, 220, 220, 220, 1441, 800, 7, 77, 4131, 84, 62, 36340, 62, 16340, 8, 198, 437, 198, 198, 37811, 198, 22203, 3917, 284, 262, 2163, 2278, 2890, 262, 10973, 377, 415, 351, 6374, 691, 13, 4586, 287, 9641, 2239, 1162, 4363, 278, 284, 262, 220, 198, 12853, 3469, 338, 2163, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 11, 2116, 12, 22554, 290, 5931, 2785, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 299, 4131, 84, 62, 41007, 1143, 25, 18581, 1143, 47240, 501, 3469, 338, 2163, 357, 5377, 11141, 90, 43879, 2414, 92, 12, 39728, 17593, 399, 66, 1395, 399, 66, 8, 198, 37811, 198, 8818, 2278, 1096, 62, 77, 25634, 1069, 62, 36340, 62, 15643, 1000, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 7, 17, 11, 17, 4008, 198, 220, 220, 220, 509, 82, 796, 16410, 15, 1539, 15, 13, 38430, 14415, 11, 15, 13, 38430, 15, 1539, 14415, 38430, 14415, 11, 14415, 11907, 628, 220, 220, 220, 329, 509, 287, 509, 82, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 35235, 7, 42, 8, 198, 220, 220, 220, 220, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 15853, 2278, 1096, 62, 77, 25634, 1069, 62, 36340, 62, 2385, 578, 7, 19849, 11, 74, 87, 11, 2584, 11, 42, 8, 220, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 657, 13, 1495, 9, 77, 4131, 84, 62, 41007, 1143, 198, 437, 198, 198, 37811, 198, 22203, 284, 2278, 1096, 262, 3469, 338, 2163, 351, 763, 41084, 1022, 12341, 290, 6374, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 12, 26498, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 38362, 406, 1078, 501, 3469, 338, 2163, 287, 2846, 286, 479, 62, 83, 44725, 878, 2278, 1143, 357, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 362, 30072, 198, 198, 2, 35561, 25, 198, 198, 12, 299, 4131, 84, 62, 41007, 1143, 25, 18581, 1143, 47240, 501, 3469, 338, 2163, 357, 5377, 11141, 90, 43879, 2414, 92, 12, 39728, 17593, 399, 66, 1395, 399, 66, 8, 198, 198, 37811, 198, 8818, 2278, 1096, 62, 8579, 44, 62, 27688, 7, 853, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 5512, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 44386, 4677, 9219, 378, 2278, 1634, 2446, 329, 12341, 12, 6173, 3341, 198, 220, 220, 220, 371, 62, 32, 796, 16410, 15, 13, 15, 11, 15, 13, 15, 38430, 16, 13, 15, 11, 16, 13, 15, 11907, 198, 220, 220, 220, 371, 62, 33, 796, 16410, 16, 13, 15, 11, 15, 13, 15, 38430, 15, 13, 15, 11, 16, 13, 15, 11907, 198, 220, 220, 220, 509, 62, 87, 796, 16410, 15, 13, 15, 11, 15, 13, 15, 38430, 14415, 11, 15, 13, 15, 60, 11208, 509, 62, 88, 796, 16410, 15, 13, 15, 11, 15, 13, 15, 38430, 15, 13, 15, 11, 14415, 11907, 198, 220, 220, 220, 479, 796, 685, 74, 87, 11, 2584, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 4808, 45, 66, 11, 4808, 45, 66, 8, 628, 220, 220, 220, 915, 79, 796, 1822, 58, 16, 25, 19, 11, 352, 25, 19, 60, 198, 220, 220, 220, 31246, 796, 1822, 58, 16, 25, 19, 11, 642, 25, 437, 60, 198, 220, 220, 220, 277, 16344, 363, 796, 1822, 58, 20, 25, 437, 11, 352, 25, 19, 60, 198, 220, 220, 220, 308, 2902, 796, 1822, 58, 20, 25, 437, 11, 642, 25, 437, 60, 628, 220, 220, 220, 32660, 14809, 796, 685, 70, 929, 11, 31246, 11, 277, 16344, 363, 11, 308, 2902, 60, 198, 220, 220, 220, 7021, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 17, 11, 17, 11, 19, 8, 198, 220, 220, 220, 329, 357, 4178, 11, 68, 10671, 8, 287, 27056, 378, 7, 297, 14809, 8, 198, 220, 220, 220, 220, 220, 220, 220, 308, 3838, 796, 16410, 68, 10671, 58, 16, 11, 16, 4357, 68, 10671, 58, 16, 11, 19, 60, 38430, 68, 10671, 58, 19, 11, 16, 4357, 68, 10671, 58, 19, 11, 19, 11907, 60, 198, 220, 220, 220, 220, 220, 220, 220, 308, 6242, 796, 16410, 68, 10671, 58, 16, 11, 17, 4357, 68, 10671, 58, 16, 11, 18, 60, 38430, 68, 10671, 58, 19, 11, 17, 4357, 68, 10671, 58, 19, 11, 18, 11907, 60, 198, 220, 220, 220, 220, 220, 220, 220, 308, 4339, 796, 16410, 68, 10671, 58, 17, 11, 16, 4357, 68, 10671, 58, 17, 11, 19, 60, 38430, 68, 10671, 58, 18, 11, 16, 4357, 68, 10671, 58, 18, 11, 19, 11907, 60, 198, 220, 220, 220, 220, 220, 220, 220, 308, 15199, 796, 16410, 68, 10671, 58, 17, 11, 17, 4357, 68, 10671, 58, 17, 11, 18, 60, 38430, 68, 10671, 58, 18, 11, 17, 4357, 68, 10671, 58, 18, 11, 18, 11907, 60, 198, 220, 220, 220, 220, 220, 220, 220, 30114, 3838, 796, 30114, 6242, 796, 30114, 4339, 796, 30114, 15199, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 329, 509, 287, 509, 62, 88, 220, 220, 220, 1303, 21017, 42, 62, 87, 290, 509, 62, 88, 815, 307, 7548, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 17926, 287, 352, 25, 7857, 7, 49, 62, 32, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 371, 13680, 524, 287, 352, 25, 7857, 7, 49, 62, 32, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30114, 3838, 15853, 1033, 7, 16, 13, 15, 320, 9, 26518, 7, 42, 1343, 479, 11, 371, 62, 32, 58, 3861, 35505, 60, 532, 371, 62, 32, 58, 3861, 60, 4008, 9, 70, 3838, 58, 3861, 7131, 3861, 35505, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 7021, 58, 16, 11, 16, 11, 4178, 60, 796, 30114, 3838, 198, 220, 220, 220, 220, 220, 220, 220, 329, 509, 287, 509, 62, 88, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 17926, 287, 352, 25, 7857, 7, 49, 62, 32, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 17986, 35505, 287, 352, 25, 7857, 7, 49, 62, 33, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30114, 6242, 15853, 1033, 7, 16, 13, 15, 320, 9, 26518, 7, 42, 1343, 479, 11, 371, 62, 33, 58, 27912, 35505, 60, 532, 371, 62, 32, 58, 3861, 60, 4008, 9, 70, 6242, 58, 3861, 7131, 27912, 35505, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 7021, 58, 16, 11, 17, 11, 4178, 60, 796, 30114, 6242, 198, 220, 220, 220, 220, 220, 220, 220, 329, 509, 287, 509, 62, 88, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 17986, 287, 352, 25, 7857, 7, 49, 62, 33, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 371, 13680, 524, 287, 352, 25, 7857, 7, 49, 62, 32, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30114, 4339, 15853, 1033, 7, 16, 13, 15, 320, 9, 26518, 7, 42, 1343, 479, 11, 371, 62, 32, 58, 3861, 35505, 60, 532, 371, 62, 33, 58, 27912, 60, 4008, 9, 70, 4339, 58, 27912, 7131, 3861, 35505, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 7021, 58, 17, 11, 16, 11, 4178, 60, 796, 30114, 4339, 198, 220, 220, 220, 220, 220, 220, 220, 329, 509, 287, 509, 62, 88, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 17986, 287, 352, 25, 7857, 7, 49, 62, 33, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 17986, 35505, 287, 352, 25, 7857, 7, 49, 62, 33, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30114, 15199, 15853, 1033, 7, 16, 13, 15, 320, 9, 26518, 7, 42, 1343, 479, 11, 371, 62, 33, 58, 27912, 35505, 60, 532, 371, 62, 33, 58, 27912, 60, 4008, 9, 70, 15199, 58, 27912, 7131, 27912, 35505, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 7021, 58, 17, 11, 17, 11, 4178, 60, 796, 30114, 15199, 198, 220, 220, 220, 886, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 58, 16, 25, 17, 11, 16, 25, 17, 60, 796, 7021, 58, 45299, 45299, 16, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 58, 16, 25, 17, 11, 18, 25, 437, 60, 796, 7021, 58, 45299, 45299, 17, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 58, 18, 25, 437, 11, 16, 25, 17, 60, 796, 7021, 58, 45299, 45299, 18, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 58, 18, 25, 437, 11, 18, 25, 437, 60, 796, 7021, 58, 45299, 45299, 19, 60, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1441, 7, 15, 13, 20, 9, 77, 4131, 84, 62, 41007, 1143, 8, 198, 437, 198, 198, 37811, 198, 22203, 284, 2278, 1096, 262, 10973, 377, 415, 287, 262, 1339, 286, 763, 41084, 1022, 12341, 290, 6374, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 12, 26498, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 38362, 406, 1078, 501, 3469, 338, 2163, 287, 2846, 286, 479, 62, 83, 44725, 878, 2278, 1143, 357, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 362, 30072, 198, 12, 509, 3712, 19182, 90, 43879, 2414, 11, 16, 38362, 15690, 286, 2208, 75, 1078, 501, 48135, 6769, 303, 5217, 357, 1662, 276, 509, 8, 198, 198, 2, 35561, 25, 198, 198, 12, 299, 4131, 84, 62, 36340, 25, 18581, 1143, 47240, 501, 3469, 338, 2163, 357, 5377, 11141, 90, 43879, 2414, 92, 12, 39728, 17593, 286, 2546, 399, 66, 2124, 399, 66, 8, 198, 198, 37811, 198, 8818, 2278, 1096, 62, 8579, 44, 62, 27688, 62, 36340, 7, 853, 3712, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 5512, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 11, 509, 3712, 19182, 90, 43879, 2414, 11, 16, 30072, 44386, 4677, 9219, 378, 2278, 1634, 2446, 329, 12341, 44, 12, 6173, 3341, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 19, 11, 19, 8, 198, 220, 220, 220, 371, 62, 32, 796, 16410, 15, 13, 15, 11, 15, 13, 15, 38430, 16, 13, 15, 11, 16, 13, 15, 11907, 198, 220, 220, 220, 371, 62, 33, 796, 16410, 16, 13, 15, 11, 15, 13, 15, 38430, 15, 13, 15, 11, 16, 13, 15, 11907, 198, 220, 220, 220, 479, 796, 685, 74, 87, 11, 2584, 60, 628, 220, 220, 220, 915, 79, 796, 1822, 58, 16, 25, 19, 11, 352, 25, 19, 60, 198, 220, 220, 220, 31246, 796, 1822, 58, 16, 25, 19, 11, 642, 25, 437, 60, 198, 220, 220, 220, 277, 16344, 363, 796, 1822, 58, 20, 25, 437, 11, 352, 25, 19, 60, 198, 220, 220, 220, 308, 2902, 796, 1822, 58, 20, 25, 437, 11, 642, 25, 437, 60, 628, 220, 220, 220, 32660, 14809, 796, 685, 70, 929, 11, 31246, 11, 277, 16344, 363, 11, 308, 2902, 60, 198, 220, 220, 220, 2160, 62, 27372, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 17, 11, 17, 11, 19, 8, 198, 220, 220, 220, 329, 357, 4178, 11, 68, 10671, 8, 287, 27056, 378, 7, 297, 14809, 8, 198, 220, 220, 220, 220, 220, 220, 220, 308, 3838, 796, 16410, 68, 10671, 58, 16, 11, 16, 4357, 68, 10671, 58, 16, 11, 19, 60, 38430, 68, 10671, 58, 19, 11, 16, 4357, 68, 10671, 58, 19, 11, 19, 11907, 60, 198, 220, 220, 220, 220, 220, 220, 220, 308, 6242, 796, 16410, 68, 10671, 58, 16, 11, 17, 4357, 68, 10671, 58, 16, 11, 18, 60, 38430, 68, 10671, 58, 19, 11, 17, 4357, 68, 10671, 58, 19, 11, 18, 11907, 60, 198, 220, 220, 220, 220, 220, 220, 220, 308, 4339, 796, 16410, 68, 10671, 58, 17, 11, 16, 4357, 68, 10671, 58, 17, 11, 19, 60, 38430, 68, 10671, 58, 18, 11, 16, 4357, 68, 10671, 58, 18, 11, 19, 11907, 60, 198, 220, 220, 220, 220, 220, 220, 220, 308, 15199, 796, 16410, 68, 10671, 58, 17, 11, 17, 4357, 68, 10671, 58, 17, 11, 18, 60, 38430, 68, 10671, 58, 18, 11, 17, 4357, 68, 10671, 58, 18, 11, 18, 11907, 60, 198, 220, 220, 220, 220, 220, 220, 220, 30114, 3838, 796, 30114, 6242, 796, 30114, 4339, 796, 30114, 15199, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 329, 17926, 287, 352, 25, 7857, 7, 49, 62, 32, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 371, 13680, 524, 287, 352, 25, 7857, 7, 49, 62, 32, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30114, 3838, 15853, 1033, 7, 16, 13, 15, 320, 9, 26518, 7, 42, 1343, 479, 11, 371, 62, 32, 58, 3861, 35505, 60, 532, 371, 62, 32, 58, 3861, 60, 4008, 9, 70, 3838, 58, 3861, 7131, 3861, 35505, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 27372, 58, 16, 11, 16, 11, 4178, 60, 796, 30114, 3838, 198, 220, 220, 220, 220, 220, 220, 220, 329, 17926, 287, 352, 25, 7857, 7, 49, 62, 32, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 17986, 35505, 287, 352, 25, 7857, 7, 49, 62, 33, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30114, 6242, 15853, 1033, 7, 16, 13, 15, 320, 9, 26518, 7, 42, 1343, 479, 11, 371, 62, 33, 58, 27912, 35505, 60, 532, 371, 62, 32, 58, 3861, 60, 4008, 9, 70, 6242, 58, 3861, 7131, 27912, 35505, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 27372, 58, 16, 11, 17, 11, 4178, 60, 796, 30114, 6242, 198, 220, 220, 220, 220, 220, 220, 220, 329, 17986, 287, 352, 25, 7857, 7, 49, 62, 33, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 371, 13680, 524, 287, 352, 25, 7857, 7, 49, 62, 32, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30114, 4339, 15853, 1033, 7, 16, 13, 15, 320, 9, 26518, 7, 42, 1343, 479, 11, 371, 62, 32, 58, 3861, 35505, 60, 532, 371, 62, 33, 58, 27912, 60, 4008, 9, 70, 4339, 58, 27912, 7131, 3861, 35505, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 27372, 58, 17, 11, 16, 11, 4178, 60, 796, 30114, 4339, 198, 220, 220, 220, 220, 220, 220, 220, 329, 17986, 287, 352, 25, 7857, 7, 49, 62, 33, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 17986, 35505, 287, 352, 25, 7857, 7, 49, 62, 33, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30114, 15199, 15853, 1033, 7, 16, 13, 15, 320, 9, 26518, 7, 42, 1343, 479, 11, 371, 62, 33, 58, 27912, 35505, 60, 532, 371, 62, 33, 58, 27912, 60, 4008, 9, 70, 15199, 58, 27912, 7131, 27912, 35505, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 27372, 58, 17, 11, 17, 11, 4178, 60, 796, 30114, 15199, 198, 220, 220, 220, 886, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 58, 16, 25, 17, 11, 16, 25, 17, 60, 796, 2160, 62, 27372, 58, 45299, 45299, 16, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 58, 16, 25, 17, 11, 18, 25, 437, 60, 796, 2160, 62, 27372, 58, 45299, 45299, 17, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 58, 18, 25, 437, 11, 16, 25, 17, 60, 796, 2160, 62, 27372, 58, 45299, 45299, 18, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 58, 18, 25, 437, 11, 18, 25, 437, 60, 796, 2160, 62, 27372, 58, 45299, 45299, 19, 60, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1441, 299, 4131, 84, 62, 36340, 198, 437, 198, 198, 37811, 198, 22203, 3917, 284, 262, 2163, 2278, 2890, 262, 10973, 377, 415, 287, 262, 1339, 286, 763, 41084, 1022, 12341, 44, 290, 6374, 13, 34333, 262, 220, 198, 6381, 79, 6900, 2316, 706, 1719, 3170, 262, 10973, 377, 415, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 11, 2116, 12, 22554, 290, 5931, 2785, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 12, 509, 3712, 19182, 90, 43879, 2414, 11, 16, 38362, 15690, 286, 2208, 75, 1078, 501, 48135, 6769, 303, 5217, 357, 1662, 276, 509, 8, 198, 198, 2, 35561, 25, 198, 198, 12, 27843, 377, 415, 286, 262, 47240, 501, 3469, 338, 2163, 357, 5377, 11141, 90, 43879, 2414, 92, 12, 39728, 17593, 286, 2546, 399, 66, 2124, 399, 66, 8, 198, 198, 37811, 198, 8818, 2278, 1096, 62, 36340, 62, 1073, 1069, 62, 2385, 578, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 11, 509, 3712, 19182, 90, 43879, 2414, 11, 16, 30072, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 62, 16340, 796, 800, 7, 41007, 1096, 62, 8579, 44, 62, 27688, 62, 36340, 7, 19849, 13, 36340, 377, 415, 62, 11, 74, 87, 11, 2584, 11, 42, 4008, 198, 220, 220, 220, 479, 796, 685, 74, 87, 11, 2584, 60, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 62, 16340, 58, 16, 11, 16, 45297, 28, 89, 316, 461, 7, 19849, 11, 7, 74, 1343, 509, 8, 23029, 10, 462, 70, 461, 7, 19849, 11, 7, 74, 1343, 509, 26513, 1776, 299, 4131, 84, 62, 36340, 62, 16340, 58, 17, 11, 17, 45297, 28, 89, 316, 461, 7, 19849, 11, 7, 74, 1343, 509, 8, 23029, 10, 462, 70, 461, 7, 19849, 11, 7, 74, 1343, 509, 26513, 1776, 299, 4131, 84, 62, 36340, 62, 16340, 58, 16, 11, 17, 45297, 28, 538, 18217, 261, 74, 7, 19849, 11, 7, 74, 1343, 509, 26513, 1776, 299, 4131, 84, 62, 36340, 62, 16340, 58, 17, 11, 16, 45297, 28, 538, 18217, 261, 74, 7, 19849, 11, 7, 74, 1343, 509, 8, 23029, 198, 220, 220, 220, 299, 4131, 84, 62, 36340, 62, 16340, 58, 18, 11, 18, 60, 47932, 89, 316, 461, 7, 19849, 11, 7, 74, 1343, 509, 8, 23029, 10, 462, 70, 461, 7, 19849, 11, 7, 74, 1343, 509, 26513, 1776, 299, 4131, 84, 62, 36340, 62, 16340, 58, 19, 11, 19, 60, 47932, 89, 316, 461, 7, 19849, 11, 7, 74, 1343, 509, 8, 23029, 10, 462, 70, 461, 7, 19849, 11, 7, 74, 1343, 509, 26513, 1776, 299, 4131, 84, 62, 36340, 62, 16340, 58, 19, 11, 18, 60, 47932, 538, 18217, 261, 74, 7, 19849, 11, 7, 74, 1343, 509, 26513, 1776, 299, 4131, 84, 62, 36340, 62, 16340, 58, 18, 11, 19, 60, 47932, 538, 18217, 261, 74, 7, 19849, 11, 7, 74, 1343, 509, 8, 23029, 628, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 62, 20311, 796, 800, 7, 77, 4131, 84, 62, 36340, 62, 16340, 8, 198, 220, 220, 220, 1441, 299, 4131, 84, 62, 41007, 1143, 62, 20311, 198, 437, 198, 198, 37811, 198, 22203, 3917, 284, 262, 2163, 2278, 2890, 262, 10973, 377, 415, 287, 262, 1339, 286, 763, 41084, 1022, 12341, 290, 6374, 13, 4586, 287, 9641, 2239, 1162, 4363, 278, 284, 262, 220, 198, 12853, 3469, 338, 2163, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 11, 2116, 12, 22554, 290, 5931, 2785, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 299, 4131, 84, 62, 41007, 1143, 25, 18581, 1143, 47240, 501, 3469, 338, 2163, 357, 5377, 11141, 90, 43879, 2414, 92, 12, 39728, 17593, 399, 66, 1395, 399, 66, 8, 198, 198, 37811, 198, 8818, 2278, 1096, 62, 1073, 1069, 62, 36340, 62, 15643, 1000, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 796, 1976, 27498, 7, 5377, 11141, 90, 43879, 2414, 5512, 7, 19, 11, 19, 4008, 198, 220, 220, 220, 509, 87, 796, 16410, 15, 11, 15, 38430, 14415, 11, 15, 60, 11208, 11118, 796, 16410, 15, 11, 15, 38430, 15, 11, 14415, 11907, 628, 220, 220, 220, 329, 509, 287, 509, 87, 22492, 393, 11118, 198, 220, 220, 220, 220, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 15853, 2278, 1096, 62, 36340, 62, 1073, 1069, 62, 2385, 578, 7, 19849, 11, 74, 87, 11, 2584, 11, 42, 8, 220, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 657, 13, 20, 9, 77, 4131, 84, 62, 41007, 1143, 198, 437, 198, 198, 37811, 198, 22203, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 288, 6173, 290, 12341, 763, 38476, 357, 4480, 10973, 377, 415, 2278, 1634, 8, 47190, 284, 262, 14496, 46, 17, 6508, 9700, 6614, 220, 198, 12480, 801, 278, 262, 1459, 37423, 26251, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 220, 220, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 47190, 284, 262, 6614, 329, 288, 6173, 10, 8579, 1366, 351, 10973, 377, 415, 2278, 1634, 198, 220, 220, 220, 220, 198, 37811, 198, 8818, 49586, 62, 36340, 377, 415, 62, 8579, 44, 62, 6173, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 62, 20311, 796, 2278, 1096, 62, 1073, 1069, 62, 36340, 62, 15643, 1000, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 83, 525, 79, 7, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 7, 77, 4131, 84, 62, 41007, 1143, 62, 20311, 58, 17, 11, 19, 60, 9, 77, 4131, 84, 62, 41007, 1143, 62, 20311, 58, 18, 11, 16, 48688, 77, 4131, 84, 62, 41007, 1143, 62, 20311, 58, 16, 11, 19, 60, 9, 77, 4131, 84, 62, 41007, 1143, 62, 20311, 58, 18, 11, 17, 48688, 198, 197, 197, 220, 220, 220, 220, 220, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 62, 20311, 58, 17, 11, 18, 60, 9, 77, 4131, 84, 62, 41007, 1143, 62, 20311, 58, 19, 11, 16, 48688, 77, 4131, 84, 62, 41007, 1143, 62, 20311, 58, 16, 11, 18, 60, 9, 77, 4131, 84, 62, 41007, 1143, 62, 20311, 58, 19, 11, 17, 60, 4008, 198, 437, 198, 198, 37811, 198, 22203, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 612, 318, 691, 288, 6173, 357, 4480, 10973, 377, 415, 2278, 1634, 8, 47190, 284, 262, 14496, 46, 17, 6508, 9700, 6614, 220, 198, 12480, 801, 278, 262, 1459, 37423, 26251, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 220, 220, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 47190, 284, 262, 6614, 329, 288, 6173, 12, 8807, 1366, 351, 10973, 377, 415, 2278, 1634, 198, 220, 220, 220, 220, 198, 37811, 198, 8818, 49586, 62, 36340, 62, 6173, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 62, 20311, 796, 2278, 1096, 62, 77, 25634, 1069, 62, 36340, 62, 15643, 1000, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 83, 525, 79, 7, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 7, 77, 4131, 84, 62, 41007, 1143, 62, 20311, 58, 16, 11, 17, 60, 9, 77, 4131, 84, 62, 41007, 1143, 62, 20311, 58, 17, 11, 16, 60, 4008, 198, 437, 628, 198, 37811, 198, 22203, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 612, 318, 691, 288, 6173, 357, 4480, 3469, 2278, 1634, 8, 47190, 284, 262, 14496, 46, 17, 6508, 9700, 6614, 290, 220, 198, 12480, 801, 278, 262, 1459, 37423, 26251, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 220, 220, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 47190, 284, 262, 450, 6614, 329, 288, 6173, 12, 8807, 1366, 351, 3469, 2278, 1634, 198, 220, 220, 220, 198, 37811, 198, 8818, 49586, 62, 6173, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 796, 2278, 1096, 62, 77, 25634, 1069, 7, 74, 87, 11, 479, 88, 11, 1382, 62, 70, 69, 62, 21841, 44725, 7, 19849, 11, 479, 87, 11, 479, 88, 4008, 46424, 2, 12682, 393, 407, 12682, 1279, 32501, 198, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 19, 13, 15, 9, 83, 525, 79, 7, 74, 87, 11, 2584, 27493, 7, 77, 4131, 84, 62, 41007, 1143, 58, 16, 11, 17, 60, 9, 77, 4131, 84, 62, 41007, 1143, 58, 17, 11, 16, 60, 4008, 22492, 45975, 20208, 1051, 198, 437, 198, 198, 37811, 198, 22203, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 612, 318, 691, 288, 6173, 357, 4480, 3469, 2278, 1634, 8, 287, 262, 14496, 46, 17, 6508, 9700, 6614, 220, 198, 12480, 801, 278, 262, 1459, 37423, 26251, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 12, 287, 14382, 62, 22704, 3712, 10100, 25, 10903, 12, 39728, 4578, 284, 11986, 287, 12, 14382, 16488, 1863, 543, 14492, 262, 48713, 312, 49586, 357, 43054, 5324, 43054, 393, 34373, 22556, 59, 11537, 220, 198, 12, 12341, 44, 62, 6173, 62, 16, 3712, 5317, 2414, 25, 34142, 1988, 900, 284, 352, 284, 24061, 5899, 6374, 48713, 312, 49586, 1262, 262, 10451, 287, 763, 25687, 12341, 10, 67, 6173, 7142, 13, 3819, 86, 1096, 11, 1309, 340, 307, 657, 198, 220, 220, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 287, 262, 450, 6614, 329, 288, 6173, 12, 8807, 1366, 351, 3469, 2278, 1634, 198, 220, 220, 220, 198, 37811, 198, 8818, 49586, 62, 77, 25634, 1069, 62, 525, 62, 397, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 11, 287, 14382, 62, 22704, 3712, 10100, 11, 12341, 44, 62, 6173, 62, 16, 3712, 5317, 2414, 8, 198, 220, 220, 220, 611, 12341, 44, 62, 6173, 62, 16, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 402, 796, 2278, 1096, 62, 8579, 44, 62, 27688, 7, 11249, 62, 70, 69, 62, 21841, 44725, 7, 19849, 11, 479, 87, 11, 479, 88, 828, 479, 87, 11, 479, 88, 8, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 611, 287, 14382, 62, 22704, 6624, 366, 5324, 1, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 796, 685, 35, 87, 35, 87, 57, 316, 461, 5657, 11, 35, 87, 35, 87, 57, 316, 461, 49382, 862, 33576, 74, 11, 35, 87, 35, 87, 538, 18217, 261, 74, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 287, 14382, 62, 22704, 6624, 366, 22556, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 796, 685, 35, 88, 35, 88, 57, 316, 461, 5657, 11, 35, 88, 35, 88, 57, 316, 461, 49382, 862, 33576, 74, 11, 35, 88, 35, 88, 538, 18217, 261, 74, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 2606, 3705, 2474, 8, 11405, 3714, 7203, 259, 14382, 62, 22704, 11507, 2753, 691, 734, 1744, 3815, 25, 19990, 5324, 7879, 393, 19990, 22556, 7879, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 74, 87, 2584, 58, 16, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 7, 38, 58, 16, 11, 18, 60, 9, 38, 58, 18, 11, 16, 48688, 38, 58, 17, 11, 18, 60, 9, 38, 58, 18, 11, 17, 48688, 38, 58, 16, 11, 19, 60, 9, 38, 58, 19, 11, 16, 48688, 38, 58, 17, 11, 19, 60, 9, 38, 58, 19, 11, 17, 12962, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 17, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 18, 48688, 38, 58, 17, 11, 19, 12962, 9, 7, 38, 58, 18, 11, 17, 48688, 38, 58, 19, 11, 16, 12962, 33747, 38, 58, 16, 11, 19, 48688, 38, 58, 17, 11, 18, 12962, 9, 7, 38, 58, 18, 11, 16, 48688, 38, 58, 19, 11, 17, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 17, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 18, 48688, 38, 58, 17, 11, 19, 12962, 9, 7, 38, 58, 18, 11, 17, 48688, 38, 58, 19, 11, 16, 12962, 33747, 38, 58, 16, 11, 19, 48688, 38, 58, 17, 11, 18, 12962, 9, 7, 38, 58, 18, 11, 16, 48688, 38, 58, 19, 11, 17, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 18, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 7, 38, 58, 17, 11, 19, 60, 9, 38, 58, 18, 11, 16, 48688, 38, 58, 16, 11, 19, 60, 9, 38, 58, 18, 11, 17, 48688, 38, 58, 17, 11, 18, 60, 9, 38, 58, 19, 11, 16, 48688, 38, 58, 16, 11, 18, 60, 9, 38, 58, 19, 11, 17, 60, 4008, 198, 220, 220, 220, 2073, 361, 12341, 44, 62, 6173, 62, 16, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 402, 796, 2278, 1096, 62, 77, 25634, 1069, 7, 74, 87, 11, 479, 88, 11, 1382, 62, 70, 69, 62, 21841, 44725, 7, 19849, 11, 479, 87, 11, 479, 88, 4008, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 611, 287, 14382, 62, 22704, 6624, 366, 5324, 1, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 796, 360, 87, 35, 87, 36, 862, 33576, 65, 668, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 287, 14382, 62, 22704, 6624, 366, 22556, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 796, 23524, 35, 88, 36, 862, 33576, 65, 668, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 2606, 3705, 2474, 8, 11405, 3714, 7203, 259, 14382, 62, 22704, 11507, 2753, 691, 734, 1744, 3815, 25, 19990, 5324, 7879, 393, 19990, 22556, 7879, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 74, 87, 2584, 7, 19849, 11, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 7, 38, 58, 16, 11, 17, 60, 9, 38, 58, 17, 11, 16, 60, 4008, 198, 220, 220, 220, 886, 198, 437, 198, 198, 37811, 198, 22203, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 288, 6173, 10, 8579, 763, 38476, 357, 4480, 3469, 2278, 1634, 8, 47190, 284, 262, 14496, 46, 17, 6508, 9700, 6614, 290, 220, 198, 12480, 801, 278, 262, 1459, 37423, 26251, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 220, 220, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 47190, 284, 262, 450, 6614, 329, 288, 6173, 10, 8579, 1366, 351, 3469, 2278, 1634, 198, 220, 220, 220, 198, 37811, 198, 8818, 49586, 62, 9288, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 796, 2278, 1096, 62, 8579, 44, 62, 27688, 7, 11249, 62, 70, 69, 62, 21841, 44725, 7, 19849, 11, 479, 87, 11, 479, 88, 828, 479, 87, 11, 479, 88, 8, 198, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 19, 13, 15, 9, 83, 525, 79, 7, 74, 87, 11, 2584, 27493, 7, 77, 4131, 84, 62, 41007, 1143, 58, 17, 11, 19, 60, 9, 77, 4131, 84, 62, 41007, 1143, 58, 18, 11, 16, 48688, 77, 4131, 84, 62, 41007, 1143, 58, 16, 11, 19, 60, 9, 77, 4131, 84, 62, 41007, 1143, 58, 18, 11, 17, 48688, 198, 197, 197, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 4131, 84, 62, 41007, 1143, 58, 17, 11, 18, 60, 9, 77, 4131, 84, 62, 41007, 1143, 58, 19, 11, 16, 48688, 77, 4131, 84, 62, 41007, 1143, 58, 16, 11, 18, 60, 9, 77, 4131, 84, 62, 41007, 1143, 58, 19, 11, 17, 60, 4008, 198, 437, 198, 198, 37811, 198, 22203, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 288, 6173, 10, 8579, 763, 38476, 357, 4480, 3469, 2278, 1634, 8, 287, 262, 14496, 46, 17, 6508, 9700, 6614, 220, 198, 12480, 801, 278, 262, 1459, 37423, 26251, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 12, 287, 14382, 62, 22704, 3712, 10100, 25, 10903, 12, 39728, 4578, 284, 11986, 287, 12, 14382, 16488, 1863, 543, 14492, 262, 48713, 312, 49586, 357, 43054, 5324, 43054, 393, 34373, 22556, 59, 11537, 220, 198, 12, 12341, 44, 62, 6173, 62, 16, 3712, 5317, 2414, 25, 34142, 1988, 900, 284, 352, 284, 24061, 5899, 6374, 48713, 312, 49586, 1262, 262, 10451, 287, 763, 25687, 12341, 10, 67, 6173, 7142, 13, 15323, 1309, 340, 307, 657, 198, 220, 220, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 287, 262, 450, 6614, 329, 288, 6173, 10, 8579, 1366, 351, 3469, 2278, 1634, 198, 220, 220, 220, 198, 37811, 198, 8818, 49586, 62, 1073, 1069, 62, 525, 62, 397, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 11, 287, 14382, 62, 22704, 3712, 10100, 8, 198, 220, 220, 220, 402, 796, 2278, 1096, 62, 8579, 44, 62, 27688, 7, 11249, 62, 70, 69, 62, 21841, 44725, 7, 19849, 11, 479, 87, 11, 479, 88, 828, 479, 87, 11, 479, 88, 8, 198, 220, 220, 220, 611, 287, 14382, 62, 22704, 6624, 366, 5324, 1, 198, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 796, 685, 35, 87, 35, 87, 36, 862, 33576, 65, 668, 11, 35, 87, 35, 87, 57, 316, 461, 5657, 11, 35, 87, 35, 87, 57, 316, 461, 49382, 862, 33576, 74, 11, 35, 87, 35, 87, 538, 18217, 261, 74, 60, 198, 220, 220, 220, 2073, 361, 287, 14382, 62, 22704, 6624, 366, 22556, 1, 198, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 796, 685, 35, 88, 35, 88, 36, 862, 33576, 65, 668, 11, 35, 88, 35, 88, 57, 316, 461, 5657, 11, 35, 88, 35, 88, 57, 316, 461, 49382, 862, 33576, 74, 11, 35, 88, 35, 88, 538, 18217, 261, 74, 60, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 2606, 3705, 2474, 8, 11405, 3714, 7203, 259, 14382, 62, 22704, 11507, 2753, 691, 734, 1744, 3815, 25, 19990, 5324, 7879, 393, 19990, 22556, 7879, 19570, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 74, 87, 2584, 58, 16, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 7, 38, 58, 16, 11, 18, 60, 9, 38, 58, 18, 11, 16, 48688, 38, 58, 17, 11, 18, 60, 9, 38, 58, 18, 11, 17, 48688, 38, 58, 16, 11, 19, 60, 9, 38, 58, 19, 11, 16, 48688, 38, 58, 17, 11, 19, 60, 9, 38, 58, 19, 11, 17, 12962, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 17, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 18, 48688, 38, 58, 17, 11, 19, 12962, 9, 7, 38, 58, 18, 11, 17, 48688, 38, 58, 19, 11, 16, 12962, 33747, 38, 58, 16, 11, 19, 48688, 38, 58, 17, 11, 18, 12962, 9, 7, 38, 58, 18, 11, 16, 48688, 38, 58, 19, 11, 17, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 17, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 18, 48688, 38, 58, 17, 11, 19, 12962, 9, 7, 38, 58, 18, 11, 17, 48688, 38, 58, 19, 11, 16, 12962, 33747, 38, 58, 16, 11, 19, 48688, 38, 58, 17, 11, 18, 12962, 9, 7, 38, 58, 18, 11, 16, 48688, 38, 58, 19, 11, 17, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 18, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 7, 38, 58, 17, 11, 19, 60, 9, 38, 58, 18, 11, 16, 48688, 38, 58, 16, 11, 19, 60, 9, 38, 58, 18, 11, 17, 48688, 38, 58, 17, 11, 18, 60, 9, 38, 58, 19, 11, 16, 48688, 38, 58, 16, 11, 18, 60, 9, 38, 58, 19, 11, 17, 60, 4008, 198, 437, 198, 198, 37811, 198, 22203, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 612, 318, 288, 6173, 290, 12341, 357, 19419, 2278, 1634, 8, 47190, 284, 262, 14496, 46, 17, 6508, 9700, 6614, 220, 198, 12480, 801, 278, 262, 1459, 37423, 26251, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 220, 220, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 47190, 284, 262, 450, 6614, 329, 288, 6173, 10, 8579, 1366, 1231, 2278, 1634, 357, 2213, 4092, 8, 198, 220, 220, 220, 198, 37811, 198, 8818, 49586, 62, 565, 5819, 62, 38, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 402, 796, 1382, 62, 70, 69, 62, 21841, 44725, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 83, 525, 79, 7, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 7, 16345, 7, 38, 58, 16, 25, 19, 11, 20, 25, 437, 60, 4008, 9, 7, 16345, 7, 38, 58, 20, 25, 437, 11, 16, 25, 19, 60, 22305, 198, 437, 198, 198, 37811, 198, 22203, 973, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 612, 318, 288, 6173, 290, 12341, 357, 19419, 2278, 1634, 8, 47190, 284, 262, 14496, 46, 17, 6508, 9700, 6614, 220, 198, 12480, 801, 278, 262, 1459, 37423, 26251, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 220, 220, 220, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 47190, 284, 262, 450, 6614, 329, 288, 6173, 10, 8579, 1366, 1231, 2278, 1634, 198, 220, 220, 220, 198, 37811, 198, 8818, 49586, 62, 565, 5819, 62, 38, 62, 11085, 62, 710, 394, 2865, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 402, 796, 1382, 62, 70, 69, 62, 21841, 44725, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 83, 525, 79, 7, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 19510, 38, 58, 18, 11, 22, 48688, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 16, 11, 22, 48688, 38, 58, 16, 11, 23, 48688, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 58, 17, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 22, 11, 16, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 16, 48688, 38, 58, 23, 11, 17, 12962, 33747, 38, 58, 16, 11, 20, 48688, 38, 58, 16, 11, 21, 48688, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 58, 17, 11, 20, 48688, 38, 58, 17, 11, 21, 12962, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 22305, 198, 437, 198, 198, 37811, 198, 22203, 973, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 612, 318, 288, 6173, 290, 12341, 357, 19419, 2278, 1634, 8, 287, 262, 14496, 46, 17, 6508, 9700, 6614, 220, 198, 12480, 801, 278, 262, 1459, 37423, 26251, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 12, 287, 14382, 62, 22704, 3712, 10100, 25, 554, 12, 14382, 16488, 1863, 543, 262, 48713, 312, 49586, 318, 284, 307, 29231, 13, 198, 220, 220, 220, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 287, 262, 450, 6614, 329, 288, 6173, 10, 8579, 1366, 1231, 2278, 1634, 198, 220, 220, 220, 198, 37811, 198, 8818, 49586, 62, 565, 5819, 62, 38, 62, 397, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 11, 287, 14382, 62, 22704, 3712, 10100, 8, 198, 220, 220, 220, 402, 796, 1382, 62, 70, 69, 62, 21841, 44725, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 220, 220, 220, 611, 287, 14382, 62, 22704, 6624, 366, 5324, 1, 198, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 796, 685, 35, 87, 35, 87, 462, 70, 461, 11, 360, 87, 35, 87, 89, 316, 461, 462, 70, 461, 11, 360, 87, 35, 87, 462, 70, 539, 862, 33576, 74, 11, 360, 87, 35, 87, 89, 316, 539, 862, 33576, 74, 11, 360, 87, 35, 87, 89, 316, 461, 11, 360, 87, 35, 87, 89, 316, 539, 862, 33576, 74, 11, 360, 87, 35, 87, 462, 70, 539, 862, 33576, 74, 11, 360, 87, 35, 87, 89, 316, 539, 862, 33576, 74, 11, 360, 87, 35, 87, 538, 18217, 261, 74, 60, 198, 220, 220, 220, 2073, 361, 287, 14382, 62, 22704, 6624, 366, 22556, 1, 198, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 796, 685, 35, 88, 35, 88, 462, 70, 461, 11, 23524, 35, 45579, 316, 461, 462, 70, 461, 11, 23524, 35, 88, 462, 70, 539, 862, 33576, 74, 11, 23524, 35, 45579, 316, 539, 862, 33576, 74, 11, 23524, 35, 45579, 316, 461, 11, 23524, 35, 45579, 316, 539, 862, 33576, 74, 11, 23524, 35, 88, 462, 70, 539, 862, 33576, 74, 11, 23524, 35, 45579, 316, 539, 862, 33576, 74, 11, 23524, 35, 88, 538, 18217, 261, 74, 60, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 2606, 3705, 2474, 8, 11405, 3714, 7203, 259, 14382, 62, 22704, 11507, 2753, 691, 734, 1744, 3815, 25, 19990, 5324, 7879, 393, 19990, 22556, 7879, 19570, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 19510, 74, 87, 2584, 58, 16, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 7, 38, 58, 16, 11, 20, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 17, 11, 20, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 16, 11, 21, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 17, 11, 21, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 16, 11, 22, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 17, 11, 22, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 16, 11, 23, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 17, 11, 23, 60, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 23, 11, 19, 12962, 10, 198, 220, 220, 220, 479, 87, 2584, 58, 17, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 20, 48688, 38, 58, 17, 11, 21, 12962, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 16, 12962, 33747, 38, 58, 16, 11, 21, 48688, 38, 58, 17, 11, 20, 12962, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 18, 12962, 33747, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 20, 12962, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 33747, 38, 58, 16, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 16, 11, 23, 48688, 38, 58, 17, 11, 22, 12962, 9, 7, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 17, 12962, 33747, 38, 58, 18, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 22, 11, 19, 48688, 38, 58, 23, 11, 18, 12962, 33747, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 22, 12962, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 479, 87, 2584, 58, 18, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 17, 13, 15, 9, 7, 38, 58, 18, 11, 20, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 20, 11, 18, 60, 33747, 38, 58, 17, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 21, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 21, 11, 18, 60, 33747, 38, 58, 19, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 19, 12962, 10, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 17, 11, 22, 60, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 16, 11, 22, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 18, 11, 23, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 16, 11, 20, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 10, 38, 58, 16, 11, 21, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 23, 12962, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 17, 11, 20, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 18, 11, 20, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 23, 11, 18, 60, 33747, 38, 58, 19, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 38, 58, 23, 11, 19, 48688, 38, 58, 17, 11, 23, 60, 9, 7, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 12962, 10, 38, 58, 16, 11, 23, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 479, 87, 2584, 58, 19, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 20, 48688, 38, 58, 17, 11, 21, 12962, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 16, 12962, 33747, 38, 58, 16, 11, 21, 48688, 38, 58, 17, 11, 20, 12962, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 18, 12962, 33747, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 20, 12962, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 33747, 38, 58, 16, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 16, 11, 23, 48688, 38, 58, 17, 11, 22, 12962, 9, 7, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 17, 12962, 33747, 38, 58, 18, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 22, 11, 19, 48688, 38, 58, 23, 11, 18, 12962, 33747, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 22, 12962, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 479, 87, 2584, 58, 20, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 7, 38, 58, 17, 11, 21, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 16, 11, 21, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 17, 11, 20, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 16, 11, 20, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 17, 11, 23, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 16, 11, 23, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 17, 11, 22, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 16, 11, 22, 60, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 23, 11, 19, 12962, 10, 198, 220, 220, 220, 479, 87, 2584, 58, 21, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 17, 13, 15, 9, 7, 38, 58, 18, 11, 21, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 17, 11, 23, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 16, 11, 23, 60, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 10, 38, 58, 17, 11, 20, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 18, 11, 22, 48688, 38, 58, 19, 11, 22, 12962, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 16, 11, 21, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 16, 11, 20, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 19, 11, 20, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 23, 11, 18, 60, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 18, 11, 21, 12962, 9, 38, 58, 23, 11, 19, 48688, 38, 58, 17, 11, 22, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 12962, 10, 38, 58, 16, 11, 22, 60, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 479, 87, 2584, 58, 22, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 17, 13, 15, 9, 7, 38, 58, 18, 11, 20, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 20, 11, 18, 60, 33747, 38, 58, 17, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 21, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 21, 11, 18, 60, 33747, 38, 58, 19, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 19, 12962, 10, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 17, 11, 22, 60, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 16, 11, 22, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 18, 11, 23, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 16, 11, 20, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 10, 38, 58, 16, 11, 21, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 23, 12962, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 17, 11, 20, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 18, 11, 20, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 23, 11, 18, 60, 33747, 38, 58, 19, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 38, 58, 23, 11, 19, 48688, 38, 58, 17, 11, 23, 60, 9, 7, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 12962, 10, 38, 58, 16, 11, 23, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 479, 87, 2584, 58, 23, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 17, 13, 15, 9, 7, 38, 58, 18, 11, 21, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 17, 11, 23, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 16, 11, 23, 60, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 10, 38, 58, 17, 11, 20, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 18, 11, 22, 48688, 38, 58, 19, 11, 22, 12962, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 16, 11, 21, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 16, 11, 20, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 19, 11, 20, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 23, 11, 18, 60, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 18, 11, 21, 12962, 9, 38, 58, 23, 11, 19, 48688, 38, 58, 17, 11, 22, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 12962, 10, 38, 58, 16, 11, 22, 60, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 479, 87, 2584, 58, 24, 16151, 19849, 11, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 19510, 38, 58, 18, 11, 22, 48688, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 16, 11, 22, 48688, 38, 58, 16, 11, 23, 48688, 38, 58, 17, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 22, 11, 16, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 16, 48688, 38, 58, 23, 11, 17, 12962, 33747, 38, 58, 16, 11, 20, 48688, 38, 58, 16, 11, 21, 48688, 38, 58, 17, 11, 20, 48688, 38, 58, 17, 11, 21, 12962, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 35514, 198, 437, 198, 198, 37811, 198, 22203, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 612, 318, 288, 6173, 691, 357, 19419, 2278, 1634, 8, 47190, 284, 262, 14496, 46, 17, 6508, 9700, 6614, 220, 198, 12480, 801, 278, 262, 1459, 37423, 26251, 198, 220, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 220, 220, 220, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 47190, 284, 262, 450, 6614, 329, 288, 6173, 12, 8807, 1366, 1231, 2278, 1634, 198, 198, 37811, 198, 8818, 49586, 62, 40546, 62, 38, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 8, 198, 220, 220, 220, 402, 796, 1382, 62, 70, 69, 62, 21841, 44725, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 83, 525, 79, 7, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 40546, 7, 38, 58, 16, 25, 19, 11, 20, 25, 437, 60, 9, 38, 58, 20, 25, 437, 11, 16, 25, 19, 60, 4008, 198, 437, 198, 198, 37811, 198, 22203, 284, 24061, 262, 48713, 312, 49586, 287, 262, 1339, 612, 318, 288, 6173, 691, 357, 19419, 2278, 1634, 8, 287, 262, 14496, 46, 17, 6508, 9700, 6614, 17985, 278, 262, 1459, 37423, 26251, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 479, 87, 3712, 43879, 2414, 25, 17084, 31364, 287, 2124, 4571, 198, 12, 479, 88, 3712, 43879, 2414, 25, 17084, 31364, 287, 331, 4571, 198, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 25, 11052, 286, 262, 48713, 312, 49586, 287, 262, 450, 6614, 329, 288, 6173, 12, 8807, 1366, 1231, 2278, 1634, 198, 198, 37811, 198, 8818, 49586, 62, 40546, 62, 38, 62, 397, 7, 19849, 3712, 17633, 11, 479, 87, 3712, 43879, 2414, 11, 479, 88, 3712, 43879, 2414, 11, 287, 14382, 62, 22704, 3712, 10100, 8, 198, 220, 220, 220, 402, 796, 1382, 62, 70, 69, 62, 21841, 44725, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 220, 220, 220, 611, 287, 14382, 62, 22704, 6624, 366, 5324, 1, 198, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 796, 360, 87, 35, 87, 36, 862, 33576, 65, 668, 198, 220, 220, 220, 2073, 361, 287, 14382, 62, 22704, 6624, 366, 22556, 1, 198, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 796, 23524, 35, 88, 36, 862, 33576, 65, 668, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 2606, 3705, 2474, 8, 11405, 3714, 7203, 259, 14382, 62, 22704, 11507, 2753, 691, 734, 1744, 3815, 25, 19990, 5324, 7879, 393, 19990, 22556, 7879, 19570, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 352, 13, 15, 9, 5305, 7, 74, 87, 2584, 7, 19849, 11, 74, 87, 11, 2584, 27493, 74, 87, 2584, 7, 19849, 11, 74, 87, 11, 2584, 27493, 19, 13, 15, 9, 40546, 7, 38, 58, 16, 25, 19, 11, 20, 25, 437, 60, 9, 38, 58, 20, 25, 437, 11, 16, 25, 19, 60, 4008, 198, 437, 198, 198, 37811, 198, 30800, 2163, 4465, 284, 1620, 11812, 625, 262, 347, 57, 618, 14492, 287, 12, 14382, 48713, 312, 49586, 1231, 2278, 1634, 13, 220, 198, 34, 4262, 287, 8265, 520, 733, 1108, 13, 20362, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 5772, 3712, 51, 29291, 90, 10100, 11, 10100, 38362, 309, 29291, 286, 734, 13042, 31577, 262, 4571, 1863, 543, 284, 24061, 262, 48713, 312, 49586, 290, 262, 1181, 357, 37424, 393, 7668, 737, 198, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 4132, 25192, 13, 632, 318, 257, 2163, 2134, 973, 284, 24061, 4132, 30691, 13, 198, 198, 37811, 198, 8818, 787, 62, 301, 733, 1108, 62, 565, 5819, 62, 38, 62, 74, 18908, 25192, 62, 397, 7, 19849, 3712, 5990, 2101, 1096, 6173, 13, 17633, 11, 5772, 3712, 51, 8, 810, 309, 1279, 25, 309, 29291, 90, 23839, 10100, 11, 23839, 10100, 92, 198, 220, 220, 220, 2163, 49586, 62, 74, 18908, 25192, 7, 28747, 3712, 19182, 90, 43879, 2414, 11, 16, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 611, 318, 64, 7, 17143, 11, 51, 29291, 90, 10100, 11, 10100, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5772, 58, 16, 60, 6624, 366, 5324, 1, 11405, 5772, 58, 17, 60, 6624, 366, 8220, 6369, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 565, 5819, 62, 38, 62, 397, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 17241, 5324, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 5772, 58, 16, 60, 6624, 366, 22556, 1, 11405, 5772, 58, 17, 60, 6624, 366, 8220, 6369, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 565, 5819, 62, 38, 62, 397, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 17241, 22556, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 5772, 58, 16, 60, 6624, 366, 5324, 1, 11405, 5772, 58, 17, 60, 6624, 366, 45, 4503, 46, 6369, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 40546, 62, 38, 62, 397, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 17241, 5324, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 5772, 58, 16, 60, 6624, 366, 22556, 1, 11405, 5772, 58, 17, 60, 6624, 366, 45, 4503, 46, 6369, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 40546, 62, 38, 62, 397, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 17241, 22556, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 12331, 16922, 7203, 12331, 5091, 287, 2163, 18581, 1096, 6173, 13, 15883, 62, 301, 733, 1108, 62, 565, 5819, 62, 38, 62, 74, 18908, 25192, 62, 397, 13, 5994, 407, 10431, 287, 11055, 526, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 49586, 62, 74, 18908, 25192, 198, 437, 198, 198, 37811, 198, 30800, 2163, 4465, 284, 1620, 11812, 625, 262, 347, 57, 618, 14492, 287, 12, 14382, 48713, 312, 49586, 351, 2278, 1634, 13, 220, 198, 34, 4262, 287, 8265, 520, 733, 1108, 13, 20362, 13, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 284, 423, 1895, 284, 262, 12608, 884, 355, 47153, 4847, 198, 12, 5772, 3712, 51, 29291, 90, 10100, 11, 10100, 11, 5317, 2414, 38362, 309, 29291, 286, 1115, 4847, 31577, 262, 4571, 1863, 543, 284, 24061, 262, 48713, 312, 49586, 11, 262, 1181, 357, 37424, 393, 7668, 8, 290, 281, 5387, 14257, 11507, 13, 198, 198, 2, 35561, 25, 198, 198, 12, 3115, 35522, 312, 49586, 4132, 25192, 13, 632, 318, 257, 2163, 2134, 973, 284, 24061, 4132, 30691, 13, 198, 198, 37811, 198, 8818, 787, 62, 301, 733, 1108, 62, 74, 18908, 25192, 62, 525, 62, 397, 7, 19849, 3712, 5990, 2101, 1096, 6173, 13, 17633, 11, 5772, 3712, 51, 8, 810, 309, 1279, 25, 309, 29291, 90, 23839, 10100, 11, 23839, 10100, 11, 15057, 92, 198, 220, 220, 220, 2163, 49586, 62, 74, 18908, 25192, 7, 28747, 3712, 19182, 90, 43879, 2414, 11, 16, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 611, 318, 64, 7, 17143, 11, 51, 29291, 90, 10100, 11, 10100, 11, 5317, 2414, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5772, 58, 16, 60, 6624, 366, 5324, 1, 11405, 5772, 58, 17, 60, 6624, 366, 8220, 6369, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 1073, 1069, 62, 525, 62, 397, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 17241, 5324, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 5772, 58, 16, 60, 6624, 366, 22556, 1, 11405, 5772, 58, 17, 60, 6624, 366, 8220, 6369, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 1073, 1069, 62, 525, 62, 397, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 17241, 22556, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 5772, 58, 16, 60, 6624, 366, 5324, 1, 11405, 5772, 58, 17, 60, 6624, 366, 45, 4503, 46, 6369, 1, 11405, 5772, 58, 18, 60, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 77, 25634, 1069, 62, 525, 62, 397, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 17241, 5324, 1600, 15, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 5772, 58, 16, 60, 6624, 366, 5324, 1, 11405, 5772, 58, 17, 60, 6624, 366, 45, 4503, 46, 6369, 1, 11405, 5772, 58, 18, 60, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 77, 25634, 1069, 62, 525, 62, 397, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 17241, 5324, 1600, 16, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 5772, 58, 16, 60, 6624, 366, 22556, 1, 11405, 5772, 58, 17, 60, 6624, 366, 45, 4503, 46, 6369, 1, 11405, 5772, 58, 18, 60, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 77, 25634, 1069, 62, 525, 62, 397, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 17241, 22556, 1600, 15, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 5772, 58, 16, 60, 6624, 366, 22556, 1, 11405, 5772, 58, 17, 60, 6624, 366, 45, 4503, 46, 6369, 1, 11405, 5772, 58, 18, 60, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 77, 25634, 1069, 62, 525, 62, 397, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 17241, 22556, 1600, 16, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 12331, 16922, 7203, 12331, 5091, 287, 2163, 18581, 1096, 6173, 13, 15883, 62, 301, 733, 1108, 62, 565, 5819, 62, 38, 62, 74, 18908, 25192, 62, 397, 13, 5994, 407, 10431, 287, 11055, 526, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 49586, 62, 74, 18908, 25192, 198, 437, 198, 198, 29113, 29113, 7804, 4242, 2235, 28511, 5740, 1303, 29113, 29113, 7804, 2235, 198, 2235, 383, 1708, 5499, 719, 355, 11705, 2024, 284, 262, 48713, 312, 49586, 5499, 13, 2312, 5499, 389, 3306, 284, 24061, 262, 4132, 30691, 625, 479, 12, 13200, 13, 383, 3074, 22492, 198, 2235, 287, 543, 1123, 290, 790, 530, 286, 262, 5499, 318, 973, 318, 7368, 416, 663, 1438, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22492, 198, 29113, 29113, 29113, 29113, 29113, 7804, 2, 198, 198, 8818, 787, 62, 301, 733, 1108, 62, 40546, 62, 38, 62, 74, 18908, 25192, 7, 19849, 3712, 5990, 2101, 1096, 6173, 13, 17633, 8, 198, 220, 220, 220, 2163, 49586, 62, 74, 18908, 25192, 7, 28747, 3712, 19182, 90, 43879, 2414, 11, 16, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 40546, 62, 38, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 60, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 49586, 62, 74, 18908, 25192, 198, 437, 198, 198, 8818, 787, 62, 301, 733, 1108, 62, 565, 5819, 62, 38, 62, 74, 18908, 25192, 7, 19849, 3712, 5990, 2101, 1096, 6173, 13, 17633, 8, 198, 220, 220, 220, 2163, 49586, 62, 74, 18908, 25192, 7, 28747, 3712, 19182, 90, 43879, 2414, 11, 16, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 565, 5819, 62, 38, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 60, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 49586, 62, 74, 18908, 25192, 198, 437, 198, 198, 8818, 787, 62, 301, 733, 1108, 62, 565, 5819, 62, 38, 62, 74, 18908, 25192, 62, 49393, 7, 19849, 3712, 5990, 2101, 1096, 6173, 13, 17633, 8, 198, 220, 220, 220, 2163, 49586, 62, 74, 18908, 25192, 7, 28747, 3712, 19182, 90, 43879, 2414, 11, 16, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 565, 5819, 62, 38, 62, 11085, 62, 710, 394, 2865, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 60, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 49586, 62, 74, 18908, 25192, 198, 437, 198, 198, 8818, 787, 62, 301, 733, 1108, 62, 74, 18908, 25192, 62, 36340, 62, 8579, 44, 62, 6173, 7, 19849, 3712, 5990, 2101, 1096, 6173, 13, 17633, 8, 198, 220, 220, 220, 2163, 49586, 62, 74, 18908, 25192, 7, 28747, 3712, 19182, 90, 43879, 2414, 11, 352, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 36340, 377, 415, 62, 8579, 44, 62, 6173, 7, 19849, 11, 479, 74, 58, 16, 4357, 479, 74, 58, 17, 60, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 49586, 62, 74, 18908, 25192, 198, 437, 198, 198, 8818, 787, 62, 301, 733, 1108, 62, 74, 18908, 25192, 62, 36340, 62, 6173, 7, 19849, 3712, 5990, 2101, 1096, 6173, 13, 17633, 8, 198, 220, 220, 220, 2163, 49586, 62, 74, 18908, 25192, 7, 28747, 3712, 19182, 90, 43879, 2414, 11, 352, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 36340, 62, 6173, 7, 19849, 11, 479, 74, 58, 16, 4357, 479, 74, 58, 17, 60, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 49586, 62, 74, 18908, 25192, 198, 437, 198, 198, 8818, 787, 62, 301, 733, 1108, 62, 74, 18908, 25192, 62, 6173, 7, 19849, 3712, 5990, 2101, 1096, 6173, 13, 17633, 8, 198, 220, 220, 220, 2163, 49586, 62, 74, 18908, 25192, 7, 28747, 3712, 19182, 90, 43879, 2414, 11, 16, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 6173, 7, 19849, 11, 479, 74, 58, 16, 4357, 479, 74, 58, 17, 60, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 49586, 62, 74, 18908, 25192, 198, 437, 198, 198, 8818, 787, 62, 301, 733, 1108, 62, 74, 18908, 25192, 62, 9288, 7, 19849, 3712, 5990, 2101, 1096, 6173, 13, 17633, 8, 198, 220, 220, 220, 2163, 49586, 62, 74, 18908, 25192, 7, 28747, 3712, 19182, 90, 43879, 2414, 11, 16, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 7, 5990, 2101, 1096, 6173, 13, 301, 733, 1108, 62, 9288, 7, 19849, 11, 28747, 58, 16, 4357, 28747, 58, 17, 60, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 49586, 62, 74, 18908, 25192, 198, 437, 198, 198, 29113, 29113, 4242, 2235, 5268, 286, 28511, 5740, 1303, 29113, 29113, 7804, 4242, 21017, 198, 29113, 29113, 29113, 29113, 29113, 7804, 4242, 2, 198, 198, 37811, 198, 22203, 973, 284, 2160, 625, 257, 10706, 286, 262, 5322, 347, 57, 13, 220, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 31364, 25, 2746, 31364, 4554, 198, 12, 277, 310, 25, 15553, 2134, 284, 307, 973, 284, 2160, 625, 262, 5322, 347, 57, 13, 198, 12, 10706, 42, 3712, 5317, 2414, 25, 479, 12, 13200, 10706, 399, 87, 45, 11, 810, 399, 318, 900, 284, 1802, 416, 4277, 13, 220, 198, 12, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 25, 22313, 286, 262, 30107, 549, 3301, 8373, 10706, 13, 5345, 416, 4277, 284, 5323, 13, 198, 198, 2, 35561, 25, 198, 198, 12, 16409, 281, 7177, 286, 734, 15180, 542, 7574, 262, 479, 12, 18908, 4111, 3469, 338, 2163, 290, 262, 3917, 30107, 549, 3301, 8373, 13, 198, 198, 37811, 198, 8818, 2160, 62, 27912, 57, 7, 4666, 9954, 2715, 3712, 17633, 38469, 11, 277, 310, 26, 10706, 42, 3712, 5317, 2414, 796, 1802, 11, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 28, 4059, 8, 198, 220, 220, 220, 18896, 62, 82, 36, 35138, 62, 66, 1875, 2546, 7, 4666, 9954, 2715, 13, 82, 36, 35138, 62, 66, 62, 38381, 16, 60, 11405, 3714, 7, 12331, 16922, 7203, 1639, 423, 655, 20672, 262, 1271, 286, 30107, 549, 3301, 19998, 1695, 329, 16765, 2474, 4008, 198, 220, 220, 220, 479, 87, 796, 300, 1040, 10223, 32590, 14415, 11, 14415, 11, 25928, 42, 8, 198, 220, 220, 220, 479, 88, 796, 300, 1040, 10223, 32590, 14415, 11, 14415, 11, 25928, 42, 8, 198, 220, 220, 220, 44872, 7203, 24539, 286, 18896, 62, 82, 36, 35138, 62, 66, 290, 4129, 286, 2746, 31364, 13, 82, 36, 35138, 62, 66, 62, 11, 8148, 1058, 1600, 18896, 62, 82, 36, 35138, 62, 66, 11, 2546, 7, 4666, 9954, 2715, 13, 82, 36, 35138, 62, 66, 62, 38381, 16, 12962, 198, 220, 220, 220, 1255, 62, 74, 62, 521, 796, 15690, 90, 43879, 2414, 92, 7, 11925, 62, 82, 36, 35138, 62, 66, 8, 198, 220, 220, 220, 329, 299, 287, 352, 25, 11925, 62, 82, 36, 35138, 62, 66, 198, 220, 220, 220, 220, 220, 220, 220, 49586, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 796, 9104, 7, 4666, 9954, 2715, 11, 77, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 7857, 7, 2584, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 474, 287, 352, 25, 7857, 7, 74, 87, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49586, 15853, 277, 310, 7, 19849, 11, 74, 87, 58, 73, 4357, 2584, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 49586, 796, 352, 19571, 7, 17, 13, 15, 9, 25928, 42, 61, 17, 27493, 301, 733, 1108, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 74, 62, 521, 58, 77, 60, 796, 49586, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 301, 733, 1108, 796, 33172, 49586, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1255, 62, 448, 796, 289, 9246, 7, 4666, 9954, 2715, 13, 86, 35138, 62, 58, 16, 25, 11925, 62, 82, 36, 35138, 62, 66, 4357, 1255, 62, 74, 62, 521, 8, 198, 220, 220, 220, 1441, 7, 20274, 62, 448, 8, 198, 437, 198, 198, 8818, 2160, 62, 33, 57, 7, 4666, 9954, 2715, 3712, 17633, 38469, 11, 277, 310, 26, 10706, 42, 3712, 5317, 2414, 796, 1802, 11, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 28, 4059, 8, 198, 220, 220, 220, 44872, 7203, 259, 2160, 62, 33, 57, 25, 362, 13, 15, 9, 16345, 62, 27912, 57, 4943, 198, 220, 220, 220, 1255, 62, 448, 796, 362, 13, 15, 9, 16345, 62, 27912, 57, 7, 4666, 9954, 2715, 11, 277, 310, 11, 10706, 42, 28, 25928, 42, 11, 18896, 62, 82, 36, 35138, 62, 66, 28, 11925, 62, 82, 36, 35138, 62, 66, 8, 198, 220, 220, 220, 1441, 1255, 62, 448, 198, 437, 198, 198, 37811, 198, 22203, 973, 284, 19386, 625, 262, 347, 57, 618, 14492, 503, 12, 1659, 12, 14382, 48713, 312, 49586, 13, 220, 198, 198, 2, 28100, 2886, 25, 46541, 1988, 900, 284, 352, 284, 24061, 5899, 6374, 48713, 312, 49586, 1262, 262, 10451, 287, 763, 25687, 12341, 10, 67, 6173, 7142, 13, 3819, 86, 1096, 11, 1309, 340, 307, 657, 198, 198, 12, 2746, 303, 310, 46541, 1988, 900, 284, 352, 284, 24061, 5899, 6374, 48713, 312, 49586, 1262, 262, 10451, 287, 763, 25687, 12341, 10, 67, 6173, 7142, 13, 3819, 86, 1096, 11, 1309, 340, 307, 657, 198, 12, 277, 310, 25, 11138, 66, 46541, 1988, 900, 284, 352, 284, 24061, 5899, 6374, 48713, 312, 49586, 1262, 262, 10451, 287, 763, 25687, 12341, 10, 67, 6173, 7142, 13, 3819, 86, 1096, 11, 1309, 340, 307, 657, 198, 12, 10706, 42, 3712, 818, 46541, 1988, 900, 284, 352, 284, 24061, 5899, 6374, 48713, 312, 49586, 1262, 262, 10451, 287, 763, 25687, 12341, 10, 67, 6173, 7142, 13, 3819, 86, 1096, 11, 1309, 340, 307, 657, 198, 12, 18896, 62, 82, 36, 35138, 46541, 1988, 900, 284, 352, 284, 24061, 5899, 6374, 48713, 312, 49586, 1262, 262, 10451, 287, 763, 25687, 12341, 10, 67, 6173, 7142, 13, 3819, 86, 1096, 11, 1309, 340, 307, 657, 198, 198, 2, 35561, 25, 198, 198, 12, 16409, 281, 7177, 286, 734, 15180, 542, 7574, 262, 479, 12, 18908, 4111, 3469, 338, 2163, 290, 262, 3917, 30107, 549, 3301, 8373, 13, 198, 198, 37811, 198, 8818, 42302, 18908, 1373, 62, 27912, 57, 7, 4666, 9954, 2715, 3712, 17633, 38469, 11, 277, 310, 26, 3509, 1990, 874, 3712, 5317, 2414, 28, 3064, 62, 830, 11, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 28, 4059, 8, 198, 220, 220, 220, 18896, 62, 82, 36, 35138, 62, 66, 1875, 2546, 7, 4666, 9954, 2715, 13, 82, 36, 35138, 62, 66, 62, 38381, 16, 60, 11405, 3714, 7, 12331, 16922, 7203, 1639, 423, 655, 20672, 262, 1271, 286, 30107, 549, 3301, 19998, 1695, 329, 16765, 2474, 4008, 198, 220, 220, 220, 44872, 7203, 24539, 286, 18896, 62, 82, 36, 35138, 62, 66, 290, 4129, 286, 2746, 31364, 13, 82, 36, 35138, 62, 66, 62, 11, 8148, 1058, 33172, 18896, 62, 82, 36, 35138, 62, 66, 11, 366, 220, 33172, 2546, 7, 4666, 9954, 2715, 13, 82, 36, 35138, 62, 66, 62, 38381, 16, 12962, 198, 220, 220, 220, 1255, 796, 15690, 90, 43879, 2414, 11, 16, 92, 7, 11925, 62, 82, 36, 35138, 62, 66, 8, 198, 220, 220, 220, 44872, 7203, 259, 42302, 18908, 1373, 62, 27912, 57, 11, 479, 86, 22046, 4943, 198, 220, 220, 220, 329, 299, 287, 352, 25, 11925, 62, 82, 36, 35138, 62, 66, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 796, 9104, 7, 4666, 9954, 2715, 11, 299, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 35235, 7203, 86, 62, 25, 33172, 2746, 13, 86, 62, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 77, 60, 796, 357, 16, 13, 15, 14, 17, 13, 15, 27493, 7, 17, 13, 15, 9, 14415, 8, 61, 32590, 17, 13, 15, 27493, 71, 66, 549, 1300, 7, 69, 310, 7, 19849, 828, 13841, 14415, 12095, 14415, 828, 357, 14415, 11, 14415, 828, 823, 83, 349, 28, 16, 13, 2920, 68, 12, 23, 11, 16552, 349, 28, 16, 13, 2920, 68, 12, 23, 11, 3509, 1990, 874, 28, 9806, 1990, 874, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 35235, 7203, 301, 733, 25, 33172, 1255, 58, 77, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1255, 62, 448, 796, 289, 9246, 7, 4666, 9954, 2715, 13, 86, 35138, 62, 58, 16, 25, 11925, 62, 82, 36, 35138, 62, 66, 4357, 1255, 8, 198, 220, 220, 220, 1441, 1255, 62, 448, 198, 437, 198, 198, 8818, 42302, 18908, 1373, 62, 33, 57, 7, 4666, 9954, 2715, 3712, 17633, 38469, 11, 277, 310, 26, 3509, 1990, 874, 3712, 5317, 2414, 28, 3064, 62, 830, 11, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 28, 4059, 8, 198, 220, 220, 220, 44872, 7203, 259, 42302, 18908, 1373, 62, 33, 57, 25, 362, 13, 15, 9, 9948, 66, 18908, 1373, 62, 27912, 57, 4943, 198, 220, 220, 220, 1255, 62, 448, 796, 362, 13, 15, 9, 9948, 66, 18908, 1373, 62, 27912, 57, 7, 4666, 9954, 2715, 11, 69, 310, 11, 11925, 62, 82, 36, 35138, 62, 66, 28, 11925, 62, 82, 36, 35138, 62, 66, 8, 198, 220, 220, 220, 1441, 1255, 62, 448, 198, 437, 198, 198, 37811, 198, 22203, 973, 284, 19386, 625, 262, 347, 57, 618, 14492, 287, 12, 14382, 48713, 312, 49586, 13, 220, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 31364, 25, 2746, 31364, 4554, 198, 12, 277, 310, 25, 15553, 2134, 284, 307, 973, 284, 19386, 625, 262, 347, 57, 13, 198, 12, 5772, 3712, 51, 29291, 90, 10100, 11, 10100, 11, 5317, 2414, 38362, 309, 29291, 286, 1115, 4847, 3306, 284, 2148, 780, 286, 262, 1296, 286, 262, 11507, 277, 310, 973, 13, 198, 12, 10706, 42, 3712, 5317, 2414, 25, 479, 12, 13200, 10706, 399, 87, 45, 11, 810, 399, 318, 900, 284, 1802, 416, 4277, 13, 220, 198, 12, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 25, 22313, 286, 262, 30107, 549, 3301, 8373, 10706, 13, 5345, 416, 4277, 284, 5323, 13, 198, 198, 2, 35561, 25, 198, 198, 12, 16409, 281, 7177, 286, 734, 15180, 542, 7574, 262, 479, 12, 18908, 4111, 3469, 338, 2163, 290, 262, 3917, 30107, 549, 3301, 8373, 13, 198, 198, 37811, 198, 8818, 42302, 18908, 1373, 62, 27912, 57, 62, 397, 7, 4666, 9954, 2715, 3712, 17633, 38469, 11, 277, 310, 11, 5772, 3712, 51, 26, 3509, 1990, 874, 3712, 5317, 2414, 28, 3064, 62, 830, 11, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 28, 4059, 8, 810, 309, 1279, 25, 309, 29291, 198, 220, 220, 220, 18896, 62, 82, 36, 35138, 62, 66, 1875, 2546, 7, 4666, 9954, 2715, 13, 82, 36, 35138, 62, 66, 62, 38381, 16, 60, 11405, 3714, 7, 12331, 16922, 7203, 1639, 423, 655, 20672, 262, 1271, 286, 30107, 549, 3301, 19998, 1695, 329, 16765, 2474, 4008, 198, 220, 220, 220, 44872, 7203, 24539, 286, 18896, 62, 82, 36, 35138, 62, 66, 290, 4129, 286, 2746, 31364, 13, 82, 36, 35138, 62, 66, 62, 11, 8148, 1058, 33172, 18896, 62, 82, 36, 35138, 62, 66, 11, 366, 220, 33172, 7857, 7, 4666, 9954, 2715, 13, 82, 36, 35138, 62, 66, 62, 38381, 16, 12962, 198, 220, 220, 220, 1255, 796, 15690, 90, 43879, 2414, 11, 16, 92, 7, 11925, 62, 82, 36, 35138, 62, 66, 8, 198, 220, 220, 220, 44872, 7203, 259, 42302, 18908, 1373, 62, 27912, 57, 62, 397, 11, 479, 86, 22046, 4943, 198, 220, 220, 220, 329, 299, 287, 352, 25, 11925, 62, 82, 36, 35138, 62, 66, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 796, 9104, 7, 4666, 9954, 2715, 11, 299, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 77, 60, 796, 357, 16, 13, 15, 14, 17, 13, 15, 27493, 7, 17, 13, 15, 9, 14415, 8, 61, 32590, 17, 13, 15, 27493, 71, 66, 549, 1300, 7, 69, 310, 7, 19849, 11, 17143, 828, 13841, 14415, 12095, 14415, 828, 357, 14415, 11, 14415, 828, 823, 83, 349, 28, 16, 13, 2920, 68, 12, 23, 11, 16552, 349, 28, 16, 13, 2920, 68, 12, 23, 11, 3509, 1990, 874, 28, 9806, 1990, 874, 38381, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 301, 733, 25, 33172, 1255, 58, 77, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1255, 62, 448, 796, 289, 9246, 7, 4666, 9954, 2715, 13, 86, 35138, 62, 58, 16, 25, 11925, 62, 82, 36, 35138, 62, 66, 4357, 1255, 8, 198, 220, 220, 220, 1441, 1255, 62, 448, 198, 437, 198, 198, 8818, 42302, 18908, 1373, 62, 33, 57, 62, 397, 7, 4666, 9954, 2715, 3712, 17633, 38469, 11, 277, 310, 11, 5772, 3712, 51, 26, 3509, 1990, 874, 3712, 5317, 2414, 28, 3064, 62, 830, 11, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 28, 4059, 8, 810, 309, 1279, 25, 309, 29291, 198, 220, 220, 220, 44872, 7203, 259, 42302, 18908, 1373, 62, 33, 57, 62, 397, 25, 362, 13, 15, 9, 9948, 66, 18908, 1373, 62, 27912, 57, 62, 397, 4943, 198, 220, 220, 220, 1255, 62, 448, 796, 362, 13, 15, 9, 9948, 66, 18908, 1373, 62, 27912, 57, 62, 397, 7, 4666, 9954, 2715, 11, 69, 310, 11, 17143, 11, 9806, 1990, 874, 28, 9806, 1990, 874, 11, 11925, 62, 82, 36, 35138, 62, 66, 28, 11925, 62, 82, 36, 35138, 62, 66, 8, 198, 220, 220, 220, 1441, 1255, 62, 448, 198, 437, 198, 198, 37811, 198, 22203, 973, 284, 3975, 597, 5499, 319, 10348, 479, 12, 13200, 10706, 13, 16718, 618, 662, 12, 785, 48074, 1459, 9421, 1063, 13, 220, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 25, 2746, 4554, 198, 12, 10706, 3712, 5317, 2414, 25, 479, 12, 13200, 10706, 15793, 13, 220, 198, 12, 277, 310, 25, 15553, 2134, 284, 307, 27661, 4291, 262, 347, 57, 10706, 13, 198, 198, 2, 35561, 25, 198, 198, 12, 16409, 281, 7177, 2134, 286, 2099, 15690, 90, 43879, 2414, 92, 7, 41339, 11, 41339, 737, 770, 2134, 4909, 262, 277, 310, 3815, 319, 262, 347, 57, 10706, 13, 198, 198, 37811, 198, 8818, 479, 62, 25928, 7, 19849, 3712, 17633, 11, 41339, 3712, 5317, 2414, 11, 69, 310, 8, 1303, 1212, 2163, 460, 1011, 256, 21841, 44725, 393, 4596, 6900, 8695, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 347, 57, 62, 25928, 796, 15690, 90, 43879, 2414, 92, 7, 41339, 11, 41339, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 72, 11, 2584, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 73, 11, 74, 87, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 57, 62, 25928, 58, 72, 11, 73, 60, 796, 277, 310, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 347, 57, 62, 25928, 198, 220, 220, 220, 4929, 409, 198, 220, 220, 220, 220, 220, 220, 220, 611, 318, 64, 7, 1069, 11, 17410, 12331, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 57, 62, 25928, 796, 15690, 90, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 11709, 7, 41339, 11, 41339, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 72, 11, 2584, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 73, 11, 74, 87, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 57, 62, 25928, 58, 72, 11, 73, 60, 796, 277, 310, 7, 19849, 11, 74, 87, 11, 2584, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 347, 57, 62, 25928, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 12331, 16922, 7203, 40781, 287, 6770, 286, 262, 2099, 286, 347, 57, 62, 25928, 13, 4091, 2163, 18581, 1096, 6173, 13, 74, 62, 25928, 526, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 37811, 198, 22203, 973, 284, 287, 12, 14382, 12341, 10, 67, 6173, 48713, 312, 49586, 1231, 2278, 1634, 13, 220, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 31364, 25, 2746, 31364, 4554, 198, 12, 479, 87, 2584, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 38362, 3771, 12, 785, 17128, 1459, 9421, 1063, 13, 220, 198, 12, 256, 74, 3712, 19182, 90, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 5512, 17, 38362, 3771, 12, 785, 17128, 47153, 17593, 7997, 287, 262, 5322, 2208, 565, 5819, 347, 57, 13, 198, 12, 24846, 3712, 5317, 2414, 25, 11052, 286, 262, 479, 12, 13200, 10706, 15793, 13, 198, 12, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 25, 22313, 286, 262, 30107, 549, 3301, 8373, 10706, 13, 5345, 416, 4277, 284, 5323, 13, 198, 198, 2, 35561, 25, 198, 198, 12, 16409, 281, 7177, 286, 734, 15180, 542, 7574, 262, 479, 12, 18908, 4111, 3469, 338, 2163, 290, 262, 3917, 30107, 549, 3301, 8373, 13, 198, 198, 37811, 198, 8818, 49586, 62, 565, 5819, 62, 38, 62, 397, 62, 74, 62, 25928, 7, 4666, 9954, 2715, 3712, 17633, 38469, 11, 479, 87, 2584, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 5512, 256, 74, 3712, 19182, 90, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 5512, 17, 5512, 24846, 3712, 5317, 2414, 26, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 28, 4059, 8, 198, 220, 220, 220, 18896, 62, 82, 36, 35138, 62, 66, 1875, 2546, 7, 4666, 9954, 2715, 13, 82, 36, 35138, 62, 66, 62, 38381, 16, 60, 11405, 3714, 7, 12331, 16922, 7203, 1639, 423, 20672, 262, 1271, 286, 30107, 549, 3301, 19998, 1695, 329, 16765, 526, 4008, 198, 220, 220, 220, 1255, 62, 77, 796, 15690, 90, 43879, 2414, 11, 16, 92, 7, 11925, 62, 82, 36, 35138, 62, 66, 8, 198, 220, 220, 220, 329, 299, 287, 352, 25, 11925, 62, 82, 36, 35138, 62, 66, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 796, 9104, 7, 4666, 9954, 2715, 11, 77, 8, 1303, 14468, 7804, 2235, 10358, 1614, 485, 416, 734, 618, 35328, 34913, 198, 220, 220, 220, 220, 220, 220, 220, 5060, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 72, 11, 2584, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 73, 11, 74, 87, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 796, 1382, 62, 70, 69, 62, 21841, 44725, 62, 3866, 11249, 7, 19849, 11, 30488, 58, 72, 11, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5060, 15853, 352, 13, 15, 9, 7, 74, 87, 2584, 58, 16, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 16, 11, 20, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 17, 11, 20, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 16, 11, 21, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 17, 11, 21, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 16, 11, 22, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 17, 11, 22, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 16, 11, 23, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 17, 11, 23, 60, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 23, 11, 19, 12962, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 17, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 20, 48688, 38, 58, 17, 11, 21, 12962, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 16, 12962, 33747, 38, 58, 16, 11, 21, 48688, 38, 58, 17, 11, 20, 12962, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 18, 12962, 33747, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 20, 12962, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 33747, 38, 58, 16, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 16, 11, 23, 48688, 38, 58, 17, 11, 22, 12962, 9, 7, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 17, 12962, 33747, 38, 58, 18, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 22, 11, 19, 48688, 38, 58, 23, 11, 18, 12962, 33747, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 22, 12962, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 18, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 7, 38, 58, 18, 11, 20, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 20, 11, 18, 60, 33747, 38, 58, 17, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 21, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 21, 11, 18, 60, 33747, 38, 58, 19, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 19, 12962, 10, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 17, 11, 22, 60, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 16, 11, 22, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 18, 11, 23, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 16, 11, 20, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 10, 38, 58, 16, 11, 21, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 23, 12962, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 17, 11, 20, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 18, 11, 20, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 23, 11, 18, 60, 33747, 38, 58, 19, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 38, 58, 23, 11, 19, 48688, 38, 58, 17, 11, 23, 60, 9, 7, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 12962, 10, 38, 58, 16, 11, 23, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 19, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 20, 48688, 38, 58, 17, 11, 21, 12962, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 16, 12962, 33747, 38, 58, 16, 11, 21, 48688, 38, 58, 17, 11, 20, 12962, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 18, 12962, 33747, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 20, 12962, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 33747, 38, 58, 16, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 16, 11, 23, 48688, 38, 58, 17, 11, 22, 12962, 9, 7, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 17, 12962, 33747, 38, 58, 18, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 22, 11, 19, 48688, 38, 58, 23, 11, 18, 12962, 33747, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 22, 12962, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 20, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 17, 11, 21, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 16, 11, 21, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 17, 11, 20, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 16, 11, 20, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 17, 11, 23, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 16, 11, 23, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 17, 11, 22, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 16, 11, 22, 60, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 23, 11, 19, 12962, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 21, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 7, 38, 58, 18, 11, 21, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 17, 11, 23, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 16, 11, 23, 60, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 10, 38, 58, 17, 11, 20, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 18, 11, 22, 48688, 38, 58, 19, 11, 22, 12962, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 16, 11, 21, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 16, 11, 20, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 19, 11, 20, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 23, 11, 18, 60, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 18, 11, 21, 12962, 9, 38, 58, 23, 11, 19, 48688, 38, 58, 17, 11, 22, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 12962, 10, 38, 58, 16, 11, 22, 60, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 22, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 7, 38, 58, 18, 11, 20, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 20, 11, 18, 60, 33747, 38, 58, 17, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 21, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 21, 11, 18, 60, 33747, 38, 58, 19, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 19, 12962, 10, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 17, 11, 22, 60, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 16, 11, 22, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 18, 11, 23, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 16, 11, 20, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 10, 38, 58, 16, 11, 21, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 23, 12962, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 17, 11, 20, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 18, 11, 20, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 23, 11, 18, 60, 33747, 38, 58, 19, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 38, 58, 23, 11, 19, 48688, 38, 58, 17, 11, 23, 60, 9, 7, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 12962, 10, 38, 58, 16, 11, 23, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 23, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 7, 38, 58, 18, 11, 21, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 20, 11, 16, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 20, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 20, 11, 18, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 20, 11, 19, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 21, 11, 16, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 21, 11, 17, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 21, 11, 18, 48688, 38, 58, 18, 11, 22, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 21, 11, 19, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 22, 11, 16, 48688, 38, 58, 18, 11, 23, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 23, 60, 9, 38, 58, 22, 11, 17, 48688, 38, 58, 19, 11, 20, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 22, 11, 18, 48688, 38, 58, 18, 11, 20, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 18, 11, 21, 60, 9, 38, 58, 22, 11, 19, 48688, 38, 58, 17, 11, 23, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 16, 11, 23, 60, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 48688, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 12962, 10, 38, 58, 18, 11, 22, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 19, 11, 22, 60, 9, 38, 58, 23, 11, 16, 48688, 38, 58, 17, 11, 21, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 10, 38, 58, 17, 11, 20, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 16, 48688, 38, 58, 23, 11, 16, 12962, 33747, 38, 58, 18, 11, 22, 48688, 38, 58, 19, 11, 22, 12962, 9, 38, 58, 23, 11, 17, 48688, 38, 58, 16, 11, 21, 60, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 16, 11, 20, 60, 9, 7, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 17, 12962, 10, 38, 58, 19, 11, 20, 60, 9, 38, 58, 23, 11, 18, 48688, 38, 58, 19, 11, 21, 60, 9, 38, 58, 23, 11, 18, 60, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 18, 11, 21, 12962, 9, 38, 58, 23, 11, 19, 48688, 38, 58, 17, 11, 22, 60, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 12962, 10, 38, 58, 16, 11, 22, 60, 9, 7, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 17, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 24, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 19510, 38, 58, 18, 11, 22, 48688, 38, 58, 18, 11, 23, 48688, 38, 58, 19, 11, 22, 48688, 38, 58, 19, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 16, 48688, 38, 58, 20, 11, 17, 48688, 38, 58, 21, 11, 16, 48688, 38, 58, 21, 11, 17, 12962, 33747, 38, 58, 16, 11, 22, 48688, 38, 58, 16, 11, 23, 48688, 38, 58, 17, 11, 22, 48688, 38, 58, 17, 11, 23, 12962, 9, 7, 38, 58, 20, 11, 18, 48688, 38, 58, 20, 11, 19, 48688, 38, 58, 21, 11, 18, 48688, 38, 58, 21, 11, 19, 12962, 33747, 38, 58, 18, 11, 20, 48688, 38, 58, 18, 11, 21, 48688, 38, 58, 19, 11, 20, 48688, 38, 58, 19, 11, 21, 12962, 9, 7, 38, 58, 22, 11, 16, 48688, 38, 58, 22, 11, 17, 48688, 38, 58, 23, 11, 16, 48688, 38, 58, 23, 11, 17, 12962, 33747, 38, 58, 16, 11, 20, 48688, 38, 58, 16, 11, 21, 48688, 38, 58, 17, 11, 20, 48688, 38, 58, 17, 11, 21, 12962, 9, 7, 38, 58, 22, 11, 18, 48688, 38, 58, 22, 11, 19, 48688, 38, 58, 23, 11, 18, 48688, 38, 58, 23, 11, 19, 60, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 77, 58, 77, 60, 796, 362, 19571, 7, 41339, 61, 17, 27493, 5305, 7, 13065, 8, 1303, 27929, 362, 5504, 329, 262, 26726, 16488, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1255, 62, 448, 796, 289, 9246, 7, 4666, 9954, 2715, 13, 86, 35138, 62, 58, 16, 25, 11925, 62, 82, 36, 35138, 62, 66, 4357, 20274, 62, 77, 8, 198, 220, 220, 220, 44872, 7, 20274, 62, 448, 8, 198, 220, 220, 220, 1441, 1255, 62, 448, 198, 437, 198, 198, 37811, 198, 22203, 973, 284, 287, 12, 14382, 12341, 10, 67, 6173, 48713, 312, 49586, 351, 2278, 1634, 13, 220, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 31364, 25, 2746, 31364, 4554, 198, 12, 479, 87, 2584, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 38362, 3771, 12, 785, 17128, 1459, 9421, 1063, 13, 220, 198, 12, 256, 74, 3712, 19182, 90, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 5512, 17, 38362, 3771, 12, 785, 17128, 47153, 17593, 7997, 287, 262, 5322, 2208, 565, 5819, 347, 57, 13, 198, 12, 24846, 3712, 5317, 2414, 25, 11052, 286, 262, 479, 12, 13200, 10706, 15793, 13, 198, 12, 27843, 3712, 5317, 2414, 25, 352, 611, 262, 2278, 1634, 318, 284, 307, 1760, 319, 262, 10973, 377, 415, 13, 657, 611, 262, 2278, 1634, 318, 284, 307, 1760, 319, 3469, 338, 2163, 13, 198, 12, 2208, 62, 7890, 62, 44, 62, 417, 3712, 43879, 2414, 25, 11052, 286, 262, 12341, 1502, 11507, 37188, 13, 198, 12, 337, 62, 83, 349, 3712, 43879, 2414, 25, 797, 14938, 329, 28769, 4959, 691, 13, 220, 198, 12, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 25, 22313, 286, 262, 30107, 549, 3301, 8373, 10706, 13, 5345, 416, 4277, 284, 5323, 13, 198, 198, 2, 35561, 25, 198, 198, 12, 16409, 281, 7177, 286, 734, 15180, 542, 7574, 262, 479, 12, 18908, 4111, 3469, 338, 2163, 290, 262, 3917, 30107, 549, 3301, 8373, 13, 198, 198, 37811, 198, 8818, 49586, 62, 8220, 6369, 62, 5990, 62, 34, 388, 62, 397, 62, 74, 62, 25928, 7, 4666, 9954, 2715, 3712, 17633, 38469, 11, 479, 87, 2584, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 5512, 256, 74, 3712, 19182, 90, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 5512, 17, 5512, 24846, 3712, 5317, 2414, 11, 27843, 3712, 5317, 2414, 11, 2208, 62, 7890, 62, 44, 62, 417, 3712, 43879, 2414, 11, 337, 62, 83, 349, 3712, 43879, 2414, 26, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 28, 4059, 8, 198, 220, 220, 220, 18896, 62, 82, 36, 35138, 62, 66, 1875, 2546, 7, 4666, 9954, 2715, 13, 82, 36, 35138, 62, 66, 62, 38381, 16, 60, 11405, 3714, 7, 12331, 16922, 7203, 1639, 423, 20672, 262, 1271, 286, 30107, 549, 3301, 19998, 1695, 329, 16765, 526, 4008, 198, 220, 220, 220, 1255, 62, 77, 796, 15690, 90, 43879, 2414, 11, 16, 92, 7, 11925, 62, 82, 36, 35138, 62, 66, 8, 198, 220, 220, 220, 329, 299, 287, 352, 25, 11925, 62, 82, 36, 35138, 62, 66, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 796, 9104, 7, 4666, 9954, 2715, 11, 77, 8, 198, 220, 220, 220, 220, 220, 220, 220, 5060, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 1779, 796, 2352, 7, 16668, 62, 7890, 62, 44, 62, 417, 8, 1875, 337, 62, 83, 349, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1779, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 72, 11, 2584, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 73, 11, 74, 87, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27843, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 69, 62, 21841, 44725, 796, 1382, 62, 70, 69, 62, 21841, 44725, 62, 3866, 11249, 7, 19849, 11, 30488, 58, 72, 11, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 796, 2278, 1096, 62, 8579, 44, 62, 27688, 7, 70, 69, 62, 21841, 44725, 11, 479, 87, 11, 479, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 27843, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 796, 2278, 1096, 62, 1073, 1069, 62, 36340, 62, 15643, 1000, 7, 19849, 11, 479, 87, 11, 479, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5060, 15853, 352, 13, 15, 9, 7, 74, 87, 2584, 58, 17, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 16, 11, 18, 60, 9, 38, 58, 18, 11, 16, 48688, 38, 58, 17, 11, 18, 60, 9, 38, 58, 18, 11, 17, 48688, 38, 58, 16, 11, 19, 60, 9, 38, 58, 19, 11, 16, 48688, 38, 58, 17, 11, 19, 60, 9, 38, 58, 19, 11, 17, 12962, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 18, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 18, 48688, 38, 58, 17, 11, 19, 12962, 9, 7, 38, 58, 18, 11, 17, 48688, 38, 58, 19, 11, 16, 12962, 33747, 38, 58, 16, 11, 19, 48688, 38, 58, 17, 11, 18, 12962, 9, 7, 38, 58, 18, 11, 16, 48688, 38, 58, 19, 11, 17, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 18, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 18, 48688, 38, 58, 17, 11, 19, 12962, 9, 7, 38, 58, 18, 11, 17, 48688, 38, 58, 19, 11, 16, 12962, 33747, 38, 58, 16, 11, 19, 48688, 38, 58, 17, 11, 18, 12962, 9, 7, 38, 58, 18, 11, 16, 48688, 38, 58, 19, 11, 17, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 19, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 17, 11, 19, 60, 9, 38, 58, 18, 11, 16, 48688, 38, 58, 16, 11, 19, 60, 9, 38, 58, 18, 11, 17, 48688, 38, 58, 17, 11, 18, 60, 9, 38, 58, 19, 11, 16, 48688, 38, 58, 16, 11, 18, 60, 9, 38, 58, 19, 11, 17, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 72, 11, 2584, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 73, 11, 74, 87, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27843, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 69, 62, 21841, 44725, 796, 1382, 62, 70, 69, 62, 21841, 44725, 62, 3866, 11249, 7, 19849, 11, 30488, 58, 72, 11, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 796, 2278, 1096, 62, 77, 25634, 1069, 7, 74, 87, 11, 479, 88, 11, 308, 69, 62, 21841, 44725, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 27843, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 796, 49586, 62, 36340, 62, 6173, 7, 19849, 11, 479, 87, 11, 479, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5060, 15853, 362, 13, 15, 9, 7, 74, 87, 2584, 58, 16, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 16, 11, 17, 60, 9, 38, 58, 17, 11, 16, 60, 4008, 22492, 27929, 362, 13, 15, 329, 262, 7906, 7370, 286, 4925, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 77, 58, 77, 60, 796, 357, 16, 19571, 7, 17, 9, 41339, 61, 17, 4008, 9, 5305, 7, 13065, 8, 1303, 27929, 352, 14, 17, 284, 3368, 14143, 262, 7906, 4922, 286, 4925, 5403, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1255, 62, 448, 796, 289, 9246, 7, 4666, 9954, 2715, 13, 86, 35138, 62, 58, 16, 25, 11925, 62, 82, 36, 35138, 62, 66, 4357, 20274, 62, 77, 8, 198, 220, 220, 220, 44872, 7, 20274, 62, 448, 8, 198, 220, 220, 220, 1441, 1255, 62, 448, 198, 437, 198, 198, 37811, 198, 22203, 973, 284, 287, 12, 14382, 288, 6173, 48713, 312, 49586, 351, 2278, 1634, 13, 220, 198, 198, 2, 28100, 2886, 25, 198, 198, 12, 2746, 31364, 25, 2746, 31364, 4554, 198, 12, 479, 87, 2584, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 38362, 3771, 12, 785, 17128, 1459, 9421, 1063, 13, 220, 198, 12, 256, 74, 3712, 19182, 90, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 5512, 17, 38362, 3771, 12, 785, 17128, 47153, 17593, 7997, 287, 262, 5322, 2208, 565, 5819, 347, 57, 13, 198, 12, 24846, 3712, 5317, 2414, 25, 11052, 286, 262, 479, 12, 13200, 10706, 15793, 13, 198, 12, 27843, 3712, 5317, 2414, 25, 352, 611, 262, 2278, 1634, 318, 284, 307, 1760, 319, 262, 10973, 377, 415, 13, 657, 611, 262, 2278, 1634, 318, 284, 307, 1760, 319, 3469, 338, 2163, 13, 198, 12, 12341, 5653, 34, 3712, 5317, 2414, 25, 34142, 1988, 900, 284, 352, 284, 24061, 5899, 6374, 48713, 312, 49586, 1262, 262, 10451, 287, 763, 25687, 12341, 10, 67, 6173, 7142, 13, 3819, 86, 1096, 11, 1309, 340, 307, 657, 13, 220, 198, 12, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 25, 22313, 286, 262, 30107, 549, 3301, 8373, 10706, 13, 5345, 416, 4277, 284, 5323, 13, 198, 198, 2, 35561, 25, 198, 198, 12, 16409, 281, 7177, 286, 734, 15180, 542, 7574, 262, 479, 12, 18908, 4111, 3469, 338, 2163, 290, 262, 3917, 30107, 549, 3301, 8373, 13, 198, 198, 37811, 198, 8818, 49586, 62, 45, 4503, 46, 6369, 62, 5990, 62, 34, 388, 62, 397, 62, 74, 62, 25928, 7, 4666, 9954, 2715, 3712, 17633, 38469, 11, 479, 87, 2584, 3712, 19182, 90, 19182, 90, 43879, 2414, 11, 17, 5512, 16, 5512, 256, 74, 3712, 19182, 90, 19182, 90, 5377, 11141, 90, 43879, 2414, 5512, 17, 5512, 17, 5512, 24846, 3712, 5317, 2414, 11, 27843, 3712, 5317, 2414, 11, 12341, 5653, 34, 3712, 5317, 2414, 26, 18896, 62, 82, 36, 35138, 62, 66, 3712, 5317, 2414, 28, 4059, 8, 198, 220, 220, 220, 18896, 62, 82, 36, 35138, 62, 66, 1875, 2546, 7, 4666, 9954, 2715, 13, 82, 36, 35138, 62, 66, 62, 38381, 16, 60, 11405, 3714, 7, 12331, 16922, 7203, 1639, 423, 20672, 262, 1271, 286, 30107, 549, 3301, 19998, 1695, 329, 16765, 526, 4008, 198, 220, 220, 220, 1255, 62, 77, 796, 15690, 90, 43879, 2414, 11, 16, 92, 7, 11925, 62, 82, 36, 35138, 62, 66, 8, 198, 220, 220, 220, 329, 299, 287, 352, 25, 11925, 62, 82, 36, 35138, 62, 66, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 796, 9104, 7, 4666, 9954, 2715, 11, 77, 8, 198, 220, 220, 220, 220, 220, 220, 220, 5060, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 72, 11, 2584, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 73, 11, 74, 87, 8, 287, 27056, 378, 7, 21602, 10223, 32590, 14415, 11, 14415, 11, 41339, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27843, 6624, 657, 11405, 12341, 5653, 34, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 69, 62, 21841, 44725, 796, 1382, 62, 70, 69, 62, 21841, 44725, 62, 3866, 11249, 7, 19849, 11, 30488, 58, 72, 11, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 796, 2278, 1096, 62, 77, 25634, 1069, 7, 74, 87, 11, 479, 88, 11, 308, 69, 62, 21841, 44725, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5060, 15853, 352, 13, 15, 9, 7, 74, 87, 2584, 58, 16, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 16, 11, 17, 60, 9, 38, 58, 17, 11, 16, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 27843, 6624, 352, 11405, 12341, 5653, 34, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 796, 2278, 1096, 62, 36340, 377, 415, 62, 6173, 7, 19849, 11, 479, 87, 11, 479, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5060, 15853, 352, 13, 15, 9, 7, 74, 87, 2584, 58, 16, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 16, 11, 17, 60, 9, 38, 58, 17, 11, 16, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 27843, 6624, 657, 11405, 12341, 5653, 34, 6624, 352, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 69, 62, 21841, 44725, 796, 1382, 62, 70, 69, 62, 21841, 44725, 62, 3866, 11249, 7, 19849, 11, 30488, 58, 72, 11, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 796, 2278, 1096, 62, 8579, 44, 62, 27688, 7, 70, 69, 62, 21841, 44725, 11, 479, 87, 11, 479, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5060, 15853, 352, 13, 15, 9, 7, 74, 87, 2584, 58, 16, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 16, 11, 18, 60, 9, 38, 58, 18, 11, 16, 48688, 38, 58, 17, 11, 18, 60, 9, 38, 58, 18, 11, 17, 48688, 38, 58, 16, 11, 19, 60, 9, 38, 58, 19, 11, 16, 48688, 38, 58, 17, 11, 19, 60, 9, 38, 58, 19, 11, 17, 12962, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 17, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 18, 48688, 38, 58, 17, 11, 19, 12962, 9, 7, 38, 58, 18, 11, 17, 48688, 38, 58, 19, 11, 16, 12962, 33747, 38, 58, 16, 11, 19, 48688, 38, 58, 17, 11, 18, 12962, 9, 7, 38, 58, 18, 11, 16, 48688, 38, 58, 19, 11, 17, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 17, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 18, 48688, 38, 58, 17, 11, 19, 12962, 9, 7, 38, 58, 18, 11, 17, 48688, 38, 58, 19, 11, 16, 12962, 33747, 38, 58, 16, 11, 19, 48688, 38, 58, 17, 11, 18, 12962, 9, 7, 38, 58, 18, 11, 16, 48688, 38, 58, 19, 11, 17, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 18, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 17, 11, 19, 60, 9, 38, 58, 18, 11, 16, 48688, 38, 58, 16, 11, 19, 60, 9, 38, 58, 18, 11, 17, 48688, 38, 58, 17, 11, 18, 60, 9, 38, 58, 19, 11, 16, 48688, 38, 58, 16, 11, 18, 60, 9, 38, 58, 19, 11, 17, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 27843, 6624, 352, 11405, 12341, 5653, 34, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 796, 2278, 1096, 62, 1073, 1069, 62, 36340, 62, 15643, 1000, 7, 19849, 11, 479, 87, 11, 479, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5060, 15853, 352, 13, 15, 9, 7, 74, 87, 2584, 58, 16, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 16, 11, 18, 60, 9, 38, 58, 18, 11, 16, 48688, 38, 58, 17, 11, 18, 60, 9, 38, 58, 18, 11, 17, 48688, 38, 58, 16, 11, 19, 60, 9, 38, 58, 19, 11, 16, 48688, 38, 58, 17, 11, 19, 60, 9, 38, 58, 19, 11, 17, 12962, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 17, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 18, 48688, 38, 58, 17, 11, 19, 12962, 9, 7, 38, 58, 18, 11, 17, 48688, 38, 58, 19, 11, 16, 12962, 33747, 38, 58, 16, 11, 19, 48688, 38, 58, 17, 11, 18, 12962, 9, 7, 38, 58, 18, 11, 16, 48688, 38, 58, 19, 11, 17, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 17, 7131, 72, 11, 73, 60, 9, 17, 13, 15, 9, 19510, 38, 58, 16, 11, 18, 48688, 38, 58, 17, 11, 19, 12962, 9, 7, 38, 58, 18, 11, 17, 48688, 38, 58, 19, 11, 16, 12962, 33747, 38, 58, 16, 11, 19, 48688, 38, 58, 17, 11, 18, 12962, 9, 7, 38, 58, 18, 11, 16, 48688, 38, 58, 19, 11, 17, 60, 4008, 10, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 87, 2584, 58, 18, 7131, 72, 11, 73, 60, 9, 19, 13, 15, 9, 7, 38, 58, 17, 11, 19, 60, 9, 38, 58, 18, 11, 16, 48688, 38, 58, 16, 11, 19, 60, 9, 38, 58, 18, 11, 17, 48688, 38, 58, 17, 11, 18, 60, 9, 38, 58, 19, 11, 16, 48688, 38, 58, 16, 11, 18, 60, 9, 38, 58, 19, 11, 17, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 77, 58, 77, 60, 796, 352, 19571, 7, 41339, 61, 17, 27493, 5305, 7, 13065, 8, 1303, 1400, 5766, 362, 284, 954, 262, 7906, 4922, 286, 4925, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1255, 62, 448, 796, 289, 9246, 7, 4666, 9954, 2715, 13, 86, 35138, 62, 58, 16, 25, 11925, 62, 82, 36, 35138, 62, 66, 4357, 20274, 62, 77, 8, 198, 220, 220, 220, 44872, 7, 20274, 62, 448, 8, 198, 220, 220, 220, 1441, 1255, 62, 448, 198, 437, 198, 198, 437, 22492, 5268, 286, 8265, 220, 198 ]
2.039707
33,848
<filename>test/runtests.jl # Workaround for libz loading confusion. @static if Sys.islinux() using ImageMagick end using GtkReactive, Gtk.ShortNames, IntervalSets, Graphics, Colors, TestImages, FileIO, FixedPointNumbers, RoundingIntegers, Dates, Cairo, IdentityRanges using Test rtask = Reactive.runner_task # starting with Reactive 0.7.0, this became a Ref if isa(rtask, Base.RefValue) rtask = rtask[] end if !istaskdone(rtask) Reactive.stop() fetch(rtask) end include("tools.jl") @testset "Widgets" begin ## label l = label("Hello") @test signal(l) == l.signal @test signal(signal(l)) == l.signal @test get_gtk_property(l, :label, String) == "Hello" push!(signal(l), "world") rr() @test get_gtk_property(l, :label, String) == "world" @test string(l) == string("Gtk.GtkLabelLeaf with ", string(signal(l))) # map with keywords lsig0 = map(l) do lbl # "regular" map runs the function lbl end rr() @test value(lsig0) == "world" lsig = map(l; init="foo") do lbl # with "init", you avoid running lbl end rr() @test value(lsig) == "foo" push!(l, "bar") rr() @test value(lsig) == "bar" ## checkbox w = Window("Checkbox") check = checkbox(label="click me") push!(w, check) Gtk.showall(w) @test value(check) == false @test Gtk.G_.active(check.widget) == false push!(check, true) rr() @test value(check) @test Gtk.G_.active(check.widget) destroy(w) ## togglebutton w = Window("Togglebutton") tgl = togglebutton(label="click me") push!(w, tgl) Gtk.showall(w) @test value(tgl) == false @test Gtk.G_.active(tgl.widget) == false push!(tgl, true) rr() @test value(tgl) @test Gtk.G_.active(tgl.widget) destroy(w) ## textbox (aka Entry) txt = textbox("Type something") num = textbox(5, range=1:10) win = Window("Textboxes") |> (bx = Box(:h)) push!(bx, txt) push!(bx, num) Gtk.showall(win) @test get_gtk_property(txt, :text, String) == "Type something" push!(txt, "ok") rr() @test get_gtk_property(txt, :text, String) == "ok" set_gtk_property!(txt, :text, "other direction") signal_emit(widget(txt), :activate, Nothing) rr() @test value(txt) == "other direction" @test get_gtk_property(num, :text, String) == "5" push!(signal(num), 11, (sig, val, osig, capex) -> throw(capex.ex)) @test_throws ArgumentError rr() push!(num, 8) rr() @test get_gtk_property(num, :text, String) == "8" meld = map(txt, num) do t, n join((t, n), 'X') end rr() @test value(meld) == "other directionX8" push!(num, 4) rr() @test value(meld) == "other directionX4" push!(txt, "4") rr() @test value(meld) == "4X4" destroy(win) ## textarea (aka TextView) v = textarea("Type something longer") win = Window(v) Gtk.showall(win) @test value(v) == "Type something longer" push!(v, "ok") rr() @test get_gtk_property(Gtk.G_.buffer(v.widget), :text, String) == "ok" destroy(win) ## slider s = slider(1:15) sleep(0.01) # For the Gtk eventloop @test value(s) == 8 push!(s, 3) rr() @test value(s) == 3 s3 = slider(IdentityRange(-3:3)) sleep(0.01) @test value(s3) == 0 push!(s3, -3) rr() @test value(s3) == -3 # Use a single signal for two widgets s2 = slider(1:15, signal=signal(s), orientation='v') @test value(s2) == 3 push!(s2, 11) rr() @test value(s) == 11 destroy(s2) destroy(s) # Updating the limits of the slider s = slider(1:15) sleep(0.01) # For the Gtk eventloop @test value(s) == 8 push!(s, 1:7, 5) sleep(0.01) rr() @test value(s) == 5 ## dropdown dd = dropdown(("Strawberry", "Vanilla", "Chocolate")) @test value(dd) == "Strawberry" push!(dd, "Chocolate") rr() @test get_gtk_property(dd, :active, Int) == 2 destroy(dd.widget) r = Ref(0) dd = dropdown(["Five"=>x->x[]=5, "Seven"=>x->x[]=7]) ddsig = map(f->f(r), dd.mappedsignal) rr() @test value(dd) == "Five" @test r[] == 5 push!(dd, "Seven") run_till_empty() @test value(dd) == "Seven" @test r[] == 7 push!(dd, "Five") rr() @test r[] == 5 destroy(dd.widget) ## spinbutton s = spinbutton(1:15) sleep(0.01) # For the Gtk eventloop @test value(s) == 1 push!(s, 3) rr() @test value(s) == 3 destroy(s) s = spinbutton(0:59, orientation="vertical") @test G_.orientation(Orientable(widget(s))) == Gtk.GConstants.GtkOrientation.VERTICAL destroy(s) # Updating the limits of the spinbutton s = spinbutton(1:15) sleep(0.01) # For the Gtk eventloop @test value(s) == 1 push!(s, 1:7, 5) rr() @test value(s) == 5 ## cyclicspinbutton a = spinbutton(1:10, value = 5) carry_up = Signal(false) foreach(carry_up; init=nothing) do up push!(a, value(a) - (-1)^up) end b = cyclicspinbutton(1:3, carry_up) run_till_empty() @test value(a) == 5 @test value(b) == 1 push!(b, 2) run_till_empty() @test value(a) == 5 @test value(b) == 2 push!(b, 0) run_till_empty() @test value(a) == 4 @test value(b) == 3 push!(b, 4) run_till_empty() @test value(a) == 5 @test value(b) == 1 destroy(a) s = cyclicspinbutton(0:59, carry_up, orientation="vertical") @test G_.orientation(Orientable(widget(s))) == Gtk.GConstants.GtkOrientation.VERTICAL destroy(s) # timewidget t = Dates.Time(1,1,1) s = Signal(t) tw = timewidget(t, signal=s) run_till_empty() @test value(tw) == value(s) == t t = Dates.Time(2,2,2) push!(tw, t) run_till_empty() @test value(tw) == value(s) == t t = Dates.Time(3,3,3) push!(s, t) run_till_empty() @test value(tw) == value(s) == t # datetimewidget t = DateTime(1,1,1,1,1,1) s = Signal(t) tw = datetimewidget(t, signal=s) run_till_empty() @test value(tw) == value(s) == t t = DateTime(2,2,2,2,2,2) push!(tw, t) run_till_empty() @test value(tw) == value(s) == t t = DateTime(3,3,3,3,3,3) push!(s, t) run_till_empty() @test value(tw) == value(s) == t # progressbar pb = progressbar(1..10) @test value(pb) == 1 push!(pb, 5) run_till_empty() @test value(pb) == 5 pb = progressbar(2:8) @test value(pb) == 2 end ## button # For reasons I don't understand, this often fails if it's inside a @testset counter = 0 w = Window("Widgets") b = button("Click me") push!(w, b) action = map(b) do val global counter counter::Int += 1 end Gtk.showall(w) rr() cc = counter # map seems to fire it once, so record the "new" initial value click(b::GtkReactive.Button) = ccall((:gtk_button_clicked,Gtk.libgtk),Cvoid,(Ptr{Gtk.GObject},),b.widget) GC.gc(true) click(b) rr() @test counter == cc+1 destroy(w) # Make sure we can also put a ToolButton in a Button button(; widget=ToolButton("Save as...")) if Gtk.libgtk_version >= v"3.10" # To support GtkBuilder, we need this as the minimum libgtk version @testset "Compound widgets" begin ## player widget s = Signal(1) p = player(s, 1:8) win = Window() |> (g = Grid()) g[1,1] = p Gtk.showall(win) rr() btn_fwd = p.widget.step_forward @test value(s) == 1 push!(btn_fwd, nothing) run_till_empty() @test value(s) == 2 push!(p.widget.play_forward, nothing) for i = 1:7 run_till_empty() sleep(0.1) end @test value(s) == 8 destroy(win) p = player(1:1000) win = Window(frame(p)) Gtk.showall(win) push!(widget(p).direction, 1) destroy(win) # this should not generate a lot of output end end @testset "CairoUnits" begin x = UserUnit(0.2) @test UserUnit(x) === x @test convert(UserUnit, x) === x @test x+x === UserUnit(0.2+0.2) @test x-x === UserUnit(0.0) @test Float64(x) === 0.2 @test convert(Float64, x) === 0.2 y = UserUnit(-0.3) @test x > y @test y < x @test abs(x) === x @test abs(y) === UserUnit(0.3) @test min(x, y) === y @test max(x, y) === x z = DeviceUnit(2.0) @test_throws ErrorException x+z @test Bool(DeviceUnit(1.0)) === true @test Integer(DeviceUnit(3.0)) === 3 end @testset "Canvas" begin @test XY(5, 5) === XY{Int}(5, 5) @test XY(5, 5.0) === XY{Float64}(5.0, 5.0) @test XY{UserUnit}(5, 5.0) === XY{UserUnit}(5.0, 5.0) === XY{UserUnit}(UserUnit(5), UserUnit(5)) @test XY(5.0, 5)+XY(4, 4.1) === XY(9, 9.1) @test XY(5, 5)-XY(4, 4) === XY(1, 1) @test isa(MouseButton{UserUnit}(), MouseButton{UserUnit}) @test isa(MouseButton{DeviceUnit}(), MouseButton{DeviceUnit}) @test isa(MouseScroll{UserUnit}(), MouseScroll{UserUnit}) @test isa(MouseScroll{DeviceUnit}(), MouseScroll{DeviceUnit}) @test BoundingBox(XY(2..4, -15..15)) === BoundingBox(2, 4, -15, 15) c = canvas(208, 207) win = Window(c) Gtk.showall(win) sleep(0.1) @test Graphics.width(c) == 208 @test Graphics.height(c) == 207 @test isa(c, GtkReactive.Canvas{DeviceUnit}) destroy(win) c = canvas(UserUnit, 208, 207) win = Window(c) Gtk.showall(win) reveal(c, true) sleep(0.3) @test isa(c, GtkReactive.Canvas{UserUnit}) corner_dev = (DeviceUnit(208), DeviceUnit(207)) for (coords, corner_usr) in ((BoundingBox(0, 1, 0, 1), (UserUnit(1), UserUnit(1))), (ZoomRegion((5:10, 3:5)), (UserUnit(5), UserUnit(10))), ((-1:1, 101:110), (UserUnit(110), UserUnit(1)))) set_coordinates(c, coords) @test GtkReactive.convertunits(UserUnit, c, corner_dev...) == corner_usr @test GtkReactive.convertunits(DeviceUnit, c, corner_dev...) == corner_dev @test GtkReactive.convertunits(UserUnit, c, corner_usr...) == corner_usr @test GtkReactive.convertunits(DeviceUnit, c, corner_usr...) == corner_dev end destroy(win) c = canvas() f = Frame(c) @test isa(f, Gtk.GtkFrameLeaf) destroy(f) c = canvas() f = AspectFrame(c, "Some title", 0.5, 0.5, 3.0) @test isa(f, Gtk.GtkAspectFrameLeaf) @test get_gtk_property(f, :ratio, Float64) == 3.0 destroy(f) end # @testset "Canvas events" begin win = Window() |> (c = canvas(UserUnit)) Gtk.showall(win) sleep(0.2) lastevent = Ref("nothing") press = map(btn->lastevent[] = "press", c.mouse.buttonpress) release = map(btn->lastevent[] = "release", c.mouse.buttonrelease) motion = map(btn->lastevent[] = string("motion to ", btn.position.x, ", ", btn.position.y), c.mouse.motion) scroll = map(btn->lastevent[] = "scroll", c.mouse.scroll) rr() lastevent[] = "nothing" @test lastevent[] == "nothing" signal_emit(widget(c), "button-press-event", Bool, eventbutton(c, BUTTON_PRESS, 1)) sleep(0.1) rr() @test lastevent[] == "press" signal_emit(widget(c), "button-release-event", Bool, eventbutton(c, GtkReactive.BUTTON_RELEASE, 1)) sleep(0.1) rr() sleep(0.1) rr() @test lastevent[] == "release" signal_emit(widget(c), "scroll-event", Bool, eventscroll(c, UP)) sleep(0.1) rr() sleep(0.1) rr() @test lastevent[] == "scroll" signal_emit(widget(c), "motion-notify-event", Bool, eventmotion(c, 0, UserUnit(20), UserUnit(15))) sleep(0.1) rr() sleep(0.1) rr() @test lastevent[] == "motion to UserUnit(20.0), UserUnit(15.0)" destroy(win) # end @testset "Popup" begin popupmenu = Menu() popupitem = MenuItem("Popup menu...") push!(popupmenu, popupitem) Gtk.showall(popupmenu) win = Window() |> (c = canvas()) popuptriggered = Ref(false) push!(c.preserved, map(c.mouse.buttonpress) do btn if btn.button == 3 && btn.clicktype == BUTTON_PRESS popup(popupmenu, btn.gtkevent) # use the raw Gtk event popuptriggered[] = true nothing end end) yield() @test !popuptriggered[] evt = eventbutton(c, BUTTON_PRESS, 1) signal_emit(widget(c), "button-press-event", Bool, evt) yield() @test !popuptriggered[] evt = eventbutton(c, BUTTON_PRESS, 3) signal_emit(widget(c), "button-press-event", Bool, evt) run_till_empty() @test popuptriggered[] destroy(win) destroy(popupmenu) end @testset "Drawing" begin img = testimage("lighthouse") c = canvas(UserUnit, size(img, 2), size(img, 1)) win = Window(c) xsig, ysig = Signal(20), Signal(20) draw(c, xsig, ysig) do cnvs, x, y copy!(c, img) ctx = getgc(cnvs) set_source(ctx, colorant"red") set_line_width(ctx, 2) circle(ctx, x, y, 5) stroke(ctx) end Gtk.showall(win) rr() push!(xsig, 100) rr() sleep(1) # Check that we get the right answer fn = tempname() Cairo.write_to_png(getgc(c).surface, fn) imgout = load(fn) rm(fn) @test imgout[25,100] == imgout[16,100] == imgout[20,105] == colorant"red" @test imgout[20,100] == img[20,100] destroy(win) end # For testing ZoomRegion support for non-AbstractArray objects struct Foo end Base.axes(::Foo) = (Base.OneTo(7), Base.OneTo(9)) @testset "Zoom/pan" begin @test string(UserUnit(3)) == "UserUnit(3.0)" @test string(DeviceUnit(3)) == "DeviceUnit(3.0)" xy = @inferred(XY(1, 3)) @test isa(xy, XY{Int}) @test xy.x == 1 @test xy.y == 3 @test string(xy) == "XY(1, 3)" xy = @inferred(XY{Float64}(1, 3)) @test isa(xy, XY{Float64}) @test xy.x == 1 @test xy.y == 3 @test string(xy) == "XY(1.0, 3.0)" @test isa(convert(XY{Int}, xy), XY{Int}) xy = XY{Float64}(3.2, 4.8) xyr = convert(XY{RInt}, xy) @test isa(xyr, XY{RInt}) && xyr.x == 3 && xyr.y == 5 xy = XY(UserUnit(3), UserUnit(5)) @test string(xy) == "XY{UserUnit}(3.0, 5.0)" @test @inferred(XY{UserUnit}(3, 5)) == xy zr = ZoomRegion((1:80, 1:100)) # y, x order zrz = GtkReactive.zoom(zr, 0.5) @test zrz.currentview.x == 26..75 @test zrz.currentview.y == 21..60 zrp = GtkReactive.pan_x(zrz, 0.2) @test zrp.currentview.x == 36..85 @test zrp.currentview.y == 21..60 zrp = GtkReactive.pan_x(zrz, -0.2) @test zrp.currentview.x == 16..65 @test zrp.currentview.y == 21..60 zrp = GtkReactive.pan_y(zrz, -0.2) @test zrp.currentview.x == 26..75 @test zrp.currentview.y == 13..52 zrp = GtkReactive.pan_y(zrz, 0.2) @test zrp.currentview.x == 26..75 @test zrp.currentview.y == 29..68 zrp = GtkReactive.pan_x(zrz, 1.0) @test zrp.currentview.x == 51..100 @test zrp.currentview.y == 21..60 zrp = GtkReactive.pan_y(zrz, -1.0) @test zrp.currentview.x == 26..75 @test zrp.currentview.y == 1..40 zrz2 = GtkReactive.zoom(zrz, 2.0001) @test zrz2 == zr zrz2 = GtkReactive.zoom(zrz, 3) @test zrz2 == zr zrz2 = GtkReactive.zoom(zrz, 1.9) @test zrz2.currentview.x == 4..97 @test zrz2.currentview.y == 3..78 zrz = GtkReactive.zoom(zr, 0.5, GtkReactive.XY{DeviceUnit}(50.5, 40.5)) @test zrz.currentview.x == 26..75 @test zrz.currentview.y == 21..60 zrz = GtkReactive.zoom(zr, 0.5, GtkReactive.XY{DeviceUnit}(60.5, 30.5)) @test zrz.currentview.x == 31..80 @test zrz.currentview.y == 16..55 zrr = GtkReactive.reset(zrz) @test zrr == zr zrbb = ZoomRegion(zr.fullview, BoundingBox(5, 15, 35, 75)) @test zrbb.fullview === zr.fullview @test zrbb.currentview.x == 5..15 @test zrbb.currentview.y == 35..75 @test typeof(zrbb.currentview) == typeof(zr.currentview) zrsig = Signal(zr) push!(zrsig, (3:5, 4:7)) rr() zr = value(zrsig) @test zr.fullview.y == 1..80 @test zr.fullview.x == 1..100 @test zr.currentview.y == 3..5 @test zr.currentview.x == 4..7 push!(zrsig, XY(1..2, 3..4)) rr() zr = value(zrsig) @test zr.fullview.y == 1..80 @test zr.fullview.x == 1..100 @test zr.currentview.y == 3..4 @test zr.currentview.x == 1..2 zr = ZoomRegion(Foo()) @test zr.fullview.y == 1..7 @test zr.fullview.x == 1..9 zr = ZoomRegion((1:100, 1:80), (11:20, 8:12)) @test zr.fullview.x == 1..80 @test zr.fullview.y == 1..100 @test zr.currentview.x == 8..12 @test zr.currentview.y == 11..20 @test axes(zr) == (11:20, 8:12) end ### Simulate the mouse clicks, etc. to trigger zoom/pan # Again, this doesn't seem to work inside a @testset win = Window() |> (c = canvas(UserUnit)) zr = Signal(ZoomRegion((1:11, 1:20))) zoomrb = init_zoom_rubberband(c, zr) zooms = init_zoom_scroll(c, zr) pans = init_pan_scroll(c, zr) pand = init_pan_drag(c, zr) draw(c) do cnvs set_coordinates(c, value(zr)) fill!(c, colorant"blue") end Gtk.showall(win) sleep(0.1) # Zoom by rubber band signal_emit(widget(c), "button-press-event", Bool, eventbutton(c, BUTTON_PRESS, 1, UserUnit(5), UserUnit(3), CONTROL)) sleep(0.1) rr() signal_emit(widget(c), "motion-notify-event", Bool, eventmotion(c, mask(1), UserUnit(10), UserUnit(4))) sleep(0.1) rr() signal_emit(widget(c), "button-release-event", Bool, eventbutton(c, GtkReactive.BUTTON_RELEASE, 1, UserUnit(10), UserUnit(4))) sleep(0.1) rr() sleep(0.1) rr() @test value(zr).currentview.x == 5..10 @test value(zr).currentview.y == 3..4 # Ensure that the rubber band damage has been repaired fn = tempname() Cairo.write_to_png(getgc(c).surface, fn) imgout = load(fn) rm(fn) @test all(x->x==colorant"blue", imgout) # Pan-drag signal_emit(widget(c), "button-press-event", Bool, eventbutton(c, BUTTON_PRESS, 1, UserUnit(6), UserUnit(3), 0)) sleep(0.1) rr() signal_emit(widget(c), "motion-notify-event", Bool, eventmotion(c, mask(1), UserUnit(7), UserUnit(2))) sleep(0.1) rr() sleep(0.1) rr() @test value(zr).currentview.x == 4..9 @test value(zr).currentview.y == 4..5 # Reset signal_emit(widget(c), "button-press-event", Bool, eventbutton(c, DOUBLE_BUTTON_PRESS, 1, UserUnit(5), UserUnit(4.5), CONTROL)) sleep(0.1) rr() sleep(0.1) rr() @test value(zr).currentview.x == 1..20 @test value(zr).currentview.y == 1..11 # Zoom-scroll signal_emit(widget(c), "scroll-event", Bool, eventscroll(c, UP, UserUnit(8), UserUnit(4), CONTROL)) sleep(0.1) rr() sleep(0.1) rr() @test value(zr).currentview.x == 4..14 @test value(zr).currentview.y == 2..8 # Pan-scroll signal_emit(widget(c), "scroll-event", Bool, eventscroll(c, RIGHT, UserUnit(8), UserUnit(4), 0)) sleep(0.1) rr() sleep(0.1) rr() @test value(zr).currentview.x == 5..15 @test value(zr).currentview.y == 2..8 signal_emit(widget(c), "scroll-event", Bool, eventscroll(c, DOWN, UserUnit(8), UserUnit(4), 0)) sleep(0.1) rr() sleep(0.1) rr() @test value(zr).currentview.x == 5..15 @test value(zr).currentview.y == 3..9 destroy(win) @testset "Surfaces" begin for (val, cmp) in ((0.2, Gray24(0.2)), (Gray(N0f8(0.5)), Gray24(0.5)), (RGB(0, 1, 0), RGB24(0, 1, 0)), (RGBA(1, 0, 0.5, 0.8), ARGB32(1, 0, 0.5, 0.8))) surf = GtkReactive.image_surface(fill(val, 3, 5)) @test surf.height == 3 && surf.width == 5 @test all(x->x == reinterpret(UInt32, cmp), surf.data) destroy(surf) end end @testset "Layout" begin g = Grid() g[1,1] = textbox("hello") end # Ensure that the examples run (but the Reactive queue is stopped, so # they won't work unless one calls `@async Reactive.run()` manually) examplepath = joinpath(dirname(dirname(@__FILE__)), "examples") include(joinpath(examplepath, "imageviewer.jl")) include(joinpath(examplepath, "widgets.jl")) include(joinpath(examplepath, "drawing.jl"))
[ 27, 34345, 29, 9288, 14, 81, 2797, 3558, 13, 20362, 198, 2, 5521, 14145, 329, 9195, 89, 11046, 10802, 13, 198, 31, 12708, 611, 311, 893, 13, 271, 23289, 3419, 198, 220, 220, 220, 1262, 7412, 13436, 624, 198, 437, 198, 198, 3500, 402, 30488, 3041, 5275, 11, 402, 30488, 13, 16438, 36690, 11, 4225, 2100, 50, 1039, 11, 19840, 11, 29792, 11, 198, 220, 220, 220, 220, 220, 6208, 29398, 11, 9220, 9399, 11, 10832, 12727, 49601, 11, 371, 9969, 34500, 364, 11, 44712, 11, 23732, 11, 198, 220, 220, 220, 220, 220, 27207, 49, 6231, 198, 3500, 6208, 198, 198, 17034, 2093, 796, 797, 5275, 13, 16737, 62, 35943, 1303, 3599, 351, 797, 5275, 657, 13, 22, 13, 15, 11, 428, 2627, 257, 6524, 198, 361, 318, 64, 7, 17034, 2093, 11, 7308, 13, 8134, 11395, 8, 198, 220, 220, 220, 374, 35943, 796, 374, 35943, 21737, 198, 437, 198, 361, 5145, 396, 2093, 28060, 7, 17034, 2093, 8, 198, 220, 220, 220, 797, 5275, 13, 11338, 3419, 198, 220, 220, 220, 21207, 7, 17034, 2093, 8, 198, 437, 198, 198, 17256, 7203, 31391, 13, 20362, 4943, 198, 198, 31, 9288, 2617, 366, 54, 312, 11407, 1, 2221, 198, 220, 220, 220, 22492, 6167, 198, 220, 220, 220, 300, 796, 6167, 7203, 15496, 4943, 198, 220, 220, 220, 2488, 9288, 6737, 7, 75, 8, 6624, 300, 13, 12683, 282, 198, 220, 220, 220, 2488, 9288, 6737, 7, 12683, 282, 7, 75, 4008, 6624, 300, 13, 12683, 282, 198, 220, 220, 220, 2488, 9288, 651, 62, 13655, 74, 62, 26745, 7, 75, 11, 1058, 18242, 11, 10903, 8, 6624, 366, 15496, 1, 198, 220, 220, 220, 4574, 0, 7, 12683, 282, 7, 75, 828, 366, 6894, 4943, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 651, 62, 13655, 74, 62, 26745, 7, 75, 11, 1058, 18242, 11, 10903, 8, 6624, 366, 6894, 1, 198, 220, 220, 220, 2488, 9288, 4731, 7, 75, 8, 6624, 4731, 7203, 38, 30488, 13, 38, 30488, 33986, 3123, 1878, 351, 33172, 4731, 7, 12683, 282, 7, 75, 22305, 198, 220, 220, 220, 1303, 3975, 351, 26286, 198, 220, 220, 220, 43979, 328, 15, 796, 3975, 7, 75, 8, 466, 300, 2436, 220, 1303, 366, 16338, 1, 3975, 4539, 262, 2163, 198, 220, 220, 220, 220, 220, 220, 220, 300, 2436, 198, 220, 220, 220, 886, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 7278, 328, 15, 8, 6624, 366, 6894, 1, 198, 220, 220, 220, 43979, 328, 796, 3975, 7, 75, 26, 2315, 2625, 21943, 4943, 466, 300, 2436, 220, 220, 1303, 351, 366, 15003, 1600, 345, 3368, 2491, 198, 220, 220, 220, 220, 220, 220, 220, 300, 2436, 198, 220, 220, 220, 886, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 7278, 328, 8, 6624, 366, 21943, 1, 198, 220, 220, 220, 4574, 0, 7, 75, 11, 366, 5657, 4943, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 7278, 328, 8, 6624, 366, 5657, 1, 628, 220, 220, 220, 22492, 2198, 3524, 198, 220, 220, 220, 266, 796, 26580, 7203, 9787, 3524, 4943, 198, 220, 220, 220, 2198, 796, 2198, 3524, 7, 18242, 2625, 12976, 502, 4943, 198, 220, 220, 220, 4574, 0, 7, 86, 11, 2198, 8, 198, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 86, 8, 198, 220, 220, 220, 2488, 9288, 1988, 7, 9122, 8, 6624, 3991, 198, 220, 220, 220, 2488, 9288, 402, 30488, 13, 38, 44807, 5275, 7, 9122, 13, 42655, 8, 6624, 3991, 198, 220, 220, 220, 4574, 0, 7, 9122, 11, 2081, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 9122, 8, 198, 220, 220, 220, 2488, 9288, 402, 30488, 13, 38, 44807, 5275, 7, 9122, 13, 42655, 8, 198, 220, 220, 220, 4117, 7, 86, 8, 628, 220, 220, 220, 22492, 19846, 16539, 198, 220, 220, 220, 266, 796, 26580, 7203, 51, 20258, 16539, 4943, 198, 220, 220, 220, 256, 4743, 796, 19846, 16539, 7, 18242, 2625, 12976, 502, 4943, 198, 220, 220, 220, 4574, 0, 7, 86, 11, 256, 4743, 8, 198, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 86, 8, 198, 220, 220, 220, 2488, 9288, 1988, 7, 83, 4743, 8, 6624, 3991, 198, 220, 220, 220, 2488, 9288, 402, 30488, 13, 38, 44807, 5275, 7, 83, 4743, 13, 42655, 8, 6624, 3991, 198, 220, 220, 220, 4574, 0, 7, 83, 4743, 11, 2081, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 83, 4743, 8, 198, 220, 220, 220, 2488, 9288, 402, 30488, 13, 38, 44807, 5275, 7, 83, 4743, 13, 42655, 8, 198, 220, 220, 220, 4117, 7, 86, 8, 628, 220, 220, 220, 22492, 2420, 3524, 357, 8130, 21617, 8, 198, 220, 220, 220, 256, 742, 796, 2420, 3524, 7203, 6030, 1223, 4943, 198, 220, 220, 220, 997, 796, 2420, 3524, 7, 20, 11, 2837, 28, 16, 25, 940, 8, 198, 220, 220, 220, 1592, 796, 26580, 7203, 8206, 29305, 4943, 930, 29, 357, 65, 87, 796, 8315, 7, 25, 71, 4008, 198, 220, 220, 220, 4574, 0, 7, 65, 87, 11, 256, 742, 8, 198, 220, 220, 220, 4574, 0, 7, 65, 87, 11, 997, 8, 198, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 5404, 8, 198, 220, 220, 220, 2488, 9288, 651, 62, 13655, 74, 62, 26745, 7, 14116, 11, 1058, 5239, 11, 10903, 8, 6624, 366, 6030, 1223, 1, 198, 220, 220, 220, 4574, 0, 7, 14116, 11, 366, 482, 4943, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 651, 62, 13655, 74, 62, 26745, 7, 14116, 11, 1058, 5239, 11, 10903, 8, 6624, 366, 482, 1, 198, 220, 220, 220, 900, 62, 13655, 74, 62, 26745, 0, 7, 14116, 11, 1058, 5239, 11, 366, 847, 4571, 4943, 198, 220, 220, 220, 6737, 62, 368, 270, 7, 42655, 7, 14116, 828, 1058, 39022, 11, 10528, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 14116, 8, 6624, 366, 847, 4571, 1, 198, 220, 220, 220, 2488, 9288, 651, 62, 13655, 74, 62, 26745, 7, 22510, 11, 1058, 5239, 11, 10903, 8, 6624, 366, 20, 1, 198, 220, 220, 220, 4574, 0, 7, 12683, 282, 7, 22510, 828, 1367, 11, 357, 82, 328, 11, 1188, 11, 28686, 328, 11, 1275, 24900, 8, 4613, 3714, 7, 36435, 87, 13, 1069, 4008, 198, 220, 220, 220, 2488, 9288, 62, 400, 8516, 45751, 12331, 374, 81, 3419, 198, 220, 220, 220, 4574, 0, 7, 22510, 11, 807, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 651, 62, 13655, 74, 62, 26745, 7, 22510, 11, 1058, 5239, 11, 10903, 8, 6624, 366, 23, 1, 198, 220, 220, 220, 502, 335, 796, 3975, 7, 14116, 11, 997, 8, 466, 256, 11, 299, 198, 220, 220, 220, 220, 220, 220, 220, 4654, 19510, 83, 11, 299, 828, 705, 55, 11537, 198, 220, 220, 220, 886, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 1326, 335, 8, 6624, 366, 847, 4571, 55, 23, 1, 198, 220, 220, 220, 4574, 0, 7, 22510, 11, 604, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 1326, 335, 8, 6624, 366, 847, 4571, 55, 19, 1, 198, 220, 220, 220, 4574, 0, 7, 14116, 11, 366, 19, 4943, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 1326, 335, 8, 6624, 366, 19, 55, 19, 1, 198, 220, 220, 220, 4117, 7, 5404, 8, 628, 220, 220, 220, 22492, 2420, 20337, 357, 8130, 8255, 7680, 8, 198, 220, 220, 220, 410, 796, 2420, 20337, 7203, 6030, 1223, 2392, 4943, 198, 220, 220, 220, 1592, 796, 26580, 7, 85, 8, 198, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 5404, 8, 198, 220, 220, 220, 2488, 9288, 1988, 7, 85, 8, 6624, 366, 6030, 1223, 2392, 1, 198, 220, 220, 220, 4574, 0, 7, 85, 11, 366, 482, 4943, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 651, 62, 13655, 74, 62, 26745, 7, 38, 30488, 13, 38, 44807, 22252, 7, 85, 13, 42655, 828, 1058, 5239, 11, 10903, 8, 6624, 366, 482, 1, 198, 220, 220, 220, 4117, 7, 5404, 8, 628, 220, 220, 220, 22492, 28982, 198, 220, 220, 220, 264, 796, 28982, 7, 16, 25, 1314, 8, 198, 220, 220, 220, 3993, 7, 15, 13, 486, 8, 220, 220, 220, 1303, 1114, 262, 402, 30488, 1785, 26268, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 807, 198, 220, 220, 220, 4574, 0, 7, 82, 11, 513, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 513, 198, 220, 220, 220, 264, 18, 796, 28982, 7, 7390, 26858, 17257, 32590, 18, 25, 18, 4008, 198, 220, 220, 220, 3993, 7, 15, 13, 486, 8, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 18, 8, 6624, 657, 198, 220, 220, 220, 4574, 0, 7, 82, 18, 11, 532, 18, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 18, 8, 6624, 532, 18, 628, 220, 220, 220, 1303, 5765, 257, 2060, 6737, 329, 734, 40803, 198, 220, 220, 220, 264, 17, 796, 28982, 7, 16, 25, 1314, 11, 6737, 28, 12683, 282, 7, 82, 828, 12852, 11639, 85, 11537, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 17, 8, 6624, 513, 198, 220, 220, 220, 4574, 0, 7, 82, 17, 11, 1367, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 1367, 198, 220, 220, 220, 4117, 7, 82, 17, 8, 198, 220, 220, 220, 4117, 7, 82, 8, 628, 220, 220, 220, 1303, 3205, 38734, 262, 7095, 286, 262, 28982, 198, 220, 220, 220, 264, 796, 28982, 7, 16, 25, 1314, 8, 198, 220, 220, 220, 3993, 7, 15, 13, 486, 8, 220, 220, 220, 1303, 1114, 262, 402, 30488, 1785, 26268, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 807, 198, 220, 220, 220, 4574, 0, 7, 82, 11, 352, 25, 22, 11, 642, 8, 198, 220, 220, 220, 3993, 7, 15, 13, 486, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 642, 628, 220, 220, 220, 22492, 4268, 2902, 198, 220, 220, 220, 49427, 796, 4268, 2902, 7, 7203, 1273, 1831, 8396, 1600, 366, 25298, 5049, 1600, 366, 1925, 9140, 48774, 198, 220, 220, 220, 2488, 9288, 1988, 7, 1860, 8, 6624, 366, 1273, 1831, 8396, 1, 198, 220, 220, 220, 4574, 0, 7, 1860, 11, 366, 1925, 9140, 4943, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 651, 62, 13655, 74, 62, 26745, 7, 1860, 11, 1058, 5275, 11, 2558, 8, 6624, 362, 198, 220, 220, 220, 4117, 7, 1860, 13, 42655, 8, 628, 220, 220, 220, 374, 796, 6524, 7, 15, 8, 198, 220, 220, 220, 49427, 796, 4268, 2902, 7, 14692, 20029, 1, 14804, 87, 3784, 87, 21737, 28, 20, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 31334, 1, 14804, 87, 3784, 87, 21737, 28, 22, 12962, 198, 220, 220, 220, 288, 9310, 328, 796, 3975, 7, 69, 3784, 69, 7, 81, 828, 49427, 13, 76, 1324, 5379, 570, 282, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 1860, 8, 6624, 366, 20029, 1, 198, 220, 220, 220, 2488, 9288, 374, 21737, 6624, 642, 198, 220, 220, 220, 4574, 0, 7, 1860, 11, 366, 31334, 4943, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 1860, 8, 6624, 366, 31334, 1, 198, 220, 220, 220, 2488, 9288, 374, 21737, 6624, 767, 198, 220, 220, 220, 4574, 0, 7, 1860, 11, 366, 20029, 4943, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 374, 21737, 6624, 642, 198, 220, 220, 220, 4117, 7, 1860, 13, 42655, 8, 628, 220, 220, 220, 22492, 7906, 16539, 198, 220, 220, 220, 264, 796, 7906, 16539, 7, 16, 25, 1314, 8, 198, 220, 220, 220, 3993, 7, 15, 13, 486, 8, 220, 220, 220, 1303, 1114, 262, 402, 30488, 1785, 26268, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 352, 198, 220, 220, 220, 4574, 0, 7, 82, 11, 513, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 513, 198, 220, 220, 220, 4117, 7, 82, 8, 628, 220, 220, 220, 264, 796, 7906, 16539, 7, 15, 25, 3270, 11, 12852, 2625, 1851, 605, 4943, 198, 220, 220, 220, 2488, 9288, 402, 44807, 13989, 341, 7, 46, 8289, 540, 7, 42655, 7, 82, 22305, 6624, 402, 30488, 13, 38, 34184, 1187, 13, 38, 30488, 46, 8289, 341, 13, 15858, 20151, 198, 220, 220, 220, 4117, 7, 82, 8, 628, 220, 220, 220, 1303, 3205, 38734, 262, 7095, 286, 262, 7906, 16539, 198, 220, 220, 220, 264, 796, 7906, 16539, 7, 16, 25, 1314, 8, 198, 220, 220, 220, 3993, 7, 15, 13, 486, 8, 220, 220, 220, 1303, 1114, 262, 402, 30488, 1785, 26268, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 352, 198, 220, 220, 220, 4574, 0, 7, 82, 11, 352, 25, 22, 11, 642, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 642, 628, 198, 220, 220, 220, 22492, 11700, 873, 11635, 16539, 198, 220, 220, 220, 257, 796, 7906, 16539, 7, 16, 25, 940, 11, 1988, 796, 642, 8, 198, 220, 220, 220, 3283, 62, 929, 796, 26484, 7, 9562, 8, 198, 220, 220, 220, 1674, 620, 7, 34993, 62, 929, 26, 2315, 28, 22366, 8, 466, 510, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 64, 11, 1988, 7, 64, 8, 532, 13841, 16, 8, 61, 929, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 275, 796, 11700, 873, 11635, 16539, 7, 16, 25, 18, 11, 3283, 62, 929, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 64, 8, 6624, 642, 198, 220, 220, 220, 2488, 9288, 1988, 7, 65, 8, 6624, 352, 198, 220, 220, 220, 4574, 0, 7, 65, 11, 362, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 64, 8, 6624, 642, 198, 220, 220, 220, 2488, 9288, 1988, 7, 65, 8, 6624, 362, 198, 220, 220, 220, 4574, 0, 7, 65, 11, 657, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 64, 8, 6624, 604, 198, 220, 220, 220, 2488, 9288, 1988, 7, 65, 8, 6624, 513, 198, 220, 220, 220, 4574, 0, 7, 65, 11, 604, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 64, 8, 6624, 642, 198, 220, 220, 220, 2488, 9288, 1988, 7, 65, 8, 6624, 352, 198, 220, 220, 220, 4117, 7, 64, 8, 628, 220, 220, 220, 264, 796, 11700, 873, 11635, 16539, 7, 15, 25, 3270, 11, 3283, 62, 929, 11, 12852, 2625, 1851, 605, 4943, 198, 220, 220, 220, 2488, 9288, 402, 44807, 13989, 341, 7, 46, 8289, 540, 7, 42655, 7, 82, 22305, 6624, 402, 30488, 13, 38, 34184, 1187, 13, 38, 30488, 46, 8289, 341, 13, 15858, 20151, 198, 220, 220, 220, 4117, 7, 82, 8, 628, 220, 220, 220, 1303, 4628, 413, 17484, 198, 220, 220, 220, 256, 796, 44712, 13, 7575, 7, 16, 11, 16, 11, 16, 8, 198, 220, 220, 220, 264, 796, 26484, 7, 83, 8, 198, 220, 220, 220, 665, 796, 4628, 413, 17484, 7, 83, 11, 6737, 28, 82, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 4246, 8, 6624, 1988, 7, 82, 8, 6624, 256, 198, 220, 220, 220, 256, 796, 44712, 13, 7575, 7, 17, 11, 17, 11, 17, 8, 198, 220, 220, 220, 4574, 0, 7, 4246, 11, 256, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 4246, 8, 6624, 1988, 7, 82, 8, 6624, 256, 198, 220, 220, 220, 256, 796, 44712, 13, 7575, 7, 18, 11, 18, 11, 18, 8, 198, 220, 220, 220, 4574, 0, 7, 82, 11, 256, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 4246, 8, 6624, 1988, 7, 82, 8, 6624, 256, 628, 220, 220, 220, 1303, 4818, 316, 320, 413, 17484, 198, 220, 220, 220, 256, 796, 7536, 7575, 7, 16, 11, 16, 11, 16, 11, 16, 11, 16, 11, 16, 8, 198, 220, 220, 220, 264, 796, 26484, 7, 83, 8, 198, 220, 220, 220, 665, 796, 4818, 316, 320, 413, 17484, 7, 83, 11, 6737, 28, 82, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 4246, 8, 6624, 1988, 7, 82, 8, 6624, 256, 198, 220, 220, 220, 256, 796, 7536, 7575, 7, 17, 11, 17, 11, 17, 11, 17, 11, 17, 11, 17, 8, 198, 220, 220, 220, 4574, 0, 7, 4246, 11, 256, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 4246, 8, 6624, 1988, 7, 82, 8, 6624, 256, 198, 220, 220, 220, 256, 796, 7536, 7575, 7, 18, 11, 18, 11, 18, 11, 18, 11, 18, 11, 18, 8, 198, 220, 220, 220, 4574, 0, 7, 82, 11, 256, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 4246, 8, 6624, 1988, 7, 82, 8, 6624, 256, 628, 220, 220, 220, 1303, 4371, 5657, 198, 220, 220, 220, 279, 65, 796, 4371, 5657, 7, 16, 492, 940, 8, 198, 220, 220, 220, 2488, 9288, 1988, 7, 40842, 8, 6624, 352, 198, 220, 220, 220, 4574, 0, 7, 40842, 11, 642, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1988, 7, 40842, 8, 6624, 642, 198, 220, 220, 220, 279, 65, 796, 4371, 5657, 7, 17, 25, 23, 8, 198, 220, 220, 220, 2488, 9288, 1988, 7, 40842, 8, 6624, 362, 198, 198, 437, 198, 198, 2235, 4936, 198, 2, 1114, 3840, 314, 836, 470, 1833, 11, 428, 1690, 10143, 611, 340, 338, 2641, 257, 2488, 9288, 2617, 198, 24588, 796, 657, 198, 198, 86, 796, 26580, 7203, 54, 312, 11407, 4943, 198, 65, 796, 4936, 7203, 8164, 502, 4943, 198, 14689, 0, 7, 86, 11, 275, 8, 198, 2673, 796, 3975, 7, 65, 8, 466, 1188, 198, 220, 220, 220, 3298, 3753, 198, 220, 220, 220, 3753, 3712, 5317, 15853, 352, 198, 437, 198, 38, 30488, 13, 12860, 439, 7, 86, 8, 198, 21062, 3419, 198, 535, 796, 3753, 220, 1303, 3975, 2331, 284, 2046, 340, 1752, 11, 523, 1700, 262, 366, 3605, 1, 4238, 1988, 198, 12976, 7, 65, 3712, 38, 30488, 3041, 5275, 13, 21864, 8, 796, 269, 13345, 19510, 25, 13655, 74, 62, 16539, 62, 565, 9484, 11, 38, 30488, 13, 8019, 13655, 74, 828, 34, 19382, 11, 7, 46745, 90, 38, 30488, 13, 38, 10267, 5512, 828, 65, 13, 42655, 8, 198, 15916, 13, 36484, 7, 7942, 8, 198, 12976, 7, 65, 8, 198, 21062, 3419, 198, 31, 9288, 3753, 6624, 36624, 10, 16, 198, 41659, 7, 86, 8, 198, 198, 2, 6889, 1654, 356, 460, 635, 1234, 257, 16984, 21864, 287, 257, 20969, 198, 16539, 7, 26, 26295, 28, 25391, 21864, 7203, 16928, 355, 9313, 4008, 198, 198, 361, 402, 30488, 13, 8019, 13655, 74, 62, 9641, 18189, 410, 1, 18, 13, 940, 1, 198, 220, 220, 220, 1303, 1675, 1104, 402, 30488, 32875, 11, 356, 761, 428, 355, 262, 5288, 9195, 13655, 74, 2196, 198, 220, 220, 220, 2488, 9288, 2617, 366, 7293, 633, 40803, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 22492, 2137, 26295, 198, 220, 220, 220, 220, 220, 220, 220, 264, 796, 26484, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 279, 796, 2137, 7, 82, 11, 352, 25, 23, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1592, 796, 26580, 3419, 930, 29, 357, 70, 796, 24846, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 308, 58, 16, 11, 16, 60, 796, 279, 198, 220, 220, 220, 220, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 5404, 8, 198, 220, 220, 220, 220, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 275, 34106, 62, 69, 16993, 796, 279, 13, 42655, 13, 9662, 62, 11813, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 46118, 62, 69, 16993, 11, 2147, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 362, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 79, 13, 42655, 13, 1759, 62, 11813, 11, 2147, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 796, 352, 25, 22, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3993, 7, 15, 13, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1988, 7, 82, 8, 6624, 807, 198, 220, 220, 220, 220, 220, 220, 220, 4117, 7, 5404, 8, 628, 220, 220, 220, 220, 220, 220, 220, 279, 796, 2137, 7, 16, 25, 12825, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1592, 796, 26580, 7, 14535, 7, 79, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 5404, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 42655, 7, 79, 737, 37295, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4117, 7, 5404, 8, 220, 1303, 428, 815, 407, 7716, 257, 1256, 286, 5072, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 34, 18131, 3118, 896, 1, 2221, 198, 220, 220, 220, 2124, 796, 11787, 26453, 7, 15, 13, 17, 8, 198, 220, 220, 220, 2488, 9288, 11787, 26453, 7, 87, 8, 24844, 2124, 198, 220, 220, 220, 2488, 9288, 10385, 7, 12982, 26453, 11, 2124, 8, 24844, 2124, 198, 220, 220, 220, 2488, 9288, 2124, 10, 87, 24844, 11787, 26453, 7, 15, 13, 17, 10, 15, 13, 17, 8, 198, 220, 220, 220, 2488, 9288, 2124, 12, 87, 24844, 11787, 26453, 7, 15, 13, 15, 8, 198, 220, 220, 220, 2488, 9288, 48436, 2414, 7, 87, 8, 24844, 657, 13, 17, 198, 220, 220, 220, 2488, 9288, 10385, 7, 43879, 2414, 11, 2124, 8, 24844, 657, 13, 17, 198, 220, 220, 220, 331, 796, 11787, 26453, 32590, 15, 13, 18, 8, 198, 220, 220, 220, 2488, 9288, 2124, 1875, 331, 198, 220, 220, 220, 2488, 9288, 331, 1279, 2124, 198, 220, 220, 220, 2488, 9288, 2352, 7, 87, 8, 24844, 2124, 198, 220, 220, 220, 2488, 9288, 2352, 7, 88, 8, 24844, 11787, 26453, 7, 15, 13, 18, 8, 198, 220, 220, 220, 2488, 9288, 949, 7, 87, 11, 331, 8, 24844, 331, 198, 220, 220, 220, 2488, 9288, 3509, 7, 87, 11, 331, 8, 24844, 2124, 198, 220, 220, 220, 1976, 796, 16232, 26453, 7, 17, 13, 15, 8, 198, 220, 220, 220, 2488, 9288, 62, 400, 8516, 13047, 16922, 2124, 10, 89, 198, 220, 220, 220, 2488, 9288, 347, 970, 7, 24728, 26453, 7, 16, 13, 15, 4008, 24844, 2081, 198, 220, 220, 220, 2488, 9288, 34142, 7, 24728, 26453, 7, 18, 13, 15, 4008, 24844, 513, 198, 437, 198, 198, 31, 9288, 2617, 366, 6090, 11017, 1, 2221, 198, 220, 220, 220, 2488, 9288, 41420, 7, 20, 11, 642, 8, 24844, 41420, 90, 5317, 92, 7, 20, 11, 642, 8, 198, 220, 220, 220, 2488, 9288, 41420, 7, 20, 11, 642, 13, 15, 8, 24844, 41420, 90, 43879, 2414, 92, 7, 20, 13, 15, 11, 642, 13, 15, 8, 198, 220, 220, 220, 2488, 9288, 41420, 90, 12982, 26453, 92, 7, 20, 11, 642, 13, 15, 8, 24844, 41420, 90, 12982, 26453, 92, 7, 20, 13, 15, 11, 642, 13, 15, 8, 24844, 41420, 90, 12982, 26453, 92, 7, 12982, 26453, 7, 20, 828, 11787, 26453, 7, 20, 4008, 198, 220, 220, 220, 2488, 9288, 41420, 7, 20, 13, 15, 11, 642, 47762, 34278, 7, 19, 11, 604, 13, 16, 8, 24844, 41420, 7, 24, 11, 860, 13, 16, 8, 198, 220, 220, 220, 2488, 9288, 41420, 7, 20, 11, 642, 13219, 34278, 7, 19, 11, 604, 8, 24844, 41420, 7, 16, 11, 352, 8, 628, 220, 220, 220, 2488, 9288, 318, 64, 7, 39643, 21864, 90, 12982, 26453, 92, 22784, 21839, 21864, 90, 12982, 26453, 30072, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 39643, 21864, 90, 24728, 26453, 92, 22784, 21839, 21864, 90, 24728, 26453, 30072, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 39643, 29261, 90, 12982, 26453, 92, 22784, 21839, 29261, 90, 12982, 26453, 30072, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 39643, 29261, 90, 24728, 26453, 92, 22784, 21839, 29261, 90, 24728, 26453, 30072, 628, 220, 220, 220, 2488, 9288, 347, 9969, 14253, 7, 34278, 7, 17, 492, 19, 11, 532, 1314, 492, 1314, 4008, 24844, 347, 9969, 14253, 7, 17, 11, 604, 11, 532, 1314, 11, 1315, 8, 628, 220, 220, 220, 269, 796, 21978, 7, 21315, 11, 27791, 8, 198, 220, 220, 220, 1592, 796, 26580, 7, 66, 8, 198, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 5404, 8, 198, 220, 220, 220, 3993, 7, 15, 13, 16, 8, 198, 220, 220, 220, 2488, 9288, 19840, 13, 10394, 7, 66, 8, 6624, 27121, 198, 220, 220, 220, 2488, 9288, 19840, 13, 17015, 7, 66, 8, 6624, 27791, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 66, 11, 402, 30488, 3041, 5275, 13, 6090, 11017, 90, 24728, 26453, 30072, 198, 220, 220, 220, 4117, 7, 5404, 8, 198, 220, 220, 220, 269, 796, 21978, 7, 12982, 26453, 11, 27121, 11, 27791, 8, 198, 220, 220, 220, 1592, 796, 26580, 7, 66, 8, 198, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 5404, 8, 198, 220, 220, 220, 7766, 7, 66, 11, 2081, 8, 198, 220, 220, 220, 3993, 7, 15, 13, 18, 8, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 66, 11, 402, 30488, 3041, 5275, 13, 6090, 11017, 90, 12982, 26453, 30072, 198, 220, 220, 220, 5228, 62, 7959, 796, 357, 24728, 26453, 7, 21315, 828, 16232, 26453, 7, 22745, 4008, 198, 220, 220, 220, 329, 357, 1073, 3669, 11, 5228, 62, 14629, 8, 287, 14808, 33, 9969, 14253, 7, 15, 11, 352, 11, 657, 11, 352, 828, 357, 12982, 26453, 7, 16, 828, 11787, 26453, 7, 16, 4008, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 57, 4207, 47371, 19510, 20, 25, 940, 11, 513, 25, 20, 36911, 357, 12982, 26453, 7, 20, 828, 11787, 26453, 7, 940, 4008, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14808, 12, 16, 25, 16, 11, 8949, 25, 11442, 828, 357, 12982, 26453, 7, 11442, 828, 11787, 26453, 7, 16, 35514, 198, 220, 220, 220, 220, 220, 220, 220, 900, 62, 37652, 17540, 7, 66, 11, 763, 3669, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 402, 30488, 3041, 5275, 13, 1102, 1851, 41667, 7, 12982, 26453, 11, 269, 11, 5228, 62, 7959, 23029, 6624, 5228, 62, 14629, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 402, 30488, 3041, 5275, 13, 1102, 1851, 41667, 7, 24728, 26453, 11, 269, 11, 5228, 62, 7959, 23029, 6624, 5228, 62, 7959, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 402, 30488, 3041, 5275, 13, 1102, 1851, 41667, 7, 12982, 26453, 11, 269, 11, 5228, 62, 14629, 23029, 6624, 5228, 62, 14629, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 402, 30488, 3041, 5275, 13, 1102, 1851, 41667, 7, 24728, 26453, 11, 269, 11, 5228, 62, 14629, 23029, 6624, 5228, 62, 7959, 198, 220, 220, 220, 886, 628, 220, 220, 220, 4117, 7, 5404, 8, 628, 198, 220, 220, 220, 269, 796, 21978, 3419, 198, 220, 220, 220, 277, 796, 25184, 7, 66, 8, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 69, 11, 402, 30488, 13, 38, 30488, 19778, 3123, 1878, 8, 198, 220, 220, 220, 4117, 7, 69, 8, 198, 220, 220, 220, 269, 796, 21978, 3419, 198, 220, 220, 220, 277, 796, 1081, 806, 19778, 7, 66, 11, 366, 4366, 3670, 1600, 657, 13, 20, 11, 657, 13, 20, 11, 513, 13, 15, 8, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 69, 11, 402, 30488, 13, 38, 30488, 1722, 806, 19778, 3123, 1878, 8, 198, 220, 220, 220, 2488, 9288, 651, 62, 13655, 74, 62, 26745, 7, 69, 11, 1058, 10366, 952, 11, 48436, 2414, 8, 6624, 513, 13, 15, 198, 220, 220, 220, 4117, 7, 69, 8, 198, 437, 198, 198, 2, 2488, 9288, 2617, 366, 6090, 11017, 2995, 1, 2221, 198, 220, 220, 220, 1592, 796, 26580, 3419, 930, 29, 357, 66, 796, 21978, 7, 12982, 26453, 4008, 198, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 5404, 8, 198, 220, 220, 220, 3993, 7, 15, 13, 17, 8, 198, 220, 220, 220, 938, 15596, 796, 6524, 7203, 22366, 4943, 198, 220, 220, 220, 1803, 220, 220, 796, 3975, 7, 46118, 3784, 75, 4594, 1151, 21737, 796, 366, 8439, 1600, 220, 220, 269, 13, 35888, 13, 16539, 8439, 8, 198, 220, 220, 220, 2650, 796, 3975, 7, 46118, 3784, 75, 4594, 1151, 21737, 796, 366, 20979, 1600, 269, 13, 35888, 13, 16539, 20979, 8, 198, 220, 220, 220, 6268, 220, 796, 3975, 7, 46118, 3784, 75, 4594, 1151, 21737, 796, 4731, 7203, 38714, 284, 33172, 275, 34106, 13, 9150, 13, 87, 11, 33172, 33172, 275, 34106, 13, 9150, 13, 88, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 13, 35888, 13, 38714, 8, 198, 220, 220, 220, 10743, 220, 796, 3975, 7, 46118, 3784, 75, 4594, 1151, 21737, 796, 366, 48728, 1600, 269, 13, 35888, 13, 48728, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 938, 15596, 21737, 796, 366, 22366, 1, 198, 220, 220, 220, 2488, 9288, 938, 15596, 21737, 6624, 366, 22366, 1, 198, 220, 220, 220, 6737, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 16539, 12, 8439, 12, 15596, 1600, 347, 970, 11, 1785, 16539, 7, 66, 11, 21728, 11357, 62, 32761, 11, 352, 4008, 198, 220, 220, 220, 3993, 7, 15, 13, 16, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 938, 15596, 21737, 6624, 366, 8439, 1, 198, 220, 220, 220, 6737, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 16539, 12, 20979, 12, 15596, 1600, 347, 970, 11, 1785, 16539, 7, 66, 11, 402, 30488, 3041, 5275, 13, 47526, 11357, 62, 2200, 22781, 11, 352, 4008, 198, 220, 220, 220, 3993, 7, 15, 13, 16, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 3993, 7, 15, 13, 16, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 938, 15596, 21737, 6624, 366, 20979, 1, 198, 220, 220, 220, 6737, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 48728, 12, 15596, 1600, 347, 970, 11, 2995, 66, 2487, 7, 66, 11, 15958, 4008, 198, 220, 220, 220, 3993, 7, 15, 13, 16, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 3993, 7, 15, 13, 16, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 938, 15596, 21737, 6624, 366, 48728, 1, 198, 220, 220, 220, 6737, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 38714, 12, 1662, 1958, 12, 15596, 1600, 347, 970, 11, 1785, 38714, 7, 66, 11, 657, 11, 11787, 26453, 7, 1238, 828, 11787, 26453, 7, 1314, 22305, 198, 220, 220, 220, 3993, 7, 15, 13, 16, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 3993, 7, 15, 13, 16, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 2488, 9288, 938, 15596, 21737, 6624, 366, 38714, 284, 11787, 26453, 7, 1238, 13, 15, 828, 11787, 26453, 7, 1314, 13, 15, 16725, 198, 220, 220, 220, 4117, 7, 5404, 8, 198, 2, 886, 198, 198, 31, 9288, 2617, 366, 16979, 929, 1, 2221, 198, 220, 220, 220, 46207, 26272, 796, 21860, 3419, 198, 220, 220, 220, 46207, 9186, 796, 21860, 7449, 7203, 16979, 929, 6859, 9313, 8, 198, 220, 220, 220, 4574, 0, 7, 12924, 929, 26272, 11, 46207, 9186, 8, 198, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 12924, 929, 26272, 8, 198, 220, 220, 220, 1592, 796, 26580, 3419, 930, 29, 357, 66, 796, 21978, 28955, 198, 220, 220, 220, 1461, 37623, 4359, 10446, 796, 6524, 7, 9562, 8, 198, 220, 220, 220, 4574, 0, 7, 66, 13, 18302, 8520, 11, 3975, 7, 66, 13, 35888, 13, 16539, 8439, 8, 466, 275, 34106, 198, 220, 220, 220, 220, 220, 220, 220, 611, 275, 34106, 13, 16539, 6624, 513, 11405, 275, 34106, 13, 12976, 4906, 6624, 21728, 11357, 62, 32761, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46207, 7, 12924, 929, 26272, 11, 275, 34106, 13, 13655, 365, 1151, 8, 220, 1303, 779, 262, 8246, 402, 30488, 1785, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1461, 37623, 4359, 10446, 21737, 796, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2147, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 8, 198, 220, 220, 220, 7800, 3419, 198, 220, 220, 220, 2488, 9288, 5145, 12924, 37623, 4359, 10446, 21737, 198, 220, 220, 220, 819, 83, 796, 1785, 16539, 7, 66, 11, 21728, 11357, 62, 32761, 11, 352, 8, 198, 220, 220, 220, 6737, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 16539, 12, 8439, 12, 15596, 1600, 347, 970, 11, 819, 83, 8, 198, 220, 220, 220, 7800, 3419, 198, 220, 220, 220, 2488, 9288, 5145, 12924, 37623, 4359, 10446, 21737, 198, 220, 220, 220, 819, 83, 796, 1785, 16539, 7, 66, 11, 21728, 11357, 62, 32761, 11, 513, 8, 198, 220, 220, 220, 6737, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 16539, 12, 8439, 12, 15596, 1600, 347, 970, 11, 819, 83, 8, 198, 220, 220, 220, 1057, 62, 83, 359, 62, 28920, 3419, 198, 220, 220, 220, 2488, 9288, 1461, 37623, 4359, 10446, 21737, 198, 220, 220, 220, 4117, 7, 5404, 8, 198, 220, 220, 220, 4117, 7, 12924, 929, 26272, 8, 198, 437, 198, 198, 31, 9288, 2617, 366, 25302, 278, 1, 2221, 198, 220, 220, 220, 33705, 796, 8844, 496, 7203, 75, 32303, 4943, 198, 220, 220, 220, 269, 796, 21978, 7, 12982, 26453, 11, 2546, 7, 9600, 11, 362, 828, 2546, 7, 9600, 11, 352, 4008, 198, 220, 220, 220, 1592, 796, 26580, 7, 66, 8, 198, 220, 220, 220, 2124, 82, 328, 11, 331, 82, 328, 796, 26484, 7, 1238, 828, 26484, 7, 1238, 8, 198, 220, 220, 220, 3197, 7, 66, 11, 2124, 82, 328, 11, 331, 82, 328, 8, 466, 269, 77, 14259, 11, 2124, 11, 331, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 0, 7, 66, 11, 33705, 8, 198, 220, 220, 220, 220, 220, 220, 220, 269, 17602, 796, 651, 36484, 7, 31522, 14259, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 62, 10459, 7, 49464, 11, 3124, 415, 1, 445, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 900, 62, 1370, 62, 10394, 7, 49464, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 9197, 7, 49464, 11, 2124, 11, 331, 11, 642, 8, 198, 220, 220, 220, 220, 220, 220, 220, 14000, 7, 49464, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 402, 30488, 13, 12860, 439, 7, 5404, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 4574, 0, 7, 34223, 328, 11, 1802, 8, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 3993, 7, 16, 8, 198, 220, 220, 220, 1303, 6822, 326, 356, 651, 262, 826, 3280, 198, 220, 220, 220, 24714, 796, 20218, 3672, 3419, 198, 220, 220, 220, 23732, 13, 13564, 62, 1462, 62, 11134, 7, 1136, 36484, 7, 66, 737, 42029, 11, 24714, 8, 198, 220, 220, 220, 33705, 448, 796, 3440, 7, 22184, 8, 198, 220, 220, 220, 42721, 7, 22184, 8, 198, 220, 220, 220, 2488, 9288, 33705, 448, 58, 1495, 11, 3064, 60, 6624, 33705, 448, 58, 1433, 11, 3064, 60, 6624, 33705, 448, 58, 1238, 11, 13348, 60, 6624, 3124, 415, 1, 445, 1, 198, 220, 220, 220, 2488, 9288, 33705, 448, 58, 1238, 11, 3064, 60, 6624, 33705, 58, 1238, 11, 3064, 60, 198, 220, 220, 220, 4117, 7, 5404, 8, 198, 437, 198, 198, 2, 1114, 4856, 40305, 47371, 1104, 329, 1729, 12, 23839, 19182, 5563, 198, 7249, 36080, 886, 198, 14881, 13, 897, 274, 7, 3712, 37, 2238, 8, 796, 357, 14881, 13, 3198, 2514, 7, 22, 828, 7308, 13, 3198, 2514, 7, 24, 4008, 198, 198, 31, 9288, 2617, 366, 57, 4207, 14, 6839, 1, 2221, 198, 220, 220, 220, 2488, 9288, 4731, 7, 12982, 26453, 7, 18, 4008, 6624, 366, 12982, 26453, 7, 18, 13, 15, 16725, 198, 220, 220, 220, 2488, 9288, 4731, 7, 24728, 26453, 7, 18, 4008, 6624, 366, 24728, 26453, 7, 18, 13, 15, 16725, 628, 220, 220, 220, 2124, 88, 796, 2488, 259, 18186, 7, 34278, 7, 16, 11, 513, 4008, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 5431, 11, 41420, 90, 5317, 30072, 198, 220, 220, 220, 2488, 9288, 2124, 88, 13, 87, 6624, 352, 198, 220, 220, 220, 2488, 9288, 2124, 88, 13, 88, 6624, 513, 198, 220, 220, 220, 2488, 9288, 4731, 7, 5431, 8, 6624, 366, 34278, 7, 16, 11, 513, 16725, 198, 220, 220, 220, 2124, 88, 796, 2488, 259, 18186, 7, 34278, 90, 43879, 2414, 92, 7, 16, 11, 513, 4008, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 5431, 11, 41420, 90, 43879, 2414, 30072, 198, 220, 220, 220, 2488, 9288, 2124, 88, 13, 87, 6624, 352, 198, 220, 220, 220, 2488, 9288, 2124, 88, 13, 88, 6624, 513, 198, 220, 220, 220, 2488, 9288, 4731, 7, 5431, 8, 6624, 366, 34278, 7, 16, 13, 15, 11, 513, 13, 15, 16725, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 1102, 1851, 7, 34278, 90, 5317, 5512, 2124, 88, 828, 41420, 90, 5317, 30072, 198, 220, 220, 220, 2124, 88, 796, 41420, 90, 43879, 2414, 92, 7, 18, 13, 17, 11, 604, 13, 23, 8, 198, 220, 220, 220, 2124, 2417, 796, 10385, 7, 34278, 90, 49, 5317, 5512, 2124, 88, 8, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 87, 2417, 11, 41420, 90, 49, 5317, 30072, 11405, 2124, 2417, 13, 87, 6624, 513, 11405, 2124, 2417, 13, 88, 6624, 642, 198, 220, 220, 220, 2124, 88, 796, 41420, 7, 12982, 26453, 7, 18, 828, 11787, 26453, 7, 20, 4008, 198, 220, 220, 220, 2488, 9288, 4731, 7, 5431, 8, 6624, 366, 34278, 90, 12982, 26453, 92, 7, 18, 13, 15, 11, 642, 13, 15, 16725, 198, 220, 220, 220, 2488, 9288, 2488, 259, 18186, 7, 34278, 90, 12982, 26453, 92, 7, 18, 11, 642, 4008, 6624, 2124, 88, 628, 220, 220, 220, 1976, 81, 796, 40305, 47371, 19510, 16, 25, 1795, 11, 352, 25, 3064, 4008, 220, 1303, 331, 11, 2124, 1502, 198, 220, 220, 220, 1976, 81, 89, 796, 402, 30488, 3041, 5275, 13, 89, 4207, 7, 89, 81, 11, 657, 13, 20, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 89, 13, 14421, 1177, 13, 87, 6624, 2608, 492, 2425, 198, 220, 220, 220, 2488, 9288, 1976, 81, 89, 13, 14421, 1177, 13, 88, 6624, 2310, 492, 1899, 198, 220, 220, 220, 1976, 81, 79, 796, 402, 30488, 3041, 5275, 13, 6839, 62, 87, 7, 89, 81, 89, 11, 657, 13, 17, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 87, 6624, 4570, 492, 5332, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 88, 6624, 2310, 492, 1899, 198, 220, 220, 220, 1976, 81, 79, 796, 402, 30488, 3041, 5275, 13, 6839, 62, 87, 7, 89, 81, 89, 11, 532, 15, 13, 17, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 87, 6624, 1467, 492, 2996, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 88, 6624, 2310, 492, 1899, 198, 220, 220, 220, 1976, 81, 79, 796, 402, 30488, 3041, 5275, 13, 6839, 62, 88, 7, 89, 81, 89, 11, 532, 15, 13, 17, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 87, 6624, 2608, 492, 2425, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 88, 6624, 1511, 492, 4309, 198, 220, 220, 220, 1976, 81, 79, 796, 402, 30488, 3041, 5275, 13, 6839, 62, 88, 7, 89, 81, 89, 11, 657, 13, 17, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 87, 6624, 2608, 492, 2425, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 88, 6624, 2808, 492, 3104, 198, 220, 220, 220, 1976, 81, 79, 796, 402, 30488, 3041, 5275, 13, 6839, 62, 87, 7, 89, 81, 89, 11, 352, 13, 15, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 87, 6624, 6885, 492, 3064, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 88, 6624, 2310, 492, 1899, 198, 220, 220, 220, 1976, 81, 79, 796, 402, 30488, 3041, 5275, 13, 6839, 62, 88, 7, 89, 81, 89, 11, 532, 16, 13, 15, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 87, 6624, 2608, 492, 2425, 198, 220, 220, 220, 2488, 9288, 1976, 81, 79, 13, 14421, 1177, 13, 88, 6624, 352, 492, 1821, 198, 220, 220, 220, 1976, 81, 89, 17, 796, 402, 30488, 3041, 5275, 13, 89, 4207, 7, 89, 81, 89, 11, 362, 13, 18005, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 89, 17, 6624, 1976, 81, 198, 220, 220, 220, 1976, 81, 89, 17, 796, 402, 30488, 3041, 5275, 13, 89, 4207, 7, 89, 81, 89, 11, 513, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 89, 17, 6624, 1976, 81, 198, 220, 220, 220, 1976, 81, 89, 17, 796, 402, 30488, 3041, 5275, 13, 89, 4207, 7, 89, 81, 89, 11, 352, 13, 24, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 89, 17, 13, 14421, 1177, 13, 87, 6624, 604, 492, 5607, 198, 220, 220, 220, 2488, 9288, 1976, 81, 89, 17, 13, 14421, 1177, 13, 88, 6624, 513, 492, 3695, 198, 220, 220, 220, 1976, 81, 89, 796, 402, 30488, 3041, 5275, 13, 89, 4207, 7, 89, 81, 11, 657, 13, 20, 11, 402, 30488, 3041, 5275, 13, 34278, 90, 24728, 26453, 92, 7, 1120, 13, 20, 11, 2319, 13, 20, 4008, 198, 220, 220, 220, 2488, 9288, 1976, 81, 89, 13, 14421, 1177, 13, 87, 6624, 2608, 492, 2425, 198, 220, 220, 220, 2488, 9288, 1976, 81, 89, 13, 14421, 1177, 13, 88, 6624, 2310, 492, 1899, 198, 220, 220, 220, 1976, 81, 89, 796, 402, 30488, 3041, 5275, 13, 89, 4207, 7, 89, 81, 11, 657, 13, 20, 11, 402, 30488, 3041, 5275, 13, 34278, 90, 24728, 26453, 92, 7, 1899, 13, 20, 11, 1542, 13, 20, 4008, 198, 220, 220, 220, 2488, 9288, 1976, 81, 89, 13, 14421, 1177, 13, 87, 6624, 3261, 492, 1795, 198, 220, 220, 220, 2488, 9288, 1976, 81, 89, 13, 14421, 1177, 13, 88, 6624, 1467, 492, 2816, 198, 220, 220, 220, 1976, 21062, 796, 402, 30488, 3041, 5275, 13, 42503, 7, 89, 81, 89, 8, 198, 220, 220, 220, 2488, 9288, 1976, 21062, 6624, 1976, 81, 628, 220, 220, 220, 1976, 81, 11848, 796, 40305, 47371, 7, 89, 81, 13, 12853, 1177, 11, 347, 9969, 14253, 7, 20, 11, 1315, 11, 3439, 11, 5441, 4008, 198, 220, 220, 220, 2488, 9288, 1976, 81, 11848, 13, 12853, 1177, 24844, 1976, 81, 13, 12853, 1177, 198, 220, 220, 220, 2488, 9288, 1976, 81, 11848, 13, 14421, 1177, 13, 87, 6624, 642, 492, 1314, 198, 220, 220, 220, 2488, 9288, 1976, 81, 11848, 13, 14421, 1177, 13, 88, 6624, 3439, 492, 2425, 198, 220, 220, 220, 2488, 9288, 2099, 1659, 7, 89, 81, 11848, 13, 14421, 1177, 8, 6624, 2099, 1659, 7, 89, 81, 13, 14421, 1177, 8, 628, 220, 220, 220, 1976, 3808, 328, 796, 26484, 7, 89, 81, 8, 198, 220, 220, 220, 4574, 0, 7, 89, 3808, 328, 11, 357, 18, 25, 20, 11, 604, 25, 22, 4008, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 1976, 81, 796, 1988, 7, 89, 3808, 328, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 12853, 1177, 13, 88, 6624, 352, 492, 1795, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 12853, 1177, 13, 87, 6624, 352, 492, 3064, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 14421, 1177, 13, 88, 6624, 513, 492, 20, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 14421, 1177, 13, 87, 6624, 604, 492, 22, 198, 220, 220, 220, 4574, 0, 7, 89, 3808, 328, 11, 41420, 7, 16, 492, 17, 11, 513, 492, 19, 4008, 198, 220, 220, 220, 374, 81, 3419, 198, 220, 220, 220, 1976, 81, 796, 1988, 7, 89, 3808, 328, 8, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 12853, 1177, 13, 88, 6624, 352, 492, 1795, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 12853, 1177, 13, 87, 6624, 352, 492, 3064, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 14421, 1177, 13, 88, 6624, 513, 492, 19, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 14421, 1177, 13, 87, 6624, 352, 492, 17, 628, 220, 220, 220, 1976, 81, 796, 40305, 47371, 7, 37, 2238, 28955, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 12853, 1177, 13, 88, 6624, 352, 492, 22, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 12853, 1177, 13, 87, 6624, 352, 492, 24, 628, 220, 220, 220, 1976, 81, 796, 40305, 47371, 19510, 16, 25, 3064, 11, 352, 25, 1795, 828, 357, 1157, 25, 1238, 11, 807, 25, 1065, 4008, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 12853, 1177, 13, 87, 6624, 352, 492, 1795, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 12853, 1177, 13, 88, 6624, 352, 492, 3064, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 14421, 1177, 13, 87, 6624, 807, 492, 1065, 198, 220, 220, 220, 2488, 9288, 1976, 81, 13, 14421, 1177, 13, 88, 6624, 1367, 492, 1238, 198, 220, 220, 220, 2488, 9288, 34197, 7, 89, 81, 8, 6624, 357, 1157, 25, 1238, 11, 807, 25, 1065, 8, 198, 437, 198, 198, 21017, 3184, 5039, 262, 10211, 25785, 11, 3503, 13, 284, 7616, 19792, 14, 6839, 198, 2, 6521, 11, 428, 1595, 470, 1283, 284, 670, 2641, 257, 2488, 9288, 2617, 198, 5404, 796, 26580, 3419, 930, 29, 357, 66, 796, 21978, 7, 12982, 26453, 4008, 198, 89, 81, 796, 26484, 7, 57, 4207, 47371, 19510, 16, 25, 1157, 11, 352, 25, 1238, 22305, 198, 89, 4207, 26145, 796, 2315, 62, 89, 4207, 62, 25089, 527, 3903, 7, 66, 11, 1976, 81, 8, 198, 10872, 3150, 796, 2315, 62, 89, 4207, 62, 48728, 7, 66, 11, 1976, 81, 8, 198, 79, 504, 796, 2315, 62, 6839, 62, 48728, 7, 66, 11, 1976, 81, 8, 198, 79, 392, 796, 2315, 62, 6839, 62, 7109, 363, 7, 66, 11, 1976, 81, 8, 198, 19334, 7, 66, 8, 466, 269, 77, 14259, 198, 220, 220, 220, 900, 62, 37652, 17540, 7, 66, 11, 1988, 7, 89, 81, 4008, 198, 220, 220, 220, 6070, 0, 7, 66, 11, 3124, 415, 1, 17585, 4943, 198, 437, 198, 38, 30488, 13, 12860, 439, 7, 5404, 8, 198, 42832, 7, 15, 13, 16, 8, 198, 198, 2, 40305, 416, 14239, 4097, 198, 12683, 282, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 16539, 12, 8439, 12, 15596, 1600, 347, 970, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1785, 16539, 7, 66, 11, 21728, 11357, 62, 32761, 11, 352, 11, 11787, 26453, 7, 20, 828, 11787, 26453, 7, 18, 828, 49833, 4008, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 12683, 282, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 38714, 12, 1662, 1958, 12, 15596, 1600, 347, 970, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1785, 38714, 7, 66, 11, 9335, 7, 16, 828, 11787, 26453, 7, 940, 828, 11787, 26453, 7, 19, 22305, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 12683, 282, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 16539, 12, 20979, 12, 15596, 1600, 347, 970, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1785, 16539, 7, 66, 11, 402, 30488, 3041, 5275, 13, 47526, 11357, 62, 2200, 22781, 11, 352, 11, 11787, 26453, 7, 940, 828, 11787, 26453, 7, 19, 22305, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 87, 6624, 642, 492, 940, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 88, 6624, 513, 492, 19, 198, 2, 48987, 326, 262, 14239, 4097, 2465, 468, 587, 27457, 198, 22184, 796, 20218, 3672, 3419, 198, 34, 18131, 13, 13564, 62, 1462, 62, 11134, 7, 1136, 36484, 7, 66, 737, 42029, 11, 24714, 8, 198, 9600, 448, 796, 3440, 7, 22184, 8, 198, 26224, 7, 22184, 8, 198, 31, 9288, 477, 7, 87, 3784, 87, 855, 8043, 415, 1, 17585, 1600, 33705, 448, 8, 198, 198, 2, 5961, 12, 7109, 363, 198, 12683, 282, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 16539, 12, 8439, 12, 15596, 1600, 347, 970, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1785, 16539, 7, 66, 11, 21728, 11357, 62, 32761, 11, 352, 11, 11787, 26453, 7, 21, 828, 11787, 26453, 7, 18, 828, 657, 4008, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 12683, 282, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 38714, 12, 1662, 1958, 12, 15596, 1600, 347, 970, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1785, 38714, 7, 66, 11, 9335, 7, 16, 828, 11787, 26453, 7, 22, 828, 11787, 26453, 7, 17, 22305, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 87, 6624, 604, 492, 24, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 88, 6624, 604, 492, 20, 198, 198, 2, 30027, 198, 12683, 282, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 16539, 12, 8439, 12, 15596, 1600, 347, 970, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1785, 16539, 7, 66, 11, 360, 2606, 19146, 62, 47526, 11357, 62, 32761, 11, 352, 11, 11787, 26453, 7, 20, 828, 11787, 26453, 7, 19, 13, 20, 828, 49833, 4008, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 87, 6624, 352, 492, 1238, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 88, 6624, 352, 492, 1157, 198, 198, 2, 40305, 12, 48728, 198, 12683, 282, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 48728, 12, 15596, 1600, 347, 970, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2995, 66, 2487, 7, 66, 11, 15958, 11, 11787, 26453, 7, 23, 828, 11787, 26453, 7, 19, 828, 49833, 4008, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 87, 6624, 604, 492, 1415, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 88, 6624, 362, 492, 23, 198, 198, 2, 5961, 12, 48728, 198, 12683, 282, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 48728, 12, 15596, 1600, 347, 970, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2995, 66, 2487, 7, 66, 11, 33621, 11, 11787, 26453, 7, 23, 828, 11787, 26453, 7, 19, 828, 657, 4008, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 87, 6624, 642, 492, 1314, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 88, 6624, 362, 492, 23, 198, 198, 12683, 282, 62, 368, 270, 7, 42655, 7, 66, 828, 366, 48728, 12, 15596, 1600, 347, 970, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2995, 66, 2487, 7, 66, 11, 30320, 11, 11787, 26453, 7, 23, 828, 11787, 26453, 7, 19, 828, 657, 4008, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 42832, 7, 15, 13, 16, 8, 198, 21062, 3419, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 87, 6624, 642, 492, 1314, 198, 31, 9288, 1988, 7, 89, 81, 737, 14421, 1177, 13, 88, 6624, 513, 492, 24, 198, 198, 41659, 7, 5404, 8, 198, 198, 31, 9288, 2617, 366, 14214, 32186, 1, 2221, 198, 220, 220, 220, 329, 357, 2100, 11, 269, 3149, 8, 287, 14808, 15, 13, 17, 11, 12723, 1731, 7, 15, 13, 17, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 46130, 7, 45, 15, 69, 23, 7, 15, 13, 20, 36911, 12723, 1731, 7, 15, 13, 20, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 36982, 7, 15, 11, 352, 11, 657, 828, 25228, 1731, 7, 15, 11, 352, 11, 657, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 48192, 4339, 7, 16, 11, 657, 11, 657, 13, 20, 11, 657, 13, 23, 828, 5923, 4579, 2624, 7, 16, 11, 657, 11, 657, 13, 20, 11, 657, 13, 23, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 9053, 796, 402, 30488, 3041, 5275, 13, 9060, 62, 42029, 7, 20797, 7, 2100, 11, 513, 11, 642, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 9053, 13, 17015, 6624, 513, 11405, 9053, 13, 10394, 6624, 642, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 477, 7, 87, 3784, 87, 6624, 302, 27381, 7, 52, 5317, 2624, 11, 269, 3149, 828, 9053, 13, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4117, 7, 11793, 69, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 9288, 2617, 366, 32517, 1, 2221, 198, 220, 220, 220, 308, 796, 24846, 3419, 198, 220, 220, 220, 308, 58, 16, 11, 16, 60, 796, 2420, 3524, 7203, 31373, 4943, 198, 437, 198, 198, 2, 48987, 326, 262, 6096, 1057, 357, 4360, 262, 797, 5275, 16834, 318, 5025, 11, 523, 198, 2, 484, 1839, 470, 670, 4556, 530, 3848, 4600, 31, 292, 13361, 797, 5275, 13, 5143, 3419, 63, 14500, 8, 198, 20688, 6978, 796, 4654, 6978, 7, 15908, 3672, 7, 15908, 3672, 7, 31, 834, 25664, 834, 36911, 366, 1069, 12629, 4943, 198, 17256, 7, 22179, 6978, 7, 20688, 6978, 11, 366, 9060, 1177, 263, 13, 20362, 48774, 198, 17256, 7, 22179, 6978, 7, 20688, 6978, 11, 366, 28029, 11407, 13, 20362, 48774, 198, 17256, 7, 22179, 6978, 7, 20688, 6978, 11, 366, 19334, 278, 13, 20362, 48774, 198 ]
2.084305
9,608
<filename>src/api.jl ## Token and registration related API """ register(code::String) -> String register() -> String Create a new authentification token from a code obtained on https://my.remarkable.com/connect/desktop If a code is not provided a tutorial is given. """ function register(code::String; path_to_token::String = "", kwargs...) data = Dict( "code" => code, "deviceDesc" => "desktop-windows", "deviceID" => string(uuid4()) ) @info "Registering device" response = HTTP.request_json( "POST", AUTH_API, data; kwargs... ) token = String(response.body) @info "Token : $token" if isempty(path_to_token) path_to_token = pwd() end write(joinpath(path_to_token, ".token"), token) @info "Token saved at $(joinpath(path_to_token))" return token end function register() @warn """ Hi, to use this API you first need to register this device. To do so go to https://my.remarkable.com/connect/desktop and ask for a new code! Once you have it run `register(code)` (where `code` is a `String`). It will return your authentification token and also save your token in a local file. """ end ## Items accessors """ list_items(client::RemarkableClient) -> Collection Return a `Collection` of all `Document`s and `Collection` present on the server You can visualize them nicely via `print_tree` """ function list_items(client::RemarkableClient; kwargs...) @info "Listing all items" body = HTTP.request(client, "GET", STORAGE_API[] * ITEM_LIST; kwargs...) items = JSON.parse(String(body)) docs = RemarkableObject[] for item in items item = Dict(Symbol(key)=>value for (key, value) in item) if item[:Type] == "DocumentType" doc = Document(;item...) push!(docs, doc) elseif item[:Type] == "CollectionType" collec = Collection(;item...) push!(docs, collec) end end return create_tree(docs) end """ get_item(client, id::String, download = false) get_item(client, id::RemarkableObject, download = false) Return a `RemarkableObject` given an ID or an existing `RemarkableObject`, using `download=true` will give the `BlobURLGet` to download the files """ function get_item(client::RemarkableClient, id::String, download::Bool = false; kwargs...) get_item(client, Document(ID = id), download; kwargs...) end function get_item(client::RemarkableClient, doc::RemarkableObject, download::Bool = false; kwargs...) query = Dict("doc" => doc.ID) if download query["withBlob"] = "true" end @info "Listing item" body = HTTP.request( client, "GET", STORAGE_API[] * ITEM_LIST; query = query, kwargs... ) item = JSON.parse(String(body)) return Document(first(item)) end ## Item modificators """ delete_item!(client, id::String) delete_item!(client, obj::remarkable) Delete the object from your collection (online) """ function delete_item!(client::RemarkableClient, id::String; kwargs...) delete_item!(client, Document(ID = id); kwargs...) end function delete_item!(client::RemarkableClient, obj::RemarkableObject; kwargs...) @info "Deleting item `$(title(obj))`" return storage_request(client, "PUT", "delete", obj_to_dict(obj); kwargs...); end """ update_metadata!(client, obj::RemarkableObject) -> Update the metadata of an object, can be used to modify a file or create a Collection """ function update_metadata!(client::RemarkableClient, obj::RemarkableObject; kwargs...) @info "Updating item metadata `$(title(obj))`" storage_request(client, "PUT", UPDATE_STATUS, obj_to_dict(obj); kwargs...) end """ create_folder!(client, name::String, parent::String="") -> Create a folder (Collection) in `parent` (root by default) """ function create_folder!(client::RemarkableClient, name::String, parent::String = ""; kwargs...) item = Collection( Parent = parent, VissibleName = name, ) @info "Creating folder $name" res = update_metadata!(client, item; kwargs...) return Collection(res) end ## Download files """ download_document(client, id::String, [path_target::String]) -> ZipFile Body download_document(client, doc::Document, [path_target::String]) -> Zipfile Body Download a document object with given id/doc. The document is always given as a `ZipFile` and can be saved via `write(filepath, body)` if `path_target` is given, the zip file is automatically written and named. """ function Base.download(client::RemarkableClient, id::String; kwargs...) download(client, Document(ID= id); kwargs...) end function Base.download(client::RemarkableClient, doc::Document; kwargs...) doc = get_item(client, doc.ID, true) @info "Downloading data" return HTTP.request(client, "GET", doc.BlobURLGet; kwargs...) end function Base.download(client::RemarkableClient, id::String, path_target::String; kwargs...) download_document(client, Document(ID=id), path_target; kwargs...) end function Base.download(client::RemarkableClient, doc::Document, path_target::String; kwargs...) file_name = isempty(title(doc)) ? doc.ID : (ispdf(doc) ? title(doc)[1:end-4] : title(doc)) file_path = joinpath(path_target, file_name * ".zip") body = download(client, doc; kwargs...) write(file_path, body) @info "File downloaded at $(file_path)" return file_path end function download_pdf(client::RemarkableClient, doc::Document, path_target::String; kwargs...) file_path = download(client, doc, path_target; kwargs...) file_name = isempty(title(doc)) ? doc.ID : (ispdf(doc) ? title(doc)[1:end-4] : title(doc)) z = ZipFile.Reader(file_path) for f in z.files if endswith(f, ".pdf") write(joinpath(path_target, file_name * ".pdf"), f) @info "Extracted $(file_name).pdf" return joinpath(path_target, file_name * ".pdf") end end end ## Upload files """ create_upload_request(client, doc::Document=Document()) -> Document Create a request to upload a document with a given id. """ function create_upload_request(client::RemarkableClient, doc::Document=Document(); kwargs...) @info "Creating upload request" data = storage_request(client, "PUT", "upload/request", obj_to_dict(doc); kwargs...) if isempty(data["BlobURLPut"]) error("Failed to get URL for upload") end return Document(doc; BlobURLPut = data["BlobURLPut"]) end """ upload_document!(client, obj::RemarkableObject, zip) -> RemarkableObject Upload `zip` file (actual zip file) with metadata from obj """ function upload_document!(client::RemarkableClient, obj::RemarkableObject, zipfile; kwargs...) obj = create_upload_request(client, obj; kwargs...) @info "Uploading data" body = HTTP.request(client, "PUT", obj.BlobURLPut, Dict(), zipfile; kwargs...) item = update_metadata!(client, obj) return item end """ upload_pdf!(client, pdf_path::String, pdf_name::String = basename(pdf_path), parent) Create a document for the given pdf and upload it. """ function upload_pdf!(client::RemarkableClient, pdf_path::String, pdf_name::String = basename(pdf_path), parent::String = ""; kwargs...) upload_pdf!(client, read(pdf_path), pdf_name, parent; kwargs...) end function upload_pdf!(client::RemarkableClient, pdf, pdfname::String, parent::String=""; kwargs...) doc = Document( Parent = parent, VissibleName = pdfname ) ## Create the ZIP file here with ZipFile tmpdir = mktempdir() tmpfile = joinpath(tmpdir, doc.ID * ".zip") zip = ZipFile.Writer(tmpfile) pdffile = ZipFile.addfile(zip, doc.ID * ".pdf") write(pdffile, pdf) pagedata = ZipFile.addfile(zip, doc.ID * ".pagedata") write(pagedata, "") content = ZipFile.addfile(zip, doc.ID * ".content") json_content = Dict( "extraMetaData" => Dict(), "fileType" => "pdf", "lastOpenedPage" => 0, "lineHeight" => -1, "margins" => 100, "pageCount" => 0, "textScale" => 1, "transform" => Dict() ) write(content, JSON.json(json_content)) close(zip) # zip = ZipFile.Reader(tmpfile) @info "Zip file temporarily saved at $(tmpfile)." upload_document!(client, doc, read(joinpath(tmpfile)); kwargs...) end
[ 27, 34345, 29, 10677, 14, 15042, 13, 20362, 198, 198, 2235, 29130, 290, 9352, 3519, 7824, 198, 198, 37811, 198, 220, 220, 220, 7881, 7, 8189, 3712, 10100, 8, 4613, 10903, 198, 220, 220, 220, 7881, 3419, 4613, 10903, 198, 198, 16447, 257, 649, 8323, 2649, 11241, 422, 257, 2438, 6492, 319, 3740, 1378, 1820, 13, 2787, 45543, 13, 785, 14, 8443, 14, 41375, 198, 1532, 257, 2438, 318, 407, 2810, 257, 11808, 318, 1813, 13, 198, 37811, 198, 8818, 7881, 7, 8189, 3712, 10100, 26, 3108, 62, 1462, 62, 30001, 3712, 10100, 796, 366, 1600, 479, 86, 22046, 23029, 198, 220, 220, 220, 1366, 796, 360, 713, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8189, 1, 5218, 2438, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 25202, 24564, 1, 5218, 366, 41375, 12, 28457, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 25202, 2389, 1, 5218, 4731, 7, 12303, 312, 19, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 2488, 10951, 366, 38804, 278, 3335, 1, 198, 220, 220, 220, 2882, 796, 14626, 13, 25927, 62, 17752, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 32782, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37195, 62, 17614, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 86, 22046, 986, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 11241, 796, 10903, 7, 26209, 13, 2618, 8, 198, 220, 220, 220, 2488, 10951, 366, 30642, 1058, 720, 30001, 1, 198, 220, 220, 220, 611, 318, 28920, 7, 6978, 62, 1462, 62, 30001, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3108, 62, 1462, 62, 30001, 796, 279, 16993, 3419, 198, 220, 220, 220, 886, 198, 220, 220, 220, 3551, 7, 22179, 6978, 7, 6978, 62, 1462, 62, 30001, 11, 27071, 30001, 12340, 11241, 8, 198, 220, 220, 220, 2488, 10951, 366, 30642, 7448, 379, 29568, 22179, 6978, 7, 6978, 62, 1462, 62, 30001, 4008, 1, 198, 220, 220, 220, 1441, 11241, 198, 437, 198, 198, 8818, 7881, 3419, 198, 220, 220, 220, 2488, 40539, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 15902, 11, 284, 779, 428, 7824, 345, 717, 761, 284, 7881, 428, 3335, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1675, 466, 523, 467, 284, 3740, 1378, 1820, 13, 2787, 45543, 13, 785, 14, 8443, 14, 41375, 290, 1265, 329, 257, 649, 2438, 0, 198, 220, 220, 220, 220, 220, 220, 220, 4874, 345, 423, 340, 1057, 4600, 30238, 7, 8189, 8, 63, 357, 3003, 4600, 8189, 63, 318, 257, 4600, 10100, 63, 737, 198, 220, 220, 220, 220, 220, 220, 220, 632, 481, 1441, 534, 8323, 2649, 11241, 290, 635, 3613, 534, 11241, 287, 257, 1957, 2393, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 437, 628, 198, 2235, 17230, 1895, 669, 198, 198, 37811, 198, 220, 220, 220, 1351, 62, 23814, 7, 16366, 3712, 8413, 45543, 11792, 8, 4613, 12251, 198, 198, 13615, 257, 4600, 36307, 63, 286, 477, 4600, 24941, 63, 82, 290, 4600, 36307, 63, 1944, 319, 262, 4382, 198, 1639, 460, 38350, 606, 16576, 2884, 4600, 4798, 62, 21048, 63, 198, 37811, 198, 8818, 1351, 62, 23814, 7, 16366, 3712, 8413, 45543, 11792, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 2488, 10951, 366, 8053, 278, 477, 3709, 1, 198, 220, 220, 220, 1767, 796, 14626, 13, 25927, 7, 16366, 11, 366, 18851, 1600, 46366, 11879, 62, 17614, 21737, 1635, 7283, 3620, 62, 45849, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 3709, 796, 19449, 13, 29572, 7, 10100, 7, 2618, 4008, 198, 220, 220, 220, 34165, 796, 3982, 45543, 10267, 21737, 198, 220, 220, 220, 329, 2378, 287, 3709, 198, 220, 220, 220, 220, 220, 220, 220, 2378, 796, 360, 713, 7, 13940, 23650, 7, 2539, 8, 14804, 8367, 329, 357, 2539, 11, 1988, 8, 287, 2378, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2378, 58, 25, 6030, 60, 6624, 366, 24941, 6030, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2205, 796, 16854, 7, 26, 9186, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 31628, 11, 2205, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 2378, 58, 25, 6030, 60, 6624, 366, 36307, 6030, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6367, 66, 796, 12251, 7, 26, 9186, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 31628, 11, 6367, 66, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2251, 62, 21048, 7, 31628, 8, 198, 437, 628, 198, 198, 37811, 198, 220, 220, 220, 651, 62, 9186, 7, 16366, 11, 4686, 3712, 10100, 11, 4321, 796, 3991, 8, 198, 220, 220, 220, 651, 62, 9186, 7, 16366, 11, 4686, 3712, 8413, 45543, 10267, 11, 4321, 796, 3991, 8, 198, 198, 13615, 257, 4600, 8413, 45543, 10267, 63, 1813, 281, 4522, 393, 281, 4683, 4600, 8413, 45543, 10267, 47671, 198, 3500, 4600, 15002, 28, 7942, 63, 481, 1577, 262, 4600, 3629, 672, 21886, 3855, 63, 284, 4321, 262, 3696, 198, 37811, 198, 8818, 651, 62, 9186, 7, 16366, 3712, 8413, 45543, 11792, 11, 4686, 3712, 10100, 11, 4321, 3712, 33, 970, 796, 3991, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 651, 62, 9186, 7, 16366, 11, 16854, 7, 2389, 796, 4686, 828, 4321, 26, 479, 86, 22046, 23029, 198, 437, 198, 198, 8818, 651, 62, 9186, 7, 16366, 3712, 8413, 45543, 11792, 11, 2205, 3712, 8413, 45543, 10267, 11, 4321, 3712, 33, 970, 796, 3991, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 12405, 796, 360, 713, 7203, 15390, 1, 5218, 2205, 13, 2389, 8, 198, 220, 220, 220, 611, 4321, 198, 220, 220, 220, 220, 220, 220, 220, 12405, 14692, 4480, 3629, 672, 8973, 796, 366, 7942, 1, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 10951, 366, 8053, 278, 2378, 1, 198, 220, 220, 220, 1767, 796, 14626, 13, 25927, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5456, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 18851, 1600, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46366, 11879, 62, 17614, 21737, 1635, 7283, 3620, 62, 45849, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12405, 796, 12405, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 86, 22046, 986, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 2378, 796, 19449, 13, 29572, 7, 10100, 7, 2618, 4008, 198, 220, 220, 220, 1441, 16854, 7, 11085, 7, 9186, 4008, 198, 437, 628, 198, 2235, 9097, 953, 811, 2024, 220, 198, 198, 37811, 198, 220, 220, 220, 12233, 62, 9186, 0, 7, 16366, 11, 4686, 3712, 10100, 8, 198, 220, 220, 220, 12233, 62, 9186, 0, 7, 16366, 11, 26181, 3712, 2787, 45543, 8, 198, 198, 38727, 262, 2134, 422, 534, 4947, 357, 25119, 8, 198, 37811, 198, 8818, 12233, 62, 9186, 0, 7, 16366, 3712, 8413, 45543, 11792, 11, 4686, 3712, 10100, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 12233, 62, 9186, 0, 7, 16366, 11, 16854, 7, 2389, 796, 4686, 1776, 479, 86, 22046, 23029, 198, 437, 198, 198, 8818, 12233, 62, 9186, 0, 7, 16366, 3712, 8413, 45543, 11792, 11, 26181, 3712, 8413, 45543, 10267, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 2488, 10951, 366, 5005, 293, 889, 2378, 4600, 3, 7, 7839, 7, 26801, 4008, 63, 1, 198, 220, 220, 220, 1441, 6143, 62, 25927, 7, 16366, 11, 366, 30076, 1600, 366, 33678, 1600, 26181, 62, 1462, 62, 11600, 7, 26801, 1776, 479, 86, 22046, 986, 1776, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 4296, 62, 38993, 0, 7, 16366, 11, 26181, 3712, 8413, 45543, 10267, 8, 4613, 220, 198, 198, 10260, 262, 20150, 286, 281, 2134, 11, 460, 307, 973, 284, 13096, 257, 2393, 393, 2251, 257, 220, 198, 36307, 198, 37811, 198, 8818, 4296, 62, 38993, 0, 7, 16366, 3712, 8413, 45543, 11792, 11, 26181, 3712, 8413, 45543, 10267, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 2488, 10951, 366, 4933, 38734, 2378, 20150, 4600, 3, 7, 7839, 7, 26801, 4008, 63, 1, 198, 220, 220, 220, 6143, 62, 25927, 7, 16366, 11, 366, 30076, 1600, 35717, 62, 35744, 2937, 11, 26181, 62, 1462, 62, 11600, 7, 26801, 1776, 479, 86, 22046, 23029, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 2251, 62, 43551, 0, 7, 16366, 11, 1438, 3712, 10100, 11, 2560, 3712, 10100, 2625, 4943, 4613, 198, 198, 16447, 257, 9483, 357, 36307, 8, 287, 4600, 8000, 63, 357, 15763, 416, 4277, 8, 198, 37811, 198, 8818, 2251, 62, 43551, 0, 7, 16366, 3712, 8413, 45543, 11792, 11, 1438, 3712, 10100, 11, 2560, 3712, 10100, 796, 366, 8172, 479, 86, 22046, 23029, 198, 220, 220, 220, 2378, 796, 12251, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16774, 796, 2560, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 569, 747, 856, 5376, 796, 1438, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 2488, 10951, 366, 32071, 9483, 720, 3672, 1, 198, 220, 220, 220, 581, 796, 4296, 62, 38993, 0, 7, 16366, 11, 2378, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 1441, 12251, 7, 411, 8, 198, 437, 198, 198, 2235, 10472, 3696, 628, 198, 37811, 198, 220, 220, 220, 4321, 62, 22897, 7, 16366, 11, 4686, 3712, 10100, 11, 685, 6978, 62, 16793, 3712, 10100, 12962, 4613, 38636, 8979, 12290, 198, 220, 220, 220, 4321, 62, 22897, 7, 16366, 11, 2205, 3712, 24941, 11, 685, 6978, 62, 16793, 3712, 10100, 12962, 4613, 38636, 7753, 12290, 198, 198, 10002, 257, 3188, 2134, 351, 1813, 4686, 14, 15390, 13, 198, 464, 3188, 318, 1464, 1813, 355, 257, 4600, 41729, 8979, 63, 290, 460, 307, 7448, 2884, 4600, 13564, 7, 7753, 6978, 11, 1767, 8, 63, 198, 361, 4600, 6978, 62, 16793, 63, 318, 1813, 11, 262, 19974, 2393, 318, 6338, 3194, 290, 3706, 13, 198, 37811, 198, 8818, 7308, 13, 15002, 7, 16366, 3712, 8413, 45543, 11792, 11, 4686, 3712, 10100, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 4321, 7, 16366, 11, 16854, 7, 2389, 28, 4686, 1776, 479, 86, 22046, 23029, 198, 437, 198, 198, 8818, 7308, 13, 15002, 7, 16366, 3712, 8413, 45543, 11792, 11, 2205, 3712, 24941, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 2205, 796, 651, 62, 9186, 7, 16366, 11, 2205, 13, 2389, 11, 2081, 8, 198, 220, 220, 220, 2488, 10951, 366, 10002, 278, 1366, 1, 220, 220, 220, 220, 198, 220, 220, 220, 1441, 14626, 13, 25927, 7, 16366, 11, 366, 18851, 1600, 2205, 13, 3629, 672, 21886, 3855, 26, 479, 86, 22046, 23029, 198, 437, 198, 198, 8818, 7308, 13, 15002, 7, 16366, 3712, 8413, 45543, 11792, 11, 4686, 3712, 10100, 11, 3108, 62, 16793, 3712, 10100, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 4321, 62, 22897, 7, 16366, 11, 16854, 7, 2389, 28, 312, 828, 3108, 62, 16793, 26, 479, 86, 22046, 23029, 198, 437, 198, 198, 8818, 7308, 13, 15002, 7, 16366, 3712, 8413, 45543, 11792, 11, 2205, 3712, 24941, 11, 3108, 62, 16793, 3712, 10100, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 2393, 62, 3672, 796, 318, 28920, 7, 7839, 7, 15390, 4008, 5633, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2205, 13, 2389, 1058, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 8802, 7568, 7, 15390, 8, 5633, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 7, 15390, 38381, 16, 25, 437, 12, 19, 60, 1058, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 7, 15390, 4008, 198, 220, 220, 220, 2393, 62, 6978, 796, 4654, 6978, 7, 6978, 62, 16793, 11, 2393, 62, 3672, 1635, 27071, 13344, 4943, 198, 220, 220, 220, 1767, 796, 4321, 7, 16366, 11, 2205, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 3551, 7, 7753, 62, 6978, 11, 1767, 8, 198, 220, 220, 220, 2488, 10951, 366, 8979, 15680, 379, 29568, 7753, 62, 6978, 16725, 198, 220, 220, 220, 1441, 2393, 62, 6978, 198, 437, 198, 198, 8818, 4321, 62, 12315, 7, 16366, 3712, 8413, 45543, 11792, 11, 2205, 3712, 24941, 11, 3108, 62, 16793, 3712, 10100, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 2393, 62, 6978, 796, 4321, 7, 16366, 11, 2205, 11, 3108, 62, 16793, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 2393, 62, 3672, 796, 318, 28920, 7, 7839, 7, 15390, 4008, 5633, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2205, 13, 2389, 1058, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 8802, 7568, 7, 15390, 8, 5633, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 7, 15390, 38381, 16, 25, 437, 12, 19, 60, 1058, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 7, 15390, 4008, 198, 220, 220, 220, 1976, 796, 38636, 8979, 13, 33634, 7, 7753, 62, 6978, 8, 198, 220, 220, 220, 329, 277, 287, 1976, 13, 16624, 198, 220, 220, 220, 220, 220, 220, 220, 611, 886, 2032, 342, 7, 69, 11, 27071, 12315, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3551, 7, 22179, 6978, 7, 6978, 62, 16793, 11, 2393, 62, 3672, 1635, 27071, 12315, 12340, 277, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 10951, 366, 11627, 20216, 29568, 7753, 62, 3672, 737, 12315, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 4654, 6978, 7, 6978, 62, 16793, 11, 2393, 62, 3672, 1635, 27071, 12315, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 2235, 36803, 3696, 628, 198, 198, 37811, 198, 220, 220, 220, 2251, 62, 25850, 62, 25927, 7, 16366, 11, 2205, 3712, 24941, 28, 24941, 28955, 4613, 16854, 198, 198, 16447, 257, 2581, 284, 9516, 257, 3188, 351, 257, 1813, 4686, 13, 198, 37811, 198, 8818, 2251, 62, 25850, 62, 25927, 7, 16366, 3712, 8413, 45543, 11792, 11, 2205, 3712, 24941, 28, 24941, 9783, 479, 86, 22046, 23029, 198, 220, 220, 220, 2488, 10951, 366, 32071, 9516, 2581, 1, 198, 220, 220, 220, 1366, 796, 6143, 62, 25927, 7, 16366, 11, 366, 30076, 1600, 366, 25850, 14, 25927, 1600, 26181, 62, 1462, 62, 11600, 7, 15390, 1776, 479, 86, 22046, 23029, 198, 220, 220, 220, 611, 318, 28920, 7, 7890, 14692, 3629, 672, 21886, 11588, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 37, 6255, 284, 651, 10289, 329, 9516, 4943, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 16854, 7, 15390, 26, 1086, 672, 21886, 11588, 796, 1366, 14692, 3629, 672, 21886, 11588, 8973, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 9516, 62, 22897, 0, 7, 16366, 11, 26181, 3712, 8413, 45543, 10267, 11, 19974, 8, 4613, 3982, 45543, 10267, 198, 198, 41592, 4600, 13344, 63, 2393, 357, 50039, 19974, 2393, 8, 351, 20150, 422, 26181, 198, 37811, 198, 8818, 9516, 62, 22897, 0, 7, 16366, 3712, 8413, 45543, 11792, 11, 26181, 3712, 8413, 45543, 10267, 11, 19974, 7753, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 26181, 796, 2251, 62, 25850, 62, 25927, 7, 16366, 11, 26181, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 2488, 10951, 366, 41592, 278, 1366, 1, 198, 220, 220, 220, 1767, 796, 14626, 13, 25927, 7, 16366, 11, 366, 30076, 1600, 26181, 13, 3629, 672, 21886, 11588, 11, 360, 713, 22784, 19974, 7753, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 2378, 796, 4296, 62, 38993, 0, 7, 16366, 11, 26181, 8, 198, 220, 220, 220, 1441, 2378, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 9516, 62, 12315, 0, 7, 16366, 11, 37124, 62, 6978, 3712, 10100, 11, 37124, 62, 3672, 3712, 10100, 796, 1615, 12453, 7, 12315, 62, 6978, 828, 2560, 8, 198, 198, 16447, 257, 3188, 329, 262, 1813, 37124, 290, 9516, 340, 13, 198, 37811, 198, 8818, 9516, 62, 12315, 0, 7, 16366, 3712, 8413, 45543, 11792, 11, 37124, 62, 6978, 3712, 10100, 11, 37124, 62, 3672, 3712, 10100, 796, 1615, 12453, 7, 12315, 62, 6978, 828, 2560, 3712, 10100, 796, 366, 8172, 479, 86, 22046, 23029, 198, 220, 220, 220, 9516, 62, 12315, 0, 7, 16366, 11, 1100, 7, 12315, 62, 6978, 828, 37124, 62, 3672, 11, 2560, 26, 479, 86, 22046, 23029, 198, 437, 198, 198, 8818, 9516, 62, 12315, 0, 7, 16366, 3712, 8413, 45543, 11792, 11, 37124, 11, 37124, 3672, 3712, 10100, 11, 2560, 3712, 10100, 2625, 8172, 479, 86, 22046, 23029, 198, 220, 220, 220, 2205, 796, 16854, 7, 198, 220, 220, 220, 220, 220, 220, 220, 16774, 796, 2560, 11, 198, 220, 220, 220, 220, 220, 220, 220, 569, 747, 856, 5376, 796, 37124, 3672, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 22492, 13610, 262, 42977, 2393, 994, 351, 38636, 8979, 198, 220, 220, 220, 45218, 15908, 796, 33480, 29510, 15908, 3419, 198, 220, 220, 220, 45218, 7753, 796, 4654, 6978, 7, 22065, 15908, 11, 2205, 13, 2389, 1635, 27071, 13344, 4943, 198, 220, 220, 220, 19974, 796, 38636, 8979, 13, 34379, 7, 22065, 7753, 8, 628, 220, 220, 220, 279, 67, 487, 576, 796, 38636, 8979, 13, 2860, 7753, 7, 13344, 11, 2205, 13, 2389, 1635, 27071, 12315, 4943, 198, 220, 220, 220, 3551, 7, 30094, 487, 576, 11, 37124, 8, 628, 220, 220, 220, 279, 1886, 1045, 796, 38636, 8979, 13, 2860, 7753, 7, 13344, 11, 2205, 13, 2389, 1635, 27071, 79, 1886, 1045, 4943, 198, 220, 220, 220, 3551, 7, 79, 1886, 1045, 11, 366, 4943, 628, 220, 220, 220, 2695, 796, 38636, 8979, 13, 2860, 7753, 7, 13344, 11, 2205, 13, 2389, 1635, 27071, 11299, 4943, 198, 220, 220, 220, 33918, 62, 11299, 796, 360, 713, 7, 198, 220, 220, 220, 220, 220, 220, 220, 366, 26086, 48526, 6601, 1, 5218, 360, 713, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 366, 7753, 6030, 1, 5218, 366, 12315, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 12957, 18257, 2945, 9876, 1, 5218, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 1370, 23106, 1, 5218, 532, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 30887, 1040, 1, 5218, 1802, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 7700, 12332, 1, 5218, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 5239, 29990, 1, 5218, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 35636, 1, 5218, 360, 713, 3419, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 3551, 7, 11299, 11, 19449, 13, 17752, 7, 17752, 62, 11299, 4008, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1969, 7, 13344, 8, 198, 220, 220, 220, 1303, 19974, 796, 38636, 8979, 13, 33634, 7, 22065, 7753, 8, 198, 220, 220, 220, 2488, 10951, 366, 41729, 2393, 13413, 7448, 379, 29568, 22065, 7753, 21387, 198, 220, 220, 220, 9516, 62, 22897, 0, 7, 16366, 11, 2205, 11, 1100, 7, 22179, 6978, 7, 22065, 7753, 18125, 479, 86, 22046, 23029, 198, 437, 198 ]
2.514815
3,510
using MonteCarloMeasurements: Particles function test_namedtuple_data( idata, group, names, nchains, ndraws; library = "MyLib", coords = Dict(), dims = Dict(), ) @test idata isa InferenceData @test group in ArviZ.groupnames(idata) ds = getproperty(idata, group) sizes = dimsizes(ds) @test length(sizes) == 2 + length(coords) vars = vardict(ds) for name in string.(names) @test name in keys(vars) dim = get(dims, name, []) s = (x -> length(get(coords, x, []))).(dim) @test size(vars[name]) == (nchains, ndraws, s...) end @test "inference_library" in keys(attributes(ds)) @test attributes(ds)["inference_library"] == library return nothing end @testset "from_namedtuple" begin rng = MersenneTwister(42) nchains, ndraws = 4, 10 sizes = (x = (), y = (2,), z = (3, 4)) dims = Dict("y" => ["yx"], "z" => ["zx", "zy"]) coords = Dict("yx" => ["y1", "y2"], "zx" => 1:3, "zy" => 1:4) nts = [ "NamedTuple" => (; (k => randn(rng, nchains, ndraws, v...) for (k, v) in pairs(sizes))...), "Vector{NamedTuple}" => [ (; (k => randn(rng, ndraws, v...) for (k, v) in pairs(sizes))...) for _ in 1:nchains ], "Matrix{NamedTuple}" => [ (; (k => randn(rng, v...) for (k, v) in pairs(sizes))...) for _ in 1:nchains, _ in 1:ndraws ], "Vector{Vector{NamedTuple}}" => [ [(; (k => randn(rng, v...) for (k, v) in pairs(sizes))...) for _ in 1:ndraws] for _ in 1:nchains ], "Vector{NamedTuple} particles" => [ (; (k => Particles(randn(rng, ndraws, v...)) for (k, v) in pairs(sizes))...) for _ in 1:nchains ], ] @testset "posterior::$(type)" for (type, nt) in nts idata1 = from_namedtuple(nt; dims = dims, coords = coords, library = "MyLib") test_namedtuple_data( idata1, :posterior, keys(sizes), nchains, ndraws; library = "MyLib", coords = coords, dims = dims, ) idata2 = convert_to_inference_data(nt; dims = dims, coords = coords, library = "MyLib") test_namedtuple_data( idata2, :posterior, keys(sizes), nchains, ndraws; library = "MyLib", coords = coords, dims = dims, ) end @testset "$(group)" for group in [ :posterior_predictive, :sample_stats, :predictions, :log_likelihood, ] @testset "::$(type)" for (type, nt) in nts idata1 = convert_to_inference_data( nt; (group => nt,)..., dims = dims, coords = coords, library = "MyLib", ) test_namedtuple_data( idata1, :posterior, keys(sizes), nchains, ndraws; library = "MyLib", coords = coords, dims = dims, ) test_namedtuple_data( idata1, group, keys(sizes), nchains, ndraws; library = "MyLib", coords = coords, dims = dims, ) idata2 = convert_to_inference_data( nt; (group => keys(sizes),)..., dims = dims, coords = coords, library = "MyLib", ) test_namedtuple_data( idata2, group, keys(sizes), nchains, ndraws; library = "MyLib", coords = coords, dims = dims, ) end end @testset "$(group)" for group in [:prior_predictive, :sample_stats_prior] @testset "::$(type)" for (type, nt) in nts idata1 = from_namedtuple(; prior = nt, (group => nt,)..., dims = dims, coords = coords, library = "MyLib", ) test_namedtuple_data( idata1, :prior, keys(sizes), nchains, ndraws; library = "MyLib", coords = coords, dims = dims, ) test_namedtuple_data( idata1, group, keys(sizes), nchains, ndraws; library = "MyLib", coords = coords, dims = dims, ) idata2 = from_namedtuple(; prior = nt, (group => keys(sizes),)..., dims = dims, coords = coords, library = "MyLib", ) test_namedtuple_data( idata2, group, keys(sizes), nchains, ndraws; library = "MyLib", coords = coords, dims = dims, ) end end @testset "$(group)" for group in [:observed_data, :constant_data, :predictions_constant_data] _, nt = nts[1] idata = from_namedtuple( nt; (group => Dict("w" => [1.0, 2.0]),)..., dims = Dict("w" => ["wx"]), coords = Dict("wx" => 1:2), library = "MyLib", ) @test idata isa InferenceData @test group in ArviZ.groupnames(idata) ds = getproperty(idata, group) sizes = dimsizes(ds) @test length(sizes) == 1 @test "w" in keys(vardict(ds)) @test "inference_library" in keys(attributes(ds)) @test attributes(ds)["inference_library"] == "MyLib" end end
[ 3500, 22489, 9914, 5439, 47384, 902, 25, 2142, 2983, 198, 198, 8818, 1332, 62, 13190, 83, 29291, 62, 7890, 7, 198, 220, 220, 220, 4686, 1045, 11, 198, 220, 220, 220, 1448, 11, 198, 220, 220, 220, 3891, 11, 198, 220, 220, 220, 299, 38861, 11, 198, 220, 220, 220, 299, 19334, 82, 26, 198, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 763, 3669, 796, 360, 713, 22784, 198, 220, 220, 220, 5391, 82, 796, 360, 713, 22784, 198, 8, 198, 220, 220, 220, 2488, 9288, 4686, 1045, 318, 64, 554, 4288, 6601, 198, 220, 220, 220, 2488, 9288, 1448, 287, 943, 8903, 57, 13, 8094, 14933, 7, 312, 1045, 8, 198, 220, 220, 220, 288, 82, 796, 651, 26745, 7, 312, 1045, 11, 1448, 8, 198, 220, 220, 220, 10620, 796, 5391, 82, 4340, 7, 9310, 8, 198, 220, 220, 220, 2488, 9288, 4129, 7, 82, 4340, 8, 6624, 362, 1343, 4129, 7, 1073, 3669, 8, 198, 220, 220, 220, 410, 945, 796, 410, 446, 713, 7, 9310, 8, 198, 220, 220, 220, 329, 1438, 287, 4731, 12195, 14933, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1438, 287, 8251, 7, 85, 945, 8, 198, 220, 220, 220, 220, 220, 220, 220, 5391, 796, 651, 7, 67, 12078, 11, 1438, 11, 685, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 264, 796, 357, 87, 4613, 4129, 7, 1136, 7, 1073, 3669, 11, 2124, 11, 17635, 4008, 737, 7, 27740, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2546, 7, 85, 945, 58, 3672, 12962, 6624, 357, 77, 38861, 11, 299, 19334, 82, 11, 264, 23029, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 366, 259, 4288, 62, 32016, 1, 287, 8251, 7, 1078, 7657, 7, 9310, 4008, 198, 220, 220, 220, 2488, 9288, 12608, 7, 9310, 8, 14692, 259, 4288, 62, 32016, 8973, 6624, 5888, 198, 220, 220, 220, 1441, 2147, 198, 437, 198, 198, 31, 9288, 2617, 366, 6738, 62, 13190, 83, 29291, 1, 2221, 198, 220, 220, 220, 374, 782, 796, 337, 364, 29727, 5080, 1694, 7, 3682, 8, 628, 220, 220, 220, 299, 38861, 11, 299, 19334, 82, 796, 604, 11, 838, 198, 220, 220, 220, 10620, 796, 357, 87, 796, 29994, 331, 796, 357, 17, 11, 828, 1976, 796, 357, 18, 11, 604, 4008, 198, 220, 220, 220, 5391, 82, 796, 360, 713, 7203, 88, 1, 5218, 14631, 28391, 33116, 366, 89, 1, 5218, 14631, 42592, 1600, 366, 7357, 8973, 8, 198, 220, 220, 220, 763, 3669, 796, 360, 713, 7203, 28391, 1, 5218, 14631, 88, 16, 1600, 366, 88, 17, 33116, 366, 42592, 1, 5218, 352, 25, 18, 11, 366, 7357, 1, 5218, 352, 25, 19, 8, 628, 220, 220, 220, 299, 912, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 366, 45, 2434, 51, 29291, 1, 5218, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 26, 357, 74, 5218, 43720, 77, 7, 81, 782, 11, 299, 38861, 11, 299, 19334, 82, 11, 410, 23029, 329, 357, 74, 11, 410, 8, 287, 14729, 7, 82, 4340, 4008, 986, 828, 198, 220, 220, 220, 220, 220, 220, 220, 366, 38469, 90, 45, 2434, 51, 29291, 36786, 5218, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 26, 357, 74, 5218, 43720, 77, 7, 81, 782, 11, 299, 19334, 82, 11, 410, 23029, 329, 357, 74, 11, 410, 8, 287, 14729, 7, 82, 4340, 4008, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 352, 25, 77, 38861, 198, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 220, 220, 220, 220, 366, 46912, 90, 45, 2434, 51, 29291, 36786, 5218, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 26, 357, 74, 5218, 43720, 77, 7, 81, 782, 11, 410, 23029, 329, 357, 74, 11, 410, 8, 287, 14729, 7, 82, 4340, 4008, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 352, 25, 77, 38861, 11, 4808, 287, 352, 25, 358, 1831, 82, 198, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 220, 220, 220, 220, 366, 38469, 90, 38469, 90, 45, 2434, 51, 29291, 11709, 1, 5218, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47527, 26, 357, 74, 5218, 43720, 77, 7, 81, 782, 11, 410, 23029, 329, 357, 74, 11, 410, 8, 287, 14729, 7, 82, 4340, 4008, 23029, 329, 4808, 287, 352, 25, 358, 1831, 82, 60, 329, 4808, 287, 352, 25, 77, 38861, 198, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 220, 220, 220, 220, 366, 38469, 90, 45, 2434, 51, 29291, 92, 13166, 1, 5218, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 26, 357, 74, 5218, 2142, 2983, 7, 25192, 77, 7, 81, 782, 11, 299, 19334, 82, 11, 410, 986, 4008, 329, 357, 74, 11, 410, 8, 287, 14729, 7, 82, 4340, 4008, 23029, 329, 4808, 287, 352, 25, 77, 38861, 198, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 2361, 628, 220, 220, 220, 2488, 9288, 2617, 366, 79, 6197, 1504, 3712, 3, 7, 4906, 16725, 329, 357, 4906, 11, 299, 83, 8, 287, 299, 912, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 16, 796, 422, 62, 13190, 83, 29291, 7, 429, 26, 5391, 82, 796, 5391, 82, 11, 763, 3669, 796, 763, 3669, 11, 5888, 796, 366, 3666, 25835, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 13190, 83, 29291, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 79, 6197, 1504, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8251, 7, 82, 4340, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 38861, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 19334, 82, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 17, 796, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10385, 62, 1462, 62, 259, 4288, 62, 7890, 7, 429, 26, 5391, 82, 796, 5391, 82, 11, 763, 3669, 796, 763, 3669, 11, 5888, 796, 366, 3666, 25835, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 13190, 83, 29291, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 79, 6197, 1504, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8251, 7, 82, 4340, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 38861, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 19334, 82, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 17971, 7, 8094, 16725, 329, 1448, 287, 685, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 79, 6197, 1504, 62, 79, 17407, 425, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 39873, 62, 34242, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 28764, 9278, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 6404, 62, 2339, 11935, 11, 198, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 366, 3712, 3, 7, 4906, 16725, 329, 357, 4906, 11, 299, 83, 8, 287, 299, 912, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 16, 796, 10385, 62, 1462, 62, 259, 4288, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 83, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 8094, 5218, 299, 83, 11, 26513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 13190, 83, 29291, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 79, 6197, 1504, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8251, 7, 82, 4340, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 38861, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 19334, 82, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 13190, 83, 29291, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1448, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8251, 7, 82, 4340, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 38861, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 19334, 82, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 17, 796, 10385, 62, 1462, 62, 259, 4288, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 83, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 8094, 5218, 8251, 7, 82, 4340, 828, 26513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 13190, 83, 29291, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1448, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8251, 7, 82, 4340, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 38861, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 19334, 82, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 17971, 7, 8094, 16725, 329, 1448, 287, 685, 25, 3448, 273, 62, 79, 17407, 425, 11, 1058, 39873, 62, 34242, 62, 3448, 273, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 366, 3712, 3, 7, 4906, 16725, 329, 357, 4906, 11, 299, 83, 8, 287, 299, 912, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 16, 796, 422, 62, 13190, 83, 29291, 7, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3161, 796, 299, 83, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 8094, 5218, 299, 83, 11, 26513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 13190, 83, 29291, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 3448, 273, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8251, 7, 82, 4340, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 38861, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 19334, 82, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 13190, 83, 29291, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1448, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8251, 7, 82, 4340, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 38861, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 19334, 82, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 17, 796, 422, 62, 13190, 83, 29291, 7, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3161, 796, 299, 83, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 8094, 5218, 8251, 7, 82, 4340, 828, 26513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 13190, 83, 29291, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1448, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8251, 7, 82, 4340, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 38861, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 19334, 82, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 763, 3669, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 5391, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 17971, 7, 8094, 16725, 329, 1448, 287, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 25, 672, 45852, 62, 7890, 11, 1058, 9979, 415, 62, 7890, 11, 1058, 28764, 9278, 62, 9979, 415, 62, 7890, 60, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 11, 299, 83, 796, 299, 912, 58, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 1045, 796, 422, 62, 13190, 83, 29291, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 83, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 8094, 5218, 360, 713, 7203, 86, 1, 5218, 685, 16, 13, 15, 11, 362, 13, 15, 46570, 26513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5391, 82, 796, 360, 713, 7203, 86, 1, 5218, 14631, 49345, 8973, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 360, 713, 7203, 49345, 1, 5218, 352, 25, 17, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5888, 796, 366, 3666, 25835, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4686, 1045, 318, 64, 554, 4288, 6601, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1448, 287, 943, 8903, 57, 13, 8094, 14933, 7, 312, 1045, 8, 198, 220, 220, 220, 220, 220, 220, 220, 288, 82, 796, 651, 26745, 7, 312, 1045, 11, 1448, 8, 198, 220, 220, 220, 220, 220, 220, 220, 10620, 796, 5391, 82, 4340, 7, 9310, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4129, 7, 82, 4340, 8, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 366, 86, 1, 287, 8251, 7, 10187, 713, 7, 9310, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 366, 259, 4288, 62, 32016, 1, 287, 8251, 7, 1078, 7657, 7, 9310, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 12608, 7, 9310, 8, 14692, 259, 4288, 62, 32016, 8973, 6624, 366, 3666, 25835, 1, 198, 220, 220, 220, 886, 198, 437, 198 ]
1.657702
3,681
<filename>21/21.jl<gh_stars>1-10 using Base.Iterators using DataStructures using ArgParse function readInput(filename::String) regex = r"Player (\d+) starting position: (\d+)" player1, value1 = -1, -1 player2, value2 = -1, -1 open(filename) do file for line in readlines(file) m = match(regex, line) if m[1] == "1" player1, value1 = parse.(Int, (m[1], m[2])) else player2, value2 = parse.(Int, (m[1], m[2])) end end end return (player1, value1), (player2, value2) end function playGame(p1, p2; winning_score::Int = 1000) roll_dice(offset::Int) = sum(((offset:offset+2) .- 1) .% 100 .+ 1) p1, p2 = p1 - 1, p2 - 1 s1, s2, dice_i = 0, 0, 0 for i in countfrom(1) if i % 2 == 1 p1 = (p1 + roll_dice(dice_i + 1)) % 10 s1 += p1 + 1 s1 >= winning_score && return i * s2 *3 else p2 = (p2 + roll_dice(dice_i + 1)) % 10 s2 += p2 + 1 s2 >= winning_score && return i * s1 * 3 end dice_i = (dice_i + 3) % 100 end end function dirac_game(p1, p2; winning_score::Int=21) s1, p1 = 0, p1 - 1 s2, p2 = 0, p2 - 1 wins = [0, 0] three_dice = vec(sum.(collect(product(1:3, 1:3, 1:3)))) prev_step = Dict{Tuple{Int, Int, Int, Int}, Int}((p1, s1, p2, s2) => 1) turn = true while length(prev_step) != 0 next_step = DefaultDict{Tuple{Int, Int, Int, Int}, Int}(0) for k in keys(prev_step) v = prev_step[k] p1, s1, p2, s2 = k for dice in three_dice if turn s1_ = s1 + (p1 + dice) % 10 + 1 if s1_ >= winning_score wins[1] += v else p1_ = (p1 + dice) % 10 next_step[(p1_, s1_, p2, s2)] += v end else s2_ = s2 + (p2 + dice) % 10 + 1 if s2_ >= winning_score wins[2] += v else p2_ = (p2 + dice) % 10 next_step[(p1, s1, p2_, s2_)] += v end end end end turn = !turn prev_step = next_step end return maximum(wins) end function parse_cli() s = ArgParseSettings() @add_arg_table s begin "--example" help = "Calculate example" action = :store_true end return parse_args(s) end args = parse_cli(); if args["example"] (_, p1), (_, p2) = readInput("example.txt") score = playGame(p1, p2) @assert score == 739785 w = dirac_game(p1, p2) @assert w == 444356092776315 end (_, p1), (_, p2) = readInput("input.txt") score = playGame(p1, p2) w = dirac_game(p1, p2) println(score) println(w)
[ 27, 34345, 29, 2481, 14, 2481, 13, 20362, 27, 456, 62, 30783, 29, 16, 12, 940, 198, 3500, 7308, 13, 29993, 2024, 198, 3500, 6060, 44909, 942, 198, 3500, 20559, 10044, 325, 198, 198, 8818, 1100, 20560, 7, 34345, 3712, 10100, 8, 198, 220, 220, 220, 40364, 796, 374, 1, 14140, 357, 59, 67, 28988, 3599, 2292, 25, 357, 59, 67, 10, 16725, 198, 220, 220, 220, 2137, 16, 11, 1988, 16, 796, 532, 16, 11, 532, 16, 198, 220, 220, 220, 2137, 17, 11, 1988, 17, 796, 532, 16, 11, 532, 16, 628, 220, 220, 220, 1280, 7, 34345, 8, 466, 2393, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1627, 287, 1100, 6615, 7, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 796, 2872, 7, 260, 25636, 11, 1627, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 285, 58, 16, 60, 6624, 366, 16, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2137, 16, 11, 1988, 16, 796, 21136, 12195, 5317, 11, 357, 76, 58, 16, 4357, 285, 58, 17, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2137, 17, 11, 1988, 17, 796, 21136, 12195, 5317, 11, 357, 76, 58, 16, 4357, 285, 58, 17, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 357, 7829, 16, 11, 1988, 16, 828, 357, 7829, 17, 11, 1988, 17, 8, 198, 437, 198, 198, 8818, 711, 8777, 7, 79, 16, 11, 279, 17, 26, 5442, 62, 26675, 3712, 5317, 796, 8576, 8, 198, 220, 220, 220, 4836, 62, 67, 501, 7, 28968, 3712, 5317, 8, 796, 2160, 19510, 7, 28968, 25, 28968, 10, 17, 8, 764, 12, 352, 8, 764, 4, 1802, 764, 10, 352, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 279, 16, 11, 279, 17, 796, 279, 16, 532, 352, 11, 279, 17, 532, 352, 198, 220, 220, 220, 264, 16, 11, 264, 17, 11, 17963, 62, 72, 796, 657, 11, 657, 11, 657, 198, 220, 220, 220, 329, 1312, 287, 954, 6738, 7, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 4064, 362, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 16, 796, 357, 79, 16, 1343, 4836, 62, 67, 501, 7, 67, 501, 62, 72, 1343, 352, 4008, 4064, 838, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 16, 15853, 279, 16, 1343, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 16, 18189, 5442, 62, 26675, 11405, 1441, 1312, 1635, 264, 17, 1635, 18, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 17, 796, 357, 79, 17, 1343, 4836, 62, 67, 501, 7, 67, 501, 62, 72, 1343, 352, 4008, 4064, 838, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 17, 15853, 279, 17, 1343, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 17, 18189, 5442, 62, 26675, 11405, 1441, 1312, 1635, 264, 16, 1635, 513, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 17963, 62, 72, 796, 357, 67, 501, 62, 72, 1343, 513, 8, 4064, 1802, 198, 220, 220, 220, 886, 198, 437, 628, 198, 8818, 26672, 330, 62, 6057, 7, 79, 16, 11, 279, 17, 26, 5442, 62, 26675, 3712, 5317, 28, 2481, 8, 198, 220, 220, 220, 264, 16, 11, 279, 16, 796, 657, 11, 279, 16, 532, 352, 198, 220, 220, 220, 264, 17, 11, 279, 17, 796, 657, 11, 279, 17, 532, 352, 198, 220, 220, 220, 7864, 796, 685, 15, 11, 657, 60, 628, 220, 220, 220, 1115, 62, 67, 501, 796, 43030, 7, 16345, 12195, 33327, 7, 11167, 7, 16, 25, 18, 11, 352, 25, 18, 11, 352, 25, 18, 35514, 198, 220, 220, 220, 220, 198, 220, 220, 220, 8654, 62, 9662, 796, 360, 713, 90, 51, 29291, 90, 5317, 11, 2558, 11, 2558, 11, 2558, 5512, 2558, 92, 19510, 79, 16, 11, 264, 16, 11, 279, 17, 11, 264, 17, 8, 5218, 352, 8, 198, 220, 220, 220, 1210, 796, 2081, 198, 220, 220, 220, 981, 4129, 7, 47050, 62, 9662, 8, 14512, 657, 198, 220, 220, 220, 220, 220, 220, 220, 1306, 62, 9662, 796, 15161, 35, 713, 90, 51, 29291, 90, 5317, 11, 2558, 11, 2558, 11, 2558, 5512, 2558, 92, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 479, 287, 8251, 7, 47050, 62, 9662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 796, 8654, 62, 9662, 58, 74, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 16, 11, 264, 16, 11, 279, 17, 11, 264, 17, 796, 479, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 17963, 287, 1115, 62, 67, 501, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1210, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 16, 62, 796, 264, 16, 1343, 357, 79, 16, 1343, 17963, 8, 4064, 838, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 264, 16, 62, 18189, 5442, 62, 26675, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7864, 58, 16, 60, 15853, 410, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 16, 62, 796, 357, 79, 16, 1343, 17963, 8, 4064, 838, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1306, 62, 9662, 58, 7, 79, 16, 62, 11, 264, 16, 62, 11, 279, 17, 11, 264, 17, 15437, 15853, 410, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 17, 62, 796, 264, 17, 1343, 357, 79, 17, 1343, 17963, 8, 4064, 838, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 264, 17, 62, 18189, 5442, 62, 26675, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7864, 58, 17, 60, 15853, 410, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 17, 62, 796, 357, 79, 17, 1343, 17963, 8, 4064, 838, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1306, 62, 9662, 58, 7, 79, 16, 11, 264, 16, 11, 279, 17, 62, 11, 264, 17, 62, 15437, 15853, 410, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1210, 796, 5145, 15344, 198, 220, 220, 220, 220, 220, 220, 220, 8654, 62, 9662, 796, 1306, 62, 9662, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 5415, 7, 86, 1040, 8, 198, 437, 198, 198, 8818, 21136, 62, 44506, 3419, 198, 220, 220, 220, 264, 796, 20559, 10044, 325, 26232, 3419, 198, 220, 220, 220, 2488, 2860, 62, 853, 62, 11487, 264, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 366, 438, 20688, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 796, 366, 9771, 3129, 378, 1672, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2223, 796, 1058, 8095, 62, 7942, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 21136, 62, 22046, 7, 82, 8, 198, 437, 198, 198, 22046, 796, 21136, 62, 44506, 9783, 198, 361, 26498, 14692, 20688, 8973, 198, 220, 220, 220, 44104, 11, 279, 16, 828, 44104, 11, 279, 17, 8, 796, 1100, 20560, 7203, 20688, 13, 14116, 4943, 198, 220, 220, 220, 220, 198, 220, 220, 220, 4776, 796, 711, 8777, 7, 79, 16, 11, 279, 17, 8, 198, 220, 220, 220, 2488, 30493, 4776, 6624, 767, 2670, 41172, 628, 220, 220, 220, 266, 796, 26672, 330, 62, 6057, 7, 79, 16, 11, 279, 17, 8, 198, 220, 220, 220, 2488, 30493, 266, 6624, 45095, 2327, 31751, 1983, 4304, 27936, 198, 437, 198, 198, 28264, 11, 279, 16, 828, 44104, 11, 279, 17, 8, 796, 1100, 20560, 7203, 15414, 13, 14116, 4943, 198, 26675, 796, 711, 8777, 7, 79, 16, 11, 279, 17, 8, 198, 86, 796, 26672, 330, 62, 6057, 7, 79, 16, 11, 279, 17, 8, 198, 198, 35235, 7, 26675, 8, 198, 35235, 7, 86, 8 ]
1.737801
1,701
# This file was generated by the Julia Swagger Code Generator # Do not modify this file directly. Modify the swagger specification instead. @doc raw"""CrossVersionObjectReference contains enough information to let you identify the referred resource. IoK8sApiAutoscalingV2beta1CrossVersionObjectReference(; apiVersion=nothing, kind=nothing, name=nothing, ) - apiVersion::String : API version of the referent - kind::String : Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\&quot; - name::String : Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names """ mutable struct IoK8sApiAutoscalingV2beta1CrossVersionObjectReference <: SwaggerModel apiVersion::Any # spec type: Union{ Nothing, String } # spec name: apiVersion kind::Any # spec type: Union{ Nothing, String } # spec name: kind name::Any # spec type: Union{ Nothing, String } # spec name: name function IoK8sApiAutoscalingV2beta1CrossVersionObjectReference(;apiVersion=nothing, kind=nothing, name=nothing) o = new() validate_property(IoK8sApiAutoscalingV2beta1CrossVersionObjectReference, Symbol("apiVersion"), apiVersion) setfield!(o, Symbol("apiVersion"), apiVersion) validate_property(IoK8sApiAutoscalingV2beta1CrossVersionObjectReference, Symbol("kind"), kind) setfield!(o, Symbol("kind"), kind) validate_property(IoK8sApiAutoscalingV2beta1CrossVersionObjectReference, Symbol("name"), name) setfield!(o, Symbol("name"), name) o end end # type IoK8sApiAutoscalingV2beta1CrossVersionObjectReference const _property_map_IoK8sApiAutoscalingV2beta1CrossVersionObjectReference = Dict{Symbol,Symbol}(Symbol("apiVersion")=>Symbol("apiVersion"), Symbol("kind")=>Symbol("kind"), Symbol("name")=>Symbol("name")) const _property_types_IoK8sApiAutoscalingV2beta1CrossVersionObjectReference = Dict{Symbol,String}(Symbol("apiVersion")=>"String", Symbol("kind")=>"String", Symbol("name")=>"String") Base.propertynames(::Type{ IoK8sApiAutoscalingV2beta1CrossVersionObjectReference }) = collect(keys(_property_map_IoK8sApiAutoscalingV2beta1CrossVersionObjectReference)) Swagger.property_type(::Type{ IoK8sApiAutoscalingV2beta1CrossVersionObjectReference }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_IoK8sApiAutoscalingV2beta1CrossVersionObjectReference[name]))} Swagger.field_name(::Type{ IoK8sApiAutoscalingV2beta1CrossVersionObjectReference }, property_name::Symbol) = _property_map_IoK8sApiAutoscalingV2beta1CrossVersionObjectReference[property_name] function check_required(o::IoK8sApiAutoscalingV2beta1CrossVersionObjectReference) (getproperty(o, Symbol("kind")) === nothing) && (return false) (getproperty(o, Symbol("name")) === nothing) && (return false) true end function validate_property(::Type{ IoK8sApiAutoscalingV2beta1CrossVersionObjectReference }, name::Symbol, val) end
[ 2, 770, 2393, 373, 7560, 416, 262, 22300, 2451, 7928, 6127, 35986, 198, 2, 2141, 407, 13096, 428, 2393, 3264, 13, 3401, 1958, 262, 1509, 7928, 20855, 2427, 13, 628, 198, 31, 15390, 8246, 37811, 21544, 14815, 10267, 26687, 4909, 1576, 1321, 284, 1309, 345, 5911, 262, 6412, 8271, 13, 628, 220, 220, 220, 27853, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 7, 26, 198, 220, 220, 220, 220, 220, 220, 220, 40391, 14815, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1611, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 28, 22366, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 532, 40391, 14815, 3712, 10100, 1058, 7824, 2196, 286, 262, 6773, 429, 198, 220, 220, 220, 532, 1611, 3712, 10100, 1058, 14927, 286, 262, 6773, 429, 26, 3125, 7508, 25, 3740, 1378, 18300, 13, 74, 23, 82, 13, 952, 14, 28158, 14, 3642, 2455, 669, 14, 2934, 626, 14, 82, 328, 12, 998, 5712, 495, 14, 15042, 12, 1102, 16593, 13, 9132, 2, 19199, 12, 11031, 82, 59, 5, 421, 313, 26, 198, 220, 220, 220, 532, 1438, 3712, 10100, 1058, 6530, 286, 262, 6773, 429, 26, 3125, 7508, 25, 2638, 1378, 74, 18478, 3262, 274, 13, 952, 14, 31628, 14, 7220, 12, 41311, 14, 738, 13350, 2, 14933, 198, 37811, 198, 76, 18187, 2878, 27853, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 1279, 25, 2451, 7928, 17633, 198, 220, 220, 220, 40391, 14815, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 40391, 14815, 198, 220, 220, 220, 1611, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 1611, 198, 220, 220, 220, 1438, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 1438, 628, 220, 220, 220, 2163, 27853, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 7, 26, 15042, 14815, 28, 22366, 11, 1611, 28, 22366, 11, 1438, 28, 22366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 267, 796, 649, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 11, 38357, 7203, 15042, 14815, 12340, 40391, 14815, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 15042, 14815, 12340, 40391, 14815, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 11, 38357, 7203, 11031, 12340, 1611, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 11031, 12340, 1611, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 11, 38357, 7203, 3672, 12340, 1438, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 3672, 12340, 1438, 8, 198, 220, 220, 220, 220, 220, 220, 220, 267, 198, 220, 220, 220, 886, 198, 437, 1303, 2099, 27853, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 198, 198, 9979, 4808, 26745, 62, 8899, 62, 40, 78, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 796, 360, 713, 90, 13940, 23650, 11, 13940, 23650, 92, 7, 13940, 23650, 7203, 15042, 14815, 4943, 14804, 13940, 23650, 7203, 15042, 14815, 12340, 38357, 7203, 11031, 4943, 14804, 13940, 23650, 7203, 11031, 12340, 38357, 7203, 3672, 4943, 14804, 13940, 23650, 7203, 3672, 48774, 198, 9979, 4808, 26745, 62, 19199, 62, 40, 78, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 796, 360, 713, 90, 13940, 23650, 11, 10100, 92, 7, 13940, 23650, 7203, 15042, 14815, 4943, 14804, 1, 10100, 1600, 38357, 7203, 11031, 4943, 14804, 1, 10100, 1600, 38357, 7203, 3672, 4943, 14804, 1, 10100, 4943, 198, 14881, 13, 26745, 14933, 7, 3712, 6030, 90, 27853, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 32092, 796, 2824, 7, 13083, 28264, 26745, 62, 8899, 62, 40, 78, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 4008, 198, 10462, 7928, 13, 26745, 62, 4906, 7, 3712, 6030, 90, 27853, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 8964, 1438, 3712, 13940, 23650, 8, 796, 4479, 90, 18465, 11, 18206, 7, 14881, 13, 48526, 13, 29572, 28264, 26745, 62, 19199, 62, 40, 78, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 58, 3672, 60, 4008, 92, 198, 10462, 7928, 13, 3245, 62, 3672, 7, 3712, 6030, 90, 27853, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 8964, 3119, 62, 3672, 3712, 13940, 23650, 8, 796, 220, 4808, 26745, 62, 8899, 62, 40, 78, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 58, 26745, 62, 3672, 60, 198, 198, 8818, 2198, 62, 35827, 7, 78, 3712, 40, 78, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 11031, 48774, 24844, 2147, 8, 11405, 357, 7783, 3991, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 3672, 48774, 24844, 2147, 8, 11405, 357, 7783, 3991, 8, 198, 220, 220, 220, 2081, 198, 437, 198, 198, 8818, 26571, 62, 26745, 7, 3712, 6030, 90, 27853, 42, 23, 82, 32, 14415, 16541, 17500, 4272, 53, 17, 31361, 16, 21544, 14815, 10267, 26687, 8964, 1438, 3712, 13940, 23650, 11, 1188, 8, 198, 437, 198 ]
2.939571
1,026
<gh_stars>0 module BandedMatrices using Base, FillArrays, ArrayLayouts, LinearAlgebra, SparseArrays, Random using LinearAlgebra.LAPACK import Base: axes, axes1, getproperty, iterate, tail import LinearAlgebra: BlasInt, BlasReal, BlasFloat, BlasComplex, axpy!, copy_oftype, checksquare, adjoint, transpose, AdjOrTrans, HermOrSym, _chol!, rot180 import LinearAlgebra.BLAS: libblas import LinearAlgebra.LAPACK: liblapack, chkuplo, chktrans import LinearAlgebra: cholesky, cholesky!, cholcopy, norm, diag, eigvals!, eigvals, eigen!, eigen, qr, qr!, axpy!, ldiv!, mul!, lu, lu!, ldlt, ldlt!, AbstractTriangular, chkstride1, kron, lmul!, rmul!, factorize, StructuredMatrixStyle, logabsdet, svdvals, svdvals!, QRPackedQ, checknonsingular, ipiv2perm, tril!, triu!, Givens, diagzero import SparseArrays: sparse import Base: getindex, setindex!, *, +, -, ==, <, <=, >, isassigned, >=, /, ^, \, transpose, showerror, reindex, checkbounds, @propagate_inbounds import Base: convert, size, view, unsafe_indices, first, last, size, length, unsafe_length, step, to_indices, to_index, show, fill!, promote_op, MultiplicativeInverses, OneTo, ReshapedArray, similar, copy, convert, promote_rule, rand, IndexStyle, real, imag, Slice, pointer, unsafe_convert, copyto!, hcat, vcat, hvcat import Base.Broadcast: BroadcastStyle, AbstractArrayStyle, DefaultArrayStyle, Broadcasted, broadcasted, materialize, materialize! import ArrayLayouts: MemoryLayout, transposelayout, triangulardata, conjlayout, symmetriclayout, symmetricdata, triangularlayout, MatLdivVec, hermitianlayout, hermitiandata, materialize!, BlasMatMulMatAdd, BlasMatMulVecAdd, BlasMatLmulVec, BlasMatLdivVec, colsupport, rowsupport, symmetricuplo, MatMulMatAdd, MatMulVecAdd, sublayout, sub_materialize, _fill_lmul!, reflector!, reflectorApply!, _copyto!, _qr!, _qr, _lu!, _lu, _factorize, TridiagonalLayout import FillArrays: AbstractFill, getindex_value export BandedMatrix, bandrange, brand, bandwidth, BandError, band, Band, BandRange, bandwidths, colrange, rowrange, isbanded, Zeros, Fill, Ones, Eye if VERSION < v"1.2-" import Base: has_offset_axes require_one_based_indexing(A...) = !has_offset_axes(A...) || throw(ArgumentError("offset arrays are not supported but got an array with index other than 1")) else import Base: require_one_based_indexing end if VERSION < v"1.3-" const _apply_ipiv_rows! = LinearAlgebra._apply_ipiv! else import LinearAlgebra: _apply_ipiv_rows! end include("blas.jl") include("lapack.jl") include("generic/AbstractBandedMatrix.jl") include("generic/broadcast.jl") include("generic/matmul.jl") include("generic/Band.jl") include("generic/utils.jl") include("generic/indexing.jl") include("banded/BandedMatrix.jl") include("banded/BandedLU.jl") include("banded/bandedqr.jl") include("banded/gbmm.jl") include("banded/linalg.jl") include("symbanded/symbanded.jl") include("symbanded/ldlt.jl") include("symbanded/BandedCholesky.jl") include("symbanded/SplitCholesky.jl") include("symbanded/bandedeigen.jl") include("tribanded.jl") include("interfaceimpl.jl") # function _precompile_() # precompile(Tuple{typeof(gbmm!), Char, Char, Float64, BandedMatrix{Float64,Array{Float64,2},Base.OneTo{Int64}}, BandedMatrix{Float64,Array{Float64,2},Base.OneTo{Int64}}, Float64, BandedMatrix{Float64,Array{Float64,2},Base.OneTo{Int64}}}) # end # _precompile_() end #module
[ 27, 456, 62, 30783, 29, 15, 198, 21412, 10243, 276, 19044, 45977, 198, 3500, 7308, 11, 27845, 3163, 20477, 11, 15690, 23763, 5269, 11, 44800, 2348, 29230, 11, 1338, 17208, 3163, 20477, 11, 14534, 198, 3500, 44800, 2348, 29230, 13, 43, 2969, 8120, 198, 11748, 7308, 25, 34197, 11, 34197, 16, 11, 651, 26745, 11, 11629, 378, 11, 7894, 198, 11748, 44800, 2348, 29230, 25, 1086, 292, 5317, 11, 1086, 292, 15633, 11, 1086, 292, 43879, 11, 1086, 292, 5377, 11141, 11, 7877, 9078, 28265, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4866, 62, 11205, 2981, 11, 8794, 421, 533, 11, 9224, 1563, 11, 1007, 3455, 11, 1215, 73, 5574, 8291, 11, 18113, 5574, 43094, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 354, 349, 28265, 5724, 15259, 198, 11748, 44800, 2348, 29230, 13, 9148, 1921, 25, 9195, 2436, 292, 198, 11748, 44800, 2348, 29230, 13, 43, 2969, 8120, 25, 9195, 37796, 441, 11, 442, 23063, 489, 78, 11, 442, 74, 7645, 198, 11748, 44800, 2348, 29230, 25, 442, 4316, 2584, 11, 442, 4316, 2584, 28265, 442, 349, 30073, 11, 2593, 11, 2566, 363, 11, 304, 328, 12786, 28265, 304, 328, 12786, 11, 304, 9324, 28265, 304, 9324, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 81, 11, 10662, 81, 28265, 7877, 9078, 28265, 300, 7146, 28265, 35971, 28265, 300, 84, 11, 300, 84, 28265, 300, 67, 2528, 11, 300, 67, 2528, 28265, 27741, 14824, 21413, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 442, 74, 2536, 485, 16, 11, 479, 1313, 11, 300, 76, 377, 28265, 42721, 377, 28265, 5766, 1096, 11, 32112, 1522, 46912, 21466, 11, 2604, 8937, 15255, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 20306, 12786, 11, 264, 20306, 12786, 28265, 1195, 20031, 6021, 48, 11, 2198, 77, 684, 278, 934, 11, 20966, 452, 17, 16321, 11, 491, 346, 28265, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1333, 84, 28265, 402, 452, 641, 11, 2566, 363, 22570, 198, 11748, 1338, 17208, 3163, 20477, 25, 29877, 198, 198, 11748, 7308, 25, 651, 9630, 11, 900, 9630, 28265, 1635, 11, 1343, 11, 532, 11, 6624, 11, 1279, 11, 19841, 11, 1875, 11, 318, 562, 3916, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18189, 11, 1220, 11, 10563, 11, 3467, 11, 1007, 3455, 11, 14643, 1472, 11, 302, 9630, 11, 2198, 65, 3733, 11, 2488, 22930, 37861, 62, 259, 65, 3733, 198, 198, 11748, 7308, 25, 10385, 11, 2546, 11, 1570, 11, 21596, 62, 521, 1063, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 717, 11, 938, 11, 2546, 11, 4129, 11, 21596, 62, 13664, 11, 2239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 62, 521, 1063, 11, 284, 62, 9630, 11, 905, 11, 6070, 28265, 7719, 62, 404, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15237, 489, 43058, 818, 690, 274, 11, 1881, 2514, 11, 1874, 71, 5813, 19182, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2092, 11, 4866, 11, 10385, 11, 7719, 62, 25135, 11, 43720, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12901, 21466, 11, 1103, 11, 3590, 11, 3454, 501, 11, 17562, 11, 21596, 62, 1102, 1851, 11, 4866, 1462, 28265, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 289, 9246, 11, 410, 9246, 11, 289, 85, 9246, 198, 198, 11748, 7308, 13, 30507, 2701, 25, 44244, 21466, 11, 27741, 19182, 21466, 11, 15161, 19182, 21466, 11, 44244, 276, 11, 7025, 276, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2587, 1096, 11, 2587, 1096, 0, 198, 198, 11748, 15690, 23763, 5269, 25, 14059, 32517, 11, 1007, 3455, 39786, 11, 1333, 648, 377, 446, 1045, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11644, 39786, 11, 23606, 19482, 39786, 11, 23606, 19482, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46963, 39786, 11, 6550, 43, 7146, 53, 721, 11, 607, 2781, 666, 39786, 11, 607, 2781, 72, 392, 1045, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2587, 1096, 28265, 1086, 292, 19044, 44, 377, 19044, 4550, 11, 1086, 292, 19044, 44, 377, 53, 721, 4550, 11, 1086, 292, 19044, 43, 76, 377, 53, 721, 11, 1086, 292, 19044, 43, 7146, 53, 721, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 11284, 11, 5752, 11284, 11, 23606, 19482, 84, 489, 78, 11, 6550, 44, 377, 19044, 4550, 11, 6550, 44, 377, 53, 721, 4550, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 39786, 11, 850, 62, 33665, 1096, 11, 4808, 20797, 62, 75, 76, 377, 28265, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4079, 273, 28265, 4079, 273, 44836, 28265, 4808, 30073, 1462, 28265, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 80, 81, 28265, 4808, 80, 81, 11, 4808, 2290, 28265, 4808, 2290, 11, 4808, 31412, 1096, 11, 833, 19830, 27923, 32517, 198, 198, 11748, 27845, 3163, 20477, 25, 27741, 33762, 11, 651, 9630, 62, 8367, 198, 198, 39344, 10243, 276, 46912, 11, 198, 220, 220, 220, 220, 220, 220, 4097, 9521, 11, 198, 220, 220, 220, 220, 220, 220, 4508, 11, 198, 220, 220, 220, 220, 220, 220, 19484, 11, 198, 220, 220, 220, 220, 220, 220, 10243, 12331, 11, 198, 220, 220, 220, 220, 220, 220, 4097, 11, 198, 220, 220, 220, 220, 220, 220, 10243, 11, 198, 220, 220, 220, 220, 220, 220, 10243, 17257, 11, 198, 220, 220, 220, 220, 220, 220, 19484, 82, 11, 198, 220, 220, 220, 220, 220, 220, 951, 9521, 11, 198, 220, 220, 220, 220, 220, 220, 5752, 9521, 11, 198, 220, 220, 220, 220, 220, 220, 318, 3903, 276, 11, 198, 220, 220, 220, 220, 220, 220, 1168, 27498, 11, 198, 220, 220, 220, 220, 220, 220, 27845, 11, 198, 220, 220, 220, 220, 220, 220, 32606, 11, 198, 220, 220, 220, 220, 220, 220, 14144, 628, 198, 361, 44156, 2849, 1279, 410, 1, 16, 13, 17, 21215, 198, 220, 220, 220, 1330, 7308, 25, 468, 62, 28968, 62, 897, 274, 198, 220, 220, 220, 2421, 62, 505, 62, 3106, 62, 9630, 278, 7, 32, 23029, 796, 5145, 10134, 62, 28968, 62, 897, 274, 7, 32, 23029, 8614, 3714, 7, 28100, 1713, 12331, 7203, 28968, 26515, 389, 407, 4855, 475, 1392, 281, 7177, 351, 6376, 584, 621, 352, 48774, 198, 17772, 198, 220, 220, 220, 1330, 7308, 25, 2421, 62, 505, 62, 3106, 62, 9630, 278, 198, 437, 198, 198, 361, 44156, 2849, 1279, 410, 1, 16, 13, 18, 21215, 198, 220, 220, 220, 1500, 4808, 39014, 62, 541, 452, 62, 8516, 0, 796, 44800, 2348, 29230, 13557, 39014, 62, 541, 452, 0, 198, 17772, 198, 220, 220, 220, 1330, 44800, 2348, 29230, 25, 4808, 39014, 62, 541, 452, 62, 8516, 0, 198, 437, 198, 198, 17256, 7203, 2436, 292, 13, 20362, 4943, 198, 17256, 7203, 37796, 441, 13, 20362, 4943, 198, 198, 17256, 7203, 41357, 14, 23839, 33, 12249, 46912, 13, 20362, 4943, 198, 17256, 7203, 41357, 14, 36654, 2701, 13, 20362, 4943, 198, 17256, 7203, 41357, 14, 6759, 76, 377, 13, 20362, 4943, 198, 17256, 7203, 41357, 14, 31407, 13, 20362, 4943, 198, 17256, 7203, 41357, 14, 26791, 13, 20362, 4943, 198, 17256, 7203, 41357, 14, 9630, 278, 13, 20362, 4943, 628, 198, 17256, 7203, 3903, 276, 14, 33, 12249, 46912, 13, 20362, 4943, 198, 17256, 7203, 3903, 276, 14, 33, 12249, 41596, 13, 20362, 4943, 198, 17256, 7203, 3903, 276, 14, 3903, 276, 80, 81, 13, 20362, 4943, 198, 17256, 7203, 3903, 276, 14, 22296, 3020, 13, 20362, 4943, 198, 17256, 7203, 3903, 276, 14, 75, 1292, 70, 13, 20362, 4943, 198, 198, 17256, 7203, 1837, 2022, 12249, 14, 1837, 2022, 12249, 13, 20362, 4943, 198, 17256, 7203, 1837, 2022, 12249, 14, 335, 2528, 13, 20362, 4943, 198, 17256, 7203, 1837, 2022, 12249, 14, 33, 12249, 1925, 4316, 2584, 13, 20362, 4943, 198, 17256, 7203, 1837, 2022, 12249, 14, 41205, 1925, 4316, 2584, 13, 20362, 4943, 198, 17256, 7203, 1837, 2022, 12249, 14, 3903, 18654, 9324, 13, 20362, 4943, 198, 198, 17256, 7203, 83, 822, 12249, 13, 20362, 4943, 198, 198, 17256, 7203, 39994, 23928, 13, 20362, 4943, 198, 198, 2, 2163, 4808, 3866, 5589, 576, 62, 3419, 198, 2, 220, 220, 220, 220, 662, 5589, 576, 7, 51, 29291, 90, 4906, 1659, 7, 22296, 3020, 26290, 3178, 11, 3178, 11, 48436, 2414, 11, 10243, 276, 46912, 90, 43879, 2414, 11, 19182, 90, 43879, 2414, 11, 17, 5512, 14881, 13, 3198, 2514, 90, 5317, 2414, 92, 5512, 10243, 276, 46912, 90, 43879, 2414, 11, 19182, 90, 43879, 2414, 11, 17, 5512, 14881, 13, 3198, 2514, 90, 5317, 2414, 92, 5512, 48436, 2414, 11, 10243, 276, 46912, 90, 43879, 2414, 11, 19182, 90, 43879, 2414, 11, 17, 5512, 14881, 13, 3198, 2514, 90, 5317, 2414, 11709, 30072, 198, 2, 886, 198, 198, 2, 4808, 3866, 5589, 576, 62, 3419, 198, 198, 437, 1303, 21412, 198 ]
2.263219
1,721
<gh_stars>0 using Base.Test using MLDatasets include("MNIST/runtests.jl") # CIFAR10 x, y = CIFAR10.traindata() x, y = CIFAR10.testdata() # CIFAR100 x, y = CIFAR100.traindata() x, y = CIFAR100.testdata() # PTBLM x, y = PTBLM.traindata() x, y = PTBLM.testdata() # UD_English x = UD_English.traindata() x = UD_English.devdata() x = UD_English.testdata() nothing
[ 27, 456, 62, 30783, 29, 15, 198, 3500, 7308, 13, 14402, 198, 3500, 10373, 27354, 292, 1039, 198, 198, 17256, 7203, 39764, 8808, 14, 81, 2797, 3558, 13, 20362, 4943, 198, 198, 2, 327, 5064, 1503, 940, 198, 87, 11, 331, 796, 327, 5064, 1503, 940, 13, 27432, 7890, 3419, 198, 87, 11, 331, 796, 327, 5064, 1503, 940, 13, 9288, 7890, 3419, 198, 198, 2, 327, 5064, 1503, 3064, 198, 87, 11, 331, 796, 327, 5064, 1503, 3064, 13, 27432, 7890, 3419, 198, 87, 11, 331, 796, 327, 5064, 1503, 3064, 13, 9288, 7890, 3419, 198, 198, 2, 19310, 9148, 44, 198, 87, 11, 331, 796, 19310, 9148, 44, 13, 27432, 7890, 3419, 198, 87, 11, 331, 796, 19310, 9148, 44, 13, 9288, 7890, 3419, 198, 198, 2, 43700, 62, 15823, 198, 87, 796, 43700, 62, 15823, 13, 27432, 7890, 3419, 198, 87, 796, 43700, 62, 15823, 13, 7959, 7890, 3419, 198, 87, 796, 43700, 62, 15823, 13, 9288, 7890, 3419, 198, 22366, 198 ]
2.206061
165
# Example Julia script calling the typical workflow to search PubMed and store # the results in a database # Date: September 6, 2016 # Authors: <NAME> # BCBI - Brown University # Version: Julia 0.4.5 using BioMedQuery.Processes using BioMedQuery.Entrez #************************ LOCALS TO CONFIGURE!!!! ************************** email= ENV["NCBI_EMAIL"] #This is an enviroment variable that you need to setup search_term="(obesity[MeSH Major Topic]) AND (\"2010\"[Date - Publication] : \"2012\"[Date - Publication])" max_articles = 20 overwrite=true verbose = false results_dir = "./results" #Database backend using_sqlite=false using_mysql=false using_endnote=true using_xml=false #*************************************************************************** if !isdir(results_dir) mkdir(results_dir) end if using_mysql #************************ LOCALS TO CONFIGURE!!!! ************************** host="localhost" #If want to hide - use enviroment variables instead mysql_usr="root" mysql_pswd="" dbname="pubmed_obesity_2010_2012" #*************************************************************************** config = Dict(:host=>host, :dbname=>dbname, :username=>mysql_usr, :pswd=>mysql_pswd, :overwrite=>overwrite) save_func = save_efetch_mysql elseif using_sqlite #************************ LOCALS TO CONFIGURE!!!! ************************** db_path="results_dir/pubmed_obesity_2010_2012.db" #*************************************************************************** config = Dict(:db_path=>db_path, :overwrite=>overwrite) save_func = save_efetch_sqlite elseif using_endnote #************************ LOCALS TO CONFIGURE!!!! ************************** citation_type="endnote" output_file="results_dir/pubmed_obesity_2010_2012.enw" #*************************************************************************** config = Dict(:type => citation_type, :output_file => output_file, :overwrite=> overwrite) save_func = save_article_citations elseif using_xml #************************ LOCALS TO CONFIGURE!!!! ************************** output_file="results_dir/pubmed_obesity_2010_2012.xml" #*************************************************************************** config = Dict(:output_file => output_file, :overwrite=> overwrite) save_func = save_efetch_xml else error("Unsupported database backend, options are: sqlite, mysql, endnote") end @time begin db = pubmed_search_and_save(email, search_term, max_articles, save_func, config, verbose) end
[ 2, 17934, 22300, 4226, 4585, 262, 7226, 30798, 284, 220, 2989, 32131, 290, 3650, 198, 2, 262, 2482, 287, 257, 6831, 198, 2, 7536, 25, 2693, 718, 11, 1584, 198, 2, 46665, 25, 1279, 20608, 29, 198, 2, 11843, 3483, 532, 4373, 2059, 198, 2, 10628, 25, 22300, 657, 13, 19, 13, 20, 198, 198, 3500, 16024, 9921, 20746, 13, 18709, 274, 198, 3500, 16024, 9921, 20746, 13, 14539, 21107, 198, 198, 2, 8412, 4557, 37347, 23333, 5390, 25626, 11335, 13896, 220, 8412, 4557, 1174, 198, 12888, 28, 12964, 53, 14692, 7792, 3483, 62, 27630, 4146, 8973, 1303, 1212, 318, 281, 17365, 343, 296, 298, 7885, 326, 345, 761, 284, 9058, 198, 12947, 62, 4354, 2625, 7, 672, 11924, 58, 5308, 9693, 8386, 47373, 12962, 5357, 357, 7879, 10333, 7879, 58, 10430, 532, 45065, 60, 1058, 19990, 6999, 7879, 58, 10430, 532, 45065, 12962, 1, 198, 9806, 62, 26845, 796, 1160, 198, 2502, 13564, 28, 7942, 198, 19011, 577, 796, 3991, 198, 198, 43420, 62, 15908, 796, 366, 19571, 43420, 1, 628, 198, 2, 38105, 30203, 198, 3500, 62, 25410, 578, 28, 9562, 198, 3500, 62, 28744, 13976, 28, 9562, 198, 3500, 62, 437, 11295, 28, 7942, 198, 3500, 62, 19875, 28, 9562, 198, 198, 2, 17174, 17174, 4557, 8162, 198, 361, 5145, 9409, 343, 7, 43420, 62, 15908, 8, 198, 220, 220, 220, 33480, 15908, 7, 43420, 62, 15908, 8, 198, 437, 628, 198, 361, 1262, 62, 28744, 13976, 198, 220, 220, 220, 1303, 8412, 4557, 37347, 23333, 5390, 25626, 11335, 13896, 220, 8412, 4557, 1174, 198, 220, 220, 220, 2583, 2625, 36750, 1, 1303, 1532, 765, 284, 7808, 532, 779, 17365, 343, 296, 298, 9633, 2427, 198, 220, 220, 220, 48761, 62, 14629, 2625, 15763, 1, 198, 220, 220, 220, 48761, 62, 862, 16993, 33151, 198, 220, 220, 220, 20613, 3672, 2625, 12984, 1150, 62, 672, 11924, 62, 10333, 62, 6999, 1, 198, 220, 220, 220, 1303, 17174, 17174, 4557, 8162, 198, 220, 220, 220, 4566, 796, 360, 713, 7, 25, 4774, 14804, 4774, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 9945, 3672, 14804, 9945, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 29460, 14804, 28744, 13976, 62, 14629, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 862, 16993, 14804, 28744, 13976, 62, 862, 16993, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 2502, 13564, 14804, 2502, 13564, 8, 198, 220, 220, 220, 3613, 62, 20786, 796, 3613, 62, 891, 7569, 62, 28744, 13976, 198, 17772, 361, 1262, 62, 25410, 578, 198, 220, 220, 220, 1303, 8412, 4557, 37347, 23333, 5390, 25626, 11335, 13896, 220, 8412, 4557, 1174, 198, 220, 220, 220, 20613, 62, 6978, 2625, 43420, 62, 15908, 14, 12984, 1150, 62, 672, 11924, 62, 10333, 62, 6999, 13, 9945, 1, 198, 220, 220, 220, 1303, 17174, 17174, 4557, 8162, 628, 220, 220, 220, 4566, 796, 360, 713, 7, 25, 9945, 62, 6978, 14804, 9945, 62, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 2502, 13564, 14804, 2502, 13564, 8, 198, 220, 220, 220, 3613, 62, 20786, 796, 3613, 62, 891, 7569, 62, 25410, 578, 198, 17772, 361, 1262, 62, 437, 11295, 198, 220, 220, 220, 1303, 8412, 4557, 37347, 23333, 5390, 25626, 11335, 13896, 220, 8412, 4557, 1174, 198, 220, 220, 220, 27860, 62, 4906, 2625, 437, 11295, 1, 198, 220, 220, 220, 5072, 62, 7753, 2625, 43420, 62, 15908, 14, 12984, 1150, 62, 672, 11924, 62, 10333, 62, 6999, 13, 268, 86, 1, 198, 220, 220, 220, 1303, 17174, 17174, 4557, 8162, 198, 220, 220, 220, 4566, 796, 360, 713, 7, 25, 4906, 5218, 27860, 62, 4906, 11, 1058, 22915, 62, 7753, 5218, 5072, 62, 7753, 11, 1058, 2502, 13564, 14804, 49312, 8, 198, 220, 220, 220, 3613, 62, 20786, 796, 3613, 62, 20205, 62, 66, 20597, 198, 17772, 361, 1262, 62, 19875, 198, 220, 220, 220, 1303, 8412, 4557, 37347, 23333, 5390, 25626, 11335, 13896, 220, 8412, 4557, 1174, 198, 220, 220, 220, 5072, 62, 7753, 2625, 43420, 62, 15908, 14, 12984, 1150, 62, 672, 11924, 62, 10333, 62, 6999, 13, 19875, 1, 198, 220, 220, 220, 1303, 17174, 17174, 4557, 8162, 198, 220, 220, 220, 4566, 796, 360, 713, 7, 25, 22915, 62, 7753, 5218, 5072, 62, 7753, 11, 1058, 2502, 13564, 14804, 49312, 8, 198, 220, 220, 220, 3613, 62, 20786, 796, 3613, 62, 891, 7569, 62, 19875, 198, 17772, 198, 220, 220, 4049, 7203, 3118, 15999, 6831, 30203, 11, 3689, 389, 25, 44161, 578, 11, 48761, 11, 886, 11295, 4943, 198, 437, 628, 198, 31, 2435, 2221, 198, 220, 220, 220, 20613, 796, 2240, 1150, 62, 12947, 62, 392, 62, 21928, 7, 12888, 11, 2989, 62, 4354, 11, 3509, 62, 26845, 11, 198, 220, 220, 220, 3613, 62, 20786, 11, 4566, 11, 15942, 577, 8, 198, 437, 198 ]
3.087558
868
function check_bipartiteness(A) return true end function check_unipartiteness(A) size(A,1) == size(A,2) || throw(ArgumentError("The matrix for a unipartite network must be square (yours has size $(size(A)))")) end function check_bipartiteness(A, T, B) check_bipartiteness(A) check_name_vector(T) check_name_vector(B) eltype(T) == eltype(B) || throw(ArgumentError("The species in a bipartite network levels must have the same type (you gave $(eltype(T)) and $(eltype(B)))")) length(unique(vcat(T,B))) == sum(size(A)) || throw(ArgumentError("Species names cannot be shared between the levels of a bipartite network")) length(T) == size(A,1) || throw(ArgumentError("The length of top-level species names must match matrix size ($(length(T)) v. $(size(A,1)))")) length(B) == size(A,2) || throw(ArgumentError("The length of bottom-level species names must match matrix size ($(length(B)) v. $(size(A,2)))")) end function check_unipartiteness(A, S) check_unipartiteness(A) check_name_vector(S) length(S) == size(A,1) || throw(ArgumentError("The length of species names must match matrix size ($(length(S)) v. $(size(A,1)))")) end function check_name_vector(N) length(N) == length(unique(N)) || throw(ArgumentError("The names of species must be unique")) end function check_probability_values(A) minimum(A) >= zero(eltype(A)) || throw(ArgumentError("The probabilities must be at least 0.0")) maximum(A) <= one(eltype(A)) || throw(ArgumentError("The probabilities must be at most 1.0")) end
[ 8818, 2198, 62, 65, 541, 433, 270, 9449, 7, 32, 8, 198, 220, 1441, 2081, 198, 437, 198, 198, 8818, 2198, 62, 403, 541, 433, 270, 9449, 7, 32, 8, 198, 220, 2546, 7, 32, 11, 16, 8, 6624, 2546, 7, 32, 11, 17, 8, 8614, 3714, 7, 28100, 1713, 12331, 7203, 464, 17593, 329, 257, 555, 541, 433, 578, 3127, 1276, 307, 6616, 357, 88, 4662, 468, 2546, 29568, 7857, 7, 32, 4008, 16725, 4008, 198, 437, 198, 198, 8818, 2198, 62, 65, 541, 433, 270, 9449, 7, 32, 11, 309, 11, 347, 8, 198, 220, 2198, 62, 65, 541, 433, 270, 9449, 7, 32, 8, 198, 220, 2198, 62, 3672, 62, 31364, 7, 51, 8, 198, 220, 2198, 62, 3672, 62, 31364, 7, 33, 8, 198, 220, 1288, 4906, 7, 51, 8, 6624, 1288, 4906, 7, 33, 8, 8614, 3714, 7, 28100, 1713, 12331, 7203, 464, 4693, 287, 257, 14141, 433, 578, 3127, 2974, 1276, 423, 262, 976, 2099, 357, 5832, 2921, 29568, 417, 4906, 7, 51, 4008, 290, 29568, 417, 4906, 7, 33, 4008, 16725, 4008, 198, 220, 4129, 7, 34642, 7, 85, 9246, 7, 51, 11, 33, 22305, 6624, 2160, 7, 7857, 7, 32, 4008, 8614, 3714, 7, 28100, 1713, 12331, 7203, 5248, 3171, 3891, 2314, 307, 4888, 1022, 262, 2974, 286, 257, 14141, 433, 578, 3127, 48774, 198, 220, 4129, 7, 51, 8, 6624, 2546, 7, 32, 11, 16, 8, 8614, 3714, 7, 28100, 1713, 12331, 7203, 464, 4129, 286, 1353, 12, 5715, 4693, 3891, 1276, 2872, 17593, 2546, 7198, 7, 13664, 7, 51, 4008, 410, 13, 29568, 7857, 7, 32, 11, 16, 4008, 16725, 4008, 198, 220, 4129, 7, 33, 8, 6624, 2546, 7, 32, 11, 17, 8, 8614, 3714, 7, 28100, 1713, 12331, 7203, 464, 4129, 286, 4220, 12, 5715, 4693, 3891, 1276, 2872, 17593, 2546, 7198, 7, 13664, 7, 33, 4008, 410, 13, 29568, 7857, 7, 32, 11, 17, 4008, 16725, 4008, 198, 437, 198, 198, 8818, 2198, 62, 403, 541, 433, 270, 9449, 7, 32, 11, 311, 8, 198, 220, 2198, 62, 403, 541, 433, 270, 9449, 7, 32, 8, 198, 220, 2198, 62, 3672, 62, 31364, 7, 50, 8, 198, 220, 4129, 7, 50, 8, 6624, 2546, 7, 32, 11, 16, 8, 8614, 3714, 7, 28100, 1713, 12331, 7203, 464, 4129, 286, 4693, 3891, 1276, 2872, 17593, 2546, 7198, 7, 13664, 7, 50, 4008, 410, 13, 29568, 7857, 7, 32, 11, 16, 4008, 16725, 4008, 198, 437, 198, 198, 8818, 2198, 62, 3672, 62, 31364, 7, 45, 8, 198, 220, 4129, 7, 45, 8, 6624, 4129, 7, 34642, 7, 45, 4008, 8614, 3714, 7, 28100, 1713, 12331, 7203, 464, 3891, 286, 4693, 1276, 307, 3748, 48774, 198, 437, 198, 198, 8818, 2198, 62, 1676, 65, 1799, 62, 27160, 7, 32, 8, 198, 220, 5288, 7, 32, 8, 18189, 6632, 7, 417, 4906, 7, 32, 4008, 8614, 3714, 7, 28100, 1713, 12331, 7203, 464, 39522, 1276, 307, 379, 1551, 657, 13, 15, 48774, 198, 220, 5415, 7, 32, 8, 19841, 530, 7, 417, 4906, 7, 32, 4008, 8614, 3714, 7, 28100, 1713, 12331, 7203, 464, 39522, 1276, 307, 379, 749, 352, 13, 15, 48774, 198, 437, 198 ]
2.885932
526
abstract type AbstractEvent end abstract type AbstractContinuousEvent <: AbstractEvent end abstract type AbstractDiscreteEvent <: AbstractEvent end # evaluate the functional whose events are sought (eve::AbstractEvent)(iter, state) = eve.condition(iter, state) # initialize function, must return the same type as eve(iter, state) initialize(eve::AbstractEvent, T) = throw("Initialization method not implemented for event ", eve) # whether the event requires computing eigen-elements @inline computeEigenElements(::AbstractEvent) = false length(::AbstractEvent) = throw("length not implemented") # default label used to record event in ContResult labels(::AbstractEvent, ind) = "user" # whether the user provided its own labels hasCustomLabels(::AbstractEvent) = false # general condition for detecting a continuous event. # Basically, we want to detect if some component of `eve(fct(iter, state))` is below Ο΅ # the ind is used to specify which par of the event is tested function isEventCrossed(::AbstractContinuousEvent, iter, state, ind = :) test(x, y) = x * y < 0 if state.eventValue[1] isa Real return test(state.eventValue[1], state.eventValue[2]) else for u in zip(state.eventValue[1][ind], state.eventValue[2][ind]) if test(u[1], u[2]) return true end end return false end end # general condition for detecting a discrete event function isEventCrossed(::AbstractDiscreteEvent, iter, state, ind = :) test(x, y) = x != y if state.eventValue[1] isa Integer return test(state.eventValue[1], state.eventValue[2]) else for u in zip(state.eventValue[1][ind], state.eventValue[2][ind]) if test(u[1], u[2]) return true end end return false end end #################################################################################################### # for AbstractContinuousEvent and AbstractDiscreteEvent # return type when calling eve.fct(iter, state) initialize(eve::AbstractContinuousEvent, T) = eve.nb == 1 ? T(1) : ntuple(x -> T(1), eve.nb) initialize(eve::AbstractDiscreteEvent, T) = eve.nb == 1 ? Int64(1) : ntuple(x -> Int64(1), eve.nb) #################################################################################################### """ $(TYPEDEF) Structure to pass a ContinuousEvent function to the continuation algorithm. A continuous call back returns a **tuple/scalar** value and we seek its zeros. $(TYPEDFIELDS) """ struct ContinuousEvent{Tcb, Tl} <: AbstractContinuousEvent "number of events, ie the length of the result returned by the callback function" nb::Int64 ", ` (iter, state) -> NTuple{nb, T}` callback function which, at each continuation state, returns a tuple. For example, to detect crossing 1.0 and -2.0, you can pass `(iter, state) -> (getp(state)+2, getx(state)[1]-1)),`. Note that the type `T` should match the one of the parameter specified by the `::Lens` in `continuation`." condition::Tcb "whether the event requires to compute eigen elements" computeEigenElements::Bool "Labels used to display information. For example `labels[1]` is used top qualify an event of the type `(0,1.3213,3.434)`. For example, you can use `labels = (\"hopf\",)` or `labels = (\"hopf\", \"fold\")`. You must have `labels::Union{Nothing, NTuple{N, String}}`." labels::Tl end ContinuousEvent(nb::Int, fct, labels::Union{Nothing, NTuple{N, String}} = nothing) where N = (@assert nb > 0 "You need to return at least one callback"; ContinuousEvent(nb, fct, false, labels)) @inline computeEigenElements(eve::ContinuousEvent) = eve.computeEigenElements @inline length(eve::ContinuousEvent) = eve.nb @inline hasCustomLabels(eve::ContinuousEvent{Tcb, Tl}) where {Tcb, Tl} = ~(Tl == Nothing) #################################################################################################### """ $(TYPEDEF) Structure to pass a DiscreteEvent function to the continuation algorithm. A continuous call back returns a discrete value and we seek when it changes. $(TYPEDFIELDS) """ struct DiscreteEvent{Tcb, Tl} <: AbstractDiscreteEvent "number of events, ie the length of the result returned by the callback function" nb::Int64 ", ` (iter, state) -> NTuple{nb, Int64}` callback function which at each continuation state, returns a tuple. For example, to detect a value change." condition::Tcb "whether the event requires to compute eigen elements" computeEigenElements::Bool "Labels used to display information. For example `labels[1]` is used top qualify an event occuring in the first component. For example, you can use `labels = (\"hopf\",)` or `labels = (\"hopf\", \"fold\")`. You must have `labels::Union{Nothing, NTuple{N, String}}`." labels::Tl end DiscreteEvent(nb::Int, fct, labels::Union{Nothing, NTuple{N, String}} = nothing) where N = (@assert nb > 0 "You need to return at least one callback"; DiscreteEvent(nb, fct, false, labels)) @inline computeEigenElements(eve::DiscreteEvent) = eve.computeEigenElements @inline length(eve::DiscreteEvent) = eve.nb @inline hasCustomLabels(eve::DiscreteEvent{Tcb, Tl}) where {Tcb, Tl} = ~(Tl == Nothing) function labels(eve::Union{ContinuousEvent{Tcb, Nothing}, DiscreteEvent{Tcb, Nothing}}, ind) where Tcb return "userC" * mapreduce(x->"-$x", *, ind) end function labels(eve::Union{ContinuousEvent{Tcb, Tl}, DiscreteEvent{Tcb, Tl}}, ind) where {Tcb, Tl} if isempty(ind) return "user" end return mapreduce(x->eve.labels[x], *, ind) end #################################################################################################### """ $(TYPEDEF) Structure to pass a PairOfEvents function to the continuation algorithm. It is composed of a pair ContinuousEvent / DiscreteEvent. $(TYPEDFIELDS) """ struct PairOfEvents{Tc <: AbstractContinuousEvent, Td <: AbstractDiscreteEvent} <: AbstractEvent "Continuous event" eventC::Tc "Discrete event" eventD::Td end @inline computeEigenElements(eve::PairOfEvents) = computeEigenElements(eve.eventC) || computeEigenElements(eve.eventD) @inline length(event::PairOfEvents) = length(event.eventC) + length(event.eventD) function (eve::PairOfEvents)(iter, state) outc = eve.eventC(iter, state) outd = eve.eventD(iter, state) return outc..., outd... end initialize(eve::PairOfEvents, T) = initialize(eve.eventC, T)..., initialize(eve.eventD, T)... function isEventCrossed(eve::PairOfEvents, iter, state, ind = :) nc = length(eve.eventC) n = length(eve) resC = isEventCrossed(eve.eventC, iter, state, 1:nc) resD = isEventCrossed(eve.eventD, iter, state, nc+1:n) return resC || resD end #################################################################################################### """ $(TYPEDEF) Multiple events can be chained together to form a `SetOfEvents`. A `SetOfEvents` is constructed by passing the constructor `ContinuousEvent`, `DiscreteEvent` or other `SetOfEvents` instances: SetOfEvents(cb1, cb2, cb3) # Example BK.SetOfEvents(BK.FoldDetectCB, BK.BifDetectCB) You can pass as many events as you like. $(TYPEDFIELDS) """ struct SetOfEvents{Tc <: Tuple, Td <: Tuple} <: AbstractEvent "Continuous event" eventC::Tc "Discrete event" eventD::Td end SetOfEvents(callback::AbstractDiscreteEvent) = SetOfEvents((),(callback,)) SetOfEvents(callback::AbstractContinuousEvent) = SetOfEvents((callback,),()) SetOfEvents() = SetOfEvents((),()) SetOfEvents(cb::Nothing) = SetOfEvents() # For Varargs, use recursion to make it type-stable SetOfEvents(events::Union{AbstractEvent, Nothing}...) = SetOfEvents(split_events((), (), events...)...) """ split_events(cs, ds, args...) Split comma seperated callbacks into sets of continous and discrete callbacks. Inspired by DiffEqBase. """ @inline split_events(cs, ds) = cs, ds @inline split_events(cs, ds, c::Nothing, args...) = split_events(cs, ds, args...) @inline split_events(cs, ds, c::AbstractContinuousEvent, args...) = split_events((cs..., c), ds, args...) @inline split_events(cs, ds, d::AbstractDiscreteEvent, args...) = split_events(cs, (ds..., d), args...) @inline function split_events(cs, ds, d::SetOfEvents, args...) split_events((cs...,d.eventC...), (ds..., d.eventD...), args...) end @inline computeEigenElements(eve::SetOfEvents) = mapreduce(computeEigenElements, |, eve.eventC) || mapreduce(computeEigenElements, |, eve.eventD) function (eve::SetOfEvents)(iter, state) outc = map(x -> x(iter, state), eve.eventC) outd = map(x -> x(iter, state), eve.eventD) return (outc..., outd...) end initialize(eve::SetOfEvents, T) = map(x->initialize(x,T),eve.eventC)..., map(x->initialize(x,T),eve.eventD)... function isEventCrossed(event::SetOfEvents, iter, state) res = false nC = length(event.eventC) nD = length(event.eventD) nCb = nC+nD for (i, eve) in enumerate(event.eventC) res = res | isEventCrossed(eve, iter, state, i) end for (i, eve) in enumerate(event.eventD) res = res | isEventCrossed(eve, iter, state, nC + i) end return res end
[ 397, 8709, 2099, 27741, 9237, 886, 198, 397, 8709, 2099, 27741, 17875, 5623, 9237, 1279, 25, 27741, 9237, 886, 198, 397, 8709, 2099, 27741, 15642, 8374, 9237, 1279, 25, 27741, 9237, 886, 198, 198, 2, 13446, 262, 10345, 3025, 2995, 389, 7194, 198, 7, 44655, 3712, 23839, 9237, 5769, 2676, 11, 1181, 8, 796, 28001, 13, 31448, 7, 2676, 11, 1181, 8, 198, 198, 2, 41216, 2163, 11, 1276, 1441, 262, 976, 2099, 355, 28001, 7, 2676, 11, 1181, 8, 198, 36733, 1096, 7, 44655, 3712, 23839, 9237, 11, 309, 8, 796, 3714, 7203, 24243, 1634, 2446, 407, 9177, 329, 1785, 33172, 28001, 8, 198, 198, 2, 1771, 262, 1785, 4433, 14492, 304, 9324, 12, 68, 3639, 198, 31, 45145, 24061, 36, 9324, 36, 3639, 7, 3712, 23839, 9237, 8, 796, 3991, 198, 198, 13664, 7, 3712, 23839, 9237, 8, 796, 3714, 7203, 13664, 407, 9177, 4943, 198, 198, 2, 4277, 6167, 973, 284, 1700, 1785, 287, 2345, 23004, 198, 23912, 1424, 7, 3712, 23839, 9237, 11, 773, 8, 796, 366, 7220, 1, 198, 198, 2, 1771, 262, 2836, 2810, 663, 898, 14722, 198, 10134, 15022, 17822, 1424, 7, 3712, 23839, 9237, 8, 796, 3991, 198, 198, 2, 2276, 4006, 329, 31521, 257, 12948, 1785, 13, 198, 2, 20759, 11, 356, 765, 284, 4886, 611, 617, 7515, 286, 4600, 44655, 7, 69, 310, 7, 2676, 11, 1181, 4008, 63, 318, 2174, 18074, 113, 198, 2, 262, 773, 318, 973, 284, 11986, 543, 1582, 286, 262, 1785, 318, 6789, 198, 8818, 318, 9237, 21544, 276, 7, 3712, 23839, 17875, 5623, 9237, 11, 11629, 11, 1181, 11, 773, 796, 14373, 198, 197, 9288, 7, 87, 11, 331, 8, 796, 2124, 1635, 331, 1279, 657, 198, 197, 361, 1181, 13, 15596, 11395, 58, 16, 60, 318, 64, 6416, 198, 197, 197, 7783, 1332, 7, 5219, 13, 15596, 11395, 58, 16, 4357, 1181, 13, 15596, 11395, 58, 17, 12962, 198, 197, 17772, 198, 197, 197, 1640, 334, 287, 19974, 7, 5219, 13, 15596, 11395, 58, 16, 7131, 521, 4357, 1181, 13, 15596, 11395, 58, 17, 7131, 521, 12962, 198, 197, 197, 197, 361, 1332, 7, 84, 58, 16, 4357, 334, 58, 17, 12962, 198, 197, 197, 197, 197, 7783, 2081, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 7783, 3991, 198, 197, 437, 198, 437, 198, 198, 2, 2276, 4006, 329, 31521, 257, 28810, 1785, 198, 8818, 318, 9237, 21544, 276, 7, 3712, 23839, 15642, 8374, 9237, 11, 11629, 11, 1181, 11, 773, 796, 14373, 198, 197, 9288, 7, 87, 11, 331, 8, 796, 2124, 14512, 331, 198, 197, 361, 1181, 13, 15596, 11395, 58, 16, 60, 318, 64, 34142, 198, 197, 197, 7783, 1332, 7, 5219, 13, 15596, 11395, 58, 16, 4357, 1181, 13, 15596, 11395, 58, 17, 12962, 198, 197, 17772, 198, 197, 197, 1640, 334, 287, 19974, 7, 5219, 13, 15596, 11395, 58, 16, 7131, 521, 4357, 1181, 13, 15596, 11395, 58, 17, 7131, 521, 12962, 198, 197, 197, 197, 361, 1332, 7, 84, 58, 16, 4357, 334, 58, 17, 12962, 198, 197, 197, 197, 197, 7783, 2081, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 7783, 3991, 198, 197, 437, 198, 437, 198, 29113, 29113, 29113, 4242, 198, 2, 329, 27741, 17875, 5623, 9237, 290, 27741, 15642, 8374, 9237, 198, 2, 1441, 2099, 618, 4585, 28001, 13, 69, 310, 7, 2676, 11, 1181, 8, 198, 36733, 1096, 7, 44655, 3712, 23839, 17875, 5623, 9237, 11, 309, 8, 796, 28001, 13, 46803, 6624, 352, 5633, 309, 7, 16, 8, 1058, 299, 83, 29291, 7, 87, 4613, 309, 7, 16, 828, 28001, 13, 46803, 8, 198, 36733, 1096, 7, 44655, 3712, 23839, 15642, 8374, 9237, 11, 309, 8, 796, 28001, 13, 46803, 6624, 352, 5633, 2558, 2414, 7, 16, 8, 1058, 299, 83, 29291, 7, 87, 4613, 2558, 2414, 7, 16, 828, 28001, 13, 46803, 8, 198, 198, 29113, 29113, 29113, 4242, 198, 37811, 198, 3, 7, 9936, 47, 1961, 25425, 8, 198, 198, 1273, 5620, 284, 1208, 257, 45012, 9237, 2163, 284, 262, 24659, 11862, 13, 198, 32, 12948, 869, 736, 5860, 257, 12429, 83, 29291, 14, 1416, 282, 283, 1174, 1988, 290, 356, 5380, 663, 1976, 27498, 13, 198, 198, 3, 7, 9936, 47, 1961, 11674, 3698, 5258, 8, 198, 37811, 198, 7249, 45012, 9237, 90, 51, 21101, 11, 309, 75, 92, 1279, 25, 27741, 17875, 5623, 9237, 198, 197, 1, 17618, 286, 2995, 11, 37941, 262, 4129, 286, 262, 1255, 4504, 416, 262, 23838, 2163, 1, 198, 197, 46803, 3712, 5317, 2414, 628, 197, 1600, 4600, 357, 2676, 11, 1181, 8, 4613, 24563, 29291, 90, 46803, 11, 309, 92, 63, 23838, 2163, 543, 11, 379, 1123, 24659, 1181, 11, 5860, 257, 46545, 13, 1114, 1672, 11, 284, 4886, 12538, 352, 13, 15, 290, 532, 17, 13, 15, 11, 345, 460, 1208, 4600, 7, 2676, 11, 1181, 8, 4613, 357, 1136, 79, 7, 5219, 47762, 17, 11, 651, 87, 7, 5219, 38381, 16, 45297, 16, 36911, 44646, 5740, 326, 262, 2099, 4600, 51, 63, 815, 2872, 262, 530, 286, 262, 11507, 7368, 416, 262, 4600, 3712, 49479, 63, 287, 4600, 18487, 2288, 63, 526, 198, 197, 31448, 3712, 51, 21101, 628, 197, 1, 25356, 262, 1785, 4433, 284, 24061, 304, 9324, 4847, 1, 198, 197, 5589, 1133, 36, 9324, 36, 3639, 3712, 33, 970, 628, 197, 1, 17822, 1424, 973, 284, 3359, 1321, 13, 1114, 1672, 4600, 23912, 1424, 58, 16, 60, 63, 318, 973, 1353, 12780, 281, 1785, 286, 262, 2099, 4600, 7, 15, 11, 16, 13, 2624, 1485, 11, 18, 13, 47101, 8, 44646, 1114, 1672, 11, 345, 460, 779, 4600, 23912, 1424, 796, 357, 7879, 8548, 69, 34607, 8, 63, 393, 4600, 23912, 1424, 796, 357, 7879, 8548, 69, 34607, 19990, 11379, 59, 4943, 44646, 921, 1276, 423, 4600, 23912, 1424, 3712, 38176, 90, 18465, 11, 24563, 29291, 90, 45, 11, 10903, 11709, 63, 526, 198, 197, 23912, 1424, 3712, 51, 75, 198, 437, 198, 198, 17875, 5623, 9237, 7, 46803, 3712, 5317, 11, 277, 310, 11, 14722, 3712, 38176, 90, 18465, 11, 24563, 29291, 90, 45, 11, 10903, 11709, 796, 2147, 8, 810, 399, 796, 4275, 30493, 299, 65, 1875, 657, 366, 1639, 761, 284, 1441, 379, 1551, 530, 23838, 8172, 45012, 9237, 7, 46803, 11, 277, 310, 11, 3991, 11, 14722, 4008, 198, 31, 45145, 24061, 36, 9324, 36, 3639, 7, 44655, 3712, 17875, 5623, 9237, 8, 796, 28001, 13, 5589, 1133, 36, 9324, 36, 3639, 198, 31, 45145, 4129, 7, 44655, 3712, 17875, 5623, 9237, 8, 796, 28001, 13, 46803, 198, 31, 45145, 468, 15022, 17822, 1424, 7, 44655, 3712, 17875, 5623, 9237, 90, 51, 21101, 11, 309, 75, 30072, 810, 1391, 51, 21101, 11, 309, 75, 92, 796, 5299, 7, 51, 75, 6624, 10528, 8, 198, 29113, 29113, 29113, 4242, 198, 37811, 198, 3, 7, 9936, 47, 1961, 25425, 8, 198, 198, 1273, 5620, 284, 1208, 257, 8444, 8374, 9237, 2163, 284, 262, 24659, 11862, 13, 198, 32, 12948, 869, 736, 5860, 257, 28810, 1988, 290, 356, 5380, 618, 340, 2458, 13, 198, 198, 3, 7, 9936, 47, 1961, 11674, 3698, 5258, 8, 198, 37811, 198, 7249, 8444, 8374, 9237, 90, 51, 21101, 11, 309, 75, 92, 1279, 25, 27741, 15642, 8374, 9237, 198, 197, 1, 17618, 286, 2995, 11, 37941, 262, 4129, 286, 262, 1255, 4504, 416, 262, 23838, 2163, 1, 198, 197, 46803, 3712, 5317, 2414, 628, 197, 1600, 4600, 357, 2676, 11, 1181, 8, 4613, 24563, 29291, 90, 46803, 11, 2558, 2414, 92, 63, 23838, 2163, 543, 379, 1123, 24659, 1181, 11, 5860, 257, 46545, 13, 1114, 1672, 11, 284, 4886, 257, 1988, 1487, 526, 198, 197, 31448, 3712, 51, 21101, 628, 197, 1, 25356, 262, 1785, 4433, 284, 24061, 304, 9324, 4847, 1, 198, 197, 5589, 1133, 36, 9324, 36, 3639, 3712, 33, 970, 628, 197, 1, 17822, 1424, 973, 284, 3359, 1321, 13, 1114, 1672, 4600, 23912, 1424, 58, 16, 60, 63, 318, 973, 1353, 12780, 281, 1785, 1609, 870, 287, 262, 717, 7515, 13, 1114, 1672, 11, 345, 460, 779, 4600, 23912, 1424, 796, 357, 7879, 8548, 69, 34607, 8, 63, 393, 4600, 23912, 1424, 796, 357, 7879, 8548, 69, 34607, 19990, 11379, 59, 4943, 44646, 921, 1276, 423, 4600, 23912, 1424, 3712, 38176, 90, 18465, 11, 24563, 29291, 90, 45, 11, 10903, 11709, 63, 526, 198, 197, 23912, 1424, 3712, 51, 75, 198, 437, 198, 15642, 8374, 9237, 7, 46803, 3712, 5317, 11, 277, 310, 11, 14722, 3712, 38176, 90, 18465, 11, 24563, 29291, 90, 45, 11, 10903, 11709, 796, 2147, 8, 810, 399, 796, 4275, 30493, 299, 65, 1875, 657, 366, 1639, 761, 284, 1441, 379, 1551, 530, 23838, 8172, 8444, 8374, 9237, 7, 46803, 11, 277, 310, 11, 3991, 11, 14722, 4008, 198, 31, 45145, 24061, 36, 9324, 36, 3639, 7, 44655, 3712, 15642, 8374, 9237, 8, 796, 28001, 13, 5589, 1133, 36, 9324, 36, 3639, 198, 31, 45145, 4129, 7, 44655, 3712, 15642, 8374, 9237, 8, 796, 28001, 13, 46803, 198, 31, 45145, 468, 15022, 17822, 1424, 7, 44655, 3712, 15642, 8374, 9237, 90, 51, 21101, 11, 309, 75, 30072, 810, 1391, 51, 21101, 11, 309, 75, 92, 796, 5299, 7, 51, 75, 6624, 10528, 8, 198, 198, 8818, 14722, 7, 44655, 3712, 38176, 90, 17875, 5623, 9237, 90, 51, 21101, 11, 10528, 5512, 8444, 8374, 9237, 90, 51, 21101, 11, 10528, 92, 5512, 773, 8, 810, 309, 21101, 198, 197, 7783, 366, 7220, 34, 1, 1635, 3975, 445, 7234, 7, 87, 3784, 1, 22799, 87, 1600, 1635, 11, 773, 8, 198, 437, 198, 198, 8818, 14722, 7, 44655, 3712, 38176, 90, 17875, 5623, 9237, 90, 51, 21101, 11, 309, 75, 5512, 8444, 8374, 9237, 90, 51, 21101, 11, 309, 75, 92, 5512, 773, 8, 810, 1391, 51, 21101, 11, 309, 75, 92, 198, 197, 361, 318, 28920, 7, 521, 8, 198, 197, 197, 7783, 366, 7220, 1, 198, 197, 437, 198, 197, 7783, 3975, 445, 7234, 7, 87, 3784, 44655, 13, 23912, 1424, 58, 87, 4357, 1635, 11, 773, 8, 198, 437, 198, 29113, 29113, 29113, 4242, 198, 37811, 198, 3, 7, 9936, 47, 1961, 25425, 8, 198, 198, 1273, 5620, 284, 1208, 257, 39645, 5189, 37103, 2163, 284, 262, 24659, 11862, 13, 632, 318, 13160, 286, 257, 5166, 45012, 9237, 1220, 8444, 8374, 9237, 13, 198, 198, 3, 7, 9936, 47, 1961, 11674, 3698, 5258, 8, 198, 37811, 198, 7249, 39645, 5189, 37103, 90, 51, 66, 1279, 25, 27741, 17875, 5623, 9237, 11, 309, 67, 1279, 25, 27741, 15642, 8374, 9237, 92, 220, 1279, 25, 27741, 9237, 198, 197, 1, 17875, 5623, 1785, 1, 198, 197, 15596, 34, 3712, 51, 66, 628, 197, 1, 15642, 8374, 1785, 1, 198, 197, 15596, 35, 3712, 51, 67, 198, 437, 198, 198, 31, 45145, 24061, 36, 9324, 36, 3639, 7, 44655, 3712, 47, 958, 5189, 37103, 8, 796, 24061, 36, 9324, 36, 3639, 7, 44655, 13, 15596, 34, 8, 8614, 24061, 36, 9324, 36, 3639, 7, 44655, 13, 15596, 35, 8, 198, 31, 45145, 4129, 7, 15596, 3712, 47, 958, 5189, 37103, 8, 796, 4129, 7, 15596, 13, 15596, 34, 8, 1343, 4129, 7, 15596, 13, 15596, 35, 8, 198, 198, 8818, 357, 44655, 3712, 47, 958, 5189, 37103, 5769, 2676, 11, 1181, 8, 198, 197, 448, 66, 796, 28001, 13, 15596, 34, 7, 2676, 11, 1181, 8, 198, 197, 448, 67, 796, 28001, 13, 15596, 35, 7, 2676, 11, 1181, 8, 198, 197, 7783, 503, 66, 986, 11, 503, 67, 986, 198, 437, 198, 198, 36733, 1096, 7, 44655, 3712, 47, 958, 5189, 37103, 11, 309, 8, 796, 41216, 7, 44655, 13, 15596, 34, 11, 309, 26513, 11, 41216, 7, 44655, 13, 15596, 35, 11, 309, 26513, 198, 8818, 318, 9237, 21544, 276, 7, 44655, 3712, 47, 958, 5189, 37103, 11, 11629, 11, 1181, 11, 773, 796, 14373, 198, 197, 10782, 796, 4129, 7, 44655, 13, 15596, 34, 8, 198, 197, 77, 796, 4129, 7, 44655, 8, 198, 197, 411, 34, 796, 318, 9237, 21544, 276, 7, 44655, 13, 15596, 34, 11, 11629, 11, 1181, 11, 352, 25, 10782, 8, 198, 197, 411, 35, 796, 318, 9237, 21544, 276, 7, 44655, 13, 15596, 35, 11, 11629, 11, 1181, 11, 299, 66, 10, 16, 25, 77, 8, 198, 197, 7783, 581, 34, 8614, 581, 35, 198, 437, 198, 29113, 29113, 29113, 4242, 198, 37811, 198, 3, 7, 9936, 47, 1961, 25425, 8, 198, 198, 31217, 2995, 460, 307, 40682, 1978, 284, 1296, 257, 4600, 7248, 5189, 37103, 44646, 317, 4600, 7248, 5189, 37103, 63, 198, 271, 12006, 416, 6427, 262, 23772, 4600, 17875, 5623, 9237, 47671, 4600, 15642, 8374, 9237, 63, 393, 584, 4600, 7248, 5189, 37103, 63, 10245, 25, 628, 197, 7248, 5189, 37103, 7, 21101, 16, 11, 269, 65, 17, 11, 269, 65, 18, 8, 198, 198, 2, 17934, 628, 197, 347, 42, 13, 7248, 5189, 37103, 7, 33, 42, 13, 37, 727, 47504, 23199, 11, 347, 42, 13, 33, 361, 47504, 23199, 8, 198, 198, 1639, 460, 1208, 355, 867, 2995, 355, 345, 588, 13, 198, 198, 3, 7, 9936, 47, 1961, 11674, 3698, 5258, 8, 198, 37811, 198, 7249, 5345, 5189, 37103, 90, 51, 66, 1279, 25, 309, 29291, 11, 309, 67, 1279, 25, 309, 29291, 92, 220, 1279, 25, 27741, 9237, 198, 197, 1, 17875, 5623, 1785, 1, 198, 197, 15596, 34, 3712, 51, 66, 628, 197, 1, 15642, 8374, 1785, 1, 198, 197, 15596, 35, 3712, 51, 67, 198, 437, 198, 198, 7248, 5189, 37103, 7, 47423, 3712, 23839, 15642, 8374, 9237, 8, 796, 5345, 5189, 37103, 19510, 828, 7, 47423, 11, 4008, 198, 7248, 5189, 37103, 7, 47423, 3712, 23839, 17875, 5623, 9237, 8, 796, 5345, 5189, 37103, 19510, 47423, 11, 828, 28955, 198, 7248, 5189, 37103, 3419, 796, 5345, 5189, 37103, 19510, 828, 28955, 198, 7248, 5189, 37103, 7, 21101, 3712, 18465, 8, 796, 5345, 5189, 37103, 3419, 198, 198, 2, 1114, 12372, 22046, 11, 779, 664, 24197, 284, 787, 340, 2099, 12, 31284, 198, 7248, 5189, 37103, 7, 31534, 3712, 38176, 90, 23839, 9237, 11, 10528, 92, 23029, 796, 5345, 5189, 37103, 7, 35312, 62, 31534, 19510, 828, 29994, 2995, 23029, 23029, 198, 198, 37811, 198, 220, 220, 220, 6626, 62, 31534, 7, 6359, 11, 288, 82, 11, 26498, 23029, 198, 41205, 39650, 384, 525, 515, 869, 10146, 656, 5621, 286, 1261, 516, 290, 28810, 869, 10146, 13, 45827, 416, 10631, 36, 80, 14881, 13, 198, 37811, 198, 31, 45145, 6626, 62, 31534, 7, 6359, 11, 288, 82, 8, 796, 50115, 11, 288, 82, 198, 31, 45145, 6626, 62, 31534, 7, 6359, 11, 288, 82, 11, 269, 3712, 18465, 11, 26498, 23029, 796, 6626, 62, 31534, 7, 6359, 11, 288, 82, 11, 26498, 23029, 198, 31, 45145, 6626, 62, 31534, 7, 6359, 11, 288, 82, 11, 269, 3712, 23839, 17875, 5623, 9237, 11, 26498, 23029, 796, 6626, 62, 31534, 19510, 6359, 986, 11, 269, 828, 288, 82, 11, 26498, 23029, 198, 31, 45145, 6626, 62, 31534, 7, 6359, 11, 288, 82, 11, 288, 3712, 23839, 15642, 8374, 9237, 11, 26498, 23029, 796, 6626, 62, 31534, 7, 6359, 11, 357, 9310, 986, 11, 288, 828, 26498, 23029, 198, 31, 45145, 2163, 6626, 62, 31534, 7, 6359, 11, 288, 82, 11, 288, 3712, 7248, 5189, 37103, 11, 26498, 23029, 198, 220, 6626, 62, 31534, 19510, 6359, 986, 11, 67, 13, 15596, 34, 986, 828, 357, 9310, 986, 11, 288, 13, 15596, 35, 986, 828, 26498, 23029, 198, 437, 198, 198, 31, 45145, 24061, 36, 9324, 36, 3639, 7, 44655, 3712, 7248, 5189, 37103, 8, 796, 3975, 445, 7234, 7, 5589, 1133, 36, 9324, 36, 3639, 11, 930, 11, 28001, 13, 15596, 34, 8, 8614, 3975, 445, 7234, 7, 5589, 1133, 36, 9324, 36, 3639, 11, 930, 11, 28001, 13, 15596, 35, 8, 198, 198, 8818, 357, 44655, 3712, 7248, 5189, 37103, 5769, 2676, 11, 1181, 8, 198, 197, 448, 66, 796, 3975, 7, 87, 4613, 2124, 7, 2676, 11, 1181, 828, 28001, 13, 15596, 34, 8, 198, 197, 448, 67, 796, 3975, 7, 87, 4613, 2124, 7, 2676, 11, 1181, 828, 28001, 13, 15596, 35, 8, 198, 197, 7783, 357, 448, 66, 986, 11, 503, 67, 23029, 198, 437, 198, 198, 36733, 1096, 7, 44655, 3712, 7248, 5189, 37103, 11, 309, 8, 796, 3975, 7, 87, 3784, 36733, 1096, 7, 87, 11, 51, 828, 44655, 13, 15596, 34, 26513, 11, 3975, 7, 87, 3784, 36733, 1096, 7, 87, 11, 51, 828, 44655, 13, 15596, 35, 26513, 198, 198, 8818, 318, 9237, 21544, 276, 7, 15596, 3712, 7248, 5189, 37103, 11, 11629, 11, 1181, 8, 198, 197, 411, 796, 3991, 198, 197, 77, 34, 796, 4129, 7, 15596, 13, 15596, 34, 8, 198, 197, 77, 35, 796, 4129, 7, 15596, 13, 15596, 35, 8, 198, 197, 77, 34, 65, 796, 299, 34, 10, 77, 35, 198, 197, 1640, 357, 72, 11, 28001, 8, 287, 27056, 378, 7, 15596, 13, 15596, 34, 8, 198, 197, 197, 411, 796, 581, 930, 318, 9237, 21544, 276, 7, 44655, 11, 11629, 11, 1181, 11, 1312, 8, 198, 197, 437, 198, 197, 1640, 357, 72, 11, 28001, 8, 287, 27056, 378, 7, 15596, 13, 15596, 35, 8, 198, 197, 197, 411, 796, 581, 930, 318, 9237, 21544, 276, 7, 44655, 11, 11629, 11, 1181, 11, 299, 34, 1343, 1312, 8, 198, 197, 437, 198, 197, 7783, 220, 581, 198, 437, 198 ]
3.087579
2,866
""" Convert a FrequencySimulationResult into a TimeSimulationResult by using the inverse fourier transform. Assumes only positive frequencies and a real time signal """ function frequency_to_time(simres::FrequencySimulationResult{T,Dim,FieldDim}; t_vec::AbstractVector{T} = Ο‰_to_t(simres.Ο‰), impulse::ContinuousImpulse{T} = TimeDiracImpulse(zero(T)), #GaussianImpulse(maximum(simres.Ο‰)), discrete_impulse::DiscreteImpulse{T} = continuous_to_discrete_impulse(impulse, t_vec, simres.Ο‰), method = :dft ) where {Dim,FieldDim,T} t_vec = discrete_impulse.t time_field = frequency_to_time(transpose(field(simres)), simres.Ο‰, t_vec; discrete_impulse = discrete_impulse, method = method) return TimeSimulationResult(transpose(time_field), simres.x, t_vec) end """ Convert a TimeSimulationResult into a FrequencySimulationResult by using the fourier transform. Assumes only positive frequencies and a real time signal """ function time_to_frequency(timres::TimeSimulationResult{T,Dim,FieldDim}; Ο‰_vec = t_to_Ο‰(timres.t), impulse::ContinuousImpulse{T} = TimeDiracImpulse(zero(T)), #GaussianImpulse(maximum(Ο‰_vec)), discrete_impulse::DiscreteImpulse{T} = continuous_to_discrete_impulse(impulse,timres.t, Ο‰_vec), method =:dft ) where {Dim,FieldDim,T} Ο‰_vec = discrete_impulse.Ο‰ freq_field = time_to_frequency(transpose(field(timres)), timres.t, Ο‰_vec; discrete_impulse = discrete_impulse, method = method) return FrequencySimulationResult(transpose(freq_field), deepcopy(timres.x), Ο‰_vec) end """ returns an array of time from the frequency array Ο‰_vec. Uses the same convention for sampling the time as the discrete Fourier transfrom. Assumes Ο‰_vec is ordered and non-negative. """ function Ο‰_to_t(Ο‰_arr::AbstractArray{T}) where T <: AbstractFloat N = length(Ο‰_arr) if Ο‰_arr[1] == zero(T) N -= 1 elseif minimum(Ο‰_arr) < zero(T) error("expected only non-negative values for the frequencies") end dΟ‰ = median(abs.((circshift(Ο‰_arr,1) - Ο‰_arr)[2:end])) t_arr = LinRange(zero(T),2Ο€/dΟ‰,2N+2)[1:(2N+1)] return t_arr end "The inverse of Ο‰_to_t if Ο‰_vec[1] == 0" function t_to_Ο‰(t_arr::AbstractArray{T}) where T <: AbstractFloat N = Int(round((length(t_arr)-one(T))/T(2))) maxt = t_arr[2] - t_arr[1] + t_arr[end] - t_arr[1] # subtract t_arr[1] in case t_arr[1] != zero(T) maxΟ‰ = N*2Ο€/maxt Ο‰_vec = LinRange(zero(T),maxΟ‰,N+1) return Ο‰_vec end """ Returns the first element of array which isn't zero (assumes elements are increasing and distinct) """ function firstnonzero(arr::AbstractArray{T}) where T <: AbstractFloat if arr[1] != 0 return arr[1] else return arr[2] end end """ See also: [`DiscreteImpulse`](@ref), [`ContinuousImpulse`](@ref) Calculates the time response from the frequency response by approximating an inverse Fourier transform. The time signal is assumed to be real and the frequenices Ο‰_vec are assumed to be positive (can include zero) and sorted. The result is convoluted in time Ο‰ith the user specified impulse. We use the Fourier transform convention: F(Ο‰) = ∫ f(t)*exp(im*Ο‰*t) dt f(t) = (2Ο€)^(-1) * ∫ F(Ο‰)*exp(-im*Ο‰*t) dt To easily sample any time, the default is not FFT, but a discrete version of the transform above. """ function frequency_to_time(field_mat::AbstractArray{Complex{T}}, Ο‰_vec::AbstractVector{T}, t_vec::AbstractArray{T} = Ο‰_to_t(Ο‰_vec); impulse::ContinuousImpulse{T} = TimeDiracImpulse(zero(T)), discrete_impulse::DiscreteImpulse{T} = continuous_to_discrete_impulse(impulse, t_vec, Ο‰_vec), method=:dft) where T <: AbstractFloat # In case the used specifies discrete_impulse but not t_vec t_vec = discrete_impulse.t if size(field_mat,1) != size(Ο‰_vec,1) error("Vector of frequencies Ο‰_vec expected to be same size as size(field_mat,1)") end function f(t::T,j::Int) fs = discrete_impulse.in_freq.*field_mat[:,j] .* exp.(-(im*t) .* Ο‰_vec) if method == :dft && Ο‰_vec[1] == zero(T) fs[1] = fs[1]/T(2) # so as to not add Ο‰=0 tΟ‰ice in the integral of Ο‰ over [-inf,inf] end fs end inverse_fourier_integral = (t,j) -> numerical_integral(Ο‰_vec, f(t,j), method) u = [inverse_fourier_integral(t,j) for t in discrete_impulse.t, j in axes(field_mat,2)] return real.(u)/pi # a constant 1/(2pi) appears due to our Fourier convention, but because we only use positive frequencies, and assume a real time signal, this becomes 1/pi. end """ The inverse of the function frequency_to_time (only an exact inverse when using :dft integration). We use the Fourier transform convention: F(Ο‰) = ∫ f(t)*exp(im*Ο‰*t) dt """ function time_to_frequency(field_mat::Union{AbstractArray{T},AbstractArray{Complex{T}}}, t_vec::AbstractVector{T}, Ο‰_vec::AbstractArray{T} = t_to_Ο‰(t_vec); impulse::ContinuousImpulse{T} = TimeDiracImpulse(zero(T)), discrete_impulse::DiscreteImpulse{T} = continuous_to_discrete_impulse(impulse, t_vec, Ο‰_vec), method=:dft) where T <: AbstractFloat # In case the used specifies discrete_impulse but not Ο‰_vec Ο‰_vec = discrete_impulse.Ο‰ # to use an impulse below in time we would need to do a discrete convolution, which we decided against. f(Ο‰::T, j::Int) = field_mat[:,j] .* exp.((im*Ο‰) .* t_vec) fourier_integral = (Ο‰,j) -> numerical_integral(t_vec, f(Ο‰,j), method) uhat = [discrete_impulse.in_freq[i]*fourier_integral(discrete_impulse.Ο‰[i],j) for i in eachindex(discrete_impulse.Ο‰), j in axes(field_mat,2)] return uhat end function numerical_integral(xs::AbstractArray{T}, fs::Union{AbstractArray{T},AbstractArray{Complex{T}}}, method = :dft) where T <: AbstractFloat if method == :trapezoidal sum(1:(length(xs)-1)) do xi (fs[xi] + fs[xi+1])*(xs[xi+1] - xs[xi])/T(2) end elseif method == :dft fs[1]*(xs[2] - xs[1]) + sum(2:length(xs)) do xi fs[xi]*(xs[xi] - xs[xi-1]) end else error("The method $method for numerical integration is not known.") end end
[ 198, 37811, 198, 3103, 1851, 257, 31902, 8890, 1741, 23004, 656, 257, 3862, 8890, 1741, 23004, 416, 1262, 262, 34062, 46287, 5277, 6121, 13, 198, 8021, 8139, 691, 3967, 19998, 290, 257, 1103, 640, 6737, 198, 37811, 198, 8818, 8373, 62, 1462, 62, 2435, 7, 14323, 411, 3712, 37, 28707, 8890, 1741, 23004, 90, 51, 11, 29271, 11, 15878, 29271, 19629, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 35138, 3712, 23839, 38469, 90, 51, 92, 796, 18074, 231, 62, 1462, 62, 83, 7, 14323, 411, 13, 49535, 828, 198, 220, 220, 220, 220, 220, 220, 220, 25278, 3712, 17875, 5623, 26950, 9615, 90, 51, 92, 796, 3862, 35277, 330, 26950, 9615, 7, 22570, 7, 51, 36911, 1303, 35389, 31562, 26950, 9615, 7, 47033, 7, 14323, 411, 13, 49535, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 28810, 62, 11011, 9615, 3712, 15642, 8374, 26950, 9615, 90, 51, 92, 796, 12948, 62, 1462, 62, 15410, 8374, 62, 11011, 9615, 7, 11011, 9615, 11, 256, 62, 35138, 11, 985, 411, 13, 49535, 828, 198, 220, 220, 220, 220, 220, 220, 220, 2446, 796, 1058, 67, 701, 198, 220, 220, 220, 1267, 810, 1391, 29271, 11, 15878, 29271, 11, 51, 92, 628, 220, 220, 220, 256, 62, 35138, 796, 28810, 62, 11011, 9615, 13, 83, 628, 220, 220, 220, 640, 62, 3245, 796, 8373, 62, 1462, 62, 2435, 7, 7645, 3455, 7, 3245, 7, 14323, 411, 36911, 985, 411, 13, 49535, 11, 256, 62, 35138, 26, 198, 220, 220, 220, 220, 220, 220, 220, 28810, 62, 11011, 9615, 796, 28810, 62, 11011, 9615, 11, 2446, 796, 2446, 8, 628, 220, 220, 220, 1441, 3862, 8890, 1741, 23004, 7, 7645, 3455, 7, 2435, 62, 3245, 828, 985, 411, 13, 87, 11, 256, 62, 35138, 8, 198, 437, 198, 198, 37811, 198, 3103, 1851, 257, 3862, 8890, 1741, 23004, 656, 257, 31902, 8890, 1741, 23004, 416, 1262, 262, 46287, 5277, 6121, 13, 198, 8021, 8139, 691, 3967, 19998, 290, 257, 1103, 640, 6737, 198, 37811, 198, 8818, 640, 62, 1462, 62, 35324, 7, 16514, 411, 3712, 7575, 8890, 1741, 23004, 90, 51, 11, 29271, 11, 15878, 29271, 19629, 198, 220, 220, 220, 220, 220, 220, 220, 18074, 231, 62, 35138, 796, 256, 62, 1462, 62, 49535, 7, 16514, 411, 13, 83, 828, 198, 220, 220, 220, 220, 220, 220, 220, 25278, 3712, 17875, 5623, 26950, 9615, 90, 51, 92, 796, 3862, 35277, 330, 26950, 9615, 7, 22570, 7, 51, 36911, 1303, 35389, 31562, 26950, 9615, 7, 47033, 7, 49535, 62, 35138, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 28810, 62, 11011, 9615, 3712, 15642, 8374, 26950, 9615, 90, 51, 92, 796, 12948, 62, 1462, 62, 15410, 8374, 62, 11011, 9615, 7, 11011, 9615, 11, 16514, 411, 13, 83, 11, 18074, 231, 62, 35138, 828, 198, 220, 220, 220, 220, 220, 220, 220, 2446, 796, 25, 67, 701, 198, 220, 220, 220, 1267, 810, 1391, 29271, 11, 15878, 29271, 11, 51, 92, 628, 220, 220, 220, 18074, 231, 62, 35138, 796, 28810, 62, 11011, 9615, 13, 49535, 628, 220, 220, 220, 2030, 80, 62, 3245, 796, 640, 62, 1462, 62, 35324, 7, 7645, 3455, 7, 3245, 7, 16514, 411, 36911, 4628, 411, 13, 83, 11, 18074, 231, 62, 35138, 26, 198, 220, 220, 220, 220, 220, 220, 220, 28810, 62, 11011, 9615, 796, 28810, 62, 11011, 9615, 11, 2446, 796, 2446, 8, 628, 220, 220, 220, 1441, 31902, 8890, 1741, 23004, 7, 7645, 3455, 7, 19503, 80, 62, 3245, 828, 2769, 30073, 7, 16514, 411, 13, 87, 828, 18074, 231, 62, 35138, 8, 198, 437, 198, 198, 37811, 198, 7783, 82, 281, 7177, 286, 640, 422, 262, 8373, 7177, 18074, 231, 62, 35138, 13, 198, 5842, 274, 262, 976, 9831, 329, 19232, 262, 640, 355, 262, 28810, 34296, 5277, 1007, 6738, 13, 198, 8021, 8139, 18074, 231, 62, 35138, 318, 6149, 290, 1729, 12, 31591, 13, 198, 37811, 198, 8818, 18074, 231, 62, 1462, 62, 83, 7, 49535, 62, 3258, 3712, 23839, 19182, 90, 51, 30072, 810, 309, 1279, 25, 27741, 43879, 198, 220, 220, 220, 399, 796, 4129, 7, 49535, 62, 3258, 8, 198, 220, 220, 220, 611, 18074, 231, 62, 3258, 58, 16, 60, 6624, 6632, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 399, 48185, 352, 198, 220, 220, 220, 2073, 361, 5288, 7, 49535, 62, 3258, 8, 1279, 6632, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 40319, 691, 1729, 12, 31591, 3815, 329, 262, 19998, 4943, 198, 220, 220, 220, 886, 628, 220, 220, 220, 288, 49535, 796, 14288, 7, 8937, 12195, 7, 21170, 30846, 7, 49535, 62, 3258, 11, 16, 8, 532, 18074, 231, 62, 3258, 38381, 17, 25, 437, 60, 4008, 628, 220, 220, 220, 256, 62, 3258, 796, 5164, 17257, 7, 22570, 7, 51, 828, 17, 46582, 14, 67, 49535, 11, 17, 45, 10, 17, 38381, 16, 37498, 17, 45, 10, 16, 15437, 198, 220, 220, 220, 1441, 256, 62, 3258, 198, 437, 198, 198, 1, 464, 34062, 286, 18074, 231, 62, 1462, 62, 83, 611, 18074, 231, 62, 35138, 58, 16, 60, 6624, 657, 1, 198, 8818, 256, 62, 1462, 62, 49535, 7, 83, 62, 3258, 3712, 23839, 19182, 90, 51, 30072, 810, 309, 1279, 25, 27741, 43879, 198, 220, 220, 220, 399, 796, 2558, 7, 744, 19510, 13664, 7, 83, 62, 3258, 13219, 505, 7, 51, 4008, 14, 51, 7, 17, 22305, 198, 220, 220, 220, 17266, 742, 796, 256, 62, 3258, 58, 17, 60, 532, 256, 62, 3258, 58, 16, 60, 1343, 256, 62, 3258, 58, 437, 60, 532, 256, 62, 3258, 58, 16, 60, 1303, 34128, 256, 62, 3258, 58, 16, 60, 287, 1339, 256, 62, 3258, 58, 16, 60, 14512, 6632, 7, 51, 8, 198, 220, 220, 220, 3509, 49535, 796, 399, 9, 17, 46582, 14, 2611, 742, 198, 220, 220, 220, 18074, 231, 62, 35138, 796, 5164, 17257, 7, 22570, 7, 51, 828, 9806, 49535, 11, 45, 10, 16, 8, 198, 220, 220, 220, 1441, 18074, 231, 62, 35138, 198, 437, 198, 198, 37811, 198, 35561, 262, 717, 5002, 286, 7177, 543, 2125, 470, 6632, 357, 562, 8139, 4847, 389, 198, 42647, 290, 7310, 8, 198, 37811, 198, 8818, 717, 13159, 22570, 7, 3258, 3712, 23839, 19182, 90, 51, 30072, 810, 309, 1279, 25, 27741, 43879, 198, 220, 220, 220, 611, 5240, 58, 16, 60, 14512, 657, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 5240, 58, 16, 60, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 5240, 58, 17, 60, 198, 220, 220, 220, 886, 198, 437, 198, 198, 37811, 198, 6214, 635, 25, 685, 63, 15642, 8374, 26950, 9615, 63, 16151, 31, 5420, 828, 685, 63, 17875, 5623, 26950, 9615, 63, 16151, 31, 5420, 8, 198, 198, 9771, 3129, 689, 262, 640, 2882, 422, 262, 8373, 2882, 416, 5561, 39204, 281, 198, 259, 4399, 34296, 5277, 6121, 13, 383, 640, 6737, 318, 9672, 284, 307, 1103, 290, 262, 198, 69, 8897, 268, 1063, 18074, 231, 62, 35138, 389, 9672, 284, 307, 3967, 357, 5171, 2291, 6632, 8, 290, 23243, 13, 383, 198, 20274, 318, 47370, 287, 640, 18074, 231, 342, 262, 2836, 7368, 25278, 13, 198, 198, 1135, 779, 262, 34296, 5277, 6121, 9831, 25, 198, 37, 7, 49535, 8, 796, 220, 18872, 104, 277, 7, 83, 27493, 11201, 7, 320, 9, 49535, 9, 83, 8, 288, 83, 198, 69, 7, 83, 8, 796, 357, 17, 46582, 8, 61, 32590, 16, 8, 1635, 18872, 104, 376, 7, 49535, 27493, 11201, 32590, 320, 9, 49535, 9, 83, 8, 288, 83, 198, 198, 2514, 3538, 6291, 597, 640, 11, 262, 4277, 318, 407, 376, 9792, 11, 475, 257, 28810, 2196, 286, 262, 6121, 2029, 13, 198, 37811, 198, 8818, 8373, 62, 1462, 62, 2435, 7, 3245, 62, 6759, 3712, 23839, 19182, 90, 5377, 11141, 90, 51, 92, 5512, 18074, 231, 62, 35138, 3712, 23839, 38469, 90, 51, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 35138, 3712, 23839, 19182, 90, 51, 92, 796, 18074, 231, 62, 1462, 62, 83, 7, 49535, 62, 35138, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 25278, 3712, 17875, 5623, 26950, 9615, 90, 51, 92, 796, 3862, 35277, 330, 26950, 9615, 7, 22570, 7, 51, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 28810, 62, 11011, 9615, 3712, 15642, 8374, 26950, 9615, 90, 51, 92, 796, 12948, 62, 1462, 62, 15410, 8374, 62, 11011, 9615, 7, 11011, 9615, 11, 256, 62, 35138, 11, 18074, 231, 62, 35138, 828, 198, 220, 220, 220, 220, 220, 220, 220, 2446, 28, 25, 67, 701, 8, 810, 309, 1279, 25, 27741, 43879, 628, 220, 220, 220, 1303, 554, 1339, 262, 973, 26052, 28810, 62, 11011, 9615, 475, 407, 256, 62, 35138, 198, 220, 220, 220, 256, 62, 35138, 796, 28810, 62, 11011, 9615, 13, 83, 628, 220, 220, 220, 611, 2546, 7, 3245, 62, 6759, 11, 16, 8, 14512, 2546, 7, 49535, 62, 35138, 11, 16, 8, 4049, 7203, 38469, 286, 19998, 18074, 231, 62, 35138, 2938, 284, 307, 976, 2546, 355, 2546, 7, 3245, 62, 6759, 11, 16, 8, 4943, 886, 628, 220, 220, 220, 2163, 277, 7, 83, 3712, 51, 11, 73, 3712, 5317, 8, 198, 220, 220, 220, 220, 220, 220, 220, 43458, 796, 28810, 62, 11011, 9615, 13, 259, 62, 19503, 80, 15885, 3245, 62, 6759, 58, 45299, 73, 60, 764, 9, 1033, 12195, 30420, 320, 9, 83, 8, 764, 9, 18074, 231, 62, 35138, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2446, 6624, 1058, 67, 701, 11405, 18074, 231, 62, 35138, 58, 16, 60, 6624, 6632, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43458, 58, 16, 60, 796, 43458, 58, 16, 60, 14, 51, 7, 17, 8, 1303, 523, 355, 284, 407, 751, 18074, 231, 28, 15, 256, 49535, 501, 287, 262, 19287, 286, 18074, 231, 625, 25915, 10745, 11, 10745, 60, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 43458, 198, 220, 220, 220, 886, 198, 220, 220, 220, 34062, 62, 69, 280, 5277, 62, 18908, 1373, 796, 357, 83, 11, 73, 8, 4613, 29052, 62, 18908, 1373, 7, 49535, 62, 35138, 11, 277, 7, 83, 11, 73, 828, 2446, 8, 198, 220, 220, 220, 334, 796, 685, 259, 4399, 62, 69, 280, 5277, 62, 18908, 1373, 7, 83, 11, 73, 8, 329, 256, 287, 28810, 62, 11011, 9615, 13, 83, 11, 474, 287, 34197, 7, 3245, 62, 6759, 11, 17, 15437, 628, 220, 220, 220, 1441, 1103, 12195, 84, 20679, 14415, 1303, 257, 6937, 352, 29006, 17, 14415, 8, 3568, 2233, 284, 674, 34296, 5277, 9831, 11, 475, 780, 356, 691, 779, 3967, 19998, 11, 290, 7048, 257, 1103, 640, 6737, 11, 428, 4329, 352, 14, 14415, 13, 198, 437, 198, 198, 37811, 198, 464, 34062, 286, 262, 2163, 8373, 62, 1462, 62, 2435, 357, 8807, 281, 2748, 34062, 618, 1262, 198, 25, 67, 701, 11812, 737, 775, 779, 262, 34296, 5277, 6121, 9831, 25, 198, 37, 7, 49535, 8, 796, 220, 18872, 104, 277, 7, 83, 27493, 11201, 7, 320, 9, 49535, 9, 83, 8, 288, 83, 198, 37811, 198, 8818, 640, 62, 1462, 62, 35324, 7, 3245, 62, 6759, 3712, 38176, 90, 23839, 19182, 90, 51, 5512, 23839, 19182, 90, 5377, 11141, 90, 51, 11709, 5512, 256, 62, 35138, 3712, 23839, 38469, 90, 51, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 18074, 231, 62, 35138, 3712, 23839, 19182, 90, 51, 92, 796, 256, 62, 1462, 62, 49535, 7, 83, 62, 35138, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 25278, 3712, 17875, 5623, 26950, 9615, 90, 51, 92, 796, 3862, 35277, 330, 26950, 9615, 7, 22570, 7, 51, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 28810, 62, 11011, 9615, 3712, 15642, 8374, 26950, 9615, 90, 51, 92, 796, 12948, 62, 1462, 62, 15410, 8374, 62, 11011, 9615, 7, 11011, 9615, 11, 256, 62, 35138, 11, 18074, 231, 62, 35138, 828, 198, 220, 220, 220, 220, 220, 220, 220, 2446, 28, 25, 67, 701, 8, 810, 309, 1279, 25, 27741, 43879, 628, 220, 220, 220, 1303, 554, 1339, 262, 973, 26052, 28810, 62, 11011, 9615, 475, 407, 18074, 231, 62, 35138, 198, 220, 220, 220, 18074, 231, 62, 35138, 796, 28810, 62, 11011, 9615, 13, 49535, 628, 220, 220, 220, 1303, 284, 779, 281, 25278, 2174, 287, 640, 356, 561, 761, 284, 466, 257, 28810, 3063, 2122, 11, 543, 356, 3066, 1028, 13, 198, 220, 220, 220, 277, 7, 49535, 3712, 51, 11, 474, 3712, 5317, 8, 796, 2214, 62, 6759, 58, 45299, 73, 60, 764, 9, 1033, 12195, 7, 320, 9, 49535, 8, 764, 9, 256, 62, 35138, 8, 198, 220, 220, 220, 46287, 5277, 62, 18908, 1373, 796, 357, 49535, 11, 73, 8, 4613, 29052, 62, 18908, 1373, 7, 83, 62, 35138, 11, 277, 7, 49535, 11, 73, 828, 2446, 8, 198, 220, 220, 220, 334, 5183, 796, 685, 15410, 8374, 62, 11011, 9615, 13, 259, 62, 19503, 80, 58, 72, 60, 9, 69, 280, 5277, 62, 18908, 1373, 7, 15410, 8374, 62, 11011, 9615, 13, 49535, 58, 72, 4357, 73, 8, 329, 1312, 287, 1123, 9630, 7, 15410, 8374, 62, 11011, 9615, 13, 49535, 828, 474, 287, 34197, 7, 3245, 62, 6759, 11, 17, 15437, 628, 220, 220, 220, 1441, 334, 5183, 198, 437, 198, 198, 8818, 29052, 62, 18908, 1373, 7, 34223, 3712, 23839, 19182, 90, 51, 5512, 43458, 3712, 38176, 90, 23839, 19182, 90, 51, 5512, 23839, 19182, 90, 5377, 11141, 90, 51, 11709, 5512, 2446, 796, 1058, 67, 701, 8, 810, 309, 1279, 25, 27741, 43879, 628, 220, 220, 220, 611, 2446, 6624, 1058, 9535, 46057, 47502, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 7, 16, 37498, 13664, 7, 34223, 13219, 16, 4008, 466, 2124, 72, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 9501, 58, 29992, 60, 1343, 43458, 58, 29992, 10, 16, 12962, 9, 7, 34223, 58, 29992, 10, 16, 60, 532, 2124, 82, 58, 29992, 12962, 14, 51, 7, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 2073, 361, 2446, 6624, 1058, 67, 701, 198, 220, 220, 220, 220, 220, 220, 220, 43458, 58, 16, 60, 9, 7, 34223, 58, 17, 60, 532, 2124, 82, 58, 16, 12962, 1343, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 7, 17, 25, 13664, 7, 34223, 4008, 466, 2124, 72, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43458, 58, 29992, 60, 9, 7, 34223, 58, 29992, 60, 532, 2124, 82, 58, 29992, 12, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 464, 2446, 720, 24396, 329, 29052, 11812, 318, 407, 1900, 19570, 198, 220, 220, 220, 886, 198, 437, 198 ]
2.482675
2,482
<reponame>wxuejing/AutomotiveDrivingModels.jl<gh_stars>1-10 export LaneFollowingDriver, StaticLaneFollowingDriver, PrincetonDriver, IntelligentDriverModel, ProportionalSpeedTracker, track_longitudinal! include("lane_following_drivers.jl") include("static_lane_following_drivers.jl") include("princeton_drivers.jl") include("speed_trackers.jl") include("intelligent_driver_models.jl")
[ 27, 7856, 261, 480, 29, 49345, 518, 49940, 14, 38062, 19138, 20564, 1075, 5841, 1424, 13, 20362, 27, 456, 62, 30783, 29, 16, 12, 940, 198, 39344, 198, 220, 220, 220, 15016, 14291, 32103, 11, 198, 220, 220, 220, 36125, 43, 1531, 14291, 32103, 11, 198, 220, 220, 220, 23173, 32103, 11, 198, 220, 220, 220, 49452, 32103, 17633, 11, 198, 220, 220, 220, 1041, 634, 1538, 22785, 35694, 11, 198, 220, 220, 220, 2610, 62, 6511, 29121, 0, 198, 198, 17256, 7203, 33533, 62, 27780, 278, 62, 36702, 13, 20362, 4943, 198, 17256, 7203, 12708, 62, 33533, 62, 27780, 278, 62, 36702, 13, 20362, 4943, 198, 17256, 7203, 1050, 1939, 18483, 62, 36702, 13, 20362, 4943, 198, 17256, 7203, 12287, 62, 11659, 364, 13, 20362, 4943, 198, 17256, 7203, 600, 32940, 62, 26230, 62, 27530, 13, 20362, 4943, 198 ]
2.921429
140
""" JuMPNorm Abstract type for norms to a JuMP model. """ abstract type JuMPNorm end """ L1NormLinear L1NormLinear() Add a set of linear constraints to a model to map an expression to a variable which is the L1 norm of that expression. """ struct L1NormLinear <: JuMPNorm end """ MaxNormLinear MaxNormLinear() Add a set of linear constraints to a model to map an expression to a variable which is the max norm of that expression. """ struct MaxNormLinear <: JuMPNorm end """ ScaleNorm{S<:Real,N} <: JuMPNorm ScaleNorm(scale, n) Scales result from `n` with a factor `scale`. """ struct ScaleNorm{S<:Real,N<:JuMPNorm} <: JuMPNorm scale::S n::N end """ SumNorm{N<:JuMPNorm} <: JuMPNorm Sum of `ns`. """ struct SumNorm{N<:JuMPNorm} <: JuMPNorm ns::Vector{N} end SumNorm(ns::JuMPNorm...) = SumNorm(collect(ns)) SumNorm(sns::Pair{<:Real, <:JuMPNorm}...) = SumNorm(ScaleNorm.(first.(sns), last.(sns))...) """ norm!(s::L1NormLinear, model, X) Add a set of linear constraints to a model to map `X` to an expression `Xβ€²` which is the L1 norm of `X`. Note that it only works for the objective function and only for minimization. """ function norm!(s::L1NormLinear, model, X, denom=1) # Use trick from http://lpsolve.sourceforge.net/5.1/absolute.htm to make min abs(expression) linear Xβ€² = @variable(model, [1:length(X)]) @constraint(model, X .<= Xβ€² .* denom) @constraint(model, -X .<= Xβ€² .* denom) return @expression(model, sum(Xβ€²)) end """ norm!(s::L1NormLinear, model, X) Add a set of linear constraints to a model to map `X` to a variable `Xβ€²` which is the max norm of `X`. Note that it only works for the objective function and only for minimization. """ function norm!(s::MaxNormLinear, model, X, denom=1) # Use trick from https://math.stackexchange.com/questions/2589887/how-can-the-infinity-norm-minimization-problem-be-rewritten-as-a-linear-program to make min abs(expression) linear Xβ€² = @variable(model) @constraint(model, X .<= Xβ€² .* denom) @constraint(model, -X .<= Xβ€² .* denom) return Xβ€² end function norm!(s::ScaleNorm, model, X, denom=1) Xβ€² = norm!(s.n, model, X, denom) return @expression(model, s.scale * Xβ€²) end norm!(s::SumNorm, model, X, denom=1) = mapfoldl(n -> norm!(n, model, X, denom), (Xβ€²,Xβ€³) -> @expression(model, Xβ€²+Xβ€³), s.ns, init=@expression(model, 0))
[ 37811, 198, 220, 220, 220, 12585, 7378, 35393, 198, 198, 23839, 2099, 329, 19444, 284, 257, 12585, 7378, 2746, 13, 198, 37811, 198, 397, 8709, 2099, 12585, 7378, 35393, 886, 198, 198, 37811, 198, 220, 220, 220, 406, 16, 35393, 14993, 451, 198, 220, 220, 220, 406, 16, 35393, 14993, 451, 3419, 198, 198, 4550, 257, 900, 286, 14174, 17778, 284, 257, 2746, 284, 3975, 281, 5408, 284, 257, 7885, 543, 318, 262, 406, 16, 2593, 286, 326, 5408, 13, 198, 37811, 198, 7249, 406, 16, 35393, 14993, 451, 1279, 25, 12585, 7378, 35393, 886, 198, 37811, 198, 220, 220, 220, 5436, 35393, 14993, 451, 198, 220, 220, 220, 5436, 35393, 14993, 451, 3419, 198, 198, 4550, 257, 900, 286, 14174, 17778, 284, 257, 2746, 284, 3975, 281, 5408, 284, 257, 7885, 543, 318, 262, 3509, 2593, 286, 326, 5408, 13, 198, 37811, 198, 7249, 5436, 35393, 14993, 451, 1279, 25, 12585, 7378, 35393, 886, 198, 198, 37811, 198, 220, 220, 220, 21589, 35393, 90, 50, 27, 25, 15633, 11, 45, 92, 1279, 25, 12585, 7378, 35393, 198, 220, 220, 220, 21589, 35393, 7, 9888, 11, 299, 8, 198, 198, 3351, 2040, 1255, 422, 4600, 77, 63, 351, 257, 5766, 4600, 9888, 44646, 198, 37811, 198, 7249, 21589, 35393, 90, 50, 27, 25, 15633, 11, 45, 27, 25, 33018, 7378, 35393, 92, 1279, 25, 12585, 7378, 35393, 198, 220, 220, 220, 5046, 3712, 50, 198, 220, 220, 220, 299, 3712, 45, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 5060, 35393, 90, 45, 27, 25, 33018, 7378, 35393, 92, 1279, 25, 12585, 7378, 35393, 198, 198, 13065, 286, 4600, 5907, 44646, 198, 37811, 198, 7249, 5060, 35393, 90, 45, 27, 25, 33018, 7378, 35393, 92, 1279, 25, 12585, 7378, 35393, 198, 220, 220, 220, 36545, 3712, 38469, 90, 45, 92, 198, 437, 198, 13065, 35393, 7, 5907, 3712, 33018, 7378, 35393, 23029, 796, 5060, 35393, 7, 33327, 7, 5907, 4008, 198, 13065, 35393, 7, 82, 5907, 3712, 47, 958, 90, 27, 25, 15633, 11, 1279, 25, 33018, 7378, 35393, 92, 23029, 796, 5060, 35393, 7, 29990, 35393, 12195, 11085, 12195, 82, 5907, 828, 938, 12195, 82, 5907, 4008, 23029, 628, 198, 198, 37811, 198, 220, 220, 220, 2593, 0, 7, 82, 3712, 43, 16, 35393, 14993, 451, 11, 2746, 11, 1395, 8, 198, 198, 4550, 257, 900, 286, 14174, 17778, 284, 257, 2746, 284, 3975, 4600, 55, 63, 284, 281, 5408, 4600, 55, 17478, 63, 543, 318, 262, 406, 16, 2593, 286, 4600, 55, 44646, 198, 198, 6425, 326, 340, 691, 2499, 329, 262, 9432, 2163, 290, 691, 329, 10356, 1634, 13, 198, 37811, 198, 8818, 2593, 0, 7, 82, 3712, 43, 16, 35393, 14993, 451, 11, 2746, 11, 1395, 11, 2853, 296, 28, 16, 8, 198, 220, 220, 220, 1303, 5765, 6908, 422, 2638, 1378, 75, 862, 6442, 13, 10459, 30293, 13, 3262, 14, 20, 13, 16, 14, 48546, 13, 19211, 284, 787, 949, 2352, 7, 38011, 8, 14174, 198, 220, 220, 220, 1395, 17478, 796, 2488, 45286, 7, 19849, 11, 685, 16, 25, 13664, 7, 55, 8, 12962, 198, 220, 220, 220, 2488, 1102, 2536, 2913, 7, 19849, 11, 220, 1395, 764, 27, 28, 1395, 17478, 764, 9, 2853, 296, 8, 198, 220, 220, 220, 2488, 1102, 2536, 2913, 7, 19849, 11, 532, 55, 764, 27, 28, 1395, 17478, 764, 9, 2853, 296, 8, 198, 220, 220, 220, 1441, 2488, 38011, 7, 19849, 11, 2160, 7, 55, 17478, 4008, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 2593, 0, 7, 82, 3712, 43, 16, 35393, 14993, 451, 11, 2746, 11, 1395, 8, 198, 198, 4550, 257, 900, 286, 14174, 17778, 284, 257, 2746, 284, 3975, 4600, 55, 63, 284, 257, 7885, 4600, 55, 17478, 63, 543, 318, 262, 3509, 2593, 286, 4600, 55, 44646, 198, 198, 6425, 326, 340, 691, 2499, 329, 262, 9432, 2163, 290, 691, 329, 10356, 1634, 13, 198, 37811, 198, 8818, 2593, 0, 7, 82, 3712, 11518, 35393, 14993, 451, 11, 2746, 11, 1395, 11, 2853, 296, 28, 16, 8, 198, 220, 220, 220, 1303, 5765, 6908, 422, 3740, 1378, 11018, 13, 301, 330, 365, 87, 3803, 13, 785, 14, 6138, 507, 14, 1495, 4531, 46660, 14, 4919, 12, 5171, 12, 1169, 12, 10745, 6269, 12, 27237, 12, 1084, 320, 1634, 12, 45573, 12, 1350, 12, 1809, 9108, 12, 292, 12, 64, 12, 29127, 12, 23065, 284, 787, 949, 2352, 7, 38011, 8, 14174, 198, 220, 220, 220, 1395, 17478, 796, 2488, 45286, 7, 19849, 8, 198, 220, 220, 220, 2488, 1102, 2536, 2913, 7, 19849, 11, 220, 1395, 764, 27, 28, 1395, 17478, 764, 9, 2853, 296, 8, 198, 220, 220, 220, 2488, 1102, 2536, 2913, 7, 19849, 11, 532, 55, 764, 27, 28, 1395, 17478, 764, 9, 2853, 296, 8, 198, 220, 220, 220, 1441, 1395, 17478, 198, 437, 198, 198, 8818, 2593, 0, 7, 82, 3712, 29990, 35393, 11, 2746, 11, 1395, 11, 2853, 296, 28, 16, 8, 198, 220, 220, 220, 1395, 17478, 796, 2593, 0, 7, 82, 13, 77, 11, 2746, 11, 1395, 11, 2853, 296, 8, 198, 220, 220, 220, 1441, 2488, 38011, 7, 19849, 11, 264, 13, 9888, 1635, 1395, 17478, 8, 198, 437, 198, 198, 27237, 0, 7, 82, 3712, 13065, 35393, 11, 2746, 11, 1395, 11, 2853, 296, 28, 16, 8, 796, 3975, 11379, 75, 7, 77, 4613, 2593, 0, 7, 77, 11, 2746, 11, 1395, 11, 2853, 296, 828, 357, 55, 17478, 11, 55, 12237, 8, 4613, 2488, 38011, 7, 19849, 11, 1395, 17478, 10, 55, 12237, 828, 264, 13, 5907, 11, 2315, 28, 31, 38011, 7, 19849, 11, 657, 4008, 198 ]
2.570968
930
using DelayedKalmanFilter using DelimitedFiles using Test @testset "Kalman Filter tests" begin loading_path = string(pwd(),"/data/"); protein_at_observations = readdlm(string(loading_path,"kalman_filter_test_trace_observations.csv"),','); model_parameters = [10000.0,5.0,log(2)/30,log(2)/90,1.0,1.0,29.0]; measurement_variance = 10000; a,b,c,d,e,f,g = kalman_filter(protein_at_observations,model_parameters,measurement_variance); # check arrays are correct shape @test size(a) == (protein_at_observations[end,1] + 1 + model_parameters[end],3) @test size(b) == ((protein_at_observations[end,1] + 1 + model_parameters[end])*2,(protein_at_observations[end,1] + 1 + model_parameters[end])*2) @test size(c) == (protein_at_observations[end,1] + 1 + model_parameters[end],length(model_parameters),2) @test size(d) == (length(model_parameters),(protein_at_observations[end,1] + 1 + model_parameters[end])*2,(protein_at_observations[end,1] + 1 + model_parameters[end])*2) @test size(e) == (size(protein_at_observations,1),3) @test size(f) == (size(protein_at_observations,1),length(model_parameters),2) @test size(g) == (size(protein_at_observations,1),length(model_parameters),2,2) end # using ForwardDiff # log_likelihood_gradient(model_parameters,protein_at_observations,measurement_variance) = ForwardDiff.gradient(model_parameters -> calculate_log_likelihood_at_parameter_point(model_parameters,protein_at_observations,measurement_variance),model_parameters) # log_likelihood_gradient(model_parameters,protein_at_observations,measurement_variance)
[ 3500, 4216, 16548, 41428, 805, 22417, 198, 3500, 4216, 320, 863, 25876, 198, 3500, 6208, 198, 198, 31, 9288, 2617, 366, 41428, 805, 25853, 5254, 1, 2221, 198, 220, 220, 220, 11046, 62, 6978, 796, 4731, 7, 79, 16993, 3419, 553, 14, 7890, 14, 15341, 198, 220, 220, 220, 7532, 62, 265, 62, 672, 3168, 602, 796, 1100, 25404, 76, 7, 8841, 7, 25138, 62, 6978, 553, 74, 282, 805, 62, 24455, 62, 9288, 62, 40546, 62, 672, 3168, 602, 13, 40664, 12340, 3256, 24036, 198, 220, 220, 220, 2746, 62, 17143, 7307, 796, 685, 49388, 13, 15, 11, 20, 13, 15, 11, 6404, 7, 17, 20679, 1270, 11, 6404, 7, 17, 20679, 3829, 11, 16, 13, 15, 11, 16, 13, 15, 11, 1959, 13, 15, 11208, 198, 220, 220, 220, 15558, 62, 25641, 590, 796, 33028, 26, 198, 220, 220, 220, 257, 11, 65, 11, 66, 11, 67, 11, 68, 11, 69, 11, 70, 796, 479, 282, 805, 62, 24455, 7, 48693, 62, 265, 62, 672, 3168, 602, 11, 19849, 62, 17143, 7307, 11, 1326, 5015, 434, 62, 25641, 590, 1776, 628, 220, 220, 220, 1303, 2198, 26515, 389, 3376, 5485, 198, 220, 220, 220, 2488, 9288, 2546, 7, 64, 8, 6624, 357, 48693, 62, 265, 62, 672, 3168, 602, 58, 437, 11, 16, 60, 1343, 352, 1343, 2746, 62, 17143, 7307, 58, 437, 4357, 18, 8, 198, 220, 220, 220, 2488, 9288, 2546, 7, 65, 8, 6624, 14808, 48693, 62, 265, 62, 672, 3168, 602, 58, 437, 11, 16, 60, 1343, 352, 1343, 2746, 62, 17143, 7307, 58, 437, 12962, 9, 17, 11, 7, 48693, 62, 265, 62, 672, 3168, 602, 58, 437, 11, 16, 60, 1343, 352, 1343, 2746, 62, 17143, 7307, 58, 437, 12962, 9, 17, 8, 198, 220, 220, 220, 2488, 9288, 2546, 7, 66, 8, 6624, 357, 48693, 62, 265, 62, 672, 3168, 602, 58, 437, 11, 16, 60, 1343, 352, 1343, 2746, 62, 17143, 7307, 58, 437, 4357, 13664, 7, 19849, 62, 17143, 7307, 828, 17, 8, 198, 220, 220, 220, 2488, 9288, 2546, 7, 67, 8, 6624, 357, 13664, 7, 19849, 62, 17143, 7307, 828, 7, 48693, 62, 265, 62, 672, 3168, 602, 58, 437, 11, 16, 60, 1343, 352, 1343, 2746, 62, 17143, 7307, 58, 437, 12962, 9, 17, 11, 7, 48693, 62, 265, 62, 672, 3168, 602, 58, 437, 11, 16, 60, 1343, 352, 1343, 2746, 62, 17143, 7307, 58, 437, 12962, 9, 17, 8, 198, 220, 220, 220, 2488, 9288, 2546, 7, 68, 8, 6624, 357, 7857, 7, 48693, 62, 265, 62, 672, 3168, 602, 11, 16, 828, 18, 8, 198, 220, 220, 220, 2488, 9288, 2546, 7, 69, 8, 6624, 357, 7857, 7, 48693, 62, 265, 62, 672, 3168, 602, 11, 16, 828, 13664, 7, 19849, 62, 17143, 7307, 828, 17, 8, 198, 220, 220, 220, 2488, 9288, 2546, 7, 70, 8, 6624, 357, 7857, 7, 48693, 62, 265, 62, 672, 3168, 602, 11, 16, 828, 13664, 7, 19849, 62, 17143, 7307, 828, 17, 11, 17, 8, 198, 437, 198, 198, 2, 1262, 19530, 28813, 198, 2, 2604, 62, 2339, 11935, 62, 49607, 7, 19849, 62, 17143, 7307, 11, 48693, 62, 265, 62, 672, 3168, 602, 11, 1326, 5015, 434, 62, 25641, 590, 8, 796, 19530, 28813, 13, 49607, 7, 19849, 62, 17143, 7307, 4613, 15284, 62, 6404, 62, 2339, 11935, 62, 265, 62, 17143, 2357, 62, 4122, 7, 19849, 62, 17143, 7307, 11, 48693, 62, 265, 62, 672, 3168, 602, 11, 1326, 5015, 434, 62, 25641, 590, 828, 19849, 62, 17143, 7307, 8, 198, 2, 2604, 62, 2339, 11935, 62, 49607, 7, 19849, 62, 17143, 7307, 11, 48693, 62, 265, 62, 672, 3168, 602, 11, 1326, 5015, 434, 62, 25641, 590, 8, 198 ]
2.595779
616
module AsyncFinalizersTests include("utils.jl") include("test_bags.jl") include("test_finalizers.jl") include("test_chaos.jl") end # module AsyncFinalizersTests
[ 21412, 1081, 13361, 19006, 11341, 51, 3558, 198, 198, 17256, 7203, 26791, 13, 20362, 4943, 198, 17256, 7203, 9288, 62, 34005, 13, 20362, 4943, 198, 17256, 7203, 9288, 62, 20311, 11341, 13, 20362, 4943, 198, 17256, 7203, 9288, 62, 354, 7495, 13, 20362, 4943, 198, 198, 437, 220, 1303, 8265, 1081, 13361, 19006, 11341, 51, 3558, 198 ]
2.877193
57
using MOCNeutronTransport @testset "QuadraticSegment_2D" begin for F in [Float32, Float64, BigFloat] @testset "Constructors" begin # Constructor x⃗₁ = Point_2D{F}(0, 0) xβƒ—β‚‚ = Point_2D{F}(2, 0) x⃗₃ = Point_2D{F}(1, 1) q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) @test q.points == SVector(x⃗₁, xβƒ—β‚‚, x⃗₃) end @testset "Methods" begin # interpolation x⃗₁ = Point_2D{F}(0, 0) xβƒ—β‚‚ = Point_2D{F}(2, 0) x⃗₃ = Point_2D{F}(1, 1) q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) for r = LinRange{F}(0, 1, 11) @test q(r) β‰ˆ Point_2D{F}(2r, -(2r)^2 + 4r) end # gradient for r = LinRange{F}(0, 1, 11) @test βˆ‡(q, r) β‰ˆ Point_2D{F}(2, -(8r) + 4) end # arclength x⃗₁ = Point_2D{F}(0, 0) xβƒ—β‚‚ = Point_2D{F}(2, 0) x⃗₃ = Point_2D{F}(1, 0) q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) # straight edge @test abs(arclength(q) - 2) < 1.0e-6 # curved x⃗₃ = Point_2D{F}(1, 1) q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) @test abs(arclength(q) - 2.9578857151786138) < 1.0e-6 # boundingbox x⃗₁ = Point_2D{F}(0, 0) xβƒ—β‚‚ = Point_2D{F}(2, 0) x⃗₃ = Point_2D{F}(1, 1) q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) bb = boundingbox(q) @test bb.xmin β‰ˆ 0 @test bb.ymin β‰ˆ 0 @test bb.xmax β‰ˆ 2 @test bb.ymax β‰ˆ 1 x⃗₁ = Point_2D{F}(0, 0) xβƒ—β‚‚ = Point_2D{F}(2, 2) x⃗₃ = Point_2D{F}(1, 1) q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) bb = boundingbox(q) @test bb.xmin β‰ˆ 0 @test bb.ymin β‰ˆ 0 @test bb.xmax β‰ˆ 2 @test bb.ymax β‰ˆ 2 x⃗₁ = Point_2D{F}(0, 0) xβƒ—β‚‚ = Point_2D{F}(2, 0) x⃗₃ = Point_2D{F}(2.1, 1) q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) bb = boundingbox(q) @test bb.xmin β‰ˆ 0 @test bb.ymin β‰ˆ 0 @test bb.xmax β‰ˆ 2.3272727272727276 @test bb.ymax β‰ˆ 1 # isstraight x⃗₁ = Point_2D{F}(0, 0) xβƒ—β‚‚ = Point_2D{F}(2, 0) x⃗₃ = Point_2D{F}(1, 0) q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) @test isstraight(q) xβƒ—β‚‚ = Point_2D{F}(2, 0.0001) q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) @test !isstraight(q) # laplacian x⃗₁ = Point_2D{F}(0, 0) xβƒ—β‚‚ = Point_2D{F}(2, 0) x⃗₃ = Point_2D{F}(1, 1) q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) p = βˆ‡Β²(q, 0) @test p.x β‰ˆ 0 @test p.y β‰ˆ -8 p = βˆ‡Β²(q, 1) @test p.x β‰ˆ 0 @test p.y β‰ˆ -8 # # closest_point # x⃗₁ = Point_2D{F}(0, 0) # xβƒ—β‚‚ = Point_2D{F}(2, 0) # x⃗₃ = Point_2D{F}(1, 1) # q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) # p = Point_2D{F}(1, 1.1) # r, p_c = closest_point(p, q) # @test x⃗₃ β‰ˆ p_c # p = Point_2D{F}(-0.1, 0) # r, p_c = closest_point(p, q) # @test x⃗₁ β‰ˆ p_c # # # intersect # x⃗₁ = Point_2D{F}(0, 0) # xβƒ—β‚‚ = Point_2D{F}(2, 0) # x⃗₃ = Point_2D{F}(1, 1) # xβƒ—β‚„ = Point_2D{F}(1, 0) # xβƒ—β‚… = Point_2D{F}(1, 2) # # # 1 intersection # q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) # l = LineSegment_2D(xβƒ—β‚„, xβƒ—β‚…) # npoints, (point1, point2) = intersect(l, q) # @test npoints == 1 # @test point1 β‰ˆ Point_2D{F}(1, 1) # # # 2 intersections # xβƒ—β‚„ = Point_2D{F}(0, 3//4) # xβƒ—β‚… = Point_2D{F}(2, 3//4) # l = LineSegment_2D(xβƒ—β‚„, xβƒ—β‚…) # npoints, (point1, point2) = l ∩ q # @test npoints == 2 # @test point1 β‰ˆ Point_2D{F}(1//2, 3//4) # @test point2 β‰ˆ Point_2D{F}(3//2, 3//4) # # # 0 intersections # xβƒ—β‚„ = Point_2D{F}(0, 3) # xβƒ—β‚… = Point_2D{F}(2, 3) # l = LineSegment_2D(xβƒ—β‚„, xβƒ—β‚…) # npoints, (point1, point2) = intersect(l, q) # @test npoints == 0 # @test point1 β‰ˆ Point_2D{F}(0) # @test point2 β‰ˆ Point_2D{F}(0) # # # is_left # x⃗₁ = Point_2D{F}(0, 0) # xβƒ—β‚‚ = Point_2D{F}(2, 0) # x⃗₃ = Point_2D{F}(1, 1) # q = QuadraticSegment_2D(x⃗₁, xβƒ—β‚‚, x⃗₃) # @test !is_left(Point_2D{F}(1, 0), q) # @test is_left(Point_2D{F}(1, 2), q) end end end
[ 3500, 337, 4503, 8199, 315, 1313, 8291, 634, 198, 31, 9288, 2617, 366, 4507, 41909, 1512, 41030, 434, 62, 17, 35, 1, 2221, 198, 220, 220, 220, 329, 376, 287, 685, 43879, 2624, 11, 48436, 2414, 11, 4403, 43879, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 366, 42316, 669, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 28407, 273, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10662, 13, 13033, 6624, 20546, 9250, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 366, 46202, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 39555, 341, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 374, 796, 5164, 17257, 90, 37, 92, 7, 15, 11, 352, 11, 1367, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 10662, 7, 81, 8, 15139, 230, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 81, 11, 532, 7, 17, 81, 8, 61, 17, 1343, 604, 81, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 31312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 374, 796, 5164, 17257, 90, 37, 92, 7, 15, 11, 352, 11, 1367, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 18872, 229, 7, 80, 11, 374, 8, 15139, 230, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 532, 7, 23, 81, 8, 1343, 604, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 610, 565, 3286, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 3892, 5743, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2352, 7, 283, 565, 3286, 7, 80, 8, 532, 362, 8, 1279, 352, 13, 15, 68, 12, 21, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 26929, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2352, 7, 283, 565, 3286, 7, 80, 8, 532, 362, 13, 24, 3553, 3459, 3553, 1314, 1558, 4521, 20107, 8, 1279, 352, 13, 15, 68, 12, 21, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5421, 278, 3524, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 65, 796, 5421, 278, 3524, 7, 80, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 87, 1084, 15139, 230, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 88, 1084, 15139, 230, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 87, 9806, 15139, 230, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 4948, 897, 15139, 230, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 65, 796, 5421, 278, 3524, 7, 80, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 87, 1084, 15139, 230, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 88, 1084, 15139, 230, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 87, 9806, 15139, 230, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 4948, 897, 15139, 230, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 13, 16, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 65, 796, 5421, 278, 3524, 7, 80, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 87, 1084, 15139, 230, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 88, 1084, 15139, 230, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 87, 9806, 15139, 230, 362, 13, 34159, 1983, 1983, 1983, 1983, 1983, 27988, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 275, 65, 13, 4948, 897, 15139, 230, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 318, 42729, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 42729, 7, 80, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 13, 18005, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 5145, 271, 42729, 7, 80, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 8591, 489, 330, 666, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 796, 18872, 229, 31185, 7, 80, 11, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 279, 13, 87, 15139, 230, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 279, 13, 88, 15139, 230, 532, 23, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 796, 18872, 229, 31185, 7, 80, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 279, 13, 87, 15139, 230, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 279, 13, 88, 15139, 230, 532, 23, 628, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 11706, 62, 4122, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 13, 16, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 11, 279, 62, 66, 796, 11706, 62, 4122, 7, 79, 11, 10662, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 158, 225, 245, 158, 224, 225, 15139, 230, 279, 62, 66, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 796, 6252, 62, 17, 35, 90, 37, 92, 32590, 15, 13, 16, 11, 657, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 11, 279, 62, 66, 796, 11706, 62, 4122, 7, 79, 11, 10662, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 158, 225, 245, 158, 224, 223, 15139, 230, 279, 62, 66, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 36177, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 226, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 657, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 227, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 362, 8, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 352, 16246, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 796, 6910, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 226, 11, 2124, 158, 225, 245, 158, 224, 227, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 13033, 11, 357, 4122, 16, 11, 966, 17, 8, 796, 36177, 7, 75, 11, 10662, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 299, 13033, 6624, 352, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 966, 16, 15139, 230, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 8, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 362, 42085, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 226, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 513, 1003, 19, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 227, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 513, 1003, 19, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 796, 6910, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 226, 11, 2124, 158, 225, 245, 158, 224, 227, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 13033, 11, 357, 4122, 16, 11, 966, 17, 8, 796, 300, 18872, 102, 10662, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 299, 13033, 6624, 362, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 966, 16, 15139, 230, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 1003, 17, 11, 513, 1003, 19, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 966, 17, 15139, 230, 6252, 62, 17, 35, 90, 37, 92, 7, 18, 1003, 17, 11, 513, 1003, 19, 8, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 657, 42085, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 226, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 513, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 227, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 513, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 796, 6910, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 226, 11, 2124, 158, 225, 245, 158, 224, 227, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 13033, 11, 357, 4122, 16, 11, 966, 17, 8, 796, 36177, 7, 75, 11, 10662, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 299, 13033, 6624, 657, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 966, 16, 15139, 230, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 966, 17, 15139, 230, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 8, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 318, 62, 9464, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 223, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 15, 11, 657, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 224, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 17, 11, 657, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 158, 225, 245, 158, 224, 225, 796, 6252, 62, 17, 35, 90, 37, 92, 7, 16, 11, 352, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 796, 20648, 81, 1512, 41030, 434, 62, 17, 35, 7, 87, 158, 225, 245, 158, 224, 223, 11, 2124, 158, 225, 245, 158, 224, 224, 11, 2124, 158, 225, 245, 158, 224, 225, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 5145, 271, 62, 9464, 7, 12727, 62, 17, 35, 90, 37, 92, 7, 16, 11, 657, 828, 10662, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 318, 62, 9464, 7, 12727, 62, 17, 35, 90, 37, 92, 7, 16, 11, 362, 828, 10662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198 ]
1.29209
3,742
<filename>src/distributions/exponential.jl # # IID case # function min(Xs::IIDRandomSequence{Continuous,Exponential}) N,Ξ» = length(Xs),rate(Xs.d) return Exponential(1./(N*Ξ»)) end function spacing(Xs::IIDRandomSequence,space::Integer) N,Ξ» = length(Xs),rate(Xs.d) return Exponential(1./((N-space+1)*Ξ»s)) end # # INID case # function min(Xs::INIDRandomSequence{Continuous,Exponential}) N,Ξ»s = length(Xs),[rate(X) for X in Xs.distributions] return Exponential(1./sum(Ξ»s)) end
[ 27, 34345, 29, 10677, 14, 17080, 2455, 507, 14, 11201, 35470, 13, 20362, 198, 2, 198, 2, 314, 2389, 1339, 198, 2, 198, 8818, 949, 7, 55, 82, 3712, 40, 2389, 29531, 44015, 594, 90, 17875, 5623, 11, 16870, 35470, 30072, 198, 220, 399, 11, 39377, 796, 4129, 7, 55, 82, 828, 4873, 7, 55, 82, 13, 67, 8, 198, 220, 1441, 5518, 35470, 7, 16, 19571, 7, 45, 9, 39377, 4008, 198, 437, 198, 198, 8818, 31050, 7, 55, 82, 3712, 40, 2389, 29531, 44015, 594, 11, 13200, 3712, 46541, 8, 198, 220, 399, 11, 39377, 796, 4129, 7, 55, 82, 828, 4873, 7, 55, 82, 13, 67, 8, 198, 220, 1441, 5518, 35470, 7, 16, 19571, 19510, 45, 12, 13200, 10, 16, 27493, 39377, 82, 4008, 198, 437, 198, 198, 2, 198, 2, 3268, 2389, 1339, 198, 2, 198, 8818, 949, 7, 55, 82, 3712, 1268, 2389, 29531, 44015, 594, 90, 17875, 5623, 11, 16870, 35470, 30072, 198, 220, 399, 11, 39377, 82, 796, 4129, 7, 55, 82, 828, 58, 4873, 7, 55, 8, 329, 1395, 287, 1395, 82, 13, 17080, 2455, 507, 60, 198, 220, 1441, 5518, 35470, 7, 16, 19571, 16345, 7, 39377, 82, 4008, 198, 437, 198 ]
2.405941
202
#= https://github.com/JuliaReinforcementLearning/ReinforcementLearning.jl/blob/master/src/ReinforcementLearningZoo/src/algorithms/cfr/deep_cfr.jl =# function CounterfactualRegret.train!(sol::DeepCFRSolver, N::Int; show_progress::Bool = false, cb = () -> ()) cb = Flux.Optimise.runall(cb) initialize!(sol) h0 = initialhist(sol.game) prog = Progress(N; enabled=show_progress) for t in 1:N cb() for p in 1:2 for _ in 1:sol.traversals sol.traverser(sol, h0, p, sol.T) end train_value!(sol, p) end next!(prog) sol.T += 1.0f0 end train_policy!(sol) end function initialize!(nn, init=Flux.glorot_normal) for p in Flux.params(nn) p .= init(size(p)...) end end """ reset advantage networks and empty memory buffers """ function initialize!(sol::DeepCFRSolver) initialize!.(sol.V) initialize!(sol.Ξ ) end function train_value!(sol::DeepCFRSolver, p::Int) initialize!(sol.V[p]) opt = deepcopy(sol.advantage_opt) train_net!( sol.gpu, sol.V[p], sol.Mv[p].I, sol.Mv[p].r, sol.Mv[p].t, sol.batch_size, sol.value_batches, opt ) end function train_policy!(sol::DeepCFRSolver, batches::Int=sol.strategy_batches, opt=sol.strategy_opt) train_net!( sol.gpu, sol.Ξ , sol.MΟ€.I, sol.MΟ€.Οƒ, sol.MΟ€.t, sol.batch_size, sol.strategy_batches, opt ) end function train_net!( ::Val{true}, dest_net, x_data, y_data, w, batch_size, n_batches, opt) isempty(x_data) && return nothing src_net = dest_net |> gpu input_size = length(first(x_data)) output_size = length(first(y_data)) p = Flux.params(src_net) _X = Matrix{Float32}(undef, input_size, batch_size) _Y = Matrix{Float32}(undef, output_size, batch_size) sample_idxs = Vector{Int}(undef, batch_size) idxs = 1:length(w) X = _X |> gpu Y = _Y |> gpu W = Vector{Float32}(undef, batch_size) |> gpu for i in 1:n_batches rand!(sample_idxs, idxs) fillmat!(_X, x_data, sample_idxs) fillmat!(_Y, y_data, sample_idxs) copyto!(X, _X) copyto!(Y, _Y) copyto!(W, w[sample_idxs]) Loss = NetLoss(src_net, X, Y, W) gs = gradient(Loss, p) Flux.update!(opt, p::Flux.Params, gs) end Flux.loadmodel!(dest_net, src_net) nothing end function train_net!( ::Val{false}, net, x_data, y_data, w, batch_size, n_batches, opt) isempty(x_data) && return nothing input_size = length(first(x_data)) output_size = length(first(y_data)) X = Matrix{Float32}(undef, input_size, batch_size) Y = Matrix{Float32}(undef, output_size, batch_size) W = Vector{Float32}(undef, batch_size) sample_idxs = Vector{Int}(undef, batch_size) idxs = 1:length(w) Loss = NetLoss(net, X, Y, W) p = Flux.params(net) for i in 1:n_batches rand!(sample_idxs, idxs) fillmat!(X::Matrix{Float32}, x_data, sample_idxs) fillmat!(Y::Matrix{Float32}, y_data, sample_idxs) copyto!(W::Vector{Float32}, @view w[sample_idxs]) gs = gradient(Loss, p) Flux.update!(opt, p::Flux.Params, gs) end nothing end train_net!(args...) = train_net!(Val(false), args...) function fillmat!(mat::AbstractMatrix, vecvec::AbstractVector, idxs) @inbounds for i in 1:size(mat, 2) mat[:,i] .= vecvec[idxs[i]] end return mat end """ Weighted mean squared error """ wmse(yΜ‚,y,w) = sum(abs2.(yΜ‚ .- y)*w ./ length(w)) struct NetLoss{NN,M,WGT} net::NN X::M Y::M W::WGT end (n::NetLoss)() = wmse(n.net(n.X), n.Y, n.W)
[ 2, 28, 198, 5450, 1378, 12567, 13, 785, 14, 16980, 544, 3041, 259, 13442, 41730, 14, 3041, 259, 13442, 41730, 13, 20362, 14, 2436, 672, 14, 9866, 14, 10677, 14, 3041, 259, 13442, 41730, 57, 2238, 14, 10677, 14, 282, 7727, 907, 14, 66, 8310, 14, 22089, 62, 66, 8310, 13, 20362, 198, 46249, 198, 8818, 15034, 22584, 723, 8081, 1186, 13, 27432, 0, 7, 34453, 3712, 29744, 22495, 6998, 14375, 11, 399, 3712, 5317, 26, 905, 62, 33723, 3712, 33, 970, 796, 3991, 11, 269, 65, 796, 7499, 4613, 32865, 198, 220, 220, 220, 269, 65, 796, 1610, 2821, 13, 27871, 320, 786, 13, 5143, 439, 7, 21101, 8, 198, 220, 220, 220, 41216, 0, 7, 34453, 8, 198, 220, 220, 220, 289, 15, 796, 4238, 10034, 7, 34453, 13, 6057, 8, 198, 220, 220, 220, 1172, 796, 18387, 7, 45, 26, 9343, 28, 12860, 62, 33723, 8, 198, 220, 220, 220, 329, 256, 287, 352, 25, 45, 198, 220, 220, 220, 220, 220, 220, 220, 269, 65, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 279, 287, 352, 25, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 352, 25, 34453, 13, 9535, 690, 874, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 9535, 690, 263, 7, 34453, 11, 289, 15, 11, 279, 11, 1540, 13, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4512, 62, 8367, 0, 7, 34453, 11, 279, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1306, 0, 7, 1676, 70, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 51, 15853, 352, 13, 15, 69, 15, 198, 220, 220, 220, 886, 198, 220, 220, 220, 4512, 62, 30586, 0, 7, 34453, 8, 198, 437, 198, 198, 8818, 41216, 0, 7, 20471, 11, 2315, 28, 37, 22564, 13, 70, 4685, 313, 62, 11265, 8, 198, 220, 220, 220, 329, 279, 287, 1610, 2821, 13, 37266, 7, 20471, 8, 198, 220, 220, 220, 220, 220, 220, 220, 279, 764, 28, 2315, 7, 7857, 7, 79, 8, 23029, 198, 220, 220, 220, 886, 198, 437, 198, 198, 37811, 198, 42503, 4621, 7686, 290, 6565, 4088, 39334, 198, 37811, 198, 8818, 41216, 0, 7, 34453, 3712, 29744, 22495, 6998, 14375, 8, 198, 220, 220, 220, 41216, 0, 12195, 34453, 13, 53, 8, 198, 220, 220, 220, 41216, 0, 7, 34453, 13, 138, 254, 8, 198, 437, 198, 198, 8818, 4512, 62, 8367, 0, 7, 34453, 3712, 29744, 22495, 6998, 14375, 11, 279, 3712, 5317, 8, 198, 220, 220, 220, 41216, 0, 7, 34453, 13, 53, 58, 79, 12962, 198, 220, 220, 220, 2172, 796, 2769, 30073, 7, 34453, 13, 13461, 496, 62, 8738, 8, 198, 220, 220, 220, 4512, 62, 3262, 0, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 46999, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 53, 58, 79, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 44, 85, 58, 79, 4083, 40, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 44, 85, 58, 79, 4083, 81, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 44, 85, 58, 79, 4083, 83, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 43501, 62, 7857, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 8367, 62, 8664, 2052, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2172, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 4512, 62, 30586, 0, 7, 34453, 3712, 29744, 22495, 6998, 14375, 11, 37830, 3712, 5317, 28, 34453, 13, 2536, 4338, 62, 8664, 2052, 11, 2172, 28, 34453, 13, 2536, 4338, 62, 8738, 8, 198, 220, 220, 220, 4512, 62, 3262, 0, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 46999, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 138, 254, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 44, 46582, 13, 40, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 44, 46582, 13, 38392, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 44, 46582, 13, 83, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 43501, 62, 7857, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 13, 2536, 4338, 62, 8664, 2052, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2172, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 8818, 4512, 62, 3262, 0, 7, 198, 220, 220, 220, 7904, 7762, 90, 7942, 5512, 198, 220, 220, 220, 2244, 62, 3262, 11, 198, 220, 220, 220, 2124, 62, 7890, 11, 198, 220, 220, 220, 331, 62, 7890, 11, 198, 220, 220, 220, 266, 11, 198, 220, 220, 220, 15458, 62, 7857, 11, 198, 220, 220, 220, 299, 62, 8664, 2052, 11, 198, 220, 220, 220, 2172, 8, 628, 220, 220, 220, 318, 28920, 7, 87, 62, 7890, 8, 11405, 1441, 2147, 198, 220, 220, 220, 12351, 62, 3262, 796, 2244, 62, 3262, 930, 29, 308, 19944, 628, 220, 220, 220, 5128, 62, 7857, 796, 4129, 7, 11085, 7, 87, 62, 7890, 4008, 198, 220, 220, 220, 5072, 62, 7857, 796, 4129, 7, 11085, 7, 88, 62, 7890, 4008, 198, 220, 220, 220, 279, 796, 1610, 2821, 13, 37266, 7, 10677, 62, 3262, 8, 628, 220, 220, 220, 4808, 55, 796, 24936, 90, 43879, 2624, 92, 7, 917, 891, 11, 5128, 62, 7857, 11, 15458, 62, 7857, 8, 198, 220, 220, 220, 4808, 56, 796, 24936, 90, 43879, 2624, 92, 7, 917, 891, 11, 5072, 62, 7857, 11, 15458, 62, 7857, 8, 198, 220, 220, 220, 6291, 62, 312, 34223, 796, 20650, 90, 5317, 92, 7, 917, 891, 11, 15458, 62, 7857, 8, 198, 220, 220, 220, 4686, 34223, 796, 352, 25, 13664, 7, 86, 8, 628, 220, 220, 220, 1395, 796, 4808, 55, 930, 29, 308, 19944, 198, 220, 220, 220, 575, 796, 4808, 56, 930, 29, 308, 19944, 198, 220, 220, 220, 370, 796, 20650, 90, 43879, 2624, 92, 7, 917, 891, 11, 15458, 62, 7857, 8, 930, 29, 308, 19944, 628, 220, 220, 220, 329, 1312, 287, 352, 25, 77, 62, 8664, 2052, 198, 220, 220, 220, 220, 220, 220, 220, 43720, 0, 7, 39873, 62, 312, 34223, 11, 4686, 34223, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6070, 6759, 0, 28264, 55, 11, 2124, 62, 7890, 11, 6291, 62, 312, 34223, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6070, 6759, 0, 28264, 56, 11, 331, 62, 7890, 11, 6291, 62, 312, 34223, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 1462, 0, 7, 55, 11, 4808, 55, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 1462, 0, 7, 56, 11, 4808, 56, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 1462, 0, 7, 54, 11, 266, 58, 39873, 62, 312, 34223, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 22014, 796, 3433, 43, 793, 7, 10677, 62, 3262, 11, 1395, 11, 575, 11, 370, 8, 628, 220, 220, 220, 220, 220, 220, 220, 308, 82, 796, 31312, 7, 43, 793, 11, 279, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1610, 2821, 13, 19119, 0, 7, 8738, 11, 279, 3712, 37, 22564, 13, 10044, 4105, 11, 308, 82, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1610, 2821, 13, 2220, 19849, 0, 7, 16520, 62, 3262, 11, 12351, 62, 3262, 8, 198, 220, 220, 220, 2147, 198, 437, 198, 198, 8818, 4512, 62, 3262, 0, 7, 198, 220, 220, 220, 7904, 7762, 90, 9562, 5512, 198, 220, 220, 220, 2010, 11, 198, 220, 220, 220, 2124, 62, 7890, 11, 198, 220, 220, 220, 331, 62, 7890, 11, 198, 220, 220, 220, 266, 11, 198, 220, 220, 220, 15458, 62, 7857, 11, 198, 220, 220, 220, 299, 62, 8664, 2052, 11, 198, 220, 220, 220, 2172, 8, 628, 220, 220, 220, 318, 28920, 7, 87, 62, 7890, 8, 11405, 1441, 2147, 198, 220, 220, 220, 5128, 62, 7857, 796, 4129, 7, 11085, 7, 87, 62, 7890, 4008, 198, 220, 220, 220, 5072, 62, 7857, 796, 4129, 7, 11085, 7, 88, 62, 7890, 4008, 628, 220, 220, 220, 1395, 796, 24936, 90, 43879, 2624, 92, 7, 917, 891, 11, 5128, 62, 7857, 11, 15458, 62, 7857, 8, 198, 220, 220, 220, 575, 796, 24936, 90, 43879, 2624, 92, 7, 917, 891, 11, 5072, 62, 7857, 11, 15458, 62, 7857, 8, 198, 220, 220, 220, 370, 796, 20650, 90, 43879, 2624, 92, 7, 917, 891, 11, 15458, 62, 7857, 8, 198, 220, 220, 220, 6291, 62, 312, 34223, 796, 20650, 90, 5317, 92, 7, 917, 891, 11, 15458, 62, 7857, 8, 198, 220, 220, 220, 4686, 34223, 796, 352, 25, 13664, 7, 86, 8, 628, 220, 220, 220, 22014, 796, 3433, 43, 793, 7, 3262, 11, 1395, 11, 575, 11, 370, 8, 198, 220, 220, 220, 279, 796, 1610, 2821, 13, 37266, 7, 3262, 8, 628, 220, 220, 220, 329, 1312, 287, 352, 25, 77, 62, 8664, 2052, 198, 220, 220, 220, 220, 220, 220, 220, 43720, 0, 7, 39873, 62, 312, 34223, 11, 4686, 34223, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6070, 6759, 0, 7, 55, 3712, 46912, 90, 43879, 2624, 5512, 2124, 62, 7890, 11, 6291, 62, 312, 34223, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6070, 6759, 0, 7, 56, 3712, 46912, 90, 43879, 2624, 5512, 331, 62, 7890, 11, 6291, 62, 312, 34223, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 1462, 0, 7, 54, 3712, 38469, 90, 43879, 2624, 5512, 2488, 1177, 266, 58, 39873, 62, 312, 34223, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 308, 82, 796, 31312, 7, 43, 793, 11, 279, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1610, 2821, 13, 19119, 0, 7, 8738, 11, 279, 3712, 37, 22564, 13, 10044, 4105, 11, 308, 82, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2147, 198, 437, 198, 198, 27432, 62, 3262, 0, 7, 22046, 23029, 796, 4512, 62, 3262, 0, 7, 7762, 7, 9562, 828, 26498, 23029, 198, 198, 8818, 6070, 6759, 0, 7, 6759, 3712, 23839, 46912, 11, 43030, 35138, 3712, 23839, 38469, 11, 4686, 34223, 8, 198, 220, 220, 220, 2488, 259, 65, 3733, 329, 1312, 287, 352, 25, 7857, 7, 6759, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2603, 58, 45299, 72, 60, 764, 28, 43030, 35138, 58, 312, 34223, 58, 72, 11907, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2603, 198, 437, 198, 198, 37811, 198, 25844, 276, 1612, 44345, 4049, 198, 37811, 198, 26377, 325, 7, 88, 136, 224, 11, 88, 11, 86, 8, 796, 2160, 7, 8937, 17, 12195, 88, 136, 224, 764, 12, 331, 27493, 86, 24457, 4129, 7, 86, 4008, 198, 198, 7249, 3433, 43, 793, 90, 6144, 11, 44, 11, 54, 19555, 92, 198, 220, 220, 220, 2010, 3712, 6144, 198, 220, 220, 220, 1395, 3712, 44, 198, 220, 220, 220, 575, 3712, 44, 198, 220, 220, 220, 370, 3712, 54, 19555, 198, 437, 198, 198, 7, 77, 3712, 7934, 43, 793, 8, 3419, 796, 266, 76, 325, 7, 77, 13, 3262, 7, 77, 13, 55, 828, 299, 13, 56, 11, 299, 13, 54, 8, 198 ]
1.976563
1,920
precompile(Ipopt.eval_jac_g_wrapper, (Int32, Ptr{Float64}, Int32, Int32, Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Float64}, Ptr{Void},)) precompile(Ipopt.eval_h_wrapper, (Int32, Ptr{Float64}, Int32, Float64, Int32, Ptr{Float64}, Int32, Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Float64}, Ptr{Void},)) precompile(Ipopt.createProblem, (Int64, Array{Float64, 1}, Array{Float64, 1}, Int64, Array{Float64, 1}, Array{Float64, 1}, Int64, Int64, Function, Function, Function, Function, Function,)) precompile(Ipopt.eval_f_wrapper, (Int32, Ptr{Float64}, Int32, Ptr{Float64}, Ptr{Void},)) precompile(Ipopt.eval_g_wrapper, (Int32, Ptr{Float64}, Int32, Int32, Ptr{Float64}, Ptr{Void},)) precompile(Ipopt.eval_grad_f_wrapper, (Int32, Ptr{Float64}, Int32, Ptr{Float64}, Ptr{Void},)) precompile(Ipopt.call, (Type{Ipopt.IpoptProblem}, Ptr{Void}, Int64, Int64, Function, Function, Function, Function, Function,)) precompile(Ipopt.call, (Array{Any, 1}, Type{Ipopt.IpoptMathProgModel},)) precompile(Ipopt.optimize!, (Ipopt.IpoptMathProgModel,)) precompile(Ipopt.call, (Array{Any, 1}, Type{Ipopt.IpoptSolver},)) precompile(Ipopt.addOption, (Ipopt.IpoptProblem, ASCIIString, ASCIIString,)) precompile(Ipopt.NonlinearModel, (Ipopt.IpoptSolver,)) precompile(Ipopt.status, (Ipopt.IpoptMathProgModel,)) precompile(Ipopt.solveProblem, (Ipopt.IpoptProblem,)) precompile(Ipopt.call, (Type{Ipopt.IpoptMathProgModel},)) precompile(Ipopt.addOption, (Ipopt.IpoptProblem, ASCIIString, Int64,)) precompile(Ipopt.getobjval, (Ipopt.IpoptMathProgModel,)) precompile(Ipopt.setwarmstart!, (Ipopt.IpoptMathProgModel, Array{Float64, 1},)) precompile(Ipopt.getsolution, (Ipopt.IpoptMathProgModel,))
[ 3866, 5589, 576, 7, 40, 79, 8738, 13, 18206, 62, 30482, 62, 70, 62, 48553, 11, 357, 5317, 2624, 11, 350, 2213, 90, 43879, 2414, 5512, 2558, 2624, 11, 2558, 2624, 11, 2558, 2624, 11, 350, 2213, 90, 5317, 2624, 5512, 350, 2213, 90, 5317, 2624, 5512, 350, 2213, 90, 43879, 2414, 5512, 350, 2213, 90, 53, 1868, 5512, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 18206, 62, 71, 62, 48553, 11, 357, 5317, 2624, 11, 350, 2213, 90, 43879, 2414, 5512, 2558, 2624, 11, 48436, 2414, 11, 2558, 2624, 11, 350, 2213, 90, 43879, 2414, 5512, 2558, 2624, 11, 2558, 2624, 11, 350, 2213, 90, 5317, 2624, 5512, 350, 2213, 90, 5317, 2624, 5512, 350, 2213, 90, 43879, 2414, 5512, 350, 2213, 90, 53, 1868, 5512, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 17953, 40781, 11, 357, 5317, 2414, 11, 15690, 90, 43879, 2414, 11, 352, 5512, 15690, 90, 43879, 2414, 11, 352, 5512, 2558, 2414, 11, 15690, 90, 43879, 2414, 11, 352, 5512, 15690, 90, 43879, 2414, 11, 352, 5512, 2558, 2414, 11, 2558, 2414, 11, 15553, 11, 15553, 11, 15553, 11, 15553, 11, 15553, 11, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 18206, 62, 69, 62, 48553, 11, 357, 5317, 2624, 11, 350, 2213, 90, 43879, 2414, 5512, 2558, 2624, 11, 350, 2213, 90, 43879, 2414, 5512, 350, 2213, 90, 53, 1868, 5512, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 18206, 62, 70, 62, 48553, 11, 357, 5317, 2624, 11, 350, 2213, 90, 43879, 2414, 5512, 2558, 2624, 11, 2558, 2624, 11, 350, 2213, 90, 43879, 2414, 5512, 350, 2213, 90, 53, 1868, 5512, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 18206, 62, 9744, 62, 69, 62, 48553, 11, 357, 5317, 2624, 11, 350, 2213, 90, 43879, 2414, 5512, 2558, 2624, 11, 350, 2213, 90, 43879, 2414, 5512, 350, 2213, 90, 53, 1868, 5512, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 13345, 11, 357, 6030, 90, 40, 79, 8738, 13, 40, 79, 8738, 40781, 5512, 350, 2213, 90, 53, 1868, 5512, 2558, 2414, 11, 2558, 2414, 11, 15553, 11, 15553, 11, 15553, 11, 15553, 11, 15553, 11, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 13345, 11, 357, 19182, 90, 7149, 11, 352, 5512, 5994, 90, 40, 79, 8738, 13, 40, 79, 8738, 37372, 2964, 70, 17633, 5512, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 40085, 1096, 28265, 357, 40, 79, 8738, 13, 40, 79, 8738, 37372, 2964, 70, 17633, 11, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 13345, 11, 357, 19182, 90, 7149, 11, 352, 5512, 5994, 90, 40, 79, 8738, 13, 40, 79, 8738, 50, 14375, 5512, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 2860, 19722, 11, 357, 40, 79, 8738, 13, 40, 79, 8738, 40781, 11, 37101, 10100, 11, 37101, 10100, 11, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 15419, 29127, 17633, 11, 357, 40, 79, 8738, 13, 40, 79, 8738, 50, 14375, 11, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 13376, 11, 357, 40, 79, 8738, 13, 40, 79, 8738, 37372, 2964, 70, 17633, 11, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 82, 6442, 40781, 11, 357, 40, 79, 8738, 13, 40, 79, 8738, 40781, 11, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 13345, 11, 357, 6030, 90, 40, 79, 8738, 13, 40, 79, 8738, 37372, 2964, 70, 17633, 5512, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 2860, 19722, 11, 357, 40, 79, 8738, 13, 40, 79, 8738, 40781, 11, 37101, 10100, 11, 2558, 2414, 11, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 1136, 26801, 2100, 11, 357, 40, 79, 8738, 13, 40, 79, 8738, 37372, 2964, 70, 17633, 11, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 2617, 31975, 9688, 28265, 357, 40, 79, 8738, 13, 40, 79, 8738, 37372, 2964, 70, 17633, 11, 15690, 90, 43879, 2414, 11, 352, 5512, 4008, 198, 3866, 5589, 576, 7, 40, 79, 8738, 13, 11407, 2122, 11, 357, 40, 79, 8738, 13, 40, 79, 8738, 37372, 2964, 70, 17633, 11, 4008, 198 ]
2.328612
706
module ReinforcementLearningZoo using ReinforcementLearningBase using ReinforcementLearningCore const RLZoo = ReinforcementLearningZoo export RLZoo include("algorithms/algorithms.jl") end # module
[ 21412, 22299, 13442, 41730, 57, 2238, 198, 198, 3500, 22299, 13442, 41730, 14881, 198, 3500, 22299, 13442, 41730, 14055, 198, 198, 9979, 45715, 57, 2238, 796, 22299, 13442, 41730, 57, 2238, 198, 39344, 45715, 57, 2238, 198, 198, 17256, 7203, 282, 7727, 907, 14, 282, 7727, 907, 13, 20362, 4943, 198, 198, 437, 1303, 8265, 198 ]
3.589286
56
<gh_stars>1-10 """ timederiv(x) Take time derivative of symbolic expression x. timederiv(x,subdiffout,subin) also substitutes the derivative of subdiffout with the symbols in subin. IE the symbols in subin are the time derivatives of the symbols in subdiffout. timederiv(x,body) uses the properties of body to determine the relationship between variables (that the velocity states are the time derivative of position states, etc.). timederiv(x,model) same as timederiv(x,model) but with the info of the whole model """ function timederiv(x::Array{SymPy.Sym}) dxdt = diff(x,t) end function timederiv(x::SymPy.Sym) dxdt = diff(x,t) end """ Take time derivative of x, where subdiffout specifies what symbols in x depend on time. Also replace the time derivatives of subdiffout with the symbols in subin. For example if you have a variable x that depends on time, this looks for x, replaces it with x(t), take the derivative which produces expressions like: Derivative(x(t),t), which then are replaced with the symbol defined in subin, for example vx. julia> @syms x vx julia> pos = x^2 julia> vel = timederiv(pos,x,vx) 2*x*vx """ function timederiv(x,subdiffout::Array{SymPy.Sym,1},subin::Array{SymPy.Sym,1}) if length(subdiffout) != length(subin) error("subdiffout and subin must have same dimensions") end # Make subdiffout depend on time subdiffoutT = AddTimeDependence(subdiffout) x = subs(x,subdiffout,subdiffoutT) # Take derivative dxdt = timederiv(x) # Substitute deriviative of subdiffout for diffin diffout = diff(subdiffoutT,t) for i in eachindex(diffout) dxdt = subs(dxdt,diffout[i],subin[i]) end # remove time dependence return dxdt = subs(dxdt,subdiffoutT,subdiffout) end # function timederiv(x::SymPy.Sym,v...) # return dxdt = timederiv([x],v...) # end function timederiv(x::Array{SymPy.Sym},body::Body) # the derivative of the position and velocity states are the velocity and accelerations # respectively return timederiv(x,body.connection.q,body.connection.u) end
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 37811, 198, 16514, 5702, 452, 7, 87, 8, 7214, 640, 27255, 286, 18975, 5408, 2124, 13, 198, 198, 16514, 5702, 452, 7, 87, 11, 7266, 26069, 448, 11, 7266, 259, 8, 635, 44234, 262, 27255, 286, 850, 26069, 448, 351, 198, 1169, 14354, 287, 850, 259, 13, 220, 28157, 262, 14354, 287, 850, 259, 389, 262, 640, 28486, 286, 198, 1169, 14354, 287, 850, 26069, 448, 13, 198, 198, 16514, 5702, 452, 7, 87, 11, 2618, 8, 3544, 262, 6608, 286, 1767, 284, 5004, 262, 2776, 1022, 198, 25641, 2977, 357, 5562, 262, 15432, 2585, 389, 262, 640, 27255, 286, 2292, 2585, 11, 3503, 15729, 198, 198, 16514, 5702, 452, 7, 87, 11, 19849, 8, 976, 355, 4628, 5702, 452, 7, 87, 11, 19849, 8, 475, 351, 262, 7508, 286, 262, 2187, 2746, 198, 37811, 198, 8818, 4628, 5702, 452, 7, 87, 3712, 19182, 90, 43094, 20519, 13, 43094, 30072, 198, 220, 288, 24954, 83, 796, 814, 7, 87, 11, 83, 8, 198, 437, 198, 8818, 4628, 5702, 452, 7, 87, 3712, 43094, 20519, 13, 43094, 8, 198, 220, 288, 24954, 83, 796, 814, 7, 87, 11, 83, 8, 198, 437, 198, 198, 37811, 198, 12322, 640, 27255, 286, 2124, 11, 810, 850, 26069, 448, 26052, 644, 14354, 287, 2124, 4745, 319, 640, 13, 198, 7583, 6330, 262, 640, 28486, 286, 850, 26069, 448, 351, 262, 14354, 287, 850, 259, 13, 198, 198, 1890, 1672, 611, 345, 423, 257, 7885, 2124, 326, 8338, 319, 640, 11, 428, 3073, 329, 2124, 11, 198, 260, 23625, 340, 351, 2124, 7, 83, 828, 1011, 262, 27255, 543, 11073, 14700, 588, 25, 198, 28532, 452, 876, 7, 87, 7, 83, 828, 83, 828, 543, 788, 389, 6928, 351, 262, 6194, 5447, 287, 850, 259, 11, 198, 1640, 1672, 410, 87, 13, 198, 198, 73, 43640, 29, 2488, 1837, 907, 2124, 410, 87, 198, 73, 43640, 29, 1426, 796, 2124, 61, 17, 198, 73, 43640, 29, 11555, 796, 4628, 5702, 452, 7, 1930, 11, 87, 11, 85, 87, 8, 198, 17, 9, 87, 9, 85, 87, 198, 37811, 198, 8818, 4628, 5702, 452, 7, 87, 11, 7266, 26069, 448, 3712, 19182, 90, 43094, 20519, 13, 43094, 11, 16, 5512, 7266, 259, 3712, 19182, 90, 43094, 20519, 13, 43094, 11, 16, 30072, 198, 220, 611, 4129, 7, 7266, 26069, 448, 8, 14512, 4129, 7, 7266, 259, 8, 198, 220, 220, 220, 4049, 7203, 7266, 26069, 448, 290, 850, 259, 1276, 423, 976, 15225, 4943, 198, 220, 886, 628, 220, 1303, 6889, 850, 26069, 448, 4745, 319, 640, 198, 220, 850, 26069, 448, 51, 796, 3060, 7575, 35, 15091, 7, 7266, 26069, 448, 8, 198, 220, 2124, 796, 6352, 7, 87, 11, 7266, 26069, 448, 11, 7266, 26069, 448, 51, 8, 628, 220, 1303, 7214, 27255, 198, 220, 288, 24954, 83, 796, 4628, 5702, 452, 7, 87, 8, 628, 220, 1303, 24944, 3678, 16124, 72, 876, 286, 850, 26069, 448, 329, 814, 259, 198, 220, 814, 448, 796, 814, 7, 7266, 26069, 448, 51, 11, 83, 8, 198, 220, 329, 1312, 287, 1123, 9630, 7, 26069, 448, 8, 198, 220, 220, 220, 288, 24954, 83, 796, 6352, 7, 67, 24954, 83, 11, 26069, 448, 58, 72, 4357, 7266, 259, 58, 72, 12962, 198, 220, 886, 628, 220, 1303, 4781, 640, 21403, 198, 220, 1441, 288, 24954, 83, 796, 6352, 7, 67, 24954, 83, 11, 7266, 26069, 448, 51, 11, 7266, 26069, 448, 8, 198, 437, 198, 198, 2, 2163, 4628, 5702, 452, 7, 87, 3712, 43094, 20519, 13, 43094, 11, 85, 23029, 198, 2, 220, 220, 1441, 288, 24954, 83, 796, 4628, 5702, 452, 26933, 87, 4357, 85, 23029, 198, 2, 886, 198, 198, 8818, 4628, 5702, 452, 7, 87, 3712, 19182, 90, 43094, 20519, 13, 43094, 5512, 2618, 3712, 25842, 8, 198, 220, 1303, 262, 27255, 286, 262, 2292, 290, 15432, 2585, 389, 262, 15432, 290, 8320, 602, 198, 220, 1303, 8148, 198, 220, 1441, 4628, 5702, 452, 7, 87, 11, 2618, 13, 38659, 13, 80, 11, 2618, 13, 38659, 13, 84, 8, 198, 437, 198 ]
3
679
<reponame>AnderGray/IntervalArithmetic.jl using IntervalArithmetic using Test using StaticArrays using Random @testset "rand tests" begin X = 3..4 for i in 1:100 @test rand(X) ∈ X end Y = IntervalBox(3..4, 5..6) for i in 1:100 @test rand(Y) ∈ Y end X = 3..4 for i in 1:100 @test rand(X,4)[(i%4)+1] ∈ X end # Y = IntervalBox(3..4, 5..6) # for i in 1:100 # @test rand(Y,2)[(i%2)+1][(i%2)+1] ∈ Y[(i%2)+1] # end for T in (Float32, Float64, BigFloat) X = Interval{T}(3, 4) @test rand(X) isa T Y = IntervalBox(X, X) @test rand(Y) isa SVector{2,T} end for T in (Float32, Float64, BigFloat) X = Interval{T}(3, 7) Y = rand(X, 7) @test Y isa Array{T, 1} for x in Y @test x isa T end end end
[ 27, 7856, 261, 480, 29, 32, 681, 46130, 14, 9492, 2100, 3163, 29848, 13, 20362, 198, 3500, 4225, 2100, 3163, 29848, 198, 3500, 6208, 198, 3500, 36125, 3163, 20477, 198, 3500, 14534, 198, 198, 31, 9288, 2617, 366, 25192, 5254, 1, 2221, 628, 220, 220, 220, 1395, 796, 513, 492, 19, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 3064, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 43720, 7, 55, 8, 18872, 230, 1395, 198, 220, 220, 220, 886, 628, 220, 220, 220, 575, 796, 4225, 2100, 14253, 7, 18, 492, 19, 11, 642, 492, 21, 8, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 3064, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 43720, 7, 56, 8, 18872, 230, 575, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1395, 796, 513, 492, 19, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 3064, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 43720, 7, 55, 11, 19, 38381, 7, 72, 4, 19, 47762, 16, 60, 18872, 230, 1395, 198, 220, 220, 220, 886, 198, 198, 2, 220, 220, 220, 220, 575, 796, 4225, 2100, 14253, 7, 18, 492, 19, 11, 642, 492, 21, 8, 198, 2, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 3064, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 43720, 7, 56, 11, 17, 38381, 7, 72, 4, 17, 47762, 16, 7131, 7, 72, 4, 17, 47762, 16, 60, 18872, 230, 575, 58, 7, 72, 4, 17, 47762, 16, 60, 198, 2, 220, 220, 220, 220, 886, 628, 220, 220, 220, 329, 309, 287, 357, 43879, 2624, 11, 48436, 2414, 11, 4403, 43879, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1395, 796, 4225, 2100, 90, 51, 92, 7, 18, 11, 604, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 43720, 7, 55, 8, 318, 64, 309, 628, 220, 220, 220, 220, 220, 220, 220, 575, 796, 4225, 2100, 14253, 7, 55, 11, 1395, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 43720, 7, 56, 8, 318, 64, 20546, 9250, 90, 17, 11, 51, 92, 198, 220, 220, 220, 886, 628, 220, 220, 220, 329, 309, 287, 357, 43879, 2624, 11, 48436, 2414, 11, 4403, 43879, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1395, 796, 4225, 2100, 90, 51, 92, 7, 18, 11, 767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 575, 796, 43720, 7, 55, 11, 767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 575, 318, 64, 15690, 90, 51, 11, 352, 92, 220, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 575, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2124, 318, 64, 309, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198 ]
1.790123
486
<reponame>Wikunia/hakank #= Linear regression. See ~/stan/linear_regression.R """ # mean se_mean sd 2.5% 25% 50% 75% 97.5% n_eff Rhat # alpha 4.03 0.00 0.13 3.79 3.95 4.03 4.12 4.28 1937 1 # beta 2.00 0.00 0.00 2.00 2.00 2.00 2.00 2.00 1975 1 # sigma 0.64 0.00 0.05 0.55 0.61 0.63 0.67 0.74 2179 1 # lp__ -4.85 0.03 1.20 -7.96 -5.42 -4.55 -3.96 -3.46 1594 1 """ See ~/blog/linear_regression.blog ~/webppl/linear_regression.wppl Note: I have problem with this model. - MH(), SMC, PG,give bad (or at least not great) rhat's - NUTS, HMC, etc throw errors =# using Turing, StatsPlots, DataFrames include("jl_utils.jl") @model function linear_regression(y) n = length(y) alpha ~ Normal(2,sqrt(2)) beta ~ Normal(2,sqrt(2)) sigma ~ Gamma(2,1/2) # mu = Array{Float64}(undef, n) # mu = Vector{Float64}(undef, n) mu = tzeros(n) for i in 1:n mu[i] = alpha + beta*i y[i] ~ Normal(mu[i], sigma) # y[i] ~ Normal(alpha + beta*i, sigma) end end # Generated data (R): # n = 100 # x <- 1:n # y <- 4+2*x+rnorm(n,0,0.6) # # We are trying to restore these values: # alpha: 4.0 # beta: 2.0 # sigma: 0.6 # #= y = [5.983543,7.363850,9.001728,11.478878,14.753256,16.245218, 18.758869,19.370087,23.417882,23.014029,25.900169,27.840894, 29.350226,33.157245,34.046848,36.086745,38.871855,40.375736, 42.633400,44.724727,45.845138,48.671348,50.828773,51.793457, 54.159697,56.117874,57.545261,60.188977,62.063218,63.913408, 66.528169,68.641637,70.790472,72.934844,73.421080,76.197684, 78.432745,80.136338,81.058943,84.328133,85.410062,89.205925, 89.229415,92.975393,93.531872,95.862181,97.878907,99.553297, 102.068987,103.838061,106.568636,107.375497,110.583279,112.123316, 113.890922,116.537840,117.444612,119.756863,123.567937,124.637554, 125.430167,127.414399,129.799403,131.492455,134.129614,136.107248, 138.823907,140.231367,142.460227,143.936719,146.620783,147.043767, 150.176601,152.500756,152.473417,155.145638,158.793813,161.411058, 163.030423,163.591843,165.696041,167.556486,169.848393,172.043780, 173.372439,175.591097,177.409328,179.357999,181.339012,184.016542, 186.234897,187.865354,190.316685,191.390721,193.391863,196.904094, 197.551148,200.483832,201.944348,203.700001 ] =# n = 100 x = 1:100 alpha = 4 beta = 2 sigma = 0.6 # y = alpha+beta*x+rand(Normal(0,sigma)) y = alpha.+beta .* x .+rand(Normal(0,sigma),n) # println("y:$y") model = linear_regression(y) num_chains = 4 # chains = sample(model, Prior(), MCMCThreads(), 10_000, num_chains) # chains = sample(model, MH(), MCMCThreads(), 40_000, num_chains) # chains = sample(model, MH( # # :alpha => Normal(2,sqrt(2)), # # :beta => Normal(2,sqrt(2)), # # :sigma => Gamma(2,2) # ), MCMCThreads(), 40_000, num_chains) # chains = sample(model, PG(15), MCMCThreads(), 1_000, num_chains) chains = sample(model, SMC(1_000), MCMCThreads(), 1_000, num_chains) # chains = sample(model, IS(), MCMCThreads(), 10_000, num_chains) # Both HMC and NUTS give the following error: # ERROR: LoadError: TaskFailedException: # TypeError: in typeassert, expected Float64, got a value of type ForwardDiff.Dual{Nothing,Float64,3} # chains = sample(model, HMC(0.1,5), MCMCThreads(), 10_000, num_chains) # Error # chains = sample(model, NUTS(0.65), MCMCThreads(), 10_000, num_chains) # Error display(chains) # display(plot(chains)) # gen = generated_quantities(model, chains) # show_var_dist_pct(gen, 40)
[ 27, 7856, 261, 480, 29, 33010, 39934, 14, 43573, 962, 198, 2, 28, 198, 220, 44800, 20683, 13, 628, 220, 4091, 47795, 14192, 14, 29127, 62, 2301, 2234, 13, 49, 198, 37811, 198, 2, 220, 220, 220, 220, 220, 220, 220, 1612, 384, 62, 32604, 220, 220, 45647, 220, 362, 13, 20, 4, 220, 220, 1679, 4, 220, 220, 2026, 4, 220, 220, 5441, 4, 10111, 13, 20, 4, 299, 62, 14822, 371, 5183, 198, 2, 17130, 220, 604, 13, 3070, 220, 220, 220, 657, 13, 405, 657, 13, 1485, 220, 513, 13, 3720, 220, 513, 13, 3865, 220, 604, 13, 3070, 220, 604, 13, 1065, 220, 604, 13, 2078, 220, 28684, 220, 220, 220, 352, 198, 2, 12159, 220, 220, 362, 13, 405, 220, 220, 220, 657, 13, 405, 657, 13, 405, 220, 362, 13, 405, 220, 362, 13, 405, 220, 362, 13, 405, 220, 362, 13, 405, 220, 362, 13, 405, 220, 15231, 220, 220, 220, 352, 198, 2, 264, 13495, 220, 657, 13, 2414, 220, 220, 220, 657, 13, 405, 657, 13, 2713, 220, 657, 13, 2816, 220, 657, 13, 5333, 220, 657, 13, 5066, 220, 657, 13, 3134, 220, 657, 13, 4524, 220, 362, 21738, 220, 220, 220, 352, 198, 2, 300, 79, 834, 220, 532, 19, 13, 5332, 220, 220, 220, 657, 13, 3070, 352, 13, 1238, 532, 22, 13, 4846, 532, 20, 13, 3682, 532, 19, 13, 2816, 532, 18, 13, 4846, 532, 18, 13, 3510, 220, 1315, 5824, 220, 220, 220, 352, 198, 37811, 628, 220, 4091, 47795, 14036, 14, 29127, 62, 2301, 2234, 13, 14036, 198, 220, 220, 220, 220, 220, 47795, 12384, 381, 75, 14, 29127, 62, 2301, 2234, 13, 86, 381, 75, 628, 220, 5740, 25, 314, 423, 1917, 351, 428, 2746, 13, 198, 220, 220, 220, 220, 220, 220, 532, 20752, 22784, 9447, 34, 11, 23842, 11, 26535, 2089, 357, 273, 379, 1551, 407, 1049, 8, 374, 5183, 338, 198, 220, 220, 220, 220, 220, 220, 532, 399, 3843, 50, 11, 367, 9655, 11, 3503, 3714, 8563, 198, 46249, 198, 198, 3500, 39141, 11, 20595, 3646, 1747, 11, 6060, 35439, 198, 17256, 7203, 20362, 62, 26791, 13, 20362, 4943, 628, 198, 31, 19849, 2163, 14174, 62, 2301, 2234, 7, 88, 8, 198, 220, 220, 220, 299, 796, 4129, 7, 88, 8, 628, 220, 220, 220, 17130, 5299, 14435, 7, 17, 11, 31166, 17034, 7, 17, 4008, 198, 220, 220, 220, 12159, 220, 5299, 14435, 7, 17, 11, 31166, 17034, 7, 17, 4008, 198, 220, 220, 220, 264, 13495, 5299, 43595, 7, 17, 11, 16, 14, 17, 8, 628, 198, 220, 220, 220, 1303, 38779, 796, 15690, 90, 43879, 2414, 92, 7, 917, 891, 11, 299, 8, 198, 220, 220, 220, 1303, 38779, 796, 20650, 90, 43879, 2414, 92, 7, 917, 891, 11, 299, 8, 198, 220, 220, 220, 38779, 796, 256, 9107, 418, 7, 77, 8, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 77, 198, 220, 220, 220, 220, 220, 220, 220, 38779, 58, 72, 60, 796, 17130, 1343, 12159, 9, 72, 198, 220, 220, 220, 220, 220, 220, 220, 331, 58, 72, 60, 5299, 14435, 7, 30300, 58, 72, 4357, 264, 13495, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 331, 58, 72, 60, 5299, 14435, 7, 26591, 1343, 12159, 9, 72, 11, 264, 13495, 8, 198, 220, 220, 220, 886, 198, 198, 437, 628, 198, 2, 2980, 515, 1366, 357, 49, 2599, 198, 2, 299, 796, 1802, 198, 2, 2124, 24293, 352, 25, 77, 198, 2, 331, 24293, 604, 10, 17, 9, 87, 10, 81, 27237, 7, 77, 11, 15, 11, 15, 13, 21, 8, 198, 2, 198, 2, 775, 389, 2111, 284, 11169, 777, 3815, 25, 198, 2, 220, 220, 220, 17130, 25, 604, 13, 15, 198, 2, 220, 220, 220, 12159, 25, 362, 13, 15, 198, 2, 220, 220, 220, 264, 13495, 25, 657, 13, 21, 198, 2, 198, 2, 28, 198, 88, 796, 685, 20, 13, 4089, 2327, 3559, 11, 22, 13, 2623, 2548, 1120, 11, 24, 13, 405, 1558, 2078, 11, 1157, 13, 2857, 3459, 3695, 11, 1415, 13, 44550, 11645, 11, 1433, 13, 1731, 4309, 1507, 11, 198, 220, 220, 220, 1248, 13, 2425, 3459, 3388, 11, 1129, 13, 2718, 405, 5774, 11, 1954, 13, 38547, 42980, 11, 1954, 13, 486, 1821, 1959, 11, 1495, 13, 12865, 22172, 11, 1983, 13, 40675, 4531, 19, 11, 198, 220, 220, 220, 2808, 13, 14877, 24909, 11, 2091, 13, 18458, 22995, 11, 2682, 13, 3023, 3104, 2780, 11, 2623, 13, 2919, 3134, 2231, 11, 2548, 13, 5774, 1507, 2816, 11, 1821, 13, 22318, 49150, 11, 198, 220, 220, 220, 5433, 13, 21, 2091, 7029, 11, 2598, 13, 22, 23753, 1983, 11, 2231, 13, 23, 2231, 20107, 11, 2780, 13, 3134, 1485, 2780, 11, 1120, 13, 23, 2078, 46871, 11, 4349, 13, 3720, 27712, 22, 11, 198, 220, 220, 220, 7175, 13, 19707, 40035, 11, 3980, 13, 1157, 3695, 4524, 11, 3553, 13, 45326, 30057, 11, 1899, 13, 1507, 4531, 3324, 11, 5237, 13, 3312, 2624, 1507, 11, 5066, 13, 24, 1485, 26200, 11, 198, 220, 220, 220, 7930, 13, 49351, 22172, 11, 3104, 13, 2414, 1433, 2718, 11, 2154, 13, 37750, 37856, 11, 4761, 13, 24, 28978, 2598, 11, 4790, 13, 3682, 24045, 11, 4304, 13, 24991, 41580, 11, 198, 220, 220, 220, 8699, 13, 3559, 1983, 2231, 11, 1795, 13, 20809, 28460, 11, 6659, 13, 2713, 4531, 3559, 11, 5705, 13, 34256, 16945, 11, 5332, 13, 19, 3064, 5237, 11, 4531, 13, 1238, 3270, 1495, 11, 198, 220, 220, 220, 9919, 13, 1828, 5824, 1314, 11, 5892, 13, 42716, 26007, 11, 6052, 13, 4310, 1507, 4761, 11, 3865, 13, 4521, 17, 27057, 11, 5607, 13, 23, 40401, 2998, 11, 2079, 13, 48096, 26561, 11, 198, 220, 220, 220, 15143, 13, 15, 3104, 44183, 11, 15197, 13, 5999, 1795, 5333, 11, 15801, 13, 20, 33808, 2623, 11, 15982, 13, 22318, 38073, 11, 11442, 13, 46239, 26050, 11, 14686, 13, 1065, 2091, 1433, 11, 198, 220, 220, 220, 17318, 13, 4531, 2931, 1828, 11, 18298, 13, 20, 30695, 1821, 11, 17657, 13, 2598, 3510, 1065, 11, 16315, 13, 2425, 3104, 5066, 11, 10163, 13, 20, 37601, 2718, 11, 17464, 13, 5066, 2425, 4051, 11, 198, 220, 220, 220, 13151, 13, 3559, 486, 3134, 11, 16799, 13, 19, 21139, 2079, 11, 18741, 13, 45455, 31552, 11, 22042, 13, 2920, 1731, 2816, 11, 19880, 13, 1065, 4846, 1415, 11, 20809, 13, 15982, 23045, 11, 198, 220, 220, 220, 21503, 13, 23, 23516, 2998, 11, 15187, 13, 1954, 1485, 3134, 11, 23726, 13, 34716, 24403, 11, 21139, 13, 24, 27824, 1129, 11, 20964, 13, 38850, 50165, 11, 20198, 13, 3023, 2718, 3134, 11, 198, 220, 220, 220, 6640, 13, 1558, 2791, 486, 11, 17827, 13, 4059, 38219, 11, 17827, 13, 2857, 2682, 1558, 11, 18742, 13, 1415, 3980, 2548, 11, 21273, 13, 3720, 2548, 1485, 11, 25948, 13, 3901, 940, 3365, 11, 198, 220, 220, 220, 26826, 13, 15, 21288, 1954, 11, 24136, 13, 3270, 1507, 3559, 11, 20986, 13, 3388, 1899, 3901, 11, 21940, 13, 2816, 2414, 4521, 11, 22172, 13, 23, 2780, 26007, 11, 23628, 13, 3023, 2718, 1795, 11, 198, 220, 220, 220, 28174, 13, 2718, 1731, 2670, 11, 17430, 13, 3270, 940, 5607, 11, 22413, 13, 1821, 6052, 2078, 11, 21738, 13, 27277, 17032, 11, 27057, 13, 29626, 30206, 11, 22883, 13, 486, 2996, 3682, 11, 198, 220, 220, 220, 28481, 13, 1954, 2780, 5607, 11, 23451, 13, 23, 2996, 32182, 11, 19782, 13, 33400, 35978, 11, 26492, 13, 2670, 2998, 2481, 11, 24943, 13, 2670, 1507, 5066, 11, 25272, 13, 3829, 1821, 5824, 11, 198, 220, 220, 220, 29903, 13, 2816, 1157, 2780, 11, 2167, 13, 2780, 2548, 2624, 11, 1264, 13, 24, 2598, 28978, 11, 22416, 13, 22, 2388, 16, 198, 220, 220, 220, 2361, 198, 46249, 198, 77, 796, 1802, 198, 87, 796, 352, 25, 3064, 198, 26591, 796, 604, 198, 31361, 796, 362, 198, 82, 13495, 796, 657, 13, 21, 198, 2, 331, 796, 17130, 10, 31361, 9, 87, 10, 25192, 7, 26447, 7, 15, 11, 82, 13495, 4008, 198, 88, 796, 17130, 13, 10, 31361, 764, 9, 2124, 764, 10, 25192, 7, 26447, 7, 15, 11, 82, 13495, 828, 77, 8, 198, 2, 44872, 7203, 88, 25, 3, 88, 4943, 198, 19849, 796, 14174, 62, 2301, 2234, 7, 88, 8, 198, 198, 22510, 62, 38861, 796, 604, 198, 198, 2, 14659, 796, 6291, 7, 19849, 11, 14481, 22784, 13122, 9655, 16818, 82, 22784, 838, 62, 830, 11, 997, 62, 38861, 8, 198, 2, 14659, 796, 6291, 7, 19849, 11, 20752, 22784, 13122, 9655, 16818, 82, 22784, 2319, 62, 830, 11, 997, 62, 38861, 8, 198, 2, 14659, 796, 6291, 7, 19849, 11, 20752, 7, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1058, 26591, 5218, 14435, 7, 17, 11, 31166, 17034, 7, 17, 36911, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1058, 31361, 5218, 14435, 7, 17, 11, 31166, 17034, 7, 17, 36911, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1058, 82, 13495, 5218, 43595, 7, 17, 11, 17, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 13122, 9655, 16818, 82, 22784, 2319, 62, 830, 11, 997, 62, 38861, 8, 198, 198, 2, 14659, 796, 6291, 7, 19849, 11, 23842, 7, 1314, 828, 13122, 9655, 16818, 82, 22784, 352, 62, 830, 11, 997, 62, 38861, 8, 198, 38861, 796, 6291, 7, 19849, 11, 9447, 34, 7, 16, 62, 830, 828, 13122, 9655, 16818, 82, 22784, 352, 62, 830, 11, 997, 62, 38861, 8, 198, 2, 14659, 796, 6291, 7, 19849, 11, 3180, 22784, 13122, 9655, 16818, 82, 22784, 838, 62, 830, 11, 997, 62, 38861, 8, 198, 198, 2, 5747, 367, 9655, 290, 399, 3843, 50, 1577, 262, 1708, 4049, 25, 198, 2, 33854, 25, 8778, 12331, 25, 15941, 37, 6255, 16922, 25, 198, 2, 5994, 12331, 25, 287, 2099, 30493, 11, 2938, 48436, 2414, 11, 1392, 257, 1988, 286, 2099, 19530, 28813, 13, 36248, 90, 18465, 11, 43879, 2414, 11, 18, 92, 198, 2, 14659, 796, 6291, 7, 19849, 11, 367, 9655, 7, 15, 13, 16, 11, 20, 828, 13122, 9655, 16818, 82, 22784, 838, 62, 830, 11, 997, 62, 38861, 8, 1303, 13047, 198, 2, 14659, 796, 6291, 7, 19849, 11, 399, 3843, 50, 7, 15, 13, 2996, 828, 13122, 9655, 16818, 82, 22784, 838, 62, 830, 11, 997, 62, 38861, 8, 1303, 13047, 198, 198, 13812, 7, 38861, 8, 198, 2, 3359, 7, 29487, 7, 38861, 4008, 198, 198, 2, 2429, 796, 7560, 62, 40972, 871, 7, 19849, 11, 14659, 8, 198, 2, 905, 62, 7785, 62, 17080, 62, 79, 310, 7, 5235, 11, 2319, 8, 198 ]
1.989125
1,839
<gh_stars>0 using SimpleHttpIO using StreamReader if !isdefined(:TEST_DIR) include("utils.jl") end facts("Test Request.jl") do context("parse headers") do context("parse headers from IO") do io = IOBuffer() sio = IOSocket(io) wclf(io) seekstart(io) frqe(;message="Empty first line.") do S.readfirstline(sio) end io = IOBuffer() sio = IOSocket(io) line = "first line" ws = wclf(io, line) seekstart(io) @fact S.readfirstline(sio) --> (ws, line) io = IOBuffer() sio = IOSocket(io) ws = wclf(io, "H1: H1 value") ws += wclf(io, "HM: HM value 1") ws += wclf(io, "HM: HM value 2") ws += wclf(io) seekstart(io) hs = sizeof(io.data) eh = ["H1"=>"H1 value","HM"=>String["HM value 1","HM value 2"]] s, lnum, h = S.readheaders(sio) @fact ws --> hs @fact s --> hs @fact lnum --> 4 for (k, v) in h @fact h[k] --> eh[k] ("Mismatch " * k * " Header") end end context("parse info") do for line in String["GET /index.html", "GET /index.html HTTP/1.1", "GET /directory%20name/file.txt HTTP/1.1"] parts = split(line, " ") if length(parts) == 2 m, r = parts pr = default_protocol = astuple(S.FAKE_PROTOCOL) else m, r, pr = parts pr = split(pr, "/") default_protocol = N end method, resource, protocol = S.parseinfo(line, default_protocol) @fact method --> m @fact r --> resource @fact protocol --> pr end end context("read request info") do for line in String["GET /index.html", "GET /index.html HTTP/1.1", "GET /directory%20name/file.txt HTTP/1.1"] context("read request info at " * repr(line)) do io = IOBuffer() wclf(io, line) seekstart(io) parts = split(line, " ") if length(parts) == 2 m, rs = parts pr = default_protocol = astuple(S.FAKE_PROTOCOL) protocol!(S.FAKE_PROTOCOL) else m, rs, pr = parts pr = split(pr, "/") default_protocol = N end r = S.Request(IOSocket(io)) S.readinfo(r, S.PROTOCOLS, default_protocol) @fact r.method --> m @fact r.resource --> rs if pr != N @fact r.protocol.name --> pr[1] @fact r.protocol.version --> pr[2] else @fact r.protocol --> pr end end end end context("post request") do types = ["application/x-www-form-urlencoded" => ("postvar=pvalue&postvar2=pvalue2", ["postvar2"=>{"pvalue2"},"postvar"=>{"pvalue"}]), "application/json" => ("{\"postvar\":\"pvalue\",\"postvar2\":\"pvalue2\"}", ["postvar2"=>"pvalue2","postvar"=>"pvalue"])] for (tk, (tdata, tdatae)) in types context("test $tk content-type") do req_io = IOBuffer() write(req_io, "POST /page?getvar=gvalue HTTP/1.1\r\n" * "Host: 0.0.0.0:7000\r\n" * "Content-Type: $tk\r\n" * "Content-Length: $(sizeof(tdata))\r\n" * "\r\n" * tdata) seekstart(req_io) req = Request(IOSocket(req_io)) init(req, S.PROTOCOLS) data_parsed = parsedata(req) @fact data_parsed --> true @fact req.protocol --> HTTP_1_1 @fact req.content_length --> sizeof(tdata) @fact req.content_type --> tk @fact req.get --> ["getvar"=>{"gvalue"}] @fact req.post --> tdatae end end end end context("parse multipart/form-data") do sample_path = joinpath(TEST_DIR, "data", "multipart", "rawdata", "sample.txt") sio = IOSocket(open(sample_path, "r")) s, info = S.readinfo(sio, S.PROTOCOLS) size, linenum, headers = S.readheaders(sio) content_size = parseint(headers["Content-Length"]) boundary = S.multipartboundary(headers["Content-Type"]) s, d, files = S.parsempfd(sio, boundary) for f in files fpath = joinpath(TEST_DIR, "data", "multipart", "files", f.name) open(fpath, "r") do fio @fact f.io.data --> readbytes(fio, filesize(fpath)) "File Data mismatch '$(f.name)' -> '$(fpath)'" end end end end
[ 27, 456, 62, 30783, 29, 15, 198, 3500, 17427, 43481, 9399, 198, 3500, 13860, 33634, 198, 198, 361, 5145, 271, 23211, 7, 25, 51, 6465, 62, 34720, 8, 198, 220, 220, 220, 2291, 7203, 26791, 13, 20362, 4943, 198, 437, 198, 198, 37473, 7203, 14402, 19390, 13, 20362, 4943, 466, 198, 220, 220, 220, 4732, 7203, 29572, 24697, 4943, 466, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 4732, 7203, 29572, 24697, 422, 24418, 4943, 466, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 796, 314, 9864, 13712, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 952, 796, 314, 2640, 5459, 7, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 565, 69, 7, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5380, 9688, 7, 952, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1216, 80, 68, 7, 26, 20500, 2625, 40613, 717, 1627, 19570, 466, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 311, 13, 961, 11085, 1370, 7, 82, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 796, 314, 9864, 13712, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 952, 796, 314, 2640, 5459, 7, 952, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 366, 11085, 1627, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 82, 796, 266, 565, 69, 7, 952, 11, 1627, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5380, 9688, 7, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 311, 13, 961, 11085, 1370, 7, 82, 952, 8, 14610, 357, 18504, 11, 1627, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 796, 314, 9864, 13712, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 952, 796, 314, 2640, 5459, 7, 952, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 82, 796, 266, 565, 69, 7, 952, 11, 366, 39, 16, 25, 367, 16, 1988, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 82, 15853, 266, 565, 69, 7, 952, 11, 366, 36905, 25, 25904, 1988, 352, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 82, 15853, 266, 565, 69, 7, 952, 11, 366, 36905, 25, 25904, 1988, 362, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 82, 15853, 266, 565, 69, 7, 952, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5380, 9688, 7, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 289, 82, 796, 39364, 7, 952, 13, 7890, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32622, 796, 14631, 39, 16, 1, 14804, 1, 39, 16, 1988, 2430, 36905, 1, 14804, 10100, 14692, 36905, 1988, 352, 2430, 36905, 1988, 362, 8973, 60, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 11, 300, 22510, 11, 289, 796, 311, 13, 961, 50145, 7, 82, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 266, 82, 14610, 289, 82, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 264, 14610, 289, 82, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 300, 22510, 14610, 604, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 74, 11, 410, 8, 287, 289, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 289, 58, 74, 60, 14610, 32622, 58, 74, 60, 5855, 44, 1042, 963, 366, 1635, 479, 1635, 366, 48900, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 4732, 7203, 29572, 7508, 4943, 466, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1627, 287, 10903, 14692, 18851, 1220, 9630, 13, 6494, 1600, 366, 18851, 1220, 9630, 13, 6494, 14626, 14, 16, 13, 16, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 18851, 1220, 34945, 4, 1238, 3672, 14, 7753, 13, 14116, 14626, 14, 16, 13, 16, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3354, 796, 6626, 7, 1370, 11, 366, 366, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4129, 7, 42632, 8, 6624, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 11, 374, 796, 3354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 796, 4277, 62, 11235, 4668, 796, 6468, 29291, 7, 50, 13, 7708, 7336, 62, 4805, 2394, 4503, 3535, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 11, 374, 11, 778, 796, 3354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 796, 6626, 7, 1050, 11, 12813, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 62, 11235, 4668, 796, 399, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2446, 11, 8271, 11, 8435, 796, 311, 13, 29572, 10951, 7, 1370, 11, 4277, 62, 11235, 4668, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 2446, 14610, 285, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 374, 14610, 8271, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 8435, 14610, 778, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 4732, 7203, 961, 2581, 7508, 4943, 466, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1627, 287, 10903, 14692, 18851, 1220, 9630, 13, 6494, 1600, 366, 18851, 1220, 9630, 13, 6494, 14626, 14, 16, 13, 16, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 18851, 1220, 34945, 4, 1238, 3672, 14, 7753, 13, 14116, 14626, 14, 16, 13, 16, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4732, 7203, 961, 2581, 7508, 379, 366, 1635, 41575, 7, 1370, 4008, 466, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 796, 314, 9864, 13712, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 565, 69, 7, 952, 11, 1627, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5380, 9688, 7, 952, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3354, 796, 6626, 7, 1370, 11, 366, 366, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4129, 7, 42632, 8, 6624, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 11, 44608, 796, 3354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 796, 4277, 62, 11235, 4668, 796, 6468, 29291, 7, 50, 13, 7708, 7336, 62, 4805, 2394, 4503, 3535, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8435, 0, 7, 50, 13, 7708, 7336, 62, 4805, 2394, 4503, 3535, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 11, 44608, 11, 778, 796, 3354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 778, 796, 6626, 7, 1050, 11, 12813, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 62, 11235, 4668, 796, 399, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 796, 311, 13, 18453, 7, 40, 2640, 5459, 7, 952, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 311, 13, 961, 10951, 7, 81, 11, 311, 13, 4805, 2394, 4503, 3535, 50, 11, 4277, 62, 11235, 4668, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 374, 13, 24396, 14610, 285, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 374, 13, 31092, 14610, 44608, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 778, 14512, 399, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 374, 13, 11235, 4668, 13, 3672, 14610, 778, 58, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 374, 13, 11235, 4668, 13, 9641, 14610, 778, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 374, 13, 11235, 4668, 14610, 778, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 4732, 7203, 7353, 2581, 4943, 466, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3858, 796, 14631, 31438, 14, 87, 12, 2503, 12, 687, 12, 6371, 12685, 9043, 1, 5218, 5855, 7353, 7785, 28, 79, 8367, 5, 7353, 7785, 17, 28, 79, 8367, 17, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14631, 7353, 7785, 17, 1, 14804, 4895, 79, 8367, 17, 13018, 7353, 7785, 1, 14804, 4895, 79, 8367, 20662, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 31438, 14, 17752, 1, 5218, 5855, 90, 7879, 7353, 7785, 30478, 7879, 79, 8367, 34607, 7879, 7353, 7785, 17, 30478, 7879, 79, 8367, 17, 7879, 92, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14631, 7353, 7785, 17, 1, 14804, 1, 79, 8367, 17, 2430, 7353, 7785, 1, 14804, 1, 79, 8367, 8973, 15437, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 357, 30488, 11, 357, 83, 7890, 11, 256, 7890, 68, 4008, 287, 3858, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4732, 7203, 9288, 720, 30488, 2695, 12, 4906, 4943, 466, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43089, 62, 952, 796, 314, 9864, 13712, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3551, 7, 42180, 62, 952, 11, 366, 32782, 1220, 7700, 30, 1136, 7785, 28, 70, 8367, 14626, 14, 16, 13, 16, 59, 81, 59, 77, 1, 1635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 17932, 25, 657, 13, 15, 13, 15, 13, 15, 25, 22, 830, 59, 81, 59, 77, 1, 1635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 19746, 12, 6030, 25, 720, 30488, 59, 81, 59, 77, 1, 1635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 19746, 12, 24539, 25, 29568, 7857, 1659, 7, 83, 7890, 4008, 59, 81, 59, 77, 1, 1635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37082, 81, 59, 77, 1, 1635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 7890, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5380, 9688, 7, 42180, 62, 952, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43089, 796, 19390, 7, 40, 2640, 5459, 7, 42180, 62, 952, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2315, 7, 42180, 11, 311, 13, 4805, 2394, 4503, 3535, 50, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 79, 945, 276, 796, 44267, 1045, 7, 42180, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 1366, 62, 79, 945, 276, 14610, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 43089, 13, 11235, 4668, 14610, 14626, 62, 16, 62, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 43089, 13, 11299, 62, 13664, 14610, 39364, 7, 83, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 43089, 13, 11299, 62, 4906, 14610, 256, 74, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 43089, 13, 1136, 14610, 14631, 1136, 7785, 1, 14804, 4895, 70, 8367, 20662, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 43089, 13, 7353, 14610, 256, 7890, 68, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 4732, 7203, 29572, 18540, 433, 14, 687, 12, 7890, 4943, 466, 198, 220, 220, 220, 220, 220, 220, 220, 6291, 62, 6978, 796, 4654, 6978, 7, 51, 6465, 62, 34720, 11, 366, 7890, 1600, 366, 16680, 541, 433, 1600, 366, 1831, 7890, 1600, 366, 39873, 13, 14116, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 264, 952, 796, 314, 2640, 5459, 7, 9654, 7, 39873, 62, 6978, 11, 366, 81, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 264, 11, 7508, 796, 311, 13, 961, 10951, 7, 82, 952, 11, 311, 13, 4805, 2394, 4503, 3535, 50, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2546, 11, 41822, 388, 11, 24697, 796, 311, 13, 961, 50145, 7, 82, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2695, 62, 7857, 796, 21136, 600, 7, 50145, 14692, 19746, 12, 24539, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 18645, 796, 311, 13, 16680, 541, 433, 7784, 560, 7, 50145, 14692, 19746, 12, 6030, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 11, 288, 11, 3696, 796, 311, 13, 29572, 3149, 16344, 7, 82, 952, 11, 18645, 8, 628, 220, 220, 220, 220, 220, 220, 220, 329, 277, 287, 3696, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 6978, 796, 4654, 6978, 7, 51, 6465, 62, 34720, 11, 366, 7890, 1600, 366, 16680, 541, 433, 1600, 366, 16624, 1600, 277, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1280, 7, 69, 6978, 11, 366, 81, 4943, 466, 277, 952, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 277, 13, 952, 13, 7890, 14610, 1100, 33661, 7, 69, 952, 11, 3696, 1096, 7, 69, 6978, 4008, 366, 8979, 6060, 46318, 705, 3, 7, 69, 13, 3672, 33047, 4613, 705, 3, 7, 69, 6978, 8, 29653, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 198, 437, 198 ]
1.68005
3,188
<filename>test/foo.jl # this file is defined to test @changeprecision T include(...) foo(x) = x/3
[ 27, 34345, 29, 9288, 14, 21943, 13, 20362, 198, 2, 428, 2393, 318, 5447, 284, 1332, 2488, 3803, 3866, 16005, 309, 2291, 7, 23029, 198, 21943, 7, 87, 8, 796, 2124, 14, 18, 198 ]
2.882353
34
<reponame>zhangliye/SimHPC using SimHPC @resumable function charge(env::Environment, duration::Number) @yield timeout(env, duration) # will continue t later end @resumable function driver(env::Environment, car_process::Process) @yield timeout(env, 3) @yield interrupt(car_process) end @resumable function car(env::Environment, id::Int) while true println("Car$(id) Start parking at ", now(env)) parking_duration = convert(Int, round(rand()*10) ) @yield timeout(env, parking_duration) println("Car$(id) start charging at ", now(env)) charge_duration = convert(Int, round(rand()*10) ) charge_process = @process charge(sim, charge_duration) # Process is a event #@yield charge_process #schedule the behavior here try @yield charge_process catch println("Was interrupted. Hopefully, the battery is full enough ...") end println("Car$(id) Start driving at ", now(env)) trip_duration = convert(Int, round(rand()*10) ) @yield timeout(env, trip_duration) # drive 2 mins end end rand(1,10) sim = Simulation() for i in 1:100 @process car(sim, i) # Process is scheduled here end @time run(sim, 1000) # start the processes println("Finished SimHPC")
[ 27, 7856, 261, 480, 29, 23548, 648, 4528, 5948, 14, 8890, 39, 5662, 198, 3500, 3184, 39, 5662, 198, 198, 31, 411, 388, 540, 2163, 3877, 7, 24330, 3712, 31441, 11, 9478, 3712, 15057, 8, 198, 220, 2488, 88, 1164, 26827, 7, 24330, 11, 9478, 8, 220, 1303, 481, 2555, 256, 1568, 220, 198, 437, 198, 198, 31, 411, 388, 540, 2163, 4639, 7, 24330, 3712, 31441, 11, 1097, 62, 14681, 3712, 18709, 8, 198, 220, 2488, 88, 1164, 26827, 7, 24330, 11, 513, 8, 198, 220, 2488, 88, 1164, 11313, 7, 7718, 62, 14681, 8, 198, 437, 198, 198, 31, 411, 388, 540, 2163, 1097, 7, 24330, 3712, 31441, 11, 4686, 3712, 5317, 8, 198, 220, 981, 2081, 198, 220, 220, 220, 44872, 7203, 9914, 3, 7, 312, 8, 7253, 7647, 379, 33172, 783, 7, 24330, 4008, 198, 220, 220, 220, 7647, 62, 32257, 796, 10385, 7, 5317, 11, 2835, 7, 25192, 3419, 9, 940, 8, 1267, 198, 220, 220, 220, 2488, 88, 1164, 26827, 7, 24330, 11, 7647, 62, 32257, 8, 628, 220, 220, 220, 44872, 7203, 9914, 3, 7, 312, 8, 923, 11642, 379, 33172, 783, 7, 24330, 4008, 198, 220, 220, 220, 3877, 62, 32257, 796, 10385, 7, 5317, 11, 2835, 7, 25192, 3419, 9, 940, 8, 1267, 198, 220, 220, 220, 3877, 62, 14681, 796, 2488, 14681, 3877, 7, 14323, 11, 3877, 62, 32257, 8, 220, 220, 1303, 10854, 318, 257, 1785, 220, 198, 220, 220, 220, 1303, 31, 88, 1164, 3877, 62, 14681, 220, 1303, 15952, 5950, 262, 4069, 994, 220, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 2488, 88, 1164, 3877, 62, 14681, 198, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 44872, 7203, 16973, 19072, 13, 19996, 11, 262, 6555, 318, 1336, 1576, 35713, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 44872, 7203, 9914, 3, 7, 312, 8, 7253, 5059, 379, 33172, 783, 7, 24330, 4008, 198, 220, 220, 220, 5296, 62, 32257, 796, 10385, 7, 5317, 11, 2835, 7, 25192, 3419, 9, 940, 8, 1267, 198, 220, 220, 220, 2488, 88, 1164, 26827, 7, 24330, 11, 5296, 62, 32257, 8, 220, 1303, 3708, 362, 23550, 198, 220, 886, 198, 437, 198, 198, 25192, 7, 16, 11, 940, 8, 198, 198, 14323, 796, 41798, 3419, 198, 198, 1640, 1312, 287, 352, 25, 3064, 198, 220, 2488, 14681, 1097, 7, 14323, 11, 1312, 8, 220, 220, 1303, 10854, 318, 7530, 994, 220, 220, 198, 437, 198, 198, 31, 2435, 1057, 7, 14323, 11, 8576, 8, 220, 220, 220, 220, 220, 220, 220, 1303, 923, 262, 7767, 220, 198, 35235, 7203, 18467, 1348, 3184, 39, 5662, 4943 ]
2.809955
442
<reponame>cgroll/AssetMgmt.jl<filename>src/investments.jl ############## ## contents ## ############## ## types: ## - Investments :: quite similar to Timematr, with fields ~vals~ and ~idx~ ################################# ## definition Investments type ## ################################# type Investments{T} vals::DataFrame idx::Array{T, 1} function Investments(vals::DataFrame, idx::Array{T, 1}) ## consists of time index and numeric data (no NAs allowed) ## with equal row numbers and rowsums of data equal to one ## check constraints TimeData.chkIdx(idx) TimeData.chkNum(vals) # numeric values only? chkEqualsOne(vals) ## check equal number of rows if(size(vals, 1) != length(idx)) if (length(idx) == 0) | (size(vals, 1) == 0) return new(DataFrame([]), Array{T, 1}[]) end error(length(idx), " idx entries, but ", size(vals, 1), " rows of data") end return new(vals, idx) end end ## required for parametric type declaration function Investments{T}(vals::DataFrame, idx::Array{T, 1}) return Investments{T}(vals, idx) end ## initialization without dates function Investments(vals::DataFrame) nPortfolios = size(vals, 1) return Investments(vals, [1:nPortfolios]) end #################### ## display method ## #################### import Base.Multimedia.display function display(invs::Investments) ## display information about an array ## set display parameters maxDispCols = 5; ## get type and field information typ = typeof(invs) println("\ntype: $typ") print("dimensions: ") print(size(invs)) print("\n") ## get first entries (nrow, ncol) = size(invs) showCols = minimum([maxDispCols ncol]); Peekidx = DataFrame(idx = invs.idx); Peek = [Peekidx invs.vals[:, 1:showCols]]; display(Peek) end function str(invs::Investments) display(invs) end ###################### ## Investments size ## ###################### import Base.size function size(invs::Investments) return size(invs.vals) end function size(invs::Investments, ind::Int) return size(invs.vals, ind) end import Base.ndims function ndims(invs::Investments) return ndims(invs.vals) end ##################### ## get investments ## ##################### function weights(invs::Investments) return array(invs.vals) end import TimeData.core function core(invs::Investments) return convert(Array, invs.vals) end ############### ## get index ## ############### import TimeData.idx function idx(invs::Investments) return invs.idx end import Base.names function names(invs::Investments) return names(invs.vals) end ############# ## convert ## ############# import Base.convert function convert(::Type{Timematr}, invs::Investments) return Timematr(invs.vals, idx(invs)) end function convert(::Type{DataFrame}, invs::Investments) return [DataFrame(idx = invs.idx) invs.vals] end ## asArr ##------ import TimeData.asArr function asArr(invs::Investments) return convert(Array, invs.vals) end ######## ## IO ## ######## function readInvestments(filename::String) td = readTimedata(filename) return Investments(td.vals, idx(td)) end function writeInvestments(filename::String, invs::Investments) ## create large dataframe idxDf = DataFrame(idx = idx(invs)); df = [idxDf invs.vals]; writetable(filename, df) end ############# ## isequal ## ############# import Base.isequal function isequal(invs::Investments, invs2::Investments) typeEqu = isequal(typeof(invs), typeof(invs2)) valsEqu = isequal(invs.vals, invs2.vals) idxEqu = isequal(invs.idx, invs2.idx) equ = (valsEqu & idxEqu & typeEqu) return equ end ########## ## copy ## ########## function Base.copy(invs::Investments) copiedVals = copy(invs.vals) copiedInvs = AssetMgmt.Investments(copiedVals, idx(invs)) return copiedInvs end ############################################### ## check matching investment and return data ## ############################################### function chkMatchInvData(invs::Investments, discRet::Timematr) ## test whether investments and return data are matching ## ## Matching: all investement dates are entailed in return data ## dates. ## ## Output: error when inputs don't match ## check for conforming dates and assets if !issubset(idx(invs), idx(discRet)) error("indices / dates of investments must be contained in dates of return data") end if AssetMgmt.names(invs) != names(discRet) error("asset names of investments and returns must coincide") end end ####################################### ## find trading days for investments ## ####################################### function isTradingDay(invs::Investments, discRet::Timematr) ## most changes in investment weights are caused by simple price ## changes without actual trading. This function finds all days ## with active rebalancing of weights. If evening weights ## (achieved through price changes) deviate from next day morning ## weights, next day will be called trading day. ## ## return dates may deviate from investment dates as long as all ## investment dates are also contained in return dates. ## ## trading day indicators are returned for all investment dates. ## get automatic daily changes of weights wgtsPriceChanges = evolWgts(invs, discRet) ## get values without metadata invsArr = AssetMgmt.core(invs) wgtsPriceChangesArr = AssetMgmt.core(wgtsPriceChanges) ## preallocate trading indicator nObs = size(invs, 1) isTrading = falses(nObs) ## first day is defined as trading day isTrading[1] = true for ii=2:nObs ## get weight changes from evening weights last day to morning ## weights of current day wgtChange = sum(abs(invsArr[ii, :] - wgtsPriceChangesArr[ii-1, :])) if wgtChange > 1e-12 isTrading[ii] = true end end return isTrading end ###################### ## getindex methods ## ###################### ## invs[SingleColumnIndex] => Timematr ## invs[MultiColumnIndex] => Timematr (if columns sum up to one: ## Investments?) ## invs[SingleRowIndex, SingleColumnIndex] => Scalar ## invs[SingleRowIndex, MultiColumnIndex] => Timematr ## invs[MultiRowIndex, SingleColumnIndex] => Timematr ## invs[MultiRowIndex, MultiColumnIndex] => Timematr (if columns sum ## up to one: Investments) ## TimeData types do ALWAYS preserve types when indexing. typealias ColumnIndex Union(Real, Symbol) # invs[SingleColumnIndex] => Timematr function Base.getindex(invs::Investments, col_ind::ColumnIndex) tm = convert(Timematr, invs) return tm[col_ind] end # invs[MultiColumnIndex] => Timematr (Investments for simple # re-ordering) function Base.getindex{T <: ColumnIndex}(invs::Investments, col_inds::AbstractVector{T}) output = convert(Timematr, invs)[col_inds] ## are all columns selected? nAss = size(invs, 2) if length(col_inds) == nAss if sort(col_inds) == sort(names(invs)) output = AssetMgmt.Investments(output.vals, idx(invs)) end end return output end # invs[SingleRowIndex, SingleColumnIndex] => Timematr function Base.getindex(invs::Investments, row_ind::Real, col_ind::ColumnIndex) tm = convert(Timematr, invs) return tm[row_ind, col_ind] end # invs[SingleRowIndex, MultiColumnIndex] => Timematr function Base.getindex{T <: ColumnIndex}(invs::Investments, row_ind::Real, col_inds::AbstractVector{T}) output = convert(Timematr, invs)[row_ind, col_inds] ## are all columns selected? nAss = size(invs, 2) if length(col_inds) == nAss if sort(col_inds) == sort(names(invs)) output = AssetMgmt.Investments(output.vals, idx(invs)) end end return output end # invs[MultiRowIndex, SingleColumnIndex] => Timematr function Base.getindex{T <: Real}(invs::Investments, row_inds::AbstractVector{T}, col_ind::ColumnIndex) tm = convert(Timematr, invs) return tm[row_inds, col_ind] end # invs[MultiRowIndex, MultiColumnIndex] => Timematr function Base.getindex{R <: Real, T <: ColumnIndex}(invs::Investments, row_inds::AbstractVector{R}, col_inds::AbstractVector{T}) output = convert(Timematr, invs)[row_inds, col_inds] ## are all columns selected? nAss = size(invs, 2) if length(col_inds) == nAss if sort(col_inds) == sort(names(invs)) output = AssetMgmt.Investments(output.vals, idx(invs)) end end return output end
[ 27, 7856, 261, 480, 29, 66, 70, 2487, 14, 45869, 44, 70, 16762, 13, 20362, 27, 34345, 29, 10677, 14, 24859, 902, 13, 20362, 198, 7804, 4242, 2235, 198, 2235, 10154, 22492, 198, 7804, 4242, 2235, 198, 198, 2235, 3858, 25, 198, 2235, 532, 46568, 7904, 2407, 2092, 284, 5045, 368, 265, 81, 11, 351, 7032, 5299, 12786, 93, 290, 5299, 312, 87, 93, 628, 198, 29113, 2, 198, 2235, 6770, 46568, 2099, 22492, 198, 29113, 2, 198, 198, 4906, 46568, 90, 51, 92, 198, 220, 220, 220, 410, 874, 3712, 6601, 19778, 198, 220, 220, 220, 4686, 87, 3712, 19182, 90, 51, 11, 352, 92, 628, 220, 220, 220, 2163, 46568, 7, 12786, 3712, 6601, 19778, 11, 4686, 87, 3712, 19182, 90, 51, 11, 352, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 22492, 10874, 286, 640, 6376, 290, 35575, 1366, 357, 3919, 399, 1722, 3142, 8, 198, 220, 220, 220, 220, 220, 220, 220, 22492, 351, 4961, 5752, 3146, 290, 15274, 5700, 286, 1366, 4961, 284, 530, 628, 220, 220, 220, 220, 220, 220, 220, 22492, 2198, 17778, 198, 220, 220, 220, 220, 220, 220, 220, 3862, 6601, 13, 354, 74, 7390, 87, 7, 312, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3862, 6601, 13, 354, 74, 33111, 7, 12786, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 35575, 3815, 691, 30, 198, 220, 220, 220, 220, 220, 220, 220, 442, 74, 23588, 874, 3198, 7, 12786, 8, 628, 220, 220, 220, 220, 220, 220, 220, 22492, 2198, 4961, 1271, 286, 15274, 198, 220, 220, 220, 220, 220, 220, 220, 611, 7, 7857, 7, 12786, 11, 352, 8, 14512, 4129, 7, 312, 87, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 357, 13664, 7, 312, 87, 8, 6624, 657, 8, 930, 357, 7857, 7, 12786, 11, 352, 8, 6624, 657, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 649, 7, 6601, 19778, 7, 21737, 828, 15690, 90, 51, 11, 352, 92, 58, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 7, 13664, 7, 312, 87, 828, 366, 4686, 87, 12784, 11, 475, 33172, 2546, 7, 12786, 11, 352, 828, 366, 15274, 286, 1366, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 649, 7, 12786, 11, 4686, 87, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 2235, 2672, 329, 5772, 19482, 2099, 14305, 198, 8818, 46568, 90, 51, 92, 7, 12786, 3712, 6601, 19778, 11, 4686, 87, 3712, 19182, 90, 51, 11, 352, 30072, 198, 220, 220, 220, 1441, 46568, 90, 51, 92, 7, 12786, 11, 4686, 87, 8, 198, 437, 198, 198, 2235, 37588, 1231, 9667, 198, 8818, 46568, 7, 12786, 3712, 6601, 19778, 8, 198, 220, 220, 220, 299, 13924, 45242, 796, 2546, 7, 12786, 11, 352, 8, 198, 220, 220, 220, 1441, 46568, 7, 12786, 11, 685, 16, 25, 77, 13924, 45242, 12962, 198, 437, 198, 198, 14468, 4242, 198, 2235, 3359, 2446, 22492, 198, 14468, 4242, 198, 198, 11748, 7308, 13, 15205, 20626, 13, 13812, 198, 8818, 3359, 7, 259, 14259, 3712, 19070, 902, 8, 198, 220, 220, 220, 22492, 3359, 1321, 546, 281, 7177, 198, 220, 220, 220, 220, 198, 220, 220, 220, 22492, 900, 3359, 10007, 198, 220, 220, 220, 3509, 7279, 79, 5216, 82, 796, 642, 26, 198, 220, 220, 220, 220, 198, 220, 220, 220, 22492, 651, 2099, 290, 2214, 1321, 198, 220, 220, 220, 2170, 796, 2099, 1659, 7, 259, 14259, 8, 198, 220, 220, 220, 44872, 7203, 59, 429, 2981, 25, 720, 28004, 4943, 220, 220, 220, 220, 198, 220, 220, 220, 3601, 7203, 27740, 5736, 25, 366, 8, 198, 220, 220, 220, 3601, 7, 7857, 7, 259, 14259, 4008, 198, 220, 220, 220, 3601, 7203, 59, 77, 4943, 198, 220, 220, 220, 220, 198, 220, 220, 220, 22492, 651, 717, 12784, 198, 220, 220, 220, 357, 77, 808, 11, 299, 4033, 8, 796, 2546, 7, 259, 14259, 8, 220, 220, 220, 220, 628, 220, 220, 220, 905, 5216, 82, 796, 5288, 26933, 9806, 7279, 79, 5216, 82, 299, 4033, 36563, 628, 220, 220, 220, 2631, 988, 312, 87, 796, 6060, 19778, 7, 312, 87, 796, 800, 82, 13, 312, 87, 1776, 198, 220, 220, 220, 2631, 988, 796, 685, 6435, 988, 312, 87, 800, 82, 13, 12786, 58, 45299, 352, 25, 12860, 5216, 82, 60, 11208, 198, 220, 220, 220, 3359, 7, 6435, 988, 8, 198, 437, 198, 198, 8818, 965, 7, 259, 14259, 3712, 19070, 902, 8, 198, 220, 220, 220, 3359, 7, 259, 14259, 8, 198, 437, 628, 198, 14468, 4242, 2235, 198, 2235, 46568, 2546, 22492, 198, 14468, 4242, 2235, 198, 198, 11748, 7308, 13, 7857, 198, 8818, 2546, 7, 259, 14259, 3712, 19070, 902, 8, 198, 220, 220, 220, 1441, 2546, 7, 259, 14259, 13, 12786, 8, 198, 437, 198, 198, 8818, 2546, 7, 259, 14259, 3712, 19070, 902, 11, 773, 3712, 5317, 8, 198, 220, 220, 220, 1441, 2546, 7, 259, 14259, 13, 12786, 11, 773, 8, 198, 437, 198, 198, 11748, 7308, 13, 358, 12078, 198, 8818, 299, 67, 12078, 7, 259, 14259, 3712, 19070, 902, 8, 198, 220, 220, 220, 1441, 299, 67, 12078, 7, 259, 14259, 13, 12786, 8, 198, 437, 198, 198, 14468, 4242, 2, 198, 2235, 651, 11115, 22492, 198, 14468, 4242, 2, 198, 198, 8818, 19590, 7, 259, 14259, 3712, 19070, 902, 8, 198, 220, 220, 220, 1441, 7177, 7, 259, 14259, 13, 12786, 8, 198, 437, 198, 198, 11748, 3862, 6601, 13, 7295, 198, 8818, 4755, 7, 259, 14259, 3712, 19070, 902, 8, 198, 220, 220, 220, 1441, 10385, 7, 19182, 11, 800, 82, 13, 12786, 8, 198, 437, 198, 198, 7804, 4242, 21017, 198, 2235, 651, 6376, 22492, 198, 7804, 4242, 21017, 198, 198, 11748, 3862, 6601, 13, 312, 87, 198, 8818, 4686, 87, 7, 259, 14259, 3712, 19070, 902, 8, 198, 220, 220, 220, 1441, 800, 82, 13, 312, 87, 198, 437, 198, 198, 11748, 7308, 13, 14933, 198, 8818, 3891, 7, 259, 14259, 3712, 19070, 902, 8, 198, 220, 220, 220, 1441, 3891, 7, 259, 14259, 13, 12786, 8, 198, 437, 198, 198, 7804, 4242, 2, 198, 2235, 10385, 22492, 198, 7804, 4242, 2, 198, 198, 11748, 7308, 13, 1102, 1851, 198, 8818, 10385, 7, 3712, 6030, 90, 14967, 368, 265, 81, 5512, 800, 82, 3712, 19070, 902, 8, 198, 220, 220, 220, 1441, 5045, 368, 265, 81, 7, 259, 14259, 13, 12786, 11, 4686, 87, 7, 259, 14259, 4008, 198, 437, 198, 198, 8818, 10385, 7, 3712, 6030, 90, 6601, 19778, 5512, 800, 82, 3712, 19070, 902, 8, 198, 220, 220, 220, 1441, 685, 6601, 19778, 7, 312, 87, 796, 800, 82, 13, 312, 87, 8, 800, 82, 13, 12786, 60, 198, 437, 198, 198, 2235, 355, 3163, 81, 198, 2235, 23031, 198, 198, 11748, 3862, 6601, 13, 292, 3163, 81, 198, 8818, 355, 3163, 81, 7, 259, 14259, 3712, 19070, 902, 8, 198, 220, 220, 220, 1441, 10385, 7, 19182, 11, 800, 82, 13, 12786, 8, 198, 437, 198, 198, 7804, 198, 2235, 24418, 22492, 198, 7804, 198, 198, 8818, 1100, 19070, 902, 7, 34345, 3712, 10100, 8, 198, 220, 220, 220, 41560, 796, 1100, 14967, 276, 1045, 7, 34345, 8, 198, 220, 220, 220, 1441, 46568, 7, 8671, 13, 12786, 11, 4686, 87, 7, 8671, 4008, 198, 437, 198, 198, 8818, 3551, 19070, 902, 7, 34345, 3712, 10100, 11, 800, 82, 3712, 19070, 902, 8, 198, 220, 220, 220, 22492, 2251, 1588, 1366, 14535, 198, 220, 220, 220, 4686, 87, 35, 69, 796, 6060, 19778, 7, 312, 87, 796, 4686, 87, 7, 259, 14259, 18125, 198, 220, 220, 220, 47764, 796, 685, 312, 87, 35, 69, 800, 82, 13, 12786, 11208, 198, 220, 220, 220, 1991, 316, 540, 7, 34345, 11, 47764, 8, 198, 437, 198, 198, 7804, 4242, 2, 198, 2235, 318, 40496, 22492, 198, 7804, 4242, 2, 198, 198, 11748, 7308, 13, 786, 13255, 198, 8818, 318, 40496, 7, 259, 14259, 3712, 19070, 902, 11, 800, 82, 17, 3712, 19070, 902, 8, 198, 220, 220, 220, 2099, 23588, 796, 318, 40496, 7, 4906, 1659, 7, 259, 14259, 828, 2099, 1659, 7, 259, 14259, 17, 4008, 198, 220, 220, 220, 410, 874, 23588, 796, 318, 40496, 7, 259, 14259, 13, 12786, 11, 800, 82, 17, 13, 12786, 8, 198, 220, 220, 220, 4686, 87, 23588, 796, 318, 40496, 7, 259, 14259, 13, 312, 87, 11, 800, 82, 17, 13, 312, 87, 8, 198, 220, 220, 220, 1602, 796, 357, 12786, 23588, 1222, 4686, 87, 23588, 1222, 2099, 23588, 8, 198, 220, 220, 220, 1441, 1602, 198, 437, 198, 198, 7804, 2235, 198, 2235, 4866, 22492, 198, 7804, 2235, 198, 198, 8818, 7308, 13, 30073, 7, 259, 14259, 3712, 19070, 902, 8, 198, 220, 220, 220, 18984, 53, 874, 796, 4866, 7, 259, 14259, 13, 12786, 8, 198, 220, 220, 220, 18984, 818, 14259, 796, 31433, 44, 70, 16762, 13, 19070, 902, 7, 22163, 798, 53, 874, 11, 4686, 87, 7, 259, 14259, 4008, 198, 220, 220, 220, 1441, 18984, 818, 14259, 198, 437, 198, 198, 29113, 7804, 4242, 21017, 198, 2235, 2198, 12336, 4896, 290, 1441, 1366, 22492, 198, 29113, 7804, 4242, 21017, 198, 198, 8818, 442, 74, 23850, 19904, 6601, 7, 259, 14259, 3712, 19070, 902, 11, 1221, 9781, 3712, 14967, 368, 265, 81, 8, 198, 220, 220, 220, 22492, 1332, 1771, 11115, 290, 1441, 1366, 389, 12336, 198, 220, 220, 220, 22492, 198, 220, 220, 220, 22492, 13225, 278, 25, 477, 1325, 972, 9667, 389, 920, 6255, 287, 1441, 1366, 198, 220, 220, 220, 22492, 9667, 13, 198, 220, 220, 220, 22492, 198, 220, 220, 220, 22492, 25235, 25, 4049, 618, 17311, 836, 470, 2872, 628, 220, 220, 220, 22492, 2198, 329, 369, 15464, 9667, 290, 6798, 198, 220, 220, 220, 611, 5145, 747, 549, 2617, 7, 312, 87, 7, 259, 14259, 828, 4686, 87, 7, 15410, 9781, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 521, 1063, 1220, 9667, 286, 11115, 1276, 307, 7763, 287, 198, 220, 220, 220, 9667, 286, 1441, 1366, 4943, 198, 220, 220, 220, 886, 628, 220, 220, 220, 611, 31433, 44, 70, 16762, 13, 14933, 7, 259, 14259, 8, 14512, 3891, 7, 15410, 9781, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 562, 316, 3891, 286, 11115, 290, 5860, 1276, 37319, 4943, 198, 220, 220, 220, 886, 198, 437, 198, 198, 29113, 4242, 21017, 198, 2235, 1064, 7313, 1528, 329, 11115, 22492, 198, 29113, 4242, 21017, 198, 198, 8818, 318, 2898, 4980, 12393, 7, 259, 14259, 3712, 19070, 902, 11, 1221, 9781, 3712, 14967, 368, 265, 81, 8, 198, 220, 220, 220, 22492, 749, 2458, 287, 4896, 19590, 389, 4073, 416, 2829, 2756, 198, 220, 220, 220, 22492, 2458, 1231, 4036, 7313, 13, 770, 2163, 7228, 477, 1528, 198, 220, 220, 220, 22492, 351, 4075, 3405, 282, 5077, 286, 19590, 13, 1002, 6180, 19590, 198, 220, 220, 220, 22492, 357, 620, 39591, 832, 2756, 2458, 8, 1614, 9386, 422, 1306, 1110, 3329, 198, 220, 220, 220, 22492, 19590, 11, 1306, 1110, 481, 307, 1444, 7313, 1110, 13, 198, 220, 220, 220, 22492, 198, 220, 220, 220, 22492, 1441, 9667, 743, 1614, 9386, 422, 4896, 9667, 355, 890, 355, 477, 198, 220, 220, 220, 22492, 4896, 9667, 389, 635, 7763, 287, 1441, 9667, 13, 198, 220, 220, 220, 22492, 198, 220, 220, 220, 22492, 7313, 1110, 21337, 389, 4504, 329, 477, 4896, 9667, 13, 628, 220, 220, 220, 22492, 651, 11353, 4445, 2458, 286, 19590, 198, 220, 220, 220, 266, 70, 912, 18124, 29238, 796, 819, 349, 54, 70, 912, 7, 259, 14259, 11, 1221, 9781, 8, 628, 220, 220, 220, 22492, 651, 3815, 1231, 20150, 198, 220, 220, 220, 800, 82, 3163, 81, 796, 31433, 44, 70, 16762, 13, 7295, 7, 259, 14259, 8, 198, 220, 220, 220, 266, 70, 912, 18124, 29238, 3163, 81, 796, 31433, 44, 70, 16762, 13, 7295, 7, 86, 70, 912, 18124, 29238, 8, 628, 220, 220, 220, 22492, 662, 439, 13369, 7313, 16916, 198, 220, 220, 220, 299, 31310, 796, 2546, 7, 259, 14259, 11, 352, 8, 198, 220, 220, 220, 318, 2898, 4980, 796, 27807, 274, 7, 77, 31310, 8, 628, 220, 220, 220, 22492, 717, 1110, 318, 5447, 355, 7313, 1110, 198, 220, 220, 220, 318, 2898, 4980, 58, 16, 60, 796, 2081, 628, 220, 220, 220, 329, 21065, 28, 17, 25, 77, 31310, 198, 220, 220, 220, 220, 220, 220, 220, 22492, 651, 3463, 2458, 422, 6180, 19590, 938, 1110, 284, 3329, 198, 220, 220, 220, 220, 220, 220, 220, 22492, 19590, 286, 1459, 1110, 198, 220, 220, 220, 220, 220, 220, 220, 266, 13655, 19400, 796, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 7, 8937, 7, 259, 14259, 3163, 81, 58, 4178, 11, 1058, 60, 532, 266, 70, 912, 18124, 29238, 3163, 81, 58, 4178, 12, 16, 11, 1058, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 611, 266, 13655, 19400, 1875, 352, 68, 12, 1065, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 2898, 4980, 58, 4178, 60, 796, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1441, 318, 2898, 4980, 198, 437, 198, 198, 14468, 4242, 2235, 198, 2235, 651, 9630, 5050, 22492, 198, 14468, 4242, 2235, 198, 198, 2235, 800, 82, 58, 28008, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 198, 2235, 800, 82, 58, 29800, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 357, 361, 15180, 2160, 510, 284, 530, 25, 198, 2235, 46568, 10091, 220, 198, 2235, 800, 82, 58, 28008, 25166, 15732, 11, 14206, 39470, 15732, 60, 5218, 34529, 283, 198, 2235, 800, 82, 58, 28008, 25166, 15732, 11, 15237, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 198, 2235, 800, 82, 58, 29800, 25166, 15732, 11, 14206, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 198, 2235, 800, 82, 58, 29800, 25166, 15732, 11, 15237, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 357, 361, 15180, 2160, 198, 2235, 510, 284, 530, 25, 46568, 8, 198, 198, 2235, 3862, 6601, 3858, 466, 49576, 12201, 3858, 618, 6376, 278, 13, 198, 198, 4906, 26011, 29201, 15732, 4479, 7, 15633, 11, 38357, 8, 198, 198, 2, 800, 82, 58, 28008, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 198, 8818, 7308, 13, 1136, 9630, 7, 259, 14259, 3712, 19070, 902, 11, 951, 62, 521, 3712, 39470, 15732, 8, 198, 220, 220, 220, 256, 76, 796, 10385, 7, 14967, 368, 265, 81, 11, 800, 82, 8, 198, 220, 220, 220, 1441, 256, 76, 58, 4033, 62, 521, 60, 198, 437, 198, 198, 2, 800, 82, 58, 29800, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 357, 19070, 902, 329, 2829, 198, 2, 302, 12, 34555, 8, 220, 220, 198, 8818, 7308, 13, 1136, 9630, 90, 51, 1279, 25, 29201, 15732, 92, 7, 259, 14259, 3712, 19070, 902, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 521, 82, 3712, 23839, 38469, 90, 51, 30072, 198, 220, 220, 220, 5072, 796, 10385, 7, 14967, 368, 265, 81, 11, 800, 82, 38381, 4033, 62, 521, 82, 60, 198, 220, 220, 220, 220, 198, 220, 220, 220, 22492, 389, 477, 15180, 6163, 30, 198, 220, 220, 220, 299, 8021, 796, 2546, 7, 259, 14259, 11, 362, 8, 198, 220, 220, 220, 611, 4129, 7, 4033, 62, 521, 82, 8, 6624, 299, 8021, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3297, 7, 4033, 62, 521, 82, 8, 6624, 3297, 7, 14933, 7, 259, 14259, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 31433, 44, 70, 16762, 13, 19070, 902, 7, 22915, 13, 12786, 11, 4686, 87, 7, 259, 14259, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 5072, 198, 437, 198, 198, 2, 800, 82, 58, 28008, 25166, 15732, 11, 14206, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 198, 8818, 7308, 13, 1136, 9630, 7, 259, 14259, 3712, 19070, 902, 11, 5752, 62, 521, 3712, 15633, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 521, 3712, 39470, 15732, 8, 198, 220, 220, 220, 256, 76, 796, 10385, 7, 14967, 368, 265, 81, 11, 800, 82, 8, 198, 220, 220, 220, 1441, 256, 76, 58, 808, 62, 521, 11, 951, 62, 521, 60, 198, 437, 198, 198, 2, 800, 82, 58, 28008, 25166, 15732, 11, 15237, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 198, 8818, 7308, 13, 1136, 9630, 90, 51, 1279, 25, 29201, 15732, 92, 7, 259, 14259, 3712, 19070, 902, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5752, 62, 521, 3712, 15633, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 521, 82, 3712, 23839, 38469, 90, 51, 30072, 198, 220, 220, 220, 5072, 796, 10385, 7, 14967, 368, 265, 81, 11, 800, 82, 38381, 808, 62, 521, 11, 951, 62, 521, 82, 60, 628, 220, 220, 220, 22492, 389, 477, 15180, 6163, 30, 198, 220, 220, 220, 299, 8021, 796, 2546, 7, 259, 14259, 11, 362, 8, 198, 220, 220, 220, 611, 4129, 7, 4033, 62, 521, 82, 8, 6624, 299, 8021, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3297, 7, 4033, 62, 521, 82, 8, 6624, 3297, 7, 14933, 7, 259, 14259, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 31433, 44, 70, 16762, 13, 19070, 902, 7, 22915, 13, 12786, 11, 4686, 87, 7, 259, 14259, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 5072, 198, 437, 198, 198, 2, 800, 82, 58, 29800, 25166, 15732, 11, 14206, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 198, 8818, 7308, 13, 1136, 9630, 90, 51, 1279, 25, 6416, 92, 7, 259, 14259, 3712, 19070, 902, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5752, 62, 521, 82, 3712, 23839, 38469, 90, 51, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 521, 3712, 39470, 15732, 8, 198, 220, 220, 220, 256, 76, 796, 10385, 7, 14967, 368, 265, 81, 11, 800, 82, 8, 198, 220, 220, 220, 1441, 256, 76, 58, 808, 62, 521, 82, 11, 951, 62, 521, 60, 198, 437, 198, 198, 2, 800, 82, 58, 29800, 25166, 15732, 11, 15237, 39470, 15732, 60, 5218, 5045, 368, 265, 81, 198, 8818, 7308, 13, 1136, 9630, 90, 49, 1279, 25, 6416, 11, 309, 1279, 25, 29201, 15732, 92, 7, 259, 14259, 3712, 19070, 902, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5752, 62, 521, 82, 3712, 23839, 38469, 90, 49, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 62, 521, 82, 3712, 23839, 38469, 90, 51, 30072, 198, 220, 220, 220, 5072, 796, 10385, 7, 14967, 368, 265, 81, 11, 800, 82, 38381, 808, 62, 521, 82, 11, 951, 62, 521, 82, 60, 628, 220, 220, 220, 22492, 389, 477, 15180, 6163, 30, 198, 220, 220, 220, 299, 8021, 796, 2546, 7, 259, 14259, 11, 362, 8, 198, 220, 220, 220, 611, 4129, 7, 4033, 62, 521, 82, 8, 6624, 299, 8021, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3297, 7, 4033, 62, 521, 82, 8, 6624, 3297, 7, 14933, 7, 259, 14259, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 31433, 44, 70, 16762, 13, 19070, 902, 7, 22915, 13, 12786, 11, 4686, 87, 7, 259, 14259, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 5072, 198, 437, 628, 198 ]
2.535144
3,571
module LogitTest using Test using ForneyLab using ForneyLab: outboundType, isApplicable using ForneyLab: VBLogitOut, VBLogitIn1, VBLogitXi #------------- # Update rules #------------- @testset "VBLogitOut" begin @test VBLogitOut <: NaiveVariationalRule{Logit} @test outboundType(VBLogitOut) == Message{Bernoulli} @test isApplicable(VBLogitOut, [Nothing, ProbabilityDistribution, ProbabilityDistribution]) @test ruleVBLogitOut(nothing, ProbabilityDistribution(Univariate, GaussianMeanVariance, m=2.0, v=1.0), ProbabilityDistribution(Univariate, PointMass, m=3.0)) == Message(Univariate, Bernoulli, p=1/(1+exp(-2.0))) end @testset "VBLogitIn1" begin @test VBLogitIn1 <: NaiveVariationalRule{Logit} @test outboundType(VBLogitIn1) == Message{GaussianWeightedMeanPrecision} @test isApplicable(VBLogitIn1, [ProbabilityDistribution, Nothing, ProbabilityDistribution]) @test ruleVBLogitIn1(ProbabilityDistribution(Univariate, Bernoulli, p=0.8), nothing, ProbabilityDistribution(Univariate, PointMass, m=3.0)) == Message(Univariate, GaussianWeightedMeanPrecision, xi=0.3, w=(1/(1+exp(-3.0)) - 0.5)/3.0) end @testset "VBLogitXi" begin @test VBLogitXi <: NaiveVariationalRule{Logit} @test outboundType(VBLogitXi) == Message{Function} @test isApplicable(VBLogitXi, [ProbabilityDistribution, ProbabilityDistribution, Nothing]) @test ruleVBLogitXi(ProbabilityDistribution(Univariate, Bernoulli, p=0.8), ProbabilityDistribution(Univariate, GaussianMeanVariance, m=2.0, v=1.0), nothing) == Message(Univariate, Function, mode=sqrt(5.0)) end @testset "averageEnergy" begin @test averageEnergy(Logit, ProbabilityDistribution(Univariate, Bernoulli, p=0.8), ProbabilityDistribution(Univariate, GaussianMeanVariance, m=2.0, v=1.0), ProbabilityDistribution(Univariate, PointMass, m=3.0)) == (1/(1+exp(-3.0)) - 0.5)/6.0*(5.0 - 9.0) + 2.5 + log(1+exp(-3.0)) - 1.6 end end # module
[ 21412, 5972, 270, 14402, 198, 198, 3500, 6208, 198, 3500, 1114, 1681, 17822, 198, 3500, 1114, 1681, 17822, 25, 503, 7784, 6030, 11, 318, 33583, 540, 198, 3500, 1114, 1681, 17822, 25, 569, 9148, 519, 270, 7975, 11, 569, 9148, 519, 270, 818, 16, 11, 569, 9148, 519, 270, 42528, 628, 198, 2, 32501, 198, 2, 10133, 3173, 198, 2, 32501, 198, 198, 31, 9288, 2617, 366, 53, 9148, 519, 270, 7975, 1, 2221, 198, 220, 220, 220, 2488, 9288, 569, 9148, 519, 270, 7975, 1279, 25, 11013, 425, 23907, 864, 31929, 90, 11187, 270, 92, 198, 220, 220, 220, 2488, 9288, 503, 7784, 6030, 7, 53, 9148, 519, 270, 7975, 8, 6624, 16000, 90, 23927, 280, 15516, 92, 198, 220, 220, 220, 2488, 9288, 318, 33583, 540, 7, 53, 9148, 519, 270, 7975, 11, 685, 18465, 11, 30873, 1799, 20344, 3890, 11, 30873, 1799, 20344, 3890, 12962, 220, 628, 220, 220, 220, 2488, 9288, 3896, 53, 9148, 519, 270, 7975, 7, 22366, 11, 30873, 1799, 20344, 3890, 7, 3118, 42524, 11, 12822, 31562, 5308, 272, 23907, 590, 11, 285, 28, 17, 13, 15, 11, 410, 28, 16, 13, 15, 828, 30873, 1799, 20344, 3890, 7, 3118, 42524, 11, 6252, 20273, 11, 285, 28, 18, 13, 15, 4008, 6624, 16000, 7, 3118, 42524, 11, 6206, 280, 15516, 11, 279, 28, 16, 29006, 16, 10, 11201, 32590, 17, 13, 15, 22305, 198, 437, 198, 198, 31, 9288, 2617, 366, 53, 9148, 519, 270, 818, 16, 1, 2221, 198, 220, 220, 220, 2488, 9288, 569, 9148, 519, 270, 818, 16, 1279, 25, 11013, 425, 23907, 864, 31929, 90, 11187, 270, 92, 198, 220, 220, 220, 2488, 9288, 503, 7784, 6030, 7, 53, 9148, 519, 270, 818, 16, 8, 6624, 16000, 90, 35389, 31562, 25844, 276, 5308, 272, 6719, 16005, 92, 198, 220, 220, 220, 2488, 9288, 318, 33583, 540, 7, 53, 9148, 519, 270, 818, 16, 11, 685, 2964, 65, 1799, 20344, 3890, 11, 10528, 11, 30873, 1799, 20344, 3890, 12962, 220, 628, 220, 220, 220, 2488, 9288, 3896, 53, 9148, 519, 270, 818, 16, 7, 2964, 65, 1799, 20344, 3890, 7, 3118, 42524, 11, 6206, 280, 15516, 11, 279, 28, 15, 13, 23, 828, 2147, 11, 30873, 1799, 20344, 3890, 7, 3118, 42524, 11, 6252, 20273, 11, 285, 28, 18, 13, 15, 4008, 6624, 16000, 7, 3118, 42524, 11, 12822, 31562, 25844, 276, 5308, 272, 6719, 16005, 11, 2124, 72, 28, 15, 13, 18, 11, 266, 16193, 16, 29006, 16, 10, 11201, 32590, 18, 13, 15, 4008, 532, 657, 13, 20, 20679, 18, 13, 15, 8, 198, 437, 198, 198, 31, 9288, 2617, 366, 53, 9148, 519, 270, 42528, 1, 2221, 198, 220, 220, 220, 2488, 9288, 569, 9148, 519, 270, 42528, 1279, 25, 11013, 425, 23907, 864, 31929, 90, 11187, 270, 92, 198, 220, 220, 220, 2488, 9288, 503, 7784, 6030, 7, 53, 9148, 519, 270, 42528, 8, 6624, 16000, 90, 22203, 92, 198, 220, 220, 220, 2488, 9288, 318, 33583, 540, 7, 53, 9148, 519, 270, 42528, 11, 685, 2964, 65, 1799, 20344, 3890, 11, 30873, 1799, 20344, 3890, 11, 10528, 12962, 220, 628, 220, 220, 220, 2488, 9288, 3896, 53, 9148, 519, 270, 42528, 7, 2964, 65, 1799, 20344, 3890, 7, 3118, 42524, 11, 6206, 280, 15516, 11, 279, 28, 15, 13, 23, 828, 30873, 1799, 20344, 3890, 7, 3118, 42524, 11, 12822, 31562, 5308, 272, 23907, 590, 11, 285, 28, 17, 13, 15, 11, 410, 28, 16, 13, 15, 828, 2147, 8, 6624, 16000, 7, 3118, 42524, 11, 15553, 11, 4235, 28, 31166, 17034, 7, 20, 13, 15, 4008, 198, 437, 198, 198, 31, 9288, 2617, 366, 23913, 28925, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2811, 28925, 7, 11187, 270, 11, 30873, 1799, 20344, 3890, 7, 3118, 42524, 11, 6206, 280, 15516, 11, 279, 28, 15, 13, 23, 828, 30873, 1799, 20344, 3890, 7, 3118, 42524, 11, 12822, 31562, 5308, 272, 23907, 590, 11, 285, 28, 17, 13, 15, 11, 410, 28, 16, 13, 15, 828, 30873, 1799, 20344, 3890, 7, 3118, 42524, 11, 6252, 20273, 11, 285, 28, 18, 13, 15, 4008, 6624, 357, 16, 29006, 16, 10, 11201, 32590, 18, 13, 15, 4008, 532, 657, 13, 20, 20679, 21, 13, 15, 9, 7, 20, 13, 15, 532, 860, 13, 15, 8, 1343, 362, 13, 20, 1343, 2604, 7, 16, 10, 11201, 32590, 18, 13, 15, 4008, 532, 352, 13, 21, 220, 198, 437, 198, 198, 437, 1303, 8265 ]
2.614966
735
# SPD-License-Identifier: MIT using ArgParse using JLD2 using MarkovModels function parse_commandline() s = ArgParseSettings() @add_arg_table s begin "lexicon" required = true help = "input lexicon file" "lexiconfsm" required = true help = "output lexicon in JLD2 format" end s.description = """ Build the lexicon FSM. The lexicon input file should be formatted as: word1 p r o n u n word1 p R o N u n word2 w o r d """ parse_args(s) end function LinearFSM(seq) SF = LogSemifield{Float32} fsm = VectorFSM{SF}() prev = nothing for (i, label) in enumerate(seq) initweight = i == 1 ? one(SF) : zero(SF) finalweight = i == length(seq) ? one(SF) : zero(SF) s = addstate!(fsm, label; initweight, finalweight) i > 1 && addarc!(fsm, prev, s) prev = s end fsm end function main(args) pronuns = Dict() open(args["lexicon"], "r") do f for line in eachline(f) tokens = split(line) word = tokens[1] pronun = tokens[2:end] list = get(pronuns, word, []) push!(list, pronun) pronuns[word] = list end end jldopen(args["lexiconfsm"], "w") do f for word in keys(pronuns) fsms = [LinearFSM(pronun) for pronun in pronuns[word]] fsm = union(fsms...) f[word] = fsm |> minimize |> renormalize end end end args = parse_commandline() main(args)
[ 2, 30628, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 198, 3500, 20559, 10044, 325, 198, 3500, 449, 11163, 17, 198, 3500, 2940, 709, 5841, 1424, 198, 198, 8818, 21136, 62, 21812, 1370, 3419, 198, 220, 220, 220, 264, 796, 20559, 10044, 325, 26232, 3419, 198, 220, 220, 220, 2488, 2860, 62, 853, 62, 11487, 264, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 366, 2588, 4749, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2672, 796, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 796, 366, 15414, 31191, 4749, 2393, 1, 198, 220, 220, 220, 220, 220, 220, 220, 366, 2588, 4749, 69, 5796, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2672, 796, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 796, 366, 22915, 31191, 4749, 287, 449, 11163, 17, 5794, 1, 198, 220, 220, 220, 886, 198, 220, 220, 220, 264, 13, 11213, 796, 37227, 198, 220, 220, 220, 10934, 262, 31191, 4749, 376, 12310, 13, 383, 31191, 4749, 5128, 2393, 815, 307, 39559, 198, 220, 220, 220, 355, 25, 628, 220, 220, 220, 1573, 16, 279, 374, 267, 299, 334, 299, 628, 220, 220, 220, 1573, 16, 279, 371, 267, 399, 334, 299, 628, 220, 220, 220, 1573, 17, 266, 267, 374, 288, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 21136, 62, 22046, 7, 82, 8, 198, 437, 198, 198, 8818, 44800, 10652, 44, 7, 41068, 8, 198, 220, 220, 220, 14362, 796, 5972, 13900, 361, 1164, 90, 43879, 2624, 92, 198, 220, 220, 220, 277, 5796, 796, 20650, 10652, 44, 90, 20802, 92, 3419, 628, 220, 220, 220, 8654, 796, 2147, 198, 220, 220, 220, 329, 357, 72, 11, 6167, 8, 287, 27056, 378, 7, 41068, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2315, 6551, 796, 1312, 6624, 352, 5633, 530, 7, 20802, 8, 1058, 6632, 7, 20802, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2457, 6551, 796, 1312, 6624, 4129, 7, 41068, 8, 5633, 530, 7, 20802, 8, 1058, 6632, 7, 20802, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 796, 751, 5219, 0, 7, 69, 5796, 11, 6167, 26, 2315, 6551, 11, 2457, 6551, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 1875, 352, 11405, 751, 5605, 0, 7, 69, 5796, 11, 8654, 11, 264, 8, 198, 220, 220, 220, 220, 220, 220, 220, 8654, 796, 264, 198, 220, 220, 220, 886, 628, 220, 220, 220, 277, 5796, 198, 437, 198, 198, 8818, 1388, 7, 22046, 8, 198, 220, 220, 220, 9668, 13271, 796, 360, 713, 3419, 198, 220, 220, 220, 1280, 7, 22046, 14692, 2588, 4749, 33116, 366, 81, 4943, 466, 277, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1627, 287, 1123, 1370, 7, 69, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16326, 796, 6626, 7, 1370, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1573, 796, 16326, 58, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9668, 403, 796, 16326, 58, 17, 25, 437, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1351, 796, 651, 7, 31186, 13271, 11, 1573, 11, 685, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 11, 9668, 403, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9668, 13271, 58, 4775, 60, 796, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 474, 335, 9654, 7, 22046, 14692, 2588, 4749, 69, 5796, 33116, 366, 86, 4943, 466, 277, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1573, 287, 8251, 7, 31186, 13271, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43458, 907, 796, 685, 14993, 451, 10652, 44, 7, 31186, 403, 8, 329, 9668, 403, 287, 9668, 13271, 58, 4775, 11907, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 5796, 796, 6441, 7, 9501, 907, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 58, 4775, 60, 796, 277, 5796, 930, 29, 17775, 930, 29, 8851, 6636, 1096, 628, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 22046, 796, 21136, 62, 21812, 1370, 3419, 198, 12417, 7, 22046, 8, 198 ]
2.059289
759
<filename>test/runtests.jl module TestTextAnalysis using SparseArrays using Test using Languages using TextAnalysis using WordTokenizers # @testset "TextAnalysis" begin println("Running tests:") include("tokenizer.jl") include("ngramizer.jl") include("document.jl") include("metadata.jl") include("corpus.jl") include("preprocessing.jl") include("dtm.jl") include("stemmer.jl") include("tf_idf.jl") include("lda.jl") include("summarizer.jl") include("sentiment.jl") include("bayes.jl") include("rouge.jl") include("averagePerceptronTagger.jl") include("utils.jl") # end end
[ 27, 34345, 29, 9288, 14, 81, 2797, 3558, 13, 20362, 198, 21412, 6208, 8206, 32750, 198, 3500, 1338, 17208, 3163, 20477, 198, 3500, 6208, 198, 3500, 42860, 198, 3500, 8255, 32750, 198, 3500, 9678, 30642, 11341, 198, 198, 2, 2488, 9288, 2617, 366, 8206, 32750, 1, 2221, 198, 198, 35235, 7203, 28768, 5254, 25, 4943, 198, 198, 17256, 7203, 30001, 7509, 13, 20362, 4943, 198, 17256, 7203, 782, 859, 7509, 13, 20362, 4943, 198, 17256, 7203, 22897, 13, 20362, 4943, 198, 17256, 7203, 38993, 13, 20362, 4943, 198, 17256, 7203, 10215, 79, 385, 13, 20362, 4943, 198, 17256, 7203, 3866, 36948, 13, 20362, 4943, 198, 17256, 7203, 67, 17209, 13, 20362, 4943, 198, 17256, 7203, 927, 647, 13, 20362, 4943, 198, 17256, 7203, 27110, 62, 312, 69, 13, 20362, 4943, 198, 17256, 7203, 18986, 13, 20362, 4943, 198, 17256, 7203, 16345, 3876, 7509, 13, 20362, 4943, 198, 17256, 7203, 34086, 3681, 13, 20362, 4943, 198, 17256, 7203, 24406, 274, 13, 20362, 4943, 198, 17256, 7203, 472, 469, 13, 20362, 4943, 198, 17256, 7203, 23913, 5990, 984, 1313, 51, 7928, 13, 20362, 4943, 198, 17256, 7203, 26791, 13, 20362, 4943, 198, 198, 2, 886, 198, 437, 628 ]
2.954082
196
using OmegaCore using OmegaTest using OmegaCore.Traits using Test using Distributions using Random function testtraits() Ο‰ = SimpleΞ©(Dict()) Ο‰2 = OmegaCore.appendscope(Ο‰, [1,]) # traits(typeof(Ο‰2.tags)) g(traits(typeof(Ο‰2))) end function testsimple1() Ο‰ = defΞ©()() Ο‰ = OmegaCore.tagrng(Ο‰, Random.GLOBAL_RNG) Ο‰2 = defΞ©()() Ο‰2 = OmegaCore.tagrng(Ο‰2, Random.GLOBAL_RNG) x = 1 ~ Normal(0, 1) map(x, [Ο‰, Ο‰2]) end function testsimple2() x = 1 ~ Normal(0, 1) rng = Random.GLOBAL_RNG Ξ©T = defΞ©() y = OmegaCore.condvar(x) Ο‰ = OmegaCore.OmegaRejectionSample.condomegasample1(rng, Ξ©T, y, OmegaCore.RejectionSample) x(Ο‰) end function testsimple3a() x = 1 ~ Normal(0, 1) rng = Random.GLOBAL_RNG Ξ©T = defΞ©() y = OmegaCore.condvar(x) Ο‰ = OmegaCore.OmegaRejectionSample.condomegasample1(rng, Ξ©T, y, OmegaCore.RejectionSample) map(x, typeof(Ο‰)[Ο‰, Ο‰]) end function testsimple3() x = 1 ~ Normal(0, 1) rng = Random.GLOBAL_RNG Ξ©T = defΞ©() y = OmegaCore.condvar(x) Ο‰ = OmegaCore.OmegaRejectionSample.condomegasample1(rng, Ξ©T, y, OmegaCore.RejectionSample) x.([Ο‰, Ο‰]) end function testsimple4() x = 1 ~ Normal(0, 1) rng = Random.GLOBAL_RNG Ξ©T = defΞ©() y = OmegaCore.condvar(x) Ο‰ = OmegaCore.OmegaRejectionSample.condomegasample(rng, Ξ©T, y, 5, OmegaCore.RejectionSample) map(x, Ο‰) end @testset "infer types" begin @test isinferred(testsimple1) @test isinferred(testsimple2) @test isinferred(testsimple3) @test isinferred(testsimple3a) @test isinferred(testsimple4) end
[ 3500, 19839, 14055, 198, 3500, 19839, 14402, 198, 3500, 19839, 14055, 13, 15721, 896, 198, 198, 3500, 6208, 198, 3500, 46567, 507, 198, 3500, 14534, 198, 198, 8818, 1332, 9535, 896, 3419, 198, 220, 18074, 231, 796, 17427, 138, 102, 7, 35, 713, 28955, 198, 220, 18074, 231, 17, 796, 19839, 14055, 13, 33295, 29982, 7, 49535, 11, 685, 16, 11, 12962, 198, 220, 1303, 12796, 7, 4906, 1659, 7, 49535, 17, 13, 31499, 4008, 198, 220, 308, 7, 9535, 896, 7, 4906, 1659, 7, 49535, 17, 22305, 198, 437, 628, 198, 8818, 5254, 320, 1154, 16, 3419, 198, 220, 18074, 231, 796, 825, 138, 102, 3419, 3419, 198, 220, 18074, 231, 796, 19839, 14055, 13, 12985, 81, 782, 7, 49535, 11, 14534, 13, 8763, 9864, 1847, 62, 49, 10503, 8, 198, 220, 18074, 231, 17, 796, 825, 138, 102, 3419, 3419, 198, 220, 18074, 231, 17, 796, 19839, 14055, 13, 12985, 81, 782, 7, 49535, 17, 11, 14534, 13, 8763, 9864, 1847, 62, 49, 10503, 8, 198, 220, 2124, 796, 352, 5299, 14435, 7, 15, 11, 352, 8, 198, 220, 3975, 7, 87, 11, 685, 49535, 11, 18074, 231, 17, 12962, 198, 437, 198, 198, 8818, 5254, 320, 1154, 17, 3419, 198, 220, 2124, 796, 352, 5299, 14435, 7, 15, 11, 352, 8, 198, 220, 374, 782, 796, 14534, 13, 8763, 9864, 1847, 62, 49, 10503, 198, 220, 7377, 102, 51, 796, 825, 138, 102, 3419, 198, 220, 331, 796, 19839, 14055, 13, 17561, 7785, 7, 87, 8, 198, 220, 18074, 231, 796, 220, 19839, 14055, 13, 46, 13731, 3041, 29192, 36674, 13, 17561, 462, 22649, 1403, 16, 7, 81, 782, 11, 7377, 102, 51, 11, 331, 11, 19839, 14055, 13, 3041, 29192, 36674, 8, 198, 220, 2124, 7, 49535, 8, 198, 437, 198, 198, 8818, 5254, 320, 1154, 18, 64, 3419, 198, 220, 2124, 796, 352, 5299, 14435, 7, 15, 11, 352, 8, 198, 220, 374, 782, 796, 14534, 13, 8763, 9864, 1847, 62, 49, 10503, 198, 220, 7377, 102, 51, 796, 825, 138, 102, 3419, 198, 220, 331, 796, 19839, 14055, 13, 17561, 7785, 7, 87, 8, 198, 220, 18074, 231, 796, 220, 19839, 14055, 13, 46, 13731, 3041, 29192, 36674, 13, 17561, 462, 22649, 1403, 16, 7, 81, 782, 11, 7377, 102, 51, 11, 331, 11, 19839, 14055, 13, 3041, 29192, 36674, 8, 198, 220, 3975, 7, 87, 11, 2099, 1659, 7, 49535, 38381, 49535, 11, 18074, 231, 12962, 198, 437, 198, 198, 8818, 5254, 320, 1154, 18, 3419, 198, 220, 2124, 796, 352, 5299, 14435, 7, 15, 11, 352, 8, 198, 220, 374, 782, 796, 14534, 13, 8763, 9864, 1847, 62, 49, 10503, 198, 220, 7377, 102, 51, 796, 825, 138, 102, 3419, 198, 220, 331, 796, 19839, 14055, 13, 17561, 7785, 7, 87, 8, 198, 220, 18074, 231, 796, 220, 19839, 14055, 13, 46, 13731, 3041, 29192, 36674, 13, 17561, 462, 22649, 1403, 16, 7, 81, 782, 11, 7377, 102, 51, 11, 331, 11, 19839, 14055, 13, 3041, 29192, 36674, 8, 198, 220, 2124, 12195, 58, 49535, 11, 18074, 231, 12962, 198, 437, 198, 198, 8818, 5254, 320, 1154, 19, 3419, 198, 220, 2124, 796, 352, 5299, 14435, 7, 15, 11, 352, 8, 198, 220, 374, 782, 796, 14534, 13, 8763, 9864, 1847, 62, 49, 10503, 198, 220, 7377, 102, 51, 796, 825, 138, 102, 3419, 198, 220, 331, 796, 19839, 14055, 13, 17561, 7785, 7, 87, 8, 198, 220, 18074, 231, 796, 220, 19839, 14055, 13, 46, 13731, 3041, 29192, 36674, 13, 17561, 462, 22649, 1403, 7, 81, 782, 11, 7377, 102, 51, 11, 331, 11, 642, 11, 19839, 14055, 13, 3041, 29192, 36674, 8, 198, 220, 3975, 7, 87, 11, 18074, 231, 8, 198, 437, 198, 198, 31, 9288, 2617, 366, 259, 2232, 3858, 1, 2221, 198, 220, 2488, 9288, 318, 259, 18186, 7, 41989, 320, 1154, 16, 8, 198, 220, 2488, 9288, 318, 259, 18186, 7, 41989, 320, 1154, 17, 8, 198, 220, 2488, 9288, 318, 259, 18186, 7, 41989, 320, 1154, 18, 8, 198, 220, 2488, 9288, 318, 259, 18186, 7, 41989, 320, 1154, 18, 64, 8, 198, 220, 2488, 9288, 318, 259, 18186, 7, 41989, 320, 1154, 19, 8, 198, 437, 220, 220 ]
2.214697
694
include("NonSimpleNumField/Field.jl")
[ 17256, 7203, 15419, 26437, 33111, 15878, 14, 15878, 13, 20362, 4943, 198 ]
3.166667
12
<filename>test/runtests.jl include("../src/nn.jl") using Test Random.seed!(1) """ charge distribution -> potential (Poisson's eqn), electric field (Gauss's law) """ # input Scalar field inranks = [0] # output scalar field, vector field outranks = [0, 1] sz=(8,8,8) dx = 0.1 dV=dx^3 rmax = 2dx lmax = 1 # charge distribution x = [zeros(sz...)] ix=[5, 5, 5] x[1][ix...] = 1.0 X=[x] # generate data # Green's fn for Poisson, Gauss f1 = LinearOperator(:potential,dx;rmax=rmax) f2 = LinearOperator(:field,dx;rmax=rmax) y1 = f1(X[1]) y2 = f2(X[1]) # check v=[1,1,1] ix = ix.+v r=norm(v)*dx @test y1[1][ix...]β‰ˆdV/r @test [y2[i][ix...] for i = 1:3]β‰ˆdV/r^2*ones(3)/sqrt(3) ## # train # linear layer: tensor field convolution L = EquivConv(inranks, outranks, dx; rmax = rmax) function nn(X) L(X) end function loss() y1hat, y2hat = nn(X) l1 = Flux.mae(toArray(y1), toArray(y1hat)) l2 = Flux.mae(toArray(y2), toArray(y2hat)) l = l1 + l2 println(l) l end loss() ## ps = Flux.params(L) data = [()] opt = ADAM(0.1) println("===\nTraining") for i = 1:5 # global doplot = i % 50 == 0 Flux.train!(loss, ps, data, opt) end ## Random.seed!(1) n=4 inranks=[0,0] outranks=[0] X=[[rand(n,n,n)],[rand(n,n,n)]] y=[[X[1][1].*X[2][1]]] # train # linear layer: tensor field convolution A = EquivAttn(inranks, outranks) function nn(X) A(X) end function loss() yhat = nn(X) l = Flux.mae(toArray(y[1]), toArray(yhat[1])) println(l) l end loss() ps = Flux.params(A) data = [()] opt = ADAM(0.1) println("===\nTraining") for i = 1:10 # global doplot = i % 50 == 0 Flux.train!(loss, ps, data, opt) end
[ 27, 34345, 29, 9288, 14, 81, 2797, 3558, 13, 20362, 198, 17256, 7203, 40720, 10677, 14, 20471, 13, 20362, 4943, 198, 3500, 6208, 198, 29531, 13, 28826, 0, 7, 16, 8, 628, 198, 198, 37811, 198, 10136, 6082, 4613, 2785, 357, 18833, 30927, 338, 37430, 77, 828, 5186, 2214, 357, 35389, 1046, 338, 1099, 8, 198, 37811, 198, 198, 2, 5128, 34529, 283, 2214, 198, 259, 81, 2283, 796, 685, 15, 60, 198, 2, 5072, 16578, 283, 2214, 11, 15879, 2214, 198, 448, 81, 2283, 796, 685, 15, 11, 352, 60, 198, 82, 89, 16193, 23, 11, 23, 11, 23, 8, 198, 34350, 796, 657, 13, 16, 198, 67, 53, 28, 34350, 61, 18, 198, 81, 9806, 796, 362, 34350, 198, 75, 9806, 796, 352, 198, 198, 2, 3877, 6082, 198, 87, 796, 685, 9107, 418, 7, 82, 89, 986, 15437, 198, 844, 41888, 20, 11, 642, 11, 642, 60, 198, 87, 58, 16, 7131, 844, 22345, 796, 352, 13, 15, 198, 55, 41888, 87, 60, 198, 198, 2, 7716, 1366, 198, 2, 3469, 338, 24714, 329, 7695, 30927, 11, 12822, 1046, 198, 69, 16, 796, 44800, 18843, 1352, 7, 25, 13059, 1843, 11, 34350, 26, 81, 9806, 28, 81, 9806, 8, 198, 69, 17, 796, 44800, 18843, 1352, 7, 25, 3245, 11, 34350, 26, 81, 9806, 28, 81, 9806, 8, 198, 198, 88, 16, 796, 277, 16, 7, 55, 58, 16, 12962, 198, 88, 17, 796, 277, 17, 7, 55, 58, 16, 12962, 198, 198, 2, 2198, 198, 85, 41888, 16, 11, 16, 11, 16, 60, 198, 844, 796, 220, 844, 13, 10, 85, 198, 81, 28, 27237, 7, 85, 27493, 34350, 198, 31, 9288, 331, 16, 58, 16, 7131, 844, 22345, 35705, 230, 67, 53, 14, 81, 198, 31, 9288, 685, 88, 17, 58, 72, 7131, 844, 22345, 329, 1312, 796, 352, 25, 18, 60, 35705, 230, 67, 53, 14, 81, 61, 17, 9, 1952, 7, 18, 20679, 31166, 17034, 7, 18, 8, 198, 198, 2235, 198, 2, 4512, 198, 2, 14174, 7679, 25, 11192, 273, 2214, 3063, 2122, 198, 43, 796, 7889, 452, 3103, 85, 7, 259, 81, 2283, 11, 503, 81, 2283, 11, 44332, 26, 374, 9806, 796, 374, 9806, 8, 198, 198, 8818, 299, 77, 7, 55, 8, 198, 220, 220, 220, 406, 7, 55, 8, 198, 437, 628, 198, 8818, 2994, 3419, 198, 220, 220, 220, 331, 16, 5183, 11, 331, 17, 5183, 796, 299, 77, 7, 55, 8, 198, 220, 220, 220, 300, 16, 796, 1610, 2821, 13, 2611, 68, 7, 1462, 19182, 7, 88, 16, 828, 284, 19182, 7, 88, 16, 5183, 4008, 198, 220, 220, 220, 300, 17, 796, 1610, 2821, 13, 2611, 68, 7, 1462, 19182, 7, 88, 17, 828, 284, 19182, 7, 88, 17, 5183, 4008, 198, 220, 220, 220, 300, 796, 300, 16, 1343, 300, 17, 198, 220, 220, 220, 44872, 7, 75, 8, 198, 220, 220, 220, 300, 198, 437, 198, 22462, 3419, 198, 2235, 198, 862, 796, 1610, 2821, 13, 37266, 7, 43, 8, 198, 7890, 796, 685, 3419, 60, 198, 8738, 796, 5984, 2390, 7, 15, 13, 16, 8, 198, 198, 35235, 7203, 18604, 59, 77, 44357, 4943, 198, 1640, 1312, 796, 352, 25, 20, 198, 220, 220, 220, 1303, 3298, 288, 20106, 313, 796, 1312, 4064, 2026, 6624, 657, 198, 220, 220, 220, 1610, 2821, 13, 27432, 0, 7, 22462, 11, 26692, 11, 1366, 11, 2172, 8, 198, 437, 198, 198, 2235, 198, 29531, 13, 28826, 0, 7, 16, 8, 198, 77, 28, 19, 198, 259, 81, 2283, 41888, 15, 11, 15, 60, 198, 448, 81, 2283, 41888, 15, 60, 198, 55, 28, 30109, 25192, 7, 77, 11, 77, 11, 77, 8, 38430, 25192, 7, 77, 11, 77, 11, 77, 8, 11907, 198, 88, 28, 30109, 55, 58, 16, 7131, 16, 4083, 9, 55, 58, 17, 7131, 16, 11907, 60, 198, 198, 2, 4512, 198, 2, 14174, 7679, 25, 11192, 273, 2214, 3063, 2122, 198, 198, 32, 796, 7889, 452, 8086, 77, 7, 259, 81, 2283, 11, 503, 81, 2283, 8, 198, 198, 8818, 299, 77, 7, 55, 8, 198, 220, 220, 220, 317, 7, 55, 8, 198, 437, 628, 198, 8818, 2994, 3419, 198, 220, 220, 220, 331, 5183, 796, 299, 77, 7, 55, 8, 198, 220, 220, 220, 300, 796, 1610, 2821, 13, 2611, 68, 7, 1462, 19182, 7, 88, 58, 16, 46570, 284, 19182, 7, 88, 5183, 58, 16, 60, 4008, 198, 220, 220, 220, 44872, 7, 75, 8, 198, 220, 220, 220, 300, 198, 437, 198, 22462, 3419, 198, 198, 862, 796, 1610, 2821, 13, 37266, 7, 32, 8, 198, 7890, 796, 685, 3419, 60, 198, 8738, 796, 5984, 2390, 7, 15, 13, 16, 8, 198, 198, 35235, 7203, 18604, 59, 77, 44357, 4943, 198, 1640, 1312, 796, 352, 25, 940, 198, 220, 220, 220, 1303, 3298, 288, 20106, 313, 796, 1312, 4064, 2026, 6624, 657, 198, 220, 220, 220, 1610, 2821, 13, 27432, 0, 7, 22462, 11, 26692, 11, 1366, 11, 2172, 8, 198, 437, 198 ]
1.997582
827
<reponame>UnofficialJuliaMirror/StaticRanges.jl-d8176aec-3168-11e9-3c98-e3954798be3a<filename>src/findvalue.jl # unsafe_findvalue doesn't confirm that the integer is in bounds or r[idx] == val unsafe_findvalue(val, r::Union{OneToRange,OneTo}) = round(Integer, val) function unsafe_findvalue(val, r::Union{StaticUnitRange,UnitRange}) return round(Integer, (val - first(r)) + 1) end function unsafe_findvalue(val, r::Union{AbstractStepRangeLen,StepRangeLen}) return round(Integer, ((val - r.ref) / step_hp(r)) + r.offset) end unsafe_findvalue(val, r::AbstractRange) = round(Integer, (val - r.start) / r.step) + 1 function unsafe_findvalue(val, r::Union{AbstractLinRange,LinRange}) return round(Integer, (((val - r.start) / (r.stop - r.start)) * r.lendiv) + 1) end unsafe_findvalue(val, ::LinearIndices{1,Tuple{OneTo{Int64}}}) = Int(val) Base.in(x::Integer, r::OneToRange{<:Integer}) = (1 <= x) & (x <= last(r)) Base.findall(f::Function, r::UnionRange) = find_all(f, r) Base.findall(f::Fix2{typeof(in)}, r::UnionRange) = find_all(f, r) Base.findlast(f::Function, x::UnionRange) = find_last(f, x) Base.findfirst(f::Function, r::UnionRange) = find_first(f, r) # TODO this could easily be optimized more @propagate_inbounds Base.count(f::Function, r::UnionRange) = length(find_all(f, r))
[ 27, 7856, 261, 480, 29, 3118, 16841, 16980, 544, 27453, 1472, 14, 45442, 49, 6231, 13, 20362, 12, 67, 23, 24096, 64, 721, 12, 18, 14656, 12, 1157, 68, 24, 12, 18, 66, 4089, 12, 68, 31010, 2857, 4089, 1350, 18, 64, 27, 34345, 29, 10677, 14, 19796, 8367, 13, 20362, 198, 2, 21596, 62, 19796, 8367, 1595, 470, 6216, 326, 262, 18253, 318, 287, 22303, 393, 374, 58, 312, 87, 60, 6624, 1188, 198, 13271, 8635, 62, 19796, 8367, 7, 2100, 11, 374, 3712, 38176, 90, 3198, 2514, 17257, 11, 3198, 2514, 30072, 796, 2835, 7, 46541, 11, 1188, 8, 198, 198, 8818, 21596, 62, 19796, 8367, 7, 2100, 11, 374, 3712, 38176, 90, 45442, 26453, 17257, 11, 26453, 17257, 30072, 198, 220, 220, 220, 1441, 2835, 7, 46541, 11, 357, 2100, 532, 717, 7, 81, 4008, 1343, 352, 8, 198, 437, 198, 198, 8818, 21596, 62, 19796, 8367, 7, 2100, 11, 374, 3712, 38176, 90, 23839, 8600, 17257, 30659, 11, 8600, 17257, 30659, 30072, 198, 220, 220, 220, 1441, 2835, 7, 46541, 11, 14808, 2100, 532, 374, 13, 5420, 8, 1220, 2239, 62, 24831, 7, 81, 4008, 1343, 374, 13, 28968, 8, 198, 437, 198, 198, 13271, 8635, 62, 19796, 8367, 7, 2100, 11, 374, 3712, 23839, 17257, 8, 796, 2835, 7, 46541, 11, 357, 2100, 532, 374, 13, 9688, 8, 1220, 374, 13, 9662, 8, 1343, 352, 198, 198, 8818, 21596, 62, 19796, 8367, 7, 2100, 11, 374, 3712, 38176, 90, 23839, 14993, 17257, 11, 14993, 17257, 30072, 198, 220, 220, 220, 1441, 2835, 7, 46541, 11, 14808, 7, 2100, 532, 374, 13, 9688, 8, 1220, 357, 81, 13, 11338, 532, 374, 13, 9688, 4008, 1635, 374, 13, 75, 437, 452, 8, 1343, 352, 8, 198, 437, 198, 198, 13271, 8635, 62, 19796, 8367, 7, 2100, 11, 7904, 14993, 451, 5497, 1063, 90, 16, 11, 51, 29291, 90, 3198, 2514, 90, 5317, 2414, 11709, 30072, 796, 2558, 7, 2100, 8, 198, 198, 14881, 13, 259, 7, 87, 3712, 46541, 11, 374, 3712, 3198, 2514, 17257, 90, 27, 25, 46541, 30072, 796, 357, 16, 19841, 2124, 8, 1222, 357, 87, 19841, 938, 7, 81, 4008, 198, 198, 14881, 13, 19796, 439, 7, 69, 3712, 22203, 11, 374, 3712, 38176, 17257, 8, 796, 1064, 62, 439, 7, 69, 11, 374, 8, 198, 198, 14881, 13, 19796, 439, 7, 69, 3712, 22743, 17, 90, 4906, 1659, 7, 259, 8, 5512, 374, 3712, 38176, 17257, 8, 796, 1064, 62, 439, 7, 69, 11, 374, 8, 198, 198, 14881, 13, 19796, 12957, 7, 69, 3712, 22203, 11, 2124, 3712, 38176, 17257, 8, 796, 1064, 62, 12957, 7, 69, 11, 2124, 8, 198, 198, 14881, 13, 19796, 11085, 7, 69, 3712, 22203, 11, 374, 3712, 38176, 17257, 8, 796, 1064, 62, 11085, 7, 69, 11, 374, 8, 198, 198, 2, 16926, 46, 428, 714, 3538, 307, 23392, 517, 198, 31, 22930, 37861, 62, 259, 65, 3733, 7308, 13, 9127, 7, 69, 3712, 22203, 11, 374, 3712, 38176, 17257, 8, 796, 4129, 7, 19796, 62, 439, 7, 69, 11, 374, 4008, 198 ]
2.568898
508
using RMInsurance using Distributions using DataFrames include("SSTLife_Input.jl") include("SSTLife.jl") println("Start SSTLife test") @test round(rtk_start, digits = 2) β‰ˆ 158.58 @test round(tc, digits = 2) β‰ˆ 147.60 @test round(sst_ratio, digits = 4) β‰ˆ 1.0744 println("End SSTLife test")
[ 3500, 29820, 20376, 3874, 198, 198, 3500, 46567, 507, 198, 3500, 6060, 35439, 198, 17256, 7203, 50, 2257, 14662, 62, 20560, 13, 20362, 4943, 198, 17256, 7203, 50, 2257, 14662, 13, 20362, 4943, 198, 198, 35235, 7203, 10434, 311, 2257, 14662, 1332, 4943, 198, 198, 31, 9288, 2835, 7, 17034, 74, 62, 9688, 11, 19561, 796, 362, 8, 15139, 230, 24063, 13, 3365, 198, 31, 9288, 2835, 7, 23047, 11, 19561, 796, 362, 8, 15139, 230, 22909, 13, 1899, 198, 31, 9288, 2835, 7, 82, 301, 62, 10366, 952, 11, 19561, 796, 604, 8, 15139, 230, 352, 13, 2998, 2598, 198, 198, 35235, 7203, 12915, 311, 2257, 14662, 1332, 4943, 198 ]
2.630631
111
using HSA include("helpers.jl") using FactCheck @with_agents facts("The ISA") do rt = Runtime() context("Can be retrieved from an agent") do agent = get_testagent() isa = HSA.agent_info_isa(agent) name = HSA.isa_info_name(isa) @fact name --> not("") end end
[ 3500, 367, 4090, 198, 17256, 7203, 16794, 364, 13, 20362, 4943, 198, 3500, 19020, 9787, 198, 198, 31, 4480, 62, 49638, 6419, 7203, 464, 3180, 32, 4943, 466, 198, 220, 220, 220, 374, 83, 796, 43160, 3419, 628, 220, 220, 220, 4732, 7203, 6090, 307, 29517, 422, 281, 5797, 4943, 466, 198, 220, 220, 220, 220, 220, 220, 220, 5797, 796, 651, 62, 9288, 25781, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 318, 64, 796, 367, 4090, 13, 25781, 62, 10951, 62, 9160, 7, 25781, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 367, 4090, 13, 9160, 62, 10951, 62, 3672, 7, 9160, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 22584, 1438, 220, 14610, 407, 7203, 4943, 198, 220, 220, 220, 886, 198, 437, 198 ]
2.315789
133
<reponame>jagot/QuantumInt.jl abstract AbstractObservable using SimpleFields import Base: call call{T<:AbstractFloat}(obs::AbstractObservable, Ξ¨, i::Integer, Ο„::T, field::Field) = (obs.v[i] = value(obs, Ξ¨, i, Ο„, field)) type TimeObservable{T<:AbstractFloat} <: AbstractObservable v::Vector{T} TimeObservable(N::Int) = new(Vector{T}(N)) end value{T<:AbstractFloat}(obs::TimeObservable{T}, Ξ¨, i::Integer, Ο„::T, field::Field) = (i-1)*Ο„ type NormObservable{T<:AbstractFloat} <: AbstractObservable v::Vector{T} NormObservable(N::Int) = new(Vector{T}(N)) end value{T<:AbstractFloat}(obs::NormObservable{T}, Ξ¨, i::Integer, Ο„::T, field::Field) = norm(Ξ¨) type FieldObservable{T<:AbstractFloat} <: AbstractObservable v::Vector{T} FieldObservable(N::Int) = new(Vector{T}(N)) end value{T<:AbstractFloat}(obs::FieldObservable{T}, Ξ¨, i::Integer, Ο„::T, field::Field) = field((i-1)*Ο„/field.T) const observable_types = Dict("time" => TimeObservable, "norm" => NormObservable, "field" => FieldObservable)
[ 27, 7856, 261, 480, 29, 73, 363, 313, 14, 24915, 388, 5317, 13, 20362, 198, 397, 8709, 27741, 31310, 712, 540, 198, 3500, 17427, 15878, 82, 198, 198, 11748, 7308, 25, 869, 198, 198, 13345, 90, 51, 27, 25, 23839, 43879, 92, 7, 8158, 3712, 23839, 31310, 712, 540, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7377, 101, 11, 1312, 3712, 46541, 11, 46651, 3712, 51, 11, 2214, 3712, 15878, 8, 796, 357, 8158, 13, 85, 58, 72, 60, 796, 1988, 7, 8158, 11, 7377, 101, 11, 1312, 11, 46651, 11, 2214, 4008, 198, 198, 4906, 3862, 31310, 712, 540, 90, 51, 27, 25, 23839, 43879, 92, 1279, 25, 27741, 31310, 712, 540, 198, 220, 220, 220, 410, 3712, 38469, 90, 51, 92, 198, 220, 220, 220, 3862, 31310, 712, 540, 7, 45, 3712, 5317, 8, 796, 649, 7, 38469, 90, 51, 92, 7, 45, 4008, 198, 437, 198, 8367, 90, 51, 27, 25, 23839, 43879, 92, 7, 8158, 3712, 7575, 31310, 712, 540, 90, 51, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7377, 101, 11, 1312, 3712, 46541, 11, 46651, 3712, 51, 11, 2214, 3712, 15878, 8, 796, 357, 72, 12, 16, 27493, 32830, 198, 198, 4906, 11220, 31310, 712, 540, 90, 51, 27, 25, 23839, 43879, 92, 1279, 25, 27741, 31310, 712, 540, 198, 220, 220, 220, 410, 3712, 38469, 90, 51, 92, 198, 220, 220, 220, 11220, 31310, 712, 540, 7, 45, 3712, 5317, 8, 796, 649, 7, 38469, 90, 51, 92, 7, 45, 4008, 198, 437, 198, 8367, 90, 51, 27, 25, 23839, 43879, 92, 7, 8158, 3712, 35393, 31310, 712, 540, 90, 51, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7377, 101, 11, 1312, 3712, 46541, 11, 46651, 3712, 51, 11, 2214, 3712, 15878, 8, 796, 2593, 7, 138, 101, 8, 198, 198, 4906, 7663, 31310, 712, 540, 90, 51, 27, 25, 23839, 43879, 92, 1279, 25, 27741, 31310, 712, 540, 198, 220, 220, 220, 410, 3712, 38469, 90, 51, 92, 198, 220, 220, 220, 7663, 31310, 712, 540, 7, 45, 3712, 5317, 8, 796, 649, 7, 38469, 90, 51, 92, 7, 45, 4008, 198, 437, 198, 8367, 90, 51, 27, 25, 23839, 43879, 92, 7, 8158, 3712, 15878, 31310, 712, 540, 90, 51, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7377, 101, 11, 1312, 3712, 46541, 11, 46651, 3712, 51, 11, 2214, 3712, 15878, 8, 796, 2214, 19510, 72, 12, 16, 27493, 32830, 14, 3245, 13, 51, 8, 198, 198, 9979, 42550, 62, 19199, 796, 360, 713, 7203, 2435, 1, 5218, 3862, 31310, 712, 540, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 27237, 1, 5218, 11220, 31310, 712, 540, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3245, 1, 5218, 7663, 31310, 712, 540, 8, 198 ]
2.048951
572
<gh_stars>0 using WordCloud using Random words = [randstring(rand(1:8)) for i in 1:300] weights = randexp(length(words)) .* 1000 .+ rand(1:100, length(words)) wordcloud(words, weights) |> generate!
[ 27, 456, 62, 30783, 29, 15, 198, 3500, 9678, 18839, 198, 3500, 14534, 198, 10879, 796, 685, 25192, 8841, 7, 25192, 7, 16, 25, 23, 4008, 329, 1312, 287, 352, 25, 6200, 60, 198, 43775, 796, 43720, 11201, 7, 13664, 7, 10879, 4008, 764, 9, 8576, 764, 10, 43720, 7, 16, 25, 3064, 11, 4129, 7, 10879, 4008, 198, 4775, 17721, 7, 10879, 11, 19590, 8, 930, 29, 7716, 0 ]
2.814286
70
struct Model{F1<:Function,F2<:Function,F3<:Function} ΞΌ!::F1 G::F2 n::Int64 simulate::F3 Tx::Type Ty::Type end function simulateModel(model::Model, n::Int64) ys = Vector{model.Ty}(undef, n) rng = getRNG() x::model.Tx = model.Tx() for p in 1:n model.ΞΌ!(x, rng) ys[p] = model.simulate(x, rng) end return ys end
[ 7249, 9104, 90, 37, 16, 27, 25, 22203, 11, 37, 17, 27, 25, 22203, 11, 37, 18, 27, 25, 22203, 92, 198, 220, 18919, 0, 3712, 37, 16, 198, 220, 402, 3712, 37, 17, 198, 220, 299, 3712, 5317, 2414, 198, 220, 29308, 3712, 37, 18, 198, 220, 309, 87, 3712, 6030, 198, 220, 7039, 3712, 6030, 198, 437, 198, 198, 8818, 29308, 17633, 7, 19849, 3712, 17633, 11, 299, 3712, 5317, 2414, 8, 198, 220, 331, 82, 796, 20650, 90, 19849, 13, 25492, 92, 7, 917, 891, 11, 299, 8, 198, 220, 374, 782, 796, 651, 49, 10503, 3419, 198, 220, 2124, 3712, 19849, 13, 46047, 796, 2746, 13, 46047, 3419, 198, 220, 329, 279, 287, 352, 25, 77, 198, 220, 220, 220, 2746, 13, 34703, 0, 7, 87, 11, 374, 782, 8, 198, 220, 220, 220, 331, 82, 58, 79, 60, 796, 2746, 13, 14323, 5039, 7, 87, 11, 374, 782, 8, 198, 220, 886, 198, 220, 1441, 331, 82, 198, 437, 198 ]
2.066667
165
<filename>test/runtests.jl using PaddedBlocks using Test include("blocks.jl")
[ 27, 34345, 29, 9288, 14, 81, 2797, 3558, 13, 20362, 198, 3500, 350, 29373, 45356, 198, 3500, 6208, 198, 198, 17256, 7203, 27372, 13, 20362, 4943 ]
3
26
using JUDI, SegyIO, LinearAlgebra, PyPlot # Set up model structure n = (120, 100) # (x,y,z) or (x,z) d = (10., 10.) o = (0., 0.) # Velocity [km/s] v = ones(Float32,n) .+ 0.4f0 v[:,Int(round(end/2)):end] .= 3f0 v0 = ones(Float32,n) .+ 0.4f0 # Slowness squared [s^2/km^2] m0 = (1f0 ./ v0).^2 m = (1f0 ./ v).^2 dm = vec(m - m0) # Setup info and model structure nsrc = 2 # number of sources model0 = Model(n, d, o, m0) model = Model(n, d, o, m) # Set up receiver geometry nxrec = 120 xrec = range(50f0, stop=1150f0, length=nxrec) yrec = 0f0 zrec = range(50f0, stop=50f0, length=nxrec) # receiver sampling and recording time time = 1000f0 # receiver recording time [ms] dt = 4f0 # receiver sampling interval [ms] # Set up receiver structure recGeometry = Geometry(xrec, yrec, zrec; dt=dt, t=time, nsrc=nsrc) # Source wavelet f0 = 0.01f0 # kHz wavelet = ricker_wavelet(time, dt, f0) # Set up info structure for linear operators ntComp = get_computational_nt(recGeometry, model) info = Info(prod(n), nsrc, ntComp) ################################################################################################### # Write shots as segy files to disk opt = Options(return_array=false, dt_comp=1.0, free_surface=true) # Setup operators Pr = judiProjection(info, recGeometry) F = judiModeling(info, model; options=opt) # Extended source weights weights = Array{Array}(undef, nsrc) for j=1:nsrc weights[j] = randn(Float32, model.n) end w = judiWeights(weights) # Create operator for injecting the weights, multiplied by the provided wavelet(s) Pw = judiLRWF(info, wavelet) # Model observed data w/ extended source F = Pr*F*adjoint(Pw) # Simultaneous observed data d_sim = F*w dw = adjoint(F)*d_sim # Jacobian J = judiJacobian(F, w) d_lin = J*dm g = adjoint(J)*d_lin # Plot results figure() subplot(1,2,1) imshow(d_sim.data[1], vmin=-5e2, vmax=5e2, cmap="gray"); title("Non-linear shot record") subplot(1,2,2) imshow(d_lin.data[1], vmin=-5e3, vmax=5e3, cmap="gray"); title("Linearized shot record") figure() subplot(1,2,1) imshow(adjoint(dw.weights[1]), vmin=-5e6, vmax=5e6, cmap="gray"); title("Weights 1") subplot(1,2,2) imshow(adjoint(reshape(g, model0.n)), vmin=-1e8, vmax=1e8, cmap="gray"); title("Gradient w.r.t. m")
[ 3500, 449, 8322, 40, 11, 1001, 1360, 9399, 11, 44800, 2348, 29230, 11, 9485, 43328, 198, 198, 2, 5345, 510, 2746, 4645, 198, 77, 796, 357, 10232, 11, 1802, 8, 220, 220, 1303, 357, 87, 11, 88, 11, 89, 8, 393, 357, 87, 11, 89, 8, 198, 67, 796, 357, 940, 1539, 838, 2014, 198, 78, 796, 357, 15, 1539, 657, 2014, 198, 198, 2, 43137, 685, 13276, 14, 82, 60, 198, 85, 796, 3392, 7, 43879, 2624, 11, 77, 8, 764, 10, 657, 13, 19, 69, 15, 198, 85, 58, 45299, 5317, 7, 744, 7, 437, 14, 17, 8, 2599, 437, 60, 764, 28, 513, 69, 15, 198, 85, 15, 796, 3392, 7, 43879, 2624, 11, 77, 8, 764, 10, 657, 13, 19, 69, 15, 198, 198, 2, 3454, 593, 408, 44345, 685, 82, 61, 17, 14, 13276, 61, 17, 60, 198, 76, 15, 796, 357, 16, 69, 15, 24457, 410, 15, 737, 61, 17, 198, 76, 796, 357, 16, 69, 15, 24457, 410, 737, 61, 17, 198, 36020, 796, 43030, 7, 76, 532, 285, 15, 8, 198, 198, 2, 31122, 7508, 290, 2746, 4645, 198, 5907, 6015, 796, 362, 197, 2, 1271, 286, 4237, 198, 19849, 15, 796, 9104, 7, 77, 11, 288, 11, 267, 11, 285, 15, 8, 198, 19849, 796, 9104, 7, 77, 11, 288, 11, 267, 11, 285, 8, 198, 198, 2, 5345, 510, 9733, 22939, 198, 77, 87, 8344, 796, 7982, 198, 87, 8344, 796, 2837, 7, 1120, 69, 15, 11, 2245, 28, 1157, 1120, 69, 15, 11, 4129, 28, 77, 87, 8344, 8, 198, 88, 8344, 796, 657, 69, 15, 198, 89, 8344, 796, 2837, 7, 1120, 69, 15, 11, 2245, 28, 1120, 69, 15, 11, 4129, 28, 77, 87, 8344, 8, 198, 198, 2, 9733, 19232, 290, 8296, 640, 198, 2435, 796, 8576, 69, 15, 220, 220, 1303, 9733, 8296, 640, 685, 907, 60, 198, 28664, 796, 604, 69, 15, 220, 220, 220, 1303, 9733, 19232, 16654, 685, 907, 60, 198, 198, 2, 5345, 510, 9733, 4645, 198, 8344, 10082, 15748, 796, 2269, 15748, 7, 87, 8344, 11, 331, 8344, 11, 1976, 8344, 26, 288, 83, 28, 28664, 11, 256, 28, 2435, 11, 299, 10677, 28, 5907, 6015, 8, 198, 198, 2, 8090, 6769, 1616, 198, 69, 15, 796, 657, 13, 486, 69, 15, 220, 220, 220, 220, 1303, 37597, 198, 19204, 1616, 796, 374, 15799, 62, 19204, 1616, 7, 2435, 11, 288, 83, 11, 277, 15, 8, 198, 198, 2, 5345, 510, 7508, 4645, 329, 14174, 12879, 198, 429, 7293, 796, 651, 62, 785, 1996, 864, 62, 429, 7, 8344, 10082, 15748, 11, 2746, 8, 198, 10951, 796, 14151, 7, 1676, 67, 7, 77, 828, 299, 10677, 11, 299, 83, 7293, 8, 198, 198, 29113, 29113, 29113, 21017, 198, 198, 2, 19430, 6934, 355, 384, 1360, 3696, 284, 11898, 198, 8738, 796, 18634, 7, 7783, 62, 18747, 28, 9562, 11, 288, 83, 62, 5589, 28, 16, 13, 15, 11, 1479, 62, 42029, 28, 7942, 8, 198, 198, 2, 31122, 12879, 198, 6836, 796, 2553, 72, 16775, 295, 7, 10951, 11, 664, 10082, 15748, 8, 198, 37, 796, 2553, 72, 5841, 10809, 7, 10951, 11, 2746, 26, 3689, 28, 8738, 8, 198, 198, 2, 24204, 2723, 19590, 198, 43775, 796, 15690, 90, 19182, 92, 7, 917, 891, 11, 299, 10677, 8, 198, 1640, 474, 28, 16, 25, 5907, 6015, 198, 220, 220, 220, 19590, 58, 73, 60, 796, 43720, 77, 7, 43879, 2624, 11, 2746, 13, 77, 8, 198, 437, 198, 86, 796, 2553, 72, 1135, 2337, 7, 43775, 8, 198, 198, 2, 13610, 10088, 329, 41750, 262, 19590, 11, 33096, 416, 262, 2810, 6769, 1616, 7, 82, 8, 198, 47, 86, 796, 2553, 72, 35972, 48397, 7, 10951, 11, 6769, 1616, 8, 198, 198, 2, 9104, 6515, 1366, 266, 14, 7083, 2723, 198, 37, 796, 1736, 9, 37, 9, 41255, 1563, 7, 47, 86, 8, 198, 198, 2, 3184, 9560, 516, 6515, 1366, 198, 67, 62, 14323, 796, 376, 9, 86, 198, 67, 86, 796, 9224, 1563, 7, 37, 27493, 67, 62, 14323, 198, 198, 2, 12806, 666, 198, 41, 796, 2553, 72, 46751, 666, 7, 37, 11, 266, 8, 198, 67, 62, 2815, 796, 449, 9, 36020, 198, 70, 796, 9224, 1563, 7, 41, 27493, 67, 62, 2815, 198, 198, 2, 28114, 2482, 198, 26875, 3419, 198, 7266, 29487, 7, 16, 11, 17, 11, 16, 8, 198, 320, 12860, 7, 67, 62, 14323, 13, 7890, 58, 16, 4357, 410, 1084, 10779, 20, 68, 17, 11, 410, 9806, 28, 20, 68, 17, 11, 269, 8899, 2625, 44605, 15341, 3670, 7203, 15419, 12, 29127, 2823, 1700, 4943, 198, 7266, 29487, 7, 16, 11, 17, 11, 17, 8, 198, 320, 12860, 7, 67, 62, 2815, 13, 7890, 58, 16, 4357, 410, 1084, 10779, 20, 68, 18, 11, 410, 9806, 28, 20, 68, 18, 11, 269, 8899, 2625, 44605, 15341, 3670, 7203, 14993, 451, 1143, 2823, 1700, 4943, 198, 198, 26875, 3419, 198, 7266, 29487, 7, 16, 11, 17, 11, 16, 8, 198, 320, 12860, 7, 41255, 1563, 7, 67, 86, 13, 43775, 58, 16, 46570, 410, 1084, 10779, 20, 68, 21, 11, 410, 9806, 28, 20, 68, 21, 11, 269, 8899, 2625, 44605, 15341, 3670, 7203, 1135, 2337, 352, 4943, 198, 7266, 29487, 7, 16, 11, 17, 11, 17, 8, 198, 320, 12860, 7, 41255, 1563, 7, 3447, 1758, 7, 70, 11, 2746, 15, 13, 77, 36911, 410, 1084, 10779, 16, 68, 23, 11, 410, 9806, 28, 16, 68, 23, 11, 269, 8899, 2625, 44605, 15341, 3670, 7203, 42731, 1153, 266, 13, 81, 13, 83, 13, 285, 4943 ]
2.425946
925
<reponame>UnofficialJuliaMirrorSnapshots/BlockArrays.jl-8e7c35d0-a365-5155-bbbb-fb81a777f24e """ BlockSlice(indices) Represent an AbstractUnitRange of indices that attaches a block. Upon calling `to_indices()`, Blocks are converted to BlockSlice objects to represent the indices over which the Block spans. This mimics the relationship between `Colon` and `Base.Slice`. """ struct BlockSlice{BB} <: AbstractUnitRange{Int} block::BB indices::UnitRange{Int} end Block(bs::BlockSlice{<:Block}) = bs.block for f in (:axes, :unsafe_indices, :axes1, :first, :last, :size, :length, :unsafe_length, :start) @eval $f(S::BlockSlice) = $f(S.indices) end getindex(S::BlockSlice, i::Integer) = getindex(S.indices, i) show(io::IO, r::BlockSlice) = print(io, "BlockSlice(", r.block, ",", r.indices, ")") next(S::BlockSlice, s) = next(S.indices, s) done(S::BlockSlice, s) = done(S.indices, s) function _unblock(cum_sizes, I::Tuple{Block{1, T},Vararg{Any}}) where {T} B = first(I) b = first(B.n) range = cum_sizes[b]:cum_sizes[b + 1] - 1 BlockSlice(B, range) end function _unblock(cum_sizes, I::Tuple{BlockRange{1,R}, Vararg{Any}}) where {R} B = first(I) b_start = first(first(B.indices)) b_stop = last(first(B.indices)) range = cum_sizes[b_start]:cum_sizes[b_stop + 1] - 1 BlockSlice(B, range) end _sub_cumul_sizes(cs, inds) = _sub_cumul_sizes(cs, inds[1], tail(inds)) _sub_cumul_sizes(::Tuple{}, ::Tuple{}) = () function _sub_cumul_sizes(cs, inds1::BlockSlice{Block{1,Int}}, inds) B = Int(inds1.block) ret = view(cs[1], B:B+1) (ret .- ret[1] .+ 1, _sub_cumul_sizes(tail(cs), inds)...) end function _sub_cumul_sizes(cs, inds1::BlockSlice{BlockRange{1,Tuple{UnitRange{Int}}}}, inds) ret = view(cs[1], inds1.block.indices[1][1]:(inds1.block.indices[1][end]+1)) (ret .- ret[1] .+ 1, _sub_cumul_sizes(tail(cs), inds)...) end blocksizes(V::SubArray) = BlockSizes(_sub_cumul_sizes(cumulsizes(parent(V)), parentindices(V))) """ unblock(block_sizes, inds, I) Returns the indices associated with a block as a `BlockSlice`. """ function unblock(A::AbstractArray{T,N}, inds, I) where {T, N} if length(inds) == 0 # Allow `ones(2)[Block(1)[1:1], Block(1)[1:1]]` which is # similar to `ones(2)[1:1, 1:1]`. _unblock(Base.OneTo(2), I) else _unblock(cumulsizes(A, N - length(inds) + 1), I) end end to_index(::Block) = throw(ArgumentError("Block must be converted by to_indices(...)")) to_index(::BlockRange) = throw(ArgumentError("BlockRange must be converted by to_indices(...)")) @inline to_indices(A, inds, I::Tuple{Block{1}, Vararg{Any}}) = (unblock(A, inds, I), to_indices(A, _maybetail(inds), tail(I))...) # splat out higher dimensional blocks # this mimics view of a CartesianIndex @inline to_indices(A, inds, I::Tuple{Block, Vararg{Any}}) = to_indices(A, inds, (Block.(I[1].n)..., tail(I)...)) @inline to_indices(A, inds, I::Tuple{BlockRange{1,R}, Vararg{Any}}) where R = (unblock(A, inds, I), to_indices(A, _maybetail(inds), tail(I))...) # splat out higher dimensional blocks # this mimics view of a CartesianIndex @inline to_indices(A, inds, I::Tuple{BlockRange, Vararg{Any}}) = to_indices(A, inds, (BlockRange.(tuple.(I[1].indices))..., tail(I)...)) # In 0.7, we need to override to_indices to avoid calling linearindices @inline to_indices(A, I::Tuple{Block, Vararg{Any}}) = to_indices(A, axes(A), I) @inline to_indices(A, I::Tuple{BlockRange, Vararg{Any}}) = to_indices(A, axes(A), I) # The first argument for `reindex` is removed as of # https://github.com/JuliaLang/julia/pull/30789 in Julia `Base`. So, # we define 2-arg `reindex` for Julia 1.2 and later. if VERSION >= v"1.2-" # BlockSlices map the blocks and the indices # this is loosely based on Slice reindex in subarray.jl reindex(idxs::Tuple{BlockSlice{<:BlockRange}, Vararg{Any}}, subidxs::Tuple{BlockSlice{<:BlockRange}, Vararg{Any}}) = (@_propagate_inbounds_meta; (BlockSlice(BlockRange(idxs[1].block.indices[1][Int.(subidxs[1].block)]), idxs[1].indices[subidxs[1].indices]), reindex(tail(idxs), tail(subidxs))...)) reindex(idxs::Tuple{BlockSlice{BlockRange{1,Tuple{UnitRange{Int}}}}, Vararg{Any}}, subidxs::Tuple{BlockSlice{Block{1,Int}}, Vararg{Any}}) = (@_propagate_inbounds_meta; (BlockSlice(Block(idxs[1].block.indices[1][Int(subidxs[1].block)]), idxs[1].indices[subidxs[1].indices]), reindex(tail(idxs), tail(subidxs))...)) function reindex(idxs::Tuple{BlockSlice{Block{1,Int}}, Vararg{Any}}, subidxs::Tuple{BlockSlice{Block{1,Int}}, Vararg{Any}}) (idxs[1], reindex(tail(idxs), tail(subidxs))...) end else # if VERSION >= v"1.2-" reindex(V, idxs::Tuple{BlockSlice{<:BlockRange}, Vararg{Any}}, subidxs::Tuple{BlockSlice{<:BlockRange}, Vararg{Any}}) = (@_propagate_inbounds_meta; (BlockSlice(BlockRange(idxs[1].block.indices[1][Int.(subidxs[1].block)]), idxs[1].indices[subidxs[1].indices]), reindex(V, tail(idxs), tail(subidxs))...)) reindex(V, idxs::Tuple{BlockSlice{BlockRange{1,Tuple{UnitRange{Int}}}}, Vararg{Any}}, subidxs::Tuple{BlockSlice{Block{1,Int}}, Vararg{Any}}) = (@_propagate_inbounds_meta; (BlockSlice(Block(idxs[1].block.indices[1][Int(subidxs[1].block)]), idxs[1].indices[subidxs[1].indices]), reindex(V, tail(idxs), tail(subidxs))...)) function reindex(V, idxs::Tuple{BlockSlice{Block{1,Int}}, Vararg{Any}}, subidxs::Tuple{BlockSlice{Block{1,Int}}, Vararg{Any}}) subidxs[1].block == Block(1) || throw(BoundsError(V, subidxs[1].block)) (idxs[1], reindex(V, tail(idxs), tail(subidxs))...) end end # if VERSION >= v"1.2-" ################# # support for pointers ################# const BlockOrRangeIndex = Union{RangeIndex, BlockSlice} function unsafe_convert(::Type{Ptr{T}}, V::SubArray{T, N, BlockArray{T,N,AT,BS}, NTuple{N, BlockSlice{Block{1,Int}}}}) where {AT <: AbstractArray{<:AbstractArray{T,N},N}, BS <: AbstractBlockSizes{N}} where {T,N} unsafe_convert(Ptr{T}, parent(V).blocks[Int.(Block.(parentindices(V)))...]) end unsafe_convert(::Type{Ptr{T}}, V::SubArray{T,N,PseudoBlockArray{T,N,AT},<:Tuple{Vararg{BlockOrRangeIndex}}}) where {T,N,AT} = unsafe_convert(Ptr{T}, V.parent) + (Base.first_index(V)-1)*sizeof(T)
[ 27, 7856, 261, 480, 29, 3118, 16841, 16980, 544, 27453, 1472, 43826, 20910, 14, 12235, 3163, 20477, 13, 20362, 12, 23, 68, 22, 66, 2327, 67, 15, 12, 64, 24760, 12, 20, 18742, 12, 11848, 11848, 12, 21855, 6659, 64, 29331, 69, 1731, 68, 198, 37811, 198, 220, 220, 220, 9726, 11122, 501, 7, 521, 1063, 8, 198, 198, 40171, 281, 27741, 26453, 17257, 286, 36525, 326, 48262, 257, 2512, 13, 198, 198, 23792, 4585, 4600, 1462, 62, 521, 1063, 3419, 47671, 35111, 389, 11513, 284, 9726, 11122, 501, 5563, 284, 2380, 198, 1169, 36525, 625, 543, 262, 9726, 32727, 13, 198, 198, 1212, 17007, 873, 262, 2776, 1022, 4600, 5216, 261, 63, 290, 4600, 14881, 13, 11122, 501, 44646, 198, 37811, 198, 7249, 9726, 11122, 501, 90, 15199, 92, 1279, 25, 27741, 26453, 17257, 90, 5317, 92, 198, 220, 220, 220, 2512, 3712, 15199, 198, 220, 220, 220, 36525, 3712, 26453, 17257, 90, 5317, 92, 198, 437, 198, 198, 12235, 7, 1443, 3712, 12235, 11122, 501, 90, 27, 25, 12235, 30072, 796, 275, 82, 13, 9967, 628, 198, 1640, 277, 287, 357, 25, 897, 274, 11, 1058, 13271, 8635, 62, 521, 1063, 11, 1058, 897, 274, 16, 11, 1058, 11085, 11, 1058, 12957, 11, 1058, 7857, 11, 1058, 13664, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 13271, 8635, 62, 13664, 11, 1058, 9688, 8, 198, 220, 220, 220, 2488, 18206, 720, 69, 7, 50, 3712, 12235, 11122, 501, 8, 796, 720, 69, 7, 50, 13, 521, 1063, 8, 198, 437, 198, 198, 1136, 9630, 7, 50, 3712, 12235, 11122, 501, 11, 1312, 3712, 46541, 8, 796, 651, 9630, 7, 50, 13, 521, 1063, 11, 1312, 8, 198, 12860, 7, 952, 3712, 9399, 11, 374, 3712, 12235, 11122, 501, 8, 796, 3601, 7, 952, 11, 366, 12235, 11122, 501, 7, 1600, 374, 13, 9967, 11, 366, 553, 11, 374, 13, 521, 1063, 11, 366, 8, 4943, 198, 19545, 7, 50, 3712, 12235, 11122, 501, 11, 264, 8, 796, 1306, 7, 50, 13, 521, 1063, 11, 264, 8, 198, 28060, 7, 50, 3712, 12235, 11122, 501, 11, 264, 8, 796, 1760, 7, 50, 13, 521, 1063, 11, 264, 8, 198, 198, 8818, 4808, 403, 9967, 7, 36340, 62, 82, 4340, 11, 314, 3712, 51, 29291, 90, 12235, 90, 16, 11, 309, 5512, 19852, 853, 90, 7149, 11709, 8, 810, 1391, 51, 92, 198, 220, 220, 220, 347, 796, 717, 7, 40, 8, 198, 220, 220, 220, 275, 796, 717, 7, 33, 13, 77, 8, 628, 220, 220, 220, 2837, 796, 10973, 62, 82, 4340, 58, 65, 5974, 36340, 62, 82, 4340, 58, 65, 1343, 352, 60, 532, 352, 628, 220, 220, 220, 9726, 11122, 501, 7, 33, 11, 2837, 8, 198, 437, 628, 198, 8818, 4808, 403, 9967, 7, 36340, 62, 82, 4340, 11, 314, 3712, 51, 29291, 90, 12235, 17257, 90, 16, 11, 49, 5512, 12372, 853, 90, 7149, 11709, 8, 810, 1391, 49, 92, 198, 220, 220, 220, 347, 796, 717, 7, 40, 8, 198, 220, 220, 220, 275, 62, 9688, 796, 717, 7, 11085, 7, 33, 13, 521, 1063, 4008, 198, 220, 220, 220, 275, 62, 11338, 796, 938, 7, 11085, 7, 33, 13, 521, 1063, 4008, 628, 220, 220, 220, 2837, 796, 10973, 62, 82, 4340, 58, 65, 62, 9688, 5974, 36340, 62, 82, 4340, 58, 65, 62, 11338, 1343, 352, 60, 532, 352, 628, 220, 220, 220, 9726, 11122, 501, 7, 33, 11, 2837, 8, 198, 437, 628, 198, 62, 7266, 62, 36340, 377, 62, 82, 4340, 7, 6359, 11, 773, 82, 8, 796, 4808, 7266, 62, 36340, 377, 62, 82, 4340, 7, 6359, 11, 773, 82, 58, 16, 4357, 7894, 7, 521, 82, 4008, 198, 62, 7266, 62, 36340, 377, 62, 82, 4340, 7, 3712, 51, 29291, 90, 5512, 7904, 51, 29291, 90, 30072, 796, 7499, 198, 198, 8818, 4808, 7266, 62, 36340, 377, 62, 82, 4340, 7, 6359, 11, 773, 82, 16, 3712, 12235, 11122, 501, 90, 12235, 90, 16, 11, 5317, 92, 5512, 773, 82, 8, 198, 220, 220, 220, 347, 796, 2558, 7, 521, 82, 16, 13, 9967, 8, 198, 220, 220, 220, 1005, 796, 1570, 7, 6359, 58, 16, 4357, 347, 25, 33, 10, 16, 8, 198, 220, 220, 220, 357, 1186, 764, 12, 1005, 58, 16, 60, 764, 10, 352, 11, 4808, 7266, 62, 36340, 377, 62, 82, 4340, 7, 13199, 7, 6359, 828, 773, 82, 8, 23029, 198, 437, 198, 198, 8818, 4808, 7266, 62, 36340, 377, 62, 82, 4340, 7, 6359, 11, 773, 82, 16, 3712, 12235, 11122, 501, 90, 12235, 17257, 90, 16, 11, 51, 29291, 90, 26453, 17257, 90, 5317, 42535, 5512, 773, 82, 8, 198, 220, 220, 220, 1005, 796, 1570, 7, 6359, 58, 16, 4357, 773, 82, 16, 13, 9967, 13, 521, 1063, 58, 16, 7131, 16, 5974, 7, 521, 82, 16, 13, 9967, 13, 521, 1063, 58, 16, 7131, 437, 48688, 16, 4008, 198, 220, 220, 220, 357, 1186, 764, 12, 1005, 58, 16, 60, 764, 10, 352, 11, 4808, 7266, 62, 36340, 377, 62, 82, 4340, 7, 13199, 7, 6359, 828, 773, 82, 8, 23029, 198, 437, 628, 198, 27372, 4340, 7, 53, 3712, 7004, 19182, 8, 796, 9726, 50, 4340, 28264, 7266, 62, 36340, 377, 62, 82, 4340, 7, 36340, 5753, 4340, 7, 8000, 7, 53, 36911, 2560, 521, 1063, 7, 53, 22305, 628, 198, 37811, 198, 220, 220, 220, 555, 9967, 7, 9967, 62, 82, 4340, 11, 773, 82, 11, 314, 8, 198, 198, 35561, 262, 36525, 3917, 351, 257, 2512, 355, 257, 4600, 12235, 11122, 501, 44646, 198, 37811, 198, 8818, 555, 9967, 7, 32, 3712, 23839, 19182, 90, 51, 11, 45, 5512, 773, 82, 11, 314, 8, 810, 1391, 51, 11, 399, 92, 198, 220, 220, 220, 611, 4129, 7, 521, 82, 8, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 22507, 4600, 1952, 7, 17, 38381, 12235, 7, 16, 38381, 16, 25, 16, 4357, 9726, 7, 16, 38381, 16, 25, 16, 11907, 63, 543, 318, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2092, 284, 4600, 1952, 7, 17, 38381, 16, 25, 16, 11, 352, 25, 16, 60, 44646, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 403, 9967, 7, 14881, 13, 3198, 2514, 7, 17, 828, 314, 8, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 403, 9967, 7, 36340, 5753, 4340, 7, 32, 11, 399, 532, 4129, 7, 521, 82, 8, 1343, 352, 828, 314, 8, 198, 220, 220, 220, 886, 198, 437, 628, 198, 1462, 62, 9630, 7, 3712, 12235, 8, 796, 3714, 7, 28100, 1713, 12331, 7203, 12235, 1276, 307, 11513, 416, 284, 62, 521, 1063, 7, 986, 16725, 4008, 198, 1462, 62, 9630, 7, 3712, 12235, 17257, 8, 796, 3714, 7, 28100, 1713, 12331, 7203, 12235, 17257, 1276, 307, 11513, 416, 284, 62, 521, 1063, 7, 986, 16725, 4008, 198, 198, 31, 45145, 284, 62, 521, 1063, 7, 32, 11, 773, 82, 11, 314, 3712, 51, 29291, 90, 12235, 90, 16, 5512, 12372, 853, 90, 7149, 11709, 8, 796, 198, 220, 220, 220, 357, 403, 9967, 7, 32, 11, 773, 82, 11, 314, 828, 284, 62, 521, 1063, 7, 32, 11, 4808, 11261, 11181, 603, 7, 521, 82, 828, 7894, 7, 40, 4008, 23029, 198, 198, 2, 4328, 265, 503, 2440, 38517, 7021, 198, 2, 428, 17007, 873, 1570, 286, 257, 13690, 35610, 15732, 198, 31, 45145, 284, 62, 521, 1063, 7, 32, 11, 773, 82, 11, 314, 3712, 51, 29291, 90, 12235, 11, 12372, 853, 90, 7149, 11709, 8, 796, 198, 220, 220, 220, 284, 62, 521, 1063, 7, 32, 11, 773, 82, 11, 357, 12235, 12195, 40, 58, 16, 4083, 77, 26513, 11, 7894, 7, 40, 26513, 4008, 198, 198, 31, 45145, 284, 62, 521, 1063, 7, 32, 11, 773, 82, 11, 314, 3712, 51, 29291, 90, 12235, 17257, 90, 16, 11, 49, 5512, 12372, 853, 90, 7149, 11709, 8, 810, 371, 796, 198, 220, 220, 220, 357, 403, 9967, 7, 32, 11, 773, 82, 11, 314, 828, 284, 62, 521, 1063, 7, 32, 11, 4808, 11261, 11181, 603, 7, 521, 82, 828, 7894, 7, 40, 4008, 23029, 198, 198, 2, 4328, 265, 503, 2440, 38517, 7021, 198, 2, 428, 17007, 873, 1570, 286, 257, 13690, 35610, 15732, 198, 31, 45145, 284, 62, 521, 1063, 7, 32, 11, 773, 82, 11, 314, 3712, 51, 29291, 90, 12235, 17257, 11, 12372, 853, 90, 7149, 11709, 8, 796, 198, 220, 220, 220, 284, 62, 521, 1063, 7, 32, 11, 773, 82, 11, 357, 12235, 17257, 12195, 83, 29291, 12195, 40, 58, 16, 4083, 521, 1063, 4008, 986, 11, 7894, 7, 40, 26513, 4008, 628, 198, 2, 554, 657, 13, 22, 11, 356, 761, 284, 20957, 284, 62, 521, 1063, 284, 3368, 4585, 14174, 521, 1063, 198, 31, 45145, 284, 62, 521, 1063, 7, 32, 11, 314, 3712, 51, 29291, 90, 12235, 11, 12372, 853, 90, 7149, 11709, 8, 796, 198, 220, 220, 220, 284, 62, 521, 1063, 7, 32, 11, 34197, 7, 32, 828, 314, 8, 198, 198, 31, 45145, 284, 62, 521, 1063, 7, 32, 11, 314, 3712, 51, 29291, 90, 12235, 17257, 11, 12372, 853, 90, 7149, 11709, 8, 796, 198, 220, 220, 220, 284, 62, 521, 1063, 7, 32, 11, 34197, 7, 32, 828, 314, 8, 628, 198, 2, 383, 717, 4578, 329, 4600, 260, 9630, 63, 318, 4615, 355, 286, 198, 2, 3740, 1378, 12567, 13, 785, 14, 16980, 544, 43, 648, 14, 73, 43640, 14, 31216, 14, 1270, 40401, 287, 22300, 4600, 14881, 44646, 220, 1406, 11, 198, 2, 356, 8160, 362, 12, 853, 4600, 260, 9630, 63, 329, 22300, 352, 13, 17, 290, 1568, 13, 198, 361, 44156, 2849, 18189, 410, 1, 16, 13, 17, 21215, 198, 198, 2, 9726, 50, 677, 274, 3975, 262, 7021, 290, 262, 36525, 198, 2, 428, 318, 28845, 1912, 319, 3454, 501, 302, 9630, 287, 850, 18747, 13, 20362, 198, 260, 9630, 7, 312, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 27, 25, 12235, 17257, 5512, 12372, 853, 90, 7149, 92, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 850, 312, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 27, 25, 12235, 17257, 5512, 12372, 853, 90, 7149, 11709, 8, 796, 198, 220, 220, 220, 4275, 62, 22930, 37861, 62, 259, 65, 3733, 62, 28961, 26, 357, 12235, 11122, 501, 7, 12235, 17257, 7, 312, 34223, 58, 16, 4083, 9967, 13, 521, 1063, 58, 16, 7131, 5317, 12195, 7266, 312, 34223, 58, 16, 4083, 9967, 15437, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 34223, 58, 16, 4083, 521, 1063, 58, 7266, 312, 34223, 58, 16, 4083, 521, 1063, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 9630, 7, 13199, 7, 312, 34223, 828, 7894, 7, 7266, 312, 34223, 4008, 986, 4008, 198, 198, 260, 9630, 7, 312, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 12235, 17257, 90, 16, 11, 51, 29291, 90, 26453, 17257, 90, 5317, 42535, 5512, 12372, 853, 90, 7149, 92, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 850, 312, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 12235, 90, 16, 11, 5317, 92, 5512, 12372, 853, 90, 7149, 11709, 8, 796, 198, 220, 220, 220, 4275, 62, 22930, 37861, 62, 259, 65, 3733, 62, 28961, 26, 357, 12235, 11122, 501, 7, 12235, 7, 312, 34223, 58, 16, 4083, 9967, 13, 521, 1063, 58, 16, 7131, 5317, 7, 7266, 312, 34223, 58, 16, 4083, 9967, 15437, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 34223, 58, 16, 4083, 521, 1063, 58, 7266, 312, 34223, 58, 16, 4083, 521, 1063, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 9630, 7, 13199, 7, 312, 34223, 828, 7894, 7, 7266, 312, 34223, 4008, 986, 4008, 198, 198, 8818, 302, 9630, 7, 312, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 12235, 90, 16, 11, 5317, 92, 5512, 12372, 853, 90, 7149, 92, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 850, 312, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 12235, 90, 16, 11, 5317, 92, 5512, 12372, 853, 90, 7149, 11709, 8, 198, 220, 220, 220, 357, 312, 34223, 58, 16, 4357, 302, 9630, 7, 13199, 7, 312, 34223, 828, 7894, 7, 7266, 312, 34223, 4008, 23029, 198, 437, 198, 198, 17772, 220, 1303, 611, 44156, 2849, 18189, 410, 1, 16, 13, 17, 21215, 198, 198, 260, 9630, 7, 53, 11, 4686, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 27, 25, 12235, 17257, 5512, 12372, 853, 90, 7149, 92, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 850, 312, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 27, 25, 12235, 17257, 5512, 12372, 853, 90, 7149, 11709, 8, 796, 198, 220, 220, 220, 4275, 62, 22930, 37861, 62, 259, 65, 3733, 62, 28961, 26, 357, 12235, 11122, 501, 7, 12235, 17257, 7, 312, 34223, 58, 16, 4083, 9967, 13, 521, 1063, 58, 16, 7131, 5317, 12195, 7266, 312, 34223, 58, 16, 4083, 9967, 15437, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 34223, 58, 16, 4083, 521, 1063, 58, 7266, 312, 34223, 58, 16, 4083, 521, 1063, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 9630, 7, 53, 11, 7894, 7, 312, 34223, 828, 7894, 7, 7266, 312, 34223, 4008, 986, 4008, 198, 198, 260, 9630, 7, 53, 11, 4686, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 12235, 17257, 90, 16, 11, 51, 29291, 90, 26453, 17257, 90, 5317, 42535, 5512, 12372, 853, 90, 7149, 92, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 850, 312, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 12235, 90, 16, 11, 5317, 92, 5512, 12372, 853, 90, 7149, 11709, 8, 796, 198, 220, 220, 220, 4275, 62, 22930, 37861, 62, 259, 65, 3733, 62, 28961, 26, 357, 12235, 11122, 501, 7, 12235, 7, 312, 34223, 58, 16, 4083, 9967, 13, 521, 1063, 58, 16, 7131, 5317, 7, 7266, 312, 34223, 58, 16, 4083, 9967, 15437, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 34223, 58, 16, 4083, 521, 1063, 58, 7266, 312, 34223, 58, 16, 4083, 521, 1063, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 302, 9630, 7, 53, 11, 7894, 7, 312, 34223, 828, 7894, 7, 7266, 312, 34223, 4008, 986, 4008, 198, 198, 8818, 302, 9630, 7, 53, 11, 4686, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 12235, 90, 16, 11, 5317, 92, 5512, 12372, 853, 90, 7149, 92, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 850, 312, 34223, 3712, 51, 29291, 90, 12235, 11122, 501, 90, 12235, 90, 16, 11, 5317, 92, 5512, 12372, 853, 90, 7149, 11709, 8, 198, 220, 220, 220, 850, 312, 34223, 58, 16, 4083, 9967, 6624, 9726, 7, 16, 8, 8614, 3714, 7, 33, 3733, 12331, 7, 53, 11, 850, 312, 34223, 58, 16, 4083, 9967, 4008, 198, 220, 220, 220, 357, 312, 34223, 58, 16, 4357, 302, 9630, 7, 53, 11, 7894, 7, 312, 34223, 828, 7894, 7, 7266, 312, 34223, 4008, 23029, 198, 437, 198, 198, 437, 220, 1303, 611, 44156, 2849, 18189, 410, 1, 16, 13, 17, 21215, 628, 198, 14468, 2, 198, 2, 1104, 329, 32007, 198, 14468, 2, 198, 198, 9979, 9726, 5574, 17257, 15732, 796, 4479, 90, 17257, 15732, 11, 9726, 11122, 501, 92, 198, 198, 8818, 21596, 62, 1102, 1851, 7, 3712, 6030, 90, 46745, 90, 51, 92, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 569, 3712, 7004, 19182, 90, 51, 11, 399, 11, 9726, 19182, 90, 51, 11, 45, 11, 1404, 11, 4462, 5512, 24563, 29291, 90, 45, 11, 9726, 11122, 501, 90, 12235, 90, 16, 11, 5317, 11709, 11709, 8, 810, 1391, 1404, 1279, 25, 27741, 19182, 90, 27, 25, 23839, 19182, 90, 51, 11, 45, 5512, 45, 5512, 24218, 1279, 25, 27741, 12235, 50, 4340, 90, 45, 11709, 810, 1391, 51, 11, 45, 92, 198, 220, 220, 220, 21596, 62, 1102, 1851, 7, 46745, 90, 51, 5512, 2560, 7, 53, 737, 27372, 58, 5317, 12195, 12235, 12195, 8000, 521, 1063, 7, 53, 22305, 986, 12962, 198, 437, 198, 198, 13271, 8635, 62, 1102, 1851, 7, 3712, 6030, 90, 46745, 90, 51, 92, 5512, 569, 3712, 7004, 19182, 90, 51, 11, 45, 11, 47, 325, 12003, 12235, 19182, 90, 51, 11, 45, 11, 1404, 5512, 27, 25, 51, 29291, 90, 19852, 853, 90, 12235, 5574, 17257, 15732, 11709, 30072, 810, 1391, 51, 11, 45, 11, 1404, 92, 796, 198, 220, 220, 220, 21596, 62, 1102, 1851, 7, 46745, 90, 51, 5512, 569, 13, 8000, 8, 1343, 357, 14881, 13, 11085, 62, 9630, 7, 53, 13219, 16, 27493, 7857, 1659, 7, 51, 8, 198 ]
2.173899
3,042
<filename>src/kmeans.jl # All Abstract types defined """ AbstractKMeansAlg Abstract base type inherited by all sub-KMeans algorithms. """ abstract type AbstractKMeansAlg end """ ClusteringResult Base type for the output of clustering algorithm. """ abstract type ClusteringResult end # Here we mimic `Clustering` output structure """ KmeansResult{C,D<:Real,WC<:Real} <: ClusteringResult The output of [`kmeans`](@ref) and [`kmeans!`](@ref). # Type parameters * `C<:AbstractMatrix{<:AbstractFloat}`: type of the `centers` matrix * `D<:Real`: type of the assignment cost * `WC<:Real`: type of the cluster weight # C is the type of centers, an (abstract) matrix of size (d x k) # D is the type of pairwise distance computation from points to cluster centers # WC is the type of cluster weights, either Int (in the case where points are # unweighted) or eltype(weights) (in the case where points are weighted). """ struct KmeansResult{C<:AbstractMatrix{<:AbstractFloat},D<:Real,WC<:Real} <: ClusteringResult centers::C # cluster centers (d x k) assignments::Vector{Int} # assignments (n) costs::Vector{D} # cost of the assignments (n) counts::Vector{Int} # number of points assigned to each cluster (k) wcounts::Vector{WC} # cluster weights (k) totalcost::D # total cost (i.e. objective) iterations::Int # number of elapsed iterations converged::Bool # whether the procedure converged end """ @parallelize(n_threads, ncol, f) Parallelize function and run it over n_threads. Function should require following conditions: 1. It should not return any values. 1. It should accept parameters two parameters at the end of the argument list. First accepted parameter is `range`, which defines chunk used in calculations. Second parameter is `idx` which defines id of the container where results can be stored. `ncol` argument defines range 1:ncol which is sliced in `n_threads` chunks. """ macro parallelize(n_threads, ncol, f) for i in 1:length(f.args) f.args[i] = :($(esc(f.args[i]))) end single_thread_chunk = copy(f) push!(single_thread_chunk.args, :(1:$(esc(ncol)))) push!(single_thread_chunk.args, 1) multi_thread_chunk = copy(f) push!(multi_thread_chunk.args, :(ranges[i])) push!(multi_thread_chunk.args, :(i)) last_multi_thread_chunk = copy(f) push!(last_multi_thread_chunk.args, :(ranges[end])) push!(last_multi_thread_chunk.args, :($(esc(n_threads)))) return quote if $(esc(n_threads)) == 1 $single_thread_chunk else local ranges = splitter($(esc(ncol)), $(esc(n_threads))) local waiting_list = $(esc(Vector)){$(esc(Task))}(undef, $(esc(n_threads)) - 1) for i in 1:$(esc(n_threads)) - 1 waiting_list[i] = @spawn $multi_thread_chunk end $last_multi_thread_chunk for i in 1:$(esc(n_threads)) - 1 wait(waiting_list[i]) end end end end """ distance(X1, X2, i1, i2) Allocationless calculation of square eucledean distance between vectors X1[:, i1] and X2[:, i2] """ function distance(X1, X2, i1, i2) d = 0.0 # TODO: break of the loop if d is larger than threshold (known minimum disatnce) @inbounds @simd for i in axes(X1, 1) d += (X1[i, i1] - X2[i, i2])^2 end return d end """ sum_of_squares(x, labels, centre, k) This function computes the total sum of squares based on the assigned (labels) design matrix(x), centroids (centre), and the number of desired groups (k). A Float type representing the computed metric is returned. """ function sum_of_squares(containers, x, labels, centre, r, idx) s = 0.0 @inbounds for j in r for i in axes(x, 1) s += (x[i, j] - centre[i, labels[j]])^2 end end containers.sum_of_squares[idx] = s end """ Kmeans([alg::AbstractKMeansAlg,] design_matrix, k; n_threads = nthreads(), k_init="k-means++", max_iters=300, tol=1e-6, verbose=true) This main function employs the K-means algorithm to cluster all examples in the training data (design_matrix) into k groups using either the `k-means++` or random initialisation technique for selecting the initial centroids. At the end of the number of iterations specified (max_iters), convergence is achieved if difference between the current and last cost objective is less than the tolerance level (tol). An error is thrown if convergence fails. Arguments: - `alg` defines one of the algorithms used to calculate `k-means`. This argument can be omitted, by default Lloyd algorithm is used. - `n_threads` defines number of threads used for calculations, by default it is equal to the `Threads.nthreads()` which is defined by `JULIA_NUM_THREADS` environmental variable. For small size design matrices it make sense to set this argument to 1 in order to avoid overhead of threads generation. - `k_init` is one of the algorithms used for initialization. By default `k-means++` algorithm is used, alternatively one can use `rand` to choose random points for init. - `max_iters` is the maximum number of iterations - `tol` defines tolerance for early stopping. - `verbose` is verbosity level. Details of operations can be either printed or not by setting verbose accordingly. A `KmeansResult` structure representing labels, centroids, and sum_squares is returned. """ function kmeans(alg, design_matrix, k; n_threads = Threads.nthreads(), k_init = "k-means++", max_iters = 300, tol = 1e-6, verbose = false, init = nothing) nrow, ncol = size(design_matrix) containers = create_containers(alg, k, nrow, ncol, n_threads) return kmeans!(alg, containers, design_matrix, k, n_threads = n_threads, k_init = k_init, max_iters = max_iters, tol = tol, verbose = verbose, init = init) end
[ 27, 34345, 29, 10677, 14, 74, 1326, 504, 13, 20362, 198, 2, 1439, 27741, 3858, 5447, 198, 37811, 198, 220, 220, 220, 27741, 42, 5308, 504, 2348, 70, 198, 198, 23839, 2779, 2099, 19552, 416, 477, 850, 12, 42, 5308, 504, 16113, 13, 198, 37811, 198, 397, 8709, 2099, 27741, 42, 5308, 504, 2348, 70, 886, 628, 198, 37811, 198, 220, 220, 220, 1012, 436, 1586, 23004, 198, 198, 14881, 2099, 329, 262, 5072, 286, 32966, 1586, 11862, 13, 198, 37811, 198, 397, 8709, 2099, 1012, 436, 1586, 23004, 886, 628, 198, 2, 3423, 356, 26332, 4600, 2601, 436, 1586, 63, 5072, 4645, 198, 37811, 198, 220, 220, 220, 509, 1326, 504, 23004, 90, 34, 11, 35, 27, 25, 15633, 11, 27353, 27, 25, 15633, 92, 1279, 25, 1012, 436, 1586, 23004, 198, 198, 464, 5072, 286, 685, 63, 74, 1326, 504, 63, 16151, 31, 5420, 8, 290, 685, 63, 74, 1326, 504, 0, 63, 16151, 31, 5420, 737, 198, 2, 5994, 10007, 198, 1635, 4600, 34, 27, 25, 23839, 46912, 90, 27, 25, 23839, 43879, 92, 63, 25, 2099, 286, 262, 4600, 1087, 364, 63, 17593, 198, 1635, 4600, 35, 27, 25, 15633, 63, 25, 2099, 286, 262, 16237, 1575, 198, 1635, 4600, 27353, 27, 25, 15633, 63, 25, 2099, 286, 262, 13946, 3463, 198, 1303, 327, 318, 262, 2099, 286, 10399, 11, 281, 357, 397, 8709, 8, 17593, 286, 2546, 357, 67, 2124, 479, 8, 198, 2, 360, 318, 262, 2099, 286, 5166, 3083, 5253, 29964, 422, 2173, 284, 13946, 10399, 198, 2, 28387, 318, 262, 2099, 286, 13946, 19590, 11, 2035, 2558, 357, 259, 262, 1339, 810, 2173, 389, 198, 2, 555, 6551, 276, 8, 393, 1288, 4906, 7, 43775, 8, 357, 259, 262, 1339, 810, 2173, 389, 26356, 737, 198, 37811, 198, 7249, 509, 1326, 504, 23004, 90, 34, 27, 25, 23839, 46912, 90, 27, 25, 23839, 43879, 5512, 35, 27, 25, 15633, 11, 27353, 27, 25, 15633, 92, 1279, 25, 1012, 436, 1586, 23004, 198, 220, 220, 220, 10399, 3712, 34, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 13946, 10399, 357, 67, 2124, 479, 8, 198, 220, 220, 220, 25815, 3712, 38469, 90, 5317, 92, 220, 220, 1303, 25815, 357, 77, 8, 198, 220, 220, 220, 3484, 3712, 38469, 90, 35, 92, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1575, 286, 262, 25815, 357, 77, 8, 198, 220, 220, 220, 9853, 3712, 38469, 90, 5317, 92, 220, 220, 220, 220, 220, 220, 220, 1303, 1271, 286, 2173, 8686, 284, 1123, 13946, 357, 74, 8, 198, 220, 220, 220, 266, 9127, 82, 3712, 38469, 90, 27353, 92, 220, 220, 220, 220, 220, 220, 220, 1303, 13946, 19590, 357, 74, 8, 198, 220, 220, 220, 2472, 15805, 3712, 35, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2472, 1575, 357, 72, 13, 68, 13, 9432, 8, 198, 220, 220, 220, 34820, 3712, 5317, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1271, 286, 42118, 34820, 198, 220, 220, 220, 6718, 2004, 3712, 33, 970, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1771, 262, 8771, 6718, 2004, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 2488, 1845, 29363, 1096, 7, 77, 62, 16663, 82, 11, 299, 4033, 11, 277, 8, 198, 198, 10044, 29363, 1096, 2163, 290, 1057, 340, 625, 299, 62, 16663, 82, 13, 15553, 815, 2421, 1708, 3403, 25, 198, 16, 13, 632, 815, 407, 1441, 597, 3815, 13, 198, 16, 13, 632, 815, 2453, 10007, 734, 10007, 379, 262, 886, 286, 262, 4578, 1351, 13, 3274, 198, 13635, 276, 11507, 318, 4600, 9521, 47671, 543, 15738, 16058, 973, 287, 16765, 13, 5498, 198, 17143, 2357, 318, 4600, 312, 87, 63, 543, 15738, 4686, 286, 262, 9290, 810, 2482, 460, 307, 8574, 13, 198, 198, 63, 77, 4033, 63, 4578, 15738, 2837, 352, 25, 77, 4033, 543, 318, 26790, 287, 4600, 77, 62, 16663, 82, 63, 22716, 13, 198, 37811, 198, 20285, 305, 10730, 1096, 7, 77, 62, 16663, 82, 11, 299, 4033, 11, 277, 8, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 13664, 7, 69, 13, 22046, 8, 198, 220, 220, 220, 220, 220, 220, 220, 277, 13, 22046, 58, 72, 60, 796, 1058, 16763, 7, 3798, 7, 69, 13, 22046, 58, 72, 60, 22305, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2060, 62, 16663, 62, 354, 2954, 796, 4866, 7, 69, 8, 198, 220, 220, 220, 4574, 0, 7, 29762, 62, 16663, 62, 354, 2954, 13, 22046, 11, 36147, 16, 25, 3, 7, 3798, 7, 77, 4033, 35514, 198, 220, 220, 220, 4574, 0, 7, 29762, 62, 16663, 62, 354, 2954, 13, 22046, 11, 352, 8, 628, 220, 220, 220, 5021, 62, 16663, 62, 354, 2954, 796, 4866, 7, 69, 8, 198, 220, 220, 220, 4574, 0, 7, 41684, 62, 16663, 62, 354, 2954, 13, 22046, 11, 36147, 81, 6231, 58, 72, 60, 4008, 198, 220, 220, 220, 4574, 0, 7, 41684, 62, 16663, 62, 354, 2954, 13, 22046, 11, 36147, 72, 4008, 628, 220, 220, 220, 938, 62, 41684, 62, 16663, 62, 354, 2954, 796, 4866, 7, 69, 8, 198, 220, 220, 220, 4574, 0, 7, 12957, 62, 41684, 62, 16663, 62, 354, 2954, 13, 22046, 11, 36147, 81, 6231, 58, 437, 60, 4008, 198, 220, 220, 220, 4574, 0, 7, 12957, 62, 41684, 62, 16663, 62, 354, 2954, 13, 22046, 11, 1058, 16763, 7, 3798, 7, 77, 62, 16663, 82, 35514, 628, 220, 220, 220, 1441, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 611, 29568, 3798, 7, 77, 62, 16663, 82, 4008, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 720, 29762, 62, 16663, 62, 354, 2954, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1957, 16069, 796, 4328, 1967, 16763, 7, 3798, 7, 77, 4033, 36911, 29568, 3798, 7, 77, 62, 16663, 82, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1957, 4953, 62, 4868, 796, 29568, 3798, 7, 38469, 4008, 90, 3, 7, 3798, 7, 25714, 4008, 92, 7, 917, 891, 11, 29568, 3798, 7, 77, 62, 16663, 82, 4008, 532, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 3, 7, 3798, 7, 77, 62, 16663, 82, 4008, 532, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4953, 62, 4868, 58, 72, 60, 796, 2488, 48183, 720, 41684, 62, 16663, 62, 354, 2954, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 720, 12957, 62, 41684, 62, 16663, 62, 354, 2954, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 3, 7, 3798, 7, 77, 62, 16663, 82, 4008, 532, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4043, 7, 10247, 1780, 62, 4868, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 5253, 7, 55, 16, 11, 1395, 17, 11, 1312, 16, 11, 1312, 17, 8, 198, 198, 3237, 5040, 1203, 17952, 286, 6616, 304, 84, 20095, 11025, 5253, 1022, 30104, 1395, 16, 58, 45299, 1312, 16, 60, 290, 1395, 17, 58, 45299, 1312, 17, 60, 198, 37811, 198, 8818, 5253, 7, 55, 16, 11, 1395, 17, 11, 1312, 16, 11, 1312, 17, 8, 198, 220, 220, 220, 288, 796, 657, 13, 15, 198, 220, 220, 220, 1303, 16926, 46, 25, 2270, 286, 262, 9052, 611, 288, 318, 4025, 621, 11387, 357, 4002, 5288, 595, 265, 1198, 8, 198, 220, 220, 220, 2488, 259, 65, 3733, 2488, 14323, 67, 329, 1312, 287, 34197, 7, 55, 16, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 288, 15853, 357, 55, 16, 58, 72, 11, 1312, 16, 60, 532, 1395, 17, 58, 72, 11, 1312, 17, 12962, 61, 17, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 288, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 2160, 62, 1659, 62, 16485, 3565, 7, 87, 11, 14722, 11, 7372, 11, 479, 8, 198, 198, 1212, 2163, 552, 1769, 262, 2472, 2160, 286, 24438, 1912, 319, 262, 8686, 357, 23912, 1424, 8, 198, 26124, 17593, 7, 87, 828, 1247, 305, 2340, 357, 1087, 260, 828, 290, 262, 1271, 286, 10348, 2628, 357, 74, 737, 198, 198, 32, 48436, 2099, 10200, 262, 29231, 18663, 318, 4504, 13, 198, 37811, 198, 8818, 2160, 62, 1659, 62, 16485, 3565, 7, 3642, 50221, 11, 2124, 11, 14722, 11, 7372, 11, 374, 11, 4686, 87, 8, 198, 220, 220, 220, 264, 796, 657, 13, 15, 628, 220, 220, 220, 2488, 259, 65, 3733, 329, 474, 287, 374, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 34197, 7, 87, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 15853, 357, 87, 58, 72, 11, 474, 60, 532, 7372, 58, 72, 11, 14722, 58, 73, 11907, 8, 61, 17, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 16472, 13, 16345, 62, 1659, 62, 16485, 3565, 58, 312, 87, 60, 796, 264, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 509, 1326, 504, 26933, 14016, 3712, 23839, 42, 5308, 504, 2348, 70, 11, 60, 1486, 62, 6759, 8609, 11, 479, 26, 299, 62, 16663, 82, 796, 299, 16663, 82, 22784, 479, 62, 15003, 2625, 74, 12, 1326, 504, 4880, 1600, 3509, 62, 270, 364, 28, 6200, 11, 284, 75, 28, 16, 68, 12, 21, 11, 15942, 577, 28, 7942, 8, 198, 198, 1212, 1388, 2163, 24803, 262, 509, 12, 1326, 504, 11862, 284, 13946, 477, 6096, 198, 259, 262, 3047, 1366, 357, 26124, 62, 6759, 8609, 8, 656, 479, 2628, 1262, 2035, 262, 198, 63, 74, 12, 1326, 504, 4880, 63, 393, 4738, 4238, 5612, 8173, 329, 17246, 262, 4238, 198, 1087, 305, 2340, 13, 198, 198, 2953, 262, 886, 286, 262, 1271, 286, 34820, 7368, 357, 9806, 62, 270, 364, 828, 40826, 318, 198, 620, 39591, 611, 3580, 1022, 262, 1459, 290, 938, 1575, 9432, 318, 198, 1203, 621, 262, 15621, 1241, 357, 83, 349, 737, 1052, 4049, 318, 8754, 611, 40826, 10143, 13, 198, 198, 28100, 2886, 25, 198, 12, 4600, 14016, 63, 15738, 530, 286, 262, 16113, 973, 284, 15284, 4600, 74, 12, 1326, 504, 44646, 770, 198, 49140, 460, 307, 22532, 11, 416, 4277, 22361, 11862, 318, 973, 13, 198, 12, 4600, 77, 62, 16663, 82, 63, 15738, 1271, 286, 14390, 973, 329, 16765, 11, 416, 4277, 340, 318, 4961, 198, 1462, 262, 4600, 16818, 82, 13, 77, 16663, 82, 3419, 63, 543, 318, 5447, 416, 4600, 41, 6239, 3539, 62, 41359, 62, 4221, 15675, 50, 63, 6142, 198, 45286, 13, 1114, 1402, 2546, 1486, 2603, 45977, 340, 787, 2565, 284, 900, 428, 4578, 284, 352, 287, 1502, 198, 1462, 3368, 16965, 286, 14390, 5270, 13, 198, 12, 4600, 74, 62, 15003, 63, 318, 530, 286, 262, 16113, 973, 329, 37588, 13, 2750, 4277, 4600, 74, 12, 1326, 504, 4880, 63, 11862, 318, 973, 11, 198, 33645, 9404, 530, 460, 779, 4600, 25192, 63, 284, 3853, 4738, 2173, 329, 2315, 13, 198, 12, 4600, 9806, 62, 270, 364, 63, 318, 262, 5415, 1271, 286, 34820, 198, 12, 4600, 83, 349, 63, 15738, 15621, 329, 1903, 12225, 13, 198, 12, 4600, 19011, 577, 63, 318, 15942, 16579, 1241, 13, 14890, 286, 4560, 460, 307, 2035, 10398, 393, 407, 416, 4634, 15942, 577, 16062, 13, 198, 198, 32, 4600, 42, 1326, 504, 23004, 63, 4645, 10200, 14722, 11, 1247, 305, 2340, 11, 290, 2160, 62, 16485, 3565, 318, 4504, 13, 198, 37811, 198, 8818, 479, 1326, 504, 7, 14016, 11, 1486, 62, 6759, 8609, 11, 479, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 62, 16663, 82, 796, 14122, 82, 13, 77, 16663, 82, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 62, 15003, 796, 366, 74, 12, 1326, 504, 4880, 1600, 3509, 62, 270, 364, 796, 5867, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 75, 796, 352, 68, 12, 21, 11, 15942, 577, 796, 3991, 11, 2315, 796, 2147, 8, 198, 220, 220, 220, 299, 808, 11, 299, 4033, 796, 2546, 7, 26124, 62, 6759, 8609, 8, 198, 220, 220, 220, 16472, 796, 2251, 62, 3642, 50221, 7, 14016, 11, 479, 11, 299, 808, 11, 299, 4033, 11, 299, 62, 16663, 82, 8, 628, 220, 220, 220, 1441, 479, 1326, 504, 0, 7, 14016, 11, 16472, 11, 1486, 62, 6759, 8609, 11, 479, 11, 299, 62, 16663, 82, 796, 299, 62, 16663, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 62, 15003, 796, 479, 62, 15003, 11, 3509, 62, 270, 364, 796, 3509, 62, 270, 364, 11, 284, 75, 796, 284, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15942, 577, 796, 15942, 577, 11, 2315, 796, 2315, 8, 198, 437, 198 ]
2.636324
2,274
<gh_stars>1-10 highlighter_exists(config::CthulhuConfig) = Sys.which(config.highlighter.exec[1]) !== nothing __init__() = CONFIG.enable_highlighter = highlighter_exists(CONFIG) function highlight(io, x, lexer, config::CthulhuConfig) _print = endswith(x, '\n') ? print : println config.enable_highlighter || return _print(io, x) if !highlighter_exists(config) @warn "Highlighter command $(config.highlighter.exec[1]) does not exist." return _print(io, x) end cmd = `$(config.highlighter) $lexer` open(pipeline(cmd; stdout=io, stderr=stderr), "w") do io _print(io, x) end end function cthulhu_llvm(io::IO, mi, optimize, debuginfo, params, config::CthulhuConfig, dump_module = false) dump = InteractiveUtils._dump_function_linfo_llvm( mi, params.world, #=wrapper=# false, #=strip_ir_metadata=# true, dump_module, optimize, debuginfo ? :source : :none, Base.CodegenParams()) highlight(io, dump, "llvm", config) end function cthulhu_native(io::IO, mi, optimize, debuginfo, params, config::CthulhuConfig) dump = InteractiveUtils._dump_function_linfo_native( mi, params.world, #=wrapper=# false, #=syntax=# config.asm_syntax, debuginfo ? :source : :none) highlight(io, dump, "asm", config) end function cthulhu_ast(io::IO, mi, optimize, debuginfo, params, config::CthulhuConfig) meth = mi.def ast = definition(Expr, meth) if ast!==nothing if !config.pretty_ast dump(io, ast; maxdepth=typemax(Int)) else show(io, ast) # Meta.show_sexpr(io, ast) # Could even highlight the above as some kind-of LISP end else @info "Could not retrieve AST. AST display requires Revise.jl to be loaded." meth end end function cthulhu_source(io::IO, mi, optimize, debuginfo, params, config::CthulhuConfig) meth = mi.def src, line = definition(String, meth) highlight(io, src, "julia", config) end cthulhu_warntype(args...) = cthulhu_warntype(stdout, args...) function cthulhu_warntype(io::IO, src, rettype, debuginfo, stable_code) debuginfo = Base.IRShow.debuginfo(debuginfo) lineprinter = Base.IRShow.__debuginfo[debuginfo] lambda_io::IOContext = io if hasfield(typeof(src), :slotnames) && src.slotnames !== nothing slotnames = Base.sourceinfo_slotnames(src) lambda_io = IOContext(lambda_io, :SOURCE_SLOTNAMES => slotnames) show_variables(io, src, slotnames) end print(io, "Body") InteractiveUtils.warntype_type_printer(io, rettype, true) println(io) if isa(src, IRCode) show(io, src) # XXX this doesn't properly show warntype else ir_printer = stable_code ? Base.IRShow.show_ir : show_ir ir_printer(lambda_io, src, lineprinter(src), InteractiveUtils.warntype_type_printer) end return nothing end function cthulu_typed(io::IO, debuginfo_key, CI, rettype, mi, iswarn, stable_code) println(io) println(io, "β”‚ ─ $(string(Callsite(-1, MICallInfo(mi, rettype), :invoke)))") if iswarn cthulhu_warntype(io, CI, rettype, debuginfo_key, stable_code) elseif isa(CI, IRCode) show(io, CI) else show(io, CI, debuginfo = debuginfo_key) end println(io) end function show_variables(io, src, slotnames) println(io, "Variables") slottypes = src.slottypes for i = 1:length(slotnames) print(io, " ", slotnames[i]) if isa(slottypes, Vector{Any}) InteractiveUtils.warntype_type_printer(io, slottypes[i], true) end println(io) end println(io) end # These are standard code views that don't need any special handling, # This namedtuple maps toggle::Symbol to function const codeviews = (; llvm=cthulhu_llvm, native=cthulhu_native, ast=cthulhu_ast, source=cthulhu_source, ) """ Cthulhu.Bookmark A `Cthulhu.Bookmark` remembers a method marked by `b` key during a descent. It can be used with the following functions: * `descend(::Bookmark)`, `descend_code_typed(::Bookmark)`, `descend_code_warntype(::Bookmark)`: continue the descent. * `code_typed(::Bookmark)`, `code_warntype([::IO,] ::Bookmark)`: show typed IR * `code_llvm([::IO,] ::Bookmark)`: pretty-print LLVM IR * `code_native([::IO,] ::Bookmark)`: pretty-print native code """ struct Bookmark mi::MethodInstance params::CompilerParams end """ Cthulhu.BOOKMARKS :: Vector{Bookmark} During a descent, methods can be "bookmarked" by pressing `b` key. It pushes a [`Cthulhu.Bookmark`](@ref) into `Cthulhu.BOOKMARKS`. This can be used to, e.g., continue descending by `descend(Cthulhu.BOOKMARKS[end])`. See [`Cthulhu.Bookmark`](@ref) for other usages. """ const BOOKMARKS = Bookmark[] # Default `show` is broken for `Core.Compiler.Params`. Trying not invoke it. Base.show(io::IO, b::Bookmark) = print(io, "Cthulhu.Bookmark(", b.mi, ", ::", CompilerParams, ")") # Turn off `optimize` and `debuginfo` for default `show` so that the # output is smaller. function Base.show(io::IO, ::MIME"text/plain", b::Bookmark; optimize = false, debuginfo = :none, iswarn=false) CI, rt = InteractiveUtils.code_typed(b, optimize = optimize) if get(io, :typeinfo, Any) === Bookmark # a hack to check if in Vector etc. print(io, Callsite(-1, MICallInfo(b.mi, rt)), :invoke) print(io, " (world: ", b.params.world, ")") return end println(io, "Cthulhu.Bookmark (world: ", b.params.world, ")") cthulu_typed(io, debuginfo, CI, rt, b.mi, iswarn) end function InteractiveUtils.code_typed(b::Bookmark; optimize = true) (CI, rt, slottypes) = do_typeinf_slottypes(b.mi, optimize, b.params) preprocess_ci!(CI, b.mi, optimize, CONFIG) return CI => rt end InteractiveUtils.code_warntype(b::Bookmark; kw...) = InteractiveUtils.code_warntype(stdout, b; kw...) function InteractiveUtils.code_warntype(io::IO, b::Bookmark; debuginfo = :source, kw...) CI, rt = InteractiveUtils.code_typed(b; kw...) cthulhu_warntype(io, CI, rt, debuginfo) end InteractiveUtils.code_llvm(b::Bookmark) = InteractiveUtils.code_llvm(stdout, b) InteractiveUtils.code_llvm(io::IO, b::Bookmark; optimize = true, debuginfo = :source, dump_module = false, config = CONFIG) = cthulhu_llvm(io, b.mi, optimize, debuginfo == :source, b.params, config, dump_module) InteractiveUtils.code_native(b::Bookmark; kw...) = InteractiveUtils.code_native(stdout, b; kw...) InteractiveUtils.code_native(io::IO, b::Bookmark; optimize = true, debuginfo = :source, config = CONFIG) = cthulhu_native(io, b.mi, optimize, debuginfo == :source, b.params, config) @nospecialize using Base.IRShow: compute_basic_blocks, scan_ssa_use!, should_print_ssa_type, print_stmt, GotoIfNot, GotoNode, PhiNode, block_for_inst function show_ir(io::IO, code::Core.CodeInfo, line_info_preprinter, line_info_postprinter) cols = displaysize(io)[2] used = BitSet() stmts = code.code types = code.ssavaluetypes cfg = compute_basic_blocks(stmts) max_bb_idx_size = length(string(length(cfg.blocks))) for stmt in stmts scan_ssa_use!(push!, used, stmt) end bb_idx = 1 if isempty(used) maxlength_idx = 0 else maxused = maximum(used) maxlength_idx = length(string(maxused)) end for idx in eachindex(stmts) if !isassigned(stmts, idx) # This is invalid, but do something useful rather # than erroring, to make debugging easier printstyled(io, "#UNDEF\n", color=:red) continue end stmt = stmts[idx] show_type = types isa Vector{Any} && should_print_ssa_type(stmt) if types isa Vector{Any} # ignore types for pre-inference code if isassigned(types, idx) && show_type typ = types[idx] if (idx in used) && typ isa Type && (!Base.isdispatchelem(typ) || typ == Core.Box) else continue end else continue end end # Compute BB guard rail if bb_idx > length(cfg.blocks) # If invariants are violated, print a special leader linestart = " "^(max_bb_idx_size + 2) # not inside a basic block bracket inlining_indent = line_info_preprinter(io, linestart, idx) printstyled(io, "!!! ", "─"^max_bb_idx_size, color=:light_black) else bbrange = cfg.blocks[bb_idx].stmts bbrange = bbrange.start:bbrange.stop # Print line info update linestart = idx == first(bbrange) ? " " : sprint(io -> printstyled(io, "β”‚ ", color=:light_black), context=io) linestart *= " "^max_bb_idx_size inlining_indent = line_info_preprinter(io, linestart, idx) if idx == first(bbrange) bb_idx_str = string(bb_idx) bb_pad = max_bb_idx_size - length(bb_idx_str) bb_type = length(cfg.blocks[bb_idx].preds) <= 1 ? "─" : "β”„" printstyled(io, bb_idx_str, " ", bb_type, "─"^bb_pad, color=:light_black) elseif idx == last(bbrange) # print separator printstyled(io, "β””", "─"^(1 + max_bb_idx_size), color=:light_black) else printstyled(io, "β”‚ ", " "^max_bb_idx_size, color=:light_black) end if idx == last(bbrange) bb_idx += 1 end end print(io, inlining_indent, " ") # convert statement index to labels, as expected by print_stmt if stmt isa Expr if stmt.head === :gotoifnot && length(stmt.args) == 2 && stmt.args[2] isa Int stmt = GotoIfNot(stmt.args[1], block_for_inst(cfg, stmt.args[2]::Int)) elseif stmt.head === :enter && length(stmt.args) == 1 && stmt.args[1] isa Int stmt = Expr(:enter, block_for_inst(cfg, stmt.args[1]::Int)) end elseif isa(stmt, GotoIfNot) stmt = GotoIfNot(stmt.cond, block_for_inst(cfg, stmt.dest)) elseif stmt isa GotoNode stmt = GotoNode(block_for_inst(cfg, stmt.label)) elseif stmt isa PhiNode e = stmt.edges stmt = PhiNode(Int32[block_for_inst(cfg, Int(e[i])) for i in 1:length(e)], stmt.values) end print_stmt(io, idx, stmt, used, maxlength_idx, true, show_type) if types isa Vector{Any} # ignore types for pre-inference code if !isassigned(types, idx) # This is an error, but can happen if passes don't update their type information printstyled(io, "::#UNDEF", color=:red) elseif show_type typ = types[idx] if typ isa Union && Base.is_expected_union(typ) Base.emphasize(io, "::$typ", Base.warn_color()) # more mild user notification else Base.emphasize(io, "::$typ") end end end println(io) end let linestart = " "^(max_bb_idx_size + 2) line_info_preprinter(io, linestart, 0) end nothing end @specialize
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 8929, 75, 4799, 62, 1069, 1023, 7, 11250, 3712, 34, 400, 36828, 16934, 8, 796, 198, 220, 220, 220, 311, 893, 13, 4758, 7, 11250, 13, 8929, 75, 4799, 13, 18558, 58, 16, 12962, 5145, 855, 2147, 198, 198, 834, 15003, 834, 3419, 796, 25626, 13, 21633, 62, 8929, 75, 4799, 796, 1029, 75, 4799, 62, 1069, 1023, 7, 10943, 16254, 8, 198, 198, 8818, 7238, 7, 952, 11, 2124, 11, 31191, 263, 11, 4566, 3712, 34, 400, 36828, 16934, 8, 198, 220, 220, 220, 4808, 4798, 796, 886, 2032, 342, 7, 87, 11, 705, 59, 77, 11537, 5633, 3601, 1058, 44872, 198, 220, 220, 220, 4566, 13, 21633, 62, 8929, 75, 4799, 8614, 1441, 4808, 4798, 7, 952, 11, 2124, 8, 198, 220, 220, 220, 611, 5145, 8929, 75, 4799, 62, 1069, 1023, 7, 11250, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 40539, 366, 11922, 75, 4799, 3141, 29568, 11250, 13, 8929, 75, 4799, 13, 18558, 58, 16, 12962, 857, 407, 2152, 526, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 4808, 4798, 7, 952, 11, 2124, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 23991, 796, 4600, 3, 7, 11250, 13, 8929, 75, 4799, 8, 720, 2588, 263, 63, 198, 220, 220, 220, 1280, 7, 79, 541, 4470, 7, 28758, 26, 14367, 448, 28, 952, 11, 336, 1082, 81, 28, 301, 1082, 81, 828, 366, 86, 4943, 466, 33245, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 4798, 7, 952, 11, 2124, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 269, 400, 36828, 62, 297, 14761, 7, 952, 3712, 9399, 11, 21504, 11, 27183, 11, 14257, 10951, 11, 42287, 11, 4566, 3712, 34, 400, 36828, 16934, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10285, 62, 21412, 796, 3991, 8, 198, 220, 220, 220, 10285, 796, 21365, 18274, 4487, 13557, 39455, 62, 8818, 62, 2815, 6513, 62, 297, 14761, 7, 198, 220, 220, 220, 220, 220, 220, 220, 21504, 11, 42287, 13, 6894, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 28, 48553, 46249, 3991, 11, 1303, 28, 36311, 62, 343, 62, 38993, 46249, 2081, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10285, 62, 21412, 11, 198, 220, 220, 220, 220, 220, 220, 220, 27183, 11, 14257, 10951, 5633, 1058, 10459, 1058, 1058, 23108, 11, 7308, 13, 10669, 5235, 10044, 4105, 28955, 198, 220, 220, 220, 7238, 7, 952, 11, 10285, 11, 366, 297, 14761, 1600, 4566, 8, 198, 437, 198, 198, 8818, 269, 400, 36828, 62, 30191, 7, 952, 3712, 9399, 11, 21504, 11, 27183, 11, 14257, 10951, 11, 42287, 11, 4566, 3712, 34, 400, 36828, 16934, 8, 198, 220, 220, 220, 10285, 796, 21365, 18274, 4487, 13557, 39455, 62, 8818, 62, 2815, 6513, 62, 30191, 7, 198, 220, 220, 220, 220, 220, 220, 220, 21504, 11, 42287, 13, 6894, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 28, 48553, 46249, 3991, 11, 1303, 28, 1837, 41641, 46249, 4566, 13, 8597, 62, 1837, 41641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14257, 10951, 5633, 1058, 10459, 1058, 1058, 23108, 8, 198, 220, 220, 220, 7238, 7, 952, 11, 10285, 11, 366, 8597, 1600, 4566, 8, 198, 437, 198, 198, 8818, 269, 400, 36828, 62, 459, 7, 952, 3712, 9399, 11, 21504, 11, 27183, 11, 14257, 10951, 11, 42287, 11, 4566, 3712, 34, 400, 36828, 16934, 8, 198, 220, 220, 220, 11248, 796, 21504, 13, 4299, 198, 220, 220, 220, 6468, 796, 6770, 7, 3109, 1050, 11, 11248, 8, 198, 220, 220, 220, 611, 6468, 0, 855, 22366, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 11250, 13, 37784, 62, 459, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10285, 7, 952, 11, 6468, 26, 3509, 18053, 28, 28004, 368, 897, 7, 5317, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 905, 7, 952, 11, 6468, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 30277, 13, 12860, 62, 8044, 1050, 7, 952, 11, 6468, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 10347, 772, 7238, 262, 2029, 355, 617, 1611, 12, 1659, 406, 1797, 47, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 10951, 366, 23722, 407, 19818, 29273, 13, 29273, 3359, 4433, 5416, 786, 13, 20362, 284, 307, 9639, 526, 11248, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 269, 400, 36828, 62, 10459, 7, 952, 3712, 9399, 11, 21504, 11, 27183, 11, 14257, 10951, 11, 42287, 11, 4566, 3712, 34, 400, 36828, 16934, 8, 198, 220, 220, 220, 11248, 796, 21504, 13, 4299, 198, 220, 220, 220, 12351, 11, 1627, 796, 6770, 7, 10100, 11, 11248, 8, 198, 220, 220, 220, 7238, 7, 952, 11, 12351, 11, 366, 73, 43640, 1600, 4566, 8, 198, 437, 198, 198, 310, 71, 36828, 62, 5767, 429, 2981, 7, 22046, 23029, 796, 269, 400, 36828, 62, 5767, 429, 2981, 7, 19282, 448, 11, 26498, 23029, 198, 8818, 269, 400, 36828, 62, 5767, 429, 2981, 7, 952, 3712, 9399, 11, 12351, 11, 1005, 4906, 11, 14257, 10951, 11, 8245, 62, 8189, 8, 198, 220, 220, 220, 14257, 10951, 796, 7308, 13, 4663, 15307, 13, 24442, 10951, 7, 24442, 10951, 8, 198, 220, 220, 220, 1627, 1050, 3849, 796, 7308, 13, 4663, 15307, 13, 834, 24442, 10951, 58, 24442, 10951, 60, 198, 220, 220, 220, 37456, 62, 952, 3712, 9399, 21947, 796, 33245, 198, 220, 220, 220, 611, 468, 3245, 7, 4906, 1659, 7, 10677, 828, 1058, 43384, 14933, 8, 11405, 12351, 13, 43384, 14933, 5145, 855, 2147, 198, 220, 220, 220, 220, 220, 220, 220, 10852, 14933, 796, 7308, 13, 10459, 10951, 62, 43384, 14933, 7, 10677, 8, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 62, 952, 796, 24418, 21947, 7, 50033, 62, 952, 11, 1058, 47690, 62, 8634, 2394, 45, 29559, 5218, 10852, 14933, 8, 198, 220, 220, 220, 220, 220, 220, 220, 905, 62, 25641, 2977, 7, 952, 11, 12351, 11, 10852, 14933, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 3601, 7, 952, 11, 366, 25842, 4943, 198, 220, 220, 220, 21365, 18274, 4487, 13, 5767, 429, 2981, 62, 4906, 62, 1050, 3849, 7, 952, 11, 1005, 4906, 11, 2081, 8, 198, 220, 220, 220, 44872, 7, 952, 8, 198, 220, 220, 220, 611, 318, 64, 7, 10677, 11, 30039, 1098, 8, 198, 220, 220, 220, 220, 220, 220, 220, 905, 7, 952, 11, 12351, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 27713, 428, 1595, 470, 6105, 905, 1175, 429, 2981, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 4173, 62, 1050, 3849, 796, 8245, 62, 8189, 5633, 7308, 13, 4663, 15307, 13, 12860, 62, 343, 1058, 905, 62, 343, 198, 220, 220, 220, 220, 220, 220, 220, 4173, 62, 1050, 3849, 7, 50033, 62, 952, 11, 12351, 11, 1627, 1050, 3849, 7, 10677, 828, 21365, 18274, 4487, 13, 5767, 429, 2981, 62, 4906, 62, 1050, 3849, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2147, 198, 437, 628, 198, 8818, 269, 400, 15712, 62, 774, 9124, 7, 952, 3712, 9399, 11, 14257, 10951, 62, 2539, 11, 14514, 11, 1005, 4906, 11, 21504, 11, 318, 40539, 11, 8245, 62, 8189, 8, 198, 220, 220, 220, 44872, 7, 952, 8, 198, 220, 220, 220, 44872, 7, 952, 11, 366, 6552, 224, 13305, 222, 29568, 8841, 7, 34, 5691, 578, 32590, 16, 11, 35878, 439, 12360, 7, 11632, 11, 1005, 4906, 828, 1058, 37669, 22305, 4943, 628, 220, 220, 220, 611, 318, 40539, 198, 220, 220, 220, 220, 220, 220, 220, 269, 400, 36828, 62, 5767, 429, 2981, 7, 952, 11, 14514, 11, 1005, 4906, 11, 14257, 10951, 62, 2539, 11, 8245, 62, 8189, 8, 198, 220, 220, 220, 2073, 361, 318, 64, 7, 25690, 11, 30039, 1098, 8, 198, 220, 220, 220, 220, 220, 220, 220, 905, 7, 952, 11, 14514, 8, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 905, 7, 952, 11, 14514, 11, 14257, 10951, 796, 14257, 10951, 62, 2539, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 44872, 7, 952, 8, 198, 437, 198, 198, 8818, 905, 62, 25641, 2977, 7, 952, 11, 12351, 11, 10852, 14933, 8, 198, 220, 220, 220, 44872, 7, 952, 11, 366, 23907, 2977, 4943, 198, 220, 220, 220, 10852, 19199, 796, 12351, 13, 43384, 19199, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 13664, 7, 43384, 14933, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 952, 11, 366, 220, 33172, 10852, 14933, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 611, 318, 64, 7, 43384, 19199, 11, 20650, 90, 7149, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21365, 18274, 4487, 13, 5767, 429, 2981, 62, 4906, 62, 1050, 3849, 7, 952, 11, 10852, 19199, 58, 72, 4357, 2081, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7, 952, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 44872, 7, 952, 8, 198, 437, 198, 198, 2, 2312, 389, 3210, 2438, 5009, 326, 836, 470, 761, 597, 2041, 9041, 11, 198, 2, 770, 3706, 83, 29291, 8739, 19846, 3712, 13940, 23650, 284, 2163, 198, 9979, 2438, 33571, 796, 357, 26, 198, 220, 220, 220, 32660, 14761, 28, 310, 71, 36828, 62, 297, 14761, 11, 198, 220, 220, 220, 6868, 28, 310, 71, 36828, 62, 30191, 11, 198, 220, 220, 220, 6468, 28, 310, 71, 36828, 62, 459, 11, 198, 220, 220, 220, 2723, 28, 310, 71, 36828, 62, 10459, 11, 198, 8, 198, 198, 37811, 198, 220, 220, 220, 39316, 13, 10482, 4102, 198, 198, 32, 4600, 34, 400, 36828, 13, 10482, 4102, 63, 18140, 257, 2446, 7498, 416, 4600, 65, 63, 1994, 1141, 257, 18598, 13, 198, 1026, 460, 307, 973, 351, 262, 1708, 5499, 25, 198, 198, 9, 4600, 20147, 437, 7, 3712, 10482, 4102, 8, 47671, 4600, 20147, 437, 62, 8189, 62, 774, 9124, 7, 3712, 10482, 4102, 8, 47671, 198, 220, 4600, 20147, 437, 62, 8189, 62, 5767, 429, 2981, 7, 3712, 10482, 4102, 8, 63, 25, 2555, 262, 18598, 13, 198, 9, 4600, 8189, 62, 774, 9124, 7, 3712, 10482, 4102, 8, 47671, 4600, 8189, 62, 5767, 429, 2981, 26933, 3712, 9399, 11, 60, 7904, 10482, 4102, 8, 63, 25, 905, 25683, 14826, 198, 9, 4600, 8189, 62, 297, 14761, 26933, 3712, 9399, 11, 60, 7904, 10482, 4102, 8, 63, 25, 2495, 12, 4798, 27140, 15996, 14826, 198, 9, 4600, 8189, 62, 30191, 26933, 3712, 9399, 11, 60, 7904, 10482, 4102, 8, 63, 25, 2495, 12, 4798, 6868, 2438, 198, 37811, 198, 7249, 4897, 4102, 198, 220, 220, 220, 21504, 3712, 17410, 33384, 198, 220, 220, 220, 42287, 3712, 7293, 5329, 10044, 4105, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 39316, 13, 39453, 44, 14175, 50, 7904, 20650, 90, 10482, 4102, 92, 198, 198, 7191, 257, 18598, 11, 5050, 460, 307, 366, 2070, 23505, 1, 416, 12273, 4600, 65, 63, 1994, 13, 220, 632, 198, 79, 17237, 257, 685, 63, 34, 400, 36828, 13, 10482, 4102, 63, 16151, 31, 5420, 8, 656, 4600, 34, 400, 36828, 13, 39453, 44, 14175, 50, 44646, 220, 770, 460, 307, 198, 1484, 284, 11, 304, 13, 70, 1539, 2555, 31491, 416, 4600, 20147, 437, 7, 34, 400, 36828, 13, 39453, 44, 14175, 50, 58, 437, 12962, 44646, 198, 6214, 685, 63, 34, 400, 36828, 13, 10482, 4102, 63, 16151, 31, 5420, 8, 329, 584, 514, 1095, 13, 198, 37811, 198, 9979, 39633, 44, 14175, 50, 796, 4897, 4102, 21737, 198, 198, 2, 15161, 4600, 12860, 63, 318, 5445, 329, 4600, 14055, 13, 7293, 5329, 13, 10044, 4105, 44646, 31165, 407, 26342, 340, 13, 198, 14881, 13, 12860, 7, 952, 3712, 9399, 11, 275, 3712, 10482, 4102, 8, 796, 198, 220, 220, 220, 3601, 7, 952, 11, 366, 34, 400, 36828, 13, 10482, 4102, 7, 1600, 275, 13, 11632, 11, 33172, 7904, 1600, 3082, 5329, 10044, 4105, 11, 366, 8, 4943, 198, 198, 2, 6756, 572, 4600, 40085, 1096, 63, 290, 4600, 24442, 10951, 63, 329, 4277, 4600, 12860, 63, 523, 326, 262, 198, 2, 5072, 318, 4833, 13, 198, 8818, 7308, 13, 12860, 7, 952, 3712, 9399, 11, 7904, 44, 12789, 1, 5239, 14, 25638, 1600, 275, 3712, 10482, 4102, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27183, 796, 3991, 11, 14257, 10951, 796, 1058, 23108, 11, 318, 40539, 28, 9562, 8, 198, 220, 220, 220, 14514, 11, 374, 83, 796, 21365, 18274, 4487, 13, 8189, 62, 774, 9124, 7, 65, 11, 27183, 796, 27183, 8, 198, 220, 220, 220, 611, 651, 7, 952, 11, 1058, 4906, 10951, 11, 4377, 8, 24844, 4897, 4102, 220, 1303, 257, 8156, 284, 2198, 611, 287, 20650, 3503, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 952, 11, 4889, 15654, 32590, 16, 11, 35878, 439, 12360, 7, 65, 13, 11632, 11, 374, 83, 36911, 1058, 37669, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 952, 11, 366, 357, 6894, 25, 33172, 275, 13, 37266, 13, 6894, 11, 366, 8, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 198, 220, 220, 220, 886, 198, 220, 220, 220, 44872, 7, 952, 11, 366, 34, 400, 36828, 13, 10482, 4102, 357, 6894, 25, 33172, 275, 13, 37266, 13, 6894, 11, 366, 8, 4943, 198, 220, 220, 220, 269, 400, 15712, 62, 774, 9124, 7, 952, 11, 14257, 10951, 11, 14514, 11, 374, 83, 11, 275, 13, 11632, 11, 318, 40539, 8, 198, 437, 198, 198, 8818, 21365, 18274, 4487, 13, 8189, 62, 774, 9124, 7, 65, 3712, 10482, 4102, 26, 27183, 796, 2081, 8, 198, 220, 220, 220, 357, 25690, 11, 374, 83, 11, 10852, 19199, 8, 796, 466, 62, 4906, 10745, 62, 43384, 19199, 7, 65, 13, 11632, 11, 27183, 11, 275, 13, 37266, 8, 198, 220, 220, 220, 662, 14681, 62, 979, 0, 7, 25690, 11, 275, 13, 11632, 11, 27183, 11, 25626, 8, 198, 220, 220, 220, 1441, 14514, 5218, 374, 83, 198, 437, 198, 198, 9492, 5275, 18274, 4487, 13, 8189, 62, 5767, 429, 2981, 7, 65, 3712, 10482, 4102, 26, 479, 86, 23029, 796, 198, 220, 220, 220, 21365, 18274, 4487, 13, 8189, 62, 5767, 429, 2981, 7, 19282, 448, 11, 275, 26, 479, 86, 23029, 198, 8818, 21365, 18274, 4487, 13, 8189, 62, 5767, 429, 2981, 7, 952, 3712, 9399, 11, 275, 3712, 10482, 4102, 26, 14257, 10951, 796, 1058, 10459, 11, 479, 86, 23029, 198, 220, 220, 220, 14514, 11, 374, 83, 796, 21365, 18274, 4487, 13, 8189, 62, 774, 9124, 7, 65, 26, 479, 86, 23029, 198, 220, 220, 220, 269, 400, 36828, 62, 5767, 429, 2981, 7, 952, 11, 14514, 11, 374, 83, 11, 14257, 10951, 8, 198, 437, 198, 198, 9492, 5275, 18274, 4487, 13, 8189, 62, 297, 14761, 7, 65, 3712, 10482, 4102, 8, 796, 21365, 18274, 4487, 13, 8189, 62, 297, 14761, 7, 19282, 448, 11, 275, 8, 198, 9492, 5275, 18274, 4487, 13, 8189, 62, 297, 14761, 7, 952, 3712, 9399, 11, 275, 3712, 10482, 4102, 26, 27183, 796, 2081, 11, 14257, 10951, 796, 1058, 10459, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10285, 62, 21412, 796, 3991, 11, 4566, 796, 25626, 8, 796, 198, 220, 220, 220, 269, 400, 36828, 62, 297, 14761, 7, 952, 11, 275, 13, 11632, 11, 27183, 11, 14257, 10951, 6624, 1058, 10459, 11, 275, 13, 37266, 11, 4566, 11, 10285, 62, 21412, 8, 198, 198, 9492, 5275, 18274, 4487, 13, 8189, 62, 30191, 7, 65, 3712, 10482, 4102, 26, 479, 86, 23029, 796, 198, 220, 220, 220, 21365, 18274, 4487, 13, 8189, 62, 30191, 7, 19282, 448, 11, 275, 26, 479, 86, 23029, 198, 9492, 5275, 18274, 4487, 13, 8189, 62, 30191, 7, 952, 3712, 9399, 11, 275, 3712, 10482, 4102, 26, 27183, 796, 2081, 11, 14257, 10951, 796, 1058, 10459, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4566, 796, 25626, 8, 796, 198, 220, 220, 220, 269, 400, 36828, 62, 30191, 7, 952, 11, 275, 13, 11632, 11, 27183, 11, 14257, 10951, 6624, 1058, 10459, 11, 275, 13, 37266, 11, 4566, 8, 198, 198, 31, 39369, 431, 2413, 1096, 198, 3500, 7308, 13, 4663, 15307, 25, 24061, 62, 35487, 62, 27372, 11, 9367, 62, 824, 64, 62, 1904, 28265, 815, 62, 4798, 62, 824, 64, 62, 4906, 11, 3601, 62, 301, 16762, 11, 402, 2069, 1532, 3673, 11, 402, 2069, 19667, 11, 47256, 19667, 11, 2512, 62, 1640, 62, 8625, 198, 8818, 905, 62, 343, 7, 952, 3712, 9399, 11, 2438, 3712, 14055, 13, 10669, 12360, 11, 1627, 62, 10951, 62, 3866, 1050, 3849, 11, 1627, 62, 10951, 62, 7353, 1050, 3849, 8, 198, 220, 220, 220, 951, 82, 796, 11298, 1096, 7, 952, 38381, 17, 60, 198, 220, 220, 220, 973, 796, 4722, 7248, 3419, 198, 220, 220, 220, 336, 76, 912, 796, 2438, 13, 8189, 198, 220, 220, 220, 3858, 796, 2438, 13, 824, 9226, 84, 2963, 12272, 198, 220, 220, 220, 30218, 70, 796, 24061, 62, 35487, 62, 27372, 7, 301, 76, 912, 8, 198, 220, 220, 220, 3509, 62, 11848, 62, 312, 87, 62, 7857, 796, 4129, 7, 8841, 7, 13664, 7, 37581, 13, 27372, 22305, 198, 220, 220, 220, 329, 336, 16762, 287, 336, 76, 912, 198, 220, 220, 220, 220, 220, 220, 220, 9367, 62, 824, 64, 62, 1904, 0, 7, 14689, 28265, 973, 11, 336, 16762, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 275, 65, 62, 312, 87, 796, 352, 628, 220, 220, 220, 611, 318, 28920, 7, 1484, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 13664, 62, 312, 87, 796, 657, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 1484, 796, 5415, 7, 1484, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 13664, 62, 312, 87, 796, 4129, 7, 8841, 7, 9806, 1484, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 4686, 87, 287, 1123, 9630, 7, 301, 76, 912, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 271, 562, 3916, 7, 301, 76, 912, 11, 4686, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 770, 318, 12515, 11, 475, 466, 1223, 4465, 2138, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 621, 4049, 278, 11, 284, 787, 28769, 4577, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 34365, 992, 7, 952, 11, 25113, 4944, 32988, 59, 77, 1600, 3124, 28, 25, 445, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 336, 16762, 796, 336, 76, 912, 58, 312, 87, 60, 198, 220, 220, 220, 220, 220, 220, 220, 905, 62, 4906, 796, 3858, 318, 64, 20650, 90, 7149, 92, 11405, 815, 62, 4798, 62, 824, 64, 62, 4906, 7, 301, 16762, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3858, 318, 64, 20650, 90, 7149, 92, 1303, 8856, 3858, 329, 662, 12, 259, 4288, 2438, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 562, 3916, 7, 19199, 11, 4686, 87, 8, 11405, 905, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2170, 796, 3858, 58, 312, 87, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 357, 312, 87, 287, 973, 8, 11405, 2170, 318, 64, 5994, 11405, 22759, 14881, 13, 271, 6381, 8071, 2395, 10671, 7, 28004, 8, 8614, 2170, 6624, 7231, 13, 14253, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3082, 1133, 12597, 4860, 6787, 198, 220, 220, 220, 220, 220, 220, 220, 611, 275, 65, 62, 312, 87, 1875, 4129, 7, 37581, 13, 27372, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1002, 25275, 1187, 389, 13998, 11, 3601, 257, 2041, 3554, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9493, 395, 433, 796, 366, 366, 61, 7, 9806, 62, 11848, 62, 312, 87, 62, 7857, 1343, 362, 8, 1303, 407, 2641, 257, 4096, 2512, 19096, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 21310, 62, 521, 298, 796, 1627, 62, 10951, 62, 3866, 1050, 3849, 7, 952, 11, 9493, 395, 433, 11, 4686, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 34365, 992, 7, 952, 11, 366, 10185, 33172, 366, 7280, 1, 61, 9806, 62, 11848, 62, 312, 87, 62, 7857, 11, 3124, 28, 25, 2971, 62, 13424, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 1671, 858, 796, 30218, 70, 13, 27372, 58, 11848, 62, 312, 87, 4083, 301, 76, 912, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 1671, 858, 796, 275, 1671, 858, 13, 9688, 25, 65, 1671, 858, 13, 11338, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 12578, 1627, 7508, 4296, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9493, 395, 433, 796, 4686, 87, 6624, 717, 7, 65, 1671, 858, 8, 5633, 366, 220, 366, 1058, 18553, 7, 952, 4613, 3601, 34365, 992, 7, 952, 11, 366, 6552, 224, 33172, 3124, 28, 25, 2971, 62, 13424, 828, 4732, 28, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9493, 395, 433, 1635, 28, 366, 366, 61, 9806, 62, 11848, 62, 312, 87, 62, 7857, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 21310, 62, 521, 298, 796, 1627, 62, 10951, 62, 3866, 1050, 3849, 7, 952, 11, 9493, 395, 433, 11, 4686, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4686, 87, 6624, 717, 7, 65, 1671, 858, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 65, 62, 312, 87, 62, 2536, 796, 4731, 7, 11848, 62, 312, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 65, 62, 15636, 796, 3509, 62, 11848, 62, 312, 87, 62, 7857, 532, 4129, 7, 11848, 62, 312, 87, 62, 2536, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 65, 62, 4906, 796, 4129, 7, 37581, 13, 27372, 58, 11848, 62, 312, 87, 4083, 28764, 82, 8, 19841, 352, 5633, 366, 7280, 1, 1058, 366, 6552, 226, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 34365, 992, 7, 952, 11, 275, 65, 62, 312, 87, 62, 2536, 11, 366, 33172, 275, 65, 62, 4906, 11, 366, 7280, 1, 61, 11848, 62, 15636, 11, 3124, 28, 25, 2971, 62, 13424, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 4686, 87, 6624, 938, 7, 65, 1671, 858, 8, 1303, 3601, 2880, 1352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 34365, 992, 7, 952, 11, 366, 6552, 242, 1600, 366, 7280, 1, 61, 7, 16, 1343, 3509, 62, 11848, 62, 312, 87, 62, 7857, 828, 3124, 28, 25, 2971, 62, 13424, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 34365, 992, 7, 952, 11, 366, 6552, 224, 33172, 366, 366, 61, 9806, 62, 11848, 62, 312, 87, 62, 7857, 11, 3124, 28, 25, 2971, 62, 13424, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4686, 87, 6624, 938, 7, 65, 1671, 858, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 65, 62, 312, 87, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 952, 11, 287, 21310, 62, 521, 298, 11, 366, 366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 10385, 2643, 6376, 284, 14722, 11, 355, 2938, 416, 3601, 62, 301, 16762, 198, 220, 220, 220, 220, 220, 220, 220, 611, 336, 16762, 318, 64, 1475, 1050, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 336, 16762, 13, 2256, 24844, 1058, 70, 2069, 361, 1662, 11405, 4129, 7, 301, 16762, 13, 22046, 8, 6624, 362, 11405, 336, 16762, 13, 22046, 58, 17, 60, 318, 64, 2558, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 16762, 796, 402, 2069, 1532, 3673, 7, 301, 16762, 13, 22046, 58, 16, 4357, 2512, 62, 1640, 62, 8625, 7, 37581, 11, 336, 16762, 13, 22046, 58, 17, 60, 3712, 5317, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 336, 16762, 13, 2256, 24844, 1058, 9255, 11405, 4129, 7, 301, 16762, 13, 22046, 8, 6624, 352, 11405, 336, 16762, 13, 22046, 58, 16, 60, 318, 64, 2558, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 16762, 796, 1475, 1050, 7, 25, 9255, 11, 2512, 62, 1640, 62, 8625, 7, 37581, 11, 336, 16762, 13, 22046, 58, 16, 60, 3712, 5317, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 318, 64, 7, 301, 16762, 11, 402, 2069, 1532, 3673, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 16762, 796, 402, 2069, 1532, 3673, 7, 301, 16762, 13, 17561, 11, 2512, 62, 1640, 62, 8625, 7, 37581, 11, 336, 16762, 13, 16520, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 336, 16762, 318, 64, 402, 2069, 19667, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 16762, 796, 402, 2069, 19667, 7, 9967, 62, 1640, 62, 8625, 7, 37581, 11, 336, 16762, 13, 18242, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 336, 16762, 318, 64, 47256, 19667, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 796, 336, 16762, 13, 276, 3212, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 16762, 796, 47256, 19667, 7, 5317, 2624, 58, 9967, 62, 1640, 62, 8625, 7, 37581, 11, 2558, 7, 68, 58, 72, 60, 4008, 329, 1312, 287, 352, 25, 13664, 7, 68, 8, 4357, 336, 16762, 13, 27160, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 62, 301, 16762, 7, 952, 11, 4686, 87, 11, 336, 16762, 11, 973, 11, 3509, 13664, 62, 312, 87, 11, 2081, 11, 905, 62, 4906, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3858, 318, 64, 20650, 90, 7149, 92, 1303, 8856, 3858, 329, 662, 12, 259, 4288, 2438, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 271, 562, 3916, 7, 19199, 11, 4686, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 770, 318, 281, 4049, 11, 475, 460, 1645, 611, 8318, 836, 470, 4296, 511, 2099, 1321, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 34365, 992, 7, 952, 11, 366, 3712, 2, 4944, 32988, 1600, 3124, 28, 25, 445, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 905, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2170, 796, 3858, 58, 312, 87, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2170, 318, 64, 4479, 11405, 7308, 13, 271, 62, 40319, 62, 24592, 7, 28004, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 368, 5902, 1096, 7, 952, 11, 366, 3712, 3, 28004, 1600, 7308, 13, 40539, 62, 8043, 28955, 1303, 517, 11607, 2836, 14483, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 368, 5902, 1096, 7, 952, 11, 366, 3712, 3, 28004, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7, 952, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1309, 9493, 395, 433, 796, 366, 366, 61, 7, 9806, 62, 11848, 62, 312, 87, 62, 7857, 1343, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 62, 10951, 62, 3866, 1050, 3849, 7, 952, 11, 9493, 395, 433, 11, 657, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2147, 198, 437, 198, 31, 20887, 1096, 198 ]
2.185257
5,182
using ManifoldsBase using Test struct ErrorTestManifold <: Manifold{ℝ} end function ManifoldsBase.check_manifold_point(::ErrorTestManifold, x) if any(u -> u < 0, x) return DomainError(x, "<0") end return nothing end function ManifoldsBase.check_tangent_vector(M::ErrorTestManifold, x, v) mpe = check_manifold_point(M, x) mpe === nothing || return mpe if any(u -> u < 0, v) return DomainError(v, "<0") end return nothing end @testset "Domain errors" begin M = ErrorTestManifold() @test isa(check_manifold_point(M, [-1, 1]), DomainError) @test check_manifold_point(M, [1, 1]) === nothing @test !is_manifold_point(M, [-1, 1]) @test is_manifold_point(M, [1, 1]) @test_throws DomainError is_manifold_point(M, [-1, 1], true) @test isa(check_tangent_vector(M, [1, 1], [-1, 1]), DomainError) @test check_tangent_vector(M, [1, 1], [1, 1]) === nothing @test !is_tangent_vector(M, [1, 1], [-1, 1]) @test is_tangent_vector(M, [1, 1], [1, 1]) @test_throws DomainError is_tangent_vector(M, [1, 1], [-1, 1], true) end
[ 3500, 1869, 361, 10119, 14881, 198, 3500, 6208, 198, 198, 7249, 13047, 14402, 5124, 361, 727, 1279, 25, 1869, 361, 727, 90, 158, 226, 251, 92, 886, 198, 198, 8818, 1869, 361, 10119, 14881, 13, 9122, 62, 805, 361, 727, 62, 4122, 7, 3712, 12331, 14402, 5124, 361, 727, 11, 2124, 8, 198, 220, 220, 220, 611, 597, 7, 84, 4613, 334, 1279, 657, 11, 2124, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 20021, 12331, 7, 87, 11, 33490, 15, 4943, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2147, 198, 437, 198, 8818, 1869, 361, 10119, 14881, 13, 9122, 62, 83, 648, 298, 62, 31364, 7, 44, 3712, 12331, 14402, 5124, 361, 727, 11, 2124, 11, 410, 8, 198, 220, 220, 220, 285, 431, 796, 2198, 62, 805, 361, 727, 62, 4122, 7, 44, 11, 2124, 8, 198, 220, 220, 220, 285, 431, 24844, 2147, 8614, 1441, 285, 431, 198, 220, 220, 220, 611, 597, 7, 84, 4613, 334, 1279, 657, 11, 410, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 20021, 12331, 7, 85, 11, 33490, 15, 4943, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2147, 198, 437, 198, 198, 31, 9288, 2617, 366, 43961, 8563, 1, 2221, 198, 220, 220, 220, 337, 796, 13047, 14402, 5124, 361, 727, 3419, 198, 220, 220, 220, 2488, 9288, 318, 64, 7, 9122, 62, 805, 361, 727, 62, 4122, 7, 44, 11, 25915, 16, 11, 352, 46570, 20021, 12331, 8, 198, 220, 220, 220, 2488, 9288, 2198, 62, 805, 361, 727, 62, 4122, 7, 44, 11, 685, 16, 11, 352, 12962, 24844, 2147, 198, 220, 220, 220, 2488, 9288, 5145, 271, 62, 805, 361, 727, 62, 4122, 7, 44, 11, 25915, 16, 11, 352, 12962, 198, 220, 220, 220, 2488, 9288, 318, 62, 805, 361, 727, 62, 4122, 7, 44, 11, 685, 16, 11, 352, 12962, 198, 220, 220, 220, 2488, 9288, 62, 400, 8516, 20021, 12331, 318, 62, 805, 361, 727, 62, 4122, 7, 44, 11, 25915, 16, 11, 352, 4357, 2081, 8, 628, 220, 220, 220, 2488, 9288, 318, 64, 7, 9122, 62, 83, 648, 298, 62, 31364, 7, 44, 11, 685, 16, 11, 352, 4357, 25915, 16, 11, 352, 46570, 20021, 12331, 8, 198, 220, 220, 220, 2488, 9288, 2198, 62, 83, 648, 298, 62, 31364, 7, 44, 11, 685, 16, 11, 352, 4357, 685, 16, 11, 352, 12962, 24844, 2147, 198, 220, 220, 220, 2488, 9288, 5145, 271, 62, 83, 648, 298, 62, 31364, 7, 44, 11, 685, 16, 11, 352, 4357, 25915, 16, 11, 352, 12962, 198, 220, 220, 220, 2488, 9288, 318, 62, 83, 648, 298, 62, 31364, 7, 44, 11, 685, 16, 11, 352, 4357, 685, 16, 11, 352, 12962, 198, 220, 220, 220, 2488, 9288, 62, 400, 8516, 20021, 12331, 318, 62, 83, 648, 298, 62, 31364, 7, 44, 11, 685, 16, 11, 352, 4357, 25915, 16, 11, 352, 4357, 2081, 8, 198, 437, 198 ]
2.23374
492
@testset "Testing Lots of things" begin localcache = joinpath(@__DIR__, "cache", "fuzz.jls") backend = AutoTM.Backend("CPU") cache = AutoTM.Profiler.CPUKernelCache(localcache) # Queue up a collection of models and optimizers. batchsize = 16 fns = [ () -> AutoTM.Zoo.resnet_training(AutoTM.Zoo.Resnet50(), batchsize), () -> AutoTM.Zoo.vgg_training(AutoTM.Zoo.Vgg19(), batchsize), () -> AutoTM.Zoo.inception_v4_training(batchsize), # TODO: Finish profiling to add this test. #() -> AutoTM.Zoo.densenet_training(batchsize) ] # Go through the static and synchronous optimizers. # # Just do one where we know we'll get move nodes / a mix of DRAM and PMM # Keep the total number down to facilitate quicker testing. optimizers = [ AutoTM.Optimizer.Static(1 // 1), AutoTM.Optimizer.Synchronous(1 // 1), ] for (i, f) in enumerate(fns) for (j, opt) in enumerate(optimizers) printstyled("Function $i -- Optimizer $j\n"; color = :green) @test AutoTM.Verifier.verify(backend, f, opt, cache) end end end
[ 31, 9288, 2617, 366, 44154, 25024, 286, 1243, 1, 2221, 198, 220, 220, 220, 1957, 23870, 796, 4654, 6978, 7, 31, 834, 34720, 834, 11, 366, 23870, 1600, 366, 69, 4715, 13, 73, 7278, 4943, 628, 220, 220, 220, 30203, 796, 11160, 15972, 13, 7282, 437, 7203, 36037, 4943, 198, 220, 220, 220, 12940, 796, 11160, 15972, 13, 15404, 5329, 13, 36037, 42, 7948, 30562, 7, 12001, 23870, 8, 628, 220, 220, 220, 1303, 4670, 518, 510, 257, 4947, 286, 4981, 290, 6436, 11341, 13, 198, 220, 220, 220, 15458, 7857, 796, 1467, 220, 198, 220, 220, 220, 277, 5907, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 7499, 4613, 11160, 15972, 13, 57, 2238, 13, 411, 3262, 62, 34409, 7, 27722, 15972, 13, 57, 2238, 13, 4965, 3262, 1120, 22784, 15458, 7857, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7499, 4613, 11160, 15972, 13, 57, 2238, 13, 85, 1130, 62, 34409, 7, 27722, 15972, 13, 57, 2238, 13, 53, 1130, 1129, 22784, 15458, 7857, 828, 198, 220, 220, 220, 220, 220, 220, 220, 7499, 4613, 11160, 15972, 13, 57, 2238, 13, 924, 1159, 62, 85, 19, 62, 34409, 7, 43501, 7857, 828, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 16926, 46, 25, 32585, 31582, 284, 751, 428, 1332, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3419, 4613, 11160, 15972, 13, 57, 2238, 13, 67, 18756, 316, 62, 34409, 7, 43501, 7857, 8, 198, 220, 220, 220, 2361, 628, 220, 220, 220, 1303, 1514, 832, 262, 9037, 290, 18305, 516, 6436, 11341, 13, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 2329, 466, 530, 810, 356, 760, 356, 1183, 651, 1445, 13760, 1220, 257, 5022, 286, 10560, 2390, 290, 3122, 44, 198, 220, 220, 220, 1303, 9175, 262, 2472, 1271, 866, 284, 15570, 20061, 4856, 13, 198, 220, 220, 220, 6436, 11341, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 11160, 15972, 13, 27871, 320, 7509, 13, 45442, 7, 16, 3373, 352, 828, 198, 220, 220, 220, 220, 220, 220, 220, 11160, 15972, 13, 27871, 320, 7509, 13, 50, 31301, 7, 16, 3373, 352, 828, 198, 220, 220, 220, 2361, 628, 220, 220, 220, 329, 357, 72, 11, 277, 8, 287, 27056, 378, 7, 69, 5907, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 73, 11, 2172, 8, 287, 27056, 378, 7, 40085, 11341, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 34365, 992, 7203, 22203, 720, 72, 1377, 30011, 7509, 720, 73, 59, 77, 8172, 3124, 796, 1058, 14809, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 11160, 15972, 13, 13414, 7483, 13, 332, 1958, 7, 1891, 437, 11, 277, 11, 2172, 11, 12940, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198 ]
2.387967
482
<reponame>JuliaPackageMirrors/RingBuffers.jl<gh_stars>0 using RingBuffers if VERSION >= v"0.5.0-" using Base.Test else using BaseTestNext end @testset "RingBuffer Tests" begin include("lockfree.jl") @testset "Construction" begin r = RingBuffer(Float64, 8, 1) @test eltype(r) == Float64 @test RingBuffers.read_space(r) == 0 @test RingBuffers.write_space(r) == 8 end @testset "Basic read/write" begin r = RingBuffer(Int, 8, 2) data = reshape(1:12, 6, 2) write(r, data[1:4, :]) @test read(r, 4) == data[1:4, :] write(r, data) @test read(r, 6) == data end @testset "Overwriting overflow" begin r = RingBuffer(Int, 8, 2; overflow=OVERWRITE) data = reshape(1:12, 6, 2) @test write(r, data[1:4, :]) == 4 @test write(r, data) == 6 @test read(r, 4) == [3 9; 4 10; 1 7; 2 8] end @testset "Single-write overwrite overflow" begin r = RingBuffer(Int, 8, 2; overflow=OVERWRITE) data = reshape(1:20, 10, 2) @test write(r, data) == 10 @test read(r, 4) == [3 13; 4 14; 5 15; 6 16] end @testset "truncating overflow" begin r = RingBuffer(Int, 8, 2; overflow=TRUNCATE) data = reshape(1:12, 6, 2) @test write(r, data[1:4, :]) == 4 @test write(r, data) == 4 @test write(r, data) == 0 @test read(r, 5) == [1 7; 2 8; 3 9; 4 10; 1 7] end @testset "truncating underflow" begin r = RingBuffer(Int, 8, 2; underflow=TRUNCATE) data = reshape(1:6, 3, 2) @test write(r, data) == 3 @test read(r, 5) == [1 4; 2 5; 3 6] end @testset "padded underflow" begin r = RingBuffer(Int, 8, 2; underflow=PAD) data = reshape(1:6, 3, 2) @test write(r, data) == 3 @test read(r, 5) == [1 4; 2 5; 3 6; 0 0; 0 0] end @testset "queuing blocking writes" begin r = RingBuffer(Int, 4, 2) data = reshape(1:12, 6, 2) res1 = @async write(r, data) res2 = @async write(r, data) res3 = @async write(r, data) yield() @test read(r, 5) == [1 7; 2 8; 3 9; 4 10; 5 11] @test read(r, 13) == [6 12; 1 7; 2 8; 3 9; 4 10; 5 11; 6 12; 1 7; 2 8; 3 9; 4 10; 5 11; 6 12] @test wait(res1) == 6 @test wait(res2) == 6 @test wait(res3) == 6 end @testset "queueing blocking reads" begin r = RingBuffer(Int, 8, 2) data = reshape(1:12, 6, 2) res1 = @async read(r, 2) res2 = @async read(r, 2) res3 = @async read(r, 2) yield() write(r, data) @test wait(res1) == [1 7; 2 8] @test wait(res2) == [3 9; 4 10] @test wait(res3) == [5 11; 6 12] end end
[ 27, 7856, 261, 480, 29, 16980, 544, 27813, 27453, 5965, 14, 39687, 36474, 364, 13, 20362, 27, 456, 62, 30783, 29, 15, 198, 3500, 12569, 36474, 364, 198, 361, 44156, 2849, 18189, 410, 1, 15, 13, 20, 13, 15, 21215, 198, 220, 220, 220, 1262, 7308, 13, 14402, 198, 17772, 198, 220, 220, 220, 1262, 7308, 14402, 10019, 198, 437, 198, 198, 31, 9288, 2617, 366, 39687, 28632, 30307, 1, 2221, 198, 220, 220, 220, 2291, 7203, 5354, 5787, 13, 20362, 4943, 198, 220, 220, 220, 2488, 9288, 2617, 366, 36687, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 374, 796, 12569, 28632, 7, 43879, 2414, 11, 807, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1288, 4906, 7, 81, 8, 6624, 48436, 2414, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 12569, 36474, 364, 13, 961, 62, 13200, 7, 81, 8, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 12569, 36474, 364, 13, 13564, 62, 13200, 7, 81, 8, 6624, 807, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 2617, 366, 26416, 1100, 14, 13564, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 374, 796, 12569, 28632, 7, 5317, 11, 807, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 27179, 1758, 7, 16, 25, 1065, 11, 718, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3551, 7, 81, 11, 1366, 58, 16, 25, 19, 11, 1058, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1100, 7, 81, 11, 604, 8, 6624, 1366, 58, 16, 25, 19, 11, 1058, 60, 198, 220, 220, 220, 220, 220, 220, 220, 3551, 7, 81, 11, 1366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1100, 7, 81, 11, 718, 8, 6624, 1366, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 2617, 366, 5886, 16502, 30343, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 374, 796, 12569, 28632, 7, 5317, 11, 807, 11, 362, 26, 30343, 28, 41983, 18564, 12709, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 27179, 1758, 7, 16, 25, 1065, 11, 718, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 3551, 7, 81, 11, 1366, 58, 16, 25, 19, 11, 1058, 12962, 6624, 604, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 3551, 7, 81, 11, 1366, 8, 6624, 718, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1100, 7, 81, 11, 604, 8, 6624, 685, 18, 860, 26, 604, 838, 26, 352, 767, 26, 362, 807, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 2617, 366, 28008, 12, 13564, 49312, 30343, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 374, 796, 12569, 28632, 7, 5317, 11, 807, 11, 362, 26, 30343, 28, 41983, 18564, 12709, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 27179, 1758, 7, 16, 25, 1238, 11, 838, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 3551, 7, 81, 11, 1366, 8, 6624, 838, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1100, 7, 81, 11, 604, 8, 6624, 685, 18, 1511, 26, 604, 1478, 26, 642, 1315, 26, 718, 1467, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 2617, 366, 2213, 19524, 803, 30343, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 374, 796, 12569, 28632, 7, 5317, 11, 807, 11, 362, 26, 30343, 28, 5446, 4944, 34, 6158, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 27179, 1758, 7, 16, 25, 1065, 11, 718, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 3551, 7, 81, 11, 1366, 58, 16, 25, 19, 11, 1058, 12962, 6624, 604, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 3551, 7, 81, 11, 1366, 8, 6624, 604, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 3551, 7, 81, 11, 1366, 8, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1100, 7, 81, 11, 642, 8, 6624, 685, 16, 767, 26, 362, 807, 26, 513, 860, 26, 604, 838, 26, 352, 767, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 2617, 366, 2213, 19524, 803, 739, 11125, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 374, 796, 12569, 28632, 7, 5317, 11, 807, 11, 362, 26, 739, 11125, 28, 5446, 4944, 34, 6158, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 27179, 1758, 7, 16, 25, 21, 11, 513, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 3551, 7, 81, 11, 1366, 8, 6624, 513, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1100, 7, 81, 11, 642, 8, 6624, 685, 16, 604, 26, 362, 642, 26, 513, 718, 60, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 79, 29373, 739, 11125, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 374, 796, 12569, 28632, 7, 5317, 11, 807, 11, 362, 26, 739, 11125, 28, 47, 2885, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 27179, 1758, 7, 16, 25, 21, 11, 513, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 3551, 7, 81, 11, 1366, 8, 6624, 513, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1100, 7, 81, 11, 642, 8, 6624, 685, 16, 604, 26, 362, 642, 26, 513, 718, 26, 657, 657, 26, 657, 657, 60, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 4188, 4250, 12013, 6797, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 374, 796, 12569, 28632, 7, 5317, 11, 604, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 27179, 1758, 7, 16, 25, 1065, 11, 718, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 581, 16, 796, 2488, 292, 13361, 3551, 7, 81, 11, 1366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 581, 17, 796, 2488, 292, 13361, 3551, 7, 81, 11, 1366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 581, 18, 796, 2488, 292, 13361, 3551, 7, 81, 11, 1366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7800, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1100, 7, 81, 11, 642, 8, 6624, 685, 16, 767, 26, 362, 807, 26, 513, 860, 26, 604, 838, 26, 642, 1367, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1100, 7, 81, 11, 1511, 8, 6624, 685, 21, 1105, 26, 352, 767, 26, 362, 807, 26, 513, 860, 26, 604, 838, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 642, 1367, 26, 718, 1105, 26, 352, 767, 26, 362, 807, 26, 513, 860, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 604, 838, 26, 642, 1367, 26, 718, 1105, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4043, 7, 411, 16, 8, 6624, 718, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4043, 7, 411, 17, 8, 6624, 718, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4043, 7, 411, 18, 8, 6624, 718, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 2617, 366, 36560, 278, 12013, 9743, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 374, 796, 12569, 28632, 7, 5317, 11, 807, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 27179, 1758, 7, 16, 25, 1065, 11, 718, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 581, 16, 796, 2488, 292, 13361, 1100, 7, 81, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 581, 17, 796, 2488, 292, 13361, 1100, 7, 81, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 581, 18, 796, 2488, 292, 13361, 1100, 7, 81, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7800, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 3551, 7, 81, 11, 1366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4043, 7, 411, 16, 8, 6624, 685, 16, 767, 26, 362, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4043, 7, 411, 17, 8, 6624, 685, 18, 860, 26, 604, 838, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 4043, 7, 411, 18, 8, 6624, 685, 20, 1367, 26, 718, 1105, 60, 198, 220, 220, 220, 886, 198, 437, 198 ]
1.896598
1,499
<reponame>VEZY/MultiScaleTreeGraph.jl<gh_stars>1-10 """ MetaGraph(g::Node) Convert an MTG into a [MetaGraph](https://juliagraphs.org/MetaGraphsNext.jl/dev/). # Examples ```julia # Importing an mtg from the package: file = joinpath(dirname(dirname(pathof(MultiScaleTreeGraph))),"test","files","simple_plant.mtg") mtg = read_mtg(file) MetaGraph(mtg) ``` """ function MetaGraph(g::Node) meta_mtg = MetaGraph( DiGraph(), Label = Int, VertexMeta = typeof(g.attributes), EdgeMeta = String, gprops = "MTG" ) traverse!(g, to_MetaGraph, meta_mtg) return meta_mtg end function to_MetaGraph(node, meta_mtg) meta_mtg[node.id] = node.attributes if !isroot(node) code_node = code_for(meta_mtg, node.id) code_parent = code_for(meta_mtg, parent(node).id) add_edge!(meta_mtg, code_parent, code_node, node.MTG.link) end end
[ 27, 7856, 261, 480, 29, 6089, 57, 56, 14, 29800, 29990, 27660, 37065, 13, 20362, 27, 456, 62, 30783, 29, 16, 12, 940, 198, 37811, 198, 220, 220, 220, 30277, 37065, 7, 70, 3712, 19667, 8, 198, 198, 3103, 1851, 281, 19308, 38, 656, 257, 685, 48526, 37065, 16151, 5450, 1378, 73, 32176, 6111, 82, 13, 2398, 14, 48526, 37065, 82, 10019, 13, 20362, 14, 7959, 14, 737, 198, 198, 2, 21066, 198, 198, 15506, 63, 73, 43640, 198, 2, 17267, 278, 281, 285, 25297, 422, 262, 5301, 25, 198, 7753, 796, 4654, 6978, 7, 15908, 3672, 7, 15908, 3672, 7, 6978, 1659, 7, 29800, 29990, 27660, 37065, 22305, 553, 9288, 2430, 16624, 2430, 36439, 62, 15060, 13, 16762, 70, 4943, 198, 16762, 70, 796, 1100, 62, 16762, 70, 7, 7753, 8, 198, 198, 48526, 37065, 7, 16762, 70, 8, 198, 15506, 63, 198, 37811, 198, 8818, 30277, 37065, 7, 70, 3712, 19667, 8, 198, 220, 220, 220, 13634, 62, 16762, 70, 796, 198, 220, 220, 220, 220, 220, 220, 220, 30277, 37065, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6031, 37065, 22784, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36052, 796, 2558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4643, 16886, 48526, 796, 2099, 1659, 7, 70, 13, 1078, 7657, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13113, 48526, 796, 10903, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 1676, 862, 796, 366, 13752, 38, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 38138, 0, 7, 70, 11, 284, 62, 48526, 37065, 11, 13634, 62, 16762, 70, 8, 198, 220, 220, 220, 1441, 13634, 62, 16762, 70, 198, 437, 628, 198, 8818, 284, 62, 48526, 37065, 7, 17440, 11, 13634, 62, 16762, 70, 8, 198, 220, 220, 220, 13634, 62, 16762, 70, 58, 17440, 13, 312, 60, 796, 10139, 13, 1078, 7657, 628, 220, 220, 220, 611, 5145, 271, 15763, 7, 17440, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2438, 62, 17440, 796, 2438, 62, 1640, 7, 28961, 62, 16762, 70, 11, 10139, 13, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2438, 62, 8000, 796, 2438, 62, 1640, 7, 28961, 62, 16762, 70, 11, 2560, 7, 17440, 737, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 751, 62, 14907, 0, 7, 28961, 62, 16762, 70, 11, 2438, 62, 8000, 11, 2438, 62, 17440, 11, 10139, 13, 13752, 38, 13, 8726, 8, 198, 220, 220, 220, 886, 198, 437, 198 ]
2.131222
442
## Bubble pressure solver function x0_bubble_pressure(model::EoSModel,T,x) #TODO #on sufficiently large temps, #the joule-thompson inversion occurs #making the virial coeff positive #on those cases, use an strategy that supposes pure gas on that side #Pbi = inf #xi = 0 #check each T with T_scale, if treshold is over, replace Pi with inf pure = split_model(model) crit = crit_pure.(pure) T_c = [tup[1] for tup in crit] V_c = [tup[3] for tup in crit] _0 = zero(T+first(x)) nan = _0/_0 sat_nan = (nan,nan,nan) replaceP = ifelse.(T_c .< T,true,false) eachx = eachcol(Diagonal(ones(eltype(x),length(x)))) # Bi = second_virial_coefficient.(model,T,eachx) #using P_B(2B) as a sat aproximation #z = 1 + B/v #P_B = RT/v(1+B/v) #P_B(2B) = -RT/2B(1-B/2B) #P_B(2B) = -0.25*RT/B sat = [if !replaceP[i] sat_pure(pure[i],T) else sat_nan end for i in 1:length(pure)] P_sat = [tup[1] for tup in sat] V_l_sat = [tup[2] for tup in sat] V_v_sat = [tup[3] for tup in sat] # P_Bi = @. -0.25*RΜ„*T/Bi #=xP0 = yP #dot(x,P0) = P P = dot(x,P0) =# P = zero(T) V0_l = zero(T) V0_v = zero(T) Pi = zero(x) for i in 1:length(x) if !replaceP[i] Pi[i] = P_sat[i][1] P+=x[i]*Pi[i] V0_l += x[i]*V_l_sat[i] else Pi[i] = pressure(pure[i],V_c[i],T) P+=x[i]*Pi[i] V0_l += x[i]*V_c[i] end end #@show P_Bi #P = dot(x,P_Bi) y = @. x*Pi/P ysum = 1/βˆ‘(y) y = y.*ysum for i in 1:length(x) if !replaceP[i] V0_v += y[i]*V_v_sat[i] else V0_v += y[i]*V_c[i]*1.2 end end prepend!(y,log10.([V0_l,V0_v])) return y end function bubble_pressure(model::EoSModel, T, x; v0 =nothing) TYPE = promote_type(eltype(T),eltype(x)) # lb_v = lb_volume(model,x) ts = T_scales(model,x) pmix = p_scale(model,x) if v0 === nothing v0 = x0_bubble_pressure(model,T,x) end len = length(v0[1:end-1]) #xcache = zeros(eltype(x0),len) Fcache = zeros(eltype(v0[1:end-1]),len) f! = (F,z) -> Obj_bubble_pressure(model, F, T, exp10(z[1]), exp10(z[2]), x,z[3:end],ts,pmix) r =Solvers.nlsolve(f!,v0[1:end-1],LineSearch(Newton())) sol = Solvers.x_sol(r) v_l = exp10(sol[1]) v_v = exp10(sol[2]) y = FractionVector(sol[3:end]) P_sat = pressure(model,v_l,T,x) return (P_sat, v_l, v_v, y) end function Obj_bubble_pressure(model::EoSModel, F, T, v_l, v_v, x, y,ts,ps) y = FractionVector(y) #julia magic, check misc.jl ΞΌ_l = VT_chemical_potential(model,v_l,T,x) ΞΌ_v = VT_chemical_potential(model,v_v,T,y) p_l = pressure(model,v_l,T,x) p_v = pressure(model,v_v,T,y) for i in 1:length(x) F[i] = (ΞΌ_l[i]-ΞΌ_v[i])/(RΜ„*ts[i]) end F[end] = (p_l-p_v)/ps return F end #j! = (J,z) -> Jac_bubble_pressure(model, J, T, exp10(z[1]), exp10(z[2]), x[i,:], z[3:end]) #= _y0 = collect(FractionVector(v0[3:end])) @show _y0 @show _pl0 = pressure(model,exp10(v0[1]),T,x) @show _pv0 = pressure(model,exp10(v0[2]),T,_y0) _P = 0.5*(_pl0+_pv0) for _ in 1:3 _y0,_P = rr_bubble_pressure_refine(model,x,_y0,_P,T) end =# # function bubble_pressure_rr(model, T, x; P = 40000) # sol0 = x0_bubble_pressure(model,T,x) # vl0 = exp10(sol0[1]) # vv0 = exp10(sol0[2]) # @show y0 = collect(FractionVector(sol0[3:end])) # @show vl0 = volume(model,P,T,x,phase=:l) # @show vv0 = volume(model,P,T,y0,phase=:v) # @show ΞΌ_l = vt_chemical_potential(model,vl0,T,x) # @show ΞΌ_v = vt_chemical_potential(model,vv0,T,y0) # y1 = ΞΌ_l ./ ΞΌ_v .* x # @show y1 = y1 ./ sum(y1) # @show pl0 = pressure(model,vl0,T,x) # @show pv0 = pressure(model,vv0,T,y1) # @show P = (pl0 - pv0)/(log(pl0) - log(pv0)) # @show vl = volume(model,P,T,x,phase=:l) # @show vv = volume(model,P,T,y1,phase=:v) # #= # ΞΌ_l = vt_chemical_potential(model,vl,T,x) # ΞΌ_v = vt_chemical_potential(model,vv,T,y) # K = log.(ΞΌ_v) ./ log.(ΞΌ_l) # y = K .* x # y = y./sum(y) # pl = pressure(model,vl,T,x) # pv = pressure(model,vv,T,y) # P = (pl+pv)/2 # @show vl,vv,y # return y,P # =# # end
[ 2235, 33691, 3833, 1540, 332, 198, 8818, 2124, 15, 62, 46176, 903, 62, 36151, 7, 19849, 3712, 36, 34049, 17633, 11, 51, 11, 87, 8, 198, 220, 220, 220, 1303, 51, 3727, 46, 198, 220, 220, 220, 1303, 261, 17338, 1588, 2169, 862, 11, 220, 198, 220, 220, 220, 1303, 1169, 474, 280, 293, 12, 400, 296, 8430, 287, 9641, 8833, 198, 220, 220, 220, 1303, 8601, 262, 5709, 498, 763, 14822, 3967, 198, 220, 220, 220, 1303, 261, 883, 2663, 11, 779, 281, 4811, 326, 802, 4629, 5899, 3623, 319, 326, 1735, 198, 220, 220, 220, 1303, 47, 8482, 796, 1167, 198, 220, 220, 220, 1303, 29992, 796, 657, 628, 220, 220, 220, 1303, 9122, 1123, 309, 351, 309, 62, 9888, 11, 611, 256, 10126, 318, 625, 11, 6330, 13993, 351, 1167, 198, 220, 220, 220, 5899, 796, 6626, 62, 19849, 7, 19849, 8, 198, 220, 220, 220, 1955, 796, 1955, 62, 37424, 12195, 37424, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 309, 62, 66, 796, 685, 83, 929, 58, 16, 60, 329, 256, 929, 287, 1955, 60, 198, 220, 220, 220, 569, 62, 66, 796, 685, 83, 929, 58, 18, 60, 329, 256, 929, 287, 1955, 60, 198, 220, 220, 220, 4808, 15, 796, 6632, 7, 51, 10, 11085, 7, 87, 4008, 198, 220, 220, 220, 15709, 796, 4808, 15, 47835, 15, 220, 198, 220, 220, 220, 3332, 62, 12647, 796, 357, 12647, 11, 12647, 11, 12647, 8, 198, 220, 220, 220, 6330, 47, 796, 611, 17772, 12195, 51, 62, 66, 764, 27, 309, 11, 7942, 11, 9562, 8, 628, 220, 220, 220, 1123, 87, 796, 1123, 4033, 7, 18683, 27923, 7, 1952, 7, 417, 4906, 7, 87, 828, 13664, 7, 87, 35514, 198, 2, 220, 220, 220, 220, 8436, 796, 1218, 62, 37040, 498, 62, 1073, 16814, 12195, 19849, 11, 51, 11, 27379, 87, 8, 198, 220, 220, 220, 1303, 3500, 350, 62, 33, 7, 17, 33, 8, 355, 257, 3332, 257, 1676, 87, 18991, 198, 220, 220, 220, 1303, 89, 796, 352, 1343, 347, 14, 85, 198, 220, 220, 220, 1303, 47, 62, 33, 796, 11923, 14, 85, 7, 16, 10, 33, 14, 85, 8, 198, 220, 220, 220, 1303, 47, 62, 33, 7, 17, 33, 8, 796, 532, 14181, 14, 17, 33, 7, 16, 12, 33, 14, 17, 33, 8, 198, 220, 220, 220, 1303, 47, 62, 33, 7, 17, 33, 8, 796, 532, 15, 13, 1495, 9, 14181, 14, 33, 198, 220, 220, 220, 3332, 796, 685, 361, 5145, 33491, 47, 58, 72, 60, 3332, 62, 37424, 7, 37424, 58, 72, 4357, 51, 8, 2073, 3332, 62, 12647, 886, 329, 1312, 287, 352, 25, 13664, 7, 37424, 15437, 198, 220, 220, 220, 220, 198, 220, 220, 220, 350, 62, 49720, 796, 685, 83, 929, 58, 16, 60, 329, 256, 929, 287, 3332, 60, 198, 220, 220, 220, 569, 62, 75, 62, 49720, 796, 685, 83, 929, 58, 17, 60, 329, 256, 929, 287, 3332, 60, 198, 220, 220, 220, 569, 62, 85, 62, 49720, 796, 685, 83, 929, 58, 18, 60, 329, 256, 929, 287, 3332, 60, 198, 2, 220, 220, 220, 220, 350, 62, 23286, 796, 2488, 13, 532, 15, 13, 1495, 9, 49, 136, 226, 9, 51, 14, 23286, 198, 220, 220, 220, 1303, 28, 87, 47, 15, 796, 331, 47, 198, 220, 220, 220, 1303, 26518, 7, 87, 11, 47, 15, 8, 796, 350, 198, 220, 220, 220, 350, 796, 16605, 7, 87, 11, 47, 15, 8, 198, 220, 220, 220, 796, 2, 198, 220, 220, 220, 350, 796, 6632, 7, 51, 8, 198, 220, 220, 220, 569, 15, 62, 75, 796, 6632, 7, 51, 8, 198, 220, 220, 220, 569, 15, 62, 85, 796, 6632, 7, 51, 8, 198, 220, 220, 220, 13993, 220, 220, 796, 6632, 7, 87, 8, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 13664, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 33491, 47, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13993, 58, 72, 60, 796, 350, 62, 49720, 58, 72, 7131, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 350, 47932, 87, 58, 72, 60, 9, 38729, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 569, 15, 62, 75, 15853, 2124, 58, 72, 60, 9, 53, 62, 75, 62, 49720, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13993, 58, 72, 60, 796, 3833, 7, 37424, 58, 72, 4357, 53, 62, 66, 58, 72, 4357, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 350, 47932, 87, 58, 72, 60, 9, 38729, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 569, 15, 62, 75, 15853, 2124, 58, 72, 60, 9, 53, 62, 66, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1303, 31, 12860, 350, 62, 23286, 198, 220, 220, 220, 1303, 47, 796, 16605, 7, 87, 11, 47, 62, 23286, 8, 198, 220, 220, 220, 331, 796, 2488, 13, 2124, 9, 38729, 14, 47, 198, 220, 220, 220, 331, 16345, 796, 352, 14, 24861, 239, 7, 88, 8, 198, 220, 220, 220, 331, 220, 220, 220, 796, 331, 15885, 893, 388, 198, 220, 220, 220, 220, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 13664, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 33491, 47, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 569, 15, 62, 85, 15853, 331, 58, 72, 60, 9, 53, 62, 85, 62, 49720, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 569, 15, 62, 85, 15853, 331, 58, 72, 60, 9, 53, 62, 66, 58, 72, 60, 9, 16, 13, 17, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 220, 198, 220, 220, 220, 3143, 437, 0, 7, 88, 11, 6404, 940, 12195, 58, 53, 15, 62, 75, 11, 53, 15, 62, 85, 60, 4008, 198, 220, 220, 220, 1441, 331, 198, 437, 198, 198, 8818, 14310, 62, 36151, 7, 19849, 3712, 36, 34049, 17633, 11, 309, 11, 2124, 26, 410, 15, 796, 22366, 8, 198, 220, 220, 220, 41876, 796, 7719, 62, 4906, 7, 417, 4906, 7, 51, 828, 417, 4906, 7, 87, 4008, 198, 2, 220, 220, 220, 220, 18360, 62, 85, 796, 18360, 62, 29048, 7, 19849, 11, 87, 8, 198, 220, 220, 220, 40379, 796, 309, 62, 1416, 2040, 7, 19849, 11, 87, 8, 198, 220, 220, 220, 9114, 844, 796, 279, 62, 9888, 7, 19849, 11, 87, 8, 198, 220, 220, 220, 611, 410, 15, 24844, 2147, 198, 220, 220, 220, 220, 220, 220, 220, 410, 15, 796, 2124, 15, 62, 46176, 903, 62, 36151, 7, 19849, 11, 51, 11, 87, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 18896, 796, 4129, 7, 85, 15, 58, 16, 25, 437, 12, 16, 12962, 198, 220, 220, 220, 1303, 87, 23870, 796, 1976, 27498, 7, 417, 4906, 7, 87, 15, 828, 11925, 8, 198, 220, 220, 220, 376, 23870, 796, 1976, 27498, 7, 417, 4906, 7, 85, 15, 58, 16, 25, 437, 12, 16, 46570, 11925, 8, 198, 220, 220, 220, 277, 0, 796, 357, 37, 11, 89, 8, 4613, 38764, 62, 46176, 903, 62, 36151, 7, 19849, 11, 376, 11, 309, 11, 1033, 940, 7, 89, 58, 16, 46570, 1033, 940, 7, 89, 58, 17, 46570, 2124, 11, 89, 58, 18, 25, 437, 4357, 912, 11, 4426, 844, 8, 198, 220, 220, 220, 374, 220, 796, 36949, 690, 13, 77, 7278, 6442, 7, 69, 28265, 85, 15, 58, 16, 25, 437, 12, 16, 4357, 13949, 18243, 7, 3791, 1122, 3419, 4008, 198, 220, 220, 220, 1540, 796, 4294, 690, 13, 87, 62, 34453, 7, 81, 8, 198, 220, 220, 220, 410, 62, 75, 796, 1033, 940, 7, 34453, 58, 16, 12962, 198, 220, 220, 220, 410, 62, 85, 796, 1033, 940, 7, 34453, 58, 17, 12962, 198, 220, 220, 220, 331, 796, 376, 7861, 38469, 7, 34453, 58, 18, 25, 437, 12962, 198, 220, 220, 220, 350, 62, 49720, 796, 3833, 7, 19849, 11, 85, 62, 75, 11, 51, 11, 87, 8, 198, 220, 220, 220, 1441, 357, 47, 62, 49720, 11, 410, 62, 75, 11, 410, 62, 85, 11, 331, 8, 198, 437, 198, 198, 8818, 38764, 62, 46176, 903, 62, 36151, 7, 19849, 3712, 36, 34049, 17633, 11, 376, 11, 309, 11, 410, 62, 75, 11, 410, 62, 85, 11, 2124, 11, 331, 11, 912, 11, 862, 8, 198, 220, 220, 220, 331, 220, 220, 796, 376, 7861, 38469, 7, 88, 8, 1303, 73, 43640, 5536, 11, 2198, 12747, 13, 20362, 198, 220, 220, 220, 18919, 62, 75, 796, 32751, 62, 31379, 62, 13059, 1843, 7, 19849, 11, 85, 62, 75, 11, 51, 11, 87, 8, 198, 220, 220, 220, 18919, 62, 85, 796, 32751, 62, 31379, 62, 13059, 1843, 7, 19849, 11, 85, 62, 85, 11, 51, 11, 88, 8, 198, 220, 220, 220, 279, 62, 75, 796, 3833, 7, 19849, 11, 85, 62, 75, 11, 51, 11, 87, 8, 198, 220, 220, 220, 279, 62, 85, 796, 3833, 7, 19849, 11, 85, 62, 85, 11, 51, 11, 88, 8, 198, 220, 220, 220, 329, 1312, 287, 352, 25, 13664, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 376, 58, 72, 60, 796, 357, 34703, 62, 75, 58, 72, 45297, 34703, 62, 85, 58, 72, 12962, 29006, 49, 136, 226, 9, 912, 58, 72, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 376, 58, 437, 60, 796, 357, 79, 62, 75, 12, 79, 62, 85, 20679, 862, 198, 220, 220, 220, 1441, 376, 198, 437, 628, 220, 220, 220, 1303, 73, 0, 796, 357, 41, 11, 89, 8, 4613, 8445, 62, 46176, 903, 62, 36151, 7, 19849, 11, 449, 11, 309, 11, 1033, 940, 7, 89, 58, 16, 46570, 1033, 940, 7, 89, 58, 17, 46570, 2124, 58, 72, 11, 25, 4357, 1976, 58, 18, 25, 437, 12962, 198, 220, 220, 220, 1303, 28, 198, 220, 220, 220, 4808, 88, 15, 796, 2824, 7, 37, 7861, 38469, 7, 85, 15, 58, 18, 25, 437, 60, 4008, 198, 220, 220, 220, 2488, 12860, 4808, 88, 15, 198, 220, 220, 220, 2488, 12860, 4808, 489, 15, 796, 3833, 7, 19849, 11, 11201, 940, 7, 85, 15, 58, 16, 46570, 51, 11, 87, 8, 198, 220, 220, 220, 2488, 12860, 4808, 79, 85, 15, 796, 3833, 7, 19849, 11, 11201, 940, 7, 85, 15, 58, 17, 46570, 51, 11, 62, 88, 15, 8, 198, 220, 220, 220, 4808, 47, 796, 657, 13, 20, 9, 28264, 489, 15, 10, 62, 79, 85, 15, 8, 198, 220, 220, 220, 329, 4808, 287, 352, 25, 18, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 88, 15, 11, 62, 47, 796, 374, 81, 62, 46176, 903, 62, 36151, 62, 5420, 500, 7, 19849, 11, 87, 11, 62, 88, 15, 11, 62, 47, 11, 51, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 796, 2, 198, 2, 2163, 14310, 62, 36151, 62, 21062, 7, 19849, 11, 309, 11, 2124, 26, 350, 796, 604, 2388, 8, 198, 2, 220, 220, 220, 220, 1540, 15, 796, 2124, 15, 62, 46176, 903, 62, 36151, 7, 19849, 11, 51, 11, 87, 8, 198, 2, 220, 220, 220, 220, 410, 75, 15, 796, 1033, 940, 7, 34453, 15, 58, 16, 12962, 198, 2, 220, 220, 220, 220, 410, 85, 15, 796, 1033, 940, 7, 34453, 15, 58, 17, 12962, 628, 628, 198, 2, 220, 220, 220, 220, 2488, 12860, 331, 15, 796, 2824, 7, 37, 7861, 38469, 7, 34453, 15, 58, 18, 25, 437, 60, 4008, 198, 2, 220, 220, 220, 220, 2488, 12860, 410, 75, 15, 796, 6115, 7, 19849, 11, 47, 11, 51, 11, 87, 11, 40715, 28, 25, 75, 8, 198, 2, 220, 220, 220, 220, 2488, 12860, 410, 85, 15, 796, 6115, 7, 19849, 11, 47, 11, 51, 11, 88, 15, 11, 40715, 28, 25, 85, 8, 198, 2, 220, 220, 220, 220, 2488, 12860, 18919, 62, 75, 796, 410, 83, 62, 31379, 62, 13059, 1843, 7, 19849, 11, 19279, 15, 11, 51, 11, 87, 8, 198, 2, 220, 220, 220, 220, 2488, 12860, 18919, 62, 85, 796, 410, 83, 62, 31379, 62, 13059, 1843, 7, 19849, 11, 25093, 15, 11, 51, 11, 88, 15, 8, 198, 2, 220, 220, 220, 220, 331, 16, 796, 220, 18919, 62, 75, 24457, 18919, 62, 85, 764, 9, 2124, 198, 2, 220, 220, 220, 220, 2488, 12860, 331, 16, 796, 331, 16, 24457, 2160, 7, 88, 16, 8, 198, 2, 220, 220, 220, 220, 2488, 12860, 458, 15, 796, 3833, 7, 19849, 11, 19279, 15, 11, 51, 11, 87, 8, 198, 2, 220, 220, 220, 220, 2488, 12860, 279, 85, 15, 796, 3833, 7, 19849, 11, 25093, 15, 11, 51, 11, 88, 16, 8, 198, 198, 2, 220, 220, 220, 220, 2488, 12860, 350, 796, 357, 489, 15, 532, 279, 85, 15, 20679, 7, 6404, 7, 489, 15, 8, 532, 2604, 7, 79, 85, 15, 4008, 198, 198, 2, 220, 220, 220, 220, 2488, 12860, 410, 75, 796, 6115, 7, 19849, 11, 47, 11, 51, 11, 87, 11, 40715, 28, 25, 75, 8, 198, 2, 220, 220, 220, 220, 2488, 12860, 410, 85, 796, 6115, 7, 19849, 11, 47, 11, 51, 11, 88, 16, 11, 40715, 28, 25, 85, 8, 198, 2, 220, 220, 220, 220, 1303, 28, 198, 2, 220, 220, 220, 220, 18919, 62, 75, 796, 410, 83, 62, 31379, 62, 13059, 1843, 7, 19849, 11, 19279, 11, 51, 11, 87, 8, 198, 2, 220, 220, 220, 220, 18919, 62, 85, 796, 410, 83, 62, 31379, 62, 13059, 1843, 7, 19849, 11, 25093, 11, 51, 11, 88, 8, 198, 2, 220, 220, 220, 220, 509, 796, 2604, 12195, 34703, 62, 85, 8, 24457, 2604, 12195, 34703, 62, 75, 8, 198, 2, 220, 220, 220, 220, 331, 796, 509, 764, 9, 2124, 198, 2, 220, 220, 220, 220, 331, 796, 331, 19571, 16345, 7, 88, 8, 198, 2, 220, 220, 220, 220, 458, 796, 3833, 7, 19849, 11, 19279, 11, 51, 11, 87, 8, 198, 2, 220, 220, 220, 220, 279, 85, 796, 3833, 7, 19849, 11, 25093, 11, 51, 11, 88, 8, 198, 2, 220, 220, 220, 220, 350, 796, 357, 489, 10, 79, 85, 20679, 17, 198, 2, 220, 220, 220, 220, 2488, 12860, 410, 75, 11, 25093, 11, 88, 198, 2, 220, 220, 220, 220, 1441, 331, 11, 47, 198, 2, 220, 220, 220, 220, 796, 2, 198, 2, 886, 198 ]
1.755135
2,483
<reponame>davibarreira/NotebookToLaTeX.jl ### A Pluto.jl notebook ### # v0.16.3 using Markdown using InteractiveUtils # ╔═║ e56ad662-0c01-48ca-addb-615e9350c6d9 1 # ╔═║ 43e5dfe4-90b2-4f7b-b467-3107b78520f4 x = 1 + 1 # ╔═║ 00000000-0000-0000-0000-000000000001 PLUTO_PROJECT_TOML_CONTENTS = """ [deps] """ # ╔═║ 00000000-0000-0000-0000-000000000002 PLUTO_MANIFEST_TOML_CONTENTS = """ # This file is machine-generated - editing it directly is not advised julia_version = "1.7.0-rc1" manifest_format = "2.0" [deps] """ # ╔═║ Cell order: # ╠═e56ad662-0c01-48ca-addb-615e9350c6d9 # ╠═43e5dfe4-90b2-4f7b-b467-3107b78520f4 # β•Ÿβ”€00000000-0000-0000-0000-000000000001 # β•Ÿβ”€00000000-0000-0000-0000-000000000002
[ 27, 7856, 261, 480, 29, 67, 615, 571, 9624, 8704, 14, 6425, 2070, 2514, 14772, 49568, 13, 20362, 198, 21017, 317, 32217, 13, 20362, 20922, 44386, 198, 2, 410, 15, 13, 1433, 13, 18, 198, 198, 3500, 2940, 2902, 198, 3500, 21365, 18274, 4487, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 304, 3980, 324, 39380, 12, 15, 66, 486, 12, 2780, 6888, 12, 2860, 65, 12, 47007, 68, 6052, 1120, 66, 21, 67, 24, 198, 16, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 5946, 68, 20, 67, 5036, 19, 12, 3829, 65, 17, 12, 19, 69, 22, 65, 12, 65, 24669, 12, 18, 15982, 65, 3695, 31211, 69, 19, 198, 87, 796, 352, 1343, 352, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 27551, 12, 2388, 12, 2388, 12, 2388, 12, 8269, 18005, 198, 6489, 3843, 46, 62, 31190, 23680, 62, 51, 2662, 43, 62, 37815, 15365, 796, 37227, 198, 58, 10378, 82, 60, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 27551, 12, 2388, 12, 2388, 12, 2388, 12, 8269, 34215, 198, 6489, 3843, 46, 62, 10725, 5064, 6465, 62, 51, 2662, 43, 62, 37815, 15365, 796, 37227, 198, 2, 770, 2393, 318, 4572, 12, 27568, 532, 12857, 340, 3264, 318, 407, 13030, 198, 198, 73, 43640, 62, 9641, 796, 366, 16, 13, 22, 13, 15, 12, 6015, 16, 1, 198, 805, 8409, 62, 18982, 796, 366, 17, 13, 15, 1, 198, 198, 58, 10378, 82, 60, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 12440, 1502, 25, 198, 2, 2343, 243, 254, 28670, 68, 3980, 324, 39380, 12, 15, 66, 486, 12, 2780, 6888, 12, 2860, 65, 12, 47007, 68, 6052, 1120, 66, 21, 67, 24, 198, 2, 2343, 243, 254, 28670, 3559, 68, 20, 67, 5036, 19, 12, 3829, 65, 17, 12, 19, 69, 22, 65, 12, 65, 24669, 12, 18, 15982, 65, 3695, 31211, 69, 19, 198, 2, 2343, 243, 253, 7280, 8269, 12, 2388, 12, 2388, 12, 2388, 12, 8269, 18005, 198, 2, 2343, 243, 253, 7280, 8269, 12, 2388, 12, 2388, 12, 2388, 12, 8269, 34215, 198 ]
1.991525
354
<gh_stars>100-1000 # This file is a part of BAT.jl, licensed under the MIT License (MIT). struct GradFunc{ OF<:Function, UF<:Function, VS<:AbstractValueShape, GS<:AbstractValueShape, Alg<:DifferentiationAlgorithm } <: GradientFunction _orig_f::OF _unshaped_f::UF _input_shape::VS _grad_shape::GS _diffalg::Alg end function GradFunc(f::Function, diffalg::DifferentiationAlgorithm) input_shape = varshape(f) unshaped_f = unshaped(f) grad_shape = gradient_shape(input_shape) GradFunc(f, unshaped_f, input_shape, grad_shape, diffalg) end function Base.show(io::IO, gf::GradFunc) print(io, Base.typename(typeof(gf)).name, "(") show(io, gf._orig_f) print(io, ", ") show(io, gf._diffalg) print(io, ")") end function Base.show(io::IO, M::MIME"text/plain", gf::GradFunc) print(io, Base.typename(typeof(gf)).name, "(") show(io, M, gf._orig_f) print(io, ", ") show(io, M, gf._diffalg) print(io, ")") end _fixup_var(shape::AbstractValueShape, v::Any) = v _fixup_var(shape::NamedTupleShape, v::NamedTuple) = shape(unshaped(v, shape)) function (gf::GradFunc)(v::Any) input_shape = gf._input_shape v_shaped = _fixup_var(input_shape, v) v_unshaped = unshaped(v_shaped) grad_f_unshaped = similar(v_unshaped) value = unshaped_gradient!(grad_f_unshaped, gf._unshaped_f, v_unshaped, gf._diffalg) (value, gf._grad_shape(grad_f_unshaped)) end function (gf::GradFunc)(::typeof(!), grad_f::Any, v::Any) input_shape = gf._input_shape v_shaped = _fixup_var(input_shape, v) v_unshaped = unshaped(v_shaped) if isnothing(grad_f) R(gf._unshaped_f(v_unshaped)) else grad_f_unshaped = unshaped(grad_f, gf._grad_shape) unshaped_gradient!(grad_f_unshaped, gf._unshaped_f, v_unshaped, gf._diffalg) end end function valgradof(f::Function, algorithm::DifferentiationAlgorithm = vjp_algorithm(f)) GradFunc(f, algorithm) end
[ 27, 456, 62, 30783, 29, 3064, 12, 12825, 198, 2, 770, 2393, 318, 257, 636, 286, 37421, 13, 20362, 11, 11971, 739, 262, 17168, 13789, 357, 36393, 737, 628, 198, 7249, 17701, 37, 19524, 90, 198, 220, 220, 220, 3963, 27, 25, 22203, 11, 198, 220, 220, 220, 471, 37, 27, 25, 22203, 11, 198, 220, 220, 220, 22269, 27, 25, 23839, 11395, 33383, 11, 198, 220, 220, 220, 26681, 27, 25, 23839, 11395, 33383, 11, 198, 220, 220, 220, 978, 70, 27, 25, 40341, 3920, 2348, 42289, 198, 92, 1279, 25, 17701, 1153, 22203, 198, 220, 220, 220, 4808, 11612, 62, 69, 3712, 19238, 198, 220, 220, 220, 4808, 403, 16760, 62, 69, 3712, 36820, 198, 220, 220, 220, 4808, 15414, 62, 43358, 3712, 20304, 198, 220, 220, 220, 4808, 9744, 62, 43358, 3712, 14313, 198, 220, 220, 220, 4808, 26069, 14016, 3712, 2348, 70, 198, 437, 628, 198, 8818, 17701, 37, 19524, 7, 69, 3712, 22203, 11, 814, 14016, 3712, 40341, 3920, 2348, 42289, 8, 198, 220, 220, 220, 5128, 62, 43358, 796, 410, 5406, 1758, 7, 69, 8, 198, 220, 220, 220, 555, 16760, 62, 69, 796, 555, 16760, 7, 69, 8, 198, 220, 220, 220, 3915, 62, 43358, 796, 31312, 62, 43358, 7, 15414, 62, 43358, 8, 198, 220, 220, 220, 17701, 37, 19524, 7, 69, 11, 555, 16760, 62, 69, 11, 5128, 62, 43358, 11, 3915, 62, 43358, 11, 814, 14016, 8, 198, 437, 628, 198, 8818, 7308, 13, 12860, 7, 952, 3712, 9399, 11, 308, 69, 3712, 42731, 37, 19524, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 7308, 13, 774, 3617, 480, 7, 4906, 1659, 7, 70, 69, 29720, 3672, 11, 30629, 4943, 198, 220, 220, 220, 905, 7, 952, 11, 308, 69, 13557, 11612, 62, 69, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 33172, 366, 8, 198, 220, 220, 220, 905, 7, 952, 11, 308, 69, 13557, 26069, 14016, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 366, 8, 4943, 198, 437, 198, 198, 8818, 7308, 13, 12860, 7, 952, 3712, 9399, 11, 337, 3712, 44, 12789, 1, 5239, 14, 25638, 1600, 308, 69, 3712, 42731, 37, 19524, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 7308, 13, 774, 3617, 480, 7, 4906, 1659, 7, 70, 69, 29720, 3672, 11, 30629, 4943, 198, 220, 220, 220, 905, 7, 952, 11, 337, 11, 308, 69, 13557, 11612, 62, 69, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 33172, 366, 8, 198, 220, 220, 220, 905, 7, 952, 11, 337, 11, 308, 69, 13557, 26069, 14016, 8, 198, 220, 220, 220, 3601, 7, 952, 11, 366, 8, 4943, 198, 437, 628, 198, 62, 13049, 929, 62, 7785, 7, 43358, 3712, 23839, 11395, 33383, 11, 410, 3712, 7149, 8, 796, 410, 198, 198, 62, 13049, 929, 62, 7785, 7, 43358, 3712, 45, 2434, 51, 29291, 33383, 11, 410, 3712, 45, 2434, 51, 29291, 8, 796, 5485, 7, 403, 16760, 7, 85, 11, 5485, 4008, 628, 198, 8818, 357, 70, 69, 3712, 42731, 37, 19524, 5769, 85, 3712, 7149, 8, 198, 220, 220, 220, 5128, 62, 43358, 796, 308, 69, 13557, 15414, 62, 43358, 198, 220, 220, 220, 410, 62, 16760, 796, 4808, 13049, 929, 62, 7785, 7, 15414, 62, 43358, 11, 410, 8, 198, 220, 220, 220, 410, 62, 403, 16760, 796, 555, 16760, 7, 85, 62, 16760, 8, 628, 220, 220, 220, 3915, 62, 69, 62, 403, 16760, 796, 2092, 7, 85, 62, 403, 16760, 8, 628, 220, 220, 220, 1988, 796, 555, 16760, 62, 49607, 0, 7, 9744, 62, 69, 62, 403, 16760, 11, 308, 69, 13557, 403, 16760, 62, 69, 11, 410, 62, 403, 16760, 11, 308, 69, 13557, 26069, 14016, 8, 628, 220, 220, 220, 357, 8367, 11, 308, 69, 13557, 9744, 62, 43358, 7, 9744, 62, 69, 62, 403, 16760, 4008, 198, 437, 628, 198, 8818, 357, 70, 69, 3712, 42731, 37, 19524, 5769, 3712, 4906, 1659, 7, 26290, 3915, 62, 69, 3712, 7149, 11, 410, 3712, 7149, 8, 198, 220, 220, 220, 5128, 62, 43358, 796, 308, 69, 13557, 15414, 62, 43358, 198, 220, 220, 220, 410, 62, 16760, 796, 4808, 13049, 929, 62, 7785, 7, 15414, 62, 43358, 11, 410, 8, 198, 220, 220, 220, 410, 62, 403, 16760, 796, 555, 16760, 7, 85, 62, 16760, 8, 628, 220, 220, 220, 611, 318, 22366, 7, 9744, 62, 69, 8, 198, 220, 220, 220, 220, 220, 220, 220, 371, 7, 70, 69, 13557, 403, 16760, 62, 69, 7, 85, 62, 403, 16760, 4008, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 3915, 62, 69, 62, 403, 16760, 796, 555, 16760, 7, 9744, 62, 69, 11, 308, 69, 13557, 9744, 62, 43358, 8, 198, 220, 220, 220, 220, 220, 220, 220, 555, 16760, 62, 49607, 0, 7, 9744, 62, 69, 62, 403, 16760, 11, 308, 69, 13557, 403, 16760, 62, 69, 11, 410, 62, 403, 16760, 11, 308, 69, 13557, 26069, 14016, 8, 198, 220, 220, 220, 886, 198, 437, 628, 198, 8818, 1188, 9744, 1659, 7, 69, 3712, 22203, 11, 11862, 3712, 40341, 3920, 2348, 42289, 796, 410, 34523, 62, 282, 42289, 7, 69, 4008, 198, 220, 220, 220, 17701, 37, 19524, 7, 69, 11, 11862, 8, 198, 437, 198 ]
2.268349
872
<filename>src/core/DataStream.jl # Functions import Polynomials: ImmutablePolynomial # Macros import MLStyle: @match # Modules import MPI mutable struct PayloadRange a::Int32 b::Int32 end # PayloadRange(r::NTuple{2,<:Integer}) = PayloadRange(r[1], r[2]) function Base.copy(r::PayloadRange) return PayloadRange(r.a, r.b) end function Base.:(==)(r::PayloadRange, t::NTuple{2,<:Integer}) return r.a == t[1] && r.b == t[2] end struct PayloadGroup range::PayloadRange ratio::Float64 end PayloadGroup(range::Vector{<:Integer}, ratio::T) where {T} = PayloadGroup(PayloadRange(range[1], range[2]), get_ratio(ratio)) abstract type EvolutionFunction end struct DataStreamConfig name::String evolve::EvolutionFunction payload_groups::Vector{PayloadGroup} end function get_payload_group_id( rank::Integer, nranks::Integer, cfg::DataStreamConfig, ) percentile = (rank + 1) / nranks current = 0.0 for id = 1:length(cfg.payload_groups) grp = cfg.payload_groups[id] current += grp.ratio if percentile <= current return id end end # TODO: throw an error here ? end function get_payload_group_id(cfg::DataStreamConfig) comm = MPI.COMM_WORLD return get_payload_group_id(MPI.Comm_rank(comm), MPI.Comm_size(comm), cfg) end abstract type DataObject end mutable struct DataVector <: DataObject vec::Vector{Float64} end DataVector() = DataVector(Float64[]) mutable struct DataStream initial_range::PayloadRange range::PayloadRange evolve::EvolutionFunction data::DataObject end DataStream(range::PayloadRange, evolve::EvolutionFunction) = DataStream(range, copy(range), evolve, DataVector()) DataStream(cfg::DataStreamConfig) = DataStream(cfg.payload_groups[get_payload_group_id(cfg)].range, cfg.evolve) struct GrowthFactorEvFn <: EvolutionFunction factor::Float64 end GrowthFactorEvFn(params::Vector{<:Real}) = GrowthFactorEvFn(params[1]) function evolve_payload_range!( stream::DataStream, step::Integer, fn::GrowthFactorEvFn, ) growth = fn.factor^step stream.range.a = round(stream.initial_range.a * growth) stream.range.b = round(stream.initial_range.b * growth) end struct PolynomialEvFn <: EvolutionFunction poly::ImmutablePolynomial end PolynomialEvFn(params::Vector{<:Real}) = PolynomialEvFn(ImmutablePolynomial(vcat(0, params))) function evolve_payload_range!( stream::DataStream, step::Integer, fn::PolynomialEvFn, ) growth = fn.poly(step) stream.range.a = stream.initial_range.a + growth stream.range.b = stream.initial_range.b + growth end function evolve_payload_range!(stream::DataStream, step::Integer) evolve_payload_range!(stream, step, stream.evolve) end function check_length(expected::Integer, params::Vector{<:Real}) if length(params) != expected @error "Wrong number of parameters" end return params end function get_evolution_function(evcfg::Config) params = evcfg[:params] @match evcfg[:function] begin "GrowthFactor" => return GrowthFactorEvFn(check_length(1, params)) "Polynomial" => return PolynomialEvFn(params) "Linear" => return PolynomialEvFn(check_length(1, params)) _ => @error "Unsupported stream size evolution function" end end get_evolution_function(nothing) = GrowthFactorEvFn(1.0)
[ 27, 34345, 29, 10677, 14, 7295, 14, 6601, 12124, 13, 20362, 198, 2, 40480, 198, 11748, 12280, 26601, 8231, 25, 9543, 18187, 34220, 26601, 498, 198, 2, 4100, 4951, 198, 11748, 13981, 774, 293, 25, 2488, 15699, 198, 2, 3401, 5028, 198, 11748, 4904, 40, 198, 198, 76, 18187, 2878, 7119, 2220, 17257, 198, 220, 220, 220, 257, 3712, 5317, 2624, 198, 220, 220, 220, 275, 3712, 5317, 2624, 198, 437, 198, 198, 2, 7119, 2220, 17257, 7, 81, 3712, 11251, 29291, 90, 17, 11, 27, 25, 46541, 30072, 796, 7119, 2220, 17257, 7, 81, 58, 16, 4357, 374, 58, 17, 12962, 198, 198, 8818, 7308, 13, 30073, 7, 81, 3712, 19197, 2220, 17257, 8, 198, 220, 220, 220, 1441, 7119, 2220, 17257, 7, 81, 13, 64, 11, 374, 13, 65, 8, 198, 437, 198, 198, 8818, 7308, 11207, 7, 855, 5769, 81, 3712, 19197, 2220, 17257, 11, 256, 3712, 11251, 29291, 90, 17, 11, 27, 25, 46541, 30072, 198, 220, 220, 220, 1441, 374, 13, 64, 6624, 256, 58, 16, 60, 11405, 374, 13, 65, 6624, 256, 58, 17, 60, 198, 437, 198, 198, 7249, 7119, 2220, 13247, 198, 220, 220, 220, 2837, 3712, 19197, 2220, 17257, 198, 220, 220, 220, 8064, 3712, 43879, 2414, 198, 437, 198, 198, 19197, 2220, 13247, 7, 9521, 3712, 38469, 90, 27, 25, 46541, 5512, 8064, 3712, 51, 8, 810, 1391, 51, 92, 796, 198, 220, 220, 220, 7119, 2220, 13247, 7, 19197, 2220, 17257, 7, 9521, 58, 16, 4357, 2837, 58, 17, 46570, 651, 62, 10366, 952, 7, 10366, 952, 4008, 198, 198, 397, 8709, 2099, 15815, 22203, 886, 198, 198, 7249, 6060, 12124, 16934, 198, 220, 220, 220, 1438, 3712, 10100, 198, 220, 220, 220, 18101, 3712, 15200, 2122, 22203, 198, 220, 220, 220, 21437, 62, 24432, 3712, 38469, 90, 19197, 2220, 13247, 92, 198, 437, 198, 198, 8818, 651, 62, 15577, 2220, 62, 8094, 62, 312, 7, 198, 220, 220, 220, 4279, 3712, 46541, 11, 198, 220, 220, 220, 299, 81, 2283, 3712, 46541, 11, 198, 220, 220, 220, 30218, 70, 3712, 6601, 12124, 16934, 11, 198, 8, 198, 220, 220, 220, 37894, 796, 357, 43027, 1343, 352, 8, 1220, 299, 81, 2283, 198, 220, 220, 220, 1459, 796, 657, 13, 15, 198, 220, 220, 220, 329, 4686, 796, 352, 25, 13664, 7, 37581, 13, 15577, 2220, 62, 24432, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1036, 79, 796, 30218, 70, 13, 15577, 2220, 62, 24432, 58, 312, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1459, 15853, 1036, 79, 13, 10366, 952, 198, 220, 220, 220, 220, 220, 220, 220, 611, 37894, 19841, 1459, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 4686, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1303, 16926, 46, 25, 3714, 281, 4049, 994, 5633, 198, 437, 198, 198, 8818, 651, 62, 15577, 2220, 62, 8094, 62, 312, 7, 37581, 3712, 6601, 12124, 16934, 8, 198, 220, 220, 220, 725, 796, 4904, 40, 13, 9858, 44, 62, 45359, 11163, 198, 220, 220, 220, 1441, 651, 62, 15577, 2220, 62, 8094, 62, 312, 7, 7378, 40, 13, 6935, 62, 43027, 7, 9503, 828, 4904, 40, 13, 6935, 62, 7857, 7, 9503, 828, 30218, 70, 8, 198, 437, 198, 198, 397, 8709, 2099, 6060, 10267, 886, 198, 198, 76, 18187, 2878, 6060, 38469, 1279, 25, 6060, 10267, 198, 220, 220, 220, 43030, 3712, 38469, 90, 43879, 2414, 92, 198, 437, 198, 198, 6601, 38469, 3419, 796, 6060, 38469, 7, 43879, 2414, 58, 12962, 198, 198, 76, 18187, 2878, 6060, 12124, 198, 220, 220, 220, 4238, 62, 9521, 3712, 19197, 2220, 17257, 198, 220, 220, 220, 2837, 3712, 19197, 2220, 17257, 198, 220, 220, 220, 18101, 3712, 15200, 2122, 22203, 198, 220, 220, 220, 1366, 3712, 6601, 10267, 198, 437, 198, 198, 6601, 12124, 7, 9521, 3712, 19197, 2220, 17257, 11, 18101, 3712, 15200, 2122, 22203, 8, 796, 198, 220, 220, 220, 6060, 12124, 7, 9521, 11, 4866, 7, 9521, 828, 18101, 11, 6060, 38469, 28955, 198, 198, 6601, 12124, 7, 37581, 3712, 6601, 12124, 16934, 8, 796, 198, 220, 220, 220, 6060, 12124, 7, 37581, 13, 15577, 2220, 62, 24432, 58, 1136, 62, 15577, 2220, 62, 8094, 62, 312, 7, 37581, 25295, 9521, 11, 30218, 70, 13, 1990, 6442, 8, 198, 198, 7249, 19045, 41384, 15200, 37, 77, 1279, 25, 15815, 22203, 198, 220, 220, 220, 5766, 3712, 43879, 2414, 198, 437, 198, 198, 38, 13046, 41384, 15200, 37, 77, 7, 37266, 3712, 38469, 90, 27, 25, 15633, 30072, 796, 19045, 41384, 15200, 37, 77, 7, 37266, 58, 16, 12962, 198, 198, 8818, 18101, 62, 15577, 2220, 62, 9521, 0, 7, 198, 220, 220, 220, 4269, 3712, 6601, 12124, 11, 198, 220, 220, 220, 2239, 3712, 46541, 11, 198, 220, 220, 220, 24714, 3712, 38, 13046, 41384, 15200, 37, 77, 11, 198, 8, 198, 220, 220, 220, 3349, 796, 24714, 13, 31412, 61, 9662, 198, 220, 220, 220, 4269, 13, 9521, 13, 64, 796, 2835, 7, 5532, 13, 36733, 62, 9521, 13, 64, 1635, 3349, 8, 198, 220, 220, 220, 4269, 13, 9521, 13, 65, 796, 2835, 7, 5532, 13, 36733, 62, 9521, 13, 65, 1635, 3349, 8, 198, 437, 198, 198, 7249, 12280, 26601, 498, 15200, 37, 77, 1279, 25, 15815, 22203, 198, 220, 220, 220, 7514, 3712, 24675, 18187, 34220, 26601, 498, 198, 437, 198, 198, 34220, 26601, 498, 15200, 37, 77, 7, 37266, 3712, 38469, 90, 27, 25, 15633, 30072, 796, 198, 220, 220, 220, 12280, 26601, 498, 15200, 37, 77, 7, 24675, 18187, 34220, 26601, 498, 7, 85, 9246, 7, 15, 11, 42287, 22305, 198, 198, 8818, 18101, 62, 15577, 2220, 62, 9521, 0, 7, 198, 220, 220, 220, 4269, 3712, 6601, 12124, 11, 198, 220, 220, 220, 2239, 3712, 46541, 11, 198, 220, 220, 220, 24714, 3712, 34220, 26601, 498, 15200, 37, 77, 11, 198, 8, 198, 220, 220, 220, 3349, 796, 24714, 13, 35428, 7, 9662, 8, 198, 220, 220, 220, 4269, 13, 9521, 13, 64, 796, 4269, 13, 36733, 62, 9521, 13, 64, 1343, 3349, 198, 220, 220, 220, 4269, 13, 9521, 13, 65, 796, 4269, 13, 36733, 62, 9521, 13, 65, 1343, 3349, 198, 437, 198, 198, 8818, 18101, 62, 15577, 2220, 62, 9521, 0, 7, 5532, 3712, 6601, 12124, 11, 2239, 3712, 46541, 8, 198, 220, 220, 220, 18101, 62, 15577, 2220, 62, 9521, 0, 7, 5532, 11, 2239, 11, 4269, 13, 1990, 6442, 8, 198, 437, 198, 198, 8818, 2198, 62, 13664, 7, 40319, 3712, 46541, 11, 42287, 3712, 38469, 90, 27, 25, 15633, 30072, 198, 220, 220, 220, 611, 4129, 7, 37266, 8, 14512, 2938, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 18224, 366, 39213, 506, 1271, 286, 10007, 1, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 42287, 198, 437, 198, 198, 8818, 651, 62, 1990, 2122, 62, 8818, 7, 1990, 37581, 3712, 16934, 8, 198, 220, 220, 220, 42287, 796, 819, 37581, 58, 25, 37266, 60, 198, 220, 220, 220, 2488, 15699, 819, 37581, 58, 25, 8818, 60, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 366, 38, 13046, 41384, 1, 5218, 1441, 19045, 41384, 15200, 37, 77, 7, 9122, 62, 13664, 7, 16, 11, 42287, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 366, 34220, 26601, 498, 1, 5218, 1441, 12280, 26601, 498, 15200, 37, 77, 7, 37266, 8, 198, 220, 220, 220, 220, 220, 220, 220, 366, 14993, 451, 1, 5218, 1441, 12280, 26601, 498, 15200, 37, 77, 7, 9122, 62, 13664, 7, 16, 11, 42287, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 5218, 2488, 18224, 366, 3118, 15999, 4269, 2546, 6954, 2163, 1, 198, 220, 220, 220, 886, 198, 437, 198, 198, 1136, 62, 1990, 2122, 62, 8818, 7, 22366, 8, 796, 19045, 41384, 15200, 37, 77, 7, 16, 13, 15, 8, 198 ]
2.596947
1,310
# stitch images and estimate together using ImageMagick # using ImageShow using Images, ImageView, ImageDraw datadir = joinpath(ENV["HOME"],"data","racecar") resultsparentdir = joinpath(datadir, "results") imgfolder = "images" currdirtime = "2018-11-07T01:36:52.274" resultsdir = joinpath(resultsparentdir, "$(currdirtime)") i = 1 for i in 1:10 tag_img = load( joinpath(resultsdir, imgfolder, "x$(i).jpg") ) top_img = load( joinpath(resultsdir, imgfolder, "img_$(i).png") ) rows = size(im1)[1]+size(im1t)[1] end #
[ 2, 24695, 4263, 290, 8636, 1978, 198, 198, 3500, 7412, 13436, 624, 198, 2, 1262, 7412, 15307, 198, 3500, 5382, 11, 7412, 7680, 11, 7412, 25302, 628, 198, 19608, 324, 343, 796, 4654, 6978, 7, 1677, 53, 14692, 39069, 34171, 7890, 2430, 16740, 7718, 4943, 198, 20274, 2777, 1580, 15908, 796, 4654, 6978, 7, 19608, 324, 343, 11, 366, 43420, 4943, 198, 9600, 43551, 796, 366, 17566, 1, 198, 198, 22019, 4372, 2265, 524, 796, 366, 7908, 12, 1157, 12, 2998, 51, 486, 25, 2623, 25, 4309, 13, 28857, 1, 198, 43420, 15908, 796, 4654, 6978, 7, 20274, 2777, 1580, 15908, 11, 17971, 7, 22019, 4372, 2265, 524, 8, 4943, 198, 198, 72, 796, 352, 198, 1640, 1312, 287, 352, 25, 940, 198, 198, 12985, 62, 9600, 796, 3440, 7, 4654, 6978, 7, 43420, 15908, 11, 33705, 43551, 11, 366, 87, 3, 7, 72, 737, 9479, 4943, 1267, 198, 4852, 62, 9600, 796, 3440, 7, 4654, 6978, 7, 43420, 15908, 11, 33705, 43551, 11, 366, 9600, 62, 3, 7, 72, 737, 11134, 4943, 1267, 198, 198, 8516, 796, 2546, 7, 320, 16, 38381, 16, 48688, 7857, 7, 320, 16, 83, 38381, 16, 60, 198, 198, 437, 628, 198, 198, 2, 198 ]
2.61194
201
<gh_stars>0 """ compute_col_dry_kernel!( col_dry, p_lev, mol_m_dry, mol_m_h2o, avogadro helmert1, vmr_h2o lat, glaycol, ) This function computes the column amounts of dry or moist air. """ function compute_col_dry_kernel!( col_dry::AbstractArray{FT, 2}, p_lev::AbstractArray{FT, 2}, mol_m_dry::FT, mol_m_h2o::FT, avogadro::FT, helmert1::FT, vmr_h2o::Union{AbstractArray{FT, 2}, Nothing}, lat::Union{AbstractArray{FT, 1}, Nothing}, glaycol::Tuple{Int, Int}, ) where {FT <: AbstractFloat} glay, gcol = glaycol[1], glaycol[2] # global col & lay ids helmert2 = FT(0.02586) # second constant of Helmert formula m2_to_cm2 = FT(100 * 100) # m^2 to cm^2 if lat isa AbstractArray g0 = helmert1 - helmert2 * cos(FT(2) * FT(Ο€) * lat[gcol] / FT(180)) # acceleration due to gravity [m/s^2] else g0 = helmert1 end Ξ”p = p_lev[glay, gcol] - p_lev[glay + 1, gcol] if vmr_h2o isa AbstractArray fact = FT(1) / (FT(1) + vmr_h2o[glay, gcol]) # Get average mass of moist air per mole of moist air m_air = (mol_m_dry + mol_m_h2o * vmr_h2o[glay, gcol]) * fact # Hydrostatic equation col_dry[glay, gcol] = (Ξ”p * avogadro / (m2_to_cm2 * m_air * g0)) * fact # molecules/cm^2 else col_dry[glay, gcol] = (Ξ”p * avogadro / (m2_to_cm2 * mol_m_air * g0)) # molecules/cm^2 end end """ compute_interp_fractions( lkp::AbstractLookUp{I,FT}, vmr, p_lay, t_lay, tropo, ibnd, glaycol, ) where {I<:Int,FT<:AbstractFloat} compute interpolation fractions for binary species parameter, pressure and temperature. """ @inline function compute_interp_fractions( lkp::AbstractLookUp{I, FT}, vmr, p_lay, t_lay, tropo, ibnd, glaycol, ) where {I <: Int, FT <: AbstractFloat} jftemp = compute_interp_frac_temp(lkp, t_lay, glaycol...) jfpress = compute_interp_frac_press(lkp, p_lay, tropo, glaycol...) jfΞ·, col_mix = compute_interp_frac_Ξ·(lkp, vmr, tropo, jftemp[1], ibnd, glaycol...) return (jftemp, jfpress, jfΞ·, col_mix) end """ compute_interp_frac_temp( lkp::AbstractLookUp{I,FT}, t_lay, glay, gcol, ) where {I<:Int,FT<:AbstractFloat} compute interpolation fraction for temperature. """ @inline function compute_interp_frac_temp( lkp::AbstractLookUp{I, FT}, t_lay, glay, gcol, ) where {I <: Int, FT <: AbstractFloat} (; Ξ”_t_ref, n_t_ref, t_ref) = lkp @inbounds jtemp = loc_lower(t_lay, Ξ”_t_ref, n_t_ref, t_ref) @inbounds ftemp = (t_lay - t_ref[jtemp]) / Ξ”_t_ref return (jtemp, ftemp) end """ compute_interp_frac_press( lkp::AbstractLookUp, p_lay, tropo, glay, gcol, ) Compute interpolation fraction for pressure. """ @inline function compute_interp_frac_press(lkp::AbstractLookUp, p_lay, tropo, glay, gcol) (; Ξ”_ln_p_ref, p_ref, n_p_ref) = lkp @inbounds jpress = Int(min(max(fld(log(p_ref[1]) - log(p_lay), Ξ”_ln_p_ref) + 1, 1), n_p_ref - 1) + 1) @inbounds fpress = (log(p_ref[jpress - 1]) - log(p_lay)) / Ξ”_ln_p_ref jpress = jpress + tropo - 1 return (jpress, fpress) end """ compute_interp_frac_Ξ·( lkp::AbstractLookUp{I,FT}, vmr, tropo, jtemp, ibnd, glay, gcol, ) where {FT<:AbstractFloat,I<:Int} Compute interpolation fraction for binary species parameter. """ @inline function compute_interp_frac_Ξ·( lkp::AbstractLookUp{I, FT}, vmr, tropo, jtemp, ibnd, glay, gcol, ) where {FT <: AbstractFloat, I <: Int} (; n_Ξ·, key_species, vmr_ref) = lkp ig = view(key_species, :, tropo, ibnd) vmr1 = get_vmr(vmr, ig[1], glay, gcol) vmr2 = get_vmr(vmr, ig[2], glay, gcol) itemp = 1 @inbounds Ξ·_half = vmr_ref[tropo, ig[1] + 1, jtemp + itemp - 1] / vmr_ref[tropo, ig[2] + 1, jtemp + itemp - 1] col_mix1 = vmr1 + Ξ·_half * vmr2 Ξ· = col_mix1 β‰₯ eps(FT) * 2 ? vmr1 / col_mix1 : FT(0.5) loc_Ξ· = FT(Ξ· * (n_Ξ· - 1)) jΞ·1 = min(unsafe_trunc(I, loc_Ξ·) + 1, n_Ξ· - 1) #fΞ·1 = loc_Ξ· % FT(1) # TODO: "%: operator seems unstable on GPU #fΞ·1 = FT(loc_Ξ· % 1) # to be revisited fΞ·1 = loc_Ξ· - fld(loc_Ξ·, FT(1)) itemp = 2 @inbounds Ξ·_half = vmr_ref[tropo, ig[1] + 1, jtemp + itemp - 1] / vmr_ref[tropo, ig[2] + 1, jtemp + itemp - 1] col_mix2 = vmr1 + Ξ·_half * vmr2 Ξ· = col_mix2 β‰₯ eps(FT) * 2 ? vmr1 / col_mix2 : FT(0.5) loc_Ξ· = FT(Ξ· * (n_Ξ· - 1)) jΞ·2 = min(unsafe_trunc(I, loc_Ξ·) + 1, n_Ξ· - 1) #fΞ·2 = loc_Ξ· % FT(1) # TODO: "%" operator seems unstable on GPU #fΞ·2 = FT(loc_Ξ· % 1) # to be revisited fΞ·2 = loc_Ξ· - fld(loc_Ξ·, FT(1)) return ((jΞ·1, jΞ·2, fΞ·1, fΞ·2), (col_mix1, col_mix2))#nothing end """ compute_Ο„_ssa_lw_src!( lkp::AbstractLookUp{I,FT}, vmr, col_dry, igpt, ibnd, p_lay::FT, t_lay, glaycol, src_args..., ) where {FT<:AbstractFloat,I<:Int} Compute optical thickness, single scattering albedo, asymmetry parameter and longwave sources whenever applicable. """ @inline function compute_Ο„_ssa_lw_src!( lkp::AbstractLookUp{I, FT}, vmr, col_dry, igpt, ibnd, p_lay::FT, t_lay, glaycol, src_args..., ) where {FT <: AbstractFloat, I <: Int} # upper/lower troposphere tropo = p_lay > lkp.p_ref_tropo ? 1 : 2 # volume mixing ration of h2o vmr_h2o = get_vmr(vmr, lkp.idx_h2o, glaycol...) jftemp, jfpress, jfΞ·, col_mix = compute_interp_fractions(lkp, vmr, p_lay, t_lay, tropo, ibnd, glaycol) # computing Ο„_major Ο„_major = interp3d(jfΞ·..., jftemp..., jfpress..., lkp.kmajor, igpt, col_mix...) * col_dry # computing Ο„_minor Ο„_minor = compute_Ο„_minor(lkp, tropo, vmr, vmr_h2o, col_dry, p_lay, t_lay, jftemp..., jfΞ·..., igpt, ibnd, glaycol...) # compute Ο„_Rayleigh Ο„_ray = compute_Ο„_rayleigh(lkp, tropo, col_dry, vmr_h2o, jftemp..., jfΞ·..., igpt) Ο„ = Ο„_major + Ο„_minor + Ο„_ray ssa = FT(0) if Ο„ > 2 * eps(FT) # single scattering albedo ssa = Ο„_ray / Ο„ end # computing Planck sources for longwave problem compute_lw_planck_src!(lkp, jfΞ·..., jfpress..., jftemp..., t_lay, igpt, ibnd, glaycol..., src_args...) return (Ο„, ssa) end """ compute_Ο„_minor( lkp::AbstractLookUp, tropo::I, vmr, vmr_h2o::FT, col_dry, p_lay::FT, t_lay::FT, jtemp::I, ftemp::FT, jΞ·1::I, jΞ·2::I, fΞ·1::FT, fΞ·2::FT, igpt, ibnd, glay, gcol, ) where {FT<:AbstractFloat,I<:Int} Compute optical thickness contributions from minor gases. """ @inline function compute_Ο„_minor( lkp::AbstractLookUp, tropo::I, vmr, vmr_h2o::FT, col_dry, p_lay::FT, t_lay::FT, jtemp::I, ftemp::FT, jΞ·1::I, jΞ·2::I, fΞ·1::FT, fΞ·2::FT, igpt, ibnd, glay, gcol, ) where {FT <: AbstractFloat, I <: Int} if tropo == 1 # in lower atmosphere minor_bnd_st = lkp.minor_lower_bnd_st idx_gases_minor = lkp.idx_gases_minor_lower minor_scales_with_density = lkp.minor_lower_scales_with_density idx_scaling_gas = lkp.idx_scaling_gas_lower scale_by_complement = lkp.lower_scale_by_complement minor_gpt_sh = lkp.minor_lower_gpt_sh kminor = lkp.kminor_lower else # in upper atmosphere minor_bnd_st = lkp.minor_upper_bnd_st idx_gases_minor = lkp.idx_gases_minor_upper minor_scales_with_density = lkp.minor_upper_scales_with_density idx_scaling_gas = lkp.idx_scaling_gas_upper scale_by_complement = lkp.upper_scale_by_complement minor_gpt_sh = lkp.minor_upper_gpt_sh kminor = lkp.kminor_upper end Ο„_minor = FT(0) pa2hpa = FT(0.01) # pascals to hectopascals dry_fact = FT(1) / (FT(1) + vmr_h2o) @inbounds loc_in_bnd = igpt - (lkp.bnd_lims_gpt[1, ibnd] - 1) @inbounds for i in minor_bnd_st[ibnd]:(minor_bnd_st[ibnd + 1] - 1) vmr_imnr = get_vmr(vmr, idx_gases_minor[i], glay, gcol) if vmr_imnr > eps(FT) * 2 scaling = vmr_imnr * col_dry if minor_scales_with_density[i] == 1 scaling *= (pa2hpa * p_lay / t_lay) sgas = idx_scaling_gas[i] if sgas > 0 if scale_by_complement[i] == 1 scaling *= (FT(1) - get_vmr(vmr, sgas, glay, gcol) * dry_fact) else scaling *= get_vmr(vmr, sgas, glay, gcol) * dry_fact end end end k_loc = minor_gpt_sh[i] + loc_in_bnd Ο„_minor += interp2d(fΞ·1, fΞ·2, ftemp, kminor, k_loc, jΞ·1, jΞ·2, jtemp) * scaling end end return Ο„_minor end """ compute_Ο„_rayleigh( lkp::LookUpSW, tropo::I, col_dry::FT, vmr_h2o::FT, jtemp::I, ftemp::FT, jΞ·1::I, jΞ·2::I, fΞ·1::FT, fΞ·2::FT, igpt::I, ) where {FT<:AbstractFloat,I<:Int} Compute Rayleigh scattering optical depths for shortwave problem """ @inline function compute_Ο„_rayleigh( lkp::LookUpSW, tropo::I, col_dry::FT, vmr_h2o::FT, jtemp::I, ftemp::FT, jΞ·1::I, jΞ·2::I, fΞ·1::FT, fΞ·2::FT, igpt::I, ) where {FT <: AbstractFloat, I <: Int} if tropo == 1 Ο„_ray = interp2d(fΞ·1, fΞ·2, ftemp, lkp.rayl_lower, igpt, jΞ·1, jΞ·2, jtemp) * (vmr_h2o + FT(1)) * col_dry else Ο„_ray = interp2d(fΞ·1, fΞ·2, ftemp, lkp.rayl_upper, igpt, jΞ·1, jΞ·2, jtemp) * (vmr_h2o + FT(1)) * col_dry end return Ο„_ray end @inline function compute_Ο„_rayleigh(lkp::LookUpLW{I, FT}, args...) where {FT <: AbstractFloat, I <: Int} return FT(0) end """ compute_lw_planck_src!( lkp::LookUpLW, jΞ·1, jΞ·2, fΞ·1, fΞ·2, jpresst, fpress, jtemp, ftemp, t_lay, igpt, ibnd, glay, gcol, sf, t_lev, t_sfc, ) Computes Planck sources for the longwave problem. """ @inline function compute_lw_planck_src!( lkp::LookUpLW, jΞ·1, jΞ·2, fΞ·1, fΞ·2, jpresst, fpress, jtemp, ftemp, t_lay, igpt, ibnd, glay, gcol, sf, t_lev, t_sfc, ) (; planck_fraction, t_planck, n_t_plnk, totplnk) = lkp (; lay_source, lev_source_inc, lev_source_dec, sfc_source) = sf # compute Planck fraction p_frac = interp3d(jΞ·1, jΞ·2, fΞ·1, fΞ·2, jtemp, ftemp, jpresst, fpress, planck_fraction, igpt) planck_args = (t_planck, totplnk, ibnd) # computing lay_source @inbounds lay_source[glay, gcol] = interp1d(t_lay, planck_args...) * p_frac # computing lev_source_inc @inbounds lev_source_inc[glay, gcol] = interp1d(t_lev[glay + 1, gcol], planck_args...) * p_frac # computing lev_source_dec @inbounds lev_source_dec[glay, gcol] = interp1d(t_lev[glay, gcol], planck_args...) * p_frac if glay == 1 # computing sfc_source @inbounds sfc_source[gcol] = interp1d(t_sfc, planck_args...) * p_frac end return nothing end @inline function compute_lw_planck_src!(lkp::LookUpSW, args...) return nothing end
[ 27, 456, 62, 30783, 29, 15, 198, 37811, 198, 220, 220, 220, 24061, 62, 4033, 62, 39140, 62, 33885, 0, 7, 198, 220, 220, 220, 220, 220, 220, 220, 951, 62, 39140, 11, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 2768, 11, 198, 220, 220, 220, 220, 220, 220, 220, 18605, 62, 76, 62, 39140, 11, 198, 220, 220, 220, 220, 220, 220, 220, 18605, 62, 76, 62, 71, 17, 78, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1196, 519, 324, 305, 198, 220, 220, 220, 220, 220, 220, 220, 932, 647, 83, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 410, 43395, 62, 71, 17, 78, 198, 220, 220, 220, 220, 220, 220, 220, 3042, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1278, 323, 4033, 11, 198, 220, 220, 220, 1267, 198, 198, 1212, 2163, 552, 1769, 262, 5721, 6867, 286, 5894, 393, 13394, 1633, 13, 198, 37811, 198, 8818, 24061, 62, 4033, 62, 39140, 62, 33885, 0, 7, 198, 220, 220, 220, 951, 62, 39140, 3712, 23839, 19182, 90, 9792, 11, 362, 5512, 198, 220, 220, 220, 279, 62, 2768, 3712, 23839, 19182, 90, 9792, 11, 362, 5512, 198, 220, 220, 220, 18605, 62, 76, 62, 39140, 3712, 9792, 11, 198, 220, 220, 220, 18605, 62, 76, 62, 71, 17, 78, 3712, 9792, 11, 198, 220, 220, 220, 1196, 519, 324, 305, 3712, 9792, 11, 198, 220, 220, 220, 932, 647, 83, 16, 3712, 9792, 11, 198, 220, 220, 220, 410, 43395, 62, 71, 17, 78, 3712, 38176, 90, 23839, 19182, 90, 9792, 11, 362, 5512, 10528, 5512, 198, 220, 220, 220, 3042, 3712, 38176, 90, 23839, 19182, 90, 9792, 11, 352, 5512, 10528, 5512, 198, 220, 220, 220, 1278, 323, 4033, 3712, 51, 29291, 90, 5317, 11, 2558, 5512, 198, 8, 810, 1391, 9792, 1279, 25, 27741, 43879, 92, 198, 220, 220, 220, 1278, 323, 11, 308, 4033, 796, 1278, 323, 4033, 58, 16, 4357, 1278, 323, 4033, 58, 17, 60, 220, 1303, 3298, 951, 1222, 3830, 220, 2340, 198, 220, 220, 220, 932, 647, 83, 17, 796, 19446, 7, 15, 13, 36629, 4521, 8, 220, 1303, 1218, 6937, 286, 5053, 647, 83, 10451, 198, 220, 220, 220, 285, 17, 62, 1462, 62, 11215, 17, 796, 19446, 7, 3064, 1635, 1802, 8, 1303, 285, 61, 17, 284, 12067, 61, 17, 198, 220, 220, 220, 611, 3042, 318, 64, 27741, 19182, 198, 220, 220, 220, 220, 220, 220, 220, 308, 15, 796, 932, 647, 83, 16, 532, 932, 647, 83, 17, 1635, 8615, 7, 9792, 7, 17, 8, 1635, 19446, 7, 46582, 8, 1635, 3042, 58, 70, 4033, 60, 1220, 19446, 7, 15259, 4008, 1303, 20309, 2233, 284, 13522, 685, 76, 14, 82, 61, 17, 60, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 308, 15, 796, 932, 647, 83, 16, 198, 220, 220, 220, 886, 198, 220, 220, 220, 37455, 79, 796, 279, 62, 2768, 58, 4743, 323, 11, 308, 4033, 60, 532, 279, 62, 2768, 58, 4743, 323, 1343, 352, 11, 308, 4033, 60, 198, 220, 220, 220, 611, 410, 43395, 62, 71, 17, 78, 318, 64, 27741, 19182, 198, 220, 220, 220, 220, 220, 220, 220, 1109, 796, 19446, 7, 16, 8, 1220, 357, 9792, 7, 16, 8, 1343, 410, 43395, 62, 71, 17, 78, 58, 4743, 323, 11, 308, 4033, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3497, 2811, 2347, 286, 13394, 1633, 583, 9411, 286, 13394, 1633, 198, 220, 220, 220, 220, 220, 220, 220, 285, 62, 958, 796, 357, 43132, 62, 76, 62, 39140, 1343, 18605, 62, 76, 62, 71, 17, 78, 1635, 410, 43395, 62, 71, 17, 78, 58, 4743, 323, 11, 308, 4033, 12962, 1635, 1109, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 32116, 12708, 16022, 198, 220, 220, 220, 220, 220, 220, 220, 951, 62, 39140, 58, 4743, 323, 11, 308, 4033, 60, 796, 357, 138, 242, 79, 1635, 1196, 519, 324, 305, 1220, 357, 76, 17, 62, 1462, 62, 11215, 17, 1635, 285, 62, 958, 1635, 308, 15, 4008, 1635, 1109, 1303, 17745, 14, 11215, 61, 17, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 951, 62, 39140, 58, 4743, 323, 11, 308, 4033, 60, 796, 357, 138, 242, 79, 1635, 1196, 519, 324, 305, 1220, 357, 76, 17, 62, 1462, 62, 11215, 17, 1635, 18605, 62, 76, 62, 958, 1635, 308, 15, 4008, 1303, 17745, 14, 11215, 61, 17, 198, 220, 220, 220, 886, 198, 437, 198, 37811, 198, 220, 220, 220, 24061, 62, 3849, 79, 62, 69, 37810, 7, 198, 220, 220, 220, 220, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 90, 40, 11, 9792, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 410, 43395, 11, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14673, 78, 11, 198, 220, 220, 220, 220, 220, 220, 220, 24283, 358, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1278, 323, 4033, 11, 198, 220, 220, 220, 1267, 810, 1391, 40, 27, 25, 5317, 11, 9792, 27, 25, 23839, 43879, 92, 198, 198, 5589, 1133, 39555, 341, 49876, 329, 13934, 4693, 11507, 11, 3833, 290, 5951, 13, 198, 37811, 198, 31, 45145, 2163, 24061, 62, 3849, 79, 62, 69, 37810, 7, 198, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 90, 40, 11, 19446, 5512, 198, 220, 220, 220, 410, 43395, 11, 198, 220, 220, 220, 279, 62, 10724, 11, 198, 220, 220, 220, 256, 62, 10724, 11, 198, 220, 220, 220, 14673, 78, 11, 198, 220, 220, 220, 24283, 358, 11, 198, 220, 220, 220, 1278, 323, 4033, 11, 198, 8, 810, 1391, 40, 1279, 25, 2558, 11, 19446, 1279, 25, 27741, 43879, 92, 198, 220, 220, 220, 474, 701, 45787, 796, 24061, 62, 3849, 79, 62, 31944, 62, 29510, 7, 75, 74, 79, 11, 256, 62, 10724, 11, 1278, 323, 4033, 23029, 198, 220, 220, 220, 474, 69, 8439, 796, 24061, 62, 3849, 79, 62, 31944, 62, 8439, 7, 75, 74, 79, 11, 279, 62, 10724, 11, 14673, 78, 11, 1278, 323, 4033, 23029, 198, 220, 220, 220, 474, 69, 138, 115, 11, 951, 62, 19816, 796, 24061, 62, 3849, 79, 62, 31944, 62, 138, 115, 7, 75, 74, 79, 11, 410, 43395, 11, 14673, 78, 11, 474, 701, 45787, 58, 16, 4357, 24283, 358, 11, 1278, 323, 4033, 23029, 198, 220, 220, 220, 1441, 357, 73, 701, 45787, 11, 474, 69, 8439, 11, 474, 69, 138, 115, 11, 951, 62, 19816, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 24061, 62, 3849, 79, 62, 31944, 62, 29510, 7, 198, 220, 220, 220, 220, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 90, 40, 11, 9792, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1278, 323, 11, 198, 220, 220, 220, 220, 220, 220, 220, 308, 4033, 11, 198, 220, 220, 220, 1267, 810, 1391, 40, 27, 25, 5317, 11, 9792, 27, 25, 23839, 43879, 92, 198, 198, 5589, 1133, 39555, 341, 13390, 329, 5951, 13, 198, 37811, 198, 31, 45145, 2163, 24061, 62, 3849, 79, 62, 31944, 62, 29510, 7, 198, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 90, 40, 11, 19446, 5512, 198, 220, 220, 220, 256, 62, 10724, 11, 198, 220, 220, 220, 1278, 323, 11, 198, 220, 220, 220, 308, 4033, 11, 198, 8, 810, 1391, 40, 1279, 25, 2558, 11, 19446, 1279, 25, 27741, 43879, 92, 198, 220, 220, 220, 357, 26, 37455, 62, 83, 62, 5420, 11, 299, 62, 83, 62, 5420, 11, 256, 62, 5420, 8, 796, 300, 74, 79, 628, 220, 220, 220, 2488, 259, 65, 3733, 474, 29510, 796, 1179, 62, 21037, 7, 83, 62, 10724, 11, 37455, 62, 83, 62, 5420, 11, 299, 62, 83, 62, 5420, 11, 256, 62, 5420, 8, 198, 220, 220, 220, 2488, 259, 65, 3733, 10117, 45787, 796, 357, 83, 62, 10724, 532, 256, 62, 5420, 58, 73, 29510, 12962, 1220, 37455, 62, 83, 62, 5420, 628, 220, 220, 220, 1441, 357, 73, 29510, 11, 10117, 45787, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 24061, 62, 3849, 79, 62, 31944, 62, 8439, 7, 198, 220, 220, 220, 220, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14673, 78, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1278, 323, 11, 198, 220, 220, 220, 220, 220, 220, 220, 308, 4033, 11, 198, 220, 220, 220, 1267, 198, 198, 7293, 1133, 39555, 341, 13390, 329, 3833, 13, 198, 37811, 198, 31, 45145, 2163, 24061, 62, 3849, 79, 62, 31944, 62, 8439, 7, 75, 74, 79, 3712, 23839, 8567, 4933, 11, 279, 62, 10724, 11, 14673, 78, 11, 1278, 323, 11, 308, 4033, 8, 198, 220, 220, 220, 357, 26, 37455, 62, 18755, 62, 79, 62, 5420, 11, 279, 62, 5420, 11, 299, 62, 79, 62, 5420, 8, 796, 300, 74, 79, 628, 220, 220, 220, 2488, 259, 65, 3733, 474, 8439, 796, 2558, 7, 1084, 7, 9806, 7, 69, 335, 7, 6404, 7, 79, 62, 5420, 58, 16, 12962, 532, 2604, 7, 79, 62, 10724, 828, 37455, 62, 18755, 62, 79, 62, 5420, 8, 1343, 352, 11, 352, 828, 299, 62, 79, 62, 5420, 532, 352, 8, 1343, 352, 8, 628, 220, 220, 220, 2488, 259, 65, 3733, 277, 8439, 796, 357, 6404, 7, 79, 62, 5420, 58, 73, 8439, 532, 352, 12962, 532, 2604, 7, 79, 62, 10724, 4008, 1220, 37455, 62, 18755, 62, 79, 62, 5420, 198, 220, 220, 220, 474, 8439, 796, 474, 8439, 1343, 14673, 78, 532, 352, 628, 220, 220, 220, 1441, 357, 73, 8439, 11, 277, 8439, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 24061, 62, 3849, 79, 62, 31944, 62, 138, 115, 7, 198, 220, 220, 220, 220, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 90, 40, 11, 9792, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 410, 43395, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14673, 78, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 29510, 11, 198, 220, 220, 220, 220, 220, 220, 220, 24283, 358, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1278, 323, 11, 198, 220, 220, 220, 220, 220, 220, 220, 308, 4033, 11, 198, 220, 220, 220, 1267, 810, 1391, 9792, 27, 25, 23839, 43879, 11, 40, 27, 25, 5317, 92, 198, 198, 7293, 1133, 39555, 341, 13390, 329, 13934, 4693, 11507, 13, 198, 37811, 198, 31, 45145, 2163, 24061, 62, 3849, 79, 62, 31944, 62, 138, 115, 7, 198, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 90, 40, 11, 19446, 5512, 198, 220, 220, 220, 410, 43395, 11, 198, 220, 220, 220, 14673, 78, 11, 198, 220, 220, 220, 474, 29510, 11, 198, 220, 220, 220, 24283, 358, 11, 198, 220, 220, 220, 1278, 323, 11, 198, 220, 220, 220, 308, 4033, 11, 198, 8, 810, 1391, 9792, 1279, 25, 27741, 43879, 11, 314, 1279, 25, 2558, 92, 198, 220, 220, 220, 357, 26, 299, 62, 138, 115, 11, 1994, 62, 35448, 11, 410, 43395, 62, 5420, 8, 796, 300, 74, 79, 198, 220, 220, 220, 45329, 796, 1570, 7, 2539, 62, 35448, 11, 1058, 11, 14673, 78, 11, 24283, 358, 8, 628, 220, 220, 220, 410, 43395, 16, 796, 651, 62, 14761, 81, 7, 14761, 81, 11, 45329, 58, 16, 4357, 1278, 323, 11, 308, 4033, 8, 198, 220, 220, 220, 410, 43395, 17, 796, 651, 62, 14761, 81, 7, 14761, 81, 11, 45329, 58, 17, 4357, 1278, 323, 11, 308, 4033, 8, 628, 220, 220, 220, 2378, 79, 796, 352, 198, 220, 220, 220, 2488, 259, 65, 3733, 7377, 115, 62, 13959, 796, 410, 43395, 62, 5420, 58, 48385, 78, 11, 45329, 58, 16, 60, 1343, 352, 11, 474, 29510, 1343, 2378, 79, 532, 352, 60, 1220, 410, 43395, 62, 5420, 58, 48385, 78, 11, 45329, 58, 17, 60, 1343, 352, 11, 474, 29510, 1343, 2378, 79, 532, 352, 60, 198, 220, 220, 220, 951, 62, 19816, 16, 796, 410, 43395, 16, 1343, 7377, 115, 62, 13959, 1635, 410, 43395, 17, 198, 220, 220, 220, 7377, 115, 796, 951, 62, 19816, 16, 26870, 304, 862, 7, 9792, 8, 1635, 362, 5633, 410, 43395, 16, 1220, 951, 62, 19816, 16, 1058, 19446, 7, 15, 13, 20, 8, 198, 220, 220, 220, 1179, 62, 138, 115, 796, 19446, 7, 138, 115, 1635, 357, 77, 62, 138, 115, 532, 352, 4008, 198, 220, 220, 220, 474, 138, 115, 16, 796, 949, 7, 13271, 8635, 62, 2213, 19524, 7, 40, 11, 1179, 62, 138, 115, 8, 1343, 352, 11, 299, 62, 138, 115, 532, 352, 8, 198, 220, 220, 220, 1303, 69, 138, 115, 16, 796, 1179, 62, 138, 115, 4064, 19446, 7, 16, 8, 1303, 16926, 46, 25, 36521, 25, 10088, 2331, 21354, 319, 11362, 198, 220, 220, 220, 1303, 69, 138, 115, 16, 796, 19446, 7, 17946, 62, 138, 115, 4064, 352, 8, 1303, 284, 307, 22124, 863, 198, 220, 220, 220, 277, 138, 115, 16, 796, 1179, 62, 138, 115, 532, 277, 335, 7, 17946, 62, 138, 115, 11, 19446, 7, 16, 4008, 628, 220, 220, 220, 2378, 79, 796, 362, 198, 220, 220, 220, 2488, 259, 65, 3733, 7377, 115, 62, 13959, 796, 410, 43395, 62, 5420, 58, 48385, 78, 11, 45329, 58, 16, 60, 1343, 352, 11, 474, 29510, 1343, 2378, 79, 532, 352, 60, 1220, 410, 43395, 62, 5420, 58, 48385, 78, 11, 45329, 58, 17, 60, 1343, 352, 11, 474, 29510, 1343, 2378, 79, 532, 352, 60, 198, 220, 220, 220, 951, 62, 19816, 17, 796, 410, 43395, 16, 1343, 7377, 115, 62, 13959, 1635, 410, 43395, 17, 198, 220, 220, 220, 7377, 115, 796, 951, 62, 19816, 17, 26870, 304, 862, 7, 9792, 8, 1635, 362, 5633, 410, 43395, 16, 1220, 951, 62, 19816, 17, 1058, 19446, 7, 15, 13, 20, 8, 198, 220, 220, 220, 1179, 62, 138, 115, 796, 19446, 7, 138, 115, 1635, 357, 77, 62, 138, 115, 532, 352, 4008, 198, 220, 220, 220, 474, 138, 115, 17, 796, 949, 7, 13271, 8635, 62, 2213, 19524, 7, 40, 11, 1179, 62, 138, 115, 8, 1343, 352, 11, 299, 62, 138, 115, 532, 352, 8, 198, 220, 220, 220, 1303, 69, 138, 115, 17, 796, 1179, 62, 138, 115, 4064, 19446, 7, 16, 8, 1303, 16926, 46, 25, 36521, 1, 10088, 2331, 21354, 319, 11362, 198, 220, 220, 220, 1303, 69, 138, 115, 17, 796, 19446, 7, 17946, 62, 138, 115, 4064, 352, 8, 1303, 284, 307, 22124, 863, 198, 220, 220, 220, 277, 138, 115, 17, 796, 1179, 62, 138, 115, 532, 277, 335, 7, 17946, 62, 138, 115, 11, 19446, 7, 16, 4008, 628, 220, 220, 220, 1441, 14808, 73, 138, 115, 16, 11, 474, 138, 115, 17, 11, 277, 138, 115, 16, 11, 277, 138, 115, 17, 828, 357, 4033, 62, 19816, 16, 11, 951, 62, 19816, 17, 4008, 2, 22366, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 24061, 62, 32830, 62, 824, 64, 62, 75, 86, 62, 10677, 0, 7, 198, 220, 220, 220, 220, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 90, 40, 11, 9792, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 410, 43395, 11, 198, 220, 220, 220, 220, 220, 220, 220, 951, 62, 39140, 11, 198, 220, 220, 220, 220, 220, 220, 220, 45329, 457, 11, 198, 220, 220, 220, 220, 220, 220, 220, 24283, 358, 11, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 10724, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1278, 323, 4033, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12351, 62, 22046, 986, 11, 198, 220, 220, 220, 1267, 810, 1391, 9792, 27, 25, 23839, 43879, 11, 40, 27, 25, 5317, 92, 198, 198, 7293, 1133, 18480, 20735, 11, 2060, 45765, 435, 3077, 78, 11, 30372, 11973, 11507, 220, 198, 392, 890, 19204, 4237, 8797, 9723, 13, 198, 37811, 198, 31, 45145, 2163, 24061, 62, 32830, 62, 824, 64, 62, 75, 86, 62, 10677, 0, 7, 198, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 90, 40, 11, 19446, 5512, 198, 220, 220, 220, 410, 43395, 11, 198, 220, 220, 220, 951, 62, 39140, 11, 198, 220, 220, 220, 45329, 457, 11, 198, 220, 220, 220, 24283, 358, 11, 198, 220, 220, 220, 279, 62, 10724, 3712, 9792, 11, 198, 220, 220, 220, 256, 62, 10724, 11, 198, 220, 220, 220, 1278, 323, 4033, 11, 198, 220, 220, 220, 12351, 62, 22046, 986, 11, 198, 8, 810, 1391, 9792, 1279, 25, 27741, 43879, 11, 314, 1279, 25, 2558, 92, 198, 220, 220, 220, 1303, 6727, 14, 21037, 14673, 22829, 198, 220, 220, 220, 14673, 78, 796, 279, 62, 10724, 1875, 300, 74, 79, 13, 79, 62, 5420, 62, 48385, 78, 5633, 352, 1058, 362, 198, 220, 220, 220, 1303, 6115, 17090, 36535, 286, 289, 17, 78, 198, 220, 220, 220, 410, 43395, 62, 71, 17, 78, 796, 651, 62, 14761, 81, 7, 14761, 81, 11, 300, 74, 79, 13, 312, 87, 62, 71, 17, 78, 11, 1278, 323, 4033, 23029, 628, 220, 220, 220, 474, 701, 45787, 11, 474, 69, 8439, 11, 474, 69, 138, 115, 11, 951, 62, 19816, 796, 24061, 62, 3849, 79, 62, 69, 37810, 7, 75, 74, 79, 11, 410, 43395, 11, 279, 62, 10724, 11, 256, 62, 10724, 11, 14673, 78, 11, 24283, 358, 11, 1278, 323, 4033, 8, 628, 220, 220, 220, 1303, 14492, 46651, 62, 22478, 198, 220, 220, 220, 46651, 62, 22478, 796, 987, 79, 18, 67, 7, 73, 69, 138, 115, 986, 11, 474, 701, 45787, 986, 11, 474, 69, 8439, 986, 11, 300, 74, 79, 13, 13276, 1518, 11, 45329, 457, 11, 951, 62, 19816, 23029, 1635, 951, 62, 39140, 198, 220, 220, 220, 1303, 14492, 46651, 62, 1084, 273, 198, 220, 220, 220, 46651, 62, 1084, 273, 796, 198, 220, 220, 220, 220, 220, 220, 220, 24061, 62, 32830, 62, 1084, 273, 7, 75, 74, 79, 11, 14673, 78, 11, 410, 43395, 11, 410, 43395, 62, 71, 17, 78, 11, 951, 62, 39140, 11, 279, 62, 10724, 11, 256, 62, 10724, 11, 474, 701, 45787, 986, 11, 474, 69, 138, 115, 986, 11, 45329, 457, 11, 24283, 358, 11, 1278, 323, 4033, 23029, 198, 220, 220, 220, 1303, 24061, 46651, 62, 19591, 42342, 198, 220, 220, 220, 46651, 62, 2433, 796, 24061, 62, 32830, 62, 2433, 42342, 7, 75, 74, 79, 11, 14673, 78, 11, 951, 62, 39140, 11, 410, 43395, 62, 71, 17, 78, 11, 474, 701, 45787, 986, 11, 474, 69, 138, 115, 986, 11, 45329, 457, 8, 198, 220, 220, 220, 46651, 796, 46651, 62, 22478, 1343, 46651, 62, 1084, 273, 1343, 46651, 62, 2433, 198, 220, 220, 220, 264, 11400, 796, 19446, 7, 15, 8, 198, 220, 220, 220, 611, 46651, 1875, 362, 1635, 304, 862, 7, 9792, 8, 1303, 2060, 45765, 435, 3077, 78, 198, 220, 220, 220, 220, 220, 220, 220, 264, 11400, 796, 46651, 62, 2433, 1220, 46651, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1303, 14492, 5224, 694, 4237, 329, 890, 19204, 1917, 198, 220, 220, 220, 24061, 62, 75, 86, 62, 11578, 694, 62, 10677, 0, 7, 75, 74, 79, 11, 474, 69, 138, 115, 986, 11, 474, 69, 8439, 986, 11, 474, 701, 45787, 986, 11, 256, 62, 10724, 11, 45329, 457, 11, 24283, 358, 11, 1278, 323, 4033, 986, 11, 12351, 62, 22046, 23029, 198, 220, 220, 220, 1441, 357, 32830, 11, 264, 11400, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 24061, 62, 32830, 62, 1084, 273, 7, 198, 220, 220, 220, 220, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14673, 78, 3712, 40, 11, 198, 220, 220, 220, 220, 220, 220, 220, 410, 43395, 11, 198, 220, 220, 220, 220, 220, 220, 220, 410, 43395, 62, 71, 17, 78, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 951, 62, 39140, 11, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 10724, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 10724, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 29510, 3712, 40, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10117, 45787, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 138, 115, 16, 3712, 40, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 138, 115, 17, 3712, 40, 11, 198, 220, 220, 220, 220, 220, 220, 220, 277, 138, 115, 16, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 277, 138, 115, 17, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 45329, 457, 11, 198, 220, 220, 220, 220, 220, 220, 220, 24283, 358, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1278, 323, 11, 198, 220, 220, 220, 220, 220, 220, 220, 308, 4033, 11, 198, 220, 220, 220, 1267, 810, 1391, 9792, 27, 25, 23839, 43879, 11, 40, 27, 25, 5317, 92, 198, 198, 7293, 1133, 18480, 20735, 9284, 422, 4159, 21678, 13, 198, 37811, 198, 31, 45145, 2163, 24061, 62, 32830, 62, 1084, 273, 7, 198, 220, 220, 220, 300, 74, 79, 3712, 23839, 8567, 4933, 11, 198, 220, 220, 220, 14673, 78, 3712, 40, 11, 198, 220, 220, 220, 410, 43395, 11, 198, 220, 220, 220, 410, 43395, 62, 71, 17, 78, 3712, 9792, 11, 198, 220, 220, 220, 951, 62, 39140, 11, 198, 220, 220, 220, 279, 62, 10724, 3712, 9792, 11, 198, 220, 220, 220, 256, 62, 10724, 3712, 9792, 11, 198, 220, 220, 220, 474, 29510, 3712, 40, 11, 198, 220, 220, 220, 10117, 45787, 3712, 9792, 11, 198, 220, 220, 220, 474, 138, 115, 16, 3712, 40, 11, 198, 220, 220, 220, 474, 138, 115, 17, 3712, 40, 11, 198, 220, 220, 220, 277, 138, 115, 16, 3712, 9792, 11, 198, 220, 220, 220, 277, 138, 115, 17, 3712, 9792, 11, 198, 220, 220, 220, 45329, 457, 11, 198, 220, 220, 220, 24283, 358, 11, 198, 220, 220, 220, 1278, 323, 11, 198, 220, 220, 220, 308, 4033, 11, 198, 8, 810, 1391, 9792, 1279, 25, 27741, 43879, 11, 314, 1279, 25, 2558, 92, 628, 220, 220, 220, 611, 14673, 78, 6624, 352, 1303, 287, 2793, 8137, 198, 220, 220, 220, 220, 220, 220, 220, 4159, 62, 65, 358, 62, 301, 796, 300, 74, 79, 13, 1084, 273, 62, 21037, 62, 65, 358, 62, 301, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 87, 62, 70, 1386, 62, 1084, 273, 796, 300, 74, 79, 13, 312, 87, 62, 70, 1386, 62, 1084, 273, 62, 21037, 198, 220, 220, 220, 220, 220, 220, 220, 4159, 62, 1416, 2040, 62, 4480, 62, 43337, 796, 300, 74, 79, 13, 1084, 273, 62, 21037, 62, 1416, 2040, 62, 4480, 62, 43337, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 87, 62, 1416, 4272, 62, 22649, 796, 300, 74, 79, 13, 312, 87, 62, 1416, 4272, 62, 22649, 62, 21037, 198, 220, 220, 220, 220, 220, 220, 220, 5046, 62, 1525, 62, 785, 26908, 796, 300, 74, 79, 13, 21037, 62, 9888, 62, 1525, 62, 785, 26908, 198, 220, 220, 220, 220, 220, 220, 220, 4159, 62, 70, 457, 62, 1477, 796, 300, 74, 79, 13, 1084, 273, 62, 21037, 62, 70, 457, 62, 1477, 198, 220, 220, 220, 220, 220, 220, 220, 479, 1084, 273, 796, 300, 74, 79, 13, 74, 1084, 273, 62, 21037, 198, 220, 220, 220, 2073, 1303, 287, 6727, 8137, 198, 220, 220, 220, 220, 220, 220, 220, 4159, 62, 65, 358, 62, 301, 796, 300, 74, 79, 13, 1084, 273, 62, 45828, 62, 65, 358, 62, 301, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 87, 62, 70, 1386, 62, 1084, 273, 796, 300, 74, 79, 13, 312, 87, 62, 70, 1386, 62, 1084, 273, 62, 45828, 198, 220, 220, 220, 220, 220, 220, 220, 4159, 62, 1416, 2040, 62, 4480, 62, 43337, 796, 300, 74, 79, 13, 1084, 273, 62, 45828, 62, 1416, 2040, 62, 4480, 62, 43337, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 87, 62, 1416, 4272, 62, 22649, 796, 300, 74, 79, 13, 312, 87, 62, 1416, 4272, 62, 22649, 62, 45828, 198, 220, 220, 220, 220, 220, 220, 220, 5046, 62, 1525, 62, 785, 26908, 796, 300, 74, 79, 13, 45828, 62, 9888, 62, 1525, 62, 785, 26908, 198, 220, 220, 220, 220, 220, 220, 220, 4159, 62, 70, 457, 62, 1477, 796, 300, 74, 79, 13, 1084, 273, 62, 45828, 62, 70, 457, 62, 1477, 198, 220, 220, 220, 220, 220, 220, 220, 479, 1084, 273, 796, 300, 74, 79, 13, 74, 1084, 273, 62, 45828, 198, 220, 220, 220, 886, 628, 220, 220, 220, 46651, 62, 1084, 273, 796, 19446, 7, 15, 8, 198, 220, 220, 220, 14187, 17, 71, 8957, 796, 19446, 7, 15, 13, 486, 8, 1303, 279, 3372, 874, 284, 35246, 404, 3372, 874, 198, 220, 220, 220, 5894, 62, 22584, 796, 19446, 7, 16, 8, 1220, 357, 9792, 7, 16, 8, 1343, 410, 43395, 62, 71, 17, 78, 8, 628, 220, 220, 220, 2488, 259, 65, 3733, 1179, 62, 259, 62, 65, 358, 796, 45329, 457, 532, 357, 75, 74, 79, 13, 65, 358, 62, 2475, 82, 62, 70, 457, 58, 16, 11, 24283, 358, 60, 532, 352, 8, 628, 220, 220, 220, 2488, 259, 65, 3733, 329, 1312, 287, 4159, 62, 65, 358, 62, 301, 58, 571, 358, 5974, 7, 1084, 273, 62, 65, 358, 62, 301, 58, 571, 358, 1343, 352, 60, 532, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 410, 43395, 62, 320, 48624, 796, 651, 62, 14761, 81, 7, 14761, 81, 11, 4686, 87, 62, 70, 1386, 62, 1084, 273, 58, 72, 4357, 1278, 323, 11, 308, 4033, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 410, 43395, 62, 320, 48624, 1875, 304, 862, 7, 9792, 8, 1635, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20796, 796, 410, 43395, 62, 320, 48624, 1635, 951, 62, 39140, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4159, 62, 1416, 2040, 62, 4480, 62, 43337, 58, 72, 60, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20796, 1635, 28, 357, 8957, 17, 71, 8957, 1635, 279, 62, 10724, 1220, 256, 62, 10724, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 22649, 796, 4686, 87, 62, 1416, 4272, 62, 22649, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 264, 22649, 1875, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5046, 62, 1525, 62, 785, 26908, 58, 72, 60, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20796, 1635, 28, 357, 9792, 7, 16, 8, 532, 651, 62, 14761, 81, 7, 14761, 81, 11, 264, 22649, 11, 1278, 323, 11, 308, 4033, 8, 1635, 5894, 62, 22584, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20796, 1635, 28, 651, 62, 14761, 81, 7, 14761, 81, 11, 264, 22649, 11, 1278, 323, 11, 308, 4033, 8, 1635, 5894, 62, 22584, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 62, 17946, 796, 4159, 62, 70, 457, 62, 1477, 58, 72, 60, 1343, 1179, 62, 259, 62, 65, 358, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46651, 62, 1084, 273, 15853, 987, 79, 17, 67, 7, 69, 138, 115, 16, 11, 277, 138, 115, 17, 11, 10117, 45787, 11, 479, 1084, 273, 11, 479, 62, 17946, 11, 474, 138, 115, 16, 11, 474, 138, 115, 17, 11, 474, 29510, 8, 1635, 20796, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 46651, 62, 1084, 273, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 24061, 62, 32830, 62, 2433, 42342, 7, 198, 220, 220, 220, 220, 220, 220, 220, 300, 74, 79, 3712, 8567, 4933, 17887, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14673, 78, 3712, 40, 11, 198, 220, 220, 220, 220, 220, 220, 220, 951, 62, 39140, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 410, 43395, 62, 71, 17, 78, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 29510, 3712, 40, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10117, 45787, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 138, 115, 16, 3712, 40, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 138, 115, 17, 3712, 40, 11, 198, 220, 220, 220, 220, 220, 220, 220, 277, 138, 115, 16, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 277, 138, 115, 17, 3712, 9792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 45329, 457, 3712, 40, 11, 198, 220, 220, 220, 1267, 810, 1391, 9792, 27, 25, 23839, 43879, 11, 40, 27, 25, 5317, 92, 198, 198, 7293, 1133, 7760, 42342, 45765, 18480, 21593, 329, 1790, 19204, 1917, 198, 37811, 198, 31, 45145, 2163, 24061, 62, 32830, 62, 2433, 42342, 7, 198, 220, 220, 220, 300, 74, 79, 3712, 8567, 4933, 17887, 11, 198, 220, 220, 220, 14673, 78, 3712, 40, 11, 198, 220, 220, 220, 951, 62, 39140, 3712, 9792, 11, 198, 220, 220, 220, 410, 43395, 62, 71, 17, 78, 3712, 9792, 11, 198, 220, 220, 220, 474, 29510, 3712, 40, 11, 198, 220, 220, 220, 10117, 45787, 3712, 9792, 11, 198, 220, 220, 220, 474, 138, 115, 16, 3712, 40, 11, 198, 220, 220, 220, 474, 138, 115, 17, 3712, 40, 11, 198, 220, 220, 220, 277, 138, 115, 16, 3712, 9792, 11, 198, 220, 220, 220, 277, 138, 115, 17, 3712, 9792, 11, 198, 220, 220, 220, 45329, 457, 3712, 40, 11, 198, 8, 810, 1391, 9792, 1279, 25, 27741, 43879, 11, 314, 1279, 25, 2558, 92, 198, 220, 220, 220, 611, 14673, 78, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 46651, 62, 2433, 796, 987, 79, 17, 67, 7, 69, 138, 115, 16, 11, 277, 138, 115, 17, 11, 10117, 45787, 11, 300, 74, 79, 13, 2433, 75, 62, 21037, 11, 45329, 457, 11, 474, 138, 115, 16, 11, 474, 138, 115, 17, 11, 474, 29510, 8, 1635, 357, 14761, 81, 62, 71, 17, 78, 1343, 19446, 7, 16, 4008, 1635, 951, 62, 39140, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 46651, 62, 2433, 796, 987, 79, 17, 67, 7, 69, 138, 115, 16, 11, 277, 138, 115, 17, 11, 10117, 45787, 11, 300, 74, 79, 13, 2433, 75, 62, 45828, 11, 45329, 457, 11, 474, 138, 115, 16, 11, 474, 138, 115, 17, 11, 474, 29510, 8, 1635, 357, 14761, 81, 62, 71, 17, 78, 1343, 19446, 7, 16, 4008, 1635, 951, 62, 39140, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 46651, 62, 2433, 198, 437, 198, 198, 31, 45145, 2163, 24061, 62, 32830, 62, 2433, 42342, 7, 75, 74, 79, 3712, 8567, 4933, 43, 54, 90, 40, 11, 19446, 5512, 26498, 23029, 810, 1391, 9792, 1279, 25, 27741, 43879, 11, 314, 1279, 25, 2558, 92, 198, 220, 220, 220, 1441, 19446, 7, 15, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 24061, 62, 75, 86, 62, 11578, 694, 62, 10677, 0, 7, 198, 220, 220, 220, 220, 220, 220, 220, 300, 74, 79, 3712, 8567, 4933, 43, 54, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 138, 115, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 138, 115, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 277, 138, 115, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 277, 138, 115, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 18302, 301, 11, 198, 220, 220, 220, 220, 220, 220, 220, 277, 8439, 11, 198, 220, 220, 220, 220, 220, 220, 220, 474, 29510, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10117, 45787, 11, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 45329, 457, 11, 198, 220, 220, 220, 220, 220, 220, 220, 24283, 358, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1278, 323, 11, 198, 220, 220, 220, 220, 220, 220, 220, 308, 4033, 11, 198, 220, 220, 220, 220, 220, 220, 220, 264, 69, 11, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 2768, 11, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 82, 16072, 11, 198, 220, 220, 220, 1267, 198, 198, 7293, 1769, 5224, 694, 4237, 329, 262, 890, 19204, 1917, 13, 198, 198, 37811, 198, 31, 45145, 2163, 24061, 62, 75, 86, 62, 11578, 694, 62, 10677, 0, 7, 198, 220, 220, 220, 300, 74, 79, 3712, 8567, 4933, 43, 54, 11, 198, 220, 220, 220, 474, 138, 115, 16, 11, 198, 220, 220, 220, 474, 138, 115, 17, 11, 198, 220, 220, 220, 277, 138, 115, 16, 11, 198, 220, 220, 220, 277, 138, 115, 17, 11, 198, 220, 220, 220, 474, 18302, 301, 11, 198, 220, 220, 220, 277, 8439, 11, 198, 220, 220, 220, 474, 29510, 11, 198, 220, 220, 220, 10117, 45787, 11, 198, 220, 220, 220, 256, 62, 10724, 11, 198, 220, 220, 220, 45329, 457, 11, 198, 220, 220, 220, 24283, 358, 11, 198, 220, 220, 220, 1278, 323, 11, 198, 220, 220, 220, 308, 4033, 11, 198, 220, 220, 220, 264, 69, 11, 198, 220, 220, 220, 256, 62, 2768, 11, 198, 220, 220, 220, 256, 62, 82, 16072, 11, 198, 8, 198, 220, 220, 220, 357, 26, 1410, 694, 62, 69, 7861, 11, 256, 62, 11578, 694, 11, 299, 62, 83, 62, 489, 77, 74, 11, 2006, 489, 77, 74, 8, 796, 300, 74, 79, 198, 220, 220, 220, 357, 26, 3830, 62, 10459, 11, 23145, 62, 10459, 62, 1939, 11, 23145, 62, 10459, 62, 12501, 11, 264, 16072, 62, 10459, 8, 796, 264, 69, 198, 220, 220, 220, 1303, 24061, 5224, 694, 13390, 198, 220, 220, 220, 279, 62, 31944, 796, 987, 79, 18, 67, 7, 73, 138, 115, 16, 11, 474, 138, 115, 17, 11, 277, 138, 115, 16, 11, 277, 138, 115, 17, 11, 474, 29510, 11, 10117, 45787, 11, 474, 18302, 301, 11, 277, 8439, 11, 1410, 694, 62, 69, 7861, 11, 45329, 457, 8, 628, 220, 220, 220, 1410, 694, 62, 22046, 796, 357, 83, 62, 11578, 694, 11, 2006, 489, 77, 74, 11, 24283, 358, 8, 198, 220, 220, 220, 1303, 14492, 3830, 62, 10459, 198, 220, 220, 220, 2488, 259, 65, 3733, 3830, 62, 10459, 58, 4743, 323, 11, 308, 4033, 60, 796, 987, 79, 16, 67, 7, 83, 62, 10724, 11, 1410, 694, 62, 22046, 23029, 1635, 279, 62, 31944, 198, 220, 220, 220, 1303, 14492, 23145, 62, 10459, 62, 1939, 198, 220, 220, 220, 2488, 259, 65, 3733, 23145, 62, 10459, 62, 1939, 58, 4743, 323, 11, 308, 4033, 60, 796, 987, 79, 16, 67, 7, 83, 62, 2768, 58, 4743, 323, 1343, 352, 11, 308, 4033, 4357, 1410, 694, 62, 22046, 23029, 1635, 279, 62, 31944, 198, 220, 220, 220, 1303, 14492, 23145, 62, 10459, 62, 12501, 198, 220, 220, 220, 2488, 259, 65, 3733, 23145, 62, 10459, 62, 12501, 58, 4743, 323, 11, 308, 4033, 60, 796, 987, 79, 16, 67, 7, 83, 62, 2768, 58, 4743, 323, 11, 308, 4033, 4357, 1410, 694, 62, 22046, 23029, 1635, 279, 62, 31944, 198, 220, 220, 220, 611, 1278, 323, 6624, 352, 1303, 14492, 264, 16072, 62, 10459, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 65, 3733, 264, 16072, 62, 10459, 58, 70, 4033, 60, 796, 987, 79, 16, 67, 7, 83, 62, 82, 16072, 11, 1410, 694, 62, 22046, 23029, 1635, 279, 62, 31944, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2147, 198, 437, 198, 198, 31, 45145, 2163, 24061, 62, 75, 86, 62, 11578, 694, 62, 10677, 0, 7, 75, 74, 79, 3712, 8567, 4933, 17887, 11, 26498, 23029, 198, 220, 220, 220, 1441, 2147, 198, 437, 198 ]
1.835098
6,234
###============================================================================= # # FILE: Infra.jl # # USAGE: include("../Infra.jl") # # DESCRIPTION: Julia interface to launch containers through Azure VM # # OPTIONS: --- # DEPENDENCIES: sshpass # BUGS: --- # NOTES: --- # AUTHOR: <NAME> <<EMAIL>> # ORGANIZATION: GSD-UFAL # CREATED: 23-09-2015 17:16 # ###============================================================================= module Infra using Requests: get, parse using Docker ###== Top-level variables ====================================================== const nprocs=16 # number of cpu cores available from server const ssh_key=homedir()*"/.ssh/azkey" const ssh_pubkey=homedir()*"/.ssh/azkey.pub" const carray_dir= length(LOAD_PATH) == 3 ? LOAD_PATH[3]*"Infra/src" : Pkg.dir("Infra")*"/src" # Infra package directory ###============================================================================= type GlobalSettings host::ASCIIString url::ASCIIString passwd::ASCIIString cpuset::Array{Int64,1} # number of cpu cores available from server end type Container # Abstraction for Docker container cid::AbstractString pid::Integer cpuset::Array{Int64,1} mem_size::Integer function Container(cid,pid,cpuset=[],mem_size=512) return new(cid,pid,cpuset,mem_size) end end const map_containers = Dict{Integer, Container}() GlobalSettings() = GlobalSettings("","","",collect(0:nprocs-1)) const SETTINGS = GlobalSettings() set_h(h) = SETTINGS.host=h set_url(u) = SETTINGS.url=u set_passwd(p) = SETTINGS.passwd=p set_cpuset(c) = SETTINGS.cpuset=c let next_key = 1 # cid -> container id global get_next_key function get_next_key() retval = next_key next_key += 1 retval end end function parse_cpuset(n_of_cpus) if (n_of_cpus == 0 || length(SETTINGS.cpuset) < n_of_cpus) "",[] else s = strip(string(SETTINGS.cpuset[1:n_of_cpus]),['[',']']) a = SETTINGS.cpuset[1:n_of_cpus] deleteat!(SETTINGS.cpuset,1:n_of_cpus) s,a end end @doc """ ### set_host(h::AbstractString,p::AbstractString) Configures passwordless SSH connections at host `h` whose password is `p`. This function calls the `cloud_setup.sh` script which requires `sshpass`. ```Example set_host("cloudarray.cloudapp.net","password") ``` """ -> function set_host(h::AbstractString,p::AbstractString) reply = success(`$(carray_dir)/cloud_setup.sh $h $p`) # set up ssh. if errors occurs, return false if (reply) set_h(h) set_url(h*":4243") set_passwd(p) true else error("There is an error during SSH configuration. Please see the log for more details: cloud_setup.log") false end end function get_port() response = get("http://$(SETTINGS.host):8000") parse(Int,join(map(Char,response.data))) end @doc """ ### create_containers(n_of_containers::Integer, n_of_cpus::Integer, mem_size::Integer; tunnel::bool) Launches Docker containers and adds them as Julia workers configured with passwordless SSH. This function requires `sshpass` to be installed: * Debian-based Linux distros as Ubuntu: ``` sudo apt-get install sshpass ``` * OS X through [macports](http://macports.org): ``` sudo port install sshpass ``` ```Example create_containers(2,3,1024) # 2 containers with 3 CPU Cores and 1gb RAM create_containers(1,2,512) # 1 container with 2 CPU Cores and 512mb RAM ``` """ -> function create_containers(n_of_containers::Integer, n_of_cpus=0, mem_size=512;tunnel=false) reserved_mem=200 # reserved memory for initializing a worker into a container mem_size=mem_size+reserved_mem for i in 1:n_of_containers ssh_config = false key = get_next_key() port = 3000+get_port() n_of_cpus=parse_cpuset(n_of_cpus) # Creating a docker container at VM info("Creating container ($key)...") container = Docker.create_container("$(SETTINGS.url)","cloudarray:latest",memory=mem_size*(10^6),cpuSets=n_of_cpus[1],portBindings=[22,"$port"]) Docker.start_container("$(SETTINGS.url)",container["Id"]) info("Creating container ($key)... OK") # Configuring ssh without password (transfer public key to container) info("SSH configuration ($key)... ") while !ssh_config ssh_config = success(pipeline(`cat $ssh_pubkey`,`sshpass -p $(SETTINGS.passwd) ssh -o StrictHostKeyChecking=no -p $port root@$(SETTINGS.host) 'umask 077; mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys'`)) # if ssh configuration is successful: return true or false if !ssh_config info("SSH configuration ($key) failed! Trying again...") end end info("SSH configuration ($key)... OK") info("Adding worker ($key)...") pid = addprocs(["root@$(SETTINGS.host)"];tunnel=tunnel,sshflags=`-i $ssh_key -p $port`,dir="/opt/julia/bin",exename="/opt/julia/bin/julia") info("Adding worker ($key)... OK") map_containers[key] = Container(chomp(container["Id"]),pid[1],n_of_cpus[2],mem_size) # Adding Container to Dict end end @doc """ ### delete_containers(args...) Removes the specified container(s)/worker(s). ```Example delete_containers(3) # delete container 3 create_containers(1:5) # delete from 1st to 5th container create_containers(all) # delete all containers ``` """ -> function delete_containers(args...) # (splat) variable number of arguments. Ex.: delete_containers(1,2,3) or delete_containers(1:3) containers_rmlist = Dict() if vcat(args...)[1] == all for i in collect(keys(map_containers)) if haskey(map_containers, i) # container exist? container = map_containers[i] rmprocs(container.pid) delete!(map_containers,i) set_cpuset(collect(0:nprocs-1)) Docker.remove_container("$(SETTINGS.url)","$(container.cid)") end end else for i in vcat(args...) # vcat -> concatenate to a array 1 dimension if haskey(map_containers, i) # container exist? container = map_containers[i] rmprocs(container.pid) delete!(map_containers,i) set_cpuset([container.cpuset;SETTINGS.cpuset]) Docker.remove_container("$(SETTINGS.url)","$(container.cid)") end end end end @doc """ ### containers() Returns the list of all containers' processes identifiers (IDs). ```Example containers() ``` """ -> function containers() sort(collect(keys(map_containers))) end @doc """ ### ncontainers() Gets the number of available container processes. ```Example ncontainers() ``` """ -> function ncontainers() length(map_containers) end @doc """ ### list_containers() List container(s) as a sorted list. ```Example list_containers() ``` """ -> function list_containers() for key in sort(collect(keys(map_containers))) println("$key => $(map_containers[key])") end end @doc """ ### mem_usage(key::Integer) Returns the container memory usage. ```Example mem_usage(number_of_container) ``` """ -> function mem_usage(key::Integer) Docker.stats_container("$(SETTINGS.url)","$(map_containers[key].cid)")["memory_stats"]["usage"]/10^6 end @doc """ ### cpu_usage(key::Integer) Returns the container CPU usage (%). ```Example cpu_usage(number_of_container) ``` """ -> function cpu_usage(key) stats = Docker.stats_container("$(SETTINGS.url)","$(map_containers[key].cid)") percpu_usage = stats["cpu_stats"]["cpu_usage"]["percpu_usage"] previousSystem = stats["precpu_stats"]["system_cpu_usage"] previousCPU = stats["precpu_stats"]["cpu_usage"]["total_usage"] totalUsage = stats["cpu_stats"]["cpu_usage"]["total_usage"] systemUsage = stats["cpu_stats"]["system_cpu_usage"] cpuPercent = 0.0 cpuDelta = totalUsage - previousCPU systemDelta = systemUsage - previousSystem cpuPercent = (cpuDelta / systemDelta) * length(percpu_usage) * 100.0 cpuPercent end @doc """ ### io_usage(key::Integer) Returns the number of kilobytes read and written by the cgroup. ```Example io_usage(number_of_container) ``` """ -> function io_usage(key::Integer) stats = Docker.stats_container("$(SETTINGS.url)","$(map_containers[key].cid)")["blkio_stats"] w = stats["io_service_bytes_recursive"][1]["value"]/10^3 # write r = stats["io_service_bytes_recursive"][2]["value"]/10^3 # read [w,r] end @doc """ ### net_usage(key::Integer) Returns networking TX/RX usage. tx = number of bytes transmitted rx = number of bytes reiceved ```Example net_usage(number_of_container) ``` """ -> function net_usage(key::Integer) stats = Docker.stats_container("$(SETTINGS.url)","$(map_containers[key].cid)")["networks"]["eth0"] tx = stats["tx_bytes"] rx = stats["rx_bytes"] [tx,rx] end end
[ 21017, 23926, 25609, 28, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45811, 25, 4806, 430, 13, 20362, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 1294, 11879, 25, 2291, 7203, 40720, 18943, 430, 13, 20362, 4943, 198, 2, 198, 2, 220, 220, 22196, 40165, 25, 22300, 7071, 284, 4219, 16472, 832, 22134, 16990, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 39852, 11053, 25, 11420, 198, 2, 220, 5550, 47, 10619, 24181, 11015, 25, 26678, 6603, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 7340, 50, 25, 11420, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 5626, 1546, 25, 11420, 198, 2, 220, 220, 220, 220, 220, 220, 220, 44746, 25, 1279, 20608, 29, 9959, 27630, 4146, 4211, 198, 2, 220, 6375, 45028, 14887, 6234, 25, 402, 10305, 12, 36820, 1847, 198, 2, 220, 220, 220, 220, 220, 220, 29244, 11617, 25, 2242, 12, 2931, 12, 4626, 1596, 25, 1433, 198, 2, 198, 21017, 23926, 25609, 28, 198, 198, 21412, 4806, 430, 198, 198, 3500, 9394, 3558, 25, 651, 11, 21136, 198, 3500, 25716, 198, 198, 21017, 855, 5849, 12, 5715, 9633, 46111, 4770, 1421, 28, 198, 198, 9979, 299, 1676, 6359, 28, 1433, 1303, 1271, 286, 42804, 21758, 1695, 422, 4382, 198, 9979, 26678, 62, 2539, 28, 71, 12657, 343, 3419, 9, 1, 11757, 45824, 14, 1031, 2539, 1, 198, 9979, 26678, 62, 12984, 2539, 28, 71, 12657, 343, 3419, 9, 1, 11757, 45824, 14, 1031, 2539, 13, 12984, 1, 198, 9979, 1097, 2433, 62, 15908, 28, 4129, 7, 35613, 62, 34219, 8, 6624, 513, 5633, 17579, 2885, 62, 34219, 58, 18, 60, 9, 1, 18943, 430, 14, 10677, 1, 1058, 350, 10025, 13, 15908, 7203, 18943, 430, 4943, 9, 1, 14, 10677, 1, 1303, 4806, 430, 5301, 8619, 198, 198, 21017, 23926, 25609, 28, 198, 198, 4906, 8060, 26232, 198, 220, 220, 220, 2583, 3712, 42643, 3978, 10100, 198, 220, 220, 220, 19016, 3712, 42643, 3978, 10100, 198, 220, 220, 220, 1208, 16993, 3712, 42643, 3978, 10100, 198, 220, 220, 220, 31396, 385, 316, 3712, 19182, 90, 5317, 2414, 11, 16, 92, 1303, 1271, 286, 42804, 21758, 1695, 422, 4382, 198, 437, 198, 198, 4906, 43101, 1303, 2275, 301, 7861, 329, 25716, 9290, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 312, 3712, 23839, 10100, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46514, 3712, 46541, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31396, 385, 316, 3712, 19182, 90, 5317, 2414, 11, 16, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1066, 62, 7857, 3712, 46541, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2163, 43101, 7, 66, 312, 11, 35317, 11, 13155, 385, 316, 41888, 4357, 11883, 62, 7857, 28, 25836, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 649, 7, 66, 312, 11, 35317, 11, 13155, 385, 316, 11, 11883, 62, 7857, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 437, 198, 198, 9979, 3975, 62, 3642, 50221, 796, 360, 713, 90, 46541, 11, 43101, 92, 3419, 198, 198, 22289, 26232, 3419, 796, 8060, 26232, 7203, 2430, 2430, 1600, 33327, 7, 15, 25, 77, 1676, 6359, 12, 16, 4008, 198, 9979, 25823, 51, 20754, 796, 8060, 26232, 3419, 198, 198, 2617, 62, 71, 7, 71, 8, 796, 25823, 51, 20754, 13, 4774, 28, 71, 198, 2617, 62, 6371, 7, 84, 8, 796, 25823, 51, 20754, 13, 6371, 28, 84, 198, 2617, 62, 6603, 16993, 7, 79, 8, 796, 25823, 51, 20754, 13, 6603, 16993, 28, 79, 198, 2617, 62, 13155, 385, 316, 7, 66, 8, 796, 25823, 51, 20754, 13, 13155, 385, 316, 28, 66, 198, 198, 1616, 1306, 62, 2539, 796, 352, 220, 220, 220, 1303, 269, 312, 4613, 9290, 4686, 198, 220, 220, 220, 3298, 651, 62, 19545, 62, 2539, 198, 220, 220, 220, 2163, 651, 62, 19545, 62, 2539, 3419, 1005, 2100, 796, 1306, 62, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 1306, 62, 2539, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1005, 2100, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 21136, 62, 13155, 385, 316, 7, 77, 62, 1659, 62, 13155, 385, 8, 198, 220, 220, 220, 611, 357, 77, 62, 1659, 62, 13155, 385, 6624, 657, 8614, 4129, 7, 28480, 51, 20754, 13, 13155, 385, 316, 8, 1279, 299, 62, 1659, 62, 13155, 385, 8, 198, 220, 220, 220, 220, 220, 220, 220, 366, 1600, 21737, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 264, 796, 10283, 7, 8841, 7, 28480, 51, 20754, 13, 13155, 385, 316, 58, 16, 25, 77, 62, 1659, 62, 13155, 385, 46570, 17816, 58, 3256, 20520, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 257, 796, 25823, 51, 20754, 13, 13155, 385, 316, 58, 16, 25, 77, 62, 1659, 62, 13155, 385, 60, 198, 220, 220, 220, 220, 220, 220, 220, 12233, 265, 0, 7, 28480, 51, 20754, 13, 13155, 385, 316, 11, 16, 25, 77, 62, 1659, 62, 13155, 385, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 11, 64, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 15390, 37227, 198, 21017, 900, 62, 4774, 7, 71, 3712, 23839, 10100, 11, 79, 3712, 23839, 10100, 8, 198, 198, 16934, 942, 9206, 1203, 33825, 8787, 379, 2583, 4600, 71, 63, 3025, 9206, 318, 4600, 79, 44646, 198, 198, 1212, 2163, 3848, 262, 4600, 17721, 62, 40406, 13, 1477, 63, 4226, 543, 4433, 4600, 45824, 6603, 44646, 198, 198, 15506, 63, 16281, 198, 2617, 62, 4774, 7203, 17721, 18747, 13, 17721, 1324, 13, 3262, 2430, 28712, 4943, 198, 15506, 63, 198, 37811, 4613, 198, 8818, 900, 62, 4774, 7, 71, 3712, 23839, 10100, 11, 79, 3712, 23839, 10100, 8, 198, 220, 220, 220, 10971, 796, 1943, 7, 63, 3, 7, 7718, 2433, 62, 15908, 20679, 17721, 62, 40406, 13, 1477, 720, 71, 720, 79, 63, 8, 1303, 900, 510, 26678, 13, 611, 8563, 8833, 11, 1441, 3991, 198, 220, 220, 220, 611, 357, 47768, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 62, 71, 7, 71, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 62, 6371, 7, 71, 9, 1298, 19, 26660, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 900, 62, 6603, 16993, 7, 79, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2081, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 1858, 318, 281, 4049, 1141, 33825, 8398, 13, 4222, 766, 262, 2604, 329, 517, 3307, 25, 6279, 62, 40406, 13, 6404, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 3991, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 651, 62, 634, 3419, 198, 220, 220, 220, 2882, 796, 651, 7203, 4023, 1378, 3, 7, 28480, 51, 20754, 13, 4774, 2599, 33942, 4943, 198, 220, 220, 220, 21136, 7, 5317, 11, 22179, 7, 8899, 7, 12441, 11, 26209, 13, 7890, 22305, 198, 437, 198, 198, 31, 15390, 37227, 198, 21017, 2251, 62, 3642, 50221, 7, 77, 62, 1659, 62, 3642, 50221, 3712, 46541, 11, 299, 62, 1659, 62, 13155, 385, 3712, 46541, 11, 1066, 62, 7857, 3712, 46541, 26, 13275, 3712, 30388, 8, 198, 198, 46182, 2052, 25716, 16472, 290, 6673, 606, 355, 22300, 3259, 17839, 351, 9206, 1203, 33825, 13, 198, 198, 1212, 2163, 4433, 4600, 45824, 6603, 63, 284, 307, 6589, 25, 198, 198, 9, 26062, 12, 3106, 7020, 1233, 4951, 355, 14949, 25, 198, 198, 15506, 63, 198, 24032, 15409, 12, 1136, 2721, 26678, 6603, 198, 15506, 63, 198, 198, 9, 7294, 1395, 832, 685, 20285, 3742, 16151, 4023, 1378, 20285, 3742, 13, 2398, 2599, 198, 198, 15506, 63, 198, 24032, 2493, 2721, 26678, 6603, 198, 15506, 63, 628, 198, 15506, 63, 16281, 198, 17953, 62, 3642, 50221, 7, 17, 11, 18, 11, 35500, 8, 1303, 362, 16472, 351, 513, 9135, 327, 2850, 290, 352, 22296, 13931, 198, 17953, 62, 3642, 50221, 7, 16, 11, 17, 11, 25836, 8, 220, 1303, 352, 9290, 351, 362, 9135, 327, 2850, 290, 22243, 2022, 13931, 198, 15506, 63, 198, 37811, 4613, 198, 8818, 2251, 62, 3642, 50221, 7, 77, 62, 1659, 62, 3642, 50221, 3712, 46541, 11, 299, 62, 1659, 62, 13155, 385, 28, 15, 11, 1066, 62, 7857, 28, 25836, 26, 28286, 4954, 28, 9562, 8, 198, 220, 220, 220, 220, 220, 220, 220, 10395, 62, 11883, 28, 2167, 1303, 10395, 4088, 329, 4238, 2890, 257, 8383, 656, 257, 9290, 198, 220, 220, 220, 220, 220, 220, 220, 1066, 62, 7857, 28, 11883, 62, 7857, 10, 411, 8520, 62, 11883, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 77, 62, 1659, 62, 3642, 50221, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26678, 62, 11250, 796, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1994, 796, 651, 62, 19545, 62, 2539, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2493, 796, 20343, 10, 1136, 62, 634, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 62, 1659, 62, 13155, 385, 28, 29572, 62, 13155, 385, 316, 7, 77, 62, 1659, 62, 13155, 385, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 30481, 257, 36253, 9290, 379, 16990, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7508, 7203, 32071, 9290, 7198, 2539, 8, 9313, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9290, 796, 25716, 13, 17953, 62, 34924, 7203, 3, 7, 28480, 51, 20754, 13, 6371, 8, 2430, 17721, 18747, 25, 42861, 1600, 31673, 28, 11883, 62, 7857, 9, 7, 940, 61, 21, 828, 36166, 50, 1039, 28, 77, 62, 1659, 62, 13155, 385, 58, 16, 4357, 634, 36180, 654, 41888, 1828, 553, 3, 634, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25716, 13, 9688, 62, 34924, 7203, 3, 7, 28480, 51, 20754, 13, 6371, 42501, 34924, 14692, 7390, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7508, 7203, 32071, 9290, 7198, 2539, 26513, 7477, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 17056, 870, 26678, 1231, 9206, 357, 39437, 1171, 1994, 284, 9290, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7508, 7203, 5432, 39, 8398, 7198, 2539, 26513, 366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 5145, 45824, 62, 11250, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26678, 62, 11250, 796, 1943, 7, 79, 541, 4470, 7, 63, 9246, 720, 45824, 62, 12984, 2539, 47671, 63, 45824, 6603, 532, 79, 29568, 28480, 51, 20754, 13, 6603, 16993, 8, 26678, 532, 78, 520, 2012, 17932, 9218, 9787, 278, 28, 3919, 532, 79, 720, 634, 6808, 31, 3, 7, 28480, 51, 20754, 13, 4774, 8, 705, 388, 2093, 657, 3324, 26, 33480, 15908, 532, 79, 39763, 45824, 26, 3797, 9609, 39763, 45824, 14, 19721, 62, 13083, 6, 63, 4008, 1303, 611, 26678, 8398, 318, 4388, 25, 1441, 2081, 393, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 45824, 62, 11250, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7508, 7203, 5432, 39, 8398, 7198, 2539, 8, 4054, 0, 31165, 757, 9313, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7508, 7203, 5432, 39, 8398, 7198, 2539, 26513, 7477, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7508, 7203, 32901, 8383, 7198, 2539, 8, 9313, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46514, 796, 751, 1676, 6359, 7, 14692, 15763, 31, 3, 7, 28480, 51, 20754, 13, 4774, 8, 8973, 26, 28286, 4954, 28, 28286, 4954, 11, 45824, 33152, 28, 63, 12, 72, 720, 45824, 62, 2539, 532, 79, 720, 634, 47671, 15908, 35922, 8738, 14, 73, 43640, 14, 8800, 1600, 1069, 12453, 35922, 8738, 14, 73, 43640, 14, 8800, 14, 73, 43640, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7508, 7203, 32901, 8383, 7198, 2539, 26513, 7477, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3975, 62, 3642, 50221, 58, 2539, 60, 796, 43101, 7, 354, 3361, 7, 34924, 14692, 7390, 8973, 828, 35317, 58, 16, 4357, 77, 62, 1659, 62, 13155, 385, 58, 17, 4357, 11883, 62, 7857, 8, 1303, 18247, 43101, 284, 360, 713, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 437, 198, 198, 31, 15390, 37227, 198, 21017, 12233, 62, 3642, 50221, 7, 22046, 23029, 198, 198, 8413, 5241, 262, 7368, 9290, 7, 82, 20679, 28816, 7, 82, 737, 198, 198, 15506, 63, 16281, 198, 33678, 62, 3642, 50221, 7, 18, 8, 220, 220, 220, 1303, 12233, 9290, 513, 198, 17953, 62, 3642, 50221, 7, 16, 25, 20, 8, 220, 1303, 12233, 422, 352, 301, 284, 642, 400, 9290, 198, 17953, 62, 3642, 50221, 7, 439, 8, 220, 1303, 12233, 477, 16472, 198, 15506, 63, 198, 37811, 4613, 198, 8818, 12233, 62, 3642, 50221, 7, 22046, 23029, 1303, 220, 357, 22018, 265, 8, 7885, 1271, 286, 7159, 13, 1475, 11207, 12233, 62, 3642, 50221, 7, 16, 11, 17, 11, 18, 8, 393, 12233, 62, 3642, 50221, 7, 16, 25, 18, 8, 198, 220, 220, 220, 16472, 62, 81, 4029, 396, 796, 360, 713, 3419, 198, 220, 220, 220, 611, 410, 9246, 7, 22046, 23029, 58, 16, 60, 6624, 477, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2824, 7, 13083, 7, 8899, 62, 3642, 50221, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 468, 2539, 7, 8899, 62, 3642, 50221, 11, 1312, 8, 1303, 9290, 2152, 30, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9290, 796, 3975, 62, 3642, 50221, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42721, 1676, 6359, 7, 34924, 13, 35317, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12233, 0, 7, 8899, 62, 3642, 50221, 11, 72, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 900, 62, 13155, 385, 316, 7, 33327, 7, 15, 25, 77, 1676, 6359, 12, 16, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25716, 13, 28956, 62, 34924, 7203, 3, 7, 28480, 51, 20754, 13, 6371, 8, 2430, 3, 7, 34924, 13, 66, 312, 8, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 410, 9246, 7, 22046, 23029, 1303, 410, 9246, 4613, 1673, 36686, 378, 284, 257, 7177, 352, 15793, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 468, 2539, 7, 8899, 62, 3642, 50221, 11, 1312, 8, 1303, 9290, 2152, 30, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9290, 796, 3975, 62, 3642, 50221, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42721, 1676, 6359, 7, 34924, 13, 35317, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12233, 0, 7, 8899, 62, 3642, 50221, 11, 72, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 900, 62, 13155, 385, 316, 26933, 34924, 13, 13155, 385, 316, 26, 28480, 51, 20754, 13, 13155, 385, 316, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25716, 13, 28956, 62, 34924, 7203, 3, 7, 28480, 51, 20754, 13, 6371, 8, 2430, 3, 7, 34924, 13, 66, 312, 8, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 628, 198, 31, 15390, 37227, 198, 21017, 16472, 3419, 198, 198, 35561, 262, 1351, 286, 477, 16472, 6, 7767, 42814, 357, 47954, 737, 198, 198, 15506, 63, 16281, 198, 3642, 50221, 3419, 198, 15506, 63, 198, 37811, 4613, 198, 8818, 16472, 3419, 198, 220, 220, 220, 3297, 7, 33327, 7, 13083, 7, 8899, 62, 3642, 50221, 22305, 198, 437, 198, 198, 31, 15390, 37227, 198, 21017, 299, 3642, 50221, 3419, 198, 198, 38, 1039, 262, 1271, 286, 1695, 9290, 7767, 13, 198, 198, 15506, 63, 16281, 198, 77, 3642, 50221, 3419, 198, 15506, 63, 198, 37811, 4613, 198, 8818, 299, 3642, 50221, 3419, 198, 220, 220, 220, 4129, 7, 8899, 62, 3642, 50221, 8, 198, 437, 198, 198, 31, 15390, 37227, 198, 21017, 1351, 62, 3642, 50221, 3419, 198, 198, 8053, 9290, 7, 82, 8, 355, 257, 23243, 1351, 13, 198, 198, 15506, 63, 16281, 198, 4868, 62, 3642, 50221, 3419, 198, 15506, 63, 198, 37811, 4613, 198, 8818, 1351, 62, 3642, 50221, 3419, 198, 220, 220, 220, 329, 1994, 287, 3297, 7, 33327, 7, 13083, 7, 8899, 62, 3642, 50221, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 3, 2539, 5218, 29568, 8899, 62, 3642, 50221, 58, 2539, 12962, 4943, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 15390, 37227, 198, 21017, 1066, 62, 26060, 7, 2539, 3712, 46541, 8, 198, 198, 35561, 262, 9290, 4088, 8748, 13, 198, 198, 15506, 63, 16281, 198, 11883, 62, 26060, 7, 17618, 62, 1659, 62, 34924, 8, 198, 15506, 63, 198, 37811, 4613, 198, 8818, 1066, 62, 26060, 7, 2539, 3712, 46541, 8, 198, 220, 220, 220, 25716, 13, 34242, 62, 34924, 7203, 3, 7, 28480, 51, 20754, 13, 6371, 8, 2430, 3, 7, 8899, 62, 3642, 50221, 58, 2539, 4083, 66, 312, 8, 4943, 14692, 31673, 62, 34242, 1, 7131, 1, 26060, 8973, 14, 940, 61, 21, 198, 437, 198, 198, 31, 15390, 37227, 198, 21017, 42804, 62, 26060, 7, 2539, 3712, 46541, 8, 198, 198, 35561, 262, 9290, 9135, 8748, 357, 18823, 198, 198, 15506, 63, 16281, 198, 36166, 62, 26060, 7, 17618, 62, 1659, 62, 34924, 8, 198, 15506, 63, 198, 37811, 4613, 198, 8818, 42804, 62, 26060, 7, 2539, 8, 198, 220, 220, 220, 9756, 796, 25716, 13, 34242, 62, 34924, 7203, 3, 7, 28480, 51, 20754, 13, 6371, 8, 2430, 3, 7, 8899, 62, 3642, 50221, 58, 2539, 4083, 66, 312, 8, 4943, 628, 220, 220, 220, 583, 36166, 62, 26060, 796, 9756, 14692, 36166, 62, 34242, 1, 7131, 1, 36166, 62, 26060, 1, 7131, 1, 525, 36166, 62, 26060, 8973, 198, 220, 220, 220, 2180, 11964, 796, 9756, 14692, 3866, 36166, 62, 34242, 1, 7131, 1, 10057, 62, 36166, 62, 26060, 8973, 198, 220, 220, 220, 2180, 36037, 796, 9756, 14692, 3866, 36166, 62, 34242, 1, 7131, 1, 36166, 62, 26060, 1, 7131, 1, 23350, 62, 26060, 8973, 198, 220, 220, 220, 2472, 28350, 796, 9756, 14692, 36166, 62, 34242, 1, 7131, 1, 36166, 62, 26060, 1, 7131, 1, 23350, 62, 26060, 8973, 198, 220, 220, 220, 1080, 28350, 796, 9756, 14692, 36166, 62, 34242, 1, 7131, 1, 10057, 62, 36166, 62, 26060, 8973, 198, 220, 220, 220, 220, 198, 220, 220, 220, 42804, 31905, 796, 657, 13, 15, 198, 220, 220, 220, 42804, 42430, 796, 2472, 28350, 532, 2180, 36037, 198, 220, 220, 220, 1080, 42430, 796, 1080, 28350, 532, 2180, 11964, 198, 220, 220, 220, 42804, 31905, 796, 357, 36166, 42430, 1220, 1080, 42430, 8, 1635, 4129, 7, 525, 36166, 62, 26060, 8, 1635, 1802, 13, 15, 198, 220, 220, 220, 42804, 31905, 198, 437, 198, 198, 31, 15390, 37227, 198, 21017, 33245, 62, 26060, 7, 2539, 3712, 46541, 8, 198, 198, 35561, 262, 1271, 286, 8769, 26730, 4879, 1100, 290, 3194, 416, 262, 269, 8094, 13, 198, 198, 15506, 63, 16281, 198, 952, 62, 26060, 7, 17618, 62, 1659, 62, 34924, 8, 198, 15506, 63, 198, 37811, 4613, 198, 8818, 33245, 62, 26060, 7, 2539, 3712, 46541, 8, 198, 220, 220, 220, 9756, 796, 25716, 13, 34242, 62, 34924, 7203, 3, 7, 28480, 51, 20754, 13, 6371, 8, 2430, 3, 7, 8899, 62, 3642, 50221, 58, 2539, 4083, 66, 312, 8, 4943, 14692, 2436, 74, 952, 62, 34242, 8973, 198, 220, 220, 220, 266, 796, 9756, 14692, 952, 62, 15271, 62, 33661, 62, 8344, 30753, 1, 7131, 16, 7131, 1, 8367, 8973, 14, 940, 61, 18, 220, 220, 1303, 3551, 198, 220, 220, 220, 374, 796, 9756, 14692, 952, 62, 15271, 62, 33661, 62, 8344, 30753, 1, 7131, 17, 7131, 1, 8367, 8973, 14, 940, 61, 18, 220, 220, 1303, 1100, 198, 220, 220, 220, 685, 86, 11, 81, 60, 198, 437, 198, 198, 31, 15390, 37227, 198, 21017, 2010, 62, 26060, 7, 2539, 3712, 46541, 8, 198, 198, 35561, 19140, 15326, 14, 49, 55, 8748, 13, 198, 198, 17602, 796, 1271, 286, 9881, 18307, 198, 40914, 796, 1271, 286, 9881, 302, 501, 1079, 198, 198, 15506, 63, 16281, 198, 3262, 62, 26060, 7, 17618, 62, 1659, 62, 34924, 8, 198, 15506, 63, 198, 37811, 4613, 198, 8818, 2010, 62, 26060, 7, 2539, 3712, 46541, 8, 198, 220, 220, 220, 9756, 796, 25716, 13, 34242, 62, 34924, 7203, 3, 7, 28480, 51, 20754, 13, 6371, 8, 2430, 3, 7, 8899, 62, 3642, 50221, 58, 2539, 4083, 66, 312, 8, 4943, 14692, 3262, 5225, 1, 7131, 1, 2788, 15, 8973, 198, 220, 220, 220, 27765, 796, 9756, 14692, 17602, 62, 33661, 8973, 198, 220, 220, 220, 374, 87, 796, 9756, 14692, 40914, 62, 33661, 8973, 198, 220, 220, 220, 685, 17602, 11, 40914, 60, 198, 437, 198, 198, 437, 198 ]
2.452375
3,727
<reponame>andrew-saydjari/DHC push!(LOAD_PATH, "/Users/saydjari/Dropbox/GradSchool_AKS/Doug/Projects/DHC/main") using DHC_2DUtils using Profile using BenchmarkTools using FFTW using HDF5 using Test using SparseArrays filter_hash = fink_filter_hash(1, 8, nx=256, pc=1, wd=1) @time filt_3d = fink_filter_bank_3dizer(filter_hash, 1, nz=256) filter_temp = zeros(256,256,256) filter_temp[filt_3d["filt_index"][56]] = filt_3d["filt_value"][56] h5write("../DHC/scratch_AKS/data/filt_3d_rs.h5", "main/data", fftshift(real(fft(filter_temp)))) h5write("../DHC/scratch_AKS/data/filt_3d_fs.h5", "main/data", fftshift(filter_temp))
[ 27, 7856, 261, 480, 29, 392, 1809, 12, 16706, 28241, 2743, 14, 35, 16045, 198, 14689, 0, 7, 35613, 62, 34219, 11, 12813, 14490, 14, 16706, 28241, 2743, 14, 26932, 3524, 14, 42731, 26130, 62, 10206, 50, 14, 42297, 14, 16775, 82, 14, 35, 16045, 14, 12417, 4943, 198, 3500, 360, 16045, 62, 17, 35, 18274, 4487, 198, 3500, 13118, 198, 3500, 25187, 4102, 33637, 198, 3500, 376, 9792, 54, 198, 3500, 5572, 37, 20, 198, 3500, 6208, 198, 3500, 1338, 17208, 3163, 20477, 198, 198, 24455, 62, 17831, 796, 277, 676, 62, 24455, 62, 17831, 7, 16, 11, 807, 11, 299, 87, 28, 11645, 11, 40653, 28, 16, 11, 266, 67, 28, 16, 8, 198, 198, 31, 2435, 1226, 83, 62, 18, 67, 796, 277, 676, 62, 24455, 62, 17796, 62, 18, 67, 7509, 7, 24455, 62, 17831, 11, 352, 11, 299, 89, 28, 11645, 8, 198, 198, 24455, 62, 29510, 796, 1976, 27498, 7, 11645, 11, 11645, 11, 11645, 8, 198, 24455, 62, 29510, 58, 69, 2326, 62, 18, 67, 14692, 69, 2326, 62, 9630, 1, 7131, 3980, 11907, 796, 1226, 83, 62, 18, 67, 14692, 69, 2326, 62, 8367, 1, 7131, 3980, 60, 198, 198, 71, 20, 13564, 7203, 40720, 35, 16045, 14, 1416, 36722, 62, 10206, 50, 14, 7890, 14, 69, 2326, 62, 18, 67, 62, 3808, 13, 71, 20, 1600, 366, 12417, 14, 7890, 1600, 277, 701, 30846, 7, 5305, 7, 487, 83, 7, 24455, 62, 29510, 35514, 198, 71, 20, 13564, 7203, 40720, 35, 16045, 14, 1416, 36722, 62, 10206, 50, 14, 7890, 14, 69, 2326, 62, 18, 67, 62, 9501, 13, 71, 20, 1600, 366, 12417, 14, 7890, 1600, 277, 701, 30846, 7, 24455, 62, 29510, 4008, 198 ]
2.185965
285
<filename>notebooks/3.quantum-computing.jl ### A Pluto.jl notebook ### # v0.12.21 using Markdown using InteractiveUtils # This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). macro bind(def, element) quote local el = $(esc(element)) global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : missing el end end # ╔═║ 1c3ff5c4-90d5-11eb-1459-7d7d43335a80 using Yao, YaoPlots, YaoExtensions, PlutoUI, Flux, Plots # ╔═║ e9342104-91cf-11eb-01d7-ffd747975c7c using LinearAlgebra # ╔═║ aa09eef8-8eac-11eb-00e6-6794d5c9e0b5 md""" # Quantum Computing Basics In case you are not familar with some basic concept of quantum computing or quantum algorithms, we will have a quick and short introduction for quantum computing. """ # ╔═║ 22f46d6e-90d5-11eb-3094-e7015012995c md""" ## Qubits The computation states are often represented as qubits in quantum computing model. A qubit is a quantum state that has two basis states ``|0⟩`` and ``|1⟩`` ## Quantum Registers A quantum register is an abstraction of the qubit memory, it usualy contains many qubits. ## Quantum Gates A quantum gate is a unitary operator that can be applied on the (quantum) register. we usually visualize it as a square block with two wires, e.g the following is a Pauli X gate. """ # ╔═║ 920da102-90d5-11eb-0437-495807d8b345 YaoPlots.plot(X) # ╔═║ a5d5d56a-90d5-11eb-1e4a-8bf893d8534a md""" ## Parameterized Quantum Gates There are some quantum gates that can take classical parameters, e.g the rotation gates on X, Y, Z or other directions. """ # ╔═║ be1f51c6-90d5-11eb-3db1-99708f112467 YaoPlots.plot(Rx(0.1)) # ╔═║ 4f4a700e-90d6-11eb-3058-b1809082853a md""" ## Controlled Gate The gate operation can be controlled by another qubits, we usually represent them as the following diagram """ # ╔═║ 6b2079e2-90d6-11eb-330c-0194f2906114 YaoPlots.plot(control(2, 1, 2=>Rx(0.1))) # ╔═║ 7854398c-90d6-11eb-2aad-b75727ab7b79 md"for controlled Pauli X gate, we also call it the CNOT gate, it can be plotted in a simpler way" # ╔═║ 9003bb5c-90d6-11eb-102e-f1954fe71ec6 YaoPlots.plot(cnot(2, 1, 2)) # ╔═║ debe78d2-90d5-11eb-1526-87f514b030bf md""" ## Quantum Circuits & Quantum Algorithms Now with the concept of register and gates, we can define quantum circuits. The quantum circuits are composition of gates and measurements. e.g the following is a quantum fourier transformation circuit, it is defined using hadamard gate ``H`` and control phase shift gate. """ # ╔═║ 0a379552-90d6-11eb-1a07-130ebf3c1264 begin A(i, j) = control(i, j=>shift(2Ο€/(1<<(i-j+1)))) B(n, k) = chain(n, j==k ? put(k=>H) : A(j, k) for j in k:n) qft(n) = chain(B(n, k) for k in 1:n) YaoPlots.plot(qft(3)) end # ╔═║ e4f1f268-91ca-11eb-231a-712cb8cf4a55 md""" ## Program with Yao checkout the website: [yaoquantum.org](https://yaoquantum.org/) """ # ╔═║ 0478efb2-91cb-11eb-034e-0b0c3be90bb7 html""" <iframe src="https://yaoquantum.org/" width=100% height=1000></iframe> """ # ╔═║ 2a546ef0-91cb-11eb-17fd-4b8c74878e6a md""" ### the quantum blocks Yao represents the quantum circuits as blocks ![](https://github.com/Roger-luo/PIML/blob/master/notebooks/assets/qblock.png?raw=true) """ # ╔═║ 76b6bf64-91cb-11eb-3c39-576a66e70cf4 qft(3) # ╔═║ c75b0244-8eac-11eb-2528-b9f59f61634d md""" ## Variational Quantum Algorithms *in some context, this is also called quantum machine learning.* Traditionally, a quantum algorithm usually requires a well designed circuits that provides an exponential speed up comparing to its classical counterparts, e.g the well known Shor algorithm. However, designing and finding such algorithms can be extremely hard, and may not be possible implemented on near term quantum devices that is noisy. """ # ╔═║ e1345ee8-8eac-11eb-3c22-0db185142833 md""" ## Differentiating Quantum Circuits: the forward mode In literature, this is usually refered as the **Parameter Shift Rule**, it was first discovered in [Quantum Circuit Learning, arXiv: 1803.00745](https://arxiv.org/pdf/1803.00745.pdf) we will now derive the rules, assume the unitary of our parameterized quantum circuit is ``U(\mathbf{ΞΈ}) = \prod_{i=1}^n U(ΞΈ_i)``, and for convenience, we will denote ``U_{j:k} = U_jβ‹―U_k`` then for an observable ``B``, the expectation value is ``⟨B(\mathbf{ΞΈ})⟩ = Tr(B U_{l:1}ρU_{l:1}^{†})`` now if we assume our unitary is generated by Pauli strings (which is not always true), we have ``U_j(ΞΈ) = exp(-iΞΈ_j P_j/2)``. The gradient of ``⟨B(\mathbf{ΞΈ})⟩`` can be calculated as following ```math \frac{\partial ⟨B⟩}{\partial ΞΈ_j} = -\frac{i}{2} (B U_{l:j} [P_j, U_{j-1:1}ρU_{j-1:1}^{†}] U_{l:j}^{†}) ``` and because we have the following relationship for arbitrary ``ρ`` ```math [P_j, ρ] = i[U_j(\frac{Ο€}{2})ρ U_j^{†}(\frac{Ο€}{2}) - U_j(-\frac{Ο€}{2})ρ U_j(-\frac{Ο€}{2})] ``` thus the gradient can be evaluated by ```math \begin{aligned} \frac{\partial B}{\partial ΞΈ_j} =& \frac{1}{2} (Tr[B U_{l:j+1}U(ΞΈ_j+\frac{Ο€}{2})U_{j-1:1}ρU_{j-1:1}^{†}U_j^{†}(ΞΈ_j+\frac{Ο€}{2})U_{l:j+1}^{†}] -\\ &Tr[B U_{l:j+1}U(ΞΈ_j-\frac{Ο€}{2})U_{j-1:1}ρU_{j-1:1}^{†}U_j^{†}(ΞΈ_j-\frac{Ο€}{2})U_{l:j+1}^{†}]) \end{aligned} ``` which means ```math \frac{\partial B}{\partial ΞΈ_j} = \frac{1}{2} (⟨B(\theta_j + \frac{Ο€}{2})⟩ - ⟨B(\theta_j - \frac{Ο€}{2})⟩) ``` """ # ╔═║ f8270b02-8eac-11eb-2ab3-3323e01f4f62 md""" ## Differentiating Quantum Circuits: the reverse mode is it possible to differentiate quantum circuits using reverse mode? """ # ╔═║ c97fffa8-91d0-11eb-0a0c-092545e368f8 md""" Only for simulation ![](https://github.com/Roger-luo/PIML/blob/master/notebooks/assets/yao-reverse-ad.png?raw=true) """ # ╔═║ 3c919a50-8ead-11eb-058f-27eceb1deeaa md""" ## Implementing A Simple Variational Quantum Eigensolver (VQE) You have learned how variational Monte Carlo works, now let's: 1. use a quantum circuit as our ansatz 2. directly calculate the energy by measure the Hamiltonian 3. use gradient based optimization to optimize the energy """ # ╔═║ 68e75bba-91ca-11eb-128f-1d6b0b7cbb78 md"first let's create a variational circuit using the `variational_circuit` function" # ╔═║ 4422a0fa-91ca-11eb-3bda-f37b2dab68b3 YaoPlots.plot(variational_circuit(5, 3)) # ╔═║ 82f2d962-91ca-11eb-2e66-597a90047e87 md"then create a quantum register at state ``|00β‹―00⟩``" # ╔═║ 895600fc-91ca-11eb-3d03-e5aedfa44576 r = zero_state(5) # ╔═║ 940657d8-91ca-11eb-33fd-63a019b4ebfc md"we can evaluate this circuit on the emulator" # ╔═║ a0527026-91ca-11eb-0604-21a298350c8d r |> variational_circuit(5, 3) # ╔═║ b8a71bf4-91ca-11eb-2f81-eb67cfeeada0 md""" we can now create a 1-D heisenberg hamiltonian ```math \sum_i \mathbf{S}_i \mathbf{S}_{i+1} ``` """ # ╔═║ da9ba108-91ca-11eb-28a4-755cf76ea605 h = heisenberg(5) # ╔═║ b3cc56a2-91cb-11eb-3736-87df27d04545 md"we can calculate the expectation value of this hamiltonian" # ╔═║ 848d146c-91cb-11eb-17cc-87a1aa3c0d76 expect(heisenberg(5), r) # ╔═║ bd3c4bca-91cb-11eb-29cf-657eb95db73d @doc expect # ╔═║ 9fe3db9c-91cb-11eb-1888-cf7dd2aa3aa1 expect(heisenberg(5), r=>variational_circuit(5, 3)) # ╔═║ a6c13932-91cb-11eb-3822-7da569e520e0 reg, βˆ‡ΞΈ = expect'(heisenberg(5), zero_state(5)=>variational_circuit(5, 3)) # ╔═║ cbacc1f8-91cb-11eb-316c-37e3da59855c md"we can use the optimizers from the ML framework `Flux`" # ╔═║ dddcbf20-91cd-11eb-2d73-2daa1643074d opt = ADAM() # ╔═║ 18d83a62-91d0-11eb-2d8d-2bc2e69785e8 md"depth=$(@bind depth Slider(1:10; show_value=true))" # ╔═║ 12aff314-91ce-11eb-36d3-772d32cb8f3e circuit = variational_circuit(5, depth) # ╔═║ e172b6f0-91cd-11eb-35be-2d44f6f26a80 begin history = [] ΞΈ = rand(nparameters(circuit)) for _ in 1:1000 reg, βˆ‡ΞΈ = expect'(heisenberg(5), zero_state(5)=>dispatch!(circuit, ΞΈ)) Flux.Optimise.update!(opt, ΞΈ, βˆ‡ΞΈ) current = expect(heisenberg(5), zero_state(5)=>dispatch!(circuit, ΞΈ)) push!(history, real(current)) end Plots.plot(history) end # ╔═║ ec0935e0-91cf-11eb-1837-334e0e92edee minimum(eigvals(Matrix(heisenberg(5)))) # ╔═║ ad0071da-8ead-11eb-31e8-b94b8bff7635 md""" ## Placement Ads: Google Summer of Code 2022 https://summerofcode.withgoogle.com/ """ # ╔═║ Cell order: # ╠═1c3ff5c4-90d5-11eb-1459-7d7d43335a80 # β•Ÿβ”€aa09eef8-8eac-11eb-00e6-6794d5c9e0b5 # β•Ÿβ”€22f46d6e-90d5-11eb-3094-e7015012995c # β•Ÿβ”€920da102-90d5-11eb-0437-495807d8b345 # β•Ÿβ”€a5d5d56a-90d5-11eb-1e4a-8bf893d8534a # β•Ÿβ”€be1f51c6-90d5-11eb-3db1-99708f112467 # β•Ÿβ”€4f4a700e-90d6-11eb-3058-b1809082853a # β•Ÿβ”€6b2079e2-90d6-11eb-330c-0194f2906114 # β•Ÿβ”€7854398c-90d6-11eb-2aad-b75727ab7b79 # β•Ÿβ”€9003bb5c-90d6-11eb-102e-f1954fe71ec6 # β•Ÿβ”€debe78d2-90d5-11eb-1526-87f514b030bf # β•Ÿβ”€0a379552-90d6-11eb-1a07-130ebf3c1264 # β•Ÿβ”€e4f1f268-91ca-11eb-231a-712cb8cf4a55 # β•Ÿβ”€0478efb2-91cb-11eb-034e-0b0c3be90bb7 # β•Ÿβ”€2a546ef0-91cb-11eb-17fd-4b8c74878e6a # ╠═76b6bf64-91cb-11eb-3c39-576a66e70cf4 # β•Ÿβ”€c75b0244-8eac-11eb-2528-b9f59f61634d # β•Ÿβ”€e1345ee8-8eac-11eb-3c22-0db185142833 # β•Ÿβ”€f8270b02-8eac-11eb-2ab3-3323e01f4f62 # β•Ÿβ”€c97fffa8-91d0-11eb-0a0c-092545e368f8 # β•Ÿβ”€3c919a50-8ead-11eb-058f-27eceb1deeaa # β•Ÿβ”€68e75bba-91ca-11eb-128f-1d6b0b7cbb78 # ╠═4422a0fa-91ca-11eb-3bda-f37b2dab68b3 # β•Ÿβ”€82f2d962-91ca-11eb-2e66-597a90047e87 # ╠═895600fc-91ca-11eb-3d03-e5aedfa44576 # β•Ÿβ”€940657d8-91ca-11eb-33fd-63a019b4ebfc # ╠═a0527026-91ca-11eb-0604-21a298350c8d # β•Ÿβ”€b8a71bf4-91ca-11eb-2f81-eb67cfeeada0 # ╠═da9ba108-91ca-11eb-28a4-755cf76ea605 # β•Ÿβ”€b3cc56a2-91cb-11eb-3736-87df27d04545 # ╠═848d146c-91cb-11eb-17cc-87a1aa3c0d76 # ╠═bd3c4bca-91cb-11eb-29cf-657eb95db73d # ╠═9fe3db9c-91cb-11eb-1888-cf7dd2aa3aa1 # ╠═a6c13932-91cb-11eb-3822-7da569e520e0 # β•Ÿβ”€cbacc1f8-91cb-11eb-316c-37e3da59855c # ╠═dddcbf20-91cd-11eb-2d73-2daa1643074d # ╠═18d83a62-91d0-11eb-2d8d-2bc2e69785e8 # ╠═12aff314-91ce-11eb-36d3-772d32cb8f3e # ╠═e172b6f0-91cd-11eb-35be-2d44f6f26a80 # ╠═e9342104-91cf-11eb-01d7-ffd747975c7c # ╠═ec0935e0-91cf-11eb-1837-334e0e92edee # β•Ÿβ”€ad0071da-8ead-11eb-31e8-b94b8bff7635
[ 27, 34345, 29, 11295, 12106, 14, 18, 13, 40972, 388, 12, 785, 48074, 13, 20362, 198, 21017, 317, 32217, 13, 20362, 20922, 44386, 198, 2, 410, 15, 13, 1065, 13, 2481, 198, 198, 3500, 2940, 2902, 198, 3500, 21365, 18274, 4487, 198, 198, 2, 770, 32217, 20922, 3544, 2488, 21653, 329, 9427, 3458, 13, 1649, 2491, 428, 20922, 2354, 286, 32217, 11, 262, 1708, 705, 76, 735, 2196, 6, 286, 2488, 21653, 3607, 5421, 9633, 257, 4277, 1988, 357, 38070, 286, 281, 4049, 737, 198, 20285, 305, 11007, 7, 4299, 11, 5002, 8, 198, 220, 220, 220, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 1957, 1288, 796, 29568, 3798, 7, 30854, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 3298, 29568, 3798, 7, 4299, 4008, 796, 7231, 13, 1324, 677, 540, 7, 14881, 13, 1136, 11, 1288, 8, 5633, 7308, 13, 1136, 7, 417, 8, 1058, 4814, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 198, 220, 220, 220, 886, 198, 437, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 352, 66, 18, 487, 20, 66, 19, 12, 3829, 67, 20, 12, 1157, 1765, 12, 1415, 3270, 12, 22, 67, 22, 67, 42117, 2327, 64, 1795, 198, 3500, 37826, 11, 37826, 3646, 1747, 11, 37826, 11627, 5736, 11, 32217, 10080, 11, 1610, 2821, 11, 1345, 1747, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 304, 24, 31575, 13464, 12, 6420, 12993, 12, 1157, 1765, 12, 486, 67, 22, 12, 487, 67, 22, 31714, 2425, 66, 22, 66, 198, 3500, 44800, 2348, 29230, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 257, 64, 2931, 68, 891, 23, 12, 23, 68, 330, 12, 1157, 1765, 12, 405, 68, 21, 12, 3134, 5824, 67, 20, 66, 24, 68, 15, 65, 20, 198, 9132, 37811, 198, 2, 29082, 38589, 45884, 198, 198, 818, 1339, 345, 389, 407, 1145, 1794, 351, 617, 4096, 3721, 286, 14821, 14492, 393, 14821, 16113, 11, 356, 481, 423, 257, 2068, 290, 1790, 9793, 329, 14821, 14492, 13, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 2534, 69, 3510, 67, 21, 68, 12, 3829, 67, 20, 12, 1157, 1765, 12, 1270, 5824, 12, 68, 22, 25150, 486, 1959, 3865, 66, 198, 9132, 37811, 198, 198, 2235, 1195, 549, 896, 198, 198, 464, 29964, 2585, 389, 1690, 7997, 355, 627, 9895, 287, 14821, 14492, 2746, 13, 317, 627, 2545, 318, 257, 14821, 1181, 326, 468, 734, 4308, 2585, 7559, 91, 15, 158, 253, 102, 15506, 290, 7559, 91, 16, 158, 253, 102, 15506, 198, 198, 2235, 29082, 3310, 6223, 198, 198, 32, 14821, 7881, 318, 281, 34651, 286, 262, 627, 2545, 4088, 11, 340, 6678, 88, 4909, 867, 627, 9895, 13, 198, 198, 2235, 29082, 15953, 198, 198, 32, 14821, 8946, 318, 257, 4326, 560, 10088, 326, 460, 307, 5625, 319, 262, 357, 40972, 388, 8, 7881, 13, 356, 3221, 38350, 340, 355, 257, 6616, 2512, 351, 734, 19474, 11, 304, 13, 70, 262, 1708, 318, 257, 3362, 72, 1395, 8946, 13, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 47679, 6814, 15377, 12, 3829, 67, 20, 12, 1157, 1765, 12, 3023, 2718, 12, 33781, 36928, 67, 23, 65, 27712, 198, 56, 5488, 3646, 1747, 13, 29487, 7, 55, 8, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 257, 20, 67, 20, 67, 3980, 64, 12, 3829, 67, 20, 12, 1157, 1765, 12, 16, 68, 19, 64, 12, 23, 19881, 49682, 67, 5332, 2682, 64, 198, 9132, 37811, 198, 2235, 25139, 2357, 1143, 29082, 15953, 198, 198, 1858, 389, 617, 14821, 17435, 326, 460, 1011, 15993, 10007, 11, 304, 13, 70, 262, 13179, 17435, 319, 1395, 11, 575, 11, 1168, 393, 584, 11678, 13, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 307, 16, 69, 4349, 66, 21, 12, 3829, 67, 20, 12, 1157, 1765, 12, 18, 9945, 16, 12, 2079, 32583, 69, 14686, 24669, 198, 56, 5488, 3646, 1747, 13, 29487, 7, 49, 87, 7, 15, 13, 16, 4008, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 604, 69, 19, 64, 9879, 68, 12, 3829, 67, 21, 12, 1157, 1765, 12, 1270, 3365, 12, 65, 1507, 2931, 2919, 2078, 4310, 64, 198, 9132, 37811, 198, 2235, 43253, 12816, 198, 198, 464, 8946, 4905, 460, 307, 6856, 416, 1194, 627, 9895, 11, 356, 3221, 2380, 606, 355, 262, 1708, 16362, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 718, 65, 1238, 3720, 68, 17, 12, 3829, 67, 21, 12, 1157, 1765, 12, 26073, 66, 12, 486, 5824, 69, 1959, 3312, 16562, 198, 56, 5488, 3646, 1747, 13, 29487, 7, 13716, 7, 17, 11, 352, 11, 362, 14804, 49, 87, 7, 15, 13, 16, 22305, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 8699, 4051, 31952, 66, 12, 3829, 67, 21, 12, 1157, 1765, 12, 17, 64, 324, 12, 65, 39251, 1983, 397, 22, 65, 3720, 198, 9132, 1, 1640, 6856, 3362, 72, 1395, 8946, 11, 356, 635, 869, 340, 262, 327, 11929, 8946, 11, 340, 460, 307, 37515, 287, 257, 18599, 835, 1, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 860, 11245, 11848, 20, 66, 12, 3829, 67, 21, 12, 1157, 1765, 12, 15377, 68, 12, 69, 1129, 4051, 5036, 4869, 721, 21, 198, 56, 5488, 3646, 1747, 13, 29487, 7, 66, 1662, 7, 17, 11, 352, 11, 362, 4008, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 390, 1350, 3695, 67, 17, 12, 3829, 67, 20, 12, 1157, 1765, 12, 1314, 2075, 12, 5774, 69, 47396, 65, 39101, 19881, 198, 9132, 37811, 198, 2235, 29082, 7672, 15379, 1222, 29082, 978, 7727, 907, 198, 198, 3844, 351, 262, 3721, 286, 7881, 290, 17435, 11, 356, 460, 8160, 14821, 24907, 13, 383, 14821, 24907, 389, 11742, 286, 17435, 290, 13871, 13, 220, 198, 198, 68, 13, 70, 262, 1708, 318, 257, 14821, 46287, 5277, 13389, 10349, 11, 340, 318, 5447, 1262, 550, 321, 446, 8946, 7559, 39, 15506, 290, 1630, 7108, 6482, 8946, 13, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 657, 64, 29088, 40427, 12, 3829, 67, 21, 12, 1157, 1765, 12, 16, 64, 2998, 12, 12952, 1765, 69, 18, 66, 1065, 2414, 198, 27471, 198, 197, 32, 7, 72, 11, 474, 8, 796, 1630, 7, 72, 11, 474, 14804, 30846, 7, 17, 46582, 29006, 16, 16791, 7, 72, 12, 73, 10, 16, 35514, 198, 197, 33, 7, 77, 11, 479, 8, 796, 6333, 7, 77, 11, 474, 855, 74, 5633, 1234, 7, 74, 14804, 39, 8, 1058, 317, 7, 73, 11, 479, 8, 329, 474, 287, 479, 25, 77, 8, 198, 197, 80, 701, 7, 77, 8, 796, 6333, 7, 33, 7, 77, 11, 479, 8, 329, 479, 287, 352, 25, 77, 8, 198, 197, 56, 5488, 3646, 1747, 13, 29487, 7, 80, 701, 7, 18, 4008, 198, 437, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 304, 19, 69, 16, 69, 25022, 12, 6420, 6888, 12, 1157, 1765, 12, 25667, 64, 12, 49517, 21101, 23, 12993, 19, 64, 2816, 198, 9132, 37811, 198, 2235, 6118, 351, 37826, 198, 198, 9122, 448, 262, 3052, 25, 685, 3972, 22696, 415, 388, 13, 2398, 16151, 5450, 1378, 3972, 22696, 415, 388, 13, 2398, 34729, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 657, 29059, 891, 65, 17, 12, 6420, 21101, 12, 1157, 1765, 12, 49841, 68, 12, 15, 65, 15, 66, 18, 1350, 3829, 11848, 22, 198, 6494, 37811, 198, 27, 39621, 12351, 2625, 5450, 1378, 3972, 22696, 415, 388, 13, 2398, 30487, 9647, 28, 3064, 4, 6001, 28, 12825, 12240, 39621, 29, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 362, 64, 49489, 891, 15, 12, 6420, 21101, 12, 1157, 1765, 12, 1558, 16344, 12, 19, 65, 23, 66, 48246, 3695, 68, 21, 64, 198, 9132, 37811, 198, 21017, 262, 14821, 7021, 198, 198, 56, 5488, 6870, 262, 14821, 24907, 355, 7021, 198, 198, 0, 58, 16151, 5450, 1378, 12567, 13, 785, 14, 43719, 12, 2290, 78, 14, 47, 3955, 43, 14, 2436, 672, 14, 9866, 14, 11295, 12106, 14, 19668, 14, 80, 9967, 13, 11134, 30, 1831, 28, 7942, 8, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 8684, 65, 21, 19881, 2414, 12, 6420, 21101, 12, 1157, 1765, 12, 18, 66, 2670, 12, 37452, 64, 2791, 68, 2154, 12993, 19, 198, 80, 701, 7, 18, 8, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 269, 2425, 65, 15, 25707, 12, 23, 68, 330, 12, 1157, 1765, 12, 1495, 2078, 12, 65, 24, 69, 3270, 69, 44214, 2682, 67, 198, 9132, 37811, 198, 2235, 15965, 864, 29082, 978, 7727, 907, 198, 198, 9, 259, 617, 4732, 11, 428, 318, 635, 1444, 14821, 4572, 4673, 15885, 198, 198, 2898, 324, 8736, 11, 257, 14821, 11862, 3221, 4433, 257, 880, 3562, 24907, 326, 3769, 281, 39682, 2866, 510, 14176, 284, 663, 15993, 16054, 11, 304, 13, 70, 262, 880, 1900, 911, 273, 11862, 13, 198, 198, 4864, 11, 18492, 290, 4917, 884, 16113, 460, 307, 4457, 1327, 11, 290, 743, 407, 307, 1744, 9177, 319, 1474, 3381, 14821, 4410, 326, 318, 31210, 13, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 304, 1485, 2231, 1453, 23, 12, 23, 68, 330, 12, 1157, 1765, 12, 18, 66, 1828, 12, 15, 9945, 21652, 1415, 2078, 2091, 198, 9132, 37811, 198, 2235, 20615, 26336, 29082, 7672, 15379, 25, 262, 2651, 4235, 198, 198, 818, 9285, 11, 428, 318, 3221, 1006, 1068, 355, 262, 12429, 36301, 15576, 14330, 1174, 11, 340, 373, 717, 5071, 287, 685, 24915, 388, 13588, 18252, 11, 610, 55, 452, 25, 1248, 3070, 13, 25816, 2231, 16151, 5450, 1378, 283, 87, 452, 13, 2398, 14, 12315, 14, 1507, 3070, 13, 25816, 2231, 13, 12315, 8, 198, 198, 732, 481, 783, 27099, 262, 3173, 11, 7048, 262, 4326, 560, 286, 674, 11507, 1143, 14821, 10349, 318, 7559, 52, 38016, 11018, 19881, 90, 138, 116, 30072, 796, 3467, 1676, 67, 23330, 72, 28, 16, 92, 61, 77, 471, 7, 138, 116, 62, 72, 8, 15506, 11, 290, 329, 15607, 11, 356, 481, 42685, 7559, 52, 23330, 73, 25, 74, 92, 796, 471, 62, 73, 158, 233, 107, 52, 62, 74, 15506, 198, 198, 8524, 329, 281, 42550, 7559, 33, 15506, 11, 262, 17507, 1988, 318, 7559, 158, 253, 101, 33, 38016, 11018, 19881, 90, 138, 116, 30072, 158, 253, 102, 796, 833, 7, 33, 471, 23330, 75, 25, 16, 92, 33643, 52, 23330, 75, 25, 16, 92, 36796, 33912, 30072, 15506, 198, 198, 2197, 611, 356, 7048, 674, 4326, 560, 318, 7560, 416, 3362, 72, 13042, 357, 4758, 318, 407, 1464, 2081, 828, 356, 423, 7559, 52, 62, 73, 7, 138, 116, 8, 796, 1033, 32590, 72, 138, 116, 62, 73, 350, 62, 73, 14, 17, 8, 15506, 13, 198, 198, 464, 31312, 286, 7559, 158, 253, 101, 33, 38016, 11018, 19881, 90, 138, 116, 30072, 158, 253, 102, 15506, 460, 307, 10488, 355, 1708, 198, 198, 15506, 63, 11018, 198, 59, 31944, 31478, 47172, 2343, 253, 101, 33, 158, 253, 102, 18477, 59, 47172, 7377, 116, 62, 73, 92, 796, 532, 59, 31944, 90, 72, 18477, 17, 92, 357, 33, 471, 23330, 75, 25, 73, 92, 685, 47, 62, 73, 11, 471, 23330, 73, 12, 16, 25, 16, 92, 33643, 52, 23330, 73, 12, 16, 25, 16, 92, 36796, 33912, 92, 60, 471, 23330, 75, 25, 73, 92, 36796, 33912, 30072, 198, 15506, 63, 198, 198, 392, 780, 356, 423, 262, 1708, 2776, 329, 14977, 7559, 33643, 15506, 198, 198, 15506, 63, 11018, 198, 58, 47, 62, 73, 11, 18074, 223, 60, 796, 1312, 58, 52, 62, 73, 38016, 31944, 90, 46582, 18477, 17, 30072, 33643, 471, 62, 73, 36796, 33912, 92, 38016, 31944, 90, 46582, 18477, 17, 30072, 532, 471, 62, 73, 32590, 59, 31944, 90, 46582, 18477, 17, 30072, 33643, 471, 62, 73, 32590, 59, 31944, 90, 46582, 18477, 17, 92, 15437, 198, 15506, 63, 198, 198, 26239, 262, 31312, 460, 307, 16726, 416, 198, 198, 15506, 63, 11018, 198, 59, 27471, 90, 41634, 92, 198, 59, 31944, 31478, 47172, 347, 18477, 59, 47172, 7377, 116, 62, 73, 92, 796, 5, 3467, 31944, 90, 16, 18477, 17, 92, 357, 2898, 58, 33, 471, 23330, 75, 25, 73, 10, 16, 92, 52, 7, 138, 116, 62, 73, 10, 59, 31944, 90, 46582, 18477, 17, 30072, 52, 23330, 73, 12, 16, 25, 16, 92, 33643, 52, 23330, 73, 12, 16, 25, 16, 92, 36796, 33912, 92, 52, 62, 73, 36796, 33912, 92, 7, 138, 116, 62, 73, 10, 59, 31944, 90, 46582, 18477, 17, 30072, 52, 23330, 75, 25, 73, 10, 16, 92, 36796, 33912, 92, 60, 532, 6852, 198, 5, 2898, 58, 33, 471, 23330, 75, 25, 73, 10, 16, 92, 52, 7, 138, 116, 62, 73, 12, 59, 31944, 90, 46582, 18477, 17, 30072, 52, 23330, 73, 12, 16, 25, 16, 92, 33643, 52, 23330, 73, 12, 16, 25, 16, 92, 36796, 33912, 92, 52, 62, 73, 36796, 33912, 92, 7, 138, 116, 62, 73, 12, 59, 31944, 90, 46582, 18477, 17, 30072, 52, 23330, 75, 25, 73, 10, 16, 92, 36796, 33912, 92, 12962, 198, 59, 437, 90, 41634, 92, 198, 15506, 63, 198, 198, 4758, 1724, 198, 198, 15506, 63, 11018, 198, 59, 31944, 31478, 47172, 347, 18477, 59, 47172, 7377, 116, 62, 73, 92, 796, 3467, 31944, 90, 16, 18477, 17, 92, 357, 158, 253, 101, 33, 38016, 1169, 8326, 62, 73, 1343, 3467, 31944, 90, 46582, 18477, 17, 30072, 158, 253, 102, 532, 2343, 253, 101, 33, 38016, 1169, 8326, 62, 73, 532, 3467, 31944, 90, 46582, 18477, 17, 30072, 158, 253, 102, 8, 198, 15506, 63, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 277, 23, 20233, 65, 2999, 12, 23, 68, 330, 12, 1157, 1765, 12, 17, 397, 18, 12, 2091, 1954, 68, 486, 69, 19, 69, 5237, 198, 9132, 37811, 198, 2235, 20615, 26336, 29082, 7672, 15379, 25, 262, 9575, 4235, 198, 198, 271, 340, 1744, 284, 28754, 14821, 24907, 1262, 9575, 4235, 30, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 269, 5607, 487, 13331, 23, 12, 6420, 67, 15, 12, 1157, 1765, 12, 15, 64, 15, 66, 12, 2931, 1495, 2231, 68, 27412, 69, 23, 198, 9132, 37811, 198, 10049, 329, 18640, 198, 198, 0, 58, 16151, 5450, 1378, 12567, 13, 785, 14, 43719, 12, 2290, 78, 14, 47, 3955, 43, 14, 2436, 672, 14, 9866, 14, 11295, 12106, 14, 19668, 14, 3972, 78, 12, 50188, 12, 324, 13, 11134, 30, 1831, 28, 7942, 8, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 513, 66, 24, 1129, 64, 1120, 12, 23, 1329, 12, 1157, 1765, 12, 2713, 23, 69, 12, 1983, 68, 344, 65, 16, 67, 1453, 7252, 198, 9132, 37811, 198, 2235, 48282, 278, 317, 17427, 15965, 864, 29082, 412, 328, 641, 14375, 357, 53, 48, 36, 8, 198, 198, 1639, 423, 4499, 703, 5553, 864, 22489, 40089, 2499, 11, 783, 1309, 338, 25, 198, 198, 16, 13, 779, 257, 14821, 10349, 355, 674, 9093, 27906, 198, 17, 13, 3264, 15284, 262, 2568, 416, 3953, 262, 11582, 666, 198, 18, 13, 779, 31312, 1912, 23989, 284, 27183, 262, 2568, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 8257, 68, 2425, 65, 7012, 12, 6420, 6888, 12, 1157, 1765, 12, 12762, 69, 12, 16, 67, 21, 65, 15, 65, 22, 66, 11848, 3695, 198, 9132, 1, 11085, 1309, 338, 2251, 257, 5553, 864, 10349, 1262, 262, 4600, 25641, 864, 62, 21170, 5013, 63, 2163, 1, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 5846, 1828, 64, 15, 13331, 12, 6420, 6888, 12, 1157, 1765, 12, 18, 43444, 12, 69, 2718, 65, 17, 67, 397, 3104, 65, 18, 198, 56, 5488, 3646, 1747, 13, 29487, 7, 25641, 864, 62, 21170, 5013, 7, 20, 11, 513, 4008, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 9415, 69, 17, 67, 4846, 17, 12, 6420, 6888, 12, 1157, 1765, 12, 17, 68, 2791, 12, 43239, 64, 12865, 2857, 68, 5774, 198, 9132, 1, 8524, 2251, 257, 14821, 7881, 379, 1181, 7559, 91, 405, 158, 233, 107, 405, 158, 253, 102, 15506, 1, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 807, 3865, 8054, 16072, 12, 6420, 6888, 12, 1157, 1765, 12, 18, 67, 3070, 12, 68, 20, 8432, 13331, 43489, 4304, 198, 81, 796, 6632, 62, 5219, 7, 20, 8, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 860, 1821, 37680, 67, 23, 12, 6420, 6888, 12, 1157, 1765, 12, 2091, 16344, 12, 5066, 64, 30484, 65, 19, 1765, 16072, 198, 9132, 1, 732, 460, 13446, 428, 10349, 319, 262, 38274, 1, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 257, 2713, 20233, 2075, 12, 6420, 6888, 12, 1157, 1765, 12, 15, 31916, 12, 2481, 64, 1959, 5999, 1120, 66, 23, 67, 198, 81, 930, 29, 5553, 864, 62, 21170, 5013, 7, 20, 11, 513, 8, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 275, 23, 64, 4869, 19881, 19, 12, 6420, 6888, 12, 1157, 1765, 12, 17, 69, 6659, 12, 1765, 3134, 66, 5036, 1329, 64, 15, 198, 9132, 37811, 198, 732, 460, 783, 2251, 257, 352, 12, 35, 339, 13254, 3900, 8891, 9044, 666, 198, 198, 15506, 63, 11018, 198, 59, 16345, 62, 72, 3467, 11018, 19881, 90, 50, 92, 62, 72, 3467, 11018, 19881, 90, 50, 92, 23330, 72, 10, 16, 92, 198, 15506, 63, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 12379, 24, 7012, 15711, 12, 6420, 6888, 12, 1157, 1765, 12, 2078, 64, 19, 12, 38172, 12993, 4304, 18213, 32417, 198, 71, 796, 339, 13254, 3900, 7, 20, 8, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 275, 18, 535, 3980, 64, 17, 12, 6420, 21101, 12, 1157, 1765, 12, 2718, 2623, 12, 5774, 7568, 1983, 67, 40350, 2231, 198, 9132, 1, 732, 460, 15284, 262, 17507, 1988, 286, 428, 8891, 9044, 666, 1, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 807, 2780, 67, 20964, 66, 12, 6420, 21101, 12, 1157, 1765, 12, 1558, 535, 12, 5774, 64, 16, 7252, 18, 66, 15, 67, 4304, 198, 1069, 806, 7, 258, 13254, 3900, 7, 20, 828, 374, 8, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 275, 67, 18, 66, 19, 65, 6888, 12, 6420, 21101, 12, 1157, 1765, 12, 1959, 12993, 12, 37680, 1765, 3865, 9945, 4790, 67, 198, 31, 15390, 1607, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 860, 5036, 18, 9945, 24, 66, 12, 6420, 21101, 12, 1157, 1765, 12, 1507, 3459, 12, 12993, 22, 1860, 17, 7252, 18, 7252, 16, 198, 1069, 806, 7, 258, 13254, 3900, 7, 20, 828, 374, 14804, 25641, 864, 62, 21170, 5013, 7, 20, 11, 513, 4008, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 257, 21, 66, 20219, 2624, 12, 6420, 21101, 12, 1157, 1765, 12, 2548, 1828, 12, 22, 6814, 20, 3388, 68, 31211, 68, 15, 198, 2301, 11, 18872, 229, 138, 116, 796, 1607, 6, 7, 258, 13254, 3900, 7, 20, 828, 6632, 62, 5219, 7, 20, 8, 14804, 25641, 864, 62, 21170, 5013, 7, 20, 11, 513, 4008, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 269, 65, 4134, 16, 69, 23, 12, 6420, 21101, 12, 1157, 1765, 12, 33400, 66, 12, 2718, 68, 18, 6814, 41292, 2816, 66, 198, 9132, 1, 732, 460, 779, 262, 6436, 11341, 422, 262, 10373, 9355, 4600, 37, 22564, 63, 1, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 288, 1860, 66, 19881, 1238, 12, 6420, 10210, 12, 1157, 1765, 12, 17, 67, 4790, 12, 17, 6814, 64, 23237, 1270, 4524, 67, 198, 8738, 796, 5984, 2390, 3419, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 1248, 67, 5999, 64, 5237, 12, 6420, 67, 15, 12, 1157, 1765, 12, 17, 67, 23, 67, 12, 17, 15630, 17, 68, 3388, 41172, 68, 23, 198, 9132, 1, 18053, 43641, 7, 31, 21653, 6795, 3454, 1304, 7, 16, 25, 940, 26, 905, 62, 8367, 28, 7942, 4008, 1, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 1105, 2001, 33638, 12, 6420, 344, 12, 1157, 1765, 12, 2623, 67, 18, 12, 43571, 67, 2624, 21101, 23, 69, 18, 68, 198, 21170, 5013, 796, 5553, 864, 62, 21170, 5013, 7, 20, 11, 6795, 8, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 304, 23628, 65, 21, 69, 15, 12, 6420, 10210, 12, 1157, 1765, 12, 2327, 1350, 12, 17, 67, 2598, 69, 21, 69, 2075, 64, 1795, 198, 27471, 198, 197, 23569, 796, 17635, 198, 197, 138, 116, 796, 43720, 7, 77, 17143, 7307, 7, 21170, 5013, 4008, 198, 197, 1640, 4808, 287, 352, 25, 12825, 198, 197, 197, 2301, 11, 18872, 229, 138, 116, 796, 1607, 6, 7, 258, 13254, 3900, 7, 20, 828, 6632, 62, 5219, 7, 20, 8, 14804, 6381, 17147, 0, 7, 21170, 5013, 11, 7377, 116, 4008, 198, 197, 197, 37, 22564, 13, 27871, 320, 786, 13, 19119, 0, 7, 8738, 11, 7377, 116, 11, 18872, 229, 138, 116, 8, 198, 197, 197, 14421, 796, 1607, 7, 258, 13254, 3900, 7, 20, 828, 6632, 62, 5219, 7, 20, 8, 14804, 6381, 17147, 0, 7, 21170, 5013, 11, 7377, 116, 4008, 198, 197, 197, 14689, 0, 7, 23569, 11, 1103, 7, 14421, 4008, 198, 197, 437, 198, 197, 3646, 1747, 13, 29487, 7, 23569, 8, 198, 437, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 9940, 2931, 2327, 68, 15, 12, 6420, 12993, 12, 1157, 1765, 12, 1507, 2718, 12, 31380, 68, 15, 68, 5892, 276, 1453, 198, 39504, 7, 68, 328, 12786, 7, 46912, 7, 258, 13254, 3900, 7, 20, 35514, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 512, 405, 4869, 6814, 12, 23, 1329, 12, 1157, 1765, 12, 3132, 68, 23, 12, 65, 5824, 65, 23, 65, 487, 4304, 2327, 198, 9132, 37811, 198, 2235, 1345, 5592, 47442, 25, 3012, 10216, 286, 6127, 33160, 198, 198, 5450, 1378, 16345, 647, 1659, 8189, 13, 4480, 13297, 13, 785, 14, 198, 37811, 198, 198, 2, 2343, 243, 242, 28670, 22880, 94, 12440, 1502, 25, 198, 2, 2343, 243, 254, 28670, 16, 66, 18, 487, 20, 66, 19, 12, 3829, 67, 20, 12, 1157, 1765, 12, 1415, 3270, 12, 22, 67, 22, 67, 42117, 2327, 64, 1795, 198, 2, 2343, 243, 253, 7280, 7252, 2931, 68, 891, 23, 12, 23, 68, 330, 12, 1157, 1765, 12, 405, 68, 21, 12, 3134, 5824, 67, 20, 66, 24, 68, 15, 65, 20, 198, 2, 2343, 243, 253, 7280, 1828, 69, 3510, 67, 21, 68, 12, 3829, 67, 20, 12, 1157, 1765, 12, 1270, 5824, 12, 68, 22, 25150, 486, 1959, 3865, 66, 198, 2, 2343, 243, 253, 7280, 37128, 6814, 15377, 12, 3829, 67, 20, 12, 1157, 1765, 12, 3023, 2718, 12, 33781, 36928, 67, 23, 65, 27712, 198, 2, 2343, 243, 253, 7280, 64, 20, 67, 20, 67, 3980, 64, 12, 3829, 67, 20, 12, 1157, 1765, 12, 16, 68, 19, 64, 12, 23, 19881, 49682, 67, 5332, 2682, 64, 198, 2, 2343, 243, 253, 7280, 1350, 16, 69, 4349, 66, 21, 12, 3829, 67, 20, 12, 1157, 1765, 12, 18, 9945, 16, 12, 2079, 32583, 69, 14686, 24669, 198, 2, 2343, 243, 253, 7280, 19, 69, 19, 64, 9879, 68, 12, 3829, 67, 21, 12, 1157, 1765, 12, 1270, 3365, 12, 65, 1507, 2931, 2919, 2078, 4310, 64, 198, 2, 2343, 243, 253, 7280, 21, 65, 1238, 3720, 68, 17, 12, 3829, 67, 21, 12, 1157, 1765, 12, 26073, 66, 12, 486, 5824, 69, 1959, 3312, 16562, 198, 2, 2343, 243, 253, 7280, 3695, 4051, 31952, 66, 12, 3829, 67, 21, 12, 1157, 1765, 12, 17, 64, 324, 12, 65, 39251, 1983, 397, 22, 65, 3720, 198, 2, 2343, 243, 253, 7280, 24, 11245, 11848, 20, 66, 12, 3829, 67, 21, 12, 1157, 1765, 12, 15377, 68, 12, 69, 1129, 4051, 5036, 4869, 721, 21, 198, 2, 2343, 243, 253, 7280, 2934, 1350, 3695, 67, 17, 12, 3829, 67, 20, 12, 1157, 1765, 12, 1314, 2075, 12, 5774, 69, 47396, 65, 39101, 19881, 198, 2, 2343, 243, 253, 7280, 15, 64, 29088, 40427, 12, 3829, 67, 21, 12, 1157, 1765, 12, 16, 64, 2998, 12, 12952, 1765, 69, 18, 66, 1065, 2414, 198, 2, 2343, 243, 253, 7280, 68, 19, 69, 16, 69, 25022, 12, 6420, 6888, 12, 1157, 1765, 12, 25667, 64, 12, 49517, 21101, 23, 12993, 19, 64, 2816, 198, 2, 2343, 243, 253, 7280, 15, 29059, 891, 65, 17, 12, 6420, 21101, 12, 1157, 1765, 12, 49841, 68, 12, 15, 65, 15, 66, 18, 1350, 3829, 11848, 22, 198, 2, 2343, 243, 253, 7280, 17, 64, 49489, 891, 15, 12, 6420, 21101, 12, 1157, 1765, 12, 1558, 16344, 12, 19, 65, 23, 66, 48246, 3695, 68, 21, 64, 198, 2, 2343, 243, 254, 28670, 4304, 65, 21, 19881, 2414, 12, 6420, 21101, 12, 1157, 1765, 12, 18, 66, 2670, 12, 37452, 64, 2791, 68, 2154, 12993, 19, 198, 2, 2343, 243, 253, 7280, 66, 2425, 65, 15, 25707, 12, 23, 68, 330, 12, 1157, 1765, 12, 1495, 2078, 12, 65, 24, 69, 3270, 69, 44214, 2682, 67, 198, 2, 2343, 243, 253, 7280, 68, 1485, 2231, 1453, 23, 12, 23, 68, 330, 12, 1157, 1765, 12, 18, 66, 1828, 12, 15, 9945, 21652, 1415, 2078, 2091, 198, 2, 2343, 243, 253, 7280, 69, 23, 20233, 65, 2999, 12, 23, 68, 330, 12, 1157, 1765, 12, 17, 397, 18, 12, 2091, 1954, 68, 486, 69, 19, 69, 5237, 198, 2, 2343, 243, 253, 7280, 66, 5607, 487, 13331, 23, 12, 6420, 67, 15, 12, 1157, 1765, 12, 15, 64, 15, 66, 12, 2931, 1495, 2231, 68, 27412, 69, 23, 198, 2, 2343, 243, 253, 7280, 18, 66, 24, 1129, 64, 1120, 12, 23, 1329, 12, 1157, 1765, 12, 2713, 23, 69, 12, 1983, 68, 344, 65, 16, 67, 1453, 7252, 198, 2, 2343, 243, 253, 7280, 3104, 68, 2425, 65, 7012, 12, 6420, 6888, 12, 1157, 1765, 12, 12762, 69, 12, 16, 67, 21, 65, 15, 65, 22, 66, 11848, 3695, 198, 2, 2343, 243, 254, 28670, 2598, 1828, 64, 15, 13331, 12, 6420, 6888, 12, 1157, 1765, 12, 18, 43444, 12, 69, 2718, 65, 17, 67, 397, 3104, 65, 18, 198, 2, 2343, 243, 253, 7280, 6469, 69, 17, 67, 4846, 17, 12, 6420, 6888, 12, 1157, 1765, 12, 17, 68, 2791, 12, 43239, 64, 12865, 2857, 68, 5774, 198, 2, 2343, 243, 254, 28670, 23, 3865, 8054, 16072, 12, 6420, 6888, 12, 1157, 1765, 12, 18, 67, 3070, 12, 68, 20, 8432, 13331, 43489, 4304, 198, 2, 2343, 243, 253, 7280, 46899, 37680, 67, 23, 12, 6420, 6888, 12, 1157, 1765, 12, 2091, 16344, 12, 5066, 64, 30484, 65, 19, 1765, 16072, 198, 2, 2343, 243, 254, 28670, 64, 2713, 20233, 2075, 12, 6420, 6888, 12, 1157, 1765, 12, 15, 31916, 12, 2481, 64, 1959, 5999, 1120, 66, 23, 67, 198, 2, 2343, 243, 253, 7280, 65, 23, 64, 4869, 19881, 19, 12, 6420, 6888, 12, 1157, 1765, 12, 17, 69, 6659, 12, 1765, 3134, 66, 5036, 1329, 64, 15, 198, 2, 2343, 243, 254, 28670, 6814, 24, 7012, 15711, 12, 6420, 6888, 12, 1157, 1765, 12, 2078, 64, 19, 12, 38172, 12993, 4304, 18213, 32417, 198, 2, 2343, 243, 253, 7280, 65, 18, 535, 3980, 64, 17, 12, 6420, 21101, 12, 1157, 1765, 12, 2718, 2623, 12, 5774, 7568, 1983, 67, 40350, 2231, 198, 2, 2343, 243, 254, 28670, 23, 2780, 67, 20964, 66, 12, 6420, 21101, 12, 1157, 1765, 12, 1558, 535, 12, 5774, 64, 16, 7252, 18, 66, 15, 67, 4304, 198, 2, 2343, 243, 254, 28670, 17457, 18, 66, 19, 65, 6888, 12, 6420, 21101, 12, 1157, 1765, 12, 1959, 12993, 12, 37680, 1765, 3865, 9945, 4790, 67, 198, 2, 2343, 243, 254, 28670, 24, 5036, 18, 9945, 24, 66, 12, 6420, 21101, 12, 1157, 1765, 12, 1507, 3459, 12, 12993, 22, 1860, 17, 7252, 18, 7252, 16, 198, 2, 2343, 243, 254, 28670, 64, 21, 66, 20219, 2624, 12, 6420, 21101, 12, 1157, 1765, 12, 2548, 1828, 12, 22, 6814, 20, 3388, 68, 31211, 68, 15, 198, 2, 2343, 243, 253, 7280, 21101, 4134, 16, 69, 23, 12, 6420, 21101, 12, 1157, 1765, 12, 33400, 66, 12, 2718, 68, 18, 6814, 41292, 2816, 66, 198, 2, 2343, 243, 254, 28670, 1860, 17896, 19881, 1238, 12, 6420, 10210, 12, 1157, 1765, 12, 17, 67, 4790, 12, 17, 6814, 64, 23237, 1270, 4524, 67, 198, 2, 2343, 243, 254, 28670, 1507, 67, 5999, 64, 5237, 12, 6420, 67, 15, 12, 1157, 1765, 12, 17, 67, 23, 67, 12, 17, 15630, 17, 68, 3388, 41172, 68, 23, 198, 2, 2343, 243, 254, 28670, 1065, 2001, 33638, 12, 6420, 344, 12, 1157, 1765, 12, 2623, 67, 18, 12, 43571, 67, 2624, 21101, 23, 69, 18, 68, 198, 2, 2343, 243, 254, 28670, 68, 23628, 65, 21, 69, 15, 12, 6420, 10210, 12, 1157, 1765, 12, 2327, 1350, 12, 17, 67, 2598, 69, 21, 69, 2075, 64, 1795, 198, 2, 2343, 243, 254, 28670, 68, 24, 31575, 13464, 12, 6420, 12993, 12, 1157, 1765, 12, 486, 67, 22, 12, 487, 67, 22, 31714, 2425, 66, 22, 66, 198, 2, 2343, 243, 254, 28670, 721, 2931, 2327, 68, 15, 12, 6420, 12993, 12, 1157, 1765, 12, 1507, 2718, 12, 31380, 68, 15, 68, 5892, 276, 1453, 198, 2, 2343, 243, 253, 7280, 324, 405, 4869, 6814, 12, 23, 1329, 12, 1157, 1765, 12, 3132, 68, 23, 12, 65, 5824, 65, 23, 65, 487, 4304, 2327, 198 ]
2.026455
4,914
<reponame>wesleyjholt/FlowFarm.jl """ Author: <NAME> Date: May 29, 2020 Test based on: [1] An Aero-acoustic Noise Distribution Prediction Methodology for Offshore Wind Farms by <NAME>, <NAME>, <NAME>, <NAME>, and <NAME> """ using FLOWFarm; const ff = FLOWFarm using DelimitedFiles using PyPlot # load data data = readdlm("inputfiles/velocity_def_row_of_10_turbs.txt", ',', skipstart=4) # load problem set up include("./model_sets/model_set_2.jl") # calculate wind turbine velocities and corresponding aerodynamic operational states turbine_inflow_velcities, turbine_ct, turbine_ai, turbine_local_ti = ff.turbine_velocities_one_direction(turbine_x, turbine_y, turbine_z, rotor_diameter, hub_height, turbine_yaw, sorted_turbine_index, ct_model, rotor_sample_points_y, rotor_sample_points_z, windresource, model_set, wind_farm_state_id=1) # calculate the power production of each wind turbine ff.turbine_powers_one_direction(generator_efficiency, cut_in_speed, cut_out_speed, rated_speed, rated_power, rotor_diameter, turbine_inflow_velcities, air_density, power_model) # set up the point locations to be used in generating the plot stepsize = 5 xrange = 1:stepsize:10*rotor_diameter[1]*nturbines yrange = -1*rotor_diameter[1]*nturbines:stepsize:1*rotor_diameter[1]*nturbines zrange = hub_height[1]:stepsize:hub_height[1] # calculate the wind speed at each point in the flow field velh = ff.calculate_flow_field(xrange, yrange, zrange, model_set, turbine_x, turbine_y, turbine_z, turbine_yaw, turbine_ct, turbine_ai, rotor_diameter, hub_height, turbine_local_ti, sorted_turbine_index, turbine_inflow_velcities, windresource; wind_farm_state_id=1) # visualize the resulting data flowfieldplot = contourf(xrange, yrange, velh, cmap="Blues_r")
[ 27, 7856, 261, 480, 29, 86, 49048, 73, 3937, 83, 14, 37535, 48412, 13, 20362, 198, 37811, 198, 13838, 25, 1279, 20608, 29, 198, 10430, 25, 220, 220, 1737, 2808, 11, 12131, 198, 198, 14402, 1912, 319, 25, 198, 58, 16, 60, 1052, 44720, 12, 330, 21618, 30964, 27484, 46690, 11789, 1435, 329, 3242, 14640, 3086, 39045, 198, 1525, 1279, 20608, 22330, 1279, 20608, 22330, 1279, 20608, 22330, 1279, 20608, 22330, 290, 1279, 20608, 29, 198, 37811, 198, 198, 3500, 9977, 3913, 48412, 26, 1500, 31246, 796, 9977, 3913, 48412, 198, 3500, 4216, 320, 863, 25876, 198, 3500, 9485, 43328, 198, 198, 2, 3440, 1366, 198, 7890, 796, 1100, 25404, 76, 7203, 15414, 16624, 14, 626, 11683, 62, 4299, 62, 808, 62, 1659, 62, 940, 62, 36590, 1443, 13, 14116, 1600, 220, 46083, 3256, 14267, 9688, 28, 19, 8, 198, 198, 2, 3440, 1917, 900, 510, 198, 17256, 7, 1911, 14, 19849, 62, 28709, 14, 19849, 62, 2617, 62, 17, 13, 20362, 4943, 198, 198, 2, 15284, 2344, 36489, 11555, 420, 871, 290, 11188, 9551, 34743, 13919, 2585, 198, 83, 5945, 500, 62, 259, 11125, 62, 626, 66, 871, 11, 36489, 62, 310, 11, 36489, 62, 1872, 11, 36489, 62, 12001, 62, 20259, 796, 31246, 13, 83, 5945, 500, 62, 626, 420, 871, 62, 505, 62, 37295, 7, 83, 5945, 500, 62, 87, 11, 36489, 62, 88, 11, 36489, 62, 89, 11, 44883, 62, 67, 13173, 11, 12575, 62, 17015, 11, 36489, 62, 88, 707, 11, 198, 82, 9741, 62, 83, 5945, 500, 62, 9630, 11, 269, 83, 62, 19849, 11, 44883, 62, 39873, 62, 13033, 62, 88, 11, 44883, 62, 39873, 62, 13033, 62, 89, 11, 2344, 31092, 11, 198, 19849, 62, 2617, 11, 2344, 62, 43323, 62, 5219, 62, 312, 28, 16, 8, 198, 198, 2, 15284, 262, 1176, 3227, 286, 1123, 2344, 36489, 198, 487, 13, 83, 5945, 500, 62, 30132, 62, 505, 62, 37295, 7, 8612, 1352, 62, 45888, 11, 2005, 62, 259, 62, 12287, 11, 2005, 62, 448, 62, 12287, 11, 13178, 62, 12287, 11, 13178, 62, 6477, 11, 44883, 62, 67, 13173, 11, 36489, 62, 259, 11125, 62, 626, 66, 871, 11, 1633, 62, 43337, 11, 1176, 62, 19849, 8, 198, 198, 2, 900, 510, 262, 966, 7064, 284, 307, 973, 287, 15453, 262, 7110, 198, 9662, 7857, 796, 642, 198, 87, 9521, 796, 352, 25, 9662, 7857, 25, 940, 9, 10599, 273, 62, 67, 13173, 58, 16, 60, 9, 429, 5945, 1127, 198, 2417, 858, 796, 532, 16, 9, 10599, 273, 62, 67, 13173, 58, 16, 60, 9, 429, 5945, 1127, 25, 9662, 7857, 25, 16, 9, 10599, 273, 62, 67, 13173, 58, 16, 60, 9, 429, 5945, 1127, 198, 89, 9521, 796, 12575, 62, 17015, 58, 16, 5974, 9662, 7857, 25, 40140, 62, 17015, 58, 16, 60, 198, 198, 2, 15284, 262, 2344, 2866, 379, 1123, 966, 287, 262, 5202, 2214, 220, 198, 626, 71, 796, 31246, 13, 9948, 3129, 378, 62, 11125, 62, 3245, 7, 87, 9521, 11, 331, 9521, 11, 1976, 9521, 11, 198, 19849, 62, 2617, 11, 36489, 62, 87, 11, 36489, 62, 88, 11, 36489, 62, 89, 11, 36489, 62, 88, 707, 11, 36489, 62, 310, 11, 36489, 62, 1872, 11, 198, 10599, 273, 62, 67, 13173, 11, 12575, 62, 17015, 11, 36489, 62, 12001, 62, 20259, 11, 23243, 62, 83, 5945, 500, 62, 9630, 11, 36489, 62, 259, 11125, 62, 626, 66, 871, 11, 198, 7972, 31092, 26, 2344, 62, 43323, 62, 5219, 62, 312, 28, 16, 8, 198, 198, 2, 38350, 262, 7186, 1366, 198, 11125, 3245, 29487, 796, 542, 454, 69, 7, 87, 9521, 11, 331, 9521, 11, 11555, 71, 11, 269, 8899, 2625, 3629, 947, 62, 81, 4943 ]
2.850163
614