content
stringlengths
5
1.03M
input_ids
sequencelengths
4
823k
ratio_char_token
float64
0.4
12.5
token_count
int64
4
823k
using Benchmarks using FixedSizeArrays import Base: *, isless, isequal include("utils.jl"); include("algorithms.jl"); function graham_scan_vanilla(p::Vector{Point{2, Float64}}) ep = _grahamscan(p) return ep end function graham_scan_wat(p::Vector{Point{2, Float64}}) p = _akltoussaint(p) ep = _grahamscan(p) return ep end function monotonechain_vanilla(p::Vector{Point{2, Float64}}) ep = _monotonechain(p) return ep end function monotonechain_wat(p::Vector{Point{2, Float64}}) p = _akltoussaint(p) ep = _monotonechain(p) return ep end p = [Point(randn(), randn()) for i=1:2500000] srand(1112016) npoints = [25, 250, 2500, 25000, 250000, 2500000] nreps = [1000, 500, 100, 50, 25, 5] for i=1:length(npoints) # Get parameters np = npoints[i] nr = nreps[i] p = [Point(randn(), randn()) for j=1:np] gsv() = graham_scan_vanilla(p) gsat() = graham_scan_wat(p) mcv() = monotonechain_vanilla(p) mcat() = monotonechain_wat(p) println("With $np points") println(compare([gsv, gsat, mcv, mcat], nr)) end
[ 3500, 25187, 14306, 198, 3500, 10832, 10699, 3163, 20477, 198, 198, 11748, 7308, 25, 1635, 11, 318, 1203, 11, 318, 40496, 198, 198, 17256, 7203, 26791, 13, 20362, 15341, 198, 17256, 7203, 282, 7727, 907, 13, 20362, 15341, 198, 198, 8818, 7933, 2763, 62, 35836, 62, 10438, 5049, 7, 79, 3712, 38469, 90, 12727, 90, 17, 11, 48436, 2414, 11709, 8, 198, 220, 220, 220, 2462, 796, 4808, 70, 13220, 35836, 7, 79, 8, 628, 220, 220, 220, 1441, 2462, 198, 437, 198, 198, 8818, 7933, 2763, 62, 35836, 62, 47261, 7, 79, 3712, 38469, 90, 12727, 90, 17, 11, 48436, 2414, 11709, 8, 198, 220, 220, 220, 279, 796, 4808, 461, 2528, 516, 82, 2913, 7, 79, 8, 198, 220, 220, 220, 2462, 796, 4808, 70, 13220, 35836, 7, 79, 8, 628, 220, 220, 220, 1441, 2462, 198, 437, 198, 198, 8818, 937, 313, 505, 7983, 62, 10438, 5049, 7, 79, 3712, 38469, 90, 12727, 90, 17, 11, 48436, 2414, 11709, 8, 198, 220, 220, 220, 2462, 796, 4808, 2144, 313, 505, 7983, 7, 79, 8, 628, 220, 220, 220, 1441, 2462, 198, 437, 198, 198, 8818, 937, 313, 505, 7983, 62, 47261, 7, 79, 3712, 38469, 90, 12727, 90, 17, 11, 48436, 2414, 11709, 8, 198, 220, 220, 220, 279, 796, 4808, 461, 2528, 516, 82, 2913, 7, 79, 8, 198, 220, 220, 220, 2462, 796, 4808, 2144, 313, 505, 7983, 7, 79, 8, 628, 220, 220, 220, 1441, 2462, 198, 437, 198, 198, 79, 796, 685, 12727, 7, 25192, 77, 22784, 43720, 77, 28955, 329, 1312, 28, 16, 25, 1495, 20483, 60, 198, 198, 82, 25192, 7, 1157, 1065, 27037, 8, 198, 77, 13033, 796, 685, 1495, 11, 8646, 11, 33507, 11, 1679, 830, 11, 1679, 2388, 11, 1679, 20483, 60, 198, 77, 260, 862, 796, 685, 12825, 11, 5323, 11, 1802, 11, 2026, 11, 1679, 11, 642, 60, 198, 198, 1640, 1312, 28, 16, 25, 13664, 7, 77, 13033, 8, 628, 220, 220, 220, 1303, 3497, 10007, 198, 220, 220, 220, 45941, 796, 299, 13033, 58, 72, 60, 198, 220, 220, 220, 299, 81, 796, 299, 260, 862, 58, 72, 60, 628, 220, 220, 220, 279, 796, 685, 12727, 7, 25192, 77, 22784, 43720, 77, 28955, 329, 474, 28, 16, 25, 37659, 60, 628, 220, 220, 220, 308, 21370, 3419, 796, 7933, 2763, 62, 35836, 62, 10438, 5049, 7, 79, 8, 198, 220, 220, 220, 308, 49720, 3419, 796, 7933, 2763, 62, 35836, 62, 47261, 7, 79, 8, 198, 220, 220, 220, 285, 33967, 3419, 796, 937, 313, 505, 7983, 62, 10438, 5049, 7, 79, 8, 198, 220, 220, 220, 285, 9246, 3419, 796, 937, 313, 505, 7983, 62, 47261, 7, 79, 8, 628, 220, 220, 220, 44872, 7203, 3152, 720, 37659, 2173, 4943, 198, 220, 220, 220, 44872, 7, 5589, 533, 26933, 14542, 85, 11, 308, 49720, 11, 285, 33967, 11, 285, 9246, 4357, 299, 81, 4008, 198, 437, 198 ]
2.243299
485
const JAVA_HOME="<path to java home>"
[ 9979, 449, 10116, 32, 62, 39069, 2625, 27, 6978, 284, 20129, 1363, 24618, 198 ]
2.714286
14
# This file is a part of JuliaFEM. # License is MIT: see https://github.com/JuliaFEM/AbaqusReader.jl/blob/master/LICENSE import Base.parse # Define element type and number of nodes in element element_has_nodes(::Type{Val{:C3D4}}) = 4 element_has_type( ::Type{Val{:C3D4}}) = :Tet4 element_has_nodes(::Type{Val{:C3D4H}}) = 4 element_has_type( ::Type{Val{:C3D4H}}) = :Tet4 element_has_nodes(::Type{Val{:C3D8}}) = 8 element_has_type( ::Type{Val{:C3D8}}) = :Hex8 element_has_nodes(::Type{Val{:C3D10}}) = 10 element_has_type(::Type{Val{:C3D10}}) = :Tet10 element_has_nodes(::Type{Val{:C3D10H}}) = 10 element_has_type(::Type{Val{:C3D10H}}) = :Tet10 element_has_nodes(::Type{Val{:C3D20}}) = 20 element_has_type(::Type{Val{:C3D20}}) = :Hex20 element_has_nodes(::Type{Val{:C3D20E}}) = 20 element_has_nodes(::Type{Val{:S3}}) = 3 element_has_type( ::Type{Val{:S3}}) = :Tri3 element_has_nodes(::Type{Val{:STRI65}}) = 6 element_has_type(::Type{Val{:STRI65}}) = :Tri6 element_has_nodes(::Type{Val{:CPS4}}) = 4 element_has_type(::Type{Val{:CPS4}}) = :Quad4 element_has_nodes(::Type{Val{:T2D2}}) = 2 element_has_type(::Type{Val{:T2D2}}) = :Seg2 element_has_nodes(::Type{Val{:T3D2}}) = 2 element_has_type(::Type{Val{:T3D2}}) = :Seg2 element_has_nodes(::Type{Val{:B33}}) = 2 element_has_type(::Type{Val{:B33}}) = :Seg2 """Checks for a comment or empty line Function return true, if line starts with comment character "**" or has length of 0 """ function empty_or_comment_line(line::T) where T<:AbstractString startswith(line, "**") || (length(line) == 0) end """Match words from both sides of '=' character """ function matchset(definition) regexp = r"([\w\_\-]+[ ]*=[ ]*[\w\_\-]+)" collect(m.match for m = eachmatch(regexp, definition)) end """Parse string to get set type and name """ function parse_definition(definition) set_defs = Dict() set_definition = matchset(definition) set_definition == nothing && return nothing for x in set_definition name, vals = map(strip, split(x, "=")) set_defs[lowercase(name)] = vals end set_defs end """Parse all the numbers from string """ function parse_numbers(line, type_::Type{T})::Vector{T} where T regexp = r"[0-9]+" matches = collect((m.match for m = eachmatch(regexp, line))) map(x-> Base.parse(type_, x), matches) end """Add set to model, if set exists """ function add_set!(model, definition, model_key, abaqus_key, ids) has_set_def = parse_definition(definition) if haskey(has_set_def, "elset") set_name = has_set_def[abaqus_key] @info("Adding $abaqus_key: $set_name") model[model_key][set_name] = ids end end """Parse nodes from the lines """ function parse_section(model, lines, ::Symbol, idx_start, idx_end, ::Type{Val{:NODE}}) nnodes = 0 ids = Int[] definition = lines[idx_start] for line in lines[idx_start + 1: idx_end] if !(empty_or_comment_line(line)) m = collect((m.match for m = eachmatch(r"[-0-9.eE+]+", line))) node_id = parse(Int, m[1]) coords = parse.(Float64, m[2:end]) model["nodes"][node_id] = coords push!(ids, node_id) nnodes += 1 end end @info("$nnodes nodes found") add_set!(model, definition, "node_sets", "nset", ids) end """Custon regex to find match from string. Index used if there are multiple matches """ function regex_match(regex_str, line, idx) return match(regex_str, line).captures[idx] end """Custom list iterator Simple iterator for comsuming element list. Depending on the used element, connectivity nodes might be listed in multiple lines, which is why iterator is used to handle this problem. """ function consumeList(arr, start, stop) idx = start - 1 function _it() idx += 1 if idx > stop return nothing end arr[idx] end _it end """Parse elements from input lines Reads element ids and their connectivity nodes from input lines. If elset definition exists, also adds the set to model. """ function parse_section(model, lines, ::Symbol, idx_start, idx_end, ::Type{Val{:ELEMENT}}) ids = Int[] definition = lines[idx_start] regexp = r"TYPE=([\w\-\_]+)"i m = match(regexp, definition) m == nothing && error("Could not match regexp $regexp to line $definition") element_type = uppercase(m[1]) eltype_sym = Symbol(element_type) eltype_nodes = element_has_nodes(Val{eltype_sym}) element_type = element_has_type(Val{eltype_sym}) @info("Parsing elements. Type: $(m[1]). Topology: $(element_type)") list_iterator = consumeList(lines, idx_start+1, idx_end) line = list_iterator() while line != nothing numbers = parse_numbers(line, Int) if !(empty_or_comment_line(line)) id = numbers[1] push!(ids, id) connectivity = numbers[2:end] while length(connectivity) != eltype_nodes @assert length(connectivity) < eltype_nodes line = list_iterator() numbers = parse_numbers(line, Int) push!(connectivity, numbers...) end model["elements"][id] = connectivity model["element_types"][id] = element_type end line = list_iterator() end add_set!(model, definition, "element_sets", "elset", ids) end """Parse node and elementset from input lines """ function parse_section(model, lines, key, idx_start, idx_end, ::Union{Type{Val{:NSET}}, Type{Val{:ELSET}}}) data = Int[] set_regex_string = Dict(:NSET => r"NSET=([\w\-\_]+)"i, :ELSET => r"ELSET=([\w\-\_]+)"i) selected_set = key == :NSET ? "node_sets" : "element_sets" definition = lines[idx_start] regex_string = set_regex_string[key] set_name = regex_match(regex_string, definition, 1) @info("Creating $(lowercase(string(key))) $set_name") if endswith(strip(uppercase(definition)), "GENERATE") line = lines[idx_start + 1] first_id, last_id, step_ = parse_numbers(line, Int) set_ids = collect(first_id:step_:last_id) push!(data, set_ids...) else for line in lines[idx_start + 1: idx_end] if !(empty_or_comment_line(line)) set_ids = parse_numbers(line, Int)::Vector{Int} push!(data, set_ids...) end end end model[selected_set][set_name] = data end """Parse SURFACE keyword """ function parse_section(model, lines, ::Symbol, idx_start, idx_end, ::Type{Val{:SURFACE}}) data = Vector{Tuple{Int, Symbol}}() definition = lines[idx_start] has_set_def = parse_definition(definition) has_set_def != nothing || return set_type = get(has_set_def, "type", "UNKNOWN") set_name = has_set_def["name"] for line in lines[idx_start + 1: idx_end] empty_or_comment_line(line) && continue m = match(r"(?P<element_id>\d+),.*(?P<element_side>S\d+).*", line) element_id = parse(Int, m[:element_id]) element_side = Symbol(m[:element_side]) push!(data, (element_id, element_side)) end model["surface_types"][set_name] = Symbol(set_type) model["surface_sets"][set_name] = data return end """Find lines, which contain keywords, for example "*NODE" """ function find_keywords(lines) indexes = Int[] for (idx, line) in enumerate(lines) if startswith(line, "*") && !startswith(line, "**") push!(indexes, idx) end end return indexes end """Main function for parsing Abaqus input file. Function parses Abaqus input file and generates a dictionary of all the available keywords. """ function parse_abaqus(fid::IOStream) model = Dict{String, Dict}() model["nodes"] = Dict{Int, Vector{Float64}}() model["node_sets"] = Dict{String, Vector{Int}}() model["elements"] = Dict{Int, Vector{Int}}() model["element_types"] = Dict{Int, Symbol}() model["element_sets"] = Dict{String, Vector{Int}}() model["surface_sets"] = Dict{String, Vector{Tuple{Int, Symbol}}}() model["surface_types"] = Dict{String, Symbol}() keyword_sym::Symbol = :none lines = readlines(fid) keyword_indexes = find_keywords(lines) nkeyword_indexes = length(keyword_indexes) push!(keyword_indexes, length(lines)+1) idx_start = keyword_indexes[1] for idx_end in keyword_indexes[2:end] keyword_line = strip(uppercase(lines[idx_start])) keyword = strip(regex_match(r"\s*([\w ]+)", keyword_line, 1)) k_sym = Symbol(keyword) args = Tuple{Dict, Vector{Int}, Symbol, Int, Int, Type{Val{k_sym}}} if hasmethod(parse_section, args) parse_section(model, lines, k_sym, idx_start, idx_end-1, Val{k_sym}) else @warn("Unknown section: '$(keyword)'") end idx_start = idx_end end return model end """ abaqus_read_mesh(fn::String) Read ABAQUS mesh from file `fn`. Returns a dict with elements, nodes, element sets, node sets and other topologically imporant things, but not the actual model with boundary conditions, load steps and so on. """ function abaqus_read_mesh(fn::String) return open(parse_abaqus, fn) end
[ 2, 770, 2393, 318, 257, 636, 286, 22300, 37, 3620, 13, 198, 2, 13789, 318, 17168, 25, 766, 3740, 1378, 12567, 13, 785, 14, 16980, 544, 37, 3620, 14, 4826, 30188, 385, 33634, 13, 20362, 14, 2436, 672, 14, 9866, 14, 43, 2149, 24290, 198, 198, 11748, 7308, 13, 29572, 198, 198, 2, 2896, 500, 5002, 2099, 290, 1271, 286, 13760, 287, 5002, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 34, 18, 35, 19, 11709, 8, 796, 604, 198, 30854, 62, 10134, 62, 4906, 7, 7904, 6030, 90, 7762, 90, 25, 34, 18, 35, 19, 11709, 8, 796, 1058, 51, 316, 19, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 34, 18, 35, 19, 39, 11709, 8, 796, 604, 198, 30854, 62, 10134, 62, 4906, 7, 7904, 6030, 90, 7762, 90, 25, 34, 18, 35, 19, 39, 11709, 8, 796, 1058, 51, 316, 19, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 34, 18, 35, 23, 11709, 8, 796, 807, 198, 30854, 62, 10134, 62, 4906, 7, 7904, 6030, 90, 7762, 90, 25, 34, 18, 35, 23, 11709, 8, 796, 1058, 39, 1069, 23, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 34, 18, 35, 940, 11709, 8, 796, 838, 198, 30854, 62, 10134, 62, 4906, 7, 3712, 6030, 90, 7762, 90, 25, 34, 18, 35, 940, 11709, 8, 796, 1058, 51, 316, 940, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 34, 18, 35, 940, 39, 11709, 8, 796, 838, 198, 30854, 62, 10134, 62, 4906, 7, 3712, 6030, 90, 7762, 90, 25, 34, 18, 35, 940, 39, 11709, 8, 796, 1058, 51, 316, 940, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 34, 18, 35, 1238, 11709, 8, 796, 1160, 198, 30854, 62, 10134, 62, 4906, 7, 3712, 6030, 90, 7762, 90, 25, 34, 18, 35, 1238, 11709, 8, 796, 1058, 39, 1069, 1238, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 34, 18, 35, 1238, 36, 11709, 8, 796, 1160, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 50, 18, 11709, 8, 796, 513, 198, 30854, 62, 10134, 62, 4906, 7, 7904, 6030, 90, 7762, 90, 25, 50, 18, 11709, 8, 796, 1058, 14824, 18, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 2257, 7112, 2996, 11709, 8, 796, 718, 198, 30854, 62, 10134, 62, 4906, 7, 3712, 6030, 90, 7762, 90, 25, 2257, 7112, 2996, 11709, 8, 796, 1058, 14824, 21, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 34, 3705, 19, 11709, 8, 796, 604, 198, 30854, 62, 10134, 62, 4906, 7, 3712, 6030, 90, 7762, 90, 25, 34, 3705, 19, 11709, 8, 796, 1058, 4507, 324, 19, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 51, 17, 35, 17, 11709, 8, 796, 362, 198, 30854, 62, 10134, 62, 4906, 7, 3712, 6030, 90, 7762, 90, 25, 51, 17, 35, 17, 11709, 8, 796, 1058, 41030, 17, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 51, 18, 35, 17, 11709, 8, 796, 362, 198, 30854, 62, 10134, 62, 4906, 7, 3712, 6030, 90, 7762, 90, 25, 51, 18, 35, 17, 11709, 8, 796, 1058, 41030, 17, 198, 198, 30854, 62, 10134, 62, 77, 4147, 7, 3712, 6030, 90, 7762, 90, 25, 33, 2091, 11709, 8, 796, 362, 198, 30854, 62, 10134, 62, 4906, 7, 3712, 6030, 90, 7762, 90, 25, 33, 2091, 11709, 8, 796, 1058, 41030, 17, 198, 198, 37811, 7376, 4657, 329, 257, 2912, 393, 6565, 1627, 198, 198, 22203, 1441, 2081, 11, 611, 1627, 4940, 351, 2912, 2095, 366, 1174, 1, 198, 273, 468, 4129, 286, 657, 198, 37811, 198, 8818, 6565, 62, 273, 62, 23893, 62, 1370, 7, 1370, 3712, 51, 8, 810, 309, 27, 25, 23839, 10100, 198, 220, 220, 220, 923, 2032, 342, 7, 1370, 11, 366, 1174, 4943, 8614, 357, 13664, 7, 1370, 8, 6624, 657, 8, 198, 437, 198, 198, 37811, 23850, 2456, 422, 1111, 5389, 286, 705, 11639, 2095, 198, 37811, 198, 8818, 2872, 2617, 7, 46758, 8, 198, 220, 220, 220, 40364, 79, 796, 374, 18109, 58, 59, 86, 59, 62, 41441, 48688, 58, 2361, 9, 41888, 2361, 9, 58, 59, 86, 59, 62, 41441, 48688, 16725, 198, 220, 220, 220, 2824, 7, 76, 13, 15699, 329, 285, 796, 1123, 15699, 7, 260, 25636, 79, 11, 6770, 4008, 198, 437, 198, 198, 37811, 10044, 325, 4731, 284, 651, 900, 2099, 290, 1438, 198, 37811, 198, 8818, 21136, 62, 46758, 7, 46758, 8, 198, 220, 220, 220, 900, 62, 4299, 82, 796, 360, 713, 3419, 198, 220, 220, 220, 900, 62, 46758, 796, 2872, 2617, 7, 46758, 8, 198, 220, 220, 220, 900, 62, 46758, 6624, 2147, 11405, 1441, 2147, 198, 220, 220, 220, 329, 2124, 287, 900, 62, 46758, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 11, 410, 874, 796, 3975, 7, 36311, 11, 6626, 7, 87, 11, 366, 2625, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 900, 62, 4299, 82, 58, 21037, 7442, 7, 3672, 15437, 796, 410, 874, 198, 220, 220, 220, 886, 198, 220, 220, 220, 900, 62, 4299, 82, 198, 437, 198, 198, 37811, 10044, 325, 477, 262, 3146, 422, 4731, 198, 37811, 198, 8818, 21136, 62, 77, 17024, 7, 1370, 11, 2099, 62, 3712, 6030, 90, 51, 92, 2599, 25, 38469, 90, 51, 92, 810, 309, 198, 220, 220, 220, 40364, 79, 796, 374, 17912, 15, 12, 24, 48688, 1, 198, 220, 220, 220, 7466, 796, 2824, 19510, 76, 13, 15699, 329, 285, 796, 1123, 15699, 7, 260, 25636, 79, 11, 1627, 22305, 198, 220, 220, 220, 3975, 7, 87, 3784, 7308, 13, 29572, 7, 4906, 62, 11, 2124, 828, 7466, 8, 198, 437, 198, 198, 37811, 4550, 900, 284, 2746, 11, 611, 900, 7160, 198, 37811, 198, 8818, 751, 62, 2617, 0, 7, 19849, 11, 6770, 11, 2746, 62, 2539, 11, 450, 30188, 385, 62, 2539, 11, 220, 2340, 8, 198, 220, 220, 220, 468, 62, 2617, 62, 4299, 796, 21136, 62, 46758, 7, 46758, 8, 198, 220, 220, 220, 611, 468, 2539, 7, 10134, 62, 2617, 62, 4299, 11, 366, 1424, 316, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 900, 62, 3672, 796, 468, 62, 2617, 62, 4299, 58, 15498, 45260, 62, 2539, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 10951, 7203, 32901, 720, 15498, 45260, 62, 2539, 25, 720, 2617, 62, 3672, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 58, 19849, 62, 2539, 7131, 2617, 62, 3672, 60, 796, 220, 2340, 198, 220, 220, 220, 886, 198, 437, 198, 198, 37811, 10044, 325, 13760, 422, 262, 3951, 198, 37811, 198, 8818, 21136, 62, 5458, 7, 19849, 11, 3951, 11, 7904, 13940, 23650, 11, 4686, 87, 62, 9688, 11, 4686, 87, 62, 437, 11, 7904, 6030, 90, 7762, 90, 25, 45, 16820, 11709, 8, 198, 220, 220, 220, 299, 77, 4147, 796, 657, 198, 220, 220, 220, 220, 2340, 796, 2558, 21737, 198, 220, 220, 220, 6770, 796, 3951, 58, 312, 87, 62, 9688, 60, 198, 220, 220, 220, 329, 1627, 287, 3951, 58, 312, 87, 62, 9688, 1343, 352, 25, 4686, 87, 62, 437, 60, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 7, 28920, 62, 273, 62, 23893, 62, 1370, 7, 1370, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 796, 2824, 19510, 76, 13, 15699, 329, 285, 796, 1123, 15699, 7, 81, 17912, 12, 15, 12, 24, 13, 68, 36, 10, 48688, 1600, 1627, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 312, 796, 21136, 7, 5317, 11, 285, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 3669, 796, 21136, 12195, 43879, 2414, 11, 285, 58, 17, 25, 437, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2746, 14692, 77, 4147, 1, 7131, 17440, 62, 312, 60, 796, 763, 3669, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 2340, 11, 10139, 62, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 77, 4147, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 10951, 7203, 3, 20471, 4147, 13760, 1043, 4943, 198, 220, 220, 220, 751, 62, 2617, 0, 7, 19849, 11, 6770, 11, 366, 17440, 62, 28709, 1600, 366, 77, 2617, 1600, 220, 2340, 8, 198, 437, 198, 198, 37811, 34, 436, 261, 40364, 284, 1064, 2872, 422, 4731, 13, 12901, 973, 611, 612, 389, 3294, 7466, 198, 37811, 198, 8818, 40364, 62, 15699, 7, 260, 25636, 62, 2536, 11, 1627, 11, 4686, 87, 8, 198, 220, 220, 220, 1441, 2872, 7, 260, 25636, 62, 2536, 11, 1627, 737, 27144, 942, 58, 312, 87, 60, 198, 437, 198, 198, 37811, 15022, 1351, 41313, 198, 198, 26437, 41313, 329, 401, 82, 12595, 5002, 1351, 13, 23591, 198, 261, 262, 973, 5002, 11, 19843, 13760, 1244, 307, 5610, 198, 259, 3294, 3951, 11, 543, 318, 1521, 41313, 318, 973, 284, 5412, 198, 5661, 1917, 13, 198, 37811, 198, 8818, 15000, 8053, 7, 3258, 11, 923, 11, 2245, 8, 198, 220, 220, 220, 4686, 87, 796, 923, 532, 352, 198, 220, 220, 220, 2163, 4808, 270, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 87, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 611, 4686, 87, 1875, 2245, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2147, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 5240, 58, 312, 87, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 4808, 270, 198, 437, 198, 198, 37811, 10044, 325, 4847, 422, 5128, 3951, 198, 198, 5569, 82, 5002, 220, 2340, 290, 511, 19843, 13760, 422, 5128, 3951, 13, 198, 1532, 1288, 2617, 6770, 7160, 11, 635, 6673, 262, 900, 284, 2746, 13, 198, 37811, 198, 8818, 21136, 62, 5458, 7, 19849, 11, 3951, 11, 7904, 13940, 23650, 11, 4686, 87, 62, 9688, 11, 4686, 87, 62, 437, 11, 7904, 6030, 90, 7762, 90, 25, 36, 2538, 10979, 11709, 8, 198, 220, 220, 220, 220, 2340, 796, 2558, 21737, 198, 220, 220, 220, 6770, 796, 3951, 58, 312, 87, 62, 9688, 60, 198, 220, 220, 220, 40364, 79, 796, 374, 1, 25216, 16193, 58, 59, 86, 41441, 59, 62, 48688, 16725, 72, 198, 220, 220, 220, 285, 796, 2872, 7, 260, 25636, 79, 11, 6770, 8, 198, 220, 220, 220, 285, 6624, 2147, 11405, 4049, 7203, 23722, 407, 2872, 40364, 79, 720, 260, 25636, 79, 284, 1627, 720, 46758, 4943, 198, 220, 220, 220, 5002, 62, 4906, 796, 334, 39921, 589, 7, 76, 58, 16, 12962, 198, 220, 220, 220, 1288, 4906, 62, 37047, 796, 38357, 7, 30854, 62, 4906, 8, 198, 220, 220, 220, 1288, 4906, 62, 77, 4147, 796, 5002, 62, 10134, 62, 77, 4147, 7, 7762, 90, 417, 4906, 62, 37047, 30072, 198, 220, 220, 220, 5002, 62, 4906, 796, 5002, 62, 10134, 62, 4906, 7, 7762, 90, 417, 4906, 62, 37047, 30072, 198, 220, 220, 220, 2488, 10951, 7203, 47, 945, 278, 4847, 13, 5994, 25, 29568, 76, 58, 16, 35944, 5849, 1435, 25, 29568, 30854, 62, 4906, 8, 4943, 198, 220, 220, 220, 1351, 62, 48727, 796, 15000, 8053, 7, 6615, 11, 4686, 87, 62, 9688, 10, 16, 11, 4686, 87, 62, 437, 8, 198, 220, 220, 220, 1627, 796, 1351, 62, 48727, 3419, 198, 220, 220, 220, 981, 1627, 14512, 2147, 198, 220, 220, 220, 220, 220, 220, 220, 3146, 796, 21136, 62, 77, 17024, 7, 1370, 11, 2558, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 7, 28920, 62, 273, 62, 23893, 62, 1370, 7, 1370, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 796, 3146, 58, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 2340, 11, 4686, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19843, 796, 3146, 58, 17, 25, 437, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 4129, 7, 8443, 3458, 8, 14512, 1288, 4906, 62, 77, 4147, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 30493, 4129, 7, 8443, 3458, 8, 1279, 1288, 4906, 62, 77, 4147, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 1351, 62, 48727, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3146, 796, 21136, 62, 77, 17024, 7, 1370, 11, 2558, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 8443, 3458, 11, 3146, 23029, 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, 2746, 14692, 68, 3639, 1, 7131, 312, 60, 796, 19843, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2746, 14692, 30854, 62, 19199, 1, 7131, 312, 60, 796, 5002, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 1351, 62, 48727, 3419, 198, 220, 220, 220, 886, 198, 220, 220, 220, 751, 62, 2617, 0, 7, 19849, 11, 6770, 11, 366, 30854, 62, 28709, 1600, 366, 1424, 316, 1600, 220, 2340, 8, 198, 437, 198, 198, 37811, 10044, 325, 10139, 290, 4847, 316, 422, 5128, 3951, 198, 37811, 198, 8818, 21136, 62, 5458, 7, 19849, 11, 3951, 11, 1994, 11, 4686, 87, 62, 9688, 11, 4686, 87, 62, 437, 11, 7904, 38176, 90, 6030, 90, 7762, 90, 25, 8035, 2767, 92, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 5994, 90, 7762, 90, 25, 3698, 28480, 11709, 30072, 198, 220, 220, 220, 1366, 796, 2558, 21737, 198, 220, 220, 220, 900, 62, 260, 25636, 62, 8841, 796, 360, 713, 7, 25, 8035, 2767, 220, 5218, 374, 1, 8035, 2767, 16193, 58, 59, 86, 41441, 59, 62, 48688, 16725, 72, 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, 1058, 3698, 28480, 5218, 374, 1, 3698, 28480, 16193, 58, 59, 86, 41441, 59, 62, 48688, 16725, 72, 8, 198, 220, 220, 220, 6163, 62, 2617, 796, 1994, 6624, 1058, 8035, 2767, 5633, 366, 17440, 62, 28709, 1, 1058, 366, 30854, 62, 28709, 1, 198, 220, 220, 220, 6770, 796, 3951, 58, 312, 87, 62, 9688, 60, 198, 220, 220, 220, 40364, 62, 8841, 796, 900, 62, 260, 25636, 62, 8841, 58, 2539, 60, 198, 220, 220, 220, 900, 62, 3672, 796, 40364, 62, 15699, 7, 260, 25636, 62, 8841, 11, 6770, 11, 352, 8, 198, 220, 220, 220, 2488, 10951, 7203, 32071, 29568, 21037, 7442, 7, 8841, 7, 2539, 22305, 720, 2617, 62, 3672, 4943, 628, 220, 220, 220, 611, 886, 2032, 342, 7, 36311, 7, 7211, 2798, 589, 7, 46758, 36911, 366, 35353, 1137, 6158, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 3951, 58, 312, 87, 62, 9688, 1343, 352, 60, 198, 220, 220, 220, 220, 220, 220, 220, 717, 62, 312, 11, 938, 62, 312, 11, 2239, 62, 796, 21136, 62, 77, 17024, 7, 1370, 11, 2558, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 62, 2340, 796, 2824, 7, 11085, 62, 312, 25, 9662, 62, 25, 12957, 62, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7890, 11, 900, 62, 2340, 23029, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1627, 287, 3951, 58, 312, 87, 62, 9688, 1343, 352, 25, 4686, 87, 62, 437, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 7, 28920, 62, 273, 62, 23893, 62, 1370, 7, 1370, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 900, 62, 2340, 796, 21136, 62, 77, 17024, 7, 1370, 11, 2558, 2599, 25, 38469, 90, 5317, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7890, 11, 900, 62, 2340, 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, 198, 220, 220, 220, 2746, 58, 34213, 62, 2617, 7131, 2617, 62, 3672, 60, 796, 1366, 198, 437, 198, 198, 37811, 10044, 325, 41016, 49836, 21179, 198, 37811, 198, 8818, 21136, 62, 5458, 7, 19849, 11, 3951, 11, 7904, 13940, 23650, 11, 4686, 87, 62, 9688, 11, 4686, 87, 62, 437, 11, 7904, 6030, 90, 7762, 90, 25, 50, 4261, 49836, 11709, 8, 198, 220, 220, 220, 1366, 796, 20650, 90, 51, 29291, 90, 5317, 11, 38357, 11709, 3419, 198, 220, 220, 220, 6770, 796, 3951, 58, 312, 87, 62, 9688, 60, 628, 220, 220, 220, 468, 62, 2617, 62, 4299, 796, 21136, 62, 46758, 7, 46758, 8, 198, 220, 220, 220, 468, 62, 2617, 62, 4299, 14512, 2147, 8614, 1441, 198, 220, 220, 220, 900, 62, 4906, 796, 651, 7, 10134, 62, 2617, 62, 4299, 11, 366, 4906, 1600, 366, 4944, 44706, 4943, 198, 220, 220, 220, 900, 62, 3672, 796, 468, 62, 2617, 62, 4299, 14692, 3672, 8973, 628, 220, 220, 220, 329, 1627, 287, 3951, 58, 312, 87, 62, 9688, 1343, 352, 25, 4686, 87, 62, 437, 60, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 273, 62, 23893, 62, 1370, 7, 1370, 8, 11405, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 285, 796, 2872, 7, 81, 18109, 30, 47, 27, 30854, 62, 312, 29, 59, 67, 10, 828, 15885, 7, 30, 47, 27, 30854, 62, 1589, 29, 50, 59, 67, 10, 737, 9, 1600, 1627, 8, 198, 220, 220, 220, 220, 220, 220, 220, 5002, 62, 312, 796, 21136, 7, 5317, 11, 285, 58, 25, 30854, 62, 312, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 5002, 62, 1589, 796, 38357, 7, 76, 58, 25, 30854, 62, 1589, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7890, 11, 357, 30854, 62, 312, 11, 5002, 62, 1589, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2746, 14692, 42029, 62, 19199, 1, 7131, 2617, 62, 3672, 60, 796, 38357, 7, 2617, 62, 4906, 8, 198, 220, 220, 220, 2746, 14692, 42029, 62, 28709, 1, 7131, 2617, 62, 3672, 60, 796, 1366, 198, 220, 220, 220, 1441, 198, 437, 198, 198, 37811, 16742, 3951, 11, 543, 3994, 26286, 11, 329, 1672, 366, 9, 45, 16820, 1, 198, 37811, 198, 8818, 1064, 62, 2539, 10879, 7, 6615, 8, 198, 220, 220, 220, 39199, 796, 2558, 21737, 198, 220, 220, 220, 329, 357, 312, 87, 11, 1627, 8, 287, 27056, 378, 7, 6615, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 923, 2032, 342, 7, 1370, 11, 366, 9, 4943, 11405, 5145, 9688, 2032, 342, 7, 1370, 11, 366, 1174, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 9630, 274, 11, 4686, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 39199, 198, 437, 198, 198, 37811, 13383, 2163, 329, 32096, 2275, 30188, 385, 5128, 2393, 13, 198, 198, 22203, 13544, 274, 2275, 30188, 385, 5128, 2393, 290, 18616, 257, 22155, 286, 198, 439, 262, 1695, 26286, 13, 198, 37811, 198, 8818, 21136, 62, 15498, 45260, 7, 69, 312, 3712, 9399, 12124, 8, 198, 220, 220, 220, 2746, 796, 360, 713, 90, 10100, 11, 360, 713, 92, 3419, 198, 220, 220, 220, 2746, 14692, 77, 4147, 8973, 796, 360, 713, 90, 5317, 11, 20650, 90, 43879, 2414, 11709, 3419, 198, 220, 220, 220, 2746, 14692, 17440, 62, 28709, 8973, 796, 360, 713, 90, 10100, 11, 20650, 90, 5317, 11709, 3419, 198, 220, 220, 220, 2746, 14692, 68, 3639, 8973, 796, 360, 713, 90, 5317, 11, 20650, 90, 5317, 11709, 3419, 198, 220, 220, 220, 2746, 14692, 30854, 62, 19199, 8973, 796, 360, 713, 90, 5317, 11, 38357, 92, 3419, 198, 220, 220, 220, 2746, 14692, 30854, 62, 28709, 8973, 796, 360, 713, 90, 10100, 11, 20650, 90, 5317, 11709, 3419, 198, 220, 220, 220, 2746, 14692, 42029, 62, 28709, 8973, 796, 360, 713, 90, 10100, 11, 20650, 90, 51, 29291, 90, 5317, 11, 38357, 42535, 3419, 198, 220, 220, 220, 2746, 14692, 42029, 62, 19199, 8973, 796, 360, 713, 90, 10100, 11, 38357, 92, 3419, 198, 220, 220, 220, 21179, 62, 37047, 3712, 13940, 23650, 796, 1058, 23108, 628, 220, 220, 220, 3951, 796, 1100, 6615, 7, 69, 312, 8, 198, 220, 220, 220, 21179, 62, 9630, 274, 796, 1064, 62, 2539, 10879, 7, 6615, 8, 198, 220, 220, 220, 299, 2539, 4775, 62, 9630, 274, 796, 4129, 7, 2539, 4775, 62, 9630, 274, 8, 198, 220, 220, 220, 4574, 0, 7, 2539, 4775, 62, 9630, 274, 11, 4129, 7, 6615, 47762, 16, 8, 198, 220, 220, 220, 4686, 87, 62, 9688, 796, 21179, 62, 9630, 274, 58, 16, 60, 628, 220, 220, 220, 329, 4686, 87, 62, 437, 287, 21179, 62, 9630, 274, 58, 17, 25, 437, 60, 198, 220, 220, 220, 220, 220, 220, 220, 21179, 62, 1370, 796, 10283, 7, 7211, 2798, 589, 7, 6615, 58, 312, 87, 62, 9688, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 21179, 796, 10283, 7, 260, 25636, 62, 15699, 7, 81, 1, 59, 82, 9, 26933, 59, 86, 2361, 28988, 1600, 21179, 62, 1370, 11, 352, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 479, 62, 37047, 796, 38357, 7, 2539, 4775, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 796, 309, 29291, 90, 35, 713, 11, 20650, 90, 5317, 5512, 38357, 11, 2558, 11, 2558, 11, 5994, 90, 7762, 90, 74, 62, 37047, 42535, 198, 220, 220, 220, 220, 220, 220, 220, 611, 468, 24396, 7, 29572, 62, 5458, 11, 26498, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21136, 62, 5458, 7, 19849, 11, 3951, 11, 479, 62, 37047, 11, 4686, 87, 62, 9688, 11, 4686, 87, 62, 437, 12, 16, 11, 3254, 90, 74, 62, 37047, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 40539, 7203, 20035, 2665, 25, 705, 3, 7, 2539, 4775, 33047, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 87, 62, 9688, 796, 4686, 87, 62, 437, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2746, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 450, 30188, 385, 62, 961, 62, 76, 5069, 7, 22184, 3712, 10100, 8, 198, 198, 5569, 317, 4339, 48, 2937, 19609, 422, 2393, 4600, 22184, 44646, 16409, 257, 8633, 351, 4847, 11, 13760, 11, 198, 30854, 5621, 11, 10139, 5621, 290, 584, 1353, 13437, 848, 273, 415, 1243, 11, 475, 198, 1662, 262, 4036, 2746, 351, 18645, 3403, 11, 3440, 4831, 290, 523, 319, 13, 198, 37811, 198, 8818, 450, 30188, 385, 62, 961, 62, 76, 5069, 7, 22184, 3712, 10100, 8, 198, 220, 220, 220, 1441, 1280, 7, 29572, 62, 15498, 45260, 11, 24714, 8, 198, 437, 198 ]
2.315065
3,996
using Documenter using DiffEqBase makedocs( sitename = "DiffEqBase", format = :html, modules = [DiffEqBase], pages = [ "index.md", "API" => [ "Overview" => "api/overview.md", "api/functions.md", "api/problems.md", ], ], ) # Documenter can also automatically deploy documentation to gh-pages. # See "Hosting Documentation" and deploydocs() in the Documenter manual # for more information. #=deploydocs( repo = "<repository url>" )=#
[ 3500, 16854, 263, 198, 3500, 10631, 36, 80, 14881, 198, 198, 76, 4335, 420, 82, 7, 198, 220, 220, 220, 1650, 12453, 796, 366, 28813, 36, 80, 14881, 1600, 198, 220, 220, 220, 5794, 796, 1058, 6494, 11, 198, 220, 220, 220, 13103, 796, 685, 28813, 36, 80, 14881, 4357, 198, 220, 220, 220, 5468, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 366, 9630, 13, 9132, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 17614, 1, 5218, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 29064, 1, 5218, 366, 15042, 14, 2502, 1177, 13, 9132, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 15042, 14, 12543, 2733, 13, 9132, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 15042, 14, 1676, 22143, 13, 9132, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 16589, 198, 8, 198, 198, 2, 16854, 263, 460, 635, 6338, 6061, 10314, 284, 24997, 12, 31126, 13, 198, 2, 4091, 366, 17932, 278, 43925, 1, 290, 6061, 31628, 3419, 287, 262, 16854, 263, 10107, 198, 2, 329, 517, 1321, 13, 198, 2, 28, 2934, 1420, 31628, 7, 198, 220, 220, 220, 29924, 796, 33490, 260, 1930, 37765, 19016, 24618, 198, 8, 46249, 198 ]
2.3125
224
function RTs_SS(a,b,distri,cohmeasure) # a quantity to mean # b quantity to test # Return the mean of RTs and STD # Sucess after Sucess output = Float64[] for i=1:length(a)-1 x = b[i] y=b[i+1] x > 0 && y >0 && distri[i+1]*distri[i] > 0 && distri[i+1] == cohmeasure || continue push!(output,a[i+1]) end return mean(output),std(output),length(output) end function performance(results) # compute the performance of the model # need the list of of results for a specific coherence return sum(results)/length(results) end function RTs_SE(a,b,distri,cohmeasure) # a quantity to mean # b quantity to test # Error after Sucess t = 0 c = 0 output=Float64[] for i=1:length(a)-1 x = b[i] y=b[i+1] x > 0 && y <0 && distri[i+1]*distri[i] > 0 && distri[i+1] == cohmeasure || continue push!(output,a[i+1]) end return mean(output),std(output),length(output) end function RTs_ES(a,b,distri,cohmeasure) # a quantity to mean # b quantity to test ## Sucess after Error output=Float64[] for i=1:length(a)-1 x = b[i] y=b[i+1] x < 0 && y >0 && distri[i+1] == cohmeasure|| continue push!(output,a[i+1]) end return mean(output),std(output),length(output) end function RTs_SSS(a,b) # Sucess after Sucess after Sucess # same sign coh but not same one output=Float64[] for i=1:length(a)-2 x = b[i] y=b[i+1] z=b[i+2] x > 0 && y >0 && z>0 && distri[i]*distri[i+1]>0 && distri[i+1]*distri[i+2] && distri[i+2] == cohmeasure|| continue push!(output,a[i+2]) end return mean(output),std(output),length(output) end function RTs_SSE(a,b) # Error after Sucess after Sucess t = 0 c = 0 output=Float64[] for i=1:length(a)-2 x = b[i] y=b[i+1] z=b[i+2] x > 0 && y >0 && z<0&& distri[i]*distri[i+1]>0 && distri[i+1]*distri[i+2] && distri[i+2] == cohmeasure|| continue push!(output,a[i+2]) end return mean(output),std(output),length(output) end function RTs_SS_chgt(RT,Res,distri,coherence) output = Float64[] for i =1:length(RT)-1 if Res[i]==1 && Res[i+1] == 1 && distri[i+1] == coherence && distri[i]*distri[i+1] <0 || continue push!(output,RT[i+1]) end end return mean(output) end function analysis_RTs_E(result,Rts_coh) listc=Float64[] listv=Float64[] for c in [0 1 2 3 4 5 6 7 8] tempv = Float64[] temp=Float64[] for i in 1:length(result["distri"])-1 if sign(result["distri"][i])==sign(result["distri"][i+1]) && result["Confidence"][i+1]>(c-1) &&result["NotError"][i]==-1 #&&result["NotError"][i+1]==1 x=result["distri"][i+1] push!(tempv,result["RTs"][i+1]) if abs(x) <10 push!(temp,(Rts_coh["$x"]-result["RTs"][i+1])/Rts_coh["$x"]) end end end push!(listc,mean(temp)) push!(listv,var(temp)) end return listc,listv end function analysis_RTs_SE(result,Rts_coh) listc=Float64[] listv=Float64[] for c in [0 1 2 3 4 5 6 7 8] tempv = Float64[] temp=Float64[] for i in 1:length(result["distri"])-1 if sign(result["distri"][i])==sign(result["distri"][i+1]) && result["Confidence"][i+1]>(c-1) &&result["NotError"][i]==-1 &&result["NotError"][i+1]==1 x=result["distri"][i+1] push!(tempv,result["RTs"][i+1]) push!(temp,(Rts_coh["$x"]-result["RTs"][i+1])/Rts_coh["$x"]) end end push!(listc,mean(temp)) push!(listv,var(temp)) end return listc,listv end function analysis_RTs_SS(result,Rts_coh) listc=Float64[] listv=Float64[] for c in [0 1 2 3 4 5 6 7 8] tempv = Float64[] temp=Float64[] for i in 1:length(result["distri"])-1 if sign(result["distri"][i])==sign(result["distri"][i+1]) && result["Confidence"][i+1]>(c-1) &&result["NotError"][i]==1 &&result["NotError"][i+1]==1 x=result["distri"][i+1] push!(tempv,result["RTs"][i+1]) push!(temp,(Rts_coh["$x"]-result["RTs"][i+1])/Rts_coh["$x"]) end end push!(listc,mean(temp)) push!(listv,var(temp)) end return listc,listv end function analysis_RTs_E_cohspec(result,Rts_coh) listc=Float64[] for c in [0 1 2 3 4 5 6 7 8] temp=Float64[] for i in 1:length(result["distri"])-1 if sign(result["distri"][i])==sign(result["distri"][i+1]) && result["Confidence"][i+1]==c &&result["NotError"][i]==-1 #&&result["NotError"][i+1]==1 x=result["distri"][i+1] push!(temp,(Rts_coh["$x"]-result["RTs"][i+1])/Rts_coh["$x"]) end end push!(listc,mean(temp)) end return listc end function analysis_RTs_SE_cohspec(result,Rts_coh) listc=Float64[] for c in [0 1 2 3 4 5 6 7 8] temp=Float64[] for i in 1:length(result["distri"])-1 if sign(result["distri"][i])==sign(result["distri"][i+1]) && result["Confidence"][i+1]==c &&result["NotError"][i]==-1 &&result["NotError"][i+1]==1 x=result["distri"][i+1] push!(temp,(Rts_coh["$x"]-result["RTs"][i+1])/Rts_coh["$x"]) end end push!(listc,mean(temp)) end return listc end function analysis_RTs_SS_cohspec(result,Rts_coh) listc=Float64[] for c in [0 1 2 3 4 5 6 7 8] temp=Float64[] for i in 1:length(result["distri"])-1 if sign(result["distri"][i])==sign(result["distri"][i+1]) && result["Confidence"][i+1]==(c-1) &&result["NotError"][i]==1 &&result["NotError"][i+1]==1 x=result["distri"][i+1] push!(temp,(Rts_coh["$x"]-result["RTs"][i+1])/Rts_coh["$x"]) end end push!(listc,mean(temp)) end return listc end function load_Jerome_E() data = CSV.read("/home/kevin/Documents/PhD/PhD_Data/Jerome_17/secondFirst.csv",nullable=false) #data = CSV.read("/media/kevin/Boulot/PhD/PhD_Data/Jerome_17/secondFirst.csv",nullable=false) rt_confidence = [] # for confidence task results_confidence = [] cursor_confidence = [] coherence_confidence = [] reponse_confidence = [] name_confidence=[] number=Float64[] for i=1:length(data[1]) if data[3][i] == "confidence" push!(reponse_confidence,data[6][i]) push!(cursor_confidence,data[11][i]) push!(coherence_confidence,data[5][i]) push!(rt_confidence,data[7][i]) push!(results_confidence,data[20][i]) push!(name_confidence,data[2][i]) push!(number,parse(Float64,data[1][i])) end end #list_coherence = [-2.4 -1.6 -0.8 0 0.8 1.6 2.4] #list_coherence_string=["-2.4" "-1.6" "-0.8" "0" "0.8" "1.6" "2.4"] list_coherence = [-2.4 -1.6 -0.8 0 0.8 1.6 2.4] list_coherence_string=["-2.4" "-1.6" "-0.8" "0" "0.8" "1.6" "2.4" ] dic_rt_confidence = Dict() for coh_string in list_coherence_string rt_new = rt_confidence[coherence_confidence.==parse(Float64,coh_string)] dic_rt_confidence[coh_string]=mean(rt_new[rt_new.<1500]) end dic_rt_cursor_error=Dict() for cursor in [0 1 2 3 4 5 6 7 8] rt_list_difference=Float64[] for i=1:(length(rt_confidence)-1) if sign(coherence_confidence[i])==sign(coherence_confidence[i+1]) && name_confidence[i] == name_confidence[i+1] && results_confidence[i] == 0 && number[i] +1 == number[i+1]#&&results_confidence[i+1] == 1 if rt_confidence[i]<1500 && rt_confidence[i+1] <1500 && cursor_confidence[i]>cursor #&& cohVEA[i]!=0 x=coherence_confidence[i+1] if x==0 # because 0 is a float in our data push!(rt_list_difference,((dic_rt_confidence["0"]-rt_confidence[i+1])/dic_rt_confidence["0"])) else push!(rt_list_difference,((dic_rt_confidence["$x"]-rt_confidence[i+1])/dic_rt_confidence["$x"])) end end end end println(length(rt_list_difference)) dic_rt_cursor_error["$cursor"]=mean(rt_list_difference)*100 dic_rt_cursor_error["var $cursor"]=var(rt_list_difference*100)/700 dic_rt_cursor_error["label $cursor"]=length(rt_list_difference) end exp_list2=Float64[] var_list2=Float64[] for cursor in [0 1 2 3 4 5 6 7 8] push!(exp_list2,dic_rt_cursor_error["$cursor"]) push!(var_list2,dic_rt_cursor_error["var $cursor"]) end return exp_list2,var_list2 end function load_Jerome_SS() data = CSV.read("/home/kevin/Documents/PhD/PhD_Data/Jerome_17/secondFirst.csv",nullable=false) # data = CSV.read("/media/kevin/Boulot/PhD/PhD_Data/Jerome_17/secondFirst.csv",nullable=false) rt_confidence = [] # for confidence task results_confidence = [] cursor_confidence = [] coherence_confidence = [] reponse_confidence = [] name_confidence=[] number=[] for i=1:length(data[1]) if data[3][i] == "confidence" push!(reponse_confidence,data[6][i]) push!(cursor_confidence,data[11][i]) push!(coherence_confidence,data[5][i]) push!(rt_confidence,data[7][i]) push!(results_confidence,data[20][i]) push!(name_confidence,data[2][i]) push!(number,parse(Float64,data[1][i])) end end list_coherence = [-2.4 -1.6 -0.8 0 0.8 1.6 2.4] list_coherence_string=["-2.4" "-1.6" "-0.8" "0" "0.8" "1.6" "2.4"] dic_rt_confidence = Dict() for coh_string in list_coherence_string rt_new = rt_confidence[coherence_confidence.==parse(Float64,coh_string)] dic_rt_confidence[coh_string]=mean(rt_new[rt_new.<1500]) println(mean(rt_new[rt_new.<1500])) end dic_rt_cursor_error=Dict() for cursor in [0 1 2 3 4 5 6 7 8] rt_list_difference=Float64[] for i=1:(length(rt_confidence)-1) if coherence_confidence[i]==coherence_confidence[i+1] && name_confidence[i] == name_confidence[i+1] && number[i]+1==number[i+1] && results_confidence[i] == 1 &&results_confidence[i+1] == 1 if rt_confidence[i]<1500 && rt_confidence[i+1] <1500 && cursor_confidence[i]>cursor #&& cohVEA[i]!=0 x=coherence_confidence[i+1] if x==0 # because 0 is a float in our data push!(rt_list_difference,((rt_confidence[i]-rt_confidence[i+1])/dic_rt_confidence["0"])) else push!(rt_list_difference,((rt_confidence[i]-rt_confidence[i+1])/dic_rt_confidence["$x"])) end #if x==0 # because 0 is a float in our data # push!(rt_list_difference,((dic_rt_confidence["0"]-rt_confidence[i+1])/dic_rt_confidence["0"])) #else # push!(rt_list_difference,((dic_rt_confidence["$x"]-rt_confidence[i+1])/dic_rt_confidence["$x"])) #end end end end println(length(rt_list_difference)) dic_rt_cursor_error["$cursor"]=mean(rt_list_difference)*100 dic_rt_cursor_error["var $cursor"]=var(rt_list_difference) dic_rt_cursor_error["label $cursor"]=length(rt_list_difference) end exp_list2=Float64[] var_list2=Float64[] for cursor in [0 1 2 3 4 5 6 7 8] push!(exp_list2,dic_rt_cursor_error["$cursor"]) push!(var_list2,dic_rt_cursor_error["var $cursor"]) end return exp_list2,var_list2 end function load_Jerome_SE_cohspec() data = CSV.read("/home/kevin/Documents/PhD/PhD_Data/Jerome_17/secondFirst.csv",nullable=false) # data = CSV.read("/media/kevin/Boulot/PhD/PhD_Data/Jerome_17/secondFirst.csv",nullable=false) rt_confidence = [] # for confidence task results_confidence = [] cursor_confidence = [] coherence_confidence = [] reponse_confidence = [] name_confidence=[] for i=1:length(data[1]) if data[3][i] == "confidence" push!(reponse_confidence,data[6][i]) push!(cursor_confidence,data[11][i]) push!(coherence_confidence,data[5][i]) push!(rt_confidence,data[7][i]) push!(results_confidence,data[20][i]) push!(name_confidence,data[2][i]) end end list_coherence = [-2.4 -1.6 -0.8 0 0.8 1.6 2.4] list_coherence_string=["-2.4" "-1.6" "-0.8" "0" "0.8" "1.6" "2.4"] dic_rt_confidence = Dict() for coh_string in list_coherence_string rt_new = rt_confidence[coherence_confidence.==parse(Float64,coh_string)] dic_rt_confidence[coh_string]=mean(rt_new[rt_new.<1500]) end dic_rt_cursor_error=Dict() for cursor in [0 1 2 3 4 5 6 7 8] rt_list_difference=Float64[] for i=1:(length(rt_confidence)-1) if sign(coherence_confidence[i])==sign(coherence_confidence[i+1]) && name_confidence[i] == name_confidence[i+1] && results_confidence[i] == 0 &&results_confidence[i+1] == 1 if rt_confidence[i]<1500 && rt_confidence[i+1] <1500 && cursor_confidence[i]==cursor+1 #&& cohVEA[i]!=0 x=coherence_confidence[i+1] if x==0 # because 0 is a float in our data push!(rt_list_difference,((dic_rt_confidence["0"]-rt_confidence[i+1])/dic_rt_confidence["0"])) else push!(rt_list_difference,((dic_rt_confidence["$x"]-rt_confidence[i+1])/dic_rt_confidence["$x"])) end end end end println(length(rt_list_difference)) dic_rt_cursor_error["$cursor"]=mean(rt_list_difference)*100 dic_rt_cursor_error["var $cursor"]=var(rt_list_difference) dic_rt_cursor_error["label $cursor"]=length(rt_list_difference) end exp_list2=Float64[] var_list2=Float64[] for cursor in [0 1 2 3 4 5 6 7 8] push!(exp_list2,dic_rt_cursor_error["$cursor"]) push!(var_list2,dic_rt_cursor_error["var $cursor"]) end return exp_list2,var_list2 end function load_Jerome_SE() data = CSV.read("/home/kevin/Documents/PhD/PhD_Data/Jerome_17/secondFirst.csv",nullable=false) # data = CSV.read("/media/kevin/Boulot/PhD/PhD_Data/Jerome_17/secondFirst.csv",nullable=false) rt_confidence = [] # for confidence task results_confidence = [] cursor_confidence = [] coherence_confidence = [] reponse_confidence = [] name_confidence=[] number=Float64[] for i=1:length(data[1]) if data[3][i] == "confidence" push!(reponse_confidence,data[6][i]) push!(cursor_confidence,data[11][i]) push!(coherence_confidence,data[5][i]) push!(rt_confidence,data[7][i]) push!(results_confidence,data[20][i]) push!(name_confidence,data[2][i]) push!(number,parse(Float64,data[1][i])) end end list_coherence = [-2.4 -1.6 -0.8 0 0.8 1.6 2.4] list_coherence_string=["-2.4" "-1.6" "-0.8" "0" "0.8" "1.6" "2.4"] dic_rt_confidence = Dict() for coh_string in list_coherence_string rt_new = rt_confidence[coherence_confidence.==parse(Float64,coh_string)] dic_rt_confidence[coh_string]=mean(rt_new[rt_new.<1500]) end dic_rt_cursor_error=Dict() for cursor in [0 1 2 3 4 5 6 7 8] rt_list_difference=Float64[] for i=1:(length(rt_confidence)-1) if sign(coherence_confidence[i])==sign(coherence_confidence[i+1]) && name_confidence[i] == name_confidence[i+1] && number[i] + 1 == number[i+1] && results_confidence[i] == 0 &&results_confidence[i+1] == 1 if rt_confidence[i]<1500 && rt_confidence[i+1] <1500 && cursor_confidence[i]>=cursor+1 #&& cohVEA[i]!=0 x=coherence_confidence[i+1] if x==0 # because 0 is a float in our data push!(rt_list_difference,((dic_rt_confidence["0"]-rt_confidence[i+1])/dic_rt_confidence["0"])) else push!(rt_list_difference,((dic_rt_confidence["$x"]-rt_confidence[i+1])/dic_rt_confidence["$x"])) end end end end println(length(rt_list_difference)) dic_rt_cursor_error["$cursor"]=mean(rt_list_difference)*100 dic_rt_cursor_error["var $cursor"]=var(rt_list_difference) dic_rt_cursor_error["label $cursor"]=length(rt_list_difference) end exp_list2=Float64[] var_list2=Float64[] for cursor in [0 1 2 3 4 5 6 7 8] push!(exp_list2,dic_rt_cursor_error["$cursor"]) push!(var_list2,dic_rt_cursor_error["var $cursor"]) end return exp_list2,var_list2 end function load_Jerome_nextRTE() data = CSV.read("/home/kevin/Documents/PhD/PhD_Data/Jerome_17/secondFirst.csv",nullable=false) # data = CSV.read("/media/kevin/Boulot/PhD/PhD_Data/Jerome_17/secondFirst.csv",nullable=false) rt_confidence = [] # for confidence task results_confidence = [] cursor_confidence = [] coherence_confidence = [] reponse_confidence = [] name_confidence=[] number=Float64[] for i=1:length(data[1]) if data[3][i] == "confidence" push!(reponse_confidence,data[6][i]) push!(cursor_confidence,data[11][i]) push!(coherence_confidence,data[5][i]) push!(rt_confidence,data[7][i]) push!(results_confidence,data[20][i]) push!(name_confidence,data[2][i]) push!(number,parse(Float64,data[1][i])) end end list_coherence = [-2.4 -1.6 -0.8 0 0.8 1.6 2.4] list_coherence_string=["-2.4" "-1.6" "-0.8" "0" "0.8" "1.6" "2.4"] dic_rt_confidence = Dict() for coh_string in list_coherence_string rt_new = rt_confidence[coherence_confidence.==parse(Float64,coh_string)] dic_rt_confidence[coh_string]=mean(rt_new[rt_new.<1500]) end dic_rt_cursor_error=Dict() for cursor in [0 1 2 3 4 5 6 7 8] rt_list_difference=Float64[] for i=1:(length(rt_confidence)-1) if name_confidence[i] == name_confidence[i+1] && number[i] + 1 == number[i+1] && results_confidence[i] == 0 # &&results_confidence[i+1] == 1 if rt_confidence[i]<1500 && rt_confidence[i+1] <1500 && cursor_confidence[i]==cursor+1 #&& cohVEA[i]!=0 x=coherence_confidence[i+1] if x==0 # because 0 is a float in our data push!(rt_list_difference,((dic_rt_confidence["0"]-rt_confidence[i+1]))) else push!(rt_list_difference,((dic_rt_confidence["$x"]-rt_confidence[i+1]))) end end end end println(length(rt_list_difference)) dic_rt_cursor_error["$cursor"]=mean(rt_list_difference) dic_rt_cursor_error["var $cursor"]=var(rt_list_difference) dic_rt_cursor_error["label $cursor"]=length(rt_list_difference) end exp_list2=Float64[] var_list2=Float64[] for cursor in [0 1 2 3 4 5 6 7 8] push!(exp_list2,dic_rt_cursor_error["$cursor"]) push!(var_list2,dic_rt_cursor_error["var $cursor"]) end return exp_list2,var_list2 end
[ 198, 8818, 11923, 82, 62, 5432, 7, 64, 11, 65, 11, 17080, 380, 11, 1073, 71, 1326, 5015, 8, 198, 220, 220, 220, 1303, 257, 12040, 284, 1612, 198, 220, 220, 220, 1303, 275, 12040, 284, 1332, 198, 220, 220, 220, 1303, 8229, 262, 1612, 286, 11923, 82, 290, 48571, 198, 220, 220, 220, 1303, 1778, 919, 706, 1778, 919, 198, 220, 220, 220, 5072, 796, 48436, 2414, 21737, 198, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 64, 13219, 16, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 275, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 331, 28, 65, 58, 72, 10, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 1875, 657, 11405, 331, 1875, 15, 11405, 1233, 380, 58, 72, 10, 16, 60, 9, 17080, 380, 58, 72, 60, 1875, 657, 11405, 1233, 380, 58, 72, 10, 16, 60, 6624, 16883, 1326, 5015, 8614, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 22915, 11, 64, 58, 72, 10, 16, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1612, 7, 22915, 828, 19282, 7, 22915, 828, 13664, 7, 22915, 8, 198, 437, 198, 198, 8818, 2854, 7, 43420, 8, 198, 220, 220, 220, 1303, 24061, 262, 2854, 286, 262, 2746, 198, 220, 220, 220, 1303, 761, 262, 1351, 286, 286, 2482, 329, 257, 2176, 763, 23545, 198, 220, 220, 220, 1441, 2160, 7, 43420, 20679, 13664, 7, 43420, 8, 198, 437, 198, 198, 8818, 11923, 82, 62, 5188, 7, 64, 11, 65, 11, 17080, 380, 11, 1073, 71, 1326, 5015, 8, 198, 220, 220, 220, 1303, 257, 12040, 284, 1612, 198, 220, 220, 220, 1303, 275, 12040, 284, 1332, 198, 220, 220, 220, 1303, 13047, 706, 1778, 919, 198, 220, 220, 220, 256, 796, 657, 198, 220, 220, 220, 269, 796, 657, 198, 220, 220, 220, 5072, 28, 43879, 2414, 21737, 198, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 64, 13219, 16, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 275, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 331, 28, 65, 58, 72, 10, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 1875, 657, 11405, 331, 1279, 15, 11405, 1233, 380, 58, 72, 10, 16, 60, 9, 17080, 380, 58, 72, 60, 1875, 657, 11405, 1233, 380, 58, 72, 10, 16, 60, 6624, 16883, 1326, 5015, 8614, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 22915, 11, 64, 58, 72, 10, 16, 12962, 628, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1612, 7, 22915, 828, 19282, 7, 22915, 828, 13664, 7, 22915, 8, 198, 437, 198, 198, 8818, 11923, 82, 62, 1546, 7, 64, 11, 65, 11, 17080, 380, 11, 1073, 71, 1326, 5015, 8, 198, 220, 220, 220, 1303, 257, 12040, 284, 1612, 198, 220, 220, 220, 1303, 275, 12040, 284, 1332, 198, 220, 220, 220, 22492, 1778, 919, 706, 13047, 198, 220, 220, 220, 5072, 28, 43879, 2414, 21737, 198, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 64, 13219, 16, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 275, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 331, 28, 65, 58, 72, 10, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 1279, 657, 11405, 331, 1875, 15, 11405, 1233, 380, 58, 72, 10, 16, 60, 6624, 16883, 1326, 5015, 15886, 2555, 628, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 22915, 11, 64, 58, 72, 10, 16, 12962, 628, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1612, 7, 22915, 828, 19282, 7, 22915, 828, 13664, 7, 22915, 8, 198, 437, 198, 198, 8818, 11923, 82, 62, 5432, 50, 7, 64, 11, 65, 8, 198, 220, 220, 220, 1303, 1778, 919, 706, 1778, 919, 706, 1778, 919, 198, 220, 220, 220, 1303, 976, 1051, 16883, 475, 407, 976, 530, 198, 220, 220, 220, 5072, 28, 43879, 2414, 21737, 198, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 64, 13219, 17, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 275, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 331, 28, 65, 58, 72, 10, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 28, 65, 58, 72, 10, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 1875, 657, 11405, 331, 1875, 15, 11405, 1976, 29, 15, 11405, 1233, 380, 58, 72, 60, 9, 17080, 380, 58, 72, 10, 16, 60, 29, 15, 11405, 1233, 380, 58, 72, 10, 16, 60, 9, 17080, 380, 58, 72, 10, 17, 60, 11405, 1233, 380, 58, 72, 10, 17, 60, 6624, 16883, 1326, 5015, 15886, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 22915, 11, 64, 58, 72, 10, 17, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1612, 7, 22915, 828, 19282, 7, 22915, 828, 13664, 7, 22915, 8, 198, 437, 628, 198, 8818, 11923, 82, 62, 50, 5188, 7, 64, 11, 65, 8, 198, 220, 220, 220, 1303, 13047, 706, 1778, 919, 706, 1778, 919, 198, 220, 220, 220, 256, 796, 657, 198, 220, 220, 220, 269, 796, 657, 198, 220, 220, 220, 5072, 28, 43879, 2414, 21737, 628, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 64, 13219, 17, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 275, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 331, 28, 65, 58, 72, 10, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 28, 65, 58, 72, 10, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 1875, 657, 11405, 331, 1875, 15, 11405, 1976, 27, 15, 25226, 1233, 380, 58, 72, 60, 9, 17080, 380, 58, 72, 10, 16, 60, 29, 15, 11405, 1233, 380, 58, 72, 10, 16, 60, 9, 17080, 380, 58, 72, 10, 17, 60, 11405, 1233, 380, 58, 72, 10, 17, 60, 6624, 16883, 1326, 5015, 15886, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 22915, 11, 64, 58, 72, 10, 17, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1612, 7, 22915, 828, 19282, 7, 22915, 828, 13664, 7, 22915, 8, 198, 437, 198, 198, 8818, 11923, 82, 62, 5432, 62, 354, 13655, 7, 14181, 11, 4965, 11, 17080, 380, 11, 1073, 23545, 8, 198, 220, 220, 220, 5072, 796, 48436, 2414, 21737, 198, 220, 220, 220, 329, 1312, 796, 16, 25, 13664, 7, 14181, 13219, 16, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1874, 58, 72, 60, 855, 16, 11405, 1874, 58, 72, 10, 16, 60, 6624, 352, 11405, 1233, 380, 58, 72, 10, 16, 60, 6624, 763, 23545, 11405, 1233, 380, 58, 72, 60, 9, 17080, 380, 58, 72, 10, 16, 60, 1279, 15, 220, 8614, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 22915, 11, 14181, 58, 72, 10, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1612, 7, 22915, 8, 198, 437, 198, 198, 8818, 3781, 62, 14181, 82, 62, 36, 7, 20274, 11, 49, 912, 62, 1073, 71, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 66, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 85, 28, 43879, 2414, 21737, 628, 220, 220, 220, 220, 220, 220, 220, 329, 269, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20218, 85, 796, 48436, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20218, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 13664, 7, 20274, 14692, 17080, 380, 8973, 13219, 16, 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, 1051, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 12962, 855, 12683, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 16, 12962, 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, 220, 220, 220, 220, 1255, 14692, 18546, 1704, 1, 7131, 72, 10, 16, 60, 33994, 66, 12, 16, 8, 11405, 20274, 14692, 3673, 12331, 1, 7131, 72, 60, 855, 12, 16, 1303, 25226, 20274, 14692, 3673, 12331, 1, 7131, 72, 10, 16, 60, 855, 16, 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, 2124, 28, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 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, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 29510, 85, 11, 20274, 14692, 14181, 82, 1, 7131, 72, 10, 16, 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, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2352, 7, 87, 8, 1279, 940, 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, 4574, 0, 7, 29510, 11, 7, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 12, 20274, 14692, 14181, 82, 1, 7131, 72, 10, 16, 12962, 14, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 8, 198, 437, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 66, 11, 32604, 7, 29510, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 85, 11, 7785, 7, 29510, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1351, 66, 11, 4868, 85, 198, 437, 198, 198, 8818, 3781, 62, 14181, 82, 62, 5188, 7, 20274, 11, 49, 912, 62, 1073, 71, 8, 198, 220, 220, 220, 1351, 66, 28, 43879, 2414, 21737, 198, 220, 220, 220, 1351, 85, 28, 43879, 2414, 21737, 628, 220, 220, 220, 329, 269, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20218, 85, 796, 48436, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20218, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 13664, 7, 20274, 14692, 17080, 380, 8973, 13219, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1051, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 12962, 855, 12683, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 16, 12962, 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, 1255, 14692, 18546, 1704, 1, 7131, 72, 10, 16, 60, 33994, 66, 12, 16, 8, 11405, 20274, 14692, 3673, 12331, 1, 7131, 72, 60, 855, 12, 16, 11405, 20274, 14692, 3673, 12331, 1, 7131, 72, 10, 16, 60, 855, 16, 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, 28, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 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, 220, 220, 220, 220, 4574, 0, 7, 29510, 85, 11, 20274, 14692, 14181, 82, 1, 7131, 72, 10, 16, 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, 220, 220, 220, 220, 4574, 0, 7, 29510, 11, 7, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 12, 20274, 14692, 14181, 82, 1, 7131, 72, 10, 16, 12962, 14, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 66, 11, 32604, 7, 29510, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 85, 11, 7785, 7, 29510, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1351, 66, 11, 4868, 85, 198, 437, 198, 198, 8818, 3781, 62, 14181, 82, 62, 5432, 7, 20274, 11, 49, 912, 62, 1073, 71, 8, 198, 220, 220, 220, 1351, 66, 28, 43879, 2414, 21737, 198, 220, 220, 220, 1351, 85, 28, 43879, 2414, 21737, 628, 220, 220, 220, 329, 269, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20218, 85, 796, 48436, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20218, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 13664, 7, 20274, 14692, 17080, 380, 8973, 13219, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1051, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 12962, 855, 12683, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 16, 12962, 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, 1255, 14692, 18546, 1704, 1, 7131, 72, 10, 16, 60, 33994, 66, 12, 16, 8, 11405, 20274, 14692, 3673, 12331, 1, 7131, 72, 60, 855, 16, 11405, 20274, 14692, 3673, 12331, 1, 7131, 72, 10, 16, 60, 855, 16, 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, 28, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 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, 220, 220, 220, 220, 4574, 0, 7, 29510, 85, 11, 20274, 14692, 14181, 82, 1, 7131, 72, 10, 16, 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, 220, 220, 220, 220, 4574, 0, 7, 29510, 11, 7, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 12, 20274, 14692, 14181, 82, 1, 7131, 72, 10, 16, 12962, 14, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 66, 11, 32604, 7, 29510, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 85, 11, 7785, 7, 29510, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1351, 66, 11, 4868, 85, 198, 437, 198, 198, 8818, 3781, 62, 14181, 82, 62, 36, 62, 1073, 71, 16684, 7, 20274, 11, 49, 912, 62, 1073, 71, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 66, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 329, 269, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20218, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 13664, 7, 20274, 14692, 17080, 380, 8973, 13219, 16, 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, 1051, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 12962, 855, 12683, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 16, 12962, 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, 220, 220, 220, 220, 1255, 14692, 18546, 1704, 1, 7131, 72, 10, 16, 60, 855, 66, 11405, 20274, 14692, 3673, 12331, 1, 7131, 72, 60, 855, 12, 16, 1303, 25226, 20274, 14692, 3673, 12331, 1, 7131, 72, 10, 16, 60, 855, 16, 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, 2124, 28, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 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, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 29510, 11, 7, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 12, 20274, 14692, 14181, 82, 1, 7131, 72, 10, 16, 12962, 14, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 66, 11, 32604, 7, 29510, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1351, 66, 198, 437, 628, 198, 8818, 3781, 62, 14181, 82, 62, 5188, 62, 1073, 71, 16684, 7, 20274, 11, 49, 912, 62, 1073, 71, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 66, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 329, 269, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20218, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 13664, 7, 20274, 14692, 17080, 380, 8973, 13219, 16, 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, 1051, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 12962, 855, 12683, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 16, 12962, 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, 220, 220, 220, 220, 1255, 14692, 18546, 1704, 1, 7131, 72, 10, 16, 60, 855, 66, 11405, 20274, 14692, 3673, 12331, 1, 7131, 72, 60, 855, 12, 16, 11405, 20274, 14692, 3673, 12331, 1, 7131, 72, 10, 16, 60, 855, 16, 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, 2124, 28, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 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, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 29510, 11, 7, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 12, 20274, 14692, 14181, 82, 1, 7131, 72, 10, 16, 12962, 14, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 66, 11, 32604, 7, 29510, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1351, 66, 198, 437, 628, 198, 8818, 3781, 62, 14181, 82, 62, 5432, 62, 1073, 71, 16684, 7, 20274, 11, 49, 912, 62, 1073, 71, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 66, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 329, 269, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20218, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 13664, 7, 20274, 14692, 17080, 380, 8973, 13219, 16, 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, 1051, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 12962, 855, 12683, 7, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 16, 12962, 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, 220, 220, 220, 220, 1255, 14692, 18546, 1704, 1, 7131, 72, 10, 16, 60, 855, 7, 66, 12, 16, 8, 11405, 20274, 14692, 3673, 12331, 1, 7131, 72, 60, 855, 16, 11405, 20274, 14692, 3673, 12331, 1, 7131, 72, 10, 16, 60, 855, 16, 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, 2124, 28, 20274, 14692, 17080, 380, 1, 7131, 72, 10, 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, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 29510, 11, 7, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 12, 20274, 14692, 14181, 82, 1, 7131, 72, 10, 16, 12962, 14, 49, 912, 62, 1073, 71, 14692, 3, 87, 8973, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 4868, 66, 11, 32604, 7, 29510, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1351, 66, 198, 437, 198, 198, 8818, 3440, 62, 36134, 462, 62, 36, 3419, 628, 220, 220, 220, 220, 220, 220, 1366, 796, 44189, 13, 961, 7203, 14, 11195, 14, 365, 7114, 14, 38354, 14, 2725, 35, 14, 2725, 35, 62, 6601, 14, 36134, 462, 62, 1558, 14, 12227, 5962, 13, 40664, 1600, 8423, 540, 28, 9562, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 7890, 796, 44189, 13, 961, 7203, 14, 11431, 14, 365, 7114, 14, 33, 2852, 313, 14, 2725, 35, 14, 2725, 35, 62, 6601, 14, 36134, 462, 62, 1558, 14, 12227, 5962, 13, 40664, 1600, 8423, 540, 28, 9562, 8, 628, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 39745, 796, 17635, 1303, 329, 6628, 4876, 198, 220, 220, 220, 220, 220, 220, 220, 2482, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 23493, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 763, 23545, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1128, 2591, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 39745, 28, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 1271, 28, 43879, 2414, 21737, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 7890, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 220, 1366, 58, 18, 7131, 72, 60, 6624, 366, 39745, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7856, 2591, 62, 39745, 11, 7890, 58, 21, 7131, 72, 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, 4574, 0, 7, 66, 21471, 62, 39745, 11, 7890, 58, 1157, 7131, 72, 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, 4574, 0, 7, 1073, 23545, 62, 39745, 11, 7890, 58, 20, 7131, 72, 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, 4574, 0, 7, 17034, 62, 39745, 11, 7890, 58, 22, 7131, 72, 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, 4574, 0, 7, 43420, 62, 39745, 11, 7890, 58, 1238, 7131, 72, 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, 4574, 0, 7, 3672, 62, 39745, 11, 7890, 58, 17, 7131, 72, 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, 4574, 0, 7, 17618, 11, 29572, 7, 43879, 2414, 11, 7890, 58, 16, 7131, 72, 60, 4008, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4868, 62, 1073, 23545, 796, 25915, 17, 13, 19, 532, 16, 13, 21, 532, 15, 13, 23, 657, 657, 13, 23, 352, 13, 21, 362, 13, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4868, 62, 1073, 23545, 62, 8841, 28, 14692, 12, 17, 13, 19, 1, 27444, 16, 13, 21, 1, 27444, 15, 13, 23, 1, 366, 15, 1, 366, 15, 13, 23, 1, 366, 16, 13, 21, 1, 366, 17, 13, 19, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 1073, 23545, 796, 25915, 17, 13, 19, 532, 16, 13, 21, 532, 15, 13, 23, 657, 657, 13, 23, 352, 13, 21, 362, 13, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 1073, 23545, 62, 8841, 28, 14692, 12, 17, 13, 19, 1, 27444, 16, 13, 21, 1, 27444, 15, 13, 23, 1, 366, 15, 1, 366, 15, 13, 23, 1, 366, 16, 13, 21, 1, 366, 17, 13, 19, 1, 2361, 628, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 39745, 796, 360, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 16883, 62, 8841, 287, 1351, 62, 1073, 23545, 62, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 3605, 796, 374, 83, 62, 39745, 58, 1073, 23545, 62, 39745, 13, 855, 29572, 7, 43879, 2414, 11, 1073, 71, 62, 8841, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 39745, 58, 1073, 71, 62, 8841, 22241, 32604, 7, 17034, 62, 3605, 58, 17034, 62, 3605, 29847, 33698, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 28, 35, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 23493, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 4868, 62, 26069, 1945, 28, 43879, 2414, 21737, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 37498, 13664, 7, 17034, 62, 39745, 13219, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 220, 1051, 7, 1073, 23545, 62, 39745, 58, 72, 12962, 855, 12683, 7, 1073, 23545, 62, 39745, 58, 72, 10, 16, 12962, 220, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 39745, 58, 72, 60, 6624, 1438, 62, 39745, 58, 72, 10, 16, 60, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2482, 62, 39745, 58, 72, 60, 6624, 657, 11405, 1271, 58, 72, 60, 1343, 16, 6624, 1271, 58, 72, 10, 16, 60, 2, 25226, 43420, 62, 39745, 58, 72, 10, 16, 60, 6624, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 374, 83, 62, 39745, 58, 72, 60, 27, 33698, 11405, 374, 83, 62, 39745, 58, 72, 10, 16, 60, 1279, 33698, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23493, 62, 39745, 58, 72, 60, 29, 66, 21471, 1303, 25226, 16883, 6089, 32, 58, 72, 60, 0, 28, 15, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 28, 1073, 23545, 62, 39745, 58, 72, 10, 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, 611, 2124, 855, 15, 1303, 780, 657, 318, 257, 12178, 287, 674, 1366, 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, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 67, 291, 62, 17034, 62, 39745, 14692, 15, 8973, 12, 17034, 62, 39745, 58, 72, 10, 16, 12962, 14, 67, 291, 62, 17034, 62, 39745, 14692, 15, 8973, 4008, 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, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 67, 291, 62, 17034, 62, 39745, 14692, 3, 87, 8973, 12, 17034, 62, 39745, 58, 72, 10, 16, 12962, 14, 67, 291, 62, 17034, 62, 39745, 14692, 3, 87, 8973, 4008, 628, 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, 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, 220, 886, 198, 220, 220, 220, 44872, 7, 13664, 7, 17034, 62, 4868, 62, 26069, 1945, 4008, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 3, 66, 21471, 8973, 28, 32604, 7, 17034, 62, 4868, 62, 26069, 1945, 27493, 3064, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 7785, 720, 66, 21471, 8973, 28, 7785, 7, 17034, 62, 4868, 62, 26069, 1945, 9, 3064, 20679, 9879, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 18242, 720, 66, 21471, 8973, 28, 13664, 7, 17034, 62, 4868, 62, 26069, 1945, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1033, 62, 4868, 17, 28, 43879, 2414, 21737, 198, 220, 220, 220, 1401, 62, 4868, 17, 28, 43879, 2414, 21737, 198, 220, 220, 220, 329, 23493, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 11201, 62, 4868, 17, 11, 67, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 3, 66, 21471, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7785, 62, 4868, 17, 11, 67, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 7785, 720, 66, 21471, 8973, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1033, 62, 4868, 17, 11, 7785, 62, 4868, 17, 198, 437, 198, 198, 8818, 3440, 62, 36134, 462, 62, 5432, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 44189, 13, 961, 7203, 14, 11195, 14, 365, 7114, 14, 38354, 14, 2725, 35, 14, 2725, 35, 62, 6601, 14, 36134, 462, 62, 1558, 14, 12227, 5962, 13, 40664, 1600, 8423, 540, 28, 9562, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 1366, 796, 44189, 13, 961, 7203, 14, 11431, 14, 365, 7114, 14, 33, 2852, 313, 14, 2725, 35, 14, 2725, 35, 62, 6601, 14, 36134, 462, 62, 1558, 14, 12227, 5962, 13, 40664, 1600, 8423, 540, 28, 9562, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 39745, 796, 17635, 1303, 329, 6628, 4876, 198, 220, 220, 220, 220, 220, 220, 220, 2482, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 23493, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 763, 23545, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1128, 2591, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 39745, 28, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 1271, 28, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 7890, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 220, 1366, 58, 18, 7131, 72, 60, 6624, 366, 39745, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7856, 2591, 62, 39745, 11, 7890, 58, 21, 7131, 72, 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, 4574, 0, 7, 66, 21471, 62, 39745, 11, 7890, 58, 1157, 7131, 72, 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, 4574, 0, 7, 1073, 23545, 62, 39745, 11, 7890, 58, 20, 7131, 72, 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, 4574, 0, 7, 17034, 62, 39745, 11, 7890, 58, 22, 7131, 72, 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, 4574, 0, 7, 43420, 62, 39745, 11, 7890, 58, 1238, 7131, 72, 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, 4574, 0, 7, 3672, 62, 39745, 11, 7890, 58, 17, 7131, 72, 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, 4574, 0, 7, 17618, 11, 29572, 7, 43879, 2414, 11, 7890, 58, 16, 7131, 72, 60, 4008, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 1073, 23545, 796, 25915, 17, 13, 19, 532, 16, 13, 21, 532, 15, 13, 23, 657, 657, 13, 23, 352, 13, 21, 362, 13, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 1073, 23545, 62, 8841, 28, 14692, 12, 17, 13, 19, 1, 27444, 16, 13, 21, 1, 27444, 15, 13, 23, 1, 366, 15, 1, 366, 15, 13, 23, 1, 366, 16, 13, 21, 1, 366, 17, 13, 19, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 39745, 796, 360, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 16883, 62, 8841, 287, 1351, 62, 1073, 23545, 62, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 3605, 796, 374, 83, 62, 39745, 58, 1073, 23545, 62, 39745, 13, 855, 29572, 7, 43879, 2414, 11, 1073, 71, 62, 8841, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 39745, 58, 1073, 71, 62, 8841, 22241, 32604, 7, 17034, 62, 3605, 58, 17034, 62, 3605, 29847, 33698, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44872, 7, 32604, 7, 17034, 62, 3605, 58, 17034, 62, 3605, 29847, 33698, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 28, 35, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 23493, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 4868, 62, 26069, 1945, 28, 43879, 2414, 21737, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 37498, 13664, 7, 17034, 62, 39745, 13219, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 220, 763, 23545, 62, 39745, 58, 72, 60, 855, 1073, 23545, 62, 39745, 58, 72, 10, 16, 60, 220, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 39745, 58, 72, 60, 6624, 1438, 62, 39745, 58, 72, 10, 16, 60, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1271, 58, 72, 48688, 16, 855, 17618, 58, 72, 10, 16, 60, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2482, 62, 39745, 58, 72, 60, 6624, 352, 11405, 43420, 62, 39745, 58, 72, 10, 16, 60, 6624, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 374, 83, 62, 39745, 58, 72, 60, 27, 33698, 11405, 374, 83, 62, 39745, 58, 72, 10, 16, 60, 1279, 33698, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23493, 62, 39745, 58, 72, 60, 29, 66, 21471, 1303, 25226, 16883, 6089, 32, 58, 72, 60, 0, 28, 15, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 28, 1073, 23545, 62, 39745, 58, 72, 10, 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, 611, 2124, 855, 15, 1303, 780, 657, 318, 257, 12178, 287, 674, 1366, 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, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 17034, 62, 39745, 58, 72, 45297, 17034, 62, 39745, 58, 72, 10, 16, 12962, 14, 67, 291, 62, 17034, 62, 39745, 14692, 15, 8973, 4008, 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, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 17034, 62, 39745, 58, 72, 45297, 17034, 62, 39745, 58, 72, 10, 16, 12962, 14, 67, 291, 62, 17034, 62, 39745, 14692, 3, 87, 8973, 4008, 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, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 361, 2124, 855, 15, 1303, 780, 657, 318, 257, 12178, 287, 674, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 67, 291, 62, 17034, 62, 39745, 14692, 15, 8973, 12, 17034, 62, 39745, 58, 72, 10, 16, 12962, 14, 67, 291, 62, 17034, 62, 39745, 14692, 15, 8973, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 17772, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 67, 291, 62, 17034, 62, 39745, 14692, 3, 87, 8973, 12, 17034, 62, 39745, 58, 72, 10, 16, 12962, 14, 67, 291, 62, 17034, 62, 39745, 14692, 3, 87, 8973, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 437, 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, 220, 886, 198, 220, 220, 220, 44872, 7, 13664, 7, 17034, 62, 4868, 62, 26069, 1945, 4008, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 3, 66, 21471, 8973, 28, 32604, 7, 17034, 62, 4868, 62, 26069, 1945, 27493, 3064, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 7785, 720, 66, 21471, 8973, 28, 7785, 7, 17034, 62, 4868, 62, 26069, 1945, 8, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 18242, 720, 66, 21471, 8973, 28, 13664, 7, 17034, 62, 4868, 62, 26069, 1945, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1033, 62, 4868, 17, 28, 43879, 2414, 21737, 198, 220, 220, 220, 1401, 62, 4868, 17, 28, 43879, 2414, 21737, 198, 220, 220, 220, 329, 23493, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 11201, 62, 4868, 17, 11, 67, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 3, 66, 21471, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7785, 62, 4868, 17, 11, 67, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 7785, 720, 66, 21471, 8973, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1033, 62, 4868, 17, 11, 7785, 62, 4868, 17, 198, 437, 628, 198, 8818, 3440, 62, 36134, 462, 62, 5188, 62, 1073, 71, 16684, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 44189, 13, 961, 7203, 14, 11195, 14, 365, 7114, 14, 38354, 14, 2725, 35, 14, 2725, 35, 62, 6601, 14, 36134, 462, 62, 1558, 14, 12227, 5962, 13, 40664, 1600, 8423, 540, 28, 9562, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 1366, 796, 44189, 13, 961, 7203, 14, 11431, 14, 365, 7114, 14, 33, 2852, 313, 14, 2725, 35, 14, 2725, 35, 62, 6601, 14, 36134, 462, 62, 1558, 14, 12227, 5962, 13, 40664, 1600, 8423, 540, 28, 9562, 8, 198, 220, 220, 220, 374, 83, 62, 39745, 796, 17635, 1303, 329, 6628, 4876, 198, 220, 220, 220, 220, 220, 220, 220, 2482, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 23493, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 763, 23545, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1128, 2591, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 39745, 28, 21737, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 7890, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 220, 1366, 58, 18, 7131, 72, 60, 6624, 366, 39745, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7856, 2591, 62, 39745, 11, 7890, 58, 21, 7131, 72, 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, 4574, 0, 7, 66, 21471, 62, 39745, 11, 7890, 58, 1157, 7131, 72, 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, 4574, 0, 7, 1073, 23545, 62, 39745, 11, 7890, 58, 20, 7131, 72, 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, 4574, 0, 7, 17034, 62, 39745, 11, 7890, 58, 22, 7131, 72, 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, 4574, 0, 7, 43420, 62, 39745, 11, 7890, 58, 1238, 7131, 72, 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, 4574, 0, 7, 3672, 62, 39745, 11, 7890, 58, 17, 7131, 72, 12962, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 1073, 23545, 796, 25915, 17, 13, 19, 532, 16, 13, 21, 532, 15, 13, 23, 657, 657, 13, 23, 352, 13, 21, 362, 13, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 1073, 23545, 62, 8841, 28, 14692, 12, 17, 13, 19, 1, 27444, 16, 13, 21, 1, 27444, 15, 13, 23, 1, 366, 15, 1, 366, 15, 13, 23, 1, 366, 16, 13, 21, 1, 366, 17, 13, 19, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 39745, 796, 360, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 16883, 62, 8841, 287, 1351, 62, 1073, 23545, 62, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 3605, 796, 374, 83, 62, 39745, 58, 1073, 23545, 62, 39745, 13, 855, 29572, 7, 43879, 2414, 11, 1073, 71, 62, 8841, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 39745, 58, 1073, 71, 62, 8841, 22241, 32604, 7, 17034, 62, 3605, 58, 17034, 62, 3605, 29847, 33698, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 28, 35, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 23493, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 4868, 62, 26069, 1945, 28, 43879, 2414, 21737, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 37498, 13664, 7, 17034, 62, 39745, 13219, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 220, 1051, 7, 1073, 23545, 62, 39745, 58, 72, 12962, 855, 12683, 7, 1073, 23545, 62, 39745, 58, 72, 10, 16, 12962, 220, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 39745, 58, 72, 60, 6624, 1438, 62, 39745, 58, 72, 10, 16, 60, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2482, 62, 39745, 58, 72, 60, 6624, 657, 11405, 43420, 62, 39745, 58, 72, 10, 16, 60, 6624, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 374, 83, 62, 39745, 58, 72, 60, 27, 33698, 11405, 374, 83, 62, 39745, 58, 72, 10, 16, 60, 1279, 33698, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23493, 62, 39745, 58, 72, 60, 855, 66, 21471, 10, 16, 1303, 25226, 16883, 6089, 32, 58, 72, 60, 0, 28, 15, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 28, 1073, 23545, 62, 39745, 58, 72, 10, 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, 611, 2124, 855, 15, 1303, 780, 657, 318, 257, 12178, 287, 674, 1366, 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, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 67, 291, 62, 17034, 62, 39745, 14692, 15, 8973, 12, 17034, 62, 39745, 58, 72, 10, 16, 12962, 14, 67, 291, 62, 17034, 62, 39745, 14692, 15, 8973, 4008, 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, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 67, 291, 62, 17034, 62, 39745, 14692, 3, 87, 8973, 12, 17034, 62, 39745, 58, 72, 10, 16, 12962, 14, 67, 291, 62, 17034, 62, 39745, 14692, 3, 87, 8973, 4008, 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, 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, 220, 886, 198, 220, 220, 220, 44872, 7, 13664, 7, 17034, 62, 4868, 62, 26069, 1945, 4008, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 3, 66, 21471, 8973, 28, 32604, 7, 17034, 62, 4868, 62, 26069, 1945, 27493, 3064, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 7785, 720, 66, 21471, 8973, 28, 7785, 7, 17034, 62, 4868, 62, 26069, 1945, 8, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 18242, 720, 66, 21471, 8973, 28, 13664, 7, 17034, 62, 4868, 62, 26069, 1945, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1033, 62, 4868, 17, 28, 43879, 2414, 21737, 198, 220, 220, 220, 1401, 62, 4868, 17, 28, 43879, 2414, 21737, 198, 220, 220, 220, 329, 23493, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 11201, 62, 4868, 17, 11, 67, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 3, 66, 21471, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7785, 62, 4868, 17, 11, 67, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 7785, 720, 66, 21471, 8973, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1033, 62, 4868, 17, 11, 7785, 62, 4868, 17, 198, 437, 198, 198, 8818, 3440, 62, 36134, 462, 62, 5188, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 44189, 13, 961, 7203, 14, 11195, 14, 365, 7114, 14, 38354, 14, 2725, 35, 14, 2725, 35, 62, 6601, 14, 36134, 462, 62, 1558, 14, 12227, 5962, 13, 40664, 1600, 8423, 540, 28, 9562, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 1366, 796, 44189, 13, 961, 7203, 14, 11431, 14, 365, 7114, 14, 33, 2852, 313, 14, 2725, 35, 14, 2725, 35, 62, 6601, 14, 36134, 462, 62, 1558, 14, 12227, 5962, 13, 40664, 1600, 8423, 540, 28, 9562, 8, 198, 17034, 62, 39745, 796, 17635, 1303, 329, 6628, 4876, 198, 220, 220, 220, 220, 220, 220, 220, 2482, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 23493, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 763, 23545, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1128, 2591, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 39745, 28, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 1271, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 7890, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 220, 1366, 58, 18, 7131, 72, 60, 6624, 366, 39745, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7856, 2591, 62, 39745, 11, 7890, 58, 21, 7131, 72, 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, 4574, 0, 7, 66, 21471, 62, 39745, 11, 7890, 58, 1157, 7131, 72, 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, 4574, 0, 7, 1073, 23545, 62, 39745, 11, 7890, 58, 20, 7131, 72, 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, 4574, 0, 7, 17034, 62, 39745, 11, 7890, 58, 22, 7131, 72, 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, 4574, 0, 7, 43420, 62, 39745, 11, 7890, 58, 1238, 7131, 72, 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, 4574, 0, 7, 3672, 62, 39745, 11, 7890, 58, 17, 7131, 72, 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, 4574, 0, 7, 17618, 11, 29572, 7, 43879, 2414, 11, 7890, 58, 16, 7131, 72, 60, 4008, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 1073, 23545, 796, 25915, 17, 13, 19, 532, 16, 13, 21, 532, 15, 13, 23, 657, 657, 13, 23, 352, 13, 21, 362, 13, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 1073, 23545, 62, 8841, 28, 14692, 12, 17, 13, 19, 1, 27444, 16, 13, 21, 1, 27444, 15, 13, 23, 1, 366, 15, 1, 366, 15, 13, 23, 1, 366, 16, 13, 21, 1, 366, 17, 13, 19, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 39745, 796, 360, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 16883, 62, 8841, 287, 1351, 62, 1073, 23545, 62, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 3605, 796, 374, 83, 62, 39745, 58, 1073, 23545, 62, 39745, 13, 855, 29572, 7, 43879, 2414, 11, 1073, 71, 62, 8841, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 39745, 58, 1073, 71, 62, 8841, 22241, 32604, 7, 17034, 62, 3605, 58, 17034, 62, 3605, 29847, 33698, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 28, 35, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 23493, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 4868, 62, 26069, 1945, 28, 43879, 2414, 21737, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 37498, 13664, 7, 17034, 62, 39745, 13219, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 220, 1051, 7, 1073, 23545, 62, 39745, 58, 72, 12962, 855, 12683, 7, 1073, 23545, 62, 39745, 58, 72, 10, 16, 12962, 220, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 39745, 58, 72, 60, 6624, 1438, 62, 39745, 58, 72, 10, 16, 60, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1271, 58, 72, 60, 1343, 352, 6624, 1271, 58, 72, 10, 16, 60, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2482, 62, 39745, 58, 72, 60, 6624, 657, 11405, 43420, 62, 39745, 58, 72, 10, 16, 60, 6624, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 374, 83, 62, 39745, 58, 72, 60, 27, 33698, 11405, 374, 83, 62, 39745, 58, 72, 10, 16, 60, 1279, 33698, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23493, 62, 39745, 58, 72, 60, 29, 28, 66, 21471, 10, 16, 1303, 25226, 16883, 6089, 32, 58, 72, 60, 0, 28, 15, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 28, 1073, 23545, 62, 39745, 58, 72, 10, 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, 611, 2124, 855, 15, 1303, 780, 657, 318, 257, 12178, 287, 674, 1366, 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, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 67, 291, 62, 17034, 62, 39745, 14692, 15, 8973, 12, 17034, 62, 39745, 58, 72, 10, 16, 12962, 14, 67, 291, 62, 17034, 62, 39745, 14692, 15, 8973, 4008, 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, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 67, 291, 62, 17034, 62, 39745, 14692, 3, 87, 8973, 12, 17034, 62, 39745, 58, 72, 10, 16, 12962, 14, 67, 291, 62, 17034, 62, 39745, 14692, 3, 87, 8973, 4008, 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, 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, 220, 886, 198, 220, 220, 220, 44872, 7, 13664, 7, 17034, 62, 4868, 62, 26069, 1945, 4008, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 3, 66, 21471, 8973, 28, 32604, 7, 17034, 62, 4868, 62, 26069, 1945, 27493, 3064, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 7785, 720, 66, 21471, 8973, 28, 7785, 7, 17034, 62, 4868, 62, 26069, 1945, 8, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 18242, 720, 66, 21471, 8973, 28, 13664, 7, 17034, 62, 4868, 62, 26069, 1945, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1033, 62, 4868, 17, 28, 43879, 2414, 21737, 198, 220, 220, 220, 1401, 62, 4868, 17, 28, 43879, 2414, 21737, 198, 220, 220, 220, 329, 23493, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 11201, 62, 4868, 17, 11, 67, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 3, 66, 21471, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7785, 62, 4868, 17, 11, 67, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 7785, 720, 66, 21471, 8973, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1033, 62, 4868, 17, 11, 7785, 62, 4868, 17, 198, 437, 628, 198, 8818, 3440, 62, 36134, 462, 62, 19545, 49, 9328, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 44189, 13, 961, 7203, 14, 11195, 14, 365, 7114, 14, 38354, 14, 2725, 35, 14, 2725, 35, 62, 6601, 14, 36134, 462, 62, 1558, 14, 12227, 5962, 13, 40664, 1600, 8423, 540, 28, 9562, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 1366, 796, 44189, 13, 961, 7203, 14, 11431, 14, 365, 7114, 14, 33, 2852, 313, 14, 2725, 35, 14, 2725, 35, 62, 6601, 14, 36134, 462, 62, 1558, 14, 12227, 5962, 13, 40664, 1600, 8423, 540, 28, 9562, 8, 198, 17034, 62, 39745, 796, 17635, 1303, 329, 6628, 4876, 198, 220, 220, 220, 220, 220, 220, 220, 2482, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 23493, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 763, 23545, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1128, 2591, 62, 39745, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 39745, 28, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 1271, 28, 43879, 2414, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 25, 13664, 7, 7890, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 220, 1366, 58, 18, 7131, 72, 60, 6624, 366, 39745, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7856, 2591, 62, 39745, 11, 7890, 58, 21, 7131, 72, 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, 4574, 0, 7, 66, 21471, 62, 39745, 11, 7890, 58, 1157, 7131, 72, 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, 4574, 0, 7, 1073, 23545, 62, 39745, 11, 7890, 58, 20, 7131, 72, 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, 4574, 0, 7, 17034, 62, 39745, 11, 7890, 58, 22, 7131, 72, 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, 4574, 0, 7, 43420, 62, 39745, 11, 7890, 58, 1238, 7131, 72, 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, 4574, 0, 7, 3672, 62, 39745, 11, 7890, 58, 17, 7131, 72, 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, 4574, 0, 7, 17618, 11, 29572, 7, 43879, 2414, 11, 7890, 58, 16, 7131, 72, 60, 4008, 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, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 1073, 23545, 796, 25915, 17, 13, 19, 532, 16, 13, 21, 532, 15, 13, 23, 657, 657, 13, 23, 352, 13, 21, 362, 13, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 1073, 23545, 62, 8841, 28, 14692, 12, 17, 13, 19, 1, 27444, 16, 13, 21, 1, 27444, 15, 13, 23, 1, 366, 15, 1, 366, 15, 13, 23, 1, 366, 16, 13, 21, 1, 366, 17, 13, 19, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 39745, 796, 360, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 16883, 62, 8841, 287, 1351, 62, 1073, 23545, 62, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 3605, 796, 374, 83, 62, 39745, 58, 1073, 23545, 62, 39745, 13, 855, 29572, 7, 43879, 2414, 11, 1073, 71, 62, 8841, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 39745, 58, 1073, 71, 62, 8841, 22241, 32604, 7, 17034, 62, 3605, 58, 17034, 62, 3605, 29847, 33698, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 28, 35, 713, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 23493, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 4868, 62, 26069, 1945, 28, 43879, 2414, 21737, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 37498, 13664, 7, 17034, 62, 39745, 13219, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 220, 1438, 62, 39745, 58, 72, 60, 6624, 1438, 62, 39745, 58, 72, 10, 16, 60, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1271, 58, 72, 60, 1343, 352, 6624, 1271, 58, 72, 10, 16, 60, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2482, 62, 39745, 58, 72, 60, 6624, 657, 1303, 11405, 43420, 62, 39745, 58, 72, 10, 16, 60, 6624, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 374, 83, 62, 39745, 58, 72, 60, 27, 33698, 11405, 374, 83, 62, 39745, 58, 72, 10, 16, 60, 1279, 33698, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23493, 62, 39745, 58, 72, 60, 855, 66, 21471, 10, 16, 1303, 25226, 16883, 6089, 32, 58, 72, 60, 0, 28, 15, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 28, 1073, 23545, 62, 39745, 58, 72, 10, 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, 611, 2124, 855, 15, 1303, 780, 657, 318, 257, 12178, 287, 674, 1366, 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, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 67, 291, 62, 17034, 62, 39745, 14692, 15, 8973, 12, 17034, 62, 39745, 58, 72, 10, 16, 60, 22305, 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, 4574, 0, 7, 17034, 62, 4868, 62, 26069, 1945, 11, 19510, 67, 291, 62, 17034, 62, 39745, 14692, 3, 87, 8973, 12, 17034, 62, 39745, 58, 72, 10, 16, 60, 22305, 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, 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, 220, 886, 198, 220, 220, 220, 44872, 7, 13664, 7, 17034, 62, 4868, 62, 26069, 1945, 4008, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 3, 66, 21471, 8973, 28, 32604, 7, 17034, 62, 4868, 62, 26069, 1945, 8, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 7785, 720, 66, 21471, 8973, 28, 7785, 7, 17034, 62, 4868, 62, 26069, 1945, 8, 198, 220, 220, 220, 288, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 18242, 720, 66, 21471, 8973, 28, 13664, 7, 17034, 62, 4868, 62, 26069, 1945, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1033, 62, 4868, 17, 28, 43879, 2414, 21737, 198, 220, 220, 220, 1401, 62, 4868, 17, 28, 43879, 2414, 21737, 198, 220, 220, 220, 329, 23493, 287, 685, 15, 352, 362, 513, 604, 642, 718, 767, 807, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 11201, 62, 4868, 17, 11, 67, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 3, 66, 21471, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 7785, 62, 4868, 17, 11, 67, 291, 62, 17034, 62, 66, 21471, 62, 18224, 14692, 7785, 720, 66, 21471, 8973, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1033, 62, 4868, 17, 11, 7785, 62, 4868, 17, 198, 437, 198 ]
1.771631
12,436
using Test using SafeTestsets using Plots unicodeplots() ENV["GRAPE_LINESEARCH_ANALYSIS_VERBOSE"] = "1" include(joinpath(@__DIR__, "generate_example_tests.jl")) include(joinpath(@__DIR__, "download_dumps.jl")) # Note: comment outer @testset to stop after first @safetestset failure @time @testset verbose = true "GRAPE.jl Package" begin print("\n* Example 1 (examples/simple_state_to_state.jl):") @time @safetestset "Example 1" begin include(joinpath("examples", "simple_state_to_state.jl")) end print("\n* Example 2 (examples/perfect_entanglers.jl):") @time @safetestset "Example 2" begin include(joinpath("examples", "perfect_entanglers.jl")) end println("") end
[ 3500, 6208, 198, 3500, 19978, 51, 3558, 1039, 198, 3500, 1345, 1747, 198, 198, 46903, 1098, 489, 1747, 3419, 198, 1677, 53, 14692, 10761, 45721, 62, 34509, 1546, 17133, 3398, 62, 1565, 1847, 16309, 1797, 62, 5959, 33, 14058, 8973, 796, 366, 16, 1, 198, 198, 17256, 7, 22179, 6978, 7, 31, 834, 34720, 834, 11, 366, 8612, 378, 62, 20688, 62, 41989, 13, 20362, 48774, 198, 198, 17256, 7, 22179, 6978, 7, 31, 834, 34720, 834, 11, 366, 15002, 62, 67, 8142, 13, 20362, 48774, 198, 198, 2, 5740, 25, 2912, 12076, 2488, 9288, 2617, 284, 2245, 706, 717, 2488, 49585, 316, 395, 2617, 5287, 198, 31, 2435, 2488, 9288, 2617, 15942, 577, 796, 2081, 366, 10761, 45721, 13, 20362, 15717, 1, 2221, 628, 220, 220, 220, 3601, 7203, 59, 77, 9, 17934, 352, 357, 1069, 12629, 14, 36439, 62, 5219, 62, 1462, 62, 5219, 13, 20362, 2599, 4943, 198, 220, 220, 220, 2488, 2435, 2488, 49585, 316, 395, 2617, 366, 16281, 352, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2291, 7, 22179, 6978, 7203, 1069, 12629, 1600, 366, 36439, 62, 5219, 62, 1462, 62, 5219, 13, 20362, 48774, 198, 220, 220, 220, 886, 628, 220, 220, 220, 3601, 7203, 59, 77, 9, 17934, 362, 357, 1069, 12629, 14, 25833, 62, 298, 648, 8116, 13, 20362, 2599, 4943, 198, 220, 220, 220, 2488, 2435, 2488, 49585, 316, 395, 2617, 366, 16281, 362, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2291, 7, 22179, 6978, 7203, 1069, 12629, 1600, 366, 25833, 62, 298, 648, 8116, 13, 20362, 48774, 198, 220, 220, 220, 886, 628, 220, 220, 220, 44872, 7203, 4943, 198, 198, 437, 198 ]
2.569892
279
# Here are leftovers from my previous attempts to run the EWS from Julia, including programming the gaussian filter rolling windows. #Program the gaussian filter as a function and run it before calculating the EWS. Note here that the \sigma is the standard deviation of complete time series. The following code doesn't work! # import Statistics: var, mean, std # function gaussian_filter(xin, xout) # sd = std(skipmissing(xin)) # if sd > 0 # std non-zero # xout[:].=e^(.-xin^2 ./(2*sd^2))./ (sd*sqrt(2*pi)) # else # time series is probably constant / sd == 0, so avoiding division by zero # xout[:].=0 # end # end ## Define input and output dimensions indims = InDims("Time") outdims = OutDims("Time") # test the function test = mapCube( gaussian_filter, subsetcube(d2, Scale = "Fast Oscillations"), indims=indims, outdims=outdims) # Not sure this is needed. The TS are normalized to 0-mean and 1-variance # import Statistics: var, mean, std # std_dev = mapslices( # std ∘ skipmissing, # subsetcube(d2, Scale = "Fast Oscillations"), # dims = "Time")
[ 2, 3423, 389, 1364, 13801, 422, 220, 616, 2180, 6370, 284, 1057, 262, 412, 19416, 422, 22300, 11, 1390, 8300, 262, 31986, 31562, 8106, 10708, 9168, 13, 628, 198, 2, 15167, 262, 31986, 31562, 8106, 355, 257, 2163, 290, 1057, 340, 878, 26019, 262, 412, 19416, 13, 5740, 994, 326, 262, 3467, 82, 13495, 318, 262, 3210, 28833, 286, 1844, 640, 2168, 13, 383, 1708, 2438, 1595, 470, 670, 0, 198, 2, 1330, 14370, 25, 1401, 11, 1612, 11, 14367, 198, 2, 2163, 31986, 31562, 62, 24455, 7, 87, 259, 11, 2124, 448, 8, 198, 2, 220, 220, 220, 220, 45647, 796, 14367, 7, 48267, 45688, 7, 87, 259, 4008, 198, 198, 2, 220, 220, 220, 220, 611, 45647, 1875, 657, 1303, 14367, 1729, 12, 22570, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 448, 58, 25, 4083, 28, 68, 61, 7, 7874, 87, 259, 61, 17, 24457, 7, 17, 9, 21282, 61, 17, 29720, 14, 357, 21282, 9, 31166, 17034, 7, 17, 9, 14415, 4008, 198, 2, 220, 220, 220, 220, 2073, 1303, 640, 2168, 318, 2192, 6937, 1220, 45647, 6624, 657, 11, 523, 14928, 7297, 416, 6632, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 448, 58, 25, 4083, 28, 15, 198, 2, 220, 220, 220, 220, 886, 198, 2, 886, 628, 198, 2235, 2896, 500, 5128, 290, 5072, 15225, 198, 521, 12078, 796, 554, 35, 12078, 7203, 7575, 4943, 198, 448, 67, 12078, 796, 3806, 35, 12078, 7203, 7575, 4943, 198, 198, 2, 1332, 262, 2163, 198, 9288, 796, 3975, 29071, 7, 198, 220, 220, 220, 31986, 31562, 62, 24455, 11, 198, 220, 220, 220, 24637, 40296, 7, 67, 17, 11, 21589, 796, 366, 22968, 440, 22360, 602, 12340, 198, 220, 220, 220, 773, 12078, 28, 521, 12078, 11, 503, 67, 12078, 28, 448, 67, 12078, 8, 628, 220, 220, 220, 1303, 1892, 1654, 428, 318, 2622, 13, 383, 26136, 389, 39279, 284, 657, 12, 32604, 290, 352, 12, 25641, 590, 198, 2, 1330, 14370, 25, 1401, 11, 1612, 11, 14367, 198, 2, 14367, 62, 7959, 796, 8739, 677, 274, 7, 198, 2, 220, 220, 220, 220, 14367, 18872, 246, 14267, 45688, 11, 198, 2, 220, 220, 220, 220, 24637, 40296, 7, 67, 17, 11, 21589, 796, 366, 22968, 440, 22360, 602, 12340, 198, 2, 220, 220, 220, 220, 5391, 82, 796, 366, 7575, 4943, 198 ]
2.83038
395
@testset "Day5.jl" begin # Write your tests here. @test AdventOfCode2020.row("FFFFFFF") == 0 @test AdventOfCode2020.row("BBBBBBB") == 127 @test AdventOfCode2020.row("FFFFFFB") == 1 @test AdventOfCode2020.row("FBFBBFF") == 44 @test AdventOfCode2020.col("LLL") == 0 @test AdventOfCode2020.col("RRR") == 7 @test AdventOfCode2020.col("LLR") == 1 @test AdventOfCode2020.col("RLR") == 5 @test AdventOfCode2020.toseat("FBFBBFFRLR") == AdventOfCode2020.SeatLoc(44,5) @test AdventOfCode2020.toseat("FBFBBFFRLR").id == 357 @test AdventOfCode2020.toseat("BFFFBBFRRR").id == 567 @test AdventOfCode2020.toseat("FFFBBBFRRR").id == 119 @test AdventOfCode2020.toseat("BBFFBBFRLL").id == 820 end
[ 198, 31, 9288, 2617, 366, 12393, 20, 13, 20362, 1, 2221, 198, 220, 220, 220, 1303, 19430, 534, 5254, 994, 13, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 808, 7203, 29312, 5777, 37, 4943, 6624, 657, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 808, 7203, 15199, 15199, 15199, 33, 4943, 6624, 18112, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 808, 7203, 29312, 5777, 33, 4943, 6624, 352, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 808, 7203, 26001, 37, 15199, 5777, 4943, 6624, 5846, 628, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 4033, 7203, 3069, 43, 4943, 6624, 657, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 4033, 7203, 21095, 49, 4943, 6624, 767, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 4033, 7203, 3069, 49, 4943, 6624, 352, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 4033, 7203, 7836, 49, 4943, 6624, 642, 628, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 83, 577, 265, 7203, 26001, 37, 15199, 5777, 7836, 49, 4943, 6624, 33732, 5189, 10669, 42334, 13, 50, 4098, 33711, 7, 2598, 11, 20, 8, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 83, 577, 265, 7203, 26001, 37, 15199, 5777, 7836, 49, 11074, 312, 6624, 45210, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 83, 577, 265, 7203, 33, 5777, 37, 15199, 10913, 21095, 11074, 312, 6624, 642, 3134, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 83, 577, 265, 7203, 5777, 37, 15199, 33, 10913, 21095, 11074, 312, 6624, 15136, 198, 220, 220, 220, 2488, 9288, 33732, 5189, 10669, 42334, 13, 83, 577, 265, 7203, 15199, 5777, 15199, 10913, 3069, 11074, 312, 6624, 48964, 198, 437, 198 ]
2.380645
310
# --- # title: 592. Fraction Addition and Subtraction # id: problem592 # author: Indigo # date: 2021-06-26 # difficulty: Medium # categories: Math # link: <https://leetcode.com/problems/fraction-addition-and-subtraction/description/> # hidden: true # --- # # Given a string representing an expression of fraction addition and # subtraction, you need to return the calculation result in string format. The # final result should be [irreducible # fraction](https://en.wikipedia.org/wiki/Irreducible_fraction). If your final # result is an integer, say `2`, you need to change it to the format of fraction # that has denominator `1`. So in this case, `2` should be converted to `2/1`. # # **Example 1:** # # # # Input: "-1/2+1/2" # Output: "0/1" # # # **Example 2:** # # # # Input: "-1/2+1/2+1/3" # Output: "1/3" # # # **Example 3:** # # # # Input: "1/3-1/2" # Output: "-1/6" # # # **Example 4:** # # # # Input: "5/3+1/3" # Output: "2/1" # # # **Note:** # # 1. The input string only contains `'0'` to `'9'`, `'/'`, `'+'` and `'-'`. So does the output. # 2. Each fraction (input and output) has format `±numerator/denominator`. If the first input fraction or the output is positive, then `'+'` will be omitted. # 3. The input only contains valid **irreducible fractions** , where the **numerator** and **denominator** of each fraction will always be in the range [1,10]. If the denominator is 1, it means this fraction is actually an integer in a fraction format defined above. # 4. The number of given fractions will be in the range [1,10]. # 5. The numerator and denominator of the **final result** are guaranteed to be valid and in the range of 32-bit int. # # ## @lc code=start using LeetCode function fraction_addition(expression::String) expression = replace(expression, "/" => "//") res = eval(Meta.parse(expression)) return "$(res.num)/$(res.den)" end ## @lc code=end
[ 2, 11420, 198, 2, 3670, 25, 642, 5892, 13, 376, 7861, 3060, 653, 290, 3834, 83, 7861, 198, 2, 4686, 25, 1917, 45839, 198, 2, 1772, 25, 40673, 198, 2, 3128, 25, 33448, 12, 3312, 12, 2075, 198, 2, 8722, 25, 13398, 198, 2, 9376, 25, 16320, 198, 2, 2792, 25, 1279, 5450, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 69, 7861, 12, 2860, 653, 12, 392, 12, 7266, 83, 7861, 14, 11213, 15913, 198, 2, 7104, 25, 2081, 198, 2, 11420, 198, 2, 220, 198, 2, 11259, 257, 4731, 10200, 281, 5408, 286, 13390, 3090, 290, 198, 2, 13284, 7861, 11, 345, 761, 284, 1441, 262, 17952, 1255, 287, 4731, 5794, 13, 383, 198, 2, 2457, 1255, 815, 307, 685, 343, 445, 1229, 856, 198, 2, 13390, 16151, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 23820, 445, 1229, 856, 62, 69, 7861, 737, 1002, 534, 2457, 198, 2, 1255, 318, 281, 18253, 11, 910, 4600, 17, 47671, 345, 761, 284, 1487, 340, 284, 262, 5794, 286, 13390, 198, 2, 326, 468, 31457, 1352, 4600, 16, 44646, 1406, 287, 428, 1339, 11, 4600, 17, 63, 815, 307, 11513, 284, 4600, 17, 14, 16, 44646, 198, 2, 220, 198, 2, 12429, 16281, 352, 25, 1174, 220, 220, 198, 2, 220, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 23412, 25, 27444, 16, 14, 17, 10, 16, 14, 17, 1, 198, 2, 220, 220, 220, 220, 25235, 25, 366, 15, 14, 16, 1, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 198, 2, 12429, 16281, 362, 25, 1174, 220, 220, 198, 2, 220, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 23412, 25, 27444, 16, 14, 17, 10, 16, 14, 17, 10, 16, 14, 18, 1, 198, 2, 220, 220, 220, 220, 25235, 25, 366, 16, 14, 18, 1, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 198, 2, 12429, 16281, 513, 25, 1174, 220, 220, 198, 2, 220, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 23412, 25, 366, 16, 14, 18, 12, 16, 14, 17, 1, 198, 2, 220, 220, 220, 220, 25235, 25, 27444, 16, 14, 21, 1, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 198, 2, 12429, 16281, 604, 25, 1174, 220, 220, 198, 2, 220, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 23412, 25, 366, 20, 14, 18, 10, 16, 14, 18, 1, 198, 2, 220, 220, 220, 220, 25235, 25, 366, 17, 14, 16, 1, 198, 2, 220, 220, 220, 220, 220, 198, 2, 220, 198, 2, 12429, 6425, 25, 1174, 220, 220, 198, 2, 220, 198, 2, 220, 220, 352, 13, 383, 5128, 4731, 691, 4909, 4600, 6, 15, 6, 63, 284, 4600, 6, 24, 6, 47671, 4600, 26488, 6, 47671, 4600, 6, 10, 6, 63, 290, 4600, 6, 19355, 44646, 1406, 857, 262, 5072, 13, 198, 2, 220, 220, 362, 13, 5501, 13390, 357, 15414, 290, 5072, 8, 468, 5794, 4600, 22519, 77, 6975, 1352, 14, 6559, 6351, 1352, 44646, 1002, 262, 717, 5128, 13390, 393, 262, 5072, 318, 3967, 11, 788, 4600, 6, 10, 6, 63, 481, 307, 22532, 13, 198, 2, 220, 220, 513, 13, 383, 5128, 691, 4909, 4938, 12429, 343, 445, 1229, 856, 49876, 1174, 837, 810, 262, 12429, 77, 6975, 1352, 1174, 290, 12429, 6559, 6351, 1352, 1174, 286, 1123, 13390, 481, 1464, 307, 287, 262, 2837, 685, 16, 11, 940, 4083, 1002, 262, 31457, 1352, 318, 352, 11, 340, 1724, 428, 13390, 318, 1682, 281, 18253, 287, 257, 13390, 5794, 5447, 2029, 13, 198, 2, 220, 220, 604, 13, 383, 1271, 286, 1813, 49876, 481, 307, 287, 262, 2837, 685, 16, 11, 940, 4083, 198, 2, 220, 220, 642, 13, 383, 5470, 1352, 290, 31457, 1352, 286, 262, 12429, 20311, 1255, 1174, 389, 11462, 284, 307, 4938, 290, 287, 262, 2837, 286, 3933, 12, 2545, 493, 13, 198, 2, 220, 198, 2, 220, 198, 2235, 2488, 44601, 2438, 28, 9688, 198, 3500, 1004, 316, 10669, 198, 198, 8818, 13390, 62, 2860, 653, 7, 38011, 3712, 10100, 8, 198, 220, 220, 220, 5408, 796, 6330, 7, 38011, 11, 12813, 1, 5218, 366, 1003, 4943, 198, 220, 220, 220, 581, 796, 5418, 7, 48526, 13, 29572, 7, 38011, 4008, 198, 220, 220, 220, 1441, 17971, 7, 411, 13, 22510, 20679, 3, 7, 411, 13, 6559, 16725, 198, 437, 198, 2235, 2488, 44601, 2438, 28, 437, 198 ]
2.583548
778
module OPCSPs import POMDPs: POMDP, State, Action, Observation, Belief, BeliefUpdater, AbstractSpace, Policy, Solver import POMDPs: rand, actions, updater, initial_belief, iterator, isterminal import POMDPs: rand! # TODO this shouldn't be necessary, but it is here to ease transition import POMDPs: transition, observation, action, reward, update, discount import POMDPs: create_state, create_observation, create_action, create_belief import POMDPs: create_observation_distribution, create_transition_distribution using POMDPs import Base: ==, hash, length import MCTS import POMDPToolbox include("MVNTools.jl") using OPCSPs.MVNTools using AutoHashEquals using NearestNeighbors using Distances export MVNTools export OPCSP, SimpleOP, OPCSPBeliefMDP, SolveMeanFeedback, FeedbackSolver, OPCSPUpdater, OPSolution, OPCSPState, OPCSPAction, OPCSPBelief, HeuristicSolver, GurobiExactSolver, HeuristicActionGenerator, PreSolvedActionGenerator, MCTSAdapter, SampledFeedbackSolver, SolveSampledFeedback, InfluenceBonusFBSolver, SolveInfluenceBonusFB, Cheater, OnlyUnobservableUncertainty, VoronoiOPCSPAg, OldVoronoiOPCSPAg, VoxelOPCSPAg export solve_op, solve_opcsp_feedback, cheat, gen_opcsp, gen_op, gen_two_cluster_problem, gen_problem, gen_highly_connected, gen_informative, updater, reward, distance, build_path, within_range, initial_state, gurobi_solve, evaluate_performance, test_run, initial_states type SimpleOP r::Vector{Float64} positions::Vector{Vector{Float64}} distance_limit::Float64 start::Int stop::Int distances::Matrix{Float64} end function SimpleOP(r, positions, distance_limit=1.0, start=1, stop=-1) if stop == -1 stop = start end return SimpleOP(r, positions, distance_limit, start, stop, find_distances(positions)) end reward(op::SimpleOP, path::Vector{Int}) = sum([op.r[i] for i in path]) type OPCSP <: POMDP r::Vector{Float64} # r bar # d::Vector{Float64} positions::Vector{Vector{Float64}} covariance::Matrix{Float64} distance_limit::Float64 start::Int stop::Int distances::Matrix{Float64} end function OPCSP(r, positions, covariance, distance_limit=1.0, start=1, stop=-1) if stop == -1 stop = start end return OPCSP(r, positions, covariance, distance_limit, start, stop, find_distances(positions)) end reward(op, d::Vector{Float64}, path::Vector{Int}) = sum(op.r[path] + d[path]) include("pomdp.jl") include("mdp.jl") include("action_space.jl") include("problems.jl") include("util.jl") include("solutions.jl") include("rollouts.jl") include("heuristics.jl") include("policies.jl") include("mcts.jl") include("feedback.jl") include("evaluation.jl") include("visualization.jl") end # module
[ 21412, 440, 5662, 4303, 82, 198, 198, 11748, 350, 2662, 6322, 82, 25, 350, 2662, 6322, 11, 1812, 11, 7561, 11, 11086, 13208, 11, 49728, 11, 49728, 4933, 67, 729, 11, 27741, 14106, 11, 7820, 11, 4294, 332, 198, 11748, 350, 2662, 6322, 82, 25, 43720, 11, 4028, 11, 2325, 729, 11, 4238, 62, 6667, 2086, 11, 41313, 11, 318, 23705, 282, 198, 11748, 350, 2662, 6322, 82, 25, 43720, 0, 1303, 16926, 46, 428, 6584, 470, 307, 3306, 11, 475, 340, 318, 994, 284, 10152, 6801, 198, 11748, 350, 2662, 6322, 82, 25, 6801, 11, 13432, 11, 2223, 11, 6721, 11, 4296, 11, 9780, 198, 11748, 350, 2662, 6322, 82, 25, 2251, 62, 5219, 11, 2251, 62, 672, 3168, 341, 11, 2251, 62, 2673, 11, 2251, 62, 6667, 2086, 198, 11748, 350, 2662, 6322, 82, 25, 2251, 62, 672, 3168, 341, 62, 17080, 3890, 11, 2251, 62, 7645, 653, 62, 17080, 3890, 198, 3500, 350, 2662, 6322, 82, 198, 11748, 7308, 25, 6624, 11, 12234, 11, 4129, 198, 198, 11748, 337, 4177, 50, 198, 198, 11748, 350, 2662, 6322, 25391, 3524, 198, 198, 17256, 7203, 44, 53, 11251, 10141, 13, 20362, 4943, 198, 3500, 440, 5662, 4303, 82, 13, 44, 53, 11251, 10141, 198, 3500, 11160, 26257, 23588, 874, 198, 198, 3500, 3169, 12423, 46445, 32289, 198, 3500, 4307, 1817, 198, 198, 39344, 32947, 11251, 10141, 198, 198, 39344, 440, 5662, 4303, 11, 198, 220, 220, 220, 220, 220, 220, 17427, 3185, 11, 198, 220, 220, 220, 220, 220, 220, 440, 5662, 4303, 12193, 2086, 44, 6322, 11, 198, 220, 220, 220, 220, 220, 220, 4294, 303, 5308, 272, 18332, 1891, 11, 198, 220, 220, 220, 220, 220, 220, 37774, 50, 14375, 11, 198, 220, 220, 220, 220, 220, 220, 440, 5662, 4303, 4933, 67, 729, 11, 198, 220, 220, 220, 220, 220, 220, 40490, 2122, 11, 198, 220, 220, 220, 220, 220, 220, 440, 5662, 4303, 9012, 11, 198, 220, 220, 220, 220, 220, 220, 440, 5662, 4303, 12502, 11, 198, 220, 220, 220, 220, 220, 220, 440, 5662, 4303, 12193, 2086, 11, 198, 220, 220, 220, 220, 220, 220, 679, 27915, 50, 14375, 11, 198, 220, 220, 220, 220, 220, 220, 402, 1434, 8482, 3109, 529, 50, 14375, 11, 198, 220, 220, 220, 220, 220, 220, 679, 27915, 12502, 8645, 1352, 11, 198, 220, 220, 220, 220, 220, 220, 3771, 50, 5634, 12502, 8645, 1352, 11, 198, 220, 220, 220, 220, 220, 220, 337, 4177, 50, 47307, 11, 198, 220, 220, 220, 220, 220, 220, 3409, 10137, 18332, 1891, 50, 14375, 11, 198, 220, 220, 220, 220, 220, 220, 4294, 303, 16305, 10137, 18332, 1891, 11, 198, 220, 220, 220, 220, 220, 220, 35948, 29435, 37, 4462, 14375, 11, 198, 220, 220, 220, 220, 220, 220, 4294, 303, 18943, 23079, 29435, 26001, 11, 198, 220, 220, 220, 220, 220, 220, 2580, 729, 11, 198, 220, 220, 220, 220, 220, 220, 5514, 3118, 672, 3168, 540, 3118, 39239, 774, 11, 198, 220, 220, 220, 220, 220, 220, 44143, 261, 23013, 3185, 34, 4303, 10262, 11, 198, 220, 220, 220, 220, 220, 220, 5706, 53, 273, 261, 23013, 3185, 34, 4303, 10262, 11, 198, 220, 220, 220, 220, 220, 220, 28035, 417, 3185, 34, 4303, 10262, 198, 198, 39344, 8494, 62, 404, 11, 198, 220, 220, 220, 220, 220, 220, 8494, 62, 404, 66, 2777, 62, 12363, 1891, 11, 198, 220, 220, 220, 220, 220, 220, 22705, 11, 198, 220, 220, 220, 220, 220, 220, 2429, 62, 404, 66, 2777, 11, 198, 220, 220, 220, 220, 220, 220, 2429, 62, 404, 11, 198, 220, 220, 220, 220, 220, 220, 2429, 62, 11545, 62, 565, 5819, 62, 45573, 11, 198, 220, 220, 220, 220, 220, 220, 2429, 62, 45573, 11, 198, 220, 220, 220, 220, 220, 220, 2429, 62, 47444, 62, 15236, 11, 198, 220, 220, 220, 220, 220, 220, 2429, 62, 259, 687, 876, 11, 198, 220, 220, 220, 220, 220, 220, 2325, 729, 11, 198, 220, 220, 220, 220, 220, 220, 6721, 11, 198, 220, 220, 220, 220, 220, 220, 5253, 11, 198, 220, 220, 220, 220, 220, 220, 1382, 62, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 1626, 62, 9521, 11, 198, 220, 220, 220, 220, 220, 220, 4238, 62, 5219, 11, 198, 220, 220, 220, 220, 220, 220, 915, 305, 8482, 62, 82, 6442, 11, 198, 220, 220, 220, 220, 220, 220, 13446, 62, 26585, 11, 198, 220, 220, 220, 220, 220, 220, 1332, 62, 5143, 11, 198, 220, 220, 220, 220, 220, 220, 4238, 62, 27219, 628, 198, 198, 4906, 17427, 3185, 198, 220, 220, 220, 374, 3712, 38469, 90, 43879, 2414, 92, 198, 220, 220, 220, 6116, 3712, 38469, 90, 38469, 90, 43879, 2414, 11709, 198, 220, 220, 220, 5253, 62, 32374, 3712, 43879, 2414, 198, 220, 220, 220, 923, 3712, 5317, 198, 220, 220, 220, 2245, 3712, 5317, 198, 220, 220, 220, 18868, 3712, 46912, 90, 43879, 2414, 92, 198, 437, 198, 8818, 17427, 3185, 7, 81, 11, 6116, 11, 5253, 62, 32374, 28, 16, 13, 15, 11, 923, 28, 16, 11, 2245, 10779, 16, 8, 198, 220, 220, 220, 611, 2245, 6624, 532, 16, 198, 220, 220, 220, 220, 220, 220, 220, 2245, 796, 923, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 17427, 3185, 7, 81, 11, 6116, 11, 5253, 62, 32374, 11, 923, 11, 2245, 11, 1064, 62, 17080, 1817, 7, 1930, 1756, 4008, 198, 437, 198, 260, 904, 7, 404, 3712, 26437, 3185, 11, 3108, 3712, 38469, 90, 5317, 30072, 796, 2160, 26933, 404, 13, 81, 58, 72, 60, 329, 1312, 287, 3108, 12962, 198, 198, 4906, 440, 5662, 4303, 1279, 25, 350, 2662, 6322, 198, 220, 220, 220, 374, 3712, 38469, 90, 43879, 2414, 92, 1303, 374, 2318, 198, 220, 220, 220, 1303, 288, 3712, 38469, 90, 43879, 2414, 92, 198, 220, 220, 220, 6116, 3712, 38469, 90, 38469, 90, 43879, 2414, 11709, 198, 220, 220, 220, 44829, 590, 3712, 46912, 90, 43879, 2414, 92, 198, 220, 220, 220, 5253, 62, 32374, 3712, 43879, 2414, 198, 220, 220, 220, 923, 3712, 5317, 198, 220, 220, 220, 2245, 3712, 5317, 198, 220, 220, 220, 18868, 3712, 46912, 90, 43879, 2414, 92, 198, 437, 198, 8818, 440, 5662, 4303, 7, 81, 11, 6116, 11, 44829, 590, 11, 5253, 62, 32374, 28, 16, 13, 15, 11, 923, 28, 16, 11, 2245, 10779, 16, 8, 198, 220, 220, 220, 611, 2245, 6624, 532, 16, 198, 220, 220, 220, 220, 220, 220, 220, 2245, 796, 923, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 440, 5662, 4303, 7, 81, 11, 6116, 11, 44829, 590, 11, 5253, 62, 32374, 11, 923, 11, 2245, 11, 1064, 62, 17080, 1817, 7, 1930, 1756, 4008, 198, 437, 198, 260, 904, 7, 404, 11, 288, 3712, 38469, 90, 43879, 2414, 5512, 3108, 3712, 38469, 90, 5317, 30072, 796, 2160, 7, 404, 13, 81, 58, 6978, 60, 1343, 288, 58, 6978, 12962, 198, 198, 17256, 7203, 79, 296, 26059, 13, 20362, 4943, 198, 17256, 7203, 9132, 79, 13, 20362, 4943, 198, 17256, 7203, 2673, 62, 13200, 13, 20362, 4943, 198, 17256, 7203, 1676, 22143, 13, 20362, 4943, 198, 17256, 7203, 22602, 13, 20362, 4943, 198, 17256, 7203, 82, 14191, 13, 20362, 4943, 198, 17256, 7203, 2487, 5269, 13, 20362, 4943, 198, 17256, 7203, 258, 333, 3969, 13, 20362, 4943, 198, 17256, 7203, 79, 4160, 444, 13, 20362, 4943, 198, 17256, 7203, 76, 310, 82, 13, 20362, 4943, 198, 17256, 7203, 12363, 1891, 13, 20362, 4943, 198, 17256, 7203, 18206, 2288, 13, 20362, 4943, 198, 17256, 7203, 41464, 1634, 13, 20362, 4943, 198, 198, 437, 1303, 8265, 198 ]
2.378165
1,264
include("Parser.jl") include("Lexer.jl") include("Token.jl") include("Transpile.jl")
[ 198, 17256, 7203, 46677, 13, 20362, 4943, 198, 17256, 7203, 45117, 263, 13, 20362, 4943, 198, 17256, 7203, 30642, 13, 20362, 4943, 198, 17256, 7203, 8291, 79, 576, 13, 20362, 4943, 198 ]
2.6875
32
@testset "972.equal-rational-numbers.jl" begin @test is_rational_equal("0.(52)", "0.5(25)") == true @test is_rational_equal("0.1666(6)", "0.166(66)") == true @test is_rational_equal("0.9(9)", "1.") == true end
[ 31, 9288, 2617, 366, 24, 4761, 13, 40496, 12, 20310, 12, 77, 17024, 13, 20362, 1, 2221, 198, 220, 220, 220, 2488, 9288, 318, 62, 20310, 62, 40496, 7203, 15, 12195, 4309, 42501, 366, 15, 13, 20, 7, 1495, 8, 4943, 6624, 2081, 198, 220, 220, 220, 2488, 9288, 318, 62, 20310, 62, 40496, 7203, 15, 13, 1433, 2791, 7, 21, 42501, 366, 15, 13, 23055, 7, 2791, 8, 4943, 6624, 2081, 198, 220, 220, 220, 2488, 9288, 318, 62, 20310, 62, 40496, 7203, 15, 13, 24, 7, 24, 42501, 366, 16, 19570, 6624, 2081, 198, 437 ]
2.278351
97
using DrWatson @quickactivate "ChaosThroughBilliards" include(srcdir("style.jl")) # re = billiard_rectangle(x, y) # si = billiard_sinai(y/4, x, y) # st = billiard_stadium(x-y, y) bd = Billiard(Antidot([0.0, 0.0], 1.5, false)) InteractiveDynamics.obfill(::Antidot) = RGBAf0(0,0,0,0) InteractiveDynamics.obls(::Antidot) = nothing InteractiveDynamics.obcolor(::Antidot) = to_color(:white) N = 8 ps = [Particle(0, 0, 2π*(i/N)) for i in 1:N] # interactive_billiard(bd, ps; # backgroundcolor = :black, particle_size = 2.0, add_controls = false) billiard_video( videodir("circle.mp4"), bd, deepcopy(ps); frames = 80, backgroundcolor = :black, colors = COLORS, tailwidth = 3.5, particle_size = 2, res = (1200, 1200), plot_particles = true, dt = 0.0001, speed = 150, tail = 10000, # this makes ultra fine temporal resolution )
[ 3500, 1583, 54, 13506, 198, 31, 24209, 39022, 366, 1925, 7495, 15046, 17798, 72, 1371, 1, 198, 17256, 7, 10677, 15908, 7203, 7635, 13, 20362, 48774, 198, 198, 2, 302, 796, 2855, 42425, 62, 2554, 9248, 7, 87, 11, 331, 8, 198, 2, 33721, 796, 2855, 42425, 62, 82, 1437, 72, 7, 88, 14, 19, 11, 2124, 11, 331, 8, 198, 2, 336, 796, 2855, 42425, 62, 301, 6271, 7, 87, 12, 88, 11, 331, 8, 198, 198, 17457, 796, 3941, 42425, 7, 13217, 312, 313, 26933, 15, 13, 15, 11, 657, 13, 15, 4357, 352, 13, 20, 11, 3991, 4008, 198, 198, 9492, 5275, 35, 4989, 873, 13, 672, 20797, 7, 3712, 13217, 312, 313, 8, 796, 34359, 4339, 69, 15, 7, 15, 11, 15, 11, 15, 11, 15, 8, 198, 9492, 5275, 35, 4989, 873, 13, 672, 7278, 7, 3712, 13217, 312, 313, 8, 796, 2147, 198, 9492, 5275, 35, 4989, 873, 13, 672, 8043, 7, 3712, 13217, 312, 313, 8, 796, 284, 62, 8043, 7, 25, 11186, 8, 198, 198, 45, 796, 807, 198, 862, 796, 685, 7841, 1548, 7, 15, 11, 657, 11, 362, 46582, 9, 7, 72, 14, 45, 4008, 329, 1312, 287, 352, 25, 45, 60, 198, 198, 2, 14333, 62, 35546, 42425, 7, 17457, 11, 26692, 26, 220, 198, 2, 4469, 8043, 796, 1058, 13424, 11, 18758, 62, 7857, 796, 362, 13, 15, 11, 751, 62, 13716, 82, 796, 3991, 8, 198, 198, 35546, 42425, 62, 15588, 7, 198, 220, 220, 220, 18784, 375, 343, 7203, 45597, 13, 3149, 19, 12340, 275, 67, 11, 2769, 30073, 7, 862, 1776, 198, 220, 220, 220, 13431, 796, 4019, 11, 4469, 8043, 796, 1058, 13424, 11, 7577, 796, 20444, 20673, 11, 198, 220, 220, 220, 7894, 10394, 796, 513, 13, 20, 11, 18758, 62, 7857, 796, 362, 11, 581, 796, 357, 27550, 11, 24938, 828, 198, 220, 220, 220, 7110, 62, 3911, 2983, 796, 2081, 11, 198, 220, 220, 220, 288, 83, 796, 657, 13, 18005, 11, 2866, 796, 6640, 11, 7894, 796, 33028, 11, 1303, 428, 1838, 14764, 3734, 21964, 6323, 198, 8, 198 ]
2.421203
349
# Simple data provider that load text using Iterators using MXNet function build_vocabulary(corpus_fn::AbstractString, vocab_fn::AbstractString; max_vocab=10000) if isfile(vocab_fn) info("Vocabulary already exists, reusing $vocab_fn...") vocab = Dict{Char,Int}([w => i for (i,w) in enumerate(readall(vocab_fn))]) else # count symbol frequency dict = Dict{Char,Int}() open(corpus_fn) do io for line in eachline(io) for c in line dict[c] = get(dict, c, 0) + 1 end end end vocab = sort(collect(dict), by=x->-x.second) vocab = vocab[1:min(max_vocab,length(vocab))] open(vocab_fn, "w") do io for x in vocab print(io, x.first) end end vocab = Dict([x.first => i for (i,x) in enumerate(vocab)]) end vocab[UNKNOWN_CHAR] = length(vocab) return vocab end #--CharSeqProvider type CharSeqProvider <: mx.AbstractDataProvider text :: AbstractString batch_size :: Int seq_len :: Int vocab :: Dict{Char,Int} prefix :: Symbol n_layer :: Int dim_hidden :: Int end #--/CharSeqProvider function mx.get_batch_size(p :: CharSeqProvider) p.batch_size end #--provide function mx.provide_data(p :: CharSeqProvider) [(symbol(p.prefix, "_data_$t"), (length(p.vocab), p.batch_size)) for t = 1:p.seq_len] ∪ [(symbol(p.prefix, "_l$(l)_init_c"), (p.dim_hidden, p.batch_size)) for l=1:p.n_layer] ∪ [(symbol(p.prefix, "_l$(l)_init_h"), (p.dim_hidden, p.batch_size)) for l=1:p.n_layer] end function mx.provide_label(p :: CharSeqProvider) [(symbol(p.prefix, "_label_$t"), (p.batch_size,)) for t = 1:p.seq_len] end #--/provide #--eachbatch-part1 function mx.eachbatch(p :: CharSeqProvider) data_all = [mx.zeros(shape) for (name, shape) in mx.provide_data(p)] label_all = [mx.zeros(shape) for (name, shape) in mx.provide_label(p)] data_jl = [copy(x) for x in data_all] label_jl= [copy(x) for x in label_all] batch = mx.DataBatch(data_all, label_all, p.batch_size) #... #--/eachbatch-part1 #--eachbatch-part2 #... function _text_iter() text = p.text n_batch = floor(Int, length(text) / p.batch_size / p.seq_len) text = text[1:n_batch*p.batch_size*p.seq_len] # discard tailing idx_all = 1:length(text) for idx_batch in partition(idx_all, p.batch_size*p.seq_len) for i = 1:p.seq_len data_jl[i][:] = 0 label_jl[i][:] = 0 end for (i, idx_seq) in enumerate(partition(idx_batch, p.seq_len)) for (j, idx) in enumerate(idx_seq) c_this = text[idx] c_next = idx == length(text) ? UNKNOWN_CHAR : text[idx+1] data_jl[j][char_idx(vocab,c_this),i] = 1 label_jl[j][i] = char_idx(vocab,c_next)-1 end end for i = 1:p.seq_len copy!(data_all[i], data_jl[i]) copy!(label_all[i], label_jl[i]) end produce(batch) end end return Task(_text_iter) end #--/eachbatch-part2 # helper function to convert a char into index in vocabulary function char_idx(vocab :: Dict{Char,Int}, c :: Char) if haskey(vocab, c) vocab[c] else vocab[UNKNOWN_CHAR] end end
[ 2, 17427, 1366, 10131, 326, 3440, 2420, 198, 3500, 40806, 2024, 198, 3500, 26135, 7934, 198, 198, 8818, 1382, 62, 18893, 22528, 7, 10215, 79, 385, 62, 22184, 3712, 23839, 10100, 11, 12776, 397, 62, 22184, 3712, 23839, 10100, 26, 3509, 62, 18893, 397, 28, 49388, 8, 198, 220, 611, 318, 7753, 7, 18893, 397, 62, 22184, 8, 198, 220, 220, 220, 7508, 7203, 53, 420, 22528, 1541, 7160, 11, 302, 3500, 720, 18893, 397, 62, 22184, 9313, 8, 198, 220, 220, 220, 12776, 397, 796, 360, 713, 90, 12441, 11, 5317, 92, 26933, 86, 5218, 1312, 329, 357, 72, 11, 86, 8, 287, 27056, 378, 7, 961, 439, 7, 18893, 397, 62, 22184, 4008, 12962, 198, 220, 2073, 198, 220, 220, 220, 1303, 954, 6194, 8373, 198, 220, 220, 220, 8633, 796, 360, 713, 90, 12441, 11, 5317, 92, 3419, 198, 220, 220, 220, 1280, 7, 10215, 79, 385, 62, 22184, 8, 466, 33245, 198, 220, 220, 220, 220, 220, 329, 1627, 287, 1123, 1370, 7, 952, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 269, 287, 1627, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8633, 58, 66, 60, 796, 651, 7, 11600, 11, 269, 11, 657, 8, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 12776, 397, 796, 3297, 7, 33327, 7, 11600, 828, 416, 28, 87, 3784, 12, 87, 13, 12227, 8, 198, 220, 220, 220, 12776, 397, 796, 12776, 397, 58, 16, 25, 1084, 7, 9806, 62, 18893, 397, 11, 13664, 7, 18893, 397, 4008, 60, 198, 220, 220, 220, 1280, 7, 18893, 397, 62, 22184, 11, 366, 86, 4943, 466, 33245, 198, 220, 220, 220, 220, 220, 329, 2124, 287, 12776, 397, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 952, 11, 2124, 13, 11085, 8, 198, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 12776, 397, 796, 360, 713, 26933, 87, 13, 11085, 5218, 1312, 329, 357, 72, 11, 87, 8, 287, 27056, 378, 7, 18893, 397, 8, 12962, 198, 220, 886, 198, 220, 12776, 397, 58, 4944, 44706, 62, 38019, 60, 796, 4129, 7, 18893, 397, 8, 198, 220, 1441, 12776, 397, 198, 437, 198, 198, 2, 438, 12441, 4653, 80, 29495, 198, 4906, 3178, 4653, 80, 29495, 1279, 25, 285, 87, 13, 23839, 6601, 29495, 198, 220, 2420, 220, 220, 220, 220, 220, 220, 7904, 27741, 10100, 198, 220, 15458, 62, 7857, 7904, 2558, 198, 220, 33756, 62, 11925, 220, 220, 220, 7904, 2558, 198, 220, 12776, 397, 220, 220, 220, 220, 220, 7904, 360, 713, 90, 12441, 11, 5317, 92, 628, 220, 21231, 220, 220, 220, 220, 7904, 38357, 198, 220, 299, 62, 29289, 220, 220, 220, 7904, 2558, 198, 220, 5391, 62, 30342, 7904, 2558, 198, 437, 198, 2, 438, 14, 12441, 4653, 80, 29495, 198, 198, 8818, 285, 87, 13, 1136, 62, 43501, 62, 7857, 7, 79, 7904, 3178, 4653, 80, 29495, 8, 198, 220, 279, 13, 43501, 62, 7857, 198, 437, 198, 198, 2, 438, 15234, 485, 198, 8818, 285, 87, 13, 15234, 485, 62, 7890, 7, 79, 7904, 3178, 4653, 80, 29495, 8, 198, 220, 47527, 1837, 23650, 7, 79, 13, 40290, 11, 45434, 7890, 62, 3, 83, 12340, 357, 13664, 7, 79, 13, 18893, 397, 828, 279, 13, 43501, 62, 7857, 4008, 329, 256, 796, 352, 25, 79, 13, 41068, 62, 11925, 60, 18872, 103, 198, 220, 47527, 1837, 23650, 7, 79, 13, 40290, 11, 45434, 75, 3, 7, 75, 8, 62, 15003, 62, 66, 12340, 357, 79, 13, 27740, 62, 30342, 11, 279, 13, 43501, 62, 7857, 4008, 329, 300, 28, 16, 25, 79, 13, 77, 62, 29289, 60, 18872, 103, 198, 220, 47527, 1837, 23650, 7, 79, 13, 40290, 11, 45434, 75, 3, 7, 75, 8, 62, 15003, 62, 71, 12340, 357, 79, 13, 27740, 62, 30342, 11, 279, 13, 43501, 62, 7857, 4008, 329, 300, 28, 16, 25, 79, 13, 77, 62, 29289, 60, 198, 437, 198, 8818, 285, 87, 13, 15234, 485, 62, 18242, 7, 79, 7904, 3178, 4653, 80, 29495, 8, 198, 220, 47527, 1837, 23650, 7, 79, 13, 40290, 11, 45434, 18242, 62, 3, 83, 12340, 357, 79, 13, 43501, 62, 7857, 11, 4008, 329, 256, 796, 352, 25, 79, 13, 41068, 62, 11925, 60, 198, 437, 198, 2, 438, 14, 15234, 485, 198, 198, 2, 438, 27379, 43501, 12, 3911, 16, 198, 8818, 285, 87, 13, 27379, 43501, 7, 79, 7904, 3178, 4653, 80, 29495, 8, 198, 220, 1366, 62, 439, 220, 796, 685, 36802, 13, 9107, 418, 7, 43358, 8, 329, 357, 3672, 11, 5485, 8, 287, 285, 87, 13, 15234, 485, 62, 7890, 7, 79, 15437, 198, 220, 6167, 62, 439, 796, 685, 36802, 13, 9107, 418, 7, 43358, 8, 329, 357, 3672, 11, 5485, 8, 287, 285, 87, 13, 15234, 485, 62, 18242, 7, 79, 15437, 628, 220, 1366, 62, 20362, 796, 685, 30073, 7, 87, 8, 329, 2124, 287, 1366, 62, 439, 60, 198, 220, 6167, 62, 20362, 28, 685, 30073, 7, 87, 8, 329, 2124, 287, 6167, 62, 439, 60, 628, 220, 15458, 796, 285, 87, 13, 6601, 33, 963, 7, 7890, 62, 439, 11, 6167, 62, 439, 11, 279, 13, 43501, 62, 7857, 8, 198, 220, 1303, 986, 198, 220, 1303, 438, 14, 27379, 43501, 12, 3911, 16, 628, 220, 1303, 438, 27379, 43501, 12, 3911, 17, 198, 220, 1303, 986, 198, 220, 2163, 4808, 5239, 62, 2676, 3419, 198, 220, 220, 220, 2420, 796, 279, 13, 5239, 628, 220, 220, 220, 299, 62, 43501, 796, 4314, 7, 5317, 11, 4129, 7, 5239, 8, 1220, 279, 13, 43501, 62, 7857, 1220, 279, 13, 41068, 62, 11925, 8, 198, 220, 220, 220, 2420, 796, 2420, 58, 16, 25, 77, 62, 43501, 9, 79, 13, 43501, 62, 7857, 9, 79, 13, 41068, 62, 11925, 60, 1303, 27537, 7894, 278, 198, 220, 220, 220, 4686, 87, 62, 439, 796, 352, 25, 13664, 7, 5239, 8, 628, 220, 220, 220, 329, 4686, 87, 62, 43501, 287, 18398, 7, 312, 87, 62, 439, 11, 279, 13, 43501, 62, 7857, 9, 79, 13, 41068, 62, 11925, 8, 198, 220, 220, 220, 220, 220, 329, 1312, 796, 352, 25, 79, 13, 41068, 62, 11925, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 20362, 58, 72, 7131, 47715, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 6167, 62, 20362, 58, 72, 7131, 47715, 796, 657, 198, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 329, 357, 72, 11, 4686, 87, 62, 41068, 8, 287, 27056, 378, 7, 3911, 653, 7, 312, 87, 62, 43501, 11, 279, 13, 41068, 62, 11925, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 73, 11, 4686, 87, 8, 287, 27056, 378, 7, 312, 87, 62, 41068, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 62, 5661, 796, 2420, 58, 312, 87, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 62, 19545, 796, 4686, 87, 6624, 4129, 7, 5239, 8, 5633, 4725, 44706, 62, 38019, 1058, 2420, 58, 312, 87, 10, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 20362, 58, 73, 7131, 10641, 62, 312, 87, 7, 18893, 397, 11, 66, 62, 5661, 828, 72, 60, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6167, 62, 20362, 58, 73, 7131, 72, 60, 796, 1149, 62, 312, 87, 7, 18893, 397, 11, 66, 62, 19545, 13219, 16, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 329, 1312, 796, 352, 25, 79, 13, 41068, 62, 11925, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 0, 7, 7890, 62, 439, 58, 72, 4357, 1366, 62, 20362, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 0, 7, 18242, 62, 439, 58, 72, 4357, 6167, 62, 20362, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 4439, 7, 43501, 8, 198, 220, 220, 220, 886, 198, 220, 886, 628, 220, 1441, 15941, 28264, 5239, 62, 2676, 8, 198, 437, 198, 2, 438, 14, 27379, 43501, 12, 3911, 17, 198, 198, 2, 31904, 2163, 284, 10385, 257, 1149, 656, 6376, 287, 25818, 198, 8818, 1149, 62, 312, 87, 7, 18893, 397, 7904, 360, 713, 90, 12441, 11, 5317, 5512, 269, 7904, 3178, 8, 198, 220, 611, 468, 2539, 7, 18893, 397, 11, 269, 8, 198, 220, 220, 220, 12776, 397, 58, 66, 60, 198, 220, 2073, 198, 220, 220, 220, 12776, 397, 58, 4944, 44706, 62, 38019, 60, 198, 220, 886, 198, 437, 628 ]
2.160959
1,460
module TestCommon include("preamble.jl") using RecordArrays.Implementations: check_eltype struct Node{T} head::T tail::Union{Nothing,Node{T}} end @testset "check_eltype" begin @test check_eltype(Some{Int}) === nothing @test check_eltype(typeof((a = 1, b = 2))) === nothing @testset "Ref" begin err = @test_error check_eltype(typeof(Ref(0))) === nothing @test "mutable type" ⊏ sprint(showerror, err) end @testset "Integer" begin err = @test_error check_eltype(Integer) === nothing @test "concrete type is required" ⊏ sprint(showerror, err) end @testset "Node{Int}" begin err = @test_error check_eltype(Node{Int}) === nothing @test "GC-managed" ⊏ sprint(showerror, err) end end end # module
[ 21412, 6208, 17227, 198, 198, 17256, 7203, 79, 1476, 903, 13, 20362, 4943, 198, 198, 3500, 13266, 3163, 20477, 13, 3546, 26908, 602, 25, 2198, 62, 417, 4906, 198, 198, 7249, 19081, 90, 51, 92, 198, 220, 220, 220, 1182, 3712, 51, 198, 220, 220, 220, 7894, 3712, 38176, 90, 18465, 11, 19667, 90, 51, 11709, 198, 437, 198, 198, 31, 9288, 2617, 366, 9122, 62, 417, 4906, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2198, 62, 417, 4906, 7, 4366, 90, 5317, 30072, 24844, 2147, 198, 220, 220, 220, 2488, 9288, 2198, 62, 417, 4906, 7, 4906, 1659, 19510, 64, 796, 352, 11, 275, 796, 362, 22305, 24844, 2147, 198, 220, 220, 220, 2488, 9288, 2617, 366, 8134, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 11454, 796, 2488, 9288, 62, 18224, 2198, 62, 417, 4906, 7, 4906, 1659, 7, 8134, 7, 15, 22305, 24844, 2147, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 366, 76, 18187, 2099, 1, 2343, 232, 237, 18553, 7, 1477, 789, 1472, 11, 11454, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 2617, 366, 46541, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 11454, 796, 2488, 9288, 62, 18224, 2198, 62, 417, 4906, 7, 46541, 8, 24844, 2147, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 366, 1102, 38669, 2099, 318, 2672, 1, 2343, 232, 237, 18553, 7, 1477, 789, 1472, 11, 11454, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 9288, 2617, 366, 19667, 90, 5317, 36786, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 11454, 796, 2488, 9288, 62, 18224, 2198, 62, 417, 4906, 7, 19667, 90, 5317, 30072, 24844, 2147, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 366, 15916, 12, 39935, 1, 2343, 232, 237, 18553, 7, 1477, 789, 1472, 11, 11454, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 437, 220, 1303, 8265, 198 ]
2.40184
326
function forward(backend::GPUBackend, state::HingeLossLayerState, inputs::Vector{Blob}) pred = inputs[1] label = inputs[2] data_type = eltype(pred) n = length(pred) x_block = div(n + CUDA.THREADS_PER_BLOCK_X-1, CUDA.THREADS_PER_BLOCK_X) if length(state.loss_blob) < x_block destroy(state.loss_blob) state.loss_blob = make_blob(backend, data_type, x_block) end if data_type == Float32 kernel = backend.mocha.hinge_loss_forward_float elseif data_type == Float64 kernel = backend.mocha.hinge_loss_forward_double else error("Unsupported data type $data_type") end CUDA.launch(kernel, (x_block,1), (CUDA.THREADS_PER_BLOCK_X, 1), (pred.ptr.p, label.ptr.p, n, state.loss_blob.ptr.p)) losses = Array{data_type}(size(state.loss_blob)...) copy!(losses, state.loss_blob) state.loss = state.layer.weight * sum(losses[1:x_block]) / get_num(pred) # accumulate statistics state.loss_accum = (state.loss_accum*state.n_accum + state.loss*get_num(pred)) / (state.n_accum+get_num(pred)) state.n_accum += get_num(pred) end function backward(backend::GPUBackend, state::HingeLossLayerState, inputs::Vector{Blob}, diffs::Vector{Blob}) const pred = inputs[1] const label = inputs[2] const data_type = eltype(pred) const n = length(pred) const neg_weight :: data_type = -state.layer.weight / get_num(pred) const x_block = div(n + CUDA.THREADS_PER_BLOCK_X-1, CUDA.THREADS_PER_BLOCK_X) if data_type == Float32 kernel = backend.mocha.hinge_loss_backward_float elseif data_type == Float64 kernel = backend.mocha.hinge_loss_backward_double else error("Unsupported data type $data_type") end const gradient1 :: CuPtr = isa(diffs[1], CuTensorBlob) ? diffs[1].ptr : CuPtr() const gradient2 :: CuPtr = isa(diffs[2], CuTensorBlob) ? diffs[2].ptr : CuPtr() CUDA.launch(kernel, (x_block,1), (CUDA.THREADS_PER_BLOCK_X,1), (pred.ptr.p, label.ptr.p, gradient1.p, gradient2.p, n, neg_weight)) end
[ 8818, 2651, 7, 1891, 437, 3712, 33346, 7282, 437, 11, 1181, 3712, 39, 11912, 43, 793, 49925, 9012, 11, 17311, 3712, 38469, 90, 3629, 672, 30072, 198, 220, 2747, 796, 17311, 58, 16, 60, 198, 220, 6167, 796, 17311, 58, 17, 60, 628, 220, 1366, 62, 4906, 796, 1288, 4906, 7, 28764, 8, 198, 220, 299, 796, 4129, 7, 28764, 8, 628, 220, 2124, 62, 9967, 796, 2659, 7, 77, 1343, 29369, 5631, 13, 4221, 15675, 50, 62, 18973, 62, 9148, 11290, 62, 55, 12, 16, 11, 29369, 5631, 13, 4221, 15675, 50, 62, 18973, 62, 9148, 11290, 62, 55, 8, 628, 220, 611, 4129, 7, 5219, 13, 22462, 62, 2436, 672, 8, 1279, 2124, 62, 9967, 198, 220, 220, 220, 4117, 7, 5219, 13, 22462, 62, 2436, 672, 8, 198, 220, 220, 220, 1181, 13, 22462, 62, 2436, 672, 796, 787, 62, 2436, 672, 7, 1891, 437, 11, 1366, 62, 4906, 11, 2124, 62, 9967, 8, 198, 220, 886, 628, 220, 611, 1366, 62, 4906, 6624, 48436, 2624, 198, 220, 220, 220, 9720, 796, 30203, 13, 76, 5374, 64, 13, 722, 68, 62, 22462, 62, 11813, 62, 22468, 198, 220, 2073, 361, 1366, 62, 4906, 6624, 48436, 2414, 198, 220, 220, 220, 9720, 796, 30203, 13, 76, 5374, 64, 13, 722, 68, 62, 22462, 62, 11813, 62, 23352, 198, 220, 2073, 198, 220, 220, 220, 4049, 7203, 3118, 15999, 1366, 2099, 720, 7890, 62, 4906, 4943, 198, 220, 886, 628, 220, 29369, 5631, 13, 35681, 7, 33885, 11, 357, 87, 62, 9967, 11, 16, 828, 357, 43633, 5631, 13, 4221, 15675, 50, 62, 18973, 62, 9148, 11290, 62, 55, 11, 352, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 28764, 13, 20692, 13, 79, 11, 6167, 13, 20692, 13, 79, 11, 299, 11, 1181, 13, 22462, 62, 2436, 672, 13, 20692, 13, 79, 4008, 628, 220, 9089, 796, 15690, 90, 7890, 62, 4906, 92, 7, 7857, 7, 5219, 13, 22462, 62, 2436, 672, 8, 23029, 198, 220, 4866, 0, 7, 22462, 274, 11, 1181, 13, 22462, 62, 2436, 672, 8, 198, 220, 1181, 13, 22462, 796, 1181, 13, 29289, 13, 6551, 1635, 2160, 7, 22462, 274, 58, 16, 25, 87, 62, 9967, 12962, 1220, 651, 62, 22510, 7, 28764, 8, 628, 220, 1303, 29915, 7869, 198, 220, 1181, 13, 22462, 62, 4134, 388, 796, 357, 5219, 13, 22462, 62, 4134, 388, 9, 5219, 13, 77, 62, 4134, 388, 1343, 1181, 13, 22462, 9, 1136, 62, 22510, 7, 28764, 4008, 1220, 357, 5219, 13, 77, 62, 4134, 388, 10, 1136, 62, 22510, 7, 28764, 4008, 198, 220, 1181, 13, 77, 62, 4134, 388, 15853, 651, 62, 22510, 7, 28764, 8, 198, 437, 198, 198, 8818, 19528, 7, 1891, 437, 3712, 33346, 7282, 437, 11, 1181, 3712, 39, 11912, 43, 793, 49925, 9012, 11, 17311, 3712, 38469, 90, 3629, 672, 5512, 814, 82, 3712, 38469, 90, 3629, 672, 30072, 198, 220, 1500, 2747, 796, 17311, 58, 16, 60, 198, 220, 1500, 6167, 796, 17311, 58, 17, 60, 628, 220, 1500, 1366, 62, 4906, 796, 1288, 4906, 7, 28764, 8, 198, 220, 1500, 299, 796, 4129, 7, 28764, 8, 198, 220, 1500, 2469, 62, 6551, 7904, 1366, 62, 4906, 796, 532, 5219, 13, 29289, 13, 6551, 1220, 651, 62, 22510, 7, 28764, 8, 628, 220, 1500, 2124, 62, 9967, 796, 2659, 7, 77, 1343, 29369, 5631, 13, 4221, 15675, 50, 62, 18973, 62, 9148, 11290, 62, 55, 12, 16, 11, 29369, 5631, 13, 4221, 15675, 50, 62, 18973, 62, 9148, 11290, 62, 55, 8, 628, 220, 611, 1366, 62, 4906, 6624, 48436, 2624, 198, 220, 220, 220, 9720, 796, 30203, 13, 76, 5374, 64, 13, 722, 68, 62, 22462, 62, 1891, 904, 62, 22468, 198, 220, 2073, 361, 1366, 62, 4906, 6624, 48436, 2414, 198, 220, 220, 220, 9720, 796, 30203, 13, 76, 5374, 64, 13, 722, 68, 62, 22462, 62, 1891, 904, 62, 23352, 198, 220, 2073, 198, 220, 220, 220, 4049, 7203, 3118, 15999, 1366, 2099, 720, 7890, 62, 4906, 4943, 198, 220, 886, 628, 220, 1500, 31312, 16, 7904, 14496, 46745, 796, 318, 64, 7, 67, 10203, 58, 16, 4357, 14496, 51, 22854, 3629, 672, 8, 5633, 814, 82, 58, 16, 4083, 20692, 1058, 14496, 46745, 3419, 198, 220, 1500, 31312, 17, 7904, 14496, 46745, 796, 318, 64, 7, 67, 10203, 58, 17, 4357, 14496, 51, 22854, 3629, 672, 8, 5633, 814, 82, 58, 17, 4083, 20692, 1058, 14496, 46745, 3419, 628, 220, 29369, 5631, 13, 35681, 7, 33885, 11, 357, 87, 62, 9967, 11, 16, 828, 357, 43633, 5631, 13, 4221, 15675, 50, 62, 18973, 62, 9148, 11290, 62, 55, 11, 16, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 28764, 13, 20692, 13, 79, 11, 6167, 13, 20692, 13, 79, 11, 31312, 16, 13, 79, 11, 31312, 17, 13, 79, 11, 299, 11, 2469, 62, 6551, 4008, 198, 437, 198 ]
2.432234
819
using Oceananigans.Utils: cell_advection_timescale using Oceananigans.TurbulenceClosures: cell_diffusion_timescale """ CFL{D, S} An object for computing the Courant-Freidrichs-Lewy (CFL) number. """ struct CFL{D, S} Δt :: D timescale :: S end """ CFL(Δt [, timescale=Oceananigans.cell_advection_timescale]) Returns an object for computing the Courant-Freidrichs-Lewy (CFL) number associated with time step or `TimeStepWizard` `Δt` and `timescale`. See also `AdvectiveCFL` and `DiffusiveCFL`. """ CFL(Δt) = CFL(Δt, cell_advection_timescale) (c::CFL)(model) = c.Δt / c.timescale(model) """ AdvectiveCFL(Δt) Returns an object for computing the Courant-Freidrichs-Lewy (CFL) number associated with time step or `TimeStepWizard` `Δt` and the time scale for advection across a cell. Example ======= ```julia julia> model = NonhydrostaticModel(grid=RegularRectilinearGrid(size=(16, 16, 16), length=(8, 8, 8))); julia> cfl = AdvectiveCFL(1.0); julia> data(model.velocities.u) .= π; julia> cfl(model) 6.283185307179586 ``` """ AdvectiveCFL(Δt) = CFL(Δt, cell_advection_timescale) """ DiffusiveCFL(Δt) Returns an object for computing the diffusive Courant-Freidrichs-Lewy (CFL) number associated with time step or `TimeStepWizard` `Δt` and the time scale for diffusion across a cell associated with `model.closure`. The maximum diffusive CFL number among viscosity and all tracer diffusivities is returned. Example ======= ```julia julia> model = NonhydrostaticModel(grid=RegularRectilinearGrid(size=(16, 16, 16), length=(1, 1, 1))); julia> dcfl = DiffusiveCFL(0.1); julia> dcfl(model) 2.688e-5 ``` """ DiffusiveCFL(Δt) = CFL(Δt, cell_diffusion_timescale) ##### ##### Accurate CFL via reduction ##### using CUDA, CUDAKernels, KernelAbstractions, Tullio using Oceananigans.Models using Oceananigans.Grids: halo_size using Oceananigans.Operators: Δxᶠᶜᵃ, Δyᶜᶠᵃ, Δzᵃᵃᶠ accurate_cell_advection_timescale(model) = accurate_cell_advection_timescale(model.grid, model.velocities) function accurate_cell_advection_timescale(grid, velocities) Nx, Ny, Nz = size(grid) Hx, Hy, Hz = halo_size(grid) is = 1+Hx:Nx+Hx js = 1+Hy:Ny+Hy ks = 1+Hz:Nz+Hz u = view(velocities.u.data.parent, is, js, ks) v = view(velocities.v.data.parent, is, js, ks) w = view(velocities.w.data.parent, is, js, ks) min_timescale = minimum( @tullio (min) timescale[k] := 1 / ( abs(u[i, j, k]) / Δxᶠᶜᵃ(i, j, k, grid) + abs(v[i, j, k]) / Δyᶜᶠᵃ(i, j, k, grid) + abs(w[i, j, k]) / Δzᵃᵃᶠ(i, j, k, grid)) ) return min_timescale end
[ 3500, 10692, 272, 34090, 13, 18274, 4487, 25, 2685, 62, 324, 303, 596, 62, 22355, 38765, 198, 3500, 10692, 272, 34090, 13, 51, 5945, 32401, 2601, 16091, 25, 2685, 62, 26069, 4241, 62, 22355, 38765, 198, 198, 37811, 198, 220, 220, 220, 45239, 90, 35, 11, 311, 92, 198, 198, 2025, 2134, 329, 14492, 262, 2734, 415, 12, 20366, 312, 7527, 82, 12, 33450, 88, 357, 34, 3697, 8, 1271, 13, 198, 37811, 198, 7249, 45239, 90, 35, 11, 311, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37455, 83, 7904, 360, 198, 220, 220, 220, 1661, 38765, 7904, 311, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 45239, 7, 138, 242, 83, 685, 11, 1661, 38765, 28, 46607, 272, 34090, 13, 3846, 62, 324, 303, 596, 62, 22355, 38765, 12962, 198, 198, 35561, 281, 2134, 329, 14492, 262, 2734, 415, 12, 20366, 312, 7527, 82, 12, 33450, 88, 357, 34, 3697, 8, 1271, 198, 32852, 351, 640, 2239, 393, 4600, 7575, 8600, 54, 8669, 63, 4600, 138, 242, 83, 63, 290, 4600, 22355, 38765, 44646, 198, 198, 6214, 635, 4600, 2782, 303, 14070, 34, 3697, 63, 290, 4600, 28813, 11350, 34, 3697, 44646, 198, 37811, 198, 34, 3697, 7, 138, 242, 83, 8, 796, 45239, 7, 138, 242, 83, 11, 2685, 62, 324, 303, 596, 62, 22355, 38765, 8, 198, 198, 7, 66, 3712, 34, 3697, 5769, 19849, 8, 796, 269, 13, 138, 242, 83, 1220, 269, 13, 22355, 38765, 7, 19849, 8, 198, 198, 37811, 198, 220, 220, 220, 1215, 303, 14070, 34, 3697, 7, 138, 242, 83, 8, 198, 198, 35561, 281, 2134, 329, 14492, 262, 2734, 415, 12, 20366, 312, 7527, 82, 12, 33450, 88, 357, 34, 3697, 8, 1271, 198, 32852, 351, 640, 2239, 393, 4600, 7575, 8600, 54, 8669, 63, 4600, 138, 242, 83, 63, 290, 262, 640, 5046, 198, 1640, 512, 303, 596, 1973, 257, 2685, 13, 198, 198, 16281, 198, 1421, 18604, 198, 15506, 63, 73, 43640, 198, 73, 43640, 29, 2746, 796, 8504, 15511, 305, 12708, 17633, 7, 25928, 28, 40164, 45474, 346, 259, 451, 41339, 7, 7857, 16193, 1433, 11, 1467, 11, 1467, 828, 4129, 16193, 23, 11, 807, 11, 807, 4008, 1776, 198, 198, 73, 43640, 29, 269, 2704, 796, 1215, 303, 14070, 34, 3697, 7, 16, 13, 15, 1776, 198, 198, 73, 43640, 29, 1366, 7, 19849, 13, 626, 420, 871, 13, 84, 8, 764, 28, 18074, 222, 26, 198, 198, 73, 43640, 29, 269, 2704, 7, 19849, 8, 198, 21, 13, 30290, 21652, 22996, 21738, 29796, 198, 15506, 63, 198, 37811, 198, 2782, 303, 14070, 34, 3697, 7, 138, 242, 83, 8, 796, 45239, 7, 138, 242, 83, 11, 2685, 62, 324, 303, 596, 62, 22355, 38765, 8, 198, 198, 37811, 198, 220, 220, 220, 10631, 11350, 34, 3697, 7, 138, 242, 83, 8, 198, 198, 35561, 281, 2134, 329, 14492, 262, 814, 11350, 2734, 415, 12, 20366, 312, 7527, 82, 12, 33450, 88, 357, 34, 3697, 8, 1271, 198, 32852, 351, 640, 2239, 393, 4600, 7575, 8600, 54, 8669, 63, 4600, 138, 242, 83, 63, 290, 262, 640, 5046, 329, 44258, 198, 330, 1214, 257, 2685, 3917, 351, 4600, 19849, 13, 17966, 44646, 198, 198, 464, 5415, 814, 11350, 45239, 1271, 1871, 1490, 6966, 414, 290, 477, 491, 11736, 814, 385, 28720, 318, 198, 7783, 276, 13, 198, 198, 16281, 198, 1421, 18604, 198, 15506, 63, 73, 43640, 198, 73, 43640, 29, 2746, 796, 8504, 15511, 305, 12708, 17633, 7, 25928, 28, 40164, 45474, 346, 259, 451, 41339, 7, 7857, 16193, 1433, 11, 1467, 11, 1467, 828, 4129, 16193, 16, 11, 352, 11, 352, 4008, 1776, 198, 198, 73, 43640, 29, 30736, 2704, 796, 10631, 11350, 34, 3697, 7, 15, 13, 16, 1776, 198, 198, 73, 43640, 29, 30736, 2704, 7, 19849, 8, 198, 17, 13, 34427, 68, 12, 20, 198, 15506, 63, 198, 37811, 198, 28813, 11350, 34, 3697, 7, 138, 242, 83, 8, 796, 45239, 7, 138, 242, 83, 11, 2685, 62, 26069, 4241, 62, 22355, 38765, 8, 198, 198, 4242, 2, 198, 4242, 2, 6366, 15537, 45239, 2884, 7741, 198, 4242, 2, 198, 198, 3500, 29369, 5631, 11, 29369, 5631, 42, 44930, 11, 32169, 23839, 507, 11, 309, 724, 952, 198, 198, 3500, 10692, 272, 34090, 13, 5841, 1424, 198, 3500, 10692, 272, 34090, 13, 8642, 2340, 25, 289, 7335, 62, 7857, 198, 3500, 10692, 272, 34090, 13, 18843, 2024, 25, 37455, 87, 157, 114, 254, 157, 114, 250, 39611, 225, 11, 37455, 88, 157, 114, 250, 157, 114, 254, 39611, 225, 11, 37455, 89, 39611, 225, 39611, 225, 157, 114, 254, 198, 198, 4134, 15537, 62, 3846, 62, 324, 303, 596, 62, 22355, 38765, 7, 19849, 8, 796, 7187, 62, 3846, 62, 324, 303, 596, 62, 22355, 38765, 7, 19849, 13, 25928, 11, 2746, 13, 626, 420, 871, 8, 198, 198, 8818, 7187, 62, 3846, 62, 324, 303, 596, 62, 22355, 38765, 7, 25928, 11, 11555, 420, 871, 8, 198, 220, 220, 220, 399, 87, 11, 17735, 11, 399, 89, 796, 2546, 7, 25928, 8, 198, 220, 220, 220, 367, 87, 11, 6707, 11, 26109, 796, 289, 7335, 62, 7857, 7, 25928, 8, 628, 220, 220, 220, 318, 796, 352, 10, 39, 87, 25, 45, 87, 10, 39, 87, 198, 220, 220, 220, 44804, 796, 352, 10, 21217, 25, 45, 88, 10, 21217, 198, 220, 220, 220, 479, 82, 796, 352, 10, 7399, 25, 45, 89, 10, 7399, 628, 220, 220, 220, 334, 796, 1570, 7, 626, 420, 871, 13, 84, 13, 7890, 13, 8000, 11, 318, 11, 44804, 11, 479, 82, 8, 198, 220, 220, 220, 410, 796, 1570, 7, 626, 420, 871, 13, 85, 13, 7890, 13, 8000, 11, 318, 11, 44804, 11, 479, 82, 8, 198, 220, 220, 220, 266, 796, 1570, 7, 626, 420, 871, 13, 86, 13, 7890, 13, 8000, 11, 318, 11, 44804, 11, 479, 82, 8, 628, 220, 220, 220, 949, 62, 22355, 38765, 796, 5288, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 83, 724, 952, 357, 1084, 8, 1661, 38765, 58, 74, 60, 19039, 352, 1220, 357, 220, 2352, 7, 84, 58, 72, 11, 474, 11, 479, 12962, 1220, 37455, 87, 157, 114, 254, 157, 114, 250, 39611, 225, 7, 72, 11, 474, 11, 479, 11, 10706, 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, 220, 220, 220, 220, 220, 220, 220, 220, 1343, 2352, 7, 85, 58, 72, 11, 474, 11, 479, 12962, 1220, 37455, 88, 157, 114, 250, 157, 114, 254, 39611, 225, 7, 72, 11, 474, 11, 479, 11, 10706, 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, 220, 220, 220, 220, 220, 220, 220, 220, 1343, 2352, 7, 86, 58, 72, 11, 474, 11, 479, 12962, 1220, 37455, 89, 39611, 225, 39611, 225, 157, 114, 254, 7, 72, 11, 474, 11, 479, 11, 10706, 4008, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 1441, 949, 62, 22355, 38765, 198, 437, 198 ]
2.215589
1,206
using Test, Sym @testset "tracing" begin end @testset "match" begin end @testset "simplification" begin end
[ 3500, 6208, 11, 15845, 198, 198, 31, 9288, 2617, 366, 2213, 4092, 1, 2221, 198, 437, 198, 198, 31, 9288, 2617, 366, 15699, 1, 2221, 198, 437, 198, 198, 31, 9288, 2617, 366, 14323, 489, 2649, 1, 2221, 198, 437, 198 ]
2.707317
41
# Use baremodule to shave off a few KB from the serialized `.ji` file baremodule SuiteSparse_LBT_jll using Base using Base: UUID import JLLWrappers JLLWrappers.@generate_main_file_header("SuiteSparse_LBT") JLLWrappers.@generate_main_file("SuiteSparse_LBT", UUID("8a7bcfce-81ee-5a07-a07c-c8520ac69669")) end # module SuiteSparse_LBT_jll
[ 2, 5765, 6247, 21412, 284, 34494, 572, 257, 1178, 14204, 422, 262, 11389, 1143, 4600, 13, 7285, 63, 2393, 198, 49382, 21412, 26264, 50, 29572, 62, 43, 19313, 62, 73, 297, 198, 3500, 7308, 198, 3500, 7308, 25, 471, 27586, 198, 11748, 449, 3069, 36918, 11799, 198, 198, 41, 3069, 36918, 11799, 13, 31, 8612, 378, 62, 12417, 62, 7753, 62, 25677, 7203, 5606, 578, 50, 29572, 62, 43, 19313, 4943, 198, 41, 3069, 36918, 11799, 13, 31, 8612, 378, 62, 12417, 62, 7753, 7203, 5606, 578, 50, 29572, 62, 43, 19313, 1600, 471, 27586, 7203, 23, 64, 22, 65, 12993, 344, 12, 6659, 1453, 12, 20, 64, 2998, 12, 64, 2998, 66, 12, 66, 5332, 1238, 330, 3388, 36657, 48774, 198, 437, 220, 1303, 8265, 26264, 50, 29572, 62, 43, 19313, 62, 73, 297, 198 ]
2.485294
136
# For slope correction on contact frequencies: const INCIDENCE_GROUPS = 360 #number of τ groups over [0, pi/2] const MAX_ITER_τ = 5 # (Schleppi, 2007) says "after a few cycles" const SLOPE_TOL = 1e-3 #fallback # WHY?? #gapfraction(pixs, thresh) = mean(pixs .> thresh) #in general specialize on type of input array function gapfraction(pixs::AbstractArray, thresh) threshT = convert(eltype(pixs), thresh) gapfrsum = 0 for pix in pixs gapfrsum += pix > threshT end return(gapfrsum / length(pixs)) end function loggapfraction(pixs, thresh) gf = gapfraction(pixs, thresh) gf == zero(gf) && return(log(1/length(pixs))) log(gf) end "Create rings with similar amount of pixels per ring. Outputs the edges and weigted midpoints of the rings." function weightedrings(polim::PolarImage, θ1::Real, θ2::Real, N::Integer) fθρ = polim.cl.fθρ # create edges for θ rings with similar number of pixels each θedges = map(polim.cl.fρθ, sqrt.(range(fθρ(θ1)^2, stop=fθρ(θ2)^2, length=N+1))) #fix possible floating point roundoff errors θedges[1] = max(θedges[1], θ1) θedges[end] = min(θedges[end], θ2) # weighted average midpoints θdouble = map(polim.cl.fρθ, sqrt.(range(fθρ(θ1)^2, stop=(fθρ(θ2))^2, length=2N+1))) θmid = θdouble[2:2:2N] return θedges, θmid end weightedrings(polim::PolarImage, N::Integer) = weightedrings(polim, 0, pi/2, N) function contactfreqs(polim::PolarImage, θ1::Real, θ2::Real, N::Integer, thresh; Nτ=INCIDENCE_GROUPS, max_iter=MAX_ITER_τ, tol=SLOPE_TOL) checkθ1θ2(θ1,θ2) θedges, θmid = weightedrings(polim, θ1, θ2, N) K = zeros(N) ## WITHOUT SLOPE ## if !hasslope(polim) for i = 1:N logT = loggapfraction(pixels(polim, θedges[i], θedges[i+1]), thresh) K[i] = -logT * cos(θmid[i]) end return θedges, θmid, K end ## WITH SLOPE ## Nτ = max(Nτ, N) #at least as many incidence groups as zenith groups required for i = 1:N pixs = pixels(polim, θedges[i], θedges[i+1]) ind_first, ind_last = firstlastind(polim, θedges[i], θedges[i+1]) cosτ = view(polim.slope.cosτsort, ind_first:ind_last) K[i] = contactfreqs_iterate(pixs, cosτ, thresh, θmid[i]; Nτ=Nτ, max_iter=max_iter, tol=tol) # Method España et al 2007. Nϕ different here! # adj = slope_adj(polim.slope, θmid[i], ϕv) # # we divide each ring in Nϕ azimuth segments, calculate the slope # # adjustment and loggapfraction per segment, then take average weighted # # by segment length. # segm = segments(polim, θedges[i], θedges[i+1], Nϕ) # lengths = Int[length(seg) for seg in segm] # T = Float64[gapfraction(seg, thresh) for seg in segm] # nz = find(T) # avoid 0.^(negative float) # if isempty(nz) #to avoid infinity with log, assume at least 1 sky pixel # Tadj = 1 / sum(lengths) # else # Tadj = sum(T[nz].^(1./adj[nz]) .* lengths[nz])/sum(lengths) # end # K[i] = -log(Tadj) * cos(θmid[i]) end θedges, θmid, K end # Method Schleppi et al 2007 function contactfreqs_iterate(pixs::AbstractArray, cosτ::AbstractArray, thresh, θ::Float64; Nτ=INCIDENCE_GROUPS, max_iter=MAX_ITER_τ, tol=SLOPE_TOL) τmax = π/2 τ = StatsBase.midpoints(range(0, stop=τmax, length=Nτ+1)) Aθτ = fasthist(acos.(cosτ), -1/Nτ : τmax/Nτ : τmax) iter = 0 # initially start with contact frequency K from whole θ ring logT = loggapfraction(pixs, thresh) K = - logT * cos(θ) while iter < max_iter iter += 1 sum(Aθτ) == 0 && break Tnew = sum(Aθτ .* exp.(-K ./ cos.(τ))) / sum(Aθτ) logTnew = log(Tnew) abs(logTnew / logT - 1) < tol && break K *= logTnew / logT logT = logTnew end K end
[ 2, 1114, 22638, 17137, 319, 2800, 19998, 25, 198, 9979, 19387, 2389, 18310, 62, 10761, 2606, 3705, 796, 11470, 1303, 17618, 286, 46651, 2628, 625, 685, 15, 11, 31028, 14, 17, 60, 198, 9979, 25882, 62, 2043, 1137, 62, 32830, 796, 642, 1303, 357, 14874, 293, 381, 72, 11, 4343, 8, 1139, 366, 8499, 257, 1178, 16006, 1, 198, 9979, 12419, 32135, 62, 51, 3535, 796, 352, 68, 12, 18, 198, 198, 2, 7207, 1891, 198, 2, 44463, 3548, 198, 2, 43554, 69, 7861, 7, 79, 844, 82, 11, 294, 3447, 8, 796, 1612, 7, 79, 844, 82, 764, 29, 294, 3447, 8, 198, 198, 2, 259, 2276, 39868, 319, 2099, 286, 5128, 7177, 198, 8818, 7625, 69, 7861, 7, 79, 844, 82, 3712, 23839, 19182, 11, 294, 3447, 8, 198, 220, 220, 220, 294, 3447, 51, 796, 10385, 7, 417, 4906, 7, 79, 844, 82, 828, 294, 3447, 8, 198, 220, 220, 220, 7625, 69, 3808, 388, 796, 657, 198, 220, 220, 220, 329, 279, 844, 287, 279, 844, 82, 198, 220, 220, 220, 220, 220, 220, 220, 7625, 69, 3808, 388, 15853, 279, 844, 1875, 294, 3447, 51, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 7, 43554, 69, 3808, 388, 1220, 4129, 7, 79, 844, 82, 4008, 198, 437, 198, 198, 8818, 2604, 43554, 69, 7861, 7, 79, 844, 82, 11, 294, 3447, 8, 198, 220, 220, 220, 308, 69, 796, 7625, 69, 7861, 7, 79, 844, 82, 11, 294, 3447, 8, 198, 220, 220, 220, 308, 69, 6624, 6632, 7, 70, 69, 8, 11405, 1441, 7, 6404, 7, 16, 14, 13664, 7, 79, 844, 82, 22305, 198, 220, 220, 220, 2604, 7, 70, 69, 8, 198, 437, 198, 198, 1, 16447, 13917, 351, 2092, 2033, 286, 17848, 583, 5858, 13, 25235, 82, 262, 13015, 290, 356, 328, 1513, 3095, 13033, 286, 262, 13917, 526, 198, 8818, 26356, 33173, 7, 16104, 320, 3712, 47, 6192, 5159, 11, 7377, 116, 16, 3712, 15633, 11, 7377, 116, 17, 3712, 15633, 11, 399, 3712, 46541, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 277, 138, 116, 33643, 796, 755, 320, 13, 565, 13, 69, 138, 116, 33643, 198, 220, 220, 220, 1303, 2251, 13015, 329, 7377, 116, 13917, 351, 2092, 1271, 286, 17848, 1123, 198, 220, 220, 220, 7377, 116, 276, 3212, 796, 3975, 7, 16104, 320, 13, 565, 13, 69, 33643, 138, 116, 11, 19862, 17034, 12195, 9521, 7, 69, 138, 116, 33643, 7, 138, 116, 16, 8, 61, 17, 11, 2245, 28, 69, 138, 116, 33643, 7, 138, 116, 17, 8, 61, 17, 11, 4129, 28, 45, 10, 16, 22305, 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, 198, 220, 220, 220, 1303, 13049, 1744, 12462, 966, 2835, 2364, 8563, 198, 220, 220, 220, 7377, 116, 276, 3212, 58, 16, 60, 796, 3509, 7, 138, 116, 276, 3212, 58, 16, 4357, 7377, 116, 16, 8, 220, 198, 220, 220, 220, 7377, 116, 276, 3212, 58, 437, 60, 796, 949, 7, 138, 116, 276, 3212, 58, 437, 4357, 7377, 116, 17, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 26356, 2811, 3095, 13033, 198, 220, 220, 220, 7377, 116, 23352, 796, 3975, 7, 16104, 320, 13, 565, 13, 69, 33643, 138, 116, 11, 19862, 17034, 12195, 9521, 7, 69, 138, 116, 33643, 7, 138, 116, 16, 8, 61, 17, 11, 2245, 16193, 69, 138, 116, 33643, 7, 138, 116, 17, 4008, 61, 17, 11, 4129, 28, 17, 45, 10, 16, 22305, 198, 220, 220, 220, 7377, 116, 13602, 796, 7377, 116, 23352, 58, 17, 25, 17, 25, 17, 45, 60, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1441, 7377, 116, 276, 3212, 11, 7377, 116, 13602, 198, 437, 198, 198, 6551, 276, 33173, 7, 16104, 320, 3712, 47, 6192, 5159, 11, 399, 3712, 46541, 8, 796, 26356, 33173, 7, 16104, 320, 11, 657, 11, 31028, 14, 17, 11, 399, 8, 198, 198, 8818, 2800, 19503, 48382, 7, 16104, 320, 3712, 47, 6192, 5159, 11, 7377, 116, 16, 3712, 15633, 11, 7377, 116, 17, 3712, 15633, 11, 399, 3712, 46541, 11, 294, 3447, 26, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 399, 32830, 28, 30158, 2389, 18310, 62, 10761, 2606, 3705, 11, 3509, 62, 2676, 28, 22921, 62, 2043, 1137, 62, 32830, 11, 284, 75, 28, 8634, 32135, 62, 51, 3535, 8, 198, 220, 220, 220, 2198, 138, 116, 16, 138, 116, 17, 7, 138, 116, 16, 11, 138, 116, 17, 8, 198, 220, 220, 220, 7377, 116, 276, 3212, 11, 7377, 116, 13602, 796, 26356, 33173, 7, 16104, 320, 11, 7377, 116, 16, 11, 7377, 116, 17, 11, 399, 8, 220, 220, 220, 220, 198, 220, 220, 220, 509, 796, 1976, 27498, 7, 45, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 22492, 42881, 12419, 32135, 22492, 198, 220, 220, 220, 611, 5145, 71, 562, 75, 3008, 7, 16104, 320, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 796, 352, 25, 45, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2604, 51, 796, 2604, 43554, 69, 7861, 7, 79, 14810, 7, 16104, 320, 11, 7377, 116, 276, 3212, 58, 72, 4357, 7377, 116, 276, 3212, 58, 72, 10, 16, 46570, 294, 3447, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 509, 58, 72, 60, 796, 532, 6404, 51, 1635, 8615, 7, 138, 116, 13602, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 7377, 116, 276, 3212, 11, 7377, 116, 13602, 11, 509, 198, 220, 220, 220, 886, 628, 220, 220, 220, 22492, 13315, 220, 12419, 32135, 22492, 198, 220, 220, 220, 399, 32830, 796, 3509, 7, 45, 32830, 11, 399, 8, 1303, 265, 1551, 355, 867, 18349, 2628, 355, 1976, 268, 342, 2628, 2672, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 45, 198, 220, 220, 220, 220, 220, 220, 220, 279, 844, 82, 796, 17848, 7, 16104, 320, 11, 7377, 116, 276, 3212, 58, 72, 4357, 7377, 116, 276, 3212, 58, 72, 10, 16, 12962, 198, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 773, 62, 11085, 11, 773, 62, 12957, 796, 717, 12957, 521, 7, 16104, 320, 11, 7377, 116, 276, 3212, 58, 72, 4357, 7377, 116, 276, 3212, 58, 72, 10, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 8615, 32830, 796, 1570, 7, 16104, 320, 13, 6649, 3008, 13, 6966, 32830, 30619, 11, 773, 62, 11085, 25, 521, 62, 12957, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 509, 58, 72, 60, 796, 2800, 19503, 48382, 62, 2676, 378, 7, 79, 844, 82, 11, 8615, 32830, 11, 294, 3447, 11, 7377, 116, 13602, 58, 72, 11208, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 399, 32830, 28, 45, 32830, 11, 3509, 62, 2676, 28, 9806, 62, 2676, 11, 284, 75, 28, 83, 349, 8, 198, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 11789, 20386, 64, 30644, 2123, 435, 4343, 13, 399, 139, 243, 1180, 994, 0, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 9224, 796, 22638, 62, 41255, 7, 16104, 320, 13, 6649, 3008, 11, 7377, 116, 13602, 58, 72, 4357, 18074, 243, 85, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1303, 356, 14083, 1123, 5858, 287, 399, 139, 243, 35560, 320, 1071, 220, 17894, 11, 15284, 262, 22638, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1303, 15068, 290, 2604, 43554, 69, 7861, 583, 10618, 11, 788, 1011, 2811, 26356, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1303, 416, 10618, 4129, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 384, 39870, 796, 17894, 7, 16104, 320, 11, 7377, 116, 276, 3212, 58, 72, 4357, 7377, 116, 276, 3212, 58, 72, 10, 16, 4357, 399, 139, 243, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 20428, 796, 2558, 58, 13664, 7, 325, 70, 8, 329, 384, 70, 287, 384, 39870, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 309, 796, 48436, 2414, 58, 43554, 69, 7861, 7, 325, 70, 11, 294, 3447, 8, 329, 384, 70, 287, 384, 39870, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 299, 89, 796, 1064, 7, 51, 8, 1303, 3368, 657, 13, 61, 7, 31591, 12178, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 318, 28920, 7, 27305, 8, 1303, 1462, 3368, 37174, 351, 2604, 11, 7048, 379, 1551, 352, 6766, 17465, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 220, 309, 41255, 796, 352, 1220, 2160, 7, 13664, 82, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 220, 309, 41255, 796, 2160, 7, 51, 58, 27305, 4083, 61, 7, 16, 19571, 41255, 58, 27305, 12962, 764, 9, 20428, 58, 27305, 12962, 14, 16345, 7, 13664, 82, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 886, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 509, 58, 72, 60, 796, 532, 6404, 7, 51, 41255, 8, 1635, 8615, 7, 138, 116, 13602, 58, 72, 12962, 198, 220, 220, 198, 220, 220, 220, 886, 198, 220, 220, 220, 7377, 116, 276, 3212, 11, 7377, 116, 13602, 11, 509, 198, 437, 198, 2, 11789, 3059, 293, 381, 72, 2123, 435, 4343, 198, 8818, 2800, 19503, 48382, 62, 2676, 378, 7, 79, 844, 82, 3712, 23839, 19182, 11, 8615, 32830, 3712, 23839, 19182, 11, 294, 3447, 11, 7377, 116, 3712, 43879, 2414, 26, 198, 220, 220, 220, 220, 220, 220, 220, 399, 32830, 28, 30158, 2389, 18310, 62, 10761, 2606, 3705, 11, 3509, 62, 2676, 28, 22921, 62, 2043, 1137, 62, 32830, 11, 284, 75, 28, 8634, 32135, 62, 51, 3535, 8, 628, 220, 220, 220, 46651, 9806, 796, 18074, 222, 14, 17, 198, 220, 220, 220, 46651, 796, 20595, 14881, 13, 13602, 13033, 7, 9521, 7, 15, 11, 2245, 28, 32830, 9806, 11, 4129, 28, 45, 32830, 10, 16, 4008, 220, 220, 220, 220, 198, 220, 220, 220, 317, 138, 116, 32830, 796, 277, 292, 400, 396, 7, 330, 418, 12195, 6966, 32830, 828, 532, 16, 14, 45, 32830, 1058, 46651, 9806, 14, 45, 32830, 1058, 46651, 9806, 8, 628, 220, 220, 220, 11629, 796, 657, 198, 220, 220, 220, 1303, 7317, 923, 351, 2800, 8373, 509, 422, 2187, 7377, 116, 5858, 220, 198, 220, 220, 220, 2604, 51, 796, 2604, 43554, 69, 7861, 7, 79, 844, 82, 11, 294, 3447, 8, 198, 220, 220, 220, 509, 796, 532, 2604, 51, 1635, 8615, 7, 138, 116, 8, 198, 220, 220, 220, 981, 11629, 1279, 3509, 62, 2676, 198, 220, 220, 220, 220, 220, 220, 220, 11629, 15853, 352, 220, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 7, 32, 138, 116, 32830, 8, 6624, 657, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 309, 3605, 796, 2160, 7, 32, 138, 116, 32830, 764, 9, 1033, 12195, 12, 42, 24457, 8615, 12195, 32830, 22305, 1220, 2160, 7, 32, 138, 116, 32830, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2604, 51, 3605, 796, 2604, 7, 51, 3605, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2352, 7, 6404, 51, 3605, 1220, 2604, 51, 532, 352, 8, 1279, 284, 75, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 509, 1635, 28, 2604, 51, 3605, 1220, 2604, 51, 198, 220, 220, 220, 220, 220, 220, 220, 2604, 51, 796, 2604, 51, 3605, 198, 220, 220, 220, 886, 198, 220, 220, 220, 509, 198, 437, 628, 198 ]
1.96345
2,052
@testset "De Bruijn Neighbors" begin @test collect(neighbors(DNAKmer("ACG"))) == map(DNAKmer, ["CGA", "CGC", "CGG", "CGT"]) @test collect(neighbors(DNAKmer("GGGG"))) == map(DNAKmer, ["GGGA", "GGGC", "GGGG", "GGGT"]) @test collect(neighbors(RNAKmer("ACG"))) == map(RNAKmer, ["CGA", "CGC", "CGG", "CGU"]) @test collect(neighbors(RNAKmer("GGGG"))) == map(RNAKmer, ["GGGA", "GGGC", "GGGG", "GGGU"]) end
[ 31, 9288, 2617, 366, 5005, 8274, 48848, 22505, 32289, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2824, 7, 710, 394, 32289, 7, 28886, 42, 647, 7203, 2246, 38, 1, 22305, 220, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 3975, 7, 28886, 42, 647, 11, 14631, 34, 9273, 1600, 220, 366, 34, 15916, 1600, 220, 366, 34, 11190, 1600, 220, 366, 34, 19555, 8973, 8, 198, 220, 220, 220, 2488, 9288, 2824, 7, 710, 394, 32289, 7, 28886, 42, 647, 7203, 25611, 1, 22305, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 3975, 7, 28886, 42, 647, 11, 14631, 11190, 9273, 1600, 366, 11190, 15916, 1600, 366, 25611, 1600, 366, 11190, 19555, 8973, 8, 198, 220, 220, 220, 2488, 9288, 2824, 7, 710, 394, 32289, 7, 27204, 42, 647, 7203, 2246, 38, 1, 22305, 220, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 3975, 7, 27204, 42, 647, 11, 14631, 34, 9273, 1600, 220, 366, 34, 15916, 1600, 220, 366, 34, 11190, 1600, 220, 366, 34, 38022, 8973, 8, 198, 220, 220, 220, 2488, 9288, 2824, 7, 710, 394, 32289, 7, 27204, 42, 647, 7203, 25611, 1, 22305, 6624, 198, 220, 220, 220, 220, 220, 220, 220, 3975, 7, 27204, 42, 647, 11, 14631, 11190, 9273, 1600, 366, 11190, 15916, 1600, 366, 25611, 1600, 366, 11190, 38022, 8973, 8, 198, 437, 198 ]
2.013274
226
abstract type Velocity end struct NoVelocity<:Velocity end struct GaussianVelocity<:Velocity T::Float64 seed::Int64 function GaussianVelocity( T::Float64, seed::Int64) new(T::Float64, seed::Int64) end end struct ZeroVelocity<:Velocity end
[ 397, 8709, 2099, 43137, 886, 198, 198, 7249, 1400, 46261, 11683, 27, 25, 46261, 11683, 886, 198, 198, 7249, 12822, 31562, 46261, 11683, 27, 25, 46261, 11683, 198, 220, 220, 220, 309, 3712, 43879, 2414, 198, 220, 220, 220, 9403, 3712, 5317, 2414, 198, 220, 220, 220, 2163, 12822, 31562, 46261, 11683, 7, 220, 309, 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, 220, 220, 220, 220, 220, 220, 220, 220, 9403, 3712, 5317, 2414, 8, 198, 220, 220, 220, 220, 220, 220, 220, 649, 7, 51, 3712, 43879, 2414, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9403, 3712, 5317, 2414, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 7249, 12169, 46261, 11683, 27, 25, 46261, 11683, 886 ]
2.123288
146
isalpha(c) = isascii(c) && (islowercase(c) || isuppercase(c)) isalnum(c) = isascii(c) && (islowercase(c) || isuppercase(c) || isdigit(c)) """ html_entities(ts::TokenBuffer; remove_illegal=true) Removes entities from text by converting them to their corresponding unicode character. `remove_illegal::Bool` If `true`, entities that can't be converted are removed. Otherwise, entities that can't be converted are kept "as is". HTML entity can be named or encoded in Decimal/Hex form - Named_entity : "&Delta;" => "Δ", - Decimal : "&#916;" => "Δ", - Hex : "&#x394;" => "Δ", However for bytes (hex) 80-9f are interpreted in Windows-1252 """ function html_entity(ts::TokenBuffer, remove_illegal=true) (ts.idx + 1 > length(ts.input) || ts.input[ts.idx] != '&' ) && return false if ts.input[ts.idx + 1] != '#' # Entity is of the type "&Delta;" => "Δ" i = ts.idx + 1 while i <= length(ts.input) && isalnum(ts[i]) i += 1 end (i > length(ts.input) || ts[i] != ';') && return false entity = lookupname(HTML_Entities.default, String(ts[ts.idx+1:i-1])) isempty(entity) && !remove_illegal && return false !isempty(entity) && push!(ts.buffer, entity[1]) ts.idx = i + 1 return true else number = -1 i = ts.idx + 2 if ts.input[ts.idx + 2] != 'x' # Entity is of the type "&#916;" => "Δ" while i <= length(ts.input) && isdigit(ts[i]) i += 1 end (i > length(ts.input) || ts[i] != ';') && return false if ((ts.idx + 2 ) == i) !remove_illegal && return false ts.idx +=3 return true end (number = parse(Int, String(ts[ts.idx+2:i-1]), base=10)) else # Entity is of the type "&#x394;" => "Δ" i += 1 base16letters = ('a', 'b', 'c', 'd', 'e', 'f') while i <= length(ts.input) && (isdigit(ts[i]) || ts[i] in base16letters) i += 1 end (i > length(ts.input) || ts[i] != ';') && return false if (ts.idx + 3) == i !remove_illegal && return false ts.idx += 4 return true end number = parse(Int, String(ts[ts.idx+3:i-1]), base=16) end windows_1252_chars = ('€', '\u81', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', '\u8d','Ž', '\u8f', '\u90', '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', '\u9d', 'ž', 'Ÿ') if 0x80 <= number <= 0x9F push!(ts.buffer, windows_1252_chars[number - 127]) ts.idx = i + 1 return true end if (number <= 0 || !Unicode.isassigned(number)) !remove_illegal && return false ts.idx = i + 1 else push!(ts.buffer, Char(number)) ts.idx = i + 1 end end return true end """ lookbehind(ts::TokenBuffer) Checks if the beginning of the detected handle is preceded by alphanumeric or special characters like('_', '!', '@', '#', '\$', '%', '&', '*') """ function lookbehind(ts::TokenBuffer, match_pattern = ('_', '!', '@', '#', '$', '%', '&', '*')) ts.idx == 1 && return false c = ts[ts.idx - 1] ( islowercase(c) || isdigit(c) || isuppercase(c) || c ∈ match_pattern ) && return true return false end """ strip_twitter_handle(ts::TokenBuffer) For removing Twitter Handles. If it detects a twitter handle, then it jumps to makes the index of TokenBuffer to the desired location skipping the handle. """ function strip_twitter_handle(ts) (ts.idx + 2 > length(ts.input) || ts.input[ts.idx] != '@' ) && return false lookbehind(ts) && return false i = ts.idx + 1 while i <= length(ts.input) && (isalnum(ts[i]) || ts[i] == '_') i += 1 end (i <= length(ts.input)) && (i == ts.idx + 1 || ts[i] == '@') && return false ts.idx = i return true end """ reduce_all_repeated(ts::TokenBuffer) For handling repeated characters like "helloooooo" -> :hellooo". """ function reduce_all_repeated(ts) ts.idx + 4 > length(ts.input) && return false (ts[ts.idx] == '\n' || ts[ts.idx] != ts[ts.idx + 1] || ts[ts.idx] != ts[ts.idx + 2]) && return false i = ts.idx + 3 while i <= length(ts.input) && ts[i] == ts[ts.idx] i += 1 end for j in 1:3 push!(ts.buffer, ts[ts.idx]) end ts.idx = i return true end """ safe_text(ts::TokenBuffer) This feature covers up for the characters where the main tokenizing function lacks For example - "........" -> "..." and this is detected by the key tokenizer as a single token of "..." """ function safe_text(ts) ts.idx + 4 > length(ts.input) && return false (isalnum(ts[ts.idx]) || ts[ts.idx] != ts[ts.idx + 1] || ts[ts.idx] != ts[ts.idx + 2] ) && return false i = ts.idx + 3 while i <= length(ts.input) && ts[i] == ts[ts.idx] i += 1 end for j in 1:3 push!(ts.buffer, ts[ts.idx]) end ts.idx = i return true end """ replace_html_entities(input::AbstractString, remove_illegal=true) `input::AbstractString` The string on which HTML entities need to be replaced `remove_illegal::Bool` If `true`, entities that can't be converted are removed. Otherwise, entities that can't be converted are kept "as is". """ function replace_html_entities(input::AbstractString; remove_illegal=true) ts = TokenBuffer(input) isempty(input) && return "" while !isdone(ts) html_entity(ts, remove_illegal) || character(ts) end return ts.tokens[1] end """ function pre_process(input::AbstractString, strip_handle::Bool, reduce_len::Bool) This function processes on the input string and optionally remove twitter handles and reduce length of repeated characters (like "waaaaay" -> "waaay") and for elements like ".........?????? -> "...???" to increase the performance of the key tokenizer. """ function pre_process(input::AbstractString, strip_handle::Bool, reduce_len::Bool) ts = TokenBuffer(input) isempty(input) && return "" while !isdone(ts) (strip_handle && strip_twitter_handle(ts)) || # Remove username handles (reduce_len && reduce_all_repeated(ts)) || # Reduce Lengthening safe_text(ts) || # Shorten some sequences of characters character(ts) end return ts.tokens[1] end function flushaboutindex!(ts::TokenBuffer, uptoidx) flush!(ts, String(ts[ts.idx:uptoidx])) ts.idx = uptoidx + 1 return true end const forehead = ('>', '<') const eyes = (':', ';', '=', '8') const nose = ('-', 'o', '*', '\'') const mouth = (')', ']', '}', '(', '[', '{', 'd', 'D', 'p', 'P', '\\', '/', ':', '@', '|') """ function emoticons(ts::TokenBuffer) This function checks for the emoticons for the type `{forehead}{eyes}{nose}{mouth} explicitely in this order, with {forehead} and {nose} being optional Example: - `:)`, `;p` # (without nose and forehead) - `:-)`, `:-p` # (with nose) - `>:)` # (with forehead) - `>:-)` # (with forehead and nose) Also checks for `<3` emoji """ function emoticons(ts) ts.idx + 1 > length(ts.input) && return false idx = ts.idx ts[idx] ∈ eyes && ( (ts[idx + 1] ∈ mouth && return flushaboutindex!(ts, idx + 1)) || (idx + 2 <= length(ts.input) && ts[idx + 1] ∈ nose && ts[idx + 2] ∈ mouth && return flushaboutindex!(ts, idx + 2)) || return false ) idx + 2 <= length(ts.input) && ts[idx] ∈ forehead && ts[idx + 1] ∈ eyes && ( (ts[idx + 2] ∈ mouth && return flushaboutindex!(ts, idx + 2)) || (idx + 3 <= length(ts.input) && ts[idx + 2] ∈ nose && ts[idx + 3] ∈ mouth && return flushaboutindex!(ts, idx + 3)) || return false ) ts[idx] == '<' && ts[idx + 1] == '3' && return flushaboutindex!(ts, idx + 1) return false end """ function emoticonsreverse(ts::TokenBuffer) This function checks for the emoticons in reverse order to those of `function emoticons` explicitely in this order `{mouth}{nose}{eyes}{forehead}`, with {forehead} and {nose} being optional Example: - `(:`, `d:` # (without nose and forehead) - `(-:`, `d-:` # (with nose) - (:<` # (with forehead) - `(-:<` # (with forehead and nose) """ function emoticonsreverse(ts) ts.idx + 1 > length(ts.input) && return false idx = ts.idx ts[idx] ∈ mouth || return false idx += 1 if ts[idx] ∈ nose idx >= length(ts.input) && return false idx += 1 end ts[idx] ∈ eyes|| return false idx += 1 idx <= length(ts.input) && ts[idx] ∈ forehead && return flushaboutindex!(ts, idx) return flushaboutindex!(ts, idx -1 ) end """ htmltags(ts::TokenBuffer) Matches the HTML tags which contain no space inside the tags. """ function htmltags(ts) (ts.idx + 2 > length(ts.input) || ts[ts.idx] != '<' || ts[ts.idx + 1] == '>') && return false i = ts.idx while i <= length(ts.input) && ts[i] != '>' isspace(ts[i]) && return false i += 1 end i > length(ts.input) && return false return flushaboutindex!(ts, i) end """ arrowsascii(ts::TokenBuffer) Matches the ascii arrows - made up of arrows like `<--` and `--->` """ function arrowsascii(ts) ( ts.idx + 1 > length(ts.input) || ( (ts[ts.idx] != '<' || ts[ts.idx + 1] != '-' ) && (ts[ts.idx] != '-') ) ) && return false i = ts.idx if ts[i] == '<' i += 1 while i <= length(ts.input) && ts[i] == '-' i += 1 end return flushaboutindex!(ts, i - 1) end while i <= length(ts.input) && ts[i] == '-' i += 1 end ts[ts.idx] == '>' && return flushaboutindex!(ts, i) end # TODO: integrate this with words_including_apostrophe_dashes() to reduce time taken. # Checks the string till non word char appears, so takes relatively more time. """ emailaddresses(ts) Matches for email addresses. """ function emailaddresses(ts) ts.idx + 4 > length(ts.input) && return false i = ts.idx while i + 3 <= length(ts.input) && (isalnum(ts[i]) || ts[i] ∈ ('.', '+', '-', '_')) i += 1 end (i == ts.idx || ts[i] != '@') && return false i += 1 j = i while i + 2 <= length(ts.input) && (isalnum(ts[i]) || ts[i] == '-' || ts == '_') i += 1 end (j == i || ts[i] != '.') && return false j = i last_dot = i i += 1 while i <= length(ts.input) && (isalnum(ts[i]) || ts[i] == '-' || ts == '_') if i + 1 < length(ts.input) && ts[i + 1] == '.' i += 1 last_dot = i end i += 1 end i > last_dot + 1 && i > j + 2 && return flushaboutindex!(ts, i - 1) return false end """ twitterhashtags(ts) Matches for twitter hashtags. """ function twitterhashtags(ts) (ts.idx + 2 > length(ts.input) || ts[ts.idx] != '#' || ts[ts.idx + 1] ∈ ('\'', '-')) && return false i = ts.idx + 1 last_word_char = i while i <= length(ts.input) && (isalnum(ts[i]) || ts[i] ∈ ('_', '\'', '-')) if ts[i] ∉ ('\'', '-') last_word_char = i end i += 1 end last_word_char >= ts.idx + 2 && ts[ts.idx + 1] ∉ ('\'', '-') && ts[last_word_char] ∉ ('\'', '-') && return flushaboutindex!(ts, last_word_char) return false end """ twitterusername(ts) Matches for twitter usernames. """ function twitterusername(ts) (ts.idx + 1 > length(ts.input) || ts[ts.idx] != '@' ) && return false i = ts.idx + 1 while i <= length(ts.input) && (isalnum(ts[i]) || ts[i] == '_') i += 1 end i > ts.idx + 1 && return flushaboutindex!(ts, i - 1) return false end """ ellipsis_dots(ts) Matches for ellipsis and dots, ignoring the spaces, tabs, newlines between them. """ function ellipsis_dots(ts) (ts.idx + 1 > length(ts.input) || ts[ts.idx] != '.' ) && return false i = ts.idx + 1 last_dot = ts.idx while i <= length(ts.input) && (isspace(ts[i]) || ts[i] == '.') if ts[i] == '.' last_dot = i end i += 1 end last_dot != ts.idx && return flushaboutindex!(ts, last_dot) return false end """ words_including_apostrophe_dashes(ts) TokenBuffer matcher for words that may or maynot have dashes or apostrophe in it. """ function words_including_apostrophe_dashes(ts) ts.idx + 1 > length(ts.input) && return false isalnum(ts[ts.idx]) || ts[ts.idx] == '_' || return false has_apostrophe_dashes = false i = ts.idx + 1 last_char = ts.idx if isuppercase(ts[ts.idx]) || islowercase(ts[ts.idx]) while i <= length(ts.input) && (isalpha(ts[i]) || ts[i] ∈ ('_', '\'', '-')) if has_apostrophe_dashes == false && ts[i] ∈ ('\'', '-') has_apostrophe_dashes = true else last_char = i end i += 1 end end has_apostrophe_dashes && last_char != ts.idx && return flushaboutindex!(ts, last_char) while i <= length(ts.input) && (isalnum(ts[i]) || ts[i] == '_') i += 1 end return flushaboutindex!(ts, i - 1) end const allowed_chars_phone_numbers = (' ', '*', '-', '.', ')') """ nltk_casual_phonenumbers(ts) The TokenBuffer function for nltk's tweet tokenizer regex for phonenumbers. """ function nltk_phonenumbers(ts) (ts.idx + 5 > length(ts.input) || !(isdigit(ts[ts.idx]) || ts[ts.idx] ∈ ('+', '('))) && return false i = ts.idx optional_1_confirmed = false # Checking for the part 1 of regex which is optional if ts[i] == '+' ts[i + 1] == '0' || ts[i + 1] == '1' || return false i += 2 while i <= length(ts.input) && ts[i] ∈ allowed_chars_phone_numbers i += 1 end i + 5 > length(ts.input) && return false optional_1_confirmed = true elseif ts[i] == '0' || ts[i] == '1' i += 1 while i <= length(ts.input) && ts[i] ∈ allowed_chars_phone_numbers i += 1 end i + 5 > length(ts.input) && return false if i - ts.idx > 1 || ts[i] == '(' optional_1_confirmed = true end end if i == ts.idx || optional_1_confirmed # This is called when either the first part is sure to present or absent, otherwise next one called if ts[i] == '(' i += 1 for repeat in 1:2 # repeat is unused variable inside loop if !(i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2])) return false end i += 3 while i <= length(ts.input) && ts[i] ∈ allowed_chars_phone_numbers i += 1 end end !(i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2]) && isdigit(ts[i + 3])) && return false return flushaboutindex!(ts, i + 3) else if !(i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2])) return false end i += 3 while i <= length(ts.input) && ts[i] ∈ allowed_chars_phone_numbers i += 1 end if !(i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2])) return false end i += 3 j = i while i <= length(ts.input) && ts[i] ∈ allowed_chars_phone_numbers i += 1 end i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2]) && isdigit(ts[i + 3]) && return flushaboutindex!(ts, i + 3) isdigit(ts[j]) && return flushaboutindex!(ts, j) return false end else function index_including_part_1(ts, i) index_including_1 = 0 j = i i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2]) || return -1 i += 3 while i <= length(ts.input) && ts[i] ∈ allowed_chars_phone_numbers i += 1 end i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2]) || return -1 i += 3 j = i while i <= length(ts.input) && ts[i] ∈ allowed_chars_phone_numbers i += 1 end i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2]) && isdigit(ts[i + 3]) && return i + 3 isdigit(ts[j]) && return j return -1 end function index_excluding_part_1(ts) i = ts.idx i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2]) || return -1 i += 3 while i <= length(ts.input) && ts[i] ∈ allowed_chars_phone_numbers i += 1 end i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2]) || return -1 i += 3 j = i while i <= length(ts.input) && ts[i] ∈ allowed_chars_phone_numbers i += 1 end i + 3 <= length(ts.input) && isdigit(ts[i]) && isdigit(ts[i + 1]) && isdigit(ts[i + 2]) && isdigit(ts[i + 3]) && return i + 3 isdigit(ts[j]) && return j return -1 end index_including_1 = index_including_part_1(ts, i) index_excluding_1 = index_excluding_part_1(ts) # Flushing out the bigger of the two. index_including_1 <= 0 && index_excluding_1 <= 0 && return false index_excluding_1 > index_including_1 && return flushaboutindex!(ts, index_excluding_1) return flushaboutindex!(ts, index_including_1) end return false end """ extra_phonenumbers(ts) Extra matching patterns for phone numbers. """ function extra_phonenumbers(ts) return false end """ nltk_url1(ts) Matches the url patterns starting with `http/https`. """ function nltk_url1(ts) ts.idx + 3 > length(ts.input) && return false i = ts.idx # Checking for part 1 of regex if ts[i:i+3] == ['h', 't', 't', 'p'] # Check if url starts with pattern - https?:(?:\/{1,3}|[a-z0-9%]) i += 4 i + 2 > length(ts.input) && return false if ts[i] == 's' i += 1 end ts[i] == ':' || return false i += 1 if i >= length(ts.input) || !(isascii(ts[i]) && (islowercase(ts[i]) || isdigit(ts[i]) || ts[i] == '%' || ts[i] == '/')) return false end i += 1 else # Check if url starts with the regex pattern - [a-z0-9.\-]+[.](?:[a-z]{2,13})\/ last_dot = ts.idx while i <= length(ts.input) && isascii(ts[i]) && (islowercase(ts[i]) || isdigit(ts[i]) || ts[i] == '.' || ts[i] == '-') if ts[i] == '.' last_dot = i elseif !islowercase(ts[i]) last_dot = ts.idx end i += 1 end if i + 2 > length(ts.input) || last_dot <= ts.idx + 1 || i - last_dot > 14 || i - last_dot <= 2 || ts[i] != '/' return false end i += 1 end # URL is supposed to have 2 more parts. # Both Part 2 and Part 3 each having 3 possible alternatives. # Part 2 occurs at least once and Part 3 exactly once. # After every match of the first part, we keep a track if the second one follows it. # and store the maximum index in `index_matched`. # Finally, we flush about the index = index_matched then. index_matched = ts.idx while i + 1 <= length(ts.input) && !(isspace(ts[i])) # Check if part 2 matches otherwise break. # Part 2 could be one of the three patterns. # i. ` \([^\s]+?\)` # ii. `\([^\s()]*?\([^\s()]+?\)[^\s()]*?\)` # iii. `[^\s()<>{}\[\]]+` if ts[i] == '(' # Checking for i. and ii. above. i += 1 (i > length(ts.input) || isspace(ts[i])) && break j = i while j <= length(ts.input) && ts[j] != ')' && ts[j] != '(' && !isspace(ts[j]) j += 1 end (j > length(ts.input) || isspace(ts[j])) && break if ts[j] == ')' # Checking for i. j - i <= 1 && break i = j else # Checking for ii. i = j i > length(ts.input) && break while j <= length(ts.input) && ts[j] != ')' && ts[j] != '(' && !isspace(ts[j]) j += 1 end (j > length(ts.input) || isspace(ts[j]) || ts[j] == '(') && break j - i <= 1 && break j += 1 while j <= length(ts.input) && ts[j] != ')' && ts[j] != '(' && !isspace(ts[j]) j += 1 end (j > length(ts.input) || isspace(ts[j]) || ts[j] == '(') && break i = j end i += 1 else # Checking for iii. (isspace(ts[i])|| ts[i] ∈ (')', '<', '>', '{', '}', '[', ']') ) && break i += 1 end i > length(ts.input) && break k = i # Just for temporarily storing i. # Check if part 3 matches otherwise continue. # Part 3 could be one of the three patterns. # i. `\([^\s()]*?\([^\s()]+?\)[^\s()]*?\)` # ii. `[^\s`!()\[\]{};:'".,<>?«»“”‘’]` # iii. ` \([^\s]+?\)` if ts[i] == '(' # Check for part i. and iii. i += 1 (i > length(ts.input) || isspace(ts[i])) && continue j = i while j <= length(ts.input) && ts[j] != ')' && ts[j] != '(' && !isspace(ts[j]) j += 1 end (j > length(ts.input) || isspace(ts[j])) && continue if ts[j] == ')' # Check for part iii. j - i <= 1 && break i = j else # Check for part i. i = j i > length(ts.input) && continue while j <= length(ts.input) && ts[j] != ')' && ts[j] != '(' && !isspace(ts[j]) j += 1 end (j > length(ts.input) || isspace(ts[j]) || ts[j] == '(') && continue j - i <= 1 && continue j += 1 while j <= length(ts.input) && ts[j] != ')' && ts[j] != '(' && !isspace(ts[j]) j += 1 end (j > length(ts.input) || isspace(ts[j]) || ts[j] == '(') && continue i = j end index_matched = i i += 1 else # Check for part ii. isspace(ts[i]) && break ts[i] ∈ ('`', '!', ')', '[', ']', '{', '}', ';', ':', '\'', '"', '.', ',', '<', '>', '?', '«', '»', '“', '”', '‘', '’') && continue index_matched = i end i = k end index_matched == ts.idx && return false return flushaboutindex!(ts, index_matched) end function nltk_url2(ts) (ts.idx > length(ts.input) || (ts.idx > 1 && ts[ts.idx - 1] == '@')) && return false (isascii(ts[ts.idx]) && (isdigit(ts[ts.idx]) || islowercase(ts[ts.idx]))) || return false i = ts.idx + 1 while i <= length(ts.input) && isascii(ts[i]) && (isdigit(ts[i]) || islowercase(ts[i])) i += 1 end flush_about = 0 while i < length(ts.input) && (ts[i] == '.' || ts[i] == '-') j = ts[i] == '.' ? i : 0 i += 1 (isascii(ts[i]) && (isdigit(ts[i]) || islowercase(ts[i]))) || break i += 1 while i <= length(ts.input) && isascii(ts[i]) && (isdigit(ts[i]) || islowercase(ts[i])) i += 1 end if j != 0 && 3 <= i - j <= 14 if i <= length(ts.input) && ts[i] == '/' && (i + 1 > length(ts.input) || ts[i + 1] != '@') flush_about = i break end flush_about = i - 1 end end flush_about == 0 && return false (flush_about >= length(ts.input) || ts[flush_about + 1] != '@') && return flushaboutindex!(ts, flush_about) return false end """ tweet_tokenize(input::AbstractString) => tokens Twitter-aware tokenizer, designed to be flexible and easy to adapt to new domains and tasks. The basic logic is following: 1. The regular expressions are made for WORD_REGEX (core tokenizer), HANG_REGEX and EMOTICONS_REGEX. 2 Replacing HTML entities, tweet handles, reducing length of repeated characters and other features, make it suitable for tweets. 3. The String is tokenized and returned. 4. `preserve_case` By default is set to `true`. If it is set to `false`, then the tokenizer will downcase everything except for emoticons. Example: ``` julia> tweet_tokenize("This is a cooool #dummysmiley: :-) :-P <3 and some arrows < > -> <--") 16-element Array{SubString{String},1}: "This" "is" "a" "cooool" "#dummysmiley" ":" ":-)" ":-P" "<3" "and" "some" "arrows" "<" ">" "->" "<--" ``` """ function tweet_tokenize(source::AbstractString; strip_handle=false, reduce_len=false) phonenumbers(ts) = nltk_phonenumbers(ts) || extra_phonenumbers(ts) urls(ts) = nltk_url1(ts) || nltk_url2(ts) # Fix HTML Character entities length(source) == 0 && return [] source = replace_html_entities(source) length(source) == 0 && return [] safe_text = pre_process(source, strip_handle, reduce_len) # The key tokenizing function begins ts = TokenBuffer(safe_text) isempty(safe_text) && return ts.tokens # # TODO: OpenQuotes and Closing quotes while !isdone(ts) spaces(ts) && continue emoticons(ts) || emoticonsreverse(ts) || htmltags(ts) || arrowsascii(ts) || twitterhashtags(ts) || ellipsis_dots(ts) || urls(ts) || # urls must be called before words. twitterusername(ts) || emailaddresses(ts) || # emailaddresses must be called before words phonenumbers(ts) || # Phone numbers must be called before numbers. atoms(ts, []) || words_including_apostrophe_dashes(ts) || number(ts, check_sign = true) || character(ts) end tokens = ts.tokens return tokens end
[ 271, 26591, 7, 66, 8, 796, 318, 292, 979, 72, 7, 66, 8, 11405, 357, 3044, 789, 7442, 7, 66, 8, 8614, 318, 7211, 2798, 589, 7, 66, 4008, 198, 28456, 22510, 7, 66, 8, 796, 318, 292, 979, 72, 7, 66, 8, 11405, 357, 3044, 789, 7442, 7, 66, 8, 8614, 318, 7211, 2798, 589, 7, 66, 8, 8614, 318, 27003, 7, 66, 4008, 198, 37811, 198, 220, 220, 220, 27711, 62, 298, 871, 7, 912, 3712, 30642, 28632, 26, 4781, 62, 47749, 28, 7942, 8, 198, 198, 8413, 5241, 12066, 422, 2420, 416, 23202, 606, 284, 511, 11188, 28000, 1098, 2095, 13, 198, 198, 63, 28956, 62, 47749, 3712, 33, 970, 63, 1002, 4600, 7942, 47671, 12066, 326, 460, 470, 307, 11513, 389, 198, 2787, 2668, 13, 15323, 11, 12066, 326, 460, 470, 307, 11513, 389, 4030, 366, 292, 198, 271, 1911, 198, 198, 28656, 9312, 460, 307, 3706, 393, 30240, 287, 4280, 4402, 14, 39, 1069, 1296, 198, 12, 34441, 62, 26858, 1058, 366, 5, 42430, 26033, 5218, 366, 138, 242, 1600, 198, 12, 4280, 4402, 1058, 366, 5, 2, 48894, 26033, 5218, 366, 138, 242, 1600, 198, 12, 22212, 1058, 366, 5, 2, 87, 34626, 26033, 5218, 366, 138, 242, 1600, 198, 4864, 329, 9881, 357, 33095, 8, 4019, 12, 24, 69, 389, 16173, 287, 3964, 12, 1065, 4309, 198, 198, 37811, 198, 8818, 27711, 62, 26858, 7, 912, 3712, 30642, 28632, 11, 4781, 62, 47749, 28, 7942, 8, 198, 220, 220, 220, 357, 912, 13, 312, 87, 1343, 352, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 13, 15414, 58, 912, 13, 312, 87, 60, 14512, 705, 5, 6, 1267, 11405, 1441, 3991, 198, 220, 220, 220, 611, 40379, 13, 15414, 58, 912, 13, 312, 87, 1343, 352, 60, 14512, 705, 2, 6, 220, 220, 220, 1303, 20885, 318, 286, 262, 2099, 366, 5, 42430, 26033, 5218, 366, 138, 242, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 282, 22510, 7, 912, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 357, 72, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 58, 72, 60, 14512, 705, 26, 11537, 11405, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 9312, 796, 35847, 3672, 7, 28656, 62, 14539, 871, 13, 12286, 11, 10903, 7, 912, 58, 912, 13, 312, 87, 10, 16, 25, 72, 12, 16, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 318, 28920, 7, 26858, 8, 11405, 5145, 28956, 62, 47749, 11405, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 28920, 7, 26858, 8, 11405, 4574, 0, 7, 912, 13, 22252, 11, 9312, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 40379, 13, 312, 87, 796, 1312, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 1271, 796, 532, 16, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 1343, 362, 198, 220, 220, 220, 220, 220, 220, 220, 611, 40379, 13, 15414, 58, 912, 13, 312, 87, 1343, 362, 60, 14512, 705, 87, 6, 220, 220, 220, 1303, 20885, 318, 286, 262, 2099, 366, 5, 2, 48894, 26033, 5218, 366, 138, 242, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 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, 357, 72, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 58, 72, 60, 14512, 705, 26, 11537, 11405, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 14808, 912, 13, 312, 87, 1343, 362, 1267, 6624, 1312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 28956, 62, 47749, 11405, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 13, 312, 87, 15853, 18, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 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, 357, 17618, 796, 21136, 7, 5317, 11, 10903, 7, 912, 58, 912, 13, 312, 87, 10, 17, 25, 72, 12, 16, 46570, 2779, 28, 940, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 220, 220, 1303, 20885, 318, 286, 262, 2099, 366, 5, 2, 87, 34626, 26033, 5218, 366, 138, 242, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2779, 1433, 15653, 796, 19203, 64, 3256, 705, 65, 3256, 705, 66, 3256, 705, 67, 3256, 705, 68, 3256, 705, 69, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 357, 9409, 328, 270, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 287, 2779, 1433, 15653, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 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, 357, 72, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 58, 72, 60, 14512, 705, 26, 11537, 11405, 1441, 3991, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 357, 912, 13, 312, 87, 1343, 513, 8, 6624, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 28956, 62, 47749, 11405, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 13, 312, 87, 15853, 604, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 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, 1271, 796, 21136, 7, 5317, 11, 10903, 7, 912, 58, 912, 13, 312, 87, 10, 18, 25, 72, 12, 16, 46570, 2779, 28, 1433, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 9168, 62, 1065, 4309, 62, 354, 945, 796, 19203, 26391, 3256, 705, 59, 84, 6659, 3256, 705, 447, 248, 3256, 705, 130, 240, 3256, 705, 447, 252, 3256, 705, 1399, 3256, 705, 33912, 3256, 705, 447, 94, 3256, 705, 135, 228, 3256, 705, 447, 108, 3256, 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, 705, 129, 254, 3256, 705, 447, 117, 3256, 705, 129, 240, 3256, 705, 59, 84, 23, 67, 41707, 129, 121, 3256, 705, 59, 84, 23, 69, 3256, 705, 59, 84, 3829, 3256, 705, 447, 246, 3256, 705, 447, 247, 3256, 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, 705, 447, 250, 3256, 705, 447, 251, 3256, 705, 3581, 3256, 705, 1906, 3256, 705, 960, 3256, 705, 41185, 3256, 705, 8151, 3256, 705, 32790, 3256, 705, 447, 118, 3256, 705, 129, 241, 3256, 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, 705, 59, 84, 24, 67, 3256, 705, 129, 122, 3256, 705, 129, 116, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 611, 657, 87, 1795, 19841, 1271, 19841, 657, 87, 24, 37, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 912, 13, 22252, 11, 9168, 62, 1065, 4309, 62, 354, 945, 58, 17618, 532, 18112, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 13, 312, 87, 796, 1312, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 611, 357, 17618, 19841, 657, 8614, 5145, 3118, 291, 1098, 13, 271, 562, 3916, 7, 17618, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 28956, 62, 47749, 11405, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 13, 312, 87, 796, 1312, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 912, 13, 22252, 11, 3178, 7, 17618, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 40379, 13, 312, 87, 796, 1312, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2081, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 804, 42200, 7, 912, 3712, 30642, 28632, 8, 198, 198, 7376, 4657, 611, 262, 3726, 286, 262, 12326, 5412, 318, 27165, 416, 435, 19080, 39223, 198, 273, 2041, 3435, 588, 10786, 62, 3256, 705, 0, 3256, 705, 31, 3256, 705, 2, 3256, 705, 59, 3, 3256, 705, 4, 3256, 705, 5, 3256, 705, 9, 11537, 198, 37811, 198, 8818, 804, 42200, 7, 912, 3712, 30642, 28632, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2872, 62, 33279, 796, 19203, 62, 3256, 705, 0, 3256, 705, 31, 3256, 705, 2, 3256, 705, 3, 3256, 705, 4, 3256, 705, 5, 3256, 705, 9, 6, 4008, 198, 220, 220, 220, 40379, 13, 312, 87, 6624, 352, 11405, 1441, 3991, 628, 220, 220, 220, 269, 796, 40379, 58, 912, 13, 312, 87, 532, 352, 60, 198, 220, 220, 220, 357, 318, 21037, 7442, 7, 66, 8, 8614, 318, 27003, 7, 66, 8, 8614, 318, 7211, 2798, 589, 7, 66, 8, 8614, 269, 18872, 230, 2872, 62, 33279, 1267, 11405, 1441, 2081, 628, 220, 220, 220, 1441, 3991, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 10283, 62, 6956, 62, 28144, 7, 912, 3712, 30642, 28632, 8, 198, 198, 1890, 10829, 3009, 7157, 829, 13, 1002, 340, 39382, 257, 17044, 5412, 11, 788, 340, 18045, 284, 198, 49123, 262, 6376, 286, 29130, 28632, 284, 262, 10348, 4067, 31017, 262, 5412, 13, 198, 37811, 198, 8818, 10283, 62, 6956, 62, 28144, 7, 912, 8, 628, 220, 220, 220, 357, 912, 13, 312, 87, 1343, 362, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 13, 15414, 58, 912, 13, 312, 87, 60, 14512, 705, 31, 6, 1267, 11405, 1441, 3991, 198, 220, 220, 220, 804, 42200, 7, 912, 8, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 1343, 352, 198, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 357, 28456, 22510, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 6624, 705, 62, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 198, 220, 220, 220, 357, 72, 19841, 4129, 7, 912, 13, 15414, 4008, 11405, 357, 72, 6624, 40379, 13, 312, 87, 1343, 352, 8614, 40379, 58, 72, 60, 6624, 705, 31, 11537, 11405, 1441, 3991, 628, 220, 220, 220, 40379, 13, 312, 87, 796, 1312, 198, 220, 220, 220, 1441, 2081, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 4646, 62, 439, 62, 45956, 515, 7, 912, 3712, 30642, 28632, 8, 198, 198, 1890, 9041, 5100, 3435, 588, 366, 12758, 13321, 2238, 1, 4613, 1058, 12758, 34160, 1911, 198, 37811, 198, 8818, 4646, 62, 439, 62, 45956, 515, 7, 912, 8, 198, 220, 220, 220, 40379, 13, 312, 87, 1343, 604, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 628, 220, 220, 220, 357, 912, 58, 912, 13, 312, 87, 60, 6624, 705, 59, 77, 6, 8614, 40379, 58, 912, 13, 312, 87, 60, 14512, 40379, 58, 912, 13, 312, 87, 1343, 352, 60, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 58, 912, 13, 312, 87, 60, 14512, 40379, 58, 912, 13, 312, 87, 1343, 362, 12962, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 1343, 513, 198, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 6624, 40379, 58, 912, 13, 312, 87, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 474, 287, 352, 25, 18, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 912, 13, 22252, 11, 40379, 58, 912, 13, 312, 87, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 40379, 13, 312, 87, 796, 1312, 198, 220, 220, 220, 1441, 2081, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 3338, 62, 5239, 7, 912, 3712, 30642, 28632, 8, 198, 198, 1212, 3895, 8698, 510, 329, 262, 3435, 810, 262, 1388, 11241, 2890, 2163, 16523, 198, 1890, 1672, 532, 366, 2109, 1, 4613, 366, 9313, 290, 428, 318, 12326, 416, 262, 1994, 11241, 7509, 355, 257, 198, 29762, 11241, 286, 366, 9313, 198, 37811, 198, 8818, 3338, 62, 5239, 7, 912, 8, 198, 220, 220, 220, 40379, 13, 312, 87, 1343, 604, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 628, 220, 220, 220, 357, 28456, 22510, 7, 912, 58, 912, 13, 312, 87, 12962, 8614, 40379, 58, 912, 13, 312, 87, 60, 14512, 40379, 58, 912, 13, 312, 87, 1343, 352, 60, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 58, 912, 13, 312, 87, 60, 14512, 40379, 58, 912, 13, 312, 87, 1343, 362, 60, 1267, 220, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 1343, 513, 628, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 6624, 40379, 58, 912, 13, 312, 87, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 628, 220, 220, 220, 329, 474, 287, 352, 25, 18, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 912, 13, 22252, 11, 40379, 58, 912, 13, 312, 87, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 40379, 13, 312, 87, 796, 1312, 628, 220, 220, 220, 1441, 2081, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 6330, 62, 6494, 62, 298, 871, 7, 15414, 3712, 23839, 10100, 11, 4781, 62, 47749, 28, 7942, 8, 628, 198, 63, 15414, 3712, 23839, 10100, 63, 383, 4731, 319, 543, 11532, 12066, 761, 284, 307, 6928, 198, 63, 28956, 62, 47749, 3712, 33, 970, 63, 1002, 4600, 7942, 47671, 12066, 326, 460, 470, 307, 11513, 389, 198, 2787, 2668, 13, 15323, 11, 12066, 326, 460, 470, 307, 11513, 389, 4030, 366, 292, 198, 271, 1911, 198, 198, 37811, 198, 8818, 6330, 62, 6494, 62, 298, 871, 7, 15414, 3712, 23839, 10100, 26, 4781, 62, 47749, 28, 7942, 8, 198, 220, 220, 220, 40379, 796, 29130, 28632, 7, 15414, 8, 198, 220, 220, 220, 318, 28920, 7, 15414, 8, 11405, 1441, 13538, 628, 220, 220, 220, 981, 5145, 9409, 505, 7, 912, 8, 198, 220, 220, 220, 220, 220, 220, 220, 27711, 62, 26858, 7, 912, 11, 4781, 62, 47749, 8, 8614, 2095, 7, 912, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 40379, 13, 83, 482, 641, 58, 16, 60, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 2163, 220, 662, 62, 14681, 7, 15414, 3712, 23839, 10100, 11, 10283, 62, 28144, 3712, 33, 970, 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, 4646, 62, 11925, 3712, 33, 970, 8, 198, 198, 1212, 2163, 7767, 319, 262, 5128, 4731, 290, 42976, 4781, 17044, 17105, 198, 392, 4646, 4129, 286, 5100, 3435, 357, 2339, 366, 86, 24794, 323, 1, 4613, 366, 86, 7252, 323, 4943, 198, 392, 329, 4847, 588, 366, 34617, 9805, 3548, 4613, 27896, 3548, 1701, 284, 2620, 262, 2854, 198, 1659, 262, 1994, 11241, 7509, 13, 198, 37811, 198, 8818, 662, 62, 14681, 7, 15414, 3712, 23839, 10100, 11, 10283, 62, 28144, 3712, 33, 970, 11, 4646, 62, 11925, 3712, 33, 970, 8, 198, 220, 220, 220, 40379, 796, 29130, 28632, 7, 15414, 8, 198, 220, 220, 220, 318, 28920, 7, 15414, 8, 11405, 1441, 13538, 628, 220, 220, 220, 981, 5145, 9409, 505, 7, 912, 8, 198, 220, 220, 220, 220, 220, 220, 220, 357, 36311, 62, 28144, 11405, 10283, 62, 6956, 62, 28144, 7, 912, 4008, 8614, 220, 220, 1303, 17220, 20579, 17105, 198, 220, 220, 220, 220, 220, 220, 220, 357, 445, 7234, 62, 11925, 11405, 4646, 62, 439, 62, 45956, 515, 7, 912, 4008, 8614, 220, 220, 220, 1303, 44048, 406, 1516, 20563, 198, 220, 220, 220, 220, 220, 220, 220, 3338, 62, 5239, 7, 912, 8, 8614, 220, 1303, 10073, 268, 617, 16311, 286, 3435, 198, 220, 220, 220, 220, 220, 220, 220, 2095, 7, 912, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 40379, 13, 83, 482, 641, 58, 16, 60, 198, 437, 198, 198, 8818, 24773, 10755, 9630, 0, 7, 912, 3712, 30642, 28632, 11, 18529, 1868, 87, 8, 198, 220, 220, 220, 24773, 0, 7, 912, 11, 10903, 7, 912, 58, 912, 13, 312, 87, 25, 37623, 1868, 87, 60, 4008, 198, 220, 220, 220, 40379, 13, 312, 87, 796, 18529, 1868, 87, 1343, 352, 198, 220, 220, 220, 1441, 2081, 198, 437, 198, 198, 9979, 22645, 796, 19203, 29, 3256, 705, 27, 11537, 198, 9979, 2951, 796, 357, 10354, 3256, 705, 26, 3256, 705, 28, 3256, 705, 23, 11537, 198, 9979, 9686, 796, 19203, 12, 3256, 705, 78, 3256, 705, 9, 3256, 705, 59, 7061, 8, 198, 9979, 5422, 796, 357, 11537, 3256, 705, 60, 3256, 705, 92, 3256, 29513, 3256, 44438, 3256, 705, 90, 3256, 705, 67, 3256, 705, 35, 3256, 705, 79, 3256, 705, 47, 3256, 705, 6852, 3256, 31051, 3256, 705, 25, 3256, 705, 31, 3256, 705, 91, 11537, 198, 198, 37811, 198, 220, 220, 220, 2163, 4085, 34280, 7, 912, 3712, 30642, 28632, 8, 198, 198, 1212, 2163, 8794, 329, 262, 4085, 34280, 329, 262, 2099, 4600, 90, 754, 2256, 18477, 48418, 18477, 77, 577, 18477, 14775, 92, 198, 20676, 291, 3973, 287, 428, 1502, 11, 351, 1391, 754, 2256, 92, 290, 1391, 77, 577, 92, 852, 11902, 198, 198, 16281, 25, 198, 12, 4600, 25, 8, 47671, 4600, 26, 79, 63, 220, 220, 220, 1303, 357, 19419, 9686, 290, 22645, 8, 198, 12, 4600, 21912, 8, 47671, 4600, 21912, 79, 63, 220, 1303, 357, 4480, 9686, 8, 198, 12, 4600, 31175, 8, 63, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 357, 4480, 22645, 8, 198, 12, 4600, 29, 21912, 8, 63, 220, 220, 220, 220, 220, 220, 220, 1303, 357, 4480, 22645, 290, 9686, 8, 198, 198, 7583, 8794, 329, 4600, 27, 18, 63, 44805, 198, 37811, 198, 8818, 4085, 34280, 7, 912, 8, 198, 220, 220, 220, 40379, 13, 312, 87, 1343, 352, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 198, 220, 220, 220, 4686, 87, 796, 40379, 13, 312, 87, 628, 220, 220, 220, 40379, 58, 312, 87, 60, 18872, 230, 2951, 11405, 357, 198, 220, 220, 220, 220, 220, 220, 220, 357, 912, 58, 312, 87, 1343, 352, 60, 18872, 230, 5422, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 4686, 87, 1343, 352, 4008, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 357, 312, 87, 1343, 362, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 312, 87, 1343, 352, 60, 18872, 230, 9686, 11405, 40379, 58, 312, 87, 1343, 362, 60, 18872, 230, 5422, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 4686, 87, 1343, 362, 4008, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 4686, 87, 1343, 362, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 312, 87, 60, 18872, 230, 22645, 11405, 40379, 58, 312, 87, 1343, 352, 60, 18872, 230, 2951, 11405, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 912, 58, 312, 87, 1343, 362, 60, 18872, 230, 5422, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 4686, 87, 1343, 362, 4008, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 312, 87, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 312, 87, 1343, 362, 60, 18872, 230, 9686, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 58, 312, 87, 1343, 513, 60, 18872, 230, 5422, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 4686, 87, 1343, 513, 4008, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 40379, 58, 312, 87, 60, 6624, 705, 27, 6, 11405, 40379, 58, 312, 87, 1343, 352, 60, 6624, 705, 18, 6, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 4686, 87, 1343, 352, 8, 628, 220, 220, 220, 1441, 3991, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 2163, 4085, 34280, 50188, 7, 912, 3712, 30642, 28632, 8, 198, 198, 1212, 2163, 8794, 329, 262, 4085, 34280, 287, 9575, 1502, 284, 883, 286, 4600, 8818, 4085, 34280, 63, 198, 20676, 291, 3973, 287, 428, 1502, 4600, 90, 14775, 18477, 77, 577, 18477, 48418, 18477, 754, 2256, 92, 47671, 351, 1391, 754, 2256, 92, 290, 1391, 77, 577, 92, 852, 11902, 198, 198, 16281, 25, 198, 12, 4600, 7, 25, 47671, 4600, 67, 25, 63, 220, 220, 220, 1303, 357, 19419, 9686, 290, 22645, 8, 198, 12, 4600, 32590, 25, 47671, 4600, 67, 12, 25, 63, 220, 1303, 357, 4480, 9686, 8, 198, 12, 357, 25, 27, 63, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 357, 4480, 22645, 8, 198, 12, 4600, 32590, 25, 27, 63, 220, 220, 220, 220, 220, 220, 220, 1303, 357, 4480, 22645, 290, 9686, 8, 198, 198, 37811, 198, 8818, 4085, 34280, 50188, 7, 912, 8, 198, 220, 220, 220, 40379, 13, 312, 87, 1343, 352, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 198, 220, 220, 220, 4686, 87, 796, 40379, 13, 312, 87, 628, 220, 220, 220, 40379, 58, 312, 87, 60, 18872, 230, 5422, 8614, 1441, 3991, 198, 220, 220, 220, 4686, 87, 15853, 352, 628, 220, 220, 220, 611, 40379, 58, 312, 87, 60, 18872, 230, 9686, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 87, 18189, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 87, 15853, 352, 198, 220, 220, 220, 886, 628, 220, 220, 220, 40379, 58, 312, 87, 60, 18872, 230, 2951, 15886, 1441, 3991, 198, 220, 220, 220, 4686, 87, 15853, 352, 628, 220, 220, 220, 4686, 87, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 312, 87, 60, 18872, 230, 22645, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 4686, 87, 8, 628, 220, 220, 220, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 4686, 87, 532, 16, 1267, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 289, 17209, 2528, 3775, 7, 912, 3712, 30642, 28632, 8, 198, 198, 19044, 2052, 262, 11532, 15940, 543, 3994, 645, 2272, 2641, 262, 15940, 13, 198, 37811, 198, 8818, 289, 17209, 2528, 3775, 7, 912, 8, 198, 220, 220, 220, 357, 912, 13, 312, 87, 1343, 362, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 58, 912, 13, 312, 87, 60, 14512, 705, 27, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8614, 40379, 58, 912, 13, 312, 87, 1343, 352, 60, 6624, 705, 29, 11537, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 198, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 14512, 705, 29, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1189, 10223, 7, 912, 58, 72, 12962, 11405, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1312, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 628, 220, 220, 220, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 1312, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 20507, 292, 979, 72, 7, 912, 3712, 30642, 28632, 8, 198, 198, 19044, 2052, 262, 355, 979, 72, 20507, 532, 925, 510, 286, 20507, 588, 4600, 27, 438, 63, 290, 4600, 438, 3784, 63, 198, 37811, 198, 8818, 20507, 292, 979, 72, 7, 912, 8, 198, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 40379, 13, 312, 87, 1343, 352, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 912, 58, 912, 13, 312, 87, 60, 14512, 705, 27, 6, 8614, 40379, 58, 912, 13, 312, 87, 1343, 352, 60, 14512, 705, 19355, 1267, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 912, 58, 912, 13, 312, 87, 60, 14512, 705, 12, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 1267, 220, 220, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 198, 220, 220, 220, 611, 40379, 58, 72, 60, 6624, 705, 27, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 6624, 705, 19355, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 1312, 532, 352, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 6624, 705, 19355, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 198, 220, 220, 220, 40379, 58, 912, 13, 312, 87, 60, 6624, 705, 29, 6, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 1312, 8, 198, 437, 198, 198, 2, 16926, 46, 25, 19386, 428, 351, 2456, 62, 8201, 62, 499, 455, 22599, 62, 67, 7465, 3419, 284, 4646, 640, 2077, 13, 198, 2, 47719, 262, 4731, 10597, 1729, 1573, 1149, 3568, 11, 523, 2753, 5365, 517, 640, 13, 198, 37811, 198, 220, 220, 220, 3053, 2860, 16746, 7, 912, 8, 198, 198, 19044, 2052, 329, 3053, 9405, 13, 198, 37811, 198, 8818, 3053, 2860, 16746, 7, 912, 8, 198, 220, 220, 220, 40379, 13, 312, 87, 1343, 604, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 198, 220, 220, 220, 981, 1312, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 357, 28456, 22510, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 18872, 230, 19203, 2637, 11, 705, 10, 3256, 705, 12, 3256, 705, 62, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 198, 220, 220, 220, 357, 72, 6624, 40379, 13, 312, 87, 8614, 40379, 58, 72, 60, 14512, 705, 31, 11537, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 474, 796, 1312, 198, 220, 220, 220, 981, 1312, 1343, 362, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 357, 28456, 22510, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 6624, 705, 19355, 8614, 40379, 6624, 705, 62, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 628, 220, 220, 220, 357, 73, 6624, 1312, 8614, 40379, 58, 72, 60, 14512, 705, 2637, 8, 11405, 1441, 3991, 628, 220, 220, 220, 474, 796, 1312, 198, 220, 220, 220, 938, 62, 26518, 796, 1312, 198, 220, 220, 220, 1312, 15853, 352, 628, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 357, 28456, 22510, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 6624, 705, 19355, 8614, 40379, 6624, 705, 62, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 1343, 352, 1279, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 1343, 352, 60, 6624, 705, 2637, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 938, 62, 26518, 796, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1312, 1875, 938, 62, 26518, 1343, 352, 11405, 1312, 1875, 474, 1343, 362, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 1312, 532, 352, 8, 628, 220, 220, 220, 1441, 3991, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 17044, 17831, 31499, 7, 912, 8, 198, 198, 19044, 2052, 329, 17044, 20267, 3775, 13, 198, 37811, 198, 8818, 17044, 17831, 31499, 7, 912, 8, 198, 220, 220, 220, 357, 912, 13, 312, 87, 1343, 362, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 58, 912, 13, 312, 87, 60, 14512, 705, 2, 6, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 58, 912, 13, 312, 87, 1343, 352, 60, 18872, 230, 19203, 43054, 3256, 705, 19355, 4008, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 1343, 352, 198, 220, 220, 220, 938, 62, 4775, 62, 10641, 796, 1312, 628, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 357, 28456, 22510, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 18872, 230, 19203, 62, 3256, 705, 43054, 3256, 705, 19355, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 611, 40379, 58, 72, 60, 18872, 231, 220, 19203, 43054, 3256, 705, 12, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 938, 62, 4775, 62, 10641, 796, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 628, 220, 220, 220, 938, 62, 4775, 62, 10641, 18189, 40379, 13, 312, 87, 1343, 362, 11405, 40379, 58, 912, 13, 312, 87, 1343, 352, 60, 18872, 231, 19203, 43054, 3256, 705, 12, 11537, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 58, 12957, 62, 4775, 62, 10641, 60, 18872, 231, 19203, 43054, 3256, 705, 12, 11537, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 938, 62, 4775, 62, 10641, 8, 628, 220, 220, 220, 1441, 3991, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 17044, 29460, 7, 912, 8, 198, 198, 19044, 2052, 329, 17044, 514, 1142, 1047, 13, 198, 37811, 198, 8818, 17044, 29460, 7, 912, 8, 198, 220, 220, 220, 357, 912, 13, 312, 87, 1343, 352, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 58, 912, 13, 312, 87, 60, 14512, 705, 31, 6, 1267, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 1343, 352, 198, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 357, 28456, 22510, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 6624, 705, 62, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1312, 1875, 40379, 13, 312, 87, 1343, 352, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 1312, 532, 352, 8, 628, 220, 220, 220, 1441, 3991, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 30004, 2419, 271, 62, 67, 1747, 7, 912, 8, 198, 198, 19044, 2052, 329, 30004, 2419, 271, 290, 22969, 11, 15482, 262, 9029, 11, 22524, 11, 649, 6615, 1022, 606, 13, 198, 37811, 198, 8818, 30004, 2419, 271, 62, 67, 1747, 7, 912, 8, 198, 220, 220, 220, 357, 912, 13, 312, 87, 1343, 352, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 58, 912, 13, 312, 87, 60, 14512, 705, 2637, 1267, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 1343, 352, 198, 220, 220, 220, 938, 62, 26518, 796, 40379, 13, 312, 87, 628, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 357, 747, 10223, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 6624, 705, 2637, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 40379, 58, 72, 60, 6624, 705, 2637, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 938, 62, 26518, 796, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 628, 220, 220, 220, 938, 62, 26518, 14512, 40379, 13, 312, 87, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 938, 62, 26518, 8, 628, 220, 220, 220, 1441, 3991, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 2456, 62, 8201, 62, 499, 455, 22599, 62, 67, 7465, 7, 912, 8, 198, 198, 30642, 28632, 2603, 2044, 329, 2456, 326, 743, 393, 743, 1662, 423, 288, 7465, 393, 18584, 22599, 287, 340, 13, 198, 37811, 198, 8818, 2456, 62, 8201, 62, 499, 455, 22599, 62, 67, 7465, 7, 912, 8, 198, 220, 220, 220, 40379, 13, 312, 87, 1343, 352, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 198, 220, 220, 220, 318, 282, 22510, 7, 912, 58, 912, 13, 312, 87, 12962, 8614, 40379, 58, 912, 13, 312, 87, 60, 6624, 705, 62, 6, 220, 8614, 1441, 3991, 628, 220, 220, 220, 468, 62, 499, 455, 22599, 62, 67, 7465, 796, 3991, 198, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 1343, 352, 198, 220, 220, 220, 938, 62, 10641, 796, 40379, 13, 312, 87, 628, 220, 220, 220, 611, 318, 7211, 2798, 589, 7, 912, 58, 912, 13, 312, 87, 12962, 8614, 318, 21037, 7442, 7, 912, 58, 912, 13, 312, 87, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 357, 271, 26591, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 18872, 230, 19203, 62, 3256, 705, 43054, 3256, 705, 19355, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 468, 62, 499, 455, 22599, 62, 67, 7465, 6624, 3991, 11405, 40379, 58, 72, 60, 18872, 230, 19203, 43054, 3256, 705, 12, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 468, 62, 499, 455, 22599, 62, 67, 7465, 796, 2081, 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, 938, 62, 10641, 796, 1312, 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, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 468, 62, 499, 455, 22599, 62, 67, 7465, 11405, 938, 62, 10641, 14512, 40379, 13, 312, 87, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 938, 62, 10641, 8, 628, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 357, 28456, 22510, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 6624, 705, 62, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 1312, 532, 352, 8, 198, 437, 198, 198, 9979, 3142, 62, 354, 945, 62, 4862, 62, 77, 17024, 796, 19203, 46083, 705, 9, 3256, 705, 12, 3256, 705, 2637, 11, 705, 8, 11537, 198, 198, 37811, 198, 220, 220, 220, 299, 2528, 74, 62, 34004, 723, 62, 746, 34481, 17024, 7, 912, 8, 198, 198, 464, 29130, 28632, 2163, 329, 299, 2528, 74, 338, 6126, 11241, 7509, 40364, 329, 32896, 268, 17024, 13, 198, 37811, 198, 8818, 299, 2528, 74, 62, 746, 34481, 17024, 7, 912, 8, 198, 220, 220, 220, 357, 912, 13, 312, 87, 1343, 642, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 5145, 7, 9409, 328, 270, 7, 912, 58, 912, 13, 312, 87, 12962, 8614, 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, 40379, 58, 912, 13, 312, 87, 60, 18872, 230, 19203, 10, 3256, 705, 10786, 22305, 11405, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 198, 220, 220, 220, 11902, 62, 16, 62, 36349, 796, 3991, 628, 220, 220, 220, 1303, 39432, 329, 262, 636, 352, 286, 40364, 543, 318, 11902, 198, 220, 220, 220, 611, 40379, 58, 72, 60, 6624, 705, 10, 6, 198, 220, 220, 220, 220, 220, 220, 220, 40379, 58, 72, 1343, 352, 60, 6624, 705, 15, 6, 8614, 40379, 58, 72, 1343, 352, 60, 6624, 705, 16, 6, 8614, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 362, 628, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 18872, 230, 3142, 62, 354, 945, 62, 4862, 62, 77, 17024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1312, 1343, 642, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 628, 220, 220, 220, 220, 220, 220, 220, 11902, 62, 16, 62, 36349, 796, 2081, 198, 220, 220, 220, 2073, 361, 40379, 58, 72, 60, 6624, 705, 15, 6, 8614, 40379, 58, 72, 60, 6624, 705, 16, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 628, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 18872, 230, 3142, 62, 354, 945, 62, 4862, 62, 77, 17024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1312, 1343, 642, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 532, 40379, 13, 312, 87, 1875, 352, 220, 8614, 40379, 58, 72, 60, 6624, 705, 10786, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11902, 62, 16, 62, 36349, 796, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 611, 1312, 6624, 40379, 13, 312, 87, 8614, 11902, 62, 16, 62, 36349, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 770, 318, 1444, 618, 2035, 262, 717, 636, 318, 1654, 284, 1944, 393, 13717, 11, 4306, 1306, 530, 1444, 198, 220, 220, 220, 220, 220, 220, 220, 611, 40379, 58, 72, 60, 6624, 705, 10786, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 9585, 287, 352, 25, 17, 1303, 9585, 318, 21958, 7885, 2641, 9052, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 7, 72, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 72, 1343, 362, 60, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 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, 1312, 15853, 513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 18872, 230, 3142, 62, 354, 945, 62, 4862, 62, 77, 17024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 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, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 7, 72, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 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, 318, 27003, 7, 912, 58, 72, 1343, 362, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 513, 60, 4008, 11405, 1441, 3991, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 1312, 1343, 513, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 7, 72, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 72, 1343, 362, 60, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 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, 1312, 15853, 513, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 18872, 230, 3142, 62, 354, 945, 62, 4862, 62, 77, 17024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 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, 611, 5145, 7, 72, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 72, 1343, 362, 60, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 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, 1312, 15853, 513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 796, 1312, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 18872, 230, 3142, 62, 354, 945, 62, 4862, 62, 77, 17024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 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, 1312, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 72, 1343, 362, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 513, 12962, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 1312, 1343, 513, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 73, 12962, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 474, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 2163, 6376, 62, 8201, 62, 3911, 62, 16, 7, 912, 11, 1312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6376, 62, 8201, 62, 16, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 796, 1312, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 72, 1343, 362, 12962, 8614, 1441, 532, 16, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 513, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 18872, 230, 3142, 62, 354, 945, 62, 4862, 62, 77, 17024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 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, 1312, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 72, 1343, 362, 12962, 8614, 1441, 532, 16, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 796, 1312, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 18872, 230, 3142, 62, 354, 945, 62, 4862, 62, 77, 17024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 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, 1312, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 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, 318, 27003, 7, 912, 58, 72, 1343, 362, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 513, 12962, 11405, 1441, 1312, 1343, 513, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 73, 12962, 11405, 1441, 474, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 532, 16, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 2163, 6376, 62, 42218, 62, 3911, 62, 16, 7, 912, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 72, 1343, 362, 12962, 8614, 1441, 532, 16, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 513, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 18872, 230, 3142, 62, 354, 945, 62, 4862, 62, 77, 17024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 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, 1312, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 72, 1343, 362, 12962, 8614, 1441, 532, 16, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 796, 1312, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 18872, 230, 3142, 62, 354, 945, 62, 4862, 62, 77, 17024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 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, 1312, 1343, 513, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 27003, 7, 912, 58, 72, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 352, 12962, 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, 318, 27003, 7, 912, 58, 72, 1343, 362, 12962, 11405, 318, 27003, 7, 912, 58, 72, 1343, 513, 12962, 11405, 1441, 1312, 1343, 513, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 73, 12962, 11405, 1441, 474, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 532, 16, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 6376, 62, 8201, 62, 16, 796, 6376, 62, 8201, 62, 3911, 62, 16, 7, 912, 11, 1312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 62, 42218, 62, 16, 796, 6376, 62, 42218, 62, 3911, 62, 16, 7, 912, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1610, 8023, 503, 262, 5749, 286, 262, 734, 13, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 62, 8201, 62, 16, 19841, 657, 11405, 6376, 62, 42218, 62, 16, 19841, 657, 11405, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 62, 42218, 62, 16, 1875, 6376, 62, 8201, 62, 16, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 6376, 62, 42218, 62, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 6376, 62, 8201, 62, 16, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 3991, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 3131, 62, 746, 34481, 17024, 7, 912, 8, 198, 198, 27726, 12336, 7572, 329, 3072, 3146, 13, 198, 37811, 198, 8818, 3131, 62, 746, 34481, 17024, 7, 912, 8, 198, 220, 220, 220, 1441, 3991, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 299, 2528, 74, 62, 6371, 16, 7, 912, 8, 198, 198, 19044, 2052, 262, 19016, 7572, 3599, 351, 4600, 4023, 14, 5450, 44646, 198, 37811, 198, 8818, 299, 2528, 74, 62, 6371, 16, 7, 912, 8, 198, 220, 220, 220, 40379, 13, 312, 87, 1343, 513, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 198, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 628, 220, 220, 220, 1303, 39432, 329, 636, 352, 286, 40364, 198, 220, 220, 220, 611, 40379, 58, 72, 25, 72, 10, 18, 60, 6624, 37250, 71, 3256, 705, 83, 3256, 705, 83, 3256, 705, 79, 20520, 1303, 6822, 611, 19016, 4940, 351, 3912, 532, 3740, 27514, 7, 30, 7479, 14, 90, 16, 11, 18, 92, 91, 58, 64, 12, 89, 15, 12, 24, 4, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 604, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 1343, 362, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 1441, 3991, 628, 220, 220, 220, 220, 220, 220, 220, 611, 40379, 58, 72, 60, 6624, 705, 82, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 40379, 58, 72, 60, 6624, 705, 32105, 8614, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 18189, 4129, 7, 912, 13, 15414, 8, 8614, 5145, 7, 271, 292, 979, 72, 7, 912, 58, 72, 12962, 11405, 357, 3044, 789, 7442, 7, 912, 58, 72, 12962, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 27003, 7, 912, 58, 72, 12962, 8614, 40379, 58, 72, 60, 6624, 705, 4, 6, 8614, 40379, 58, 72, 60, 6624, 31051, 6, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 2073, 1303, 6822, 611, 19016, 4940, 351, 262, 40364, 3912, 532, 685, 64, 12, 89, 15, 12, 24, 13, 41441, 48688, 58, 8183, 7, 27514, 58, 64, 12, 89, 60, 90, 17, 11, 1485, 30072, 11139, 198, 220, 220, 220, 220, 220, 220, 220, 938, 62, 26518, 796, 40379, 13, 312, 87, 628, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 292, 979, 72, 7, 912, 58, 72, 12962, 11405, 357, 3044, 789, 7442, 7, 912, 58, 72, 12962, 8614, 318, 27003, 7, 912, 58, 72, 12962, 8614, 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, 40379, 58, 72, 60, 6624, 705, 2637, 8614, 40379, 58, 72, 60, 6624, 705, 12, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 40379, 58, 72, 60, 6624, 705, 2637, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 938, 62, 26518, 796, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 5145, 3044, 789, 7442, 7, 912, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 938, 62, 26518, 796, 40379, 13, 312, 87, 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, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 1343, 362, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 938, 62, 26518, 19841, 40379, 13, 312, 87, 1343, 352, 8614, 1312, 532, 938, 62, 26518, 1875, 1478, 8614, 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, 1312, 532, 938, 62, 26518, 19841, 362, 8614, 40379, 58, 72, 60, 14512, 31051, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1303, 10289, 318, 4385, 284, 423, 362, 517, 3354, 13, 198, 220, 220, 220, 1303, 5747, 2142, 362, 290, 2142, 513, 1123, 1719, 513, 1744, 14693, 13, 198, 220, 220, 220, 1303, 2142, 362, 8833, 379, 1551, 1752, 290, 2142, 513, 3446, 1752, 13, 198, 220, 220, 220, 1303, 2293, 790, 2872, 286, 262, 717, 636, 11, 356, 1394, 257, 2610, 611, 262, 1218, 530, 5679, 340, 13, 198, 220, 220, 220, 1303, 290, 3650, 262, 5415, 6376, 287, 4600, 9630, 62, 31409, 44646, 198, 220, 220, 220, 1303, 9461, 11, 356, 24773, 546, 262, 6376, 796, 6376, 62, 31409, 788, 13, 628, 220, 220, 220, 6376, 62, 31409, 796, 40379, 13, 312, 87, 628, 220, 220, 220, 981, 1312, 1343, 352, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 5145, 7, 747, 10223, 7, 912, 58, 72, 60, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 6822, 611, 636, 362, 7466, 4306, 2270, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2142, 362, 714, 307, 530, 286, 262, 1115, 7572, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 1312, 13, 220, 220, 4600, 16792, 58, 61, 59, 82, 48688, 30, 22725, 63, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 21065, 13, 220, 4600, 59, 26933, 61, 59, 82, 3419, 60, 9, 30, 59, 26933, 61, 59, 82, 3419, 48688, 30, 22725, 58, 61, 59, 82, 3419, 60, 9, 30, 22725, 63, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 46955, 13, 4600, 58, 61, 59, 82, 3419, 27, 29, 90, 32239, 58, 59, 11907, 10, 63, 198, 220, 220, 220, 220, 220, 220, 220, 611, 40379, 58, 72, 60, 6624, 705, 10786, 1303, 39432, 329, 1312, 13, 290, 21065, 13, 2029, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 72, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 1189, 10223, 7, 912, 58, 72, 60, 4008, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 796, 1312, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 474, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 73, 60, 14512, 705, 33047, 11405, 40379, 58, 73, 60, 14512, 705, 10786, 11405, 5145, 747, 10223, 7, 912, 58, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 15853, 352, 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, 357, 73, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 1189, 10223, 7, 912, 58, 73, 60, 4008, 11405, 2270, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 40379, 58, 73, 60, 6624, 705, 33047, 1303, 39432, 329, 1312, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 532, 1312, 19841, 352, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 796, 474, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 1303, 39432, 329, 21065, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 796, 474, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 2270, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 474, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 73, 60, 14512, 705, 33047, 11405, 40379, 58, 73, 60, 14512, 705, 10786, 11405, 5145, 747, 10223, 7, 912, 58, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 15853, 352, 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, 357, 73, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 1189, 10223, 7, 912, 58, 73, 12962, 8614, 40379, 58, 73, 60, 6624, 705, 10786, 8, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 532, 1312, 19841, 352, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 15853, 352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 474, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 73, 60, 14512, 705, 33047, 11405, 40379, 58, 73, 60, 14512, 705, 10786, 11405, 5145, 747, 10223, 7, 912, 58, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 15853, 352, 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, 357, 73, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 1189, 10223, 7, 912, 58, 73, 12962, 8614, 40379, 58, 73, 60, 6624, 705, 10786, 8, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 796, 474, 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, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 1303, 39432, 329, 46955, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 747, 10223, 7, 912, 58, 72, 12962, 15886, 40379, 58, 72, 60, 18872, 230, 357, 11537, 3256, 705, 27, 3256, 705, 29, 3256, 705, 90, 3256, 705, 92, 3256, 44438, 3256, 705, 60, 11537, 1267, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1312, 1875, 4129, 7, 912, 13, 15414, 8, 220, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 479, 796, 1312, 1303, 2329, 329, 13413, 23069, 1312, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 6822, 611, 636, 513, 7466, 4306, 2555, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2142, 513, 714, 307, 530, 286, 262, 1115, 7572, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 1312, 13, 220, 220, 4600, 59, 26933, 61, 59, 82, 3419, 60, 9, 30, 59, 26933, 61, 59, 82, 3419, 48688, 30, 22725, 58, 61, 59, 82, 3419, 60, 9, 30, 22725, 63, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 21065, 13, 220, 4600, 58, 61, 59, 82, 63, 0, 3419, 59, 58, 59, 60, 90, 19629, 25, 29653, 1539, 27, 29, 30, 24328, 17730, 447, 250, 447, 251, 447, 246, 447, 247, 60, 63, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 46955, 13, 4600, 16792, 58, 61, 59, 82, 48688, 30, 22725, 63, 198, 220, 220, 220, 220, 220, 220, 220, 611, 40379, 58, 72, 60, 6624, 705, 10786, 1303, 6822, 329, 636, 1312, 13, 290, 46955, 13, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 72, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 1189, 10223, 7, 912, 58, 72, 60, 4008, 11405, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 796, 1312, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 474, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 73, 60, 14512, 705, 33047, 11405, 40379, 58, 73, 60, 14512, 705, 10786, 11405, 5145, 747, 10223, 7, 912, 58, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 15853, 352, 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, 357, 73, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 1189, 10223, 7, 912, 58, 73, 60, 4008, 11405, 2555, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 40379, 58, 73, 60, 6624, 705, 33047, 1303, 6822, 329, 636, 46955, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 532, 1312, 19841, 352, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 796, 474, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 1303, 6822, 329, 636, 1312, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 796, 474, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 1875, 4129, 7, 912, 13, 15414, 8, 11405, 2555, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 474, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 73, 60, 14512, 705, 33047, 11405, 40379, 58, 73, 60, 14512, 705, 10786, 11405, 5145, 747, 10223, 7, 912, 58, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 15853, 352, 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, 357, 73, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 1189, 10223, 7, 912, 58, 73, 12962, 8614, 40379, 58, 73, 60, 6624, 705, 10786, 8, 11405, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 532, 1312, 19841, 352, 11405, 2555, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 474, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 73, 60, 14512, 705, 33047, 11405, 40379, 58, 73, 60, 14512, 705, 10786, 11405, 5145, 747, 10223, 7, 912, 58, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 15853, 352, 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, 357, 73, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 1189, 10223, 7, 912, 58, 73, 12962, 8614, 40379, 58, 73, 60, 6624, 705, 10786, 8, 11405, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 796, 474, 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, 6376, 62, 31409, 796, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 1303, 6822, 329, 636, 21065, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1189, 10223, 7, 912, 58, 72, 12962, 11405, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 58, 72, 60, 18872, 230, 19203, 63, 3256, 705, 0, 3256, 705, 8, 3256, 44438, 3256, 705, 60, 3256, 705, 90, 3256, 705, 92, 3256, 705, 26, 3256, 705, 25, 3256, 705, 43054, 3256, 705, 1, 3256, 705, 2637, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46083, 3256, 705, 27, 3256, 705, 29, 3256, 705, 30, 3256, 705, 24328, 3256, 705, 17730, 3256, 705, 447, 250, 3256, 705, 447, 251, 3256, 705, 447, 246, 3256, 705, 447, 247, 11537, 11405, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6376, 62, 31409, 796, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 796, 479, 198, 220, 220, 220, 886, 628, 220, 220, 220, 6376, 62, 31409, 6624, 40379, 13, 312, 87, 11405, 1441, 3991, 198, 220, 220, 220, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 6376, 62, 31409, 8, 198, 437, 198, 198, 8818, 299, 2528, 74, 62, 6371, 17, 7, 912, 8, 198, 220, 220, 220, 357, 912, 13, 312, 87, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 357, 912, 13, 312, 87, 1875, 352, 11405, 40379, 58, 912, 13, 312, 87, 532, 352, 60, 6624, 705, 31, 6, 4008, 11405, 1441, 3991, 628, 220, 220, 220, 357, 271, 292, 979, 72, 7, 912, 58, 912, 13, 312, 87, 12962, 11405, 357, 9409, 328, 270, 7, 912, 58, 912, 13, 312, 87, 12962, 8614, 318, 21037, 7442, 7, 912, 58, 912, 13, 312, 87, 60, 22305, 8614, 1441, 3991, 628, 220, 220, 220, 1312, 796, 40379, 13, 312, 87, 1343, 352, 198, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 292, 979, 72, 7, 912, 58, 72, 12962, 11405, 357, 9409, 328, 270, 7, 912, 58, 72, 12962, 8614, 318, 21037, 7442, 7, 912, 58, 72, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 886, 628, 220, 220, 220, 24773, 62, 10755, 796, 657, 628, 220, 220, 220, 981, 1312, 1279, 4129, 7, 912, 13, 15414, 8, 11405, 357, 912, 58, 72, 60, 6624, 705, 2637, 8614, 40379, 58, 72, 60, 6624, 705, 12, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 474, 796, 40379, 58, 72, 60, 6624, 705, 2637, 5633, 1312, 1058, 657, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 628, 220, 220, 220, 220, 220, 220, 220, 357, 271, 292, 979, 72, 7, 912, 58, 72, 12962, 11405, 357, 9409, 328, 270, 7, 912, 58, 72, 12962, 8614, 318, 21037, 7442, 7, 912, 58, 72, 60, 22305, 8614, 2270, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 628, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 318, 292, 979, 72, 7, 912, 58, 72, 12962, 11405, 357, 9409, 328, 270, 7, 912, 58, 72, 12962, 8614, 318, 21037, 7442, 7, 912, 58, 72, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 611, 474, 14512, 657, 11405, 513, 19841, 1312, 532, 474, 19841, 1478, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 19841, 4129, 7, 912, 13, 15414, 8, 11405, 40379, 58, 72, 60, 6624, 31051, 6, 11405, 357, 72, 1343, 352, 1875, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 58, 72, 1343, 352, 60, 14512, 705, 31, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24773, 62, 10755, 796, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 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, 24773, 62, 10755, 796, 1312, 532, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 24773, 62, 10755, 6624, 657, 11405, 1441, 3991, 198, 220, 220, 220, 357, 25925, 62, 10755, 18189, 4129, 7, 912, 13, 15414, 8, 8614, 40379, 58, 25925, 62, 10755, 1343, 352, 60, 14512, 705, 31, 11537, 11405, 1441, 24773, 10755, 9630, 0, 7, 912, 11, 24773, 62, 10755, 8, 628, 220, 220, 220, 1441, 3991, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 6126, 62, 30001, 1096, 7, 15414, 3712, 23839, 10100, 8, 5218, 16326, 198, 198, 14254, 12, 9685, 11241, 7509, 11, 3562, 284, 307, 12846, 290, 198, 38171, 284, 6068, 284, 649, 18209, 290, 8861, 13, 198, 198, 464, 4096, 9156, 318, 1708, 25, 198, 198, 16, 13, 383, 3218, 14700, 389, 925, 329, 370, 12532, 62, 31553, 6369, 357, 7295, 11241, 7509, 828, 367, 15567, 62, 31553, 6369, 198, 220, 220, 290, 17228, 2394, 2149, 19213, 62, 31553, 6369, 13, 198, 17, 220, 18407, 4092, 11532, 12066, 11, 6126, 17105, 11, 8868, 4129, 286, 5100, 3435, 198, 220, 220, 290, 584, 3033, 11, 787, 340, 11080, 329, 12665, 13, 198, 18, 13, 383, 10903, 318, 11241, 1143, 290, 4504, 13, 198, 19, 13, 4600, 18302, 3760, 62, 7442, 63, 2750, 4277, 318, 900, 284, 4600, 7942, 44646, 1002, 340, 318, 900, 284, 4600, 9562, 47671, 198, 220, 220, 788, 262, 11241, 7509, 481, 866, 7442, 2279, 2845, 329, 4085, 34280, 13, 198, 198, 16281, 25, 198, 198, 15506, 63, 198, 73, 43640, 29, 6126, 62, 30001, 1096, 7203, 1212, 318, 257, 763, 78, 970, 1303, 67, 13929, 893, 76, 9618, 25, 47226, 1058, 12, 47, 1279, 18, 290, 617, 20507, 1279, 1875, 4613, 1279, 438, 4943, 198, 198, 1433, 12, 30854, 15690, 90, 7004, 10100, 90, 10100, 5512, 16, 38362, 198, 366, 1212, 1, 198, 366, 271, 1, 198, 366, 64, 1, 198, 366, 1073, 78, 970, 1, 198, 25113, 67, 13929, 893, 76, 9618, 1, 198, 366, 11097, 198, 366, 21912, 16725, 198, 366, 21912, 47, 1, 198, 33490, 18, 1, 198, 366, 392, 1, 198, 366, 11246, 1, 198, 366, 6018, 82, 1, 198, 33490, 1, 198, 366, 24618, 198, 366, 3784, 1, 198, 33490, 438, 1, 198, 15506, 63, 198, 37811, 198, 8818, 6126, 62, 30001, 1096, 7, 10459, 3712, 23839, 10100, 26, 10283, 62, 28144, 28, 9562, 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, 4646, 62, 11925, 28, 9562, 8, 628, 220, 220, 220, 32896, 268, 17024, 7, 912, 8, 796, 299, 2528, 74, 62, 746, 34481, 17024, 7, 912, 8, 8614, 3131, 62, 746, 34481, 17024, 7, 912, 8, 198, 220, 220, 220, 2956, 7278, 7, 912, 8, 796, 299, 2528, 74, 62, 6371, 16, 7, 912, 8, 8614, 299, 2528, 74, 62, 6371, 17, 7, 912, 8, 628, 220, 220, 220, 1303, 13268, 11532, 15684, 12066, 198, 220, 220, 220, 4129, 7, 10459, 8, 6624, 657, 11405, 1441, 17635, 198, 220, 220, 220, 2723, 796, 6330, 62, 6494, 62, 298, 871, 7, 10459, 8, 628, 220, 220, 220, 4129, 7, 10459, 8, 6624, 657, 11405, 1441, 17635, 198, 220, 220, 220, 3338, 62, 5239, 796, 662, 62, 14681, 7, 10459, 11, 10283, 62, 28144, 11, 4646, 62, 11925, 8, 628, 220, 220, 220, 1303, 383, 1994, 11241, 2890, 2163, 6140, 198, 220, 220, 220, 40379, 796, 29130, 28632, 7, 21230, 62, 5239, 8, 198, 220, 220, 220, 318, 28920, 7, 21230, 62, 5239, 8, 11405, 1441, 40379, 13, 83, 482, 641, 628, 220, 220, 220, 1303, 1303, 16926, 46, 25, 4946, 23138, 290, 47055, 13386, 198, 220, 220, 220, 981, 5145, 9409, 505, 7, 912, 8, 198, 220, 220, 220, 220, 220, 220, 220, 9029, 7, 912, 8, 11405, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 4085, 34280, 7, 912, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 4085, 34280, 50188, 7, 912, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 289, 17209, 2528, 3775, 7, 912, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 20507, 292, 979, 72, 7, 912, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 17044, 17831, 31499, 7, 912, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 30004, 2419, 271, 62, 67, 1747, 7, 912, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 2956, 7278, 7, 912, 8, 8614, 1303, 2956, 7278, 1276, 307, 1444, 878, 2456, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17044, 29460, 7, 912, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 3053, 2860, 16746, 7, 912, 8, 8614, 1303, 3053, 2860, 16746, 1276, 307, 1444, 878, 2456, 198, 220, 220, 220, 220, 220, 220, 220, 32896, 268, 17024, 7, 912, 8, 8614, 1303, 14484, 3146, 1276, 307, 1444, 878, 3146, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23235, 7, 912, 11, 685, 12962, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 2456, 62, 8201, 62, 499, 455, 22599, 62, 67, 7465, 7, 912, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 1271, 7, 912, 11, 2198, 62, 12683, 796, 2081, 8, 8614, 198, 220, 220, 220, 220, 220, 220, 220, 2095, 7, 912, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 16326, 796, 40379, 13, 83, 482, 641, 628, 220, 220, 220, 1441, 16326, 198, 437, 198 ]
2.028915
13,453
import Distributions: Exponential, product_distribution """ $(TYPEDEF) A symetric random telegraph noise with switch rate `γ/2` magnitude `b` $(FIELDS) """ struct SymetricRTN "Magnitude" b::Any "Two times the switching probability" γ::Any end correlation(τ, R::SymetricRTN) = R.b^2 * exp(-R.γ * τ) spectrum(ω, R::SymetricRTN) = 2 * R.b^2 * R.γ / (ω^2 + R.γ^2) construct_distribution(R::SymetricRTN) = Exponential(1 / R.γ) """ $(TYPEDEF) An ensemble of random telegraph noise. $(FIELDS) """ struct EnsembleFluctuator{T} <: StochasticBath "A list of RTNs" f::Vector{T} end """ $(SIGNATURES) Build the `EnsembleFluctuator` object from a list of amplitudes `b` and a list of switch rates `ω`. # Examples ```julia-repl julia> EnsembleFluctuator([1, 1], [1, 2]) Fluctuator ensemble with 2 fluctuators ``` """ EnsembleFluctuator(b::AbstractArray{T}, ω::AbstractArray{T}) where {T <: Number} = EnsembleFluctuator([SymetricRTN(x, y) for (x, y) in zip(b, ω)]) correlation(τ, E::EnsembleFluctuator) = sum((x) -> correlation(τ, x), E.f) spectrum(ω, E::EnsembleFluctuator) = sum((x) -> spectrum(ω, x), E.f) construct_distribution(E::EnsembleFluctuator) = product_distribution([construct_distribution(x) for x in E.f]) Base.length(E::EnsembleFluctuator) = Base.length(E.f) Base.show(io::IO, ::MIME"text/plain", E::EnsembleFluctuator) = print(io, "Fluctuator ensemble with ", length(E), " fluctuators") Base.show(io::IO, E::EnsembleFluctuator) = print(io, "Fluctuator ensemble with ", length(E), " fluctuators")
[ 11748, 46567, 507, 25, 5518, 35470, 11, 1720, 62, 17080, 3890, 198, 198, 37811, 198, 3, 7, 9936, 47, 1961, 25425, 8, 198, 198, 32, 827, 4164, 1173, 4738, 573, 16606, 7838, 351, 5078, 2494, 4600, 42063, 14, 17, 63, 14735, 4600, 65, 63, 198, 198, 3, 7, 11674, 3698, 5258, 8, 198, 37811, 198, 7249, 1632, 4164, 1173, 14181, 45, 198, 220, 220, 220, 366, 48017, 3984, 1, 198, 220, 220, 220, 275, 3712, 7149, 198, 220, 220, 220, 366, 7571, 1661, 262, 15430, 12867, 1, 198, 220, 220, 220, 7377, 111, 3712, 7149, 198, 437, 198, 198, 10215, 49501, 7, 32830, 11, 371, 3712, 13940, 4164, 1173, 14181, 45, 8, 796, 371, 13, 65, 61, 17, 1635, 1033, 32590, 49, 13, 42063, 1635, 46651, 8, 198, 4443, 6582, 7, 49535, 11, 371, 3712, 13940, 4164, 1173, 14181, 45, 8, 796, 362, 1635, 371, 13, 65, 61, 17, 1635, 371, 13, 42063, 1220, 357, 49535, 61, 17, 1343, 371, 13, 42063, 61, 17, 8, 198, 41571, 62, 17080, 3890, 7, 49, 3712, 13940, 4164, 1173, 14181, 45, 8, 796, 5518, 35470, 7, 16, 1220, 371, 13, 42063, 8, 198, 198, 37811, 198, 3, 7, 9936, 47, 1961, 25425, 8, 198, 198, 2025, 34549, 286, 4738, 573, 16606, 7838, 13, 198, 198, 3, 7, 11674, 3698, 5258, 8, 198, 37811, 198, 7249, 2039, 15140, 37, 2290, 310, 84, 1352, 90, 51, 92, 1279, 25, 520, 5374, 3477, 33, 776, 198, 220, 220, 220, 366, 32, 1351, 286, 11923, 47503, 1, 198, 220, 220, 220, 277, 3712, 38469, 90, 51, 92, 198, 437, 198, 198, 37811, 198, 3, 7, 46224, 47471, 8, 198, 198, 15580, 262, 4600, 4834, 15140, 37, 2290, 310, 84, 1352, 63, 2134, 422, 257, 1351, 286, 12306, 10455, 4600, 65, 63, 290, 257, 1351, 286, 5078, 3965, 4600, 49535, 44646, 198, 198, 2, 21066, 198, 15506, 63, 73, 43640, 12, 35666, 198, 73, 43640, 29, 2039, 15140, 37, 2290, 310, 84, 1352, 26933, 16, 11, 352, 4357, 685, 16, 11, 362, 12962, 198, 37, 2290, 310, 84, 1352, 34549, 351, 362, 19180, 84, 2024, 198, 15506, 63, 198, 37811, 198, 4834, 15140, 37, 2290, 310, 84, 1352, 7, 65, 3712, 23839, 19182, 90, 51, 5512, 18074, 231, 3712, 23839, 19182, 90, 51, 30072, 810, 1391, 51, 1279, 25, 7913, 92, 796, 198, 220, 220, 220, 2039, 15140, 37, 2290, 310, 84, 1352, 26933, 13940, 4164, 1173, 14181, 45, 7, 87, 11, 331, 8, 329, 357, 87, 11, 331, 8, 287, 19974, 7, 65, 11, 18074, 231, 8, 12962, 198, 10215, 49501, 7, 32830, 11, 412, 3712, 4834, 15140, 37, 2290, 310, 84, 1352, 8, 796, 2160, 19510, 87, 8, 4613, 16096, 7, 32830, 11, 2124, 828, 412, 13, 69, 8, 198, 4443, 6582, 7, 49535, 11, 412, 3712, 4834, 15140, 37, 2290, 310, 84, 1352, 8, 796, 2160, 19510, 87, 8, 4613, 10958, 7, 49535, 11, 2124, 828, 412, 13, 69, 8, 198, 41571, 62, 17080, 3890, 7, 36, 3712, 4834, 15140, 37, 2290, 310, 84, 1352, 8, 796, 198, 220, 220, 220, 1720, 62, 17080, 3890, 26933, 41571, 62, 17080, 3890, 7, 87, 8, 329, 2124, 287, 412, 13, 69, 12962, 198, 198, 14881, 13, 13664, 7, 36, 3712, 4834, 15140, 37, 2290, 310, 84, 1352, 8, 796, 7308, 13, 13664, 7, 36, 13, 69, 8, 198, 14881, 13, 12860, 7, 952, 3712, 9399, 11, 7904, 44, 12789, 1, 5239, 14, 25638, 1600, 412, 3712, 4834, 15140, 37, 2290, 310, 84, 1352, 8, 796, 198, 220, 220, 220, 3601, 7, 952, 11, 366, 37, 2290, 310, 84, 1352, 34549, 351, 33172, 4129, 7, 36, 828, 366, 19180, 84, 2024, 4943, 198, 14881, 13, 12860, 7, 952, 3712, 9399, 11, 412, 3712, 4834, 15140, 37, 2290, 310, 84, 1352, 8, 796, 198, 220, 220, 220, 3601, 7, 952, 11, 366, 37, 2290, 310, 84, 1352, 34549, 351, 33172, 4129, 7, 36, 828, 366, 19180, 84, 2024, 4943, 198 ]
2.37788
651
export AbEnsemble, BBEnsemble, GBEnsemble, FWEnsemble, SWEnsemble export trainerr, trainerrseq, testerr, testerrseq, prediction export normωs, normcardseq, getβseq abstract type AbEnsemble{F, B} end ################# # BareBones ################# struct BBEnsemble{F, B<:AbBasis{F}} <: AbEnsemble{F, B} prob::Problem ωs::Vector{B} β::Vector{F} end BBEnsemble(ens::AbEnsemble{F,B}) where {F, B<:AbBasis{F}} = BBEnsemble{F, B}(ens.prob, deepcopy(ens.ωs), copy(ens.β)) ################# # Gradient Boost ################# mutable struct GBEnsemble{F, B<:AbBasis{F}} <: AbEnsemble{F, B} prob::Problem ωs::Vector{B} β::Vector{F} zs::Vector{Vector{F}} fit::Vector{F} end GBEnsemble(prob::Problem{L,B}) where {L, F, B<:AbBasis{F}} = GBEnsemble{F, B}(prob, B[], F[], Vector{F}[], zeros(F, sizen(prob))) ################# # Frank Wolfe ################# mutable struct FWEnsemble{F, B<:AbBasis{F}} <: AbEnsemble{F, B} prob::Problem ωs::Vector{B} β::Vector{F} zs::Vector{Vector{F}} fit::Vector{F} end FWEnsemble(prob::Problem{L,B}) where {L, F, B<:AbBasis{F}} = FWEnsemble{F, B}(prob, B[], F[], Vector{F}[], zeros(F, sizen(prob))) ################# # Basics ################# import Base.length length(ens::AbEnsemble) = length(ens.ωs) import Base.push! function push!(ens::AbEnsemble{F, B}, ω::B, βi::F, z::Vector{F}) where {B, F} push!(ens.ωs, ω) push!(ens.β, βi) push!(ens.zs, z) ens.fit += βi * z ens end push!(ens::AbEnsemble{F, B}, ω::B, βi::F) where {B, F} = push!(ens, ω, βi, calc(ω, ens.prob.X)) push!(ens::AbEnsemble{F, B}, ω::B) where {B, F} = push!(ens, ω, zero(F)) getZ(ens::AbEnsemble) = hcat(ens.zs...) function _correctfit!(ens::AbEnsemble) ens.fit = sum(ens.β .* ens.zs) end function _correctzs!(ens::AbEnsemble) for j in 1:length(ens) ens.zs[j] = calc(ens.ωs[j], ens.prob.X) end _correctfit!(ens) end ################# # {ω} updates for Backprop ################# function ssedir(ens1::AbEnsemble{F, B}, ens2::AbEnsemble{F, B}) where {F, B<:AbUniDirBasis{F}} @assert length(ens1) == length(ens2) sum(sum(abs2, ens1.ωs[j].u - ens2.ωs[j].u) for j in 1:length(ens1)) end function stepalong!(ens::AbEnsemble{F, B}, ∇L_u, t) where {F, B<:AbUniDirBasis{F}} @assert length(ens) == size(∇L_u)[2] for j in 1:length(ens) ens.ωs[j].u -= t*∇L_u[:, j] # Negative gradient ens.ωs[j].u = project(ens.prob.Ω, ens.ωs[j].u) end _correctzs!(ens) end ################# # FW β updates ################# function updateβ!(ens::FWEnsemble{F}, β::Vector{F}, flush=true) where F #lassoonA @assert length(β)==length(ens.β) keep = flush ? (β.!= 0.0) : (1:length(β)) ens.β = β[keep] if flush ens.ωs = ens.ωs[keep] ens.zs = ens.zs[keep] end _correctfit!(ens) ens end function fwvanillaupdateβ!(ens::FWEnsemble, iter::Int, C::AbstractFloat) @assert ens.β[end] == 0. oldfactor = iter/(iter+2.) ens.β *= oldfactor ens.β[end] = C * 2./(iter+2.) ens.fit *= oldfactor ens.fit += ens.β[end] * ens.zs[end] end ################ # Stagewise ################ mutable struct SWEnsemble{F, B<:AbBasis{F}} <: AbEnsemble{F, B} prob::Problem ωs::Vector{B} β::Vector{F} zs::Vector{Vector{F}} fit::Vector{F} ϵ::F δ::F events::Vector{Int} _βs::Matrix{F} end SWEnsemble(prob::Problem{L,B}, ϵ::F, δ::F) where {L, F, B<:AbBasis{F}} = SWEnsemble{F, B}(prob, B[], F[], Vector{F}[], zeros(F, sizen(prob)), ϵ, δ, Int[], Matrix{F}(0, 0)) function pushnew!(ens::SWEnsemble{F, B}, ω::B, z::Vector{F}=calc(ω, ens.prob.X)) where {B, F} push!(ens.ωs, ω) push!(ens.β, ens.ϵ) push!(ens.zs, z) ens.fit += ens.ϵ * z push!(ens.events, length(ens.β)) ens end function decrementβi!(ens::SWEnsemble, i::Int) tol = 1e-9 @assert ens.β[i] > tol if ens.β[i] < ens.δ + tol # Clamp down to zero ens.fit -= ens.β[i] * ens.zs[i] ens.β[i] = 0. else ens.fit -= ens.δ * ens.zs[i] ens.β[i] -= ens.δ end push!(ens.events, -i) end function augmentβi!(ens::SWEnsemble, i::Int) ens.fit += ens.ϵ * ens.zs[i] ens.β[i] += ens.ϵ push!(ens.events, i) end function _fillβs(ens::SWEnsemble{F}) where F # Each Column is a variable, time progresses along a column length βs = zeros(length(ens.events)+1, maximum(ens.events)) k = 1 for ivar in ens.events k += 1 if ivar > 0 βs[k:end, ivar] += ens.ϵ else ivar = abs(ivar) if βs[k, ivar] > ens.δ + 1e-9 βs[k:end, ivar] -= ens.δ else βs[k:end, ivar] = zero(F) end end end @assert βs[end, :] ≈ ens.β ens._βs = βs end function ensureβfilled(ens::SWEnsemble{F}) where F ((length(ens._βs) > 0) && (ens._βs[end, :] ≈ ens.β)) || _fillβs(ens) end function getβseq(ens::SWEnsemble{F}, fillval::F=NaN) where F ensureβfilled(ens) (fillval == 0.) && return ens._βs @assert fillval===NaN βs = fill(NaN, size(ens._βs)) for ivar in 1:size(βs)[2] a = max(1, findfirst(ens._βs[:, ivar])-1) b = min(findlast(ens._βs[:, ivar])+1, size(βs)[1]) βs[a:b, ivar] = ens._βs[a:b, ivar] end βs end function getβseq(enses::Vector{E}, fillval::F=NaN) where {F, E<:BBEnsemble{F}} βs = fill(fillval, (length(enses), length(enses[end]))) for (itime, ens) in enumerate(enses) βs[itime, 1:length(ens)] = ens.β end βs end ################################################################################ # Exports ################################################################################ normωs(ens::AbEnsemble{F, B}) where {F, B<:AbUniDirBasis{F}} = [normcs(ens.prob, ω.u) for ω in ens.ωs] trainerr(ens::AbEnsemble, los=ens.prob.loss) = los(ens.prob.y, ens.fit) testerr(ens::AbEnsemble, X::Matrix, y::Vector, los=ens.prob.loss) = los(y, sum(ens.β .* calc.(ens.ωs, (X,)))) trainerr(ens::BBEnsemble, los=ens.prob.loss) = testerr(ens, ens.prob.X, ens.prob.y, los) # Vector of Ensembles ################# trainerrseq(enses::Vector{E}, los=enses[1].prob.loss) where E<:AbEnsemble = trainerr.(enses, los) testerrseq(enses::Vector{E}, X::Matrix, y::Vector, los=enses[1].prob.loss) where E<:AbEnsemble = testerr.(enses, (X,), (y,), los) normcardseq(enses::Vector{E}) where E<:AbEnsemble = [norm(ens.β, 1) for ens in enses], [countnz(ens.β) for ens in enses] # GBEnsembles ################# trainerrseq(ens::GBEnsemble, los=ens.prob.loss) = los.((ens.prob.y,), cumsum(ens.β .* ens.zs)) testerrseq(ens::GBEnsemble, X::Matrix, y::Vector, los=ens.prob.loss) = los.((y,), cumsum(ens.β .* calc.(ens.ωs, (X,)))) normcardseq(ens::GBEnsemble) = cumsum(abs.(ens.β)), 1:length(ens) # SWEnsembles ################# function normcardseq(ens::SWEnsemble{F}) where F ensureβfilled(ens) mapslices(β->norm(β, 1), ens._βs, 2)[:], mapslices(countnz, ens._βs, 2)[:] end function _swerrseq(ens::SWEnsemble{F}, y::Vector{F}, zs::Vector{Vector{F}}, los ) where F losses = zeros(length(ens.events)+1) z = zeros(zs[1]) losses[1] = los(y, z) ϵzs = ens.ϵ * zs for (k, i) in enumerate(ens.events) if i > 0 z += ϵzs[i] else z -= ens.δ * zs[abs(i)] # Not checking for Negative β end losses[k+1] = los(y, z) end losses end trainerrseq(ens::SWEnsemble{F}, los=ens.prob.loss) where F = _swerrseq(ens, ens.prob.y, ens.zs, los) testerrseq(ens::SWEnsemble{F}, X::Matrix{F}, y::Vector{F}, los=ens.prob.loss) where F = _swerrseq(ens, y, calc.(ens.ωs, (X,)), los) ################# # Checks ################# function sanitycheck(ens::AbEnsemble) @assert length(ens.ωs) == length(ens.β) == length(ens.zs) @assert length(ens.fit) == sizen(ens.prob) @assert all(length.(ens.zs) .== length(ens.fit)) @assert (length(ens) == 0 && sum(abs, ens.fit) == 0) || (ens.fit ≈ sum(ens.β .* ens.zs)) "$(length(ens)) $(sum(abs, ens.fit)) $(ens.fit ≈ sum(ens.β .* ens.zs))" @assert all(z ≈ calc(ω, ens.prob.X) for (z, ω) in zip(ens.zs, ens.ωs)) print("✓") end
[ 39344, 2275, 4834, 15140, 11, 12597, 4834, 15140, 11, 13124, 4834, 15140, 11, 48849, 4834, 15140, 11, 12672, 4834, 15140, 198, 39344, 4512, 8056, 11, 4512, 8056, 41068, 11, 256, 7834, 81, 11, 256, 7834, 81, 41068, 11, 17724, 198, 39344, 2593, 49535, 82, 11, 2593, 9517, 41068, 11, 651, 26638, 41068, 198, 198, 397, 8709, 2099, 2275, 4834, 15140, 90, 37, 11, 347, 92, 886, 198, 198, 14468, 2, 198, 2, 38234, 33, 1952, 198, 14468, 2, 198, 7249, 12597, 4834, 15140, 90, 37, 11, 347, 27, 25, 4826, 15522, 271, 90, 37, 11709, 1279, 25, 220, 2275, 4834, 15140, 90, 37, 11, 347, 92, 198, 220, 220, 220, 1861, 3712, 40781, 198, 220, 220, 220, 18074, 231, 82, 3712, 38469, 90, 33, 92, 198, 220, 220, 220, 27169, 3712, 38469, 90, 37, 92, 198, 437, 198, 198, 15199, 4834, 15140, 7, 641, 3712, 4826, 4834, 15140, 90, 37, 11, 33, 30072, 810, 1391, 37, 11, 347, 27, 25, 4826, 15522, 271, 90, 37, 11709, 796, 198, 220, 220, 220, 220, 220, 220, 220, 12597, 4834, 15140, 90, 37, 11, 347, 92, 7, 641, 13, 1676, 65, 11, 2769, 30073, 7, 641, 13, 49535, 82, 828, 4866, 7, 641, 13, 26638, 4008, 198, 198, 14468, 2, 198, 2, 17701, 1153, 19835, 198, 14468, 2, 198, 76, 18187, 2878, 13124, 4834, 15140, 90, 37, 11, 347, 27, 25, 4826, 15522, 271, 90, 37, 11709, 1279, 25, 220, 2275, 4834, 15140, 90, 37, 11, 347, 92, 198, 220, 220, 220, 1861, 3712, 40781, 198, 220, 220, 220, 18074, 231, 82, 3712, 38469, 90, 33, 92, 198, 220, 220, 220, 27169, 3712, 38469, 90, 37, 92, 198, 220, 220, 220, 1976, 82, 3712, 38469, 90, 38469, 90, 37, 11709, 198, 220, 220, 220, 4197, 3712, 38469, 90, 37, 92, 198, 437, 198, 198, 4579, 4834, 15140, 7, 1676, 65, 3712, 40781, 90, 43, 11, 33, 30072, 810, 1391, 43, 11, 376, 11, 347, 27, 25, 4826, 15522, 271, 90, 37, 11709, 796, 198, 220, 220, 220, 220, 220, 220, 220, 13124, 4834, 15140, 90, 37, 11, 347, 92, 7, 1676, 65, 11, 347, 58, 4357, 376, 58, 4357, 20650, 90, 37, 92, 58, 4357, 1976, 27498, 7, 37, 11, 264, 33977, 7, 1676, 65, 22305, 198, 198, 14468, 2, 198, 2, 5278, 37013, 198, 14468, 2, 198, 76, 18187, 2878, 48849, 4834, 15140, 90, 37, 11, 347, 27, 25, 4826, 15522, 271, 90, 37, 11709, 1279, 25, 220, 2275, 4834, 15140, 90, 37, 11, 347, 92, 198, 220, 220, 220, 1861, 3712, 40781, 198, 220, 220, 220, 18074, 231, 82, 3712, 38469, 90, 33, 92, 198, 220, 220, 220, 27169, 3712, 38469, 90, 37, 92, 198, 220, 220, 220, 1976, 82, 3712, 38469, 90, 38469, 90, 37, 11709, 198, 220, 220, 220, 4197, 3712, 38469, 90, 37, 92, 198, 437, 198, 198, 24160, 4834, 15140, 7, 1676, 65, 3712, 40781, 90, 43, 11, 33, 30072, 810, 1391, 43, 11, 376, 11, 347, 27, 25, 4826, 15522, 271, 90, 37, 11709, 796, 198, 220, 220, 220, 220, 220, 220, 220, 48849, 4834, 15140, 90, 37, 11, 347, 92, 7, 1676, 65, 11, 347, 58, 4357, 376, 58, 4357, 20650, 90, 37, 92, 58, 4357, 1976, 27498, 7, 37, 11, 264, 33977, 7, 1676, 65, 22305, 198, 198, 14468, 2, 198, 2, 45884, 198, 14468, 2, 198, 11748, 7308, 13, 13664, 198, 13664, 7, 641, 3712, 4826, 4834, 15140, 8, 796, 4129, 7, 641, 13, 49535, 82, 8, 198, 198, 11748, 7308, 13, 14689, 0, 198, 8818, 4574, 0, 7, 641, 3712, 4826, 4834, 15140, 90, 37, 11, 347, 5512, 18074, 231, 3712, 33, 11, 27169, 72, 3712, 37, 11, 1976, 3712, 38469, 90, 37, 30072, 810, 1391, 33, 11, 376, 92, 198, 220, 220, 220, 4574, 0, 7, 641, 13, 49535, 82, 11, 18074, 231, 8, 198, 220, 220, 220, 4574, 0, 7, 641, 13, 26638, 11, 27169, 72, 8, 198, 220, 220, 220, 4574, 0, 7, 641, 13, 89, 82, 11, 1976, 8, 198, 220, 220, 220, 3140, 13, 11147, 15853, 27169, 72, 1635, 1976, 198, 220, 220, 220, 3140, 198, 437, 198, 198, 14689, 0, 7, 641, 3712, 4826, 4834, 15140, 90, 37, 11, 347, 5512, 18074, 231, 3712, 33, 11, 27169, 72, 3712, 37, 8, 810, 1391, 33, 11, 376, 92, 796, 4574, 0, 7, 641, 11, 18074, 231, 11, 27169, 72, 11, 42302, 7, 49535, 11, 3140, 13, 1676, 65, 13, 55, 4008, 198, 14689, 0, 7, 641, 3712, 4826, 4834, 15140, 90, 37, 11, 347, 5512, 18074, 231, 3712, 33, 8, 810, 1391, 33, 11, 376, 92, 796, 4574, 0, 7, 641, 11, 18074, 231, 11, 6632, 7, 37, 4008, 198, 198, 1136, 57, 7, 641, 3712, 4826, 4834, 15140, 8, 796, 289, 9246, 7, 641, 13, 89, 82, 23029, 198, 198, 8818, 4808, 30283, 11147, 0, 7, 641, 3712, 4826, 4834, 15140, 8, 198, 220, 220, 220, 3140, 13, 11147, 796, 2160, 7, 641, 13, 26638, 764, 9, 3140, 13, 89, 82, 8, 198, 437, 198, 198, 8818, 4808, 30283, 89, 82, 0, 7, 641, 3712, 4826, 4834, 15140, 8, 198, 220, 220, 220, 329, 474, 287, 352, 25, 13664, 7, 641, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3140, 13, 89, 82, 58, 73, 60, 796, 42302, 7, 641, 13, 49535, 82, 58, 73, 4357, 3140, 13, 1676, 65, 13, 55, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 4808, 30283, 11147, 0, 7, 641, 8, 198, 437, 198, 198, 14468, 2, 198, 2, 1391, 49535, 92, 5992, 329, 5157, 22930, 198, 14468, 2, 198, 8818, 264, 36622, 343, 7, 641, 16, 3712, 4826, 4834, 15140, 90, 37, 11, 347, 5512, 3140, 17, 3712, 4826, 4834, 15140, 90, 37, 11, 347, 30072, 810, 1391, 37, 11, 347, 27, 25, 4826, 3118, 72, 35277, 15522, 271, 90, 37, 11709, 198, 220, 220, 220, 2488, 30493, 4129, 7, 641, 16, 8, 6624, 220, 4129, 7, 641, 17, 8, 198, 220, 220, 220, 2160, 7, 16345, 7, 8937, 17, 11, 3140, 16, 13, 49535, 82, 58, 73, 4083, 84, 532, 3140, 17, 13, 49535, 82, 58, 73, 4083, 84, 8, 329, 474, 287, 352, 25, 13664, 7, 641, 16, 4008, 198, 437, 198, 198, 8818, 2239, 24176, 0, 7, 641, 3712, 4826, 4834, 15140, 90, 37, 11, 347, 5512, 18872, 229, 43, 62, 84, 11, 256, 8, 810, 1391, 37, 11, 347, 27, 25, 4826, 3118, 72, 35277, 15522, 271, 90, 37, 11709, 198, 220, 220, 220, 2488, 30493, 4129, 7, 641, 8, 6624, 2546, 7, 24861, 229, 43, 62, 84, 38381, 17, 60, 198, 220, 220, 220, 329, 474, 287, 352, 25, 13664, 7, 641, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3140, 13, 49535, 82, 58, 73, 4083, 84, 48185, 256, 9, 24861, 229, 43, 62, 84, 58, 45299, 474, 60, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 36183, 31312, 198, 220, 220, 220, 220, 220, 220, 220, 3140, 13, 49535, 82, 58, 73, 4083, 84, 796, 1628, 7, 641, 13, 1676, 65, 13, 138, 102, 11, 3140, 13, 49535, 82, 58, 73, 4083, 84, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 4808, 30283, 89, 82, 0, 7, 641, 8, 198, 437, 198, 198, 14468, 2, 198, 2, 48849, 27169, 5992, 198, 14468, 2, 198, 8818, 4296, 26638, 0, 7, 641, 3712, 24160, 4834, 15140, 90, 37, 5512, 27169, 3712, 38469, 90, 37, 5512, 24773, 28, 7942, 8, 810, 376, 1303, 31172, 2049, 32, 198, 220, 220, 220, 2488, 30493, 4129, 7, 26638, 8, 855, 13664, 7, 641, 13, 26638, 8, 198, 220, 220, 220, 1394, 796, 24773, 5633, 357, 26638, 13, 0, 28, 657, 13, 15, 8, 1058, 357, 16, 25, 13664, 7, 26638, 4008, 198, 220, 220, 220, 3140, 13, 26638, 796, 27169, 58, 14894, 60, 198, 220, 220, 220, 611, 24773, 198, 220, 220, 220, 220, 220, 220, 220, 3140, 13, 49535, 82, 796, 3140, 13, 49535, 82, 58, 14894, 60, 198, 220, 220, 220, 220, 220, 220, 220, 3140, 13, 89, 82, 796, 3140, 13, 89, 82, 58, 14894, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 4808, 30283, 11147, 0, 7, 641, 8, 198, 220, 220, 220, 3140, 198, 437, 198, 198, 8818, 277, 86, 10438, 359, 559, 79, 4475, 26638, 0, 7, 641, 3712, 24160, 4834, 15140, 11, 11629, 3712, 5317, 11, 327, 3712, 23839, 43879, 8, 198, 220, 220, 220, 2488, 30493, 3140, 13, 26638, 58, 437, 60, 6624, 657, 13, 198, 220, 220, 220, 1468, 31412, 796, 11629, 29006, 2676, 10, 17, 2014, 628, 220, 220, 220, 3140, 13, 26638, 1635, 28, 1468, 31412, 198, 220, 220, 220, 3140, 13, 26638, 58, 437, 60, 796, 327, 1635, 362, 19571, 7, 2676, 10, 17, 2014, 628, 220, 220, 220, 3140, 13, 11147, 1635, 28, 1468, 31412, 198, 220, 220, 220, 3140, 13, 11147, 15853, 3140, 13, 26638, 58, 437, 60, 1635, 3140, 13, 89, 82, 58, 437, 60, 198, 437, 198, 198, 14468, 198, 2, 520, 363, 413, 786, 198, 14468, 198, 76, 18187, 2878, 12672, 4834, 15140, 90, 37, 11, 347, 27, 25, 4826, 15522, 271, 90, 37, 11709, 1279, 25, 220, 2275, 4834, 15140, 90, 37, 11, 347, 92, 198, 220, 220, 220, 1861, 3712, 40781, 198, 220, 220, 220, 18074, 231, 82, 3712, 38469, 90, 33, 92, 198, 220, 220, 220, 27169, 3712, 38469, 90, 37, 92, 198, 220, 220, 220, 1976, 82, 3712, 38469, 90, 38469, 90, 37, 11709, 198, 220, 220, 220, 4197, 3712, 38469, 90, 37, 92, 198, 220, 220, 220, 18074, 113, 3712, 37, 198, 220, 220, 220, 7377, 112, 3712, 37, 198, 220, 220, 220, 2995, 3712, 38469, 90, 5317, 92, 198, 220, 220, 220, 4808, 26638, 82, 3712, 46912, 90, 37, 92, 198, 437, 198, 198, 17887, 4834, 15140, 7, 1676, 65, 3712, 40781, 90, 43, 11, 33, 5512, 18074, 113, 3712, 37, 11, 7377, 112, 3712, 37, 8, 810, 1391, 43, 11, 376, 11, 347, 27, 25, 4826, 15522, 271, 90, 37, 11709, 796, 198, 220, 220, 220, 220, 220, 220, 220, 12672, 4834, 15140, 90, 37, 11, 347, 92, 7, 1676, 65, 11, 347, 58, 4357, 376, 58, 4357, 20650, 90, 37, 92, 58, 4357, 1976, 27498, 7, 37, 11, 264, 33977, 7, 1676, 65, 36911, 18074, 113, 11, 7377, 112, 11, 2558, 58, 4357, 24936, 90, 37, 92, 7, 15, 11, 657, 4008, 198, 198, 8818, 4574, 3605, 0, 7, 641, 3712, 17887, 4834, 15140, 90, 37, 11, 347, 5512, 18074, 231, 3712, 33, 11, 1976, 3712, 38469, 90, 37, 92, 28, 9948, 66, 7, 49535, 11, 3140, 13, 1676, 65, 13, 55, 4008, 810, 1391, 33, 11, 376, 92, 198, 220, 220, 220, 4574, 0, 7, 641, 13, 49535, 82, 11, 18074, 231, 8, 198, 220, 220, 220, 4574, 0, 7, 641, 13, 26638, 11, 3140, 13, 139, 113, 8, 198, 220, 220, 220, 4574, 0, 7, 641, 13, 89, 82, 11, 1976, 8, 198, 220, 220, 220, 3140, 13, 11147, 15853, 3140, 13, 139, 113, 1635, 1976, 198, 220, 220, 220, 4574, 0, 7, 641, 13, 31534, 11, 4129, 7, 641, 13, 26638, 4008, 198, 220, 220, 220, 3140, 198, 437, 198, 198, 8818, 5255, 434, 26638, 72, 0, 7, 641, 3712, 17887, 4834, 15140, 11, 1312, 3712, 5317, 8, 198, 220, 220, 220, 284, 75, 796, 352, 68, 12, 24, 198, 220, 220, 220, 2488, 30493, 3140, 13, 26638, 58, 72, 60, 1875, 284, 75, 198, 220, 220, 220, 611, 3140, 13, 26638, 58, 72, 60, 1279, 3140, 13, 138, 112, 1343, 284, 75, 220, 220, 220, 220, 220, 220, 1303, 1012, 696, 866, 284, 6632, 198, 220, 220, 220, 220, 220, 220, 220, 3140, 13, 11147, 48185, 3140, 13, 26638, 58, 72, 60, 1635, 3140, 13, 89, 82, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 3140, 13, 26638, 58, 72, 60, 796, 657, 13, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 3140, 13, 11147, 48185, 3140, 13, 138, 112, 1635, 3140, 13, 89, 82, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 3140, 13, 26638, 58, 72, 60, 48185, 3140, 13, 138, 112, 198, 220, 220, 220, 886, 198, 220, 220, 220, 4574, 0, 7, 641, 13, 31534, 11, 532, 72, 8, 198, 437, 198, 198, 8818, 35016, 26638, 72, 0, 7, 641, 3712, 17887, 4834, 15140, 11, 1312, 3712, 5317, 8, 198, 220, 220, 220, 3140, 13, 11147, 15853, 3140, 13, 139, 113, 1635, 3140, 13, 89, 82, 58, 72, 60, 198, 220, 220, 220, 3140, 13, 26638, 58, 72, 60, 15853, 3140, 13, 139, 113, 198, 220, 220, 220, 4574, 0, 7, 641, 13, 31534, 11, 1312, 8, 198, 437, 198, 198, 8818, 4808, 20797, 26638, 82, 7, 641, 3712, 17887, 4834, 15140, 90, 37, 30072, 810, 376, 198, 220, 220, 220, 1303, 5501, 29201, 318, 257, 7885, 11, 640, 33226, 1863, 257, 5721, 4129, 198, 220, 220, 220, 27169, 82, 796, 1976, 27498, 7, 13664, 7, 641, 13, 31534, 47762, 16, 11, 5415, 7, 641, 13, 31534, 4008, 198, 220, 220, 220, 479, 796, 352, 198, 220, 220, 220, 329, 21628, 283, 287, 3140, 13, 31534, 198, 220, 220, 220, 220, 220, 220, 220, 479, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 611, 21628, 283, 1875, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27169, 82, 58, 74, 25, 437, 11, 21628, 283, 60, 15853, 3140, 13, 139, 113, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 283, 796, 2352, 7, 452, 283, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27169, 82, 58, 74, 11, 21628, 283, 60, 1875, 3140, 13, 138, 112, 1343, 352, 68, 12, 24, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27169, 82, 58, 74, 25, 437, 11, 21628, 283, 60, 48185, 3140, 13, 138, 112, 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, 27169, 82, 58, 74, 25, 437, 11, 21628, 283, 60, 796, 6632, 7, 37, 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, 30493, 27169, 82, 58, 437, 11, 1058, 60, 15139, 230, 3140, 13, 26638, 198, 220, 220, 220, 3140, 13557, 26638, 82, 796, 27169, 82, 198, 437, 198, 198, 8818, 4155, 26638, 20286, 7, 641, 3712, 17887, 4834, 15140, 90, 37, 30072, 810, 376, 198, 220, 220, 220, 14808, 13664, 7, 641, 13557, 26638, 82, 8, 1875, 657, 8, 11405, 357, 641, 13557, 26638, 82, 58, 437, 11, 1058, 60, 15139, 230, 3140, 13, 26638, 4008, 8614, 4808, 20797, 26638, 82, 7, 641, 8, 198, 437, 198, 198, 8818, 651, 26638, 41068, 7, 641, 3712, 17887, 4834, 15140, 90, 37, 5512, 6070, 2100, 3712, 37, 28, 26705, 45, 8, 810, 376, 198, 220, 220, 220, 4155, 26638, 20286, 7, 641, 8, 198, 220, 220, 220, 357, 20797, 2100, 6624, 657, 2014, 11405, 1441, 3140, 13557, 26638, 82, 198, 220, 220, 220, 2488, 30493, 6070, 2100, 18604, 26705, 45, 198, 220, 220, 220, 27169, 82, 796, 6070, 7, 26705, 45, 11, 2546, 7, 641, 13557, 26638, 82, 4008, 198, 220, 220, 220, 329, 21628, 283, 287, 352, 25, 7857, 7, 26638, 82, 38381, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 257, 796, 3509, 7, 16, 11, 1064, 11085, 7, 641, 13557, 26638, 82, 58, 45299, 21628, 283, 12962, 12, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 275, 796, 949, 7, 19796, 12957, 7, 641, 13557, 26638, 82, 58, 45299, 21628, 283, 12962, 10, 16, 11, 2546, 7, 26638, 82, 38381, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 27169, 82, 58, 64, 25, 65, 11, 21628, 283, 60, 796, 3140, 13557, 26638, 82, 58, 64, 25, 65, 11, 21628, 283, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 27169, 82, 198, 437, 198, 198, 8818, 651, 26638, 41068, 7, 4541, 3712, 38469, 90, 36, 5512, 6070, 2100, 3712, 37, 28, 26705, 45, 8, 810, 1391, 37, 11, 412, 27, 25, 15199, 4834, 15140, 90, 37, 11709, 198, 220, 220, 220, 27169, 82, 796, 6070, 7, 20797, 2100, 11, 357, 13664, 7, 4541, 828, 4129, 7, 4541, 58, 437, 60, 22305, 198, 220, 220, 220, 329, 357, 22552, 11, 3140, 8, 287, 27056, 378, 7, 4541, 8, 198, 220, 220, 220, 220, 220, 220, 220, 27169, 82, 58, 22552, 11, 352, 25, 13664, 7, 641, 15437, 796, 3140, 13, 26638, 198, 220, 220, 220, 886, 198, 220, 220, 220, 27169, 82, 198, 437, 198, 198, 29113, 29113, 14468, 198, 2, 1475, 3742, 198, 29113, 29113, 14468, 198, 27237, 49535, 82, 7, 641, 3712, 4826, 4834, 15140, 90, 37, 11, 347, 30072, 810, 1391, 37, 11, 347, 27, 25, 4826, 3118, 72, 35277, 15522, 271, 90, 37, 11709, 796, 685, 27237, 6359, 7, 641, 13, 1676, 65, 11, 18074, 231, 13, 84, 8, 329, 18074, 231, 287, 3140, 13, 49535, 82, 60, 198, 27432, 8056, 7, 641, 3712, 4826, 4834, 15140, 11, 22346, 28, 641, 13, 1676, 65, 13, 22462, 8, 796, 22346, 7, 641, 13, 1676, 65, 13, 88, 11, 3140, 13, 11147, 8, 198, 4879, 353, 81, 7, 641, 3712, 4826, 4834, 15140, 11, 1395, 3712, 46912, 11, 331, 3712, 38469, 11, 22346, 28, 641, 13, 1676, 65, 13, 22462, 8, 796, 22346, 7, 88, 11, 2160, 7, 641, 13, 26638, 764, 9, 42302, 12195, 641, 13, 49535, 82, 11, 357, 55, 11, 35514, 198, 27432, 8056, 7, 641, 3712, 15199, 4834, 15140, 11, 22346, 28, 641, 13, 1676, 65, 13, 22462, 8, 796, 256, 7834, 81, 7, 641, 11, 3140, 13, 1676, 65, 13, 55, 11, 3140, 13, 1676, 65, 13, 88, 11, 22346, 8, 198, 198, 2, 20650, 286, 2039, 4428, 829, 198, 14468, 2, 198, 27432, 8056, 41068, 7, 4541, 3712, 38469, 90, 36, 5512, 22346, 28, 4541, 58, 16, 4083, 1676, 65, 13, 22462, 8, 810, 412, 27, 25, 4826, 4834, 15140, 796, 4512, 8056, 12195, 4541, 11, 22346, 8, 198, 4879, 353, 81, 41068, 7, 4541, 3712, 38469, 90, 36, 5512, 1395, 3712, 46912, 11, 331, 3712, 38469, 11, 22346, 28, 4541, 58, 16, 4083, 1676, 65, 13, 22462, 8, 810, 412, 27, 25, 4826, 4834, 15140, 796, 256, 7834, 81, 12195, 4541, 11, 357, 55, 11, 828, 357, 88, 11, 828, 22346, 8, 198, 27237, 9517, 41068, 7, 4541, 3712, 38469, 90, 36, 30072, 810, 412, 27, 25, 4826, 4834, 15140, 796, 685, 27237, 7, 641, 13, 26638, 11, 352, 8, 329, 3140, 287, 3140, 274, 4357, 685, 9127, 27305, 7, 641, 13, 26638, 8, 329, 3140, 287, 3140, 274, 60, 198, 198, 2, 13124, 4834, 4428, 829, 198, 14468, 2, 198, 27432, 8056, 41068, 7, 641, 3712, 4579, 4834, 15140, 11, 22346, 28, 641, 13, 1676, 65, 13, 22462, 8, 796, 22346, 12195, 7, 641, 13, 1676, 65, 13, 88, 11, 828, 220, 269, 5700, 388, 7, 641, 13, 26638, 764, 9, 3140, 13, 89, 82, 4008, 198, 4879, 353, 81, 41068, 7, 641, 3712, 4579, 4834, 15140, 11, 1395, 3712, 46912, 11, 331, 3712, 38469, 11, 22346, 28, 641, 13, 1676, 65, 13, 22462, 8, 796, 22346, 12195, 7, 88, 11, 828, 220, 269, 5700, 388, 7, 641, 13, 26638, 764, 9, 42302, 12195, 641, 13, 49535, 82, 11, 357, 55, 11, 35514, 198, 27237, 9517, 41068, 7, 641, 3712, 4579, 4834, 15140, 8, 796, 269, 5700, 388, 7, 8937, 12195, 641, 13, 26638, 36911, 352, 25, 13664, 7, 641, 8, 198, 198, 2, 12672, 4834, 4428, 829, 198, 14468, 2, 198, 8818, 2593, 9517, 41068, 7, 641, 3712, 17887, 4834, 15140, 90, 37, 30072, 810, 376, 198, 220, 220, 220, 4155, 26638, 20286, 7, 641, 8, 198, 220, 220, 220, 8739, 677, 274, 7, 26638, 3784, 27237, 7, 26638, 11, 352, 828, 3140, 13557, 26638, 82, 11, 362, 38381, 25, 4357, 8739, 677, 274, 7, 9127, 27305, 11, 3140, 13557, 26638, 82, 11, 362, 38381, 47715, 198, 437, 198, 198, 8818, 4808, 2032, 8056, 41068, 7, 641, 3712, 17887, 4834, 15140, 90, 37, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 3712, 38469, 90, 37, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 82, 3712, 38469, 90, 38469, 90, 37, 92, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22346, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 810, 376, 198, 220, 220, 220, 9089, 796, 1976, 27498, 7, 13664, 7, 641, 13, 31534, 47762, 16, 8, 198, 220, 220, 220, 1976, 796, 1976, 27498, 7, 89, 82, 58, 16, 12962, 198, 220, 220, 220, 9089, 58, 16, 60, 796, 22346, 7, 88, 11, 1976, 8, 628, 220, 220, 220, 18074, 113, 89, 82, 796, 3140, 13, 139, 113, 1635, 1976, 82, 198, 220, 220, 220, 329, 357, 74, 11, 1312, 8, 287, 27056, 378, 7, 641, 13, 31534, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 1875, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 15853, 18074, 113, 89, 82, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 48185, 3140, 13, 138, 112, 1635, 1976, 82, 58, 8937, 7, 72, 15437, 220, 220, 220, 220, 220, 220, 1303, 1892, 10627, 329, 36183, 27169, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 9089, 58, 74, 10, 16, 60, 796, 22346, 7, 88, 11, 1976, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 9089, 198, 437, 198, 198, 27432, 8056, 41068, 7, 641, 3712, 17887, 4834, 15140, 90, 37, 5512, 22346, 28, 641, 13, 1676, 65, 13, 22462, 8, 810, 376, 796, 4808, 2032, 8056, 41068, 7, 641, 11, 3140, 13, 1676, 65, 13, 88, 11, 3140, 13, 89, 82, 11, 22346, 8, 198, 4879, 353, 81, 41068, 7, 641, 3712, 17887, 4834, 15140, 90, 37, 5512, 1395, 3712, 46912, 90, 37, 5512, 331, 3712, 38469, 90, 37, 5512, 22346, 28, 641, 13, 1676, 65, 13, 22462, 8, 810, 376, 796, 4808, 2032, 8056, 41068, 7, 641, 11, 331, 11, 42302, 12195, 641, 13, 49535, 82, 11, 357, 55, 35751, 828, 22346, 8, 198, 198, 14468, 2, 198, 2, 47719, 198, 14468, 2, 198, 8818, 34182, 9122, 7, 641, 3712, 4826, 4834, 15140, 8, 198, 220, 220, 220, 2488, 30493, 4129, 7, 641, 13, 49535, 82, 8, 6624, 4129, 7, 641, 13, 26638, 8, 6624, 4129, 7, 641, 13, 89, 82, 8, 198, 220, 220, 220, 2488, 30493, 4129, 7, 641, 13, 11147, 8, 6624, 264, 33977, 7, 641, 13, 1676, 65, 8, 198, 220, 220, 220, 2488, 30493, 477, 7, 13664, 12195, 641, 13, 89, 82, 8, 764, 855, 4129, 7, 641, 13, 11147, 4008, 198, 220, 220, 220, 2488, 30493, 357, 13664, 7, 641, 8, 6624, 657, 11405, 2160, 7, 8937, 11, 3140, 13, 11147, 8, 6624, 657, 8, 8614, 357, 641, 13, 11147, 15139, 230, 2160, 7, 641, 13, 26638, 764, 9, 3140, 13, 89, 82, 4008, 17971, 7, 13664, 7, 641, 4008, 29568, 16345, 7, 8937, 11, 3140, 13, 11147, 4008, 29568, 641, 13, 11147, 15139, 230, 2160, 7, 641, 13, 26638, 764, 9, 3140, 13, 89, 82, 4008, 1, 198, 220, 220, 220, 2488, 30493, 477, 7, 89, 15139, 230, 42302, 7, 49535, 11, 3140, 13, 1676, 65, 13, 55, 8, 329, 357, 89, 11, 18074, 231, 8, 287, 19974, 7, 641, 13, 89, 82, 11, 3140, 13, 49535, 82, 4008, 198, 220, 220, 220, 3601, 7203, 26486, 241, 4943, 198, 437, 198 ]
2.060606
4,026
module TestMSQueue using Reagents using Test include("../../../examples/msqueue.jl") function test_1() q = MSQueue{Int}() push!(q, 1) @test popfirst!(q) == 1 end function test_123() q = MSQueue{Int}() push!(q, 1) push!(q, 2) push!(q, 3) @test popfirst!(q) == 1 @test popfirst!(q) == 2 @test popfirst!(q) == 3 end end # module
[ 21412, 6208, 5653, 34991, 198, 198, 3500, 797, 49638, 198, 3500, 6208, 198, 198, 17256, 7203, 40720, 40720, 40720, 1069, 12629, 14, 907, 36560, 13, 20362, 4943, 198, 198, 8818, 1332, 62, 16, 3419, 198, 220, 220, 220, 10662, 796, 6579, 34991, 90, 5317, 92, 3419, 198, 220, 220, 220, 4574, 0, 7, 80, 11, 352, 8, 198, 220, 220, 220, 2488, 9288, 1461, 11085, 0, 7, 80, 8, 6624, 352, 198, 437, 198, 198, 8818, 1332, 62, 10163, 3419, 198, 220, 220, 220, 10662, 796, 6579, 34991, 90, 5317, 92, 3419, 198, 220, 220, 220, 4574, 0, 7, 80, 11, 352, 8, 198, 220, 220, 220, 4574, 0, 7, 80, 11, 362, 8, 198, 220, 220, 220, 4574, 0, 7, 80, 11, 513, 8, 198, 220, 220, 220, 2488, 9288, 1461, 11085, 0, 7, 80, 8, 6624, 352, 198, 220, 220, 220, 2488, 9288, 1461, 11085, 0, 7, 80, 8, 6624, 362, 198, 220, 220, 220, 2488, 9288, 1461, 11085, 0, 7, 80, 8, 6624, 513, 198, 437, 198, 198, 437, 220, 1303, 8265, 198 ]
2.113636
176
# Example of robot kinematics constraints reported by John Gustafson # http://www.johngustafson.net/presentations/Multicore2016-JLG.pdf using ConstraintPropagation d = Domain() @add_constraint d s2*c5*s6 - s3*c5*s6 - s4*c5*s6 + c2*c6 + c3*c6 + c4*c6 == 0.4077 @add_constraint d c1*c2*s5 + c1*c3*s5 + c1*c4*s5 + s1*c5 == 1.9115 @add_constraint d s2*s5 + s3*s5 + s4*s5 == 1.9791 @add_constraint d c1*c2 + c1*c3 + c1*c4 + c1*c2 + c1*c3 + c1*c2 == 4.0616 @add_constraint d s1*c2 + s1*c3 + s1*c4 + s1*c2 + s1*c3 + s1*c3 == 1.7172 @add_constraint d s2 + s3 + s4 + s2 + s3 + s2 == 3.9701 @add_constraint d s1^2 + c1^2 == 1 @add_constraint d s2^2 + c2^2 == 1 @add_constraint d s3^2 + c3^2 == 1 @add_constraint d s4^2 + c4^2 == 1 @add_constraint d s5^2 + c5^2 == 1 @add_constraint d s6^2 + c6^2 == 1
[ 2, 17934, 286, 9379, 479, 7749, 23372, 17778, 2098, 416, 1757, 26657, 1878, 1559, 198, 2, 2638, 1378, 2503, 13, 73, 1219, 782, 436, 1878, 1559, 13, 3262, 14, 25579, 602, 14, 15205, 291, 382, 5304, 12, 41, 41257, 13, 12315, 198, 198, 3500, 1482, 2536, 2913, 24331, 363, 341, 198, 198, 67, 796, 20021, 3419, 198, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 264, 17, 9, 66, 20, 9, 82, 21, 532, 264, 18, 9, 66, 20, 9, 82, 21, 532, 264, 19, 9, 66, 20, 9, 82, 21, 1343, 269, 17, 9, 66, 21, 1343, 269, 18, 9, 66, 21, 1343, 269, 19, 9, 66, 21, 6624, 657, 13, 1821, 3324, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 269, 16, 9, 66, 17, 9, 82, 20, 1343, 269, 16, 9, 66, 18, 9, 82, 20, 1343, 269, 16, 9, 66, 19, 9, 82, 20, 1343, 264, 16, 9, 66, 20, 6624, 352, 13, 24, 15363, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 264, 17, 9, 82, 20, 1343, 264, 18, 9, 82, 20, 1343, 264, 19, 9, 82, 20, 6624, 352, 13, 24, 3720, 16, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 269, 16, 9, 66, 17, 1343, 269, 16, 9, 66, 18, 1343, 269, 16, 9, 66, 19, 1343, 269, 16, 9, 66, 17, 1343, 269, 16, 9, 66, 18, 1343, 269, 16, 9, 66, 17, 6624, 604, 13, 3312, 1433, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 264, 16, 9, 66, 17, 1343, 264, 16, 9, 66, 18, 1343, 264, 16, 9, 66, 19, 1343, 264, 16, 9, 66, 17, 1343, 264, 16, 9, 66, 18, 1343, 264, 16, 9, 66, 18, 6624, 352, 13, 22, 23628, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 264, 17, 1343, 264, 18, 1343, 264, 19, 1343, 264, 17, 1343, 264, 18, 1343, 264, 17, 6624, 513, 13, 5607, 486, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 264, 16, 61, 17, 1343, 269, 16, 61, 17, 6624, 352, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 264, 17, 61, 17, 1343, 269, 17, 61, 17, 6624, 352, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 264, 18, 61, 17, 1343, 269, 18, 61, 17, 6624, 352, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 264, 19, 61, 17, 1343, 269, 19, 61, 17, 6624, 352, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 264, 20, 61, 17, 1343, 269, 20, 61, 17, 6624, 352, 198, 31, 2860, 62, 1102, 2536, 2913, 288, 264, 21, 61, 17, 1343, 269, 21, 61, 17, 6624, 352, 198 ]
1.842227
431
# Use baremodule to shave off a few KB from the serialized `.ji` file baremodule gdk_pixbuf_jll using Base using Base: UUID import JLLWrappers JLLWrappers.@generate_main_file_header("gdk_pixbuf") JLLWrappers.@generate_main_file("gdk_pixbuf", UUID("da03df04-f53b-5353-a52f-6a8b0620ced0")) end # module gdk_pixbuf_jll
[ 2, 5765, 6247, 21412, 284, 34494, 572, 257, 1178, 14204, 422, 262, 11389, 1143, 4600, 13, 7285, 63, 2393, 198, 49382, 21412, 308, 34388, 62, 79, 844, 29325, 62, 73, 297, 198, 3500, 7308, 198, 3500, 7308, 25, 471, 27586, 198, 11748, 449, 3069, 36918, 11799, 198, 198, 41, 3069, 36918, 11799, 13, 31, 8612, 378, 62, 12417, 62, 7753, 62, 25677, 7203, 21287, 74, 62, 79, 844, 29325, 4943, 198, 41, 3069, 36918, 11799, 13, 31, 8612, 378, 62, 12417, 62, 7753, 7203, 21287, 74, 62, 79, 844, 29325, 1600, 471, 27586, 7203, 6814, 3070, 7568, 3023, 12, 69, 4310, 65, 12, 20, 33319, 12, 64, 4309, 69, 12, 21, 64, 23, 65, 3312, 1238, 771, 15, 48774, 198, 437, 220, 1303, 8265, 308, 34388, 62, 79, 844, 29325, 62, 73, 297, 198 ]
2.373134
134
# Tests for the Diffusion module # function test_diffusion_basic() model = Diffusion.Model(N=4, L=2, K=0.1) model.parameters.K == 0.1 end function test_diffusion_set_c() model = Diffusion.Model(N=4, L=2, K=0.1) c0 = 1:4 model.solution.c = c0 model.solution.c.data[1:model.grid.N] == c0 end function test_diffusive_flux(stepper=:ForwardEuler; top_flux=0.3, bottom_flux=0.13, N=10) model = Diffusion.Model(N=N, L=1, K=1.0, stepper=stepper) model.bcs.c.top = FluxBoundaryCondition(top_flux) model.bcs.c.bottom = FluxBoundaryCondition(bottom_flux) C₀ = integral(model.solution.c) C(t) = C₀ - (top_flux - bottom_flux) * t dt = 1e-6 iterate!(model, dt, 10) return C(time(model)) ≈ integral(model.solution.c) end function test_diffusion_cosine(stepper=:ForwardEuler) model = Diffusion.Model(N=100, L=π/2, K=1.0, stepper=stepper) z = model.grid.zc c_init(z) = cos(2z) c_ans(z, t) = exp(-4t) * c_init(z) model.solution.c = c_init dt = 1e-3 iterate!(model, dt) # The error tolerance is a bit arbitrary. norm(c_ans.(z, time(model)) .- data(model.solution.c)) < model.grid.N*1e-6 end function test_diffusion_cosine_run_until(stepper=:ForwardEuler) model = Diffusion.Model(N=100, L=π/2, K=1.0, stepper=stepper) z = model.grid.zc c_init(z) = cos(2z) c_ans(z, t) = exp(-4t) * c_init(z) model.solution.c = c_init dt = 1e-3 tfinal = 3dt/2 run_until!(model, dt, tfinal) # The error tolerance is a bit arbitrary. norm(c_ans.(z, tfinal) .- data(model.solution.c)) < model.grid.N*1e-6 end function test_advection(stepper=:ForwardEuler) L = 1.0 W = -1.0 δ = L/10 h = L/2 model = Diffusion.Model(N=100, L=L, K=0.0, W=W, stepper=stepper, bcs = Diffusion.BoundaryConditions(FieldBoundaryConditions( GradientBoundaryCondition(0.0), GradientBoundaryCondition(0.0)))) c_gauss(z, t) = exp( -(z-W*t)^2 / (2*δ^2) ) c₀(z) = c_gauss(z+h, 0) model.solution.c = c₀ iterate!(model, 1e-3, 10) c_current(z) = c_gauss(z+h, time(model)) c_answer = CellField(model.grid) set!(c_answer, c_current) norm(data(c_answer) .- data(model.solution.c)) < 0.05 end function test_damping(stepper=:ForwardEuler) L = 1.0 μ = 0.1 model = Diffusion.Model(N=3, L=L, K=0.0, μ=μ, stepper=stepper, bcs = Diffusion.BoundaryConditions(FieldBoundaryConditions( GradientBoundaryCondition(0.0), GradientBoundaryCondition(0.0)))) c_damp(t) = exp(-μ*t) c₀(z) = c_damp(0) model.solution.c = c₀ iterate!(model, 1e-3, 100) c_current(t) = c_damp(time(model)) c_answer = CellField(model.grid) set!(c_answer, c_current) all(abs.(data(c_answer) .- data(model.solution.c)) .< 1e-6) end @testset "Diffusion" begin @test test_diffusion_basic() @test test_diffusion_set_c() for stepper in steppers @test test_diffusion_cosine(stepper) @test test_diffusion_cosine_run_until(stepper) @test test_diffusive_flux(stepper, top_flux=0, bottom_flux=0) @test test_diffusive_flux(stepper) @test test_advection(stepper) @test test_damping(stepper) end end
[ 198, 2, 30307, 329, 262, 10631, 4241, 8265, 198, 2, 198, 198, 8818, 1332, 62, 26069, 4241, 62, 35487, 3419, 198, 220, 220, 220, 2746, 796, 10631, 4241, 13, 17633, 7, 45, 28, 19, 11, 406, 28, 17, 11, 509, 28, 15, 13, 16, 8, 198, 220, 220, 220, 2746, 13, 17143, 7307, 13, 42, 6624, 657, 13, 16, 198, 437, 198, 198, 8818, 1332, 62, 26069, 4241, 62, 2617, 62, 66, 3419, 198, 220, 220, 220, 2746, 796, 10631, 4241, 13, 17633, 7, 45, 28, 19, 11, 406, 28, 17, 11, 509, 28, 15, 13, 16, 8, 198, 220, 220, 220, 269, 15, 796, 352, 25, 19, 198, 220, 220, 220, 2746, 13, 82, 2122, 13, 66, 796, 269, 15, 198, 220, 220, 220, 2746, 13, 82, 2122, 13, 66, 13, 7890, 58, 16, 25, 19849, 13, 25928, 13, 45, 60, 6624, 269, 15, 198, 437, 198, 198, 8818, 1332, 62, 26069, 11350, 62, 69, 22564, 7, 4169, 2848, 28, 25, 39746, 36, 18173, 26, 1353, 62, 69, 22564, 28, 15, 13, 18, 11, 4220, 62, 69, 22564, 28, 15, 13, 1485, 11, 399, 28, 940, 8, 198, 220, 220, 220, 2746, 796, 10631, 4241, 13, 17633, 7, 45, 28, 45, 11, 406, 28, 16, 11, 509, 28, 16, 13, 15, 11, 2876, 2848, 28, 4169, 2848, 8, 198, 220, 220, 220, 2746, 13, 65, 6359, 13, 66, 13, 4852, 796, 1610, 2821, 49646, 560, 48362, 7, 4852, 62, 69, 22564, 8, 198, 220, 220, 220, 2746, 13, 65, 6359, 13, 66, 13, 22487, 796, 1610, 2821, 49646, 560, 48362, 7, 22487, 62, 69, 22564, 8, 628, 220, 220, 220, 327, 158, 224, 222, 796, 19287, 7, 19849, 13, 82, 2122, 13, 66, 8, 198, 220, 220, 220, 327, 7, 83, 8, 796, 327, 158, 224, 222, 532, 357, 4852, 62, 69, 22564, 532, 4220, 62, 69, 22564, 8, 1635, 256, 628, 220, 220, 220, 288, 83, 796, 352, 68, 12, 21, 198, 220, 220, 220, 11629, 378, 0, 7, 19849, 11, 288, 83, 11, 838, 8, 628, 220, 220, 220, 1441, 327, 7, 2435, 7, 19849, 4008, 15139, 230, 19287, 7, 19849, 13, 82, 2122, 13, 66, 8, 198, 437, 198, 198, 8818, 1332, 62, 26069, 4241, 62, 6966, 500, 7, 4169, 2848, 28, 25, 39746, 36, 18173, 8, 198, 220, 220, 220, 2746, 796, 10631, 4241, 13, 17633, 7, 45, 28, 3064, 11, 406, 28, 46582, 14, 17, 11, 509, 28, 16, 13, 15, 11, 2876, 2848, 28, 4169, 2848, 8, 198, 220, 220, 220, 1976, 796, 2746, 13, 25928, 13, 89, 66, 628, 220, 220, 220, 269, 62, 15003, 7, 89, 8, 796, 8615, 7, 17, 89, 8, 198, 220, 220, 220, 269, 62, 504, 7, 89, 11, 256, 8, 796, 1033, 32590, 19, 83, 8, 1635, 269, 62, 15003, 7, 89, 8, 628, 220, 220, 220, 2746, 13, 82, 2122, 13, 66, 796, 269, 62, 15003, 628, 220, 220, 220, 288, 83, 796, 352, 68, 12, 18, 198, 220, 220, 220, 11629, 378, 0, 7, 19849, 11, 288, 83, 8, 628, 220, 220, 220, 1303, 383, 4049, 15621, 318, 257, 1643, 14977, 13, 198, 220, 220, 220, 2593, 7, 66, 62, 504, 12195, 89, 11, 640, 7, 19849, 4008, 764, 12, 1366, 7, 19849, 13, 82, 2122, 13, 66, 4008, 1279, 2746, 13, 25928, 13, 45, 9, 16, 68, 12, 21, 198, 437, 198, 198, 8818, 1332, 62, 26069, 4241, 62, 6966, 500, 62, 5143, 62, 28446, 7, 4169, 2848, 28, 25, 39746, 36, 18173, 8, 198, 220, 220, 220, 2746, 796, 10631, 4241, 13, 17633, 7, 45, 28, 3064, 11, 406, 28, 46582, 14, 17, 11, 509, 28, 16, 13, 15, 11, 2876, 2848, 28, 4169, 2848, 8, 198, 220, 220, 220, 1976, 796, 2746, 13, 25928, 13, 89, 66, 628, 220, 220, 220, 269, 62, 15003, 7, 89, 8, 796, 8615, 7, 17, 89, 8, 198, 220, 220, 220, 269, 62, 504, 7, 89, 11, 256, 8, 796, 1033, 32590, 19, 83, 8, 1635, 269, 62, 15003, 7, 89, 8, 628, 220, 220, 220, 2746, 13, 82, 2122, 13, 66, 796, 269, 62, 15003, 628, 220, 220, 220, 288, 83, 796, 352, 68, 12, 18, 198, 220, 220, 220, 256, 20311, 796, 513, 28664, 14, 17, 198, 220, 220, 220, 1057, 62, 28446, 0, 7, 19849, 11, 288, 83, 11, 256, 20311, 8, 628, 220, 220, 220, 1303, 383, 4049, 15621, 318, 257, 1643, 14977, 13, 198, 220, 220, 220, 2593, 7, 66, 62, 504, 12195, 89, 11, 256, 20311, 8, 764, 12, 1366, 7, 19849, 13, 82, 2122, 13, 66, 4008, 1279, 2746, 13, 25928, 13, 45, 9, 16, 68, 12, 21, 198, 437, 628, 198, 8818, 1332, 62, 324, 303, 596, 7, 4169, 2848, 28, 25, 39746, 36, 18173, 8, 198, 220, 220, 220, 406, 796, 352, 13, 15, 198, 220, 220, 220, 370, 796, 532, 16, 13, 15, 198, 220, 220, 220, 7377, 112, 796, 406, 14, 940, 198, 220, 220, 220, 289, 796, 406, 14, 17, 628, 220, 220, 220, 2746, 796, 10631, 4241, 13, 17633, 7, 45, 28, 3064, 11, 406, 28, 43, 11, 509, 28, 15, 13, 15, 11, 370, 28, 54, 11, 2876, 2848, 28, 4169, 2848, 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, 275, 6359, 796, 10631, 4241, 13, 49646, 560, 25559, 1756, 7, 15878, 49646, 560, 25559, 1756, 7, 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, 17701, 1153, 49646, 560, 48362, 7, 15, 13, 15, 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, 17701, 1153, 49646, 560, 48362, 7, 15, 13, 15, 35514, 628, 220, 220, 220, 269, 62, 4908, 1046, 7, 89, 11, 256, 8, 796, 1033, 7, 532, 7, 89, 12, 54, 9, 83, 8, 61, 17, 1220, 357, 17, 9, 138, 112, 61, 17, 8, 1267, 198, 220, 220, 220, 269, 158, 224, 222, 7, 89, 8, 796, 269, 62, 4908, 1046, 7, 89, 10, 71, 11, 657, 8, 198, 220, 220, 220, 2746, 13, 82, 2122, 13, 66, 796, 269, 158, 224, 222, 628, 220, 220, 220, 11629, 378, 0, 7, 19849, 11, 352, 68, 12, 18, 11, 838, 8, 628, 220, 220, 220, 269, 62, 14421, 7, 89, 8, 796, 269, 62, 4908, 1046, 7, 89, 10, 71, 11, 640, 7, 19849, 4008, 198, 220, 220, 220, 269, 62, 41484, 796, 12440, 15878, 7, 19849, 13, 25928, 8, 198, 220, 220, 220, 900, 0, 7, 66, 62, 41484, 11, 269, 62, 14421, 8, 628, 220, 220, 220, 2593, 7, 7890, 7, 66, 62, 41484, 8, 764, 12, 1366, 7, 19849, 13, 82, 2122, 13, 66, 4008, 1279, 657, 13, 2713, 198, 437, 198, 198, 8818, 1332, 62, 67, 37843, 7, 4169, 2848, 28, 25, 39746, 36, 18173, 8, 198, 220, 220, 220, 406, 796, 352, 13, 15, 198, 220, 220, 220, 18919, 796, 657, 13, 16, 628, 220, 220, 220, 2746, 796, 10631, 4241, 13, 17633, 7, 45, 28, 18, 11, 406, 28, 43, 11, 509, 28, 15, 13, 15, 11, 18919, 28, 34703, 11, 2876, 2848, 28, 4169, 2848, 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, 275, 6359, 796, 10631, 4241, 13, 49646, 560, 25559, 1756, 7, 15878, 49646, 560, 25559, 1756, 7, 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, 17701, 1153, 49646, 560, 48362, 7, 15, 13, 15, 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, 17701, 1153, 49646, 560, 48362, 7, 15, 13, 15, 35514, 628, 220, 220, 220, 269, 62, 67, 696, 7, 83, 8, 796, 1033, 32590, 34703, 9, 83, 8, 198, 220, 220, 220, 269, 158, 224, 222, 7, 89, 8, 796, 269, 62, 67, 696, 7, 15, 8, 198, 220, 220, 220, 2746, 13, 82, 2122, 13, 66, 796, 269, 158, 224, 222, 628, 220, 220, 220, 11629, 378, 0, 7, 19849, 11, 352, 68, 12, 18, 11, 1802, 8, 628, 220, 220, 220, 269, 62, 14421, 7, 83, 8, 796, 269, 62, 67, 696, 7, 2435, 7, 19849, 4008, 198, 220, 220, 220, 269, 62, 41484, 796, 12440, 15878, 7, 19849, 13, 25928, 8, 198, 220, 220, 220, 900, 0, 7, 66, 62, 41484, 11, 269, 62, 14421, 8, 628, 220, 220, 220, 477, 7, 8937, 12195, 7890, 7, 66, 62, 41484, 8, 764, 12, 1366, 7, 19849, 13, 82, 2122, 13, 66, 4008, 764, 27, 352, 68, 12, 21, 8, 198, 437, 198, 198, 31, 9288, 2617, 366, 28813, 4241, 1, 2221, 198, 220, 220, 220, 2488, 9288, 1332, 62, 26069, 4241, 62, 35487, 3419, 198, 220, 220, 220, 2488, 9288, 1332, 62, 26069, 4241, 62, 2617, 62, 66, 3419, 628, 220, 220, 220, 329, 2876, 2848, 287, 2876, 11799, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1332, 62, 26069, 4241, 62, 6966, 500, 7, 4169, 2848, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1332, 62, 26069, 4241, 62, 6966, 500, 62, 5143, 62, 28446, 7, 4169, 2848, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1332, 62, 26069, 11350, 62, 69, 22564, 7, 4169, 2848, 11, 1353, 62, 69, 22564, 28, 15, 11, 4220, 62, 69, 22564, 28, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1332, 62, 26069, 11350, 62, 69, 22564, 7, 4169, 2848, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1332, 62, 324, 303, 596, 7, 4169, 2848, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 1332, 62, 67, 37843, 7, 4169, 2848, 8, 198, 220, 220, 220, 886, 198, 437, 628 ]
1.9641
1,727
using LinearAlgebra using Random using Statistics include("../utils/simula01.jl") include("../ACQR/ACQR_simula.jl") include("../utils/byrow.jl") include("ACQRS_sub.jl")
[ 3500, 44800, 2348, 29230, 198, 3500, 14534, 198, 3500, 14370, 198, 198, 17256, 7203, 40720, 26791, 14, 14323, 4712, 486, 13, 20362, 4943, 198, 17256, 7203, 40720, 2246, 48, 49, 14, 2246, 48, 49, 62, 14323, 4712, 13, 20362, 4943, 198, 17256, 7203, 40720, 26791, 14, 1525, 808, 13, 20362, 4943, 198, 198, 17256, 7203, 2246, 48, 6998, 62, 7266, 13, 20362, 4943, 198 ]
2.671875
64
@export function scr_test(sim; λ=DEFAULT_λ, indices=[37], weights=[1]) ρ0 = sim.γL ρ0 = sum(zip(indices, weights)) do (i, w) v0 = eigen(sim.H).vectors[:,i] w*v0*v0' end Γ = sim.ΓR J = sim.H - im*Γ/2 j, U = eigen(J) N = size(J, 1) _ρ_ = inv(U)*ρ0*inv(U') _Γ_ = U'Γ*U _L_ = [λ * U'L*inv(U') for L in sim.L] # function β(t) # As = Matrix{Complex{Float64}}[] # for L in _L_ # A = Matrix{Complex{Float64}}(undef, N, N) # for idx in CartesianIndices(A) # l, m = idx[1], idx[2] # if j[l] == j[m] # A[l,m] = -im * t * exp(-im*j[l]*t) * L[l,m] # else # A[l,m] = inv(j[l]- j[m]) * (exp(-im*j[l]*t)*L[l,m] - L[l,m]*exp(-im*j[m]*t)) # end # end # push!(As, U*A*inv(U)) # end # return As # end function f(t) integrated_T = sum(CartesianIndices((N, N))) do idx k, l = idx[1], idx[2] x = j[k] - j[l]' if iszero(x) return _ρ_[k,l] * _Γ_[l,k] * t else return _ρ_[k,l] * _Γ_[l,k] * im*(exp(-im*x*t) - 1) / x end end integrated_S = sum(CartesianIndices((N, N, N))) do idx l, m, n = idx[1], idx[2], idx[3] x = j[l]' - j[m]' if iszero(x) a = j[n] - j[m]' return _ρ_[n,l] * _L_[3][l,m] * _Γ_[m,n] * im*( im*t*exp(-im*a*t) / a + (exp(-im*a*t) - 1) / a^2 ) else a = j[n] - j[l]' b = j[n] - j[m]' return _ρ_[n,l] * _L_[3][l,m] * _Γ_[m,n] * inv(b - a) * im*( (exp(-im*a*t) - 1) / a - (exp(-im*b*t) - 1) / b ) # return _ρ_[n,l] * _L_[3][l,m] * _Γ_[m,n] * inv(j[l]' - j[m]') * im*( # (exp(-im*(j[n] - j[l]')*t) - 1) / (j[n] - j[l]') - # (exp(-im*(j[n] - j[m]')*t) - 1) / (j[n] - j[m]') # ) end end return integrated_T, integrated_S u = LinearAlgebra.exp!(-im*J*t) A = ρ0*u'Γ return tr(A*u), integrated_T, [tr(A*b) for b in β(t)], integrated_S end return f end @export function scr_test_full(sim; λ=DEFAULT_λ, indices=[Int(length(sim.eig.values) / 2 + 1)], weights=[1], α=1.0) ρ0 = sum(zip(indices, weights)) do (i, w) v0 = eigen(sim.H).vectors[:,i] w*v0*v0' end Γ = sim.ΓL Σ = - im * (α*sim.ΓR + sim.ΓL) / 2 J = (sim.H + Σ) ⊗ σ0 + sum(λ * map(⊗, sim.L, σ)) j, U = eigen(J) _ρ_ = inv(U) * (ρ0 ⊗ σ0) * inv(U') _Γ_ = U' * (Γ ⊗ σ0) * U _Γi_ = [U' * (Γ ⊗ σi) * U for σi in σ] N = size(J, 1) function f(t) integrated_T = sum(CartesianIndices((N, N))) do idx k, l = idx[1], idx[2] x_kl = im*(j[k] - j[l]') if iszero(x_kl) return _ρ_[k,l] * _Γ_[l,k] * t else return _ρ_[k,l] * _Γ_[l,k] * (1 - exp(-x_kl * t)) / x_kl end end integrated_S = sum(CartesianIndices((N, N))) do idx k, l = idx[1], idx[2] x_kl = im*(j[k] - j[l]') if iszero(x_kl) return _ρ_[k,l] * _Γi_[3][l,k] * t else return _ρ_[k,l] * _Γi_[3][l,k] * (1 - exp(-x_kl * t)) / x_kl end end # u = LinearAlgebra.exp!(-im*J*t) # A = (ρ0 ⊗ σ0) * u' * (Γ ⊗ σ0) return integrated_T, integrated_S#tr(A*u) end return f end # Magnet @export function scr_test_magnet(sim; λ=DEFAULT_λ, indices=[Int(length(sim.eig.values) / 2 + 1)], weights=[1], α=1.0, m=0.5) ρ0 = sum(zip(indices, weights)) do (i, w) v0 = eigen(sim.H).vectors[:,i] w*v0*v0' end Γ = α*sim.ΓR Σ = - im * (α*sim.ΓR + sim.ΓL) / 2 ΔΣ = - im * (m*sim.γL) / 2 J = ((sim.H + Σ) ⊗ σ0 + ΔΣ ⊗ σ[:z] + sum(λ * map(⊗, sim.L, σ)), (sim.H + Σ) ⊗ σ0 - ΔΣ ⊗ σ[:z] + sum(λ * map(⊗, sim.L, σ))) j, U = begin tmp = eigen.(J) map(x -> x.values, tmp), map(x -> x.vectors, tmp) end ρ = map(U -> inv(U) * (ρ0 ⊗ σ0) * inv(adjoint(U)), U) Γ = map(U -> adjoint(U) * (Γ ⊗ σ0) * U, U) N = size(J[1], 1) function f(t) integrated_T = map(j, ρ, Γ) do j, ρ, Γ T = sum(CartesianIndices((N, N))) do idx k, l = idx[1], idx[2] x_kl = im*(j[k] - j[l]') real(x_kl) < 0 && error("negative `real(x_kl)` found: $(real(x_kl))") return ρ[k,l] * Γ[l,k] * (1 - exp(-x_kl * t)) / x_kl end real(T) < 0 && error("negative `real(T)` found: $(real(T))") real(T) end return integrated_T end return f end # Calculate the photon emission @export function scr_photon_emission_full( sim; λ=DEFAULT_λ, indices=[37], weights=[1], seed = 824, W = 1e-1, rng = MersenneTwister(seed) ) ρ0 = sum(zip(indices, weights)) do (i, w) v0 = sim.eig.vectors[:,i] w*v0*v0' end Γ = sim.ΓR J = (sim.H - im*Γ/2) ⊗ σ0 + sum(λ * Li ⊗ σi for (Li, σi) in zip(sim.L, σ)) j, U = eigen(J) N = size(J, 1) V = let local i, j = rand(rng, 1:size(sim.H, 1), 2) while i == j i, j = rand(rng, 1:N, 2) end W*sim.eig.vectors[:,i]*sim.eig.vectors[:,j]' end _ρ_ = inv(U) * (ρ0 ⊗ σ0) * inv(U') _Γ_ = U' * (Γ ⊗ σ0) * U _V_ = inv(U) * (V ⊗ σ0) * U function f() K(a, b) = inv(j[a]' - j[b]) K_(a, b) = inv(j[a]' - j[b]') output = sum(CartesianIndices((N, N, N, N))) do idx k, l, m, n = idx[1], idx[2], idx[3], idx[4] X = 2π*im * _ρ_[k,l] * _V_'[l,m] * _Γ_[m,n] * _V_[m,n] if iszero(j[l]' - j[m]') return -X * K(l,n) * K(m,k) * (K(l,n) + K(m,k)) else return X * K_(l,m) * (K(l,n)*K(l,k) - K(m,n)*K(m,k)) end end return output end return f end ################################################## @export function scr_magnet(sim; E=sim.μ, λ=DEFAULT_λ, m=0.5, n=1, α=0.0, ϕ=0) ρ0 = let v0 = eigenstate(sim, E = E, ϕ=ϕ) 0.5 * v0*v0' end Γ = sim.ΓL Σ = - im * (α*sim.ΓL + sim.ΓR) / 2 ΔΣ = - im * (m*sim.ΔΓR) / 2 J = ((sim.H + Σ) ⊗ σ0 + ΔΣ ⊗ σ[:z] + sum(λ * map(⊗, sim.L, σ)), (sim.H + Σ) ⊗ σ0 - ΔΣ ⊗ σ[:z] + sum(λ * map(⊗, sim.L, σ))) j, U = begin tmp = eigen.(J) map(x -> x.values, tmp), map(x -> x.vectors, tmp) end ρ = map(U -> inv(U) * (ρ0 ⊗ σ0) * inv(adjoint(U)), U) Γ = map(U -> adjoint(U) * (Γ ⊗ σ0) * U, U) N = size(J[1], 1) Ts = map(j, ρ, Γ) do j, ρ, Γ T = sum(CartesianIndices((N, N))) do idx k, l = idx[1], idx[2] x_kl = im*(j[k] - j[l]') real(x_kl) < 0 && error("negative `real(x_kl)` found: $(real(x_kl))") return ρ[k,l] * Γ[l,k] / x_kl end real(T) < 0 && error("negative `real(T)` found: $(real(T))") real(T) end return (Ts = Ts,) end @export function time_dependent_escape( sim; E = sim.μ, λ = DEFAULT_λ, m = 1.0, α = DEFAULT_α, ϕ = 0, hbar = HBAR ) ρ0 = let v0 = eigenstate(sim, E = E, ϕ=ϕ) v0*v0' end Γ = α*sim.ΓR Σ = - im * α*sim.ΓR / 2 J = (sim.H + Σ) ⊗ σ0 + sum(λ * map(⊗, sim.L, σ)) j, U = eigen(J) N = length(j) ρ = inv(U) * (ρ0 ⊗ ((σ0 + m * σ[:z]) / 2)) * inv(adjoint(U)) Γ = adjoint(U) * (Γ ⊗ σ0) * U ξs = map(CartesianIndices((N, N))) do idx k, l = idx[1], idx[2] x_kl = im*(j[k] - j[l]') real(x_kl) < 0 && error("negative `real(x_kl)` found: $(real(x_kl))") return x_kl end Ts = map(CartesianIndices((N, N))) do idx k, l = idx[1], idx[2] x_kl = im*(j[k] - j[l]') real(x_kl) < 0 && error("negative `real(x_kl)` found: $(real(x_kl))") return ρ[k,l] * Γ[l,k] / x_kl end fs = map(CartesianIndices((N, N))) do idx k, l = idx[1], idx[2] x_kl = im*(j[k] - j[l]') real(x_kl) < 0 && error("negative `real(x_kl)` found: $(real(x_kl))") return f(t) = 1 - exp(-x_kl * t / hbar) end return (ξs = ξs, Ts = Ts, fs = fs) end @export function scr_f( δx = 0.0, δy = 0.1; t0 = 0, t1 = 1, nsamples = 500, ts = range(t0, t1, length=nsamples), seed = 42, α = 1, ) x0, y0, y1 = let xsymbol = :δz x0 = 0.8 y0 = -4.2 mol = Helicene(N=7) x0, y0, y1 = TheoryOfCISS.find_crossing( x0, y0, mol, xsymbol = xsymbol, threshold=1e-12, attenuation=1e-2, rounding = :both ) end x = x0 y = (y0 + y1) / 2 cols_up = gen_bands(Helicene(N=7), xsymbol = :δz, bounds=(x + δx, x + δx), nsamples=1, seed=seed); cols_down = gen_bands(Helicene(N=7), xsymbol = :δz, bounds=(x + δx, x + δx), nsamples=1, seed=seed); gen_on_bands!(cols_up, ysymbol=:E, f = time_dependent_escape, m=1.0, bounds=(y - δy, y + δy), α=α); gen_on_bands!(cols_down, ysymbol=:E, f = time_dependent_escape, m=-1.0, bounds=(y - δy, y + δy), α=α); _f(t, x) = sum(map((T, f) -> T * f(t), x.Ts, x.fs)) f_x(t, i) = real(_f(t, cols_up[1].data[i])), real(_f(t, cols_down[1].data[i])) f_xs = map(i -> mapreduce(t -> [f_x(t, i)...]', vcat, ts), 1:2) pol(a, b) = 100 * !iszero(a - b) * ((a - b) / (a + b)) dat = map(x -> map(i -> pol(i...), eachrow(x)), f_xs) return ts, f_xs, dat end
[ 31, 39344, 2163, 6040, 62, 9288, 7, 14323, 26, 7377, 119, 28, 7206, 38865, 62, 39377, 11, 36525, 41888, 2718, 4357, 19590, 41888, 16, 12962, 198, 220, 220, 220, 18074, 223, 15, 796, 985, 13, 42063, 43, 198, 220, 220, 220, 18074, 223, 15, 796, 2160, 7, 13344, 7, 521, 1063, 11, 19590, 4008, 466, 357, 72, 11, 266, 8, 198, 220, 220, 220, 220, 220, 220, 220, 410, 15, 796, 304, 9324, 7, 14323, 13, 39, 737, 303, 5217, 58, 45299, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 266, 9, 85, 15, 9, 85, 15, 6, 198, 220, 220, 220, 886, 198, 220, 220, 220, 7377, 241, 796, 985, 13, 138, 241, 49, 628, 220, 220, 220, 449, 796, 985, 13, 39, 532, 545, 9, 138, 241, 14, 17, 198, 220, 220, 220, 474, 11, 471, 796, 304, 9324, 7, 41, 8, 198, 220, 220, 220, 399, 796, 2546, 7, 41, 11, 352, 8, 628, 220, 220, 220, 4808, 33643, 62, 796, 800, 7, 52, 27493, 33643, 15, 9, 16340, 7, 52, 11537, 198, 220, 220, 220, 4808, 138, 241, 62, 796, 471, 6, 138, 241, 9, 52, 198, 220, 220, 220, 4808, 43, 62, 796, 685, 39377, 1635, 471, 6, 43, 9, 16340, 7, 52, 11537, 329, 406, 287, 985, 13, 43, 60, 628, 220, 220, 220, 1303, 2163, 27169, 7, 83, 8, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 1081, 796, 24936, 90, 5377, 11141, 90, 43879, 2414, 11709, 21737, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 329, 406, 287, 4808, 43, 62, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 317, 796, 24936, 90, 5377, 11141, 90, 43879, 2414, 11709, 7, 917, 891, 11, 399, 11, 399, 8, 628, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 329, 4686, 87, 287, 13690, 35610, 5497, 1063, 7, 32, 8, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 11, 285, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 60, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 474, 58, 75, 60, 6624, 474, 58, 76, 60, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 317, 58, 75, 11, 76, 60, 796, 532, 320, 1635, 256, 1635, 1033, 32590, 320, 9, 73, 58, 75, 60, 9, 83, 8, 1635, 406, 58, 75, 11, 76, 60, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 317, 58, 75, 11, 76, 60, 796, 800, 7, 73, 58, 75, 45297, 474, 58, 76, 12962, 1635, 357, 11201, 32590, 320, 9, 73, 58, 75, 60, 9, 83, 27493, 43, 58, 75, 11, 76, 60, 532, 406, 58, 75, 11, 76, 60, 9, 11201, 32590, 320, 9, 73, 58, 76, 60, 9, 83, 4008, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 1722, 11, 471, 9, 32, 9, 16340, 7, 52, 4008, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 886, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 1441, 1081, 198, 220, 220, 220, 1303, 886, 628, 220, 220, 220, 2163, 277, 7, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 11521, 62, 51, 796, 2160, 7, 43476, 35610, 5497, 1063, 19510, 45, 11, 399, 22305, 466, 4686, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 11, 300, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 474, 58, 74, 60, 532, 474, 58, 75, 49946, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 22570, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 4808, 33643, 62, 58, 74, 11, 75, 60, 1635, 4808, 138, 241, 62, 58, 75, 11, 74, 60, 1635, 256, 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, 1441, 4808, 33643, 62, 58, 74, 11, 75, 60, 1635, 4808, 138, 241, 62, 58, 75, 11, 74, 60, 1635, 545, 9, 7, 11201, 32590, 320, 9, 87, 9, 83, 8, 532, 352, 8, 1220, 2124, 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, 11521, 62, 50, 796, 2160, 7, 43476, 35610, 5497, 1063, 19510, 45, 11, 399, 11, 399, 22305, 466, 4686, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 11, 285, 11, 299, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 4357, 4686, 87, 58, 18, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 474, 58, 75, 49946, 532, 474, 58, 76, 49946, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 22570, 7, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 257, 796, 474, 58, 77, 60, 532, 474, 58, 76, 49946, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 4808, 33643, 62, 58, 77, 11, 75, 60, 1635, 4808, 43, 62, 58, 18, 7131, 75, 11, 76, 60, 1635, 4808, 138, 241, 62, 58, 76, 11, 77, 60, 1635, 545, 9, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 9, 83, 9, 11201, 32590, 320, 9, 64, 9, 83, 8, 1220, 257, 1343, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 11201, 32590, 320, 9, 64, 9, 83, 8, 532, 352, 8, 1220, 257, 61, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 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, 257, 796, 474, 58, 77, 60, 532, 474, 58, 75, 49946, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 474, 58, 77, 60, 532, 474, 58, 76, 49946, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 4808, 33643, 62, 58, 77, 11, 75, 60, 1635, 4808, 43, 62, 58, 18, 7131, 75, 11, 76, 60, 1635, 4808, 138, 241, 62, 58, 76, 11, 77, 60, 1635, 800, 7, 65, 532, 257, 8, 1635, 545, 9, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 11201, 32590, 320, 9, 64, 9, 83, 8, 532, 352, 8, 1220, 257, 532, 357, 11201, 32590, 320, 9, 65, 9, 83, 8, 532, 352, 8, 1220, 275, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1441, 4808, 33643, 62, 58, 77, 11, 75, 60, 1635, 4808, 43, 62, 58, 18, 7131, 75, 11, 76, 60, 1635, 4808, 138, 241, 62, 58, 76, 11, 77, 60, 1635, 800, 7, 73, 58, 75, 49946, 532, 474, 58, 76, 60, 11537, 1635, 545, 9, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 220, 357, 11201, 32590, 320, 9, 7, 73, 58, 77, 60, 532, 474, 58, 75, 60, 11537, 9, 83, 8, 532, 352, 8, 1220, 357, 73, 58, 77, 60, 532, 474, 58, 75, 60, 11537, 532, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 220, 357, 11201, 32590, 320, 9, 7, 73, 58, 77, 60, 532, 474, 58, 76, 60, 11537, 9, 83, 8, 532, 352, 8, 1220, 357, 73, 58, 77, 60, 532, 474, 58, 76, 60, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1267, 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, 1441, 11521, 62, 51, 11, 11521, 62, 50, 198, 220, 220, 220, 220, 220, 220, 220, 334, 796, 44800, 2348, 29230, 13, 11201, 0, 32590, 320, 9, 41, 9, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 317, 796, 18074, 223, 15, 9, 84, 6, 138, 241, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 491, 7, 32, 9, 84, 828, 11521, 62, 51, 11, 685, 2213, 7, 32, 9, 65, 8, 329, 275, 287, 27169, 7, 83, 8, 4357, 11521, 62, 50, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 277, 198, 437, 628, 198, 31, 39344, 2163, 6040, 62, 9288, 62, 12853, 7, 14323, 26, 7377, 119, 28, 7206, 38865, 62, 39377, 11, 36525, 41888, 5317, 7, 13664, 7, 14323, 13, 68, 328, 13, 27160, 8, 1220, 362, 1343, 352, 8, 4357, 19590, 41888, 16, 4357, 26367, 28, 16, 13, 15, 8, 198, 220, 220, 220, 18074, 223, 15, 796, 2160, 7, 13344, 7, 521, 1063, 11, 19590, 4008, 466, 357, 72, 11, 266, 8, 198, 220, 220, 220, 220, 220, 220, 220, 410, 15, 796, 304, 9324, 7, 14323, 13, 39, 737, 303, 5217, 58, 45299, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 266, 9, 85, 15, 9, 85, 15, 6, 198, 220, 220, 220, 886, 198, 220, 220, 220, 7377, 241, 796, 985, 13, 138, 241, 43, 198, 220, 220, 220, 7377, 96, 796, 532, 545, 1635, 357, 17394, 9, 14323, 13, 138, 241, 49, 1343, 985, 13, 138, 241, 43, 8, 1220, 362, 628, 220, 220, 220, 449, 796, 357, 14323, 13, 39, 1343, 7377, 96, 8, 2343, 232, 245, 18074, 225, 15, 1343, 2160, 7, 39377, 1635, 3975, 7, 158, 232, 245, 11, 985, 13, 43, 11, 18074, 225, 4008, 198, 220, 220, 220, 474, 11, 471, 796, 304, 9324, 7, 41, 8, 628, 220, 220, 220, 4808, 33643, 62, 796, 800, 7, 52, 8, 1635, 357, 33643, 15, 2343, 232, 245, 18074, 225, 15, 8, 1635, 800, 7, 52, 11537, 198, 220, 220, 220, 4808, 138, 241, 62, 796, 471, 6, 1635, 357, 138, 241, 2343, 232, 245, 18074, 225, 15, 8, 1635, 471, 198, 220, 220, 220, 4808, 138, 241, 72, 62, 796, 685, 52, 6, 1635, 357, 138, 241, 2343, 232, 245, 18074, 225, 72, 8, 1635, 471, 329, 18074, 225, 72, 287, 18074, 225, 60, 628, 220, 220, 220, 399, 796, 2546, 7, 41, 11, 352, 8, 628, 220, 220, 220, 2163, 277, 7, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 11521, 62, 51, 796, 2160, 7, 43476, 35610, 5497, 1063, 19510, 45, 11, 399, 22305, 466, 4686, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 11, 300, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 41582, 796, 545, 9, 7, 73, 58, 74, 60, 532, 474, 58, 75, 60, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 22570, 7, 87, 62, 41582, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 4808, 33643, 62, 58, 74, 11, 75, 60, 1635, 4808, 138, 241, 62, 58, 75, 11, 74, 60, 1635, 256, 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, 1441, 4808, 33643, 62, 58, 74, 11, 75, 60, 1635, 4808, 138, 241, 62, 58, 75, 11, 74, 60, 1635, 357, 16, 532, 1033, 32590, 87, 62, 41582, 1635, 256, 4008, 1220, 2124, 62, 41582, 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, 11521, 62, 50, 796, 2160, 7, 43476, 35610, 5497, 1063, 19510, 45, 11, 399, 22305, 466, 4686, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 11, 300, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 41582, 796, 545, 9, 7, 73, 58, 74, 60, 532, 474, 58, 75, 60, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 22570, 7, 87, 62, 41582, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 4808, 33643, 62, 58, 74, 11, 75, 60, 1635, 4808, 138, 241, 72, 62, 58, 18, 7131, 75, 11, 74, 60, 1635, 256, 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, 1441, 4808, 33643, 62, 58, 74, 11, 75, 60, 1635, 4808, 138, 241, 72, 62, 58, 18, 7131, 75, 11, 74, 60, 1635, 357, 16, 532, 1033, 32590, 87, 62, 41582, 1635, 256, 4008, 1220, 2124, 62, 41582, 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, 334, 796, 44800, 2348, 29230, 13, 11201, 0, 32590, 320, 9, 41, 9, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 317, 796, 357, 33643, 15, 2343, 232, 245, 18074, 225, 15, 8, 1635, 334, 6, 1635, 357, 138, 241, 2343, 232, 245, 18074, 225, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 11521, 62, 51, 11, 11521, 62, 50, 2, 2213, 7, 32, 9, 84, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 277, 198, 437, 198, 198, 2, 32079, 198, 31, 39344, 2163, 6040, 62, 9288, 62, 19726, 3262, 7, 14323, 26, 7377, 119, 28, 7206, 38865, 62, 39377, 11, 36525, 41888, 5317, 7, 13664, 7, 14323, 13, 68, 328, 13, 27160, 8, 1220, 362, 1343, 352, 8, 4357, 19590, 41888, 16, 4357, 26367, 28, 16, 13, 15, 11, 285, 28, 15, 13, 20, 8, 198, 220, 220, 220, 18074, 223, 15, 796, 2160, 7, 13344, 7, 521, 1063, 11, 19590, 4008, 466, 357, 72, 11, 266, 8, 198, 220, 220, 220, 220, 220, 220, 220, 410, 15, 796, 304, 9324, 7, 14323, 13, 39, 737, 303, 5217, 58, 45299, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 266, 9, 85, 15, 9, 85, 15, 6, 198, 220, 220, 220, 886, 198, 220, 220, 220, 7377, 241, 796, 26367, 9, 14323, 13, 138, 241, 49, 198, 220, 220, 220, 7377, 96, 796, 532, 545, 1635, 357, 17394, 9, 14323, 13, 138, 241, 49, 1343, 985, 13, 138, 241, 43, 8, 1220, 362, 198, 220, 220, 220, 37455, 138, 96, 796, 532, 545, 1635, 357, 76, 9, 14323, 13, 42063, 43, 8, 1220, 362, 628, 220, 220, 220, 449, 796, 14808, 14323, 13, 39, 1343, 7377, 96, 8, 2343, 232, 245, 18074, 225, 15, 1343, 37455, 138, 96, 2343, 232, 245, 18074, 225, 58, 25, 89, 60, 1343, 2160, 7, 39377, 1635, 3975, 7, 158, 232, 245, 11, 985, 13, 43, 11, 18074, 225, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 220, 357, 14323, 13, 39, 1343, 7377, 96, 8, 2343, 232, 245, 18074, 225, 15, 532, 37455, 138, 96, 2343, 232, 245, 18074, 225, 58, 25, 89, 60, 1343, 2160, 7, 39377, 1635, 3975, 7, 158, 232, 245, 11, 985, 13, 43, 11, 18074, 225, 22305, 198, 220, 220, 220, 474, 11, 471, 796, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 45218, 796, 304, 9324, 12195, 41, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3975, 7, 87, 4613, 2124, 13, 27160, 11, 45218, 828, 3975, 7, 87, 4613, 2124, 13, 303, 5217, 11, 45218, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 18074, 223, 796, 3975, 7, 52, 4613, 800, 7, 52, 8, 1635, 357, 33643, 15, 2343, 232, 245, 18074, 225, 15, 8, 1635, 800, 7, 41255, 1563, 7, 52, 36911, 471, 8, 198, 220, 220, 220, 7377, 241, 796, 3975, 7, 52, 4613, 9224, 1563, 7, 52, 8, 1635, 357, 138, 241, 2343, 232, 245, 18074, 225, 15, 8, 1635, 471, 11, 471, 8, 628, 220, 220, 220, 399, 796, 2546, 7, 41, 58, 16, 4357, 352, 8, 628, 220, 220, 220, 2163, 277, 7, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 11521, 62, 51, 796, 3975, 7, 73, 11, 18074, 223, 11, 7377, 241, 8, 466, 474, 11, 18074, 223, 11, 7377, 241, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 309, 796, 2160, 7, 43476, 35610, 5497, 1063, 19510, 45, 11, 399, 22305, 466, 4686, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 11, 300, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 41582, 796, 545, 9, 7, 73, 58, 74, 60, 532, 474, 58, 75, 60, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1103, 7, 87, 62, 41582, 8, 1279, 657, 11405, 4049, 7203, 31591, 4600, 5305, 7, 87, 62, 41582, 8, 63, 1043, 25, 29568, 5305, 7, 87, 62, 41582, 4008, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 18074, 223, 58, 74, 11, 75, 60, 1635, 7377, 241, 58, 75, 11, 74, 60, 1635, 357, 16, 532, 1033, 32590, 87, 62, 41582, 1635, 256, 4008, 1220, 2124, 62, 41582, 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, 1103, 7, 51, 8, 1279, 657, 11405, 4049, 7203, 31591, 4600, 5305, 7, 51, 8, 63, 1043, 25, 29568, 5305, 7, 51, 4008, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1103, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 11521, 62, 51, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 277, 198, 437, 198, 198, 2, 27131, 378, 262, 48190, 25592, 198, 31, 39344, 2163, 6040, 62, 746, 18970, 62, 368, 1480, 62, 12853, 7, 198, 220, 220, 220, 985, 26, 198, 220, 220, 220, 7377, 119, 28, 7206, 38865, 62, 39377, 11, 198, 220, 220, 220, 36525, 41888, 2718, 4357, 198, 220, 220, 220, 19590, 41888, 16, 4357, 198, 220, 220, 220, 9403, 796, 807, 1731, 11, 198, 220, 220, 220, 370, 796, 352, 68, 12, 16, 11, 198, 220, 220, 220, 374, 782, 796, 337, 364, 29727, 5080, 1694, 7, 28826, 8, 198, 8, 198, 220, 220, 220, 18074, 223, 15, 796, 2160, 7, 13344, 7, 521, 1063, 11, 19590, 4008, 466, 357, 72, 11, 266, 8, 198, 220, 220, 220, 220, 220, 220, 220, 410, 15, 796, 985, 13, 68, 328, 13, 303, 5217, 58, 45299, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 266, 9, 85, 15, 9, 85, 15, 6, 198, 220, 220, 220, 886, 198, 220, 220, 220, 7377, 241, 796, 985, 13, 138, 241, 49, 628, 220, 220, 220, 449, 796, 357, 14323, 13, 39, 532, 545, 9, 138, 241, 14, 17, 8, 2343, 232, 245, 18074, 225, 15, 1343, 2160, 7, 39377, 1635, 7455, 2343, 232, 245, 18074, 225, 72, 329, 357, 32304, 11, 18074, 225, 72, 8, 287, 19974, 7, 14323, 13, 43, 11, 18074, 225, 4008, 198, 220, 220, 220, 474, 11, 471, 796, 304, 9324, 7, 41, 8, 198, 220, 220, 220, 399, 796, 2546, 7, 41, 11, 352, 8, 628, 220, 220, 220, 569, 796, 1309, 198, 220, 220, 220, 220, 220, 220, 220, 1957, 1312, 11, 474, 796, 43720, 7, 81, 782, 11, 352, 25, 7857, 7, 14323, 13, 39, 11, 352, 828, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 981, 1312, 6624, 474, 1312, 11, 474, 796, 43720, 7, 81, 782, 11, 352, 25, 45, 11, 362, 8, 886, 198, 220, 220, 220, 220, 220, 220, 220, 370, 9, 14323, 13, 68, 328, 13, 303, 5217, 58, 45299, 72, 60, 9, 14323, 13, 68, 328, 13, 303, 5217, 58, 45299, 73, 49946, 198, 220, 220, 220, 886, 628, 220, 220, 220, 4808, 33643, 62, 796, 800, 7, 52, 8, 1635, 357, 33643, 15, 2343, 232, 245, 18074, 225, 15, 8, 1635, 800, 7, 52, 11537, 198, 220, 220, 220, 4808, 138, 241, 62, 796, 471, 6, 1635, 357, 138, 241, 2343, 232, 245, 18074, 225, 15, 8, 1635, 471, 198, 220, 220, 220, 4808, 53, 62, 796, 800, 7, 52, 8, 1635, 357, 53, 2343, 232, 245, 18074, 225, 15, 8, 1635, 471, 628, 220, 220, 220, 2163, 277, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 509, 7, 64, 11, 275, 8, 796, 800, 7, 73, 58, 64, 49946, 532, 474, 58, 65, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 509, 41052, 64, 11, 275, 8, 796, 800, 7, 73, 58, 64, 49946, 532, 474, 58, 65, 60, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 2160, 7, 43476, 35610, 5497, 1063, 19510, 45, 11, 399, 11, 399, 11, 399, 22305, 466, 4686, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 11, 300, 11, 285, 11, 299, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 4357, 4686, 87, 58, 18, 4357, 4686, 87, 58, 19, 60, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1395, 796, 362, 46582, 9, 320, 1635, 4808, 33643, 62, 58, 74, 11, 75, 60, 1635, 4808, 53, 62, 6, 58, 75, 11, 76, 60, 1635, 4808, 138, 241, 62, 58, 76, 11, 77, 60, 1635, 4808, 53, 62, 58, 76, 11, 77, 60, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 22570, 7, 73, 58, 75, 49946, 532, 474, 58, 76, 60, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 532, 55, 1635, 509, 7, 75, 11, 77, 8, 1635, 509, 7, 76, 11, 74, 8, 1635, 357, 42, 7, 75, 11, 77, 8, 1343, 509, 7, 76, 11, 74, 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, 1441, 1395, 1635, 509, 41052, 75, 11, 76, 8, 1635, 357, 42, 7, 75, 11, 77, 27493, 42, 7, 75, 11, 74, 8, 532, 509, 7, 76, 11, 77, 27493, 42, 7, 76, 11, 74, 4008, 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, 1441, 5072, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 277, 198, 437, 198, 198, 29113, 14468, 2235, 198, 198, 31, 39344, 2163, 6040, 62, 19726, 3262, 7, 14323, 26, 412, 28, 14323, 13, 34703, 11, 7377, 119, 28, 7206, 38865, 62, 39377, 11, 285, 28, 15, 13, 20, 11, 299, 28, 16, 11, 26367, 28, 15, 13, 15, 11, 18074, 243, 28, 15, 8, 198, 220, 220, 220, 18074, 223, 15, 796, 1309, 198, 220, 220, 220, 220, 220, 220, 220, 410, 15, 796, 304, 9324, 5219, 7, 14323, 11, 412, 796, 412, 11, 18074, 243, 28, 139, 243, 8, 198, 220, 220, 220, 220, 220, 220, 220, 657, 13, 20, 1635, 410, 15, 9, 85, 15, 6, 198, 220, 220, 220, 886, 628, 220, 220, 220, 7377, 241, 796, 985, 13, 138, 241, 43, 198, 220, 220, 220, 7377, 96, 796, 532, 545, 1635, 357, 17394, 9, 14323, 13, 138, 241, 43, 1343, 985, 13, 138, 241, 49, 8, 1220, 362, 198, 220, 220, 220, 37455, 138, 96, 796, 532, 545, 1635, 357, 76, 9, 14323, 13, 138, 242, 138, 241, 49, 8, 1220, 362, 628, 220, 220, 220, 449, 796, 14808, 14323, 13, 39, 1343, 7377, 96, 8, 2343, 232, 245, 18074, 225, 15, 1343, 37455, 138, 96, 2343, 232, 245, 18074, 225, 58, 25, 89, 60, 1343, 2160, 7, 39377, 1635, 3975, 7, 158, 232, 245, 11, 985, 13, 43, 11, 18074, 225, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 220, 357, 14323, 13, 39, 1343, 7377, 96, 8, 2343, 232, 245, 18074, 225, 15, 532, 37455, 138, 96, 2343, 232, 245, 18074, 225, 58, 25, 89, 60, 1343, 2160, 7, 39377, 1635, 3975, 7, 158, 232, 245, 11, 985, 13, 43, 11, 18074, 225, 22305, 198, 220, 220, 220, 474, 11, 471, 796, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 45218, 796, 304, 9324, 12195, 41, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3975, 7, 87, 4613, 2124, 13, 27160, 11, 45218, 828, 3975, 7, 87, 4613, 2124, 13, 303, 5217, 11, 45218, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 18074, 223, 796, 3975, 7, 52, 4613, 800, 7, 52, 8, 1635, 357, 33643, 15, 2343, 232, 245, 18074, 225, 15, 8, 1635, 800, 7, 41255, 1563, 7, 52, 36911, 471, 8, 198, 220, 220, 220, 7377, 241, 796, 3975, 7, 52, 4613, 9224, 1563, 7, 52, 8, 1635, 357, 138, 241, 2343, 232, 245, 18074, 225, 15, 8, 1635, 471, 11, 471, 8, 628, 220, 220, 220, 399, 796, 2546, 7, 41, 58, 16, 4357, 352, 8, 628, 220, 220, 220, 13146, 796, 3975, 7, 73, 11, 18074, 223, 11, 7377, 241, 8, 466, 474, 11, 18074, 223, 11, 7377, 241, 198, 220, 220, 220, 220, 220, 220, 220, 309, 796, 2160, 7, 43476, 35610, 5497, 1063, 19510, 45, 11, 399, 22305, 466, 4686, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 11, 300, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 41582, 796, 545, 9, 7, 73, 58, 74, 60, 532, 474, 58, 75, 60, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1103, 7, 87, 62, 41582, 8, 1279, 657, 11405, 4049, 7203, 31591, 4600, 5305, 7, 87, 62, 41582, 8, 63, 1043, 25, 29568, 5305, 7, 87, 62, 41582, 4008, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 18074, 223, 58, 74, 11, 75, 60, 1635, 7377, 241, 58, 75, 11, 74, 60, 1220, 2124, 62, 41582, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1103, 7, 51, 8, 1279, 657, 11405, 4049, 7203, 31591, 4600, 5305, 7, 51, 8, 63, 1043, 25, 29568, 5305, 7, 51, 4008, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1103, 7, 51, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 357, 33758, 796, 13146, 35751, 198, 437, 198, 198, 31, 39344, 2163, 640, 62, 21186, 62, 41915, 7, 198, 220, 220, 220, 985, 26, 198, 220, 220, 220, 412, 796, 985, 13, 34703, 11, 198, 220, 220, 220, 7377, 119, 796, 5550, 38865, 62, 39377, 11, 198, 220, 220, 220, 285, 796, 352, 13, 15, 11, 198, 220, 220, 220, 26367, 796, 5550, 38865, 62, 17394, 11, 198, 220, 220, 220, 18074, 243, 796, 657, 11, 198, 220, 220, 220, 289, 5657, 796, 25997, 1503, 198, 8, 198, 220, 220, 220, 18074, 223, 15, 796, 1309, 198, 220, 220, 220, 220, 220, 220, 220, 410, 15, 796, 304, 9324, 5219, 7, 14323, 11, 412, 796, 412, 11, 18074, 243, 28, 139, 243, 8, 198, 220, 220, 220, 220, 220, 220, 220, 410, 15, 9, 85, 15, 6, 198, 220, 220, 220, 886, 628, 220, 220, 220, 7377, 241, 796, 26367, 9, 14323, 13, 138, 241, 49, 198, 220, 220, 220, 7377, 96, 796, 532, 545, 1635, 26367, 9, 14323, 13, 138, 241, 49, 1220, 362, 628, 220, 220, 220, 449, 796, 357, 14323, 13, 39, 1343, 7377, 96, 8, 2343, 232, 245, 18074, 225, 15, 1343, 2160, 7, 39377, 1635, 3975, 7, 158, 232, 245, 11, 985, 13, 43, 11, 18074, 225, 4008, 198, 220, 220, 220, 474, 11, 471, 796, 304, 9324, 7, 41, 8, 198, 220, 220, 220, 399, 796, 4129, 7, 73, 8, 628, 220, 220, 220, 18074, 223, 796, 800, 7, 52, 8, 1635, 357, 33643, 15, 2343, 232, 245, 14808, 38392, 15, 1343, 285, 1635, 18074, 225, 58, 25, 89, 12962, 1220, 362, 4008, 1635, 800, 7, 41255, 1563, 7, 52, 4008, 198, 220, 220, 220, 7377, 241, 796, 9224, 1563, 7, 52, 8, 1635, 357, 138, 241, 2343, 232, 245, 18074, 225, 15, 8, 1635, 471, 628, 220, 220, 220, 7377, 122, 82, 796, 3975, 7, 43476, 35610, 5497, 1063, 19510, 45, 11, 399, 22305, 466, 4686, 87, 198, 220, 220, 220, 220, 220, 220, 220, 479, 11, 300, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 41582, 796, 545, 9, 7, 73, 58, 74, 60, 532, 474, 58, 75, 60, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1103, 7, 87, 62, 41582, 8, 1279, 657, 11405, 4049, 7203, 31591, 4600, 5305, 7, 87, 62, 41582, 8, 63, 1043, 25, 29568, 5305, 7, 87, 62, 41582, 4008, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2124, 62, 41582, 198, 220, 220, 220, 886, 198, 220, 220, 220, 13146, 796, 3975, 7, 43476, 35610, 5497, 1063, 19510, 45, 11, 399, 22305, 466, 4686, 87, 198, 220, 220, 220, 220, 220, 220, 220, 479, 11, 300, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 41582, 796, 545, 9, 7, 73, 58, 74, 60, 532, 474, 58, 75, 60, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1103, 7, 87, 62, 41582, 8, 1279, 657, 11405, 4049, 7203, 31591, 4600, 5305, 7, 87, 62, 41582, 8, 63, 1043, 25, 29568, 5305, 7, 87, 62, 41582, 4008, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 18074, 223, 58, 74, 11, 75, 60, 1635, 7377, 241, 58, 75, 11, 74, 60, 1220, 2124, 62, 41582, 198, 220, 220, 220, 886, 198, 220, 220, 220, 43458, 796, 3975, 7, 43476, 35610, 5497, 1063, 19510, 45, 11, 399, 22305, 466, 4686, 87, 198, 220, 220, 220, 220, 220, 220, 220, 479, 11, 300, 796, 4686, 87, 58, 16, 4357, 4686, 87, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 41582, 796, 545, 9, 7, 73, 58, 74, 60, 532, 474, 58, 75, 60, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 1103, 7, 87, 62, 41582, 8, 1279, 657, 11405, 4049, 7203, 31591, 4600, 5305, 7, 87, 62, 41582, 8, 63, 1043, 25, 29568, 5305, 7, 87, 62, 41582, 4008, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 277, 7, 83, 8, 796, 352, 532, 1033, 32590, 87, 62, 41582, 1635, 256, 1220, 289, 5657, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 357, 138, 122, 82, 796, 7377, 122, 82, 11, 13146, 796, 13146, 11, 43458, 796, 43458, 8, 198, 437, 198, 198, 31, 39344, 2163, 6040, 62, 69, 7, 198, 220, 220, 220, 7377, 112, 87, 796, 657, 13, 15, 11, 198, 220, 220, 220, 7377, 112, 88, 796, 657, 13, 16, 26, 198, 220, 220, 220, 256, 15, 796, 657, 11, 198, 220, 220, 220, 256, 16, 796, 352, 11, 198, 220, 220, 220, 36545, 12629, 796, 5323, 11, 198, 220, 220, 220, 40379, 796, 2837, 7, 83, 15, 11, 256, 16, 11, 4129, 28, 5907, 12629, 828, 198, 220, 220, 220, 9403, 796, 5433, 11, 198, 220, 220, 220, 26367, 796, 352, 11, 198, 8, 198, 220, 220, 220, 2124, 15, 11, 331, 15, 11, 331, 16, 796, 1309, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 1837, 23650, 796, 1058, 138, 112, 89, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 15, 796, 657, 13, 23, 198, 220, 220, 220, 220, 220, 220, 220, 331, 15, 796, 532, 19, 13, 17, 198, 220, 220, 220, 220, 220, 220, 220, 18605, 796, 48574, 1734, 7, 45, 28, 22, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2124, 15, 11, 331, 15, 11, 331, 16, 796, 17003, 5189, 34, 16744, 13, 19796, 62, 19692, 278, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 15, 11, 331, 15, 11, 18605, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 1837, 23650, 796, 2124, 1837, 23650, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11387, 28, 16, 68, 12, 1065, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31919, 2288, 28, 16, 68, 12, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 38185, 796, 1058, 16885, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2124, 796, 2124, 15, 198, 220, 220, 220, 331, 796, 357, 88, 15, 1343, 331, 16, 8, 1220, 362, 628, 220, 220, 220, 951, 82, 62, 929, 796, 2429, 62, 21397, 7, 12621, 291, 1734, 7, 45, 28, 22, 828, 2124, 1837, 23650, 796, 1058, 138, 112, 89, 11, 22303, 16193, 87, 1343, 7377, 112, 87, 11, 2124, 1343, 7377, 112, 87, 828, 36545, 12629, 28, 16, 11, 9403, 28, 28826, 1776, 198, 220, 220, 220, 951, 82, 62, 2902, 796, 2429, 62, 21397, 7, 12621, 291, 1734, 7, 45, 28, 22, 828, 2124, 1837, 23650, 796, 1058, 138, 112, 89, 11, 22303, 16193, 87, 1343, 7377, 112, 87, 11, 2124, 1343, 7377, 112, 87, 828, 36545, 12629, 28, 16, 11, 9403, 28, 28826, 1776, 628, 220, 220, 220, 2429, 62, 261, 62, 21397, 0, 7, 4033, 82, 62, 929, 11, 331, 1837, 23650, 28, 25, 36, 11, 277, 796, 640, 62, 21186, 62, 41915, 11, 285, 28, 16, 13, 15, 11, 22303, 16193, 88, 532, 7377, 112, 88, 11, 331, 1343, 7377, 112, 88, 828, 26367, 28, 17394, 1776, 198, 220, 220, 220, 2429, 62, 261, 62, 21397, 0, 7, 4033, 82, 62, 2902, 11, 331, 1837, 23650, 28, 25, 36, 11, 277, 796, 640, 62, 21186, 62, 41915, 11, 285, 10779, 16, 13, 15, 11, 22303, 16193, 88, 532, 7377, 112, 88, 11, 331, 1343, 7377, 112, 88, 828, 26367, 28, 17394, 1776, 628, 220, 220, 220, 4808, 69, 7, 83, 11, 2124, 8, 796, 2160, 7, 8899, 19510, 51, 11, 277, 8, 4613, 309, 1635, 277, 7, 83, 828, 2124, 13, 33758, 11, 2124, 13, 9501, 4008, 198, 220, 220, 220, 277, 62, 87, 7, 83, 11, 1312, 8, 796, 1103, 28264, 69, 7, 83, 11, 951, 82, 62, 929, 58, 16, 4083, 7890, 58, 72, 12962, 828, 1103, 28264, 69, 7, 83, 11, 951, 82, 62, 2902, 58, 16, 4083, 7890, 58, 72, 60, 4008, 198, 220, 220, 220, 277, 62, 34223, 796, 3975, 7, 72, 4613, 3975, 445, 7234, 7, 83, 4613, 685, 69, 62, 87, 7, 83, 11, 1312, 8, 22345, 3256, 410, 9246, 11, 40379, 828, 352, 25, 17, 8, 198, 220, 220, 220, 755, 7, 64, 11, 275, 8, 796, 1802, 1635, 5145, 271, 22570, 7, 64, 532, 275, 8, 1635, 14808, 64, 532, 275, 8, 1220, 357, 64, 1343, 275, 4008, 198, 220, 220, 220, 4818, 796, 3975, 7, 87, 4613, 3975, 7, 72, 4613, 755, 7, 72, 986, 828, 1123, 808, 7, 87, 36911, 277, 62, 34223, 8, 198, 220, 220, 220, 1441, 40379, 11, 277, 62, 34223, 11, 4818, 198, 437, 198 ]
1.58263
6,160
# Parameters beta = .96 y = [1.0, 2.0] b0 = 0.0 P = [0.8 0.2; 0.4 0.6] cp = ConsumptionProblem(beta, y, b0, P) Q = beta*P N_simul = 150 c_bar, b1, b2 = consumption_complete(cp) debt_complete = [b1, b2] println("P = ", P) println("Q= ", Q, "\n") println("Govt expenditures in peace and war =", y) println("Constant tax collections = ", c_bar) println("Govt assets in two states = ", debt_complete) msg = """ Now let's check the government's budget constraint in peace and war. Our assumptions imply that the government always purchases 0 units of the Arrow peace security. """ println(msg) AS1 = Q[1,2] * b2 println("Spending on Arrow war security in peace = ", AS1) AS2 = Q[2,2]*b2 println("Spending on Arrow war security in war = ", AS2) println("\n") println("Government tax collections plus asset levels in peace and war") TB1=c_bar+b1 println("T+b in peace = ",TB1 ) TB2 = c_bar + b2 println("T+b in war = ", TB2) println("\n") println("Total government spending in peace and war") G1= y[1] + AS1 G2 = y[2] + AS2 println("total govt spending in peace = ", G1) println("total govt spending in war = ", G2) println("\n") println("Let's see ex post and ex ante returns on Arrow securities") Pi= 1./Q#reciprocal(Q) exret= Pi println("Ex post returns to purchase of Arrow securities = $exret") exant = Pi.*P println("Ex ante returns to purchase of Arrow securities = $exant")
[ 2, 40117, 201, 198, 201, 198, 31361, 796, 764, 4846, 201, 198, 88, 796, 685, 16, 13, 15, 11, 362, 13, 15, 60, 201, 198, 65, 15, 796, 657, 13, 15, 201, 198, 47, 796, 685, 15, 13, 23, 657, 13, 17, 26, 201, 198, 220, 220, 220, 220, 657, 13, 19, 657, 13, 21, 60, 201, 198, 201, 198, 13155, 796, 42158, 40781, 7, 31361, 11, 331, 11, 275, 15, 11, 350, 8, 201, 198, 48, 796, 12159, 9, 47, 201, 198, 45, 62, 14323, 377, 796, 6640, 201, 198, 201, 198, 66, 62, 5657, 11, 275, 16, 11, 275, 17, 796, 7327, 62, 20751, 7, 13155, 8, 201, 198, 11275, 83, 62, 20751, 796, 685, 65, 16, 11, 275, 17, 60, 201, 198, 201, 198, 35235, 7203, 47, 796, 33172, 350, 8, 201, 198, 35235, 7203, 48, 28, 33172, 1195, 11, 37082, 77, 4943, 201, 198, 35235, 7203, 23774, 83, 22895, 287, 4167, 290, 1175, 796, 1600, 331, 8, 201, 198, 35235, 7203, 3103, 18797, 1687, 17268, 796, 33172, 269, 62, 5657, 8, 201, 198, 35235, 7203, 23774, 83, 6798, 287, 734, 2585, 796, 33172, 5057, 62, 20751, 8, 201, 198, 201, 198, 19662, 796, 37227, 201, 198, 3844, 1309, 338, 2198, 262, 1230, 338, 4466, 32315, 287, 4167, 290, 1175, 13, 201, 198, 5122, 14895, 20135, 326, 262, 1230, 1464, 13339, 657, 4991, 286, 262, 201, 198, 3163, 808, 4167, 2324, 13, 201, 198, 37811, 201, 198, 35235, 7, 19662, 8, 201, 198, 201, 198, 1921, 16, 796, 1195, 58, 16, 11, 17, 60, 1635, 275, 17, 201, 198, 35235, 7203, 4561, 1571, 319, 19408, 1175, 2324, 287, 4167, 796, 33172, 7054, 16, 8, 201, 198, 1921, 17, 796, 1195, 58, 17, 11, 17, 60, 9, 65, 17, 201, 198, 35235, 7203, 4561, 1571, 319, 19408, 1175, 2324, 287, 1175, 796, 33172, 7054, 17, 8, 201, 198, 201, 198, 35235, 7203, 59, 77, 4943, 201, 198, 35235, 7203, 28848, 1687, 17268, 5556, 11171, 2974, 287, 4167, 290, 1175, 4943, 201, 198, 22737, 16, 28, 66, 62, 5657, 10, 65, 16, 201, 198, 35235, 7203, 51, 10, 65, 287, 4167, 796, 33172, 22737, 16, 1267, 201, 198, 22737, 17, 796, 269, 62, 5657, 1343, 275, 17, 201, 198, 35235, 7203, 51, 10, 65, 287, 1175, 796, 33172, 23799, 17, 8, 201, 198, 201, 198, 201, 198, 35235, 7203, 59, 77, 4943, 201, 198, 35235, 7203, 14957, 1230, 4581, 287, 4167, 290, 1175, 4943, 201, 198, 38, 16, 28, 331, 58, 16, 60, 1343, 7054, 16, 201, 198, 38, 17, 796, 331, 58, 17, 60, 1343, 7054, 17, 201, 198, 35235, 7203, 23350, 467, 36540, 4581, 287, 4167, 796, 33172, 402, 16, 8, 201, 198, 35235, 7203, 23350, 467, 36540, 4581, 287, 1175, 796, 33172, 402, 17, 8, 201, 198, 201, 198, 201, 198, 35235, 7203, 59, 77, 4943, 201, 198, 35235, 7203, 5756, 338, 766, 409, 1281, 290, 409, 29692, 5860, 319, 19408, 16145, 4943, 201, 198, 201, 198, 38729, 28, 352, 19571, 48, 2, 8344, 541, 43270, 7, 48, 8, 201, 198, 1069, 1186, 28, 13993, 201, 198, 35235, 7203, 3109, 1281, 5860, 284, 5001, 286, 19408, 16145, 796, 720, 1069, 1186, 4943, 201, 198, 1069, 415, 796, 13993, 15885, 47, 201, 198, 35235, 7203, 3109, 29692, 5860, 284, 5001, 286, 19408, 16145, 796, 720, 1069, 415, 4943, 201, 198 ]
2.620253
553
function is_diag_dom(Q::SparseMatrixCSC{Float64,Int64}) for i = 1:size(Q,2) if 3 * Q[i,i] < sum(Q[:,i]) + sum(Q[i,:]) return false end end return true end function dist_diag_dom(Q::SparseMatrixCSC{Float64,Int64}) delta_dist = 0.0 for i = 1:size(Q,2) delta_dist = max(delta_dist,sum(Q[:,i]) + sum(Q[i,:]) - 3 * Q[i,i]) end return delta_dist end #function bisection_search_delta!(iter::Class_iterate, kkt_solver::abstract_KKT_system_solver, min_delta::Float64, max_delta::Float64, pars::Class_parameters, timer::class_advanced_timer) #max_exponent = ceil(log(max_delta/min_delta)) function int_bisection(f::Function, a::Int64, b::Int64) for i = 1:10000 if a == b - 1 return b end midpoint = ceil((a + b)/2.0) if f(midpoint) == true b = midpoint else a = midpoint end end end function ipopt_strategy!(iter::Class_iterate, kkt_solver::abstract_KKT_system_solver, pars::Class_parameters, timer::class_advanced_timer) step_info = Blank_ls_info() MAX_IT = 500 DELTA_ZERO = pars.delta.zero #DELTA_MIN = iter.point.mu * LinearAlgebra.norm(iter.point.y,Inf) / 100.0 # DELTA_MIN = pars.delta.min DELTA_MAX = pars.delta.max #Q = get_lag_hess(iter) #@show dist_diag_dom(Q) num_fac = 0 inertia = 0 status = :none tau = 1.5 * diag_min(kkt_solver) #Q = Symmetric(kkt_solver.M,:L) #eigvals,vec, = eigs(Q,nev=1,which=:SR,maxiter=10,tol=1e4) #@show eigvals #v = randn(length(iter.point.x)) #v = v /LinearAlgebra.norm(v,2) #@show dot(v,Q * v) delta = DELTA_ZERO # see if we can succeed with delta = DELTA_ZERO if tau > 0.0 tau = 0.0 inertia = factor!( kkt_solver, delta, timer ) num_fac += 1 if inertia == 1 return :success, num_fac, delta end end if pars.output_level >= 4 println(pd("delta"), pd("inertia")) end for i = 1:MAX_IT if pars.output_level >= 4 println("delta=",rd(delta), "inertia=", pd(inertia)) end if i == 1 if get_delta(iter) != 0.0 delta = max(DELTA_MIN - tau, get_delta(iter) * pars.delta.dec) else delta = choose_delta_start(iter, kkt_solver, pars) - tau end else delta = delta * pars.delta.inc end inertia = factor!( kkt_solver, delta, timer ) num_fac += 1 n = length(iter.point.x) if inertia == 1 return :success, num_fac, delta elseif is_diag_dom(kkt_solver.Q[1:n,1:n]) println("WARNING: Inertia calculation incorrect") @warn("Inertia calculation incorrect") end if delta > DELTA_MAX dx = LinearAlgebra.norm(kkt_solver.dir.x,Inf) dy = LinearAlgebra.norm(kkt_solver.dir.y,Inf) ds = LinearAlgebra.norm(kkt_solver.dir.s,Inf) my_warn("ipopt_strategy failed with delta_max=$DELTA_MAX, delta=$delta, i=$i") my_warn("num_fac=$num_fac, inertia=$inertia, status=$status, dir_x=$dx, dir_y=$dx, dir_s=$ds") #error("ipopt_strategy failed with too big a delta") return :failure, iter, delta end end error("max it") end function choose_delta_start(iter::Class_iterate, kkt_solver::abstract_KKT_system_solver, pars::Class_parameters) return pars.delta.start # do something clever to reduce number of factorizations end
[ 8818, 318, 62, 10989, 363, 62, 3438, 7, 48, 3712, 50, 29572, 46912, 34, 6173, 90, 43879, 2414, 11, 5317, 2414, 30072, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 7857, 7, 48, 11, 17, 8, 198, 220, 220, 220, 220, 220, 611, 513, 1635, 1195, 58, 72, 11, 72, 60, 1279, 2160, 7, 48, 58, 45299, 72, 12962, 1343, 2160, 7, 48, 58, 72, 11, 25, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 2081, 198, 437, 198, 198, 8818, 1233, 62, 10989, 363, 62, 3438, 7, 48, 3712, 50, 29572, 46912, 34, 6173, 90, 43879, 2414, 11, 5317, 2414, 30072, 198, 220, 220, 220, 25979, 62, 17080, 796, 657, 13, 15, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 7857, 7, 48, 11, 17, 8, 198, 220, 220, 220, 220, 220, 25979, 62, 17080, 796, 3509, 7, 67, 12514, 62, 17080, 11, 16345, 7, 48, 58, 45299, 72, 12962, 1343, 2160, 7, 48, 58, 72, 11, 25, 12962, 532, 513, 1635, 1195, 58, 72, 11, 72, 12962, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 25979, 62, 17080, 198, 437, 198, 198, 2, 8818, 47457, 3213, 62, 12947, 62, 67, 12514, 0, 7, 2676, 3712, 9487, 62, 2676, 378, 11, 479, 21841, 62, 82, 14375, 3712, 397, 8709, 62, 16601, 51, 62, 10057, 62, 82, 14375, 11, 949, 62, 67, 12514, 3712, 43879, 2414, 11, 3509, 62, 67, 12514, 3712, 43879, 2414, 11, 220, 13544, 3712, 9487, 62, 17143, 7307, 11, 19781, 3712, 4871, 62, 32225, 2903, 62, 45016, 8, 198, 2, 9806, 62, 11201, 3471, 796, 2906, 346, 7, 6404, 7, 9806, 62, 67, 12514, 14, 1084, 62, 67, 12514, 4008, 198, 198, 8818, 493, 62, 41907, 3213, 7, 69, 3712, 22203, 11, 257, 3712, 5317, 2414, 11, 275, 3712, 5317, 2414, 8, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 49388, 198, 220, 220, 220, 220, 220, 220, 220, 611, 257, 6624, 275, 532, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 275, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 3095, 4122, 796, 2906, 346, 19510, 64, 1343, 275, 20679, 17, 13, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 277, 7, 13602, 4122, 8, 6624, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 796, 3095, 4122, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 257, 796, 3095, 4122, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 20966, 8738, 62, 2536, 4338, 0, 7, 2676, 3712, 9487, 62, 2676, 378, 11, 479, 21841, 62, 82, 14375, 3712, 397, 8709, 62, 16601, 51, 62, 10057, 62, 82, 14375, 11, 13544, 3712, 9487, 62, 17143, 7307, 11, 19781, 3712, 4871, 62, 32225, 2903, 62, 45016, 8, 198, 220, 220, 220, 2239, 62, 10951, 796, 31990, 62, 7278, 62, 10951, 3419, 628, 220, 220, 220, 25882, 62, 2043, 796, 5323, 198, 220, 220, 220, 28163, 5603, 62, 57, 34812, 796, 13544, 13, 67, 12514, 13, 22570, 198, 220, 220, 220, 1303, 35, 3698, 5603, 62, 23678, 796, 11629, 13, 4122, 13, 30300, 1635, 44800, 2348, 29230, 13, 27237, 7, 2676, 13, 4122, 13, 88, 11, 18943, 8, 1220, 1802, 13, 15, 1303, 198, 220, 220, 220, 28163, 5603, 62, 23678, 796, 13544, 13, 67, 12514, 13, 1084, 198, 220, 220, 220, 28163, 5603, 62, 22921, 796, 13544, 13, 67, 12514, 13, 9806, 628, 220, 220, 220, 1303, 48, 796, 651, 62, 30909, 62, 33979, 7, 2676, 8, 198, 220, 220, 220, 1303, 31, 12860, 1233, 62, 10989, 363, 62, 3438, 7, 48, 8, 628, 220, 220, 220, 997, 62, 38942, 796, 657, 628, 220, 220, 220, 48482, 796, 657, 198, 220, 220, 220, 3722, 796, 1058, 23108, 198, 220, 220, 220, 256, 559, 796, 352, 13, 20, 1635, 2566, 363, 62, 1084, 7, 74, 21841, 62, 82, 14375, 8, 198, 220, 220, 220, 1303, 48, 796, 1632, 3020, 19482, 7, 74, 21841, 62, 82, 14375, 13, 44, 11, 25, 43, 8, 198, 220, 220, 220, 1303, 68, 328, 12786, 11, 35138, 11, 796, 304, 9235, 7, 48, 11, 710, 85, 28, 16, 11, 4758, 28, 25, 12562, 11, 9806, 2676, 28, 940, 11, 83, 349, 28, 16, 68, 19, 8, 198, 220, 220, 220, 1303, 31, 12860, 304, 328, 12786, 198, 220, 220, 220, 1303, 85, 796, 43720, 77, 7, 13664, 7, 2676, 13, 4122, 13, 87, 4008, 198, 220, 220, 220, 1303, 85, 796, 410, 1220, 14993, 451, 2348, 29230, 13, 27237, 7, 85, 11, 17, 8, 198, 220, 220, 220, 1303, 31, 12860, 16605, 7, 85, 11, 48, 1635, 410, 8, 198, 220, 220, 220, 25979, 796, 28163, 5603, 62, 57, 34812, 198, 220, 220, 220, 1303, 766, 611, 356, 460, 6758, 351, 25979, 796, 28163, 5603, 62, 57, 34812, 198, 220, 220, 220, 611, 256, 559, 1875, 657, 13, 15, 198, 220, 220, 220, 220, 220, 256, 559, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 48482, 796, 5766, 0, 7, 479, 21841, 62, 82, 14375, 11, 25979, 11, 19781, 1267, 198, 220, 220, 220, 220, 220, 997, 62, 38942, 15853, 352, 198, 220, 220, 220, 220, 220, 611, 48482, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1058, 13138, 11, 997, 62, 38942, 11, 25979, 198, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 13544, 13, 22915, 62, 5715, 18189, 604, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7, 30094, 7203, 67, 12514, 12340, 279, 67, 7203, 259, 861, 544, 48774, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 22921, 62, 2043, 198, 220, 220, 220, 220, 220, 220, 220, 611, 13544, 13, 22915, 62, 5715, 18189, 604, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 67, 12514, 28, 1600, 4372, 7, 67, 12514, 828, 366, 259, 861, 544, 28, 1600, 279, 67, 7, 259, 861, 544, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 651, 62, 67, 12514, 7, 2676, 8, 14512, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25979, 796, 3509, 7, 35, 3698, 5603, 62, 23678, 532, 256, 559, 11, 651, 62, 67, 12514, 7, 2676, 8, 1635, 13544, 13, 67, 12514, 13, 12501, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25979, 796, 3853, 62, 67, 12514, 62, 9688, 7, 2676, 11, 479, 21841, 62, 82, 14375, 11, 13544, 8, 532, 256, 559, 198, 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, 25979, 796, 25979, 1635, 13544, 13, 67, 12514, 13, 1939, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 48482, 796, 5766, 0, 7, 479, 21841, 62, 82, 14375, 11, 25979, 11, 19781, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 997, 62, 38942, 15853, 352, 628, 220, 220, 220, 220, 220, 220, 220, 299, 796, 4129, 7, 2676, 13, 4122, 13, 87, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 48482, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 1058, 13138, 11, 997, 62, 38942, 11, 25979, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 318, 62, 10989, 363, 62, 3438, 7, 74, 21841, 62, 82, 14375, 13, 48, 58, 16, 25, 77, 11, 16, 25, 77, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 31502, 25, 554, 861, 544, 17952, 11491, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 40539, 7203, 818, 861, 544, 17952, 11491, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 611, 25979, 1875, 28163, 5603, 62, 22921, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44332, 796, 44800, 2348, 29230, 13, 27237, 7, 74, 21841, 62, 82, 14375, 13, 15908, 13, 87, 11, 18943, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20268, 796, 44800, 2348, 29230, 13, 27237, 7, 74, 21841, 62, 82, 14375, 13, 15908, 13, 88, 11, 18943, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 82, 796, 44800, 2348, 29230, 13, 27237, 7, 74, 21841, 62, 82, 14375, 13, 15908, 13, 82, 11, 18943, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 616, 62, 40539, 7203, 541, 8738, 62, 2536, 4338, 4054, 351, 25979, 62, 9806, 43641, 35, 3698, 5603, 62, 22921, 11, 25979, 43641, 67, 12514, 11, 1312, 43641, 72, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 616, 62, 40539, 7203, 22510, 62, 38942, 43641, 22510, 62, 38942, 11, 48482, 43641, 259, 861, 544, 11, 3722, 43641, 13376, 11, 26672, 62, 87, 43641, 34350, 11, 26672, 62, 88, 43641, 34350, 11, 26672, 62, 82, 43641, 9310, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 18224, 7203, 541, 8738, 62, 2536, 4338, 4054, 351, 1165, 1263, 257, 25979, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 1058, 32165, 495, 11, 11629, 11, 25979, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 4049, 7203, 9806, 340, 4943, 198, 437, 198, 198, 8818, 3853, 62, 67, 12514, 62, 9688, 7, 2676, 3712, 9487, 62, 2676, 378, 11, 479, 21841, 62, 82, 14375, 3712, 397, 8709, 62, 16601, 51, 62, 10057, 62, 82, 14375, 11, 13544, 3712, 9487, 62, 17143, 7307, 8, 198, 220, 220, 220, 1441, 13544, 13, 67, 12514, 13, 9688, 628, 220, 220, 220, 1303, 466, 1223, 14169, 284, 4646, 1271, 286, 5766, 4582, 198, 198, 437, 198 ]
2.044793
1,719
function visualize{T, D}(style::Style, img::Texture{T, D, 2}, data::Dict{Symbol, Any}) kernel = data[:kernel] w, h = img.dims texparams = [ (GL_TEXTURE_MIN_FILTER, GL_NEAREST), (GL_TEXTURE_MAG_FILTER, GL_NEAREST), (GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE), (GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE) ] v, uv, indexes = genquad(0f0, 0f0, w, h) if typeof(kernel) <: Real filterkernel = float32(kernel) elseif eltype(kernel) <: Union(AbstractArray, Real) filterkernel = Texture(kernel, parameters=texparams) end data = @compat Dict( :vertex => GLBuffer(v, 2), :index => indexbuffer(indexes), :uv => GLBuffer(uv, 2), :image => img, :normrange => data[:normrange], :filterkernel => filterkernel, :projectionview => data[:screen].orthographiccam.projectionview, :model => data[:model] ) fragdatalocation = [(0, "fragment_color"),(1, "fragment_groupid")] textureshader = TemplateProgram(joinpath(shaderdir, "uv_vert.vert"), joinpath(shaderdir, "texture.frag"), attributes=data, fragdatalocation=fragdatalocation) obj = RenderObject(data, textureshader) prerender!(obj, glDisable, GL_DEPTH_TEST, enabletransparency, glDisable, GL_CULL_FACE) postrender!(obj, render, obj.vertexarray) obj end
[ 8818, 38350, 90, 51, 11, 360, 92, 7, 7635, 3712, 21466, 11, 33705, 3712, 32742, 90, 51, 11, 360, 11, 362, 5512, 1366, 3712, 35, 713, 90, 13940, 23650, 11, 4377, 30072, 198, 220, 9720, 796, 1366, 58, 25, 33885, 60, 198, 220, 266, 11, 289, 220, 796, 33705, 13, 67, 12078, 198, 220, 48659, 37266, 796, 685, 198, 220, 220, 220, 220, 357, 8763, 62, 47648, 62, 23678, 62, 46700, 5781, 11, 10188, 62, 12161, 1503, 6465, 828, 198, 220, 220, 220, 357, 8763, 62, 47648, 62, 45820, 62, 46700, 5781, 11, 10188, 62, 12161, 1503, 6465, 828, 198, 220, 220, 220, 357, 8763, 62, 47648, 62, 18564, 2969, 62, 50, 11, 220, 10188, 62, 5097, 23518, 62, 10468, 62, 1961, 8264, 828, 198, 220, 220, 220, 357, 8763, 62, 47648, 62, 18564, 2969, 62, 51, 11, 220, 10188, 62, 5097, 23518, 62, 10468, 62, 1961, 8264, 8, 198, 220, 2361, 628, 220, 410, 11, 334, 85, 11, 39199, 796, 2429, 47003, 7, 15, 69, 15, 11, 657, 69, 15, 11, 266, 11, 289, 8, 198, 220, 611, 2099, 1659, 7, 33885, 8, 1279, 25, 6416, 198, 220, 220, 220, 8106, 33885, 796, 12178, 2624, 7, 33885, 8, 198, 220, 2073, 361, 1288, 4906, 7, 33885, 8, 1279, 25, 4479, 7, 23839, 19182, 11, 6416, 8, 198, 220, 220, 220, 8106, 33885, 796, 44409, 7, 33885, 11, 10007, 28, 16886, 37266, 8, 198, 220, 886, 628, 220, 1366, 796, 2488, 5589, 265, 360, 713, 7, 198, 220, 220, 220, 1058, 332, 16886, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 10188, 28632, 7, 85, 11, 362, 828, 198, 220, 220, 220, 1058, 9630, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 6376, 22252, 7, 9630, 274, 828, 198, 220, 220, 220, 1058, 14795, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 10188, 28632, 7, 14795, 11, 362, 828, 198, 220, 220, 220, 1058, 9060, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 33705, 11, 198, 220, 220, 220, 1058, 27237, 9521, 220, 220, 220, 220, 220, 220, 220, 5218, 1366, 58, 25, 27237, 9521, 4357, 198, 220, 220, 220, 1058, 24455, 33885, 220, 220, 220, 220, 5218, 8106, 33885, 11, 198, 220, 220, 220, 1058, 16302, 295, 1177, 220, 220, 5218, 1366, 58, 25, 9612, 4083, 1506, 6826, 20991, 13, 16302, 295, 1177, 11, 198, 220, 220, 220, 1058, 19849, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 1366, 58, 25, 19849, 60, 198, 220, 1267, 628, 220, 7956, 67, 10254, 5040, 796, 47527, 15, 11, 366, 8310, 363, 434, 62, 8043, 12340, 7, 16, 11, 366, 8310, 363, 434, 62, 8094, 312, 4943, 60, 198, 220, 20028, 71, 5067, 220, 220, 220, 796, 37350, 15167, 7, 22179, 6978, 7, 1477, 5067, 15908, 11, 366, 14795, 62, 1851, 13, 1851, 12340, 4654, 6978, 7, 1477, 5067, 15908, 11, 366, 41293, 13, 8310, 363, 12340, 12608, 28, 7890, 11, 7956, 67, 10254, 5040, 28, 8310, 363, 67, 10254, 5040, 8, 628, 220, 26181, 796, 46722, 10267, 7, 7890, 11, 20028, 71, 5067, 8, 628, 220, 662, 13287, 0, 7, 26801, 11, 1278, 48893, 11, 10188, 62, 46162, 4221, 62, 51, 6465, 11, 7139, 7645, 11944, 11, 1278, 48893, 11, 10188, 62, 34, 9994, 62, 49836, 8, 198, 220, 1281, 13287, 0, 7, 26801, 11, 8543, 11, 26181, 13, 332, 16886, 18747, 8, 198, 220, 26181, 198, 437, 198 ]
2.317241
580
# Julia wrappers around the NumPy API, as part of the PyCall package ######################################################################### # Initialization (UGLY) # Linking NumPy's C API from Julia requires some serious hackery, # because NumPy does not export its symbols in the usual way for # shared libraries. Instead, it provides a Python variable # numpy.core.multiarray._ARRAY_API that points to a lookup table of # pointers to the API functions and global variables. Moreover, the # meaning of this table, along with a lot of other important # constants, is defined in a C header file which changes between NumPy # versions, so we need to do some regex parsing of this header file in # order to extract the necessary information to call NumPy. Ugly and # mildly insane, but I don't see much alternative (at least to do this # purely in Julia). # # The result of npy_api_initialize, below, is to produce the following # tables of API pointers: const npy_api = Dict{Symbol, Ptr{Void}}() # need a global to cache pyimport("numpy.core.multiarray"), in order # to ensure the module is not garbage-collected as long as we are using it # for the npy_api pointers. const npy_multiarray = PyNULL() npy_initialized = false # global to prevent multiple initializations # Macro version of npyinitialize() to inline npy_initialized? check macro npyinitialize() :(npy_initialized::Bool ? nothing : npyinitialize()) end # numpy.number types, used to detect scalars for conversion routines const npy_number = PyNULL() const npy_integer = PyNULL() const npy_floating = PyNULL() const npy_complexfloating = PyNULL() function npyinitialize() global npy_initialized if npy_initialized::Bool return end try copy!(npy_multiarray, pyimport("numpy.core.multiarray")) catch e error("numpy.core.multiarray required for multidimensional Array conversions - ", e) end if pyversion_build.major < 3 PyArray_API = @pycheck ccall((@pysym :PyCObject_AsVoidPtr), Ptr{Ptr{Void}}, (PyPtr,), npy_multiarray["_ARRAY_API"]) else PyArray_API = @pycheck ccall((@pysym :PyCapsule_GetPointer), Ptr{Ptr{Void}}, (PyPtr,Ptr{Void}), npy_multiarray["_ARRAY_API"], C_NULL) end numpy = pyimport("numpy") # directory for numpy include files to parse inc = pycall(numpy["get_include"], AbstractString) # numpy.number types copy!(npy_number, numpy["number"]) copy!(npy_integer, numpy["integer"]) copy!(npy_floating, numpy["floating"]) copy!(npy_complexfloating, numpy["complexfloating"]) # Parse __multiarray_api.h to obtain length and meaning of PyArray_API try hdrfile = open(joinpath(inc, "numpy", "__multiarray_api.h")) hdr = readstring(hdrfile); close(hdrfile) catch e error("could not read __multiarray_api.h to parse PyArray_API ", e) end hdr = replace(hdr, r"\\\s*\n", " "); # rm backslashed newlines r = r"^#define\s+([A-Za-z]\w*)\s+\(.*\bPyArray_API\s*\[\s*([0-9]+)\s*\]\s*\)\s*$"m # regex to match #define PyFoo (... PyArray_API[nnn]) PyArray_API_length = 0 for m in eachmatch(r, hdr) # search for max index into PyArray_API PyArray_API_length = max(PyArray_API_length, parse(Int, m.captures[2])+1) end API = pointer_to_array(PyArray_API, (PyArray_API_length,)) for m in eachmatch(r, hdr) # build npy_api table npy_api[Symbol(m.captures[1])] = API[parse(Int, m.captures[2])+1] end if !haskey(npy_api, :PyArray_New) error("failure parsing NumPy PyArray_API symbol table") end npy_initialized::Bool = true return end ######################################################################### # Hard-coded constant values, copied from numpy/ndarraytypes.h ... # the values of these seem to have been stable for some time, and # the NumPy developers seem to have some awareness of binary compatibility # NPY_TYPES: const NPY_BOOL = Int32(0) const NPY_BYTE = Int32(1) const NPY_UBYTE = Int32(2) const NPY_SHORT = Int32(3) const NPY_USHORT = Int32(4) const NPY_INT = Int32(5) const NPY_UINT = Int32(6) const NPY_LONG = Int32(7) const NPY_ULONG = Int32(8) const NPY_LONGLONG = Int32(9) const NPY_ULONGLONG = Int32(10) const NPY_FLOAT = Int32(11) const NPY_DOUBLE = Int32(12) const NPY_LONGDOUBLE = Int32(13) const NPY_CFLOAT = Int32(14) const NPY_CDOUBLE = Int32(15) const NPY_CLONGDOUBLE = Int32(16) const NPY_OBJECT = Int32(17) const NPY_STRING = Int32(18) const NPY_UNICODE = Int32(19) const NPY_VOID = Int32(20) # NPY_ORDER: const NPY_ANYORDER = Int32(-1) const NPY_CORDER = Int32(0) const NPY_FORTRANORDER = Int32(1) # flags: const NPY_ARRAY_C_CONTIGUOUS = Int32(1) const NPY_ARRAY_F_CONTIGUOUS = Int32(2) const NPY_ARRAY_ALIGNED = Int32(0x0100) const NPY_ARRAY_WRITEABLE = Int32(0x0400) const NPY_ARRAY_OWNDATA = Int32(0x0004) const NPY_ARRAY_ENSURECOPY = Int32(0x0020) const NPY_ARRAY_ENSUREARRAY = Int32(0x0040) const NPY_ARRAY_FORCECAST = Int32(0x0010) const NPY_ARRAY_UPDATEIFCOPY = Int32(0x1000) const NPY_ARRAY_NOTSWAPPED = Int32(0x0200) const NPY_ARRAY_ELEMENTSTRIDES = Int32(0x0080) ######################################################################### # conversion from Julia types to NPY_TYPES constant npy_type(::Type{Bool}) = NPY_BOOL npy_type(::Type{Int8}) = NPY_BYTE npy_type(::Type{UInt8}) = NPY_UBYTE npy_type(::Type{Int16}) = NPY_SHORT npy_type(::Type{UInt16}) = NPY_USHORT npy_type(::Type{Int32}) = NPY_INT npy_type(::Type{UInt32}) = NPY_UINT npy_type(::Type{Int64}) = NPY_LONGLONG npy_type(::Type{UInt64}) = NPY_ULONGLONG npy_type(::Type{Float32}) = NPY_FLOAT npy_type(::Type{Float64}) = NPY_DOUBLE npy_type(::Type{Complex64}) = NPY_CFLOAT npy_type(::Type{Complex128}) = NPY_CDOUBLE npy_type(::Type{PyPtr}) = NPY_OBJECT typealias NPY_TYPES Union{Bool,Int8,UInt8,Int16,UInt16,Int32,UInt32,Int64,UInt64,Float32,Float64,Complex64,Complex128,PyPtr} # conversions from __array_interface__ type strings to supported Julia types const npy_typestrs = Dict( "b1"=>Bool, "i1"=>Int8, "u1"=>UInt8, "i2"=>Int16, "u2"=>UInt16, "i4"=>Int32, "u4"=>UInt32, "i8"=>Int64, "u8"=>UInt64, "f4"=>Float32, "f8"=>Float64, "c8"=>Complex64, "c16"=>Complex128, "O"=>PyPtr, "O$(div(WORD_SIZE,8))"=>PyPtr ) ######################################################################### # no-copy conversion of Julia arrays to NumPy arrays. # Julia arrays are in column-major order, but in some cases it is useful # to pass them to Python as row-major arrays simply by reversing the # dimensions. For example, although NumPy works with both row-major and # column-major data, some Python libraries like OpenCV seem to require # row-major data (the default in NumPy). In such cases, use PyReverseDims(array) function NpyArray{T<:NPY_TYPES}(a::StridedArray{T}, revdims::Bool) @npyinitialize size_a = revdims ? reverse(size(a)) : size(a) strides_a = revdims ? reverse(strides(a)) : strides(a) p = @pycheck ccall(npy_api[:PyArray_New], PyPtr, (PyPtr,Cint,Ptr{Int},Cint, Ptr{Int},Ptr{T}, Cint,Cint,PyPtr), npy_api[:PyArray_Type], ndims(a), Int[size_a...], npy_type(T), Int[strides_a...] * sizeof(eltype(a)), a, sizeof(eltype(a)), NPY_ARRAY_ALIGNED | NPY_ARRAY_WRITEABLE, C_NULL) return PyObject(p, a) end function PyObject{T<:NPY_TYPES}(a::StridedArray{T}) try return NpyArray(a, false) catch array2py(a) # fallback to non-NumPy version end end PyReverseDims{T<:NPY_TYPES}(a::StridedArray{T}) = NpyArray(a, true) PyReverseDims(a::BitArray) = PyReverseDims(Array(a)) """ PyReverseDims(array) Passes a Julia `array` to Python as a NumPy row-major array (rather than Julia's native column-major order) with the dimensions reversed (e.g. a 2×3×4 Julia array is passed as a 4×3×2 NumPy row-major array). This is useful for Python libraries that expect row-major data. """ PyReverseDims(a::AbstractArray) ######################################################################### # Extract shape and other information about a NumPy array. We need # to call the Python interface to do this, since the equivalent information # in NumPy's C API is only available via macros (or parsing structs). # [ Hopefully, this will be improved in a future NumPy version. ] type PyArray_Info T::Type native::Bool # native byte order? sz::Vector{Int} st::Vector{Int} # strides, in multiples of bytes! data::Ptr{Void} readonly::Bool function PyArray_Info(a::PyObject) ai = PyDict{AbstractString,PyObject}(a["__array_interface__"]) typestr = convert(AbstractString, ai["typestr"]) T = npy_typestrs[typestr[2:end]] datatuple = convert(Tuple{Int,Bool}, ai["data"]) sz = convert(Vector{Int}, ai["shape"]) local st try st = isempty(sz) ? Int[] : convert(Vector{Int}, ai["strides"]) catch # default is C-order contiguous st = similar(sz) st[end] = sizeof(T) for i = length(sz)-1:-1:1 st[i] = st[i+1]*sz[i+1] end end return new(T, (ENDIAN_BOM == 0x04030201 && typestr[1] == '<') || (ENDIAN_BOM == 0x01020304 && typestr[1] == '>') || typestr[1] == '|', sz, st, convert(Ptr{Void}, datatuple[1]), datatuple[2]) end end aligned(i::PyArray_Info) = # FIXME: also check pointer alignment? all(m -> m == 0, mod(i.st, sizeof(i.T))) # strides divisible by elsize # whether a contiguous array in column-major (Fortran, Julia) order function f_contiguous(T::Type, sz::Vector{Int}, st::Vector{Int}) if prod(sz) == 1 return true end if st[1] != sizeof(T) return false end for j = 2:length(st) if st[j] != st[j-1] * sz[j-1] return false end end return true end f_contiguous(i::PyArray_Info) = f_contiguous(i.T, i.sz, i.st) c_contiguous(i::PyArray_Info) = f_contiguous(i.T, flipdim(i.sz,1), flipdim(i.st,1)) ######################################################################### # PyArray: no-copy wrapper around NumPy ndarray # # Hopefully, in the future this can be a subclass of StridedArray (see # Julia issue #2345), which will allow it to be used with most Julia # functions, but that is not possible at the moment. So, to use this # with Julia linalg functions etcetera a copy is still required. """ PyArray(o::PyObject) This converts an `ndarray` object `o` to a PyArray. This implements a nocopy wrapper to a NumPy array (currently of only numeric types only). If you are using `pycall` and the function returns an `ndarray`, you can use `PyArray` as the return type to directly receive a `PyArray`. """ type PyArray{T,N} <: AbstractArray{T,N} o::PyObject info::PyArray_Info dims::Dims st::Vector{Int} f_contig::Bool c_contig::Bool data::Ptr{T} function PyArray(o::PyObject, info::PyArray_Info) if !aligned(info) throw(ArgumentError("only NPY_ARRAY_ALIGNED arrays are supported")) elseif !info.native throw(ArgumentError("only native byte-order arrays are supported")) elseif info.T != T throw(ArgumentError("inconsistent type in PyArray constructor")) elseif length(info.sz) != N || length(info.st) != N throw(ArgumentError("inconsistent ndims in PyArray constructor")) end return new(o, info, tuple(info.sz...), div(info.st, sizeof(T)), f_contiguous(info), c_contiguous(info), convert(Ptr{T}, info.data)) end end function PyArray(o::PyObject) info = PyArray_Info(o) return PyArray{info.T, length(info.sz)}(o, info) end size(a::PyArray) = a.dims ndims{T,N}(a::PyArray{T,N}) = N similar(a::PyArray, T, dims::Dims) = Array(T, dims) function copy{T,N}(a::PyArray{T,N}) if N > 1 && a.c_contig # equivalent to f_contig with reversed dims B = pointer_to_array(a.data, ntuple((n -> a.dims[N - n + 1]), N)) return N == 2 ? transpose(B) : permutedims(B, (N:-1:1)) end A = Array(T, a.dims) if a.f_contig ccall(:memcpy, Void, (Ptr{T}, Ptr{T}, Int), A, a, sizeof(T)*length(a)) return A else return copy!(A, a) end end # TODO: need to do bounds-checking of these indices! getindex{T}(a::PyArray{T,0}) = unsafe_load(a.data) getindex{T}(a::PyArray{T,1}, i::Integer) = unsafe_load(a.data, 1 + (i-1)*a.st[1]) getindex{T}(a::PyArray{T,2}, i::Integer, j::Integer) = unsafe_load(a.data, 1 + (i-1)*a.st[1] + (j-1)*a.st[2]) function getindex(a::PyArray, i::Integer) if a.f_contig return unsafe_load(a.data, i) else return a[ind2sub(a.dims, i)...] end end function getindex(a::PyArray, is::Integer...) index = 1 n = min(length(is),length(a.st)) for i = 1:n index += (is[i]-1)*a.st[i] end for i = n+1:length(is) if is[i] != 1 throw(BoundsError()) end end unsafe_load(a.data, index) end function writeok_assign(a::PyArray, v, i::Integer) if a.info.readonly throw(ArgumentError("read-only PyArray")) else unsafe_store!(a.data, v, i) end return a end setindex!{T}(a::PyArray{T,0}, v) = writeok_assign(a, v, 1) setindex!{T}(a::PyArray{T,1}, v, i::Integer) = writeok_assign(a, v, 1 + (i-1)*a.st[1]) setindex!{T}(a::PyArray{T,2}, v, i::Integer, j::Integer) = writeok_assign(a, v, 1 + (i-1)*a.st[1] + (j-1)*a.st[2]) function setindex!(a::PyArray, v, i::Integer) if a.f_contig return writeok_assign(a, v, i) else return setindex!(a, v, ind2sub(a.dims, i)...) end end function setindex!(a::PyArray, v, is::Integer...) index = 1 n = min(length(is),length(a.st)) for i = 1:n index += (is[i]-1)*a.st[i] end for i = n+1:length(is) if is[i] != 1 throw(BoundsError()) end end writeok_assign(a, v, index) end stride(a::PyArray, i::Integer) = a.st[i] Base.unsafe_convert{T}(::Type{Ptr{T}}, a::PyArray{T}) = a.data pointer(a::PyArray, i::Int) = pointer(a, ind2sub(a.dims, i)) function pointer{T}(a::PyArray{T}, is::Tuple{Vararg{Int}}) offset = 0 for i = 1:length(is) offset += (is[i]-1)*a.st[i] end return a.data + offset*sizeof(T) end summary{T}(a::PyArray{T}) = string(Base.dims2string(size(a)), " ", string(T), " PyArray") ######################################################################### # PyArray <-> PyObject conversions PyObject(a::PyArray) = a.o convert(::Type{PyArray}, o::PyObject) = PyArray(o) function convert{T<:NPY_TYPES}(::Type{Array{T, 1}}, o::PyObject) try copy(PyArray{T, 1}(o, PyArray_Info(o))) # will check T and N vs. info catch len = @pycheckz ccall((@pysym :PySequence_Size), Int, (PyPtr,), o) A = Array(pyany_toany(T), len) py2array(T, A, o, 1, 1) end end function convert{T<:NPY_TYPES}(::Type{Array{T}}, o::PyObject) try info = PyArray_Info(o) try copy(PyArray{T, length(info.sz)}(o, info)) # will check T == info.T catch return py2array(T, Array(pyany_toany(T), info.sz...), o, 1, 1) end catch py2array(T, o) end end function convert{T<:NPY_TYPES,N}(::Type{Array{T,N}}, o::PyObject) try info = PyArray_Info(o) try copy(PyArray{T,N}(o, info)) # will check T == info.T and N == length(info.sz) catch nd = length(info.sz) if nd != N throw(ArgumentError("cannot convert $(nd)d array to $(N)d")) end return py2array(T, Array(pyany_toany(T), info.sz...), o, 1, 1) end catch A = py2array(T, o) if ndims(A) != N throw(ArgumentError("cannot convert $(ndims(A))d array to $(N)d")) end A end end function convert(::Type{Array{PyObject}}, o::PyObject) map(pyincref, convert(Array{PyPtr}, o)) end function convert(::Type{Array{PyObject,1}}, o::PyObject) map(pyincref, convert(Array{PyPtr, 1}, o)) end function convert{N}(::Type{Array{PyObject,N}}, o::PyObject) map(pyincref, convert(Array{PyPtr, N}, o)) end #########################################################################
[ 2, 22300, 7917, 11799, 1088, 262, 31835, 20519, 7824, 11, 355, 636, 286, 262, 9485, 14134, 5301, 198, 198, 29113, 29113, 7804, 2, 198, 2, 20768, 1634, 357, 7340, 11319, 8, 198, 198, 2, 7502, 278, 31835, 20519, 338, 327, 7824, 422, 22300, 4433, 617, 2726, 8156, 1924, 11, 198, 2, 780, 31835, 20519, 857, 407, 10784, 663, 14354, 287, 262, 6678, 835, 329, 198, 2, 4888, 12782, 13, 220, 5455, 11, 340, 3769, 257, 11361, 7885, 198, 2, 299, 32152, 13, 7295, 13, 16680, 12571, 2433, 13557, 1503, 30631, 62, 17614, 326, 2173, 284, 257, 35847, 3084, 286, 198, 2, 32007, 284, 262, 7824, 5499, 290, 3298, 9633, 13, 220, 10968, 11, 262, 198, 2, 3616, 286, 428, 3084, 11, 1863, 351, 257, 1256, 286, 584, 1593, 198, 2, 38491, 11, 318, 5447, 287, 257, 327, 13639, 2393, 543, 2458, 1022, 31835, 20519, 198, 2, 6300, 11, 523, 356, 761, 284, 466, 617, 40364, 32096, 286, 428, 13639, 2393, 287, 198, 2, 1502, 284, 7925, 262, 3306, 1321, 284, 869, 31835, 20519, 13, 220, 471, 10853, 290, 198, 2, 33544, 13251, 11, 475, 314, 836, 470, 766, 881, 5559, 357, 265, 1551, 284, 466, 428, 198, 2, 14177, 287, 22300, 737, 198, 2, 198, 2, 383, 1255, 286, 299, 9078, 62, 15042, 62, 36733, 1096, 11, 2174, 11, 318, 284, 4439, 262, 1708, 198, 2, 8893, 286, 7824, 32007, 25, 198, 9979, 299, 9078, 62, 15042, 796, 360, 713, 90, 13940, 23650, 11, 350, 2213, 90, 53, 1868, 11709, 3419, 198, 198, 2, 761, 257, 3298, 284, 12940, 12972, 11748, 7203, 77, 32152, 13, 7295, 13, 16680, 12571, 2433, 12340, 287, 1502, 198, 2, 284, 4155, 262, 8265, 318, 407, 15413, 12, 4033, 12609, 355, 890, 355, 356, 389, 1262, 340, 198, 2, 329, 262, 299, 9078, 62, 15042, 32007, 13, 198, 9979, 299, 9078, 62, 16680, 12571, 2433, 796, 9485, 33991, 3419, 198, 198, 77, 9078, 62, 17532, 796, 3991, 1303, 3298, 284, 2948, 3294, 4238, 4582, 198, 198, 2, 42755, 2196, 286, 299, 9078, 36733, 1096, 3419, 284, 26098, 299, 9078, 62, 17532, 30, 2198, 198, 20285, 305, 299, 9078, 36733, 1096, 3419, 198, 220, 220, 220, 36147, 77, 9078, 62, 17532, 3712, 33, 970, 5633, 2147, 1058, 299, 9078, 36733, 1096, 28955, 198, 437, 198, 198, 2, 299, 32152, 13, 17618, 3858, 11, 973, 284, 4886, 16578, 945, 329, 11315, 31878, 198, 9979, 299, 9078, 62, 17618, 796, 9485, 33991, 3419, 198, 9979, 299, 9078, 62, 41433, 796, 9485, 33991, 3419, 198, 9979, 299, 9078, 62, 48679, 803, 796, 9485, 33991, 3419, 198, 9979, 299, 9078, 62, 41887, 48679, 803, 796, 9485, 33991, 3419, 198, 198, 8818, 299, 9078, 36733, 1096, 3419, 198, 220, 220, 220, 3298, 299, 9078, 62, 17532, 628, 220, 220, 220, 611, 299, 9078, 62, 17532, 3712, 33, 970, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 0, 7, 77, 9078, 62, 16680, 12571, 2433, 11, 12972, 11748, 7203, 77, 32152, 13, 7295, 13, 16680, 12571, 2433, 48774, 198, 220, 220, 220, 4929, 304, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 77, 32152, 13, 7295, 13, 16680, 12571, 2433, 2672, 329, 1963, 312, 16198, 15690, 32626, 532, 33172, 304, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 12972, 9641, 62, 11249, 13, 22478, 1279, 513, 198, 220, 220, 220, 220, 220, 220, 220, 9485, 19182, 62, 17614, 796, 2488, 9078, 9122, 269, 13345, 19510, 31, 79, 893, 4948, 1058, 20519, 34, 10267, 62, 1722, 53, 1868, 46745, 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, 350, 2213, 90, 46745, 90, 53, 1868, 92, 5512, 357, 20519, 46745, 11, 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, 299, 9078, 62, 16680, 12571, 2433, 14692, 62, 1503, 30631, 62, 17614, 8973, 8, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 9485, 19182, 62, 17614, 796, 2488, 9078, 9122, 269, 13345, 19510, 31, 79, 893, 4948, 1058, 20519, 34, 1686, 2261, 62, 3855, 18833, 3849, 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, 350, 2213, 90, 46745, 90, 53, 1868, 92, 5512, 357, 20519, 46745, 11, 46745, 90, 53, 1868, 92, 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, 299, 9078, 62, 16680, 12571, 2433, 14692, 62, 1503, 30631, 62, 17614, 33116, 327, 62, 33991, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 299, 32152, 796, 12972, 11748, 7203, 77, 32152, 4943, 628, 220, 220, 220, 1303, 8619, 329, 299, 32152, 2291, 3696, 284, 21136, 198, 220, 220, 220, 753, 796, 12972, 13345, 7, 77, 32152, 14692, 1136, 62, 17256, 33116, 27741, 10100, 8, 628, 220, 220, 220, 1303, 299, 32152, 13, 17618, 3858, 198, 220, 220, 220, 4866, 0, 7, 77, 9078, 62, 17618, 11, 299, 32152, 14692, 17618, 8973, 8, 198, 220, 220, 220, 4866, 0, 7, 77, 9078, 62, 41433, 11, 299, 32152, 14692, 41433, 8973, 8, 198, 220, 220, 220, 4866, 0, 7, 77, 9078, 62, 48679, 803, 11, 299, 32152, 14692, 48679, 803, 8973, 8, 198, 220, 220, 220, 4866, 0, 7, 77, 9078, 62, 41887, 48679, 803, 11, 299, 32152, 14692, 41887, 48679, 803, 8973, 8, 628, 220, 220, 220, 1303, 2547, 325, 11593, 16680, 12571, 2433, 62, 15042, 13, 71, 284, 7330, 4129, 290, 3616, 286, 9485, 19182, 62, 17614, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 289, 7109, 7753, 796, 1280, 7, 22179, 6978, 7, 1939, 11, 366, 77, 32152, 1600, 366, 834, 16680, 12571, 2433, 62, 15042, 13, 71, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 289, 7109, 796, 1100, 8841, 7, 71, 7109, 7753, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 1969, 7, 71, 7109, 7753, 8, 198, 220, 220, 220, 4929, 304, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 24089, 407, 1100, 11593, 16680, 12571, 2433, 62, 15042, 13, 71, 284, 21136, 9485, 19182, 62, 17614, 33172, 304, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 289, 7109, 796, 6330, 7, 71, 7109, 11, 374, 1, 6852, 59, 82, 9, 59, 77, 1600, 366, 366, 1776, 1303, 42721, 736, 6649, 5263, 649, 6615, 198, 220, 220, 220, 374, 796, 374, 1, 61, 2, 13086, 59, 82, 10, 26933, 32, 12, 57, 64, 12, 89, 60, 59, 86, 9, 19415, 82, 10, 59, 7, 15885, 59, 65, 20519, 19182, 62, 17614, 59, 82, 9, 59, 58, 59, 82, 9, 26933, 15, 12, 24, 48688, 19415, 82, 9, 59, 60, 59, 82, 9, 59, 19415, 82, 9, 3, 1, 76, 1303, 40364, 284, 2872, 1303, 13086, 9485, 37, 2238, 357, 986, 9485, 19182, 62, 17614, 58, 20471, 77, 12962, 198, 220, 220, 220, 9485, 19182, 62, 17614, 62, 13664, 796, 657, 198, 220, 220, 220, 329, 285, 287, 1123, 15699, 7, 81, 11, 289, 7109, 8, 1303, 2989, 329, 3509, 6376, 656, 9485, 19182, 62, 17614, 198, 220, 220, 220, 220, 220, 220, 220, 9485, 19182, 62, 17614, 62, 13664, 796, 3509, 7, 20519, 19182, 62, 17614, 62, 13664, 11, 21136, 7, 5317, 11, 285, 13, 27144, 942, 58, 17, 12962, 10, 16, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 7824, 796, 17562, 62, 1462, 62, 18747, 7, 20519, 19182, 62, 17614, 11, 357, 20519, 19182, 62, 17614, 62, 13664, 11, 4008, 198, 220, 220, 220, 329, 285, 287, 1123, 15699, 7, 81, 11, 289, 7109, 8, 1303, 1382, 299, 9078, 62, 15042, 3084, 198, 220, 220, 220, 220, 220, 220, 220, 299, 9078, 62, 15042, 58, 13940, 23650, 7, 76, 13, 27144, 942, 58, 16, 12962, 60, 796, 7824, 58, 29572, 7, 5317, 11, 285, 13, 27144, 942, 58, 17, 12962, 10, 16, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 5145, 10134, 2539, 7, 77, 9078, 62, 15042, 11, 1058, 20519, 19182, 62, 3791, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 32165, 495, 32096, 31835, 20519, 9485, 19182, 62, 17614, 6194, 3084, 4943, 198, 220, 220, 220, 886, 628, 220, 220, 220, 299, 9078, 62, 17532, 3712, 33, 970, 796, 2081, 198, 220, 220, 220, 1441, 198, 437, 198, 198, 29113, 29113, 7804, 2, 198, 2, 6912, 12, 40976, 6937, 3815, 11, 18984, 422, 299, 32152, 14, 358, 18747, 19199, 13, 71, 2644, 198, 2, 262, 3815, 286, 777, 1283, 284, 423, 587, 8245, 329, 617, 640, 11, 290, 198, 2, 262, 31835, 20519, 6505, 1283, 284, 423, 617, 9359, 286, 13934, 17764, 198, 198, 2, 28498, 56, 62, 9936, 47, 1546, 25, 198, 198, 9979, 28498, 56, 62, 8202, 3535, 796, 2558, 2624, 7, 15, 8, 198, 9979, 28498, 56, 62, 17513, 9328, 796, 2558, 2624, 7, 16, 8, 198, 9979, 28498, 56, 62, 10526, 56, 9328, 796, 2558, 2624, 7, 17, 8, 198, 9979, 28498, 56, 62, 9693, 9863, 796, 2558, 2624, 7, 18, 8, 198, 9979, 28498, 56, 62, 27143, 9863, 796, 2558, 2624, 7, 19, 8, 198, 9979, 28498, 56, 62, 12394, 796, 2558, 2624, 7, 20, 8, 198, 9979, 28498, 56, 62, 52, 12394, 796, 2558, 2624, 7, 21, 8, 198, 9979, 28498, 56, 62, 43, 18494, 796, 2558, 2624, 7, 22, 8, 198, 9979, 28498, 56, 62, 6239, 18494, 796, 2558, 2624, 7, 23, 8, 198, 9979, 28498, 56, 62, 43, 1340, 8763, 18494, 796, 2558, 2624, 7, 24, 8, 198, 9979, 28498, 56, 62, 6239, 1340, 8763, 18494, 796, 2558, 2624, 7, 940, 8, 198, 9979, 28498, 56, 62, 3697, 46, 1404, 796, 2558, 2624, 7, 1157, 8, 198, 9979, 28498, 56, 62, 35, 2606, 19146, 796, 2558, 2624, 7, 1065, 8, 198, 9979, 28498, 56, 62, 43, 18494, 35, 2606, 19146, 796, 2558, 2624, 7, 1485, 8, 198, 9979, 28498, 56, 62, 34, 3697, 46, 1404, 796, 2558, 2624, 7, 1415, 8, 198, 9979, 28498, 56, 62, 8610, 2606, 19146, 796, 2558, 2624, 7, 1314, 8, 198, 9979, 28498, 56, 62, 5097, 18494, 35, 2606, 19146, 796, 2558, 2624, 7, 1433, 8, 198, 9979, 28498, 56, 62, 9864, 23680, 796, 2558, 2624, 7, 1558, 8, 198, 9979, 28498, 56, 62, 18601, 2751, 796, 2558, 2624, 7, 1507, 8, 198, 9979, 28498, 56, 62, 4944, 2149, 16820, 796, 2558, 2624, 7, 1129, 8, 198, 9979, 28498, 56, 62, 29516, 2389, 796, 2558, 2624, 7, 1238, 8, 198, 198, 2, 28498, 56, 62, 12532, 1137, 25, 198, 9979, 28498, 56, 62, 31827, 12532, 1137, 796, 2558, 2624, 32590, 16, 8, 198, 9979, 28498, 56, 62, 34, 12532, 1137, 796, 2558, 2624, 7, 15, 8, 198, 9979, 28498, 56, 62, 13775, 5446, 1565, 12532, 1137, 796, 2558, 2624, 7, 16, 8, 198, 198, 2, 9701, 25, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 34, 62, 37815, 3528, 52, 20958, 796, 2558, 2624, 7, 16, 8, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 37, 62, 37815, 3528, 52, 20958, 796, 2558, 2624, 7, 17, 8, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 1847, 16284, 1961, 796, 2558, 2624, 7, 15, 87, 39103, 8, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 18564, 12709, 17534, 796, 2558, 2624, 7, 15, 87, 3023, 405, 8, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 3913, 8575, 13563, 796, 2558, 2624, 7, 15, 87, 830, 19, 8, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 16938, 11335, 34, 3185, 56, 796, 2558, 2624, 7, 15, 87, 405, 1238, 8, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 16938, 11335, 1503, 30631, 796, 2558, 2624, 7, 15, 87, 405, 1821, 8, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 13775, 34, 2943, 11262, 796, 2558, 2624, 7, 15, 87, 37187, 8, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 16977, 40, 4851, 3185, 56, 796, 2558, 2624, 7, 15, 87, 12825, 8, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 11929, 17887, 24805, 1961, 796, 2558, 2624, 7, 15, 87, 44613, 8, 198, 9979, 28498, 56, 62, 1503, 30631, 62, 36, 2538, 10979, 18601, 42538, 796, 2558, 2624, 7, 15, 87, 405, 1795, 8, 198, 198, 29113, 29113, 7804, 2, 198, 2, 11315, 422, 22300, 3858, 284, 28498, 56, 62, 9936, 47, 1546, 6937, 198, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 33, 970, 30072, 796, 28498, 56, 62, 8202, 3535, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 5317, 23, 30072, 796, 28498, 56, 62, 17513, 9328, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 52, 5317, 23, 30072, 796, 28498, 56, 62, 10526, 56, 9328, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 5317, 1433, 30072, 796, 28498, 56, 62, 9693, 9863, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 52, 5317, 1433, 30072, 796, 28498, 56, 62, 27143, 9863, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 5317, 2624, 30072, 796, 28498, 56, 62, 12394, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 52, 5317, 2624, 30072, 796, 28498, 56, 62, 52, 12394, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 5317, 2414, 30072, 796, 28498, 56, 62, 43, 1340, 8763, 18494, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 52, 5317, 2414, 30072, 796, 28498, 56, 62, 6239, 1340, 8763, 18494, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 43879, 2624, 30072, 796, 28498, 56, 62, 3697, 46, 1404, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 43879, 2414, 30072, 796, 28498, 56, 62, 35, 2606, 19146, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 5377, 11141, 2414, 30072, 796, 28498, 56, 62, 34, 3697, 46, 1404, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 5377, 11141, 12762, 30072, 796, 28498, 56, 62, 8610, 2606, 19146, 198, 77, 9078, 62, 4906, 7, 3712, 6030, 90, 20519, 46745, 30072, 796, 28498, 56, 62, 9864, 23680, 198, 198, 4906, 26011, 28498, 56, 62, 9936, 47, 1546, 4479, 90, 33, 970, 11, 5317, 23, 11, 52, 5317, 23, 11, 5317, 1433, 11, 52, 5317, 1433, 11, 5317, 2624, 11, 52, 5317, 2624, 11, 5317, 2414, 11, 52, 5317, 2414, 11, 43879, 2624, 11, 43879, 2414, 11, 5377, 11141, 2414, 11, 5377, 11141, 12762, 11, 20519, 46745, 92, 198, 198, 2, 32626, 422, 11593, 18747, 62, 39994, 834, 2099, 13042, 284, 4855, 22300, 3858, 198, 9979, 299, 9078, 62, 28004, 395, 3808, 796, 360, 713, 7, 366, 65, 16, 1, 14804, 33, 970, 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, 366, 72, 16, 1, 14804, 5317, 23, 11, 220, 220, 220, 220, 220, 366, 84, 16, 1, 14804, 52, 5317, 23, 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, 366, 72, 17, 1, 14804, 5317, 1433, 11, 220, 220, 220, 220, 366, 84, 17, 1, 14804, 52, 5317, 1433, 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, 366, 72, 19, 1, 14804, 5317, 2624, 11, 220, 220, 220, 220, 366, 84, 19, 1, 14804, 52, 5317, 2624, 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, 366, 72, 23, 1, 14804, 5317, 2414, 11, 220, 220, 220, 220, 366, 84, 23, 1, 14804, 52, 5317, 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, 220, 220, 220, 366, 69, 19, 1, 14804, 43879, 2624, 11, 220, 220, 366, 69, 23, 1, 14804, 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, 220, 220, 220, 366, 66, 23, 1, 14804, 5377, 11141, 2414, 11, 366, 66, 1433, 1, 14804, 5377, 11141, 12762, 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, 366, 46, 1, 14804, 20519, 46745, 11, 366, 46, 3, 7, 7146, 7, 54, 12532, 62, 33489, 11, 23, 4008, 1, 14804, 20519, 46745, 1267, 198, 198, 29113, 29113, 7804, 2, 198, 2, 645, 12, 30073, 11315, 286, 22300, 26515, 284, 31835, 20519, 26515, 13, 198, 198, 2, 22300, 26515, 389, 287, 5721, 12, 22478, 1502, 11, 475, 287, 617, 2663, 340, 318, 4465, 198, 2, 284, 1208, 606, 284, 11361, 355, 5752, 12, 22478, 26515, 2391, 416, 37556, 262, 198, 2, 15225, 13, 1114, 1672, 11, 3584, 31835, 20519, 2499, 351, 1111, 5752, 12, 22478, 290, 198, 2, 5721, 12, 22478, 1366, 11, 617, 11361, 12782, 588, 4946, 33538, 1283, 284, 2421, 198, 2, 5752, 12, 22478, 1366, 357, 1169, 4277, 287, 31835, 20519, 737, 554, 884, 2663, 11, 779, 9485, 49, 964, 325, 35, 12078, 7, 18747, 8, 198, 8818, 399, 9078, 19182, 90, 51, 27, 25, 22182, 56, 62, 9936, 47, 1546, 92, 7, 64, 3712, 13290, 1384, 19182, 90, 51, 5512, 2710, 67, 12078, 3712, 33, 970, 8, 198, 220, 220, 220, 2488, 77, 9078, 36733, 1096, 198, 220, 220, 220, 2546, 62, 64, 796, 2710, 67, 12078, 5633, 9575, 7, 7857, 7, 64, 4008, 1058, 2546, 7, 64, 8, 198, 220, 220, 220, 35002, 62, 64, 796, 2710, 67, 12078, 5633, 9575, 7, 2536, 1460, 7, 64, 4008, 1058, 35002, 7, 64, 8, 198, 220, 220, 220, 279, 796, 2488, 9078, 9122, 269, 13345, 7, 77, 9078, 62, 15042, 58, 25, 20519, 19182, 62, 3791, 4357, 9485, 46745, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 20519, 46745, 11, 34, 600, 11, 46745, 90, 5317, 5512, 34, 600, 11, 350, 2213, 90, 5317, 5512, 46745, 90, 51, 5512, 327, 600, 11, 34, 600, 11, 20519, 46745, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 9078, 62, 15042, 58, 25, 20519, 19182, 62, 6030, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 67, 12078, 7, 64, 828, 2558, 58, 7857, 62, 64, 986, 4357, 299, 9078, 62, 4906, 7, 51, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2558, 58, 2536, 1460, 62, 64, 22345, 1635, 39364, 7, 417, 4906, 7, 64, 36911, 257, 11, 39364, 7, 417, 4906, 7, 64, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28498, 56, 62, 1503, 30631, 62, 1847, 16284, 1961, 930, 28498, 56, 62, 1503, 30631, 62, 18564, 12709, 17534, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 327, 62, 33991, 8, 198, 220, 220, 220, 1441, 9485, 10267, 7, 79, 11, 257, 8, 198, 437, 198, 198, 8818, 9485, 10267, 90, 51, 27, 25, 22182, 56, 62, 9936, 47, 1546, 92, 7, 64, 3712, 13290, 1384, 19182, 90, 51, 30072, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 399, 9078, 19182, 7, 64, 11, 3991, 8, 198, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 7177, 17, 9078, 7, 64, 8, 1303, 2121, 1891, 284, 1729, 12, 33111, 20519, 2196, 198, 220, 220, 220, 886, 198, 437, 198, 198, 20519, 49, 964, 325, 35, 12078, 90, 51, 27, 25, 22182, 56, 62, 9936, 47, 1546, 92, 7, 64, 3712, 13290, 1384, 19182, 90, 51, 30072, 796, 399, 9078, 19182, 7, 64, 11, 2081, 8, 198, 20519, 49, 964, 325, 35, 12078, 7, 64, 3712, 13128, 19182, 8, 796, 9485, 49, 964, 325, 35, 12078, 7, 19182, 7, 64, 4008, 198, 198, 37811, 198, 220, 220, 220, 9485, 49, 964, 325, 35, 12078, 7, 18747, 8, 198, 198, 47, 13978, 257, 22300, 4600, 18747, 63, 284, 11361, 355, 257, 31835, 20519, 5752, 12, 22478, 7177, 198, 7, 34330, 621, 22300, 338, 6868, 5721, 12, 22478, 1502, 8, 351, 262, 198, 27740, 5736, 17687, 357, 68, 13, 70, 13, 257, 362, 12906, 18, 12906, 19, 22300, 7177, 318, 3804, 355, 198, 64, 604, 12906, 18, 12906, 17, 31835, 20519, 5752, 12, 22478, 7177, 737, 220, 770, 318, 4465, 329, 11361, 198, 75, 11127, 326, 1607, 5752, 12, 22478, 1366, 13, 198, 37811, 198, 20519, 49, 964, 325, 35, 12078, 7, 64, 3712, 23839, 19182, 8, 198, 198, 29113, 29113, 7804, 2, 198, 2, 29677, 5485, 290, 584, 1321, 546, 257, 31835, 20519, 7177, 13, 220, 775, 761, 198, 2, 284, 869, 262, 11361, 7071, 284, 466, 428, 11, 1201, 262, 7548, 1321, 198, 2, 287, 31835, 20519, 338, 327, 7824, 318, 691, 1695, 2884, 34749, 357, 273, 32096, 2878, 82, 737, 198, 2, 685, 19996, 11, 428, 481, 307, 6596, 287, 257, 2003, 31835, 20519, 2196, 13, 2361, 198, 198, 4906, 9485, 19182, 62, 12360, 198, 220, 220, 220, 309, 3712, 6030, 198, 220, 220, 220, 6868, 3712, 33, 970, 1303, 6868, 18022, 1502, 30, 198, 220, 220, 220, 264, 89, 3712, 38469, 90, 5317, 92, 198, 220, 220, 220, 336, 3712, 38469, 90, 5317, 92, 1303, 35002, 11, 287, 5021, 2374, 286, 9881, 0, 198, 220, 220, 220, 1366, 3712, 46745, 90, 53, 1868, 92, 198, 220, 220, 220, 1100, 8807, 3712, 33, 970, 628, 220, 220, 220, 2163, 9485, 19182, 62, 12360, 7, 64, 3712, 20519, 10267, 8, 198, 220, 220, 220, 220, 220, 220, 220, 257, 72, 796, 9485, 35, 713, 90, 23839, 10100, 11, 20519, 10267, 92, 7, 64, 14692, 834, 18747, 62, 39994, 834, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2170, 395, 81, 796, 10385, 7, 23839, 10100, 11, 257, 72, 14692, 28004, 395, 81, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 309, 796, 299, 9078, 62, 28004, 395, 3808, 58, 28004, 395, 81, 58, 17, 25, 437, 11907, 198, 220, 220, 220, 220, 220, 220, 220, 4818, 265, 29291, 796, 10385, 7, 51, 29291, 90, 5317, 11, 33, 970, 5512, 257, 72, 14692, 7890, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 89, 796, 10385, 7, 38469, 90, 5317, 5512, 257, 72, 14692, 43358, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1957, 336, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 796, 318, 28920, 7, 82, 89, 8, 5633, 2558, 21737, 1058, 10385, 7, 38469, 90, 5317, 5512, 257, 72, 14692, 2536, 1460, 8973, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 4277, 318, 327, 12, 2875, 48627, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 796, 2092, 7, 82, 89, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 58, 437, 60, 796, 39364, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 796, 4129, 7, 82, 89, 13219, 16, 21912, 16, 25, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 58, 72, 60, 796, 336, 58, 72, 10, 16, 60, 9, 82, 89, 58, 72, 10, 16, 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, 1441, 649, 7, 51, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 10619, 16868, 62, 33, 2662, 6624, 657, 87, 36676, 1270, 1264, 11405, 2170, 395, 81, 58, 16, 60, 6624, 705, 27, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8614, 357, 10619, 16868, 62, 33, 2662, 6624, 657, 87, 20943, 1238, 21288, 11405, 2170, 395, 81, 58, 16, 60, 6624, 705, 29, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8614, 2170, 395, 81, 58, 16, 60, 6624, 705, 91, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 89, 11, 336, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10385, 7, 46745, 90, 53, 1868, 5512, 4818, 265, 29291, 58, 16, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4818, 265, 29291, 58, 17, 12962, 198, 220, 220, 220, 886, 198, 437, 198, 198, 41634, 7, 72, 3712, 20519, 19182, 62, 12360, 8, 796, 1303, 220, 44855, 11682, 25, 635, 2198, 17562, 19114, 30, 198, 220, 477, 7, 76, 4613, 285, 6624, 657, 11, 953, 7, 72, 13, 301, 11, 39364, 7, 72, 13, 51, 22305, 1303, 35002, 2659, 12843, 416, 1288, 7857, 198, 198, 2, 1771, 257, 48627, 7177, 287, 5721, 12, 22478, 357, 21926, 2596, 11, 22300, 8, 1502, 198, 8818, 277, 62, 3642, 29709, 7, 51, 3712, 6030, 11, 264, 89, 3712, 38469, 90, 5317, 5512, 336, 3712, 38469, 90, 5317, 30072, 198, 220, 220, 220, 611, 40426, 7, 82, 89, 8, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 336, 58, 16, 60, 14512, 39364, 7, 51, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 474, 796, 362, 25, 13664, 7, 301, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 336, 58, 73, 60, 14512, 336, 58, 73, 12, 16, 60, 1635, 264, 89, 58, 73, 12, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2081, 198, 437, 198, 198, 69, 62, 3642, 29709, 7, 72, 3712, 20519, 19182, 62, 12360, 8, 796, 277, 62, 3642, 29709, 7, 72, 13, 51, 11, 1312, 13, 82, 89, 11, 1312, 13, 301, 8, 198, 66, 62, 3642, 29709, 7, 72, 3712, 20519, 19182, 62, 12360, 8, 796, 277, 62, 3642, 29709, 7, 72, 13, 51, 11, 14283, 27740, 7, 72, 13, 82, 89, 11, 16, 828, 14283, 27740, 7, 72, 13, 301, 11, 16, 4008, 198, 198, 29113, 29113, 7804, 2, 198, 2, 9485, 19182, 25, 645, 12, 30073, 29908, 1088, 31835, 20519, 299, 67, 18747, 198, 2, 198, 2, 19996, 11, 287, 262, 2003, 428, 460, 307, 257, 47611, 286, 4285, 1384, 19182, 357, 3826, 198, 2, 22300, 2071, 1303, 1954, 2231, 828, 543, 481, 1249, 340, 284, 307, 973, 351, 749, 22300, 198, 2, 5499, 11, 475, 326, 318, 407, 1744, 379, 262, 2589, 13, 220, 1406, 11, 284, 779, 428, 198, 2, 351, 22300, 300, 1292, 70, 5499, 3503, 2357, 64, 257, 4866, 318, 991, 2672, 13, 198, 198, 37811, 198, 220, 220, 220, 9485, 19182, 7, 78, 3712, 20519, 10267, 8, 198, 198, 1212, 26161, 281, 4600, 358, 18747, 63, 2134, 4600, 78, 63, 284, 257, 9485, 19182, 13, 198, 198, 1212, 23986, 257, 299, 420, 11081, 29908, 284, 257, 31835, 20519, 7177, 357, 41745, 286, 691, 35575, 3858, 691, 737, 198, 198, 1532, 345, 389, 1262, 4600, 9078, 13345, 63, 290, 262, 2163, 5860, 281, 4600, 358, 18747, 47671, 345, 460, 779, 4600, 20519, 19182, 63, 355, 262, 1441, 2099, 284, 3264, 3328, 257, 4600, 20519, 19182, 44646, 198, 37811, 198, 4906, 9485, 19182, 90, 51, 11, 45, 92, 1279, 25, 27741, 19182, 90, 51, 11, 45, 92, 198, 220, 220, 220, 267, 3712, 20519, 10267, 198, 220, 220, 220, 7508, 3712, 20519, 19182, 62, 12360, 198, 220, 220, 220, 5391, 82, 3712, 35, 12078, 198, 220, 220, 220, 336, 3712, 38469, 90, 5317, 92, 198, 220, 220, 220, 277, 62, 3642, 328, 3712, 33, 970, 198, 220, 220, 220, 269, 62, 3642, 328, 3712, 33, 970, 198, 220, 220, 220, 1366, 3712, 46745, 90, 51, 92, 628, 220, 220, 220, 2163, 9485, 19182, 7, 78, 3712, 20519, 10267, 11, 7508, 3712, 20519, 19182, 62, 12360, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 41634, 7, 10951, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 28100, 1713, 12331, 7203, 8807, 28498, 56, 62, 1503, 30631, 62, 1847, 16284, 1961, 26515, 389, 4855, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 5145, 10951, 13, 30191, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 28100, 1713, 12331, 7203, 8807, 6868, 18022, 12, 2875, 26515, 389, 4855, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 7508, 13, 51, 14512, 309, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 28100, 1713, 12331, 7203, 1939, 684, 7609, 2099, 287, 9485, 19182, 23772, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 4129, 7, 10951, 13, 82, 89, 8, 14512, 399, 8614, 4129, 7, 10951, 13, 301, 8, 14512, 399, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 28100, 1713, 12331, 7203, 1939, 684, 7609, 299, 67, 12078, 287, 9485, 19182, 23772, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 649, 7, 78, 11, 7508, 11, 46545, 7, 10951, 13, 82, 89, 986, 828, 2659, 7, 10951, 13, 301, 11, 39364, 7, 51, 36911, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 62, 3642, 29709, 7, 10951, 828, 269, 62, 3642, 29709, 7, 10951, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10385, 7, 46745, 90, 51, 5512, 7508, 13, 7890, 4008, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 9485, 19182, 7, 78, 3712, 20519, 10267, 8, 198, 220, 220, 220, 7508, 796, 9485, 19182, 62, 12360, 7, 78, 8, 198, 220, 220, 220, 1441, 9485, 19182, 90, 10951, 13, 51, 11, 4129, 7, 10951, 13, 82, 89, 38165, 7, 78, 11, 7508, 8, 198, 437, 198, 198, 7857, 7, 64, 3712, 20519, 19182, 8, 796, 257, 13, 67, 12078, 198, 358, 12078, 90, 51, 11, 45, 92, 7, 64, 3712, 20519, 19182, 90, 51, 11, 45, 30072, 796, 399, 198, 198, 38610, 7, 64, 3712, 20519, 19182, 11, 309, 11, 5391, 82, 3712, 35, 12078, 8, 796, 15690, 7, 51, 11, 5391, 82, 8, 198, 198, 8818, 4866, 90, 51, 11, 45, 92, 7, 64, 3712, 20519, 19182, 90, 51, 11, 45, 30072, 198, 220, 220, 220, 611, 399, 1875, 352, 11405, 257, 13, 66, 62, 3642, 328, 1303, 7548, 284, 277, 62, 3642, 328, 351, 17687, 5391, 82, 198, 220, 220, 220, 220, 220, 220, 220, 347, 796, 17562, 62, 1462, 62, 18747, 7, 64, 13, 7890, 11, 299, 83, 29291, 19510, 77, 4613, 257, 13, 67, 12078, 58, 45, 532, 299, 1343, 352, 46570, 399, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 399, 6624, 362, 5633, 1007, 3455, 7, 33, 8, 1058, 9943, 7241, 12078, 7, 33, 11, 357, 45, 21912, 16, 25, 16, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 317, 796, 15690, 7, 51, 11, 257, 13, 67, 12078, 8, 198, 220, 220, 220, 611, 257, 13, 69, 62, 3642, 328, 198, 220, 220, 220, 220, 220, 220, 220, 269, 13345, 7, 25, 11883, 66, 9078, 11, 18331, 11, 357, 46745, 90, 51, 5512, 350, 2213, 90, 51, 5512, 2558, 828, 317, 11, 257, 11, 39364, 7, 51, 27493, 13664, 7, 64, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 317, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 4866, 0, 7, 32, 11, 257, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 2, 16926, 46, 25, 761, 284, 466, 22303, 12, 41004, 286, 777, 36525, 0, 198, 198, 1136, 9630, 90, 51, 92, 7, 64, 3712, 20519, 19182, 90, 51, 11, 15, 30072, 796, 21596, 62, 2220, 7, 64, 13, 7890, 8, 198, 1136, 9630, 90, 51, 92, 7, 64, 3712, 20519, 19182, 90, 51, 11, 16, 5512, 1312, 3712, 46541, 8, 796, 21596, 62, 2220, 7, 64, 13, 7890, 11, 352, 1343, 357, 72, 12, 16, 27493, 64, 13, 301, 58, 16, 12962, 198, 198, 1136, 9630, 90, 51, 92, 7, 64, 3712, 20519, 19182, 90, 51, 11, 17, 5512, 1312, 3712, 46541, 11, 474, 3712, 46541, 8, 796, 198, 220, 21596, 62, 2220, 7, 64, 13, 7890, 11, 352, 1343, 357, 72, 12, 16, 27493, 64, 13, 301, 58, 16, 60, 1343, 357, 73, 12, 16, 27493, 64, 13, 301, 58, 17, 12962, 198, 198, 8818, 651, 9630, 7, 64, 3712, 20519, 19182, 11, 1312, 3712, 46541, 8, 198, 220, 220, 220, 611, 257, 13, 69, 62, 3642, 328, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 21596, 62, 2220, 7, 64, 13, 7890, 11, 1312, 8, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 257, 58, 521, 17, 7266, 7, 64, 13, 67, 12078, 11, 1312, 8, 22345, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 651, 9630, 7, 64, 3712, 20519, 19182, 11, 318, 3712, 46541, 23029, 198, 220, 220, 220, 6376, 796, 352, 198, 220, 220, 220, 299, 796, 949, 7, 13664, 7, 271, 828, 13664, 7, 64, 13, 301, 4008, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 77, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 15853, 357, 271, 58, 72, 45297, 16, 27493, 64, 13, 301, 58, 72, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 1312, 796, 299, 10, 16, 25, 13664, 7, 271, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 318, 58, 72, 60, 14512, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 33, 3733, 12331, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 21596, 62, 2220, 7, 64, 13, 7890, 11, 6376, 8, 198, 437, 198, 198, 8818, 3551, 482, 62, 562, 570, 7, 64, 3712, 20519, 19182, 11, 410, 11, 1312, 3712, 46541, 8, 198, 220, 220, 220, 611, 257, 13, 10951, 13, 961, 8807, 198, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 28100, 1713, 12331, 7203, 961, 12, 8807, 9485, 19182, 48774, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 21596, 62, 8095, 0, 7, 64, 13, 7890, 11, 410, 11, 1312, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 257, 198, 437, 198, 198, 2617, 9630, 0, 90, 51, 92, 7, 64, 3712, 20519, 19182, 90, 51, 11, 15, 5512, 410, 8, 796, 3551, 482, 62, 562, 570, 7, 64, 11, 410, 11, 352, 8, 198, 2617, 9630, 0, 90, 51, 92, 7, 64, 3712, 20519, 19182, 90, 51, 11, 16, 5512, 410, 11, 1312, 3712, 46541, 8, 796, 3551, 482, 62, 562, 570, 7, 64, 11, 410, 11, 352, 1343, 357, 72, 12, 16, 27493, 64, 13, 301, 58, 16, 12962, 198, 198, 2617, 9630, 0, 90, 51, 92, 7, 64, 3712, 20519, 19182, 90, 51, 11, 17, 5512, 410, 11, 1312, 3712, 46541, 11, 474, 3712, 46541, 8, 796, 198, 220, 3551, 482, 62, 562, 570, 7, 64, 11, 410, 11, 352, 1343, 357, 72, 12, 16, 27493, 64, 13, 301, 58, 16, 60, 1343, 357, 73, 12, 16, 27493, 64, 13, 301, 58, 17, 12962, 198, 198, 8818, 900, 9630, 0, 7, 64, 3712, 20519, 19182, 11, 410, 11, 1312, 3712, 46541, 8, 198, 220, 220, 220, 611, 257, 13, 69, 62, 3642, 328, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3551, 482, 62, 562, 570, 7, 64, 11, 410, 11, 1312, 8, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 900, 9630, 0, 7, 64, 11, 410, 11, 773, 17, 7266, 7, 64, 13, 67, 12078, 11, 1312, 8, 23029, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 900, 9630, 0, 7, 64, 3712, 20519, 19182, 11, 410, 11, 318, 3712, 46541, 23029, 198, 220, 220, 220, 6376, 796, 352, 198, 220, 220, 220, 299, 796, 949, 7, 13664, 7, 271, 828, 13664, 7, 64, 13, 301, 4008, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 77, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 15853, 357, 271, 58, 72, 45297, 16, 27493, 64, 13, 301, 58, 72, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 329, 1312, 796, 299, 10, 16, 25, 13664, 7, 271, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 318, 58, 72, 60, 14512, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 33, 3733, 12331, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 3551, 482, 62, 562, 570, 7, 64, 11, 410, 11, 6376, 8, 198, 437, 198, 198, 2536, 485, 7, 64, 3712, 20519, 19182, 11, 1312, 3712, 46541, 8, 796, 257, 13, 301, 58, 72, 60, 198, 198, 14881, 13, 13271, 8635, 62, 1102, 1851, 90, 51, 92, 7, 3712, 6030, 90, 46745, 90, 51, 92, 5512, 257, 3712, 20519, 19182, 90, 51, 30072, 796, 257, 13, 7890, 198, 198, 29536, 7, 64, 3712, 20519, 19182, 11, 1312, 3712, 5317, 8, 796, 17562, 7, 64, 11, 773, 17, 7266, 7, 64, 13, 67, 12078, 11, 1312, 4008, 198, 198, 8818, 17562, 90, 51, 92, 7, 64, 3712, 20519, 19182, 90, 51, 5512, 318, 3712, 51, 29291, 90, 19852, 853, 90, 5317, 11709, 8, 198, 220, 220, 220, 11677, 796, 657, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 13664, 7, 271, 8, 198, 220, 220, 220, 220, 220, 220, 220, 11677, 15853, 357, 271, 58, 72, 45297, 16, 27493, 64, 13, 301, 58, 72, 60, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 257, 13, 7890, 1343, 11677, 9, 7857, 1659, 7, 51, 8, 198, 437, 198, 198, 49736, 90, 51, 92, 7, 64, 3712, 20519, 19182, 90, 51, 30072, 796, 4731, 7, 14881, 13, 67, 12078, 17, 8841, 7, 7857, 7, 64, 36911, 366, 33172, 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, 4731, 7, 51, 828, 366, 9485, 19182, 4943, 198, 198, 29113, 29113, 7804, 2, 198, 2, 9485, 19182, 1279, 3784, 9485, 10267, 32626, 198, 198, 20519, 10267, 7, 64, 3712, 20519, 19182, 8, 796, 257, 13, 78, 198, 198, 1102, 1851, 7, 3712, 6030, 90, 20519, 19182, 5512, 267, 3712, 20519, 10267, 8, 796, 9485, 19182, 7, 78, 8, 198, 198, 8818, 10385, 90, 51, 27, 25, 22182, 56, 62, 9936, 47, 1546, 92, 7, 3712, 6030, 90, 19182, 90, 51, 11, 352, 92, 5512, 267, 3712, 20519, 10267, 8, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 7, 20519, 19182, 90, 51, 11, 352, 92, 7, 78, 11, 9485, 19182, 62, 12360, 7, 78, 22305, 1303, 481, 2198, 309, 290, 399, 3691, 13, 7508, 198, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 18896, 796, 2488, 9078, 9122, 89, 269, 13345, 19510, 31, 79, 893, 4948, 1058, 20519, 44015, 594, 62, 10699, 828, 2558, 11, 357, 20519, 46745, 11, 828, 267, 8, 198, 220, 220, 220, 220, 220, 220, 220, 317, 796, 15690, 7, 9078, 1092, 62, 1462, 1092, 7, 51, 828, 18896, 8, 198, 220, 220, 220, 220, 220, 220, 220, 12972, 17, 18747, 7, 51, 11, 317, 11, 267, 11, 352, 11, 352, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 10385, 90, 51, 27, 25, 22182, 56, 62, 9936, 47, 1546, 92, 7, 3712, 6030, 90, 19182, 90, 51, 92, 5512, 267, 3712, 20519, 10267, 8, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 7508, 796, 9485, 19182, 62, 12360, 7, 78, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4866, 7, 20519, 19182, 90, 51, 11, 4129, 7, 10951, 13, 82, 89, 38165, 7, 78, 11, 7508, 4008, 1303, 481, 2198, 309, 6624, 7508, 13, 51, 198, 220, 220, 220, 220, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 12972, 17, 18747, 7, 51, 11, 15690, 7, 9078, 1092, 62, 1462, 1092, 7, 51, 828, 7508, 13, 82, 89, 986, 828, 267, 11, 352, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 12972, 17, 18747, 7, 51, 11, 267, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 10385, 90, 51, 27, 25, 22182, 56, 62, 9936, 47, 1546, 11, 45, 92, 7, 3712, 6030, 90, 19182, 90, 51, 11, 45, 92, 5512, 267, 3712, 20519, 10267, 8, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 7508, 796, 9485, 19182, 62, 12360, 7, 78, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4866, 7, 20519, 19182, 90, 51, 11, 45, 92, 7, 78, 11, 7508, 4008, 1303, 481, 2198, 309, 6624, 7508, 13, 51, 290, 399, 6624, 4129, 7, 10951, 13, 82, 89, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 67, 796, 4129, 7, 10951, 13, 82, 89, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 299, 67, 14512, 399, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 28100, 1713, 12331, 7203, 66, 34574, 10385, 29568, 358, 8, 67, 7177, 284, 29568, 45, 8, 67, 48774, 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, 12972, 17, 18747, 7, 51, 11, 15690, 7, 9078, 1092, 62, 1462, 1092, 7, 51, 828, 7508, 13, 82, 89, 986, 828, 267, 11, 352, 11, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 317, 796, 12972, 17, 18747, 7, 51, 11, 267, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 299, 67, 12078, 7, 32, 8, 14512, 399, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 28100, 1713, 12331, 7203, 66, 34574, 10385, 29568, 358, 12078, 7, 32, 4008, 67, 7177, 284, 29568, 45, 8, 67, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 317, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 10385, 7, 3712, 6030, 90, 19182, 90, 20519, 10267, 92, 5512, 267, 3712, 20519, 10267, 8, 198, 220, 220, 220, 3975, 7, 9078, 1939, 5420, 11, 10385, 7, 19182, 90, 20519, 46745, 5512, 267, 4008, 198, 437, 198, 198, 8818, 10385, 7, 3712, 6030, 90, 19182, 90, 20519, 10267, 11, 16, 92, 5512, 267, 3712, 20519, 10267, 8, 198, 220, 220, 220, 3975, 7, 9078, 1939, 5420, 11, 10385, 7, 19182, 90, 20519, 46745, 11, 352, 5512, 267, 4008, 198, 437, 198, 198, 8818, 10385, 90, 45, 92, 7, 3712, 6030, 90, 19182, 90, 20519, 10267, 11, 45, 92, 5512, 267, 3712, 20519, 10267, 8, 198, 220, 220, 220, 3975, 7, 9078, 1939, 5420, 11, 10385, 7, 19182, 90, 20519, 46745, 11, 399, 5512, 267, 4008, 198, 437, 198, 198, 29113, 29113, 7804, 2, 198 ]
2.243308
7,472
function allunitsharvest!(game) #groundlevel=false #if unit.pl=[2] # groundlevel=true #end #bools=(unit.passover,unit.passoverself,unit.inclusive) #influencemap=allinfluence(game,unit.groundlevel,bools) allunitslive!(game) points=[0.0,0,0,0,0] for (loc,unit) in game.map if unit!=0 points.+=unit.harvest!(game,unit) # println(points) end end #game.points.+=points game.season+=1 push!(game.sequence,:harvest) GAccessor.text(game.g[1,2],pointslabel(game)) return points end function lifluence(game,unit::Unit) lifemap=unitslive(game,unit.color) connectedunits=Unit[unit] cwhite=Unit[] group=[unit.loc] if unit.color==(1,1,1) push!(cwhite,unit) stuff=Dict() #stuff[:loced]=[unit.loc] reach=makegrid(7) for loc in reach u=game.map[loc] if isa(u,Unit) && u.color!=(1,1,1) && !haskey(stuff,u.color) #!in(loc,stuff[:loced]) lmu=lifluence(game,u) if in(unit,lmu[3]) stuff[u.color]=lmu end end end for (col,lm) in stuff for l in lm[1] if !in(l,group) push!(group,l) end end for cu in lm[2] if !in(cu,connectedunits) push!(connectedunits,cu) end end for cw in lm[3] if !in(cw,cwhite) push!(cwhite,cw) end end end return (group,connectedunits,cwhite) end temp=[unit.loc] while !isempty(temp) temp2=Tuple[] for t in temp for h in adjacent(t) # lmt=lifemap[t] # lmh=lifemap[h] # canspread=true if !in(h,group) && !in(h,temp) && !in(h,temp2) && in(h,game.board.grid) && sum(lifemap[h])>0 push!(temp2,h) u=game.map[h] if isa(u,Unit) push!(connectedunits,u) if u.color==(1,1,1) push!(cwhite,u) end end end end end for t2 in temp2 push!(group,t2) end temp=temp2 end return (group,connectedunits,cwhite) end function connectedunits(game,unit) (lif,cu,cw)=lifluence(game,unit) cellconnected=getcellgroup(game,unit) return (cw,cellconnected,cu) #connected white units, connected by cells, connected by lifluence end function influence(game,hex,groundlevel=false,passover=false,passoverself=true,inclusive=true) unit=game.map[hex] white=(1,1,1) group=Dict(hex=>6.0) temp=Dict(hex=>6.0) for rad in 1:unit.ir temp2=Dict() for t in temp for h in adjacent(t[1],1,groundlevel) if !in(h,keys(group)) && !in(h,keys(temp)) && !in(h,keys(temp2)) && in(h,keys(game.map)) inf=1/rad if game.map[h]==0 || passover temp2[h]=inf elseif passoverself && (game.map[h].color==unit.color || game.map[h].color==white) temp2[h]=inf end if inclusive && game.map[h]!=0 && !in(h,keys(temp2)) group[h]=inf end end end end for (h2,i2) in temp2 group[h2]=i2 end temp=temp2 end return group end function allinfluence(game,groundlevel=false,bools=(true,false,true,true)) influencemap=Dict() for (loc,player) in game.map if !groundlevel || loc[3]==2 influencemap[loc]=[0.0,0,0] end end for (loc,unit) in game.map if unit!=0 col=unit.color infl=influence(game,loc,bools...) for inf in infl influencemap[inf[1]].+=inf[2].*col end end end return influencemap end function peekharvest(game,groundlevel=false,bools=(true,false,true,true)) influencemap=allinfluence(game,groundlevel,bools) brgbw=[0.0,0,0,0,0] for (iloc,inf) in influencemap ninf=numcolors(inf) if ninf==3 brgbw[5]+=min(inf...) end if ninf==1 brgbw[1]+=min(sum(inf),1) else for c in 1:3 brgbw[c+1]+=min(inf[c],inf[c%3+1]) end end end for c in 2:4 brgbw[c]-=brgbw[5] end return brgbw end function getgroup_dep(game,hex) player=game.map[hex] white=(1,1,1) if player==0 return [] end group=Tuple[hex] temp=[hex] while !isempty(temp) temp2=Tuple[] for t in temp for h in adjacent(t) if !in(h,group) && !in(h,temp) && !in(h,temp2) && in(h,keys(game.map)) && (game.map[h]==player || game.map[h]==white) push!(temp2,h) end end end for t2 in temp2 push!(group,t2) end temp=temp2 end return group end function unitcost(game,loc,unitparams) distance=nearestwhite(game,loc,loc[3]==2) cost=distance*unitparams[2] cost*=sum(unitparams[1]) #only if sum>1? return cost end function unitcost(game,unit::Unit) return unit.costfun(game) end function subtractcost(game,cost,color) rgb=cost.*color srgb=sum(rgb) if rgb[1]<=game.points[2] && rgb[2]<=game.points[3] && rgb[3]<=game.points[4] game.points[2]-=rgb[1] game.points[3]-=rgb[2] game.points[4]-=rgb[3] elseif srgb/2<=game.points[5] && srgb/2<=game.points[1] game.points[1]-=srgb/2 game.points[5]-=srgb/2 else return false end return true end function updategroups_dep!(game::Game) #sometimes doesn't find most recent unit..? Or is there an issue when deleting units? Maybe fixed. Now it sometimes adds the most recent unit twice... groups=Group[] for spawn in game.spawns push!(groups,getgroup(game,spawn)) end unique=Group[groups[1]] for group in groups for uniq in unique if samegroup(group,uniq) break end push!(unique,group) end end game.groups=unique end function getgroup_dep(game,unit::Unit,color=-1,connectedunits=Unit[]) #why don't white units get added to spawns? Maybe they shouldn't, bug in our favor. They should be available as partial spawns, divide white into 3 spawn units. Fixed some stuff, still good bugs? Well, this should be rewritten rather than bugged down, first a initgroup that gets the body. if color==-1 color=unit.color end lifemap=unitslive(game,unit.color) if !in(unit,connectedunits) push!(connectedunits,unit) end cwhite=Unit[] #connected spawns if color==(1,1,1) #this needs to be rewritten to allow colored spawns, sorta works now but... nonbody groups automerge with white group push!(cwhite,unit) stuff=Dict() reach=makegrid(7) #should be minimum twice the maximum ir of all units +1, should be a better way for lo in reach loc=lo.+(unit.loc.-(0,0,2)) if !in(loc,keys(game.map)) continue end u=game.map[loc] if isa(u,Unit) && distance(u.loc,unit.loc)<(u.ir+unit.ir+2) && !haskey(stuff,u.color) && !in(u,connectedunits) && u.color!=(1,1,1) subgroup=getgroup(game,u,u.color,connectedunits) if in(unit,subgroup.spawns) stuff[u.color]=subgroup end end end for (col,sg) in stuff for cu in sg.units if !in(cu,connectedunits) push!(connectedunits,cu) end end for cw in sg.spawns if !in(cw,cwhite) push!(cwhite,cw) end end end body=getcellgroup(game,cwhite[1]) return newgroup(cwhite,body,connectedunits) end ulocs=[unit.loc] temp=[unit.loc] while !isempty(temp) temp2=Tuple[] for t in temp for h in adjacent(t) if !in(h,ulocs) && !in(h,temp) && !in(h,temp2) && in(h,game.board.grid) && sum(lifemap[h])>0 push!(temp2,h) u=game.map[h] if isa(u,Unit) && !in(u,connectedunits) push!(connectedunits,u) if u.color==(1,1,1) push!(cwhite,u) for adjwu in adjacent(u.loc) adju=game.map[adjwu] if isa(adju,Unit) && adju.color==color && !in(adju,connectedunits) nsg=getgroup(game,adju,color,connectedunits) for cu in nsg.units if !in(cu,connectedunits) push!(connectedunits,cu) end end for cw in nsg.spawns if !in(cw,cwhite) push!(cwhite,cw) end end end end end end end end end for t2 in temp2 push!(ulocs,t2) end temp=temp2 end body=getcellgroup(game,connectedunits[1]) #tempfix return newgroup(cwhite,body,connectedunits) end function allunitslive!(game) lifemap=Dict() for loc in game.board.grid lifemap[loc]=[0.0,0,0] end for (loc,unit) in game.map if isa(unit,Unit) unit.live!(game,unit,lifemap) end end game.lifemap=lifemap return lifemap end #lifemap=allunitslive! #maybe not store lifemap in game since it gets modified in so many places. Rewrite everything to work with a temp lifemap. Or rather have a solid lifemap and a temp harvest ledger function printpoints(game) harv=round.(peekharvest(game),1,10) println("Black: ",harv[1]," Red: ",harv[2]," Green: ",harv[3]," Blue: ",harv[4]," White: ",harv[5])#," Total: ",sum(harv)) end function nearestwhite(game,hex,layer=false) #rewrite to check for spawn? Or spawning is always done from groups? This isn't even needed now that costs are gone white=(1,1,1) group=[hex] temp=[hex] for rad in 1:1000000 temp2=[] for t in temp for h in adjacent(t,1,layer) if in(h,keys(game.map)) unit=game.map[h] if unit!=0 && unit.color==white return rad end if !in(h,group) && !in(h,temp) && !in(h,temp2) push!(temp2,h) end end end end for h2 in temp2 push!(group,h2) end temp=temp2 end return Inf end function getexpandcost(shells::Integer=6,initlocs=[(6,6,2)],basecost=50) #deprecated patch=makegrid(shells,initlocs) cost=length(patch)+basecost*length(initlocs) return cost end function harvest!(game,group::Group) if !group.harvested harv=checkharvest(game,group) #some stuff needs to be rewritten to avoid the deepcopy above group.points+=harv group.harvested=true for unit in group.units unit.harvested=true end end end function allgroupsharvest!(game) for group in game.groups harvest!(game,group) end end function collectharvest!(game::Game) for group in game.groups game.points+=group.points group.points-=group.points end end function newseason!(game) for group in game.groups group.harvested=false for unit in group.units unit.harvested=false end end game.season+=1 end function harvest!(game::Game) allunitslive!(game) #maybe call only when new units are placed. But then placing units takes longer... updategroups!(game) allgroupsharvest!(game) collectharvest!(game) newseason!(game) push!(game.sequence,:harvest) GAccessor.text(game.g[1,2],pointslabel(game)) return game.points end
[ 8818, 477, 41667, 9869, 4223, 0, 7, 6057, 8, 198, 197, 2, 2833, 5715, 28, 9562, 198, 197, 2, 361, 4326, 13, 489, 41888, 17, 60, 198, 197, 2, 197, 2833, 5715, 28, 7942, 198, 197, 2, 437, 198, 197, 2, 65, 10141, 16193, 20850, 13, 6603, 2502, 11, 20850, 13, 6603, 2502, 944, 11, 20850, 13, 259, 5731, 8, 198, 197, 2, 10745, 23079, 8899, 28, 439, 10745, 23079, 7, 6057, 11, 20850, 13, 2833, 5715, 11, 65, 10141, 8, 198, 197, 439, 41667, 12583, 0, 7, 6057, 8, 198, 197, 13033, 41888, 15, 13, 15, 11, 15, 11, 15, 11, 15, 11, 15, 60, 198, 197, 1640, 357, 17946, 11, 20850, 8, 287, 983, 13, 8899, 198, 197, 197, 361, 4326, 0, 28, 15, 198, 197, 197, 197, 13033, 13, 47932, 20850, 13, 9869, 4223, 0, 7, 6057, 11, 20850, 8, 198, 2, 197, 197, 197, 35235, 7, 13033, 8, 198, 197, 197, 437, 198, 197, 437, 198, 197, 2, 6057, 13, 13033, 13, 47932, 13033, 198, 197, 6057, 13, 6230, 47932, 16, 198, 197, 14689, 0, 7, 6057, 13, 43167, 11, 25, 9869, 4223, 8, 198, 197, 9273, 1591, 273, 13, 5239, 7, 6057, 13, 70, 58, 16, 11, 17, 4357, 4122, 6649, 9608, 7, 6057, 4008, 198, 197, 7783, 2173, 198, 437, 198, 198, 8818, 3868, 23079, 7, 6057, 11, 20850, 3712, 26453, 8, 198, 197, 36195, 368, 499, 28, 41667, 12583, 7, 6057, 11, 20850, 13, 8043, 8, 198, 197, 15236, 41667, 28, 26453, 58, 20850, 60, 198, 197, 66, 11186, 28, 26453, 21737, 198, 197, 8094, 41888, 20850, 13, 17946, 60, 198, 197, 361, 4326, 13, 8043, 855, 7, 16, 11, 16, 11, 16, 8, 198, 197, 197, 14689, 0, 7, 66, 11186, 11, 20850, 8, 198, 197, 197, 41094, 28, 35, 713, 3419, 198, 197, 197, 2, 41094, 58, 25, 17946, 276, 22241, 58, 20850, 13, 17946, 60, 198, 197, 197, 16250, 28, 15883, 25928, 7, 22, 8, 198, 197, 197, 1640, 1179, 287, 3151, 198, 197, 197, 197, 84, 28, 6057, 13, 8899, 58, 17946, 60, 198, 197, 197, 197, 361, 318, 64, 7, 84, 11, 26453, 8, 11405, 334, 13, 8043, 0, 16193, 16, 11, 16, 11, 16, 8, 11405, 5145, 10134, 2539, 7, 41094, 11, 84, 13, 8043, 8, 197, 2, 0, 259, 7, 17946, 11, 41094, 58, 25, 17946, 276, 12962, 198, 197, 197, 197, 197, 75, 30300, 28, 36195, 23079, 7, 6057, 11, 84, 8, 198, 197, 197, 197, 197, 361, 287, 7, 20850, 11, 75, 30300, 58, 18, 12962, 198, 197, 197, 197, 197, 197, 41094, 58, 84, 13, 8043, 22241, 75, 30300, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 1640, 357, 4033, 11, 75, 76, 8, 287, 3404, 198, 197, 197, 197, 1640, 300, 287, 300, 76, 58, 16, 60, 198, 197, 197, 197, 197, 361, 5145, 259, 7, 75, 11, 8094, 8, 198, 197, 197, 197, 197, 197, 14689, 0, 7, 8094, 11, 75, 8, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 197, 1640, 18912, 287, 300, 76, 58, 17, 60, 198, 197, 197, 197, 197, 361, 5145, 259, 7, 27399, 11, 15236, 41667, 8, 198, 197, 197, 197, 197, 197, 14689, 0, 7, 15236, 41667, 11, 27399, 8, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 197, 1640, 269, 86, 287, 300, 76, 58, 18, 60, 198, 197, 197, 197, 197, 361, 5145, 259, 7, 66, 86, 11, 66, 11186, 8, 198, 197, 197, 197, 197, 197, 14689, 0, 7, 66, 11186, 11, 66, 86, 8, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 7783, 357, 8094, 11, 15236, 41667, 11, 66, 11186, 8, 198, 197, 437, 198, 197, 29510, 41888, 20850, 13, 17946, 60, 198, 197, 4514, 5145, 271, 28920, 7, 29510, 8, 198, 197, 197, 29510, 17, 28, 51, 29291, 21737, 198, 197, 197, 1640, 256, 287, 20218, 198, 197, 197, 197, 1640, 289, 287, 15909, 7, 83, 8, 198, 2, 197, 197, 197, 197, 75, 16762, 28, 36195, 368, 499, 58, 83, 60, 198, 2, 197, 197, 197, 197, 75, 76, 71, 28, 36195, 368, 499, 58, 71, 60, 198, 2, 197, 197, 197, 197, 66, 504, 9681, 28, 7942, 198, 197, 197, 197, 197, 361, 5145, 259, 7, 71, 11, 8094, 8, 11405, 5145, 259, 7, 71, 11, 29510, 8, 11405, 5145, 259, 7, 71, 11, 29510, 17, 8, 11405, 287, 7, 71, 11, 6057, 13, 3526, 13, 25928, 8, 11405, 2160, 7, 36195, 368, 499, 58, 71, 12962, 29, 15, 198, 197, 197, 197, 197, 197, 14689, 0, 7, 29510, 17, 11, 71, 8, 198, 197, 197, 197, 197, 197, 84, 28, 6057, 13, 8899, 58, 71, 60, 198, 197, 197, 197, 197, 197, 361, 318, 64, 7, 84, 11, 26453, 8, 220, 198, 197, 197, 197, 197, 197, 197, 14689, 0, 7, 15236, 41667, 11, 84, 8, 198, 197, 197, 197, 197, 197, 197, 361, 334, 13, 8043, 855, 7, 16, 11, 16, 11, 16, 8, 198, 197, 197, 197, 197, 197, 197, 197, 14689, 0, 7, 66, 11186, 11, 84, 8, 198, 197, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 1640, 256, 17, 287, 20218, 17, 198, 197, 197, 197, 14689, 0, 7, 8094, 11, 83, 17, 8, 198, 197, 197, 437, 198, 197, 197, 29510, 28, 29510, 17, 198, 197, 437, 198, 197, 7783, 357, 8094, 11, 15236, 41667, 11, 66, 11186, 8, 198, 437, 198, 8818, 5884, 41667, 7, 6057, 11, 20850, 8, 198, 197, 7, 36195, 11, 27399, 11, 66, 86, 47505, 36195, 23079, 7, 6057, 11, 20850, 8, 198, 197, 3846, 15236, 28, 1136, 3846, 8094, 7, 6057, 11, 20850, 8, 198, 197, 7783, 357, 66, 86, 11, 3846, 15236, 11, 27399, 8, 1303, 15236, 2330, 4991, 11, 5884, 416, 4778, 11, 5884, 416, 3868, 23079, 198, 437, 198, 198, 8818, 4588, 7, 6057, 11, 33095, 11, 2833, 5715, 28, 9562, 11, 6603, 2502, 28, 9562, 11, 6603, 2502, 944, 28, 7942, 11, 259, 5731, 28, 7942, 8, 198, 197, 20850, 28, 6057, 13, 8899, 58, 33095, 60, 198, 197, 11186, 16193, 16, 11, 16, 11, 16, 8, 198, 197, 8094, 28, 35, 713, 7, 33095, 14804, 21, 13, 15, 8, 198, 197, 29510, 28, 35, 713, 7, 33095, 14804, 21, 13, 15, 8, 198, 197, 1640, 2511, 287, 352, 25, 20850, 13, 343, 198, 197, 197, 29510, 17, 28, 35, 713, 3419, 198, 197, 197, 1640, 256, 287, 20218, 198, 197, 197, 197, 1640, 289, 287, 15909, 7, 83, 58, 16, 4357, 16, 11, 2833, 5715, 8, 198, 197, 197, 197, 197, 361, 5145, 259, 7, 71, 11, 13083, 7, 8094, 4008, 11405, 5145, 259, 7, 71, 11, 13083, 7, 29510, 4008, 11405, 5145, 259, 7, 71, 11, 13083, 7, 29510, 17, 4008, 11405, 287, 7, 71, 11, 13083, 7, 6057, 13, 8899, 4008, 220, 198, 197, 197, 197, 197, 197, 10745, 28, 16, 14, 6335, 198, 197, 197, 197, 197, 197, 361, 983, 13, 8899, 58, 71, 60, 855, 15, 8614, 1208, 2502, 198, 197, 197, 197, 197, 197, 197, 29510, 17, 58, 71, 22241, 10745, 198, 197, 197, 197, 197, 197, 17772, 361, 1208, 2502, 944, 11405, 357, 6057, 13, 8899, 58, 71, 4083, 8043, 855, 20850, 13, 8043, 8614, 983, 13, 8899, 58, 71, 4083, 8043, 855, 11186, 8, 198, 197, 197, 197, 197, 197, 197, 29510, 17, 58, 71, 22241, 10745, 198, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 197, 361, 19889, 11405, 983, 13, 8899, 58, 71, 60, 0, 28, 15, 11405, 5145, 259, 7, 71, 11, 13083, 7, 29510, 17, 4008, 198, 197, 197, 197, 197, 197, 197, 8094, 58, 71, 22241, 10745, 198, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 1640, 357, 71, 17, 11, 72, 17, 8, 287, 20218, 17, 198, 197, 197, 197, 8094, 58, 71, 17, 22241, 72, 17, 198, 197, 197, 437, 198, 197, 197, 29510, 28, 29510, 17, 198, 197, 437, 198, 197, 7783, 1448, 198, 437, 198, 8818, 477, 10745, 23079, 7, 6057, 11, 2833, 5715, 28, 9562, 11, 65, 10141, 16193, 7942, 11, 9562, 11, 7942, 11, 7942, 4008, 198, 197, 10745, 23079, 8899, 28, 35, 713, 3419, 198, 197, 1640, 357, 17946, 11, 7829, 8, 287, 983, 13, 8899, 198, 197, 197, 361, 5145, 2833, 5715, 8614, 1179, 58, 18, 60, 855, 17, 198, 197, 197, 197, 10745, 23079, 8899, 58, 17946, 22241, 58, 15, 13, 15, 11, 15, 11, 15, 60, 198, 197, 197, 437, 198, 197, 437, 198, 197, 1640, 357, 17946, 11, 20850, 8, 287, 983, 13, 8899, 198, 197, 197, 361, 4326, 0, 28, 15, 198, 197, 197, 197, 4033, 28, 20850, 13, 8043, 198, 197, 197, 197, 259, 2704, 28, 10745, 23079, 7, 6057, 11, 17946, 11, 65, 10141, 23029, 198, 197, 197, 197, 1640, 1167, 287, 28472, 198, 197, 197, 197, 197, 10745, 23079, 8899, 58, 10745, 58, 16, 60, 4083, 47932, 10745, 58, 17, 4083, 9, 4033, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 437, 198, 197, 7783, 4588, 8899, 198, 437, 198, 198, 8818, 27185, 9869, 4223, 7, 6057, 11, 2833, 5715, 28, 9562, 11, 65, 10141, 16193, 7942, 11, 9562, 11, 7942, 11, 7942, 4008, 198, 197, 10745, 23079, 8899, 28, 439, 10745, 23079, 7, 6057, 11, 2833, 5715, 11, 65, 10141, 8, 198, 197, 1671, 22296, 86, 41888, 15, 13, 15, 11, 15, 11, 15, 11, 15, 11, 15, 60, 198, 197, 1640, 357, 346, 420, 11, 10745, 8, 287, 4588, 8899, 198, 197, 197, 77, 10745, 28, 22510, 4033, 669, 7, 10745, 8, 198, 197, 197, 361, 299, 10745, 855, 18, 198, 197, 197, 197, 1671, 22296, 86, 58, 20, 60, 47932, 1084, 7, 10745, 23029, 198, 197, 197, 437, 198, 197, 197, 361, 299, 10745, 855, 16, 198, 197, 197, 197, 1671, 22296, 86, 58, 16, 60, 47932, 1084, 7, 16345, 7, 10745, 828, 16, 8, 198, 197, 197, 17772, 198, 197, 197, 197, 1640, 269, 287, 352, 25, 18, 198, 197, 197, 197, 197, 1671, 22296, 86, 58, 66, 10, 16, 60, 47932, 1084, 7, 10745, 58, 66, 4357, 10745, 58, 66, 4, 18, 10, 16, 12962, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 437, 198, 197, 1640, 269, 287, 362, 25, 19, 198, 197, 197, 1671, 22296, 86, 58, 66, 45297, 28, 1671, 22296, 86, 58, 20, 60, 198, 197, 437, 198, 197, 7783, 865, 22296, 86, 198, 437, 198, 198, 8818, 651, 8094, 62, 10378, 7, 6057, 11, 33095, 8, 198, 197, 7829, 28, 6057, 13, 8899, 58, 33095, 60, 198, 197, 11186, 16193, 16, 11, 16, 11, 16, 8, 198, 197, 361, 2137, 855, 15, 198, 197, 197, 7783, 17635, 198, 197, 437, 198, 197, 8094, 28, 51, 29291, 58, 33095, 60, 198, 197, 29510, 41888, 33095, 60, 198, 197, 4514, 5145, 271, 28920, 7, 29510, 8, 198, 197, 197, 29510, 17, 28, 51, 29291, 21737, 198, 197, 197, 1640, 256, 287, 20218, 198, 197, 197, 197, 1640, 289, 287, 15909, 7, 83, 8, 198, 197, 197, 197, 197, 361, 5145, 259, 7, 71, 11, 8094, 8, 11405, 5145, 259, 7, 71, 11, 29510, 8, 11405, 5145, 259, 7, 71, 11, 29510, 17, 8, 11405, 287, 7, 71, 11, 13083, 7, 6057, 13, 8899, 4008, 11405, 357, 6057, 13, 8899, 58, 71, 60, 855, 7829, 8614, 983, 13, 8899, 58, 71, 60, 855, 11186, 8, 198, 197, 197, 197, 197, 197, 14689, 0, 7, 29510, 17, 11, 71, 8, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 1640, 256, 17, 287, 20218, 17, 198, 197, 197, 197, 14689, 0, 7, 8094, 11, 83, 17, 8, 198, 197, 197, 437, 198, 197, 197, 29510, 28, 29510, 17, 198, 197, 437, 198, 197, 7783, 1448, 198, 437, 198, 198, 8818, 4326, 15805, 7, 6057, 11, 17946, 11, 20850, 37266, 8, 198, 197, 30246, 28, 710, 12423, 11186, 7, 6057, 11, 17946, 11, 17946, 58, 18, 60, 855, 17, 8, 198, 197, 15805, 28, 30246, 9, 20850, 37266, 58, 17, 60, 198, 197, 15805, 9, 28, 16345, 7, 20850, 37266, 58, 16, 12962, 1303, 8807, 611, 2160, 29, 16, 30, 198, 197, 7783, 1575, 198, 437, 198, 8818, 4326, 15805, 7, 6057, 11, 20850, 3712, 26453, 8, 198, 197, 7783, 4326, 13, 15805, 12543, 7, 6057, 8, 198, 437, 198, 8818, 34128, 15805, 7, 6057, 11, 15805, 11, 8043, 8, 198, 197, 81, 22296, 28, 15805, 15885, 8043, 198, 197, 27891, 22296, 28, 16345, 7, 81, 22296, 8, 198, 197, 361, 46140, 58, 16, 60, 27, 28, 6057, 13, 13033, 58, 17, 60, 11405, 46140, 58, 17, 60, 27, 28, 6057, 13, 13033, 58, 18, 60, 11405, 46140, 58, 18, 60, 27, 28, 6057, 13, 13033, 58, 19, 60, 198, 197, 197, 6057, 13, 13033, 58, 17, 45297, 28, 81, 22296, 58, 16, 60, 198, 197, 197, 6057, 13, 13033, 58, 18, 45297, 28, 81, 22296, 58, 17, 60, 198, 197, 197, 6057, 13, 13033, 58, 19, 45297, 28, 81, 22296, 58, 18, 60, 198, 197, 17772, 361, 19677, 22296, 14, 17, 27, 28, 6057, 13, 13033, 58, 20, 60, 11405, 19677, 22296, 14, 17, 27, 28, 6057, 13, 13033, 58, 16, 60, 198, 197, 197, 6057, 13, 13033, 58, 16, 45297, 28, 27891, 22296, 14, 17, 198, 197, 197, 6057, 13, 13033, 58, 20, 45297, 28, 27891, 22296, 14, 17, 198, 197, 17772, 198, 197, 197, 7783, 3991, 198, 197, 437, 198, 197, 7783, 2081, 198, 437, 198, 8818, 2325, 2397, 14459, 62, 10378, 0, 7, 6057, 3712, 8777, 8, 1303, 29810, 1595, 470, 1064, 749, 2274, 4326, 492, 30, 1471, 318, 612, 281, 2071, 618, 34817, 4991, 30, 6674, 5969, 13, 2735, 340, 3360, 6673, 262, 749, 2274, 4326, 5403, 986, 198, 197, 24432, 28, 13247, 21737, 198, 197, 1640, 10922, 287, 983, 13, 48183, 82, 198, 197, 197, 14689, 0, 7, 24432, 11, 1136, 8094, 7, 6057, 11, 48183, 4008, 198, 197, 437, 198, 197, 34642, 28, 13247, 58, 24432, 58, 16, 11907, 198, 197, 1640, 1448, 287, 2628, 198, 197, 197, 1640, 555, 25011, 287, 3748, 198, 197, 197, 197, 361, 976, 8094, 7, 8094, 11, 403, 25011, 8, 198, 197, 197, 197, 197, 9032, 198, 197, 197, 197, 437, 198, 197, 197, 197, 14689, 0, 7, 34642, 11, 8094, 8, 198, 197, 197, 437, 198, 197, 437, 198, 197, 6057, 13, 24432, 28, 34642, 197, 198, 437, 198, 198, 8818, 651, 8094, 62, 10378, 7, 6057, 11, 20850, 3712, 26453, 11, 8043, 10779, 16, 11, 15236, 41667, 28, 26453, 58, 12962, 1303, 22850, 836, 470, 2330, 4991, 651, 2087, 284, 44632, 30, 6674, 484, 6584, 470, 11, 5434, 287, 674, 2661, 13, 1119, 815, 307, 1695, 355, 13027, 44632, 11, 14083, 2330, 656, 513, 10922, 4991, 13, 10832, 617, 3404, 11, 991, 922, 11316, 30, 3894, 11, 428, 815, 307, 30101, 2138, 621, 809, 11178, 866, 11, 717, 257, 2315, 8094, 326, 3011, 262, 1767, 13, 198, 197, 361, 3124, 855, 12, 16, 198, 197, 197, 8043, 28, 20850, 13, 8043, 198, 197, 437, 198, 197, 36195, 368, 499, 28, 41667, 12583, 7, 6057, 11, 20850, 13, 8043, 8, 198, 197, 361, 5145, 259, 7, 20850, 11, 15236, 41667, 8, 198, 197, 197, 14689, 0, 7, 15236, 41667, 11, 20850, 8, 198, 197, 437, 198, 197, 66, 11186, 28, 26453, 21737, 1303, 15236, 44632, 198, 197, 361, 3124, 855, 7, 16, 11, 16, 11, 16, 8, 1303, 5661, 2476, 284, 307, 30101, 284, 1249, 16396, 44632, 11, 3297, 64, 2499, 783, 475, 986, 1729, 2618, 2628, 3557, 263, 469, 351, 2330, 1448, 198, 197, 197, 14689, 0, 7, 66, 11186, 11, 20850, 8, 198, 197, 197, 41094, 28, 35, 713, 3419, 198, 197, 197, 16250, 28, 15883, 25928, 7, 22, 8, 1303, 21754, 307, 5288, 5403, 262, 5415, 4173, 286, 477, 4991, 1343, 16, 11, 815, 307, 257, 1365, 835, 198, 197, 197, 1640, 2376, 287, 3151, 198, 197, 197, 197, 17946, 28, 5439, 13, 33747, 20850, 13, 17946, 7874, 7, 15, 11, 15, 11, 17, 4008, 198, 197, 197, 197, 361, 5145, 259, 7, 17946, 11, 13083, 7, 6057, 13, 8899, 4008, 198, 197, 197, 197, 197, 43043, 198, 197, 197, 197, 437, 198, 197, 197, 197, 84, 28, 6057, 13, 8899, 58, 17946, 60, 198, 197, 197, 197, 361, 318, 64, 7, 84, 11, 26453, 8, 11405, 5253, 7, 84, 13, 17946, 11, 20850, 13, 17946, 8, 27, 7, 84, 13, 343, 10, 20850, 13, 343, 10, 17, 8, 11405, 5145, 10134, 2539, 7, 41094, 11, 84, 13, 8043, 8, 11405, 5145, 259, 7, 84, 11, 15236, 41667, 8, 11405, 334, 13, 8043, 0, 16193, 16, 11, 16, 11, 16, 8, 198, 197, 197, 197, 197, 7266, 8094, 28, 1136, 8094, 7, 6057, 11, 84, 11, 84, 13, 8043, 11, 15236, 41667, 8, 198, 197, 197, 197, 197, 361, 287, 7, 20850, 11, 7266, 8094, 13, 48183, 82, 8, 198, 197, 197, 197, 197, 197, 41094, 58, 84, 13, 8043, 22241, 7266, 8094, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 1640, 357, 4033, 11, 45213, 8, 287, 3404, 198, 197, 197, 197, 1640, 18912, 287, 264, 70, 13, 41667, 220, 198, 197, 197, 197, 197, 361, 5145, 259, 7, 27399, 11, 15236, 41667, 8, 198, 197, 197, 197, 197, 197, 14689, 0, 7, 15236, 41667, 11, 27399, 8, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 197, 1640, 269, 86, 287, 264, 70, 13, 48183, 82, 198, 197, 197, 197, 197, 361, 5145, 259, 7, 66, 86, 11, 66, 11186, 8, 198, 197, 197, 197, 197, 197, 14689, 0, 7, 66, 11186, 11, 66, 86, 8, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 2618, 28, 1136, 3846, 8094, 7, 6057, 11, 66, 11186, 58, 16, 12962, 198, 197, 197, 7783, 649, 8094, 7, 66, 11186, 11, 2618, 11, 15236, 41667, 8, 198, 197, 437, 198, 197, 377, 420, 82, 41888, 20850, 13, 17946, 60, 198, 197, 29510, 41888, 20850, 13, 17946, 60, 198, 197, 4514, 5145, 271, 28920, 7, 29510, 8, 198, 197, 197, 29510, 17, 28, 51, 29291, 21737, 198, 197, 197, 1640, 256, 287, 20218, 198, 197, 197, 197, 1640, 289, 287, 15909, 7, 83, 8, 198, 197, 197, 197, 197, 361, 5145, 259, 7, 71, 11, 377, 420, 82, 8, 11405, 5145, 259, 7, 71, 11, 29510, 8, 11405, 5145, 259, 7, 71, 11, 29510, 17, 8, 11405, 287, 7, 71, 11, 6057, 13, 3526, 13, 25928, 8, 11405, 2160, 7, 36195, 368, 499, 58, 71, 12962, 29, 15, 220, 198, 197, 197, 197, 197, 197, 14689, 0, 7, 29510, 17, 11, 71, 8, 198, 197, 197, 197, 197, 197, 84, 28, 6057, 13, 8899, 58, 71, 60, 198, 197, 197, 197, 197, 197, 361, 318, 64, 7, 84, 11, 26453, 8, 11405, 5145, 259, 7, 84, 11, 15236, 41667, 8, 198, 197, 197, 197, 197, 197, 197, 14689, 0, 7, 15236, 41667, 11, 84, 8, 198, 197, 197, 197, 197, 197, 197, 361, 334, 13, 8043, 855, 7, 16, 11, 16, 11, 16, 8, 198, 197, 197, 197, 197, 197, 197, 197, 14689, 0, 7, 66, 11186, 11, 84, 8, 198, 197, 197, 197, 197, 197, 197, 197, 1640, 9224, 43812, 287, 15909, 7, 84, 13, 17946, 8, 198, 197, 197, 197, 197, 197, 197, 197, 197, 324, 14396, 28, 6057, 13, 8899, 58, 41255, 43812, 60, 198, 197, 197, 197, 197, 197, 197, 197, 197, 361, 318, 64, 7, 324, 14396, 11, 26453, 8, 11405, 9224, 84, 13, 8043, 855, 8043, 11405, 5145, 259, 7, 324, 14396, 11, 15236, 41667, 8, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 5907, 70, 28, 1136, 8094, 7, 6057, 11, 324, 14396, 11, 8043, 11, 15236, 41667, 8, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 1640, 18912, 287, 36545, 70, 13, 41667, 220, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 361, 5145, 259, 7, 27399, 11, 15236, 41667, 8, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 14689, 0, 7, 15236, 41667, 11, 27399, 8, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 1640, 269, 86, 287, 36545, 70, 13, 48183, 82, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 361, 5145, 259, 7, 66, 86, 11, 66, 11186, 8, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 14689, 0, 7, 66, 11186, 11, 66, 86, 8, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 1640, 256, 17, 287, 20218, 17, 198, 197, 197, 197, 14689, 0, 7, 377, 420, 82, 11, 83, 17, 8, 198, 197, 197, 437, 198, 197, 197, 29510, 28, 29510, 17, 198, 197, 437, 198, 197, 2618, 28, 1136, 3846, 8094, 7, 6057, 11, 15236, 41667, 58, 16, 12962, 1303, 29510, 13049, 198, 197, 7783, 649, 8094, 7, 66, 11186, 11, 2618, 11, 15236, 41667, 8, 198, 437, 198, 198, 8818, 477, 41667, 12583, 0, 7, 6057, 8, 198, 197, 36195, 368, 499, 28, 35, 713, 3419, 198, 197, 1640, 1179, 287, 983, 13, 3526, 13, 25928, 198, 197, 197, 36195, 368, 499, 58, 17946, 22241, 58, 15, 13, 15, 11, 15, 11, 15, 60, 198, 197, 437, 198, 197, 1640, 357, 17946, 11, 20850, 8, 287, 983, 13, 8899, 198, 197, 197, 361, 318, 64, 7, 20850, 11, 26453, 8, 198, 197, 197, 197, 20850, 13, 12583, 0, 7, 6057, 11, 20850, 11, 36195, 368, 499, 8, 198, 197, 197, 437, 198, 197, 437, 198, 197, 6057, 13, 36195, 368, 499, 28, 36195, 368, 499, 198, 197, 7783, 3868, 368, 499, 198, 437, 198, 2, 36195, 368, 499, 28, 439, 41667, 12583, 0, 1303, 25991, 407, 3650, 3868, 368, 499, 287, 983, 1201, 340, 3011, 9518, 287, 523, 867, 4113, 13, 16140, 6525, 2279, 284, 670, 351, 257, 20218, 3868, 368, 499, 13, 1471, 2138, 423, 257, 4735, 3868, 368, 499, 290, 257, 20218, 13222, 37208, 198, 198, 8818, 3601, 13033, 7, 6057, 8, 198, 197, 9869, 85, 28, 744, 12195, 431, 988, 9869, 4223, 7, 6057, 828, 16, 11, 940, 8, 198, 197, 35235, 7203, 9915, 25, 33172, 9869, 85, 58, 16, 17241, 2297, 25, 33172, 9869, 85, 58, 17, 17241, 3469, 25, 33172, 9869, 85, 58, 18, 17241, 4518, 25, 33172, 9869, 85, 58, 19, 17241, 2635, 25, 33172, 9869, 85, 58, 20, 12962, 2, 553, 7472, 25, 33172, 16345, 7, 9869, 85, 4008, 198, 437, 198, 8818, 16936, 11186, 7, 6057, 11, 33095, 11, 29289, 28, 9562, 8, 1303, 1809, 6525, 284, 2198, 329, 10922, 30, 1471, 38896, 318, 1464, 1760, 422, 2628, 30, 770, 2125, 470, 772, 2622, 783, 326, 3484, 389, 3750, 198, 197, 11186, 16193, 16, 11, 16, 11, 16, 8, 198, 197, 8094, 41888, 33095, 60, 198, 197, 29510, 41888, 33095, 60, 198, 197, 1640, 2511, 287, 352, 25, 16, 10535, 198, 197, 197, 29510, 17, 28, 21737, 198, 197, 197, 1640, 256, 287, 20218, 198, 197, 197, 197, 1640, 289, 287, 15909, 7, 83, 11, 16, 11, 29289, 8, 198, 197, 197, 197, 197, 361, 287, 7, 71, 11, 13083, 7, 6057, 13, 8899, 4008, 198, 197, 197, 197, 197, 197, 20850, 28, 6057, 13, 8899, 58, 71, 60, 198, 197, 197, 197, 197, 197, 361, 4326, 0, 28, 15, 11405, 4326, 13, 8043, 855, 11186, 198, 197, 197, 197, 197, 197, 197, 7783, 2511, 198, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 197, 361, 5145, 259, 7, 71, 11, 8094, 8, 11405, 5145, 259, 7, 71, 11, 29510, 8, 11405, 5145, 259, 7, 71, 11, 29510, 17, 8, 220, 220, 198, 197, 197, 197, 197, 197, 197, 14689, 0, 7, 29510, 17, 11, 71, 8, 198, 197, 197, 197, 197, 197, 437, 198, 197, 197, 197, 197, 437, 198, 197, 197, 197, 437, 198, 197, 197, 437, 198, 197, 197, 1640, 289, 17, 287, 20218, 17, 198, 197, 197, 197, 14689, 0, 7, 8094, 11, 71, 17, 8, 198, 197, 197, 437, 198, 197, 197, 29510, 28, 29510, 17, 198, 197, 437, 198, 197, 7783, 4806, 198, 437, 198, 8818, 651, 11201, 392, 15805, 7, 29149, 82, 3712, 46541, 28, 21, 11, 15003, 17946, 82, 41888, 7, 21, 11, 21, 11, 17, 8, 4357, 8692, 15805, 28, 1120, 8, 1303, 10378, 31023, 198, 197, 17147, 28, 15883, 25928, 7, 29149, 82, 11, 15003, 17946, 82, 8, 198, 197, 15805, 28, 13664, 7, 17147, 47762, 8692, 15805, 9, 13664, 7, 15003, 17946, 82, 8, 198, 197, 7783, 1575, 198, 437, 198, 8818, 13222, 0, 7, 6057, 11, 8094, 3712, 13247, 8, 198, 197, 361, 5145, 8094, 13, 9869, 4223, 276, 198, 197, 197, 9869, 85, 28, 9122, 9869, 4223, 7, 6057, 11, 8094, 8, 1303, 11246, 3404, 2476, 284, 307, 30101, 284, 3368, 262, 2769, 30073, 2029, 198, 197, 197, 8094, 13, 13033, 47932, 9869, 85, 198, 197, 197, 8094, 13, 9869, 4223, 276, 28, 7942, 198, 197, 197, 1640, 4326, 287, 1448, 13, 41667, 198, 197, 197, 197, 20850, 13, 9869, 4223, 276, 28, 7942, 198, 197, 197, 437, 198, 197, 437, 198, 437, 198, 8818, 477, 24432, 9869, 4223, 0, 7, 6057, 8, 198, 197, 1640, 1448, 287, 983, 13, 24432, 198, 197, 197, 9869, 4223, 0, 7, 6057, 11, 8094, 8, 198, 197, 437, 198, 437, 198, 198, 8818, 2824, 9869, 4223, 0, 7, 6057, 3712, 8777, 8, 198, 197, 1640, 1448, 287, 983, 13, 24432, 198, 197, 197, 6057, 13, 13033, 47932, 8094, 13, 13033, 198, 197, 197, 8094, 13, 13033, 12, 28, 8094, 13, 13033, 198, 197, 437, 198, 437, 198, 8818, 649, 6230, 0, 7, 6057, 8, 198, 197, 1640, 1448, 287, 983, 13, 24432, 198, 197, 197, 8094, 13, 9869, 4223, 276, 28, 9562, 198, 197, 197, 1640, 4326, 287, 1448, 13, 41667, 198, 197, 197, 197, 20850, 13, 9869, 4223, 276, 28, 9562, 198, 197, 197, 437, 198, 197, 437, 198, 197, 6057, 13, 6230, 47932, 16, 198, 437, 198, 8818, 13222, 0, 7, 6057, 3712, 8777, 8, 198, 197, 439, 41667, 12583, 0, 7, 6057, 8, 1303, 25991, 869, 691, 618, 649, 4991, 389, 4624, 13, 887, 788, 12560, 4991, 2753, 2392, 986, 198, 197, 929, 67, 2397, 14459, 0, 7, 6057, 8, 198, 197, 439, 24432, 9869, 4223, 0, 7, 6057, 8, 198, 197, 33327, 9869, 4223, 0, 7, 6057, 8, 198, 197, 3605, 6230, 0, 7, 6057, 8, 198, 197, 14689, 0, 7, 6057, 13, 43167, 11, 25, 9869, 4223, 8, 198, 197, 9273, 1591, 273, 13, 5239, 7, 6057, 13, 70, 58, 16, 11, 17, 4357, 4122, 6649, 9608, 7, 6057, 4008, 198, 197, 7783, 983, 13, 13033, 198, 437, 198 ]
2.1683
4,593
# fallback methods # ---------------- set_format_options!(docformat::WeaveFormat; _kwargs...) = return function restore_header!(doc) (hasproperty(doc.format, :preserve_header) && doc.format.preserve_header) || return # only strips Weave headers delete!(doc.header, WEAVE_OPTION_NAME) if haskey(doc.header, WEAVE_OPTION_NAME_DEPRECATED) @warn "Weave: `options` key is deprecated. Use `weave_options` key instead." _id = WEAVE_OPTION_DEPRECATE_ID maxlog = 1 delete!(doc.header, WEAVE_OPTION_NAME_DEPRECATED) end isempty(doc.header) && return # restore remained headers as `DocChunk` header_text = "---\n$(YAML.write(doc.header))---" pushfirst!(doc.chunks, DocChunk(header_text, 0, 0)) end render_chunk(docformat::WeaveFormat, chunk::DocChunk) = join((render_inline(c) for c in chunk.content)) render_inline(inline::InlineText) = inline.content function render_inline(inline::InlineCode) isempty(inline.rich_output) || return inline.rich_output isempty(inline.figures) || return inline.figures[end] return inline.output end function render_chunk(docformat::WeaveFormat, chunk::CodeChunk) # Fill undefined options with format specific defaults isnothing(chunk.options[:out_width]) && (chunk.options[:out_width] = docformat.out_width) isnothing(chunk.options[:fig_pos]) && (chunk.options[:fig_pos] = docformat.fig_pos) # Only use floats if chunk has caption or sets fig_env if !isnothing(chunk.options[:fig_cap]) && isnothing(chunk.options[:fig_env]) (chunk.options[:fig_env] = docformat.fig_env) end hasproperty(docformat, :indent) && (chunk.content = indent(chunk.content, docformat.indent)) chunk.content = render_code(docformat, chunk.content) if !chunk.options[:eval] return if chunk.options[:echo] string(docformat.codestart, '\n', chunk.content, docformat.codeend) else "" end end if chunk.options[:term] result = render_termchunk(docformat, chunk) else result = if chunk.options[:echo] # Convert to output format and highlight (html, tex...) if needed string(docformat.codestart, chunk.content, docformat.codeend, '\n') else "" end if (strip(chunk.output) ≠ "" || strip(chunk.rich_output) ≠ "") && (chunk.options[:results] ≠ "hidden") if chunk.options[:results] ≠ "markup" && chunk.options[:results] ≠ "hold" strip(chunk.output) ≠ "" && (result *= "$(chunk.output)\n") strip(chunk.rich_output) ≠ "" && (result *= "$(chunk.rich_output)\n") else if chunk.options[:wrap] chunk.output = '\n' * wraplines(chunk.output, chunk.options[:line_width]) chunk.output = render_output(docformat, chunk.output) else chunk.output = '\n' * rstrip(chunk.output) chunk.output = render_output(docformat, chunk.output) end hasproperty(docformat, :indent) && (chunk.output = indent(chunk.output, docformat.indent)) strip(chunk.output) ≠ "" && ( result *= "$(docformat.outputstart)$(chunk.output)\n$(docformat.outputend)\n" ) strip(chunk.rich_output) ≠ "" && (result *= chunk.rich_output * '\n') end end end # Handle figures if chunk.options[:fig] && length(chunk.figures) > 0 result *= render_figures(docformat, chunk) end return result end render_code(docformat::WeaveFormat, code) = code indent(text, nindent) = join(map(x -> string(repeat(' ', nindent), x), split(text, '\n')), '\n') function wraplines(text, line_width = 75) result = AbstractString[] lines = split(text, '\n') for line in lines if length(line) > line_width push!(result, wrapline(line, line_width)) else push!(result, line) end end return strip(join(result, '\n')) end function wrapline(text, line_width = 75) result = "" while length(text) > line_width result *= first(text, line_width) * '\n' text = chop(text, head = line_width, tail = 0) end result *= text end render_output(docformat::WeaveFormat, output) = output function render_termchunk(docformat::WeaveFormat, chunk) return if should_render(chunk) string(docformat.termstart, chunk.output, '\n', docformat.termend, '\n') else "" end end should_render(chunk) = chunk.options[:echo] && chunk.options[:results] ≠ "hidden" render_doc(docformat, body, doc) = body # utilities # --------- function clear_buffer_and_format!(io::IOBuffer, out::IOBuffer, render_function) text = take2string!(io) m = Markdown.parse(text, flavor = WeaveMarkdown.weavemd) write(out, string(render_function(m))) end addlines(op, inline) = inline.ctype === :line ? string('\n', op, '\n') : op get_mustache_template(path::AbstractString) = Mustache.template_from_file(path) get_mustache_template(tpl::Mustache.MustacheTokens) = tpl get_highlight_stylesheet(mime, highlight_theme) = get_highlight_stylesheet(mime, get_highlight_theme(highlight_theme)) get_highlight_stylesheet(mime, highlight_theme::Type{<:Highlights.AbstractTheme}) = sprint((io, x) -> Highlights.stylesheet(io, mime, x), highlight_theme) get_highlight_theme(::Nothing) = Highlights.Themes.DefaultTheme get_highlight_theme(highlight_theme::Type{<:Highlights.AbstractTheme}) = highlight_theme highlight_code(mime, code, highlight_theme) = highlight(mime, strip(code), Highlights.Lexers.JuliaLexer, highlight_theme) highlight_term(mime, output, highlight_theme) = highlight(mime, strip(output), Highlights.Lexers.JuliaConsoleLexer, highlight_theme) highlight(mime, output, lexer, theme = Highlights.Themes.DefaultTheme) = sprint((io, x) -> Highlights.highlight(io, mime, x, lexer, theme), output)
[ 2, 2121, 1891, 5050, 198, 2, 34400, 198, 198, 2617, 62, 18982, 62, 25811, 0, 7, 15390, 18982, 3712, 1135, 1015, 26227, 26, 4808, 46265, 22046, 23029, 796, 1441, 198, 198, 8818, 11169, 62, 25677, 0, 7, 15390, 8, 198, 220, 220, 220, 357, 10134, 26745, 7, 15390, 13, 18982, 11, 1058, 18302, 3760, 62, 25677, 8, 11405, 2205, 13, 18982, 13, 18302, 3760, 62, 25677, 8, 8614, 1441, 628, 220, 220, 220, 1303, 691, 22670, 775, 1015, 24697, 198, 220, 220, 220, 12233, 0, 7, 15390, 13, 25677, 11, 12887, 32, 6089, 62, 3185, 24131, 62, 20608, 8, 198, 220, 220, 220, 611, 468, 2539, 7, 15390, 13, 25677, 11, 12887, 32, 6089, 62, 3185, 24131, 62, 20608, 62, 46162, 38827, 11617, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 40539, 366, 1135, 1015, 25, 4600, 25811, 63, 1994, 318, 39224, 13, 5765, 4600, 732, 1015, 62, 25811, 63, 1994, 2427, 526, 4808, 312, 796, 12887, 32, 6089, 62, 3185, 24131, 62, 46162, 38827, 6158, 62, 2389, 3509, 6404, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 12233, 0, 7, 15390, 13, 25677, 11, 12887, 32, 6089, 62, 3185, 24131, 62, 20608, 62, 46162, 38827, 11617, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 318, 28920, 7, 15390, 13, 25677, 8, 11405, 1441, 628, 220, 220, 220, 1303, 11169, 6150, 24697, 355, 4600, 23579, 1925, 2954, 63, 198, 220, 220, 220, 13639, 62, 5239, 796, 366, 6329, 59, 77, 3, 7, 56, 2390, 43, 13, 13564, 7, 15390, 13, 25677, 4008, 6329, 1, 198, 220, 220, 220, 4574, 11085, 0, 7, 15390, 13, 354, 14125, 11, 14432, 1925, 2954, 7, 25677, 62, 5239, 11, 657, 11, 657, 4008, 198, 437, 198, 198, 13287, 62, 354, 2954, 7, 15390, 18982, 3712, 1135, 1015, 26227, 11, 16058, 3712, 23579, 1925, 2954, 8, 796, 4654, 19510, 13287, 62, 45145, 7, 66, 8, 329, 269, 287, 16058, 13, 11299, 4008, 198, 198, 13287, 62, 45145, 7, 45145, 3712, 818, 1370, 8206, 8, 796, 26098, 13, 11299, 198, 198, 8818, 8543, 62, 45145, 7, 45145, 3712, 818, 1370, 10669, 8, 198, 220, 220, 220, 318, 28920, 7, 45145, 13, 7527, 62, 22915, 8, 8614, 1441, 26098, 13, 7527, 62, 22915, 198, 220, 220, 220, 318, 28920, 7, 45145, 13, 5647, 942, 8, 8614, 1441, 26098, 13, 5647, 942, 58, 437, 60, 198, 220, 220, 220, 1441, 26098, 13, 22915, 198, 437, 198, 198, 8818, 8543, 62, 354, 2954, 7, 15390, 18982, 3712, 1135, 1015, 26227, 11, 16058, 3712, 10669, 1925, 2954, 8, 628, 220, 220, 220, 1303, 27845, 28721, 3689, 351, 5794, 2176, 26235, 198, 220, 220, 220, 318, 22366, 7, 354, 2954, 13, 25811, 58, 25, 448, 62, 10394, 12962, 11405, 357, 354, 2954, 13, 25811, 58, 25, 448, 62, 10394, 60, 796, 2205, 18982, 13, 448, 62, 10394, 8, 198, 220, 220, 220, 318, 22366, 7, 354, 2954, 13, 25811, 58, 25, 5647, 62, 1930, 12962, 11405, 357, 354, 2954, 13, 25811, 58, 25, 5647, 62, 1930, 60, 796, 2205, 18982, 13, 5647, 62, 1930, 8, 628, 220, 220, 220, 1303, 5514, 779, 36016, 611, 16058, 468, 8305, 393, 5621, 2336, 62, 24330, 198, 220, 220, 220, 611, 5145, 271, 22366, 7, 354, 2954, 13, 25811, 58, 25, 5647, 62, 11128, 12962, 11405, 318, 22366, 7, 354, 2954, 13, 25811, 58, 25, 5647, 62, 24330, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 357, 354, 2954, 13, 25811, 58, 25, 5647, 62, 24330, 60, 796, 2205, 18982, 13, 5647, 62, 24330, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 468, 26745, 7, 15390, 18982, 11, 1058, 521, 298, 8, 11405, 357, 354, 2954, 13, 11299, 796, 33793, 7, 354, 2954, 13, 11299, 11, 2205, 18982, 13, 521, 298, 4008, 628, 220, 220, 220, 16058, 13, 11299, 796, 8543, 62, 8189, 7, 15390, 18982, 11, 16058, 13, 11299, 8, 628, 220, 220, 220, 611, 5145, 354, 2954, 13, 25811, 58, 25, 18206, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 611, 16058, 13, 25811, 58, 25, 30328, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4731, 7, 15390, 18982, 13, 19815, 395, 433, 11, 705, 59, 77, 3256, 16058, 13, 11299, 11, 2205, 18982, 13, 8189, 437, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13538, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 611, 16058, 13, 25811, 58, 25, 4354, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 8543, 62, 4354, 354, 2954, 7, 15390, 18982, 11, 16058, 8, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 611, 16058, 13, 25811, 58, 25, 30328, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 38240, 284, 5072, 5794, 290, 7238, 357, 6494, 11, 48659, 23029, 611, 2622, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4731, 7, 15390, 18982, 13, 19815, 395, 433, 11, 16058, 13, 11299, 11, 2205, 18982, 13, 8189, 437, 11, 705, 59, 77, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13538, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 611, 357, 36311, 7, 354, 2954, 13, 22915, 8, 15139, 254, 13538, 8614, 10283, 7, 354, 2954, 13, 7527, 62, 22915, 8, 15139, 254, 366, 4943, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 354, 2954, 13, 25811, 58, 25, 43420, 60, 15139, 254, 366, 30342, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 16058, 13, 25811, 58, 25, 43420, 60, 15139, 254, 366, 4102, 929, 1, 11405, 16058, 13, 25811, 58, 25, 43420, 60, 15139, 254, 366, 2946, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10283, 7, 354, 2954, 13, 22915, 8, 15139, 254, 13538, 11405, 357, 20274, 1635, 28, 17971, 7, 354, 2954, 13, 22915, 19415, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10283, 7, 354, 2954, 13, 7527, 62, 22915, 8, 15139, 254, 13538, 11405, 357, 20274, 1635, 28, 17971, 7, 354, 2954, 13, 7527, 62, 22915, 19415, 77, 4943, 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, 611, 16058, 13, 25811, 58, 25, 37150, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16058, 13, 22915, 796, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 59, 77, 6, 1635, 7917, 489, 1127, 7, 354, 2954, 13, 22915, 11, 16058, 13, 25811, 58, 25, 1370, 62, 10394, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16058, 13, 22915, 796, 8543, 62, 22915, 7, 15390, 18982, 11, 16058, 13, 22915, 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, 16058, 13, 22915, 796, 705, 59, 77, 6, 1635, 374, 36311, 7, 354, 2954, 13, 22915, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16058, 13, 22915, 796, 8543, 62, 22915, 7, 15390, 18982, 11, 16058, 13, 22915, 8, 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, 468, 26745, 7, 15390, 18982, 11, 1058, 521, 298, 8, 11405, 357, 354, 2954, 13, 22915, 796, 33793, 7, 354, 2954, 13, 22915, 11, 2205, 18982, 13, 521, 298, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10283, 7, 354, 2954, 13, 22915, 8, 15139, 254, 13538, 11405, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 1635, 28, 17971, 7, 15390, 18982, 13, 22915, 9688, 8, 3, 7, 354, 2954, 13, 22915, 19415, 77, 3, 7, 15390, 18982, 13, 22915, 437, 19415, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10283, 7, 354, 2954, 13, 7527, 62, 22915, 8, 15139, 254, 13538, 11405, 357, 20274, 1635, 28, 16058, 13, 7527, 62, 22915, 1635, 705, 59, 77, 11537, 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, 1303, 33141, 5538, 198, 220, 220, 220, 611, 16058, 13, 25811, 58, 25, 5647, 60, 11405, 4129, 7, 354, 2954, 13, 5647, 942, 8, 1875, 657, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 1635, 28, 8543, 62, 5647, 942, 7, 15390, 18982, 11, 16058, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 1255, 198, 437, 198, 198, 13287, 62, 8189, 7, 15390, 18982, 3712, 1135, 1015, 26227, 11, 2438, 8, 796, 2438, 198, 198, 521, 298, 7, 5239, 11, 299, 521, 298, 8, 796, 4654, 7, 8899, 7, 87, 4613, 4731, 7, 44754, 10786, 46083, 299, 521, 298, 828, 2124, 828, 6626, 7, 5239, 11, 705, 59, 77, 11537, 828, 705, 59, 77, 11537, 198, 198, 8818, 7917, 489, 1127, 7, 5239, 11, 1627, 62, 10394, 796, 5441, 8, 198, 220, 220, 220, 1255, 796, 27741, 10100, 21737, 198, 220, 220, 220, 3951, 796, 6626, 7, 5239, 11, 705, 59, 77, 11537, 198, 220, 220, 220, 329, 1627, 287, 3951, 198, 220, 220, 220, 220, 220, 220, 220, 611, 4129, 7, 1370, 8, 1875, 1627, 62, 10394, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 20274, 11, 7917, 489, 500, 7, 1370, 11, 1627, 62, 10394, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 20274, 11, 1627, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1441, 10283, 7, 22179, 7, 20274, 11, 705, 59, 77, 6, 4008, 198, 437, 198, 198, 8818, 7917, 489, 500, 7, 5239, 11, 1627, 62, 10394, 796, 5441, 8, 198, 220, 220, 220, 1255, 796, 13538, 198, 220, 220, 220, 981, 4129, 7, 5239, 8, 1875, 1627, 62, 10394, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 1635, 28, 717, 7, 5239, 11, 1627, 62, 10394, 8, 1635, 705, 59, 77, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 30506, 7, 5239, 11, 1182, 796, 1627, 62, 10394, 11, 7894, 796, 657, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1255, 1635, 28, 2420, 198, 437, 198, 198, 13287, 62, 22915, 7, 15390, 18982, 3712, 1135, 1015, 26227, 11, 5072, 8, 796, 5072, 198, 198, 8818, 8543, 62, 4354, 354, 2954, 7, 15390, 18982, 3712, 1135, 1015, 26227, 11, 16058, 8, 198, 220, 220, 220, 1441, 611, 815, 62, 13287, 7, 354, 2954, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4731, 7, 15390, 18982, 13, 4354, 9688, 11, 16058, 13, 22915, 11, 705, 59, 77, 3256, 2205, 18982, 13, 4354, 437, 11, 705, 59, 77, 11537, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 13538, 198, 220, 220, 220, 886, 198, 437, 198, 198, 21754, 62, 13287, 7, 354, 2954, 8, 796, 16058, 13, 25811, 58, 25, 30328, 60, 11405, 16058, 13, 25811, 58, 25, 43420, 60, 15139, 254, 366, 30342, 1, 198, 198, 13287, 62, 15390, 7, 15390, 18982, 11, 1767, 11, 2205, 8, 796, 1767, 198, 198, 2, 20081, 198, 2, 45337, 198, 198, 8818, 1598, 62, 22252, 62, 392, 62, 18982, 0, 7, 952, 3712, 9399, 28632, 11, 503, 3712, 9399, 28632, 11, 8543, 62, 8818, 8, 198, 220, 220, 220, 2420, 796, 1011, 17, 8841, 0, 7, 952, 8, 198, 220, 220, 220, 285, 796, 2940, 2902, 13, 29572, 7, 5239, 11, 9565, 796, 775, 1015, 9704, 2902, 13, 732, 1015, 9132, 8, 198, 220, 220, 220, 3551, 7, 448, 11, 4731, 7, 13287, 62, 8818, 7, 76, 22305, 198, 437, 198, 198, 2860, 6615, 7, 404, 11, 26098, 8, 796, 26098, 13, 310, 2981, 24844, 1058, 1370, 5633, 4731, 10786, 59, 77, 3256, 1034, 11, 705, 59, 77, 11537, 1058, 1034, 198, 198, 1136, 62, 27238, 4891, 62, 28243, 7, 6978, 3712, 23839, 10100, 8, 796, 12039, 4891, 13, 28243, 62, 6738, 62, 7753, 7, 6978, 8, 198, 1136, 62, 27238, 4891, 62, 28243, 7, 83, 489, 3712, 34320, 4891, 13, 34320, 4891, 22906, 8, 796, 256, 489, 198, 198, 1136, 62, 8929, 2971, 62, 47720, 25473, 7, 76, 524, 11, 7238, 62, 43810, 8, 796, 198, 220, 220, 220, 651, 62, 8929, 2971, 62, 47720, 25473, 7, 76, 524, 11, 651, 62, 8929, 2971, 62, 43810, 7, 8929, 2971, 62, 43810, 4008, 198, 1136, 62, 8929, 2971, 62, 47720, 25473, 7, 76, 524, 11, 7238, 62, 43810, 3712, 6030, 90, 27, 25, 11922, 8091, 13, 23839, 47863, 30072, 796, 198, 220, 220, 220, 18553, 19510, 952, 11, 2124, 8, 4613, 30776, 13, 47720, 25473, 7, 952, 11, 285, 524, 11, 2124, 828, 7238, 62, 43810, 8, 198, 198, 1136, 62, 8929, 2971, 62, 43810, 7, 3712, 18465, 8, 796, 30776, 13, 464, 6880, 13, 19463, 47863, 198, 1136, 62, 8929, 2971, 62, 43810, 7, 8929, 2971, 62, 43810, 3712, 6030, 90, 27, 25, 11922, 8091, 13, 23839, 47863, 30072, 796, 7238, 62, 43810, 198, 198, 8929, 2971, 62, 8189, 7, 76, 524, 11, 2438, 11, 7238, 62, 43810, 8, 796, 198, 220, 220, 220, 7238, 7, 76, 524, 11, 10283, 7, 8189, 828, 30776, 13, 45117, 364, 13, 16980, 544, 45117, 263, 11, 7238, 62, 43810, 8, 198, 8929, 2971, 62, 4354, 7, 76, 524, 11, 5072, 11, 7238, 62, 43810, 8, 796, 198, 220, 220, 220, 7238, 7, 76, 524, 11, 10283, 7, 22915, 828, 30776, 13, 45117, 364, 13, 16980, 544, 47581, 45117, 263, 11, 7238, 62, 43810, 8, 198, 8929, 2971, 7, 76, 524, 11, 5072, 11, 31191, 263, 11, 7505, 796, 30776, 13, 464, 6880, 13, 19463, 47863, 8, 796, 198, 220, 220, 220, 18553, 19510, 952, 11, 2124, 8, 4613, 30776, 13, 8929, 2971, 7, 952, 11, 285, 524, 11, 2124, 11, 31191, 263, 11, 7505, 828, 5072, 8, 198 ]
2.403586
2,510
# Autogenerated wrapper script for ICU_jll for powerpc64le-linux-gnu-cxx11 export libicudata, libicui18n, libicuio, libicutest, libicutu, libicuuc JLLWrappers.@generate_wrapper_header("ICU") JLLWrappers.@declare_library_product(libicudata, "libicudata.so.69") JLLWrappers.@declare_library_product(libicui18n, "libicui18n.so.69") JLLWrappers.@declare_library_product(libicuio, "libicuio.so.69") JLLWrappers.@declare_library_product(libicutest, "libicutest.so.69") JLLWrappers.@declare_library_product(libicutu, "libicutu.so.69") JLLWrappers.@declare_library_product(libicuuc, "libicuuc.so.69") function __init__() JLLWrappers.@generate_init_header() JLLWrappers.@init_library_product( libicudata, "lib/libicudata.so", nothing, ) JLLWrappers.@init_library_product( libicui18n, "lib/libicui18n.so", RTLD_LAZY | RTLD_DEEPBIND, ) JLLWrappers.@init_library_product( libicuio, "lib/libicuio.so", RTLD_LAZY | RTLD_DEEPBIND, ) JLLWrappers.@init_library_product( libicutest, "lib/libicutest.so", RTLD_LAZY | RTLD_DEEPBIND, ) JLLWrappers.@init_library_product( libicutu, "lib/libicutu.so", RTLD_LAZY | RTLD_DEEPBIND, ) JLLWrappers.@init_library_product( libicuuc, "lib/libicuuc.so", RTLD_LAZY | RTLD_DEEPBIND, ) JLLWrappers.@generate_init_footer() end # __init__()
[ 2, 5231, 519, 877, 515, 29908, 4226, 329, 12460, 52, 62, 73, 297, 329, 1176, 14751, 2414, 293, 12, 23289, 12, 41791, 12, 66, 5324, 1157, 198, 39344, 9195, 291, 463, 1045, 11, 9195, 291, 9019, 1507, 77, 11, 9195, 291, 84, 952, 11, 9195, 13554, 395, 11, 9195, 13554, 84, 11, 9195, 291, 84, 1229, 198, 198, 41, 3069, 36918, 11799, 13, 31, 8612, 378, 62, 48553, 62, 25677, 7203, 2149, 52, 4943, 198, 41, 3069, 36918, 11799, 13, 31, 32446, 533, 62, 32016, 62, 11167, 7, 8019, 291, 463, 1045, 11, 366, 8019, 291, 463, 1045, 13, 568, 13, 3388, 4943, 198, 41, 3069, 36918, 11799, 13, 31, 32446, 533, 62, 32016, 62, 11167, 7, 8019, 291, 9019, 1507, 77, 11, 366, 8019, 291, 9019, 1507, 77, 13, 568, 13, 3388, 4943, 198, 41, 3069, 36918, 11799, 13, 31, 32446, 533, 62, 32016, 62, 11167, 7, 8019, 291, 84, 952, 11, 366, 8019, 291, 84, 952, 13, 568, 13, 3388, 4943, 198, 41, 3069, 36918, 11799, 13, 31, 32446, 533, 62, 32016, 62, 11167, 7, 8019, 13554, 395, 11, 366, 8019, 13554, 395, 13, 568, 13, 3388, 4943, 198, 41, 3069, 36918, 11799, 13, 31, 32446, 533, 62, 32016, 62, 11167, 7, 8019, 13554, 84, 11, 366, 8019, 13554, 84, 13, 568, 13, 3388, 4943, 198, 41, 3069, 36918, 11799, 13, 31, 32446, 533, 62, 32016, 62, 11167, 7, 8019, 291, 84, 1229, 11, 366, 8019, 291, 84, 1229, 13, 568, 13, 3388, 4943, 198, 8818, 11593, 15003, 834, 3419, 198, 220, 220, 220, 449, 3069, 36918, 11799, 13, 31, 8612, 378, 62, 15003, 62, 25677, 3419, 198, 220, 220, 220, 449, 3069, 36918, 11799, 13, 31, 15003, 62, 32016, 62, 11167, 7, 198, 220, 220, 220, 220, 220, 220, 220, 9195, 291, 463, 1045, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 8019, 14, 8019, 291, 463, 1045, 13, 568, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2147, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 449, 3069, 36918, 11799, 13, 31, 15003, 62, 32016, 62, 11167, 7, 198, 220, 220, 220, 220, 220, 220, 220, 9195, 291, 9019, 1507, 77, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 8019, 14, 8019, 291, 9019, 1507, 77, 13, 568, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 11923, 11163, 62, 13534, 57, 56, 930, 11923, 11163, 62, 35, 35238, 33, 12115, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 449, 3069, 36918, 11799, 13, 31, 15003, 62, 32016, 62, 11167, 7, 198, 220, 220, 220, 220, 220, 220, 220, 9195, 291, 84, 952, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 8019, 14, 8019, 291, 84, 952, 13, 568, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 11923, 11163, 62, 13534, 57, 56, 930, 11923, 11163, 62, 35, 35238, 33, 12115, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 449, 3069, 36918, 11799, 13, 31, 15003, 62, 32016, 62, 11167, 7, 198, 220, 220, 220, 220, 220, 220, 220, 9195, 13554, 395, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 8019, 14, 8019, 13554, 395, 13, 568, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 11923, 11163, 62, 13534, 57, 56, 930, 11923, 11163, 62, 35, 35238, 33, 12115, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 449, 3069, 36918, 11799, 13, 31, 15003, 62, 32016, 62, 11167, 7, 198, 220, 220, 220, 220, 220, 220, 220, 9195, 13554, 84, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 8019, 14, 8019, 13554, 84, 13, 568, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 11923, 11163, 62, 13534, 57, 56, 930, 11923, 11163, 62, 35, 35238, 33, 12115, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 449, 3069, 36918, 11799, 13, 31, 15003, 62, 32016, 62, 11167, 7, 198, 220, 220, 220, 220, 220, 220, 220, 9195, 291, 84, 1229, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 8019, 14, 8019, 291, 84, 1229, 13, 568, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 11923, 11163, 62, 13534, 57, 56, 930, 11923, 11163, 62, 35, 35238, 33, 12115, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 449, 3069, 36918, 11799, 13, 31, 8612, 378, 62, 15003, 62, 5898, 263, 3419, 198, 437, 220, 1303, 11593, 15003, 834, 3419, 198 ]
2
731
using ExtendedKronigPennyMatrix using LinearAlgebra using PyPlot function plot_KP(v0, rho) clf() cm=get_cmap("tab10") pot=KronigPennyPotential(v0, rho) pf = get_potential(pot) a=1 xs=-2a:a/100:3a plot(xs, pf.(xs), "k") nmax=60 Ka=0 model=KronigPennyModel(pot, nmax, Ka) for Ka in (-18:18)/18*π update!(model, Ka=Ka) ev = eigvals(model.hnm) for i in 1:5 plot(Ka/ π, ev[i], ".", color=cm(i-1)) end end xlim(-1,1) ylim(-2,32) xlabel(L"$Ka / \pi$") ylabel(L"Energy / $E_0$") title( L"$\rho =$"*string(rho)) end function main() # plot_KP( 0, 0.5) ylim(-0.5,25) savefig("Pavelich_Fig4a.png") # plot_KP( 10, 0.5) ylim(-0.5,30) savefig("Pavelich_Fig4b.png") savefig("KP_10_05.png") # plot_KP( 10, 0.8) ylim(-0.5,30) savefig("KP_10_08.png") # plot_KP(20.5607, 0.5) ylim(-0.5,40) savefig("Pavelich_Fig6.png") # plot_KP(10.8775, 0.8) ylim(-0.5,30) savefig("Pavelich_Fig7.png") end main()
[ 198, 3500, 24204, 42, 1313, 328, 47, 11870, 46912, 198, 3500, 44800, 2348, 29230, 198, 3500, 9485, 43328, 198, 198, 8818, 7110, 62, 42, 47, 7, 85, 15, 11, 374, 8873, 8, 198, 220, 220, 537, 69, 3419, 198, 220, 220, 12067, 28, 1136, 62, 66, 8899, 7203, 8658, 940, 4943, 628, 220, 220, 1787, 28, 42, 1313, 328, 47, 11870, 25396, 1843, 7, 85, 15, 11, 374, 8873, 8, 198, 220, 220, 279, 69, 796, 651, 62, 13059, 1843, 7, 13059, 8, 198, 220, 220, 257, 28, 16, 198, 220, 220, 2124, 82, 10779, 17, 64, 25, 64, 14, 3064, 25, 18, 64, 198, 220, 220, 7110, 7, 34223, 11, 279, 69, 12195, 34223, 828, 366, 74, 4943, 628, 220, 220, 299, 9806, 28, 1899, 198, 220, 220, 11611, 28, 15, 198, 220, 220, 2746, 28, 42, 1313, 328, 47, 11870, 17633, 7, 13059, 11, 299, 9806, 11, 11611, 8, 628, 220, 220, 329, 11611, 287, 13841, 1507, 25, 1507, 20679, 1507, 9, 46582, 198, 220, 220, 220, 220, 220, 4296, 0, 7, 19849, 11, 11611, 28, 37281, 8, 198, 220, 220, 220, 220, 220, 819, 796, 304, 328, 12786, 7, 19849, 13, 21116, 76, 8, 198, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 20, 198, 220, 220, 220, 220, 220, 220, 220, 220, 7110, 7, 37281, 14, 18074, 222, 11, 819, 58, 72, 4357, 366, 33283, 3124, 28, 11215, 7, 72, 12, 16, 4008, 198, 220, 220, 220, 220, 220, 886, 198, 220, 220, 886, 198, 220, 220, 2124, 2475, 32590, 16, 11, 16, 8, 198, 220, 220, 331, 2475, 32590, 17, 11, 2624, 8, 198, 220, 220, 2124, 18242, 7, 43, 1, 3, 37281, 1220, 3467, 14415, 3, 4943, 198, 220, 220, 331, 18242, 7, 43, 1, 28925, 1220, 720, 36, 62, 15, 3, 4943, 198, 220, 220, 3670, 7, 406, 1, 3, 59, 81, 8873, 796, 3, 1, 9, 8841, 7, 81, 8873, 4008, 198, 437, 198, 198, 8818, 1388, 3419, 198, 220, 220, 1303, 198, 220, 220, 7110, 62, 42, 47, 7, 220, 220, 220, 220, 220, 657, 11, 657, 13, 20, 8, 198, 220, 220, 331, 2475, 32590, 15, 13, 20, 11, 1495, 8, 198, 220, 220, 3613, 5647, 7203, 28875, 626, 488, 62, 14989, 19, 64, 13, 11134, 4943, 198, 220, 220, 1303, 198, 220, 220, 7110, 62, 42, 47, 7, 220, 220, 220, 220, 838, 11, 657, 13, 20, 8, 198, 220, 220, 331, 2475, 32590, 15, 13, 20, 11, 1270, 8, 198, 220, 220, 3613, 5647, 7203, 28875, 626, 488, 62, 14989, 19, 65, 13, 11134, 4943, 198, 220, 220, 3613, 5647, 7203, 42, 47, 62, 940, 62, 2713, 13, 11134, 4943, 198, 220, 220, 1303, 198, 220, 220, 7110, 62, 42, 47, 7, 220, 220, 220, 220, 838, 11, 657, 13, 23, 8, 198, 220, 220, 331, 2475, 32590, 15, 13, 20, 11, 1270, 8, 198, 220, 220, 3613, 5647, 7203, 42, 47, 62, 940, 62, 2919, 13, 11134, 4943, 198, 220, 220, 1303, 198, 220, 220, 7110, 62, 42, 47, 7, 1238, 13, 20, 31980, 11, 657, 13, 20, 8, 198, 220, 220, 331, 2475, 32590, 15, 13, 20, 11, 1821, 8, 198, 220, 220, 3613, 5647, 7203, 28875, 626, 488, 62, 14989, 21, 13, 11134, 4943, 198, 220, 220, 1303, 198, 220, 220, 7110, 62, 42, 47, 7, 940, 13, 5774, 2425, 11, 657, 13, 23, 8, 198, 220, 220, 331, 2475, 32590, 15, 13, 20, 11, 1270, 8, 198, 220, 220, 3613, 5647, 7203, 28875, 626, 488, 62, 14989, 22, 13, 11134, 4943, 198, 437, 198, 198, 12417, 3419, 198 ]
1.751678
596
# can we write a function adjusting the states so that process becomes monotone? # resulting tree should be very close (in nested distance) to original process #Example 1 trr1 = Tree([1,2,2,2]); trr2 = Tree([1,2,2,2]); trr1.state = [0,0,0,0,0,0,0,1,3,20,40,2,4,21,41]; trr2.state = [0,0,0,0,0,0,0,1,21,3,41,2,20,4,40]; trr1.probability = [1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]; trr2.probability = trr1.probability; nestedWasserstein(trr1,trr2,1.0) # supposed to be 8.75 #Example 2 trr1 = Tree([1,2,4,1]); trr2 = Tree([1,2,4,1]); trr1.state = [0,0,0,0,0,0,0,0,0,0,0,1,3,20,40,2,4,21,41]; trr2.state = [0,0,0,0,0,0,0,0,0,0,0,1,21,3,41,2,20,4,40]; trr1.probability = [1.0,0.5,0.5,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]; trr2.probability = trr1.probability; nestedWasserstein(trr1,trr2,1.0) # Example 3 trr1 = Tree([1,1,2]); trr2 = Tree([1,2,1]); trr1.state = [2,2,3,1]; trr2.state = [2,2,2,3,1]; trr1.probability = [1.0,1.0,0.3,0.7]; trr2.probability = [1.0,0.3,0.7,1.0,1.0]; nestedWasserstein(trr1,trr2,1.0)
[ 201, 198, 201, 198, 201, 198, 201, 198, 2, 460, 356, 3551, 257, 2163, 22000, 262, 2585, 523, 326, 1429, 4329, 937, 313, 505, 30, 201, 198, 2, 7186, 5509, 815, 307, 845, 1969, 357, 259, 28376, 5253, 8, 284, 2656, 1429, 201, 198, 201, 198, 2, 16281, 352, 201, 198, 2213, 81, 16, 796, 12200, 26933, 16, 11, 17, 11, 17, 11, 17, 36563, 491, 81, 17, 796, 12200, 26933, 16, 11, 17, 11, 17, 11, 17, 36563, 201, 198, 2213, 81, 16, 13, 5219, 796, 685, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 16, 11, 18, 11, 1238, 11, 1821, 11, 17, 11, 19, 11, 2481, 11, 3901, 11208, 201, 198, 2213, 81, 17, 13, 5219, 796, 685, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 16, 11, 2481, 11, 18, 11, 3901, 11, 17, 11, 1238, 11, 19, 11, 1821, 11208, 201, 198, 201, 198, 2213, 81, 16, 13, 1676, 65, 1799, 796, 685, 16, 13, 15, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 20, 11208, 201, 198, 2213, 81, 17, 13, 1676, 65, 1799, 796, 491, 81, 16, 13, 1676, 65, 1799, 26, 201, 198, 201, 198, 77, 7287, 54, 24929, 5714, 7, 2213, 81, 16, 11, 2213, 81, 17, 11, 16, 13, 15, 8, 220, 220, 220, 220, 220, 1303, 4385, 284, 307, 807, 13, 2425, 201, 198, 201, 198, 201, 198, 201, 198, 2, 16281, 362, 201, 198, 2213, 81, 16, 796, 12200, 26933, 16, 11, 17, 11, 19, 11, 16, 36563, 491, 81, 17, 796, 12200, 26933, 16, 11, 17, 11, 19, 11, 16, 36563, 201, 198, 2213, 81, 16, 13, 5219, 796, 685, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 16, 11, 18, 11, 1238, 11, 1821, 11, 17, 11, 19, 11, 2481, 11, 3901, 11208, 201, 198, 2213, 81, 17, 13, 5219, 796, 685, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 15, 11, 16, 11, 2481, 11, 18, 11, 3901, 11, 17, 11, 1238, 11, 19, 11, 1821, 11208, 201, 198, 201, 198, 2213, 81, 16, 13, 1676, 65, 1799, 796, 685, 16, 13, 15, 11, 15, 13, 20, 11, 15, 13, 20, 11, 15, 13, 1495, 11, 15, 13, 1495, 11, 15, 13, 1495, 11, 15, 13, 1495, 11, 15, 13, 1495, 11, 15, 13, 1495, 11, 15, 13, 1495, 11, 15, 13, 1495, 11, 16, 13, 15, 11, 16, 13, 15, 11, 16, 13, 15, 11, 16, 13, 15, 11, 16, 13, 15, 11, 16, 13, 15, 11, 16, 13, 15, 11, 16, 13, 15, 11208, 201, 198, 2213, 81, 17, 13, 1676, 65, 1799, 796, 491, 81, 16, 13, 1676, 65, 1799, 26, 201, 198, 201, 198, 77, 7287, 54, 24929, 5714, 7, 2213, 81, 16, 11, 2213, 81, 17, 11, 16, 13, 15, 8, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 2, 17934, 513, 201, 198, 201, 198, 2213, 81, 16, 796, 12200, 26933, 16, 11, 16, 11, 17, 36563, 491, 81, 17, 796, 12200, 26933, 16, 11, 17, 11, 16, 36563, 201, 198, 2213, 81, 16, 13, 5219, 796, 685, 17, 11, 17, 11, 18, 11, 16, 11208, 201, 198, 2213, 81, 17, 13, 5219, 796, 685, 17, 11, 17, 11, 17, 11, 18, 11, 16, 11208, 201, 198, 201, 198, 2213, 81, 16, 13, 1676, 65, 1799, 796, 685, 16, 13, 15, 11, 16, 13, 15, 11, 15, 13, 18, 11, 15, 13, 22, 11208, 201, 198, 2213, 81, 17, 13, 1676, 65, 1799, 796, 685, 16, 13, 15, 11, 15, 13, 18, 11, 15, 13, 22, 11, 16, 13, 15, 11, 16, 13, 15, 11208, 201, 198, 201, 198, 77, 7287, 54, 24929, 5714, 7, 2213, 81, 16, 11, 2213, 81, 17, 11, 16, 13, 15, 8, 201, 198, 201, 198, 201, 198, 201, 198 ]
1.585298
721
# details on status codes const statusses = Dict( :ok => "successful", :skip => "skipped", :fail => "unsuccessful", :kill => "interrupted", ) const reasons = Dict( missing => missing, # skip :explicit => "package was blacklisted", :jll => "package is a untestable wrapper package", :unsupported => "package is not supported by this Julia version", # fail :unsatisfiable => "package could not be installed", :untestable => "package does not have any tests", :binary_dependency => "package requires a missing binary dependency", :missing_dependency => "package is missing a package dependency", :missing_package => "package is using an unknown package", :test_failures => "package has test failures", :syntax => "package has syntax issues", :gc_corruption => "GC corruption detected", :segfault => "a segmentation fault happened", :abort => "the process was aborted", :unreachable => "an unreachable instruction was executed", :unknown => "there were unidentified errors", # kill :time_limit => "test duration exceeded the time limit", :log_limit => "test log exceeded the size limit", :inactivity => "tests became inactive", ) # simple comparison of two versions print_status(status, val=status) = print_status(stdout, status, val) function print_status(io::IO, status, val=status) if status == :ok printstyled(io, val; color = :green) elseif status == :fail || status == :kill printstyled(io, val; color = Base.error_color()) elseif status == :skip printstyled(io, val; color = Base.warn_color()) else error("Unknown status $status") end end function compare(result; rev::Bool=false) pkg_names = unique(result.name) primary, against = groupby(result, [:julia]) if rev # hack primary, against = against, primary end # overview for df in (primary, against) o = count(==(:ok), df[!, :status]) s = count(==(:skip), df[!, :status]) f = count(==(:fail), df[!, :status]) k = count(==(:kill), df[!, :status]) x = o + s + k + f @assert x == nrow(df) print("On v$(first(df.julia)), out of $x packages ") print_status(:ok, o) print(" passed, ") print_status(:fail, f) print(" failed, ") print_status(:kill, k) print(" got killed and ") print_status(:skip, s) println(" were skipped.") end println() # list of differences println("Comparing $(first(primary.julia)) against $(first(against.julia)):") new_failures = 0 new_successes = 0 for current in eachrow(primary) pkg_name = current[:name] previous = against[against[!, :name] .== pkg_name, :] nrow(previous) == 0 && continue previous = first(previous) if current[:status] != previous[:status] print("- $pkg_name status was $(previous[:status])") ismissing(previous[:reason]) || print(" (reason: $(previous[:reason]))") print(", now ") print_status(current[:status]) ismissing(current[:reason]) || print(" (reason: $(current[:reason]))") println() if current.status == :fail || current.status == :kill new_failures += 1 elseif current.status == :ok new_successes += 1 end end end println() # summary of differences print("In summary, ") print_status(:ok, new_successes) print(" packages now succeed, while ") print_status(:fail, new_failures) println(" have started to fail.") return end
[ 2, 3307, 319, 3722, 12416, 198, 198, 9979, 1185, 1046, 274, 796, 360, 713, 7, 198, 220, 220, 220, 1058, 482, 220, 220, 220, 220, 5218, 366, 17212, 1600, 198, 220, 220, 220, 1058, 48267, 220, 220, 5218, 366, 8135, 3949, 1600, 198, 220, 220, 220, 1058, 32165, 220, 220, 5218, 366, 403, 17212, 1600, 198, 220, 220, 220, 1058, 12728, 220, 220, 5218, 366, 46037, 1600, 198, 8, 198, 9979, 3840, 796, 360, 713, 7, 198, 220, 220, 220, 4814, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 4814, 11, 198, 220, 220, 220, 1303, 14267, 198, 220, 220, 220, 1058, 20676, 3628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 26495, 373, 2042, 17935, 1600, 198, 220, 220, 220, 1058, 73, 297, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 26495, 318, 257, 1418, 395, 540, 29908, 5301, 1600, 198, 220, 220, 220, 1058, 403, 15999, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 26495, 318, 407, 4855, 416, 428, 22300, 2196, 1600, 198, 220, 220, 220, 1303, 2038, 198, 220, 220, 220, 1058, 13271, 17403, 3379, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 26495, 714, 407, 307, 6589, 1600, 198, 220, 220, 220, 1058, 2797, 395, 540, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 26495, 857, 407, 423, 597, 5254, 1600, 198, 220, 220, 220, 1058, 39491, 62, 45841, 1387, 220, 220, 220, 220, 220, 5218, 366, 26495, 4433, 257, 4814, 13934, 20203, 1600, 198, 220, 220, 220, 1058, 45688, 62, 45841, 1387, 220, 220, 220, 220, 5218, 366, 26495, 318, 4814, 257, 5301, 20203, 1600, 198, 220, 220, 220, 1058, 45688, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 26495, 318, 1262, 281, 6439, 5301, 1600, 198, 220, 220, 220, 1058, 9288, 62, 32165, 942, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 26495, 468, 1332, 15536, 1600, 198, 220, 220, 220, 1058, 1837, 41641, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 26495, 468, 15582, 2428, 1600, 198, 220, 220, 220, 1058, 36484, 62, 46260, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 15916, 9253, 12326, 1600, 198, 220, 220, 220, 1058, 325, 70, 69, 1721, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 64, 10618, 341, 8046, 3022, 1600, 198, 220, 220, 220, 1058, 397, 419, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 1169, 1429, 373, 46847, 1600, 198, 220, 220, 220, 1058, 403, 16250, 540, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 272, 14880, 34446, 12064, 373, 10945, 1600, 198, 220, 220, 220, 1058, 34680, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 8117, 547, 27022, 8563, 1600, 198, 220, 220, 220, 1303, 1494, 198, 220, 220, 220, 1058, 2435, 62, 32374, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 9288, 9478, 20672, 262, 640, 4179, 1600, 198, 220, 220, 220, 1058, 6404, 62, 32374, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 9288, 2604, 20672, 262, 2546, 4179, 1600, 198, 220, 220, 220, 1058, 259, 21797, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5218, 366, 41989, 2627, 28621, 1600, 198, 8, 628, 198, 2, 2829, 7208, 286, 734, 6300, 198, 198, 4798, 62, 13376, 7, 13376, 11, 1188, 28, 13376, 8, 796, 3601, 62, 13376, 7, 19282, 448, 11, 3722, 11, 1188, 8, 198, 198, 8818, 3601, 62, 13376, 7, 952, 3712, 9399, 11, 3722, 11, 1188, 28, 13376, 8, 198, 220, 220, 220, 611, 3722, 6624, 1058, 482, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 34365, 992, 7, 952, 11, 1188, 26, 3124, 796, 1058, 14809, 8, 198, 220, 220, 220, 2073, 361, 3722, 6624, 1058, 32165, 8614, 3722, 6624, 1058, 12728, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 34365, 992, 7, 952, 11, 1188, 26, 3124, 796, 7308, 13, 18224, 62, 8043, 28955, 198, 220, 220, 220, 2073, 361, 3722, 6624, 1058, 48267, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 34365, 992, 7, 952, 11, 1188, 26, 3124, 796, 7308, 13, 40539, 62, 8043, 28955, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 7203, 20035, 3722, 720, 13376, 4943, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 8996, 7, 20274, 26, 2710, 3712, 33, 970, 28, 9562, 8, 198, 220, 220, 220, 279, 10025, 62, 14933, 796, 3748, 7, 20274, 13, 3672, 8, 628, 220, 220, 220, 4165, 11, 1028, 796, 1448, 1525, 7, 20274, 11, 685, 25, 73, 43640, 12962, 198, 220, 220, 220, 611, 2710, 220, 1303, 8156, 198, 220, 220, 220, 220, 220, 220, 220, 4165, 11, 1028, 796, 1028, 11, 4165, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1303, 16700, 198, 220, 220, 220, 329, 47764, 287, 357, 39754, 11, 1028, 8, 198, 220, 220, 220, 220, 220, 220, 220, 267, 796, 954, 7, 855, 7, 25, 482, 828, 220, 220, 220, 220, 220, 47764, 58, 28265, 1058, 13376, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 264, 796, 954, 7, 855, 7, 25, 48267, 828, 220, 220, 220, 47764, 58, 28265, 1058, 13376, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 954, 7, 855, 7, 25, 32165, 828, 220, 220, 220, 47764, 58, 28265, 1058, 13376, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 479, 796, 954, 7, 855, 7, 25, 12728, 828, 220, 220, 220, 47764, 58, 28265, 1058, 13376, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 267, 1343, 264, 1343, 479, 1343, 277, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 30493, 2124, 6624, 299, 808, 7, 7568, 8, 628, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 2202, 410, 3, 7, 11085, 7, 7568, 13, 73, 43640, 36911, 503, 286, 720, 87, 10392, 366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 62, 13376, 7, 25, 482, 11, 267, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 3804, 11, 366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 62, 13376, 7, 25, 32165, 11, 277, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 4054, 11, 366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 62, 13376, 7, 25, 12728, 11, 479, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 1392, 2923, 290, 366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 62, 13376, 7, 25, 48267, 11, 264, 8, 198, 220, 220, 220, 220, 220, 220, 220, 44872, 7203, 547, 26684, 19570, 198, 220, 220, 220, 886, 628, 220, 220, 220, 44872, 3419, 628, 220, 220, 220, 1303, 1351, 286, 5400, 198, 220, 220, 220, 44872, 7203, 7293, 1723, 29568, 11085, 7, 39754, 13, 73, 43640, 4008, 1028, 29568, 11085, 7, 32826, 13, 73, 43640, 8, 2599, 4943, 198, 220, 220, 220, 649, 62, 32165, 942, 796, 657, 198, 220, 220, 220, 649, 62, 13138, 274, 796, 657, 198, 220, 220, 220, 329, 1459, 287, 1123, 808, 7, 39754, 8, 198, 220, 220, 220, 220, 220, 220, 220, 279, 10025, 62, 3672, 796, 1459, 58, 25, 3672, 60, 628, 220, 220, 220, 220, 220, 220, 220, 2180, 796, 1028, 58, 32826, 58, 28265, 1058, 3672, 60, 764, 855, 279, 10025, 62, 3672, 11, 1058, 60, 198, 220, 220, 220, 220, 220, 220, 220, 299, 808, 7, 3866, 1442, 8, 6624, 657, 11405, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 2180, 796, 717, 7, 3866, 1442, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 1459, 58, 25, 13376, 60, 14512, 2180, 58, 25, 13376, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 12, 720, 35339, 62, 3672, 3722, 373, 29568, 3866, 1442, 58, 25, 13376, 12962, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 45688, 7, 3866, 1442, 58, 25, 41181, 12962, 8614, 3601, 7203, 357, 41181, 25, 29568, 3866, 1442, 58, 25, 41181, 60, 4008, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 1600, 783, 366, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 62, 13376, 7, 14421, 58, 25, 13376, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 45688, 7, 14421, 58, 25, 41181, 12962, 8614, 3601, 7203, 357, 41181, 25, 29568, 14421, 58, 25, 41181, 60, 4008, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44872, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1459, 13, 13376, 6624, 1058, 32165, 8614, 1459, 13, 13376, 6624, 1058, 12728, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 32165, 942, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 1459, 13, 13376, 6624, 1058, 482, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 13138, 274, 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, 886, 628, 220, 220, 220, 44872, 3419, 628, 220, 220, 220, 1303, 10638, 286, 5400, 198, 220, 220, 220, 3601, 7203, 818, 10638, 11, 366, 8, 198, 220, 220, 220, 3601, 62, 13376, 7, 25, 482, 11, 649, 62, 13138, 274, 8, 198, 220, 220, 220, 3601, 7203, 10392, 783, 6758, 11, 981, 366, 8, 198, 220, 220, 220, 3601, 62, 13376, 7, 25, 32165, 11, 649, 62, 32165, 942, 8, 198, 220, 220, 220, 44872, 7203, 423, 2067, 284, 2038, 19570, 628, 220, 220, 220, 1441, 198, 437, 198 ]
2.304779
1,716
# ------------------------------------------------------------------ # Licensed under the MIT License. See LICENSE in the project root. # ------------------------------------------------------------------ """ pairwise(γ, domain) Evaluate variogram `γ` between all elements in the `domain`. """ function pairwise(γ::Variogram, domain) Dim = embeddim(domain) T = coordtype(domain) n = nelements(domain) x = rand(Point{Dim,T}) R = result_type(γ, x, x) Γ = Matrix{R}(undef, n, n) pairwise!(Γ, γ, domain) end function pairwise!(Γ, γ::Variogram, domain) @inbounds for j=1:nelements(domain) xj = centroid(domain, j) for i=j+1:nelements(domain) xi = centroid(domain, i) Γ[i,j] = γ(xi, xj) end Γ[j,j] = γ(xj, xj) for i=1:j-1 Γ[i,j] = Γ[j,i] # leverage the symmetry end end Γ end """ pairwise(γ, domain₁, domain₂) Evaluate variogram `γ` between all elements of `domain₁` and `domain₂`. """ function pairwise(γ::Variogram, domain₁, domain₂) Dim = embeddim(domain₁) T = coordtype(domain₁) m = nelements(domain₁) n = nelements(domain₂) x = rand(Point{Dim,T}) R = result_type(γ, x, x) Γ = Array{R}(undef, m, n) pairwise!(Γ, γ, domain₁, domain₂) end function pairwise!(Γ, γ::Variogram, domain₁, domain₂) @inbounds for j=1:nelements(domain₂) xj = centroid(domain₂, j) for i=1:nelements(domain₁) xi = centroid(domain₁, i) Γ[i,j] = γ(xi, xj) end end Γ end
[ 2, 16529, 438, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 38559, 24290, 287, 262, 1628, 6808, 13, 198, 2, 16529, 438, 198, 198, 37811, 198, 220, 220, 220, 5166, 3083, 7, 42063, 11, 7386, 8, 198, 198, 36, 2100, 4985, 5553, 21857, 4600, 42063, 63, 1022, 477, 4847, 287, 262, 4600, 27830, 44646, 198, 37811, 198, 8818, 5166, 3083, 7, 42063, 3712, 23907, 21857, 11, 7386, 8, 198, 220, 14048, 796, 11525, 27740, 7, 27830, 8, 198, 220, 309, 796, 6349, 4906, 7, 27830, 8, 198, 220, 299, 796, 497, 3639, 7, 27830, 8, 198, 220, 2124, 796, 43720, 7, 12727, 90, 29271, 11, 51, 30072, 198, 220, 371, 796, 1255, 62, 4906, 7, 42063, 11, 2124, 11, 2124, 8, 198, 220, 7377, 241, 796, 24936, 90, 49, 92, 7, 917, 891, 11, 299, 11, 299, 8, 198, 220, 5166, 3083, 0, 7, 138, 241, 11, 7377, 111, 11, 7386, 8, 198, 437, 198, 198, 8818, 5166, 3083, 0, 7, 138, 241, 11, 7377, 111, 3712, 23907, 21857, 11, 7386, 8, 198, 220, 2488, 259, 65, 3733, 329, 474, 28, 16, 25, 710, 3639, 7, 27830, 8, 198, 220, 220, 220, 2124, 73, 796, 1247, 3882, 7, 27830, 11, 474, 8, 198, 220, 220, 220, 329, 1312, 28, 73, 10, 16, 25, 710, 3639, 7, 27830, 8, 198, 220, 220, 220, 220, 220, 2124, 72, 796, 1247, 3882, 7, 27830, 11, 1312, 8, 198, 220, 220, 220, 220, 220, 7377, 241, 58, 72, 11, 73, 60, 796, 7377, 111, 7, 29992, 11, 2124, 73, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 7377, 241, 58, 73, 11, 73, 60, 796, 7377, 111, 7, 87, 73, 11, 2124, 73, 8, 198, 220, 220, 220, 329, 1312, 28, 16, 25, 73, 12, 16, 198, 220, 220, 220, 220, 220, 7377, 241, 58, 72, 11, 73, 60, 796, 7377, 241, 58, 73, 11, 72, 60, 1303, 16094, 262, 40686, 198, 220, 220, 220, 886, 198, 220, 886, 198, 220, 7377, 241, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 5166, 3083, 7, 42063, 11, 7386, 158, 224, 223, 11, 7386, 158, 224, 224, 8, 198, 198, 36, 2100, 4985, 5553, 21857, 4600, 42063, 63, 1022, 477, 4847, 286, 4600, 27830, 158, 224, 223, 63, 290, 4600, 27830, 158, 224, 224, 44646, 198, 37811, 198, 8818, 5166, 3083, 7, 42063, 3712, 23907, 21857, 11, 7386, 158, 224, 223, 11, 7386, 158, 224, 224, 8, 198, 220, 14048, 796, 11525, 27740, 7, 27830, 158, 224, 223, 8, 198, 220, 309, 796, 6349, 4906, 7, 27830, 158, 224, 223, 8, 198, 220, 285, 796, 497, 3639, 7, 27830, 158, 224, 223, 8, 198, 220, 299, 796, 497, 3639, 7, 27830, 158, 224, 224, 8, 198, 220, 2124, 796, 43720, 7, 12727, 90, 29271, 11, 51, 30072, 198, 220, 371, 796, 1255, 62, 4906, 7, 42063, 11, 2124, 11, 2124, 8, 198, 220, 7377, 241, 796, 15690, 90, 49, 92, 7, 917, 891, 11, 285, 11, 299, 8, 198, 220, 5166, 3083, 0, 7, 138, 241, 11, 7377, 111, 11, 7386, 158, 224, 223, 11, 7386, 158, 224, 224, 8, 198, 437, 198, 198, 8818, 5166, 3083, 0, 7, 138, 241, 11, 7377, 111, 3712, 23907, 21857, 11, 7386, 158, 224, 223, 11, 7386, 158, 224, 224, 8, 198, 220, 2488, 259, 65, 3733, 329, 474, 28, 16, 25, 710, 3639, 7, 27830, 158, 224, 224, 8, 198, 220, 220, 220, 2124, 73, 796, 1247, 3882, 7, 27830, 158, 224, 224, 11, 474, 8, 198, 220, 220, 220, 329, 1312, 28, 16, 25, 710, 3639, 7, 27830, 158, 224, 223, 8, 198, 220, 220, 220, 220, 220, 2124, 72, 796, 1247, 3882, 7, 27830, 158, 224, 223, 11, 1312, 8, 198, 220, 220, 220, 220, 220, 7377, 241, 58, 72, 11, 73, 60, 796, 7377, 111, 7, 29992, 11, 2124, 73, 8, 198, 220, 220, 220, 886, 198, 220, 886, 198, 220, 7377, 241, 198, 437, 198 ]
2.229008
655
@testset "976.largest-perimeter-triangle.jl" begin @test largest_perimeter([2, 1, 2]) == 5 @test largest_perimeter([1, 2, 1]) == 0 @test largest_perimeter([3, 2, 3, 4]) == 10 @test largest_perimeter([3, 6, 2, 3]) == 8 end
[ 31, 9288, 2617, 366, 24, 4304, 13, 28209, 12, 525, 16912, 12, 28461, 9248, 13, 20362, 1, 2221, 198, 220, 220, 220, 2488, 9288, 4387, 62, 525, 16912, 26933, 17, 11, 352, 11, 362, 12962, 6624, 642, 198, 220, 220, 220, 2488, 9288, 4387, 62, 525, 16912, 26933, 16, 11, 362, 11, 352, 12962, 6624, 657, 198, 220, 220, 220, 2488, 9288, 4387, 62, 525, 16912, 26933, 18, 11, 362, 11, 513, 11, 604, 12962, 6624, 838, 198, 220, 220, 220, 2488, 9288, 4387, 62, 525, 16912, 26933, 18, 11, 718, 11, 362, 11, 513, 12962, 6624, 807, 198, 437 ]
2.37
100
function game_of_life(board, steps) return board end
[ 8818, 983, 62, 1659, 62, 6042, 7, 3526, 11, 4831, 8, 198, 220, 220, 220, 1441, 3096, 198, 437, 198 ]
2.85
20
### Fetch required packages and reaction networks ### using Catalyst, OrdinaryDiffEq, Random, SteadyStateDiffEq, Test using ModelingToolkit: get_states, get_ps include("test_networks.jl") using StableRNGs rng = StableRNG(12345) ### Compares to netowork with know steady state ### steady_state_network_1 = @reaction_network begin (k1,k2), ∅ ↔ X1 (k3,k4), ∅ ↔ 3X2 (k5,k6), ∅ ↔ X3 + X4 end k1 k2 k3 k4 k5 k6 for factor in [1e-1, 1e0, 1e1], repeat = 1:3 u0 = factor*rand(rng,length(get_states(steady_state_network_1))); u0[4] = u0[3]; p = 0.01 .+ factor*rand(rng,length(get_ps(steady_state_network_1))) prob = SteadyStateProblem(steady_state_network_1,u0,p) sol = solve(prob,SSRootfind()).u (minimum(sol[1:1]) > 1e-2) && (@test abs.(sol[1] - p[1]/p[2]) < 0.01) (minimum(sol[2:2]) > 1e-2) && (@test abs.(sol[2]^3/factorial(3) - p[3]/p[4]) < 0.01) (minimum(sol[3:4]) > 1e-2) && (@test abs.(sol[3]*sol[4] - p[5]/p[6]) < 0.01) end steady_state_network_2 = @reaction_network begin v/10+hill(X,v,K,n), ∅ → X d, X → ∅ end v K n d for factor in [1e-1, 1e1, 1e1], repeat = 1:3 u0_small = factor*rand(rng,length(get_states(steady_state_network_2)))/100 u0_large = factor*rand(rng,length(get_states(steady_state_network_2)))*100 p = factor*rand(rng,length(get_ps(steady_state_network_2))) p[3] = round(p[3])+1 sol1 = solve(SteadyStateProblem(steady_state_network_2,u0_small,p),SSRootfind()).u[1] sol2 = solve(SteadyStateProblem(steady_state_network_2,u0_large,p),SSRootfind()).u[1] diff1 = abs(p[1]/10 + p[1]*(sol1^p[3])/(sol1^p[3]+p[2]^p[3]) - p[4]*sol1) diff2 = abs(p[1]/10 + p[1]*(sol2^p[3])/(sol2^p[3]+p[2]^p[3]) - p[4]*sol2) @test (diff1 < 1e-8) || (diff2 < 1e-8) end ### For a couple of networks, test that the steady state solution is identical to the long term ODE solution. ### steady_state_test_networks = [reaction_networks_standard[8], reaction_networks_standard[10], reaction_networks_weird[1]] for network in steady_state_test_networks, factor in [1e-1, 1e0, 1e1] u0 = factor*rand(rng,length(get_states(network))) p = factor*rand(rng,length(get_ps(network))) sol_ode = solve(ODEProblem(network,u0,(0.,1000000),p),Rosenbrock23()) sol_ss = solve(SteadyStateProblem(network,u0,p),SSRootfind()) @test all(abs.(sol_ode.u[end] .- sol_ss.u) .< 1e-4) end ### No parameter test ### no_param_network = @reaction_network begin (0.6,3.2), ∅ ↔ X end for factor in [1e0, 1e1, 1e2] u0 = factor*rand(rng,length(get_states(no_param_network))) sol_ss = solve(SteadyStateProblem(no_param_network,u0),SSRootfind(),abstol=1e-11) @test abs.(sol_ss.u[1]-0.6/3.2) < 1e-8 end
[ 21017, 376, 7569, 2672, 10392, 290, 6317, 7686, 44386, 198, 3500, 48238, 11, 14230, 3219, 28813, 36, 80, 11, 14534, 11, 45445, 88, 9012, 28813, 36, 80, 11, 6208, 198, 3500, 9104, 278, 25391, 15813, 25, 651, 62, 27219, 11, 651, 62, 862, 198, 17256, 7203, 9288, 62, 3262, 5225, 13, 20362, 4943, 198, 198, 3500, 520, 540, 49, 10503, 82, 198, 81, 782, 796, 520, 540, 49, 10503, 7, 10163, 2231, 8, 198, 198, 21017, 3082, 3565, 284, 2010, 322, 967, 351, 760, 11831, 1181, 44386, 198, 28044, 88, 62, 5219, 62, 27349, 62, 16, 796, 2488, 260, 2673, 62, 27349, 2221, 198, 220, 220, 220, 357, 74, 16, 11, 74, 17, 828, 18872, 227, 17804, 242, 1395, 16, 198, 220, 220, 220, 357, 74, 18, 11, 74, 19, 828, 18872, 227, 17804, 242, 513, 55, 17, 198, 220, 220, 220, 357, 74, 20, 11, 74, 21, 828, 18872, 227, 17804, 242, 1395, 18, 1343, 1395, 19, 198, 437, 479, 16, 479, 17, 479, 18, 479, 19, 479, 20, 479, 21, 198, 198, 1640, 5766, 287, 685, 16, 68, 12, 16, 11, 352, 68, 15, 11, 352, 68, 16, 4357, 9585, 796, 352, 25, 18, 198, 220, 220, 220, 334, 15, 796, 5766, 9, 25192, 7, 81, 782, 11, 13664, 7, 1136, 62, 27219, 7, 28044, 88, 62, 5219, 62, 27349, 62, 16, 4008, 1776, 334, 15, 58, 19, 60, 796, 334, 15, 58, 18, 11208, 198, 220, 220, 220, 279, 796, 657, 13, 486, 764, 10, 5766, 9, 25192, 7, 81, 782, 11, 13664, 7, 1136, 62, 862, 7, 28044, 88, 62, 5219, 62, 27349, 62, 16, 22305, 198, 220, 220, 220, 1861, 796, 45445, 88, 9012, 40781, 7, 28044, 88, 62, 5219, 62, 27349, 62, 16, 11, 84, 15, 11, 79, 8, 198, 220, 220, 220, 1540, 796, 8494, 7, 1676, 65, 11, 5432, 30016, 19796, 3419, 737, 84, 198, 220, 220, 220, 357, 39504, 7, 34453, 58, 16, 25, 16, 12962, 1875, 352, 68, 12, 17, 8, 11405, 4275, 9288, 2352, 12195, 34453, 58, 16, 60, 532, 279, 58, 16, 60, 14, 79, 58, 17, 12962, 1279, 657, 13, 486, 8, 198, 220, 220, 220, 357, 39504, 7, 34453, 58, 17, 25, 17, 12962, 1875, 352, 68, 12, 17, 8, 11405, 4275, 9288, 2352, 12195, 34453, 58, 17, 60, 61, 18, 14, 22584, 5132, 7, 18, 8, 532, 279, 58, 18, 60, 14, 79, 58, 19, 12962, 1279, 657, 13, 486, 8, 198, 220, 220, 220, 357, 39504, 7, 34453, 58, 18, 25, 19, 12962, 1875, 352, 68, 12, 17, 8, 11405, 4275, 9288, 2352, 12195, 34453, 58, 18, 60, 9, 34453, 58, 19, 60, 532, 279, 58, 20, 60, 14, 79, 58, 21, 12962, 1279, 657, 13, 486, 8, 198, 437, 198, 198, 28044, 88, 62, 5219, 62, 27349, 62, 17, 796, 2488, 260, 2673, 62, 27349, 2221, 198, 220, 220, 220, 410, 14, 940, 10, 12639, 7, 55, 11, 85, 11, 42, 11, 77, 828, 18872, 227, 15168, 1395, 198, 220, 220, 220, 288, 11, 1395, 15168, 18872, 227, 198, 437, 410, 509, 299, 288, 198, 198, 1640, 5766, 287, 685, 16, 68, 12, 16, 11, 352, 68, 16, 11, 352, 68, 16, 4357, 9585, 796, 352, 25, 18, 198, 220, 220, 220, 334, 15, 62, 17470, 796, 5766, 9, 25192, 7, 81, 782, 11, 13664, 7, 1136, 62, 27219, 7, 28044, 88, 62, 5219, 62, 27349, 62, 17, 4008, 20679, 3064, 198, 220, 220, 220, 334, 15, 62, 11664, 796, 5766, 9, 25192, 7, 81, 782, 11, 13664, 7, 1136, 62, 27219, 7, 28044, 88, 62, 5219, 62, 27349, 62, 17, 22305, 9, 3064, 198, 220, 220, 220, 279, 796, 5766, 9, 25192, 7, 81, 782, 11, 13664, 7, 1136, 62, 862, 7, 28044, 88, 62, 5219, 62, 27349, 62, 17, 22305, 198, 220, 220, 220, 279, 58, 18, 60, 796, 2835, 7, 79, 58, 18, 12962, 10, 16, 198, 220, 220, 220, 1540, 16, 796, 8494, 7, 7447, 4597, 9012, 40781, 7, 28044, 88, 62, 5219, 62, 27349, 62, 17, 11, 84, 15, 62, 17470, 11, 79, 828, 5432, 30016, 19796, 3419, 737, 84, 58, 16, 60, 198, 220, 220, 220, 1540, 17, 796, 8494, 7, 7447, 4597, 9012, 40781, 7, 28044, 88, 62, 5219, 62, 27349, 62, 17, 11, 84, 15, 62, 11664, 11, 79, 828, 5432, 30016, 19796, 3419, 737, 84, 58, 16, 60, 198, 220, 220, 220, 814, 16, 796, 2352, 7, 79, 58, 16, 60, 14, 940, 1343, 279, 58, 16, 60, 9, 7, 34453, 16, 61, 79, 58, 18, 12962, 29006, 34453, 16, 61, 79, 58, 18, 48688, 79, 58, 17, 60, 61, 79, 58, 18, 12962, 532, 279, 58, 19, 60, 9, 34453, 16, 8, 198, 220, 220, 220, 814, 17, 796, 2352, 7, 79, 58, 16, 60, 14, 940, 1343, 279, 58, 16, 60, 9, 7, 34453, 17, 61, 79, 58, 18, 12962, 29006, 34453, 17, 61, 79, 58, 18, 48688, 79, 58, 17, 60, 61, 79, 58, 18, 12962, 532, 279, 58, 19, 60, 9, 34453, 17, 8, 198, 220, 220, 220, 2488, 9288, 357, 26069, 16, 1279, 352, 68, 12, 23, 8, 8614, 357, 26069, 17, 1279, 352, 68, 12, 23, 8, 198, 437, 628, 198, 21017, 1114, 257, 3155, 286, 7686, 11, 1332, 326, 262, 11831, 1181, 4610, 318, 10411, 284, 262, 890, 3381, 440, 7206, 4610, 13, 44386, 198, 28044, 88, 62, 5219, 62, 9288, 62, 3262, 5225, 796, 685, 260, 2673, 62, 3262, 5225, 62, 20307, 58, 23, 4357, 6317, 62, 3262, 5225, 62, 20307, 58, 940, 4357, 6317, 62, 3262, 5225, 62, 732, 1447, 58, 16, 11907, 198, 1640, 3127, 287, 11831, 62, 5219, 62, 9288, 62, 3262, 5225, 11, 5766, 287, 685, 16, 68, 12, 16, 11, 352, 68, 15, 11, 352, 68, 16, 60, 198, 220, 220, 220, 334, 15, 796, 5766, 9, 25192, 7, 81, 782, 11, 13664, 7, 1136, 62, 27219, 7, 27349, 22305, 198, 220, 220, 220, 279, 796, 5766, 9, 25192, 7, 81, 782, 11, 13664, 7, 1136, 62, 862, 7, 27349, 22305, 198, 220, 220, 220, 1540, 62, 1098, 796, 8494, 7, 16820, 40781, 7, 27349, 11, 84, 15, 11, 7, 15, 1539, 16, 10535, 828, 79, 828, 49, 5233, 7957, 694, 1954, 28955, 198, 220, 220, 220, 1540, 62, 824, 796, 8494, 7, 7447, 4597, 9012, 40781, 7, 27349, 11, 84, 15, 11, 79, 828, 5432, 30016, 19796, 28955, 628, 220, 220, 220, 2488, 9288, 477, 7, 8937, 12195, 34453, 62, 1098, 13, 84, 58, 437, 60, 764, 12, 1540, 62, 824, 13, 84, 8, 764, 27, 352, 68, 12, 19, 8, 198, 437, 628, 198, 21017, 1400, 11507, 1332, 44386, 198, 198, 3919, 62, 17143, 62, 27349, 796, 2488, 260, 2673, 62, 27349, 2221, 198, 220, 220, 220, 357, 15, 13, 21, 11, 18, 13, 17, 828, 18872, 227, 17804, 242, 1395, 198, 437, 198, 1640, 5766, 287, 685, 16, 68, 15, 11, 352, 68, 16, 11, 352, 68, 17, 60, 198, 220, 220, 220, 334, 15, 796, 5766, 9, 25192, 7, 81, 782, 11, 13664, 7, 1136, 62, 27219, 7, 3919, 62, 17143, 62, 27349, 22305, 198, 220, 220, 220, 1540, 62, 824, 796, 8494, 7, 7447, 4597, 9012, 40781, 7, 3919, 62, 17143, 62, 27349, 11, 84, 15, 828, 5432, 30016, 19796, 22784, 397, 301, 349, 28, 16, 68, 12, 1157, 8, 198, 220, 220, 220, 2488, 9288, 2352, 12195, 34453, 62, 824, 13, 84, 58, 16, 45297, 15, 13, 21, 14, 18, 13, 17, 8, 1279, 352, 68, 12, 23, 198, 437, 198 ]
2.151685
1,246
using VLOptionsModeling using Plots # create an emprt contract set for now - assetSymbol = "XYZ" strikePrice = 50.0 underlying_price = 50.0 expirationDate = nothing premimumValue = 0.0 numberOfContracts = 1 sense = :buy contractMultiplier = 1.0 put_contract = VLPutOptionContract(assetSymbol, strikePrice, premimumValue; sense=sense, contractMultiplier=contractMultiplier) # setup the lattice (Example 19.1/Fig. 19.3 Hull) 𝝙t = 30.42 / (365.0) # years μ = log(1.0084) * (1 / 𝝙t) σ = (1 / √𝝙t) * log(1.1224) numberOfLevels = 36 # Create the lattice model - latticeModel_1 = VLBinomialLattice(μ, σ, 𝝙t, numberOfLevels) latticeModel_2 = VLBinomialLattice(μ, σ, 0.5 * 𝝙t, numberOfLevels) latticeModel_3 = VLBinomialLattice(μ, σ, 0.25 * 𝝙t, numberOfLevels) latticeModel_4 = VLBinomialLattice(μ, σ, 0.125 * 𝝙t, numberOfLevels) latticeModel_5 = VLBinomialLattice(μ, σ, 0.0625 * 𝝙t, numberOfLevels) # setup strike array - strike_price_array = range(35.0, stop=65.0, step=0.1) |> collect # sim - sim_array_1 = binomial_price(put_contract, latticeModel_1, underlying_price, strike_price_array) |> check sim_array_2 = binomial_price(put_contract, latticeModel_2, underlying_price, strike_price_array) |> check sim_array_3 = binomial_price(put_contract, latticeModel_3, underlying_price, strike_price_array) |> check sim_array_4 = binomial_price(put_contract, latticeModel_4, underlying_price, strike_price_array) |> check sim_array_5 = binomial_price(put_contract, latticeModel_5, underlying_price, strike_price_array) |> check # plots - plot(sim_array_1[:,1],sim_array_1[:,2]) plot!(sim_array_2[:,1],sim_array_2[:,2]) plot!(sim_array_3[:,1],sim_array_3[:,2]) plot!(sim_array_4[:,1],sim_array_4[:,2]) plot!(sim_array_5[:,1],sim_array_5[:,2])
[ 3500, 569, 21982, 8544, 5841, 10809, 198, 3500, 1345, 1747, 198, 198, 2, 2251, 281, 795, 1050, 83, 2775, 900, 329, 783, 532, 198, 562, 316, 13940, 23650, 796, 366, 34278, 57, 1, 198, 33069, 18124, 796, 2026, 13, 15, 198, 4625, 3157, 62, 20888, 796, 2026, 13, 15, 198, 1069, 10514, 10430, 796, 2147, 198, 31605, 2847, 11395, 796, 657, 13, 15, 198, 17618, 5189, 45845, 82, 796, 352, 198, 33819, 796, 1058, 17846, 198, 28484, 15205, 24705, 959, 796, 352, 13, 15, 198, 1996, 62, 28484, 796, 569, 43, 11588, 19722, 45845, 7, 562, 316, 13940, 23650, 11, 5587, 18124, 11, 4199, 2847, 11395, 26, 2565, 28, 33819, 11, 2775, 15205, 24705, 959, 28, 28484, 15205, 24705, 959, 8, 198, 198, 2, 9058, 262, 47240, 501, 357, 16281, 678, 13, 16, 14, 14989, 13, 678, 13, 18, 28238, 8, 198, 47728, 251, 247, 83, 796, 1542, 13, 3682, 1220, 357, 24760, 13, 15, 8, 1303, 812, 198, 34703, 796, 2604, 7, 16, 13, 405, 5705, 8, 1635, 357, 16, 1220, 220, 47728, 251, 247, 83, 8, 198, 38392, 796, 357, 16, 1220, 18872, 248, 47728, 251, 247, 83, 8, 1635, 2604, 7, 16, 13, 1065, 1731, 8, 198, 17618, 5189, 4971, 82, 796, 4570, 198, 198, 2, 13610, 262, 47240, 501, 2746, 532, 198, 75, 1078, 501, 17633, 62, 16, 796, 569, 30501, 259, 49070, 43, 1078, 501, 7, 34703, 11, 18074, 225, 11, 220, 47728, 251, 247, 83, 11, 1271, 5189, 4971, 82, 8, 198, 75, 1078, 501, 17633, 62, 17, 796, 569, 30501, 259, 49070, 43, 1078, 501, 7, 34703, 11, 18074, 225, 11, 657, 13, 20, 1635, 220, 47728, 251, 247, 83, 11, 1271, 5189, 4971, 82, 8, 198, 75, 1078, 501, 17633, 62, 18, 796, 569, 30501, 259, 49070, 43, 1078, 501, 7, 34703, 11, 18074, 225, 11, 657, 13, 1495, 1635, 220, 47728, 251, 247, 83, 11, 1271, 5189, 4971, 82, 8, 198, 75, 1078, 501, 17633, 62, 19, 796, 569, 30501, 259, 49070, 43, 1078, 501, 7, 34703, 11, 18074, 225, 11, 657, 13, 11623, 1635, 220, 47728, 251, 247, 83, 11, 1271, 5189, 4971, 82, 8, 198, 75, 1078, 501, 17633, 62, 20, 796, 569, 30501, 259, 49070, 43, 1078, 501, 7, 34703, 11, 18074, 225, 11, 657, 13, 3312, 1495, 1635, 220, 47728, 251, 247, 83, 11, 1271, 5189, 4971, 82, 8, 198, 198, 2, 9058, 5587, 7177, 532, 198, 33069, 62, 20888, 62, 18747, 796, 2837, 7, 2327, 13, 15, 11, 2245, 28, 2996, 13, 15, 11, 2239, 28, 15, 13, 16, 8, 930, 29, 2824, 198, 198, 2, 985, 532, 198, 14323, 62, 18747, 62, 16, 796, 9874, 49070, 62, 20888, 7, 1996, 62, 28484, 11, 47240, 501, 17633, 62, 16, 11, 10238, 62, 20888, 11, 5587, 62, 20888, 62, 18747, 8, 930, 29, 2198, 198, 14323, 62, 18747, 62, 17, 796, 9874, 49070, 62, 20888, 7, 1996, 62, 28484, 11, 47240, 501, 17633, 62, 17, 11, 10238, 62, 20888, 11, 5587, 62, 20888, 62, 18747, 8, 930, 29, 2198, 198, 14323, 62, 18747, 62, 18, 796, 9874, 49070, 62, 20888, 7, 1996, 62, 28484, 11, 47240, 501, 17633, 62, 18, 11, 10238, 62, 20888, 11, 5587, 62, 20888, 62, 18747, 8, 930, 29, 2198, 198, 14323, 62, 18747, 62, 19, 796, 9874, 49070, 62, 20888, 7, 1996, 62, 28484, 11, 47240, 501, 17633, 62, 19, 11, 10238, 62, 20888, 11, 5587, 62, 20888, 62, 18747, 8, 930, 29, 2198, 198, 14323, 62, 18747, 62, 20, 796, 9874, 49070, 62, 20888, 7, 1996, 62, 28484, 11, 47240, 501, 17633, 62, 20, 11, 10238, 62, 20888, 11, 5587, 62, 20888, 62, 18747, 8, 930, 29, 2198, 198, 198, 2, 21528, 532, 198, 29487, 7, 14323, 62, 18747, 62, 16, 58, 45299, 16, 4357, 14323, 62, 18747, 62, 16, 58, 45299, 17, 12962, 198, 29487, 0, 7, 14323, 62, 18747, 62, 17, 58, 45299, 16, 4357, 14323, 62, 18747, 62, 17, 58, 45299, 17, 12962, 198, 29487, 0, 7, 14323, 62, 18747, 62, 18, 58, 45299, 16, 4357, 14323, 62, 18747, 62, 18, 58, 45299, 17, 12962, 198, 29487, 0, 7, 14323, 62, 18747, 62, 19, 58, 45299, 16, 4357, 14323, 62, 18747, 62, 19, 58, 45299, 17, 12962, 198, 29487, 0, 7, 14323, 62, 18747, 62, 20, 58, 45299, 16, 4357, 14323, 62, 18747, 62, 20, 58, 45299, 17, 12962 ]
2.407767
721
include("drop.jl") include("hard_drop.jl") include("soft_drop.jl")
[ 17256, 7203, 14781, 13, 20362, 4943, 198, 198, 17256, 7203, 10424, 62, 14781, 13, 20362, 4943, 198, 17256, 7203, 4215, 62, 14781, 13, 20362, 4943, 198 ]
2.615385
26
using CSV, Distributions, HypothesisTests data1 = CSV.read("../data/machine1.csv", header=false)[:,1] data2 = CSV.read("../data/machine2.csv", header=false)[:,1] xBar1, xBar2 = mean(data1), mean(data2) s1, s2 = std(data1), std(data2) n1, n2 = length(data1), length(data2) alpha = 0.05 v = (s1^2/n1 + s2^2/n2)^2 / ( (s1^2/n1)^2 / (n1-1) + (s2^2/n2)^2 / (n2-1) ) t = quantile(TDist(v),1-alpha/2) println("Calculating formula: ", (xBar1 - xBar2 - t*sqrt(s1^2/n1 + s2^2/n2), xBar1 - xBar2 + t*sqrt(s1^2/n1 + s2^2/n2))) println("Using confint(): ", confint(UnequalVarianceTTest(data1,data2),alpha))
[ 3500, 44189, 11, 46567, 507, 11, 21209, 313, 8497, 51, 3558, 198, 198, 7890, 16, 796, 44189, 13, 961, 7203, 40720, 7890, 14, 30243, 16, 13, 40664, 1600, 13639, 28, 9562, 38381, 45299, 16, 60, 198, 7890, 17, 796, 44189, 13, 961, 7203, 40720, 7890, 14, 30243, 17, 13, 40664, 1600, 13639, 28, 9562, 38381, 45299, 16, 60, 198, 87, 10374, 16, 11, 2124, 10374, 17, 796, 1612, 7, 7890, 16, 828, 1612, 7, 7890, 17, 8, 198, 82, 16, 11, 264, 17, 796, 14367, 7, 7890, 16, 828, 14367, 7, 7890, 17, 8, 198, 77, 16, 11, 299, 17, 796, 4129, 7, 7890, 16, 828, 4129, 7, 7890, 17, 8, 198, 26591, 796, 657, 13, 2713, 198, 198, 85, 796, 357, 82, 16, 61, 17, 14, 77, 16, 1343, 264, 17, 61, 17, 14, 77, 17, 8, 61, 17, 1220, 357, 357, 82, 16, 61, 17, 14, 77, 16, 8, 61, 17, 1220, 357, 77, 16, 12, 16, 8, 1343, 357, 82, 17, 61, 17, 14, 77, 17, 8, 61, 17, 1220, 357, 77, 17, 12, 16, 8, 1267, 198, 198, 83, 796, 5554, 576, 7, 51, 20344, 7, 85, 828, 16, 12, 26591, 14, 17, 8, 198, 198, 35235, 7203, 9771, 3129, 803, 10451, 25, 33172, 357, 87, 10374, 16, 532, 2124, 10374, 17, 532, 256, 9, 31166, 17034, 7, 82, 16, 61, 17, 14, 77, 16, 1343, 264, 17, 61, 17, 14, 77, 17, 828, 198, 197, 197, 197, 197, 220, 2124, 10374, 16, 532, 2124, 10374, 17, 1343, 256, 9, 31166, 17034, 7, 82, 16, 61, 17, 14, 77, 16, 1343, 264, 17, 61, 17, 14, 77, 17, 22305, 198, 35235, 7203, 12814, 1013, 600, 33529, 33172, 220, 220, 1013, 600, 7, 52, 710, 13255, 23907, 590, 51, 14402, 7, 7890, 16, 11, 7890, 17, 828, 26591, 4008, 198 ]
2
303
using Test using Forecast using TimeSeries @testset "stl" begin @test_throws AssertionError stl(rand(100),10; ns=5) x = stl(rand(100),10) @test x isa STL @test x.ta isa TimeArray @test x.call isa String end
[ 3500, 6208, 198, 3500, 4558, 2701, 198, 3500, 3862, 27996, 198, 198, 31, 9288, 2617, 366, 301, 75, 1, 2221, 198, 220, 220, 220, 2488, 9288, 62, 400, 8516, 2195, 861, 295, 12331, 336, 75, 7, 25192, 7, 3064, 828, 940, 26, 36545, 28, 20, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 2124, 796, 336, 75, 7, 25192, 7, 3064, 828, 940, 8, 198, 220, 220, 220, 2488, 9288, 2124, 318, 64, 37269, 198, 220, 220, 220, 2488, 9288, 2124, 13, 8326, 318, 64, 3862, 19182, 198, 220, 220, 220, 2488, 9288, 2124, 13, 13345, 318, 64, 10903, 198, 437, 198 ]
2.240385
104
# type for mortality, lapse, etc abstract type Decrement end
[ 2, 2099, 329, 12430, 11, 42689, 11, 3503, 198, 397, 8709, 2099, 36400, 434, 886 ]
4
15
using Base.Threads, SortingAlgorithms import SortingAlgorithms: StringRadixSort, StringRadixSortAlg, uint_mapping, load_bits import StatsBase: BaseRadixSortSafeTypes import Base: Forward, ForwardOrdering, ReverseOrdering, sort!, Reverse # winner from benchmarks/which_is_the_fastest_UInt_histogram.jl function uint_hist(bits::Vector{T}) where T <: Unsigned iter = sizeof(T)÷2 hist = zeros(UInt32, 65536, iter, nthreads()) @threads for j = 1:length(bits) for i = 0:iter-1 @inbounds hist[1+Int((bits[j] >> (i << 4)) & 0xffff), i+1, threadid()] += 1 end end @threads for j in 1:iter for i = 2:nthreads() @inbounds hist[:, j, 1] .+= hist[:, j, i] end end hist[:,:,1] end # sort it by using sorttwo! on the pointer function sort_1fasterhistogram!(svec::Vector{String}, lo::Int, hi::Int, ::StringRadixSortAlg, o::O) where O <: Union{ForwardOrdering, ReverseOrdering} if lo >= hi; return svec; end # the length subarray to sort l = hi - lo + 1 # find the maximum string length lens = maximum(sizeof, svec) skipbytes = lens # ptrs = pointer.(svec) if lens > 0 while lens > 4 skipbytes = max(0, skipbytes - 8) bits64 = zeros(UInt64, l) if o == Reverse bits64[lo:hi] .= .~load_bits.(UInt64, @view(svec[lo:hi]), skipbytes) SortingLab.sorttwo!(bits64, svec, lo, hi) else bits64[lo:hi] .= load_bits.(UInt64, @view(svec[lo:hi]), skipbytes) SortingLab.sorttwo!(bits64, svec, lo, hi) end lens -= 8 end if lens > 0 skipbytes = max(0, skipbytes - 4) bits32 = zeros(UInt32, l) if o == Reverse bits32[lo:hi] .= .~load_bits.(UInt32, @view(svec[lo:hi]), skipbytes) SortingLab.sorttwo!(bits32, svec, lo, hi) else bits32[lo:hi] .= load_bits.(UInt32, @view(svec[lo:hi]), skipbytes) SortingLab.sorttwo!(bits32, svec, lo, hi) end lens -= 4 end end # unsafe_pointer_to_objref.(ptrs - 8) svec end """ sorttwo!(vs, index) Sort both the `vs` and reorder `index` at the same. This allows for faster sortperm for radix sort. """ function sorttwo!(vs::Vector{T}, index, lo::Int = 1, hi::Int=length(vs), RADIX_SIZE = 16, RADIX_MASK = 0xffff) where T <:BaseRadixSortSafeTypes # Input checking if lo >= hi; return (vs, index); end o = Forward # Init iters = ceil(Integer, sizeof(T)*8/RADIX_SIZE) # number of buckets in the counting step nbuckets = 2^RADIX_SIZE # Histogram for each element, radix bin = uint_hist(vs) # bin = zeros(UInt32, nbuckets, iters) # if lo > 1; bin[1,:] = lo-1; end # Sort! swaps = 0 len = hi-lo+1 index1 = similar(index) ts=similar(vs) for j = 1:iters # Unroll first data iteration, check for degenerate case v = uint_mapping(o, vs[hi]) idx = Int((v >> (j-1)*RADIX_SIZE) & RADIX_MASK) + 1 # are all values the same at this radix? if bin[idx,j] == len; continue; end # cbin = cumsum(bin[:,j]) # tries to achieve the above one-liner with more efficiency cbin = zeros(UInt32, nbuckets) cbin[1] = bin[1,j] for i in 2:nbuckets cbin[i] = cbin[i-1] + bin[i,j] end ci = cbin[idx] ts[ci] = vs[hi] index1[ci] = index[hi] cbin[idx] -= 1 # Finish the loop... @inbounds for i in hi-1:-1:lo v = uint_mapping(o, vs[i]) idx = Int((v >> (j-1)*RADIX_SIZE) & RADIX_MASK) + 1 ci = cbin[idx] ts[ci] = vs[i] index1[ci] = index[i] cbin[idx] -= 1 end vs,ts = ts,vs index, index1 = index1, index swaps += 1 end if isodd(swaps) vs,ts = ts,vs index, index1 = index1, index for i = lo:hi @inbounds vs[i] = ts[i] @inbounds index[i] = index1[i] end end (vs, index) end using SortingLab using Base.Test using SortingAlgorithms import SortingAlgorithms: load_bits # write your own tests here # @test 1 == 2 N = 100_000_000 K = 100 samplespace = "id".*dec.(1:N÷K,10); srand(1) svec = rand(samplespace, N); using BenchmarkTools # overall sorting is faster too function ghi(svec) csvec = copy(svec) gc() @time a = @elapsed sort_1fasterhistogram!(csvec, 1, length(csvec), StringRadixSort, Base.Forward) csvec = copy(svec) gc() @time b = @elapsed SortingAlgorithms.sort!(csvec, 1, length(csvec), StringRadixSort, Base.Forward) a,b end @time [ghi(svec) for i=repeat([4], outer=5)]
[ 198, 198, 3500, 7308, 13, 16818, 82, 11, 311, 24707, 2348, 7727, 907, 198, 198, 11748, 311, 24707, 2348, 7727, 907, 25, 10903, 15546, 844, 42758, 11, 10903, 15546, 844, 42758, 2348, 70, 11, 20398, 62, 76, 5912, 11, 3440, 62, 9895, 198, 11748, 20595, 14881, 25, 7308, 15546, 844, 42758, 31511, 31431, 198, 11748, 7308, 25, 19530, 11, 19530, 18743, 278, 11, 31849, 18743, 278, 11, 3297, 28265, 31849, 628, 198, 2, 8464, 422, 31747, 14, 4758, 62, 271, 62, 1169, 62, 7217, 395, 62, 52, 5317, 62, 10034, 21857, 13, 20362, 198, 8818, 20398, 62, 10034, 7, 9895, 3712, 38469, 90, 51, 30072, 810, 309, 1279, 25, 791, 32696, 198, 220, 220, 220, 11629, 796, 39364, 7, 51, 8, 127, 115, 17, 198, 220, 220, 220, 1554, 796, 1976, 27498, 7, 52, 5317, 2624, 11, 45021, 2623, 11, 11629, 11, 299, 16663, 82, 28955, 198, 220, 220, 220, 2488, 16663, 82, 329, 474, 796, 352, 25, 13664, 7, 9895, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 796, 657, 25, 2676, 12, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 65, 3733, 1554, 58, 16, 10, 5317, 19510, 9895, 58, 73, 60, 9609, 357, 72, 9959, 604, 4008, 1222, 657, 87, 12927, 828, 1312, 10, 16, 11, 4704, 312, 3419, 60, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 16663, 82, 329, 474, 287, 352, 25, 2676, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 796, 362, 25, 77, 16663, 82, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 65, 3733, 1554, 58, 45299, 474, 11, 352, 60, 764, 47932, 1554, 58, 45299, 474, 11, 1312, 60, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1554, 58, 45299, 45299, 16, 60, 198, 437, 198, 198, 2, 3297, 340, 416, 1262, 3297, 11545, 0, 319, 262, 17562, 198, 8818, 3297, 62, 16, 69, 1603, 10034, 21857, 0, 7, 82, 35138, 3712, 38469, 90, 10100, 5512, 2376, 3712, 5317, 11, 23105, 3712, 5317, 11, 7904, 10100, 15546, 844, 42758, 2348, 70, 11, 267, 3712, 46, 8, 810, 440, 1279, 25, 4479, 90, 39746, 18743, 278, 11, 31849, 18743, 278, 92, 198, 220, 220, 220, 611, 2376, 18189, 23105, 26, 220, 1441, 264, 35138, 26, 220, 886, 198, 220, 220, 220, 1303, 262, 4129, 850, 18747, 284, 3297, 198, 220, 220, 220, 300, 796, 23105, 532, 2376, 1343, 352, 628, 220, 220, 220, 1303, 1064, 262, 5415, 4731, 4129, 220, 220, 220, 220, 198, 220, 220, 220, 10317, 796, 5415, 7, 7857, 1659, 11, 264, 35138, 8, 198, 220, 220, 220, 14267, 33661, 796, 10317, 198, 220, 220, 220, 1303, 50116, 82, 796, 17562, 12195, 82, 35138, 8, 198, 220, 220, 220, 611, 10317, 1875, 657, 198, 220, 220, 220, 220, 220, 220, 220, 981, 10317, 1875, 604, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14267, 33661, 796, 3509, 7, 15, 11, 14267, 33661, 532, 807, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10340, 2414, 796, 1976, 27498, 7, 52, 5317, 2414, 11, 300, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 267, 6624, 31849, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10340, 2414, 58, 5439, 25, 5303, 60, 764, 28, 764, 93, 2220, 62, 9895, 12195, 52, 5317, 2414, 11, 2488, 1177, 7, 82, 35138, 58, 5439, 25, 5303, 46570, 14267, 33661, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 311, 24707, 17822, 13, 30619, 11545, 0, 7, 9895, 2414, 11, 264, 35138, 11, 2376, 11, 23105, 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, 10340, 2414, 58, 5439, 25, 5303, 60, 764, 28, 3440, 62, 9895, 12195, 52, 5317, 2414, 11, 2488, 1177, 7, 82, 35138, 58, 5439, 25, 5303, 46570, 14267, 33661, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 311, 24707, 17822, 13, 30619, 11545, 0, 7, 9895, 2414, 11, 264, 35138, 11, 2376, 11, 23105, 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, 10317, 48185, 807, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 611, 10317, 1875, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14267, 33661, 796, 3509, 7, 15, 11, 14267, 33661, 532, 604, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10340, 2624, 796, 1976, 27498, 7, 52, 5317, 2624, 11, 300, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 267, 6624, 31849, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10340, 2624, 58, 5439, 25, 5303, 60, 764, 28, 764, 93, 2220, 62, 9895, 12195, 52, 5317, 2624, 11, 2488, 1177, 7, 82, 35138, 58, 5439, 25, 5303, 46570, 14267, 33661, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 311, 24707, 17822, 13, 30619, 11545, 0, 7, 9895, 2624, 11, 264, 35138, 11, 2376, 11, 23105, 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, 10340, 2624, 58, 5439, 25, 5303, 60, 764, 28, 3440, 62, 9895, 12195, 52, 5317, 2624, 11, 2488, 1177, 7, 82, 35138, 58, 5439, 25, 5303, 46570, 14267, 33661, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 311, 24707, 17822, 13, 30619, 11545, 0, 7, 9895, 2624, 11, 264, 35138, 11, 2376, 11, 23105, 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, 10317, 48185, 604, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1303, 21596, 62, 29536, 62, 1462, 62, 26801, 5420, 12195, 457, 3808, 532, 807, 8, 198, 220, 220, 220, 264, 35138, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 3297, 11545, 0, 7, 14259, 11, 6376, 8, 198, 198, 42758, 1111, 262, 4600, 14259, 63, 290, 302, 2875, 4600, 9630, 63, 379, 262, 976, 13, 770, 3578, 329, 5443, 3297, 16321, 198, 1640, 2511, 844, 3297, 13, 198, 37811, 198, 8818, 3297, 11545, 0, 7, 14259, 3712, 38469, 90, 51, 5512, 6376, 11, 2376, 3712, 5317, 796, 352, 11, 23105, 3712, 5317, 28, 13664, 7, 14259, 828, 33540, 10426, 62, 33489, 796, 1467, 11, 33540, 10426, 62, 31180, 42, 796, 657, 87, 12927, 8, 810, 309, 1279, 25, 14881, 15546, 844, 42758, 31511, 31431, 198, 220, 220, 220, 1303, 23412, 10627, 198, 220, 220, 220, 611, 2376, 18189, 23105, 26, 220, 1441, 357, 14259, 11, 6376, 1776, 220, 886, 628, 220, 220, 220, 267, 796, 19530, 628, 220, 220, 220, 1303, 44707, 198, 220, 220, 220, 340, 364, 796, 2906, 346, 7, 46541, 11, 39364, 7, 51, 27493, 23, 14, 49, 2885, 10426, 62, 33489, 8, 198, 220, 220, 220, 1303, 1271, 286, 38674, 287, 262, 14143, 2239, 198, 220, 220, 220, 299, 27041, 1039, 796, 362, 61, 49, 2885, 10426, 62, 33489, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 5590, 21857, 329, 1123, 5002, 11, 2511, 844, 198, 220, 220, 220, 9874, 796, 20398, 62, 10034, 7, 14259, 8, 628, 220, 220, 220, 1303, 9874, 796, 1976, 27498, 7, 52, 5317, 2624, 11, 299, 27041, 1039, 11, 340, 364, 8, 198, 220, 220, 220, 1303, 611, 2376, 1875, 352, 26, 220, 9874, 58, 16, 11, 47715, 796, 2376, 12, 16, 26, 220, 886, 628, 220, 220, 220, 1303, 33947, 0, 198, 220, 220, 220, 43997, 796, 657, 198, 220, 220, 220, 18896, 796, 23105, 12, 5439, 10, 16, 628, 220, 220, 220, 6376, 16, 796, 2092, 7, 9630, 8, 198, 220, 220, 220, 40379, 28, 38610, 7, 14259, 8, 198, 220, 220, 220, 329, 474, 796, 352, 25, 270, 364, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 791, 2487, 717, 1366, 24415, 11, 2198, 329, 25419, 378, 1339, 198, 220, 220, 220, 220, 220, 220, 220, 410, 796, 20398, 62, 76, 5912, 7, 78, 11, 3691, 58, 5303, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 87, 796, 2558, 19510, 85, 9609, 357, 73, 12, 16, 27493, 49, 2885, 10426, 62, 33489, 8, 1222, 33540, 10426, 62, 31180, 42, 8, 1343, 352, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 389, 477, 3815, 262, 976, 379, 428, 2511, 844, 30, 198, 220, 220, 220, 220, 220, 220, 220, 611, 9874, 58, 312, 87, 11, 73, 60, 6624, 18896, 26, 220, 2555, 26, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 269, 8800, 796, 269, 5700, 388, 7, 8800, 58, 45299, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 8404, 284, 4620, 262, 2029, 530, 12, 24683, 351, 517, 9332, 198, 220, 220, 220, 220, 220, 220, 220, 269, 8800, 796, 1976, 27498, 7, 52, 5317, 2624, 11, 299, 27041, 1039, 8, 198, 220, 220, 220, 220, 220, 220, 220, 269, 8800, 58, 16, 60, 796, 9874, 58, 16, 11, 73, 60, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 362, 25, 77, 27041, 1039, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 8800, 58, 72, 60, 796, 269, 8800, 58, 72, 12, 16, 60, 1343, 9874, 58, 72, 11, 73, 60, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 269, 72, 796, 269, 8800, 58, 312, 87, 60, 198, 220, 220, 220, 220, 220, 220, 220, 40379, 58, 979, 60, 796, 3691, 58, 5303, 60, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 16, 58, 979, 60, 796, 6376, 58, 5303, 60, 198, 220, 220, 220, 220, 220, 220, 220, 269, 8800, 58, 312, 87, 60, 48185, 352, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 32585, 262, 9052, 986, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 65, 3733, 329, 1312, 287, 23105, 12, 16, 21912, 16, 25, 5439, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 796, 20398, 62, 76, 5912, 7, 78, 11, 3691, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 87, 796, 2558, 19510, 85, 9609, 357, 73, 12, 16, 27493, 49, 2885, 10426, 62, 33489, 8, 1222, 33540, 10426, 62, 31180, 42, 8, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 72, 796, 269, 8800, 58, 312, 87, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40379, 58, 979, 60, 796, 3691, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6376, 16, 58, 979, 60, 796, 6376, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 8800, 58, 312, 87, 60, 48185, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 3691, 11, 912, 796, 40379, 11, 14259, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 11, 6376, 16, 796, 6376, 16, 11, 6376, 198, 220, 220, 220, 220, 220, 220, 220, 43997, 15853, 352, 198, 220, 220, 220, 886, 628, 220, 220, 220, 611, 318, 5088, 7, 2032, 1686, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3691, 11, 912, 796, 40379, 11, 14259, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 11, 6376, 16, 796, 6376, 16, 11, 6376, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 796, 2376, 25, 5303, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 65, 3733, 3691, 58, 72, 60, 796, 40379, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 65, 3733, 6376, 58, 72, 60, 796, 6376, 16, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 357, 14259, 11, 6376, 8, 198, 437, 628, 198, 3500, 311, 24707, 17822, 198, 3500, 7308, 13, 14402, 198, 3500, 311, 24707, 2348, 7727, 907, 198, 11748, 311, 24707, 2348, 7727, 907, 25, 3440, 62, 9895, 198, 198, 2, 3551, 534, 898, 5254, 994, 198, 2, 2488, 9288, 352, 6624, 362, 198, 45, 796, 1802, 62, 830, 62, 830, 198, 42, 796, 1802, 198, 82, 12629, 10223, 796, 366, 312, 1911, 9, 12501, 12195, 16, 25, 45, 127, 115, 42, 11, 940, 1776, 198, 82, 25192, 7, 16, 8, 198, 82, 35138, 796, 43720, 7, 82, 12629, 10223, 11, 399, 1776, 198, 198, 3500, 25187, 4102, 33637, 628, 198, 198, 2, 4045, 29407, 318, 5443, 1165, 198, 8818, 308, 5303, 7, 82, 35138, 8, 198, 220, 220, 220, 50115, 35138, 796, 4866, 7, 82, 35138, 8, 198, 220, 220, 220, 308, 66, 3419, 198, 220, 220, 220, 2488, 2435, 257, 796, 2488, 417, 28361, 3297, 62, 16, 69, 1603, 10034, 21857, 0, 7, 6359, 35138, 11, 352, 11, 4129, 7, 6359, 35138, 828, 10903, 15546, 844, 42758, 11, 7308, 13, 39746, 8, 628, 220, 220, 220, 50115, 35138, 796, 4866, 7, 82, 35138, 8, 198, 220, 220, 220, 308, 66, 3419, 198, 220, 220, 220, 2488, 2435, 275, 796, 2488, 417, 28361, 311, 24707, 2348, 7727, 907, 13, 30619, 0, 7, 6359, 35138, 11, 352, 11, 4129, 7, 6359, 35138, 828, 10903, 15546, 844, 42758, 11, 7308, 13, 39746, 8, 198, 220, 220, 220, 257, 11, 65, 198, 437, 198, 31, 2435, 685, 456, 72, 7, 82, 35138, 8, 329, 1312, 28, 44754, 26933, 19, 4357, 12076, 28, 20, 15437 ]
2.029412
2,380
using ModelingToolkit, Test @testset "Parsing Test" begin include("variable_parsing.jl") end @testset "Differentiation Test" begin include("derivatives.jl") end @testset "Simplify Test" begin include("simplify.jl") end @testset "Direct Usage Test" begin include("direct.jl") end @testset "System Construction Test" begin include("system_construction.jl") end @testset "Distributed Test" begin include("distributed.jl") end
[ 3500, 9104, 278, 25391, 15813, 11, 6208, 198, 198, 31, 9288, 2617, 366, 47, 945, 278, 6208, 1, 2221, 2291, 7203, 45286, 62, 79, 945, 278, 13, 20362, 4943, 886, 198, 31, 9288, 2617, 366, 40341, 3920, 6208, 1, 2221, 2291, 7203, 1082, 452, 2929, 13, 20362, 4943, 886, 198, 31, 9288, 2617, 366, 8890, 489, 1958, 6208, 1, 2221, 2291, 7203, 14323, 489, 1958, 13, 20362, 4943, 886, 198, 31, 9288, 2617, 366, 13470, 29566, 6208, 1, 2221, 2291, 7203, 12942, 13, 20362, 4943, 886, 198, 31, 9288, 2617, 366, 11964, 20395, 6208, 1, 2221, 2291, 7203, 10057, 62, 9979, 2762, 13, 20362, 4943, 886, 198, 31, 9288, 2617, 366, 20344, 6169, 6208, 1, 2221, 2291, 7203, 17080, 6169, 13, 20362, 4943, 886, 198 ]
3.392
125
######### #File: c:\Users\digan\Dropbox\Dynamic_Networks\repos\ScoreDrivenExponentialRandomGraphs\src\ScoreDrivenERGM.jl\src\test\test_new_dyn_net_model copy.jl #Created Date: Monday May 10th 2021 #Author: Domenico Di Gangi, <digangidomenico@gmail.com> #----- #Last Modified: Friday June 4th 2021 12:56:09 am #Modified By: Domenico Di Gangi #----- #Description: Test SDERGM_pml for different combinations of statistics #----- ######## using Test using ScoreDrivenERGM using StatsBase using Distributed import ScoreDrivenERGM:StaticNets,DynNets, Utilities, ErgmRcall # sample dgp N = 50 T = 300 ergmTermsString = "edges + mutual + gwesp(decay = 0.25, fixed = TRUE, cutoff=10)" model = DynNets.SdErgmPml(ergmTermsString, true) nErgmPar = model.nErgmPar @test nErgmPar == 3 dgpVals0 = DynNets.static_estimate(model, Int8.(rand(Bool, N, N))) @test all(isfinite.(dgpVals0)) @testset " Mappings of static parameters beween restricted and unrestricted spaces" begin all_perm(xs, n) = vec(map(collect, Iterators.product(ntuple(_ -> xs, n)...))) listIndTvPar = all_perm([true, false], nErgmPar) listIndTvPar = listIndTvPar[.!(all.( [.!indTvPar for indTvPar in listIndTvPar]))] for indTvPar in listIndTvPar vUnPar, _ = DynNets.starting_point_optim(model, dgpVals0) @test all(isfinite.(vUnPar)) vResPar = DynNets.restrict_all_par(model, vUnPar) @test all(isfinite.(vResPar)) @test all(isapprox.(DynNets.unrestrict_all_par(model, vResPar), vUnPar, atol = 1e-8)) @test all(isapprox.(DynNets.restrict_all_par(model, vUnPar), vResPar, atol = 1e-8)) for i=1:10 vResParRand = rand(length(vResPar)) vUnParRand = DynNets.unrestrict_all_par(model, vResParRand) @test all(isfinite.(vUnParRand)) @test all(isapprox.(DynNets.restrict_all_par(model, vUnParRand), vResParRand, atol = 1e-8)) end end end @testset " Sampling Change stats and estimates " begin T =100 dgpParT = hcat(dgpVals0.*ones(nErgmPar, round(Int,T/2)),2 *dgpVals0.* ones(nErgmPar, round(Int, T/2))) # test reasonable sampling A_T = DynNets.sample_ergm_sequence(model, N, dgpParT, 1) eps = 0.01 @test eps < mean(A_T) < (1-eps) # density @test !any(isnan.(A_T)) @test all(isfinite.(A_T)) obsT = [DynNets.stats_from_mat(model, A_T[:,:,t]) for t in 1:T ] @test all([all(isfinite.(obs)) for obs in obsT]) end ENV["JULIA_DEBUG"] = nothing # integrated version ergmTermsString = "edges + mutual" model = DynNets.SdErgmPml(ergmTermsString, true) nErgmPar = model.nErgmPar model.options["integrated"] = false model.options["initMeth"] ="estimateFirstObs"# "uncMean"# DynNets.get_option(model, "initMeth") dgpVals0 = DynNets.static_estimate(model, Int8.(rand(Bool, N, N))) dgpParT = hcat(dgpVals0.*ones(nErgmPar, round(Int,T/2)),2 *dgpVals0.* ones(nErgmPar, round(Int, T/2))) # test reasonable sampling A_T = DynNets.sample_ergm_sequence(model, N, dgpParT, 1) obsT = [DynNets.stats_from_mat(model, A_T[:,:,t]) for t in 1:T ] estSdResPar, conv_flag, UM_mple, ftot_0 = DynNets.estimate(model, N, obsT; indTvPar=model.indTvPar, show_trace = true ) vEstSdResParAll = DynNets.array_2_vec_all_par(model, estSdResPar, model.indTvPar) vEstSdResPar, vConstPar = DynNets.divide_SD_par_from_const(model, vEstSdResParAll) # vEstSdResPar[3:3:end] .= 0.001 fVecT_filt , target_fun_val_T, sVecT_filt = DynNets.score_driven_filter(model, N, obsT, vEstSdResPar, model.indTvPar;ftot_0 = ftot_0, vConstPar=vConstPar) DynNets.plot_filtered(model, N, fVecT_filt; parDgpTIn=dgpParT) ss_filt = DynNets.estimate_single_snap_sequence(model, obsT) DynNets.plot_filtered(model, N, ss_filt; parDgpTIn=dgpParT) DynNets.seq_loglike_sd_filter(model, N, obsT, vecUnPar, ftot_0Fun::Function) indTvPar = model.indTvPar vEstSdResParAll = DynNets.array_2_vec_all_par(model, estSdResPar, indTvPar) vEstSdResPar, vConstPar = DynNets.divide_SD_par_from_const(model, vEstSdResParAll) fVecT_filt , target_fun_val_T, sVecT_filt = DynNets.score_driven_filter(model, N, obsT, vEstSdResPar, indTvPar;ftot_0 = ftot_0, vConstPar=vConstPar) using PyPlot # res_est = DynNets.estimate_and_filter(model, N, obsT; show_trace = true) fig, ax = DynNets.plot_filtered(model, N, fVecT_filt) est_SS = DynNets.estimate_single_snap_sequence(model, obsT) fig, ax = DynNets.plot_filtered(model, N, est_SS, ax=ax, lineType = ".", lineColor="r") # correctly specified filter # estimate
[ 7804, 2, 198, 2, 8979, 25, 269, 7479, 14490, 59, 67, 5516, 59, 26932, 3524, 59, 44090, 62, 7934, 5225, 59, 260, 1930, 59, 26595, 20564, 574, 16870, 35470, 29531, 37065, 82, 59, 10677, 59, 26595, 20564, 574, 1137, 15548, 13, 20362, 59, 10677, 59, 9288, 59, 9288, 62, 3605, 62, 67, 2047, 62, 3262, 62, 19849, 4866, 13, 20362, 198, 2, 41972, 7536, 25, 3321, 1737, 838, 400, 33448, 198, 2, 13838, 25, 360, 3674, 3713, 6031, 19228, 72, 11, 220, 1279, 12894, 648, 312, 3674, 3713, 31, 14816, 13, 785, 29, 198, 2, 30934, 198, 2, 5956, 40499, 25, 3217, 2795, 604, 400, 33448, 1105, 25, 3980, 25, 2931, 716, 198, 2, 5841, 1431, 2750, 25, 220, 360, 3674, 3713, 6031, 19228, 72, 198, 2, 30934, 198, 2, 11828, 25, 6208, 9834, 1137, 15548, 62, 79, 4029, 329, 1180, 17790, 286, 7869, 198, 2, 30934, 198, 7804, 628, 198, 198, 3500, 6208, 198, 3500, 15178, 20564, 574, 1137, 15548, 198, 3500, 20595, 14881, 198, 3500, 4307, 6169, 628, 198, 11748, 15178, 20564, 574, 1137, 15548, 25, 45442, 45, 1039, 11, 35, 2047, 45, 1039, 11, 41086, 11, 5256, 39870, 49, 13345, 628, 198, 2, 6291, 288, 31197, 198, 45, 796, 2026, 198, 51, 796, 5867, 198, 198, 6422, 76, 15156, 907, 10100, 796, 366, 276, 3212, 1343, 13584, 1343, 308, 86, 9774, 7, 12501, 323, 796, 657, 13, 1495, 11, 5969, 796, 26751, 11, 45616, 28, 940, 16725, 198, 19849, 796, 39530, 45, 1039, 13, 50, 67, 9139, 39870, 47, 4029, 7, 6422, 76, 15156, 907, 10100, 11, 2081, 8, 198, 77, 9139, 39870, 10044, 796, 2746, 13, 77, 9139, 39870, 10044, 198, 31, 9288, 299, 9139, 39870, 10044, 6624, 513, 198, 67, 31197, 53, 874, 15, 796, 39530, 45, 1039, 13, 12708, 62, 395, 1920, 7, 19849, 11, 2558, 23, 12195, 25192, 7, 33, 970, 11, 399, 11, 399, 22305, 220, 220, 220, 220, 198, 31, 9288, 477, 7, 4468, 9504, 12195, 67, 31197, 53, 874, 15, 4008, 628, 198, 31, 9288, 2617, 366, 337, 39242, 286, 9037, 10007, 307, 975, 10770, 290, 36263, 9029, 1, 2221, 198, 220, 220, 220, 477, 62, 16321, 7, 34223, 11, 299, 8, 796, 43030, 7, 8899, 7, 33327, 11, 40806, 2024, 13, 11167, 7, 429, 29291, 28264, 4613, 2124, 82, 11, 299, 26513, 22305, 628, 220, 220, 220, 1351, 5497, 51, 85, 10044, 796, 220, 477, 62, 16321, 26933, 7942, 11, 3991, 4357, 299, 9139, 39870, 10044, 8, 198, 220, 220, 220, 1351, 5497, 51, 85, 10044, 796, 1351, 5497, 51, 85, 10044, 58, 13, 0, 7, 439, 12195, 685, 13, 0, 521, 51, 85, 10044, 329, 773, 51, 85, 10044, 287, 1351, 5497, 51, 85, 10044, 60, 4008, 60, 628, 198, 220, 220, 220, 329, 773, 51, 85, 10044, 287, 1351, 5497, 51, 85, 10044, 220, 628, 220, 220, 220, 220, 220, 220, 220, 410, 3118, 10044, 11, 4808, 796, 39530, 45, 1039, 13, 38690, 62, 4122, 62, 40085, 7, 19849, 11, 288, 31197, 53, 874, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 477, 7, 4468, 9504, 12195, 85, 3118, 10044, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 410, 4965, 10044, 796, 220, 39530, 45, 1039, 13, 2118, 2012, 62, 439, 62, 1845, 7, 19849, 11, 410, 3118, 10044, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 477, 7, 4468, 9504, 12195, 85, 4965, 10044, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 477, 7, 271, 1324, 13907, 12195, 35, 2047, 45, 1039, 13, 403, 2118, 2012, 62, 439, 62, 1845, 7, 19849, 11, 410, 4965, 10044, 828, 410, 3118, 10044, 11, 379, 349, 796, 352, 68, 12, 23, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 477, 7, 271, 1324, 13907, 12195, 35, 2047, 45, 1039, 13, 2118, 2012, 62, 439, 62, 1845, 7, 19849, 11, 410, 3118, 10044, 828, 410, 4965, 10044, 11, 379, 349, 796, 352, 68, 12, 23, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 28, 16, 25, 940, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 4965, 10044, 38918, 796, 43720, 7, 13664, 7, 85, 4965, 10044, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 3118, 10044, 38918, 796, 220, 39530, 45, 1039, 13, 403, 2118, 2012, 62, 439, 62, 1845, 7, 19849, 11, 410, 4965, 10044, 38918, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 477, 7, 4468, 9504, 12195, 85, 3118, 10044, 38918, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 477, 7, 271, 1324, 13907, 12195, 35, 2047, 45, 1039, 13, 2118, 2012, 62, 439, 62, 1845, 7, 19849, 11, 410, 3118, 10044, 38918, 828, 410, 4965, 10044, 38918, 11, 379, 349, 796, 352, 68, 12, 23, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 886, 198, 198, 437, 198, 198, 31, 9288, 2617, 366, 3409, 11347, 9794, 9756, 290, 7746, 366, 2221, 198, 220, 220, 220, 309, 796, 3064, 198, 220, 220, 220, 288, 31197, 10044, 51, 796, 289, 9246, 7, 67, 31197, 53, 874, 15, 15885, 1952, 7, 77, 9139, 39870, 10044, 11, 2835, 7, 5317, 11, 51, 14, 17, 36911, 17, 1635, 67, 31197, 53, 874, 15, 15885, 3392, 7, 77, 9139, 39870, 10044, 11, 2835, 7, 5317, 11, 309, 14, 17, 22305, 198, 220, 220, 220, 1303, 1332, 6397, 19232, 198, 220, 220, 220, 317, 62, 51, 796, 39530, 45, 1039, 13, 39873, 62, 6422, 76, 62, 43167, 7, 19849, 11, 399, 11, 288, 31197, 10044, 51, 11, 352, 8, 220, 198, 220, 220, 220, 304, 862, 796, 657, 13, 486, 198, 220, 220, 220, 2488, 9288, 220, 304, 862, 1279, 1612, 7, 32, 62, 51, 8, 1279, 357, 16, 12, 25386, 8, 220, 1303, 12109, 198, 220, 220, 220, 2488, 9288, 5145, 1092, 7, 271, 12647, 12195, 32, 62, 51, 4008, 220, 198, 220, 220, 220, 2488, 9288, 477, 7, 4468, 9504, 12195, 32, 62, 51, 4008, 220, 628, 220, 220, 220, 10201, 51, 796, 685, 35, 2047, 45, 1039, 13, 34242, 62, 6738, 62, 6759, 7, 19849, 11, 317, 62, 51, 58, 45299, 45299, 83, 12962, 329, 256, 287, 352, 25, 51, 2361, 220, 198, 220, 220, 220, 2488, 9288, 477, 26933, 439, 7, 4468, 9504, 12195, 8158, 4008, 329, 10201, 287, 10201, 51, 12962, 198, 198, 437, 198, 198, 1677, 53, 14692, 41, 6239, 3539, 62, 30531, 8973, 796, 2147, 198, 198, 2, 11521, 2196, 198, 6422, 76, 15156, 907, 10100, 796, 366, 276, 3212, 1343, 13584, 1, 198, 19849, 796, 39530, 45, 1039, 13, 50, 67, 9139, 39870, 47, 4029, 7, 6422, 76, 15156, 907, 10100, 11, 2081, 8, 198, 77, 9139, 39870, 10044, 796, 2746, 13, 77, 9139, 39870, 10044, 198, 19849, 13, 25811, 14692, 18908, 4111, 8973, 796, 3991, 198, 19849, 13, 25811, 14692, 15003, 44, 2788, 8973, 796, 1, 395, 1920, 5962, 31310, 1, 2, 366, 19524, 5308, 272, 1, 2, 220, 198, 198, 35, 2047, 45, 1039, 13, 1136, 62, 18076, 7, 19849, 11, 366, 15003, 44, 2788, 4943, 198, 198, 67, 31197, 53, 874, 15, 796, 39530, 45, 1039, 13, 12708, 62, 395, 1920, 7, 19849, 11, 2558, 23, 12195, 25192, 7, 33, 970, 11, 399, 11, 399, 22305, 220, 220, 220, 220, 628, 198, 67, 31197, 10044, 51, 796, 289, 9246, 7, 67, 31197, 53, 874, 15, 15885, 1952, 7, 77, 9139, 39870, 10044, 11, 2835, 7, 5317, 11, 51, 14, 17, 36911, 17, 1635, 67, 31197, 53, 874, 15, 15885, 3392, 7, 77, 9139, 39870, 10044, 11, 2835, 7, 5317, 11, 309, 14, 17, 22305, 198, 2, 1332, 6397, 19232, 198, 32, 62, 51, 796, 39530, 45, 1039, 13, 39873, 62, 6422, 76, 62, 43167, 7, 19849, 11, 399, 11, 288, 31197, 10044, 51, 11, 352, 8, 220, 198, 8158, 51, 796, 685, 35, 2047, 45, 1039, 13, 34242, 62, 6738, 62, 6759, 7, 19849, 11, 317, 62, 51, 58, 45299, 45299, 83, 12962, 329, 256, 287, 352, 25, 51, 2361, 220, 198, 198, 395, 50, 67, 4965, 10044, 11, 3063, 62, 32109, 11, 44352, 62, 76, 1154, 11, 10117, 313, 62, 15, 796, 39530, 45, 1039, 13, 395, 1920, 7, 19849, 11, 399, 11, 10201, 51, 26, 773, 51, 85, 10044, 28, 19849, 13, 521, 51, 85, 10044, 11, 905, 62, 40546, 796, 2081, 1267, 198, 198, 85, 22362, 50, 67, 4965, 10044, 3237, 796, 39530, 45, 1039, 13, 18747, 62, 17, 62, 35138, 62, 439, 62, 1845, 7, 19849, 11, 1556, 50, 67, 4965, 10044, 11, 2746, 13, 521, 51, 85, 10044, 8, 198, 198, 85, 22362, 50, 67, 4965, 10044, 11, 410, 34184, 10044, 796, 39530, 45, 1039, 13, 7146, 485, 62, 10305, 62, 1845, 62, 6738, 62, 9979, 7, 19849, 11, 410, 22362, 50, 67, 4965, 10044, 3237, 8, 198, 198, 2, 410, 22362, 50, 67, 4965, 10044, 58, 18, 25, 18, 25, 437, 60, 764, 28, 657, 13, 8298, 198, 69, 53, 721, 51, 62, 69, 2326, 837, 2496, 62, 12543, 62, 2100, 62, 51, 11, 264, 53, 721, 51, 62, 69, 2326, 796, 39530, 45, 1039, 13, 26675, 62, 15808, 62, 24455, 7, 19849, 11, 399, 11, 10201, 51, 11, 220, 410, 22362, 50, 67, 4965, 10044, 11, 2746, 13, 521, 51, 85, 10044, 26, 701, 313, 62, 15, 796, 10117, 313, 62, 15, 11, 410, 34184, 10044, 28, 85, 34184, 10044, 8, 198, 198, 35, 2047, 45, 1039, 13, 29487, 62, 10379, 4400, 7, 19849, 11, 399, 11, 277, 53, 721, 51, 62, 69, 2326, 26, 1582, 35, 31197, 51, 818, 28, 67, 31197, 10044, 51, 8, 198, 198, 824, 62, 69, 2326, 796, 39530, 45, 1039, 13, 395, 1920, 62, 29762, 62, 45380, 62, 43167, 7, 19849, 11, 10201, 51, 8, 198, 35, 2047, 45, 1039, 13, 29487, 62, 10379, 4400, 7, 19849, 11, 399, 11, 37786, 62, 69, 2326, 26, 1582, 35, 31197, 51, 818, 28, 67, 31197, 10044, 51, 8, 198, 198, 35, 2047, 45, 1039, 13, 41068, 62, 6404, 2339, 62, 21282, 62, 24455, 7, 19849, 11, 399, 11, 10201, 51, 11, 220, 43030, 3118, 10044, 11, 10117, 313, 62, 15, 24629, 3712, 22203, 8, 198, 198, 521, 51, 85, 10044, 796, 2746, 13, 521, 51, 85, 10044, 198, 85, 22362, 50, 67, 4965, 10044, 3237, 796, 39530, 45, 1039, 13, 18747, 62, 17, 62, 35138, 62, 439, 62, 1845, 7, 19849, 11, 1556, 50, 67, 4965, 10044, 11, 773, 51, 85, 10044, 8, 198, 198, 85, 22362, 50, 67, 4965, 10044, 11, 410, 34184, 10044, 796, 39530, 45, 1039, 13, 7146, 485, 62, 10305, 62, 1845, 62, 6738, 62, 9979, 7, 19849, 11, 410, 22362, 50, 67, 4965, 10044, 3237, 8, 198, 198, 69, 53, 721, 51, 62, 69, 2326, 837, 2496, 62, 12543, 62, 2100, 62, 51, 11, 264, 53, 721, 51, 62, 69, 2326, 796, 39530, 45, 1039, 13, 26675, 62, 15808, 62, 24455, 7, 19849, 11, 399, 11, 10201, 51, 11, 220, 410, 22362, 50, 67, 4965, 10044, 11, 773, 51, 85, 10044, 26, 701, 313, 62, 15, 796, 10117, 313, 62, 15, 11, 410, 34184, 10044, 28, 85, 34184, 10044, 8, 628, 198, 3500, 9485, 43328, 198, 198, 2, 581, 62, 395, 796, 39530, 45, 1039, 13, 395, 1920, 62, 392, 62, 24455, 7, 19849, 11, 399, 11, 10201, 51, 26, 905, 62, 40546, 796, 2081, 8, 198, 5647, 11, 7877, 796, 39530, 45, 1039, 13, 29487, 62, 10379, 4400, 7, 19849, 11, 399, 11, 277, 53, 721, 51, 62, 69, 2326, 8, 628, 198, 395, 62, 5432, 796, 39530, 45, 1039, 13, 395, 1920, 62, 29762, 62, 45380, 62, 43167, 7, 19849, 11, 10201, 51, 8, 198, 5647, 11, 7877, 796, 39530, 45, 1039, 13, 29487, 62, 10379, 4400, 7, 19849, 11, 399, 11, 1556, 62, 5432, 11, 7877, 28, 897, 11, 1627, 6030, 796, 366, 33283, 1627, 10258, 2625, 81, 4943, 628, 628, 198, 198, 2, 9380, 7368, 8106, 198, 198, 2, 8636, 628, 628, 628, 198 ]
2.255
2,000
module PCG include("types.jl") import .Types include("arrays_caches.jl") import .ArraysCaches include("geometry.jl") import .Geometry include("topologies/Topologies.jl") import .Topologies include("storages/Storages.jl") import .Storages include("universes.jl") import .Universes include("neighborhoods.jl") import .Neighborhoods include("operations.jl") import .Operations include("recorders/Recorders.jl") import .Recorders include("spaces.jl") import .Spaces end
[ 21412, 4217, 38, 198, 198, 17256, 7203, 19199, 13, 20362, 4943, 198, 11748, 764, 31431, 198, 198, 17256, 7203, 3258, 592, 62, 66, 3694, 13, 20362, 4943, 198, 11748, 764, 3163, 20477, 34, 3694, 198, 198, 17256, 7203, 469, 15748, 13, 20362, 4943, 198, 11748, 764, 10082, 15748, 198, 198, 17256, 7203, 4852, 5823, 14, 9126, 5823, 13, 20362, 4943, 198, 11748, 764, 9126, 5823, 198, 198, 17256, 7203, 301, 273, 1095, 14, 1273, 273, 1095, 13, 20362, 4943, 198, 11748, 764, 1273, 273, 1095, 198, 198, 17256, 7203, 403, 1191, 274, 13, 20362, 4943, 198, 11748, 764, 3118, 1191, 274, 198, 198, 17256, 7203, 710, 394, 2865, 2894, 82, 13, 20362, 4943, 198, 11748, 764, 46445, 2865, 2894, 82, 198, 198, 17256, 7203, 3575, 602, 13, 20362, 4943, 198, 11748, 764, 18843, 602, 198, 198, 17256, 7203, 8344, 6361, 14, 6690, 6361, 13, 20362, 4943, 198, 11748, 764, 6690, 6361, 198, 198, 17256, 7203, 2777, 2114, 13, 20362, 4943, 198, 11748, 764, 4561, 2114, 198, 198, 437, 198 ]
2.822485
169
using GeometricBase.Config using GeometricBase.Utils using GeometricIntegrators.Integrators using GeometricIntegrators.Integrators.VPRK using GeometricIntegrators.Tableaus using GeometricProblems.LotkaVolterra2d using SimpleSolvers using Test SimpleSolvers.set_config(:nls_atol, 8eps()) SimpleSolvers.set_config(:nls_rtol, 2eps()) const Δt = 0.01 const nt = 10 const q₀ = [1.0, 1.0] const parameters = (a₁=1.0, a₂=1.0, b₁=-1.0, b₂=-2.0) ode = lotka_volterra_2d_ode(q₀; params=parameters) iode = lotka_volterra_2d_iode(q₀; params=parameters) lode = lotka_volterra_2d_lode(q₀; params=parameters) ldae = lotka_volterra_2d_ldae(q₀; params=parameters) int = IntegratorFIRK(ode, TableauGauss(8), Δt) sol = integrate(ode, int, nt) refx = sol.q[end] @testset "$(rpad("VPRK integrators",80))" begin sol = integrate(iode, TableauVPRK(:pglrk, 2, TableauGauss(1), -1), Δt, nt) @test relative_maximum_error(sol.q, refx) < 2E-6 sol = integrate(iode, TableauVPRK(:pglrk, 4, TableauGauss(2), +1), Δt, nt) @test relative_maximum_error(sol.q, refx) < 8E-7 sol = integrate(iode, TableauVPRK(:pglrk, 6, TableauGauss(3), -1), Δt, nt) @test relative_maximum_error(sol.q, refx) < 4E-12 sol = integrate(iode, TableauVPLobattoIIIA(2), Δt, nt) @test relative_maximum_error(sol.q, refx) < 4E-6 sol = integrate(iode, TableauVPLobattoIIIA(3), Δt, nt) @test relative_maximum_error(sol.q, refx) < 8E-7 sol = integrate(iode, TableauVPLobattoIIIA(4), Δt, nt) @test relative_maximum_error(sol.q, refx) < 3E-11 sol = integrate(iode, TableauVPLobattoIIIB(2), Δt, nt) @test relative_maximum_error(sol.q, refx) < 2E-6 sol = integrate(iode, TableauVPLobattoIIIB(3), Δt, nt) @test relative_maximum_error(sol.q, refx) < 8E-7 sol = integrate(iode, TableauVPLobattoIIIB(4), Δt, nt) @test relative_maximum_error(sol.q, refx) < 2E-11 end @testset "$(rpad("VPRK integrators with standard projection",80))" begin int = IntegratorVPRKpStandard(iode, TableauVPGLRK(1), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-6 int = IntegratorVPRKpStandard(iode, TableauVPGLRK(2), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-11 int = IntegratorVPRKpStandard(iode, TableauVPGLRK(3), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-15 end @testset "$(rpad("VPRK integrators with symplectic projection",80))" begin int = IntegratorVPRKpSymplectic(iode, TableauVPGLRK(1), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 4E-6 int = IntegratorVPRKpSymplectic(iode, TableauVPGLRK(2), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-11 int = IntegratorVPRKpSymplectic(iode, TableauVPGLRK(3), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 8E-12 end @testset "$(rpad("VPRK integrators with symmetric projection",80))" begin int = IntegratorVPRKpSymmetric(iode, TableauVPGLRK(1), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-6 int = IntegratorVPRKpSymmetric(iode, TableauVPGLRK(2), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-11 int = IntegratorVPRKpSymmetric(iode, TableauVPGLRK(3), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 4E-16 end @testset "$(rpad("VPRK integrators with midpoint projection",80))" begin int = IntegratorVPRKpMidpoint(iode, TableauVPGLRK(1), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-6 int = IntegratorVPRKpMidpoint(iode, TableauVPGLRK(2), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-11 int = IntegratorVPRKpMidpoint(iode, TableauVPGLRK(3), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 4E-16 end @testset "$(rpad("VPRK integrators with internal projection",80))" begin int = IntegratorVPRKpInternal(iode, TableauVPGLRK(1), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 2E-6 int = IntegratorVPRKpInternal(iode, TableauVPGLRK(2), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-11 int = IntegratorVPRKpInternal(iode, TableauVPGLRK(3), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 4E-12 int = IntegratorVPRKpInternal(iode, TableauVPGLRK(4), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 8E-16 end @testset "$(rpad("VPRK integrators with projection on secondary constraint",80))" begin # TODO: reactivate # int = IntegratorVPRKpSecondary(ldae, TableauVPGLRK(1), Δt) # sol = integrate(ldae, int, nt) # @test relative_maximum_error(sol.q, refx) < 2E-6 # int = IntegratorVPRKpSecondary(ldae, TableauVPGLRK(2), Δt) # sol = integrate(ldae, int, nt) # @test relative_maximum_error(sol.q, refx) < 8E-7 # int = IntegratorVPRKpSecondary(ldae, TableauVPGLRK(3), Δt) # sol = integrate(ldae, int, nt) # @test relative_maximum_error(sol.q, refx) < 4E-12 end @testset "$(rpad("VPRK integrators with variational projection",80))" begin intV1 = IntegratorVPRKpVariational(iode, TableauVPGLRK(1), Δt) solV1 = integrate(iode, intV1, nt) @test relative_maximum_error(solV1.q, refx) < 8E-7 intV2 = IntegratorVPRKpVariational(iode, TableauVPGLRK(2), Δt) solV2 = integrate(iode, intV2, nt) @test relative_maximum_error(solV2.q, refx) < 8E-8 intV3 = IntegratorVPRKpVariational(iode, TableauVPGLRK(3), Δt) solV3 = integrate(iode, intV3, nt) @test relative_maximum_error(solV3.q, refx) < 1E-11 intQ1 = IntegratorVPRKpVariationalQ(iode, TableauVPGLRK(1), Δt) solQ1 = integrate(iode, intQ1, nt) @test relative_maximum_error(solQ1.q, refx) < 4E-5 intQ2 = IntegratorVPRKpVariationalQ(iode, TableauVPGLRK(2), Δt) solQ2 = integrate(iode, intQ2, nt) @test relative_maximum_error(solQ2.q, refx) < 2E-4 intQ3 = IntegratorVPRKpVariationalQ(iode, TableauVPGLRK(3), Δt) solQ3 = integrate(iode, intQ3, nt) @test relative_maximum_error(solQ3.q, refx) < 1E-8 intP1 = IntegratorVPRKpVariationalP(iode, TableauVPGLRK(1), Δt) solP1 = integrate(iode, intP1, nt) @test relative_maximum_error(solP1.q, refx) < 8E-7 intP2 = IntegratorVPRKpVariationalP(iode, TableauVPGLRK(2), Δt) solP2 = integrate(iode, intP2, nt) @test relative_maximum_error(solP2.q, refx) < 8E-8 intP3 = IntegratorVPRKpVariationalP(iode, TableauVPGLRK(3), Δt) solP3 = integrate(iode, intP3, nt) @test relative_maximum_error(solP3.q, refx) < 1E-11 @test relative_maximum_error(solV1.q, solP1.q[end]) == 0 @test relative_maximum_error(solV2.q, solP2.q[end]) == 0 @test relative_maximum_error(solV3.q, solP3.q[end]) == 0 end @testset "$(rpad("VPRK integrators with projection on Runge-Kutta tableau",80))" begin int = IntegratorVPRKpTableau(iode, CoefficientsPGLRK(5), Δt*5) sol = integrate(iode, int, div(nt,5)) @test relative_maximum_error(sol.q, refx) < 8E-12 int = IntegratorVPRKpTableau(iode, CoefficientsPGLRK(6), Δt*5) sol = integrate(iode, int, div(nt,5)) @test relative_maximum_error(sol.q, refx) < 4E-14 end @testset "$(rpad("Degenerate symplectic partitioned Runge-Kutta methods",80))" begin int = IntegratorVPRKdegenerate(iode, TableauVPGLRK(1), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 2E-5 int = IntegratorVPRKdegenerate(iode, TableauVPGLRK(2), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 4E-7 int = IntegratorVPRKdegenerate(iode, TableauVPGLRK(3), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 2E-10 end @testset "$(rpad("VSPRK integrators with Legendre projection",80))" begin int = IntegratorVPRKpLegendre(iode, TableauVPGLRK(1), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-6 int = IntegratorVPRKpLegendre(iode, TableauVPGLRK(2), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 1E-11 int = IntegratorVPRKpLegendre(iode, TableauVPGLRK(3), Δt) sol = integrate(iode, int, nt) @test relative_maximum_error(sol.q, refx) < 8E-16 end
[ 198, 3500, 2269, 16996, 14881, 13, 16934, 198, 3500, 2269, 16996, 14881, 13, 18274, 4487, 198, 3500, 2269, 16996, 34500, 18942, 13, 34500, 18942, 198, 3500, 2269, 16996, 34500, 18942, 13, 34500, 18942, 13, 53, 4805, 42, 198, 3500, 2269, 16996, 34500, 18942, 13, 10962, 8717, 198, 3500, 2269, 16996, 2964, 22143, 13, 48601, 4914, 16598, 353, 430, 17, 67, 198, 3500, 17427, 36949, 690, 198, 3500, 6208, 198, 198, 26437, 36949, 690, 13, 2617, 62, 11250, 7, 25, 77, 7278, 62, 265, 349, 11, 807, 25386, 28955, 198, 26437, 36949, 690, 13, 2617, 62, 11250, 7, 25, 77, 7278, 62, 17034, 349, 11, 362, 25386, 28955, 198, 198, 9979, 37455, 83, 796, 657, 13, 486, 198, 9979, 299, 83, 796, 838, 198, 9979, 10662, 158, 224, 222, 796, 685, 16, 13, 15, 11, 352, 13, 15, 60, 198, 9979, 10007, 796, 357, 64, 158, 224, 223, 28, 16, 13, 15, 11, 257, 158, 224, 224, 28, 16, 13, 15, 11, 275, 158, 224, 223, 10779, 16, 13, 15, 11, 275, 158, 224, 224, 10779, 17, 13, 15, 8, 198, 198, 1098, 220, 796, 1256, 4914, 62, 10396, 353, 430, 62, 17, 67, 62, 1098, 7, 80, 158, 224, 222, 26, 42287, 28, 17143, 7307, 8, 198, 72, 1098, 796, 1256, 4914, 62, 10396, 353, 430, 62, 17, 67, 62, 72, 1098, 7, 80, 158, 224, 222, 26, 42287, 28, 17143, 7307, 8, 198, 75, 1098, 796, 1256, 4914, 62, 10396, 353, 430, 62, 17, 67, 62, 75, 1098, 7, 80, 158, 224, 222, 26, 42287, 28, 17143, 7307, 8, 198, 335, 3609, 796, 1256, 4914, 62, 10396, 353, 430, 62, 17, 67, 62, 335, 3609, 7, 80, 158, 224, 222, 26, 42287, 28, 17143, 7307, 8, 198, 198, 600, 220, 796, 15995, 12392, 39776, 42, 7, 1098, 11, 8655, 559, 35389, 1046, 7, 23, 828, 37455, 83, 8, 198, 34453, 220, 796, 19386, 7, 1098, 11, 493, 11, 299, 83, 8, 198, 5420, 87, 796, 1540, 13, 80, 58, 437, 60, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 53, 4805, 42, 4132, 18942, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 8655, 559, 53, 4805, 42, 7, 25, 79, 4743, 81, 74, 11, 362, 11, 8655, 559, 35389, 1046, 7, 16, 828, 532, 16, 828, 37455, 83, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 362, 36, 12, 21, 628, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 8655, 559, 53, 4805, 42, 7, 25, 79, 4743, 81, 74, 11, 604, 11, 8655, 559, 35389, 1046, 7, 17, 828, 1343, 16, 828, 37455, 83, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 22, 628, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 8655, 559, 53, 4805, 42, 7, 25, 79, 4743, 81, 74, 11, 718, 11, 8655, 559, 35389, 1046, 7, 18, 828, 532, 16, 828, 37455, 83, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 604, 36, 12, 1065, 628, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 8655, 559, 53, 6489, 672, 45807, 3978, 3539, 7, 17, 828, 37455, 83, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 604, 36, 12, 21, 628, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 8655, 559, 53, 6489, 672, 45807, 3978, 3539, 7, 18, 828, 37455, 83, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 22, 628, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 8655, 559, 53, 6489, 672, 45807, 3978, 3539, 7, 19, 828, 37455, 83, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 513, 36, 12, 1157, 628, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 8655, 559, 53, 6489, 672, 45807, 3978, 9865, 7, 17, 828, 37455, 83, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 362, 36, 12, 21, 628, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 8655, 559, 53, 6489, 672, 45807, 3978, 9865, 7, 18, 828, 37455, 83, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 22, 628, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 8655, 559, 53, 6489, 672, 45807, 3978, 9865, 7, 19, 828, 37455, 83, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 362, 36, 12, 1157, 198, 198, 437, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 53, 4805, 42, 4132, 18942, 351, 3210, 20128, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 23615, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 21, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 23615, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 1157, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 23615, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 1314, 198, 198, 437, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 53, 4805, 42, 4132, 18942, 351, 10558, 42009, 20128, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 13940, 3149, 42009, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 604, 36, 12, 21, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 13940, 3149, 42009, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 1157, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 13940, 3149, 42009, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 1065, 198, 198, 437, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 53, 4805, 42, 4132, 18942, 351, 23606, 19482, 20128, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 13940, 3020, 19482, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 21, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 13940, 3020, 19482, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 1157, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 13940, 3020, 19482, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 604, 36, 12, 1433, 198, 198, 437, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 53, 4805, 42, 4132, 18942, 351, 3095, 4122, 20128, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 22622, 4122, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 21, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 22622, 4122, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 1157, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 22622, 4122, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 604, 36, 12, 1433, 198, 198, 437, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 53, 4805, 42, 4132, 18942, 351, 5387, 20128, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 37693, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 362, 36, 12, 21, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 37693, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 1157, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 37693, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 604, 36, 12, 1065, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 37693, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 19, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 1433, 198, 198, 437, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 53, 4805, 42, 4132, 18942, 351, 20128, 319, 9233, 32315, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 1303, 16926, 46, 25, 6324, 452, 378, 628, 220, 220, 220, 1303, 493, 796, 15995, 12392, 53, 4805, 42, 79, 12211, 560, 7, 335, 3609, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1303, 1540, 796, 19386, 7, 335, 3609, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 1303, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 362, 36, 12, 21, 628, 220, 220, 220, 1303, 493, 796, 15995, 12392, 53, 4805, 42, 79, 12211, 560, 7, 335, 3609, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1303, 1540, 796, 19386, 7, 335, 3609, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 1303, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 22, 628, 220, 220, 220, 1303, 493, 796, 15995, 12392, 53, 4805, 42, 79, 12211, 560, 7, 335, 3609, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1303, 1540, 796, 19386, 7, 335, 3609, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 1303, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 604, 36, 12, 1065, 198, 198, 437, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 53, 4805, 42, 4132, 18942, 351, 5553, 864, 20128, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 493, 53, 16, 796, 15995, 12392, 53, 4805, 42, 79, 23907, 864, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 53, 16, 796, 19386, 7, 72, 1098, 11, 493, 53, 16, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 53, 16, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 22, 628, 220, 220, 220, 493, 53, 17, 796, 15995, 12392, 53, 4805, 42, 79, 23907, 864, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 53, 17, 796, 19386, 7, 72, 1098, 11, 493, 53, 17, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 53, 17, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 23, 628, 220, 220, 220, 493, 53, 18, 796, 15995, 12392, 53, 4805, 42, 79, 23907, 864, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 53, 18, 796, 19386, 7, 72, 1098, 11, 493, 53, 18, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 53, 18, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 1157, 628, 220, 220, 220, 493, 48, 16, 796, 15995, 12392, 53, 4805, 42, 79, 23907, 864, 48, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 48, 16, 796, 19386, 7, 72, 1098, 11, 493, 48, 16, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 48, 16, 13, 80, 11, 1006, 87, 8, 1279, 604, 36, 12, 20, 628, 220, 220, 220, 493, 48, 17, 796, 15995, 12392, 53, 4805, 42, 79, 23907, 864, 48, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 48, 17, 796, 19386, 7, 72, 1098, 11, 493, 48, 17, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 48, 17, 13, 80, 11, 1006, 87, 8, 1279, 362, 36, 12, 19, 628, 220, 220, 220, 493, 48, 18, 796, 15995, 12392, 53, 4805, 42, 79, 23907, 864, 48, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 48, 18, 796, 19386, 7, 72, 1098, 11, 493, 48, 18, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 48, 18, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 23, 628, 220, 220, 220, 493, 47, 16, 796, 15995, 12392, 53, 4805, 42, 79, 23907, 864, 47, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 47, 16, 796, 19386, 7, 72, 1098, 11, 493, 47, 16, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 47, 16, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 22, 628, 220, 220, 220, 493, 47, 17, 796, 15995, 12392, 53, 4805, 42, 79, 23907, 864, 47, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 47, 17, 796, 19386, 7, 72, 1098, 11, 493, 47, 17, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 47, 17, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 23, 628, 220, 220, 220, 493, 47, 18, 796, 15995, 12392, 53, 4805, 42, 79, 23907, 864, 47, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 47, 18, 796, 19386, 7, 72, 1098, 11, 493, 47, 18, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 47, 18, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 1157, 628, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 53, 16, 13, 80, 11, 1540, 47, 16, 13, 80, 58, 437, 12962, 6624, 657, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 53, 17, 13, 80, 11, 1540, 47, 17, 13, 80, 58, 437, 12962, 6624, 657, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 53, 18, 13, 80, 11, 1540, 47, 18, 13, 80, 58, 437, 12962, 6624, 657, 198, 198, 437, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 53, 4805, 42, 4132, 18942, 351, 20128, 319, 5660, 469, 12, 42, 315, 8326, 3084, 559, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 10962, 559, 7, 72, 1098, 11, 1766, 41945, 6968, 35972, 42, 7, 20, 828, 37455, 83, 9, 20, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 2659, 7, 429, 11, 20, 4008, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 1065, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 10962, 559, 7, 72, 1098, 11, 1766, 41945, 6968, 35972, 42, 7, 21, 828, 37455, 83, 9, 20, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 2659, 7, 429, 11, 20, 4008, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 604, 36, 12, 1415, 198, 198, 437, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 35, 1533, 877, 378, 10558, 42009, 18398, 276, 5660, 469, 12, 42, 315, 8326, 5050, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 13500, 877, 378, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 362, 36, 12, 20, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 13500, 877, 378, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 604, 36, 12, 22, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 13500, 877, 378, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 362, 36, 12, 940, 198, 198, 437, 628, 198, 31, 9288, 2617, 17971, 7, 81, 15636, 7203, 53, 4303, 49, 42, 4132, 18942, 351, 9883, 260, 20128, 1600, 1795, 4008, 1, 2221, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 21351, 260, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 16, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 21, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 21351, 260, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 17, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 352, 36, 12, 1157, 628, 220, 220, 220, 493, 796, 15995, 12392, 53, 4805, 42, 79, 21351, 260, 7, 72, 1098, 11, 8655, 559, 53, 6968, 35972, 42, 7, 18, 828, 37455, 83, 8, 198, 220, 220, 220, 1540, 796, 19386, 7, 72, 1098, 11, 493, 11, 299, 83, 8, 198, 220, 220, 220, 2488, 9288, 3585, 62, 47033, 62, 18224, 7, 34453, 13, 80, 11, 1006, 87, 8, 1279, 807, 36, 12, 1433, 198, 198, 437, 198 ]
2.219974
3,855
## This simple (and naive) implementation is useful to solve the closed-shell linear expansion hartree-fock equation module QP232 include("./types.jl") end
[ 198, 2235, 770, 2829, 357, 392, 24354, 8, 7822, 318, 4465, 284, 8494, 262, 4838, 12, 29149, 14174, 7118, 289, 433, 631, 12, 69, 735, 16022, 198, 198, 21412, 1195, 47, 24339, 628, 220, 2291, 7, 1911, 14, 19199, 13, 20362, 4943, 628, 198, 437, 198 ]
3.543478
46
# This file was generated by the Julia Swagger Code Generator # Do not modify this file directly. Modify the swagger specification instead. mutable struct IoK8sApimachineryPkgVersionInfo <: SwaggerModel buildDate::Any # spec type: Union{ Nothing, String } # spec name: buildDate compiler::Any # spec type: Union{ Nothing, String } # spec name: compiler gitCommit::Any # spec type: Union{ Nothing, String } # spec name: gitCommit gitTreeState::Any # spec type: Union{ Nothing, String } # spec name: gitTreeState gitVersion::Any # spec type: Union{ Nothing, String } # spec name: gitVersion goVersion::Any # spec type: Union{ Nothing, String } # spec name: goVersion major::Any # spec type: Union{ Nothing, String } # spec name: major minor::Any # spec type: Union{ Nothing, String } # spec name: minor platform::Any # spec type: Union{ Nothing, String } # spec name: platform function IoK8sApimachineryPkgVersionInfo(;buildDate=nothing, compiler=nothing, gitCommit=nothing, gitTreeState=nothing, gitVersion=nothing, goVersion=nothing, major=nothing, minor=nothing, platform=nothing) o = new() validate_property(IoK8sApimachineryPkgVersionInfo, Symbol("buildDate"), buildDate) setfield!(o, Symbol("buildDate"), buildDate) validate_property(IoK8sApimachineryPkgVersionInfo, Symbol("compiler"), compiler) setfield!(o, Symbol("compiler"), compiler) validate_property(IoK8sApimachineryPkgVersionInfo, Symbol("gitCommit"), gitCommit) setfield!(o, Symbol("gitCommit"), gitCommit) validate_property(IoK8sApimachineryPkgVersionInfo, Symbol("gitTreeState"), gitTreeState) setfield!(o, Symbol("gitTreeState"), gitTreeState) validate_property(IoK8sApimachineryPkgVersionInfo, Symbol("gitVersion"), gitVersion) setfield!(o, Symbol("gitVersion"), gitVersion) validate_property(IoK8sApimachineryPkgVersionInfo, Symbol("goVersion"), goVersion) setfield!(o, Symbol("goVersion"), goVersion) validate_property(IoK8sApimachineryPkgVersionInfo, Symbol("major"), major) setfield!(o, Symbol("major"), major) validate_property(IoK8sApimachineryPkgVersionInfo, Symbol("minor"), minor) setfield!(o, Symbol("minor"), minor) validate_property(IoK8sApimachineryPkgVersionInfo, Symbol("platform"), platform) setfield!(o, Symbol("platform"), platform) o end end # type IoK8sApimachineryPkgVersionInfo const _property_map_IoK8sApimachineryPkgVersionInfo = Dict{Symbol,Symbol}(Symbol("buildDate")=>Symbol("buildDate"), Symbol("compiler")=>Symbol("compiler"), Symbol("gitCommit")=>Symbol("gitCommit"), Symbol("gitTreeState")=>Symbol("gitTreeState"), Symbol("gitVersion")=>Symbol("gitVersion"), Symbol("goVersion")=>Symbol("goVersion"), Symbol("major")=>Symbol("major"), Symbol("minor")=>Symbol("minor"), Symbol("platform")=>Symbol("platform")) const _property_types_IoK8sApimachineryPkgVersionInfo = Dict{Symbol,String}(Symbol("buildDate")=>"String", Symbol("compiler")=>"String", Symbol("gitCommit")=>"String", Symbol("gitTreeState")=>"String", Symbol("gitVersion")=>"String", Symbol("goVersion")=>"String", Symbol("major")=>"String", Symbol("minor")=>"String", Symbol("platform")=>"String") Base.propertynames(::Type{ IoK8sApimachineryPkgVersionInfo }) = collect(keys(_property_map_IoK8sApimachineryPkgVersionInfo)) Swagger.property_type(::Type{ IoK8sApimachineryPkgVersionInfo }, name::Symbol) = Union{Nothing,eval(Meta.parse(_property_types_IoK8sApimachineryPkgVersionInfo[name]))} Swagger.field_name(::Type{ IoK8sApimachineryPkgVersionInfo }, property_name::Symbol) = _property_map_IoK8sApimachineryPkgVersionInfo[property_name] function check_required(o::IoK8sApimachineryPkgVersionInfo) (getproperty(o, Symbol("buildDate")) === nothing) && (return false) (getproperty(o, Symbol("compiler")) === nothing) && (return false) (getproperty(o, Symbol("gitCommit")) === nothing) && (return false) (getproperty(o, Symbol("gitTreeState")) === nothing) && (return false) (getproperty(o, Symbol("gitVersion")) === nothing) && (return false) (getproperty(o, Symbol("goVersion")) === nothing) && (return false) (getproperty(o, Symbol("major")) === nothing) && (return false) (getproperty(o, Symbol("minor")) === nothing) && (return false) (getproperty(o, Symbol("platform")) === nothing) && (return false) true end function validate_property(::Type{ IoK8sApimachineryPkgVersionInfo }, 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, 198, 76, 18187, 2878, 27853, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 1279, 25, 2451, 7928, 17633, 198, 220, 220, 220, 1382, 10430, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 1382, 10430, 198, 220, 220, 220, 17050, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 17050, 198, 220, 220, 220, 17606, 6935, 270, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 17606, 6935, 270, 198, 220, 220, 220, 17606, 27660, 9012, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 17606, 27660, 9012, 198, 220, 220, 220, 17606, 14815, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 17606, 14815, 198, 220, 220, 220, 467, 14815, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 467, 14815, 198, 220, 220, 220, 1688, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 1688, 198, 220, 220, 220, 4159, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 4159, 198, 220, 220, 220, 3859, 3712, 7149, 1303, 1020, 2099, 25, 4479, 90, 10528, 11, 10903, 1782, 1303, 1020, 1438, 25, 3859, 628, 220, 220, 220, 2163, 27853, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 7, 26, 11249, 10430, 28, 22366, 11, 17050, 28, 22366, 11, 17606, 6935, 270, 28, 22366, 11, 17606, 27660, 9012, 28, 22366, 11, 17606, 14815, 28, 22366, 11, 467, 14815, 28, 22366, 11, 1688, 28, 22366, 11, 4159, 28, 22366, 11, 3859, 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, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 11, 38357, 7203, 11249, 10430, 12340, 1382, 10430, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 11249, 10430, 12340, 1382, 10430, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 11, 38357, 7203, 5589, 5329, 12340, 17050, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 5589, 5329, 12340, 17050, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 11, 38357, 7203, 18300, 6935, 270, 12340, 17606, 6935, 270, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 18300, 6935, 270, 12340, 17606, 6935, 270, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 11, 38357, 7203, 18300, 27660, 9012, 12340, 17606, 27660, 9012, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 18300, 27660, 9012, 12340, 17606, 27660, 9012, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 11, 38357, 7203, 18300, 14815, 12340, 17606, 14815, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 18300, 14815, 12340, 17606, 14815, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 11, 38357, 7203, 2188, 14815, 12340, 467, 14815, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 2188, 14815, 12340, 467, 14815, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 11, 38357, 7203, 22478, 12340, 1688, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 22478, 12340, 1688, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 11, 38357, 7203, 1084, 273, 12340, 4159, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 1084, 273, 12340, 4159, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 26745, 7, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 11, 38357, 7203, 24254, 12340, 3859, 8, 198, 220, 220, 220, 220, 220, 220, 220, 900, 3245, 0, 7, 78, 11, 38357, 7203, 24254, 12340, 3859, 8, 198, 220, 220, 220, 220, 220, 220, 220, 267, 198, 220, 220, 220, 886, 198, 437, 1303, 2099, 27853, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 198, 198, 9979, 4808, 26745, 62, 8899, 62, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 796, 360, 713, 90, 13940, 23650, 11, 13940, 23650, 92, 7, 13940, 23650, 7203, 11249, 10430, 4943, 14804, 13940, 23650, 7203, 11249, 10430, 12340, 38357, 7203, 5589, 5329, 4943, 14804, 13940, 23650, 7203, 5589, 5329, 12340, 38357, 7203, 18300, 6935, 270, 4943, 14804, 13940, 23650, 7203, 18300, 6935, 270, 12340, 38357, 7203, 18300, 27660, 9012, 4943, 14804, 13940, 23650, 7203, 18300, 27660, 9012, 12340, 38357, 7203, 18300, 14815, 4943, 14804, 13940, 23650, 7203, 18300, 14815, 12340, 38357, 7203, 2188, 14815, 4943, 14804, 13940, 23650, 7203, 2188, 14815, 12340, 38357, 7203, 22478, 4943, 14804, 13940, 23650, 7203, 22478, 12340, 38357, 7203, 1084, 273, 4943, 14804, 13940, 23650, 7203, 1084, 273, 12340, 38357, 7203, 24254, 4943, 14804, 13940, 23650, 7203, 24254, 48774, 198, 9979, 4808, 26745, 62, 19199, 62, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 796, 360, 713, 90, 13940, 23650, 11, 10100, 92, 7, 13940, 23650, 7203, 11249, 10430, 4943, 14804, 1, 10100, 1600, 38357, 7203, 5589, 5329, 4943, 14804, 1, 10100, 1600, 38357, 7203, 18300, 6935, 270, 4943, 14804, 1, 10100, 1600, 38357, 7203, 18300, 27660, 9012, 4943, 14804, 1, 10100, 1600, 38357, 7203, 18300, 14815, 4943, 14804, 1, 10100, 1600, 38357, 7203, 2188, 14815, 4943, 14804, 1, 10100, 1600, 38357, 7203, 22478, 4943, 14804, 1, 10100, 1600, 38357, 7203, 1084, 273, 4943, 14804, 1, 10100, 1600, 38357, 7203, 24254, 4943, 14804, 1, 10100, 4943, 198, 14881, 13, 26745, 14933, 7, 3712, 6030, 90, 27853, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 32092, 796, 2824, 7, 13083, 28264, 26745, 62, 8899, 62, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 4008, 198, 10462, 7928, 13, 26745, 62, 4906, 7, 3712, 6030, 90, 27853, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 8964, 1438, 3712, 13940, 23650, 8, 796, 4479, 90, 18465, 11, 18206, 7, 48526, 13, 29572, 28264, 26745, 62, 19199, 62, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 58, 3672, 60, 4008, 92, 198, 10462, 7928, 13, 3245, 62, 3672, 7, 3712, 6030, 90, 27853, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 8964, 3119, 62, 3672, 3712, 13940, 23650, 8, 796, 220, 4808, 26745, 62, 8899, 62, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 58, 26745, 62, 3672, 60, 198, 198, 8818, 2198, 62, 35827, 7, 78, 3712, 40, 78, 42, 23, 82, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 11249, 10430, 48774, 24844, 2147, 8, 11405, 357, 7783, 3991, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 5589, 5329, 48774, 24844, 2147, 8, 11405, 357, 7783, 3991, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 18300, 6935, 270, 48774, 24844, 2147, 8, 11405, 357, 7783, 3991, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 18300, 27660, 9012, 48774, 24844, 2147, 8, 11405, 357, 7783, 3991, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 18300, 14815, 48774, 24844, 2147, 8, 11405, 357, 7783, 3991, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 2188, 14815, 48774, 24844, 2147, 8, 11405, 357, 7783, 3991, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 22478, 48774, 24844, 2147, 8, 11405, 357, 7783, 3991, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 1084, 273, 48774, 24844, 2147, 8, 11405, 357, 7783, 3991, 8, 198, 220, 220, 220, 357, 1136, 26745, 7, 78, 11, 38357, 7203, 24254, 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, 25189, 320, 620, 15451, 47, 10025, 14815, 12360, 8964, 1438, 3712, 13940, 23650, 11, 1188, 8, 198, 437, 198 ]
2.907979
1,554
# -------------------------------------------------------------------------- # ACE1.jl: Julia implementation of the Atomic Cluster Expansion # Copyright (c) 2019 Christoph Ortner <christophortner0@gmail.com> # Licensed under ASL - see ASL.md for terms and conditions. # -------------------------------------------------------------------------- @testset "RepulsiveCore" begin #--- using ACE1 using Printf, Test, LinearAlgebra, JuLIP, JuLIP.Testing using JuLIP: evaluate, evaluate_d using JuLIP.Potentials: i2z, numz using JuLIP.MLIPs: combine randr() = 1.0 + rand() randcoeffs(B) = (rand(length(B)) .* (1:length(B)) .- 0.2).^(-2) #--- @info("--------------- Testing RepulsiveCore Implementation ---------------") at = bulk(:W, cubic=true) * 3 rattle!(at, 0.03) r0 = rnn(:W) z = atomic_number(:W) maxdeg = 8 r0 = 1.0 rcut = 3.0 Pr = transformed_jacobi(maxdeg, PolyTransform(1, r0), rcut; pcut = 2) pB = ACE1.PairPotentials.PolyPairBasis(Pr, :W) coeffs = randcoeffs(pB) V = combine(pB, coeffs) #--- try out the repulsive potential Vfit = V ri = 2.1 @show (@D Vfit(ri)) e0 = Vfit(ri) - 1.0 Vrep = ACE1.PairPotentials.RepulsiveCore(Vfit, ri) rout = range(ri+1e-15, 4.0, length=100) println(@test all(Vfit(r) == Vrep(r,z,z) for r in rout)) rin = range(0.5, ri, length=100) println(@test all(Vrep.Vin[1](r) == Vrep(r,z,z) for r in rin)) @info("JuLIP FD test") println(@test JuLIP.Testing.fdtest(Vrep, at)) @info("check scaling") println(@test energy(Vfit, at) ≈ energy(Vrep, at)) #--- @info("--------------- Multi-Species RepulsiveCore ---------------") at = bulk(:W, cubic=true) * 3 at.Z[2:3:end] .= atomic_number(:Fe) rattle!(at, 0.03) r0 = rnn(:W) Pr = transformed_jacobi(maxdeg, PolyTransform(1, r0), rcut; pcut = 2) pB = ACE1.PairPotentials.PolyPairBasis(Pr, [:W, :Fe]) coeffs = randcoeffs(pB) V = combine(pB, coeffs) #--- try out the repulsive potential Vfit = V ri = 2.1 z1 = AtomicNumber(74) z2 = AtomicNumber(26) @show @D Vfit(ri, z1, z2) e0 = min(Vfit(ri, z1, z2), Vfit(ri, z1, z1), Vfit(ri, z2, z2)) - 1.0 e0s = rand(2,2) .+ (e0 - 0.5); e0s = 0.5 * (e0s + e0s') ris = rand(2,2) .+ (ri - 0.5); ris = 0.5 * (ris + ris') Vrep = ACE1.PairPotentials.RepulsiveCore(Vfit, Dict( ( :W, :W) => (ri = ris[1,1], e0 = e0s[1,1]), ( :W, :Fe) => (ri = ris[1,2], e0 = e0s[1,2]), (:Fe, :Fe) => (ri = ris[2,2], e0 = e0s[2,2]) ) ) for (z, z0, j, j0) in zip([z1, z1, z2], [z1, z2, z2], [1, 1, 2], [1, 2, 2]) local rin, rout i, i0 = JuLIP.Potentials.z2i(Vfit, z), JuLIP.Potentials.z2i(Vfit, z0) rout = range(ris[j, j0] +1e-15, 4.0, length=100) println(@test all(Vfit(r, z, z0) == Vrep(r, z, z0) for r in rout)) rin = range(0.5, ris[j,j0]-1e-15, length=100) println(@test all(Vrep.Vin[i,i0](r) == Vrep(r, z, z0) for r in rin)) end #--- @info("JuLIP FD test") println(@test JuLIP.Testing.fdtest(Vrep, at)) @info("check scaling") println(@test energy(Vfit, at) ≈ energy(Vrep, at)) @info("check FIO") println(@test all(JuLIP.Testing.test_fio(Vrep))) #--- end
[ 198, 2, 16529, 35937, 198, 2, 40488, 16, 13, 20362, 25, 22300, 7822, 286, 262, 28976, 38279, 25042, 198, 2, 15069, 357, 66, 8, 13130, 1951, 2522, 31427, 1008, 1279, 43533, 2522, 419, 1008, 15, 31, 14816, 13, 785, 29, 198, 2, 49962, 739, 7054, 43, 532, 766, 7054, 43, 13, 9132, 329, 2846, 290, 3403, 13, 198, 2, 16529, 35937, 628, 198, 198, 31, 9288, 2617, 366, 6207, 22220, 14055, 1, 2221, 198, 198, 2, 6329, 198, 198, 3500, 40488, 16, 198, 3500, 12578, 69, 11, 6208, 11, 44800, 2348, 29230, 11, 12585, 43, 4061, 11, 12585, 43, 4061, 13, 44154, 198, 3500, 12585, 43, 4061, 25, 13446, 11, 13446, 62, 67, 198, 3500, 12585, 43, 4061, 13, 25396, 14817, 25, 1312, 17, 89, 11, 997, 89, 198, 3500, 12585, 43, 4061, 13, 5805, 4061, 82, 25, 12082, 198, 198, 25192, 81, 3419, 796, 352, 13, 15, 1343, 43720, 3419, 198, 25192, 1073, 14822, 82, 7, 33, 8, 796, 357, 25192, 7, 13664, 7, 33, 4008, 764, 9, 357, 16, 25, 13664, 7, 33, 4008, 764, 12, 657, 13, 17, 737, 61, 32590, 17, 8, 628, 198, 2, 6329, 198, 31, 10951, 7203, 24305, 23983, 1432, 22220, 14055, 46333, 220, 24305, 4943, 198, 198, 265, 796, 11963, 7, 25, 54, 11, 27216, 28, 7942, 8, 1635, 513, 198, 81, 1999, 0, 7, 265, 11, 657, 13, 3070, 8, 198, 81, 15, 796, 374, 20471, 7, 25, 54, 8, 198, 89, 796, 17226, 62, 17618, 7, 25, 54, 8, 198, 198, 9806, 13500, 796, 807, 198, 81, 15, 796, 352, 13, 15, 198, 6015, 315, 796, 513, 13, 15, 198, 198, 6836, 796, 14434, 62, 30482, 13411, 7, 9806, 13500, 11, 12280, 41762, 7, 16, 11, 374, 15, 828, 374, 8968, 26, 279, 8968, 796, 362, 8, 198, 79, 33, 796, 40488, 16, 13, 47, 958, 25396, 14817, 13, 34220, 47, 958, 15522, 271, 7, 6836, 11, 1058, 54, 8, 198, 1073, 14822, 82, 796, 43720, 1073, 14822, 82, 7, 79, 33, 8, 198, 53, 796, 12082, 7, 79, 33, 11, 763, 14822, 82, 8, 198, 198, 2, 6329, 1949, 503, 262, 1128, 22220, 2785, 198, 53, 11147, 796, 569, 198, 198, 380, 796, 362, 13, 16, 198, 31, 12860, 4275, 35, 569, 11147, 7, 380, 4008, 198, 68, 15, 796, 569, 11147, 7, 380, 8, 532, 352, 13, 15, 198, 53, 7856, 796, 40488, 16, 13, 47, 958, 25396, 14817, 13, 6207, 22220, 14055, 7, 53, 11147, 11, 374, 72, 8, 198, 198, 81, 448, 796, 2837, 7, 380, 10, 16, 68, 12, 1314, 11, 604, 13, 15, 11, 4129, 28, 3064, 8, 198, 35235, 7, 31, 9288, 477, 7, 53, 11147, 7, 81, 8, 6624, 569, 7856, 7, 81, 11, 89, 11, 89, 8, 329, 374, 287, 3441, 4008, 198, 12769, 796, 2837, 7, 15, 13, 20, 11, 374, 72, 11, 4129, 28, 3064, 8, 198, 35235, 7, 31, 9288, 477, 7, 53, 7856, 13, 53, 259, 58, 16, 16151, 81, 8, 6624, 569, 7856, 7, 81, 11, 89, 11, 89, 8, 329, 374, 287, 374, 259, 4008, 198, 198, 31, 10951, 7203, 33018, 43, 4061, 30002, 1332, 4943, 198, 35235, 7, 31, 9288, 12585, 43, 4061, 13, 44154, 13, 16344, 9288, 7, 53, 7856, 11, 379, 4008, 198, 198, 31, 10951, 7203, 9122, 20796, 4943, 198, 35235, 7, 31, 9288, 2568, 7, 53, 11147, 11, 379, 8, 15139, 230, 2568, 7, 53, 7856, 11, 379, 4008, 198, 198, 2, 6329, 628, 198, 31, 10951, 7203, 24305, 15237, 12, 5248, 3171, 1432, 22220, 14055, 220, 24305, 4943, 198, 198, 265, 796, 11963, 7, 25, 54, 11, 27216, 28, 7942, 8, 1635, 513, 198, 265, 13, 57, 58, 17, 25, 18, 25, 437, 60, 764, 28, 17226, 62, 17618, 7, 25, 14304, 8, 198, 81, 1999, 0, 7, 265, 11, 657, 13, 3070, 8, 198, 81, 15, 796, 374, 20471, 7, 25, 54, 8, 198, 198, 6836, 796, 14434, 62, 30482, 13411, 7, 9806, 13500, 11, 12280, 41762, 7, 16, 11, 374, 15, 828, 374, 8968, 26, 279, 8968, 796, 362, 8, 198, 79, 33, 796, 40488, 16, 13, 47, 958, 25396, 14817, 13, 34220, 47, 958, 15522, 271, 7, 6836, 11, 685, 25, 54, 11, 1058, 14304, 12962, 198, 1073, 14822, 82, 796, 43720, 1073, 14822, 82, 7, 79, 33, 8, 198, 53, 796, 12082, 7, 79, 33, 11, 763, 14822, 82, 8, 628, 198, 2, 6329, 1949, 503, 262, 1128, 22220, 2785, 198, 53, 11147, 796, 569, 198, 198, 380, 796, 362, 13, 16, 198, 89, 16, 796, 28976, 15057, 7, 4524, 8, 198, 89, 17, 796, 28976, 15057, 7, 2075, 8, 198, 31, 12860, 2488, 35, 569, 11147, 7, 380, 11, 1976, 16, 11, 1976, 17, 8, 198, 68, 15, 796, 949, 7, 53, 11147, 7, 380, 11, 1976, 16, 11, 1976, 17, 828, 569, 11147, 7, 380, 11, 1976, 16, 11, 1976, 16, 828, 569, 11147, 7, 380, 11, 1976, 17, 11, 1976, 17, 4008, 532, 352, 13, 15, 198, 68, 15, 82, 796, 43720, 7, 17, 11, 17, 8, 764, 10, 357, 68, 15, 532, 657, 13, 20, 1776, 304, 15, 82, 796, 657, 13, 20, 1635, 357, 68, 15, 82, 1343, 304, 15, 82, 11537, 198, 2442, 796, 43720, 7, 17, 11, 17, 8, 764, 10, 357, 380, 532, 657, 13, 20, 1776, 6106, 796, 657, 13, 20, 1635, 357, 2442, 1343, 6106, 11537, 198, 198, 53, 7856, 796, 40488, 16, 13, 47, 958, 25396, 14817, 13, 6207, 22220, 14055, 7, 53, 11147, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 360, 713, 7, 357, 1058, 54, 11, 220, 1058, 54, 8, 5218, 357, 380, 796, 6106, 58, 16, 11, 16, 4357, 304, 15, 796, 304, 15, 82, 58, 16, 11, 16, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 1058, 54, 11, 1058, 14304, 8, 5218, 357, 380, 796, 6106, 58, 16, 11, 17, 4357, 304, 15, 796, 304, 15, 82, 58, 16, 11, 17, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 25, 14304, 11, 1058, 14304, 8, 5218, 357, 380, 796, 6106, 58, 17, 11, 17, 4357, 304, 15, 796, 304, 15, 82, 58, 17, 11, 17, 12962, 1267, 1267, 628, 198, 1640, 357, 89, 11, 1976, 15, 11, 474, 11, 474, 15, 8, 287, 19974, 26933, 89, 16, 11, 1976, 16, 11, 1976, 17, 4357, 685, 89, 16, 11, 1976, 17, 11, 1976, 17, 4357, 685, 16, 11, 352, 11, 362, 4357, 685, 16, 11, 362, 11, 362, 12962, 198, 220, 220, 1957, 374, 259, 11, 3441, 198, 220, 220, 1312, 11, 1312, 15, 796, 12585, 43, 4061, 13, 25396, 14817, 13, 89, 17, 72, 7, 53, 11147, 11, 1976, 828, 12585, 43, 4061, 13, 25396, 14817, 13, 89, 17, 72, 7, 53, 11147, 11, 1976, 15, 8, 198, 220, 220, 3441, 796, 2837, 7, 2442, 58, 73, 11, 474, 15, 60, 1343, 16, 68, 12, 1314, 11, 604, 13, 15, 11, 4129, 28, 3064, 8, 198, 220, 220, 44872, 7, 31, 9288, 477, 7, 53, 11147, 7, 81, 11, 1976, 11, 1976, 15, 8, 6624, 569, 7856, 7, 81, 11, 1976, 11, 1976, 15, 8, 329, 374, 287, 3441, 4008, 198, 220, 220, 374, 259, 796, 2837, 7, 15, 13, 20, 11, 6106, 58, 73, 11, 73, 15, 45297, 16, 68, 12, 1314, 11, 4129, 28, 3064, 8, 198, 220, 220, 44872, 7, 31, 9288, 477, 7, 53, 7856, 13, 53, 259, 58, 72, 11, 72, 15, 16151, 81, 8, 6624, 569, 7856, 7, 81, 11, 1976, 11, 1976, 15, 8, 329, 374, 287, 374, 259, 4008, 198, 437, 198, 198, 2, 6329, 198, 198, 31, 10951, 7203, 33018, 43, 4061, 30002, 1332, 4943, 198, 35235, 7, 31, 9288, 12585, 43, 4061, 13, 44154, 13, 16344, 9288, 7, 53, 7856, 11, 379, 4008, 198, 198, 31, 10951, 7203, 9122, 20796, 4943, 198, 35235, 7, 31, 9288, 2568, 7, 53, 11147, 11, 379, 8, 15139, 230, 2568, 7, 53, 7856, 11, 379, 4008, 198, 198, 31, 10951, 7203, 9122, 376, 9399, 4943, 198, 35235, 7, 31, 9288, 477, 7, 33018, 43, 4061, 13, 44154, 13, 9288, 62, 69, 952, 7, 53, 7856, 22305, 198, 198, 2, 6329, 198, 198, 437, 198 ]
2.200579
1,381
# work_hours.jl # # Calculate time spent working # # Jeremy Rüffer # Thünen Institut # Institut für Agrarklimaschutz # Junior Research Group NITROSPHERE # Julia 1.4.0 # 30.03.2020 # Last Edit: 02.04.2020 # include("D:\\Code\\Julia\\Jeremy\\work_hours.jl") "# work_hours(times...,diffs::Bool=false) `work_hours(\"8:21\",\"12:16\",\"13:20\",\"15:45\",\"16:30\",\"19:00\")` Calculate total work hours\n * **time...**::String = List of times as strings in H:MM or HH:MM format ==== Summing Time Periods ====\n \t08:21:00 -> 12:16:00\n \t13:20:00 -> 15:45:00\n \t16:30:00 -> 19:00:00\n Total: 08:50:00, +1 hour, 2 minutes --- #### Keywords:\n * diffs::Bool = Show each time difference, False is default * goal::Time = Target working ours, Time(7,48) is default\n\n" function work_hours(times...;diffs::Bool=false,goal::Time=Time(7,48)) ################# ## Constants ## ################# dfmt = Dates.DateFormat("HH:MM") ############## ## Checks ## ############## for test = 1:1:length(times) # Check that each input is a string isa(times[test],String) ? nothing : error("All input times must be strings") # Check that each input matches H:MM or HH:MM formats match(r"^[0-2]?[0-9]\:[0-5][0-9]",times[test]) == nothing ? error(times[test] * " is not of the form H:MM or HH:MM") : nothing end ################# ## Calculate ## ################# println("==== Summing Time Periods ====") isodd(length(times)) ? endTime = length(times) - 1 : endTime = length(times) sumTime = Time(0) for t=1:2:endTime dt = Time(times[t+1],dfmt) - Time(times[t],dfmt) if diffs dtString = ",\tdt = " * string(Time(dt)) else dtString = "" end println("\t" * string(Time(times[t],dfmt)) * " -> " * string(Time(times[t+1],dfmt)) * dtString) sumTime += dt end # Odd number of times given if isodd(length(times)) checkoutTime = Time(Time(times[end]).instant + goal.instant - sumTime.instant) println("\t" * string(Time(times[end],dfmt)) * " -> " * string(checkoutTime) * " (assuming a full work day)") end # Final Numbers if goal-sumTime > Nanosecond(0) println("\nTotal: " * string(sumTime) *", " * string(Dates.canonicalize(Dates.CompoundPeriod(goal-sumTime))) * " remaining") else println("\nTotal: " * string(sumTime) * ", +" * string(Dates.canonicalize(Dates.CompoundPeriod(sumTime-goal)))) end end
[ 2, 670, 62, 24425, 13, 20362, 201, 198, 2, 201, 198, 2, 220, 220, 27131, 378, 640, 3377, 1762, 201, 198, 2, 201, 198, 2, 11753, 371, 9116, 36761, 201, 198, 2, 536, 9116, 38572, 37931, 315, 201, 198, 2, 37931, 315, 277, 25151, 317, 2164, 668, 2475, 292, 354, 27839, 201, 198, 2, 20000, 4992, 4912, 399, 2043, 49, 2640, 11909, 9338, 201, 198, 2, 22300, 352, 13, 19, 13, 15, 201, 198, 2, 1542, 13, 3070, 13, 42334, 201, 198, 2, 4586, 5312, 25, 7816, 13, 3023, 13, 42334, 201, 198, 201, 198, 2, 2291, 7203, 35, 25, 6852, 10669, 6852, 16980, 544, 6852, 35623, 6852, 1818, 62, 24425, 13, 20362, 4943, 201, 198, 201, 198, 1, 2, 670, 62, 24425, 7, 22355, 986, 11, 67, 10203, 3712, 33, 970, 28, 9562, 8, 201, 198, 201, 198, 63, 1818, 62, 24425, 7, 7879, 23, 25, 2481, 34607, 7879, 1065, 25, 1433, 34607, 7879, 1485, 25, 1238, 34607, 7879, 1314, 25, 2231, 34607, 7879, 1433, 25, 1270, 34607, 7879, 1129, 25, 405, 59, 4943, 63, 27131, 378, 2472, 670, 2250, 59, 77, 201, 198, 9, 12429, 2435, 986, 1174, 3712, 10100, 796, 7343, 286, 1661, 355, 13042, 287, 367, 25, 12038, 393, 47138, 25, 12038, 5794, 201, 198, 201, 198, 1421, 220, 5060, 2229, 3862, 18581, 82, 220, 796, 18604, 59, 77, 201, 198, 59, 83, 2919, 25, 2481, 25, 405, 4613, 1105, 25, 1433, 25, 405, 59, 77, 201, 198, 59, 83, 1485, 25, 1238, 25, 405, 4613, 1315, 25, 2231, 25, 405, 59, 77, 201, 198, 59, 83, 1433, 25, 1270, 25, 405, 4613, 678, 25, 405, 25, 405, 59, 77, 201, 198, 201, 198, 14957, 25, 8487, 25, 1120, 25, 405, 11, 220, 1343, 16, 1711, 11, 362, 2431, 201, 198, 201, 198, 6329, 201, 198, 201, 198, 4242, 7383, 10879, 7479, 77, 201, 198, 9, 814, 82, 3712, 33, 970, 796, 5438, 1123, 640, 3580, 11, 10352, 318, 4277, 201, 198, 9, 3061, 3712, 7575, 796, 12744, 1762, 16903, 11, 3862, 7, 22, 11, 2780, 8, 318, 4277, 59, 77, 59, 77, 1, 201, 198, 8818, 670, 62, 24425, 7, 22355, 986, 26, 67, 10203, 3712, 33, 970, 28, 9562, 11, 35231, 3712, 7575, 28, 7575, 7, 22, 11, 2780, 4008, 201, 198, 197, 14468, 2, 201, 198, 197, 2235, 220, 4757, 1187, 220, 22492, 201, 198, 197, 14468, 2, 201, 198, 197, 7568, 16762, 796, 44712, 13, 10430, 26227, 7203, 16768, 25, 12038, 4943, 201, 198, 197, 201, 198, 197, 7804, 4242, 2235, 201, 198, 197, 2235, 220, 47719, 220, 22492, 201, 198, 197, 7804, 4242, 2235, 201, 198, 197, 1640, 1332, 796, 352, 25, 16, 25, 13664, 7, 22355, 8, 201, 198, 197, 197, 2, 6822, 326, 1123, 5128, 318, 257, 4731, 201, 198, 197, 197, 9160, 7, 22355, 58, 9288, 4357, 10100, 8, 5633, 2147, 1058, 4049, 7203, 3237, 5128, 1661, 1276, 307, 13042, 4943, 201, 198, 197, 197, 201, 198, 197, 197, 2, 6822, 326, 1123, 5128, 7466, 367, 25, 12038, 393, 47138, 25, 12038, 17519, 201, 198, 197, 197, 15699, 7, 81, 1, 61, 58, 15, 12, 17, 60, 30, 58, 15, 12, 24, 60, 59, 33250, 15, 12, 20, 7131, 15, 12, 24, 60, 1600, 22355, 58, 9288, 12962, 6624, 2147, 5633, 4049, 7, 22355, 58, 9288, 60, 1635, 366, 318, 407, 286, 262, 1296, 367, 25, 12038, 393, 47138, 25, 12038, 4943, 1058, 2147, 201, 198, 197, 437, 201, 198, 197, 201, 198, 197, 14468, 2, 201, 198, 197, 2235, 220, 27131, 378, 220, 22492, 201, 198, 197, 14468, 2, 201, 198, 197, 35235, 7203, 1421, 220, 5060, 2229, 3862, 18581, 82, 220, 24844, 2625, 8, 201, 198, 197, 271, 5088, 7, 13664, 7, 22355, 4008, 5633, 886, 7575, 796, 4129, 7, 22355, 8, 532, 352, 1058, 886, 7575, 796, 4129, 7, 22355, 8, 201, 198, 197, 16345, 7575, 796, 3862, 7, 15, 8, 201, 198, 197, 1640, 256, 28, 16, 25, 17, 25, 437, 7575, 201, 198, 197, 197, 28664, 796, 3862, 7, 22355, 58, 83, 10, 16, 4357, 7568, 16762, 8, 532, 3862, 7, 22355, 58, 83, 4357, 7568, 16762, 8, 201, 198, 197, 197, 361, 814, 82, 201, 198, 197, 197, 197, 28664, 10100, 796, 33172, 59, 8671, 83, 796, 366, 1635, 4731, 7, 7575, 7, 28664, 4008, 201, 198, 197, 197, 17772, 201, 198, 197, 197, 197, 28664, 10100, 796, 13538, 201, 198, 197, 197, 437, 201, 198, 197, 197, 35235, 7203, 59, 83, 1, 1635, 4731, 7, 7575, 7, 22355, 58, 83, 4357, 7568, 16762, 4008, 1635, 366, 4613, 366, 1635, 4731, 7, 7575, 7, 22355, 58, 83, 10, 16, 4357, 7568, 16762, 4008, 1635, 288, 83, 10100, 8, 201, 198, 197, 197, 16345, 7575, 15853, 288, 83, 201, 198, 197, 437, 201, 198, 197, 201, 198, 197, 2, 20664, 1271, 286, 1661, 1813, 201, 198, 197, 361, 318, 5088, 7, 13664, 7, 22355, 4008, 201, 198, 197, 197, 9122, 448, 7575, 796, 3862, 7, 7575, 7, 22355, 58, 437, 35944, 8625, 415, 1343, 3061, 13, 8625, 415, 532, 2160, 7575, 13, 8625, 415, 8, 201, 198, 197, 197, 35235, 7203, 59, 83, 1, 1635, 4731, 7, 7575, 7, 22355, 58, 437, 4357, 7568, 16762, 4008, 1635, 366, 4613, 366, 1635, 4731, 7, 9122, 448, 7575, 8, 1635, 366, 357, 32935, 257, 1336, 670, 1110, 8, 4943, 201, 198, 197, 437, 201, 198, 197, 201, 198, 197, 2, 8125, 27797, 201, 198, 197, 197, 361, 3061, 12, 16345, 7575, 1875, 18008, 577, 17561, 7, 15, 8, 201, 198, 197, 197, 35235, 7203, 59, 77, 14957, 25, 366, 1635, 4731, 7, 16345, 7575, 8, 1635, 1600, 220, 366, 1635, 4731, 7, 35, 689, 13, 49883, 605, 1096, 7, 35, 689, 13, 7293, 633, 5990, 2101, 7, 35231, 12, 16345, 7575, 22305, 1635, 366, 5637, 4943, 201, 198, 197, 17772, 201, 198, 197, 197, 35235, 7203, 59, 77, 14957, 25, 366, 1635, 4731, 7, 16345, 7575, 8, 1635, 33172, 220, 1343, 1, 1635, 4731, 7, 35, 689, 13, 49883, 605, 1096, 7, 35, 689, 13, 7293, 633, 5990, 2101, 7, 16345, 7575, 12, 35231, 35514, 201, 198, 197, 437, 201, 198, 437 ]
2.399213
1,017
using IntervalOptimization using Test @testset "IntervalOptimization.jl" begin # Write your tests here. end
[ 3500, 4225, 2100, 27871, 320, 1634, 198, 3500, 6208, 198, 198, 31, 9288, 2617, 366, 9492, 2100, 27871, 320, 1634, 13, 20362, 1, 2221, 198, 220, 220, 220, 1303, 19430, 534, 5254, 994, 13, 198, 437, 198 ]
3.054054
37
using Nextion using Nextion.Event: TouchEvent, CurrentPageIDHeadEvent, PositionHeadEvent, SleepPositionHeadEvent, StringHeadEvent, NumberHeadEvent using Nextion.Event.Touch using Test @testset "Events" begin @testset "TouchEvent" begin @testset "Constants" begin @test Integer(Touch.Press) == 0x01 @test Integer(Touch.Release) == 0x00 @test Touch.code(0x01) == Touch.Press @test Touch.code(0x00) == Touch.Release end @testset "Event" begin msg = [0x65, 0x00, 0x02, 0x01, 0xff, 0xff, 0xff] evt = TouchEvent(msg) @test evt.code == Return.Code.EVENT_TOUCH_HEAD @test evt.pid == PageID(0x00) @test evt.cid == ComponentID(0x02) @test evt.tevts == Touch.Press # touch event state end end @testset "CurrentPageIDHeadEvent" begin msg = [0x66, 0x02, 0xff, 0xff, 0xff] evt = CurrentPageIDHeadEvent(msg) @test evt.code == Return.Code.CURRENT_PAGE_ID_HEAD @test evt.pid == PageID(0x02) end @testset "PositionHeadEvent" begin msg = [0x67, 0x00, 0x7a, 0x00, 0x1e, 0x01, 0xff, 0xff, 0xff] evt = PositionHeadEvent(msg) @test evt.code == Return.Code.EVENT_POSITION_HEAD @test evt.x == UInt16(122) @test evt.y == UInt16(30) @test evt.tevts == Touch.Press end @testset "SleepPositionHeadEvent" begin msg = [0x68, 0x00, 0x7a, 0x00, 0x1e, 0x01, 0xff, 0xff, 0xff] evt = SleepPositionHeadEvent(msg) @test evt.code == Return.Code.EVENT_SLEEP_POSITION_HEAD @test evt.x == UInt16(122) @test evt.y == UInt16(30) @test evt.tevts == Touch.Press end @testset "StringHeadEvent" begin msg = [0x70, 0x61, 0x62, 0x63, 0xff, 0xff, 0xff] evt = StringHeadEvent(msg) @test evt.code == Return.Code.STRING_HEAD @test evt.value == "abc" end @testset "NumberHeadEvent" begin msg = [0x71, 0x66, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff] evt = NumberHeadEvent(msg) @test evt.code == Return.Code.NUMBER_HEAD @test evt.value == 102 msg = [0x71, 0x66, 0x01, 0x00, 0x00, 0xff, 0xff, 0xff] evt = NumberHeadEvent(msg) @test evt.value == 0x00000166 # 102 + 256 msg = [0x71, 0x01, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff] evt = NumberHeadEvent(msg) @test evt.value == 0x0000ff01 # 65281 msg = [0x71, 0x01, 0x00, 0xff, 0x00, 0xff, 0xff, 0xff] evt = NumberHeadEvent(msg) @test evt.value == 0x00ff0001 # 16711681 msg = [0x71, 0x01, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff] evt = NumberHeadEvent(msg) @test evt.value == 0xff000001 msg = [0x71, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff] evt = NumberHeadEvent(msg) @test evt.value == typemax(Int32) msg = [0x71, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff] evt = NumberHeadEvent(msg) @test evt.value == 0xfffffffe @test evt.signedvalue == -2 msg = [0x71, 0x00, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff] evt = NumberHeadEvent(msg) @test evt.value == 0x80000000 @test evt.signedvalue == typemin(Int32) end end
[ 3500, 7406, 295, 198, 3500, 7406, 295, 13, 9237, 25, 15957, 9237, 11, 9236, 9876, 2389, 13847, 9237, 11, 23158, 13847, 9237, 11, 17376, 26545, 13847, 9237, 11, 10903, 13847, 9237, 11, 7913, 13847, 9237, 198, 3500, 7406, 295, 13, 9237, 13, 35211, 198, 3500, 6208, 628, 198, 31, 9288, 2617, 366, 37103, 1, 2221, 628, 220, 220, 220, 2488, 9288, 2617, 366, 35211, 9237, 1, 2221, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 366, 34184, 1187, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 34142, 7, 35211, 13, 13800, 8, 6624, 657, 87, 486, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 34142, 7, 35211, 13, 26362, 8, 6624, 657, 87, 405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 15957, 13, 8189, 7, 15, 87, 486, 8, 6624, 15957, 13, 13800, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 15957, 13, 8189, 7, 15, 87, 405, 8, 6624, 15957, 13, 26362, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 2617, 366, 9237, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 2996, 11, 657, 87, 405, 11, 657, 87, 2999, 11, 657, 87, 486, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 15957, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8189, 6624, 8229, 13, 10669, 13, 20114, 3525, 62, 51, 2606, 3398, 62, 37682, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 35317, 6624, 7873, 2389, 7, 15, 87, 405, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 66, 312, 6624, 35100, 2389, 7, 15, 87, 2999, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 660, 85, 912, 6624, 15957, 13, 13800, 220, 1303, 3638, 1785, 1181, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 198, 220, 220, 220, 2488, 9288, 2617, 366, 11297, 9876, 2389, 13847, 9237, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 2791, 11, 657, 87, 2999, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 9236, 9876, 2389, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8189, 6624, 8229, 13, 10669, 13, 34, 39237, 62, 4537, 8264, 62, 2389, 62, 37682, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 35317, 6624, 7873, 2389, 7, 15, 87, 2999, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 9288, 2617, 366, 26545, 13847, 9237, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 3134, 11, 657, 87, 405, 11, 657, 87, 22, 64, 11, 657, 87, 405, 11, 657, 87, 16, 68, 11, 657, 87, 486, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 23158, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8189, 6624, 8229, 13, 10669, 13, 20114, 3525, 62, 37997, 17941, 62, 37682, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 87, 6624, 471, 5317, 1433, 7, 18376, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 88, 6624, 471, 5317, 1433, 7, 1270, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 660, 85, 912, 6624, 15957, 13, 13800, 198, 220, 220, 220, 886, 628, 198, 220, 220, 220, 2488, 9288, 2617, 366, 40555, 26545, 13847, 9237, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 3104, 11, 657, 87, 405, 11, 657, 87, 22, 64, 11, 657, 87, 405, 11, 657, 87, 16, 68, 11, 657, 87, 486, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 17376, 26545, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8189, 6624, 8229, 13, 10669, 13, 20114, 3525, 62, 50, 2538, 8905, 62, 37997, 17941, 62, 37682, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 87, 6624, 471, 5317, 1433, 7, 18376, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 88, 6624, 471, 5317, 1433, 7, 1270, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 660, 85, 912, 6624, 15957, 13, 13800, 198, 220, 220, 220, 886, 628, 198, 220, 220, 220, 2488, 9288, 2617, 366, 10100, 13847, 9237, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 2154, 11, 657, 87, 5333, 11, 657, 87, 5237, 11, 657, 87, 5066, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 10903, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8189, 6624, 8229, 13, 10669, 13, 18601, 2751, 62, 37682, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8367, 6624, 366, 39305, 1, 198, 220, 220, 220, 886, 628, 198, 220, 220, 220, 2488, 9288, 2617, 366, 15057, 13847, 9237, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 4869, 11, 657, 87, 2791, 11, 657, 87, 405, 11, 657, 87, 405, 11, 657, 87, 405, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 7913, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8189, 6624, 8229, 13, 10669, 13, 41359, 13246, 62, 37682, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8367, 6624, 15143, 628, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 4869, 11, 657, 87, 2791, 11, 657, 87, 486, 11, 657, 87, 405, 11, 657, 87, 405, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 7913, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8367, 6624, 657, 87, 2388, 486, 2791, 1303, 15143, 1343, 17759, 628, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 4869, 11, 657, 87, 486, 11, 657, 47596, 11, 657, 87, 405, 11, 657, 87, 405, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 7913, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8367, 6624, 657, 87, 2388, 487, 486, 1303, 6135, 30368, 628, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 4869, 11, 657, 87, 486, 11, 657, 87, 405, 11, 657, 47596, 11, 657, 87, 405, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 7913, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8367, 6624, 657, 87, 405, 487, 18005, 1303, 26118, 1157, 48564, 628, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 4869, 11, 657, 87, 486, 11, 657, 87, 405, 11, 657, 87, 405, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 7913, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8367, 6624, 657, 47596, 2388, 486, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 4869, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 11, 657, 87, 22, 69, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 7913, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8367, 6624, 2170, 368, 897, 7, 5317, 2624, 8, 628, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 4869, 11, 657, 87, 5036, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 7913, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8367, 6624, 657, 87, 12927, 487, 5036, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 32696, 8367, 6624, 532, 17, 628, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 685, 15, 87, 4869, 11, 657, 87, 405, 11, 657, 87, 405, 11, 657, 87, 405, 11, 657, 87, 1795, 11, 657, 47596, 11, 657, 47596, 11, 657, 47596, 60, 198, 220, 220, 220, 220, 220, 220, 220, 819, 83, 796, 7913, 13847, 9237, 7, 19662, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 8367, 6624, 657, 87, 23, 24598, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, 819, 83, 13, 32696, 8367, 6624, 2170, 14857, 7, 5317, 2624, 8, 628, 198, 220, 220, 220, 886, 198, 198, 437, 198 ]
1.953599
1,681
# Debug.Flow: # ============= # Flow control for interactive debug trap module Flow using Debug.Meta, Debug.AST, Debug.Runtime, Debug.Graft, Debug.Eval import Debug.AST.is_emittable, Base.isequal export @bp, BPNode, DBState export continue!, singlestep!, stepover!, stepout! ## BreakPoint ## type BreakPoint; end typealias BPNode Node{BreakPoint} is_emittable(::BPNode) = false macro bp(args...) code_bp(args...) end code_bp() = Node(BreakPoint()) code_bp(pred) = :($(esc(pred)) ? $(code_bp()) : nothing) is_trap(::BPNode) = true is_trap(::Event) = true is_trap(node::Node) = is_evaluable(node) && isblocknode(parentof(node)) instrument(trap_ex, ex) = Graft.instrument(is_trap, trap_ex, ex) ## Cond ## abstract Cond type Continue <: Cond; end type SingleStep <: Cond; end type ContinueInside <: Cond; frame::Frame; outside::Cond; end type StepOver <: Cond; end does_trap(::SingleStep) = true does_trap(::Continue) = false does_trap(::ContinueInside) = false does_trap(::StepOver) = true leave(cond::ContinueInside, f::Frame) = (cond.frame == f ? cond.outside : cond) enter(cond::StepOver, frame::Frame) = ContinueInside(frame, cond) leave(cond::StepOver, frame::Frame) = SingleStep() enter(cond::Cond, ::Frame) = cond leave(cond::Cond, ::Frame) = cond ## DBState ## type DBState cond::Cond breakpoints::Set{Node} ignore_bp::Set{Node} grafts::Dict{Node,Any} DBState() = new(Continue(), Set{Node}(), Set{Node}(), Dict{Node,Any}()) end continue!( s::DBState) = (s.cond = Continue()) singlestep!(s::DBState) = (s.cond = SingleStep()) stepover!( s::DBState) = (s.cond = StepOver()) function stepout!(st::DBState, node::Node, s::Scope) st.cond = ContinueInside(enclosing_scope_frame(Frame(node,s)),SingleStep()) end function pretrap(state::DBState, e::Enter, s::Scope) state.cond = enter(state.cond, Frame(e.node, s)) false end function pretrap(state::DBState, e::Leave, s::Scope) state.cond = leave(state.cond, Frame(e.node, s)) false end function pretrap(st::DBState, node::Node, s::Scope) if (isa(node,BPNode)&&!(node in st.ignore_bp)) || (node in st.breakpoints) singlestep!(st) end does_trap(st.cond) end posttrap(state::DBState, node, s::Scope) = nothing function posttrap(state::DBState, node::Node, s::Scope) if haskey(state.grafts, node) debug_eval(s, state.grafts[node]) end nothing end end # module
[ 198, 2, 220, 220, 31687, 13, 37535, 25, 198, 2, 796, 25609, 198, 2, 27782, 1630, 329, 14333, 14257, 12840, 198, 198, 21412, 27782, 198, 3500, 31687, 13, 48526, 11, 31687, 13, 11262, 11, 31687, 13, 41006, 11, 31687, 13, 38, 1617, 11, 31687, 13, 36, 2100, 198, 11748, 31687, 13, 11262, 13, 271, 62, 368, 715, 540, 11, 7308, 13, 786, 13255, 198, 39344, 2488, 46583, 11, 347, 13137, 1098, 11, 20137, 9012, 198, 39344, 2555, 28265, 1702, 32712, 538, 28265, 2239, 2502, 28265, 2239, 448, 0, 628, 198, 2235, 12243, 12727, 22492, 198, 4906, 12243, 12727, 26, 886, 198, 4906, 26011, 347, 13137, 1098, 19081, 90, 31737, 12727, 92, 198, 271, 62, 368, 715, 540, 7, 3712, 33, 13137, 1098, 8, 796, 3991, 198, 198, 20285, 305, 275, 79, 7, 22046, 23029, 198, 220, 220, 220, 2438, 62, 46583, 7, 22046, 23029, 198, 437, 198, 8189, 62, 46583, 3419, 220, 220, 220, 220, 796, 19081, 7, 31737, 12727, 28955, 198, 8189, 62, 46583, 7, 28764, 8, 796, 1058, 16763, 7, 3798, 7, 28764, 4008, 5633, 29568, 8189, 62, 46583, 28955, 1058, 2147, 8, 198, 198, 271, 62, 46670, 7, 3712, 33, 13137, 1098, 8, 220, 220, 796, 2081, 198, 271, 62, 46670, 7, 3712, 9237, 8, 220, 220, 220, 796, 2081, 198, 271, 62, 46670, 7, 17440, 3712, 19667, 8, 796, 318, 62, 18206, 7153, 7, 17440, 8, 11405, 318, 9967, 17440, 7, 8000, 1659, 7, 17440, 4008, 198, 198, 259, 43872, 7, 46670, 62, 1069, 11, 409, 8, 796, 402, 1617, 13, 259, 43872, 7, 271, 62, 46670, 11, 12840, 62, 1069, 11, 409, 8, 628, 198, 2235, 9724, 22492, 198, 397, 8709, 9724, 198, 198, 4906, 10054, 220, 220, 1279, 25, 9724, 26, 886, 198, 4906, 14206, 8600, 1279, 25, 9724, 26, 886, 198, 198, 4906, 10054, 24441, 1279, 25, 9724, 26, 5739, 3712, 19778, 26, 2354, 3712, 25559, 26, 886, 198, 4906, 5012, 5886, 220, 220, 220, 220, 220, 220, 1279, 25, 9724, 26, 886, 198, 198, 22437, 62, 46670, 7, 3712, 28008, 8600, 8, 220, 220, 220, 220, 796, 2081, 198, 22437, 62, 46670, 7, 3712, 29453, 8, 220, 220, 220, 220, 220, 220, 796, 3991, 198, 22437, 62, 46670, 7, 3712, 29453, 24441, 8, 796, 3991, 198, 22437, 62, 46670, 7, 3712, 8600, 5886, 8, 220, 220, 220, 220, 220, 220, 796, 2081, 198, 198, 47408, 7, 17561, 3712, 29453, 24441, 11, 277, 3712, 19778, 8, 796, 357, 17561, 13, 14535, 6624, 277, 5633, 1779, 13, 43435, 1058, 1779, 8, 198, 198, 9255, 7, 17561, 3712, 8600, 5886, 11, 5739, 3712, 19778, 8, 796, 10054, 24441, 7, 14535, 11, 1779, 8, 198, 47408, 7, 17561, 3712, 8600, 5886, 11, 5739, 3712, 19778, 8, 796, 14206, 8600, 3419, 198, 198, 9255, 7, 17561, 3712, 25559, 11, 7904, 19778, 8, 796, 1779, 198, 47408, 7, 17561, 3712, 25559, 11, 7904, 19778, 8, 796, 1779, 628, 198, 2235, 20137, 9012, 22492, 198, 4906, 20137, 9012, 198, 220, 220, 220, 1779, 3712, 25559, 198, 220, 220, 220, 2270, 13033, 3712, 7248, 90, 19667, 92, 198, 220, 220, 220, 8856, 62, 46583, 3712, 7248, 90, 19667, 92, 198, 220, 220, 220, 38455, 82, 3712, 35, 713, 90, 19667, 11, 7149, 92, 198, 220, 220, 220, 20137, 9012, 3419, 796, 649, 7, 29453, 22784, 5345, 90, 19667, 92, 22784, 5345, 90, 19667, 92, 22784, 360, 713, 90, 19667, 11, 7149, 92, 28955, 198, 437, 198, 198, 43043, 0, 7, 220, 264, 3712, 11012, 9012, 8, 796, 357, 82, 13, 17561, 796, 10054, 28955, 198, 12215, 32712, 538, 0, 7, 82, 3712, 11012, 9012, 8, 796, 357, 82, 13, 17561, 796, 14206, 8600, 28955, 198, 9662, 2502, 0, 7, 220, 264, 3712, 11012, 9012, 8, 796, 357, 82, 13, 17561, 796, 5012, 5886, 28955, 198, 8818, 2239, 448, 0, 7, 301, 3712, 11012, 9012, 11, 10139, 3712, 19667, 11, 264, 3712, 43642, 8, 198, 220, 220, 220, 336, 13, 17561, 796, 10054, 24441, 7, 268, 565, 2752, 62, 29982, 62, 14535, 7, 19778, 7, 17440, 11, 82, 36911, 28008, 8600, 28955, 198, 437, 198, 198, 8818, 2181, 2416, 7, 5219, 3712, 11012, 9012, 11, 304, 3712, 17469, 11, 264, 3712, 43642, 8, 198, 220, 220, 220, 1181, 13, 17561, 796, 3802, 7, 5219, 13, 17561, 11, 25184, 7, 68, 13, 17440, 11, 264, 4008, 198, 220, 220, 220, 3991, 198, 437, 198, 8818, 2181, 2416, 7, 5219, 3712, 11012, 9012, 11, 304, 3712, 35087, 11, 264, 3712, 43642, 8, 220, 198, 220, 220, 220, 1181, 13, 17561, 796, 2666, 7, 5219, 13, 17561, 11, 25184, 7, 68, 13, 17440, 11, 264, 4008, 198, 220, 220, 220, 3991, 198, 437, 198, 8818, 2181, 2416, 7, 301, 3712, 11012, 9012, 11, 10139, 3712, 19667, 11, 264, 3712, 43642, 8, 198, 220, 220, 220, 611, 357, 9160, 7, 17440, 11, 33, 13137, 1098, 8, 25226, 0, 7, 17440, 287, 336, 13, 46430, 62, 46583, 4008, 8614, 357, 17440, 287, 336, 13, 9032, 13033, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1702, 32712, 538, 0, 7, 301, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 857, 62, 46670, 7, 301, 13, 17561, 8, 220, 220, 220, 220, 198, 437, 198, 198, 7353, 46670, 7, 5219, 3712, 11012, 9012, 11, 10139, 11, 264, 3712, 43642, 8, 796, 2147, 198, 8818, 1281, 46670, 7, 5219, 3712, 11012, 9012, 11, 10139, 3712, 19667, 11, 264, 3712, 43642, 8, 198, 220, 220, 220, 611, 468, 2539, 7, 5219, 13, 70, 1617, 82, 11, 10139, 8, 198, 220, 220, 220, 220, 220, 220, 220, 14257, 62, 18206, 7, 82, 11, 1181, 13, 70, 1617, 82, 58, 17440, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2147, 198, 437, 198, 198, 437, 1303, 8265, 198 ]
2.577287
951
include("./RPSAgents.jl") import Pkg Pkg.add("StatsBase") Pkg.add("Distributions") using StatsBase, Distributions using .RPSAgents function evaluate(agent1, agent2, steps) # Hàm đánh giá 2 agent đầu vào bằng cách cho chúng đấu với nhau score = 0 # Số lượt thắng của agent1 tie = 0 # Số lượt hòa của agent1 agent1_last_step, agent2_last_step = 0, 0 for i in 0:steps-1 agent1_observation = Dict( "step" => i, "lastOpponentAction" => agent2_last_step ) agent2_observation = Dict( "step" => i, "lastOpponentAction" => agent1_last_step ) # 2 agent lần lượt ra quyết định agent1_action = agent1.run(agent1_observation) agent2_action = agent2.run(agent2_observation) if(agent1_action == agent2_action) tie += 1 else counter_agent1_action = (agent1_action + 1) % 3 if(agent2_action == counter_agent1_action) score += 0 else score += 1 end end agent1_last_step = agent1_action agent2_last_step = agent2_action end return score, steps - score - tie end function compare() # Thực nghiệm so sánh ThompsonSamplingAgent với các agent khác # Danh sách các agent để so sánh với agent của chúng ta agents = Dict( "random_agent" => RandomAgent(), "only_scissor_agent" => OnlyScissorAgent(), "only_rock_agent" => OnlyRockAgent(), "only_paper_agent" => OnlyPaperAgent(), "copy_agent" => CopyAgent(), "freq_counting_agent" => FreqCountingAgent(), "counter_last_action_agent" => CounterLastActionAgent(), "markov_agent" => MarkovAgent(), "thompson_sampling_agent" = ThompsonSamplingAgent() ) for (name, agent) in agents ourScores = [] oppoScores = [] usedAgents = Dict( "random_agent" => [], "only_scissor_agent" => [], "only_rock_agent" => [], "only_paper_agent" => [], "copy_agent" => [], "freq_counting_agent" => [], "counter_last_action_agent" => [] ) for i in (1:5) our_agent = ThompsonSamplingAgent() score1, score2 = evaluate(our_agent, agent, 1000) append!(ourScores, score1) append!(oppoScores, score2) for (agentName, agentCount) in our_agent.agent_count append!(usedAgents[agentName], agentCount) end end println("\n ----------------- \n") println(name) println("Our score: ", ourScores) println("Oppo score: ", oppoScores) println("Used agents: ") for (agentName, agentCounts) in usedAgents println("Mean used ", agentName, ": ", agentCounts) end end end compare()
[ 17256, 7, 1911, 14, 49, 3705, 10262, 658, 13, 20362, 4943, 198, 11748, 350, 10025, 198, 47, 10025, 13, 2860, 7203, 29668, 14881, 4943, 198, 47, 10025, 13, 2860, 7203, 20344, 2455, 507, 4943, 198, 3500, 20595, 14881, 11, 46567, 507, 198, 3500, 764, 49, 3705, 10262, 658, 198, 198, 8818, 13446, 7, 25781, 16, 11, 5797, 17, 11, 4831, 8, 198, 220, 1303, 367, 24247, 76, 34754, 239, 21162, 71, 308, 72, 6557, 362, 5797, 34754, 239, 157, 118, 100, 84, 410, 24247, 78, 275, 157, 118, 109, 782, 269, 6557, 354, 1727, 442, 21356, 782, 34754, 239, 157, 118, 98, 84, 410, 157, 119, 249, 72, 299, 71, 559, 198, 220, 4776, 796, 657, 1303, 311, 157, 119, 239, 300, 130, 108, 157, 119, 96, 83, 294, 157, 118, 107, 782, 269, 157, 119, 100, 64, 5797, 16, 198, 220, 9839, 796, 657, 1303, 311, 157, 119, 239, 300, 130, 108, 157, 119, 96, 83, 289, 127, 110, 64, 269, 157, 119, 100, 64, 5797, 16, 198, 220, 5797, 16, 62, 12957, 62, 9662, 11, 5797, 17, 62, 12957, 62, 9662, 796, 657, 11, 657, 198, 220, 329, 1312, 287, 657, 25, 20214, 12, 16, 198, 220, 220, 220, 5797, 16, 62, 672, 3168, 341, 796, 360, 713, 7, 198, 220, 220, 220, 220, 220, 366, 9662, 1, 5218, 1312, 11, 198, 220, 220, 220, 220, 220, 366, 12957, 27524, 3471, 12502, 1, 5218, 5797, 17, 62, 12957, 62, 9662, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 5797, 17, 62, 672, 3168, 341, 796, 360, 713, 7, 198, 220, 220, 220, 220, 220, 366, 9662, 1, 5218, 1312, 11, 198, 220, 220, 220, 220, 220, 366, 12957, 27524, 3471, 12502, 1, 5218, 5797, 16, 62, 12957, 62, 9662, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 1303, 362, 5797, 300, 157, 118, 100, 77, 300, 130, 108, 157, 119, 96, 83, 2179, 627, 88, 157, 118, 123, 83, 34754, 239, 157, 119, 233, 77, 71, 198, 220, 220, 220, 5797, 16, 62, 2673, 796, 5797, 16, 13, 5143, 7, 25781, 16, 62, 672, 3168, 341, 8, 198, 220, 220, 220, 5797, 17, 62, 2673, 796, 5797, 17, 13, 5143, 7, 25781, 17, 62, 672, 3168, 341, 8, 198, 220, 220, 220, 611, 7, 25781, 16, 62, 2673, 6624, 5797, 17, 62, 2673, 8, 198, 220, 220, 220, 220, 220, 9839, 15853, 352, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 3753, 62, 25781, 16, 62, 2673, 796, 357, 25781, 16, 62, 2673, 1343, 352, 8, 4064, 513, 198, 220, 220, 220, 220, 220, 611, 7, 25781, 17, 62, 2673, 6624, 3753, 62, 25781, 16, 62, 2673, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4776, 15853, 657, 198, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 4776, 15853, 352, 198, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 5797, 16, 62, 12957, 62, 9662, 796, 5797, 16, 62, 2673, 198, 220, 220, 220, 5797, 17, 62, 12957, 62, 9662, 796, 5797, 17, 62, 2673, 198, 220, 886, 198, 220, 1441, 4776, 11, 4831, 532, 4776, 532, 9839, 198, 437, 198, 198, 8818, 8996, 3419, 198, 220, 1303, 536, 157, 119, 109, 66, 299, 456, 72, 157, 119, 229, 76, 523, 264, 21162, 71, 11654, 16305, 11347, 36772, 410, 157, 119, 249, 72, 269, 6557, 66, 5797, 44081, 6557, 66, 198, 220, 1303, 6035, 71, 264, 6557, 354, 269, 6557, 66, 5797, 34754, 239, 157, 119, 225, 523, 264, 21162, 71, 410, 157, 119, 249, 72, 5797, 269, 157, 119, 100, 64, 442, 21356, 782, 20486, 198, 220, 6554, 796, 360, 713, 7, 198, 220, 220, 220, 366, 25120, 62, 25781, 1, 5218, 14534, 36772, 22784, 198, 220, 220, 220, 366, 8807, 62, 1416, 747, 273, 62, 25781, 1, 5218, 5514, 3351, 747, 273, 36772, 22784, 198, 220, 220, 220, 366, 8807, 62, 10823, 62, 25781, 1, 5218, 5514, 19665, 36772, 22784, 198, 220, 220, 220, 366, 8807, 62, 20189, 62, 25781, 1, 5218, 5514, 42950, 36772, 22784, 198, 220, 220, 220, 366, 30073, 62, 25781, 1, 5218, 17393, 36772, 22784, 198, 220, 220, 220, 366, 19503, 80, 62, 9127, 278, 62, 25781, 1, 5218, 4848, 80, 12332, 278, 36772, 22784, 198, 220, 220, 220, 366, 24588, 62, 12957, 62, 2673, 62, 25781, 1, 5218, 15034, 5956, 12502, 36772, 22784, 198, 220, 220, 220, 366, 4102, 709, 62, 25781, 1, 5218, 2940, 709, 36772, 22784, 198, 220, 220, 220, 366, 400, 296, 8430, 62, 37687, 11347, 62, 25781, 1, 796, 11654, 16305, 11347, 36772, 3419, 198, 220, 1267, 198, 220, 329, 357, 3672, 11, 5797, 8, 287, 6554, 198, 220, 220, 220, 674, 3351, 2850, 796, 17635, 198, 220, 220, 220, 1269, 78, 3351, 2850, 796, 17635, 198, 220, 220, 220, 973, 10262, 658, 796, 360, 713, 7, 198, 220, 220, 220, 366, 25120, 62, 25781, 1, 5218, 685, 4357, 198, 220, 220, 220, 366, 8807, 62, 1416, 747, 273, 62, 25781, 1, 5218, 685, 4357, 198, 220, 220, 220, 366, 8807, 62, 10823, 62, 25781, 1, 5218, 685, 4357, 198, 220, 220, 220, 366, 8807, 62, 20189, 62, 25781, 1, 5218, 685, 4357, 198, 220, 220, 220, 366, 30073, 62, 25781, 1, 5218, 685, 4357, 198, 220, 220, 220, 366, 19503, 80, 62, 9127, 278, 62, 25781, 1, 5218, 685, 4357, 198, 220, 220, 220, 366, 24588, 62, 12957, 62, 2673, 62, 25781, 1, 5218, 17635, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 329, 1312, 287, 357, 16, 25, 20, 8, 198, 220, 220, 220, 220, 220, 674, 62, 25781, 796, 11654, 16305, 11347, 36772, 3419, 198, 220, 220, 220, 220, 220, 4776, 16, 11, 4776, 17, 796, 13446, 7, 454, 62, 25781, 11, 5797, 11, 8576, 8, 198, 220, 220, 220, 220, 220, 24443, 0, 7, 454, 3351, 2850, 11, 4776, 16, 8, 198, 220, 220, 220, 220, 220, 24443, 0, 7, 10365, 78, 3351, 2850, 11, 4776, 17, 8, 198, 220, 220, 220, 220, 220, 329, 357, 25781, 5376, 11, 5797, 12332, 8, 287, 674, 62, 25781, 13, 25781, 62, 9127, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 0, 7, 1484, 10262, 658, 58, 25781, 5376, 4357, 5797, 12332, 8, 198, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 44872, 7203, 59, 77, 34400, 12, 3467, 77, 4943, 198, 220, 220, 220, 44872, 7, 3672, 8, 198, 220, 220, 220, 44872, 7203, 5122, 4776, 25, 33172, 674, 3351, 2850, 8, 198, 220, 220, 220, 44872, 7203, 46, 16634, 4776, 25, 33172, 1269, 78, 3351, 2850, 8, 198, 220, 220, 220, 44872, 7203, 38052, 6554, 25, 366, 8, 198, 220, 220, 220, 329, 357, 25781, 5376, 11, 5797, 12332, 82, 8, 287, 973, 10262, 658, 198, 220, 220, 220, 220, 220, 44872, 7203, 5308, 272, 973, 33172, 5797, 5376, 11, 366, 25, 33172, 5797, 12332, 82, 8, 198, 220, 220, 220, 886, 198, 220, 886, 198, 437, 198, 5589, 533, 3419, 628 ]
2.202401
1,166
function interpolate_state(mdp::CarMDP, s::CarMDPState) # interpolate s in the grid vspace = get_car_vspace(mdp.env, mdp.vel_res) itp_car, itp_car_w = interpolate_state(mdp, s.car, vspace) itp_ego, itp_ego_w = interpolate_state(mdp, s.ego, vspace) itp_states = Vector{CarMDPState}(length(itp_ego)*length(itp_car)) itp_w = Vector{Float64}(length(itp_states)) k = 1 for (i, c) in enumerate(itp_car) for (j, e) in enumerate(itp_ego) crash = is_colliding(Vehicle(c, mdp.car_type, 0), Vehicle(e, mdp.ego_type, 1)) itp_states[k] = CarMDPState(crash, e, c, s.route) itp_w[k] = itp_car_w[i]*itp_ego_w[j] k += 1 end end @assert sum(itp_w) ≈ 1. return itp_states, itp_w end function get_mdp_state(mdp::CarMDP, pomdp::UrbanPOMDP, s::Scene, car_id = 2) car_i = findfirst(car_id, s) car = Vehicle(get_off_the_grid(mdp), mdp.car_type, car_id) if car_i != nothing car = s[car_i] end ego = get_ego(s) sroute = SVector{0, Lane}() # find route sroute = nothing if haskey(pomdp.models, car_id) && car_i != nothing # find the exact route from the list of routes curr_route = [l.tag for l in pomdp.models[car_id].navigator.route] for route in get_car_routes(mdp.env) tags = intersect(Set(curr_route), Set(route)) if length(tags) >= 2 sroute = SVector{2, LaneTag}(route[1], route[end]) elseif length(curr_route) == 1 && curr_route[1] ∈ route sroute = SVector{2, LaneTag}(route[1], route[end]) end end if sroute == nothing println(curr_route) end else sroute = SVector{2, LaneTag}(LaneTag(0,0), LaneTag(0,0)) end e_state = VehicleState(ego.state.posG, car_roadway(mdp.env), ego.state.v) c_state = VehicleState(car.state.posG, mdp.env.roadway, car.state.v) return CarMDPState(is_colliding(ego, car), e_state, c_state, sroute) end
[ 8818, 39555, 378, 62, 5219, 7, 9132, 79, 3712, 9914, 44, 6322, 11, 264, 3712, 9914, 44, 6322, 9012, 8, 201, 198, 220, 220, 220, 1303, 39555, 378, 264, 287, 262, 10706, 201, 198, 220, 220, 220, 410, 13200, 796, 651, 62, 7718, 62, 85, 13200, 7, 9132, 79, 13, 24330, 11, 285, 26059, 13, 626, 62, 411, 8, 201, 198, 220, 220, 220, 340, 79, 62, 7718, 11, 340, 79, 62, 7718, 62, 86, 796, 39555, 378, 62, 5219, 7, 9132, 79, 11, 264, 13, 7718, 11, 410, 13200, 8, 201, 198, 220, 220, 220, 340, 79, 62, 1533, 78, 11, 340, 79, 62, 1533, 78, 62, 86, 796, 39555, 378, 62, 5219, 7, 9132, 79, 11, 264, 13, 1533, 78, 11, 410, 13200, 8, 201, 198, 220, 220, 220, 340, 79, 62, 27219, 796, 20650, 90, 9914, 44, 6322, 9012, 92, 7, 13664, 7, 270, 79, 62, 1533, 78, 27493, 13664, 7, 270, 79, 62, 7718, 4008, 201, 198, 220, 220, 220, 340, 79, 62, 86, 796, 20650, 90, 43879, 2414, 92, 7, 13664, 7, 270, 79, 62, 27219, 4008, 201, 198, 220, 220, 220, 479, 796, 352, 201, 198, 220, 220, 220, 329, 357, 72, 11, 269, 8, 287, 27056, 378, 7, 270, 79, 62, 7718, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 73, 11, 304, 8, 287, 27056, 378, 7, 270, 79, 62, 1533, 78, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7014, 796, 318, 62, 26000, 2530, 7, 37870, 1548, 7, 66, 11, 285, 26059, 13, 7718, 62, 4906, 11, 657, 828, 21501, 7, 68, 11, 285, 26059, 13, 1533, 78, 62, 4906, 11, 352, 4008, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 79, 62, 27219, 58, 74, 60, 796, 1879, 44, 6322, 9012, 7, 6098, 1077, 11, 304, 11, 269, 11, 264, 13, 38629, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 79, 62, 86, 58, 74, 60, 796, 340, 79, 62, 7718, 62, 86, 58, 72, 60, 9, 270, 79, 62, 1533, 78, 62, 86, 58, 73, 60, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 15853, 352, 201, 198, 220, 220, 220, 220, 220, 220, 220, 886, 201, 198, 220, 220, 220, 886, 201, 198, 220, 220, 220, 2488, 30493, 2160, 7, 270, 79, 62, 86, 8, 15139, 230, 352, 13, 201, 198, 220, 220, 220, 1441, 340, 79, 62, 27219, 11, 340, 79, 62, 86, 201, 198, 437, 201, 198, 201, 198, 201, 198, 8818, 651, 62, 9132, 79, 62, 5219, 7, 9132, 79, 3712, 9914, 44, 6322, 11, 279, 296, 26059, 3712, 46667, 47, 2662, 6322, 11, 264, 3712, 36542, 11, 1097, 62, 312, 796, 362, 8, 201, 198, 220, 220, 220, 1097, 62, 72, 796, 1064, 11085, 7, 7718, 62, 312, 11, 264, 8, 201, 198, 220, 220, 220, 1097, 796, 21501, 7, 1136, 62, 2364, 62, 1169, 62, 25928, 7, 9132, 79, 828, 285, 26059, 13, 7718, 62, 4906, 11, 1097, 62, 312, 8, 201, 198, 220, 220, 220, 611, 1097, 62, 72, 14512, 2147, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1097, 796, 264, 58, 7718, 62, 72, 60, 201, 198, 220, 220, 220, 886, 201, 198, 220, 220, 220, 19225, 796, 651, 62, 1533, 78, 7, 82, 8, 201, 198, 220, 220, 220, 19677, 13192, 796, 20546, 9250, 90, 15, 11, 15016, 92, 3419, 201, 198, 220, 220, 220, 1303, 1064, 6339, 220, 201, 198, 220, 220, 220, 19677, 13192, 796, 2147, 201, 198, 220, 220, 220, 611, 468, 2539, 7, 79, 296, 26059, 13, 27530, 11, 1097, 62, 312, 8, 11405, 1097, 62, 72, 14512, 2147, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1064, 262, 2748, 6339, 422, 262, 1351, 286, 11926, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1090, 81, 62, 38629, 796, 685, 75, 13, 12985, 329, 300, 287, 279, 296, 26059, 13, 27530, 58, 7718, 62, 312, 4083, 28341, 23823, 13, 38629, 60, 201, 198, 220, 220, 220, 220, 220, 220, 220, 329, 6339, 287, 651, 62, 7718, 62, 81, 448, 274, 7, 9132, 79, 13, 24330, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15940, 796, 36177, 7, 7248, 7, 22019, 81, 62, 38629, 828, 5345, 7, 38629, 4008, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4129, 7, 31499, 8, 18189, 362, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19677, 13192, 796, 20546, 9250, 90, 17, 11, 15016, 24835, 92, 7, 38629, 58, 16, 4357, 6339, 58, 437, 12962, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 4129, 7, 22019, 81, 62, 38629, 8, 6624, 352, 11405, 1090, 81, 62, 38629, 58, 16, 60, 18872, 230, 6339, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19677, 13192, 796, 20546, 9250, 90, 17, 11, 15016, 24835, 92, 7, 38629, 58, 16, 4357, 6339, 58, 437, 12962, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 201, 198, 220, 220, 220, 220, 220, 220, 220, 886, 201, 198, 220, 220, 220, 220, 220, 220, 220, 611, 19677, 13192, 6624, 2147, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44872, 7, 22019, 81, 62, 38629, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 886, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 2073, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 19677, 13192, 796, 20546, 9250, 90, 17, 11, 15016, 24835, 92, 7, 43, 1531, 24835, 7, 15, 11, 15, 828, 15016, 24835, 7, 15, 11, 15, 4008, 201, 198, 220, 220, 220, 886, 201, 198, 220, 220, 220, 304, 62, 5219, 796, 21501, 9012, 7, 1533, 78, 13, 5219, 13, 1930, 38, 11, 1097, 62, 6344, 1014, 7, 9132, 79, 13, 24330, 828, 19225, 13, 5219, 13, 85, 8, 201, 198, 220, 220, 220, 269, 62, 5219, 796, 21501, 9012, 7, 7718, 13, 5219, 13, 1930, 38, 11, 285, 26059, 13, 24330, 13, 6344, 1014, 11, 1097, 13, 5219, 13, 85, 8, 201, 198, 220, 220, 220, 1441, 1879, 44, 6322, 9012, 7, 271, 62, 26000, 2530, 7, 1533, 78, 11, 1097, 828, 304, 62, 5219, 11, 269, 62, 5219, 11, 19677, 13192, 8, 201, 198, 437, 201, 198 ]
1.899819
1,108
using Documenter, Includeonce makedocs( modules = [Includeonce], format = Documenter.HTML(; prettyurls = get(ENV, "CI", nothing) == "true"), authors = "Jacques David", sitename = "Includeonce.jl", pages = Any["index.md"] # strict = true, # clean = true, # checkdocs = :exports, ) deploydocs( repo = "github.com/jdadavid/Includeonce.jl.git", push_preview = true )
[ 3500, 16854, 263, 11, 40348, 27078, 198, 198, 76, 4335, 420, 82, 7, 198, 220, 220, 220, 13103, 796, 685, 818, 9152, 27078, 4357, 198, 220, 220, 220, 5794, 796, 16854, 263, 13, 28656, 7, 26, 2495, 6371, 82, 796, 651, 7, 1677, 53, 11, 366, 25690, 1600, 2147, 8, 6624, 366, 7942, 12340, 198, 220, 220, 220, 7035, 796, 366, 28821, 13281, 3271, 1600, 198, 220, 220, 220, 1650, 12453, 796, 366, 818, 9152, 27078, 13, 20362, 1600, 198, 220, 220, 220, 5468, 796, 4377, 14692, 9630, 13, 9132, 8973, 198, 220, 220, 220, 1303, 7646, 796, 2081, 11, 198, 220, 220, 220, 1303, 3424, 796, 2081, 11, 198, 220, 220, 220, 1303, 2198, 31628, 796, 1058, 1069, 3742, 11, 198, 8, 198, 198, 2934, 1420, 31628, 7, 198, 220, 220, 220, 29924, 796, 366, 12567, 13, 785, 14, 73, 47984, 8490, 14, 818, 9152, 27078, 13, 20362, 13, 18300, 1600, 198, 220, 220, 220, 4574, 62, 3866, 1177, 796, 2081, 198, 8, 198 ]
2.454545
165
module Frameworks using Printf: @printf using TimerOutputs: TimerOutputs, TimerOutput, @timeit using ..Terms: Parameters using ...Prerequisites: decimaltostr using ...Prerequisites.CompositeStructures: NamedContainer using ...Prerequisites.TypeTraits: efficientoperations import ...Interfaces: id, update!, prepare!, register!, run!, add! export App, Engine export Assignment, Algorithm export dependences, rundependences! """ App Abstract type for all apps. """ abstract type App end """ ==(app1::App, app2::App) -> Bool Judge whether two apps are equivalent to each other. """ Base.:(==)(app1::App, app2::App) = ==(efficientoperations, app1, app2) """ isequal(app1::App, app2::App) -> Bool Judge whether two apps are equivalent to each other. """ Base.isequal(app1::App, app2::App) = isequal(efficientoperations, app1, app2) """ update!(app::App; kwargs...) -> App Update the status of an app. """ update!(app::App; kwargs...) = app """ Engine Abstract type for all engines. """ abstract type Engine end """ ==(engine1::Engine, engine2::Engine) -> Bool Judge whether two engines are equivalent to each other. """ Base.:(==)(engine1::Engine, engine2::Engine) = ==(efficientoperations, engine1, engine2) """ isequal(engine1::Engine, engine2::Engine) -> Bool Judge whether two engines are equivalent to each other. """ Base.isequal(engine1::Engine, engine2::Engine) = isequal(efficientoperations, engine1, engine2) """ update!(engine::Engine; kwargs...) -> Engine Update the status of an engine. """ update!(engine::Engine; kwargs...) = engine """ Assignment( id::Symbol, app::App, parameters::Parameters; map::Function=identity, dependences::Tuple{Vararg{Symbol}}=(), data::Any=nothing, savedata::Bool=true, virgin::Bool=true, kwargs... ) An assignment associated with an app. """ mutable struct Assignment{A<:App, P<:Parameters, M<:Function, D<:Tuple{Vararg{Symbol}}, R<:Any, I} app::A parameters::P map::M dependences::D data::R savedata::Bool virgin::Bool end function Assignment(id::Symbol, app::App, parameters::Parameters; map::Function=identity, dependences::Tuple{Vararg{Symbol}}=(), data::Any=nothing, savedata::Bool=true, virgin::Bool=true, kwargs...) A, P, M, D = app|>typeof, parameters|>typeof, map|>typeof, dependences|>typeof R = (data === nothing) ? Any : data|>typeof return Assignment{A, P, M, D, R, id}(app, parameters, map, dependences, data, savedata, virgin) end """ ==(assign1::Assignment, assign2::Assignment) -> Bool Judge whether two assignments are equivalent to each other. """ Base.:(==)(assign1::Assignment, assign2::Assignment) = ==(efficientoperations, assign1, assign2) """ isequal(assign1::Assignment, assign2::Assignment) -> Bool Judge whether two assignments are equivalent to each other. """ Base.isequal(assign1::Assignment, assign2::Assignment) = isequal(efficientoperations, assign1, assign2) """ valtype(assign::Assignment) valtype(::Type{<:Assignment{<:App, <:Parameters, <:Function, <:Tuple{Vararg{Symbol}}, R}}) where R The type of the data(result) of an assignment. """ Base.valtype(assign::Assignment) = assign |> typeof |> valtype Base.valtype(::Type{<:Assignment{<:App, <:Parameters, <:Function, <:Tuple{Vararg{Symbol}}, R}}) where {R} = R """ id(assign::Assignment) -> Symbol id(::Type{<:Assignment{<:App, <:Parameters, <:Function, <:Tuple{Vararg{Symbol}}, <:Any, I}}) where I -> Symbol The id of an assignment. """ id(assign::Assignment) = assign |> typeof |> id id(::Type{<:Assignment{<:App, <:Parameters, <:Function, <:Tuple{Vararg{Symbol}}, <:Any, I}}) where {I} = I """ update!(assign::Assignment; kwargs...) -> Assignment Update the parameters of an assignment and the status of its associated app. """ @generated function update!(assign::Assignment; kwargs...) exprs = [] names = fieldnames(fieldtype(assign, :parameters)) for (i, name) in enumerate(names) name = QuoteNode(name) push!(exprs, :(get(kwargs, $name, getfield(assign.parameters, $i)))) end return quote assign.parameters = Parameters{$names}($(exprs...)) update!(assign.app; assign.map(assign.parameters)...) return assign end end """ Algorithm( name::String, engine::Engine; din::String=".", dout::String=".", parameters::Union{Parameters, Nothing}=nothing, map::Function=identity, assignments::Tuple{Vararg{Assignment}}=(), kwargs... ) An algorithm associated with an engine. """ mutable struct Algorithm{E<:Engine, P<:Parameters, M<:Function, S<:NamedContainer{Assignment}} name::String engine::E din::String dout::String parameters::P map::M sassignments::S dassignments::Dict{Symbol, Assignment} timer::TimerOutput end function Algorithm( name::String, engine::Engine; din::String=".", dout::String=".", parameters::Union{Parameters, Nothing}=nothing, map::Function=identity, assignments::Tuple{Vararg{Assignment}}=(), kwargs... ) (parameters === nothing) && (parameters = Parameters(engine)) assignments = namedassignments(assignments) return Algorithm(name, engine, din, dout, parameters, map, assignments, Dict{Symbol, Assignment}(), TimerOutput()) end @generated function namedassignments(assignments::Tuple{Vararg{Assignment}}) names, values = [], [] for i = 1:fieldcount(assignments) push!(names, fieldtype(assignments, 1)|>id) push!(values, :(assignments[$i])) end names = NTuple{fieldcount(assignments), Symbol}(names) values = Expr(:tuple, values...) return :(NamedContainer{$names}($values)) end """ update!(alg::Algorithm; kwargs...) -> Algorithm Update the parameters of an algorithm and its associated engine. """ @generated function update!(alg::Algorithm; kwargs...) exprs = [] names = fieldnames(fieldtype(alg, :parameters)) for (i, name) in enumerate(names) name = QuoteNode(name) push!(exprs, :(get(kwargs, $name, getfield(alg.parameters, $i)))) end return quote alg.parameters = Parameters{$names}($(exprs...)) update!(alg.engine; alg.map(alg.parameters)...) return alg end end """ repr(alg::Algorithm, mask::Tuple{Vararg{Symbol}}=(); ndecimal::Int=10) -> String Get the repr representation of an algorithm. Optionally, some parameters of the algorithm can be masked. Besides, the maximum number of decimals of the parameters can also be specified. """ function Base.repr(alg::Algorithm, mask::Tuple{Vararg{Symbol}}=(); ndecimal::Int=10) result = [string(alg.name), repr(alg.engine)] for (name, value) in pairs(alg.parameters) (name ∉ mask) && push!(result, decimaltostr(value, ndecimal)) end return join(result, "_") end """ show(io::IO, alg::Algorithm) Show an algorithm. """ function Base.show(io::IO, alg::Algorithm) @printf io "%s_%s" alg.name alg.engine for (name, value) in pairs(alg.parameters) @printf io "_%s" decimaltostr(value, 10) end end """ get(alg::Algorithm, id::Symbol) -> Assignment get(alg::Algorithm, ::Val{id}) where id -> Assignment Find the assignment registered on a algorithm by its id. """ Base.get(alg::Algorithm, id::Symbol) = (id ∈ keys(alg.sassignments)) ? getfield(alg.sassignments, id) : alg.dassignments[id] @generated Base.get(alg::Algorithm, ::Val{id}) where {id} = (id ∈ fieldnames(fieldtype(alg, :sassignments))) ? :(getfield(alg.sassignments, id)) : :(alg.dassignments[id]) """ summary(alg::Algorithm) Provide a summary of an algorithm. """ function Base.summary(alg::Algorithm) @info "Summary of $(alg.name)($(nameof(typeof(alg.engine)))):" @info string(alg.timer) end """ prepare!(alg::Algorithm, assign::Assignment) -> Nothing Prepare an assignment registered on a algorithm. """ prepare!(alg::Algorithm, assign::Assignment) = nothing """ run!(alg::Algorithm, assign::Assignment) -> Nothing Run an assignment registered on a algorithm. """ run!(alg::Algorithm, assign::Assignment) = nothing """ register!(alg::Algorithm, id::Symbol, app::App; kwargs...) -> Algorithm Add an assignment on a algorithm by providing the contents of the assignment, and run this assignment. """ function register!(alg::Algorithm, id::Symbol, app::App; kwargs...) add!(alg, id, app; kwargs...) run!(alg, id, true) end """ add!(alg::Algorithm, id::Symbol, app::App; kwargs...) -> Algorithm Add an assignment on a algorithm by providing the contents of the assignment. The difference between `add!` and `register!` is that the `add!` function does not run the newly added assignment but the `register!` function does. """ function add!(alg::Algorithm, id::Symbol, app::App; kwargs...) @assert id ∉ keys(alg.sassignments) "add! error: id($id) conflict." alg.dassignments[id] = Assignment(id, app, merge(alg.parameters, get(kwargs, :parameters, Parameters{()}())); kwargs...) return alg end """ run!(alg::Algorithm, id::Symbol, timing::Bool=true) -> Algorithm run!(alg::Algorithm, ::Val{id}, timing::Bool=true) where id -> Algorithm Run an assignment with the given id registered on an algorithm. Optionally, the run process can be timed by setting the `timing` argument to be `true`. """ run!(alg::Algorithm, id::Symbol, timing::Bool = true) = run!(alg, Val(id), timing) function run!(alg::Algorithm, ::Val{id}, timing::Bool = true) where id assign = get(alg, Val(id)) if timing @timeit alg.timer string(id) algrunassignment!(alg, assign) @info "App $id($(nameof(assign.app|>typeof))): time consumed $(TimerOutputs.time(alg.timer[string(id)]) / 10^9)s." else algrunassignment!(alg, assign) end return alg end function algrunassignment!(alg::Algorithm, assign::Assignment) ismatched = match(assign.parameters, alg.parameters) !assign.virgin && ismatched && return !ismatched && update!(alg; assign.parameters...) prepare!(alg, assign) run!(alg, assign) assign.virgin = false end """ dependences(alg::Algorithm, assign::Assignment, ::Tuple{}=()) -> Tuple{Vararg{Symbol}} dependences(alg::Algorithm, assign::Assignment, mask::Tuple{Vararg{Symbol}}) -> Tuple{Vararg{Symbol}} Get the dependences of an assignment and return their ids. """ dependences(alg::Algorithm, assign::Assignment, ::Tuple{}=()) = assign.dependences dependences(alg::Algorithm, assign::Assignment, mask::Tuple{Vararg{Symbol}}) = Tuple(filter(x->(x ∉ mask), collect(assign.dependences))) """ rundependences!(alg::Algorithm, assign::Assignment, mask::Tuple{Vararg{Symbol}}=()) -> Algorithm Run the dependences of an assignment. Optionally, some dependences can be jumped by specifying the `mask` argument. """ function rundependences!(alg::Algorithm, assign::Assignment, mask::Tuple{Vararg{Symbol}}=()) for id in dependences(alg, assign, mask) assign = get(alg, id) algrundependence!(alg, assign) end return alg end function algrundependence!(alg::Algorithm, assign::Assignment) ismatched = match(alg.parameters, assign.parameters) !assign.virgin && ismatched && return !ismatched && update!(assign; alg.parameters...) prepare!(alg, assign) run!(alg, assign) assign.virgin = false end end #module
[ 21412, 15183, 19653, 198, 198, 3500, 12578, 69, 25, 2488, 37435, 198, 3500, 5045, 263, 26410, 82, 25, 5045, 263, 26410, 82, 11, 5045, 263, 26410, 11, 2488, 2435, 270, 198, 3500, 11485, 15156, 907, 25, 40117, 198, 3500, 2644, 6719, 34075, 25, 875, 320, 2501, 455, 81, 198, 3500, 2644, 6719, 34075, 13, 5377, 1930, 578, 44909, 942, 25, 34441, 29869, 198, 3500, 2644, 6719, 34075, 13, 6030, 15721, 896, 25, 6942, 3575, 602, 198, 198, 11748, 2644, 9492, 32186, 25, 4686, 11, 4296, 28265, 8335, 28265, 7881, 28265, 1057, 28265, 751, 0, 198, 198, 39344, 2034, 11, 7117, 198, 39344, 50144, 11, 978, 42289, 198, 39344, 4745, 3007, 11, 374, 917, 2690, 3007, 0, 198, 198, 37811, 198, 220, 220, 220, 2034, 198, 198, 23839, 2099, 329, 477, 6725, 13, 198, 37811, 198, 397, 8709, 2099, 2034, 886, 198, 198, 37811, 198, 220, 220, 220, 6624, 7, 1324, 16, 3712, 4677, 11, 598, 17, 3712, 4677, 8, 4613, 347, 970, 198, 198, 29511, 1771, 734, 6725, 389, 7548, 284, 1123, 584, 13, 198, 37811, 198, 14881, 11207, 7, 855, 5769, 1324, 16, 3712, 4677, 11, 598, 17, 3712, 4677, 8, 796, 6624, 7, 16814, 3575, 602, 11, 598, 16, 11, 598, 17, 8, 198, 198, 37811, 198, 220, 220, 220, 318, 40496, 7, 1324, 16, 3712, 4677, 11, 598, 17, 3712, 4677, 8, 4613, 347, 970, 198, 198, 29511, 1771, 734, 6725, 389, 7548, 284, 1123, 584, 13, 198, 37811, 198, 14881, 13, 786, 13255, 7, 1324, 16, 3712, 4677, 11, 598, 17, 3712, 4677, 8, 796, 318, 40496, 7, 16814, 3575, 602, 11, 598, 16, 11, 598, 17, 8, 198, 198, 37811, 198, 220, 220, 220, 4296, 0, 7, 1324, 3712, 4677, 26, 479, 86, 22046, 23029, 4613, 2034, 198, 198, 10260, 262, 3722, 286, 281, 598, 13, 198, 37811, 198, 19119, 0, 7, 1324, 3712, 4677, 26, 479, 86, 22046, 23029, 796, 598, 198, 198, 37811, 198, 220, 220, 220, 7117, 198, 198, 23839, 2099, 329, 477, 11874, 13, 198, 37811, 198, 397, 8709, 2099, 7117, 886, 198, 198, 37811, 198, 220, 220, 220, 6624, 7, 18392, 16, 3712, 13798, 11, 3113, 17, 3712, 13798, 8, 4613, 347, 970, 198, 198, 29511, 1771, 734, 11874, 389, 7548, 284, 1123, 584, 13, 198, 37811, 198, 14881, 11207, 7, 855, 5769, 18392, 16, 3712, 13798, 11, 3113, 17, 3712, 13798, 8, 796, 6624, 7, 16814, 3575, 602, 11, 3113, 16, 11, 3113, 17, 8, 198, 198, 37811, 198, 220, 220, 220, 318, 40496, 7, 18392, 16, 3712, 13798, 11, 3113, 17, 3712, 13798, 8, 4613, 347, 970, 198, 198, 29511, 1771, 734, 11874, 389, 7548, 284, 1123, 584, 13, 198, 37811, 198, 14881, 13, 786, 13255, 7, 18392, 16, 3712, 13798, 11, 3113, 17, 3712, 13798, 8, 796, 318, 40496, 7, 16814, 3575, 602, 11, 3113, 16, 11, 3113, 17, 8, 198, 198, 37811, 198, 220, 220, 220, 4296, 0, 7, 18392, 3712, 13798, 26, 479, 86, 22046, 23029, 4613, 7117, 198, 198, 10260, 262, 3722, 286, 281, 3113, 13, 198, 37811, 198, 19119, 0, 7, 18392, 3712, 13798, 26, 479, 86, 22046, 23029, 796, 3113, 198, 198, 37811, 198, 220, 220, 220, 50144, 7, 4686, 3712, 13940, 23650, 11, 598, 3712, 4677, 11, 10007, 3712, 48944, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3975, 3712, 22203, 28, 738, 414, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4745, 3007, 3712, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 11709, 16193, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 3712, 7149, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7448, 1045, 3712, 33, 970, 28, 7942, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21772, 3712, 33, 970, 28, 7942, 11, 198, 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, 1267, 198, 198, 2025, 16237, 3917, 351, 281, 598, 13, 198, 37811, 198, 76, 18187, 2878, 50144, 90, 32, 27, 25, 4677, 11, 350, 27, 25, 48944, 11, 337, 27, 25, 22203, 11, 360, 27, 25, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 92, 5512, 371, 27, 25, 7149, 11, 314, 92, 198, 220, 220, 220, 598, 3712, 32, 198, 220, 220, 220, 10007, 3712, 47, 198, 220, 220, 220, 3975, 3712, 44, 198, 220, 220, 220, 4745, 3007, 3712, 35, 198, 220, 220, 220, 1366, 3712, 49, 198, 220, 220, 220, 7448, 1045, 3712, 33, 970, 198, 220, 220, 220, 21772, 3712, 33, 970, 198, 437, 198, 8818, 50144, 7, 312, 3712, 13940, 23650, 11, 598, 3712, 4677, 11, 10007, 3712, 48944, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3975, 3712, 22203, 28, 738, 414, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4745, 3007, 3712, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 11709, 16193, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 3712, 7149, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7448, 1045, 3712, 33, 970, 28, 7942, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21772, 3712, 33, 970, 28, 7942, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 479, 86, 22046, 23029, 198, 220, 220, 220, 317, 11, 350, 11, 337, 11, 360, 796, 598, 91, 29, 4906, 1659, 11, 10007, 91, 29, 4906, 1659, 11, 3975, 91, 29, 4906, 1659, 11, 4745, 3007, 91, 29, 4906, 1659, 198, 220, 220, 220, 371, 796, 357, 7890, 24844, 2147, 8, 5633, 4377, 1058, 1366, 91, 29, 4906, 1659, 198, 220, 220, 220, 1441, 50144, 90, 32, 11, 350, 11, 337, 11, 360, 11, 371, 11, 4686, 92, 7, 1324, 11, 10007, 11, 3975, 11, 4745, 3007, 11, 1366, 11, 7448, 1045, 11, 21772, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 6624, 7, 562, 570, 16, 3712, 8021, 16747, 11, 8333, 17, 3712, 8021, 16747, 8, 4613, 347, 970, 198, 198, 29511, 1771, 734, 25815, 389, 7548, 284, 1123, 584, 13, 198, 37811, 198, 14881, 11207, 7, 855, 5769, 562, 570, 16, 3712, 8021, 16747, 11, 8333, 17, 3712, 8021, 16747, 8, 796, 6624, 7, 16814, 3575, 602, 11, 8333, 16, 11, 8333, 17, 8, 198, 198, 37811, 198, 220, 220, 220, 318, 40496, 7, 562, 570, 16, 3712, 8021, 16747, 11, 8333, 17, 3712, 8021, 16747, 8, 4613, 347, 970, 198, 198, 29511, 1771, 734, 25815, 389, 7548, 284, 1123, 584, 13, 198, 37811, 198, 14881, 13, 786, 13255, 7, 562, 570, 16, 3712, 8021, 16747, 11, 8333, 17, 3712, 8021, 16747, 8, 796, 318, 40496, 7, 16814, 3575, 602, 11, 8333, 16, 11, 8333, 17, 8, 198, 198, 37811, 198, 220, 220, 220, 1188, 4906, 7, 562, 570, 3712, 8021, 16747, 8, 198, 220, 220, 220, 1188, 4906, 7, 3712, 6030, 90, 27, 25, 8021, 16747, 90, 27, 25, 4677, 11, 1279, 25, 48944, 11, 1279, 25, 22203, 11, 1279, 25, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 92, 5512, 371, 11709, 8, 810, 371, 198, 198, 464, 2099, 286, 262, 1366, 7, 20274, 8, 286, 281, 16237, 13, 198, 37811, 198, 14881, 13, 2100, 4906, 7, 562, 570, 3712, 8021, 16747, 8, 796, 8333, 930, 29, 2099, 1659, 930, 29, 1188, 4906, 198, 14881, 13, 2100, 4906, 7, 3712, 6030, 90, 27, 25, 8021, 16747, 90, 27, 25, 4677, 11, 1279, 25, 48944, 11, 1279, 25, 22203, 11, 1279, 25, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 92, 5512, 371, 11709, 8, 810, 1391, 49, 92, 796, 371, 198, 198, 37811, 198, 220, 220, 220, 4686, 7, 562, 570, 3712, 8021, 16747, 8, 4613, 38357, 198, 220, 220, 220, 4686, 7, 3712, 6030, 90, 27, 25, 8021, 16747, 90, 27, 25, 4677, 11, 1279, 25, 48944, 11, 1279, 25, 22203, 11, 1279, 25, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 92, 5512, 1279, 25, 7149, 11, 314, 11709, 8, 810, 314, 4613, 38357, 198, 198, 464, 4686, 286, 281, 16237, 13, 198, 37811, 198, 312, 7, 562, 570, 3712, 8021, 16747, 8, 796, 8333, 930, 29, 2099, 1659, 930, 29, 4686, 198, 312, 7, 3712, 6030, 90, 27, 25, 8021, 16747, 90, 27, 25, 4677, 11, 1279, 25, 48944, 11, 1279, 25, 22203, 11, 1279, 25, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 92, 5512, 1279, 25, 7149, 11, 314, 11709, 8, 810, 1391, 40, 92, 796, 314, 198, 198, 37811, 198, 220, 220, 220, 4296, 0, 7, 562, 570, 3712, 8021, 16747, 26, 479, 86, 22046, 23029, 4613, 50144, 198, 198, 10260, 262, 10007, 286, 281, 16237, 290, 262, 3722, 286, 663, 3917, 598, 13, 198, 37811, 198, 31, 27568, 2163, 4296, 0, 7, 562, 570, 3712, 8021, 16747, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 1033, 3808, 796, 17635, 198, 220, 220, 220, 3891, 796, 2214, 14933, 7, 3245, 4906, 7, 562, 570, 11, 1058, 17143, 7307, 4008, 198, 220, 220, 220, 329, 357, 72, 11, 1438, 8, 287, 27056, 378, 7, 14933, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 19879, 19667, 7, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 31937, 82, 11, 36147, 1136, 7, 46265, 22046, 11, 720, 3672, 11, 651, 3245, 7, 562, 570, 13, 17143, 7307, 11, 720, 72, 35514, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 8333, 13, 17143, 7307, 796, 40117, 90, 3, 14933, 92, 16763, 7, 31937, 82, 986, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 0, 7, 562, 570, 13, 1324, 26, 8333, 13, 8899, 7, 562, 570, 13, 17143, 7307, 8, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 8333, 198, 220, 220, 220, 886, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 978, 42289, 7, 220, 1438, 3712, 10100, 11, 3113, 3712, 13798, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16278, 3712, 10100, 2625, 33283, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 448, 3712, 10100, 2625, 33283, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10007, 3712, 38176, 90, 48944, 11, 10528, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3975, 3712, 22203, 28, 738, 414, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25815, 3712, 51, 29291, 90, 19852, 853, 90, 8021, 16747, 11709, 16193, 828, 198, 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, 1267, 198, 198, 2025, 11862, 3917, 351, 281, 3113, 13, 198, 37811, 198, 76, 18187, 2878, 978, 42289, 90, 36, 27, 25, 13798, 11, 350, 27, 25, 48944, 11, 337, 27, 25, 22203, 11, 311, 27, 25, 45, 2434, 29869, 90, 8021, 16747, 11709, 198, 220, 220, 220, 1438, 3712, 10100, 198, 220, 220, 220, 3113, 3712, 36, 198, 220, 220, 220, 16278, 3712, 10100, 198, 220, 220, 220, 288, 448, 3712, 10100, 198, 220, 220, 220, 10007, 3712, 47, 198, 220, 220, 220, 3975, 3712, 44, 198, 220, 220, 220, 264, 562, 570, 902, 3712, 50, 198, 220, 220, 220, 288, 562, 570, 902, 3712, 35, 713, 90, 13940, 23650, 11, 50144, 92, 198, 220, 220, 220, 19781, 3712, 48801, 26410, 198, 437, 198, 8818, 978, 42289, 7, 1438, 3712, 10100, 11, 3113, 3712, 13798, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16278, 3712, 10100, 2625, 33283, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 448, 3712, 10100, 2625, 33283, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10007, 3712, 38176, 90, 48944, 11, 10528, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3975, 3712, 22203, 28, 738, 414, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25815, 3712, 51, 29291, 90, 19852, 853, 90, 8021, 16747, 11709, 16193, 828, 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, 357, 17143, 7307, 24844, 2147, 8, 11405, 357, 17143, 7307, 796, 40117, 7, 18392, 4008, 198, 220, 220, 220, 25815, 796, 3706, 562, 570, 902, 7, 562, 570, 902, 8, 198, 220, 220, 220, 1441, 978, 42289, 7, 3672, 11, 3113, 11, 16278, 11, 288, 448, 11, 10007, 11, 3975, 11, 25815, 11, 360, 713, 90, 13940, 23650, 11, 50144, 92, 22784, 5045, 263, 26410, 28955, 198, 437, 198, 31, 27568, 2163, 3706, 562, 570, 902, 7, 562, 570, 902, 3712, 51, 29291, 90, 19852, 853, 90, 8021, 16747, 11709, 8, 198, 220, 220, 220, 3891, 11, 3815, 796, 685, 4357, 17635, 198, 220, 220, 220, 329, 1312, 796, 352, 25, 3245, 9127, 7, 562, 570, 902, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 14933, 11, 2214, 4906, 7, 562, 570, 902, 11, 352, 14726, 29, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 27160, 11, 36147, 562, 570, 902, 58, 3, 72, 60, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 3891, 796, 24563, 29291, 90, 3245, 9127, 7, 562, 570, 902, 828, 38357, 92, 7, 14933, 8, 198, 220, 220, 220, 3815, 796, 1475, 1050, 7, 25, 83, 29291, 11, 3815, 23029, 198, 220, 220, 220, 1441, 36147, 45, 2434, 29869, 90, 3, 14933, 92, 16763, 27160, 4008, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 4296, 0, 7, 14016, 3712, 2348, 42289, 26, 479, 86, 22046, 23029, 4613, 978, 42289, 198, 198, 10260, 262, 10007, 286, 281, 11862, 290, 663, 3917, 3113, 13, 198, 37811, 198, 31, 27568, 2163, 4296, 0, 7, 14016, 3712, 2348, 42289, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 1033, 3808, 796, 17635, 198, 220, 220, 220, 3891, 796, 2214, 14933, 7, 3245, 4906, 7, 14016, 11, 1058, 17143, 7307, 4008, 198, 220, 220, 220, 329, 357, 72, 11, 1438, 8, 287, 27056, 378, 7, 14933, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 19879, 19667, 7, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 31937, 82, 11, 36147, 1136, 7, 46265, 22046, 11, 720, 3672, 11, 651, 3245, 7, 14016, 13, 17143, 7307, 11, 720, 72, 35514, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 9577, 198, 220, 220, 220, 220, 220, 220, 220, 435, 70, 13, 17143, 7307, 796, 40117, 90, 3, 14933, 92, 16763, 7, 31937, 82, 986, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 0, 7, 14016, 13, 18392, 26, 435, 70, 13, 8899, 7, 14016, 13, 17143, 7307, 8, 23029, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 435, 70, 198, 220, 220, 220, 886, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 41575, 7, 14016, 3712, 2348, 42289, 11, 9335, 3712, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 11709, 28, 9783, 299, 12501, 4402, 3712, 5317, 28, 940, 8, 4613, 10903, 198, 198, 3855, 262, 41575, 10552, 286, 281, 11862, 13, 198, 198, 19722, 453, 11, 617, 10007, 286, 262, 11862, 460, 307, 29229, 13, 16238, 11, 262, 5415, 1271, 286, 875, 320, 874, 286, 262, 10007, 460, 635, 307, 7368, 13, 198, 37811, 198, 8818, 7308, 13, 260, 1050, 7, 14016, 3712, 2348, 42289, 11, 9335, 3712, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 11709, 28, 9783, 299, 12501, 4402, 3712, 5317, 28, 940, 8, 198, 220, 220, 220, 1255, 796, 685, 8841, 7, 14016, 13, 3672, 828, 41575, 7, 14016, 13, 18392, 15437, 198, 220, 220, 220, 329, 357, 3672, 11, 1988, 8, 287, 14729, 7, 14016, 13, 17143, 7307, 8, 198, 220, 220, 220, 220, 220, 220, 220, 357, 3672, 18872, 231, 9335, 8, 11405, 4574, 0, 7, 20274, 11, 875, 320, 2501, 455, 81, 7, 8367, 11, 299, 12501, 4402, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 4654, 7, 20274, 11, 45434, 4943, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 905, 7, 952, 3712, 9399, 11, 435, 70, 3712, 2348, 42289, 8, 198, 198, 15307, 281, 11862, 13, 198, 37811, 198, 8818, 7308, 13, 12860, 7, 952, 3712, 9399, 11, 435, 70, 3712, 2348, 42289, 8, 198, 220, 220, 220, 2488, 37435, 33245, 36521, 82, 62, 4, 82, 1, 435, 70, 13, 3672, 435, 70, 13, 18392, 198, 220, 220, 220, 329, 357, 3672, 11, 1988, 8, 287, 14729, 7, 14016, 13, 17143, 7307, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 37435, 33245, 45434, 4, 82, 1, 875, 320, 2501, 455, 81, 7, 8367, 11, 838, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 651, 7, 14016, 3712, 2348, 42289, 11, 4686, 3712, 13940, 23650, 8, 4613, 50144, 198, 220, 220, 220, 651, 7, 14016, 3712, 2348, 42289, 11, 7904, 7762, 90, 312, 30072, 810, 4686, 4613, 50144, 198, 198, 16742, 262, 16237, 6823, 319, 257, 11862, 416, 663, 4686, 13, 198, 37811, 198, 14881, 13, 1136, 7, 14016, 3712, 2348, 42289, 11, 4686, 3712, 13940, 23650, 8, 796, 357, 312, 18872, 230, 8251, 7, 14016, 13, 82, 562, 570, 902, 4008, 5633, 651, 3245, 7, 14016, 13, 82, 562, 570, 902, 11, 4686, 8, 1058, 435, 70, 13, 67, 562, 570, 902, 58, 312, 60, 198, 31, 27568, 7308, 13, 1136, 7, 14016, 3712, 2348, 42289, 11, 7904, 7762, 90, 312, 30072, 810, 1391, 312, 92, 796, 357, 312, 18872, 230, 2214, 14933, 7, 3245, 4906, 7, 14016, 11, 1058, 82, 562, 570, 902, 22305, 5633, 36147, 1136, 3245, 7, 14016, 13, 82, 562, 570, 902, 11, 4686, 4008, 1058, 36147, 14016, 13, 67, 562, 570, 902, 58, 312, 12962, 198, 198, 37811, 198, 220, 220, 220, 10638, 7, 14016, 3712, 2348, 42289, 8, 198, 198, 15946, 485, 257, 10638, 286, 281, 11862, 13, 198, 37811, 198, 8818, 7308, 13, 49736, 7, 14016, 3712, 2348, 42289, 8, 198, 220, 220, 220, 2488, 10951, 366, 22093, 286, 29568, 14016, 13, 3672, 5769, 3, 7, 3672, 1659, 7, 4906, 1659, 7, 14016, 13, 18392, 22305, 2599, 1, 198, 220, 220, 220, 2488, 10951, 4731, 7, 14016, 13, 45016, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 8335, 0, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 8, 4613, 10528, 198, 198, 37534, 533, 281, 16237, 6823, 319, 257, 11862, 13, 198, 37811, 198, 46012, 533, 0, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 8, 796, 2147, 198, 198, 37811, 198, 220, 220, 220, 1057, 0, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 8, 4613, 10528, 198, 198, 10987, 281, 16237, 6823, 319, 257, 11862, 13, 198, 37811, 198, 5143, 0, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 8, 796, 2147, 198, 198, 37811, 198, 220, 220, 220, 7881, 0, 7, 14016, 3712, 2348, 42289, 11, 4686, 3712, 13940, 23650, 11, 598, 3712, 4677, 26, 479, 86, 22046, 23029, 4613, 978, 42289, 198, 198, 4550, 281, 16237, 319, 257, 11862, 416, 4955, 262, 10154, 286, 262, 16237, 11, 290, 1057, 428, 16237, 13, 198, 37811, 198, 8818, 7881, 0, 7, 14016, 3712, 2348, 42289, 11, 4686, 3712, 13940, 23650, 11, 598, 3712, 4677, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 751, 0, 7, 14016, 11, 4686, 11, 598, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 1057, 0, 7, 14016, 11, 4686, 11, 2081, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 751, 0, 7, 14016, 3712, 2348, 42289, 11, 4686, 3712, 13940, 23650, 11, 598, 3712, 4677, 26, 479, 86, 22046, 23029, 4613, 978, 42289, 198, 198, 4550, 281, 16237, 319, 257, 11862, 416, 4955, 262, 10154, 286, 262, 16237, 13, 198, 198, 464, 3580, 1022, 4600, 2860, 0, 63, 290, 4600, 30238, 0, 63, 318, 326, 262, 4600, 2860, 0, 63, 2163, 857, 407, 1057, 262, 8308, 2087, 16237, 475, 262, 4600, 30238, 0, 63, 2163, 857, 13, 198, 37811, 198, 8818, 751, 0, 7, 14016, 3712, 2348, 42289, 11, 4686, 3712, 13940, 23650, 11, 598, 3712, 4677, 26, 479, 86, 22046, 23029, 198, 220, 220, 220, 2488, 30493, 4686, 18872, 231, 8251, 7, 14016, 13, 82, 562, 570, 902, 8, 366, 2860, 0, 4049, 25, 4686, 16763, 312, 8, 5358, 526, 198, 220, 220, 220, 435, 70, 13, 67, 562, 570, 902, 58, 312, 60, 796, 50144, 7, 312, 11, 598, 11, 20121, 7, 14016, 13, 17143, 7307, 11, 651, 7, 46265, 22046, 11, 1058, 17143, 7307, 11, 40117, 90, 3419, 92, 3419, 18125, 479, 86, 22046, 23029, 198, 220, 220, 220, 1441, 435, 70, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 1057, 0, 7, 14016, 3712, 2348, 42289, 11, 4686, 3712, 13940, 23650, 11, 10576, 3712, 33, 970, 28, 7942, 8, 4613, 978, 42289, 198, 220, 220, 220, 1057, 0, 7, 14016, 3712, 2348, 42289, 11, 7904, 7762, 90, 312, 5512, 10576, 3712, 33, 970, 28, 7942, 8, 810, 4686, 4613, 978, 42289, 198, 198, 10987, 281, 16237, 351, 262, 1813, 4686, 6823, 319, 281, 11862, 13, 16018, 453, 11, 262, 1057, 1429, 460, 307, 28805, 416, 4634, 262, 4600, 16514, 278, 63, 4578, 284, 307, 4600, 7942, 44646, 198, 37811, 198, 5143, 0, 7, 14016, 3712, 2348, 42289, 11, 4686, 3712, 13940, 23650, 11, 10576, 3712, 33, 970, 796, 2081, 8, 796, 1057, 0, 7, 14016, 11, 3254, 7, 312, 828, 10576, 8, 198, 8818, 1057, 0, 7, 14016, 3712, 2348, 42289, 11, 7904, 7762, 90, 312, 5512, 10576, 3712, 33, 970, 796, 2081, 8, 810, 4686, 198, 220, 220, 220, 8333, 796, 651, 7, 14016, 11, 3254, 7, 312, 4008, 198, 220, 220, 220, 611, 10576, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 2435, 270, 435, 70, 13, 45016, 4731, 7, 312, 8, 435, 2164, 403, 562, 16747, 0, 7, 14016, 11, 8333, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 10951, 366, 4677, 720, 312, 16763, 7, 3672, 1659, 7, 562, 570, 13, 1324, 91, 29, 4906, 1659, 4008, 2599, 640, 13529, 29568, 48801, 26410, 82, 13, 2435, 7, 14016, 13, 45016, 58, 8841, 7, 312, 8, 12962, 1220, 838, 61, 24, 8, 82, 526, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 435, 2164, 403, 562, 16747, 0, 7, 14016, 11, 8333, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 435, 70, 198, 437, 198, 8818, 435, 2164, 403, 562, 16747, 0, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 8, 198, 220, 220, 220, 318, 31409, 796, 2872, 7, 562, 570, 13, 17143, 7307, 11, 435, 70, 13, 17143, 7307, 8, 198, 220, 220, 220, 5145, 562, 570, 13, 85, 4672, 11405, 318, 31409, 11405, 1441, 198, 220, 220, 220, 5145, 1042, 14265, 11405, 4296, 0, 7, 14016, 26, 8333, 13, 17143, 7307, 23029, 198, 220, 220, 220, 8335, 0, 7, 14016, 11, 8333, 8, 198, 220, 220, 220, 1057, 0, 7, 14016, 11, 8333, 8, 198, 220, 220, 220, 8333, 13, 85, 4672, 796, 3991, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 4745, 3007, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 11, 7904, 51, 29291, 90, 92, 28, 28955, 4613, 309, 29291, 90, 19852, 853, 90, 13940, 23650, 11709, 198, 220, 220, 220, 4745, 3007, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 11, 9335, 3712, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 11709, 8, 4613, 309, 29291, 90, 19852, 853, 90, 13940, 23650, 11709, 198, 198, 3855, 262, 4745, 3007, 286, 281, 16237, 290, 1441, 511, 220, 2340, 13, 198, 37811, 198, 45841, 3007, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 11, 7904, 51, 29291, 90, 92, 28, 28955, 796, 8333, 13, 45841, 3007, 198, 45841, 3007, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 11, 9335, 3712, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 11709, 8, 796, 309, 29291, 7, 24455, 7, 87, 3784, 7, 87, 18872, 231, 9335, 828, 2824, 7, 562, 570, 13, 45841, 3007, 22305, 198, 198, 37811, 198, 220, 220, 220, 374, 917, 2690, 3007, 0, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 11, 9335, 3712, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 11709, 28, 28955, 4613, 978, 42289, 198, 198, 10987, 262, 4745, 3007, 286, 281, 16237, 13, 16018, 453, 11, 617, 4745, 3007, 460, 307, 11687, 416, 31577, 262, 4600, 27932, 63, 4578, 13, 198, 37811, 198, 8818, 374, 917, 2690, 3007, 0, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 11, 9335, 3712, 51, 29291, 90, 19852, 853, 90, 13940, 23650, 11709, 28, 28955, 198, 220, 220, 220, 329, 4686, 287, 4745, 3007, 7, 14016, 11, 8333, 11, 9335, 8, 198, 220, 220, 220, 220, 220, 220, 220, 8333, 796, 651, 7, 14016, 11, 4686, 8, 198, 220, 220, 220, 220, 220, 220, 220, 435, 48929, 358, 15091, 0, 7, 14016, 11, 8333, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 435, 70, 198, 437, 198, 8818, 435, 48929, 358, 15091, 0, 7, 14016, 3712, 2348, 42289, 11, 8333, 3712, 8021, 16747, 8, 198, 220, 220, 220, 318, 31409, 796, 2872, 7, 14016, 13, 17143, 7307, 11, 8333, 13, 17143, 7307, 8, 198, 220, 220, 220, 5145, 562, 570, 13, 85, 4672, 11405, 318, 31409, 11405, 1441, 198, 220, 220, 220, 5145, 1042, 14265, 11405, 4296, 0, 7, 562, 570, 26, 435, 70, 13, 17143, 7307, 23029, 198, 220, 220, 220, 8335, 0, 7, 14016, 11, 8333, 8, 198, 220, 220, 220, 1057, 0, 7, 14016, 11, 8333, 8, 198, 220, 220, 220, 8333, 13, 85, 4672, 796, 3991, 198, 437, 198, 198, 437, 220, 1303, 21412, 198 ]
2.601684
4,514
export solve_SSODE, solve_SSODE_threads, solve_time, solve const Default_SSMETHOD = AutoTsit5(Rosenbrock23()) function solveSS(func, u, p; method= Default_SSMETHOD) #= ODE solver =# prob = SteadyStateProblem(func, u, p) return DifferentialEquations.solve(prob, method) end """ solve(ode_func::DEsteady, us; ensemble_method=EnsembleThreads()) solve(ode_func::DEsteady) solve(ode_func::ODEtime) solve(ode_func::ODEtime, us; ensemble_method=EnsembleThreads()) Extanded solver for steady state and time-series. The ['DEmeta'](@ref) type provides the information of differential equations ('func'), initial variables ('u') and parameters ('p'). With [`DEsteady`](@ref) and ['ODEtime'](@ref) Arguements ---------- - `func`: DE function - `us`: Vector of vectors of initial variables - `p`: parameter constant See also -------- [`DEsteady`](@ref), ['ODEtime'](@ref) """ function DifferentialEquations.solve(ode_func::DEsteady, us; ensemble_method=EnsembleThreads()) function prob_func(prob,i,repeat) ode_new = ode_func(us[i]) remake(prob,u0 = ode_new.u0) end @unpack func, u0, method, p = ode_func prob = SteadyStateProblem(func, u0, p) ensemble_prob = EnsembleProblem(prob,prob_func=prob_func) sim = solve(ensemble_prob,method,ensemble_method,trajectories=length(us)) return sim end function DifferentialEquations.solve(ode_func::DEsteady) @unpack func, u0, method, p = ode_func return solveSS(func, u0, p; method= method) end function DifferentialEquations.solve(ode_func::ODEtime) @unpack func, u0, tspan, p, method = ode_func prob = ODEProblem(func, u0, tspan, p) return solve(prob; method=method) end function DifferentialEquations.solve(ode_func::ODEtime, us; ensemble_method=EnsembleThreads()) function prob_func(prob,i,repeat) ode_new = ode_func(us[i]) remake(prob,u0 = ode_new.u0) end @unpack func, u0, method, p, tspan = ode_func prob = ODEProblem(func, u0, tspan, p) ensemble_prob = EnsembleProblem(prob,prob_func=prob_func) sim = solve(ensemble_prob,method,ensemble_method,trajectories=length(us)) return sim end function solve_SSODE_threads(func, us, p ; method=Default_SSMETHOD) function prob_func(prob,i,repeat) remake(prob,u0 = us[i]) end prob = SteadyStateProblem(func, us[1], p) ensemble_prob = EnsembleProblem(prob,prob_func=prob_func) sim = solve(ensemble_prob,method,EnsembleThreads(),trajectories=length(us)) return sim end function solve_SSODE_threads(ode_func::DEmeta) sim = solve_SSODE_threads(ode_func.func, ode_func.u0, ode_func.p; method=ode_func.method) return sim end function solve_SSODE_threads(ode_func::DEmeta, us) function prob_func(prob,i,repeat) ode_new = ode_func(us[i]) remake(prob,u0 = ode_new.u0) end prob = SteadyStateProblem(ode_func.func, ode_func.u0, ode_func.p) ensemble_prob = EnsembleProblem(prob,prob_func=prob_func) sim = solve(ensemble_prob,ode_func.method,EnsembleThreads(),trajectories=length(us)) return sim end
[ 39344, 8494, 62, 5432, 16820, 11, 8494, 62, 5432, 16820, 62, 16663, 82, 11, 8494, 62, 2435, 11, 8494, 628, 198, 9979, 15161, 62, 5432, 49273, 796, 11160, 33758, 270, 20, 7, 49, 5233, 7957, 694, 1954, 28955, 628, 628, 198, 8818, 8494, 5432, 7, 20786, 11, 334, 11, 279, 26, 2446, 28, 15161, 62, 5432, 49273, 8, 198, 220, 220, 220, 1303, 28, 440, 7206, 1540, 332, 796, 2, 198, 220, 220, 220, 1861, 796, 45445, 88, 9012, 40781, 7, 20786, 11, 334, 11, 279, 8, 198, 220, 220, 220, 1441, 20615, 498, 23588, 602, 13, 82, 6442, 7, 1676, 65, 11, 2446, 8, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 8494, 7, 1098, 62, 20786, 3712, 7206, 28044, 88, 11, 514, 26, 34549, 62, 24396, 28, 4834, 15140, 16818, 82, 28955, 198, 220, 220, 220, 8494, 7, 1098, 62, 20786, 3712, 7206, 28044, 88, 8, 220, 198, 220, 220, 220, 8494, 7, 1098, 62, 20786, 3712, 16820, 2435, 8, 198, 220, 220, 220, 8494, 7, 1098, 62, 20786, 3712, 16820, 2435, 11, 514, 26, 34549, 62, 24396, 28, 4834, 15140, 16818, 82, 28955, 220, 198, 198, 11627, 12249, 1540, 332, 329, 11831, 1181, 290, 640, 12, 25076, 13, 383, 37250, 7206, 28961, 6, 16151, 31, 5420, 8, 2099, 3769, 262, 1321, 286, 22577, 27490, 19203, 20786, 33809, 4238, 9633, 19203, 84, 11537, 290, 10007, 19203, 79, 27691, 2080, 685, 63, 7206, 28044, 88, 63, 16151, 31, 5420, 8, 290, 37250, 16820, 2435, 6, 16151, 31, 5420, 8, 198, 198, 3163, 5162, 3196, 198, 35937, 198, 12, 4600, 20786, 63, 25, 5550, 2163, 198, 12, 4600, 385, 63, 25, 20650, 286, 30104, 286, 4238, 9633, 198, 12, 4600, 79, 63, 25, 11507, 6937, 198, 198, 6214, 635, 198, 982, 198, 58, 63, 7206, 28044, 88, 63, 16151, 31, 5420, 828, 37250, 16820, 2435, 6, 16151, 31, 5420, 8, 198, 37811, 198, 8818, 20615, 498, 23588, 602, 13, 82, 6442, 7, 1098, 62, 20786, 3712, 7206, 28044, 88, 11, 514, 26, 34549, 62, 24396, 28, 4834, 15140, 16818, 82, 28955, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 2163, 1861, 62, 20786, 7, 1676, 65, 11, 72, 11, 44754, 8, 198, 220, 220, 220, 220, 220, 220, 220, 267, 2934, 62, 3605, 796, 267, 2934, 62, 20786, 7, 385, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 28763, 7, 1676, 65, 11, 84, 15, 796, 267, 2934, 62, 3605, 13, 84, 15, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 403, 8002, 25439, 11, 334, 15, 11, 2446, 11, 279, 796, 267, 2934, 62, 20786, 628, 220, 220, 220, 1861, 796, 45445, 88, 9012, 40781, 7, 20786, 11, 334, 15, 11, 279, 8, 628, 220, 220, 220, 34549, 62, 1676, 65, 796, 2039, 15140, 40781, 7, 1676, 65, 11, 1676, 65, 62, 20786, 28, 1676, 65, 62, 20786, 8, 198, 220, 220, 220, 985, 796, 8494, 7, 1072, 11306, 62, 1676, 65, 11, 24396, 11, 1072, 11306, 62, 24396, 11, 9535, 752, 1749, 28, 13664, 7, 385, 4008, 628, 220, 220, 220, 1441, 985, 198, 437, 628, 198, 8818, 20615, 498, 23588, 602, 13, 82, 6442, 7, 1098, 62, 20786, 3712, 7206, 28044, 88, 8, 220, 198, 220, 220, 220, 2488, 403, 8002, 25439, 11, 334, 15, 11, 2446, 11, 279, 796, 267, 2934, 62, 20786, 198, 220, 220, 220, 1441, 8494, 5432, 7, 20786, 11, 334, 15, 11, 279, 26, 2446, 28, 2446, 8, 198, 437, 198, 198, 8818, 20615, 498, 23588, 602, 13, 82, 6442, 7, 1098, 62, 20786, 3712, 16820, 2435, 8, 198, 220, 220, 220, 2488, 403, 8002, 25439, 11, 334, 15, 11, 256, 12626, 11, 279, 11, 2446, 796, 267, 2934, 62, 20786, 198, 220, 220, 220, 1861, 796, 440, 7206, 40781, 7, 20786, 11, 334, 15, 11, 256, 12626, 11, 279, 8, 198, 220, 220, 220, 1441, 8494, 7, 1676, 65, 26, 2446, 28, 24396, 8, 198, 437, 628, 198, 8818, 20615, 498, 23588, 602, 13, 82, 6442, 7, 1098, 62, 20786, 3712, 16820, 2435, 11, 514, 26, 34549, 62, 24396, 28, 4834, 15140, 16818, 82, 28955, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 2163, 1861, 62, 20786, 7, 1676, 65, 11, 72, 11, 44754, 8, 198, 220, 220, 220, 220, 220, 220, 220, 267, 2934, 62, 3605, 796, 267, 2934, 62, 20786, 7, 385, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 28763, 7, 1676, 65, 11, 84, 15, 796, 267, 2934, 62, 3605, 13, 84, 15, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2488, 403, 8002, 25439, 11, 334, 15, 11, 2446, 11, 279, 11, 256, 12626, 796, 267, 2934, 62, 20786, 628, 220, 220, 220, 1861, 796, 440, 7206, 40781, 7, 20786, 11, 334, 15, 11, 256, 12626, 11, 279, 8, 628, 220, 220, 220, 34549, 62, 1676, 65, 796, 2039, 15140, 40781, 7, 1676, 65, 11, 1676, 65, 62, 20786, 28, 1676, 65, 62, 20786, 8, 198, 220, 220, 220, 985, 796, 8494, 7, 1072, 11306, 62, 1676, 65, 11, 24396, 11, 1072, 11306, 62, 24396, 11, 9535, 752, 1749, 28, 13664, 7, 385, 4008, 628, 220, 220, 220, 1441, 985, 198, 437, 628, 198, 198, 8818, 8494, 62, 5432, 16820, 62, 16663, 82, 7, 20786, 11, 514, 11, 279, 2162, 2446, 28, 19463, 62, 5432, 49273, 8, 198, 220, 220, 220, 2163, 1861, 62, 20786, 7, 1676, 65, 11, 72, 11, 44754, 8, 198, 220, 220, 220, 220, 220, 220, 220, 28763, 7, 1676, 65, 11, 84, 15, 796, 514, 58, 72, 12962, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1861, 796, 45445, 88, 9012, 40781, 7, 20786, 11, 514, 58, 16, 4357, 279, 8, 628, 220, 220, 220, 34549, 62, 1676, 65, 796, 2039, 15140, 40781, 7, 1676, 65, 11, 1676, 65, 62, 20786, 28, 1676, 65, 62, 20786, 8, 198, 220, 220, 220, 985, 796, 8494, 7, 1072, 11306, 62, 1676, 65, 11, 24396, 11, 4834, 15140, 16818, 82, 22784, 9535, 752, 1749, 28, 13664, 7, 385, 4008, 628, 220, 220, 220, 1441, 985, 198, 437, 198, 198, 8818, 8494, 62, 5432, 16820, 62, 16663, 82, 7, 1098, 62, 20786, 3712, 7206, 28961, 8, 198, 220, 220, 220, 985, 796, 8494, 62, 5432, 16820, 62, 16663, 82, 7, 1098, 62, 20786, 13, 20786, 11, 267, 2934, 62, 20786, 13, 84, 15, 11, 267, 2934, 62, 20786, 13, 79, 26, 2446, 28, 1098, 62, 20786, 13, 24396, 8, 628, 220, 220, 220, 1441, 985, 198, 437, 198, 198, 8818, 8494, 62, 5432, 16820, 62, 16663, 82, 7, 1098, 62, 20786, 3712, 7206, 28961, 11, 514, 8, 628, 220, 220, 220, 2163, 1861, 62, 20786, 7, 1676, 65, 11, 72, 11, 44754, 8, 198, 220, 220, 220, 220, 220, 220, 220, 267, 2934, 62, 3605, 796, 267, 2934, 62, 20786, 7, 385, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 28763, 7, 1676, 65, 11, 84, 15, 796, 267, 2934, 62, 3605, 13, 84, 15, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1861, 796, 45445, 88, 9012, 40781, 7, 1098, 62, 20786, 13, 20786, 11, 267, 2934, 62, 20786, 13, 84, 15, 11, 267, 2934, 62, 20786, 13, 79, 8, 628, 220, 220, 220, 34549, 62, 1676, 65, 796, 2039, 15140, 40781, 7, 1676, 65, 11, 1676, 65, 62, 20786, 28, 1676, 65, 62, 20786, 8, 198, 220, 220, 220, 985, 796, 8494, 7, 1072, 11306, 62, 1676, 65, 11, 1098, 62, 20786, 13, 24396, 11, 4834, 15140, 16818, 82, 22784, 9535, 752, 1749, 28, 13664, 7, 385, 4008, 628, 220, 220, 220, 1441, 985, 198, 437, 628, 198 ]
2.469613
1,267
@testset "Testing functions on polygons and shapefiles" begin package_path = pathof(SatelliteImages) path_len = length(package_path) assets_path = package_path[1:path_len-22] * "assets" map_path = assets_path * "/mumbai_map/mumbai_districts.shp" radiance_datacube = rand(1:100, 156, 85, 95) mumbai_districts = load_shapefile(map_path) mumbai_districts_ntl = aggregate_dataframe(MUMBAI_COORDINATE_SYSTEM, radiance_datacube, mumbai_districts, "DISTRICT") @test sizeof(mumbai_districts_ntl) > 0 district1 = mumbai_districts[1,:] # Select the first district district1_mask = polygon_mask(MUMBAI_COORDINATE_SYSTEM, district1) @test sum(district1_mask) >=0 end
[ 31, 9288, 2617, 366, 44154, 5499, 319, 25052, 684, 290, 5485, 16624, 1, 2221, 198, 26495, 62, 6978, 796, 3108, 1659, 7, 50, 26493, 29398, 8, 198, 6978, 62, 11925, 796, 4129, 7, 26495, 62, 6978, 8, 198, 19668, 62, 6978, 796, 5301, 62, 6978, 58, 16, 25, 6978, 62, 11925, 12, 1828, 60, 1635, 366, 19668, 1, 198, 8899, 62, 6978, 796, 6798, 62, 6978, 1635, 12813, 76, 21645, 62, 8899, 14, 76, 21645, 62, 17080, 2012, 82, 13, 1477, 79, 1, 198, 198, 6335, 3610, 62, 19608, 330, 3266, 796, 43720, 7, 16, 25, 3064, 11, 23871, 11, 7600, 11, 6957, 8, 198, 76, 21645, 62, 17080, 2012, 82, 796, 3440, 62, 43358, 7753, 7, 8899, 62, 6978, 8, 198, 76, 21645, 62, 17080, 2012, 82, 62, 429, 75, 796, 19406, 62, 7890, 14535, 7, 44, 5883, 4339, 40, 62, 8220, 12532, 1268, 6158, 62, 23060, 25361, 11, 2511, 3610, 62, 19608, 330, 3266, 11, 285, 21645, 62, 17080, 2012, 82, 11, 366, 26288, 5446, 18379, 4943, 198, 31, 9288, 39364, 7, 76, 21645, 62, 17080, 2012, 82, 62, 429, 75, 8, 1875, 657, 198, 198, 17080, 2012, 16, 796, 285, 21645, 62, 17080, 2012, 82, 58, 16, 11, 47715, 1303, 9683, 262, 717, 4783, 198, 17080, 2012, 16, 62, 27932, 796, 7514, 14520, 62, 27932, 7, 44, 5883, 4339, 40, 62, 8220, 12532, 1268, 6158, 62, 23060, 25361, 11, 4783, 16, 8, 198, 198, 31, 9288, 2160, 7, 17080, 2012, 16, 62, 27932, 8, 18189, 15, 220, 198, 198, 437 ]
2.604743
253
using Pkg pkg"add https://github.com/faf0/AES.jl" #pkg"rm AES" pkg"add https://github.com/oxinabox/MD5.jl" pkg"add JSON"
[ 3500, 350, 10025, 628, 198, 35339, 1, 2860, 3740, 1378, 12567, 13, 785, 14, 69, 1878, 15, 14, 32, 1546, 13, 20362, 1, 198, 2, 35339, 1, 26224, 34329, 1, 198, 35339, 1, 2860, 3740, 1378, 12567, 13, 785, 14, 39366, 397, 1140, 14, 12740, 20, 13, 20362, 1, 198, 35339, 1, 2860, 19449, 1, 198 ]
2.196429
56
""" License: MIT Julia 1.02 Dynamic programming formulation to count number of matchings of maximum cardinality """ # function from the paper # INPUT: # G and E - can be provided by read_Graph(filename) # maxCard - can be prodived by OptimalMatching(G,E) function Count_Mat_Paper(G, maxCard,E,r,s,aux) # reset table of results if aux == 1 global F_table = Dict() end # do not repeat computations: try # if aux == 1 then that entry wont exist return F_table[r,maxCard,[if s[v]>0 1 else 0 end for v in sort(collect(keys(G)))]] catch # if any of the entries maxCard, r or s is negative return 0 if maxCard<0 || r<0 || minimum(values(s))<0 F_table[r,maxCard,[if s[v]>0 1 else 0 end for v in sort(collect(keys(G)))]]=0 # aux =1 means we are in the end of the recurssion so return table if aux ==1 return F_table, 0 end # if not in end of the recurssion return 0 (no need to return table since it is a global variable) return 0 end # matchings containing more edges than the ones available if maxCard>r F_table[r,maxCard,[if s[v]>0 1 else 0 end for v in sort(collect(keys(G)))]]=0 # aux =1 means we are in the end of the recurssion so return table if aux ==1 return F_table, 0 end # if not in end of the recurssion return 0 (no need to return table since it is global variable) return 0 end # if we want a matching of cardinality 0, the only choice is M= empty set, i.e., there only one solution if maxCard ==0 && r >=0 && minimum(values(s))>=0 F_table[r,maxCard,[if s[v]>0 1 else 0 end for v in sort(collect(keys(G)))]]=1 # aux =1 means we are in the end of the recurssion so return table if aux ==1 return F_table, 1 end # if not in end of the recurssion return 0 (no need to return table since it is global variable) return 1 # if there are no edges available, i.e., r=0, and maxCard>0 then there is no matching under these condition elseif maxCard >0 && r ==0 && minimum(values(s))>=0 F_table[r,maxCard,[if s[v]>0 1 else 0 end for v in sort(collect(keys(G)))]]=0 # aux =1 means we are in the end of the recurssion so return table if aux ==1 return F_table, 0 end # if not in end of the recurssion return 0 (no need to return table since it is global variable) return 0 # OPT >0 and r>0 and min(s)>=0 else No_r = Count_Mat_Paper(G,maxCard,E,r-1,s,0) Yes_r = Count_Mat_Paper(G,maxCard-1,E,r-1,Dict(if v in E[r] v=>s[v]-1 else v=>s[v] end for v in sort(collect(keys(G)))),0) F_table[r,maxCard,[if s[v]>0 1 else 0 end for v in sort(collect(keys(G)))]] = No_r+Yes_r if aux ==1 return F_table,No_r+Yes_r end return No_r+Yes_r end end end # read graphs function Read_Graph(filename) G_tpm = Dict() f = open(filename) lines = readlines(f) close(f) num_V, num_E = split(lines[1]) num_V = parse(Int,num_V) num_E = parse(Int,num_E) for i=1:num_E v1,v2,w = split(lines[1+i]) v1 = parse(Int,v1) v2 = parse(Int,v2) if !(v2 in keys(G_tpm)) G_tpm[v2] = [] end if !(v1 in keys(G_tpm)) G_tpm[v1] = [v2] else append!(G_tpm[v1],v2) end end G = Dict(v=>[] for v in keys(G_tpm)) E = [] for v1 in keys(G_tpm) for v2 in G_tpm[v1] if v1 in G_tpm[v2] && !(v1 in G[v2]) && !(v2 in G[v1]) append!(G[v1],v2) append!(G[v2],v1) append!(E,[Set([v1,v2])]) end end end if length(keys(G))==0 G = Dict(v=>[] for v in 1:num_V) end return G,E end using CPLEX, JuMP function OptimalMatching(G,E) #m = Model(solver=CplexSolver()) m = Model(with_optimizer(CPLEX.Optimizer)) # only one core: CPX_PARAM_THREADS = 1 CPX_PARAM_MIPDISPLAY =0 CPX_PARAM_TILIM = 3600 num_E = length(E) if num_E==0 return 0 end @variable(m, x[1:num_E], Bin) for v in keys(G) @constraint(m,sum(x[j[1]] for j in enumerate(E) if v in j[2])<=1) end @objective(m, Max, sum(x[j[1]] for j in enumerate(E))) optimize!(m) println("Objective value: ", objective_value(m)) #println("Objective value: ", getobjectivevalue(m)) return objective_value(m) end
[ 37811, 198, 34156, 25, 17168, 198, 16980, 544, 352, 13, 2999, 198, 44090, 8300, 31760, 284, 954, 1271, 286, 2872, 654, 286, 5415, 38691, 414, 198, 37811, 198, 198, 2, 2163, 422, 262, 3348, 198, 2, 3268, 30076, 25, 198, 2, 402, 290, 412, 532, 460, 307, 2810, 416, 1100, 62, 37065, 7, 34345, 8, 198, 2, 3509, 16962, 532, 460, 307, 40426, 1572, 416, 13123, 4402, 44, 19775, 7, 38, 11, 36, 8, 198, 8818, 2764, 62, 19044, 62, 42950, 7, 38, 11, 3509, 16962, 11, 36, 11, 81, 11, 82, 11, 14644, 8, 198, 220, 220, 220, 1303, 13259, 3084, 286, 2482, 198, 220, 220, 220, 611, 27506, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 3298, 376, 62, 11487, 796, 360, 713, 3419, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1303, 466, 407, 9585, 2653, 602, 25, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 27506, 6624, 352, 788, 326, 5726, 28329, 2152, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 376, 62, 11487, 58, 81, 11, 9806, 16962, 17414, 361, 264, 58, 85, 60, 29, 15, 352, 2073, 657, 886, 329, 410, 287, 3297, 7, 33327, 7, 13083, 7, 38, 22305, 11907, 198, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 597, 286, 262, 12784, 3509, 16962, 11, 374, 393, 264, 318, 4633, 1441, 657, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3509, 16962, 27, 15, 8614, 374, 27, 15, 8614, 5288, 7, 27160, 7, 82, 4008, 27, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 62, 11487, 58, 81, 11, 9806, 16962, 17414, 361, 264, 58, 85, 60, 29, 15, 352, 2073, 657, 886, 329, 410, 287, 3297, 7, 33327, 7, 13083, 7, 38, 22305, 11907, 28, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 27506, 796, 16, 1724, 356, 389, 287, 262, 886, 286, 262, 664, 333, 824, 295, 523, 1441, 3084, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27506, 6624, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 376, 62, 11487, 11, 657, 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, 1303, 611, 407, 287, 886, 286, 262, 664, 333, 824, 295, 1441, 657, 357, 3919, 761, 284, 1441, 3084, 1201, 340, 318, 257, 3298, 7885, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 657, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2872, 654, 7268, 517, 13015, 621, 262, 3392, 1695, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3509, 16962, 29, 81, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 62, 11487, 58, 81, 11, 9806, 16962, 17414, 361, 264, 58, 85, 60, 29, 15, 352, 2073, 657, 886, 329, 410, 287, 3297, 7, 33327, 7, 13083, 7, 38, 22305, 11907, 28, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 27506, 796, 16, 1724, 356, 389, 287, 262, 886, 286, 262, 664, 333, 824, 295, 523, 1441, 3084, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27506, 6624, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 376, 62, 11487, 11, 657, 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, 1303, 611, 407, 287, 886, 286, 262, 664, 333, 824, 295, 1441, 657, 357, 3919, 761, 284, 1441, 3084, 1201, 340, 318, 3298, 7885, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 657, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 356, 765, 257, 12336, 286, 38691, 414, 657, 11, 262, 691, 3572, 318, 337, 28, 6565, 900, 11, 1312, 13, 68, 1539, 612, 691, 530, 4610, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3509, 16962, 6624, 15, 11405, 374, 18189, 15, 11405, 5288, 7, 27160, 7, 82, 4008, 29, 28, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 62, 11487, 58, 81, 11, 9806, 16962, 17414, 361, 264, 58, 85, 60, 29, 15, 352, 2073, 657, 886, 329, 410, 287, 3297, 7, 33327, 7, 13083, 7, 38, 22305, 11907, 28, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 27506, 796, 16, 1724, 356, 389, 287, 262, 886, 286, 262, 664, 333, 824, 295, 523, 1441, 3084, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27506, 6624, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 376, 62, 11487, 11, 352, 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, 1303, 611, 407, 287, 886, 286, 262, 664, 333, 824, 295, 1441, 657, 357, 3919, 761, 284, 1441, 3084, 1201, 340, 318, 3298, 7885, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 612, 389, 645, 13015, 1695, 11, 1312, 13, 68, 1539, 374, 28, 15, 11, 290, 3509, 16962, 29, 15, 788, 612, 318, 645, 12336, 739, 777, 4006, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 361, 3509, 16962, 1875, 15, 11405, 374, 6624, 15, 11405, 5288, 7, 27160, 7, 82, 4008, 29, 28, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 62, 11487, 58, 81, 11, 9806, 16962, 17414, 361, 264, 58, 85, 60, 29, 15, 352, 2073, 657, 886, 329, 410, 287, 3297, 7, 33327, 7, 13083, 7, 38, 22305, 11907, 28, 15, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 27506, 796, 16, 1724, 356, 389, 287, 262, 886, 286, 262, 664, 333, 824, 295, 523, 1441, 3084, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27506, 6624, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 376, 62, 11487, 11, 657, 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, 1303, 611, 407, 287, 886, 286, 262, 664, 333, 824, 295, 1441, 657, 357, 3919, 761, 284, 1441, 3084, 1201, 340, 318, 3298, 7885, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 657, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 39852, 1875, 15, 290, 374, 29, 15, 290, 949, 7, 82, 8, 29, 28, 15, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1400, 62, 81, 796, 2764, 62, 19044, 62, 42950, 7, 38, 11, 9806, 16962, 11, 36, 11, 81, 12, 16, 11, 82, 11, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3363, 62, 81, 796, 2764, 62, 19044, 62, 42950, 7, 38, 11, 9806, 16962, 12, 16, 11, 36, 11, 81, 12, 16, 11, 35, 713, 7, 361, 410, 287, 412, 58, 81, 60, 410, 14804, 82, 58, 85, 45297, 16, 2073, 410, 14804, 82, 58, 85, 60, 886, 329, 410, 287, 3297, 7, 33327, 7, 13083, 7, 38, 22305, 828, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 62, 11487, 58, 81, 11, 9806, 16962, 17414, 361, 264, 58, 85, 60, 29, 15, 352, 2073, 657, 886, 329, 410, 287, 3297, 7, 33327, 7, 13083, 7, 38, 22305, 11907, 796, 1400, 62, 81, 10, 5297, 62, 81, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 27506, 6624, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 376, 62, 11487, 11, 2949, 62, 81, 10, 5297, 62, 81, 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, 1400, 62, 81, 10, 5297, 62, 81, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 437, 198, 198, 2, 1100, 28770, 198, 198, 8818, 4149, 62, 37065, 7, 34345, 8, 198, 220, 220, 220, 402, 62, 83, 4426, 796, 360, 713, 3419, 198, 220, 220, 220, 277, 796, 1280, 7, 34345, 8, 198, 220, 220, 220, 3951, 796, 220, 1100, 6615, 7, 69, 8, 198, 220, 220, 220, 1969, 7, 69, 8, 198, 220, 220, 220, 997, 62, 53, 11, 997, 62, 36, 796, 6626, 7, 6615, 58, 16, 12962, 198, 220, 220, 220, 997, 62, 53, 796, 21136, 7, 5317, 11, 22510, 62, 53, 8, 198, 220, 220, 220, 997, 62, 36, 796, 21136, 7, 5317, 11, 22510, 62, 36, 8, 198, 220, 220, 220, 329, 1312, 28, 16, 25, 22510, 62, 36, 198, 220, 220, 220, 220, 220, 220, 220, 410, 16, 11, 85, 17, 11, 86, 796, 6626, 7, 6615, 58, 16, 10, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 410, 16, 796, 21136, 7, 5317, 11, 85, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 410, 17, 796, 21136, 7, 5317, 11, 85, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 7, 85, 17, 287, 8251, 7, 38, 62, 83, 4426, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 62, 83, 4426, 58, 85, 17, 60, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 7, 85, 16, 287, 8251, 7, 38, 62, 83, 4426, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 402, 62, 83, 4426, 58, 85, 16, 60, 796, 685, 85, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24443, 0, 7, 38, 62, 83, 4426, 58, 85, 16, 4357, 85, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 402, 796, 360, 713, 7, 85, 14804, 21737, 329, 410, 287, 8251, 7, 38, 62, 83, 4426, 4008, 198, 220, 220, 220, 412, 796, 17635, 198, 220, 220, 220, 329, 410, 16, 287, 8251, 7, 38, 62, 83, 4426, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 410, 17, 287, 402, 62, 83, 4426, 58, 85, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 410, 16, 287, 402, 62, 83, 4426, 58, 85, 17, 60, 11405, 5145, 7, 85, 16, 287, 402, 58, 85, 17, 12962, 11405, 5145, 7, 85, 17, 287, 402, 58, 85, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24443, 0, 7, 38, 58, 85, 16, 4357, 85, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24443, 0, 7, 38, 58, 85, 17, 4357, 85, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24443, 0, 7, 36, 17414, 7248, 26933, 85, 16, 11, 85, 17, 12962, 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, 611, 4129, 7, 13083, 7, 38, 4008, 855, 15, 198, 220, 220, 220, 220, 220, 220, 220, 402, 796, 360, 713, 7, 85, 14804, 21737, 329, 410, 287, 352, 25, 22510, 62, 53, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 402, 11, 36, 198, 437, 628, 198, 198, 3500, 327, 16437, 55, 11, 12585, 7378, 198, 8818, 13123, 4402, 44, 19775, 7, 38, 11, 36, 8, 198, 220, 220, 220, 1303, 76, 796, 9104, 7, 82, 14375, 28, 34, 11141, 50, 14375, 28955, 198, 220, 220, 220, 285, 796, 9104, 7, 4480, 62, 40085, 7509, 7, 8697, 2538, 55, 13, 27871, 320, 7509, 4008, 198, 220, 220, 220, 1303, 691, 530, 4755, 25, 198, 220, 220, 220, 16932, 55, 62, 27082, 2390, 62, 4221, 15675, 50, 796, 352, 198, 220, 220, 220, 16932, 55, 62, 27082, 2390, 62, 44, 4061, 26288, 31519, 796, 15, 198, 220, 220, 220, 16932, 55, 62, 27082, 2390, 62, 51, 4146, 3955, 796, 4570, 405, 198, 220, 220, 220, 997, 62, 36, 796, 4129, 7, 36, 8, 198, 220, 220, 220, 611, 997, 62, 36, 855, 15, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 657, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 45286, 7, 76, 11, 2124, 58, 16, 25, 22510, 62, 36, 4357, 20828, 8, 198, 220, 220, 220, 329, 410, 287, 8251, 7, 38, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 1102, 2536, 2913, 7, 76, 11, 16345, 7, 87, 58, 73, 58, 16, 11907, 329, 474, 287, 27056, 378, 7, 36, 8, 611, 410, 287, 474, 58, 17, 12962, 27, 28, 16, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 15252, 425, 7, 76, 11, 5436, 11, 2160, 7, 87, 58, 73, 58, 16, 11907, 329, 474, 287, 27056, 378, 7, 36, 22305, 198, 220, 220, 220, 27183, 0, 7, 76, 8, 198, 220, 220, 220, 44872, 7203, 10267, 425, 1988, 25, 33172, 9432, 62, 8367, 7, 76, 4008, 198, 220, 220, 220, 1303, 35235, 7203, 10267, 425, 1988, 25, 33172, 651, 15252, 425, 8367, 7, 76, 4008, 198, 220, 220, 220, 1441, 9432, 62, 8367, 7, 76, 8, 198, 437, 198 ]
2.000424
2,361
function rosenbrock(x) a = 1.0 b = 100.0 result = 0.0 for i in 1:(length(x) - 1) result += (a - x[i])^2 + b * (x[i + 1] - x[i]^2)^2 end return result end function f() x = rand() y = rand() return rosenbrock([x, y]) end g(f) = f() struct RandMix <: CompilationContext end allow(ctx::RandMix, m::Module) = m == TestMixtape swap(e) = e function swap(e::Expr) new = MacroTools.postwalk(e) do s isexpr(s, :call) || return s s.args[1] == Base.rand || return s return 5 end return new end function transform(::RandMix, b) for (v, st) in b replace!(b, v, swap(st)) end return b end @testset "Rand swap" begin fn = Mixtape.jit(RandMix(), f, Tuple{}) @test fn() == rosenbrock([5, 5]) Mixtape.@load_call_interface() @test call(RandMix(), f) == rosenbrock([5, 5]) @test f() != rosenbrock([5, 5]) fn = Mixtape.jit(RandMix(), g, Tuple{typeof(f)}) @test fn() == rosenbrock([5, 5]) @test call(RandMix(), g, f) == rosenbrock([5, 5]) end
[ 8818, 686, 6248, 7957, 694, 7, 87, 8, 198, 220, 220, 220, 257, 796, 352, 13, 15, 198, 220, 220, 220, 275, 796, 1802, 13, 15, 198, 220, 220, 220, 1255, 796, 657, 13, 15, 198, 220, 220, 220, 329, 1312, 287, 352, 37498, 13664, 7, 87, 8, 532, 352, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 15853, 357, 64, 532, 2124, 58, 72, 12962, 61, 17, 1343, 275, 1635, 357, 87, 58, 72, 1343, 352, 60, 532, 2124, 58, 72, 60, 61, 17, 8, 61, 17, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1255, 198, 437, 198, 198, 8818, 277, 3419, 198, 220, 220, 220, 2124, 796, 43720, 3419, 198, 220, 220, 220, 331, 796, 43720, 3419, 198, 220, 220, 220, 1441, 686, 6248, 7957, 694, 26933, 87, 11, 331, 12962, 198, 437, 198, 198, 70, 7, 69, 8, 796, 277, 3419, 198, 198, 7249, 8790, 35608, 1279, 25, 3082, 10520, 21947, 886, 198, 12154, 7, 49464, 3712, 38918, 35608, 11, 285, 3712, 26796, 8, 796, 285, 6624, 6208, 44, 43938, 198, 198, 2032, 499, 7, 68, 8, 796, 304, 198, 8818, 16075, 7, 68, 3712, 3109, 1050, 8, 198, 220, 220, 220, 649, 796, 42755, 33637, 13, 7353, 11152, 7, 68, 8, 466, 264, 198, 220, 220, 220, 220, 220, 220, 220, 318, 31937, 7, 82, 11, 1058, 13345, 8, 8614, 1441, 264, 198, 220, 220, 220, 220, 220, 220, 220, 264, 13, 22046, 58, 16, 60, 6624, 7308, 13, 25192, 8614, 1441, 264, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 642, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 649, 198, 437, 198, 198, 8818, 6121, 7, 3712, 38918, 35608, 11, 275, 8, 198, 220, 220, 220, 329, 357, 85, 11, 336, 8, 287, 275, 198, 220, 220, 220, 220, 220, 220, 220, 6330, 0, 7, 65, 11, 410, 11, 16075, 7, 301, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 275, 198, 437, 198, 198, 31, 9288, 2617, 366, 38918, 16075, 1, 2221, 198, 220, 220, 220, 24714, 796, 337, 43938, 13, 45051, 7, 38918, 35608, 22784, 277, 11, 309, 29291, 90, 30072, 198, 220, 220, 220, 2488, 9288, 24714, 3419, 6624, 686, 6248, 7957, 694, 26933, 20, 11, 642, 12962, 198, 220, 220, 220, 337, 43938, 13, 31, 2220, 62, 13345, 62, 39994, 3419, 198, 220, 220, 220, 2488, 9288, 869, 7, 38918, 35608, 22784, 277, 8, 6624, 686, 6248, 7957, 694, 26933, 20, 11, 642, 12962, 198, 220, 220, 220, 2488, 9288, 277, 3419, 14512, 686, 6248, 7957, 694, 26933, 20, 11, 642, 12962, 198, 220, 220, 220, 24714, 796, 337, 43938, 13, 45051, 7, 38918, 35608, 22784, 308, 11, 309, 29291, 90, 4906, 1659, 7, 69, 8, 30072, 198, 220, 220, 220, 2488, 9288, 24714, 3419, 6624, 686, 6248, 7957, 694, 26933, 20, 11, 642, 12962, 198, 220, 220, 220, 2488, 9288, 869, 7, 38918, 35608, 22784, 308, 11, 277, 8, 6624, 686, 6248, 7957, 694, 26933, 20, 11, 642, 12962, 198, 437, 198 ]
2.099206
504
function myfuncA() println("Say hello from function A") end
[ 198, 8818, 616, 20786, 32, 3419, 198, 220, 220, 220, 44872, 7203, 25515, 23748, 422, 2163, 317, 4943, 198, 437, 198 ]
3.095238
21
using Distributions import Distributions.logpdf using Base.Cartesian using Base.Threads using FillArrays export logpdf export rand export For struct For{F,T,D,X} f :: F θ :: T end ######################################################### # T <: NTuple{N,J} where {J <: Integer} ######################################################### For(f, θ::J...) where {J <: Integer} = For(f,θ) function For(f::F, θ::T) where {F, N, J <: Integer, T <: NTuple{N,J}} d = f.(Ones{Int}(N)...) D = typeof(d) X = eltype(d) For{F, NTuple{N,J}, D, X}(f,θ) end @inline function logpdf(d::For{F,T,D,X1},xs::AbstractArray{X2,N}) where {F, N, J <: Integer, T <: NTuple{N,J}, D, X1, X2} s = 0.0 @inbounds @simd for θ in CartesianIndices(d.θ) s += logpdf(d.f(Tuple(θ)...), xs[θ]) end s end function Base.rand(dist::For) map(CartesianIndices(dist.θ)) do I (rand ∘ dist.f)(Tuple(I)...) end end ######################################################### # T <: NTuple{N,J} where {J <: AbstractUnitRange} ######################################################### For(f, θ::J...) where {J <: AbstractUnitRange} = For(f,θ) function For(f::F, θ::T) where {F, N, J <: AbstractRange, T <: NTuple{N,J}} d = f.(ones(Int, N)...) D = typeof(d) X = eltype(d) For{F, NTuple{N,J}, D, X}(f,θ) end @inline function logpdf(d::For{F,T,D,X1},xs::AbstractArray{X2,N}) where {F, N, J <: AbstractRange, T <: NTuple{N,J}, D, X1, X2} s = 0.0 @inbounds @simd for θ in CartesianIndices(d.θ) s += logpdf(d.f(Tuple(θ)...), xs[θ]) end s end function Base.rand(dist::For{F,T}) where {F, N, J <: AbstractRange, T <: NTuple{N,J}} map(CartesianIndices(dist.θ)) do I (rand ∘ dist.f)(Tuple(I)...) end end ######################################################### # T <: Base.Generator ######################################################### function For(f::F, θ::T) where {F, T <: Base.Generator} d = f(θ.f(θ.iter[1])) D = typeof(d) X = eltype(d) For{F, T, D, X}(f,θ) end @inline function logpdf(d :: For{F,T}, x) where {F,T <: Base.Generator} s = 0.0 for (θj, xj) in zip(d.θ, x) s += logpdf(d.f(θj), xj) end s end @inline function rand(d :: For{F,T,D,X}) where {F,T <: Base.Generator, D, X} rand.(Base.Generator(d.θ.f, d.θ.iter)) end ######################################################### export logpdf2 @inline function logpdf2(d::For{F,N,X1},xs) where {F,N, X1, X2} results = zeros(eltype(xs), nthreads()) θ = CartesianIndices(d.θ) total = Threads.Atomic{Float64}(0.0) @threads for tid in 1:nthreads() # split work start = 1 + ((tid - 1) * length(xs)) ÷ nthreads() stop = (tid * length(xs)) ÷ nthreads() domain = start:stop s = 0.0 for j in domain @inbounds θj = θ[j] @inbounds s += logpdf(d.f(Tuple(θj)...), xs[θj]) end Threads.atomic_add!(total, s) end total.value end @inline function importanceSample(p::For{F1,N,X}, q::For{F2,N,X}) where {F1,F2,N,X} _ℓ = 0.0 x = Array{X, N}(undef, length.(q.θ)) @inbounds @simd for θ in CartesianIndices(q.θ) I = Tuple(θ) ℓx = importanceSample(p.f(I...), q.f(I...)) _ℓ += ℓx.ℓ x[θ] = ℓx.val end Weighted(_ℓ,x) end # using Transducers # using Transducers: @next, complete # function Transducers.__foldl__(rf, val, d::For) # for θ in d.θ # val = @next(rf, val, f(θ)) # end # return complete(rf, val) # end
[ 3500, 46567, 507, 198, 11748, 46567, 507, 13, 6404, 12315, 198, 3500, 7308, 13, 43476, 35610, 198, 3500, 7308, 13, 16818, 82, 198, 3500, 27845, 3163, 20477, 198, 198, 39344, 2604, 12315, 198, 39344, 43720, 198, 198, 39344, 1114, 198, 7249, 1114, 90, 37, 11, 51, 11, 35, 11, 55, 92, 220, 198, 220, 220, 220, 277, 7904, 376, 220, 220, 198, 220, 220, 220, 7377, 116, 7904, 309, 198, 437, 198, 198, 29113, 14468, 7804, 2, 198, 2, 309, 1279, 25, 24563, 29291, 90, 45, 11, 41, 92, 810, 1391, 41, 1279, 25, 34142, 92, 198, 29113, 14468, 7804, 2, 198, 198, 1890, 7, 69, 11, 7377, 116, 3712, 41, 23029, 810, 1391, 41, 1279, 25, 34142, 92, 796, 1114, 7, 69, 11, 138, 116, 8, 198, 198, 8818, 1114, 7, 69, 3712, 37, 11, 7377, 116, 3712, 51, 8, 810, 1391, 37, 11, 399, 11, 449, 1279, 25, 34142, 11, 309, 1279, 25, 24563, 29291, 90, 45, 11, 41, 11709, 198, 220, 220, 220, 288, 796, 277, 12195, 2202, 274, 90, 5317, 92, 7, 45, 8, 23029, 198, 220, 220, 220, 360, 796, 2099, 1659, 7, 67, 8, 198, 220, 220, 220, 1395, 796, 1288, 4906, 7, 67, 8, 198, 220, 220, 220, 1114, 90, 37, 11, 24563, 29291, 90, 45, 11, 41, 5512, 360, 11, 1395, 92, 7, 69, 11, 138, 116, 8, 198, 437, 198, 198, 31, 45145, 2163, 2604, 12315, 7, 67, 3712, 1890, 90, 37, 11, 51, 11, 35, 11, 55, 16, 5512, 34223, 3712, 23839, 19182, 90, 55, 17, 11, 45, 30072, 810, 1391, 37, 11, 399, 11, 449, 1279, 25, 34142, 11, 309, 1279, 25, 24563, 29291, 90, 45, 11, 41, 5512, 360, 11, 220, 1395, 16, 11, 220, 1395, 17, 92, 198, 220, 220, 220, 264, 796, 657, 13, 15, 198, 220, 220, 220, 2488, 259, 65, 3733, 2488, 14323, 67, 329, 7377, 116, 287, 13690, 35610, 5497, 1063, 7, 67, 13, 138, 116, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 15853, 2604, 12315, 7, 67, 13, 69, 7, 51, 29291, 7, 138, 116, 26513, 828, 2124, 82, 58, 138, 116, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 264, 198, 437, 198, 198, 8818, 7308, 13, 25192, 7, 17080, 3712, 1890, 8, 220, 198, 220, 220, 220, 3975, 7, 43476, 35610, 5497, 1063, 7, 17080, 13, 138, 116, 4008, 466, 314, 198, 220, 220, 220, 220, 220, 220, 220, 357, 25192, 18872, 246, 1233, 13, 69, 5769, 51, 29291, 7, 40, 8, 23029, 198, 220, 220, 220, 886, 198, 437, 198, 198, 29113, 14468, 7804, 2, 198, 2, 309, 1279, 25, 24563, 29291, 90, 45, 11, 41, 92, 810, 1391, 41, 1279, 25, 27741, 26453, 17257, 92, 198, 29113, 14468, 7804, 2, 198, 198, 1890, 7, 69, 11, 7377, 116, 3712, 41, 23029, 810, 1391, 41, 1279, 25, 27741, 26453, 17257, 92, 796, 1114, 7, 69, 11, 138, 116, 8, 198, 198, 8818, 1114, 7, 69, 3712, 37, 11, 7377, 116, 3712, 51, 8, 810, 1391, 37, 11, 399, 11, 449, 1279, 25, 27741, 17257, 11, 309, 1279, 25, 24563, 29291, 90, 45, 11, 41, 11709, 198, 220, 220, 220, 288, 796, 277, 12195, 1952, 7, 5317, 11, 399, 8, 23029, 198, 220, 220, 220, 360, 796, 2099, 1659, 7, 67, 8, 198, 220, 220, 220, 1395, 796, 1288, 4906, 7, 67, 8, 198, 220, 220, 220, 1114, 90, 37, 11, 24563, 29291, 90, 45, 11, 41, 5512, 360, 11, 1395, 92, 7, 69, 11, 138, 116, 8, 198, 437, 628, 198, 31, 45145, 2163, 2604, 12315, 7, 67, 3712, 1890, 90, 37, 11, 51, 11, 35, 11, 55, 16, 5512, 34223, 3712, 23839, 19182, 90, 55, 17, 11, 45, 30072, 810, 1391, 37, 11, 399, 11, 449, 1279, 25, 27741, 17257, 11, 220, 309, 1279, 25, 24563, 29291, 90, 45, 11, 41, 5512, 360, 11, 1395, 16, 11, 1395, 17, 92, 198, 220, 220, 220, 264, 796, 657, 13, 15, 198, 220, 220, 220, 2488, 259, 65, 3733, 2488, 14323, 67, 329, 7377, 116, 287, 13690, 35610, 5497, 1063, 7, 67, 13, 138, 116, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 15853, 2604, 12315, 7, 67, 13, 69, 7, 51, 29291, 7, 138, 116, 26513, 828, 2124, 82, 58, 138, 116, 12962, 198, 220, 220, 220, 886, 198, 220, 220, 220, 264, 198, 437, 628, 198, 8818, 7308, 13, 25192, 7, 17080, 3712, 1890, 90, 37, 11, 51, 30072, 810, 1391, 37, 11, 220, 399, 11, 449, 1279, 25, 27741, 17257, 11, 309, 1279, 25, 24563, 29291, 90, 45, 11, 41, 11709, 198, 220, 220, 220, 3975, 7, 43476, 35610, 5497, 1063, 7, 17080, 13, 138, 116, 4008, 466, 314, 198, 220, 220, 220, 220, 220, 220, 220, 357, 25192, 18872, 246, 1233, 13, 69, 5769, 51, 29291, 7, 40, 8, 23029, 198, 220, 220, 220, 886, 198, 437, 198, 198, 29113, 14468, 7804, 2, 198, 2, 309, 1279, 25, 7308, 13, 8645, 1352, 198, 29113, 14468, 7804, 2, 198, 198, 8818, 1114, 7, 69, 3712, 37, 11, 7377, 116, 3712, 51, 8, 810, 1391, 37, 11, 309, 1279, 25, 7308, 13, 8645, 1352, 92, 198, 220, 220, 220, 288, 796, 277, 7, 138, 116, 13, 69, 7, 138, 116, 13, 2676, 58, 16, 60, 4008, 198, 220, 220, 220, 360, 796, 2099, 1659, 7, 67, 8, 198, 220, 220, 220, 1395, 796, 1288, 4906, 7, 67, 8, 198, 220, 220, 220, 1114, 90, 37, 11, 309, 11, 360, 11, 1395, 92, 7, 69, 11, 138, 116, 8, 198, 437, 628, 198, 31, 45145, 2163, 2604, 12315, 7, 67, 7904, 1114, 90, 37, 11, 51, 5512, 2124, 8, 810, 1391, 37, 11, 51, 1279, 25, 7308, 13, 8645, 1352, 92, 198, 220, 220, 220, 264, 796, 657, 13, 15, 198, 220, 220, 220, 329, 357, 138, 116, 73, 11, 2124, 73, 8, 287, 19974, 7, 67, 13, 138, 116, 11, 2124, 8, 198, 220, 220, 220, 220, 220, 220, 220, 264, 15853, 2604, 12315, 7, 67, 13, 69, 7, 138, 116, 73, 828, 2124, 73, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 264, 198, 437, 198, 198, 31, 45145, 2163, 43720, 7, 67, 7904, 1114, 90, 37, 11, 51, 11, 35, 11, 55, 30072, 810, 1391, 37, 11, 51, 1279, 25, 7308, 13, 8645, 1352, 11, 360, 11, 1395, 92, 198, 220, 220, 220, 43720, 12195, 14881, 13, 8645, 1352, 7, 67, 13, 138, 116, 13, 69, 11, 288, 13, 138, 116, 13, 2676, 4008, 198, 437, 198, 198, 29113, 14468, 7804, 2, 628, 628, 628, 628, 628, 198, 39344, 2604, 12315, 17, 198, 31, 45145, 2163, 2604, 12315, 17, 7, 67, 3712, 1890, 90, 37, 11, 45, 11, 55, 16, 5512, 34223, 8, 810, 1391, 37, 11, 45, 11, 1395, 16, 11, 1395, 17, 92, 198, 220, 220, 220, 2482, 796, 1976, 27498, 7, 417, 4906, 7, 34223, 828, 299, 16663, 82, 28955, 628, 220, 220, 220, 7377, 116, 796, 13690, 35610, 5497, 1063, 7, 67, 13, 138, 116, 8, 628, 220, 220, 220, 2472, 796, 14122, 82, 13, 2953, 10179, 90, 43879, 2414, 92, 7, 15, 13, 15, 8, 198, 220, 220, 220, 2488, 16663, 82, 329, 29770, 287, 352, 25, 77, 16663, 82, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 6626, 670, 198, 220, 220, 220, 220, 220, 220, 220, 923, 796, 352, 1343, 14808, 83, 312, 532, 352, 8, 1635, 4129, 7, 34223, 4008, 6184, 115, 299, 16663, 82, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2245, 796, 357, 83, 312, 1635, 4129, 7, 34223, 4008, 6184, 115, 299, 16663, 82, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 7386, 796, 923, 25, 11338, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 264, 796, 657, 13, 15, 198, 220, 220, 220, 220, 220, 220, 220, 329, 474, 287, 7386, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 65, 3733, 7377, 116, 73, 796, 7377, 116, 58, 73, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 259, 65, 3733, 264, 15853, 2604, 12315, 7, 67, 13, 69, 7, 51, 29291, 7, 138, 116, 73, 26513, 828, 2124, 82, 58, 138, 116, 73, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 14122, 82, 13, 47116, 62, 2860, 0, 7, 23350, 11, 264, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2472, 13, 8367, 198, 437, 198, 198, 31, 45145, 2163, 6817, 36674, 7, 79, 3712, 1890, 90, 37, 16, 11, 45, 11, 55, 5512, 10662, 3712, 1890, 90, 37, 17, 11, 45, 11, 55, 30072, 810, 1391, 37, 16, 11, 37, 17, 11, 45, 11, 55, 92, 198, 220, 220, 220, 4808, 158, 226, 241, 796, 657, 13, 15, 198, 220, 220, 220, 2124, 796, 15690, 90, 55, 11, 399, 92, 7, 917, 891, 11, 4129, 12195, 80, 13, 138, 116, 4008, 198, 220, 220, 220, 2488, 259, 65, 3733, 2488, 14323, 67, 329, 7377, 116, 287, 13690, 35610, 5497, 1063, 7, 80, 13, 138, 116, 8, 198, 220, 220, 220, 220, 220, 220, 220, 314, 796, 309, 29291, 7, 138, 116, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2343, 226, 241, 87, 796, 6817, 36674, 7, 79, 13, 69, 7, 40, 986, 828, 10662, 13, 69, 7, 40, 986, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 158, 226, 241, 15853, 2343, 226, 241, 87, 13, 158, 226, 241, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 58, 138, 116, 60, 796, 2343, 226, 241, 87, 13, 2100, 198, 220, 220, 220, 886, 198, 220, 220, 220, 14331, 276, 28264, 158, 226, 241, 11, 87, 8, 198, 437, 198, 198, 2, 1262, 3602, 41213, 198, 2, 1262, 3602, 41213, 25, 2488, 19545, 11, 1844, 198, 2, 2163, 3602, 41213, 13, 834, 11379, 75, 834, 7, 41871, 11, 1188, 11, 288, 3712, 1890, 8, 198, 2, 220, 220, 220, 220, 329, 7377, 116, 287, 288, 13, 138, 116, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 1188, 796, 2488, 19545, 7, 41871, 11, 1188, 11, 277, 7, 138, 116, 4008, 198, 2, 220, 220, 220, 220, 886, 198, 2, 220, 220, 220, 220, 1441, 1844, 7, 41871, 11, 1188, 8, 198, 2, 886, 628 ]
2.082367
1,724
module ApproxOperator import Base: +, -, *, getindex, setindex!, getproperty, setproperty!, length, push!, fill!, issubset, intersect import InteractiveUtils: subtypes abstract type AbstractNode end abstract type AbstractElement{T} end abstract type SpatialPartition end include("node.jl") include("snode.jl") include("approximation.jl") include("approximation_mf.jl") include("integration.jl") include("operation.jl") include("operation_thin_plate.jl") include("approximation_rk.jl") include("import.jl") export Node, Element, SNode, ReproducingKernel, getnₚ export importmsh export RegularGrid export Operator, prescribe!, issubset, intersect export set𝓖! export set𝝭!, set∇𝝭!, set∇²𝝭!, set∇³𝝭!, set∇̃𝝭!, set∇̃²𝝭!, set∇∇̃²𝝭!, set∇̄𝝭!, set𝒏!, set∇𝑢!, get∇𝑢, get𝝐, set_memory_𝝭! #debug include("littletools.jl") export get𝐴,cal𝗠!,cal𝗚!,get𝒙,get∇𝝭,get𝝭,checkIC, checkCC, checkConsistency end
[ 21412, 2034, 13907, 18843, 1352, 198, 198, 11748, 7308, 25, 1343, 11, 532, 11, 1635, 11, 651, 9630, 11, 900, 9630, 28265, 651, 26745, 11, 900, 26745, 28265, 4129, 11, 4574, 28265, 6070, 28265, 1189, 549, 2617, 11, 36177, 198, 11748, 21365, 18274, 4487, 25, 850, 19199, 198, 198, 397, 8709, 2099, 27741, 19667, 886, 198, 397, 8709, 2099, 27741, 20180, 90, 51, 92, 886, 198, 397, 8709, 2099, 1338, 34961, 7841, 653, 886, 198, 198, 17256, 7203, 17440, 13, 20362, 4943, 198, 17256, 7203, 16184, 1098, 13, 20362, 4943, 198, 17256, 7203, 1324, 13907, 18991, 13, 20362, 4943, 198, 17256, 7203, 1324, 13907, 18991, 62, 76, 69, 13, 20362, 4943, 198, 17256, 7203, 18908, 1358, 13, 20362, 4943, 198, 17256, 7203, 27184, 13, 20362, 4943, 198, 17256, 7203, 27184, 62, 40871, 62, 6816, 13, 20362, 4943, 198, 17256, 7203, 1324, 13907, 18991, 62, 81, 74, 13, 20362, 4943, 198, 17256, 7203, 11748, 13, 20362, 4943, 198, 198, 39344, 19081, 11, 11703, 11, 11346, 1098, 11, 36551, 2259, 42, 7948, 11, 651, 77, 158, 224, 248, 198, 39344, 1330, 907, 71, 198, 39344, 23603, 41339, 198, 39344, 35946, 11, 32651, 28265, 1189, 549, 2617, 11, 36177, 198, 39344, 900, 47728, 241, 244, 0, 198, 39344, 900, 47728, 251, 255, 28265, 900, 24861, 229, 47728, 251, 255, 28265, 900, 24861, 229, 31185, 47728, 251, 255, 28265, 900, 24861, 229, 126, 111, 47728, 251, 255, 28265, 900, 24861, 229, 136, 225, 47728, 251, 255, 28265, 900, 24861, 229, 136, 225, 31185, 47728, 251, 255, 28265, 900, 24861, 229, 24861, 229, 136, 225, 31185, 47728, 251, 255, 28265, 900, 24861, 229, 136, 226, 47728, 251, 255, 28265, 900, 47728, 240, 237, 28265, 900, 24861, 229, 47728, 239, 95, 28265, 651, 24861, 229, 47728, 239, 95, 11, 651, 47728, 251, 238, 11, 900, 62, 31673, 62, 47728, 251, 255, 0, 198, 198, 2, 24442, 198, 17256, 7203, 31629, 31391, 13, 20362, 4943, 198, 39344, 651, 47728, 238, 112, 11, 9948, 47728, 245, 254, 28265, 9948, 47728, 245, 248, 28265, 1136, 47728, 240, 247, 11, 1136, 24861, 229, 47728, 251, 255, 11, 1136, 47728, 251, 255, 11, 9122, 2149, 11, 2198, 4093, 11, 2198, 9444, 396, 1387, 198, 198, 437, 198 ]
2.45082
366
# Copyright 2018 Gandalf Software, Inc. (Scott Paul Jones) # Licensed under MIT License, see LICENSE.md function _cmp(::ByteCompare, a, b) asiz = ncodeunits(a) apnt = pointer(a) bsiz = ncodeunits(b) bpnt = pointer(b) asiz == bsiz && return apnt === bpnt ? 0 : _memcmp(apnt, bpnt, asiz) res = _memcmp(apnt, bpnt, min(asiz, bsiz)) res < 0 ? -1 : res > 0 ? 1 : cmp(asiz, bsiz) end @inline adjust_utf16(ch) = ch - ifelse(ch < 0xe000, 0xb800, 0xe000) _cmp_utf16(c1::UInt16, c2::UInt16) = ((c1 < 0xd800 || c2 < 0xd800) ? ifelse(c1 > c2, 1, -1) : ifelse(adjust_utf16(c1) > adjust_utf16(c2), 1, -1)) # This needs to handle the last word specially, if one is a surrogate pair and the other isn't # It should be optimized to test at least 64 bits at a time for equality function _memcmp16(apnt, bpnt, len) fin = bytoff(apnt, len) while apnt < fin (c1 = get_codeunit(apnt)) == (c2 = get_codeunit(bpnt)) || return _cmp_utf16(c1, c2) apnt += 2 bpnt += 2 end 0 end function _cmp(::UTF16Compare, a, b) asiz = ncodeunits(a) apnt = pointer(a) bsiz = ncodeunits(b) bpnt = pointer(b) if asiz < bsiz ifelse(_memcmp16(apnt, bpnt, asiz) <= 0, -1, 1) elseif asiz > bsiz ifelse(_memcmp16(apnt, bpnt, bsiz) < 0, -1, 1) elseif apnt != bpnt _memcmp16(apnt, bpnt, asiz) else 0 end end @inline _lenpntfin(str) = (ncodeunits(str), pointer(str), pointer(str) + sizeof(str)) @inline function _cpcmp(a::MaybeSub{T}, b) where {C<:CSE,T<:Str{C}} len, pnt, fin = _lenpntfin(a) pos = start(b) while pnt < fin done(b, pos) && return 1 c1, pnt = _nextcp(C, pnt) ch, pos = next(b, pos) c2 = ch%UInt32 c1 == c2 || return ifelse(c1 < c2, -1, 1) end ifelse(done(b, pos), 0, -1) end _cmp(::CodePointCompare, a::MaybeSub{<:Str}, b::AbstractString) = _cpcmp(a, b) _cmp(::CodePointCompare, a::AbstractString, b::MaybeSub{<:Str}) = -_cpcmp(b, a) function _cmp(::CodePointCompare, a::MaybeSub{S}, b::MaybeSub{T}) where {CSE1,CSE2,S<:Str{CSE1},T<:Str{CSE2}} len1, pnt1, fin1 = _lenpntfin(a) len2, pnt2, fin2 = _lenpntfin(b) while pnt1 < fin1 pnt2 < fin2 || return 1 c1, pnt1 = _nextcp(CSE1, pnt1) c2, pnt2 = _nextcp(CSE2, pnt2) c1 != c2 && return ifelse(c1 < c2, -1, 1) end ifelse(pnt2 < fin2, -1, 0) end cmp(a::MaybeSub{<:Str}, b::AbstractString) = @preserve a _cmp(CompareStyle(a, b), a, b) cmp(a::AbstractString, b::MaybeSub{<:Str}) = @preserve b _cmp(CompareStyle(a, b), a, b) cmp(a::MaybeSub{<:Str}, b::MaybeSub{<:Str}) = @preserve a b _cmp(CompareStyle(a, b), a, b) # Todo: handle comparisons of UTF16 specially, to compare first non-matching character # as if comparing Char to Char, to get ordering correct when dealing with > 0xffff non-BMP # characters @inline _fasteq(a, b) = (len = ncodeunits(a)) == ncodeunits(b) && _memcmp(a, b, len) == 0 function _cpeq(a::MaybeSub{T}, b) where {C<:CSE, T<:Str{C}} len, pnt, fin = _lenpntfin(a) pos = start(b) while pnt < fin done(b, pos) && return false c1, pnt = _nextcp(C, pnt) ch, pos = next(b, pos) c1 == codepoint(ch) || return false end true end _cpeq(a, b::MaybeSub{T}) where {C<:CSE, T<:Str{C}} = _cpeq(b, a) function _cpeq(a::MaybeSub{<:Str{C1}}, b::MaybeSub{<:Str{C2}}) where {C1<:CSE, C2<:CSE} len1, pnt1, fin1 = _lenpntfin(a) len2, pnt2, fin2 = _lenpntfin(b) while pnt1 < fin1 pnt2 < fin2 || return false c1, pnt1 = _nextcp(C1, pnt1) c2, pnt2 = _nextcp(C2, pnt2) c1 == c2 || return false end true end # This can be speeded up in the future with SSE/AVX instructions to unpack bytes, # or to mask chunks of characters first to see if there are any too large in the wider of the two function _wideneq(a::MaybeSub{S}, b::MaybeSub{T}) where {S<:Str,T<:Str} (len = ncodeunits(a)) == ncodeunits(b) || return false pnt1 = pointer(a) pnt2 = pointer(b) fin = pnt1 + sizeof(a) while pnt1 < fin get_codeunit(pnt1) == get_codeunit(pnt2) || return false pnt1 += sizeof(codeunit(S)) pnt2 += sizeof(codeunit(T)) end true end _iseq(::NoCompare, a, b) = false _iseq(::ByteCompare, a, b) = _fasteq(a, b) _iseq(::WordCompare, a, b) = _fasteq(a, b) _iseq(::UTF16Compare, a, b) = _fasteq(a, b) _iseq(::WidenCompare, a, b) = _wideneq(a, b) _iseq(::ASCIICompare, a, b) = _cpeq(a, b) # This can be optimized later _iseq(::CodePointCompare, a, b) = _cpeq(a, b) ==(a::AbstractString, b::MaybeSub{<:Str}) = @preserve b _iseq(EqualsStyle(a, b), a, b) ==(a::MaybeSub{<:Str}, b::AbstractString) = @preserve a _iseq(EqualsStyle(a, b), a, b) ==(a::MaybeSub{<:Str}, b::MaybeSub{<:Str}) = @preserve a b _iseq(EqualsStyle(a, b), a, b) isless(a::AbstractString, b::MaybeSub{<:Str}) = cmp(a, b) < 0 isless(a::MaybeSub{<:Str}, b::AbstractString) = cmp(a, b) < 0 isless(a::MaybeSub{<:Str}, b::MaybeSub{<:Str}) = cmp(a, b) < 0
[ 2, 15069, 2864, 17727, 1604, 10442, 11, 3457, 13, 357, 19040, 3362, 5437, 8, 198, 2, 49962, 739, 17168, 13789, 11, 766, 38559, 24290, 13, 9132, 198, 198, 8818, 4808, 48991, 7, 3712, 40778, 41488, 11, 257, 11, 275, 8, 198, 220, 220, 220, 355, 528, 796, 299, 8189, 41667, 7, 64, 8, 198, 220, 220, 220, 2471, 429, 796, 17562, 7, 64, 8, 198, 220, 220, 220, 275, 82, 528, 796, 299, 8189, 41667, 7, 65, 8, 198, 220, 220, 220, 275, 79, 429, 796, 17562, 7, 65, 8, 198, 220, 220, 220, 355, 528, 6624, 275, 82, 528, 11405, 1441, 2471, 429, 24844, 275, 79, 429, 5633, 657, 1058, 4808, 11883, 48991, 7, 499, 429, 11, 275, 79, 429, 11, 355, 528, 8, 198, 220, 220, 220, 581, 796, 4808, 11883, 48991, 7, 499, 429, 11, 275, 79, 429, 11, 949, 7, 292, 528, 11, 275, 82, 528, 4008, 198, 220, 220, 220, 581, 1279, 657, 5633, 532, 16, 1058, 581, 1875, 657, 5633, 352, 1058, 269, 3149, 7, 292, 528, 11, 275, 82, 528, 8, 198, 437, 198, 198, 31, 45145, 4532, 62, 40477, 1433, 7, 354, 8, 796, 442, 532, 611, 17772, 7, 354, 1279, 657, 27705, 830, 11, 657, 30894, 7410, 11, 657, 27705, 830, 8, 198, 198, 62, 48991, 62, 40477, 1433, 7, 66, 16, 3712, 52, 5317, 1433, 11, 269, 17, 3712, 52, 5317, 1433, 8, 796, 198, 220, 220, 220, 14808, 66, 16, 1279, 657, 24954, 7410, 8614, 269, 17, 1279, 657, 24954, 7410, 8, 198, 220, 220, 220, 220, 5633, 611, 17772, 7, 66, 16, 1875, 269, 17, 11, 352, 11, 532, 16, 8, 198, 220, 220, 220, 220, 1058, 611, 17772, 7, 23032, 62, 40477, 1433, 7, 66, 16, 8, 1875, 4532, 62, 40477, 1433, 7, 66, 17, 828, 352, 11, 532, 16, 4008, 198, 198, 2, 770, 2476, 284, 5412, 262, 938, 1573, 20905, 11, 611, 530, 318, 257, 37660, 5166, 290, 262, 584, 2125, 470, 198, 2, 632, 815, 307, 23392, 284, 1332, 379, 1551, 5598, 10340, 379, 257, 640, 329, 10537, 198, 8818, 4808, 11883, 48991, 1433, 7, 499, 429, 11, 275, 79, 429, 11, 18896, 8, 198, 220, 220, 220, 957, 796, 416, 1462, 487, 7, 499, 429, 11, 18896, 8, 198, 220, 220, 220, 981, 2471, 429, 1279, 957, 198, 220, 220, 220, 220, 220, 220, 220, 357, 66, 16, 796, 651, 62, 8189, 20850, 7, 499, 429, 4008, 6624, 357, 66, 17, 796, 651, 62, 8189, 20850, 7, 46583, 429, 4008, 8614, 1441, 4808, 48991, 62, 40477, 1433, 7, 66, 16, 11, 269, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2471, 429, 15853, 362, 198, 220, 220, 220, 220, 220, 220, 220, 275, 79, 429, 15853, 362, 198, 220, 220, 220, 886, 198, 220, 220, 220, 657, 198, 437, 198, 198, 8818, 4808, 48991, 7, 3712, 48504, 1433, 41488, 11, 257, 11, 275, 8, 198, 220, 220, 220, 355, 528, 796, 299, 8189, 41667, 7, 64, 8, 198, 220, 220, 220, 2471, 429, 796, 17562, 7, 64, 8, 198, 220, 220, 220, 275, 82, 528, 796, 299, 8189, 41667, 7, 65, 8, 198, 220, 220, 220, 275, 79, 429, 796, 17562, 7, 65, 8, 198, 220, 220, 220, 611, 355, 528, 1279, 275, 82, 528, 198, 220, 220, 220, 220, 220, 220, 220, 611, 17772, 28264, 11883, 48991, 1433, 7, 499, 429, 11, 275, 79, 429, 11, 355, 528, 8, 19841, 657, 11, 532, 16, 11, 352, 8, 198, 220, 220, 220, 2073, 361, 355, 528, 1875, 275, 82, 528, 198, 220, 220, 220, 220, 220, 220, 220, 611, 17772, 28264, 11883, 48991, 1433, 7, 499, 429, 11, 275, 79, 429, 11, 275, 82, 528, 8, 1279, 657, 11, 532, 16, 11, 352, 8, 198, 220, 220, 220, 2073, 361, 2471, 429, 14512, 275, 79, 429, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 11883, 48991, 1433, 7, 499, 429, 11, 275, 79, 429, 11, 355, 528, 8, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 657, 198, 220, 220, 220, 886, 198, 437, 198, 198, 31, 45145, 4808, 11925, 79, 429, 15643, 7, 2536, 8, 796, 357, 77, 8189, 41667, 7, 2536, 828, 17562, 7, 2536, 828, 17562, 7, 2536, 8, 1343, 39364, 7, 2536, 4008, 198, 198, 31, 45145, 2163, 4808, 13155, 48991, 7, 64, 3712, 13300, 7004, 90, 51, 5512, 275, 8, 810, 1391, 34, 27, 25, 34, 5188, 11, 51, 27, 25, 13290, 90, 34, 11709, 198, 220, 220, 220, 18896, 11, 279, 429, 11, 957, 796, 4808, 11925, 79, 429, 15643, 7, 64, 8, 198, 220, 220, 220, 1426, 796, 923, 7, 65, 8, 198, 220, 220, 220, 981, 279, 429, 1279, 957, 198, 220, 220, 220, 220, 220, 220, 220, 1760, 7, 65, 11, 1426, 8, 11405, 1441, 352, 198, 220, 220, 220, 220, 220, 220, 220, 269, 16, 11, 279, 429, 796, 4808, 19545, 13155, 7, 34, 11, 279, 429, 8, 198, 220, 220, 220, 220, 220, 220, 220, 442, 11, 1426, 796, 1306, 7, 65, 11, 1426, 8, 198, 220, 220, 220, 220, 220, 220, 220, 269, 17, 796, 442, 4, 52, 5317, 2624, 198, 220, 220, 220, 220, 220, 220, 220, 269, 16, 6624, 269, 17, 8614, 1441, 611, 17772, 7, 66, 16, 1279, 269, 17, 11, 532, 16, 11, 352, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 17772, 7, 28060, 7, 65, 11, 1426, 828, 657, 11, 532, 16, 8, 198, 437, 198, 198, 62, 48991, 7, 3712, 10669, 12727, 41488, 11, 257, 3712, 13300, 7004, 90, 27, 25, 13290, 5512, 275, 3712, 23839, 10100, 8, 796, 4808, 13155, 48991, 7, 64, 11, 275, 8, 198, 62, 48991, 7, 3712, 10669, 12727, 41488, 11, 257, 3712, 23839, 10100, 11, 275, 3712, 13300, 7004, 90, 27, 25, 13290, 30072, 796, 532, 62, 13155, 48991, 7, 65, 11, 257, 8, 198, 198, 8818, 4808, 48991, 7, 3712, 10669, 12727, 41488, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 257, 3712, 13300, 7004, 90, 50, 5512, 275, 3712, 13300, 7004, 90, 51, 30072, 810, 1391, 34, 5188, 16, 11, 34, 5188, 17, 11, 50, 27, 25, 13290, 90, 34, 5188, 16, 5512, 51, 27, 25, 13290, 90, 34, 5188, 17, 11709, 198, 220, 220, 220, 18896, 16, 11, 279, 429, 16, 11, 957, 16, 796, 4808, 11925, 79, 429, 15643, 7, 64, 8, 198, 220, 220, 220, 18896, 17, 11, 279, 429, 17, 11, 957, 17, 796, 4808, 11925, 79, 429, 15643, 7, 65, 8, 198, 220, 220, 220, 981, 279, 429, 16, 1279, 957, 16, 198, 220, 220, 220, 220, 220, 220, 220, 279, 429, 17, 1279, 957, 17, 8614, 1441, 352, 198, 220, 220, 220, 220, 220, 220, 220, 269, 16, 11, 279, 429, 16, 796, 4808, 19545, 13155, 7, 34, 5188, 16, 11, 279, 429, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 269, 17, 11, 279, 429, 17, 796, 4808, 19545, 13155, 7, 34, 5188, 17, 11, 279, 429, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 269, 16, 14512, 269, 17, 11405, 1441, 611, 17772, 7, 66, 16, 1279, 269, 17, 11, 532, 16, 11, 352, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 17772, 7, 79, 429, 17, 1279, 957, 17, 11, 532, 16, 11, 657, 8, 198, 437, 198, 198, 48991, 7, 64, 3712, 13300, 7004, 90, 27, 25, 13290, 5512, 275, 3712, 23839, 10100, 8, 220, 796, 2488, 18302, 3760, 257, 4808, 48991, 7, 41488, 21466, 7, 64, 11, 275, 828, 257, 11, 275, 8, 198, 48991, 7, 64, 3712, 23839, 10100, 11, 220, 275, 3712, 13300, 7004, 90, 27, 25, 13290, 30072, 796, 2488, 18302, 3760, 275, 4808, 48991, 7, 41488, 21466, 7, 64, 11, 275, 828, 257, 11, 275, 8, 198, 48991, 7, 64, 3712, 13300, 7004, 90, 27, 25, 13290, 5512, 275, 3712, 13300, 7004, 90, 27, 25, 13290, 30072, 796, 2488, 18302, 3760, 257, 275, 4808, 48991, 7, 41488, 21466, 7, 64, 11, 275, 828, 257, 11, 275, 8, 198, 198, 2, 309, 24313, 25, 5412, 17909, 286, 41002, 1433, 20905, 11, 284, 8996, 717, 1729, 12, 15699, 278, 2095, 198, 2, 355, 611, 14176, 3178, 284, 3178, 11, 284, 651, 16216, 3376, 618, 7219, 351, 1875, 657, 87, 12927, 1729, 12, 33, 7378, 198, 2, 3435, 198, 198, 31, 45145, 4808, 69, 4594, 80, 7, 64, 11, 275, 8, 796, 357, 11925, 796, 299, 8189, 41667, 7, 64, 4008, 6624, 299, 8189, 41667, 7, 65, 8, 11405, 4808, 11883, 48991, 7, 64, 11, 275, 11, 18896, 8, 6624, 657, 198, 198, 8818, 4808, 66, 431, 80, 7, 64, 3712, 13300, 7004, 90, 51, 5512, 275, 8, 810, 1391, 34, 27, 25, 34, 5188, 11, 309, 27, 25, 13290, 90, 34, 11709, 198, 220, 220, 220, 18896, 11, 279, 429, 11, 957, 796, 4808, 11925, 79, 429, 15643, 7, 64, 8, 198, 220, 220, 220, 1426, 796, 923, 7, 65, 8, 198, 220, 220, 220, 981, 279, 429, 1279, 957, 198, 220, 220, 220, 220, 220, 220, 220, 1760, 7, 65, 11, 1426, 8, 11405, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 269, 16, 11, 279, 429, 796, 4808, 19545, 13155, 7, 34, 11, 279, 429, 8, 198, 220, 220, 220, 220, 220, 220, 220, 442, 11, 1426, 796, 1306, 7, 65, 11, 1426, 8, 198, 220, 220, 220, 220, 220, 220, 220, 269, 16, 6624, 14873, 538, 1563, 7, 354, 8, 8614, 1441, 3991, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2081, 198, 437, 198, 198, 62, 66, 431, 80, 7, 64, 11, 275, 3712, 13300, 7004, 90, 51, 30072, 810, 1391, 34, 27, 25, 34, 5188, 11, 309, 27, 25, 13290, 90, 34, 11709, 796, 4808, 66, 431, 80, 7, 65, 11, 257, 8, 198, 198, 8818, 4808, 66, 431, 80, 7, 64, 3712, 13300, 7004, 90, 27, 25, 13290, 90, 34, 16, 92, 5512, 275, 3712, 13300, 7004, 90, 27, 25, 13290, 90, 34, 17, 11709, 8, 810, 1391, 34, 16, 27, 25, 34, 5188, 11, 327, 17, 27, 25, 34, 5188, 92, 198, 220, 220, 220, 18896, 16, 11, 279, 429, 16, 11, 957, 16, 796, 4808, 11925, 79, 429, 15643, 7, 64, 8, 198, 220, 220, 220, 18896, 17, 11, 279, 429, 17, 11, 957, 17, 796, 4808, 11925, 79, 429, 15643, 7, 65, 8, 198, 220, 220, 220, 981, 279, 429, 16, 1279, 957, 16, 198, 220, 220, 220, 220, 220, 220, 220, 279, 429, 17, 1279, 957, 17, 8614, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 269, 16, 11, 279, 429, 16, 796, 4808, 19545, 13155, 7, 34, 16, 11, 279, 429, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 269, 17, 11, 279, 429, 17, 796, 4808, 19545, 13155, 7, 34, 17, 11, 279, 429, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 269, 16, 6624, 269, 17, 8614, 1441, 3991, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2081, 198, 437, 198, 198, 2, 770, 460, 307, 2866, 276, 510, 287, 262, 2003, 351, 311, 5188, 14, 10116, 55, 7729, 284, 555, 8002, 9881, 11, 198, 2, 393, 284, 9335, 22716, 286, 3435, 717, 284, 766, 611, 612, 389, 597, 1165, 1588, 287, 262, 10595, 286, 262, 734, 198, 8818, 4808, 28029, 1734, 80, 7, 64, 3712, 13300, 7004, 90, 50, 5512, 275, 3712, 13300, 7004, 90, 51, 30072, 810, 1391, 50, 27, 25, 13290, 11, 51, 27, 25, 13290, 92, 198, 220, 220, 220, 357, 11925, 796, 299, 8189, 41667, 7, 64, 4008, 6624, 299, 8189, 41667, 7, 65, 8, 8614, 1441, 3991, 198, 220, 220, 220, 279, 429, 16, 796, 17562, 7, 64, 8, 198, 220, 220, 220, 279, 429, 17, 796, 17562, 7, 65, 8, 198, 220, 220, 220, 957, 220, 796, 279, 429, 16, 1343, 39364, 7, 64, 8, 198, 220, 220, 220, 981, 279, 429, 16, 1279, 957, 198, 220, 220, 220, 220, 220, 220, 220, 651, 62, 8189, 20850, 7, 79, 429, 16, 8, 6624, 651, 62, 8189, 20850, 7, 79, 429, 17, 8, 8614, 1441, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 279, 429, 16, 15853, 39364, 7, 8189, 20850, 7, 50, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 279, 429, 17, 15853, 39364, 7, 8189, 20850, 7, 51, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2081, 198, 437, 198, 198, 62, 786, 80, 7, 3712, 2949, 41488, 11, 220, 220, 220, 220, 220, 220, 220, 257, 11, 275, 8, 796, 3991, 198, 62, 786, 80, 7, 3712, 40778, 41488, 11, 220, 220, 220, 220, 220, 257, 11, 275, 8, 796, 4808, 69, 4594, 80, 7, 64, 11, 275, 8, 198, 62, 786, 80, 7, 3712, 26449, 41488, 11, 220, 220, 220, 220, 220, 257, 11, 275, 8, 796, 4808, 69, 4594, 80, 7, 64, 11, 275, 8, 198, 62, 786, 80, 7, 3712, 48504, 1433, 41488, 11, 220, 220, 220, 220, 257, 11, 275, 8, 796, 4808, 69, 4594, 80, 7, 64, 11, 275, 8, 198, 62, 786, 80, 7, 3712, 54, 14029, 41488, 11, 220, 220, 220, 220, 257, 11, 275, 8, 796, 4808, 28029, 1734, 80, 7, 64, 11, 275, 8, 198, 62, 786, 80, 7, 3712, 1921, 25690, 2149, 3361, 533, 11, 220, 220, 220, 220, 257, 11, 275, 8, 796, 4808, 66, 431, 80, 7, 64, 11, 275, 8, 1303, 770, 460, 307, 23392, 1568, 198, 62, 786, 80, 7, 3712, 10669, 12727, 41488, 11, 257, 11, 275, 8, 796, 4808, 66, 431, 80, 7, 64, 11, 275, 8, 198, 198, 855, 7, 64, 3712, 23839, 10100, 11, 220, 275, 3712, 13300, 7004, 90, 27, 25, 13290, 30072, 796, 2488, 18302, 3760, 275, 4808, 786, 80, 7, 23588, 874, 21466, 7, 64, 11, 275, 828, 257, 11, 275, 8, 198, 855, 7, 64, 3712, 13300, 7004, 90, 27, 25, 13290, 5512, 275, 3712, 23839, 10100, 8, 220, 796, 2488, 18302, 3760, 257, 4808, 786, 80, 7, 23588, 874, 21466, 7, 64, 11, 275, 828, 257, 11, 275, 8, 198, 855, 7, 64, 3712, 13300, 7004, 90, 27, 25, 13290, 5512, 275, 3712, 13300, 7004, 90, 27, 25, 13290, 30072, 796, 2488, 18302, 3760, 257, 275, 4808, 786, 80, 7, 23588, 874, 21466, 7, 64, 11, 275, 828, 257, 11, 275, 8, 198, 198, 271, 1203, 7, 64, 3712, 23839, 10100, 11, 220, 275, 3712, 13300, 7004, 90, 27, 25, 13290, 30072, 796, 269, 3149, 7, 64, 11, 275, 8, 1279, 657, 198, 271, 1203, 7, 64, 3712, 13300, 7004, 90, 27, 25, 13290, 5512, 275, 3712, 23839, 10100, 8, 220, 796, 269, 3149, 7, 64, 11, 275, 8, 1279, 657, 198, 271, 1203, 7, 64, 3712, 13300, 7004, 90, 27, 25, 13290, 5512, 275, 3712, 13300, 7004, 90, 27, 25, 13290, 30072, 796, 269, 3149, 7, 64, 11, 275, 8, 1279, 657, 198 ]
2.053716
2,476
#------------------------------------------------------------------- #* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. #* #* This LIBRARY is free software; you can distribute it and/or modify #* it under the therms of the ALSOC FREE LICENSE as available at #* http://www.enq.ufrgs.br/alsoc. #* #* EMSO Copyright (C) 2004 - 2007 ALSOC, original code #* from http://www.rps.eng.br Copyright (C) 2002-2004. #* All rights reserved. #* #* EMSO is distributed under the therms of the ALSOC LICENSE as #* available at http://www.enq.ufrgs.br/alsoc. #* #*-------------------------------------------------------------------- #* Model of basic streams #*---------------------------------------------------------------------- #* Author: Paula B. Staudt and Rafael de P. Soares #* $Id$ #*--------------------------------------------------------------------- type streamPH streamPH()=begin PP=outers.PP new( stream(), DanaPlugin(Dict{Symbol,Any}( :Brief=>"External Physical Properties", :Type=>"PP" )), fill(fraction(Dict{Symbol,Any}( :Brief=>"Liquid Molar Fraction", :Hidden=>true )),(NComp)), fill(fraction(Dict{Symbol,Any}( :Brief=>"Vapour Molar Fraction", :Hidden=>true )),(NComp)), [ :([v, x, y] = PP.FlashPH(P, h, z)), :(h = (1-v)*PP.LiquidEnthalpy(T, P, x) + v*PP.VapourEnthalpy(T, P, y)), ], [ "Flash Calculation","Enthalpy", ], [:PP,], [:x,:y,] ) end _base_1::stream PP::DanaPlugin x::Array{fraction} y::Array{fraction} equations::Array{Expr,1} equationNames::Array{String,1} parameters::Array{Symbol,1} variables::Array{Symbol,1} attributes::Dict{Symbol,Any} end export streamPH function setEquationFlow(in::streamPH) addEquation(1) addEquation(2) end function atributes(in::streamPH,_::Dict{Symbol,Any}) fields::Dict{Symbol,Any}=Dict{Symbol,Any}() fields[:Brief]="Stream with built-in flash calculation" fields[:Info]=" This model should be used when the vaporization fraction is unknown. The built-in flash calculation will determine the stream state as a function of the overall composition '''z''', the pressure '''P''' and the enthalpy '''h'''. Additionally, the liquid composition '''x''' and the vapor composition '''y''' are calculated. " fields[:Pallete]=false drive!(fields,_) return fields end streamPH(_::Dict{Symbol,Any})=begin newModel=streamPH() newModel.attributes=atributes(newModel,_) newModel end
[ 2, 10097, 6329, 198, 2, 9, 41363, 46, 9104, 10074, 357, 3620, 43, 8, 15069, 357, 34, 8, 5472, 532, 4343, 27249, 4503, 13, 198, 2, 9, 198, 2, 9, 770, 45651, 49, 13153, 318, 1479, 3788, 26, 345, 460, 14983, 340, 290, 14, 273, 13096, 198, 2, 9, 340, 739, 262, 10811, 907, 286, 262, 27249, 4503, 17189, 38559, 24290, 355, 1695, 379, 198, 2, 9, 2638, 1378, 2503, 13, 268, 80, 13, 3046, 81, 14542, 13, 1671, 14, 874, 420, 13, 198, 2, 9, 198, 2, 9, 41363, 46, 15069, 357, 34, 8, 5472, 532, 4343, 27249, 4503, 11, 2656, 2438, 198, 2, 9, 422, 2638, 1378, 2503, 13, 81, 862, 13, 1516, 13, 1671, 15069, 357, 34, 8, 6244, 12, 15724, 13, 198, 2, 9, 1439, 2489, 10395, 13, 198, 2, 9, 198, 2, 9, 41363, 46, 318, 9387, 739, 262, 10811, 907, 286, 262, 27249, 4503, 38559, 24290, 355, 198, 2, 9, 1695, 379, 2638, 1378, 2503, 13, 268, 80, 13, 3046, 81, 14542, 13, 1671, 14, 874, 420, 13, 198, 2, 9, 198, 2, 9, 10097, 650, 198, 2, 9, 9104, 286, 4096, 15190, 198, 2, 9, 10097, 23031, 198, 2, 9, 6434, 25, 36025, 347, 13, 520, 3885, 83, 290, 31918, 390, 350, 13, 1406, 3565, 198, 2, 9, 720, 7390, 3, 198, 2, 9, 10097, 30934, 198, 4906, 4269, 11909, 198, 197, 5532, 11909, 3419, 28, 27471, 198, 197, 197, 10246, 28, 280, 1010, 13, 10246, 198, 197, 197, 3605, 7, 198, 197, 197, 197, 5532, 22784, 198, 197, 197, 197, 35, 2271, 37233, 7, 35, 713, 90, 13940, 23650, 11, 7149, 92, 7, 198, 197, 197, 197, 197, 25, 33, 3796, 14804, 1, 41506, 16331, 24946, 1600, 198, 197, 197, 197, 197, 25, 6030, 14804, 1, 10246, 1, 198, 197, 197, 197, 36911, 198, 197, 197, 197, 20797, 7, 69, 7861, 7, 35, 713, 90, 13940, 23650, 11, 7149, 92, 7, 198, 197, 197, 197, 197, 25, 33, 3796, 14804, 1, 41966, 337, 6192, 376, 7861, 1600, 198, 197, 197, 197, 197, 25, 41691, 14804, 7942, 198, 197, 197, 197, 36911, 7, 45, 7293, 36911, 198, 197, 197, 197, 20797, 7, 69, 7861, 7, 35, 713, 90, 13940, 23650, 11, 7149, 92, 7, 198, 197, 197, 197, 197, 25, 33, 3796, 14804, 1, 53, 499, 454, 337, 6192, 376, 7861, 1600, 198, 197, 197, 197, 197, 25, 41691, 14804, 7942, 198, 197, 197, 197, 36911, 7, 45, 7293, 36911, 198, 197, 197, 197, 58, 198, 197, 197, 197, 197, 25, 26933, 85, 11, 2124, 11, 331, 60, 796, 21082, 13, 30670, 11909, 7, 47, 11, 289, 11, 1976, 36911, 198, 197, 197, 197, 197, 37498, 71, 796, 357, 16, 12, 85, 27493, 10246, 13, 41966, 4834, 11669, 9078, 7, 51, 11, 350, 11, 2124, 8, 1343, 410, 9, 10246, 13, 53, 499, 454, 4834, 11669, 9078, 7, 51, 11, 350, 11, 331, 36911, 198, 197, 197, 197, 4357, 198, 197, 197, 197, 58, 198, 197, 197, 197, 197, 1, 30670, 2199, 14902, 2430, 4834, 11669, 9078, 1600, 198, 197, 197, 197, 4357, 198, 197, 197, 197, 58, 25, 10246, 11, 4357, 198, 197, 197, 197, 58, 25, 87, 11, 25, 88, 11, 60, 198, 197, 197, 8, 198, 197, 437, 198, 197, 62, 8692, 62, 16, 3712, 5532, 198, 197, 10246, 3712, 35, 2271, 37233, 198, 197, 87, 3712, 19182, 90, 69, 7861, 92, 198, 197, 88, 3712, 19182, 90, 69, 7861, 92, 198, 197, 4853, 602, 3712, 19182, 90, 3109, 1050, 11, 16, 92, 198, 197, 4853, 341, 36690, 3712, 19182, 90, 10100, 11, 16, 92, 198, 197, 17143, 7307, 3712, 19182, 90, 13940, 23650, 11, 16, 92, 198, 197, 25641, 2977, 3712, 19182, 90, 13940, 23650, 11, 16, 92, 198, 197, 1078, 7657, 3712, 35, 713, 90, 13940, 23650, 11, 7149, 92, 198, 437, 198, 39344, 4269, 11909, 198, 8818, 900, 23588, 341, 37535, 7, 259, 3712, 5532, 11909, 8, 198, 197, 2860, 23588, 341, 7, 16, 8, 198, 197, 2860, 23588, 341, 7, 17, 8, 198, 437, 198, 8818, 379, 7657, 7, 259, 3712, 5532, 11909, 11, 62, 3712, 35, 713, 90, 13940, 23650, 11, 7149, 30072, 198, 197, 25747, 3712, 35, 713, 90, 13940, 23650, 11, 7149, 92, 28, 35, 713, 90, 13940, 23650, 11, 7149, 92, 3419, 198, 197, 25747, 58, 25, 33, 3796, 60, 2625, 12124, 351, 3170, 12, 259, 7644, 17952, 1, 198, 197, 25747, 58, 25, 12360, 60, 2625, 198, 197, 1212, 2746, 815, 307, 973, 618, 262, 20199, 1634, 13390, 198, 197, 271, 6439, 13, 198, 197, 198, 197, 464, 3170, 12, 259, 7644, 17952, 481, 5004, 262, 4269, 198, 197, 5219, 355, 257, 2163, 286, 262, 4045, 11742, 705, 7061, 89, 7061, 3256, 262, 198, 197, 36151, 705, 7061, 47, 7061, 6, 290, 262, 920, 14201, 9078, 705, 7061, 71, 7061, 4458, 198, 197, 198, 197, 23216, 11, 262, 8122, 11742, 705, 7061, 87, 7061, 6, 290, 262, 20199, 198, 197, 785, 9150, 705, 7061, 88, 7061, 6, 389, 10488, 13, 197, 198, 197, 1, 198, 197, 25747, 58, 25, 11531, 5807, 22241, 9562, 198, 197, 19472, 0, 7, 25747, 11, 62, 8, 198, 197, 7783, 7032, 198, 437, 198, 5532, 11909, 28264, 3712, 35, 713, 90, 13940, 23650, 11, 7149, 30072, 28, 27471, 198, 197, 3605, 17633, 28, 5532, 11909, 3419, 198, 197, 3605, 17633, 13, 1078, 7657, 28, 265, 7657, 7, 3605, 17633, 11, 62, 8, 198, 197, 3605, 17633, 198, 437, 198 ]
2.702104
903
module BanyanDataFrames using Banyan using BanyanArrays using DataFrames, Missings include("df.jl") include("gdf.jl") # Types export DataFrame, GroupedDataFrame # I/O export read_csv, write_csv, read_parquet, write_parquet, read_arrow, write_arrow # Dataframe properties export nrow, ncol, size, names, propertynames # Dataframe filtering export dropmissing, filter, unique, nonunique # Dataframe selection and column manipulation export getindex, setindex!, rename # Dataframe sorting export sort # Dataframe joining export innerjoin # Grouped dataframe properties export length, groupcols, valuecols # Grouped dataframe methods export groupby, select, transform, combine, subset # Missing export allowmissing, disallowmissing end # module
[ 21412, 347, 1092, 272, 6601, 35439, 198, 198, 3500, 347, 1092, 272, 198, 3500, 347, 1092, 272, 3163, 20477, 198, 198, 3500, 6060, 35439, 11, 4544, 654, 198, 198, 17256, 7203, 7568, 13, 20362, 4943, 198, 17256, 7203, 70, 7568, 13, 20362, 4943, 198, 198, 2, 24897, 198, 39344, 6060, 19778, 11, 4912, 276, 6601, 19778, 198, 198, 2, 314, 14, 46, 198, 39344, 1100, 62, 40664, 11, 3551, 62, 40664, 11, 1100, 62, 1845, 21108, 11, 3551, 62, 1845, 21108, 11, 1100, 62, 6018, 11, 3551, 62, 6018, 198, 198, 2, 6060, 14535, 6608, 198, 39344, 299, 808, 11, 299, 4033, 11, 2546, 11, 3891, 11, 3119, 14933, 198, 198, 2, 6060, 14535, 25431, 198, 39344, 4268, 45688, 11, 8106, 11, 3748, 11, 1729, 34642, 198, 198, 2, 6060, 14535, 6356, 290, 5721, 17512, 198, 39344, 651, 9630, 11, 900, 9630, 28265, 36265, 198, 198, 2, 6060, 14535, 29407, 198, 39344, 3297, 198, 198, 2, 6060, 14535, 9679, 198, 39344, 8434, 22179, 198, 198, 2, 4912, 276, 1366, 14535, 6608, 198, 39344, 4129, 11, 1448, 4033, 82, 11, 1988, 4033, 82, 198, 198, 2, 4912, 276, 1366, 14535, 5050, 198, 39344, 1448, 1525, 11, 2922, 11, 6121, 11, 12082, 11, 24637, 198, 198, 2, 25639, 198, 39344, 1249, 45688, 11, 595, 12154, 45688, 198, 198, 437, 1303, 8265, 198 ]
3.431818
220
function msa(network::AbstractNetwork, trips::AbstractMatrix{T}, costfn::CostFunction; basedon=:link, errtol=1e-4) where {T<:Real, U<:Integer} # initialize flows = allornothing(network, trips, costfn; basedon=basedon) # start iteration err = 1. iterno = 2 # first iteration @ initialization while err > errtol ## find target solution linkcosts = costfn(flows).costs shortflows = allornothing(network, trips, linkcosts; basedon=basedon) ## find stepsize μ = 1/iterno ## calculate new link travel times flows += μ * (shortflows - flows) ## calculate error err = sum(flows .* linkcosts)/sum(shortflows .* linkcosts) - 1. iterno += 1 end return (flows, err) end
[ 8818, 285, 11400, 7, 27349, 3712, 23839, 26245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13229, 3712, 23839, 46912, 90, 51, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1575, 22184, 3712, 13729, 22203, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1912, 261, 28, 25, 8726, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11454, 83, 349, 28, 16, 68, 12, 19, 8, 810, 1391, 51, 27, 25, 15633, 11, 471, 27, 25, 46541, 92, 198, 220, 220, 220, 1303, 41216, 198, 220, 220, 220, 15623, 796, 477, 1211, 24834, 7, 27349, 11, 13229, 11, 1575, 22184, 26, 1912, 261, 28, 3106, 261, 8, 628, 220, 220, 220, 1303, 923, 24415, 198, 220, 220, 220, 11454, 796, 352, 13, 198, 220, 220, 220, 340, 24100, 796, 362, 1303, 717, 24415, 2488, 37588, 198, 220, 220, 220, 981, 11454, 1875, 11454, 83, 349, 198, 220, 220, 220, 220, 220, 220, 220, 22492, 1064, 2496, 4610, 198, 220, 220, 220, 220, 220, 220, 220, 2792, 15805, 82, 796, 1575, 22184, 7, 44041, 737, 15805, 82, 198, 220, 220, 220, 220, 220, 220, 220, 1790, 44041, 796, 477, 1211, 24834, 7, 27349, 11, 13229, 11, 2792, 15805, 82, 26, 1912, 261, 28, 3106, 261, 8, 628, 220, 220, 220, 220, 220, 220, 220, 22492, 1064, 4831, 1096, 198, 220, 220, 220, 220, 220, 220, 220, 18919, 796, 352, 14, 270, 24100, 628, 220, 220, 220, 220, 220, 220, 220, 22492, 15284, 649, 2792, 3067, 1661, 198, 220, 220, 220, 220, 220, 220, 220, 15623, 15853, 18919, 1635, 357, 19509, 44041, 532, 15623, 8, 628, 220, 220, 220, 220, 220, 220, 220, 22492, 15284, 4049, 198, 220, 220, 220, 220, 220, 220, 220, 11454, 796, 2160, 7, 44041, 764, 9, 2792, 15805, 82, 20679, 16345, 7, 19509, 44041, 764, 9, 2792, 15805, 82, 8, 532, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 340, 24100, 15853, 352, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 357, 44041, 11, 11454, 8, 198, 437, 198 ]
2.286501
363
# https://juliasmoothoptimizers.github.io/ADNLPModels.jl/stable/tutorial/ using ADNLPModels using NLPModelsIpopt f(x) = (x[1] - 1)^2 + 100*(x[2] - x[1]^2)^2 x0 = [-1.2; 1.0] uvar = [10.0; 10.0] lvar = [-10.0; -10.0] c(x) = [x[1]^2 + x[2]^2; x[1]*x[2]] ucon = [0.75; 0.3] lcon = [0.0; 0.0] nlp = ADNLPModel(f, x0, lvar, uvar, c, lcon, ucon) #output = ipopt(nlp, print_level=0) output = ipopt(nlp) println(output.objective) println(output.solution)
[ 2, 3740, 1378, 73, 377, 16401, 5226, 40085, 11341, 13, 12567, 13, 952, 14, 2885, 45, 19930, 5841, 1424, 13, 20362, 14, 31284, 14, 83, 44917, 14, 198, 198, 3500, 5984, 45, 19930, 5841, 1424, 198, 3500, 399, 19930, 5841, 1424, 40, 79, 8738, 198, 198, 69, 7, 87, 8, 796, 357, 87, 58, 16, 60, 532, 352, 8, 61, 17, 1343, 1802, 9, 7, 87, 58, 17, 60, 532, 2124, 58, 16, 60, 61, 17, 8, 61, 17, 198, 198, 87, 15, 796, 25915, 16, 13, 17, 26, 352, 13, 15, 60, 198, 84, 7785, 796, 685, 940, 13, 15, 26, 838, 13, 15, 60, 198, 6780, 283, 796, 25915, 940, 13, 15, 26, 532, 940, 13, 15, 60, 198, 198, 66, 7, 87, 8, 796, 685, 87, 58, 16, 60, 61, 17, 1343, 2124, 58, 17, 60, 61, 17, 26, 2124, 58, 16, 60, 9, 87, 58, 17, 11907, 198, 84, 1102, 796, 685, 15, 13, 2425, 26, 657, 13, 18, 60, 198, 75, 1102, 796, 685, 15, 13, 15, 26, 657, 13, 15, 60, 198, 198, 21283, 79, 796, 5984, 45, 19930, 17633, 7, 69, 11, 2124, 15, 11, 300, 7785, 11, 334, 7785, 11, 269, 11, 300, 1102, 11, 334, 1102, 8, 198, 198, 2, 22915, 796, 20966, 8738, 7, 21283, 79, 11, 3601, 62, 5715, 28, 15, 8, 198, 22915, 796, 20966, 8738, 7, 21283, 79, 8, 198, 198, 35235, 7, 22915, 13, 15252, 425, 8, 198, 35235, 7, 22915, 13, 82, 2122, 8, 198 ]
1.816
250
# This code is part of QuantumCircuits. # # (C) Copyright Rafał Pracht 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative works of this code must retain this # copyright notice, and modified files need to carry a notice indicating # that they have been altered from the originals. module Math using LinearAlgebra export dagger, unitary_error, matrix_norm, eye, observe_unitary_error, min_observe_unitary_error "The dagger => conj transpose" dagger(x) = transpose(conj(x)) "Calculate the unitary matrix error" function unitary_error(exp_unit, mat_unit) dif = exp_unit - mat_unit return matrix_norm(dif) end "Calculate the observe unitary matrix error, the error which we can obserwe from quantum state" function observe_unitary_error(exp_unit, mat_unit, index=1) # Remove phase exp_unit = exp_unit[:] .* exp(-im * angle(exp_unit[index])) mat_unit = mat_unit[:] .* exp(-im * angle(mat_unit[index])) return unitary_error(exp_unit, mat_unit) end "Calculate the minimum observe unitary matrix error." function min_observe_unitary_error(exp_unit, mat_unit) l = length(exp_unit) ret = [observe_unitary_error(exp_unit, mat_unit, i) for i in 1:l] return minimum(ret) end "Calculate the matrix norm" function matrix_norm(mat) return abs(tr(dagger(mat) * mat)) end "Return the identity matrix." eye(n) = Matrix(I, n, n) end # module Math
[ 2, 770, 2438, 318, 636, 286, 29082, 31560, 15379, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 20824, 64, 41615, 1736, 19725, 33160, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 921, 743, 198, 2, 7330, 257, 4866, 286, 428, 5964, 287, 262, 38559, 24290, 13, 14116, 2393, 287, 262, 6808, 8619, 198, 2, 286, 428, 2723, 5509, 393, 379, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 13, 198, 2, 198, 2, 4377, 19008, 393, 27255, 2499, 286, 428, 2438, 1276, 12377, 428, 198, 2, 6634, 4003, 11, 290, 9518, 3696, 761, 284, 3283, 257, 4003, 12739, 198, 2, 326, 484, 423, 587, 14294, 422, 262, 47324, 13, 198, 198, 21412, 16320, 198, 198, 3500, 44800, 2348, 29230, 198, 198, 39344, 31322, 11, 4326, 560, 62, 18224, 11, 17593, 62, 27237, 11, 4151, 11, 12414, 62, 403, 9331, 62, 18224, 11, 198, 220, 220, 220, 220, 220, 220, 949, 62, 672, 2655, 303, 62, 403, 9331, 62, 18224, 198, 198, 1, 464, 31322, 5218, 11644, 1007, 3455, 1, 198, 67, 7928, 7, 87, 8, 796, 1007, 3455, 7, 1102, 73, 7, 87, 4008, 198, 198, 1, 9771, 3129, 378, 262, 4326, 560, 17593, 4049, 1, 198, 8818, 4326, 560, 62, 18224, 7, 11201, 62, 20850, 11, 2603, 62, 20850, 8, 198, 220, 220, 220, 288, 361, 796, 1033, 62, 20850, 532, 2603, 62, 20850, 198, 220, 220, 220, 1441, 17593, 62, 27237, 7, 67, 361, 8, 198, 437, 198, 198, 1, 9771, 3129, 378, 262, 12414, 4326, 560, 17593, 4049, 11, 262, 4049, 543, 356, 460, 7961, 732, 198, 6738, 14821, 1181, 1, 198, 8818, 12414, 62, 403, 9331, 62, 18224, 7, 11201, 62, 20850, 11, 2603, 62, 20850, 11, 6376, 28, 16, 8, 198, 220, 220, 220, 1303, 17220, 7108, 198, 220, 220, 220, 1033, 62, 20850, 796, 1033, 62, 20850, 58, 47715, 764, 9, 1033, 32590, 320, 1635, 9848, 7, 11201, 62, 20850, 58, 9630, 60, 4008, 198, 220, 220, 220, 2603, 62, 20850, 796, 2603, 62, 20850, 58, 47715, 764, 9, 1033, 32590, 320, 1635, 9848, 7, 6759, 62, 20850, 58, 9630, 60, 4008, 628, 220, 220, 220, 1441, 4326, 560, 62, 18224, 7, 11201, 62, 20850, 11, 2603, 62, 20850, 8, 198, 437, 198, 198, 1, 9771, 3129, 378, 262, 5288, 12414, 4326, 560, 17593, 4049, 526, 198, 8818, 949, 62, 672, 2655, 303, 62, 403, 9331, 62, 18224, 7, 11201, 62, 20850, 11, 2603, 62, 20850, 8, 198, 220, 220, 220, 300, 796, 4129, 7, 11201, 62, 20850, 8, 198, 220, 220, 220, 1005, 796, 685, 672, 2655, 303, 62, 403, 9331, 62, 18224, 7, 11201, 62, 20850, 11, 2603, 62, 20850, 11, 1312, 8, 329, 1312, 287, 352, 25, 75, 60, 198, 220, 220, 220, 1441, 5288, 7, 1186, 8, 198, 437, 198, 198, 1, 9771, 3129, 378, 262, 17593, 2593, 1, 198, 8818, 17593, 62, 27237, 7, 6759, 8, 198, 220, 220, 220, 1441, 2352, 7, 2213, 7, 67, 7928, 7, 6759, 8, 1635, 2603, 4008, 198, 437, 198, 198, 1, 13615, 262, 5369, 17593, 526, 198, 25379, 7, 77, 8, 796, 24936, 7, 40, 11, 299, 11, 299, 8, 198, 198, 437, 220, 1303, 8265, 16320, 198 ]
2.919708
548
@testset "singular case" begin # From Nocedal & Wright, p. 288-289 # Jacobian is singular at the starting point. # Used to test the behavior of algorithms in that context. function f_sinj!(F, x) F[1] = x[1] F[2] = 10*x[1]/(x[1]+convert(eltype(x), 0.1))+2*x[2]^2 end function g_sinj!(J, x) J[1, 1] = 1 J[1, 2] = 0 J[2, 1] = 1/(x[1]+convert(eltype(x), 0.1))^2 J[2, 2] = 4*x[2] end df = OnceDifferentiable(f_sinj!, g_sinj!, [3.0, 0.0], [3.0, 0.0]) df32 = OnceDifferentiable(f_sinj!, g_sinj!, [3.0f0, 0.0f0], [3.0f0, 0.0f0]) # Test disabled, not stable across runs #r = nlsolve(df, [ 3.0; 0], method = :newton, ftol = 1e-5) #@assert converged(r) #@assert norm(r.zero) < 1e-5 r = nlsolve(df, [ 3.0; 0.0], method = :trust_region) @assert converged(r) @assert norm(r.zero) < 1e-6 r = nlsolve(df32, [3.0f0; 0.0f0], method = :trust_region) @assert converged(r) @assert norm(r.zero) < 1e-6 let a = rand(10) A = a*a' global f_let!, g_let! function f_let!(fvec, x) copyto!(fvec, A*x) end function g_let!(fjac, x) copyto!(fjac, A) end end df = OnceDifferentiable(f_let!, g_let!, rand(10), rand(10)) r = nlsolve(df, rand(10), method = :trust_region) end
[ 31, 9288, 2617, 366, 12215, 934, 1339, 1, 2221, 198, 2, 3574, 399, 420, 276, 282, 1222, 12206, 11, 279, 13, 35419, 12, 27693, 198, 198, 2, 12806, 666, 318, 18032, 379, 262, 3599, 966, 13, 198, 2, 16718, 284, 1332, 262, 4069, 286, 16113, 287, 326, 4732, 13, 198, 198, 8818, 277, 62, 31369, 73, 0, 7, 37, 11, 2124, 8, 198, 220, 220, 220, 376, 58, 16, 60, 796, 2124, 58, 16, 60, 198, 220, 220, 220, 376, 58, 17, 60, 796, 838, 9, 87, 58, 16, 60, 29006, 87, 58, 16, 48688, 1102, 1851, 7, 417, 4906, 7, 87, 828, 657, 13, 16, 4008, 10, 17, 9, 87, 58, 17, 60, 61, 17, 198, 437, 198, 198, 8818, 308, 62, 31369, 73, 0, 7, 41, 11, 2124, 8, 198, 220, 220, 220, 449, 58, 16, 11, 352, 60, 796, 352, 198, 220, 220, 220, 449, 58, 16, 11, 362, 60, 796, 657, 198, 220, 220, 220, 449, 58, 17, 11, 352, 60, 796, 352, 29006, 87, 58, 16, 48688, 1102, 1851, 7, 417, 4906, 7, 87, 828, 657, 13, 16, 4008, 61, 17, 198, 220, 220, 220, 449, 58, 17, 11, 362, 60, 796, 604, 9, 87, 58, 17, 60, 198, 437, 198, 198, 7568, 796, 4874, 40341, 3379, 7, 69, 62, 31369, 73, 28265, 308, 62, 31369, 73, 28265, 685, 18, 13, 15, 11, 657, 13, 15, 4357, 685, 18, 13, 15, 11, 657, 13, 15, 12962, 198, 7568, 2624, 796, 4874, 40341, 3379, 7, 69, 62, 31369, 73, 28265, 308, 62, 31369, 73, 28265, 685, 18, 13, 15, 69, 15, 11, 657, 13, 15, 69, 15, 4357, 685, 18, 13, 15, 69, 15, 11, 657, 13, 15, 69, 15, 12962, 198, 198, 2, 6208, 10058, 11, 407, 8245, 1973, 4539, 198, 2, 81, 796, 299, 7278, 6442, 7, 7568, 11, 685, 513, 13, 15, 26, 657, 4357, 2446, 796, 1058, 3605, 1122, 11, 10117, 349, 796, 352, 68, 12, 20, 8, 198, 2, 31, 30493, 6718, 2004, 7, 81, 8, 198, 2, 31, 30493, 2593, 7, 81, 13, 22570, 8, 1279, 352, 68, 12, 20, 198, 198, 81, 796, 299, 7278, 6442, 7, 7568, 11, 685, 513, 13, 15, 26, 657, 13, 15, 4357, 2446, 796, 1058, 38087, 62, 36996, 8, 198, 31, 30493, 6718, 2004, 7, 81, 8, 198, 31, 30493, 2593, 7, 81, 13, 22570, 8, 1279, 352, 68, 12, 21, 198, 198, 81, 796, 299, 7278, 6442, 7, 7568, 2624, 11, 685, 18, 13, 15, 69, 15, 26, 657, 13, 15, 69, 15, 4357, 2446, 796, 1058, 38087, 62, 36996, 8, 198, 31, 30493, 6718, 2004, 7, 81, 8, 198, 31, 30493, 2593, 7, 81, 13, 22570, 8, 1279, 352, 68, 12, 21, 198, 198, 1616, 257, 796, 43720, 7, 940, 8, 198, 220, 220, 220, 317, 796, 257, 9, 64, 6, 198, 220, 220, 220, 3298, 277, 62, 1616, 28265, 308, 62, 1616, 0, 198, 220, 220, 220, 2163, 277, 62, 1616, 0, 7, 69, 35138, 11, 2124, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 1462, 0, 7, 69, 35138, 11, 317, 9, 87, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2163, 308, 62, 1616, 0, 7, 69, 30482, 11, 2124, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4866, 1462, 0, 7, 69, 30482, 11, 317, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 7568, 796, 4874, 40341, 3379, 7, 69, 62, 1616, 28265, 308, 62, 1616, 28265, 43720, 7, 940, 828, 43720, 7, 940, 4008, 198, 81, 796, 299, 7278, 6442, 7, 7568, 11, 43720, 7, 940, 828, 2446, 796, 1058, 38087, 62, 36996, 8, 198, 437, 198 ]
1.996711
608
module GpABC export AbstractGPKernel, SquaredExponentialIsoKernel, SquaredExponentialArdKernel, MaternIsoKernel, MaternArdKernel, ExponentialIsoKernel, ExponentialArdKernel, AbstractGaussianProcess, GPModel, MvUniform, LatinHypercubeSampler, gp_loglikelihood, gp_loglikelihood_log, gp_loglikelihood_grad, gp_regression, gp_regression_sample, covariance, covariance_training, covariance_diagonal, covariance_grad, scaled_squared_distance, scaled_squared_distance_grad, get_hyperparameters_size, set_hyperparameters, gp_train, ABCRejectionOutput, ABCSMCOutput, SimulatedABCRejection, SimulatedABCSMC, EmulatedABCRejection, EmulatedABCSMC, read_rejection_output, read_smc_output, LNAInput, LNA, compute_LNA, sample_LNA_trajectories, get_LNA_trajectories, SimulatedModelSelection, EmulatedModelSelection, ModelSelectionOutput, AbstractEmulatorTraining, DefaultEmulatorTraining, EmulatorTrainingInput, AbstractEmulatorRetraining, NoopRetraining, IncrementalRetraining, PreviousPopulationRetraining, PreviousPopulationThresholdRetraining, AbstractEmulatedParticleSelection, MeanEmulatedParticleSelection, MeanVarEmulatedParticleSelection; using Optim, Distributions, Distances, DifferentialEquations, ForwardDiff, LinearAlgebra, Logging import StatsBase import Base: write include("gp/kernels/scaled_squared_distance.jl") include("gp/kernels/abstract_kernel.jl") include("gp/kernels/rbf_kernels.jl") include("gp/kernels/matern_kernels.jl") include("gp/gp.jl") include("gp/gp_optimisation.jl") include("abc/io.jl") include("abc/summary_stats.jl") include("abc/rejection.jl") include("abc/smc.jl") include("abc/model_selection_io.jl") include("abc/model_selection.jl") include("abc/simulation.jl") include("abc/emulation.jl") include("abc/plot_recipe.jl") include("util/lna.jl") include("util/emulation_helpers.jl") end;
[ 21412, 402, 79, 24694, 198, 198, 39344, 198, 197, 23839, 16960, 42, 7948, 11, 198, 197, 22266, 1144, 16870, 35470, 40, 568, 42, 7948, 11, 5056, 1144, 16870, 35470, 3163, 67, 42, 7948, 11, 198, 197, 44, 9205, 40, 568, 42, 7948, 11, 337, 9205, 3163, 67, 42, 7948, 11, 5518, 35470, 40, 568, 42, 7948, 11, 5518, 35470, 3163, 67, 42, 7948, 11, 628, 197, 23839, 35389, 31562, 18709, 11, 198, 197, 16960, 17633, 11, 198, 220, 220, 220, 337, 85, 3118, 6933, 11, 198, 220, 220, 220, 9133, 38197, 40296, 16305, 20053, 11, 198, 220, 220, 220, 27809, 62, 6404, 2339, 11935, 11, 27809, 62, 6404, 2339, 11935, 62, 6404, 11, 27809, 62, 6404, 2339, 11935, 62, 9744, 11, 198, 197, 31197, 62, 2301, 2234, 11, 27809, 62, 2301, 2234, 62, 39873, 11, 198, 197, 66, 709, 2743, 590, 11, 44829, 590, 62, 34409, 11, 44829, 590, 62, 10989, 27923, 11, 44829, 590, 62, 9744, 11, 198, 197, 1416, 3021, 62, 16485, 1144, 62, 30246, 11, 27464, 62, 16485, 1144, 62, 30246, 62, 9744, 11, 198, 197, 1136, 62, 49229, 17143, 7307, 62, 7857, 11, 900, 62, 49229, 17143, 7307, 11, 198, 220, 220, 220, 27809, 62, 27432, 11, 628, 197, 24694, 3041, 29192, 26410, 11, 9738, 50, 9655, 26410, 11, 198, 197, 8890, 4817, 24694, 3041, 29192, 11, 3184, 4817, 24694, 50, 9655, 11, 198, 197, 10161, 4817, 24694, 3041, 29192, 11, 2295, 4817, 24694, 50, 9655, 11, 198, 197, 961, 62, 260, 29192, 62, 22915, 11, 1100, 62, 5796, 66, 62, 22915, 11, 628, 197, 43, 4535, 20560, 11, 406, 4535, 11, 24061, 62, 43, 4535, 11, 6291, 62, 43, 4535, 62, 9535, 752, 1749, 11, 651, 62, 43, 4535, 62, 9535, 752, 1749, 11, 628, 197, 8890, 4817, 17633, 4653, 1564, 11, 2295, 4817, 17633, 4653, 1564, 11, 9104, 4653, 1564, 26410, 11, 198, 220, 220, 220, 27741, 10161, 8927, 44357, 11, 15161, 10161, 8927, 44357, 11, 198, 220, 220, 220, 2295, 8927, 44357, 20560, 11, 198, 220, 220, 220, 27741, 10161, 8927, 9781, 24674, 11, 1400, 404, 9781, 24674, 11, 10791, 37098, 9781, 24674, 11, 21801, 45251, 9781, 24674, 11, 21801, 45251, 817, 10126, 9781, 24674, 11, 198, 220, 220, 220, 27741, 10161, 4817, 7841, 1548, 4653, 1564, 11, 22728, 10161, 4817, 7841, 1548, 4653, 1564, 11, 22728, 19852, 10161, 4817, 7841, 1548, 4653, 1564, 26, 198, 198, 3500, 30011, 11, 46567, 507, 11, 4307, 1817, 11, 20615, 498, 23588, 602, 11, 19530, 28813, 11, 44800, 2348, 29230, 11, 5972, 2667, 198, 198, 11748, 20595, 14881, 198, 198, 11748, 7308, 25, 3551, 198, 198, 17256, 7203, 31197, 14, 74, 44930, 14, 1416, 3021, 62, 16485, 1144, 62, 30246, 13, 20362, 4943, 198, 17256, 7203, 31197, 14, 74, 44930, 14, 397, 8709, 62, 33885, 13, 20362, 4943, 198, 17256, 7203, 31197, 14, 74, 44930, 14, 81, 19881, 62, 74, 44930, 13, 20362, 4943, 198, 17256, 7203, 31197, 14, 74, 44930, 14, 76, 9205, 62, 74, 44930, 13, 20362, 4943, 198, 17256, 7203, 31197, 14, 31197, 13, 20362, 4943, 198, 17256, 7203, 31197, 14, 31197, 62, 40085, 5612, 13, 20362, 4943, 198, 198, 17256, 7203, 39305, 14, 952, 13, 20362, 4943, 198, 17256, 7203, 39305, 14, 49736, 62, 34242, 13, 20362, 4943, 198, 17256, 7203, 39305, 14, 260, 29192, 13, 20362, 4943, 198, 17256, 7203, 39305, 14, 5796, 66, 13, 20362, 4943, 198, 17256, 7203, 39305, 14, 19849, 62, 49283, 62, 952, 13, 20362, 4943, 198, 17256, 7203, 39305, 14, 19849, 62, 49283, 13, 20362, 4943, 198, 17256, 7203, 39305, 14, 14323, 1741, 13, 20362, 4943, 198, 17256, 7203, 39305, 14, 368, 1741, 13, 20362, 4943, 198, 17256, 7203, 39305, 14, 29487, 62, 29102, 431, 13, 20362, 4943, 198, 17256, 7203, 22602, 14, 75, 2616, 13, 20362, 4943, 198, 17256, 7203, 22602, 14, 368, 1741, 62, 16794, 364, 13, 20362, 4943, 198, 198, 437, 26, 198 ]
2.923438
640
using SparseTransforms using NPZ noise_sd = 0.1 synth_data = npzread("data/1kuh_10_exhaustive.npz") signal = InputSignal(synth_data["y"], noise_sd) transformed = spright(signal, [:simple, :identity_like, :mle, :none])
[ 3500, 1338, 17208, 8291, 23914, 198, 3500, 28498, 57, 198, 198, 3919, 786, 62, 21282, 796, 657, 13, 16, 198, 28869, 400, 62, 7890, 796, 45941, 89, 961, 7203, 7890, 14, 16, 74, 7456, 62, 940, 62, 1069, 42456, 425, 13, 37659, 89, 4943, 198, 12683, 282, 796, 23412, 11712, 282, 7, 28869, 400, 62, 7890, 14692, 88, 33116, 7838, 62, 21282, 8, 198, 7645, 12214, 796, 599, 3506, 7, 12683, 282, 11, 685, 25, 36439, 11, 1058, 738, 414, 62, 2339, 11, 1058, 76, 293, 11, 1058, 23108, 12962, 198 ]
2.406593
91
module Scalings n_pox_pairs(N) = N*(N-1)/2 export n_pox_pairs n_pox_dir_links(N) = N*(N-1) export n_pox_dir_links """ Number of links for various network size, in dense regime """ denseLScal_DirBin(N, C) = C * n_pox_dir_links(N) denseLScal_DirBin(N) = denseLScal_DirBin(N, 0.2) export denseLScal_DirBin """ Number of links for various network size, in semiDense regime """ semiDenseLScal_DirBin(N, C) = C * n_pox_dir_links(N)/sqrt(N) semiDenseLScal_DirBin(N) = semiDenseLScal_DirBin(N, 0.1) export semiDenseLScal_DirBin """ Number of links for various network size, in sparse regime """ sparseLScal_DirBin(N, C) = C * N sparseLScal_DirBin(N) = sparseLScal_DirBin(N, 4) export sparseLScal_DirBin """ Average number of reciprocal pairs in Erdos Reny Model - avgL is the expected number of links, related to the probability p of a single link being present by expL = (N^2-N) * p """ erdosRenyRecScal_DirBin(expL, N) = expL^2/(2*(N^2-N)) export erdosRenyRecScal_DirBin end
[ 21412, 34529, 654, 628, 198, 77, 62, 42557, 62, 79, 3468, 7, 45, 8, 796, 399, 9, 7, 45, 12, 16, 20679, 17, 198, 39344, 299, 62, 42557, 62, 79, 3468, 628, 198, 77, 62, 42557, 62, 15908, 62, 28751, 7, 45, 8, 796, 399, 9, 7, 45, 12, 16, 8, 198, 39344, 299, 62, 42557, 62, 15908, 62, 28751, 628, 198, 37811, 198, 15057, 286, 6117, 329, 2972, 3127, 2546, 11, 287, 15715, 7142, 198, 37811, 198, 67, 1072, 43, 3351, 282, 62, 35277, 33, 259, 7, 45, 11, 327, 8, 220, 796, 327, 1635, 299, 62, 42557, 62, 15908, 62, 28751, 7, 45, 8, 628, 198, 67, 1072, 43, 3351, 282, 62, 35277, 33, 259, 7, 45, 8, 220, 796, 15715, 43, 3351, 282, 62, 35277, 33, 259, 7, 45, 11, 657, 13, 17, 8, 198, 39344, 15715, 43, 3351, 282, 62, 35277, 33, 259, 198, 198, 37811, 198, 15057, 286, 6117, 329, 2972, 3127, 2546, 11, 287, 10663, 35, 1072, 7142, 198, 37811, 198, 325, 11632, 35, 1072, 43, 3351, 282, 62, 35277, 33, 259, 7, 45, 11, 327, 8, 220, 796, 327, 1635, 299, 62, 42557, 62, 15908, 62, 28751, 7, 45, 20679, 31166, 17034, 7, 45, 8, 198, 198, 325, 11632, 35, 1072, 43, 3351, 282, 62, 35277, 33, 259, 7, 45, 8, 220, 796, 10663, 35, 1072, 43, 3351, 282, 62, 35277, 33, 259, 7, 45, 11, 657, 13, 16, 8, 198, 39344, 10663, 35, 1072, 43, 3351, 282, 62, 35277, 33, 259, 628, 198, 37811, 198, 15057, 286, 6117, 329, 2972, 3127, 2546, 11, 287, 29877, 7142, 198, 37811, 198, 82, 29572, 43, 3351, 282, 62, 35277, 33, 259, 7, 45, 11, 327, 8, 796, 220, 327, 1635, 399, 220, 198, 198, 82, 29572, 43, 3351, 282, 62, 35277, 33, 259, 7, 45, 8, 796, 29877, 43, 3351, 282, 62, 35277, 33, 259, 7, 45, 11, 604, 8, 198, 39344, 29877, 43, 3351, 282, 62, 35277, 33, 259, 628, 198, 37811, 198, 26287, 1271, 286, 48135, 14729, 287, 16455, 418, 7152, 88, 9104, 220, 198, 532, 42781, 43, 318, 262, 2938, 1271, 286, 6117, 11, 3519, 284, 262, 12867, 279, 286, 257, 2060, 2792, 852, 1944, 416, 1033, 43, 796, 357, 45, 61, 17, 12, 45, 8, 1635, 279, 220, 220, 198, 198, 37811, 198, 263, 37427, 26764, 88, 6690, 3351, 282, 62, 35277, 33, 259, 7, 11201, 43, 11, 399, 8, 796, 1033, 43, 61, 17, 29006, 17, 9, 7, 45, 61, 17, 12, 45, 4008, 220, 198, 39344, 1931, 37427, 26764, 88, 6690, 3351, 282, 62, 35277, 33, 259, 628, 198, 198, 437, 198 ]
2.307159
433
""" Combine a feature along with the number of scenario successes and failures. """ struct FeatureSuccessAndFailure feature::Feature n_success::UInt n_failure::UInt end """ Accumulate results from executed features as they are being executed. Keep track of whether the total run is a success of a failure. """ mutable struct ResultAccumulator isaccumsuccess::Bool features::Vector{FeatureSuccessAndFailure} ResultAccumulator() = new(true, []) end """ accumulateresult!(acc::ResultAccumulator, result::FeatureResult) Check for success or failure in this feature result and update the accumulator accordingly. """ function accumulateresult!(acc::ResultAccumulator, result::FeatureResult) n_success::UInt = 0 n_failure::UInt = 0 # Count the number of successes and failures for each step in each scenario. A scenario is # successful if all its steps are successful. for scenarioresult in result.scenarioresults arestepssuccessful = [issuccess(step) for step in scenarioresult.steps] isscenariosuccessful = all(arestepssuccessful) if isscenariosuccessful n_success += 1 else n_failure += 1 end acc.isaccumsuccess &= isscenariosuccessful end push!(acc.features, FeatureSuccessAndFailure(result.feature, n_success, n_failure)) end """ issuccess(acc::ResultAccumulator) True if all scenarios in all accumulated features are successful. """ issuccess(acc::ResultAccumulator) = acc.isaccumsuccess """ featureresults(accumulator::ResultAccumulator) A public getter for the results of all features. """ function featureresults(accumulator::ResultAccumulator) accumulator.features end
[ 37811, 198, 20575, 500, 257, 3895, 1863, 351, 262, 1271, 286, 8883, 23682, 290, 15536, 13, 198, 37811, 198, 7249, 27018, 33244, 1870, 50015, 198, 220, 220, 220, 3895, 3712, 38816, 198, 220, 220, 220, 299, 62, 13138, 3712, 52, 5317, 198, 220, 220, 220, 299, 62, 32165, 495, 3712, 52, 5317, 198, 437, 198, 198, 37811, 198, 17320, 388, 5039, 2482, 422, 10945, 3033, 355, 484, 389, 852, 10945, 13, 9175, 2610, 286, 1771, 262, 198, 23350, 1057, 318, 257, 1943, 286, 257, 5287, 13, 198, 37811, 198, 76, 18187, 2878, 25414, 17320, 388, 8927, 198, 220, 220, 220, 318, 4134, 388, 13138, 3712, 33, 970, 198, 220, 220, 220, 3033, 3712, 38469, 90, 38816, 33244, 1870, 50015, 92, 628, 220, 220, 220, 25414, 17320, 388, 8927, 3419, 796, 649, 7, 7942, 11, 685, 12962, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 29915, 20274, 0, 7, 4134, 3712, 23004, 17320, 388, 8927, 11, 1255, 3712, 38816, 23004, 8, 198, 198, 9787, 329, 1943, 393, 5287, 287, 428, 3895, 1255, 290, 4296, 262, 10507, 8927, 16062, 13, 198, 37811, 198, 8818, 29915, 20274, 0, 7, 4134, 3712, 23004, 17320, 388, 8927, 11, 1255, 3712, 38816, 23004, 8, 198, 220, 220, 220, 299, 62, 13138, 3712, 52, 5317, 796, 657, 198, 220, 220, 220, 299, 62, 32165, 495, 3712, 52, 5317, 796, 657, 198, 220, 220, 220, 1303, 2764, 262, 1271, 286, 23682, 290, 15536, 329, 1123, 2239, 287, 1123, 8883, 13, 317, 8883, 318, 198, 220, 220, 220, 1303, 4388, 611, 477, 663, 4831, 389, 4388, 13, 198, 220, 220, 220, 329, 4408, 2743, 2850, 586, 287, 1255, 13, 1416, 268, 2743, 2850, 8376, 198, 220, 220, 220, 220, 220, 220, 220, 389, 9662, 824, 84, 1591, 913, 796, 685, 747, 84, 1591, 7, 9662, 8, 329, 2239, 287, 4408, 2743, 2850, 586, 13, 20214, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1189, 66, 268, 13010, 84, 1591, 913, 796, 477, 7, 533, 9662, 824, 84, 1591, 913, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1189, 66, 268, 13010, 84, 1591, 913, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 62, 13138, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 62, 32165, 495, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 886, 628, 220, 220, 220, 220, 220, 220, 220, 697, 13, 271, 4134, 388, 13138, 1222, 28, 1189, 66, 268, 13010, 84, 1591, 913, 198, 220, 220, 220, 886, 628, 220, 220, 220, 4574, 0, 7, 4134, 13, 40890, 11, 27018, 33244, 1870, 50015, 7, 20274, 13, 30053, 11, 299, 62, 13138, 11, 299, 62, 32165, 495, 4008, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 25731, 1591, 7, 4134, 3712, 23004, 17320, 388, 8927, 8, 198, 198, 17821, 611, 477, 13858, 287, 477, 22425, 3033, 389, 4388, 13, 198, 37811, 198, 747, 84, 1591, 7, 4134, 3712, 23004, 17320, 388, 8927, 8, 796, 697, 13, 271, 4134, 388, 13138, 198, 198, 37811, 198, 220, 220, 220, 3895, 43420, 7, 4134, 388, 8927, 3712, 23004, 17320, 388, 8927, 8, 198, 198, 32, 1171, 651, 353, 329, 262, 2482, 286, 477, 3033, 13, 198, 37811, 198, 8818, 3895, 43420, 7, 4134, 388, 8927, 3712, 23004, 17320, 388, 8927, 8, 198, 220, 220, 220, 10507, 8927, 13, 40890, 198, 437 ]
3.021053
570
import Base: sizeof, print, show, convert, read, write, bswap, == const Fchar = Int8 """ FString{L} Datatype for reading and writing character strings from `FortranFile`s. The type parameter `L` signifies the length of the string. This is the equivalent to the Fortran datatype `CHARACTER(len=L)`. """ struct FString{L} data :: Array{Fchar,1} end sizeof(::Type{FString{L}}) where {L} = L sizeof(::FString{L}) where {L} = L sizeof(a::Array{FString{L}}) where {L} = L*length(a) # print(io::IO, s::FString{L}) where {L} = print(io, trimstring(s)) show(io::IO, s::FString{L}) where {L} = begin print(io, "FString($L,"); show(io, trimstring(s)); print(io, ")") end ==(a::FString, b::FString) = trimstring(a)==trimstring(b) bswap(s::FString{L}) where {L} = s # no conversion needed for byte-based strings function convert(::Type{FString{L}}, s::String) where {L} spc = Fchar(' ') data = fill(spc, L) for (i,c) in enumerate(s) if i>L; break; end data[i] = Fchar(c) end FString{L}(data) end """ FString(L, s::String) Convert the Julia `String` `s` to an `FString{L}`. `s` must contain only ASCII characters. As in Fortran, the string will be padded with spaces or truncated in order to reach the desired length. """ FString(L, s::String) = convert( FString{L}, s ) String(s::FString{L}) where {L} = String(map(Char,s.data)) convert(::Type{String}, s::FString{L}) where {L} = String(s) function read( io::IO, t::Type{FString{L}} ) where {L} s = read!(io, Array{Fchar}(undef, L)) FString{L}(s) end function write( io::IO, s::FString{L} ) where {L} write(io, s.data) end """ trimlen(s::FString) Returns the length of the `FString` `s` with trailing spaces ignored. """ function trimlen( s::FString{L} ) where {L} l = L while l>0 if s.data[l] != Fchar(' '); break; end l -= 1 end return l end """ trim(s::FString) Returns a truncated copy of the `FString` `s` where all trailing spaces are removed. """ function trim( s::FString{L} ) where {L} l = trimlen(s) FString{l}(s.data[1:l]) end """ trimstring(s::FString) Convert the `FString` `s` into a Julia `String`, where trailing spaces are removed. Use `String(s)` to keep the spaces. """ trimstring( s::FString{L} ) where {L} = String( map(Char, s.data[1:trimlen(s)]) )
[ 11748, 7308, 25, 39364, 11, 3601, 11, 905, 11, 10385, 11, 1100, 11, 3551, 11, 275, 2032, 499, 11, 6624, 628, 198, 9979, 376, 10641, 796, 2558, 23, 198, 198, 37811, 198, 220, 220, 220, 376, 10100, 90, 43, 92, 198, 198, 27354, 265, 2981, 329, 3555, 290, 3597, 2095, 13042, 422, 4600, 21926, 2596, 8979, 63, 82, 13, 198, 464, 2099, 11507, 4600, 43, 63, 43854, 262, 4129, 286, 262, 4731, 13, 198, 1212, 318, 262, 7548, 284, 262, 6401, 2596, 4818, 265, 2981, 4600, 38019, 2246, 5781, 7, 11925, 28, 43, 8, 44646, 198, 37811, 198, 7249, 376, 10100, 90, 43, 92, 198, 220, 220, 1366, 7904, 15690, 90, 37, 10641, 11, 16, 92, 198, 437, 198, 198, 7857, 1659, 7, 3712, 6030, 90, 37, 10100, 90, 43, 11709, 8, 810, 1391, 43, 92, 796, 406, 198, 7857, 1659, 7, 3712, 37, 10100, 90, 43, 30072, 810, 1391, 43, 92, 796, 406, 198, 7857, 1659, 7, 64, 3712, 19182, 90, 37, 10100, 90, 43, 11709, 8, 810, 1391, 43, 92, 796, 406, 9, 13664, 7, 64, 8, 198, 198, 2, 3601, 7, 952, 3712, 9399, 11, 264, 3712, 37, 10100, 90, 43, 30072, 810, 1391, 43, 92, 796, 3601, 7, 952, 11, 15797, 8841, 7, 82, 4008, 198, 12860, 7, 952, 3712, 9399, 11, 264, 3712, 37, 10100, 90, 43, 30072, 810, 1391, 43, 92, 796, 2221, 3601, 7, 952, 11, 366, 37, 10100, 16763, 43, 553, 1776, 905, 7, 952, 11, 15797, 8841, 7, 82, 18125, 3601, 7, 952, 11, 366, 8, 4943, 886, 198, 198, 855, 7, 64, 3712, 37, 10100, 11, 275, 3712, 37, 10100, 8, 796, 15797, 8841, 7, 64, 8, 855, 2213, 320, 8841, 7, 65, 8, 198, 198, 1443, 86, 499, 7, 82, 3712, 37, 10100, 90, 43, 30072, 810, 1391, 43, 92, 796, 264, 1303, 645, 11315, 2622, 329, 18022, 12, 3106, 13042, 198, 198, 8818, 10385, 7, 3712, 6030, 90, 37, 10100, 90, 43, 92, 5512, 264, 3712, 10100, 8, 810, 1391, 43, 92, 198, 220, 220, 599, 66, 220, 796, 376, 10641, 10786, 705, 8, 198, 220, 220, 1366, 796, 6070, 7, 2777, 66, 11, 406, 8, 198, 220, 220, 329, 357, 72, 11, 66, 8, 287, 27056, 378, 7, 82, 8, 198, 220, 220, 220, 220, 220, 611, 1312, 29, 43, 26, 2270, 26, 886, 198, 220, 220, 220, 220, 220, 1366, 58, 72, 60, 796, 376, 10641, 7, 66, 8, 198, 220, 220, 886, 198, 220, 220, 376, 10100, 90, 43, 92, 7, 7890, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 376, 10100, 7, 43, 11, 264, 3712, 10100, 8, 198, 198, 3103, 1851, 262, 22300, 4600, 10100, 63, 4600, 82, 63, 284, 281, 4600, 37, 10100, 90, 43, 92, 44646, 198, 63, 82, 63, 1276, 3994, 691, 37101, 3435, 13, 198, 1722, 287, 6401, 2596, 11, 262, 4731, 481, 307, 44582, 351, 9029, 393, 40122, 515, 287, 1502, 284, 3151, 262, 10348, 4129, 13, 198, 37811, 198, 37, 10100, 7, 43, 11, 264, 3712, 10100, 8, 796, 10385, 7, 376, 10100, 90, 43, 5512, 264, 1267, 198, 198, 10100, 7, 82, 3712, 37, 10100, 90, 43, 30072, 810, 1391, 43, 92, 796, 10903, 7, 8899, 7, 12441, 11, 82, 13, 7890, 4008, 198, 1102, 1851, 7, 3712, 6030, 90, 10100, 5512, 264, 3712, 37, 10100, 90, 43, 30072, 810, 1391, 43, 92, 796, 10903, 7, 82, 8, 628, 198, 8818, 1100, 7, 33245, 3712, 9399, 11, 256, 3712, 6030, 90, 37, 10100, 90, 43, 11709, 1267, 810, 1391, 43, 92, 198, 220, 220, 264, 796, 1100, 0, 7, 952, 11, 15690, 90, 37, 10641, 92, 7, 917, 891, 11, 406, 4008, 198, 220, 220, 376, 10100, 90, 43, 92, 7, 82, 8, 198, 437, 628, 198, 8818, 3551, 7, 33245, 3712, 9399, 11, 264, 3712, 37, 10100, 90, 43, 92, 1267, 810, 1391, 43, 92, 198, 220, 220, 3551, 7, 952, 11, 264, 13, 7890, 8, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 15797, 11925, 7, 82, 3712, 37, 10100, 8, 198, 198, 35561, 262, 4129, 286, 262, 4600, 37, 10100, 63, 4600, 82, 63, 351, 25462, 9029, 9514, 13, 198, 37811, 198, 8818, 15797, 11925, 7, 264, 3712, 37, 10100, 90, 43, 92, 1267, 810, 1391, 43, 92, 198, 220, 220, 300, 796, 406, 198, 220, 220, 981, 300, 29, 15, 198, 220, 220, 220, 220, 220, 611, 264, 13, 7890, 58, 75, 60, 14512, 376, 10641, 10786, 705, 1776, 2270, 26, 886, 198, 220, 220, 220, 220, 220, 300, 48185, 352, 198, 220, 220, 886, 198, 220, 220, 1441, 300, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 15797, 7, 82, 3712, 37, 10100, 8, 198, 198, 35561, 257, 40122, 515, 4866, 286, 262, 4600, 37, 10100, 63, 4600, 82, 63, 810, 477, 25462, 198, 2777, 2114, 389, 4615, 13, 198, 37811, 198, 8818, 15797, 7, 264, 3712, 37, 10100, 90, 43, 92, 1267, 810, 1391, 43, 92, 198, 220, 220, 300, 796, 15797, 11925, 7, 82, 8, 198, 220, 220, 376, 10100, 90, 75, 92, 7, 82, 13, 7890, 58, 16, 25, 75, 12962, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 15797, 8841, 7, 82, 3712, 37, 10100, 8, 198, 198, 3103, 1851, 262, 4600, 37, 10100, 63, 4600, 82, 63, 656, 257, 22300, 4600, 10100, 47671, 810, 198, 9535, 4386, 9029, 389, 4615, 13, 5765, 4600, 10100, 7, 82, 8, 63, 284, 1394, 262, 9029, 13, 198, 37811, 198, 2213, 320, 8841, 7, 264, 3712, 37, 10100, 90, 43, 92, 1267, 810, 1391, 43, 92, 796, 198, 220, 220, 10903, 7, 3975, 7, 12441, 11, 264, 13, 7890, 58, 16, 25, 2213, 320, 11925, 7, 82, 8, 12962, 1267, 628 ]
2.45666
946
""" PyList{T=Py}([x]) Wraps the Python list `x` (or anything satisfying the sequence interface) as an `AbstractVector{T}`. If `x` is not a Python object, it is converted to one using `pylist`. """ struct PyList{T} <: AbstractVector{T} py :: Py PyList{T}(::Val{:new}, py::Py) where {T} = new{T}(py) end export PyList PyList{T}(x=pylist()) where {T} = PyList{T}(Val(:new), ispy(x) ? Py(x) : pylist(x)) PyList(x=pylist()) = PyList{Py}(x) ispy(::PyList) = true getpy(x::PyList) = x.py pydel!(x::PyList) = pydel!(x.py) pyconvert_rule_sequence(::Type{T}, x::Py, ::Type{PyList{V}}=Utils._type_ub(T)) where {T<:PyList,V} = if PyList{Py} <: T pyconvert_return(PyList{Py}(x)) else pyconvert_return(PyList{V}(x)) end Base.length(x::PyList) = Int(pylen(x)) Base.size(x::PyList) = (length(x),) Base.@propagate_inbounds function Base.getindex(x::PyList{T}, i::Int) where {T} @boundscheck checkbounds(x, i) return pyconvert_and_del(T, @py x[@jl(i-1)]) end Base.@propagate_inbounds function Base.setindex!(x::PyList{T}, v, i::Int) where {T} @boundscheck checkbounds(x, i) pysetitem(x, i-1, convert(T, v)) return x end Base.@propagate_inbounds function Base.insert!(x::PyList{T}, i::Integer, v) where {T} @boundscheck (i==length(x)+1 || checkbounds(x, i)) pydel!(@py x.insert(@jl(i-1), @jl(convert(T, v)))) return x end function Base.push!(x::PyList{T}, v) where {T} pydel!(@py x.append(@jl(convert(T, v)))) return x end function Base.pushfirst!(x::PyList, v) return @inbounds Base.insert!(x, 1, v) end function Base.append!(x::PyList, vs) for v in vs push!(x, v) end return x end function Base.push!(x::PyList, v1, v2, vs...) push!(x, v1) push!(x, v2, vs...) end Base.@propagate_inbounds function Base.pop!(x::PyList{T}) where {T} @boundscheck (isempty(x) && throw(BoundsError(x))) return pyconvert_and_del(T, @py x.pop()) end Base.@propagate_inbounds function Base.popat!(x::PyList{T}, i::Integer) where {T} @boundscheck checkbounds(x, i) return pyconvert_and_del(T, @py x.pop(@jl(i-1))) end Base.@propagate_inbounds Base.popfirst!(x::PyList) = popat!(x, 1) function Base.reverse!(x::PyList) pydel!(@py x.reverse()) return x end function Base.empty!(x::PyList) pydel!(@py x.clear()) return x end function Base.copy(x::PyList{T}) where {T} PyList{T}(Val(:new), @py x.copy()) end
[ 37811, 198, 220, 220, 220, 9485, 8053, 90, 51, 28, 20519, 92, 26933, 87, 12962, 198, 198, 36918, 862, 262, 11361, 1351, 4600, 87, 63, 357, 273, 1997, 19201, 262, 8379, 7071, 8, 355, 281, 4600, 23839, 38469, 90, 51, 92, 44646, 198, 198, 1532, 4600, 87, 63, 318, 407, 257, 11361, 2134, 11, 340, 318, 11513, 284, 530, 1262, 4600, 79, 2645, 396, 44646, 198, 37811, 198, 7249, 9485, 8053, 90, 51, 92, 1279, 25, 27741, 38469, 90, 51, 92, 198, 220, 220, 220, 12972, 7904, 9485, 198, 220, 220, 220, 9485, 8053, 90, 51, 92, 7, 3712, 7762, 90, 25, 3605, 5512, 12972, 3712, 20519, 8, 810, 1391, 51, 92, 796, 649, 90, 51, 92, 7, 9078, 8, 198, 437, 198, 39344, 9485, 8053, 198, 198, 20519, 8053, 90, 51, 92, 7, 87, 28, 79, 2645, 396, 28955, 810, 1391, 51, 92, 796, 9485, 8053, 90, 51, 92, 7, 7762, 7, 25, 3605, 828, 318, 9078, 7, 87, 8, 5633, 9485, 7, 87, 8, 1058, 279, 2645, 396, 7, 87, 4008, 198, 20519, 8053, 7, 87, 28, 79, 2645, 396, 28955, 796, 9485, 8053, 90, 20519, 92, 7, 87, 8, 198, 198, 8802, 88, 7, 3712, 20519, 8053, 8, 796, 2081, 198, 1136, 9078, 7, 87, 3712, 20519, 8053, 8, 796, 2124, 13, 9078, 198, 79, 5173, 417, 0, 7, 87, 3712, 20519, 8053, 8, 796, 279, 5173, 417, 0, 7, 87, 13, 9078, 8, 198, 198, 9078, 1102, 1851, 62, 25135, 62, 43167, 7, 3712, 6030, 90, 51, 5512, 2124, 3712, 20519, 11, 7904, 6030, 90, 20519, 8053, 90, 53, 11709, 28, 18274, 4487, 13557, 4906, 62, 549, 7, 51, 4008, 810, 1391, 51, 27, 25, 20519, 8053, 11, 53, 92, 796, 198, 220, 220, 220, 611, 9485, 8053, 90, 20519, 92, 1279, 25, 309, 198, 220, 220, 220, 220, 220, 220, 220, 12972, 1102, 1851, 62, 7783, 7, 20519, 8053, 90, 20519, 92, 7, 87, 4008, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 12972, 1102, 1851, 62, 7783, 7, 20519, 8053, 90, 53, 92, 7, 87, 4008, 198, 220, 220, 220, 886, 198, 198, 14881, 13, 13664, 7, 87, 3712, 20519, 8053, 8, 796, 2558, 7, 79, 2645, 268, 7, 87, 4008, 198, 198, 14881, 13, 7857, 7, 87, 3712, 20519, 8053, 8, 796, 357, 13664, 7, 87, 828, 8, 198, 198, 14881, 13, 31, 22930, 37861, 62, 259, 65, 3733, 2163, 7308, 13, 1136, 9630, 7, 87, 3712, 20519, 8053, 90, 51, 5512, 1312, 3712, 5317, 8, 810, 1391, 51, 92, 198, 220, 220, 220, 2488, 7784, 15952, 694, 2198, 65, 3733, 7, 87, 11, 1312, 8, 198, 220, 220, 220, 1441, 12972, 1102, 1851, 62, 392, 62, 12381, 7, 51, 11, 2488, 9078, 2124, 58, 31, 20362, 7, 72, 12, 16, 8, 12962, 198, 437, 198, 198, 14881, 13, 31, 22930, 37861, 62, 259, 65, 3733, 2163, 7308, 13, 2617, 9630, 0, 7, 87, 3712, 20519, 8053, 90, 51, 5512, 410, 11, 1312, 3712, 5317, 8, 810, 1391, 51, 92, 198, 220, 220, 220, 2488, 7784, 15952, 694, 2198, 65, 3733, 7, 87, 11, 1312, 8, 198, 220, 220, 220, 279, 893, 316, 9186, 7, 87, 11, 1312, 12, 16, 11, 10385, 7, 51, 11, 410, 4008, 198, 220, 220, 220, 1441, 2124, 198, 437, 198, 198, 14881, 13, 31, 22930, 37861, 62, 259, 65, 3733, 2163, 7308, 13, 28463, 0, 7, 87, 3712, 20519, 8053, 90, 51, 5512, 1312, 3712, 46541, 11, 410, 8, 810, 1391, 51, 92, 198, 220, 220, 220, 2488, 7784, 15952, 694, 357, 72, 855, 13664, 7, 87, 47762, 16, 8614, 2198, 65, 3733, 7, 87, 11, 1312, 4008, 198, 220, 220, 220, 279, 5173, 417, 0, 7, 31, 9078, 2124, 13, 28463, 7, 31, 20362, 7, 72, 12, 16, 828, 2488, 20362, 7, 1102, 1851, 7, 51, 11, 410, 35514, 198, 220, 220, 220, 1441, 2124, 198, 437, 198, 198, 8818, 7308, 13, 14689, 0, 7, 87, 3712, 20519, 8053, 90, 51, 5512, 410, 8, 810, 1391, 51, 92, 198, 220, 220, 220, 279, 5173, 417, 0, 7, 31, 9078, 2124, 13, 33295, 7, 31, 20362, 7, 1102, 1851, 7, 51, 11, 410, 35514, 198, 220, 220, 220, 1441, 2124, 198, 437, 198, 198, 8818, 7308, 13, 14689, 11085, 0, 7, 87, 3712, 20519, 8053, 11, 410, 8, 198, 220, 220, 220, 1441, 2488, 259, 65, 3733, 7308, 13, 28463, 0, 7, 87, 11, 352, 11, 410, 8, 198, 437, 198, 198, 8818, 7308, 13, 33295, 0, 7, 87, 3712, 20519, 8053, 11, 3691, 8, 198, 220, 220, 220, 329, 410, 287, 3691, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 87, 11, 410, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 2124, 198, 437, 198, 198, 8818, 7308, 13, 14689, 0, 7, 87, 3712, 20519, 8053, 11, 410, 16, 11, 410, 17, 11, 3691, 23029, 198, 220, 220, 220, 4574, 0, 7, 87, 11, 410, 16, 8, 198, 220, 220, 220, 4574, 0, 7, 87, 11, 410, 17, 11, 3691, 23029, 198, 437, 198, 198, 14881, 13, 31, 22930, 37861, 62, 259, 65, 3733, 2163, 7308, 13, 12924, 0, 7, 87, 3712, 20519, 8053, 90, 51, 30072, 810, 1391, 51, 92, 198, 220, 220, 220, 2488, 7784, 15952, 694, 357, 271, 28920, 7, 87, 8, 11405, 3714, 7, 33, 3733, 12331, 7, 87, 22305, 198, 220, 220, 220, 1441, 12972, 1102, 1851, 62, 392, 62, 12381, 7, 51, 11, 2488, 9078, 2124, 13, 12924, 28955, 198, 437, 198, 198, 14881, 13, 31, 22930, 37861, 62, 259, 65, 3733, 2163, 7308, 13, 12924, 265, 0, 7, 87, 3712, 20519, 8053, 90, 51, 5512, 1312, 3712, 46541, 8, 810, 1391, 51, 92, 198, 220, 220, 220, 2488, 7784, 15952, 694, 2198, 65, 3733, 7, 87, 11, 1312, 8, 198, 220, 220, 220, 1441, 12972, 1102, 1851, 62, 392, 62, 12381, 7, 51, 11, 2488, 9078, 2124, 13, 12924, 7, 31, 20362, 7, 72, 12, 16, 22305, 198, 437, 198, 198, 14881, 13, 31, 22930, 37861, 62, 259, 65, 3733, 7308, 13, 12924, 11085, 0, 7, 87, 3712, 20519, 8053, 8, 796, 1461, 265, 0, 7, 87, 11, 352, 8, 198, 198, 8818, 7308, 13, 50188, 0, 7, 87, 3712, 20519, 8053, 8, 198, 220, 220, 220, 279, 5173, 417, 0, 7, 31, 9078, 2124, 13, 50188, 28955, 198, 220, 220, 220, 1441, 2124, 198, 437, 198, 198, 8818, 7308, 13, 28920, 0, 7, 87, 3712, 20519, 8053, 8, 198, 220, 220, 220, 279, 5173, 417, 0, 7, 31, 9078, 2124, 13, 20063, 28955, 198, 220, 220, 220, 1441, 2124, 198, 437, 198, 198, 8818, 7308, 13, 30073, 7, 87, 3712, 20519, 8053, 90, 51, 30072, 810, 1391, 51, 92, 198, 220, 220, 220, 9485, 8053, 90, 51, 92, 7, 7762, 7, 25, 3605, 828, 2488, 9078, 2124, 13, 30073, 28955, 198, 437, 198 ]
2.139965
1,136
import Gaugefields:staggered_U struct StaggeredFermion_4D_nowing{NC} <: AbstractFermionfields_4D{NC} NC::Int64 NX::Int64 NY::Int64 NZ::Int64 NT::Int64 NDW::Int64 NG::Int64 #size of the Gamma matrix. In Staggered fermion, this is one. NV::Int64 f::Array{ComplexF64,6} Dirac_operator::String fshifted::Array{ComplexF64,6} function StaggeredFermion_4D_nowing(NC,NX,NY,NZ,NT) NG = 1 NDW = 0 NV = NC*NX*NY*NZ*NT*NG #@assert NDW == 1 "only NDW = 1 is supported. Now NDW = $NDW" f = zeros(ComplexF64,NC,NX+2NDW,NY+2NDW,NZ+2NDW,NT+2NDW,NG) fshifted = zero(f) Dirac_operator = "Staggered" return new{NC}(NC,NX,NY,NZ,NT,NDW,NG,NV,f,Dirac_operator,fshifted) end end function Base.size(x::StaggeredFermion_4D_nowing{NC}) where NC return (x.NC,x.NX,x.NY,x.NZ,x.NT,x.NG) #return (x.NV,) end function Base.length(x::StaggeredFermion_4D_nowing{NC}) where {NC} return NC*x.NX*x.NY*x.NZ*x.NT*x.NG end function Base.similar(x::T) where T <: StaggeredFermion_4D_nowing return StaggeredFermion_4D_nowing(x.NC,x.NX,x.NY,x.NZ,x.NT) end function Dx!(xout::T,U::Array{G,1}, x::T,temps::Array{T,1},boundarycondition) where {T <: StaggeredFermion_4D_nowing,G <:AbstractGaugefields} #temp = temps[4] temp1 = temps[1] temp2 = temps[2] #clear!(temp) set_wing_fermion!(x,boundarycondition) clear_fermion!(xout) for ν=1:4 xplus = shift_fermion(x,ν) Us = staggered_U(U[ν],ν) mul!(temp1,Us,xplus) xminus = shift_fermion(x,-ν) Uminus = shift_U(U[ν],-ν) Uminus_s = staggered_U(Uminus,ν) mul!(temp2,Uminus_s',xminus) add_fermion!(xout,0.5,temp1,-0.5,temp2) #fermion_shift!(temp1,U,ν,x) #fermion_shift!(temp2,U,-ν,x) #add!(xout,0.5,temp1,-0.5,temp2) end set_wing_fermion!(xout,boundarycondition) return end function clear_fermion!(x::StaggeredFermion_4D_nowing{NC},evensite) where NC ibush = ifelse(evensite,0,1) for it=1:x.NT for iz=1:x.NZ for iy=1:x.NY xran =1+(1+ibush+iy+iz+it)%2:2:x.NX for ix in xran @simd for ic=1:NC x[ic,ix,iy,iz,it,1] = 0 end end end end end return end function shift_fermion(F::StaggeredFermion_4D_nowing{NC},ν::T) where {T <: Integer,NC} if ν == 1 shift = (1,0,0,0) elseif ν == 2 shift = (0,1,0,0) elseif ν == 3 shift = (0,0,1,0) elseif ν == 4 shift = (0,0,0,1) elseif ν == -1 shift = (-1,0,0,0) elseif ν == -2 shift = (0,-1,0,0) elseif ν == -3 shift = (0,0,-1,0) elseif ν == -4 shift = (0,0,0,-1) end return Shifted_fermionfields_4D_nowing(F,shift) end function shift_fermion(F::TF,shift::NTuple{Dim,T}) where {Dim,T <: Integer,TF <: StaggeredFermion_4D_nowing} return Shifted_fermionfields_4D_nowing(F,shift) end function shifted_fermion!(x::StaggeredFermion_4D_nowing{NC},boundarycondition,shift) where NC NX = x.NX NY = x.NY NZ = x.NZ NT = x.NT factor_t = 1 factor_z = 1 factor_y = 1 factor_x = 1 bc = boundarycondition #n6 = size(x.f)[6] #f = zeros(ComplexF64,4) #e = zeros(ComplexF64,4) #for ic=1:NC for ig = 1:1 for it=1:NT it_shifted = it + shift[4] inside_up = it_shifted > NT inside_down = it_shifted < 1 factor_t = ifelse(inside_up || inside_down,bc[4],1) it_shifted += ifelse(inside_up,-NT,0) it_shifted += ifelse(inside_down,+NT,0) for iz=1:NZ iz_shifted = iz + shift[3] inside_up = iz_shifted > NZ inside_down = iz_shifted < 1 factor_z = ifelse(inside_up || inside_down,bc[3],1) iz_shifted += ifelse(inside_up,-NZ,0) iz_shifted += ifelse(inside_down,+NZ,0) for iy=1:NY iy_shifted = iy + shift[2] inside_up = iy_shifted > NY inside_down = iy_shifted < 1 factor_y = ifelse(inside_up || inside_down,bc[2],1) iy_shifted += ifelse(inside_up,-NY,0) iy_shifted += ifelse(inside_down,+NY,0) for ix=1:NX ix_shifted = ix + shift[1] inside_up = ix_shifted > NX inside_down = ix_shifted < 1 factor_x = ifelse(inside_up || inside_down,bc[1],1) ix_shifted += ifelse(inside_up,-NX,0) ix_shifted += ifelse(inside_down,+NX,0) @inbounds @simd for ic=1:NC #@code_warntype x.f[ic,ix_shifted,iy_shifted,iz_shifted,it_shifted,ig] x.fshifted[ic,ix,iy,iz,it,ig] = factor_x*factor_y*factor_z*factor_t*x[ic,ix_shifted,iy_shifted,iz_shifted,it_shifted,ig] end end end end end end #end end function set_wing_fermion!(a::StaggeredFermion_4D_nowing{NC},boundarycondition) where NC return end
[ 11748, 35094, 469, 25747, 25, 301, 363, 10446, 62, 52, 198, 198, 7249, 520, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 90, 7792, 92, 1279, 25, 27741, 37, 7780, 295, 25747, 62, 19, 35, 90, 7792, 92, 198, 220, 220, 220, 8823, 3712, 5317, 2414, 198, 220, 220, 220, 42482, 3712, 5317, 2414, 198, 220, 220, 220, 6645, 3712, 5317, 2414, 198, 220, 220, 220, 26905, 3712, 5317, 2414, 198, 220, 220, 220, 24563, 3712, 5317, 2414, 198, 220, 220, 220, 25524, 54, 3712, 5317, 2414, 198, 220, 220, 220, 39058, 3712, 5317, 2414, 1303, 7857, 286, 262, 43595, 17593, 13, 554, 520, 363, 10446, 277, 7780, 295, 11, 428, 318, 530, 13, 220, 198, 220, 220, 220, 23973, 3712, 5317, 2414, 198, 220, 220, 220, 277, 3712, 19182, 90, 5377, 11141, 37, 2414, 11, 21, 92, 198, 220, 220, 220, 36202, 330, 62, 46616, 3712, 10100, 198, 220, 220, 220, 277, 1477, 21715, 3712, 19182, 90, 5377, 11141, 37, 2414, 11, 21, 92, 198, 220, 220, 220, 220, 628, 220, 220, 220, 2163, 520, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 7, 7792, 11, 45, 55, 11, 12805, 11, 37371, 11, 11251, 8, 220, 198, 220, 220, 220, 220, 220, 220, 220, 39058, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 25524, 54, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 23973, 796, 8823, 9, 45, 55, 9, 12805, 9, 37371, 9, 11251, 9, 10503, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 31, 30493, 25524, 54, 6624, 352, 366, 8807, 25524, 54, 796, 352, 318, 4855, 13, 2735, 25524, 54, 796, 720, 8575, 54, 1, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 1976, 27498, 7, 5377, 11141, 37, 2414, 11, 7792, 11, 45, 55, 10, 17, 8575, 54, 11, 12805, 10, 17, 8575, 54, 11, 37371, 10, 17, 8575, 54, 11, 11251, 10, 17, 8575, 54, 11, 10503, 8, 198, 220, 220, 220, 220, 220, 220, 220, 277, 1477, 21715, 796, 6632, 7, 69, 8, 198, 220, 220, 220, 220, 220, 220, 220, 36202, 330, 62, 46616, 796, 366, 1273, 363, 10446, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 649, 90, 7792, 92, 7, 7792, 11, 45, 55, 11, 12805, 11, 37371, 11, 11251, 11, 8575, 54, 11, 10503, 11, 27159, 11, 69, 11, 35277, 330, 62, 46616, 11, 69, 1477, 21715, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 7308, 13, 7857, 7, 87, 3712, 1273, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 90, 7792, 30072, 810, 8823, 198, 220, 220, 220, 1441, 357, 87, 13, 7792, 11, 87, 13, 45, 55, 11, 87, 13, 12805, 11, 87, 13, 37371, 11, 87, 13, 11251, 11, 87, 13, 10503, 8, 198, 220, 220, 220, 1303, 7783, 357, 87, 13, 27159, 35751, 198, 437, 198, 198, 8818, 7308, 13, 13664, 7, 87, 3712, 1273, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 90, 7792, 30072, 810, 1391, 7792, 92, 198, 220, 220, 220, 1441, 8823, 9, 87, 13, 45, 55, 9, 87, 13, 12805, 9, 87, 13, 37371, 9, 87, 13, 11251, 9, 87, 13, 10503, 198, 437, 198, 198, 8818, 7308, 13, 38610, 7, 87, 3712, 51, 8, 810, 309, 1279, 25, 520, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 198, 220, 220, 220, 1441, 520, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 7, 87, 13, 7792, 11, 87, 13, 45, 55, 11, 87, 13, 12805, 11, 87, 13, 37371, 11, 87, 13, 11251, 8, 198, 437, 628, 198, 8818, 360, 87, 0, 7, 87, 448, 3712, 51, 11, 52, 3712, 19182, 90, 38, 11, 16, 5512, 198, 220, 220, 220, 2124, 3712, 51, 11, 11498, 862, 3712, 19182, 90, 51, 11, 16, 5512, 7784, 560, 31448, 8, 810, 220, 1391, 51, 1279, 25, 520, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 11, 38, 1279, 25, 23839, 38, 559, 469, 25747, 92, 198, 220, 220, 220, 1303, 29510, 796, 2169, 862, 58, 19, 60, 198, 220, 220, 220, 20218, 16, 796, 2169, 862, 58, 16, 60, 198, 220, 220, 220, 20218, 17, 796, 2169, 862, 58, 17, 60, 628, 220, 220, 220, 1303, 20063, 0, 7, 29510, 8, 198, 220, 220, 220, 900, 62, 5469, 62, 2232, 76, 295, 0, 7, 87, 11, 7784, 560, 31448, 8, 198, 220, 220, 220, 1598, 62, 2232, 76, 295, 0, 7, 87, 448, 8, 198, 220, 220, 220, 329, 7377, 121, 28, 16, 25, 19, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 9541, 796, 6482, 62, 2232, 76, 295, 7, 87, 11, 26180, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4021, 796, 48480, 62, 52, 7, 52, 58, 26180, 4357, 26180, 8, 198, 220, 220, 220, 220, 220, 220, 220, 35971, 0, 7, 29510, 16, 11, 5842, 11, 87, 9541, 8, 628, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 40191, 796, 6482, 62, 2232, 76, 295, 7, 87, 12095, 26180, 8, 198, 220, 220, 220, 220, 220, 220, 220, 471, 40191, 796, 6482, 62, 52, 7, 52, 58, 26180, 4357, 12, 26180, 8, 198, 220, 220, 220, 220, 220, 220, 220, 471, 40191, 62, 82, 796, 48480, 62, 52, 7, 52, 40191, 11, 26180, 8, 198, 220, 220, 220, 220, 220, 220, 220, 35971, 0, 7, 29510, 17, 11, 52, 40191, 62, 82, 3256, 87, 40191, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 751, 62, 2232, 76, 295, 0, 7, 87, 448, 11, 15, 13, 20, 11, 29510, 16, 12095, 15, 13, 20, 11, 29510, 17, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 2232, 76, 295, 62, 30846, 0, 7, 29510, 16, 11, 52, 11, 26180, 11, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2232, 76, 295, 62, 30846, 0, 7, 29510, 17, 11, 52, 12095, 26180, 11, 87, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2860, 0, 7, 87, 448, 11, 15, 13, 20, 11, 29510, 16, 12095, 15, 13, 20, 11, 29510, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 886, 628, 220, 220, 220, 220, 198, 220, 220, 220, 900, 62, 5469, 62, 2232, 76, 295, 0, 7, 87, 448, 11, 7784, 560, 31448, 8, 628, 220, 220, 220, 1441, 198, 437, 198, 198, 8818, 1598, 62, 2232, 76, 295, 0, 7, 87, 3712, 1273, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 90, 7792, 5512, 10197, 15654, 8, 810, 8823, 198, 220, 220, 220, 24283, 1530, 796, 611, 17772, 7, 10197, 15654, 11, 15, 11, 16, 8, 198, 220, 220, 220, 329, 340, 28, 16, 25, 87, 13, 11251, 198, 220, 220, 220, 220, 220, 220, 220, 329, 220, 528, 28, 16, 25, 87, 13, 37371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 88, 28, 16, 25, 87, 13, 12805, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 2596, 796, 16, 33747, 16, 10, 571, 1530, 10, 7745, 10, 528, 10, 270, 8, 4, 17, 25, 17, 25, 87, 13, 45, 55, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 220, 844, 287, 2124, 2596, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 14323, 67, 329, 14158, 28, 16, 25, 7792, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 58, 291, 11, 844, 11, 7745, 11, 528, 11, 270, 11, 16, 60, 796, 657, 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, 886, 198, 220, 220, 220, 1441, 198, 437, 198, 198, 8818, 6482, 62, 2232, 76, 295, 7, 37, 3712, 1273, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 90, 7792, 5512, 26180, 3712, 51, 8, 810, 1391, 51, 1279, 25, 34142, 11, 7792, 92, 198, 220, 220, 220, 611, 7377, 121, 6624, 352, 198, 220, 220, 220, 220, 220, 220, 220, 6482, 796, 357, 16, 11, 15, 11, 15, 11, 15, 8, 198, 220, 220, 220, 2073, 361, 7377, 121, 6624, 362, 198, 220, 220, 220, 220, 220, 220, 220, 6482, 796, 357, 15, 11, 16, 11, 15, 11, 15, 8, 198, 220, 220, 220, 2073, 361, 7377, 121, 6624, 513, 198, 220, 220, 220, 220, 220, 220, 220, 6482, 796, 357, 15, 11, 15, 11, 16, 11, 15, 8, 198, 220, 220, 220, 2073, 361, 7377, 121, 6624, 604, 198, 220, 220, 220, 220, 220, 220, 220, 6482, 796, 357, 15, 11, 15, 11, 15, 11, 16, 8, 198, 220, 220, 220, 2073, 361, 7377, 121, 6624, 532, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6482, 796, 13841, 16, 11, 15, 11, 15, 11, 15, 8, 198, 220, 220, 220, 2073, 361, 7377, 121, 6624, 532, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6482, 796, 357, 15, 12095, 16, 11, 15, 11, 15, 8, 198, 220, 220, 220, 2073, 361, 7377, 121, 6624, 532, 18, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6482, 796, 357, 15, 11, 15, 12095, 16, 11, 15, 8, 198, 220, 220, 220, 2073, 361, 7377, 121, 6624, 532, 19, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6482, 796, 357, 15, 11, 15, 11, 15, 12095, 16, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1441, 911, 21715, 62, 2232, 76, 295, 25747, 62, 19, 35, 62, 2197, 278, 7, 37, 11, 30846, 8, 198, 437, 628, 198, 8818, 6482, 62, 2232, 76, 295, 7, 37, 3712, 10234, 11, 30846, 3712, 11251, 29291, 90, 29271, 11, 51, 30072, 810, 1391, 29271, 11, 51, 1279, 25, 34142, 11, 10234, 1279, 25, 520, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 92, 198, 220, 220, 220, 1441, 911, 21715, 62, 2232, 76, 295, 25747, 62, 19, 35, 62, 2197, 278, 7, 37, 11, 30846, 8, 198, 437, 628, 198, 8818, 14869, 62, 2232, 76, 295, 0, 7, 87, 3712, 1273, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 90, 7792, 5512, 7784, 560, 31448, 11, 30846, 8, 810, 8823, 198, 220, 220, 220, 42482, 796, 2124, 13, 45, 55, 198, 220, 220, 220, 6645, 796, 2124, 13, 12805, 198, 220, 220, 220, 26905, 796, 2124, 13, 37371, 198, 220, 220, 220, 24563, 796, 2124, 13, 11251, 198, 220, 220, 220, 5766, 62, 83, 796, 352, 198, 220, 220, 220, 5766, 62, 89, 796, 352, 198, 220, 220, 220, 5766, 62, 88, 796, 352, 198, 220, 220, 220, 5766, 62, 87, 796, 352, 198, 220, 220, 220, 47125, 796, 18645, 31448, 628, 220, 220, 220, 1303, 77, 21, 796, 2546, 7, 87, 13, 69, 38381, 21, 60, 198, 220, 220, 220, 1303, 69, 796, 1976, 27498, 7, 5377, 11141, 37, 2414, 11, 19, 8, 198, 220, 220, 220, 1303, 68, 796, 1976, 27498, 7, 5377, 11141, 37, 2414, 11, 19, 8, 628, 220, 220, 220, 1303, 1640, 14158, 28, 16, 25, 7792, 198, 220, 220, 220, 329, 45329, 796, 352, 25, 16, 198, 220, 220, 220, 220, 220, 220, 220, 329, 340, 28, 16, 25, 11251, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 1477, 21715, 796, 340, 1343, 6482, 58, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2641, 62, 929, 796, 340, 62, 1477, 21715, 1875, 24563, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2641, 62, 2902, 796, 340, 62, 1477, 21715, 1279, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5766, 62, 83, 796, 611, 17772, 7, 48787, 62, 929, 8614, 2641, 62, 2902, 11, 15630, 58, 19, 4357, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 1477, 21715, 15853, 611, 17772, 7, 48787, 62, 929, 12095, 11251, 11, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 1477, 21715, 15853, 611, 17772, 7, 48787, 62, 2902, 11, 10, 11251, 11, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 220, 528, 28, 16, 25, 37371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 528, 62, 1477, 21715, 796, 220, 528, 1343, 6482, 58, 18, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2641, 62, 929, 796, 220, 528, 62, 1477, 21715, 1875, 26905, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2641, 62, 2902, 796, 220, 528, 62, 1477, 21715, 1279, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5766, 62, 89, 796, 611, 17772, 7, 48787, 62, 929, 8614, 2641, 62, 2902, 11, 15630, 58, 18, 4357, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 528, 62, 1477, 21715, 15853, 611, 17772, 7, 48787, 62, 929, 12095, 37371, 11, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 528, 62, 1477, 21715, 15853, 611, 17772, 7, 48787, 62, 2902, 11, 10, 37371, 11, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 88, 28, 16, 25, 12805, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 88, 62, 1477, 21715, 796, 1312, 88, 1343, 6482, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2641, 62, 929, 796, 1312, 88, 62, 1477, 21715, 1875, 6645, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2641, 62, 2902, 796, 1312, 88, 62, 1477, 21715, 1279, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5766, 62, 88, 796, 611, 17772, 7, 48787, 62, 929, 8614, 2641, 62, 2902, 11, 15630, 58, 17, 4357, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 88, 62, 1477, 21715, 15853, 611, 17772, 7, 48787, 62, 929, 12095, 12805, 11, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 88, 62, 1477, 21715, 15853, 611, 17772, 7, 48787, 62, 2902, 11, 10, 12805, 11, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 220, 844, 28, 16, 25, 45, 55, 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, 844, 62, 1477, 21715, 796, 220, 844, 1343, 6482, 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, 2641, 62, 929, 796, 220, 844, 62, 1477, 21715, 1875, 42482, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2641, 62, 2902, 796, 220, 844, 62, 1477, 21715, 1279, 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, 5766, 62, 87, 796, 611, 17772, 7, 48787, 62, 929, 8614, 2641, 62, 2902, 11, 15630, 58, 16, 4357, 16, 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, 844, 62, 1477, 21715, 15853, 611, 17772, 7, 48787, 62, 929, 12095, 45, 55, 11, 15, 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, 844, 62, 1477, 21715, 15853, 611, 17772, 7, 48787, 62, 2902, 11, 10, 45, 55, 11, 15, 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, 2488, 259, 65, 3733, 2488, 14323, 67, 329, 14158, 28, 16, 25, 7792, 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, 1303, 31, 8189, 62, 5767, 429, 2981, 2124, 13, 69, 58, 291, 11, 844, 62, 1477, 21715, 11, 7745, 62, 1477, 21715, 11, 528, 62, 1477, 21715, 11, 270, 62, 1477, 21715, 11, 328, 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, 2124, 13, 69, 1477, 21715, 58, 291, 11, 844, 11, 7745, 11, 528, 11, 270, 11, 328, 60, 796, 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, 220, 220, 220, 220, 220, 220, 220, 220, 5766, 62, 87, 9, 31412, 62, 88, 9, 31412, 62, 89, 9, 31412, 62, 83, 9, 87, 58, 291, 11, 844, 62, 1477, 21715, 11, 7745, 62, 1477, 21715, 11, 528, 62, 1477, 21715, 11, 270, 62, 1477, 21715, 11, 328, 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, 886, 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, 886, 198, 220, 220, 220, 1303, 437, 198, 220, 220, 220, 220, 198, 437, 628, 198, 8818, 900, 62, 5469, 62, 2232, 76, 295, 0, 7, 64, 3712, 1273, 363, 10446, 37, 7780, 295, 62, 19, 35, 62, 2197, 278, 90, 7792, 5512, 7784, 560, 31448, 8, 810, 8823, 220, 198, 220, 220, 1441, 198, 437, 198 ]
1.693146
3,210
module ComputExp using JuliaDB using Missings using Query using NamedTuples include("utils.jl") include("types.jl") include("api.jl") include("run_exp.jl") export ComputExpDB, New!, Language, Algorithm, Implementation, Problem, Experiment, Run, @run_exps end # module
[ 21412, 22476, 16870, 198, 198, 3500, 22300, 11012, 198, 3500, 4544, 654, 198, 3500, 43301, 198, 3500, 34441, 47247, 2374, 198, 198, 17256, 7203, 26791, 13, 20362, 4943, 198, 17256, 7203, 19199, 13, 20362, 4943, 198, 17256, 7203, 15042, 13, 20362, 4943, 198, 17256, 7203, 5143, 62, 11201, 13, 20362, 4943, 198, 198, 39344, 220, 22476, 16870, 11012, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 968, 28265, 220, 198, 220, 220, 220, 220, 220, 220, 220, 15417, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 978, 42289, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 46333, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 20647, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 29544, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 5660, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 5143, 62, 1069, 862, 198, 198, 437, 1303, 8265, 198 ]
2.205128
156
module panel import Term: split_lines, get_last_valid_str_idx, reshape_text, do_by_line, join_lines, truncate, textlen import ..consoles: console_width import ..measure: Measure import ..renderables: AbstractRenderable, RenderablesUnion, Renderable, RenderableText import ..segment: Segment using ..box import ..layout: Padding, vstack import ..style: apply_style export Panel, TextBox abstract type AbstractPanel <: AbstractRenderable end # ---------------------------------------------------------------------------- # # PANEL # # ---------------------------------------------------------------------------- # """ Panel `Renderable` with a panel surrounding some content: ╭──────────╮ │ my panel │ ╰──────────╯ """ mutable struct Panel <: AbstractPanel segments::Vector measure::Measure title::Union{Nothing,String} title_style::Union{String,Nothing} style::Union{String,Nothing} end """ Panel( content::RenderablesUnion; title::Union{Nothing, String}=nothing, title_style::Union{String, Nothing}=nothing, title_justify::Symbol=:left, subtitle::Union{String, Nothing}=nothing, subtitle_style::Union{String, Nothing}=nothing, subtitle_justify::Symbol=:left, width::Union{Nothing, Symbol, Int}=:fit, height::Union{Nothing, Int}=nothing, style::Union{String, Nothing}=nothing, box::Symbol=:ROUNDED, justify=:left ) `Panel` constructor to fit a panel to a piece of (renderable) content. `title` can be used to specify a title to be addded to the top row and `title_style` and `title_justify` set its appearance and position. Same for `subtitle` but for the panel's bottom row. `width` and `height` are used to set the `Panel`'s size. If not passed they are computed to fit tot the `content`'s size. """ function Panel( content::RenderablesUnion; title::Union{Nothing,String} = nothing, title_style::Union{String,Nothing} = nothing, title_justify::Symbol = :left, subtitle::Union{String,Nothing} = nothing, subtitle_style::Union{String,Nothing} = nothing, subtitle_justify::Symbol = :left, width::Union{Nothing,Symbol,Int} = :fit, height::Union{Nothing,Int} = nothing, style::Union{String,Nothing} = nothing, box::Symbol = :ROUNDED, justify = :left, ) box = eval(box) # get box object from symbol # style stuff title_style = isnothing(title_style) ? style : title_style # σ(s) = Segment(s, style) # applies the main style markup to a string to make a segment σ(s) = "[$style]$s[/$style]" # applies the main style markup to a string to make a segment # get size of panel to fit the content if content isa AbstractString && width isa Number content = do_by_line((ln) -> reshape_text(ln, width - 4), content) end content_measure = Measure(content) panel_measure = Measure(content_measure.w + 2, content_measure.h + 2) if width == :fit width = panel_measure.w + 2 else width = isnothing(width) ? console_width() - 4 : width end @assert width > content_measure.w "Width too small for content '$content' with $content_measure" panel_measure.w = width # create segments segments::Vector{Segment} = [] # create top/bottom rows with titles top = get_title_row( :top, box, title; width = width - 2, style = style, title_style = title_style, justify = title_justify, ) bottom = get_title_row( :bottom, box, subtitle; width = width - 2, style = style, title_style = subtitle_style, justify = subtitle_justify, ) # add a panel row for each content row push!(segments, top) left, right = σ(string(box.mid.left)), σ(string(box.mid.right)) content_lines = split_lines(content) for n = 1:content_measure.h # get padding line = content_lines[n] padding = Padding(line, width - 2, justify) # make line segment = Segment(left * padding.left * apply_style(line) * padding.right * right) push!(segments, segment) end # add empty lines to ensure target height is reached if !isnothing(height) && content_measure.h < height for i = 1:(height-content_measure.h) line = " "^(width - 2) push!(segments, Segment(left * line * right)) end end push!(segments, bottom) return Panel( segments, panel_measure, isnothing(title) ? title : title, title_style, style, ) end """ Panel(renderables; kwargs...) `Panel` constructor for creating a panel out of multiple renderables at once. """ function Panel(renderables...; width::Union{Nothing,Int,Symbol} = nothing, kwargs...) rend_width = isnothing(width) || width isa Symbol ? width : width - 1 renderable = vstack(Renderable.(renderables, width = rend_width)...) return Panel(renderable; width = width, kwargs...) end # ---------------------------------------------------------------------------- # # TextBox # # ---------------------------------------------------------------------------- # """ TextBox Creates a `Panel` and fits input text to it. The pannel is hidden so that the result is just a text box. """ mutable struct TextBox <: AbstractPanel segments::Vector measure::Measure end """ TextBox( text::Union{Vector, AbstractString}; width::Union{Nothing, Int}=nothing, title::Union{Nothing, String}=nothing, title_style::Union{String, Nothing}="default", title_justify::Symbol=:left, subtitle::Union{String, Nothing}=nothing, subtitle_style::Union{String, Nothing}="default", subtitle_justify::Symbol=:left, justify::Symbol=:left, fit::Symbol=:fit, ) Creates an hidden `Panel` with `text` in it. If a `width` is passed, the input `text` is reshaped to have that size, unless `fit=:truncate` in which case it's cut to size. If no `width` is passed and `fit=:fit` the `TextBox`'s size matches the size of the input `text`. Other arguments behave like `Panel`. See also [`Panel`](@ref). """ function TextBox( text::Union{Vector,AbstractString}; width::Union{Nothing,Int} = nothing, title::Union{Nothing,String} = nothing, title_style::Union{String,Nothing} = "default", title_justify::Symbol = :left, subtitle::Union{String,Nothing} = nothing, subtitle_style::Union{String,Nothing} = "default", subtitle_justify::Symbol = :left, justify::Symbol = :left, fit::Symbol = :fit, ) # fit text width = isnothing(width) ? console_width() - 4 : width if !isnothing(width) text = do_by_line((ln) -> reshape_text(ln, width - 4), text) elseif fit == :truncate text = do_by_line(ln -> truncate(ln, width - 4), text) elseif fit == :fit width = Measure(text).w + 4 width = width < 4 ? 4 : width end panel = Panel( text, style = "hidden", title = title, title_style = title_style, title_justify = title_justify, subtitle = subtitle, subtitle_style = subtitle_style, subtitle_justify = subtitle_justify, justify = justify, width = width, ) return TextBox(panel.segments, panel.measure) end TextBox(texts...; kwargs...) = TextBox(join_lines(texts); kwargs...) end
[ 21412, 6103, 198, 11748, 35118, 25, 198, 220, 220, 220, 6626, 62, 6615, 11, 198, 220, 220, 220, 651, 62, 12957, 62, 12102, 62, 2536, 62, 312, 87, 11, 198, 220, 220, 220, 27179, 1758, 62, 5239, 11, 198, 220, 220, 220, 466, 62, 1525, 62, 1370, 11, 198, 220, 220, 220, 4654, 62, 6615, 11, 198, 220, 220, 220, 40122, 378, 11, 198, 220, 220, 220, 2420, 11925, 198, 198, 11748, 11485, 5936, 4316, 25, 8624, 62, 10394, 198, 11748, 11485, 1326, 5015, 25, 24291, 198, 11748, 11485, 13287, 2977, 25, 27741, 45819, 540, 11, 46722, 2977, 38176, 11, 46722, 540, 11, 46722, 540, 8206, 198, 11748, 11485, 325, 5154, 25, 1001, 5154, 198, 3500, 11485, 3524, 198, 11748, 11485, 39786, 25, 350, 26872, 11, 410, 25558, 198, 11748, 11485, 7635, 25, 4174, 62, 7635, 198, 198, 39344, 18810, 11, 8255, 14253, 628, 198, 397, 8709, 2099, 27741, 26639, 1279, 25, 27741, 45819, 540, 886, 198, 198, 2, 16529, 10541, 1303, 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, 220, 220, 220, 220, 220, 220, 220, 40468, 3698, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 198, 2, 16529, 10541, 1303, 198, 37811, 198, 220, 220, 220, 18810, 198, 198, 63, 45819, 540, 63, 351, 257, 6103, 7346, 617, 2695, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2343, 243, 255, 28542, 8418, 22880, 106, 198, 220, 220, 220, 220, 220, 220, 220, 19421, 616, 6103, 19421, 198, 220, 220, 220, 220, 220, 220, 220, 2343, 243, 108, 28542, 8418, 22880, 107, 198, 37811, 198, 76, 18187, 2878, 18810, 1279, 25, 27741, 26639, 198, 220, 220, 220, 17894, 3712, 38469, 198, 220, 220, 220, 3953, 3712, 47384, 198, 220, 220, 220, 3670, 3712, 38176, 90, 18465, 11, 10100, 92, 198, 220, 220, 220, 3670, 62, 7635, 3712, 38176, 90, 10100, 11, 18465, 92, 198, 220, 220, 220, 3918, 3712, 38176, 90, 10100, 11, 18465, 92, 198, 437, 628, 198, 198, 37811, 198, 220, 220, 220, 18810, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2695, 3712, 45819, 2977, 38176, 26, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 3712, 38176, 90, 18465, 11, 10903, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 62, 7635, 3712, 38176, 90, 10100, 11, 10528, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 62, 3137, 1958, 3712, 13940, 23650, 28, 25, 9464, 11, 198, 220, 220, 220, 220, 220, 220, 220, 37960, 3712, 38176, 90, 10100, 11, 10528, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 37960, 62, 7635, 3712, 38176, 90, 10100, 11, 10528, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 37960, 62, 3137, 1958, 3712, 13940, 23650, 28, 25, 9464, 11, 198, 220, 220, 220, 220, 220, 220, 220, 9647, 3712, 38176, 90, 18465, 11, 38357, 11, 2558, 92, 28, 25, 11147, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6001, 3712, 38176, 90, 18465, 11, 2558, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 3712, 38176, 90, 10100, 11, 10528, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3091, 3712, 13940, 23650, 28, 25, 49, 15919, 1961, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12051, 28, 25, 9464, 198, 220, 220, 220, 1267, 198, 198, 63, 26639, 63, 23772, 284, 4197, 257, 6103, 284, 257, 3704, 286, 357, 13287, 540, 8, 2695, 13, 198, 198, 63, 7839, 63, 460, 307, 973, 284, 11986, 257, 3670, 284, 307, 751, 9395, 284, 262, 1353, 5752, 290, 220, 198, 63, 7839, 62, 7635, 63, 290, 4600, 7839, 62, 3137, 1958, 63, 900, 663, 5585, 290, 2292, 13, 198, 30556, 329, 4600, 7266, 7839, 63, 475, 329, 262, 6103, 338, 4220, 5752, 13, 198, 63, 10394, 63, 290, 4600, 17015, 63, 389, 973, 284, 900, 262, 4600, 26639, 63, 6, 82, 2546, 13, 1002, 407, 3804, 198, 9930, 389, 29231, 284, 4197, 2006, 262, 4600, 11299, 63, 6, 82, 2546, 13, 198, 37811, 198, 8818, 18810, 7, 198, 220, 220, 220, 2695, 3712, 45819, 2977, 38176, 26, 198, 220, 220, 220, 3670, 3712, 38176, 90, 18465, 11, 10100, 92, 796, 2147, 11, 198, 220, 220, 220, 3670, 62, 7635, 3712, 38176, 90, 10100, 11, 18465, 92, 796, 2147, 11, 198, 220, 220, 220, 3670, 62, 3137, 1958, 3712, 13940, 23650, 796, 1058, 9464, 11, 198, 220, 220, 220, 37960, 3712, 38176, 90, 10100, 11, 18465, 92, 796, 2147, 11, 198, 220, 220, 220, 37960, 62, 7635, 3712, 38176, 90, 10100, 11, 18465, 92, 796, 2147, 11, 198, 220, 220, 220, 37960, 62, 3137, 1958, 3712, 13940, 23650, 796, 1058, 9464, 11, 198, 220, 220, 220, 9647, 3712, 38176, 90, 18465, 11, 13940, 23650, 11, 5317, 92, 796, 1058, 11147, 11, 198, 220, 220, 220, 6001, 3712, 38176, 90, 18465, 11, 5317, 92, 796, 2147, 11, 198, 220, 220, 220, 3918, 3712, 38176, 90, 10100, 11, 18465, 92, 796, 2147, 11, 198, 220, 220, 220, 3091, 3712, 13940, 23650, 796, 1058, 49, 15919, 1961, 11, 198, 220, 220, 220, 12051, 796, 1058, 9464, 11, 198, 8, 198, 220, 220, 220, 3091, 796, 5418, 7, 3524, 8, 220, 1303, 651, 3091, 2134, 422, 6194, 628, 220, 220, 220, 1303, 3918, 3404, 198, 220, 220, 220, 3670, 62, 7635, 796, 318, 22366, 7, 7839, 62, 7635, 8, 5633, 3918, 1058, 3670, 62, 7635, 198, 220, 220, 220, 1303, 18074, 225, 7, 82, 8, 796, 1001, 5154, 7, 82, 11, 3918, 8, 220, 1303, 8991, 262, 1388, 3918, 41485, 284, 257, 4731, 284, 787, 257, 10618, 198, 220, 220, 220, 18074, 225, 7, 82, 8, 796, 12878, 3, 7635, 60, 3, 82, 13412, 3, 7635, 30866, 220, 1303, 8991, 262, 1388, 3918, 41485, 284, 257, 4731, 284, 787, 257, 10618, 628, 220, 220, 220, 1303, 651, 2546, 286, 6103, 284, 4197, 262, 2695, 198, 220, 220, 220, 611, 2695, 318, 64, 27741, 10100, 11405, 9647, 318, 64, 7913, 198, 220, 220, 220, 220, 220, 220, 220, 2695, 796, 466, 62, 1525, 62, 1370, 19510, 18755, 8, 4613, 27179, 1758, 62, 5239, 7, 18755, 11, 9647, 532, 604, 828, 2695, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 2695, 62, 1326, 5015, 796, 24291, 7, 11299, 8, 198, 220, 220, 220, 6103, 62, 1326, 5015, 796, 24291, 7, 11299, 62, 1326, 5015, 13, 86, 1343, 362, 11, 2695, 62, 1326, 5015, 13, 71, 1343, 362, 8, 628, 220, 220, 220, 611, 9647, 6624, 1058, 11147, 198, 220, 220, 220, 220, 220, 220, 220, 9647, 796, 6103, 62, 1326, 5015, 13, 86, 1343, 362, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 9647, 796, 318, 22366, 7, 10394, 8, 5633, 8624, 62, 10394, 3419, 532, 604, 1058, 9647, 198, 220, 220, 220, 886, 198, 220, 220, 220, 2488, 30493, 9647, 1875, 2695, 62, 1326, 5015, 13, 86, 366, 30916, 1165, 1402, 329, 2695, 705, 3, 11299, 6, 351, 720, 11299, 62, 1326, 5015, 1, 198, 220, 220, 220, 6103, 62, 1326, 5015, 13, 86, 796, 9647, 628, 220, 220, 220, 1303, 2251, 17894, 198, 220, 220, 220, 17894, 3712, 38469, 90, 41030, 434, 92, 796, 17635, 628, 220, 220, 220, 1303, 2251, 1353, 14, 22487, 15274, 351, 8714, 198, 220, 220, 220, 1353, 796, 651, 62, 7839, 62, 808, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4852, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3091, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 26, 198, 220, 220, 220, 220, 220, 220, 220, 9647, 796, 9647, 532, 362, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 796, 3918, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 62, 7635, 796, 3670, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12051, 796, 3670, 62, 3137, 1958, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 4220, 796, 651, 62, 7839, 62, 808, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 22487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3091, 11, 198, 220, 220, 220, 220, 220, 220, 220, 37960, 26, 198, 220, 220, 220, 220, 220, 220, 220, 9647, 796, 9647, 532, 362, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 796, 3918, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 62, 7635, 796, 37960, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12051, 796, 37960, 62, 3137, 1958, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 1303, 751, 257, 6103, 5752, 329, 1123, 2695, 5752, 198, 220, 220, 220, 4574, 0, 7, 325, 11726, 11, 1353, 8, 198, 220, 220, 220, 1364, 11, 826, 796, 18074, 225, 7, 8841, 7, 3524, 13, 13602, 13, 9464, 36911, 18074, 225, 7, 8841, 7, 3524, 13, 13602, 13, 3506, 4008, 198, 220, 220, 220, 2695, 62, 6615, 796, 6626, 62, 6615, 7, 11299, 8, 628, 198, 220, 220, 220, 329, 299, 796, 352, 25, 11299, 62, 1326, 5015, 13, 71, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 651, 24511, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 2695, 62, 6615, 58, 77, 60, 198, 220, 220, 220, 220, 220, 220, 220, 24511, 796, 350, 26872, 7, 1370, 11, 9647, 532, 362, 11, 12051, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 787, 1627, 198, 220, 220, 220, 220, 220, 220, 220, 10618, 796, 1001, 5154, 7, 9464, 1635, 24511, 13, 9464, 1635, 4174, 62, 7635, 7, 1370, 8, 1635, 24511, 13, 3506, 1635, 826, 8, 628, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 325, 11726, 11, 10618, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 1303, 751, 6565, 3951, 284, 4155, 2496, 6001, 318, 4251, 198, 220, 220, 220, 611, 5145, 271, 22366, 7, 17015, 8, 11405, 2695, 62, 1326, 5015, 13, 71, 1279, 6001, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 796, 352, 37498, 17015, 12, 11299, 62, 1326, 5015, 13, 71, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 366, 366, 61, 7, 10394, 532, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 325, 11726, 11, 1001, 5154, 7, 9464, 1635, 1627, 1635, 826, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 4574, 0, 7, 325, 11726, 11, 4220, 8, 628, 220, 220, 220, 1441, 18810, 7, 198, 220, 220, 220, 220, 220, 220, 220, 17894, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6103, 62, 1326, 5015, 11, 198, 220, 220, 220, 220, 220, 220, 220, 318, 22366, 7, 7839, 8, 5633, 3670, 1058, 3670, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 11, 198, 220, 220, 220, 1267, 198, 437, 198, 198, 37811, 198, 220, 220, 220, 18810, 7, 13287, 2977, 26, 479, 86, 22046, 23029, 198, 198, 63, 26639, 63, 23772, 329, 4441, 257, 6103, 503, 286, 3294, 8543, 2977, 379, 1752, 13, 198, 37811, 198, 8818, 18810, 7, 13287, 2977, 986, 26, 9647, 3712, 38176, 90, 18465, 11, 5317, 11, 13940, 23650, 92, 796, 2147, 11, 479, 86, 22046, 23029, 198, 220, 220, 220, 9851, 62, 10394, 796, 318, 22366, 7, 10394, 8, 8614, 9647, 318, 64, 38357, 5633, 9647, 1058, 9647, 532, 352, 198, 220, 220, 220, 8543, 540, 796, 410, 25558, 7, 45819, 540, 12195, 13287, 2977, 11, 9647, 796, 9851, 62, 10394, 8, 23029, 628, 220, 220, 220, 1441, 18810, 7, 13287, 540, 26, 9647, 796, 9647, 11, 479, 86, 22046, 23029, 198, 437, 628, 628, 198, 2, 16529, 10541, 1303, 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, 220, 220, 220, 220, 220, 220, 8255, 14253, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 198, 2, 16529, 10541, 1303, 198, 198, 37811, 198, 220, 220, 220, 8255, 14253, 198, 198, 16719, 274, 257, 4600, 26639, 63, 290, 11414, 5128, 2420, 284, 340, 13, 198, 464, 279, 4276, 318, 7104, 523, 326, 262, 1255, 318, 655, 257, 2420, 3091, 13, 198, 37811, 198, 76, 18187, 2878, 8255, 14253, 1279, 25, 27741, 26639, 198, 220, 220, 220, 17894, 3712, 38469, 198, 220, 220, 220, 3953, 3712, 47384, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 8255, 14253, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 3712, 38176, 90, 38469, 11, 27741, 10100, 19629, 198, 220, 220, 220, 220, 220, 220, 220, 9647, 3712, 38176, 90, 18465, 11, 2558, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 3712, 38176, 90, 18465, 11, 10903, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 62, 7635, 3712, 38176, 90, 10100, 11, 10528, 92, 2625, 12286, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 62, 3137, 1958, 3712, 13940, 23650, 28, 25, 9464, 11, 198, 220, 220, 220, 220, 220, 220, 220, 37960, 3712, 38176, 90, 10100, 11, 10528, 92, 28, 22366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 37960, 62, 7635, 3712, 38176, 90, 10100, 11, 10528, 92, 2625, 12286, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 37960, 62, 3137, 1958, 3712, 13940, 23650, 28, 25, 9464, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12051, 3712, 13940, 23650, 28, 25, 9464, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4197, 3712, 13940, 23650, 28, 25, 11147, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 198, 16719, 274, 281, 7104, 4600, 26639, 63, 351, 4600, 5239, 63, 287, 340, 13, 198, 198, 1532, 257, 4600, 10394, 63, 318, 3804, 11, 262, 5128, 4600, 5239, 63, 318, 27179, 5813, 284, 423, 198, 5562, 2546, 11, 4556, 4600, 11147, 28, 25, 2213, 19524, 378, 63, 287, 543, 1339, 340, 338, 2005, 284, 2546, 13, 198, 1532, 645, 4600, 10394, 63, 318, 3804, 290, 4600, 11147, 28, 25, 11147, 63, 262, 4600, 8206, 14253, 63, 6, 82, 2546, 198, 6759, 2052, 262, 2546, 286, 262, 5128, 4600, 5239, 44646, 198, 6395, 7159, 17438, 588, 4600, 26639, 44646, 198, 198, 6214, 635, 685, 63, 26639, 63, 16151, 31, 5420, 737, 198, 37811, 198, 8818, 8255, 14253, 7, 198, 220, 220, 220, 2420, 3712, 38176, 90, 38469, 11, 23839, 10100, 19629, 198, 220, 220, 220, 9647, 3712, 38176, 90, 18465, 11, 5317, 92, 796, 2147, 11, 198, 220, 220, 220, 3670, 3712, 38176, 90, 18465, 11, 10100, 92, 796, 2147, 11, 198, 220, 220, 220, 3670, 62, 7635, 3712, 38176, 90, 10100, 11, 18465, 92, 796, 366, 12286, 1600, 198, 220, 220, 220, 3670, 62, 3137, 1958, 3712, 13940, 23650, 796, 1058, 9464, 11, 198, 220, 220, 220, 37960, 3712, 38176, 90, 10100, 11, 18465, 92, 796, 2147, 11, 198, 220, 220, 220, 37960, 62, 7635, 3712, 38176, 90, 10100, 11, 18465, 92, 796, 366, 12286, 1600, 198, 220, 220, 220, 37960, 62, 3137, 1958, 3712, 13940, 23650, 796, 1058, 9464, 11, 198, 220, 220, 220, 12051, 3712, 13940, 23650, 796, 1058, 9464, 11, 198, 220, 220, 220, 4197, 3712, 13940, 23650, 796, 1058, 11147, 11, 198, 8, 628, 220, 220, 220, 1303, 4197, 2420, 198, 220, 220, 220, 9647, 796, 318, 22366, 7, 10394, 8, 5633, 8624, 62, 10394, 3419, 532, 604, 1058, 9647, 198, 220, 220, 220, 611, 5145, 271, 22366, 7, 10394, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 466, 62, 1525, 62, 1370, 19510, 18755, 8, 4613, 27179, 1758, 62, 5239, 7, 18755, 11, 9647, 532, 604, 828, 2420, 8, 198, 220, 220, 220, 2073, 361, 4197, 6624, 1058, 2213, 19524, 378, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 466, 62, 1525, 62, 1370, 7, 18755, 4613, 40122, 378, 7, 18755, 11, 9647, 532, 604, 828, 2420, 8, 198, 220, 220, 220, 2073, 361, 4197, 6624, 1058, 11147, 198, 220, 220, 220, 220, 220, 220, 220, 9647, 796, 24291, 7, 5239, 737, 86, 1343, 604, 198, 220, 220, 220, 220, 220, 220, 220, 9647, 796, 9647, 1279, 604, 5633, 604, 1058, 9647, 198, 220, 220, 220, 886, 628, 220, 220, 220, 6103, 796, 18810, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 796, 366, 30342, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 796, 3670, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 62, 7635, 796, 3670, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3670, 62, 3137, 1958, 796, 3670, 62, 3137, 1958, 11, 198, 220, 220, 220, 220, 220, 220, 220, 37960, 796, 37960, 11, 198, 220, 220, 220, 220, 220, 220, 220, 37960, 62, 7635, 796, 37960, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 220, 220, 37960, 62, 3137, 1958, 796, 37960, 62, 3137, 1958, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12051, 796, 12051, 11, 198, 220, 220, 220, 220, 220, 220, 220, 9647, 796, 9647, 11, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 1441, 8255, 14253, 7, 35330, 13, 325, 11726, 11, 6103, 13, 1326, 5015, 8, 198, 198, 437, 198, 198, 8206, 14253, 7, 5239, 82, 986, 26, 479, 86, 22046, 23029, 796, 8255, 14253, 7, 22179, 62, 6615, 7, 5239, 82, 1776, 479, 86, 22046, 23029, 198, 198, 437, 198 ]
2.566088
2,996
# Aliev_Panfilov_2D_compute_v4.jl # ================================ u.p. 5.8.21 / 5.9.21 # Aliev-Panfilov model # with ODE-solver # compute a save solution using DrWatson @quickactivate "NonlinearDynamicsTextbook" include(srcdir("style.jl")) using PyPlot, OrdinaryDiffEq using JLD using Random using Statistics using Logging: global_logger using TerminalLoggers: TerminalLogger global_logger(TerminalLogger()) function Aliev_Panfilov_ODE(du,u,p,t) d, k, a, epsilon, mu1, mu2, hsq6 = p uu = u[1,:,:] vv = u[2,:,:] uuu=[ [uu[2,2] uu[2,:]' uu[2,end-1] ] ; [ uu[:,2] uu uu[:,end-1] ] ; [ uu[end-1,2] uu[end-1,:]' uu[end-1,end-1] ] ] # 9-point stencil diff_term = d .* ( 4 .* (uuu[2:end-1,1:end-2] .+ uuu[2:end-1,3:end] .+ uuu[3:end,2:end-1] .+ uuu[1:end-2,2:end-1] ) .+ uuu[3:end,3:end] .+ uuu[3:end,1:end-2] .+ uuu[1:end-2,3:end] .+ uuu[1:end-2,1:end-2] .- 20 .*uu ) ./ hsq6 du[1,:,:] = k .* uu .*(1 .-uu).*(uu.-a) .- uu.*vv .+ diff_term du[2,:,:] = (epsilon .+ (mu1 .* vv) ./ (mu2 .+ uu)) .* (.- vv .- k .* uu .* (uu .- a .- 1 ) ) end @time begin # new simulation starting from initial conditions # ----------------------------------------------- L = 100 # size of domain N = 400 # no. of grid points h = L/(N-1) # spatial steps size hsq6 = 6*h*h # parameters k = 8 a = 0.05 mu1 = 0.2 mu2 = 0.3 d = 0.2 # diffusion epsilon = 0.002 # initial values # --------------- uu = zeros(N,N) # u steady state vv = zeros(N,N) # v steady state uu[1:end,1:20] .= 0.9 # N = 400 # uu[1:end,1:10] .= 0.9 # N = 200 u0 = zeros(2,N,N) u0[1,:,:] = uu u0[2,:,:] = vv p = d, k, a, epsilon, mu1, mu2, hsq6 saveat = (0.0, 120.0) # [0. , 20. , 120.] tspan = (0., saveat[end]) prob = ODEProblem(Aliev_Panfilov_ODE, u0, tspan, p) sol = solve(prob, Tsit5(), reltol=1e-6, abstol=1e-6, saveat = saveat, progress = true, progress_steps = 100, ) uout = sol.u # perturbation # ------------- ures = uout[end] uu = ures[1,:,:] vv = ures[2,:,:] # uu[1:30,:] .= 1. # N = 200 uu[1:60,:] .= 1. # N = 400 u0[1,:,:] = uu u0[2,:,:] = vv # evolve forward # -------------- # saveat = [700. , 710., 720., 730., 740., 750., 760., 770., 780.] # tspan = (0., saveat[end]) saveat = [600] tspan = (0., saveat[end]) prob = ODEProblem(Aliev_Panfilov_ODE, u0, tspan, p) sol = solve(prob, Tsit5(), reltol=1e-6, abstol=1e-6, saveat = saveat, progress = true, progress_steps = 100, ) # compute snapshots # ----------------- uout = sol.u ures = uout[end] saveat = 1.0 tspan = (0., 200) prob = ODEProblem(Aliev_Panfilov_ODE, ures, tspan, p) sol = solve(prob, Tsit5(), reltol=1e-6, abstol=1e-6, saveat = saveat, progress = true, progress_steps = 100, ) end # @time tvec = sol.t uout = sol.u nts = length(tvec) # plot # ---- fig = plt.figure("AP_2D",figsize=(figx,2*figy)) iplt = 0 for n = 1:9 iplt = iplt + 1 ures = uout[n] subplot(3,3,iplt) im = plt.pcolormesh(ures[1,:,:],cmap = "inferno") # "gnuplot" ) #"inferno") ax = gca() ax.set_xticks([]) ax.set_yticks([]) plt.title(L"t = "*string(floor(Int,tvec[n])), fontsize = 24) end fig.tight_layout(pad=0.3) path = datadir("Aliev_Panfilov_snapshots.jld") # save(path, "d", d, "k", k, "a", a, "epsilon", epsilon, "mu1", mu1, "mu2", mu2, "L", L, "N", N, "tvec", tvec, "uout", uout)
[ 2, 978, 11203, 62, 15730, 10379, 709, 62, 17, 35, 62, 5589, 1133, 62, 85, 19, 13, 20362, 198, 2, 36658, 25609, 18604, 220, 220, 334, 13, 79, 13, 642, 13, 23, 13, 2481, 220, 1220, 642, 13, 24, 13, 2481, 198, 198, 2, 978, 11203, 12, 15730, 10379, 709, 2746, 198, 2, 351, 440, 7206, 12, 82, 14375, 220, 198, 2, 24061, 257, 3613, 4610, 198, 198, 3500, 1583, 54, 13506, 198, 31, 24209, 39022, 366, 15419, 29127, 35, 4989, 873, 8206, 2070, 1, 198, 17256, 7, 10677, 15908, 7203, 7635, 13, 20362, 48774, 198, 3500, 9485, 43328, 11, 14230, 3219, 28813, 36, 80, 198, 3500, 449, 11163, 198, 3500, 14534, 198, 3500, 14370, 198, 3500, 5972, 2667, 25, 3298, 62, 6404, 1362, 198, 3500, 24523, 11187, 5355, 25, 24523, 11187, 1362, 198, 20541, 62, 6404, 1362, 7, 44798, 282, 11187, 1362, 28955, 198, 198, 8818, 978, 11203, 62, 15730, 10379, 709, 62, 16820, 7, 646, 11, 84, 11, 79, 11, 83, 8, 198, 220, 220, 220, 288, 11, 479, 11, 257, 11, 304, 862, 33576, 11, 38779, 16, 11, 38779, 17, 11, 289, 31166, 21, 220, 796, 279, 628, 220, 220, 220, 334, 84, 796, 334, 58, 16, 11, 45299, 47715, 198, 220, 220, 220, 410, 85, 796, 334, 58, 17, 11, 45299, 47715, 198, 220, 220, 220, 334, 12303, 41888, 685, 12303, 58, 17, 11, 17, 60, 334, 84, 58, 17, 11, 47715, 6, 334, 84, 58, 17, 11, 437, 12, 16, 60, 2361, 2162, 685, 334, 84, 58, 45299, 17, 60, 334, 84, 334, 84, 58, 45299, 437, 12, 16, 60, 2361, 2162, 685, 334, 84, 58, 437, 12, 16, 11, 17, 60, 334, 84, 58, 437, 12, 16, 11, 47715, 6, 334, 84, 58, 437, 12, 16, 11, 437, 12, 16, 60, 2361, 2361, 628, 220, 220, 220, 1303, 860, 12, 4122, 45219, 2856, 198, 220, 220, 220, 814, 62, 4354, 796, 288, 764, 9, 357, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 604, 764, 9, 357, 12303, 84, 58, 17, 25, 437, 12, 16, 11, 16, 25, 437, 12, 17, 60, 764, 10, 334, 12303, 58, 17, 25, 437, 12, 16, 11, 18, 25, 437, 60, 764, 10, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 12303, 58, 18, 25, 437, 11, 17, 25, 437, 12, 16, 60, 764, 10, 334, 12303, 58, 16, 25, 437, 12, 17, 11, 17, 25, 437, 12, 16, 60, 1267, 764, 10, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 12303, 58, 18, 25, 437, 11, 18, 25, 437, 60, 764, 10, 334, 12303, 58, 18, 25, 437, 11, 16, 25, 437, 12, 17, 60, 764, 10, 334, 12303, 58, 16, 25, 437, 12, 17, 11, 18, 25, 437, 60, 764, 10, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 12303, 58, 16, 25, 437, 12, 17, 11, 16, 25, 437, 12, 17, 60, 764, 12, 1160, 764, 9, 12303, 220, 1267, 220, 24457, 289, 31166, 21, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 7043, 58, 16, 11, 45299, 47715, 796, 479, 764, 9, 334, 84, 764, 9, 7, 16, 764, 12, 12303, 737, 9, 7, 12303, 7874, 64, 8, 764, 12, 334, 84, 15885, 25093, 764, 10, 814, 62, 4354, 220, 198, 220, 220, 220, 7043, 58, 17, 11, 45299, 47715, 796, 357, 538, 18217, 261, 764, 10, 357, 30300, 16, 764, 9, 410, 85, 8, 24457, 357, 30300, 17, 764, 10, 334, 84, 4008, 220, 764, 9, 357, 7874, 410, 85, 764, 12, 479, 764, 9, 334, 84, 764, 9, 357, 12303, 764, 12, 257, 764, 12, 352, 1267, 1267, 198, 437, 198, 198, 31, 2435, 2221, 628, 198, 2, 649, 18640, 3599, 422, 4238, 3403, 198, 2, 20368, 24305, 198, 43, 796, 1802, 220, 1303, 220, 2546, 286, 7386, 198, 45, 796, 7337, 220, 1303, 220, 645, 13, 286, 10706, 2173, 198, 71, 796, 406, 29006, 45, 12, 16, 8, 1303, 21739, 4831, 2546, 198, 11994, 80, 21, 796, 718, 9, 71, 9, 71, 198, 198, 2, 10007, 198, 74, 796, 807, 198, 64, 796, 657, 13, 2713, 220, 220, 220, 220, 198, 30300, 16, 796, 657, 13, 17, 220, 220, 220, 198, 30300, 17, 796, 657, 13, 18, 198, 67, 796, 657, 13, 17, 220, 220, 1303, 220, 44258, 198, 538, 18217, 261, 796, 657, 13, 21601, 220, 198, 198, 2, 4238, 3815, 198, 2, 220, 24305, 198, 12303, 796, 1976, 27498, 7, 45, 11, 45, 8, 220, 1303, 220, 334, 11831, 1181, 198, 25093, 796, 1976, 27498, 7, 45, 11, 45, 8, 220, 1303, 220, 410, 11831, 1181, 198, 12303, 58, 16, 25, 437, 11, 16, 25, 1238, 60, 764, 28, 657, 13, 24, 220, 220, 1303, 399, 796, 7337, 198, 2, 334, 84, 58, 16, 25, 437, 11, 16, 25, 940, 60, 764, 28, 657, 13, 24, 220, 220, 1303, 399, 796, 939, 628, 198, 84, 15, 796, 1976, 27498, 7, 17, 11, 45, 11, 45, 8, 198, 84, 15, 58, 16, 11, 45299, 47715, 796, 334, 84, 198, 84, 15, 58, 17, 11, 45299, 47715, 796, 410, 85, 220, 198, 198, 79, 796, 288, 11, 479, 11, 257, 11, 304, 862, 33576, 11, 38779, 16, 11, 38779, 17, 11, 289, 31166, 21, 220, 198, 21928, 265, 796, 357, 15, 13, 15, 11, 7982, 13, 15, 8, 1303, 685, 15, 13, 837, 1160, 13, 837, 7982, 8183, 198, 912, 6839, 796, 357, 15, 1539, 3613, 265, 58, 437, 12962, 198, 198, 1676, 65, 796, 440, 7206, 40781, 7, 2348, 11203, 62, 15730, 10379, 709, 62, 16820, 11, 334, 15, 11, 256, 12626, 11, 279, 8, 198, 34453, 796, 8494, 7, 1676, 65, 11, 13146, 270, 20, 22784, 823, 83, 349, 28, 16, 68, 12, 21, 11, 16552, 349, 28, 16, 68, 12, 21, 11, 3613, 265, 796, 3613, 265, 11, 198, 33723, 796, 2081, 11, 4371, 62, 20214, 796, 1802, 11, 198, 8, 198, 84, 448, 796, 1540, 13, 84, 198, 198, 2, 22146, 5945, 341, 198, 2, 220, 32501, 198, 942, 796, 334, 448, 58, 437, 60, 198, 12303, 796, 334, 411, 58, 16, 11, 45299, 47715, 198, 25093, 796, 334, 411, 58, 17, 11, 45299, 47715, 198, 198, 2, 334, 84, 58, 16, 25, 1270, 11, 47715, 764, 28, 352, 13, 220, 1303, 399, 796, 939, 198, 12303, 58, 16, 25, 1899, 11, 47715, 764, 28, 352, 13, 220, 1303, 399, 796, 7337, 198, 198, 84, 15, 58, 16, 11, 45299, 47715, 796, 334, 84, 198, 84, 15, 58, 17, 11, 45299, 47715, 796, 410, 85, 220, 220, 220, 198, 198, 2, 18101, 2651, 198, 2, 220, 26171, 198, 2, 3613, 265, 796, 685, 9879, 13, 837, 767, 940, 1539, 26250, 1539, 767, 1270, 1539, 767, 1821, 1539, 19683, 1539, 48284, 1539, 44586, 1539, 41287, 8183, 198, 2, 256, 12626, 796, 357, 15, 1539, 3613, 265, 58, 437, 12962, 198, 21928, 265, 796, 685, 8054, 60, 198, 912, 6839, 796, 357, 15, 1539, 3613, 265, 58, 437, 12962, 198, 220, 220, 220, 220, 198, 1676, 65, 796, 440, 7206, 40781, 7, 2348, 11203, 62, 15730, 10379, 709, 62, 16820, 11, 334, 15, 11, 256, 12626, 11, 279, 8, 198, 34453, 796, 8494, 7, 1676, 65, 11, 13146, 270, 20, 22784, 823, 83, 349, 28, 16, 68, 12, 21, 11, 16552, 349, 28, 16, 68, 12, 21, 11, 3613, 265, 796, 3613, 265, 11, 198, 33723, 796, 2081, 11, 4371, 62, 20214, 796, 1802, 11, 198, 8, 198, 198, 2, 24061, 47787, 198, 2, 34400, 12, 198, 84, 448, 796, 1540, 13, 84, 198, 942, 796, 334, 448, 58, 437, 60, 198, 198, 21928, 265, 796, 352, 13, 15, 198, 912, 6839, 796, 357, 15, 1539, 939, 8, 198, 220, 220, 220, 220, 198, 1676, 65, 796, 440, 7206, 40781, 7, 2348, 11203, 62, 15730, 10379, 709, 62, 16820, 11, 334, 411, 11, 256, 12626, 11, 279, 8, 198, 34453, 796, 8494, 7, 1676, 65, 11, 13146, 270, 20, 22784, 823, 83, 349, 28, 16, 68, 12, 21, 11, 16552, 349, 28, 16, 68, 12, 21, 11, 3613, 265, 796, 3613, 265, 11, 198, 33723, 796, 2081, 11, 4371, 62, 20214, 796, 1802, 11, 198, 8, 628, 198, 437, 1303, 2488, 2435, 198, 198, 83, 35138, 796, 1540, 13, 83, 198, 84, 448, 796, 1540, 13, 84, 198, 429, 82, 796, 4129, 7, 83, 35138, 8, 198, 198, 2, 7110, 198, 2, 13498, 198, 5647, 796, 458, 83, 13, 26875, 7203, 2969, 62, 17, 35, 1600, 5647, 7857, 16193, 5647, 87, 11, 17, 9, 5647, 88, 4008, 198, 24705, 83, 796, 657, 198, 198, 1640, 299, 796, 352, 25, 24, 198, 220, 220, 220, 1312, 489, 83, 796, 1312, 489, 83, 1343, 352, 198, 220, 220, 220, 334, 411, 796, 334, 448, 58, 77, 60, 198, 220, 220, 220, 850, 29487, 7, 18, 11, 18, 11, 24705, 83, 8, 198, 220, 220, 220, 545, 796, 458, 83, 13, 79, 4033, 579, 5069, 7, 942, 58, 16, 11, 45299, 25, 4357, 66, 8899, 796, 366, 10745, 24100, 4943, 220, 1303, 366, 41791, 29487, 1, 1267, 1303, 1, 10745, 24100, 4943, 628, 220, 220, 220, 7877, 796, 308, 6888, 3419, 198, 220, 220, 220, 7877, 13, 2617, 62, 742, 3378, 26933, 12962, 220, 198, 220, 220, 220, 7877, 13, 2617, 62, 20760, 3378, 26933, 12962, 220, 628, 220, 220, 220, 458, 83, 13, 7839, 7, 43, 1, 83, 796, 366, 9, 8841, 7, 28300, 7, 5317, 11, 83, 35138, 58, 77, 12962, 828, 10369, 7857, 796, 1987, 8, 198, 437, 198, 198, 5647, 13, 33464, 62, 39786, 7, 15636, 28, 15, 13, 18, 8, 198, 6978, 796, 4818, 324, 343, 7203, 2348, 11203, 62, 15730, 10379, 709, 62, 45380, 20910, 13, 73, 335, 4943, 198, 2, 3613, 7, 6978, 11, 366, 67, 1600, 288, 11, 366, 74, 1600, 479, 11, 366, 64, 1600, 257, 11, 366, 538, 18217, 261, 1600, 304, 862, 33576, 11, 366, 30300, 16, 1600, 38779, 16, 11, 366, 30300, 17, 1600, 38779, 17, 11, 366, 43, 1600, 406, 11, 366, 45, 1600, 399, 11, 366, 83, 35138, 1600, 256, 35138, 11, 366, 84, 448, 1600, 334, 448, 8, 628 ]
1.96875
1,728
#============================================================================ I haven't decided yet whether I actually want to use this ============================================================================# mutable struct GroupedDataHandler{T} <: AbstractDH{T} df::DataTable colsInput::Vector{Symbol} colsOutput::Vector{Symbol} colsClass::Vector{Symbol} colsNormalize::Vector{Symbol} keys::Vector mu::Vector{T} norm::Vector{T} userange::Bool dfTrain::DataTable dfTest::DataTable dfTrain_grp::GroupedDataTable dfTest_grp::GroupedDataTable X_train::Dict{Any,Array{T}} y_train::Dict{Any,Array{T}} # TODO we need a way of getting these back into the dataframe X_test::Dict{Any,Array{T}} y_test::Dict{Any,Array{T}} # this is where predictions are kept yhat::Array{T} yhat_train::Array{T} function GroupedDataHandler{T}(df::DataTable, class_cols::Vector{Symbol}; testfrac::AbstractFloat=0.0, shuffle::Bool=false, input_cols::Vector{Symbol}=Symbol[], output_cols::Vector{Symbol}=Symbol[], normalize_cols::Vector{Symbol}=Symbol[], assign::Bool=false, userange::Bool=false, compute_keys::Bool=true ) where T if sum(!complete_cases(df)) ≠ 0 throw(ArgumentError("GroupedDataHandler only accepts complete dataframes.")) end ndf = copy(df) # TODO convert to all non-nullable arrays!!! o = new(ndf, input_cols, output_cols, class_cols, normalize_cols) o.userange = userange compute_keys && keys!(o) split!(o, testfrac, shuffle=shuffle, assign=assign) computeNormalizeParameters!(o, dataset=:dfTrain) if canNormalize(o) normalizeTrain!(o) size(o.dfTest,1) > 0 && normalizeTest!(o) end o end end export GroupedDataHandler function keytuple(df::AbstractDataTable, cols::Vector{Symbol}, idx::Integer=1) tuple(convert(Array{Any}, df[idx, cols])...) end export keytuple function keys{T}(gdh::GroupedDataHandler{T}) if isdefined(gdh, :keys) return gdh.keys end o = mapreduce(vcat, groupby(gdh.df, gdh.colsClass)) do sdf [keytuple(sdf, gdh.colsClass)] end o end keys!{T}(gdh::GroupedDataHandler{T}) = (gdh.keys = keys(gdh)) export keys, keys! function assignTrain!{T}(gdh::GroupedDataHandler{T}) if isempty(gdh.dfTrain) throw(ErrorException("Attempting to assign data from empty training dataframe.")) end gdh.dfTrain_grp = groupby(gdh.dfTrain, gdh.colsClass) Xdict, ydict = getMatrixDict(T, gdh.dfTrain_grp, gdh.colsClass, gdh.colsInput, gdh.colsOutput) gdh.X_train = Xdict gdh.y_train = ydict Xdict, ydict end function assignTest!{T}(gdh::GroupedDataHandler{T}) if isempty(gdh.dfTest) throw(ErrorException("Attempting to assign data from empty test dataframe.")) end gdh.dfTest_grp = groupby(gdh.dfTest, gdh.colsClass) Xdict, ydict = getMatrixDict(T, gdh.dfTest_grp, gdh.colsClass, gdh.colsInput, gdh.colsOutput) gdh.X_test = Xdict gdh.y_test = ydict Xdict, ydict end function getTrainData{T}(gdh::GroupedDataHandler{T}; flatten::Bool=false) X, y = gdh.X_train, gdh.y_train if flatten y = Dict{eltype(keys(y)), Vector{T}}() for (k, v) ∈ y @assert size(v,2) == 1 "Attempted to flatten rank-2 array." y[k] = squeeze(v, 2) end end X, y end function getTestData{T}(gdh::GroupedDataHandler{T}; flatten::Bool=false) X, y = gdh.X_test, gdh.y_test if flatten y = Dict{eltype(keys(y)), Vector{T}}() for (k, v) ∈ y @assert size(v,2) == 1 "Attempted to flatten rank-2 array." y[k] = squeeze(v, 2) end end X, y end """ _fix_flattened_matrix_dict(T, dict) Takes a dictionary with matrix or vector values and, if they are vectors, converts them to `Matrix`s with a single columns. """ function _fix_flattened_matrix_dict{T,K,V<:Vector}(::Type{T}, dict::Dict{K,V}) dict_new = Dict{eltype(keys(dict)), Matrix{T}}() for (k, v) ∈ dict dict_new[k] = reshape(v, (length(v), 1)) end dict = dict_new end _fix_flattened_matrix_dict{T,K,V<:Matrix}(::Type{T}, dict::Dict{K,V}) = dict """ _replace_values_into_grouped(gp, dict, T, new_col_names, cols) Takes a dict of matrices and places them into a grouped dataframe. The matrices must have the same number of rows as their respective groups in the grouped dataframe `gp`. A new dataframe will be output with rows named according to `new_col_names` with columns corresponding to the columns of matrices in `dict`, and rows corresponding to the rows of the original dataframe. The keys of `dict` should be tuples like those produced by `keytuple`. The type parameter `T` denotes the type of the matrices contained in `dict`. Note that the implmentation on this depends on the "private" members of `GroupedDataTable`. """ function _replace_values_into_grouped{T}(gp::GroupedDataTable, dict::Dict, ::Type{T}, new_col_names::Vector{Symbol}, keycols::Vector{Symbol}) newcols = DataTable([T for n ∈ new_col_names], new_col_names, size(gp.parent, 1)) for (start, stop) ∈ zip(gp.starts, gp.ends) key = keytuple(gp.parent, keycols, gp.idx[start]) y = get(dict, key, NullableArray(T, length(start:stop), length(new_col_names))) for (i, idx) ∈ enumerate(gp.idx[start:stop]) for j ∈ 1:length(new_col_names) newcols[idx, j] = y[i, j] end end end newcols end function getTestAnalysisData{T}(gdh::GroupedDataHandler{T}, ŷ::Dict; names::Vector{Symbol}=Symbol[], squared_error::Bool=true) df = copy(gdh.dfTest) ŷ = _fix_flattened_matrix_dict(T, ŷ) if length(names) == 0 names = getDefaultTestAnalysisColumnNames(gdh) end newcols = _replace_values_into_grouped(gdh.dfTest_grp, ŷ, T, names, gdh.colsClass) df = hcat(df, newcols) # note that it's now possible to have nulls for (idx, name) ∈ enumerate(names) orig_col = df[gdh.colsOutput[idx]] err = df[name] - orig_col df[Symbol(string(name, "_Error"))] = err if squared_error # they haven't written the ^ operator for NullableArrays df[Symbol(string(name, "_Error²"))] = err .* err end end df end """ getGroupedTestAnalysisData(data, keycols[; names=[], squared_error=true]) getGroupedTestAnalysisData(dh, data, keycols[; names=[], squared_error=true]) getGroupedTestAnalysisData(gdh, data[; names=[], squared_error=true]) getGroupedTestAnalysisData(gdh, ŷ[; names=[], squared_error=true]) Groups the output of `getTestAnalysisData` by the columns `keycols`. This is particularly useful for `GroupedDataHandler` where a typical use case is applying different estimators to different subsets of the data. One can supply the output `getTestAnalysisData` as `data` or pass a `GroupedDataHandler` together with an output dictionary `ŷ`, in which case all the tables will be generated for you. """ function getGroupedTestAnalysisData(data::DataTable, keycols::Vector{Symbol}, names::Vector{Symbol}; squared_error::Bool=true) by(data, keycols) do sdf agg = DataTable() if isempty(sdf) return agg end agg[:NDataPoints] = size(sdf,1) for name ∈ names errname = Symbol(string(name, "_Error")) agg[Symbol(string(errname, "_mean"))] = mean(dropnull(sdf[errname])) agg[Symbol(string(errname, "_std"))] = std(dropnull(sdf[errname])) if squared_error err2name = Symbol(string(name, "_Error²")) agg[Symbol(string(err2name, "_mean"))] = mean(dropnull(sdf[err2name])) agg[Symbol(string(err2name, "_std"))] = std(dropnull(sdf[err2name])) end end agg end end function getGroupedTestAnalysisData(dh::AbstractDH, data::DataTable, keycols::Vector{Symbol}; names::Vector{Symbol}=Symbol[], squared_error::Bool=true) if length(names) == 0 names = getDefaultTestAnalysisColumnNames(dh) end getGroupedTestAnalysisData(data, keycols, names, squared_error=squared_error) end function getGroupedTestAnalysisData(gdh::GroupedDataHandler, data::DataTable; names::Vector{Symbol}=Symbol[], squared_error::Bool=true) getGroupedTestAnalysisData(gdh, data, gdh.colsClass, names=names, squared_error=squared_error) end function getGroupedTestAnalysisData(gdh::GroupedDataHandler, ŷ::Dict; names::Vector{Symbol}=Symbol[], squared_error::Bool=true) if length(names) == 0 names = getDefaultTestAnalysisColumnNames(gdh) end data = getTestAnalysisData(gdh, ŷ, names=names, squared_error=squared_error) getGroupedTestAnalysisData(data, gdh.colsClass, names, squared_error=squared_error) end export getGroupedTestAnalysisData
[ 2, 23926, 25609, 198, 40, 4398, 470, 3066, 1865, 1771, 314, 1682, 765, 284, 779, 428, 198, 23926, 25609, 2, 628, 198, 198, 76, 18187, 2878, 4912, 276, 6601, 25060, 90, 51, 92, 1279, 25, 27741, 41473, 90, 51, 92, 628, 220, 220, 220, 47764, 3712, 6601, 10962, 628, 220, 220, 220, 951, 82, 20560, 3712, 38469, 90, 13940, 23650, 92, 198, 220, 220, 220, 951, 82, 26410, 3712, 38469, 90, 13940, 23650, 92, 628, 220, 220, 220, 951, 82, 9487, 3712, 38469, 90, 13940, 23650, 92, 628, 220, 220, 220, 951, 82, 26447, 1096, 3712, 38469, 90, 13940, 23650, 92, 628, 220, 220, 220, 8251, 3712, 38469, 628, 220, 220, 220, 38779, 3712, 38469, 90, 51, 92, 198, 220, 220, 220, 2593, 3712, 38469, 90, 51, 92, 198, 220, 220, 220, 2836, 858, 3712, 33, 970, 628, 220, 220, 220, 47764, 44077, 3712, 6601, 10962, 198, 220, 220, 220, 47764, 14402, 3712, 6601, 10962, 628, 220, 220, 220, 47764, 44077, 62, 2164, 79, 3712, 13247, 276, 6601, 10962, 198, 220, 220, 220, 47764, 14402, 62, 2164, 79, 3712, 13247, 276, 6601, 10962, 628, 220, 220, 220, 1395, 62, 27432, 3712, 35, 713, 90, 7149, 11, 19182, 90, 51, 11709, 198, 220, 220, 220, 331, 62, 27432, 3712, 35, 713, 90, 7149, 11, 19182, 90, 51, 11709, 198, 220, 220, 220, 1303, 16926, 46, 356, 761, 257, 835, 286, 1972, 777, 736, 656, 262, 1366, 14535, 198, 220, 220, 220, 1395, 62, 9288, 3712, 35, 713, 90, 7149, 11, 19182, 90, 51, 11709, 198, 220, 220, 220, 331, 62, 9288, 3712, 35, 713, 90, 7149, 11, 19182, 90, 51, 11709, 628, 220, 220, 220, 1303, 428, 318, 810, 16277, 389, 4030, 198, 220, 220, 220, 331, 5183, 3712, 19182, 90, 51, 92, 198, 220, 220, 220, 331, 5183, 62, 27432, 3712, 19182, 90, 51, 92, 628, 220, 220, 220, 2163, 4912, 276, 6601, 25060, 90, 51, 92, 7, 7568, 3712, 6601, 10962, 11, 1398, 62, 4033, 82, 3712, 38469, 90, 13940, 23650, 19629, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1332, 31944, 3712, 23839, 43879, 28, 15, 13, 15, 11, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36273, 3712, 33, 970, 28, 9562, 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, 5128, 62, 4033, 82, 3712, 38469, 90, 13940, 23650, 92, 28, 13940, 23650, 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, 220, 220, 5072, 62, 4033, 82, 3712, 38469, 90, 13940, 23650, 92, 28, 13940, 23650, 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, 220, 220, 3487, 1096, 62, 4033, 82, 3712, 38469, 90, 13940, 23650, 92, 28, 13940, 23650, 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, 220, 220, 8333, 3712, 33, 970, 28, 9562, 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, 2836, 858, 3712, 33, 970, 28, 9562, 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, 24061, 62, 13083, 3712, 33, 970, 28, 7942, 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, 1267, 810, 220, 309, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2160, 7, 0, 20751, 62, 33964, 7, 7568, 4008, 15139, 254, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 28100, 1713, 12331, 7203, 13247, 276, 6601, 25060, 691, 18178, 1844, 1366, 37805, 526, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 299, 7568, 796, 4866, 7, 7568, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 16926, 46, 10385, 284, 477, 1729, 12, 8423, 540, 26515, 10185, 198, 220, 220, 220, 220, 220, 220, 220, 267, 796, 649, 7, 358, 69, 11, 5128, 62, 4033, 82, 11, 5072, 62, 4033, 82, 11, 1398, 62, 4033, 82, 11, 3487, 1096, 62, 4033, 82, 8, 220, 198, 220, 220, 220, 220, 220, 220, 220, 267, 13, 7220, 858, 796, 2836, 858, 198, 220, 220, 220, 220, 220, 220, 220, 24061, 62, 13083, 11405, 8251, 0, 7, 78, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6626, 0, 7, 78, 11, 1332, 31944, 11, 36273, 28, 1477, 18137, 11, 8333, 28, 562, 570, 8, 198, 220, 220, 220, 220, 220, 220, 220, 24061, 26447, 1096, 48944, 0, 7, 78, 11, 27039, 28, 25, 7568, 44077, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 460, 26447, 1096, 7, 78, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3487, 1096, 44077, 0, 7, 78, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2546, 7, 78, 13, 7568, 14402, 11, 16, 8, 1875, 657, 11405, 3487, 1096, 14402, 0, 7, 78, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 267, 198, 220, 220, 220, 886, 198, 437, 198, 39344, 4912, 276, 6601, 25060, 628, 198, 8818, 1994, 83, 29291, 7, 7568, 3712, 23839, 6601, 10962, 11, 951, 82, 3712, 38469, 90, 13940, 23650, 5512, 4686, 87, 3712, 46541, 28, 16, 8, 198, 220, 220, 220, 46545, 7, 1102, 1851, 7, 19182, 90, 7149, 5512, 47764, 58, 312, 87, 11, 951, 82, 12962, 23029, 198, 437, 198, 39344, 1994, 83, 29291, 628, 198, 8818, 8251, 90, 51, 92, 7, 21287, 71, 3712, 13247, 276, 6601, 25060, 90, 51, 30072, 198, 220, 220, 220, 611, 318, 23211, 7, 21287, 71, 11, 1058, 13083, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 308, 34985, 13, 13083, 198, 220, 220, 220, 886, 198, 220, 220, 220, 267, 796, 3975, 445, 7234, 7, 85, 9246, 11, 1448, 1525, 7, 21287, 71, 13, 7568, 11, 308, 34985, 13, 4033, 82, 9487, 4008, 466, 264, 7568, 198, 220, 220, 220, 220, 220, 220, 220, 685, 2539, 83, 29291, 7, 82, 7568, 11, 308, 34985, 13, 4033, 82, 9487, 15437, 198, 220, 220, 220, 886, 198, 220, 220, 220, 267, 198, 437, 198, 198, 13083, 0, 90, 51, 92, 7, 21287, 71, 3712, 13247, 276, 6601, 25060, 90, 51, 30072, 796, 357, 21287, 71, 13, 13083, 796, 8251, 7, 21287, 71, 4008, 198, 39344, 8251, 11, 8251, 0, 628, 198, 8818, 8333, 44077, 0, 90, 51, 92, 7, 21287, 71, 3712, 13247, 276, 6601, 25060, 90, 51, 30072, 198, 220, 220, 220, 611, 318, 28920, 7, 21287, 71, 13, 7568, 44077, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 12331, 16922, 7203, 37177, 278, 284, 8333, 1366, 422, 6565, 3047, 1366, 14535, 526, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 308, 34985, 13, 7568, 44077, 62, 2164, 79, 796, 1448, 1525, 7, 21287, 71, 13, 7568, 44077, 11, 308, 34985, 13, 4033, 82, 9487, 8, 198, 220, 220, 220, 1395, 11600, 11, 331, 11600, 796, 651, 46912, 35, 713, 7, 51, 11, 308, 34985, 13, 7568, 44077, 62, 2164, 79, 11, 308, 34985, 13, 4033, 82, 9487, 11, 308, 34985, 13, 4033, 82, 20560, 11, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 34985, 13, 4033, 82, 26410, 8, 198, 220, 220, 220, 308, 34985, 13, 55, 62, 27432, 796, 1395, 11600, 198, 220, 220, 220, 308, 34985, 13, 88, 62, 27432, 796, 331, 11600, 198, 220, 220, 220, 1395, 11600, 11, 331, 11600, 198, 437, 628, 198, 8818, 8333, 14402, 0, 90, 51, 92, 7, 21287, 71, 3712, 13247, 276, 6601, 25060, 90, 51, 30072, 198, 220, 220, 220, 611, 318, 28920, 7, 21287, 71, 13, 7568, 14402, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3714, 7, 12331, 16922, 7203, 37177, 278, 284, 8333, 1366, 422, 6565, 1332, 1366, 14535, 526, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 308, 34985, 13, 7568, 14402, 62, 2164, 79, 796, 1448, 1525, 7, 21287, 71, 13, 7568, 14402, 11, 308, 34985, 13, 4033, 82, 9487, 8, 198, 220, 220, 220, 1395, 11600, 11, 331, 11600, 796, 651, 46912, 35, 713, 7, 51, 11, 308, 34985, 13, 7568, 14402, 62, 2164, 79, 11, 308, 34985, 13, 4033, 82, 9487, 11, 308, 34985, 13, 4033, 82, 20560, 11, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 34985, 13, 4033, 82, 26410, 8, 198, 220, 220, 220, 308, 34985, 13, 55, 62, 9288, 796, 1395, 11600, 198, 220, 220, 220, 308, 34985, 13, 88, 62, 9288, 796, 331, 11600, 198, 220, 220, 220, 1395, 11600, 11, 331, 11600, 198, 437, 628, 198, 8818, 651, 44077, 6601, 90, 51, 92, 7, 21287, 71, 3712, 13247, 276, 6601, 25060, 90, 51, 19629, 27172, 268, 3712, 33, 970, 28, 9562, 8, 198, 220, 220, 220, 1395, 11, 331, 796, 308, 34985, 13, 55, 62, 27432, 11, 308, 34985, 13, 88, 62, 27432, 198, 220, 220, 220, 611, 27172, 268, 198, 220, 220, 220, 220, 220, 220, 220, 331, 796, 360, 713, 90, 417, 4906, 7, 13083, 7, 88, 36911, 20650, 90, 51, 11709, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 74, 11, 410, 8, 18872, 230, 331, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 30493, 2546, 7, 85, 11, 17, 8, 6624, 352, 366, 37177, 276, 284, 27172, 268, 4279, 12, 17, 7177, 526, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 58, 74, 60, 796, 21229, 7, 85, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1395, 11, 331, 198, 437, 628, 198, 8818, 651, 14402, 6601, 90, 51, 92, 7, 21287, 71, 3712, 13247, 276, 6601, 25060, 90, 51, 19629, 27172, 268, 3712, 33, 970, 28, 9562, 8, 198, 220, 220, 220, 1395, 11, 331, 796, 308, 34985, 13, 55, 62, 9288, 11, 308, 34985, 13, 88, 62, 9288, 198, 220, 220, 220, 611, 27172, 268, 198, 220, 220, 220, 220, 220, 220, 220, 331, 796, 360, 713, 90, 417, 4906, 7, 13083, 7, 88, 36911, 20650, 90, 51, 11709, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 74, 11, 410, 8, 18872, 230, 331, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2488, 30493, 2546, 7, 85, 11, 17, 8, 6624, 352, 366, 37177, 276, 284, 27172, 268, 4279, 12, 17, 7177, 526, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 58, 74, 60, 796, 21229, 7, 85, 11, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1395, 11, 331, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 4808, 13049, 62, 2704, 1078, 2945, 62, 6759, 8609, 62, 11600, 7, 51, 11, 8633, 8, 198, 198, 51, 1124, 257, 22155, 351, 17593, 393, 15879, 3815, 290, 11, 611, 484, 389, 30104, 11, 26161, 606, 198, 1462, 4600, 46912, 63, 82, 351, 257, 2060, 15180, 13, 198, 37811, 198, 8818, 4808, 13049, 62, 2704, 1078, 2945, 62, 6759, 8609, 62, 11600, 90, 51, 11, 42, 11, 53, 27, 25, 38469, 92, 7, 3712, 6030, 90, 51, 5512, 8633, 3712, 35, 713, 90, 42, 11, 53, 30072, 198, 220, 220, 220, 8633, 62, 3605, 796, 360, 713, 90, 417, 4906, 7, 13083, 7, 11600, 36911, 24936, 90, 51, 11709, 3419, 198, 220, 220, 220, 329, 357, 74, 11, 410, 8, 18872, 230, 8633, 198, 220, 220, 220, 220, 220, 220, 220, 8633, 62, 3605, 58, 74, 60, 796, 27179, 1758, 7, 85, 11, 357, 13664, 7, 85, 828, 352, 4008, 198, 220, 220, 220, 886, 198, 220, 220, 220, 8633, 796, 8633, 62, 3605, 198, 437, 198, 62, 13049, 62, 2704, 1078, 2945, 62, 6759, 8609, 62, 11600, 90, 51, 11, 42, 11, 53, 27, 25, 46912, 92, 7, 3712, 6030, 90, 51, 5512, 8633, 3712, 35, 713, 90, 42, 11, 53, 30072, 796, 8633, 628, 198, 37811, 198, 220, 220, 220, 4808, 33491, 62, 27160, 62, 20424, 62, 8094, 276, 7, 31197, 11, 8633, 11, 309, 11, 649, 62, 4033, 62, 14933, 11, 951, 82, 8, 198, 198, 51, 1124, 257, 8633, 286, 2603, 45977, 290, 4113, 606, 656, 257, 32824, 1366, 14535, 13, 220, 383, 2603, 45977, 1276, 423, 198, 1169, 976, 1271, 286, 15274, 355, 511, 11756, 2628, 287, 262, 32824, 1366, 14535, 4600, 31197, 44646, 220, 220, 198, 32, 649, 1366, 14535, 481, 307, 5072, 351, 15274, 3706, 1864, 284, 4600, 3605, 62, 4033, 62, 14933, 63, 351, 15180, 198, 10215, 5546, 278, 284, 262, 15180, 286, 2603, 45977, 287, 4600, 11600, 47671, 290, 15274, 11188, 284, 262, 15274, 198, 1659, 262, 2656, 1366, 14535, 13, 220, 383, 8251, 286, 4600, 11600, 63, 815, 307, 12777, 2374, 588, 883, 4635, 416, 198, 63, 2539, 83, 29291, 44646, 220, 383, 2099, 11507, 4600, 51, 63, 43397, 262, 2099, 286, 262, 2603, 45977, 7763, 287, 4600, 11600, 44646, 198, 198, 6425, 326, 262, 4114, 14374, 319, 428, 8338, 319, 262, 366, 19734, 1, 1866, 286, 4600, 13247, 276, 6601, 10962, 44646, 198, 37811, 198, 8818, 4808, 33491, 62, 27160, 62, 20424, 62, 8094, 276, 90, 51, 92, 7, 31197, 3712, 13247, 276, 6601, 10962, 11, 8633, 3712, 35, 713, 11, 7904, 6030, 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, 220, 220, 220, 220, 220, 220, 220, 649, 62, 4033, 62, 14933, 3712, 38469, 90, 13940, 23650, 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, 1994, 4033, 82, 3712, 38469, 90, 13940, 23650, 30072, 198, 220, 220, 220, 649, 4033, 82, 796, 6060, 10962, 26933, 51, 329, 299, 18872, 230, 649, 62, 4033, 62, 14933, 4357, 649, 62, 4033, 62, 14933, 11, 2546, 7, 31197, 13, 8000, 11, 352, 4008, 198, 220, 220, 220, 329, 357, 9688, 11, 2245, 8, 18872, 230, 19974, 7, 31197, 13, 301, 5889, 11, 27809, 13, 2412, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1994, 796, 1994, 83, 29291, 7, 31197, 13, 8000, 11, 1994, 4033, 82, 11, 27809, 13, 312, 87, 58, 9688, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 331, 796, 651, 7, 11600, 11, 1994, 11, 35886, 540, 19182, 7, 51, 11, 4129, 7, 9688, 25, 11338, 828, 4129, 7, 3605, 62, 4033, 62, 14933, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 329, 357, 72, 11, 4686, 87, 8, 18872, 230, 27056, 378, 7, 31197, 13, 312, 87, 58, 9688, 25, 11338, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 474, 18872, 230, 352, 25, 13664, 7, 3605, 62, 4033, 62, 14933, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 4033, 82, 58, 312, 87, 11, 474, 60, 796, 331, 58, 72, 11, 474, 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, 198, 220, 220, 220, 649, 4033, 82, 198, 437, 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, 198, 198, 8818, 651, 14402, 32750, 6601, 90, 51, 92, 7, 21287, 71, 3712, 13247, 276, 6601, 25060, 90, 51, 5512, 331, 136, 224, 3712, 35, 713, 26, 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, 220, 220, 220, 220, 220, 220, 220, 220, 3891, 3712, 38469, 90, 13940, 23650, 92, 28, 13940, 23650, 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, 44345, 62, 18224, 3712, 33, 970, 28, 7942, 8, 198, 220, 220, 220, 47764, 796, 4866, 7, 21287, 71, 13, 7568, 14402, 8, 628, 220, 220, 220, 331, 136, 224, 796, 4808, 13049, 62, 2704, 1078, 2945, 62, 6759, 8609, 62, 11600, 7, 51, 11, 331, 136, 224, 8, 628, 220, 220, 220, 611, 4129, 7, 14933, 8, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 3891, 796, 651, 19463, 14402, 32750, 39470, 36690, 7, 21287, 71, 8, 198, 220, 220, 220, 886, 628, 220, 220, 220, 649, 4033, 82, 796, 4808, 33491, 62, 27160, 62, 20424, 62, 8094, 276, 7, 21287, 71, 13, 7568, 14402, 62, 2164, 79, 11, 331, 136, 224, 11, 309, 11, 3891, 11, 308, 34985, 13, 4033, 82, 9487, 8, 628, 220, 220, 220, 47764, 796, 289, 9246, 7, 7568, 11, 649, 4033, 82, 8, 628, 220, 220, 220, 1303, 3465, 326, 340, 338, 783, 1744, 284, 423, 9242, 82, 198, 220, 220, 220, 329, 357, 312, 87, 11, 1438, 8, 18872, 230, 27056, 378, 7, 14933, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1796, 62, 4033, 796, 47764, 58, 21287, 71, 13, 4033, 82, 26410, 58, 312, 87, 11907, 198, 220, 220, 220, 220, 220, 220, 220, 11454, 796, 47764, 58, 3672, 60, 532, 1796, 62, 4033, 198, 220, 220, 220, 220, 220, 220, 220, 47764, 58, 13940, 23650, 7, 8841, 7, 3672, 11, 45434, 12331, 48774, 60, 796, 11454, 198, 220, 220, 220, 220, 220, 220, 220, 611, 44345, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 484, 4398, 470, 3194, 262, 10563, 10088, 329, 35886, 540, 3163, 20477, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47764, 58, 13940, 23650, 7, 8841, 7, 3672, 11, 45434, 12331, 31185, 48774, 60, 796, 11454, 764, 9, 11454, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 628, 220, 220, 220, 47764, 198, 437, 628, 198, 37811, 198, 220, 220, 220, 651, 13247, 276, 14402, 32750, 6601, 7, 7890, 11, 1994, 4033, 82, 58, 26, 3891, 41888, 4357, 44345, 62, 18224, 28, 7942, 12962, 198, 220, 220, 220, 651, 13247, 276, 14402, 32750, 6601, 7, 34985, 11, 1366, 11, 1994, 4033, 82, 58, 26, 3891, 41888, 4357, 44345, 62, 18224, 28, 7942, 12962, 198, 220, 220, 220, 651, 13247, 276, 14402, 32750, 6601, 7, 21287, 71, 11, 1366, 58, 26, 3891, 41888, 4357, 44345, 62, 18224, 28, 7942, 12962, 198, 220, 220, 220, 651, 13247, 276, 14402, 32750, 6601, 7, 21287, 71, 11, 331, 136, 224, 58, 26, 3891, 41888, 4357, 44345, 62, 18224, 28, 7942, 12962, 198, 198, 38, 14459, 262, 5072, 286, 4600, 1136, 14402, 32750, 6601, 63, 416, 262, 15180, 4600, 2539, 4033, 82, 44646, 220, 770, 318, 3573, 198, 1904, 913, 329, 4600, 13247, 276, 6601, 25060, 63, 810, 257, 7226, 779, 1339, 318, 11524, 1180, 3959, 2024, 198, 1462, 1180, 6352, 1039, 286, 262, 1366, 13, 220, 1881, 460, 5127, 262, 5072, 4600, 1136, 14402, 32750, 6601, 63, 355, 198, 63, 7890, 63, 393, 1208, 257, 4600, 13247, 276, 6601, 25060, 63, 1978, 351, 281, 5072, 22155, 4600, 88, 136, 224, 47671, 287, 543, 198, 7442, 477, 262, 8893, 481, 307, 7560, 329, 345, 13, 198, 37811, 198, 8818, 651, 13247, 276, 14402, 32750, 6601, 7, 7890, 3712, 6601, 10962, 11, 1994, 4033, 82, 3712, 38469, 90, 13940, 23650, 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, 3891, 3712, 38469, 90, 13940, 23650, 19629, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44345, 62, 18224, 3712, 33, 970, 28, 7942, 8, 198, 220, 220, 220, 416, 7, 7890, 11, 1994, 4033, 82, 8, 466, 264, 7568, 198, 220, 220, 220, 220, 220, 220, 220, 4194, 796, 6060, 10962, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 318, 28920, 7, 82, 7568, 8, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 4194, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 4194, 58, 25, 45, 6601, 40710, 60, 796, 2546, 7, 82, 7568, 11, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1438, 18872, 230, 3891, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11454, 3672, 796, 38357, 7, 8841, 7, 3672, 11, 45434, 12331, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4194, 58, 13940, 23650, 7, 8841, 7, 8056, 3672, 11, 45434, 32604, 48774, 60, 796, 1612, 7, 14781, 8423, 7, 82, 7568, 58, 8056, 3672, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4194, 58, 13940, 23650, 7, 8841, 7, 8056, 3672, 11, 45434, 19282, 48774, 60, 796, 14367, 7, 14781, 8423, 7, 82, 7568, 58, 8056, 3672, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 44345, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11454, 17, 3672, 796, 38357, 7, 8841, 7, 3672, 11, 45434, 12331, 31185, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4194, 58, 13940, 23650, 7, 8841, 7, 8056, 17, 3672, 11, 45434, 32604, 48774, 60, 796, 1612, 7, 14781, 8423, 7, 82, 7568, 58, 8056, 17, 3672, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4194, 58, 13940, 23650, 7, 8841, 7, 8056, 17, 3672, 11, 45434, 19282, 48774, 60, 796, 14367, 7, 14781, 8423, 7, 82, 7568, 58, 8056, 17, 3672, 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, 220, 220, 220, 220, 4194, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 651, 13247, 276, 14402, 32750, 6601, 7, 34985, 3712, 23839, 41473, 11, 1366, 3712, 6601, 10962, 11, 1994, 4033, 82, 3712, 38469, 90, 13940, 23650, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3891, 3712, 38469, 90, 13940, 23650, 92, 28, 13940, 23650, 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, 220, 220, 220, 44345, 62, 18224, 3712, 33, 970, 28, 7942, 8, 198, 220, 220, 220, 611, 4129, 7, 14933, 8, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 3891, 796, 651, 19463, 14402, 32750, 39470, 36690, 7, 34985, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 651, 13247, 276, 14402, 32750, 6601, 7, 7890, 11, 1994, 4033, 82, 11, 3891, 11, 44345, 62, 18224, 28, 16485, 1144, 62, 18224, 8, 198, 437, 198, 198, 8818, 651, 13247, 276, 14402, 32750, 6601, 7, 21287, 71, 3712, 13247, 276, 6601, 25060, 11, 1366, 3712, 6601, 10962, 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, 220, 220, 220, 220, 220, 220, 3891, 3712, 38469, 90, 13940, 23650, 92, 28, 13940, 23650, 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, 220, 220, 220, 44345, 62, 18224, 3712, 33, 970, 28, 7942, 8, 198, 220, 220, 220, 651, 13247, 276, 14402, 32750, 6601, 7, 21287, 71, 11, 1366, 11, 308, 34985, 13, 4033, 82, 9487, 11, 3891, 28, 14933, 11, 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, 220, 220, 220, 220, 220, 220, 220, 44345, 62, 18224, 28, 16485, 1144, 62, 18224, 8, 198, 437, 198, 198, 8818, 651, 13247, 276, 14402, 32750, 6601, 7, 21287, 71, 3712, 13247, 276, 6601, 25060, 11, 331, 136, 224, 3712, 35, 713, 26, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3891, 3712, 38469, 90, 13940, 23650, 92, 28, 13940, 23650, 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, 220, 220, 220, 44345, 62, 18224, 3712, 33, 970, 28, 7942, 8, 198, 220, 220, 220, 611, 4129, 7, 14933, 8, 6624, 657, 198, 220, 220, 220, 220, 220, 220, 220, 3891, 796, 651, 19463, 14402, 32750, 39470, 36690, 7, 21287, 71, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1366, 796, 651, 14402, 32750, 6601, 7, 21287, 71, 11, 331, 136, 224, 11, 3891, 28, 14933, 11, 44345, 62, 18224, 28, 16485, 1144, 62, 18224, 8, 198, 220, 220, 220, 651, 13247, 276, 14402, 32750, 6601, 7, 7890, 11, 308, 34985, 13, 4033, 82, 9487, 11, 3891, 11, 44345, 62, 18224, 28, 16485, 1144, 62, 18224, 8, 198, 437, 198, 39344, 651, 13247, 276, 14402, 32750, 6601, 628, 628 ]
2.138411
4,595
iter_or_array(x) = repeated(x) iter_or_array(x::Repeated) = x iter_or_array(x::AbstractArray) = x # We treat staticarrays as scalar iter_or_array(x::StaticArray) = repeated(x) function metrics_bb(char::Char, font::FTFont, pixel_size) extent = get_extent(font, char) .* Vec2f0(pixel_size) mini = bearing(extent) return Rect2D(mini, Vec2f0(extent.scale)), extent end function boundingbox(char::Char, font::FTFont, pixel_size) bb, extent = metrics_bb(char, font, pixel_size) return bb end function glyph_ink_size(char::Char, font::FTFont, pixel_size) bb, extent = metrics_bb(char, font, pixel_size) return widths(bb) end """ iterate_extents(f, line::AbstractString, fonts, scales) Iterates over the extends of the characters (glyphs) in line! Newlines will be drawn like any other character. `fonts` can be a vector of fonts, or a single font. `scales` can be a single float or a Vec2, or a vector of any of those. `f` will get called with `(char::Char, glyph_box::Rec2D, glyph_advance::Point2f0)`. `char` is the currently iterated char. `glyph_box` is the boundingbox of the glyph. widths(box) will be the size of the bitmap, while minimum(box) is where one starts drawing the glyph. For the minimum at y position, 0 is the where e.g. `m` starts, so `g` will start in the negative, while `^` will start positive. `glyph_advance` The amount one advances after glyph, before drawing next glyph. """ function iterate_extents(f, line::AbstractString, fonts, scales) iterator = zip(line, iter_or_array(scales), iter_or_array(fonts)) lastpos = 0.0 for (char, scale, font) in iterator glyph_box, extent = metrics_bb(char, font, scale) mini = minimum(glyph_box) .+ Vec2f0(lastpos, 0.0) glyph_box = Rect2D(mini, widths(glyph_box)) glyph_advance = Point2f0(extent.advance) lastpos += glyph_advance[1] f(char, glyph_box, glyph_advance) end end function glyph_rects(line::AbstractString, fonts, scales) rects = Rect2D[] iterate_extents(line, fonts, scales) do char, box, advance push!(rects, box) end return rects end function boundingbox(line::AbstractString, fonts, scales) return reduce(union, glyph_rects(line, fonts, scales)) end function inkboundingbox(ext::FontExtent) l = leftinkbound(ext) r = rightinkbound(ext) b = bottominkbound(ext) t = topinkbound(ext) return FRect2D((l, b), (r - l, t - b)) end function height_insensitive_boundingbox(ext::FontExtent, font::FTFont) l = leftinkbound(ext) r = rightinkbound(ext) b = descender(font) t = ascender(font) return FRect2D((l, b), (r - l, t - b)) end
[ 2676, 62, 273, 62, 18747, 7, 87, 8, 796, 5100, 7, 87, 8, 201, 198, 2676, 62, 273, 62, 18747, 7, 87, 3712, 47541, 515, 8, 796, 2124, 201, 198, 2676, 62, 273, 62, 18747, 7, 87, 3712, 23839, 19182, 8, 796, 2124, 201, 198, 2, 775, 2190, 9037, 3258, 592, 355, 16578, 283, 201, 198, 2676, 62, 273, 62, 18747, 7, 87, 3712, 45442, 19182, 8, 796, 5100, 7, 87, 8, 201, 198, 201, 198, 201, 198, 8818, 20731, 62, 11848, 7, 10641, 3712, 12441, 11, 10369, 3712, 9792, 23252, 11, 17465, 62, 7857, 8, 201, 198, 220, 220, 220, 6287, 796, 651, 62, 2302, 298, 7, 10331, 11, 1149, 8, 764, 9, 38692, 17, 69, 15, 7, 32515, 62, 7857, 8, 201, 198, 220, 220, 220, 9927, 796, 14121, 7, 2302, 298, 8, 201, 198, 220, 220, 220, 1441, 48599, 17, 35, 7, 45313, 11, 38692, 17, 69, 15, 7, 2302, 298, 13, 9888, 36911, 6287, 201, 198, 437, 201, 198, 201, 198, 8818, 5421, 278, 3524, 7, 10641, 3712, 12441, 11, 10369, 3712, 9792, 23252, 11, 17465, 62, 7857, 8, 201, 198, 220, 220, 220, 275, 65, 11, 6287, 796, 20731, 62, 11848, 7, 10641, 11, 10369, 11, 17465, 62, 7857, 8, 201, 198, 220, 220, 220, 1441, 275, 65, 201, 198, 437, 201, 198, 201, 198, 8818, 25874, 62, 676, 62, 7857, 7, 10641, 3712, 12441, 11, 10369, 3712, 9792, 23252, 11, 17465, 62, 7857, 8, 201, 198, 220, 220, 220, 275, 65, 11, 6287, 796, 20731, 62, 11848, 7, 10641, 11, 10369, 11, 17465, 62, 7857, 8, 201, 198, 220, 220, 220, 1441, 9647, 82, 7, 11848, 8, 201, 198, 437, 201, 198, 201, 198, 37811, 201, 198, 220, 220, 220, 11629, 378, 62, 2302, 658, 7, 69, 11, 1627, 3712, 23839, 10100, 11, 26806, 11, 16252, 8, 201, 198, 29993, 689, 625, 262, 14582, 286, 262, 3435, 357, 10853, 746, 82, 8, 287, 1627, 0, 201, 198, 3791, 6615, 481, 307, 7428, 588, 597, 584, 2095, 13, 201, 198, 63, 10331, 82, 63, 460, 307, 257, 15879, 286, 26806, 11, 393, 257, 2060, 10369, 13, 201, 198, 63, 1416, 2040, 63, 460, 307, 257, 2060, 12178, 393, 257, 38692, 17, 11, 393, 257, 15879, 286, 597, 286, 883, 13, 201, 198, 201, 198, 63, 69, 63, 481, 651, 1444, 351, 4600, 7, 10641, 3712, 12441, 11, 25874, 62, 3524, 3712, 6690, 17, 35, 11, 25874, 62, 324, 19259, 3712, 12727, 17, 69, 15, 8, 44646, 201, 198, 201, 198, 63, 10641, 63, 318, 262, 3058, 11629, 515, 1149, 13, 201, 198, 201, 198, 63, 10853, 746, 62, 3524, 63, 318, 262, 5421, 278, 3524, 286, 262, 25874, 13, 201, 198, 10394, 82, 7, 3524, 8, 481, 307, 262, 2546, 286, 262, 1643, 8899, 11, 981, 5288, 7, 3524, 8, 318, 810, 530, 4940, 8263, 262, 25874, 13, 201, 198, 1890, 262, 5288, 379, 331, 2292, 11, 657, 318, 262, 810, 304, 13, 70, 13, 4600, 76, 63, 4940, 11, 523, 4600, 70, 63, 481, 923, 287, 262, 4633, 11, 981, 4600, 61, 63, 481, 923, 3967, 13, 201, 198, 201, 198, 63, 10853, 746, 62, 324, 19259, 63, 383, 2033, 530, 14901, 706, 25874, 11, 878, 8263, 1306, 25874, 13, 201, 198, 37811, 201, 198, 8818, 11629, 378, 62, 2302, 658, 7, 69, 11, 1627, 3712, 23839, 10100, 11, 26806, 11, 16252, 8, 201, 198, 220, 220, 220, 41313, 796, 19974, 7, 1370, 11, 11629, 62, 273, 62, 18747, 7, 1416, 2040, 828, 11629, 62, 273, 62, 18747, 7, 10331, 82, 4008, 201, 198, 220, 220, 220, 938, 1930, 796, 657, 13, 15, 201, 198, 220, 220, 220, 329, 357, 10641, 11, 5046, 11, 10369, 8, 287, 41313, 201, 198, 220, 220, 220, 220, 220, 220, 220, 25874, 62, 3524, 11, 6287, 796, 20731, 62, 11848, 7, 10641, 11, 10369, 11, 5046, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 9927, 796, 5288, 7, 10853, 746, 62, 3524, 8, 764, 10, 38692, 17, 69, 15, 7, 12957, 1930, 11, 657, 13, 15, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 25874, 62, 3524, 796, 48599, 17, 35, 7, 45313, 11, 9647, 82, 7, 10853, 746, 62, 3524, 4008, 201, 198, 220, 220, 220, 220, 220, 220, 220, 25874, 62, 324, 19259, 796, 6252, 17, 69, 15, 7, 2302, 298, 13, 324, 19259, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 938, 1930, 15853, 25874, 62, 324, 19259, 58, 16, 60, 201, 198, 220, 220, 220, 220, 220, 220, 220, 277, 7, 10641, 11, 25874, 62, 3524, 11, 25874, 62, 324, 19259, 8, 201, 198, 220, 220, 220, 886, 201, 198, 437, 201, 198, 201, 198, 8818, 25874, 62, 2554, 82, 7, 1370, 3712, 23839, 10100, 11, 26806, 11, 16252, 8, 201, 198, 220, 220, 220, 13621, 82, 796, 48599, 17, 35, 21737, 201, 198, 220, 220, 220, 11629, 378, 62, 2302, 658, 7, 1370, 11, 26806, 11, 16252, 8, 466, 1149, 11, 3091, 11, 5963, 201, 198, 220, 220, 220, 220, 220, 220, 220, 4574, 0, 7, 2554, 82, 11, 3091, 8, 201, 198, 220, 220, 220, 886, 201, 198, 220, 220, 220, 1441, 13621, 82, 201, 198, 437, 201, 198, 201, 198, 8818, 5421, 278, 3524, 7, 1370, 3712, 23839, 10100, 11, 26806, 11, 16252, 8, 201, 198, 220, 220, 220, 1441, 4646, 7, 24592, 11, 25874, 62, 2554, 82, 7, 1370, 11, 26806, 11, 16252, 4008, 201, 198, 437, 201, 198, 201, 198, 8818, 16882, 7784, 278, 3524, 7, 2302, 3712, 23252, 11627, 298, 8, 201, 198, 220, 220, 220, 300, 796, 1364, 676, 7784, 7, 2302, 8, 201, 198, 220, 220, 220, 374, 796, 826, 676, 7784, 7, 2302, 8, 201, 198, 220, 220, 220, 275, 796, 4220, 676, 7784, 7, 2302, 8, 201, 198, 220, 220, 220, 256, 796, 1353, 676, 7784, 7, 2302, 8, 201, 198, 220, 220, 220, 1441, 8782, 478, 17, 35, 19510, 75, 11, 275, 828, 357, 81, 532, 300, 11, 256, 532, 275, 4008, 201, 198, 437, 201, 198, 201, 198, 8818, 6001, 62, 1040, 18464, 62, 7784, 278, 3524, 7, 2302, 3712, 23252, 11627, 298, 11, 10369, 3712, 9792, 23252, 8, 201, 198, 220, 220, 220, 300, 796, 1364, 676, 7784, 7, 2302, 8, 201, 198, 220, 220, 220, 374, 796, 826, 676, 7784, 7, 2302, 8, 201, 198, 220, 220, 220, 275, 796, 1715, 2194, 7, 10331, 8, 201, 198, 220, 220, 220, 256, 796, 10570, 2194, 7, 10331, 8, 201, 198, 220, 220, 220, 1441, 8782, 478, 17, 35, 19510, 75, 11, 275, 828, 357, 81, 532, 300, 11, 256, 532, 275, 4008, 201, 198, 437, 201, 198 ]
2.495463
1,102
export Segment, Segments, intersect!, is_lower_end, is_upper_end, contains, find_leftmost, find_rightmost, contains, is_singular, min_x, min_y, max_x, max_y, trivial_miss struct Segment{T<:Float64} p::Point{T} q::Point{T} slope::T function Segment(p::Point{T}, q::Point{T}) where {T<:Float64} if p > q p, q = q, p end slope = (q.x - p.x) / (q.y - p.y) return new{T}(p, q, slope) end end Base.isless(s::Segment, t::Segment) = (s.p.y > t.q.y) | ((s.p.y == t.p.y) && (s.p.x < t.p.x)) Base.:(==)(s::Segment, t::Segment) = (s.p == t.p) && (s.q == t.q) get_x(segment::Segment, y) = segment.p.x + segment.slope * (y - segment.p.y) get_y(segment::Segment, x) = segment.p.y + (x - segment.p.x) / segment.slope min_x(segment::Segment) = min(segment.p.x, segment.q.x) min_y(segment::Segment) = min(segment.p.y, segment.q.y) max_x(segment::Segment) = max(segment.p.x, segment.q.x) max_y(segment::Segment) = max(segment.p.y, segment.q.y) Segment(px, py, qx, qy) = Segment(Point(px, py), Point(qx, qy)) """ Checks if the segment s is purely horizontal or vertical. """ function is_singular(s::Segment) if (s.p.x == s.q.x) || (s.p.y == s.q.y) return true else return false end end function trivial_miss(s1::Segment, s2::Segment) if s1.slope ≈ s2.slope rtol=1e-10 return true elseif max_x(s1) < min_x(s2) return true elseif max_x(s2) < min_x(s1) return true elseif max_y(s1) < min_y(s2) return true elseif max_y(s2) < min_y(s1) return true end return false end """ Checks for the intersection of two segments s1, s2. """ function Base.intersect!( s1::Segment{T}, s2::Segment{T}, A::Matrix{T}, b::Vector{T}, tol=1e-9 ) where {T<:AbstractFloat} if is_singular(s1) || is_singular(s2) return false, Point(0.0, 0.0) end if trivial_miss(s1, s2) return false, Point(0.0, 0.0) end A[1, 1] = s1.q.x - s1.p.x A[1, 2] = s2.p.x - s2.q.x A[2, 1] = s1.q.y - s1.p.y A[2, 2] = s2.p.y - s2.q.y b[1] = s2.p.x - s1.p.x b[2] = s2.p.y - s1.p.y sol = 0.0 try sol = A \ b catch @warn "Singular matrix. Check for edge cases!" return false, Point(0.0, 0.0) end if (-tol < sol[1] < 1+tol) && (-tol < sol[2] < 1+tol) intersection = Point(s1.p.x + sol[1] * (s1.q.x - s1.p.x), s1.p.y + sol[1] * (s1.q.y - s1.p.y)) return true, intersection else return false, Point(0.0, 0.0) end end function Base.intersect!(s1::Segment{T}, s2::Segment{T}) where {T<:AbstractFloat} A = zeros((2, 2)) b = zeros(2) return intersect!(s1, s2, A, b) end is_lower_end(segment::Segment, Point::Point) = (segment.q == Point) is_upper_end(segment::Segment, Point::Point) = (segment.p == Point) function Base.contains(segment::Segment, point::Point, tol=1e-9) if is_lower_end(segment, point) | is_upper_end(segment, point) return false end y = get_y(segment, point.x) if y ≈ point.y atol = tol return true else return false end end function find_leftmost(segment_set, y, tol=1e-9) ret = nothing xmin = Inf for segment in segment_set x = get_x(segment, y - tol) if x < xmin xmin = x ret = segment end end return ret, xmin end function find_rightmost(segment_set, y, tol=1e-9) ret = nothing xmax = 0 for segment in segment_set x = get_x(segment, y - tol) if x > xmax xmax = x ret = segment end end return ret, xmax end
[ 39344, 1001, 5154, 11, 198, 220, 220, 220, 1001, 11726, 11, 198, 220, 220, 220, 36177, 28265, 198, 220, 220, 220, 318, 62, 21037, 62, 437, 11, 198, 220, 220, 220, 318, 62, 45828, 62, 437, 11, 198, 220, 220, 220, 4909, 11, 198, 220, 220, 220, 1064, 62, 9464, 1712, 11, 198, 220, 220, 220, 1064, 62, 3506, 1712, 11, 198, 220, 220, 220, 4909, 11, 198, 220, 220, 220, 318, 62, 12215, 934, 11, 198, 220, 220, 220, 949, 62, 87, 11, 198, 220, 220, 220, 949, 62, 88, 11, 198, 220, 220, 220, 3509, 62, 87, 11, 198, 220, 220, 220, 3509, 62, 88, 11, 198, 220, 220, 220, 20861, 62, 3927, 628, 198, 7249, 1001, 5154, 90, 51, 27, 25, 43879, 2414, 92, 198, 220, 220, 220, 279, 3712, 12727, 90, 51, 92, 198, 220, 220, 220, 10662, 3712, 12727, 90, 51, 92, 198, 220, 220, 220, 22638, 3712, 51, 198, 220, 220, 220, 2163, 1001, 5154, 7, 79, 3712, 12727, 90, 51, 5512, 10662, 3712, 12727, 90, 51, 30072, 810, 1391, 51, 27, 25, 43879, 2414, 92, 198, 220, 220, 220, 220, 220, 220, 220, 611, 279, 1875, 10662, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 11, 10662, 796, 10662, 11, 279, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 22638, 796, 357, 80, 13, 87, 532, 279, 13, 87, 8, 1220, 357, 80, 13, 88, 532, 279, 13, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 649, 90, 51, 92, 7, 79, 11, 10662, 11, 22638, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 14881, 13, 271, 1203, 7, 82, 3712, 41030, 434, 11, 256, 3712, 41030, 434, 8, 796, 357, 82, 13, 79, 13, 88, 1875, 256, 13, 80, 13, 88, 8, 930, 14808, 82, 13, 79, 13, 88, 6624, 256, 13, 79, 13, 88, 8, 11405, 357, 82, 13, 79, 13, 87, 1279, 256, 13, 79, 13, 87, 4008, 198, 14881, 11207, 7, 855, 5769, 82, 3712, 41030, 434, 11, 256, 3712, 41030, 434, 8, 796, 357, 82, 13, 79, 6624, 256, 13, 79, 8, 11405, 357, 82, 13, 80, 6624, 256, 13, 80, 8, 198, 198, 1136, 62, 87, 7, 325, 5154, 3712, 41030, 434, 11, 331, 8, 796, 10618, 13, 79, 13, 87, 1343, 10618, 13, 6649, 3008, 1635, 357, 88, 532, 10618, 13, 79, 13, 88, 8, 198, 1136, 62, 88, 7, 325, 5154, 3712, 41030, 434, 11, 2124, 8, 796, 10618, 13, 79, 13, 88, 1343, 357, 87, 532, 10618, 13, 79, 13, 87, 8, 1220, 10618, 13, 6649, 3008, 198, 198, 1084, 62, 87, 7, 325, 5154, 3712, 41030, 434, 8, 796, 949, 7, 325, 5154, 13, 79, 13, 87, 11, 10618, 13, 80, 13, 87, 8, 198, 1084, 62, 88, 7, 325, 5154, 3712, 41030, 434, 8, 796, 949, 7, 325, 5154, 13, 79, 13, 88, 11, 10618, 13, 80, 13, 88, 8, 198, 9806, 62, 87, 7, 325, 5154, 3712, 41030, 434, 8, 796, 3509, 7, 325, 5154, 13, 79, 13, 87, 11, 10618, 13, 80, 13, 87, 8, 198, 9806, 62, 88, 7, 325, 5154, 3712, 41030, 434, 8, 796, 3509, 7, 325, 5154, 13, 79, 13, 88, 11, 10618, 13, 80, 13, 88, 8, 198, 198, 41030, 434, 7, 8416, 11, 12972, 11, 10662, 87, 11, 10662, 88, 8, 796, 1001, 5154, 7, 12727, 7, 8416, 11, 12972, 828, 6252, 7, 80, 87, 11, 10662, 88, 4008, 198, 198, 37811, 198, 7376, 4657, 611, 262, 10618, 264, 318, 14177, 16021, 393, 11723, 13, 198, 37811, 198, 8818, 318, 62, 12215, 934, 7, 82, 3712, 41030, 434, 8, 198, 220, 220, 220, 611, 357, 82, 13, 79, 13, 87, 6624, 264, 13, 80, 13, 87, 8, 8614, 357, 82, 13, 79, 13, 88, 6624, 264, 13, 80, 13, 88, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 20861, 62, 3927, 7, 82, 16, 3712, 41030, 434, 11, 264, 17, 3712, 41030, 434, 8, 198, 220, 220, 220, 611, 264, 16, 13, 6649, 3008, 15139, 230, 264, 17, 13, 6649, 3008, 374, 83, 349, 28, 16, 68, 12, 940, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 198, 220, 220, 220, 2073, 361, 3509, 62, 87, 7, 82, 16, 8, 1279, 949, 62, 87, 7, 82, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 220, 198, 220, 220, 220, 2073, 361, 3509, 62, 87, 7, 82, 17, 8, 1279, 949, 62, 87, 7, 82, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 198, 220, 220, 220, 2073, 361, 3509, 62, 88, 7, 82, 16, 8, 1279, 949, 62, 88, 7, 82, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 198, 220, 220, 220, 2073, 361, 3509, 62, 88, 7, 82, 17, 8, 1279, 949, 62, 88, 7, 82, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 3991, 198, 437, 198, 198, 37811, 198, 7376, 4657, 329, 262, 16246, 286, 734, 17894, 264, 16, 11, 264, 17, 13, 198, 37811, 198, 8818, 7308, 13, 3849, 8831, 0, 7, 198, 220, 220, 220, 264, 16, 3712, 41030, 434, 90, 51, 5512, 198, 220, 220, 220, 264, 17, 3712, 41030, 434, 90, 51, 5512, 198, 220, 220, 220, 317, 3712, 46912, 90, 51, 5512, 198, 220, 220, 220, 275, 3712, 38469, 90, 51, 5512, 198, 220, 220, 220, 284, 75, 28, 16, 68, 12, 24, 198, 8, 810, 1391, 51, 27, 25, 23839, 43879, 92, 198, 220, 220, 220, 611, 318, 62, 12215, 934, 7, 82, 16, 8, 8614, 318, 62, 12215, 934, 7, 82, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 11, 6252, 7, 15, 13, 15, 11, 657, 13, 15, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 20861, 62, 3927, 7, 82, 16, 11, 264, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 11, 6252, 7, 15, 13, 15, 11, 657, 13, 15, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 317, 58, 16, 11, 352, 60, 796, 264, 16, 13, 80, 13, 87, 532, 264, 16, 13, 79, 13, 87, 198, 220, 220, 220, 317, 58, 16, 11, 362, 60, 796, 264, 17, 13, 79, 13, 87, 532, 264, 17, 13, 80, 13, 87, 198, 220, 220, 220, 317, 58, 17, 11, 352, 60, 796, 264, 16, 13, 80, 13, 88, 532, 264, 16, 13, 79, 13, 88, 198, 220, 220, 220, 317, 58, 17, 11, 362, 60, 796, 264, 17, 13, 79, 13, 88, 532, 264, 17, 13, 80, 13, 88, 198, 220, 220, 220, 275, 58, 16, 60, 796, 264, 17, 13, 79, 13, 87, 532, 264, 16, 13, 79, 13, 87, 198, 220, 220, 220, 275, 58, 17, 60, 796, 264, 17, 13, 79, 13, 88, 532, 264, 16, 13, 79, 13, 88, 198, 220, 220, 220, 1540, 796, 657, 13, 15, 198, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 1540, 796, 317, 3467, 275, 198, 220, 220, 220, 4929, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 40539, 366, 29974, 934, 17593, 13, 6822, 329, 5743, 2663, 2474, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 11, 6252, 7, 15, 13, 15, 11, 657, 13, 15, 8, 198, 220, 220, 220, 886, 198, 220, 220, 220, 611, 13841, 83, 349, 1279, 1540, 58, 16, 60, 1279, 352, 10, 83, 349, 8, 11405, 13841, 83, 349, 1279, 1540, 58, 17, 60, 1279, 352, 10, 83, 349, 8, 198, 220, 220, 220, 220, 220, 220, 220, 16246, 796, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6252, 7, 82, 16, 13, 79, 13, 87, 1343, 1540, 58, 16, 60, 1635, 357, 82, 16, 13, 80, 13, 87, 532, 264, 16, 13, 79, 13, 87, 828, 264, 16, 13, 79, 13, 88, 1343, 1540, 58, 16, 60, 1635, 357, 82, 16, 13, 80, 13, 88, 532, 264, 16, 13, 79, 13, 88, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 11, 16246, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 11, 6252, 7, 15, 13, 15, 11, 657, 13, 15, 8, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 7308, 13, 3849, 8831, 0, 7, 82, 16, 3712, 41030, 434, 90, 51, 5512, 264, 17, 3712, 41030, 434, 90, 51, 30072, 810, 1391, 51, 27, 25, 23839, 43879, 92, 198, 220, 220, 220, 317, 796, 1976, 27498, 19510, 17, 11, 362, 4008, 198, 220, 220, 220, 275, 796, 1976, 27498, 7, 17, 8, 198, 220, 220, 220, 1441, 36177, 0, 7, 82, 16, 11, 264, 17, 11, 317, 11, 275, 8, 198, 437, 198, 198, 271, 62, 21037, 62, 437, 7, 325, 5154, 3712, 41030, 434, 11, 6252, 3712, 12727, 8, 796, 357, 325, 5154, 13, 80, 6624, 6252, 8, 198, 271, 62, 45828, 62, 437, 7, 325, 5154, 3712, 41030, 434, 11, 6252, 3712, 12727, 8, 796, 357, 325, 5154, 13, 79, 6624, 6252, 8, 198, 8818, 7308, 13, 3642, 1299, 7, 325, 5154, 3712, 41030, 434, 11, 966, 3712, 12727, 11, 284, 75, 28, 16, 68, 12, 24, 8, 198, 220, 220, 220, 611, 318, 62, 21037, 62, 437, 7, 325, 5154, 11, 966, 8, 930, 318, 62, 45828, 62, 437, 7, 325, 5154, 11, 966, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 886, 198, 220, 220, 220, 331, 796, 651, 62, 88, 7, 325, 5154, 11, 966, 13, 87, 8, 198, 220, 220, 220, 611, 331, 15139, 230, 966, 13, 88, 198, 220, 220, 220, 220, 220, 220, 220, 379, 349, 796, 284, 75, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2081, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3991, 198, 220, 220, 220, 886, 198, 437, 198, 198, 8818, 1064, 62, 9464, 1712, 7, 325, 5154, 62, 2617, 11, 331, 11, 284, 75, 28, 16, 68, 12, 24, 8, 198, 220, 220, 220, 1005, 796, 2147, 198, 220, 220, 220, 2124, 1084, 796, 4806, 198, 220, 220, 220, 329, 10618, 287, 10618, 62, 2617, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 651, 62, 87, 7, 325, 5154, 11, 331, 532, 284, 75, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 1279, 2124, 1084, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 1084, 796, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1005, 796, 10618, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1005, 11, 2124, 1084, 198, 437, 198, 198, 8818, 1064, 62, 3506, 1712, 7, 325, 5154, 62, 2617, 11, 331, 11, 284, 75, 28, 16, 68, 12, 24, 8, 198, 220, 220, 220, 1005, 796, 2147, 198, 220, 220, 220, 2124, 9806, 796, 657, 198, 220, 220, 220, 329, 10618, 287, 10618, 62, 2617, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 651, 62, 87, 7, 325, 5154, 11, 331, 532, 284, 75, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 1875, 2124, 9806, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 9806, 796, 2124, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1005, 796, 10618, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1441, 1005, 11, 2124, 9806, 198, 437, 198 ]
1.893273
1,977
using OrdinaryDiffEq, DiffEqDevTools, DiffEqBase, Base.Test, ODEInterfaceDiffEq const linear_bigα = parse(BigFloat,"1.01") f = (t,u) -> (linear_bigα*u) analytic = (t,u0) -> u0*exp(linear_bigα*t) prob_ode_bigfloatlinear = ODETestProblem(f,parse(BigFloat,"0.5"),analytic,(0.0,10.0)) f = (t,u,du) -> begin for i in 1:length(u) du[i] = linear_bigα*u[i] end end probbig = ODETestProblem(f,map(BigFloat,rand(4,2)).*ones(4,2)/2,analytic,(0.0,10.0)) linear = (t,u) -> (1.01*u) analytic_linear = (t,u0) -> u0*exp(1.01*t) probnum = ODETestProblem(linear,1/2,analytic_linear,(0.0,10.0)) probnumbig = prob_ode_bigfloatlinear #prob = prob_ode_large2Dlinear f_2dlinear = (t,u,du) -> begin for i in 1:length(u) du[i] = 1.01*u[i] end end analytic_2dlinear = (t,u0) -> u0*exp.(1.01*t) prob = ODETestProblem(f_2dlinear,rand(4,2),analytic_2dlinear,(0.0,10.0)) dts = 1.//2.^(7:-1:4) testTol = .2 bools = Vector{Bool}(0) ## DP5() sim = test_convergence(dts,probnum,DP5()) @test abs(sim.𝒪est[:l2]-5) < testTol sim = test_convergence(dts,prob,DP5()) @test abs(sim.𝒪est[:l2]-5) < testTol tabalg = ExplicitRK() sol1 =solve(probnum,DP5(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(probnum,tabalg,dt=1/2^6,adaptive=false,save_timeseries=false) @test sol1.u[end] - sol2.u[end] < 1e-10 sol1 =solve(prob,DP5(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(prob,tabalg,dt=1/2^6,adaptive=false,save_timeseries=false) @test minimum(sol1.u[end] - sol2.u[end] .< 3e-10) sol1 =solve(probnum,DP5(),dt=1/2^6,beta2=0.04) sol2 =solve(probnum,tabalg,dt=1/2^6,beta2=0.04) # Should be identical sol1 =solve(probnum,DP5()) sol2 =solve(probnum,tabalg,beta2=0.04,beta1=0.17) sol3 =solve(probnum,dopri5()) @test sol1.t ≈ sol2.t ≈ sol3.t sol1 =solve(prob,DP5(),dt=1/8) sol2 =solve(prob,tabalg,beta2=0.04,beta1=0.17,dt=1/8) sol3 =solve(prob,dopri5(),dt=1/8) @test sol1.t ≈ sol2.t ≈ sol3.t ### BS3() sim = test_convergence(dts,probnum,BS3()) @test abs(sim.𝒪est[:l2]-3) < testTol sim = test_convergence(dts,prob,BS3()) @test abs(sim.𝒪est[:l2]-3) < testTol tabalg = ExplicitRK(tableau=constructBogakiShampine3()) sol1 =solve(probnum,BS3(),dt=1/2^1,adaptive=false,save_timeseries=false) sol2 =solve(probnum,tabalg,dt=1/2^1,adaptive=false,save_timeseries=false) @test sol1.u[end] - sol2.u[end] < 1e-10 sol1 =solve(prob,BS3(),dt=1/2^1,adaptive=false,save_timeseries=false) sol2 =solve(prob,tabalg,dt=1/2^1,adaptive=false,save_timeseries=false) @test minimum(sol1.u[end] - sol2.u[end] .< 1e-10) sol1 =solve(prob,tabalg,dt=1/2^6) sol2 =solve(prob,BS3(),dt=1/2^6) @test length(sol1) == length(sol2) ### BS5() dts = 1.//2.^(6:-1:3) sim = test_convergence(dts,probnumbig,BS5()) @test abs(sim.𝒪est[:l2]-5) < testTol sim = test_convergence(dts,probbig,BS5()) @test abs(sim.𝒪est[:l2]-5) < testTol tabalg = ExplicitRK(tableau=constructBogakiShampine5()) sol1 =solve(probnum,BS5(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(probnum,tabalg,dt=1/2^6,adaptive=false,save_timeseries=false) @test sol1.u[end] - sol2.u[end] < 1e-10 sol1 =solve(prob,BS5(),dt=1/2^3,adaptive=false,save_timeseries=false) sol2 =solve(prob,tabalg,dt=1/2^3,adaptive=false,save_timeseries=false) @test minimum(sol1.u[end] - sol2.u[end] .< 1e-10) sol1 =solve(prob,tabalg,dt=1/2^6) sol2 =solve(prob,BS5(),dt=1/2^6) @test length(sol1) <= length(sol2) # Dual error estimators is more strict ### Tsit5() dts = 1.//2.^(7:-1:3) sim = test_convergence(dts,probnum,Tsit5()) @test abs(sim.𝒪est[:l2]-5) < testTol+.1 sim = test_convergence(dts,prob,Tsit5()) @test abs(sim.𝒪est[:l2]-5) < testTol+.1 tabalg = ExplicitRK(tableau=constructTsitouras5()) sol1 =solve(probnum,Tsit5(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(probnum,tabalg,dt=1/2^6,adaptive=false,save_timeseries=false) @test sol1.u[end] - sol2.u[end] < 1e-10 sol1 =solve(prob,Tsit5(),dt=1/2^3,adaptive=false,save_timeseries=false) sol2 =solve(prob,tabalg,dt=1/2^3,adaptive=false,save_timeseries=false) @test minimum(sol1.u[end] - sol2.u[end] .< 1e-10) sol1 =solve(prob,tabalg,dt=1/2^6) sol2 =solve(prob,Tsit5(),dt=1/2^6) @test length(sol1) == length(sol2) ### Vern6() dts = 1.//2.^(8:-1:5) sim = test_convergence(dts,probnumbig,Vern6()) @test abs(sim.𝒪est[:l2]-6) < testTol sim = test_convergence(dts,probbig,Vern6()) @test abs(sim.𝒪est[:l2]-6) < testTol tabalg = ExplicitRK(tableau=constructVernerEfficient6(BigFloat)) sol1 =solve(probnumbig,Vern6(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(probnumbig,tabalg,dt=1/2^6,adaptive=false,save_timeseries=false) @test sol1.u[end] - sol2.u[end] < 1e-10 sol1 =solve(probbig,Vern6(),dt=1/2^3,adaptive=false,save_timeseries=false) sol2 =solve(probbig,tabalg,dt=1/2^3,adaptive=false,save_timeseries=false) @test minimum(sol1.u[end] - sol2.u[end] .< 1e-10) sol1 =solve(probbig,tabalg,dt=1/2^6) sol2 =solve(probbig,Vern6(),dt=1/2^6) @test length(sol1) == length(sol2) ### Vern7() dts = 1.//2.^(6:-1:3) sim = test_convergence(dts,probnumbig,Vern7()) @test abs(sim.𝒪est[:l2]-7) < testTol sim = test_convergence(dts,probbig,Vern7()) @test abs(sim.𝒪est[:l2]-7) < testTol tabalg = ExplicitRK(tableau=constructVerner7(BigFloat)) sol1 =solve(probnumbig,Vern7(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(probnumbig,tabalg,dt=1/2^6,adaptive=false,save_timeseries=false) @test sol1.u[end] - sol2.u[end] < 1e-10 sol1 =solve(probbig,Vern7(),dt=1/2^3,adaptive=false,save_timeseries=false) sol2 =solve(probbig,tabalg,dt=1/2^3,adaptive=false,save_timeseries=false) @test minimum(sol1.u[end] - sol2.u[end] .< 1e-10) sol1 =solve(probbig,tabalg,dt=1/2^6) sol2 =solve(probbig,Vern7(),dt=1/2^6) @test length(sol1) == length(sol2) ### TanYam7() dts = 1.//2.^(6:-1:3) sim = test_convergence(dts,probnumbig,TanYam7()) @test abs(sim.𝒪est[:l2]-7) < testTol sim = test_convergence(dts,probbig,TanYam7()) @test abs(sim.𝒪est[:l2]-7) < testTol tabalg = ExplicitRK(tableau=constructTanakaYamashitaEfficient7(Float64)) sol1 =solve(probnum,TanYam7(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(probnum,tabalg,dt=1/2^6,adaptive=false,save_timeseries=false) @test sol1.u[end] - sol2.u[end] < 1e-10 tabalg = ExplicitRK(tableau=constructTanakaYamashitaEfficient7(BigFloat)) sol1 =solve(probbig,TanYam7(),dt=1/2^3,adaptive=false,save_timeseries=false) sol2 =solve(probbig,tabalg,dt=1/2^3,adaptive=false,save_timeseries=false) @test minimum(sol1.u[end] - sol2.u[end] .< 1e-10) sol1 =solve(prob,tabalg,dt=1/2^6) sol2 =solve(prob,TanYam7(),dt=1/2^6) @test length(sol1) == length(sol2) ### Vern8() dts = 1.//2.^(6:-1:3) sim = test_convergence(dts,probnumbig,Vern8()) @test abs(sim.𝒪est[:l2]-8) < testTol sim = test_convergence(dts,probbig,Vern8()) @test abs(sim.𝒪est[:l2]-8) < testTol tabalg = ExplicitRK(tableau=constructVerner8(BigFloat)) sol1 =solve(probnumbig,Vern8(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(probnumbig,tabalg,dt=1/2^6,adaptive=false,save_timeseries=false) @test sol1.u[end] - sol2.u[end] < 1e-10 sol1 =solve(probbig,Vern8(),dt=1/2^3,adaptive=false,save_timeseries=false) sol2 =solve(probbig,tabalg,dt=1/2^3,adaptive=false,save_timeseries=false) @test minimum(sol1.u[end] - sol2.u[end] .< 1e-10) sol1 =solve(prob,tabalg,dt=1/2^6) sol2 =solve(prob,Vern8(),dt=1/2^6) @test length(sol1) == length(sol2) ### DP8() dts = 1.//2.^(3:-1:1) sim = test_convergence(dts,probnumbig,DP8()) @test abs(sim.𝒪est[:l2]-8) < testTol sim = test_convergence(dts,probbig,DP8()) @test abs(sim.𝒪est[:l2]-8) < testTol sol1 =solve(probnum,DP8(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(probnum,DP8(),dt=1/2^6) # Should be identical sol1 =solve(probnum,DP8()) sol2 =solve(probnum,dop853()) @test sol1.t ≈ sol2.t # Should be identical sol1 =solve(probbig,DP8(),dt=1/2^6) sol2 =solve(probbig,dop853(),dt=1/2^6) @test sol1.t ≈ sol2.t ### TsitPap8() dts = 1.//2.^(6:-1:3) sim = test_convergence(dts,probnumbig,TsitPap8()) @test abs(sim.𝒪est[:l2]-8) < testTol sim = test_convergence(dts,probbig,TsitPap8()) @test abs(sim.𝒪est[:l2]-8) < testTol tabalg = ExplicitRK(tableau=constructTsitourasPapakostas8(BigFloat)) sol1 =solve(probnumbig,TsitPap8(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(probnumbig,tabalg,dt=1/2^6,adaptive=false,save_timeseries=false) @test sol1.u[end] - sol2.u[end] < 1e-10 sol1 =solve(probbig,TsitPap8(),dt=1/2^3,adaptive=false,save_timeseries=false) sol2 =solve(probbig,tabalg,dt=1/2^3,adaptive=false,save_timeseries=false) @test minimum(sol1.u[end] - sol2.u[end] .< 1e-10) sol1 =solve(prob,tabalg,dt=1/2^6) sol2 =solve(prob,TsitPap8(),dt=1/2^6) @test length(sol1) == length(sol2) ### Vern9() dts = 1.//2.^(6:-1:3) sim = test_convergence(dts,probnumbig,Vern9()) @test abs(sim.𝒪est[:l2]-9) < testTol sim = test_convergence(dts,probbig,Vern9()) @test abs(sim.𝒪est[:l2]-9) < testTol tabalg = ExplicitRK(tableau=constructVernerEfficient9(BigFloat)) sol1 =solve(probnumbig,Vern9(),dt=1/2^6,adaptive=false,save_timeseries=false) sol2 =solve(probnumbig,tabalg,dt=1/2^6,adaptive=false,save_timeseries=false) @test abs(sol1.u[end] - sol2.u[end]) < 1e-15 sol1 =solve(probbig,Vern9(),dt=1/2^3,adaptive=false,save_timeseries=false) sol2 =solve(probbig,tabalg,dt=1/2^3,adaptive=false,save_timeseries=false) @test minimum(abs(sol1.u[end] - sol2.u[end]) .< 1e-15) sol1 =solve(probbig,tabalg,dt=1/2^6) sol2 =solve(probbig,Vern9(),dt=1/2^6) @test length(sol1) == length(sol2)
[ 3500, 14230, 3219, 28813, 36, 80, 11, 10631, 36, 80, 13603, 33637, 11, 10631, 36, 80, 14881, 11, 7308, 13, 14402, 11, 440, 7206, 39317, 28813, 36, 80, 198, 198, 9979, 14174, 62, 14261, 17394, 796, 21136, 7, 12804, 43879, 553, 16, 13, 486, 4943, 198, 69, 796, 357, 83, 11, 84, 8, 4613, 357, 29127, 62, 14261, 17394, 9, 84, 8, 198, 38200, 13370, 796, 357, 83, 11, 84, 15, 8, 4613, 334, 15, 9, 11201, 7, 29127, 62, 14261, 17394, 9, 83, 8, 198, 1676, 65, 62, 1098, 62, 14261, 22468, 29127, 796, 31245, 2767, 395, 40781, 7, 69, 11, 29572, 7, 12804, 43879, 553, 15, 13, 20, 12340, 38200, 13370, 11, 7, 15, 13, 15, 11, 940, 13, 15, 4008, 198, 198, 69, 796, 357, 83, 11, 84, 11, 646, 8, 4613, 2221, 198, 220, 329, 1312, 287, 352, 25, 13664, 7, 84, 8, 198, 220, 220, 220, 7043, 58, 72, 60, 796, 14174, 62, 14261, 17394, 9, 84, 58, 72, 60, 198, 220, 886, 198, 437, 198, 1676, 11848, 328, 796, 31245, 2767, 395, 40781, 7, 69, 11, 8899, 7, 12804, 43879, 11, 25192, 7, 19, 11, 17, 29720, 9, 1952, 7, 19, 11, 17, 20679, 17, 11, 38200, 13370, 11, 7, 15, 13, 15, 11, 940, 13, 15, 4008, 198, 198, 29127, 796, 357, 83, 11, 84, 8, 4613, 357, 16, 13, 486, 9, 84, 8, 198, 38200, 13370, 62, 29127, 796, 357, 83, 11, 84, 15, 8, 4613, 334, 15, 9, 11201, 7, 16, 13, 486, 9, 83, 8, 198, 1676, 9374, 388, 796, 31245, 2767, 395, 40781, 7, 29127, 11, 16, 14, 17, 11, 38200, 13370, 62, 29127, 11, 7, 15, 13, 15, 11, 940, 13, 15, 4008, 198, 198, 1676, 9374, 2178, 328, 796, 1861, 62, 1098, 62, 14261, 22468, 29127, 198, 2, 1676, 65, 220, 220, 220, 796, 1861, 62, 1098, 62, 11664, 17, 35, 29127, 628, 198, 69, 62, 17, 67, 29127, 796, 357, 83, 11, 84, 11, 646, 8, 4613, 2221, 198, 220, 329, 1312, 287, 352, 25, 13664, 7, 84, 8, 198, 220, 220, 220, 7043, 58, 72, 60, 796, 352, 13, 486, 9, 84, 58, 72, 60, 198, 220, 886, 198, 437, 198, 38200, 13370, 62, 17, 67, 29127, 796, 357, 83, 11, 84, 15, 8, 4613, 334, 15, 9, 11201, 12195, 16, 13, 486, 9, 83, 8, 198, 1676, 65, 796, 31245, 2767, 395, 40781, 7, 69, 62, 17, 67, 29127, 11, 25192, 7, 19, 11, 17, 828, 38200, 13370, 62, 17, 67, 29127, 11, 7, 15, 13, 15, 11, 940, 13, 15, 4008, 198, 198, 67, 912, 796, 352, 13, 1003, 17, 13, 61, 7, 22, 21912, 16, 25, 19, 8, 198, 9288, 51, 349, 796, 764, 17, 198, 65, 10141, 796, 20650, 90, 33, 970, 92, 7, 15, 8, 198, 198, 2235, 27704, 20, 3419, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 388, 11, 6322, 20, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 20, 8, 1279, 1332, 51, 349, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 65, 11, 6322, 20, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 20, 8, 1279, 1332, 51, 349, 198, 198, 8658, 14016, 796, 11884, 49, 42, 3419, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 388, 11, 6322, 20, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 388, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 1540, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 1279, 352, 68, 12, 940, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 6322, 20, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 5288, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 764, 27, 513, 68, 12, 940, 8, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 388, 11, 6322, 20, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 31361, 17, 28, 15, 13, 3023, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 388, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 31361, 17, 28, 15, 13, 3023, 8, 628, 198, 2, 10358, 307, 10411, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 388, 11, 6322, 20, 28955, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 388, 11, 8658, 14016, 11, 31361, 17, 28, 15, 13, 3023, 11, 31361, 16, 28, 15, 13, 1558, 8, 198, 34453, 18, 796, 82, 6442, 7, 1676, 9374, 388, 11, 67, 404, 380, 20, 28955, 198, 198, 31, 9288, 1540, 16, 13, 83, 15139, 230, 1540, 17, 13, 83, 15139, 230, 1540, 18, 13, 83, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 6322, 20, 22784, 28664, 28, 16, 14, 23, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 31361, 17, 28, 15, 13, 3023, 11, 31361, 16, 28, 15, 13, 1558, 11, 28664, 28, 16, 14, 23, 8, 198, 34453, 18, 796, 82, 6442, 7, 1676, 65, 11, 67, 404, 380, 20, 22784, 28664, 28, 16, 14, 23, 8, 198, 198, 31, 9288, 1540, 16, 13, 83, 15139, 230, 1540, 17, 13, 83, 15139, 230, 1540, 18, 13, 83, 198, 198, 21017, 24218, 18, 3419, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 388, 11, 4462, 18, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 18, 8, 1279, 1332, 51, 349, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 65, 11, 4462, 18, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 18, 8, 1279, 1332, 51, 349, 198, 198, 8658, 14016, 796, 11884, 49, 42, 7, 11487, 559, 28, 41571, 33, 519, 8182, 2484, 696, 500, 18, 28955, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 388, 11, 4462, 18, 22784, 28664, 28, 16, 14, 17, 61, 16, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 388, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 16, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 1540, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 1279, 352, 68, 12, 940, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 4462, 18, 22784, 28664, 28, 16, 14, 17, 61, 16, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 16, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 5288, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 764, 27, 352, 68, 12, 940, 8, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 4462, 18, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 31, 9288, 4129, 7, 34453, 16, 8, 6624, 4129, 7, 34453, 17, 8, 198, 198, 21017, 24218, 20, 3419, 198, 67, 912, 796, 352, 13, 1003, 17, 13, 61, 7, 21, 21912, 16, 25, 18, 8, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 2178, 328, 11, 4462, 20, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 20, 8, 1279, 1332, 51, 349, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 11848, 328, 11, 4462, 20, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 20, 8, 1279, 1332, 51, 349, 198, 198, 8658, 14016, 796, 11884, 49, 42, 7, 11487, 559, 28, 41571, 33, 519, 8182, 2484, 696, 500, 20, 28955, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 388, 11, 4462, 20, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 388, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 1540, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 1279, 352, 68, 12, 940, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 4462, 20, 22784, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 5288, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 764, 27, 352, 68, 12, 940, 8, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 4462, 20, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 31, 9288, 4129, 7, 34453, 16, 8, 19841, 4129, 7, 34453, 17, 8, 1303, 20446, 4049, 3959, 2024, 318, 517, 7646, 198, 198, 21017, 13146, 270, 20, 3419, 198, 198, 67, 912, 796, 352, 13, 1003, 17, 13, 61, 7, 22, 21912, 16, 25, 18, 8, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 388, 11, 33758, 270, 20, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 20, 8, 1279, 1332, 51, 349, 27613, 16, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 65, 11, 33758, 270, 20, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 20, 8, 1279, 1332, 51, 349, 27613, 16, 198, 198, 8658, 14016, 796, 11884, 49, 42, 7, 11487, 559, 28, 41571, 33758, 270, 454, 292, 20, 28955, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 388, 11, 33758, 270, 20, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 388, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 1540, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 1279, 352, 68, 12, 940, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 33758, 270, 20, 22784, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 5288, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 764, 27, 352, 68, 12, 940, 8, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 33758, 270, 20, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 31, 9288, 4129, 7, 34453, 16, 8, 6624, 4129, 7, 34453, 17, 8, 198, 198, 21017, 23092, 21, 3419, 198, 198, 67, 912, 796, 352, 13, 1003, 17, 13, 61, 7, 23, 21912, 16, 25, 20, 8, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 2178, 328, 11, 53, 1142, 21, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 21, 8, 1279, 1332, 51, 349, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 11848, 328, 11, 53, 1142, 21, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 21, 8, 1279, 1332, 51, 349, 198, 198, 8658, 14016, 796, 11884, 49, 42, 7, 11487, 559, 28, 41571, 13414, 1008, 36, 5632, 21, 7, 12804, 43879, 4008, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 2178, 328, 11, 53, 1142, 21, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 2178, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 1540, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 1279, 352, 68, 12, 940, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 11848, 328, 11, 53, 1142, 21, 22784, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 11848, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 5288, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 764, 27, 352, 68, 12, 940, 8, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 11848, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 11848, 328, 11, 53, 1142, 21, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 31, 9288, 4129, 7, 34453, 16, 8, 6624, 4129, 7, 34453, 17, 8, 198, 198, 21017, 23092, 22, 3419, 198, 198, 67, 912, 796, 352, 13, 1003, 17, 13, 61, 7, 21, 21912, 16, 25, 18, 8, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 2178, 328, 11, 53, 1142, 22, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 22, 8, 1279, 1332, 51, 349, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 11848, 328, 11, 53, 1142, 22, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 22, 8, 1279, 1332, 51, 349, 198, 198, 8658, 14016, 796, 11884, 49, 42, 7, 11487, 559, 28, 41571, 13414, 1008, 22, 7, 12804, 43879, 4008, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 2178, 328, 11, 53, 1142, 22, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 2178, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 1540, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 1279, 352, 68, 12, 940, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 11848, 328, 11, 53, 1142, 22, 22784, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 11848, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 5288, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 764, 27, 352, 68, 12, 940, 8, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 11848, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 11848, 328, 11, 53, 1142, 22, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 31, 9288, 4129, 7, 34453, 16, 8, 6624, 4129, 7, 34453, 17, 8, 198, 198, 21017, 11818, 56, 321, 22, 3419, 198, 198, 67, 912, 796, 352, 13, 1003, 17, 13, 61, 7, 21, 21912, 16, 25, 18, 8, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 2178, 328, 11, 45557, 56, 321, 22, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 22, 8, 1279, 1332, 51, 349, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 11848, 328, 11, 45557, 56, 321, 22, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 22, 8, 1279, 1332, 51, 349, 198, 198, 8658, 14016, 796, 11884, 49, 42, 7, 11487, 559, 28, 41571, 45557, 8130, 56, 321, 1077, 5350, 36, 5632, 22, 7, 43879, 2414, 4008, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 388, 11, 45557, 56, 321, 22, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 388, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 1540, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 1279, 352, 68, 12, 940, 198, 198, 8658, 14016, 796, 11884, 49, 42, 7, 11487, 559, 28, 41571, 45557, 8130, 56, 321, 1077, 5350, 36, 5632, 22, 7, 12804, 43879, 4008, 198, 34453, 16, 796, 82, 6442, 7, 1676, 11848, 328, 11, 45557, 56, 321, 22, 22784, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 11848, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 5288, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 764, 27, 352, 68, 12, 940, 8, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 45557, 56, 321, 22, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 31, 9288, 4129, 7, 34453, 16, 8, 6624, 4129, 7, 34453, 17, 8, 198, 198, 21017, 23092, 23, 3419, 198, 198, 67, 912, 796, 352, 13, 1003, 17, 13, 61, 7, 21, 21912, 16, 25, 18, 8, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 2178, 328, 11, 53, 1142, 23, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 23, 8, 1279, 1332, 51, 349, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 11848, 328, 11, 53, 1142, 23, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 23, 8, 1279, 1332, 51, 349, 198, 198, 8658, 14016, 796, 11884, 49, 42, 7, 11487, 559, 28, 41571, 13414, 1008, 23, 7, 12804, 43879, 4008, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 2178, 328, 11, 53, 1142, 23, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 2178, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 1540, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 1279, 352, 68, 12, 940, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 11848, 328, 11, 53, 1142, 23, 22784, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 11848, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 5288, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 764, 27, 352, 68, 12, 940, 8, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 53, 1142, 23, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 31, 9288, 4129, 7, 34453, 16, 8, 6624, 4129, 7, 34453, 17, 8, 198, 198, 21017, 27704, 23, 3419, 198, 198, 67, 912, 796, 352, 13, 1003, 17, 13, 61, 7, 18, 21912, 16, 25, 16, 8, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 2178, 328, 11, 6322, 23, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 23, 8, 1279, 1332, 51, 349, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 11848, 328, 11, 6322, 23, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 23, 8, 1279, 1332, 51, 349, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 388, 11, 6322, 23, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 388, 11, 6322, 23, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 2, 10358, 307, 10411, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 388, 11, 6322, 23, 28955, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 388, 11, 67, 404, 23, 4310, 28955, 198, 198, 31, 9288, 1540, 16, 13, 83, 15139, 230, 1540, 17, 13, 83, 198, 198, 2, 10358, 307, 10411, 198, 34453, 16, 796, 82, 6442, 7, 1676, 11848, 328, 11, 6322, 23, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 11848, 328, 11, 67, 404, 23, 4310, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 31, 9288, 1540, 16, 13, 83, 15139, 230, 1540, 17, 13, 83, 198, 198, 21017, 13146, 270, 47, 499, 23, 3419, 198, 198, 67, 912, 796, 352, 13, 1003, 17, 13, 61, 7, 21, 21912, 16, 25, 18, 8, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 2178, 328, 11, 33758, 270, 47, 499, 23, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 23, 8, 1279, 1332, 51, 349, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 11848, 328, 11, 33758, 270, 47, 499, 23, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 23, 8, 1279, 1332, 51, 349, 198, 198, 8658, 14016, 796, 11884, 49, 42, 7, 11487, 559, 28, 41571, 33758, 270, 454, 292, 47, 499, 461, 455, 292, 23, 7, 12804, 43879, 4008, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 2178, 328, 11, 33758, 270, 47, 499, 23, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 2178, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 1540, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 1279, 352, 68, 12, 940, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 11848, 328, 11, 33758, 270, 47, 499, 23, 22784, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 11848, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 5288, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 60, 764, 27, 352, 68, 12, 940, 8, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 65, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 65, 11, 33758, 270, 47, 499, 23, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 31, 9288, 4129, 7, 34453, 16, 8, 6624, 4129, 7, 34453, 17, 8, 198, 198, 21017, 23092, 24, 3419, 198, 198, 67, 912, 796, 352, 13, 1003, 17, 13, 61, 7, 21, 21912, 16, 25, 18, 8, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 9374, 2178, 328, 11, 53, 1142, 24, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 24, 8, 1279, 1332, 51, 349, 198, 14323, 796, 1332, 62, 1102, 332, 12745, 7, 67, 912, 11, 1676, 11848, 328, 11, 53, 1142, 24, 28955, 198, 31, 9288, 2352, 7, 14323, 13, 47728, 240, 103, 395, 58, 25, 75, 17, 45297, 24, 8, 1279, 1332, 51, 349, 628, 198, 8658, 14016, 796, 11884, 49, 42, 7, 11487, 559, 28, 41571, 13414, 1008, 36, 5632, 24, 7, 12804, 43879, 4008, 198, 34453, 16, 796, 82, 6442, 7, 1676, 9374, 2178, 328, 11, 53, 1142, 24, 22784, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 9374, 2178, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 2352, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 12962, 1279, 352, 68, 12, 1314, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 11848, 328, 11, 53, 1142, 24, 22784, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 11848, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 18, 11, 42552, 425, 28, 9562, 11, 21928, 62, 22355, 10640, 28, 9562, 8, 198, 198, 31, 9288, 5288, 7, 8937, 7, 34453, 16, 13, 84, 58, 437, 60, 532, 1540, 17, 13, 84, 58, 437, 12962, 764, 27, 352, 68, 12, 1314, 8, 198, 198, 34453, 16, 796, 82, 6442, 7, 1676, 11848, 328, 11, 8658, 14016, 11, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 34453, 17, 796, 82, 6442, 7, 1676, 11848, 328, 11, 53, 1142, 24, 22784, 28664, 28, 16, 14, 17, 61, 21, 8, 198, 198, 31, 9288, 4129, 7, 34453, 16, 8, 6624, 4129, 7, 34453, 17, 8, 198 ]
1.98627
4,734
module Parab export len_curve function len_curve(n) # Parameters f = x -> x^2 a = 0 b = 1 # Calculation sum = 0 h = (b-a)/n h² = h^2 x0 = a f0 = f(x0) for i in 1:n x1 = a*(1-i/n) + b*(i/n) # no rounding error by added many h f1 = f(x1) sum += sqrt((f1-f0)^2+h²) x0, f0 = x1, f1 end sum end end
[ 21412, 2547, 397, 198, 220, 220, 220, 10784, 18896, 62, 22019, 303, 628, 220, 220, 220, 2163, 18896, 62, 22019, 303, 7, 77, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 40117, 198, 220, 220, 220, 220, 220, 220, 220, 277, 796, 2124, 4613, 2124, 61, 17, 198, 220, 220, 220, 220, 220, 220, 220, 257, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 275, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2199, 14902, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 289, 796, 357, 65, 12, 64, 20679, 77, 198, 220, 220, 220, 220, 220, 220, 220, 289, 31185, 796, 289, 61, 17, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 15, 796, 257, 198, 220, 220, 220, 220, 220, 220, 220, 277, 15, 796, 277, 7, 87, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 352, 25, 77, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 16, 796, 257, 9, 7, 16, 12, 72, 14, 77, 8, 1343, 275, 9, 7, 72, 14, 77, 8, 1303, 645, 38185, 4049, 416, 2087, 867, 289, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 16, 796, 277, 7, 87, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2160, 15853, 19862, 17034, 19510, 69, 16, 12, 69, 15, 8, 61, 17, 10, 71, 31185, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 15, 11, 277, 15, 796, 2124, 16, 11, 277, 16, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 198, 220, 220, 220, 886, 198, 198, 437 ]
1.514851
303
using LightGraphs using BALUtils using StaticGraphs ba = readbal(ARGS[1]) dia = diameter(StaticGraph(Graph(visibility_graph(ba)))) open(ARGS[2], "w") do io write(io, "diameter\n$dia\n") end
[ 3500, 4401, 37065, 82, 198, 3500, 48091, 18274, 4487, 198, 3500, 36125, 37065, 82, 198, 198, 7012, 796, 1100, 6893, 7, 1503, 14313, 58, 16, 12962, 198, 67, 544, 796, 14753, 7, 45442, 37065, 7, 37065, 7, 4703, 2247, 62, 34960, 7, 7012, 35514, 198, 9654, 7, 1503, 14313, 58, 17, 4357, 366, 86, 4943, 466, 33245, 198, 220, 220, 220, 3551, 7, 952, 11, 366, 67, 13173, 59, 77, 3, 67, 544, 59, 77, 4943, 198, 437, 198 ]
2.468354
79
n = 2 μ0 = zeros(n) P0 = Diagonal(ones(n)) x0 = resample(μ0, P0, 1.0) β = 10.0 μ1 = sample_mean(x0) P1 = sample_covariance(x0, β) A = Diagonal(ones(n)) B = zeros(n) x1 = [] u0 = rand(1) for j = 1:2n push!(x1, A * x0[j] + B * u0[1]) end A' * P0 * A β = 10.0 μ1 = sample_mean(x1) P1 = sample_covariance(x1, β)
[ 77, 796, 362, 198, 34703, 15, 796, 1976, 27498, 7, 77, 8, 198, 47, 15, 796, 6031, 27923, 7, 1952, 7, 77, 4008, 198, 198, 87, 15, 796, 581, 1403, 7, 34703, 15, 11, 350, 15, 11, 352, 13, 15, 8, 198, 198, 26638, 796, 838, 13, 15, 198, 34703, 16, 796, 6291, 62, 32604, 7, 87, 15, 8, 198, 47, 16, 796, 6291, 62, 66, 709, 2743, 590, 7, 87, 15, 11, 27169, 8, 198, 198, 32, 796, 6031, 27923, 7, 1952, 7, 77, 4008, 198, 33, 796, 1976, 27498, 7, 77, 8, 198, 198, 87, 16, 796, 17635, 198, 84, 15, 796, 43720, 7, 16, 8, 198, 1640, 474, 796, 352, 25, 17, 77, 198, 197, 14689, 0, 7, 87, 16, 11, 317, 1635, 2124, 15, 58, 73, 60, 1343, 347, 1635, 334, 15, 58, 16, 12962, 198, 437, 198, 198, 32, 6, 1635, 350, 15, 1635, 317, 198, 26638, 796, 838, 13, 15, 198, 34703, 16, 796, 6291, 62, 32604, 7, 87, 16, 8, 198, 47, 16, 796, 6291, 62, 66, 709, 2743, 590, 7, 87, 16, 11, 27169, 8, 198 ]
1.706522
184
mutable struct TServerBase srvr_t::TServerTransport processor::TProcessor in_t::Function in_p::Function out_t::Function out_p::Function end function serve_accepted(client::TTransport, s::TServerBase) itrans = s.in_t(client) otrans = s.out_t(client) iprot = s.in_p(itrans) oprot = s.out_p(otrans) try while true process(s.processor, iprot, oprot) end catch ex if !isa(ex, EOFError) println(ex) Base.show_backtrace(stderr, catch_backtrace()) end end close(itrans) close(otrans) end close(srvr::TServer) = close(srvr.base.srvr_t) ## # Blocking server. Requests are processed in the main task. mutable struct TSimpleServer <: TServer base::TServerBase TSimpleServer(srvr_t::TServerTransport, processor::TProcessor, in_t::Function, in_p::Function, out_t::Function, out_p::Function) = new(TServerBase(srvr_t, processor, in_t, in_p, out_t, out_p)) end function serve(ss::TSimpleServer) s = ss.base listen(s.srvr_t) while true client = accept(s.srvr_t) serve_accepted(client, s) end end ## # Task server. Tasks are spawned for each connection. mutable struct TTaskServer <: TServer base::TServerBase TTaskServer(srvr_t::TServerTransport, processor::TProcessor, in_t::Function, in_p::Function, out_t::Function, out_p::Function) = new(TServerBase(srvr_t, processor, in_t, in_p, out_t, out_p)) end ## # Process Pool Server mutable struct TProcessPoolServer <: TServer base::TServerBase function TProcessPoolServer(srvr_t::TServerTransport, processor::TProcessor, in_t::Function, in_p::Function, out_t::Function, out_p::Function) distribute(processor) new(TServerBase(srvr_t, processor, in_t, in_p, out_t, out_p)) end end const TAsyncServer = Union{TTaskServer, TProcessPoolServer} function serve(ss::TAsyncServer) s = ss.base listen(s.srvr_t) while true client = accept(s.srvr_t) @async serve_accepted(client, s) end end
[ 198, 76, 18187, 2878, 309, 10697, 14881, 198, 220, 220, 220, 19677, 37020, 62, 83, 3712, 4694, 18497, 8291, 634, 198, 220, 220, 220, 12649, 3712, 51, 18709, 273, 198, 220, 220, 220, 287, 62, 83, 3712, 22203, 198, 220, 220, 220, 287, 62, 79, 3712, 22203, 198, 220, 220, 220, 503, 62, 83, 3712, 22203, 198, 220, 220, 220, 503, 62, 79, 3712, 22203, 198, 437, 198, 198, 8818, 4691, 62, 13635, 276, 7, 16366, 3712, 51, 8291, 634, 11, 264, 3712, 4694, 18497, 14881, 8, 198, 220, 220, 220, 340, 26084, 796, 264, 13, 259, 62, 83, 7, 16366, 8, 198, 220, 220, 220, 267, 7645, 796, 264, 13, 448, 62, 83, 7, 16366, 8, 198, 220, 220, 220, 20966, 10599, 796, 264, 13, 259, 62, 79, 7, 270, 26084, 8, 198, 220, 220, 220, 1034, 10599, 796, 264, 13, 448, 62, 79, 7, 313, 26084, 8, 628, 220, 220, 220, 1949, 198, 220, 220, 220, 220, 220, 220, 220, 981, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1429, 7, 82, 13, 41341, 11, 20966, 10599, 11, 1034, 10599, 8, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 4929, 409, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5145, 9160, 7, 1069, 11, 412, 19238, 12331, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44872, 7, 1069, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7308, 13, 12860, 62, 1891, 40546, 7, 301, 1082, 81, 11, 4929, 62, 1891, 40546, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 886, 198, 220, 220, 220, 886, 198, 220, 220, 220, 1969, 7, 270, 26084, 8, 198, 220, 220, 220, 1969, 7, 313, 26084, 8, 198, 437, 198, 198, 19836, 7, 27891, 37020, 3712, 4694, 18497, 8, 796, 1969, 7, 27891, 37020, 13, 8692, 13, 27891, 37020, 62, 83, 8, 198, 198, 2235, 198, 2, 1086, 8629, 4382, 13, 9394, 3558, 389, 13686, 287, 262, 1388, 4876, 13, 198, 76, 18187, 2878, 309, 26437, 10697, 1279, 25, 309, 10697, 198, 220, 220, 220, 2779, 3712, 4694, 18497, 14881, 198, 220, 220, 220, 309, 26437, 10697, 7, 27891, 37020, 62, 83, 3712, 4694, 18497, 8291, 634, 11, 12649, 3712, 51, 18709, 273, 11, 287, 62, 83, 3712, 22203, 11, 287, 62, 79, 3712, 22203, 11, 503, 62, 83, 3712, 22203, 11, 503, 62, 79, 3712, 22203, 8, 796, 649, 7, 4694, 18497, 14881, 7, 27891, 37020, 62, 83, 11, 12649, 11, 287, 62, 83, 11, 287, 62, 79, 11, 503, 62, 83, 11, 503, 62, 79, 4008, 198, 437, 198, 198, 8818, 4691, 7, 824, 3712, 4694, 320, 1154, 10697, 8, 198, 220, 220, 220, 264, 796, 37786, 13, 8692, 198, 220, 220, 220, 6004, 7, 82, 13, 27891, 37020, 62, 83, 8, 628, 220, 220, 220, 981, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 5456, 796, 2453, 7, 82, 13, 27891, 37020, 62, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4691, 62, 13635, 276, 7, 16366, 11, 264, 8, 198, 220, 220, 220, 886, 198, 437, 628, 198, 198, 2235, 198, 2, 15941, 4382, 13, 309, 6791, 389, 29013, 329, 1123, 4637, 13, 198, 76, 18187, 2878, 309, 25714, 10697, 1279, 25, 309, 10697, 198, 220, 220, 220, 2779, 3712, 4694, 18497, 14881, 198, 220, 220, 220, 309, 25714, 10697, 7, 27891, 37020, 62, 83, 3712, 4694, 18497, 8291, 634, 11, 12649, 3712, 51, 18709, 273, 11, 287, 62, 83, 3712, 22203, 11, 287, 62, 79, 3712, 22203, 11, 503, 62, 83, 3712, 22203, 11, 503, 62, 79, 3712, 22203, 8, 796, 649, 7, 4694, 18497, 14881, 7, 27891, 37020, 62, 83, 11, 12649, 11, 287, 62, 83, 11, 287, 62, 79, 11, 503, 62, 83, 11, 503, 62, 79, 4008, 198, 437, 198, 198, 2235, 198, 2, 10854, 19850, 9652, 198, 76, 18187, 2878, 309, 18709, 27201, 10697, 1279, 25, 309, 10697, 198, 220, 220, 220, 2779, 3712, 4694, 18497, 14881, 198, 220, 220, 220, 2163, 309, 18709, 27201, 10697, 7, 27891, 37020, 62, 83, 3712, 4694, 18497, 8291, 634, 11, 12649, 3712, 51, 18709, 273, 11, 287, 62, 83, 3712, 22203, 11, 287, 62, 79, 3712, 22203, 11, 503, 62, 83, 3712, 22203, 11, 503, 62, 79, 3712, 22203, 8, 220, 198, 220, 220, 220, 220, 220, 220, 220, 14983, 7, 41341, 8, 198, 220, 220, 220, 220, 220, 220, 220, 649, 7, 4694, 18497, 14881, 7, 27891, 37020, 62, 83, 11, 12649, 11, 287, 62, 83, 11, 287, 62, 79, 11, 503, 62, 83, 11, 503, 62, 79, 4008, 198, 220, 220, 220, 886, 198, 437, 198, 198, 9979, 309, 42367, 10697, 796, 4479, 90, 15751, 2093, 10697, 11, 309, 18709, 27201, 10697, 92, 198, 198, 8818, 4691, 7, 824, 3712, 51, 42367, 10697, 8, 198, 220, 220, 220, 264, 796, 37786, 13, 8692, 198, 220, 220, 220, 6004, 7, 82, 13, 27891, 37020, 62, 83, 8, 628, 220, 220, 220, 981, 2081, 198, 220, 220, 220, 220, 220, 220, 220, 5456, 796, 2453, 7, 82, 13, 27891, 37020, 62, 83, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 292, 13361, 4691, 62, 13635, 276, 7, 16366, 11, 264, 8, 198, 220, 220, 220, 886, 198, 437, 628 ]
2.343182
880
# This file provide abstraction around performing linear solves (Ax = b) # and concrete implementations using Dense matrices, SparseMatrixCSC, and # Petsc (both matrix-explicit and matrix-free) module LinearSolvers export LinearSolver, StandardLinearSolver, # Linear Solver types calcPC, calcLinearOperator, calcPCandLO, # Linear Solver interface applyPC, applyPCTranspose, linearSolve, linearSolveTranspose, isLOMatFree, isPCMatFree, setTolerances, free, # utility functions applyLinearOperator, applyLinearOperatorTranspose, # LO functions getBaseLO, getBasePC, getBaseObject, PCNone, PetscMatPC, PetscMatFreePC, # PC types DenseLO, SparseDirectLO, PetscMatLO, PetscMatFreeLO, # LO types AbstractPC, AbstractPetscMatPC, AbstractPetscMatFreePC,# Abstract PC types AbstractPetscPC, getInnerPC, AbstractLO, AbstractDenseLO, AbstractSparseDirectLO, # Abstrac LO types AbstractPetscMatLO, AbstractPetscMatFreeLO, getInnerLO, setPCCtx, setLOCtx, # matrix-free specific functions needParallelData using PDESolver using ODLCommonTools using Utils using SummationByParts using Base.LinAlg.BLAS using MPI using PETSc2 using Jacobian import Utils.free # import SuiteSparse stuff import Base.SparseArrays.UMFPACK: UmfpackLU, umfpack_free_numeric, umfpack_free_symbolic, umfpack_symbolic!, umfpack_numeric! """ Abstract supertype of all linear solvers. The [`StandardLinearSolver`](@ref) implementation should be general enough for everything we do. The purpose of this type is to provide a unified interface for managing a linear solve, including preconditioning if needed. Many of the operations on this type are delegated to the pc and lo objects. The [`AbstractPC`](@ref) and [`AbstractLO`](@ref) types defined in this module are suitible for solving Ax = b when A is the Jacobian of the physics. Other methods (for example, unsteady time marching or homotopy methods) should build their own AbstractPC and AbstractLO objects and use them with [`StandardLinearSolver`](@ref). **Required Fields** * pc: an [`AbstractPC`](@ref) object * lo: an [`AbstractLO`](@ref) object * shared_mat: Bool, true if pc and lo share the same matrix object false otherwise (either different matrix objects or matrix-free) **Static Parameters** * T1: type of pc * T2: type of lo """ abstract type LinearSolver{T1, T2} end """ The most commonly used implementation of [`LinearSolver`](@ref). """ mutable struct StandardLinearSolver{T1, T2} <: LinearSolver{T1, T2} pc::T1 lo::T2 shared_mat::Bool comm::MPI.Comm myrank::Int commsize::Int ksp::KSP # used only for Petsc matrices is_finalized::Bool # tolerances for iterative solve reltol::PetscReal abstol::PetscReal dtol::PetscReal itermax::PetscInt end """ Constructor for StandardLinearSolver. **Inputs** * pc: an [`AbstractPC`](@ref), fully initialized * lo: an [`AbstractLO`](@ref), fully initialized * comm: the MPI communicator the pc and lo are defined on * opts: options dictionary This function throws exceptions if incompatible pc and lo types are used. **Options Keys** This function uses: "krylov_reltol", "krylov_abstol", "krylov_dtol", and "krylov_itermax" """ function StandardLinearSolver(pc::T1, lo::T2, comm::MPI.Comm, opts) where {T1, T2} if typeof(lo) <: DirectLO @assert typeof(pc) <: PCNone end if typeof(lo) <: PetscLO @assert typeof(pc) <: Union{AbstractPetscMatPC, AbstractPetscMatFreePC} end pc2 = getBasePC(pc) lo2 = getBaseLO(lo) if typeof(pc2) <: PetscMatPC && typeof(lo2) <: PetscMatLO if pc2.A.pobj == lo2.A.pobj shared_mat = true else shared_mat = false end else shared_mat = false end myrank = MPI.Comm_rank(comm) commsize = MPI.Comm_size(comm) if typeof(lo) <: PetscLO ksp = createKSP(pc2, lo2, comm) else ksp = KSP_NULL end is_finalized = false reltol = opts["krylov_reltol"] abstol = opts["krylov_abstol"] dtol = opts["krylov_dtol"] itermax = opts["krylov_itermax"] ls = StandardLinearSolver{T1, T2}(pc, lo, shared_mat, comm, myrank, commsize, ksp, is_finalized, reltol, abstol, dtol, itermax) finalizer(ls, free) return ls end """ Abstract supertype of all preconditioner types. Preconditioners can be used with iterative methods only. When using a direct method, [`PCNone`](@ref) should be used. The purpose of this type is to provide a consistent interface for different types of preconditioners. In particular, it provides control over when the preconditioner is recomputed. Users should implement new preconditioners using composition with one of the preconditioners defined here, namely [`PetscMatPC`](@ref) or [`PetscMatFreePC`](@ref), ie. they should define a new subtype of [`AbstractPC`](@ref) that has either `PetscMatPC` or `PetscMatFrePC` as a field. This allows calling the existing functions for these types (which compute a preconditioner for the Jacobian of the physics) and modifying the preconditioner as needed. User defined preconditioners should subtype either [`AbstractPetscMatPC`](@ref) of [`AbstractPetscMatFreePC`](@ref). **Fields** * pc_inner: another [`AbstractPC`](@ref) Note that arbitrarily deep nesting of preconditioners is allowed. The `pc_inner` field can be one of [`PCNone`](@ref), [`PetscMatPC`](@ref), or [`PetscMatFreePC`](@ref) for a non-nested preconditioner, or some other [`AbstractPC`](@ref) for a nested preconditioner. """ abstract type AbstractPC end """ Abstract supertype of all Petsc matrix-explicit preconditioners """ abstract type AbstractPetscMatPC <: AbstractPC end """ Abstract supertype of all Petsc matrix-free preconditioners. """ abstract type AbstractPetscMatFreePC <: AbstractPC end """ Alias for any kind of Petsc PC (matrix-explicit or matrix-free) """ const AbstractPetscPC = Union{AbstractPetscMatPC, AbstractPetscMatFreePC} # PC interface """ This function calculates the preconditioner. Every implementation of [`AbstractPC`](@ref) should extend this function with a new method When creating new preconditioners, this function should generally be called first on pc_inner, and modifications to the Jacobian should be made subsequently. **Inputs** * pc: the AbstractPC implementation * mesh * sbp * eqn * opts * ctx_residual: the ctx required by [`physicsRhs`](@ref) * t: current time Implementation Notes: For matrix-explicit preconditioners, this might not actually calculate the preconditioner. Rather, it calculates the matrix the preconditioner is based on, and the solve function calcultes the preconditioner from it. Nevertheless, it supports the proper semantics for when the PC is updated even when the PC matrix and LinearOperator matrix are the same (as long as the solve function is called regularly). """ function calcPC(pc::AbstractPC, mesh::AbstractMesh, sbp::AbstractOperator, eqn::AbstractSolutionData, opts::Dict, ctx_residual, t) error("reached AbstractPC calcPC(), did you forget to define calcPC() for your AbstractPC implementation?") end """ Applies the preconditioner, ie. x = inv(Ap)*b, where Ap is the approximation to the matrix A. Note that Ap itself may not be available for some preconditioners, hence there is only an API for applying inv(Ap), not Ap itself. Matrix-free preconditioners need to extend this function with a new method, matrix-explicit preconditioners do not. **Inputs** * pc: the [`AbstractPC`](@ref) implementation. * mesh * sbp * eqn: this argument should generally not be used because all the solution related data should be stored in the pc object by [`calcPC`](@ref) * opts * t: current time * b: a AbstractVector representing the local part of the solution (ie eqn.q_vec) **Inputs/Outputs** * x: AbstractVector overwritten with result (same size as b). Some preconditioners may use the value of `x` on entry as the initial guess. """ function applyPC(pc::AbstractPC, mesh::AbstractMesh, sbp::AbstractOperator, eqn::AbstractSolutionData, opts::Dict, t, b::AbstractVector, x::AbstractVector) error("reached AbstractPC applyPC(), did you forget to define applyPC() for your AbstractPC implementation?") end """ Applies the transpose of the preconditioner, ie. x = inv(Ap).'*b. Similar to [`applyPC`](@ref), see that function for details. Note that not every preconditioning method supports this. """ function applyPCTranspose(pc::AbstractPC, mesh::AbstractMesh, sbp::AbstractOperator, eqn::AbstractSolutionData, opts::Dict, t, b::AbstractVector, x::AbstractVector) error("reached AbstractPC applyPCTranspose(), did you forget to define applyPCTranspose() for your AbstractPC implementation?") end """ This function returns the underlying preconditioner object, ie. [`PCNone`](@ref), [`PetscMatPC`](@ref), or [`PetscMatFreePC`](@ref). Note that arbitrarily deep nesting of preconditioners is allowed. Users do not have to implement as long as the nested preconditioner is stored in a field called `pc_inner`. For matrix-explicit preconditioners, this function is useful for getting the [`PetscMatPC`](@ref) object, which contains the preconditioning Jacobian matrix. **Inputs** * pc: the users [`AbstractPC`](@ref) """ function getBasePC(pc::AbstractPC) # this will recurse all the way down to the underyling pc, which returns # itself return getBasePC(pc.pc_inner) end """ This function allows extracting a specific type of pc_inner. Note: this is not type-stable in julia 0.4, but can be rewritten to be so in later version of Julia **Inputs** * pc: a PC * T2: a (possibly abstract) type that is contained as an inner PC somewhere inside pc. **Outputs** * pc2: a PC that is a subtype of PC2 """ function getInnerPC(pc::T1, ::Type{T2}) where {T1 <: AbstractPC, T2} # can't have T2 <: AbstractPC because that would preclude Unions like # NewtonLinearObject # if T1 <: T2 return pc else return getInnerPC(pc.pc_inner, T2) end error("unreachable reached") end #= # This is broken on Julia 0.6 # T1 <: T2 implies T1 == T2 when T1 and T2 are concrete function getInnerPC(pc::T1, ::Type{T2}) where {T2 <: AbstractPC, T1 <: T2} return pc end function getInnerPC(pc::T1, ::Type{T2}) where {T1 <:AbstractPC, T2 <: AbstractPC} return getInnerPC(pc.pc_inner, T2) end =# """ Returns `true` if `calcPC` needs parallel communication started before it is called, false otherwise. Defaults to true. Users should extend this function with a new method if that particular PC does not require parallel communication. **Inputs** * pc: an `AbstractPC **Outputs** * Bool """ function needParallelData(pc::AbstractPC) return true end """ This function frees any memory belonging to external libraries. Users must call this function when they are finished with an AbstractPC object. Users do not have to define this function for their [`AbstractPC`](@ref) types. **Inputs** * pc: the AbstractPC object """ function free(pc::AbstractPC) free(getBasePC(pc)) end # LinearOperator interface """ Abstract supertype of all linear operators used for A when solving Ax = b. The purpose of this type is to provide a consistent interface for different types of linear operators. This type really combines two notions: what the type of the linear operator is, and how it should be solved. Any implementation of this type should subtype the appropriate catagory of: [`AbstractDenseLO`](@ref), [`AbstractSparseDirectLO`](@ref), [`AbstractPetscMatLO`](@ref), [`AbstractPetscMatFreeLO`](@ref) Note that matrix-explicit implementations can often write a single function for all these cases if using an matrix interface functions that are defined for all the matrix types. See [`MatExplicitLO`](@ref) **Required Fields** * lo_inner: another `AbstractPC`. Can be one of [`DenseLO`](@ref), [`SparseDirectLO`](@ref), [`PetscMatLO`](@ref), or [`PetscMatFreeLO`](@ref), or any other user defined linear operator. """ abstract type AbstractLO end #TODO: doc these """ Linear operator type for Dense matrices. This is generally used only for debugging. """ abstract type AbstractDenseLO <: AbstractLO end """ Linear operator type for `SparseMatrixCSC` matrices, which use a direct solver. """ abstract type AbstractSparseDirectLO <: AbstractLO end """ Linear operator type for Petsc matrix-explicit. """ abstract type AbstractPetscMatLO <: AbstractLO end """ Linear operator type for Petsc matrix-free. """ abstract type AbstractPetscMatFreeLO <: AbstractLO end """ Useful union for all the matrix-explicit linear operator types. Because matrices have a small set of common interface functions, it is often possible to write a single function that works on all the different types of matrices. """ const MatExplicitLO = Union{AbstractDenseLO, AbstractSparseDirectLO, AbstractPetscMatLO} """ Union of Petsc linear operator types """ const PetscLO = Union{AbstractPetscMatLO, AbstractPetscMatFreeLO} """ Union of linear operators that do direct solves """ const DirectLO = Union{AbstractDenseLO, AbstractSparseDirectLO} """ This function calculates the linear operator. Every implementation of [`AbstractLO`](@ref) should extend this function with a new method. For matrix-free operators, this function must exist but need not perform any actions. For matrix-explicit implementations, this function should be called on `lo_inner` first and modifications to the Jacobian made subsequently. **Inputs** * lo: the AbstractLO implementation (fields may be updated) * mesh * sbp * eqn * opts * ctx_residual: the ctx required by [`physicsRhs`](@ref) * t: current time Implementation Notes: For matrix-free operation, this function sets the Petsc ctx for the PetscMat, which contains a reference to the mesh, sbp, eqn, opts arguments. This could lead to unexpected behavior if those arguments are modified and this function is not called again before the next solve. """ function calcLinearOperator(lo::AbstractLO, mesh::AbstractMesh, sbp::AbstractOperator, eqn::AbstractSolutionData, opts::Dict, ctx_residual, t) error("reached AbstractLO calcLinearOperator(), did you forget to define calcLinearOperator() for your AbstractLO implementation?") end """ Applies the linear operator, ie. , Ax = b Matrix-explicit implementations [`AbstractLO`](@ref) do not have to implement this function, though matrix-free implementations must extend it with a new method. **Inputs** * lo: the [`AbstractLO`](@ref) implementation. * mesh * sbp * eqn * opts * ctx_residual: the ctx for [`physicsRhs`](@ref) or the another right hand side function built on top of it * t: current time * x: an AbstractVector (although never a PetscVec) **Inputs/Outputs** * b: vector updated with results (do not overwrite) """ function applyLinearOperator(lo::AbstractLO, mesh::AbstractMesh, sbp::AbstractOperator, eqn::AbstractSolutionData, opts::Dict, ctx_residual, t, x::AbstractVector, b::AbstractVector) error("reached AbstractLO applyLinearOperator(), did you forget to define applyLinearOperator() for your AbstractLO implementation?") end """ Applies the transpose of the linear operator, ie. A.'*x = b Similar to [`applyLinearOperator`](@ref), see that function for details. Note that not every method supports this. In particular, Petsc matrix-free LinearOperators don't currently expose this (although they could with enough reverse-mode) """ function applyLinearOperatorTranspose(lo::AbstractLO, mesh::AbstractMesh, sbp::AbstractOperator, eqn::AbstractSolutionData, opts::Dict, ctx_residual, t, x::AbstractVector, b::AbstractVector) error("reached AbstractLO applyLinearOperatorTranspose(), did you forget to define applyLinearOperatorTranspose() for your AbstractLO implementation?") end """ Similar to [`getBasePC`](@ref) except it gets the underlying linear operator, ie. one of [`DenseLO`](@ref), [`SparseDirectLO`](@ref), [`PetscMatLO`](@ref) or [`PetscMatFreeLO`](@ref). For matrix-explicit methods, this is a good way of getting the underlying linear operator object, which contains the matrix in the `A` field (for all matrix-explicit linear operators). **Inputs** * lo: an AbstractLO """ function getBaseLO(lo::AbstractLO) # this will recurse down to the underlying linear operator return getBaseLO(lo.lo_inner) end """ This function calls either [`getBasePC`](@ref) or [`getBaseLO`](@ref) depending on the type of its argument. **Inputs** * lo: either an `AbstractLO` or `AbstractPC` object **Outputs** * the base PC or LO object """ function getBaseObject(lo::AbstractLO) return getBaseLO(lo) end function getBaseObject(pc::AbstractPC) return getBasePC(pc) end """ Like [`getInnerPC`](@ref), but for linear operators """ function getInnerLO(lo::T1, ::Type{T2}) where {T1 <: AbstractLO, T2} # can't have T2 <: AbstractLO because that would precude Unions like # NewtonLinearOperators if T1 <: T2 return lo else return getInnerLO(lo.lo_inner, T2) end error("unreachable reached") end """ Returns `true` if [`calcLinearOperator`](@ref) needs parallel communication started before it is called, false otherwise. Defaults to true for non-matrix-free linear operators. Users should extend this function with a new method if the default value is not correct for a particular linear operator. **Inputs** * lo: an `AbstractLO **Outputs** * Bool """ function needParallelData(pc::AbstractLO) return true end function needParallelData(lo::AbstractPetscMatFreeLO) return false end """ This function frees any memory belonging to external libraries. Users must call this function when they are finished with an AbstractLO object. Users do not have to define this function for their [`AbstractLO`](@ref) types. **Inputs** * lo: the AbstractLO object """ function free(lo::AbstractLO) free(getBaseLO(lo)) end # include implementations include("pc_none.jl") include("pc_petscmat.jl") include("pc_petscmatfree.jl") include("lo_dense.jl") include("lo_sparsedirect.jl") include("lo_petscmat.jl") include("lo_petscmatfree.jl") include("ls_standard.jl") include("utils.jl") end # end module
[ 2, 770, 2393, 2148, 34651, 1088, 9489, 14174, 39107, 357, 31554, 796, 275, 8, 198, 2, 290, 10017, 25504, 1262, 360, 1072, 2603, 45977, 11, 1338, 17208, 46912, 34, 6173, 11, 290, 198, 2, 43578, 66, 357, 16885, 17593, 12, 20676, 3628, 290, 17593, 12, 5787, 8, 198, 198, 21412, 44800, 36949, 690, 198, 198, 39344, 44800, 50, 14375, 11, 8997, 14993, 451, 50, 14375, 11, 220, 1303, 44800, 4294, 332, 3858, 198, 220, 220, 220, 220, 220, 220, 42302, 5662, 11, 42302, 14993, 451, 18843, 1352, 11, 42302, 5662, 392, 21982, 11, 1303, 44800, 4294, 332, 7071, 198, 220, 220, 220, 220, 220, 220, 4174, 5662, 11, 4174, 5662, 8291, 3455, 11, 220, 198, 220, 220, 220, 220, 220, 220, 14174, 50, 6442, 11, 14174, 50, 6442, 8291, 3455, 11, 220, 198, 220, 220, 220, 220, 220, 220, 318, 43, 2662, 265, 11146, 11, 318, 5662, 19044, 11146, 11, 900, 51, 13625, 1817, 11, 1479, 11, 220, 1303, 10361, 5499, 198, 220, 220, 220, 220, 220, 220, 4174, 14993, 451, 18843, 1352, 11, 4174, 14993, 451, 18843, 1352, 8291, 3455, 11, 220, 1303, 17579, 5499, 198, 220, 220, 220, 220, 220, 220, 651, 14881, 21982, 11, 651, 14881, 5662, 11, 651, 14881, 10267, 11, 198, 220, 220, 220, 220, 220, 220, 4217, 14202, 11, 43578, 66, 19044, 5662, 11, 43578, 66, 19044, 11146, 5662, 11, 220, 1303, 4217, 3858, 198, 220, 220, 220, 220, 220, 220, 360, 1072, 21982, 11, 1338, 17208, 13470, 21982, 11, 43578, 66, 19044, 21982, 11, 43578, 66, 19044, 11146, 21982, 11, 220, 1303, 17579, 3858, 198, 220, 220, 220, 220, 220, 220, 27741, 5662, 11, 27741, 47, 1039, 66, 19044, 5662, 11, 27741, 47, 1039, 66, 19044, 11146, 5662, 11, 2, 27741, 4217, 3858, 198, 220, 220, 220, 220, 220, 220, 27741, 47, 1039, 66, 5662, 11, 651, 818, 1008, 5662, 11, 198, 220, 220, 220, 220, 220, 220, 27741, 21982, 11, 27741, 35, 1072, 21982, 11, 27741, 50, 29572, 13470, 21982, 11, 1303, 2275, 2536, 330, 17579, 3858, 198, 220, 220, 220, 220, 220, 220, 27741, 47, 1039, 66, 19044, 21982, 11, 27741, 47, 1039, 66, 19044, 11146, 21982, 11, 651, 818, 1008, 21982, 11, 198, 220, 220, 220, 220, 220, 220, 900, 47, 4093, 17602, 11, 900, 29701, 17602, 11, 220, 1303, 17593, 12, 5787, 2176, 5499, 198, 220, 220, 220, 220, 220, 220, 761, 10044, 29363, 6601, 628, 198, 198, 3500, 14340, 1546, 14375, 198, 3500, 31245, 5639, 2002, 261, 33637, 198, 3500, 7273, 4487, 198, 3500, 5060, 76, 341, 3886, 42670, 198, 3500, 7308, 13, 14993, 2348, 70, 13, 9148, 1921, 198, 3500, 4904, 40, 198, 3500, 32043, 3351, 17, 198, 3500, 12806, 666, 198, 198, 11748, 7273, 4487, 13, 5787, 198, 2, 1330, 26264, 50, 29572, 3404, 198, 11748, 7308, 13, 50, 29572, 3163, 20477, 13, 5883, 5837, 8120, 25, 21039, 69, 8002, 41596, 11, 23781, 69, 8002, 62, 5787, 62, 77, 39223, 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, 23781, 69, 8002, 62, 5787, 62, 1837, 2022, 4160, 11, 23781, 69, 8002, 62, 1837, 2022, 4160, 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, 220, 220, 220, 220, 220, 220, 23781, 69, 8002, 62, 77, 39223, 0, 628, 198, 37811, 198, 220, 27741, 2208, 4906, 286, 477, 14174, 1540, 690, 13, 220, 383, 685, 63, 23615, 14993, 451, 50, 14375, 63, 16151, 31, 5420, 8, 198, 220, 7822, 815, 307, 2276, 1576, 329, 2279, 356, 466, 13, 628, 220, 383, 4007, 286, 428, 2099, 318, 284, 2148, 257, 22706, 7071, 329, 11149, 198, 220, 257, 14174, 8494, 11, 1390, 3718, 623, 653, 278, 611, 2622, 13, 220, 4650, 286, 262, 198, 220, 4560, 319, 428, 2099, 389, 49711, 284, 262, 40653, 290, 2376, 5563, 13, 628, 220, 383, 685, 63, 23839, 5662, 63, 16151, 31, 5420, 8, 290, 685, 63, 23839, 21982, 63, 16151, 31, 5420, 8, 3858, 198, 220, 5447, 287, 428, 8265, 389, 6050, 856, 329, 18120, 12176, 796, 275, 618, 317, 318, 262, 198, 220, 12806, 666, 286, 262, 11887, 13, 220, 3819, 5050, 357, 1640, 1672, 11, 15014, 1329, 88, 640, 26409, 198, 220, 393, 3488, 313, 11081, 5050, 8, 815, 1382, 511, 898, 27741, 5662, 290, 198, 220, 27741, 21982, 5563, 290, 779, 606, 351, 198, 220, 685, 63, 23615, 14993, 451, 50, 14375, 63, 16151, 31, 5420, 737, 628, 220, 12429, 37374, 23948, 1174, 628, 220, 220, 1635, 40653, 25, 281, 685, 63, 23839, 5662, 63, 16151, 31, 5420, 8, 2134, 198, 220, 220, 1635, 2376, 25, 281, 685, 63, 23839, 21982, 63, 16151, 31, 5420, 8, 2134, 198, 220, 220, 1635, 4888, 62, 6759, 25, 220, 347, 970, 11, 2081, 611, 40653, 290, 2376, 2648, 262, 976, 17593, 2134, 3991, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4306, 357, 31336, 1180, 17593, 5563, 393, 17593, 12, 5787, 8, 628, 220, 12429, 45442, 40117, 1174, 628, 220, 220, 1635, 309, 16, 25, 2099, 286, 40653, 198, 220, 220, 1635, 309, 17, 25, 2099, 286, 2376, 198, 37811, 198, 397, 8709, 2099, 44800, 50, 14375, 90, 51, 16, 11, 309, 17, 92, 886, 198, 198, 37811, 198, 220, 383, 749, 8811, 973, 7822, 286, 685, 63, 14993, 451, 50, 14375, 63, 16151, 31, 5420, 737, 198, 37811, 198, 76, 18187, 2878, 8997, 14993, 451, 50, 14375, 90, 51, 16, 11, 309, 17, 92, 1279, 25, 44800, 50, 14375, 90, 51, 16, 11, 309, 17, 92, 198, 220, 40653, 3712, 51, 16, 198, 220, 2376, 3712, 51, 17, 198, 220, 4888, 62, 6759, 3712, 33, 970, 198, 220, 725, 3712, 7378, 40, 13, 6935, 198, 220, 616, 43027, 3712, 5317, 198, 220, 725, 7857, 3712, 5317, 198, 220, 479, 2777, 3712, 42, 4303, 220, 1303, 973, 691, 329, 43578, 66, 2603, 45977, 198, 220, 318, 62, 20311, 1143, 3712, 33, 970, 628, 220, 1303, 8214, 1817, 329, 11629, 876, 8494, 198, 220, 823, 83, 349, 3712, 47, 1039, 66, 15633, 198, 220, 16552, 349, 3712, 47, 1039, 66, 15633, 198, 220, 288, 83, 349, 3712, 47, 1039, 66, 15633, 198, 220, 340, 7780, 897, 3712, 47, 1039, 66, 5317, 198, 437, 628, 198, 37811, 198, 220, 28407, 273, 329, 8997, 14993, 451, 50, 14375, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 40653, 25, 281, 685, 63, 23839, 5662, 63, 16151, 31, 5420, 828, 3938, 23224, 198, 220, 220, 1635, 2376, 25, 281, 685, 63, 23839, 21982, 63, 16151, 31, 5420, 828, 3938, 23224, 198, 220, 220, 1635, 725, 25, 262, 4904, 40, 1316, 26407, 262, 40653, 290, 2376, 389, 5447, 319, 198, 220, 220, 1635, 2172, 82, 25, 3689, 22155, 628, 220, 770, 2163, 12542, 13269, 611, 27294, 40653, 290, 2376, 3858, 389, 973, 13, 628, 220, 12429, 29046, 26363, 1174, 628, 220, 770, 2163, 3544, 25, 366, 74, 563, 27086, 62, 2411, 83, 349, 1600, 366, 74, 563, 27086, 62, 397, 301, 349, 1600, 366, 74, 563, 27086, 62, 28664, 349, 1600, 290, 198, 220, 366, 74, 563, 27086, 62, 2676, 9806, 1, 198, 198, 37811, 198, 8818, 8997, 14993, 451, 50, 14375, 7, 14751, 3712, 51, 16, 11, 2376, 3712, 51, 17, 11, 725, 3712, 7378, 40, 13, 6935, 11, 2172, 82, 8, 810, 1391, 51, 16, 11, 309, 17, 92, 628, 220, 611, 2099, 1659, 7, 5439, 8, 1279, 25, 4128, 21982, 198, 220, 220, 220, 2488, 30493, 2099, 1659, 7, 14751, 8, 1279, 25, 4217, 14202, 198, 220, 886, 628, 220, 611, 2099, 1659, 7, 5439, 8, 1279, 25, 43578, 66, 21982, 198, 220, 220, 220, 2488, 30493, 2099, 1659, 7, 14751, 8, 1279, 25, 4479, 90, 23839, 47, 1039, 66, 19044, 5662, 11, 27741, 47, 1039, 66, 19044, 11146, 5662, 92, 198, 220, 886, 628, 220, 40653, 17, 796, 651, 14881, 5662, 7, 14751, 8, 198, 220, 2376, 17, 796, 651, 14881, 21982, 7, 5439, 8, 198, 220, 611, 2099, 1659, 7, 14751, 17, 8, 1279, 25, 43578, 66, 19044, 5662, 11405, 2099, 1659, 7, 5439, 17, 8, 1279, 25, 43578, 66, 19044, 21982, 198, 220, 220, 220, 611, 40653, 17, 13, 32, 13, 79, 26801, 6624, 2376, 17, 13, 32, 13, 79, 26801, 198, 220, 220, 220, 220, 220, 4888, 62, 6759, 796, 2081, 198, 220, 220, 220, 2073, 198, 220, 220, 220, 220, 220, 4888, 62, 6759, 796, 3991, 198, 220, 220, 220, 886, 198, 220, 2073, 198, 220, 220, 220, 4888, 62, 6759, 796, 3991, 198, 220, 886, 628, 220, 616, 43027, 796, 4904, 40, 13, 6935, 62, 43027, 7, 9503, 8, 198, 220, 725, 7857, 796, 4904, 40, 13, 6935, 62, 7857, 7, 9503, 8, 628, 220, 611, 2099, 1659, 7, 5439, 8, 1279, 25, 43578, 66, 21982, 198, 220, 220, 220, 479, 2777, 796, 2251, 42, 4303, 7, 14751, 17, 11, 2376, 17, 11, 725, 8, 198, 220, 2073, 198, 220, 220, 220, 479, 2777, 796, 509, 4303, 62, 33991, 198, 220, 886, 628, 220, 318, 62, 20311, 1143, 796, 3991, 628, 220, 823, 83, 349, 796, 2172, 82, 14692, 74, 563, 27086, 62, 2411, 83, 349, 8973, 198, 220, 16552, 349, 796, 2172, 82, 14692, 74, 563, 27086, 62, 397, 301, 349, 8973, 198, 220, 288, 83, 349, 796, 2172, 82, 14692, 74, 563, 27086, 62, 28664, 349, 8973, 198, 220, 340, 7780, 897, 796, 2172, 82, 14692, 74, 563, 27086, 62, 2676, 9806, 8973, 628, 220, 43979, 796, 8997, 14993, 451, 50, 14375, 90, 51, 16, 11, 309, 17, 92, 7, 14751, 11, 2376, 11, 4888, 62, 6759, 11, 725, 11, 616, 43027, 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, 725, 7857, 11, 479, 2777, 11, 318, 62, 20311, 1143, 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, 823, 83, 349, 11, 16552, 349, 11, 288, 83, 349, 11, 340, 7780, 897, 8, 628, 220, 2457, 7509, 7, 7278, 11, 1479, 8, 628, 220, 1441, 43979, 198, 437, 628, 198, 37811, 198, 220, 27741, 2208, 4906, 286, 477, 3718, 623, 653, 263, 3858, 13, 220, 3771, 31448, 364, 460, 307, 973, 198, 220, 351, 11629, 876, 5050, 691, 13, 220, 1649, 1262, 257, 1277, 2446, 11, 685, 63, 5662, 14202, 63, 16151, 31, 5420, 8, 198, 220, 815, 307, 973, 13, 628, 220, 383, 4007, 286, 428, 2099, 318, 284, 2148, 257, 6414, 7071, 329, 1180, 198, 220, 3858, 286, 3718, 623, 653, 364, 13, 220, 554, 1948, 11, 340, 3769, 1630, 625, 618, 262, 198, 220, 3718, 623, 653, 263, 318, 664, 296, 17128, 13, 628, 220, 18987, 815, 3494, 649, 3718, 623, 653, 364, 1262, 11742, 351, 198, 220, 530, 286, 262, 3718, 623, 653, 364, 5447, 994, 11, 14811, 685, 63, 47, 1039, 66, 19044, 5662, 63, 16151, 31, 5420, 8, 393, 198, 220, 685, 63, 47, 1039, 66, 19044, 11146, 5662, 63, 16151, 31, 5420, 828, 37941, 13, 484, 815, 8160, 257, 649, 850, 4906, 286, 198, 220, 685, 63, 23839, 5662, 63, 16151, 31, 5420, 8, 326, 468, 2035, 4600, 47, 1039, 66, 19044, 5662, 63, 393, 4600, 47, 1039, 66, 19044, 20366, 5662, 63, 355, 198, 220, 257, 2214, 13, 220, 770, 3578, 4585, 262, 4683, 5499, 329, 777, 3858, 198, 220, 357, 4758, 24061, 257, 3718, 623, 653, 263, 329, 262, 12806, 666, 286, 262, 11887, 8, 290, 198, 220, 30620, 262, 3718, 623, 653, 263, 355, 2622, 13, 198, 220, 11787, 5447, 3718, 623, 653, 364, 815, 850, 4906, 2035, 685, 63, 23839, 47, 1039, 66, 19044, 5662, 63, 16151, 31, 5420, 8, 198, 220, 286, 685, 63, 23839, 47, 1039, 66, 19044, 11146, 5662, 63, 16151, 31, 5420, 737, 628, 220, 12429, 15878, 82, 1174, 628, 220, 220, 1635, 40653, 62, 5083, 25, 1194, 685, 63, 23839, 5662, 63, 16151, 31, 5420, 8, 628, 220, 5740, 326, 40647, 2769, 46282, 286, 3718, 623, 653, 364, 318, 3142, 13, 198, 220, 383, 4600, 14751, 62, 5083, 63, 2214, 460, 307, 530, 286, 685, 63, 5662, 14202, 63, 16151, 31, 5420, 828, 685, 63, 47, 1039, 66, 19044, 5662, 63, 16151, 31, 5420, 828, 198, 220, 393, 685, 63, 47, 1039, 66, 19044, 11146, 5662, 63, 16151, 31, 5420, 8, 329, 257, 1729, 12, 77, 7287, 3718, 623, 653, 263, 11, 393, 617, 198, 220, 584, 685, 63, 23839, 5662, 63, 16151, 31, 5420, 8, 329, 257, 28376, 3718, 623, 653, 263, 13, 198, 37811, 198, 397, 8709, 2099, 27741, 5662, 886, 198, 198, 37811, 198, 220, 27741, 2208, 4906, 286, 477, 43578, 66, 17593, 12, 20676, 3628, 3718, 623, 653, 364, 198, 37811, 198, 397, 8709, 2099, 27741, 47, 1039, 66, 19044, 5662, 1279, 25, 27741, 5662, 886, 198, 198, 37811, 198, 220, 27741, 2208, 4906, 286, 477, 43578, 66, 17593, 12, 5787, 3718, 623, 653, 364, 13, 198, 37811, 198, 397, 8709, 2099, 27741, 47, 1039, 66, 19044, 11146, 5662, 1279, 25, 27741, 5662, 886, 198, 198, 37811, 198, 220, 978, 4448, 329, 597, 1611, 286, 43578, 66, 4217, 357, 6759, 8609, 12, 20676, 3628, 393, 17593, 12, 5787, 8, 198, 37811, 198, 9979, 27741, 47, 1039, 66, 5662, 796, 4479, 90, 23839, 47, 1039, 66, 19044, 5662, 11, 27741, 47, 1039, 66, 19044, 11146, 5662, 92, 198, 198, 2, 4217, 7071, 198, 37811, 198, 220, 770, 2163, 43707, 262, 3718, 623, 653, 263, 13, 220, 3887, 7822, 286, 198, 220, 685, 63, 23839, 5662, 63, 16151, 31, 5420, 8, 815, 9117, 428, 2163, 351, 257, 649, 2446, 628, 220, 1649, 4441, 649, 3718, 623, 653, 364, 11, 428, 2163, 815, 4143, 307, 1444, 198, 220, 717, 319, 40653, 62, 5083, 11, 290, 19008, 284, 262, 12806, 666, 815, 307, 925, 220, 198, 220, 12412, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 40653, 25, 262, 27741, 5662, 7822, 198, 220, 220, 1635, 19609, 198, 220, 220, 1635, 264, 46583, 198, 220, 220, 1635, 37430, 77, 198, 220, 220, 1635, 2172, 82, 198, 220, 220, 1635, 269, 17602, 62, 411, 312, 723, 25, 262, 269, 17602, 2672, 416, 685, 63, 746, 23154, 49, 11994, 63, 16151, 31, 5420, 8, 198, 220, 220, 1635, 256, 25, 1459, 640, 628, 220, 46333, 11822, 25, 198, 220, 220, 220, 1114, 17593, 12, 20676, 3628, 3718, 623, 653, 364, 11, 428, 1244, 407, 1682, 15284, 262, 198, 220, 220, 220, 3718, 623, 653, 263, 13, 220, 11317, 11, 340, 43707, 262, 17593, 262, 3718, 623, 653, 263, 318, 198, 220, 220, 220, 1912, 319, 11, 290, 262, 8494, 2163, 2386, 40820, 274, 262, 3718, 623, 653, 263, 422, 340, 13, 198, 220, 220, 220, 15933, 11, 340, 6971, 262, 1774, 33815, 329, 618, 262, 4217, 318, 6153, 198, 220, 220, 220, 772, 618, 262, 4217, 17593, 290, 44800, 18843, 1352, 17593, 389, 262, 976, 357, 292, 890, 355, 198, 220, 220, 220, 262, 8494, 2163, 318, 1444, 7987, 737, 198, 37811, 198, 8818, 42302, 5662, 7, 14751, 3712, 23839, 5662, 11, 19609, 3712, 23839, 37031, 11, 264, 46583, 3712, 23839, 18843, 1352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37430, 77, 3712, 23839, 46344, 6601, 11, 2172, 82, 3712, 35, 713, 11, 269, 17602, 62, 411, 312, 723, 11, 256, 8, 628, 220, 4049, 7203, 260, 2317, 27741, 5662, 42302, 5662, 22784, 750, 345, 6044, 284, 8160, 42302, 5662, 3419, 329, 534, 27741, 5662, 7822, 1701, 8, 198, 437, 198, 198, 37811, 198, 220, 2034, 13508, 262, 3718, 623, 653, 263, 11, 37941, 13, 2124, 796, 800, 7, 25189, 27493, 65, 11, 810, 5949, 318, 262, 40874, 198, 220, 284, 262, 17593, 317, 13, 220, 5740, 326, 5949, 2346, 743, 407, 307, 1695, 329, 617, 198, 220, 3718, 623, 653, 364, 11, 12891, 612, 318, 691, 281, 7824, 329, 11524, 800, 7, 25189, 828, 198, 220, 407, 5949, 2346, 13, 628, 220, 220, 220, 24936, 12, 5787, 3718, 623, 653, 364, 761, 284, 9117, 428, 2163, 351, 257, 649, 2446, 11, 198, 220, 220, 220, 17593, 12, 20676, 3628, 3718, 623, 653, 364, 466, 407, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 40653, 25, 262, 685, 63, 23839, 5662, 63, 16151, 31, 5420, 8, 7822, 13, 198, 220, 220, 1635, 19609, 198, 220, 220, 1635, 264, 46583, 198, 220, 220, 1635, 37430, 77, 25, 428, 4578, 815, 4143, 407, 307, 973, 780, 477, 262, 4610, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3519, 1366, 815, 307, 8574, 287, 262, 40653, 2134, 416, 685, 63, 9948, 66, 5662, 63, 16151, 31, 5420, 8, 198, 220, 220, 1635, 2172, 82, 198, 220, 220, 1635, 256, 25, 1459, 640, 198, 220, 220, 1635, 275, 25, 257, 27741, 38469, 10200, 262, 1957, 636, 286, 262, 4610, 357, 494, 198, 220, 220, 220, 220, 220, 220, 220, 37430, 77, 13, 80, 62, 35138, 8, 628, 220, 12429, 20560, 82, 14, 26410, 82, 1174, 628, 220, 220, 1635, 2124, 25, 27741, 38469, 6993, 9108, 351, 1255, 357, 31642, 2546, 355, 275, 737, 198, 220, 220, 220, 220, 220, 220, 220, 2773, 3718, 623, 653, 364, 743, 779, 262, 1988, 286, 4600, 87, 63, 319, 5726, 198, 220, 220, 220, 220, 220, 220, 220, 355, 262, 4238, 4724, 13, 198, 37811, 198, 8818, 4174, 5662, 7, 14751, 3712, 23839, 5662, 11, 19609, 3712, 23839, 37031, 11, 264, 46583, 3712, 23839, 18843, 1352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37430, 77, 3712, 23839, 46344, 6601, 11, 2172, 82, 3712, 35, 713, 11, 256, 11, 275, 3712, 23839, 38469, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 3712, 23839, 38469, 8, 628, 198, 220, 4049, 7203, 260, 2317, 27741, 5662, 4174, 5662, 22784, 750, 345, 6044, 284, 8160, 4174, 5662, 3419, 329, 534, 27741, 5662, 7822, 1701, 8, 198, 198, 437, 198, 198, 37811, 198, 220, 2034, 13508, 262, 1007, 3455, 286, 262, 3718, 623, 653, 263, 11, 37941, 13, 2124, 796, 800, 7, 25189, 737, 6, 9, 65, 13, 198, 220, 11014, 284, 685, 63, 39014, 5662, 63, 16151, 31, 5420, 828, 766, 326, 2163, 329, 3307, 13, 628, 220, 5740, 326, 407, 790, 3718, 623, 653, 278, 2446, 6971, 428, 13, 198, 37811, 198, 8818, 4174, 5662, 8291, 3455, 7, 14751, 3712, 23839, 5662, 11, 19609, 3712, 23839, 37031, 11, 264, 46583, 3712, 23839, 18843, 1352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37430, 77, 3712, 23839, 46344, 6601, 11, 2172, 82, 3712, 35, 713, 11, 256, 11, 275, 3712, 23839, 38469, 11, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 3712, 23839, 38469, 8, 628, 220, 220, 198, 220, 4049, 7203, 260, 2317, 27741, 5662, 4174, 5662, 8291, 3455, 22784, 750, 345, 6044, 284, 8160, 4174, 5662, 8291, 3455, 3419, 329, 534, 27741, 5662, 7822, 1701, 8, 198, 198, 437, 198, 198, 37811, 198, 220, 770, 2163, 5860, 262, 10238, 3718, 623, 653, 263, 2134, 11, 37941, 13, 198, 220, 685, 63, 5662, 14202, 63, 16151, 31, 5420, 828, 685, 63, 47, 1039, 66, 19044, 5662, 63, 16151, 31, 5420, 828, 393, 685, 63, 47, 1039, 66, 19044, 11146, 5662, 63, 16151, 31, 5420, 737, 628, 220, 5740, 326, 40647, 2769, 46282, 286, 3718, 623, 653, 364, 318, 3142, 13, 198, 220, 18987, 466, 407, 423, 284, 3494, 355, 890, 355, 262, 28376, 3718, 623, 653, 263, 318, 198, 220, 8574, 287, 257, 2214, 1444, 4600, 14751, 62, 5083, 44646, 628, 220, 1114, 17593, 12, 20676, 3628, 3718, 623, 653, 364, 11, 428, 2163, 318, 4465, 329, 1972, 198, 220, 262, 685, 63, 47, 1039, 66, 19044, 5662, 63, 16151, 31, 5420, 8, 2134, 11, 543, 4909, 262, 3718, 623, 653, 278, 198, 220, 12806, 666, 17593, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 40653, 25, 262, 2985, 685, 63, 23839, 5662, 63, 16151, 31, 5420, 8, 198, 37811, 198, 8818, 651, 14881, 5662, 7, 14751, 3712, 23839, 5662, 8, 628, 220, 1303, 428, 481, 664, 12321, 477, 262, 835, 866, 284, 262, 739, 88, 1359, 40653, 11, 543, 5860, 198, 220, 1303, 2346, 198, 220, 1441, 651, 14881, 5662, 7, 14751, 13, 14751, 62, 5083, 8, 198, 437, 198, 198, 37811, 198, 220, 770, 2163, 3578, 37895, 257, 2176, 2099, 286, 40653, 62, 5083, 13, 628, 220, 5740, 25, 428, 318, 407, 2099, 12, 31284, 287, 474, 43640, 657, 13, 19, 11, 475, 460, 307, 30101, 284, 307, 523, 198, 220, 220, 220, 220, 220, 220, 220, 287, 1568, 2196, 286, 22300, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 40653, 25, 257, 4217, 198, 220, 220, 1635, 309, 17, 25, 257, 357, 39363, 12531, 8, 2099, 326, 318, 7763, 355, 281, 8434, 4217, 7382, 198, 220, 220, 220, 220, 220, 220, 220, 220, 2641, 40653, 13, 628, 220, 12429, 26410, 82, 1174, 628, 220, 220, 1635, 40653, 17, 25, 257, 4217, 326, 318, 257, 850, 4906, 286, 4217, 17, 198, 37811, 198, 198, 8818, 651, 818, 1008, 5662, 7, 14751, 3712, 51, 16, 11, 7904, 6030, 90, 51, 17, 30072, 810, 1391, 51, 16, 1279, 25, 27741, 5662, 11, 309, 17, 92, 198, 2, 460, 470, 423, 309, 17, 1279, 25, 27741, 5662, 780, 326, 561, 44125, 791, 507, 588, 198, 2, 17321, 14993, 451, 10267, 198, 2, 198, 220, 611, 309, 16, 1279, 25, 309, 17, 198, 220, 220, 220, 1441, 40653, 198, 220, 2073, 198, 220, 220, 220, 1441, 651, 818, 1008, 5662, 7, 14751, 13, 14751, 62, 5083, 11, 309, 17, 8, 198, 220, 886, 198, 220, 4049, 7203, 403, 16250, 540, 4251, 4943, 198, 437, 628, 198, 2, 28, 198, 2, 770, 318, 5445, 319, 22300, 657, 13, 21, 198, 2, 309, 16, 1279, 25, 309, 17, 15565, 309, 16, 6624, 309, 17, 618, 309, 16, 290, 309, 17, 389, 10017, 198, 8818, 651, 818, 1008, 5662, 7, 14751, 3712, 51, 16, 11, 7904, 6030, 90, 51, 17, 30072, 810, 1391, 51, 17, 1279, 25, 27741, 5662, 11, 309, 16, 1279, 25, 309, 17, 92, 198, 220, 1441, 40653, 198, 437, 198, 198, 8818, 651, 818, 1008, 5662, 7, 14751, 3712, 51, 16, 11, 7904, 6030, 90, 51, 17, 30072, 810, 1391, 51, 16, 1279, 25, 23839, 5662, 11, 309, 17, 1279, 25, 27741, 5662, 92, 198, 220, 1441, 651, 818, 1008, 5662, 7, 14751, 13, 14751, 62, 5083, 11, 309, 17, 8, 198, 437, 198, 46249, 628, 198, 198, 37811, 198, 220, 16409, 4600, 7942, 63, 611, 4600, 9948, 66, 5662, 63, 2476, 10730, 6946, 2067, 878, 198, 220, 340, 318, 1444, 11, 3991, 4306, 13, 220, 2896, 13185, 284, 2081, 13, 220, 18987, 815, 9117, 428, 198, 220, 2163, 351, 257, 649, 2446, 611, 326, 1948, 4217, 857, 407, 2421, 10730, 198, 220, 6946, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 40653, 25, 220, 281, 4600, 23839, 5662, 628, 220, 12429, 26410, 82, 1174, 628, 220, 220, 1635, 347, 970, 198, 37811, 198, 8818, 761, 10044, 29363, 6601, 7, 14751, 3712, 23839, 5662, 8, 198, 220, 1441, 2081, 198, 437, 198, 198, 37811, 198, 220, 770, 2163, 2030, 274, 597, 4088, 16686, 284, 7097, 12782, 13, 220, 18987, 1276, 198, 220, 869, 428, 2163, 618, 484, 389, 5201, 351, 281, 27741, 5662, 198, 220, 2134, 13, 628, 220, 18987, 466, 407, 423, 284, 8160, 428, 2163, 329, 511, 198, 220, 685, 63, 23839, 5662, 63, 16151, 31, 5420, 8, 3858, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 40653, 25, 262, 27741, 5662, 2134, 198, 37811, 198, 8818, 1479, 7, 14751, 3712, 23839, 5662, 8, 628, 220, 1479, 7, 1136, 14881, 5662, 7, 14751, 4008, 198, 437, 628, 198, 2, 44800, 18843, 1352, 7071, 198, 37811, 198, 220, 27741, 2208, 4906, 286, 477, 14174, 12879, 973, 329, 317, 618, 18120, 12176, 796, 275, 13, 628, 220, 383, 4007, 286, 428, 2099, 318, 284, 2148, 257, 6414, 7071, 329, 1180, 198, 220, 3858, 286, 14174, 12879, 13, 220, 770, 2099, 1107, 21001, 734, 26226, 25, 644, 262, 198, 220, 2099, 286, 262, 14174, 10088, 318, 11, 290, 703, 340, 815, 307, 16019, 13, 628, 220, 4377, 7822, 286, 428, 2099, 815, 850, 4906, 262, 5035, 3797, 363, 652, 198, 220, 286, 25, 685, 63, 23839, 35, 1072, 21982, 63, 16151, 31, 5420, 828, 685, 63, 23839, 50, 29572, 13470, 21982, 63, 16151, 31, 5420, 828, 198, 220, 685, 63, 23839, 47, 1039, 66, 19044, 21982, 63, 16151, 31, 5420, 828, 685, 63, 23839, 47, 1039, 66, 19044, 11146, 21982, 63, 16151, 31, 5420, 8, 628, 220, 5740, 326, 17593, 12, 20676, 3628, 25504, 460, 1690, 3551, 257, 2060, 2163, 198, 220, 329, 477, 777, 2663, 611, 1262, 281, 17593, 7071, 5499, 326, 389, 5447, 198, 220, 329, 477, 262, 17593, 3858, 13, 220, 4091, 685, 63, 19044, 18438, 3628, 21982, 63, 16151, 31, 5420, 8, 628, 220, 12429, 37374, 23948, 1174, 628, 220, 220, 1635, 2376, 62, 5083, 25, 1194, 4600, 23839, 5662, 44646, 220, 1680, 307, 530, 286, 685, 63, 35, 1072, 21982, 63, 16151, 31, 5420, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 63, 50, 29572, 13470, 21982, 63, 16151, 31, 5420, 828, 685, 63, 47, 1039, 66, 19044, 21982, 63, 16151, 31, 5420, 828, 393, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 63, 47, 1039, 66, 19044, 11146, 21982, 63, 16151, 31, 5420, 828, 393, 597, 584, 2836, 5447, 14174, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10088, 13, 198, 37811, 198, 397, 8709, 2099, 27741, 21982, 886, 198, 198, 2, 51, 3727, 46, 25, 2205, 777, 198, 198, 37811, 198, 220, 44800, 10088, 2099, 329, 360, 1072, 2603, 45977, 13, 220, 770, 318, 4143, 973, 691, 329, 198, 220, 28769, 13, 198, 37811, 198, 397, 8709, 2099, 27741, 35, 1072, 21982, 1279, 25, 27741, 21982, 886, 198, 198, 37811, 198, 220, 44800, 10088, 2099, 329, 4600, 50, 29572, 46912, 34, 6173, 63, 2603, 45977, 11, 543, 779, 257, 1277, 198, 220, 1540, 332, 13, 198, 37811, 198, 397, 8709, 2099, 27741, 50, 29572, 13470, 21982, 1279, 25, 27741, 21982, 886, 198, 198, 37811, 198, 220, 44800, 10088, 2099, 329, 43578, 66, 17593, 12, 20676, 3628, 13, 198, 37811, 198, 397, 8709, 2099, 27741, 47, 1039, 66, 19044, 21982, 1279, 25, 27741, 21982, 886, 198, 198, 37811, 198, 220, 44800, 10088, 2099, 329, 43578, 66, 17593, 12, 5787, 13, 198, 37811, 198, 397, 8709, 2099, 27741, 47, 1039, 66, 19044, 11146, 21982, 1279, 25, 27741, 21982, 886, 198, 198, 37811, 198, 220, 49511, 6441, 329, 477, 262, 17593, 12, 20676, 3628, 14174, 10088, 3858, 13, 198, 220, 4362, 2603, 45977, 423, 257, 1402, 900, 286, 2219, 7071, 5499, 11, 340, 318, 198, 220, 1690, 1744, 284, 3551, 257, 2060, 2163, 326, 2499, 319, 477, 262, 1180, 198, 220, 3858, 286, 2603, 45977, 13, 198, 37811, 198, 9979, 6550, 18438, 3628, 21982, 796, 4479, 90, 23839, 35, 1072, 21982, 11, 27741, 50, 29572, 13470, 21982, 11, 27741, 47, 1039, 66, 19044, 21982, 92, 198, 198, 37811, 198, 220, 4479, 286, 43578, 66, 14174, 10088, 3858, 198, 37811, 198, 9979, 43578, 66, 21982, 796, 4479, 90, 23839, 47, 1039, 66, 19044, 21982, 11, 27741, 47, 1039, 66, 19044, 11146, 21982, 92, 198, 198, 37811, 198, 220, 4479, 286, 14174, 12879, 326, 466, 1277, 39107, 198, 37811, 198, 9979, 4128, 21982, 796, 4479, 90, 23839, 35, 1072, 21982, 11, 27741, 50, 29572, 13470, 21982, 92, 628, 198, 37811, 198, 220, 770, 2163, 43707, 262, 14174, 10088, 13, 220, 3887, 7822, 286, 198, 220, 685, 63, 23839, 21982, 63, 16151, 31, 5420, 8, 815, 9117, 428, 2163, 351, 257, 649, 198, 220, 2446, 13, 220, 1114, 17593, 12, 5787, 12879, 11, 428, 2163, 1276, 2152, 475, 761, 198, 220, 407, 1620, 597, 4028, 13, 628, 220, 1114, 17593, 12, 20676, 3628, 25504, 11, 428, 2163, 815, 307, 1444, 319, 198, 220, 4600, 5439, 62, 5083, 63, 717, 290, 19008, 284, 262, 12806, 666, 925, 12412, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 2376, 25, 262, 27741, 21982, 7822, 357, 25747, 743, 307, 6153, 8, 198, 220, 220, 1635, 19609, 198, 220, 220, 1635, 264, 46583, 198, 220, 220, 1635, 37430, 77, 198, 220, 220, 1635, 2172, 82, 198, 220, 220, 1635, 269, 17602, 62, 411, 312, 723, 25, 262, 269, 17602, 2672, 416, 685, 63, 746, 23154, 49, 11994, 63, 16151, 31, 5420, 8, 198, 220, 220, 1635, 256, 25, 1459, 640, 628, 198, 220, 46333, 11822, 25, 198, 220, 220, 220, 1114, 17593, 12, 5787, 4905, 11, 428, 2163, 5621, 262, 43578, 66, 269, 17602, 329, 262, 198, 220, 220, 220, 43578, 66, 19044, 11, 543, 4909, 257, 4941, 284, 262, 19609, 11, 264, 46583, 11, 37430, 77, 11, 2172, 82, 7159, 13, 198, 220, 220, 220, 770, 714, 1085, 284, 10059, 4069, 611, 883, 7159, 389, 9518, 290, 198, 220, 220, 220, 428, 2163, 318, 407, 1444, 757, 878, 262, 1306, 8494, 13, 198, 198, 37811, 198, 8818, 42302, 14993, 451, 18843, 1352, 7, 5439, 3712, 23839, 21982, 11, 19609, 3712, 23839, 37031, 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, 264, 46583, 3712, 23839, 18843, 1352, 11, 37430, 77, 3712, 23839, 46344, 6601, 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, 2172, 82, 3712, 35, 713, 11, 269, 17602, 62, 411, 312, 723, 11, 256, 8, 628, 220, 4049, 7203, 260, 2317, 27741, 21982, 42302, 14993, 451, 18843, 1352, 22784, 750, 345, 6044, 284, 8160, 42302, 14993, 451, 18843, 1352, 3419, 329, 534, 27741, 21982, 7822, 1701, 8, 198, 437, 198, 198, 37811, 198, 220, 2034, 13508, 262, 14174, 10088, 11, 37941, 13, 837, 12176, 796, 275, 198, 220, 220, 198, 220, 24936, 12, 20676, 3628, 25504, 685, 63, 23839, 21982, 63, 16151, 31, 5420, 8, 466, 407, 423, 198, 220, 284, 3494, 428, 2163, 11, 996, 17593, 12, 5787, 25504, 1276, 9117, 198, 220, 340, 351, 257, 649, 2446, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 2376, 25, 262, 685, 63, 23839, 21982, 63, 16151, 31, 5420, 8, 7822, 13, 198, 220, 220, 1635, 19609, 198, 220, 220, 1635, 264, 46583, 198, 220, 220, 1635, 37430, 77, 198, 220, 220, 1635, 2172, 82, 198, 220, 220, 1635, 269, 17602, 62, 411, 312, 723, 25, 262, 269, 17602, 329, 685, 63, 746, 23154, 49, 11994, 63, 16151, 31, 5420, 8, 393, 262, 1194, 826, 1021, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1735, 2163, 3170, 319, 1353, 286, 340, 198, 220, 220, 1635, 256, 25, 1459, 640, 198, 220, 220, 1635, 2124, 25, 281, 27741, 38469, 357, 16670, 1239, 257, 43578, 66, 53, 721, 8, 628, 220, 12429, 20560, 82, 14, 26410, 82, 1174, 628, 220, 220, 1635, 275, 25, 15879, 6153, 351, 2482, 357, 4598, 407, 49312, 8, 198, 37811, 198, 8818, 4174, 14993, 451, 18843, 1352, 7, 5439, 3712, 23839, 21982, 11, 19609, 3712, 23839, 37031, 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, 264, 46583, 3712, 23839, 18843, 1352, 11, 37430, 77, 3712, 23839, 46344, 6601, 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, 2172, 82, 3712, 35, 713, 11, 269, 17602, 62, 411, 312, 723, 11, 256, 11, 2124, 3712, 23839, 38469, 11, 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, 220, 220, 220, 220, 220, 275, 3712, 23839, 38469, 8, 628, 198, 220, 4049, 7203, 260, 2317, 27741, 21982, 4174, 14993, 451, 18843, 1352, 22784, 750, 345, 6044, 284, 8160, 4174, 14993, 451, 18843, 1352, 3419, 329, 534, 27741, 21982, 7822, 1701, 8, 198, 198, 437, 198, 198, 37811, 198, 220, 2034, 13508, 262, 1007, 3455, 286, 262, 14174, 10088, 11, 37941, 13, 317, 2637, 9, 87, 796, 275, 198, 220, 11014, 284, 685, 63, 39014, 14993, 451, 18843, 1352, 63, 16151, 31, 5420, 828, 766, 326, 2163, 329, 3307, 13, 628, 220, 5740, 326, 407, 790, 2446, 6971, 428, 13, 220, 554, 1948, 11, 43578, 66, 198, 220, 17593, 12, 5787, 44800, 18843, 2024, 836, 470, 3058, 15651, 428, 220, 198, 220, 357, 16670, 484, 714, 351, 1576, 9575, 12, 14171, 8, 198, 198, 37811, 198, 8818, 4174, 14993, 451, 18843, 1352, 8291, 3455, 7, 5439, 3712, 23839, 21982, 11, 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, 220, 220, 220, 220, 220, 19609, 3712, 23839, 37031, 11, 264, 46583, 3712, 23839, 18843, 1352, 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, 37430, 77, 3712, 23839, 46344, 6601, 11, 2172, 82, 3712, 35, 713, 11, 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, 220, 220, 220, 220, 220, 269, 17602, 62, 411, 312, 723, 11, 256, 11, 2124, 3712, 23839, 38469, 11, 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, 220, 220, 220, 220, 220, 275, 3712, 23839, 38469, 8, 628, 220, 4049, 7203, 260, 2317, 27741, 21982, 4174, 14993, 451, 18843, 1352, 8291, 3455, 22784, 750, 345, 6044, 284, 8160, 4174, 14993, 451, 18843, 1352, 8291, 3455, 3419, 329, 534, 27741, 21982, 7822, 1701, 8, 198, 198, 437, 628, 198, 37811, 198, 220, 11014, 284, 685, 63, 1136, 14881, 5662, 63, 16151, 31, 5420, 8, 2845, 340, 3011, 262, 10238, 14174, 10088, 11, 198, 220, 37941, 13, 530, 286, 685, 63, 35, 1072, 21982, 63, 16151, 31, 5420, 828, 685, 63, 50, 29572, 13470, 21982, 63, 16151, 31, 5420, 828, 685, 63, 47, 1039, 66, 19044, 21982, 63, 16151, 31, 5420, 8, 198, 220, 393, 685, 63, 47, 1039, 66, 19044, 11146, 21982, 63, 16151, 31, 5420, 737, 628, 220, 1114, 17593, 12, 20676, 3628, 5050, 11, 428, 318, 257, 922, 835, 286, 1972, 262, 10238, 198, 220, 14174, 10088, 2134, 11, 543, 4909, 262, 17593, 287, 262, 4600, 32, 63, 2214, 357, 1640, 198, 220, 477, 17593, 12, 20676, 3628, 14174, 12879, 737, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 2376, 25, 281, 27741, 21982, 198, 37811, 198, 8818, 651, 14881, 21982, 7, 5439, 3712, 23839, 21982, 8, 628, 220, 1303, 428, 481, 664, 12321, 866, 284, 262, 10238, 14174, 10088, 198, 220, 1441, 651, 14881, 21982, 7, 5439, 13, 5439, 62, 5083, 8, 198, 437, 198, 198, 37811, 198, 220, 770, 2163, 3848, 2035, 685, 63, 1136, 14881, 5662, 63, 16151, 31, 5420, 8, 393, 685, 63, 1136, 14881, 21982, 63, 16151, 31, 5420, 8, 198, 220, 6906, 319, 262, 2099, 286, 663, 4578, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 2376, 25, 2035, 281, 4600, 23839, 21982, 63, 393, 4600, 23839, 5662, 63, 2134, 628, 220, 12429, 26410, 82, 1174, 628, 220, 220, 1635, 262, 2779, 4217, 393, 17579, 2134, 198, 37811, 198, 8818, 651, 14881, 10267, 7, 5439, 3712, 23839, 21982, 8, 628, 220, 1441, 651, 14881, 21982, 7, 5439, 8, 198, 437, 198, 198, 8818, 651, 14881, 10267, 7, 14751, 3712, 23839, 5662, 8, 198, 220, 220, 198, 220, 1441, 651, 14881, 5662, 7, 14751, 8, 198, 437, 628, 198, 37811, 198, 220, 4525, 685, 63, 1136, 818, 1008, 5662, 63, 16151, 31, 5420, 828, 475, 329, 14174, 12879, 198, 37811, 198, 8818, 651, 818, 1008, 21982, 7, 5439, 3712, 51, 16, 11, 7904, 6030, 90, 51, 17, 30072, 810, 1391, 51, 16, 1279, 25, 27741, 21982, 11, 309, 17, 92, 198, 2, 460, 470, 423, 309, 17, 1279, 25, 27741, 21982, 780, 326, 561, 3718, 2507, 791, 507, 588, 220, 198, 2, 17321, 14993, 451, 18843, 2024, 198, 220, 611, 309, 16, 1279, 25, 309, 17, 198, 220, 220, 220, 1441, 2376, 198, 220, 2073, 198, 220, 220, 220, 1441, 651, 818, 1008, 21982, 7, 5439, 13, 5439, 62, 5083, 11, 309, 17, 8, 198, 220, 886, 628, 220, 4049, 7203, 403, 16250, 540, 4251, 4943, 198, 437, 628, 198, 198, 37811, 198, 220, 16409, 4600, 7942, 63, 611, 685, 63, 9948, 66, 14993, 451, 18843, 1352, 63, 16151, 31, 5420, 8, 2476, 10730, 6946, 198, 220, 2067, 878, 198, 220, 340, 318, 1444, 11, 3991, 4306, 13, 220, 2896, 13185, 284, 2081, 329, 1729, 12, 6759, 8609, 12, 5787, 198, 220, 14174, 12879, 13, 220, 220, 198, 220, 18987, 815, 9117, 428, 2163, 351, 257, 649, 2446, 611, 262, 4277, 1988, 318, 198, 220, 407, 3376, 329, 257, 1948, 14174, 10088, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 2376, 25, 220, 281, 4600, 23839, 21982, 628, 220, 12429, 26410, 82, 1174, 628, 220, 220, 1635, 347, 970, 198, 37811, 198, 8818, 761, 10044, 29363, 6601, 7, 14751, 3712, 23839, 21982, 8, 198, 220, 1441, 2081, 198, 437, 198, 198, 8818, 761, 10044, 29363, 6601, 7, 5439, 3712, 23839, 47, 1039, 66, 19044, 11146, 21982, 8, 198, 220, 1441, 3991, 198, 437, 628, 628, 198, 198, 37811, 198, 220, 770, 2163, 2030, 274, 597, 4088, 16686, 284, 7097, 12782, 13, 220, 18987, 1276, 198, 220, 869, 428, 2163, 618, 484, 389, 5201, 351, 281, 27741, 21982, 198, 220, 2134, 13, 628, 220, 18987, 466, 407, 423, 284, 8160, 428, 2163, 329, 511, 198, 220, 685, 63, 23839, 21982, 63, 16151, 31, 5420, 8, 3858, 13, 628, 220, 12429, 20560, 82, 1174, 628, 220, 220, 1635, 2376, 25, 262, 27741, 21982, 2134, 198, 37811, 198, 8818, 1479, 7, 5439, 3712, 23839, 21982, 8, 628, 220, 1479, 7, 1136, 14881, 21982, 7, 5439, 4008, 198, 437, 198, 198, 2, 2291, 25504, 198, 17256, 7203, 14751, 62, 23108, 13, 20362, 4943, 198, 17256, 7203, 14751, 62, 79, 1039, 66, 6759, 13, 20362, 4943, 198, 17256, 7203, 14751, 62, 79, 1039, 66, 6759, 5787, 13, 20362, 4943, 198, 17256, 7203, 5439, 62, 67, 1072, 13, 20362, 4943, 198, 17256, 7203, 5439, 62, 2777, 945, 276, 1060, 13, 20362, 4943, 198, 17256, 7203, 5439, 62, 79, 1039, 66, 6759, 13, 20362, 4943, 198, 17256, 7203, 5439, 62, 79, 1039, 66, 6759, 5787, 13, 20362, 4943, 198, 17256, 7203, 7278, 62, 20307, 13, 20362, 4943, 198, 17256, 7203, 26791, 13, 20362, 4943, 198, 198, 437, 220, 1303, 886, 8265, 198 ]
2.915617
6,589