content stringlengths 6 1.03M | input_ids listlengths 4 535k | ratio_char_token float64 0.68 8.61 | token_count int64 4 535k |
|---|---|---|---|
## --- Test `MallocString`s
# Test MallocString constructors
str = m"Hello, world! 🌍"
@test isa(str, MallocString)
@test sizeof(str) == 19
@test StaticTools.strlen(str) == length(str) == 18
@test pointer(str) == Base.unsafe_convert(Ptr{UInt8}, str)
str1 = MallocString(c"Hello, world! 🌍")
... | [
2235,
11420,
6208,
4600,
44,
32332,
10100,
63,
82,
628,
220,
220,
220,
1303,
6208,
16618,
420,
10100,
5678,
669,
198,
220,
220,
220,
965,
796,
285,
1,
15496,
11,
995,
0,
12520,
234,
235,
1,
198,
220,
220,
220,
2488,
9288,
318,
64,... | 2.143455 | 955 |
using ExactConvolution
using Documenter
DocMeta.setdocmeta!(ExactConvolution, :DocTestSetup, :(using ExactConvolution); recursive=true)
makedocs(;
modules=[ExactConvolution],
authors="<NAME>",
repo="https://github.com/kessido/ExactConvolution.jl/blob/{commit}{path}#{line}",
sitename="ExactConvolution.... | [
3500,
1475,
529,
3103,
85,
2122,
198,
3500,
16854,
263,
198,
198,
23579,
48526,
13,
2617,
15390,
28961,
0,
7,
3109,
529,
3103,
85,
2122,
11,
1058,
23579,
14402,
40786,
11,
36147,
3500,
1475,
529,
3103,
85,
2122,
1776,
45115,
28,
7942,... | 2.294326 | 282 |
### order matters!!!
# if Experiment.jl loads Neurons.jl the latter one has to be included before
include("MyUtils.jl")
include("Behavior.jl")
include("Neurons.jl")
include("Experiment.jl")
include("MyDSP.jl")
include("MyLinearAlgebra.jl")
| [
21017,
1502,
6067,
10185,
198,
2,
611,
29544,
13,
20362,
15989,
3169,
333,
684,
13,
20362,
262,
6846,
530,
468,
284,
307,
3017,
878,
198,
198,
17256,
7203,
3666,
18274,
4487,
13,
20362,
4943,
198,
17256,
7203,
25267,
15759,
13,
20362,
... | 3.0125 | 80 |
# 2D Heat Diffusion
# LBM
#
# Generalize version on complicated mesh, with 1D indexing of lattices.
#
# <NAME>, <EMAIL> 05/01/2019
using PyPlot
include("Parameters.jl")
include("lattice.jl")
include("BC.jl")
using .Parameters, .BC, .lattice
function solveHeatDiffusion2D!(param::Param,lat::Lattice,mesh::Mesh)
# Set ... | [
2,
362,
35,
12308,
10631,
4241,
198,
2,
406,
12261,
198,
2,
198,
2,
3611,
1096,
2196,
319,
8253,
19609,
11,
351,
352,
35,
6376,
278,
286,
47240,
1063,
13,
198,
2,
198,
2,
1279,
20608,
22330,
1279,
27630,
4146,
29,
8870,
14,
486,
... | 2.105675 | 1,022 |
RpcApi.SimpleOrganism[RpcApi.SimpleOrganism(0x000000000000751c,:(function (c::Config.ConfigData,o::Creature.Organism)
function func_3(var_2::Int16=-475)
local var_8::Bool = false
return var_2
end
local var_1::Int8 = 118
Creature.eatRight(c,o,Int(var_1))
Cr... | [
49,
14751,
32,
14415,
13,
26437,
26121,
1042,
58,
49,
14751,
32,
14415,
13,
26437,
26121,
1042,
7,
15,
87,
8269,
2388,
48365,
66,
11,
37498,
8818,
357,
66,
3712,
16934,
13,
16934,
6601,
11,
78,
3712,
16719,
495,
13,
26121,
1042,
8,
... | 1.792864 | 13,846 |
<filename>src/prewrap/types.jl
"""
Represents any kind of wrapper structure that was generated from a Vulkan structure.
`D` is a `Bool` parameter indicating whether the structure has specific dependencies or not.
"""
abstract type VulkanStruct{D} end
Base.broadcastable(x::VulkanStruct) = Ref(x)
const FunctionPtr = Un... | [
27,
34345,
29,
10677,
14,
79,
1809,
2416,
14,
19199,
13,
20362,
198,
37811,
198,
6207,
6629,
597,
1611,
286,
29908,
4645,
326,
373,
7560,
422,
257,
35977,
4645,
13,
198,
63,
35,
63,
318,
257,
4600,
33,
970,
63,
11507,
12739,
1771,
... | 3.156566 | 198 |
# writing a dictionary of dataframes to files
function _write_data(vars_results::Dict{Symbol, DataFrames.DataFrame}, save_path::AbstractString; kwargs...)
file_type = get(kwargs, :file_type, Feather)
if file_type == Feather || file_type == CSV
for (k,v) in vars_results
file_path = joinpath(... | [
2,
3597,
257,
22155,
286,
1366,
37805,
284,
3696,
198,
198,
8818,
4808,
13564,
62,
7890,
7,
85,
945,
62,
43420,
3712,
35,
713,
90,
13940,
23650,
11,
6060,
35439,
13,
6601,
19778,
5512,
3613,
62,
6978,
3712,
23839,
10100,
26,
479,
86... | 2.70329 | 3,222 |
#
# This file is a part of ANISPROU. License is MIT
# Copyright (c) 2020 <NAME>
#
"""
ANISPROU
Analysis of isothermal titration calorimetry (ITC) data on sodium dodecyl sulphate (SDS) mediated protein unfolding.
# Exports
$(EXPORTS)
"""
module ANISPROU
using DelimitedFiles
using Distributions
using ForwardDiff
#... | [
2,
198,
2,
770,
2393,
318,
257,
636,
286,
3537,
1797,
4805,
2606,
13,
13789,
318,
17168,
198,
2,
15069,
357,
66,
8,
12131,
1279,
20608,
29,
198,
2,
628,
198,
37811,
198,
1565,
1797,
4805,
2606,
198,
198,
32750,
286,
318,
49723,
52... | 2.664884 | 561 |
plume_z_params = Dict(
"A" => (δ=107.7, β=-1.7172, γ=0.2770),
"B" => (δ=0.1355, β=0.8752, γ=0.0136),
"C" => (δ=0.09623, β=0.9477, γ=-0.0020),
"D" => (δ=0.04134, β=1.1737, γ=-0.0316),
"E" => (δ=0.02275, β=1.3010, γ=-0.0450),
"F" => (δ=0.01122, β=1.4024, γ=-0.0540)
)
puff_z_params = Dict(
"A"... | [
489,
2454,
62,
89,
62,
37266,
796,
360,
713,
7,
198,
220,
220,
220,
366,
32,
1,
5218,
357,
138,
112,
28,
15982,
13,
22,
11,
27169,
10779,
16,
13,
22,
23628,
11,
7377,
111,
28,
15,
13,
1983,
2154,
828,
198,
220,
220,
220,
366,
... | 2.042131 | 1,614 |
<gh_stars>1-10
using Documenter, DocumenterCitations
using ProximalAlgorithms, ProximalCore
using Literate
bib = CitationBibliography(joinpath(@__DIR__, "references.bib"))
src_path = joinpath(@__DIR__, "src/")
literate_directories = joinpath.(
src_path,
[
"guide",
"examples",
]
)
for dir... | [
27,
456,
62,
30783,
29,
16,
12,
940,
198,
3500,
16854,
263,
11,
16854,
263,
34,
20597,
198,
3500,
1041,
87,
4402,
2348,
7727,
907,
11,
1041,
87,
4402,
14055,
198,
3500,
17667,
378,
198,
198,
65,
571,
796,
42317,
33,
45689,
7,
2217... | 2.238004 | 521 |
module HTML5
export a, abbr, address, applet, area, article, aside, audio, b, base, bdi, bdo, blockquote,
body, br, button, canvas, caption, cite, code, col, colgroup, command, content, data, datalist,
dd, del, details, dfn, dialog, div, dl, dt, element, em, embed, eval, fieldset, figcaption,
figure, footer, form, h... | [
21412,
11532,
20,
198,
198,
39344,
257,
11,
450,
1671,
11,
2209,
11,
598,
1616,
11,
1989,
11,
2708,
11,
7263,
11,
6597,
11,
275,
11,
2779,
11,
275,
10989,
11,
275,
4598,
11,
2512,
22708,
11,
220,
198,
2618,
11,
865,
11,
4936,
11... | 2.788489 | 56,952 |
<reponame>kylejbrown17/GraphUtils.jl
let
reset_action_id_counter!()
reset_operation_id_counter!()
reset_all_id_counters!()
@test get_unique_id(ActionID) == ActionID(1)
@test get_unique_id(ObjectID) == ObjectID(1)
@test get_unique_id(OperationID) == OperationID(1)
@test get_unique_operation... | [
27,
7856,
261,
480,
29,
74,
2349,
73,
33282,
1558,
14,
37065,
18274,
4487,
13,
20362,
198,
1616,
198,
220,
220,
220,
13259,
62,
2673,
62,
312,
62,
24588,
0,
3419,
198,
220,
220,
220,
13259,
62,
27184,
62,
312,
62,
24588,
0,
3419,
... | 2.313397 | 418 |
module channels
using Distributions
export BSC
export AWGN
export BPSK
function BSC(p::Float64, coded_bits::Array{Array{Int64, 1}, 1})
changed_bits = Array{Array{Int64, 1}, 1}(undef, length(coded_bits))
for i=1:length(changed_bits)
changed_bits[i] = Array{Int64, 1}(undef, length(coded_bits[1]))
... | [
21412,
9619,
198,
198,
3500,
46567,
507,
198,
198,
39344,
347,
6173,
198,
39344,
14356,
16630,
198,
39344,
347,
3705,
42,
198,
198,
8818,
347,
6173,
7,
79,
3712,
43879,
2414,
11,
30817,
62,
9895,
3712,
19182,
90,
19182,
90,
5317,
2414... | 2.216939 | 673 |
### A Pluto.jl notebook ###
# v0.14.7
using Markdown
using InteractiveUtils
# ╔═╡ 6bf099a5-48cd-466b-8f83-b4c3adedf7be
begin
# see https://github.com/JuliaPluto/static-export-template
import Pkg
Pkg.activate(mktempdir())
Pkg.add([
Pkg.PackageSpec(name="DataFrames", version="1"),
Pkg.Packa... | [
21017,
317,
32217,
13,
20362,
20922,
44386,
198,
2,
410,
15,
13,
1415,
13,
22,
198,
198,
3500,
2940,
2902,
198,
3500,
21365,
18274,
4487,
198,
198,
2,
2343,
243,
242,
28670,
22880,
94,
718,
19881,
15,
2079,
64,
20,
12,
2780,
10210,
... | 2.464225 | 8,246 |
<gh_stars>100-1000
module TestExamples
using Test
examplesbase = joinpath(dirname(dirname(dirname(@__DIR__))), "examples")
examples = []
for (root, _, files) in walkdir(examplesbase)
for name in files
endswith(name, ".jl") || continue
relname = joinpath(relpath(root, examplesbase), name)
p... | [
27,
456,
62,
30783,
29,
3064,
12,
12825,
198,
21412,
6208,
27730,
198,
198,
3500,
6208,
198,
198,
1069,
12629,
8692,
796,
4654,
6978,
7,
15908,
3672,
7,
15908,
3672,
7,
15908,
3672,
7,
31,
834,
34720,
834,
4008,
828,
366,
1069,
1262... | 2.571956 | 271 |
<reponame>mattivahs/RTRRT.jl
using CSFML.LibCSFML
using RTRRT
using LinearAlgebra
using Profile
function CoordsToPixel(p, params)
fac_x = 1280.0 / (params.x_range[2] - params.x_range[1])
fac_y = 720.0 / (params.y_range[2] - params.y_range[1])
x_v = Int(round((p[1] - params.x_range[1]) * fac_x))
y_v = I... | [
27,
7856,
261,
480,
29,
76,
1078,
452,
39095,
14,
49,
5446,
14181,
13,
20362,
198,
3500,
9429,
34708,
13,
25835,
7902,
34708,
198,
3500,
371,
5446,
14181,
198,
3500,
44800,
2348,
29230,
198,
3500,
13118,
198,
198,
8818,
1766,
3669,
25... | 2.009392 | 3,620 |
<reponame>OICR/mp-biopath
module KeyOutputs
using CSV
using DataFrames
function getKeyoutputs(file)
df = CSV.read(file,
delim="\t",
datarow=1,
quotechar="\\",
nullable=false,
header=["pathway_id",
"... | [
27,
7856,
261,
480,
29,
46,
2149,
49,
14,
3149,
12,
8482,
18569,
198,
21412,
7383,
26410,
82,
198,
198,
3500,
44189,
198,
3500,
6060,
35439,
198,
198,
8818,
651,
9218,
22915,
82,
7,
7753,
8,
198,
220,
220,
220,
47764,
796,
44189,
... | 1.676157 | 562 |
<filename>HW5_S2.2_P2.jl
import RowEchelon
#=
Homework 5
Section 2.2
Problem 2
=#
# Initialize the Matrix
A = [3 2 ; 8 5]
# Calculate the Inverse
invA = inv(A)
println("The Inverse of A is:")
println(invA)
| [
27,
34345,
29,
39,
54,
20,
62,
50,
17,
13,
17,
62,
47,
17,
13,
20362,
198,
11748,
11314,
36,
2395,
14995,
198,
198,
2,
28,
198,
28718,
6433,
642,
198,
16375,
362,
13,
17,
198,
40781,
362,
198,
46249,
198,
198,
2,
20768,
1096,
... | 2.282609 | 92 |
module Day25
using AdventOfCode2019
using Combinatorics
function day25(input::String = readInput(joinpath(@__DIR__, "..", "data", "day25.txt")))
program = parse.(Int, split(input, ","))
return solve(program)
end
# This last puzzle was an interactive puzzle.
# It has been solved by manually exploring the map ... | [
21412,
3596,
1495,
198,
198,
3500,
33732,
5189,
10669,
23344,
198,
3500,
955,
8800,
1352,
873,
198,
198,
8818,
1110,
1495,
7,
15414,
3712,
10100,
796,
1100,
20560,
7,
22179,
6978,
7,
31,
834,
34720,
834,
11,
366,
492,
1600,
366,
7890,... | 2.287009 | 1,655 |
<filename>test/TestPackage0.jl/test/runtests.jl
using Test, TestPackage0
| [
27,
34345,
29,
9288,
14,
14402,
27813,
15,
13,
20362,
14,
9288,
14,
81,
2797,
3558,
13,
20362,
198,
3500,
6208,
11,
6208,
27813,
15,
198
] | 2.807692 | 26 |
<reponame>peej03/CAMEOS
using JLD, HDF5, GZip
function sub_read(w2::Array{Float64, 2}, co1::Int64, co2::Int64, cur_rows::Array{Float64, 2})
w2[1 + co1 * 21: (co1 + 1) * 21, 1 + co2 * 21: (co2 + 1) * 21] = cur_rows[1:end, 1:end]
w2[1 + co2 * 21: (co2 + 1) * 21, 1 + co1 * 21: (co1 + 1) * 21] = cur_rows[1:end, 1:end]'
... | [
27,
7856,
261,
480,
29,
39463,
73,
3070,
14,
34,
10067,
2640,
198,
3500,
449,
11163,
11,
5572,
37,
20,
11,
402,
41729,
198,
198,
8818,
850,
62,
961,
7,
86,
17,
3712,
19182,
90,
43879,
2414,
11,
362,
5512,
763,
16,
3712,
5317,
24... | 2.037927 | 791 |
<reponame>tbepler/julia-regression
include("center.jl")
include("cross_validation.jl")
include("mse.jl")
function ridge( X, y, lambda::Number )
colmeans_X = center!( X )
mean_y = center!( y )
#A = X'*X + diagm( fill( lambda, size(X,2) ) )
#w = A\(X'*y)
A = [ X ; fill( sqrt( lambda ), ( 1, size(X... | [
27,
7856,
261,
480,
29,
83,
1350,
20053,
14,
73,
43640,
12,
2301,
2234,
198,
17256,
7203,
16159,
13,
20362,
4943,
198,
17256,
7203,
19692,
62,
12102,
341,
13,
20362,
4943,
198,
17256,
7203,
76,
325,
13,
20362,
4943,
198,
198,
8818,
... | 1.914808 | 1,749 |
using TermInterface
function match(p::PatVar, x, mem)
if isassigned(mem, p.idx)
return x == mem[p.idx]
end
mem[p.idx] = x
true
end
match(p::PatLiteral{T}, x::T, mem) where {T} = (p.val == x)
match(p::PatLiteral, x, mem) = false
function match(p::PatTypeAssertion, x::T, mem) where {T}
if ... | [
3500,
35118,
39317,
198,
198,
8818,
2872,
7,
79,
3712,
12130,
19852,
11,
2124,
11,
1066,
8,
198,
220,
220,
220,
611,
318,
562,
3916,
7,
11883,
11,
279,
13,
312,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
6624,
10... | 2.232102 | 866 |
using Intervals
using TimeZones
using Compat
using Compat.Test
using Compat.Dates
# The method based on keyword arguments is not in Compat, so to avoid
# deprecation warnings on 0.7 we need this little definition.
if VERSION < v"0.7.0-DEV.4524"
function sprint(f::Function, args...; context=nothing)
if cont... | [
3500,
4225,
12786,
198,
3500,
3862,
57,
1952,
198,
3500,
3082,
265,
198,
3500,
3082,
265,
13,
14402,
198,
3500,
3082,
265,
13,
35,
689,
198,
198,
2,
383,
2446,
1912,
319,
21179,
7159,
318,
407,
287,
3082,
265,
11,
523,
284,
3368,
... | 2.584795 | 342 |
module GalewskyShallowWaterThetaMethod
using Gridap
using GridapGeosciences
using GridapPardiso
using SparseMatricesCSR
include("GalewskyInitialConditions.jl")
# Solves the Galewsky test case for the shallow water equations on a sphere
# of physical radius 6371220m. Involves a shear flow instability of a zonal
# je... | [
21412,
5027,
15515,
2584,
2484,
12154,
19184,
464,
8326,
17410,
198,
198,
3500,
24846,
499,
198,
3500,
24846,
499,
10082,
418,
979,
3007,
198,
3500,
24846,
499,
47,
446,
26786,
198,
3500,
1338,
17208,
19044,
45977,
7902,
49,
628,
198,
1... | 1.741321 | 893 |
@testset "kernel_2" begin
using LightGraphs
kg = kronecker_generator(10,2)
g = kernel_1(kg)
keys_ = @inferred key_sampling(g)
@test length(keys_) <= 64
kg = kronecker_generator(2,2)
g = kernel_1(kg)
keys_ = @inferred key_sampling(g)
@test length(keys_) <= 64
T = eltype(g)
parent_ = @inferred ker... | [
31,
9288,
2617,
366,
33885,
62,
17,
1,
2221,
198,
220,
1262,
4401,
37065,
82,
198,
220,
14211,
796,
479,
33171,
15280,
62,
8612,
1352,
7,
940,
11,
17,
8,
198,
220,
308,
796,
9720,
62,
16,
7,
10025,
8,
198,
220,
8251,
62,
796,
... | 2.277778 | 162 |
<filename>docs/make.jl
using Documenter, SymbolicRegression
using SymbolicRegression:
Node,
PopMember,
Population,
eval_tree_array,
Dataset,
HallOfFame,
CONST_TYPE,
string_tree
makedocs(;
sitename="SymbolicRegression.jl",
authors="<NAME>",
doctest=false,
clean=true,
... | [
27,
34345,
29,
31628,
14,
15883,
13,
20362,
198,
3500,
16854,
263,
11,
41327,
4160,
8081,
2234,
198,
3500,
41327,
4160,
8081,
2234,
25,
198,
220,
220,
220,
19081,
11,
198,
220,
220,
220,
8099,
27608,
11,
198,
220,
220,
220,
20133,
1... | 2.330233 | 215 |
<reponame>davidanthoff/csv-comparison
using TextParse
warmup_filename = ARGS[1]
filename = ARGS[2]
val1, t1, bytes1, gctime1, memallocs1 = @timed(csvread(warmup_filename))
gc(); gc(); gc()
val2, t2, bytes2, gctime2, memallocs2 = @timed(csvread(filename))
gc(); gc(); gc()
val3, t3, bytes3, gctime3, memallocs3 = @t... | [
27,
7856,
261,
480,
29,
67,
8490,
29313,
2364,
14,
40664,
12,
785,
1845,
1653,
198,
3500,
8255,
10044,
325,
198,
198,
31975,
929,
62,
34345,
796,
5923,
14313,
58,
16,
60,
198,
34345,
796,
5923,
14313,
58,
17,
60,
198,
198,
2100,
1... | 2.246073 | 191 |
<gh_stars>100-1000
import NCDatasets
using Test
ncfile1 = tempname()
ncfile2 = tempname()
jlfile = tempname()
#jlfile = "/tmp/out.jl"
ds = NCDatasets.NCDataset(ncfile1,"c")
ds.dim["lon"] = 3;
ds.dim["unlimited"] = Inf;
nclon = NCDatasets.defVar(ds,"variable with space", Float32, ("lon",))
nclon.attrib["string"] = "de... | [
27,
456,
62,
30783,
29,
3064,
12,
12825,
198,
11748,
399,
8610,
265,
292,
1039,
198,
3500,
6208,
198,
198,
10782,
7753,
16,
796,
20218,
3672,
3419,
198,
10782,
7753,
17,
796,
20218,
3672,
3419,
198,
73,
1652,
576,
796,
20218,
3672,
... | 2.203091 | 453 |
using MLUtils
using MLUtils.Datasets
using MLUtils: RingBuffer, eachobsparallel
using SparseArrays
using Random, Statistics
using Test
using Transducers
using FoldsThreads: TaskPoolEx
using ChainRulesTestUtils: test_rrule
using Zygote: ZygoteRuleConfig
using ChainRulesCore: rrule_via_ad
showcompact(io, x) = show(IOCon... | [
3500,
10373,
18274,
4487,
198,
3500,
10373,
18274,
4487,
13,
27354,
292,
1039,
198,
3500,
10373,
18274,
4487,
25,
12569,
28632,
11,
1123,
8158,
1845,
29363,
198,
3500,
1338,
17208,
3163,
20477,
198,
3500,
14534,
11,
14370,
198,
3500,
6208... | 2.63706 | 1,306 |
<reponame>Bhaskers-Blu-Org1/geostats-gen-error<filename>gaussian.jl
# instantiate environment
using Pkg; Pkg.instantiate()
using GeoStats
using SpectralGaussianSimulation
using DensityRatioEstimation
using CategoricalArrays
using LossFunctions
using ProgressMeter
using DataFrames
using MLJ, CSV
using LinearAlgebra
usi... | [
27,
7856,
261,
480,
29,
33,
71,
2093,
364,
12,
38676,
12,
46808,
16,
14,
469,
455,
1381,
12,
5235,
12,
18224,
27,
34345,
29,
4908,
31562,
13,
20362,
198,
2,
9113,
9386,
2858,
198,
3500,
350,
10025,
26,
350,
10025,
13,
8625,
415,
... | 2.341307 | 1,714 |
<filename>test/test_utils.jl
facts("Utilities") do
T = rand_kruskal3(2, (10, 20, 30), true)
@fact size(T) --> (10, 20, 30)
context("_row_unfold()") do
res = TensorDecompositions._row_unfold(T, 1)
@fact size(res) --> (10, 600)
res = TensorDecompositions._row_unfold(T, 2)
@f... | [
27,
34345,
29,
9288,
14,
9288,
62,
26791,
13,
20362,
198,
37473,
7203,
18274,
2410,
4943,
466,
628,
220,
220,
220,
309,
796,
43720,
62,
74,
14932,
74,
282,
18,
7,
17,
11,
357,
940,
11,
1160,
11,
1542,
828,
2081,
8,
198,
220,
220... | 2.082627 | 472 |
using Plots
export DefaultVals,Bags,Pens,Turtles
mutable struct DefaultVals
turn_rad::Real
step::Real
do_till_escaped::Bool
N::Int
increase_step::Real
ang::Real
lsys_data::Tuple
iterations::Int
function DefaultVals()
turn_rad = 0
step = 100
do_till_escaped ... | [
3500,
1345,
1747,
198,
198,
39344,
15161,
53,
874,
11,
33,
3775,
11,
47,
641,
11,
51,
25195,
198,
198,
76,
18187,
2878,
15161,
53,
874,
198,
220,
220,
220,
1210,
62,
6335,
3712,
15633,
198,
220,
220,
220,
2239,
3712,
15633,
198,
2... | 1.909774 | 1,729 |
<filename>test/dot/fragments.jl
@testset "fragments" begin
D = ParserCombinator.Parsers.DOT
for s in ("", " ", " ", " // ", " /* */ ", "\n\t")
parse_one(s, Trace(D.spc_star + Eos()))
end
# test wrd too for high bit
str_one = D.str_one > D.unesc_join
@test parse_one("\"abc\"", str_one)[1] == "abc"
@test parse... | [
27,
34345,
29,
9288,
14,
26518,
14,
8310,
363,
902,
13,
20362,
198,
198,
31,
9288,
2617,
366,
8310,
363,
902,
1,
2221,
198,
198,
35,
796,
23042,
263,
20575,
20900,
13,
47,
945,
364,
13,
35,
2394,
198,
198,
1640,
264,
287,
5855,
... | 2.233387 | 1,234 |
<gh_stars>1-10
# Perform some tests on Step2
using Test
include("../src/Step2.jl")
@testset "Step2.jl" begin
# Setting
eH = 1.0
eL = 0.1
E = [eL; eH]
e_size = size(E)[1]
# Transition matrix: Pr(j|i) = Π(i,j) (columns sum to 1)
πHH = 0.925 # e_H | e_H
πHL = 0.5 # e_H | e_L
Π = [1... | [
27,
456,
62,
30783,
29,
16,
12,
940,
198,
2,
35006,
617,
5254,
319,
5012,
17,
198,
198,
3500,
6208,
198,
17256,
7203,
40720,
10677,
14,
8600,
17,
13,
20362,
4943,
198,
198,
31,
9288,
2617,
366,
8600,
17,
13,
20362,
1,
2221,
628,
... | 2.025 | 400 |
<reponame>bhatiaabhinav/AnytimeWeightedAStar.jl<filename>src/example_problems/ExampleProblems.jl<gh_stars>1-10
module ExampleProblems
export SlidingPuzzle, CityNavigation, TSP, GNP
include("npuzzle.jl")
include("cnp.jl")
include("tsp.jl")
include("grid_nav.jl")
end | [
27,
7856,
261,
480,
29,
65,
5183,
544,
397,
20079,
615,
14,
7149,
2435,
25844,
276,
32,
8248,
13,
20362,
27,
34345,
29,
10677,
14,
20688,
62,
1676,
22143,
14,
16281,
2964,
22143,
13,
20362,
27,
456,
62,
30783,
29,
16,
12,
940,
198... | 2.627451 | 102 |
<filename>src/Xorshifts/common.jl
@inline xorshift_rotl(x::UInt64, k::Int) = (x >>> (0x3f & -k)) | (x << (0x3f & k))
@inline xorshift_rotl(x::UInt32, k::Int) = (x >>> (0x1f & -k)) | (x << (0x1f & k))
"""
SplitMix64: only for initializing a random seed.
"""
@inline function splitmix64(x::UInt64)
x += 0x9e3779b97f4a... | [
27,
34345,
29,
10677,
14,
55,
669,
71,
19265,
14,
11321,
13,
20362,
198,
31,
45145,
2124,
669,
29323,
62,
10599,
75,
7,
87,
3712,
52,
5317,
2414,
11,
479,
3712,
5317,
8,
796,
357,
87,
13163,
357,
15,
87,
18,
69,
1222,
532,
74,
... | 1.918567 | 307 |
<reponame>c-schubert/linearMeshIO<filename>src/openfoam/ofMeshReader.jl
module ofMeshReader
#=
Functions to:
- Read polymesh in a OpenFOAM Case folder
- Finds and checks the polyMesh folder
- Parse files in polyMesh folder
- Generate OfMesh (ofmeshTypes.jl) from parsed entities
TODO:
- maybe do some file encoding ch... | [
27,
7856,
261,
480,
29,
66,
12,
20601,
84,
4835,
14,
29127,
37031,
9399,
27,
34345,
29,
10677,
14,
9654,
6513,
321,
14,
1659,
37031,
33634,
13,
20362,
198,
21412,
286,
37031,
33634,
198,
2,
28,
220,
198,
24629,
2733,
284,
25,
198,
... | 2.35829 | 3,299 |
<reponame>HIT-UOI-SR/LightPropagation.jl
"""
fresnel2(Uin, d, λ, lx, ly)
calculate the propagation light field based on the Fresnel diffraction with double Fourier transform.
## Arguments
- `Uin::AbstractArray{<:Number,2}`: Complex array of input complex amplitude.
- `d::Real`: Distance to propagate in metres.
-... | [
27,
7856,
261,
480,
29,
39,
2043,
12,
52,
46,
40,
12,
12562,
14,
15047,
24331,
363,
341,
13,
20362,
198,
37811,
198,
220,
220,
220,
34093,
4954,
17,
7,
52,
259,
11,
288,
11,
7377,
119,
11,
300,
87,
11,
22404,
8,
198,
198,
9948... | 2.37416 | 1,339 |
<filename>stdlib/Artifacts/src/Artifacts.jl
# This file is a part of Julia. License is MIT: https://julialang.org/license
module Artifacts
import Base: get, SHA1
using Base.BinaryPlatforms, Base.TOML
export artifact_exists, artifact_path, artifact_meta, artifact_hash,
select_downloadable_artifacts, find_artif... | [
27,
34345,
29,
19282,
8019,
14,
8001,
37199,
14,
10677,
14,
8001,
37199,
13,
20362,
198,
2,
770,
2393,
318,
257,
636,
286,
22300,
13,
13789,
318,
17168,
25,
3740,
1378,
73,
377,
498,
648,
13,
2398,
14,
43085,
198,
198,
21412,
3683,
... | 2.560572 | 11,672 |
module features
using VulkanCore
using ..VkExt
using ..LavaCore
using ..LavaCore: destroy!
include("features/GlfwWindow.jl")
include("features/GlfwOutput.jl")
include("features/Validation.jl")
end
| [
21412,
3033,
198,
198,
3500,
35977,
14055,
198,
3500,
11485,
53,
74,
11627,
198,
3500,
11485,
43,
4170,
14055,
198,
3500,
11485,
43,
4170,
14055,
25,
4117,
0,
198,
198,
17256,
7203,
40890,
14,
38,
1652,
86,
27703,
13,
20362,
4943,
198... | 2.985075 | 67 |
<gh_stars>0
module test_72_ResultDictWithMatrixOfPlots
using ModiaResult
using Unitful
ModiaResult.@usingModiaPlot
tr = [0.0, 15.0]
t0 = (tr, tr, ModiaResult.Independent)
t1 = (0.0 : 0.1 : 15.0)
t2 = (0.0 : 0.1 : 3.0)
t3 = (5.0 : 0.3 : 9.5)
t4 = (11.0 : 0.1 : 15.0)
sigA1 = 0.9*sin.(t2)u"m"
sigA2 = cos.(t3)u... | [
27,
456,
62,
30783,
29,
15,
198,
21412,
1332,
62,
4761,
62,
23004,
35,
713,
3152,
46912,
5189,
3646,
1747,
198,
198,
3500,
3401,
544,
23004,
198,
3500,
11801,
913,
198,
5841,
544,
23004,
13,
31,
3500,
5841,
544,
43328,
198,
198,
221... | 1.641154 | 797 |
<reponame>AlexandreChern/CIS561_Proj2<gh_stars>1-10
function test_ksp()
@testset "\n ---testing KSP solvers---" begin
# create vectors and matrices
b = make_vec()
low, high = VecGetOwnershipRange(b)
b_global_indices = collect(low:PetscInt(high - 1))
x = make_vec()
low, high = VecGetOwne... | [
27,
7856,
261,
480,
29,
15309,
49078,
34,
2881,
14,
34,
1797,
47915,
62,
2964,
73,
17,
27,
456,
62,
30783,
29,
16,
12,
940,
198,
8818,
1332,
62,
591,
79,
3419,
628,
220,
2488,
9288,
2617,
37082,
77,
220,
220,
11420,
33407,
509,
... | 2.163015 | 1,552 |
<filename>backend/anime_data/snapshots_32981.jl
{"score": 5.62, "score_count": 20982, "timestamp": 1564844498.0}
{"score": 5.64, "score_count": 19988, "timestamp": 1553936997.0}
{"score": 5.65, "score_count": 19820, "timestamp": 1552275704.0}
{"score": 5.66, "score_count": 19008, "timestamp": 1546732510.0}
{"score": 5.... | [
27,
34345,
29,
1891,
437,
14,
272,
524,
62,
7890,
14,
45380,
20910,
62,
37967,
6659,
13,
20362,
198,
4895,
26675,
1298,
642,
13,
5237,
11,
366,
26675,
62,
9127,
1298,
1160,
4089,
17,
11,
366,
16514,
27823,
1298,
1315,
34287,
2598,
3... | 2.353909 | 729 |
#
# This file is a part of MolecularGraph.jl
# Licensed under the MIT License http://opensource.org/licenses/MIT
#
export
compute2dcoords
"""
compute2dcoords(mol::MolGraph) -> InternalCoordinates
Compute 2D coordinates of the molecular graph.
"""
function compute2dcoords(mol::MolGraph)
graph = mol.graph... | [
2,
198,
2,
770,
2393,
318,
257,
636,
286,
38275,
37065,
13,
20362,
198,
2,
49962,
739,
262,
17168,
13789,
2638,
1378,
44813,
1668,
13,
2398,
14,
677,
4541,
14,
36393,
198,
2,
198,
198,
39344,
198,
220,
220,
220,
24061,
17,
67,
107... | 2.112295 | 2,627 |
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using JuliaFEM
using Test
abstract type HeatProblem <: AbstractProblem
end
function HeatProblem(dim::Int=1, elements=[])
return Problem{HeatProblem}(dim, elements)
end
function get_unknown_f... | [
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,
16980,
544,
37,
3620,
13,
20362,
14,
2436,
672,
14,
9866,
14,
43,
2149,
24290,
... | 2.446454 | 1,382 |
"""
Generate a population of size `n` distributed spatially according to
a bivariate distribution, `d`
"""
function create_pop_db_bivariate(n::Int64, d::ContinuousMultivariateDistribution)
coordinates = rand(d, n)'
DataFrame(ind_id = 1:n, x = coordinates[:,1], y = coordinates[:,2])
end
"""
Generate a population o... | [
37811,
198,
8645,
378,
257,
3265,
286,
2546,
4600,
77,
63,
9387,
15246,
1927,
1864,
284,
198,
64,
275,
42524,
6082,
11,
4600,
67,
63,
198,
37811,
198,
8818,
2251,
62,
12924,
62,
9945,
62,
65,
42524,
7,
77,
3712,
5317,
2414,
11,
28... | 2.448352 | 455 |
## Main translation unit
# Need to include Precompile.jl before running this unit
using Distributed
using DistributedArrays
## Some important parameters
dict = Dict{String,Float64}("U" => 4.0, "V" => 1.0)
beta = 200; Niωn = 50
N_it = 3 ## Lowest number is 1: one loop in the process
SubLast = 1 ## Subdivision of last ... | [
2235,
8774,
11059,
4326,
198,
2,
10664,
284,
2291,
3771,
5589,
576,
13,
20362,
878,
2491,
428,
4326,
198,
3500,
4307,
6169,
198,
3500,
4307,
6169,
3163,
20477,
628,
198,
2235,
2773,
1593,
10007,
198,
11600,
796,
360,
713,
90,
10100,
1... | 1.856543 | 6,427 |
struct MINLP <: GroundStructureSolver
solver # to solve MINLP model
contz::Bool
timelimit::Float64 # seconds
writemodels::Bool
function MINLP(solver; contz=false, timelimit=Inf, writemodels=false)
new(solver, contz, timelimit, writemodels)
end
end
"""
Build MINLP model for ... | [
7249,
20625,
19930,
1279,
25,
13706,
1273,
5620,
50,
14375,
198,
220,
220,
220,
1540,
332,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
284,
8494,
20625,
19930,
2746,
198,
220,
220,
220,
542,
89,
3712,
33,
970,
... | 2.186537 | 1,753 |
using MLStyle
include("MQuery.ConstantNames.jl")
include("MQuery.DynamicInfer.jl")
include("MQuery.Interfaces.jl")
include("MQuery.MacroProcessor.jl")
include("MQuery.Impl.jl")
| [
3500,
13981,
774,
293,
198,
198,
17256,
7203,
44,
20746,
13,
3103,
18797,
36690,
13,
20362,
4943,
198,
17256,
7203,
44,
20746,
13,
44090,
818,
2232,
13,
20362,
4943,
198,
17256,
7203,
44,
20746,
13,
9492,
32186,
13,
20362,
4943,
198,
... | 2.78125 | 64 |
const PSA = Pair{Symbol,Any}
compound_declarations = [
"package" => CommandDeclaration[
PSA[:name => "test",
:api => API.test,
:should_splat => false,
:arg_count => 0 => Inf,
:arg_parser => parse_package,
:option_spec => [
PSA[:name => "coverage", :api => :coverage => true],
],
:com... | [
9979,
350,
4090,
796,
39645,
90,
13940,
23650,
11,
7149,
92,
198,
198,
5589,
633,
62,
32446,
24355,
796,
685,
198,
1,
26495,
1,
5218,
9455,
37835,
10186,
58,
198,
3705,
32,
58,
25,
3672,
5218,
366,
9288,
1600,
198,
220,
220,
220,
... | 2.925835 | 6,108 |
using KernelFunctions
SUITE["KernelFunctions"] = BenchmarkGroup()
kernelnames = ["SqExponentialKernel"]
kerneltypes = ["ARD", "ISO"]
kernels = Dict{String,Dict{String,KernelFunctions.Kernel}}()
for k in kernelnames
kernels[k] = Dict{String,KernelFunctions.Kernel}()
SUITE["KernelFunctions"][k] = BenchmarkGroup... | [
3500,
32169,
24629,
2733,
198,
198,
12564,
12709,
14692,
42,
7948,
24629,
2733,
8973,
796,
25187,
4102,
13247,
3419,
198,
198,
33885,
14933,
796,
14631,
50,
80,
16870,
35470,
42,
7948,
8973,
198,
33885,
19199,
796,
14631,
9795,
1600,
366,... | 2.067089 | 790 |
<reponame>hildebrandmw/SystemSnoop.jl
module SystemSnoop
export @snooped
using Dates
import StructArrays: StructArray
#####
##### Sample periodically
#####
"""
SystemSnoop.SmartSample(t::TimePeriod) -> SmartSample
Smart Sampler to ensure measurements happen every `t` time units. Samples will happen at
multiple... | [
27,
7856,
261,
480,
29,
71,
44725,
17938,
76,
86,
14,
11964,
50,
3919,
404,
13,
20362,
198,
21412,
4482,
50,
3919,
404,
198,
198,
39344,
2488,
82,
3919,
19458,
198,
198,
3500,
44712,
198,
11748,
32112,
3163,
20477,
25,
32112,
19182,
... | 2.513595 | 2,648 |
<reponame>alexander-wise/RvSpectML.jl
include("read_line_list.jl")
include("extract_orders.jl")
include("ccf_total.jl")
include("rvs_from_ccf_total.jl")
include("ccf_orders.jl")
| [
27,
7856,
261,
480,
29,
1000,
87,
4066,
12,
3083,
14,
49,
85,
49738,
5805,
13,
20362,
198,
17256,
7203,
961,
62,
1370,
62,
4868,
13,
20362,
4943,
198,
17256,
7203,
2302,
974,
62,
6361,
13,
20362,
4943,
198,
17256,
7203,
535,
69,
6... | 2.405405 | 74 |
<gh_stars>1-10
"""
AbstractCrystal{N}
Supertype for all types that describe crystal structures.
All subtypes of `AbstractCrystalData{N,T}` consist of a basis, space group with origin, atomic
sites, and information about the choice of cell vectors.
"""
abstract type AbstractCrystal{N}
end
"""
CrystalStructure... | [
27,
456,
62,
30783,
29,
16,
12,
940,
198,
37811,
198,
220,
220,
220,
27741,
43752,
90,
45,
92,
198,
198,
12442,
4906,
329,
477,
3858,
326,
6901,
15121,
8573,
13,
198,
198,
3237,
850,
19199,
286,
4600,
23839,
43752,
6601,
90,
45,
1... | 2.663601 | 3,044 |
export plot3d, plot3d!
function load_polyhedra_mesh()
return quote
using .Polyhedra: Mesh
end end # quote / function load_polyhedra_mesh()
function load_makie()
return quote
using .Makie: mesh, mesh!
using .Makie: Automatic
end end # quote / function load_makie()
# helper function for 3D plotting; converts ... | [
39344,
7110,
18,
67,
11,
7110,
18,
67,
0,
628,
198,
8818,
3440,
62,
35428,
704,
430,
62,
76,
5069,
3419,
198,
7783,
9577,
198,
198,
3500,
764,
34220,
704,
430,
25,
47529,
198,
198,
437,
886,
220,
1303,
9577,
1220,
2163,
3440,
62,
... | 2.530629 | 2,416 |
<reponame>UnofficialJuliaMirrorSnapshots/SpatialIndexing.jl-d4ead438-fe20-5cc5-a293-4fd39a41b74c<gh_stars>10-100
using Revise
using Random, SpatialIndexing
const SI = SpatialIndexing
Random.seed!(1)
seq_tree = RTree{Float64, 2}(Int, String, leaf_capacity = 20, branch_capacity = 20)
bulk_tree = RTree{Float64, 2}(Int, ... | [
27,
7856,
261,
480,
29,
3118,
16841,
16980,
544,
27453,
1472,
43826,
20910,
14,
4561,
34961,
15732,
278,
13,
20362,
12,
67,
19,
1329,
43704,
12,
5036,
1238,
12,
20,
535,
20,
12,
64,
31675,
12,
19,
16344,
2670,
64,
3901,
65,
4524,
... | 2.211129 | 611 |
"""
Default implementation of [`RoutingChannel`](@ref).
"""
struct BasicChannel <: RoutingChannel
"""
Direct storage for the [`Vector{PortVertices}`](@ref PortVertices) of the
sets of start vertices for each source of the channel.
"""
start_vertices::Vector{PortVertices}
"""
Direct storage... | [
37811,
198,
19463,
7822,
286,
685,
63,
49,
13660,
29239,
63,
16151,
31,
5420,
737,
198,
37811,
198,
7249,
14392,
29239,
1279,
25,
371,
13660,
29239,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4128,
6143,
329,
262,
685,
63,
38469,
... | 3.01626 | 369 |
<reponame>UnofficialJuliaMirrorSnapshots/D3Trees.jl-e3df1716-f71e-5df9-9e2d-98e193103c45
function blink(t::D3Tree)
w = Window()
str = stringmime(MIME("text/html"), t)
# println(str)
body!(w, str)
return w
end
function inchrome(t::D3Tree)
fname = joinpath(mktempdir(), "tree.html")
open(fname... | [
27,
7856,
261,
480,
29,
3118,
16841,
16980,
544,
27453,
1472,
43826,
20910,
14,
35,
18,
51,
6037,
13,
20362,
12,
68,
18,
7568,
1558,
1433,
12,
69,
4869,
68,
12,
20,
7568,
24,
12,
24,
68,
17,
67,
12,
4089,
68,
24943,
15197,
66,
... | 2.243945 | 578 |
#from videodev2.h
mutable struct v4l2_pix_format
width::UInt32
height::UInt32
pixelformat::UInt32
field::UInt32
bytesperline::UInt32
sizeimage::UInt32
colorspace::UInt32
priv::UInt32
flags::UInt32
ycbcr_enc::UInt32
quantization::UInt32
xfer_func::UInt32
pad1::UInt128... | [
2,
6738,
18784,
1098,
85,
17,
13,
71,
198,
198,
76,
18187,
2878,
410,
19,
75,
17,
62,
79,
844,
62,
18982,
198,
220,
220,
220,
9647,
3712,
52,
5317,
2624,
198,
220,
220,
220,
6001,
3712,
52,
5317,
2624,
198,
220,
220,
220,
17465,... | 1.857783 | 893 |
<filename>src/common_defaults.jl
@inline UNITLESS_ABS2(x::Number) = abs2(x)
@inline UNITLESS_ABS2(x::AbstractArray) = sum(UNITLESS_ABS2, x)
@inline UNITLESS_ABS2(x::RecursiveArrayTools.ArrayPartition) = sum(UNITLESS_ABS2, x.x)
Base.mapreduce_empty(::typeof(UNITLESS_ABS2), op, T) = abs2(Base.reduce_empty(op, T))
@... | [
27,
34345,
29,
10677,
14,
11321,
62,
12286,
82,
13,
20362,
198,
31,
45145,
4725,
2043,
48481,
62,
32,
4462,
17,
7,
87,
3712,
15057,
8,
796,
2352,
17,
7,
87,
8,
201,
198,
31,
45145,
4725,
2043,
48481,
62,
32,
4462,
17,
7,
87,
3... | 2.148445 | 997 |
# Vector{WAHElement}
# ==================
#
# Operations on vectors of WAHElement
#
# This file is a part of BioJulia.
# License is MIT: https://github.com/BioJulia/WAHVectors.jl/blob/master/LICENSE.md
"""
append_literal!(a, element)
Append a WAHElement representing a literal binary value to a Vector{WAHElement}.... | [
2,
20650,
90,
15543,
13909,
1732,
92,
198,
2,
36658,
28,
198,
2,
198,
2,
16205,
319,
30104,
286,
16400,
13909,
1732,
198,
2,
198,
2,
770,
2393,
318,
257,
636,
286,
16024,
16980,
544,
13,
198,
2,
13789,
318,
17168,
25,
3740,
1378,
... | 2.397409 | 1,930 |
<gh_stars>0
using GeoData, Test, ArchGDAL
using GeoData: reproject, convertmode
@testset "reproject" begin
cea = ProjString("+proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0")
wktcea = convert(WellKnownText, cea)
projcea = convert(ProjString, cea)
w... | [
27,
456,
62,
30783,
29,
15,
198,
3500,
32960,
6601,
11,
6208,
11,
5579,
45113,
1847,
198,
3500,
32960,
6601,
25,
43969,
752,
11,
10385,
14171,
198,
198,
31,
9288,
2617,
366,
260,
16302,
1,
2221,
198,
220,
220,
220,
2906,
64,
796,
... | 2.222222 | 1,206 |
<gh_stars>0
isdefined(Base, :__precompile__) && __precompile__()
module UnicodePlots
using Base.Dates
import StatsBase: Histogram, fit
export
GraphicsArea,
Canvas,
BrailleCanvas,
DensityCanvas,
BlockCanvas,
AsciiCanvas,
DotCanvas,
Barplo... | [
27,
456,
62,
30783,
29,
15,
198,
271,
23211,
7,
14881,
11,
1058,
834,
3866,
5589,
576,
834,
8,
11405,
11593,
3866,
5589,
576,
834,
3419,
198,
21412,
34371,
3646,
1747,
198,
198,
3500,
7308,
13,
35,
689,
198,
11748,
20595,
14881,
25,... | 2.393238 | 562 |
using DataFrames
using Test
for testscen in 1:2
valdir, scenario, use_permafrost, use_seaice = get_scenario(testscen)
println(scenario)
m = page_model()
include("../src/components/SLRDamages.jl")
slrdamages = addslrdamages(m)
set_param!(m, :SLRDamages, :y_year, [2020, 2030, 2040,... | [
3500,
6060,
35439,
201,
198,
3500,
6208,
201,
198,
201,
198,
1640,
1332,
1416,
268,
287,
352,
25,
17,
201,
198,
220,
220,
220,
1188,
15908,
11,
8883,
11,
779,
62,
16321,
1878,
23341,
11,
779,
62,
8583,
501,
796,
651,
62,
1416,
390... | 2.24314 | 1,567 |
<filename>src/distributions/distribution_functions.jl
# This file is a part of BAT.jl, licensed under the MIT License (MIT).
function _check_rand_compat(s::Sampleable{Multivariate}, A::Union{AbstractVector,AbstractMatrix})
size(A, 1) == length(s) || throw(DimensionMismatch("Output size inconsistent with sample le... | [
27,
34345,
29,
10677,
14,
17080,
2455,
507,
14,
17080,
3890,
62,
12543,
2733,
13,
20362,
198,
2,
770,
2393,
318,
257,
636,
286,
37421,
13,
20362,
11,
11971,
739,
262,
17168,
13789,
357,
36393,
737,
628,
198,
8818,
4808,
9122,
62,
25... | 2.619978 | 921 |
import Test: Test, record, finish
using Test: AbstractTestSet, DefaultTestSet, Result, Pass, Fail, Error
using Test: get_testset_depth, get_testset
struct InternalTestSet <: AbstractTestSet
default_ts::DefaultTestSet
end
InternalTestSet(desc::AbstractString; verbose::Bool = false) =
InternalTestSet(DefaultTes... | [
11748,
6208,
25,
6208,
11,
1700,
11,
5461,
198,
3500,
6208,
25,
27741,
14402,
7248,
11,
15161,
14402,
7248,
11,
25414,
11,
6251,
11,
18448,
11,
13047,
198,
3500,
6208,
25,
651,
62,
9288,
2617,
62,
18053,
11,
651,
62,
9288,
2617,
198... | 2.95288 | 191 |
<reponame>jvaverka/BookTest
module BookTest
using Reexport: @reexport
@reexport begin
using Books:
build_all,
gen
using DataFrames:
DataFrame,
filter!,
filter,
select!,
select
end # @reexport
using BenchmarkTools
using StaticArrays
include("data.jl")
include("optimizing-serial-code.jl")
... | [
27,
7856,
261,
480,
29,
73,
6862,
332,
4914,
14,
10482,
14402,
198,
21412,
4897,
14402,
198,
198,
3500,
797,
39344,
25,
2488,
631,
87,
634,
198,
31,
631,
87,
634,
2221,
198,
3500,
13661,
25,
198,
220,
220,
220,
1382,
62,
439,
11,
... | 2.722222 | 234 |
<filename>src/DiffEqOperators.jl
module DiffEqOperators
using Base: Number
import Base: +, -, *, /, \, size, getindex, setindex!, Matrix, convert, ==
using DiffEqBase, StaticArrays, LinearAlgebra
import LinearAlgebra: mul!, ldiv!, lmul!, rmul!, axpy!, opnorm, factorize, I
import DiffEqBase: update_coefficients!, iscon... | [
27,
34345,
29,
10677,
14,
28813,
36,
80,
18843,
2024,
13,
20362,
198,
21412,
10631,
36,
80,
18843,
2024,
198,
198,
3500,
7308,
25,
7913,
198,
11748,
7308,
25,
1343,
11,
532,
11,
1635,
11,
1220,
11,
3467,
11,
2546,
11,
651,
9630,
1... | 2.93575 | 1,214 |
using SearchLight, SearchLight.Migrations, SearchLight.Relationships
cd(joinpath(pathof(SearchLight) |> dirname, "..", "test"))
### SQLite
using SearchLightSQLite
const conndata = Dict("database" => "db/testdb.sqlite", "adapter" => "SQLite")
### MySQL
# using SearchLightMySQL
# const conndata = Dict{String,Any}("hos... | [
3500,
11140,
15047,
11,
11140,
15047,
13,
44,
3692,
602,
11,
11140,
15047,
13,
47117,
5748,
198,
198,
10210,
7,
22179,
6978,
7,
6978,
1659,
7,
18243,
15047,
8,
930,
29,
26672,
3672,
11,
366,
492,
1600,
366,
9288,
48774,
198,
198,
21... | 2.819757 | 577 |
<reponame>TimoLarson/julia<gh_stars>1-10
# This file is a part of Julia. License is MIT: https://julialang.org/license
# Factorials
const _fact_table64 = Vector{Int64}(undef, 20)
_fact_table64[1] = 1
for n in 2:20
_fact_table64[n] = _fact_table64[n-1] * n
end
const _fact_table128 = Vector{UInt128}(undef, 34)
_fa... | [
27,
7856,
261,
480,
29,
14967,
78,
43,
12613,
14,
73,
43640,
27,
456,
62,
30783,
29,
16,
12,
940,
198,
2,
770,
2393,
318,
257,
636,
286,
22300,
13,
13789,
318,
17168,
25,
3740,
1378,
73,
377,
498,
648,
13,
2398,
14,
43085,
198,
... | 2.074344 | 4,116 |
<reponame>dsweber2/ScatteringTransform.jl
@testset "Flux Scattering Transform methods" begin
ifGpu = identity
i=40; s =6//5
nExtraDims = 2
xExtraDims = 3
k = 4; N=2
i=25; s = 2//1; nExtraDims = 2; xExtraDims= 2; k = 3; N=1
import ScatteringTransform:stopAtExactly_WithRate_
@testset "testing pooling" begin
subsampRa... | [
27,
7856,
261,
480,
29,
9310,
732,
527,
17,
14,
3351,
16475,
41762,
13,
20362,
198,
31,
9288,
2617,
366,
37,
22564,
1446,
16475,
26981,
5050,
1,
2221,
198,
361,
38,
19944,
796,
5369,
198,
72,
28,
1821,
26,
264,
796,
21,
1003,
20,
... | 2.023095 | 8,530 |
<filename>src/plotting/recipes_diagnostics.jl
# This file is a part of BAT.jl, licensed under the MIT License (MIT).
struct MCMCDiagnostics
samples::DensitySampleVector{<:AbstractVector{<:Real}}
chainresults::Array{}
end
MCMCDiagnostics(samples::DensitySampleVector, chainresults = []) =
MCMCDiagnostics(uns... | [
27,
34345,
29,
10677,
14,
29487,
889,
14,
8344,
18636,
62,
47356,
34558,
13,
20362,
198,
2,
770,
2393,
318,
257,
636,
286,
37421,
13,
20362,
11,
11971,
739,
262,
17168,
13789,
357,
36393,
737,
198,
7249,
13122,
44,
8610,
72,
4660,
3... | 1.759199 | 5,191 |
abstract type Params end;
"""
CompressionParams
Compression params
CompressionParams(;
compressor ::Symbol = default_compressor_name()
level ::UInt8 = 5
typesize ::Int32 = 8
nthreads ::Int16 = 1
blocksize ::Int32 = 0
splitmode ::Bool = false
filter_pipe... | [
397,
8709,
2099,
2547,
4105,
886,
26,
198,
198,
37811,
198,
220,
220,
220,
3082,
2234,
10044,
4105,
198,
198,
7293,
2234,
42287,
628,
220,
220,
220,
3082,
2234,
10044,
4105,
7,
26,
198,
220,
220,
220,
220,
220,
220,
220,
49395,
7904... | 2.311407 | 1,201 |
<gh_stars>0
# A versatile graph type
#
# It implements edge_list, adjacency_list and incidence_list
#
type GenericGraph{V,E,VList,EList,IncList} <: AbstractGraph{V,E}
is_directed::Bool
vertices::VList # an indexable container of vertices
edges::EList # an indexable container of edges
finclis... | [
27,
456,
62,
30783,
29,
15,
198,
2,
317,
21362,
4823,
2099,
198,
2,
198,
2,
632,
23986,
5743,
62,
4868,
11,
9224,
330,
1387,
62,
4868,
290,
18349,
62,
4868,
198,
2,
198,
198,
4906,
42044,
37065,
90,
53,
11,
36,
11,
53,
8053,
1... | 2.15222 | 1,419 |
<filename>viete.jl
include("getdigit_n.jl")
include("myprintf.jl")
using Printf
using .GetDigit_n
using .MyPrintf
const DIGIT = 100
const MAXN = 500
function viete(n)
numerator = sqrt(BigFloat(2))
result = BigFloat(1)
for i = 1:n
result *= (numerator / BigFloat(2))
numerator = sqrt(Bi... | [
27,
34345,
29,
85,
1155,
68,
13,
20362,
198,
17256,
7203,
1136,
27003,
62,
77,
13,
20362,
4943,
198,
17256,
7203,
1820,
37435,
13,
20362,
4943,
198,
3500,
12578,
69,
198,
3500,
764,
3855,
19511,
270,
62,
77,
198,
3500,
764,
3666,
18... | 1.967662 | 402 |
<gh_stars>0
# Test that parsing works correctly
# Parsing of terms
@test Const(:atom) == @julog atom
@test Const(1) == @julog 1
@test Const((2,3)) == @julog (2,3)
@test Const("foo") == @julog "foo"
@test Var(:Variable) == @julog Variable
@test Compound(:functor, Term[Const(:a), Var(:B)]) == @julog functor(a, B)
# Par... | [
27,
456,
62,
30783,
29,
15,
198,
2,
6208,
326,
32096,
2499,
9380,
198,
198,
2,
23042,
278,
286,
2846,
198,
31,
9288,
4757,
7,
25,
37696,
8,
6624,
2488,
73,
377,
519,
22037,
198,
31,
9288,
4757,
7,
16,
8,
6624,
2488,
73,
377,
5... | 2.323873 | 599 |
<gh_stars>1-10
using Base.Test
using EGR
using Redis
println("TestFindBest")
client = RedisConnection()
# run(`redis-cli keys "Test*"` |> `xargs redis-cli del`)
run(pipeline(`redis-cli keys "Test*"`, `xargs redis-cli del`))
createOracleOutputLevel = 1
numEquivalentPasses = 1
algOutputLevel = 0
maxOutputNum=20
const... | [
27,
456,
62,
30783,
29,
16,
12,
940,
198,
3500,
7308,
13,
14402,
198,
3500,
412,
10761,
198,
3500,
2297,
271,
198,
198,
35235,
7203,
14402,
16742,
13014,
4943,
198,
198,
16366,
796,
2297,
271,
32048,
3419,
198,
198,
2,
1057,
7,
63,
... | 2.521161 | 827 |
T = Float64
# vis = Visualizer()
# open(vis)
include(joinpath(module_dir(), "src", "dynamics", "quadruped", "visuals.jl"))
# s = get_simulation("quadruped", "flat_2D_lc", "flat")
ref_traj = deepcopy(ContactImplicitMPC.get_trajectory(s.model, s.env,
joinpath(module_dir(), "src/dynamics/quadruped/gaits/gait2.jld... | [
628,
198,
51,
796,
48436,
2414,
198,
2,
1490,
796,
15612,
7509,
3419,
198,
2,
1280,
7,
4703,
8,
198,
17256,
7,
22179,
6978,
7,
21412,
62,
15908,
22784,
366,
10677,
1600,
366,
67,
4989,
873,
1600,
366,
47003,
622,
9124,
1600,
366,
... | 2.165072 | 418 |
mutable struct Node{T}
feature_idx::Int
feature_val::T
value::Int
left::Node{T}
right::Node{T}
is_terminal::Bool
function Node(feature_idx, feature_val::T) where {T}
node = new{T}()
node.feature_idx = feature_idx
node.feature_val = feature_val
node.is_termina... | [
76,
18187,
2878,
19081,
90,
51,
92,
198,
220,
220,
220,
3895,
62,
312,
87,
3712,
5317,
198,
220,
220,
220,
3895,
62,
2100,
3712,
51,
198,
220,
220,
220,
1988,
3712,
5317,
198,
220,
220,
220,
1364,
3712,
19667,
90,
51,
92,
198,
2... | 2.147267 | 3,110 |
<reponame>jamesgardner1421/NOAu111.jl<filename>src/parameters.jl
using Unitful: @u_str, ustrip, uconvert, Unitful
const energy_unit = u"kJ/mol" / Unitful.Na
# Energies converted to eV, distances in Angstrom, forces in eV/Angstrom.
const A₀ = ustrip(uconvert(u"eV", 457095 * energy_unit))
const α₀ = 3.7594
const B₀ = ... | [
27,
7856,
261,
480,
29,
73,
1047,
19977,
1008,
1415,
2481,
14,
15285,
32,
84,
16243,
13,
20362,
27,
34345,
29,
10677,
14,
17143,
7307,
13,
20362,
198,
3500,
11801,
913,
25,
2488,
84,
62,
2536,
11,
334,
36311,
11,
334,
1102,
1851,
... | 1.69562 | 1,370 |
# This file is auto-generated by AWSMetadata.jl
using AWS
using AWS.AWSServices: iot_events_data
using AWS.Compat
using AWS.UUIDs
"""
batch_acknowledge_alarm(acknowledge_action_requests)
batch_acknowledge_alarm(acknowledge_action_requests, params::Dict{String,<:Any})
Acknowledges one or more alarms. The alarm... | [
2,
770,
2393,
318,
8295,
12,
27568,
416,
30865,
9171,
14706,
13,
20362,
198,
3500,
30865,
198,
3500,
30865,
13,
12298,
5432,
712,
1063,
25,
1312,
313,
62,
31534,
62,
7890,
198,
3500,
30865,
13,
40073,
198,
3500,
30865,
13,
52,
27586,
... | 3.071407 | 3,319 |
<reponame>serenity4/Meshes.jl<gh_stars>100-1000
@testset "Intersections" begin
@testset "Segments" begin
# segments in 2D
s1 = Segment(P2(0,0), P2(1,0))
s2 = Segment(P2(0.5,0.0), P2(2,0))
@test s1 ∩ s2 == Segment(P2(0.5,0.0), P2(1,0))
@test s2 ∩ s1 == Segment(P2(0.5,0.0), P2(1,0))
s1 = Segmen... | [
27,
7856,
261,
480,
29,
325,
918,
414,
19,
14,
44,
274,
956,
13,
20362,
27,
456,
62,
30783,
29,
3064,
12,
12825,
198,
31,
9288,
2617,
366,
9492,
23946,
1,
2221,
198,
220,
2488,
9288,
2617,
366,
41030,
902,
1,
2221,
198,
220,
220... | 1.699456 | 4,778 |
module Shapes
using IterTools: partition
using LinearAlgebra
using StaticArrays: SVector, SMatrix
export AbstractShape, AbstractLineShape,
HalfPlane, HalfSpace, Point, Polygon, Polyline, Vertex,
circle, edges, polygon, rotate, translate, vertices
const flatten = Iterators.flatten
# """
# Vector{D,T}
# ... | [
21412,
911,
7916,
198,
198,
3500,
40806,
33637,
25,
18398,
198,
3500,
44800,
2348,
29230,
198,
3500,
36125,
3163,
20477,
25,
20546,
9250,
11,
9447,
265,
8609,
198,
198,
39344,
27741,
33383,
11,
27741,
13949,
33383,
11,
198,
220,
220,
22... | 2.156389 | 11,433 |
export
pckcls,
pckcov!,
pckcov,
pckfrm!,
pckfrm,
pcklof,
pckopn,
pckuof,
pckw02,
pcpool,
pdpool,
pgrrec,
phaseq,
pipool,
pjelpl,
pl2nvc,
pl2nvp,
pl2psv,
pltar,
pltexp,
pltnp,
pltnrm,
pltvol,
polyds,
pos,
posr,
pr... | [
39344,
198,
220,
220,
220,
279,
694,
565,
82,
11,
198,
220,
220,
220,
279,
694,
66,
709,
28265,
198,
220,
220,
220,
279,
694,
66,
709,
11,
198,
220,
220,
220,
279,
694,
8310,
76,
28265,
198,
220,
220,
220,
279,
694,
8310,
76,
... | 2.469122 | 8,064 |
<reponame>orialb/ITensors.jl
"""
ITensor([::Type{ElT} = Float64, ][flux::QN = QN(), ]inds)
ITensor([::Type{ElT} = Float64, ][flux::QN = QN(), ]inds::Index...)
Construct an ITensor with BlockSparse storage filled with `zero(ElT)` where the nonzero blocks are determined by `flux`.
If `ElT` is not specified it ... | [
27,
7856,
261,
480,
29,
5132,
65,
14,
2043,
641,
669,
13,
20362,
198,
198,
37811,
198,
220,
220,
220,
7283,
22854,
26933,
3712,
6030,
90,
9527,
51,
92,
796,
48436,
2414,
11,
41832,
69,
22564,
3712,
48,
45,
796,
1195,
45,
22784,
23... | 2.15545 | 3,789 |
using Setfield, Flux, InteractiveUtils
@testset "code2lens & lens2code" begin
j1 = JSON.parse("""{"a": [{"a":1},{"b":2,"c":"oh"}]}""")
j2 = JSON.parse("""{"a": [{"a":1,"b":3,"c":"hi"},{"b":2,"a":1,"c":"Mark"}]}""")
j3 = JSON.parse("""{"a": [{"a":2,"b":3}]}""")
j4 = JSON.parse("""{"a": []}""")
j5 = JSON.parse("""{... | [
3500,
5345,
3245,
11,
1610,
2821,
11,
21365,
18274,
4487,
198,
198,
31,
9288,
2617,
366,
8189,
17,
75,
641,
1222,
10317,
17,
8189,
1,
2221,
198,
197,
73,
16,
796,
19449,
13,
29572,
7203,
15931,
4895,
64,
1298,
685,
4895,
64,
1298,
... | 1.97076 | 855 |
<filename>examples/database/dev/convertslamindb.jl
# convert uploaded graph in DB to MM-iSAM ready form
using Caesar, CloudGraphs
# Uncomment out for command line operation
# cloudGraph, addrdict = standardcloudgraphsetup(nparticles=true, clearslamindb=true)
# interactive operation
include(joinpath(dirname(@__FILE_... | [
27,
34345,
29,
1069,
12629,
14,
48806,
14,
7959,
14,
1102,
24040,
2543,
521,
65,
13,
20362,
198,
2,
10385,
19144,
4823,
287,
20137,
284,
20806,
12,
72,
49302,
3492,
1296,
198,
198,
3500,
24088,
11,
10130,
37065,
82,
628,
198,
2,
791... | 2.76036 | 555 |
<filename>test/runtests.jl
using H5PLEXOS
zipfiles = ["Model Base_8200 Solution.zip",
"Model Base_8200 NoInterval Solution.zip",
"Model DAY_AHEAD_NO_TX Solution.zip",
"Model DAY_AHEAD_NO_TX Stochastic Solution.zip",
"Model DAY_AHEAD_ALL_TX Solution.zip",
"Mod... | [
27,
34345,
29,
9288,
14,
81,
2797,
3558,
13,
20362,
198,
3500,
367,
20,
16437,
55,
2640,
198,
198,
13344,
16624,
796,
14631,
17633,
7308,
62,
23,
2167,
28186,
13,
13344,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
... | 2.293548 | 310 |
# BAM Record
# ==========
type BAMRecord
# fixed-length fields (see BMA specs for the details)
block_size::Int32
refid::Int32
pos::Int32
bin_mq_nl::UInt32
flag_nc::UInt32
l_seq::Int32
next_refid::Int32
next_pos::Int32
tlen::Int32
# variable length data
data::Vector{UInt... | [
2,
347,
2390,
13266,
198,
2,
796,
2559,
28,
198,
198,
4906,
347,
2390,
23739,
198,
220,
220,
220,
1303,
5969,
12,
13664,
7032,
357,
3826,
347,
5673,
25274,
329,
262,
3307,
8,
198,
220,
220,
220,
2512,
62,
7857,
3712,
5317,
2624,
1... | 2.317516 | 3,414 |
using Newbe
using Test
@testset "Newbe.jl" begin
# Write your tests here.
end
| [
3500,
968,
1350,
198,
3500,
6208,
198,
198,
31,
9288,
2617,
366,
3791,
1350,
13,
20362,
1,
2221,
198,
220,
220,
220,
1303,
19430,
534,
5254,
994,
13,
198,
437,
198
] | 2.677419 | 31 |
<reponame>OptimalDesignLab/PDESolver.jl<gh_stars>10-100
arg_dict = Dict{Any, Any}(
# "operator_type" => "SBPGamma",
"operator_type" => "SBPOmega",
# "operator_type" => "SBPDiagE",
"physics" => "Elliptic",
"use_DG" => true,
"delta_t" => 1.0e-3,
"t_max" => 5.0,
"re... | [
27,
7856,
261,
480,
29,
27871,
4402,
23067,
17822,
14,
5760,
1546,
14375,
13,
20362,
27,
456,
62,
30783,
29,
940,
12,
3064,
198,
853,
62,
11600,
796,
360,
713,
90,
7149,
11,
4377,
92,
7,
198,
220,
1303,
366,
46616,
62,
4906,
1,
... | 1.783333 | 1,080 |
using BlockArrays
using BenchmarkTools
using FileIO
include("generate_report.jl")
const SUITE = BenchmarkGroup()
g = addgroup!(SUITE, "indexing")
# g_block = addgroup!(SUITE, "blockindexing")
g_size = addgroup!(SUITE, "size")
for n = (5,)
for BT in (BlockArray, PseudoBlockArray)
block_vec = BT(rand(n), ... | [
3500,
9726,
3163,
20477,
198,
3500,
25187,
4102,
33637,
198,
3500,
9220,
9399,
198,
198,
17256,
7203,
8612,
378,
62,
13116,
13,
20362,
4943,
198,
198,
9979,
13558,
12709,
796,
25187,
4102,
13247,
3419,
198,
198,
70,
796,
751,
8094,
0,
... | 2.231421 | 1,063 |
@doc raw"""
SubGradientProblem <: Problem
A structure to store information about a subgradient based optimization problem
# Fields
* `manifold` – a [Manifold](https://juliamanifolds.github.io/Manifolds.jl/stable/interface.html#ManifoldsBase.Manifold)
* `cost` – the function $F$ to be minimized
* `subgradient` – a... | [
31,
15390,
8246,
37811,
198,
220,
220,
220,
3834,
42731,
1153,
40781,
1279,
25,
20647,
198,
198,
32,
4645,
284,
3650,
1321,
546,
257,
850,
49607,
1912,
23989,
1917,
198,
198,
2,
23948,
198,
9,
4600,
805,
361,
727,
63,
784,
257,
685,... | 2.461182 | 863 |
function get_deserialized(sim::Simulation, stage_info)
path = mktempdir()
directory = PSI.serialize(sim; path = path)
return Simulation(directory, stage_info)
end
function test_load_simulation(file_path::String)
c_sys5_uc = build_system("c_sys5_uc")
single_stage_definition =
Dict("ED" => S... | [
8818,
651,
62,
8906,
48499,
1143,
7,
14323,
3712,
8890,
1741,
11,
3800,
62,
10951,
8,
198,
220,
220,
220,
3108,
796,
33480,
29510,
15908,
3419,
198,
220,
220,
220,
8619,
796,
6599,
40,
13,
46911,
1096,
7,
14323,
26,
3108,
796,
3108,... | 1.910809 | 15,506 |
<filename>src/GPBounding/squared_exponential.jl
"Computes the lower bound of the posterior mean function of a Gaussian process in an interval."
function compute_μ_lower_bound(gp, x_L, x_U, theta_vec_train_squared; upper_flag=false)
# Set minmax_factor to -1 if maximizing
minmax_factor = upper_flag ? -1. : 1.
... | [
27,
34345,
29,
10677,
14,
16960,
33,
9969,
14,
16485,
1144,
62,
11201,
35470,
13,
20362,
198,
1,
7293,
1769,
262,
2793,
5421,
286,
262,
34319,
1612,
2163,
286,
257,
12822,
31562,
1429,
287,
281,
16654,
526,
198,
8818,
24061,
62,
34703... | 1.824749 | 4,291 |
<gh_stars>0
# This file is a part of Julia. License is MIT: https://julialang.org/license
# Content in this file is extracted from BinaryProvider.jl, see LICENSE.method
module PlatformEngines
using SHA, Logging, UUIDs, Random
import ...Pkg: Pkg, TOML, pkg_server, depots1
export probe_platform_engines!, parse_7z_list... | [
27,
456,
62,
30783,
29,
15,
198,
2,
770,
2393,
318,
257,
636,
286,
22300,
13,
13789,
318,
17168,
25,
3740,
1378,
73,
377,
498,
648,
13,
2398,
14,
43085,
198,
198,
2,
14041,
287,
428,
2393,
318,
21242,
422,
45755,
29495,
13,
20362,... | 2.410267 | 21,096 |
using LightXML
# create an empty XML document
xdoc = XMLDocument()
# create & attach a root node
xroot = create_root(xdoc, "States")
# create the first child
xs1 = new_child(xroot, "State")
# add the inner content
add_text(xs1, "Massachusetts")
# set attribute
set_attribute(xs1, "tag", "MA")
# likewise for the se... | [
3500,
4401,
55,
5805,
198,
198,
2,
2251,
281,
6565,
23735,
3188,
198,
87,
15390,
796,
23735,
24941,
3419,
198,
198,
2,
2251,
1222,
10199,
257,
6808,
10139,
198,
87,
15763,
796,
2251,
62,
15763,
7,
87,
15390,
11,
366,
42237,
4943,
19... | 1.80681 | 1,351 |
using Flux
using Flux: @treelike
using Flux.Tracker: data
using LinearAlgebra: tril!
struct MultiheadAttention
head::Int
future::Bool
iqproj::Dense
ikproj::Dense
ivproj::Dense
oproj::Dense
drop::Dropout
end
@treelike MultiheadAttention
"""
MultiheadAttention(head::Int, is::Int, hs::In... | [
3500,
1610,
2821,
198,
3500,
1610,
2821,
25,
2488,
33945,
417,
522,
198,
3500,
1610,
2821,
13,
35694,
25,
1366,
198,
3500,
44800,
2348,
29230,
25,
491,
346,
0,
198,
198,
7249,
15237,
2256,
8086,
1463,
198,
220,
220,
220,
1182,
3712,
... | 1.81552 | 3,415 |
#=
This file is auto-generated. Do not edit.
=#
"""
mutable struct DeterministicInternal <: ForecastInternal
label::String
resolution::Dates.Period
initial_time::Dates.DateTime
time_series_uuid::UUIDs.UUID
horizon::Int
internal::InfrastructureSystemsInternal
end
... | [
2,
28,
198,
1212,
2393,
318,
8295,
12,
27568,
13,
2141,
407,
4370,
13,
198,
46249,
198,
37811,
198,
220,
220,
220,
4517,
540,
2878,
45559,
49228,
37693,
1279,
25,
4558,
2701,
37693,
198,
220,
220,
220,
220,
220,
220,
220,
6167,
3712... | 3.3217 | 659 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.