content
stringlengths
6
1.03M
input_ids
listlengths
4
535k
ratio_char_token
float64
0.68
8.61
token_count
int64
4
535k
for testscen in 1:2 valdir, scenario, use_permafrost, use_seaice = get_scenario(testscen) println(scenario) m = test_page_model() include("../src/components/RCPSSPScenario.jl") include("../src/components/CH4emissions.jl") scenario = addrcpsspscenario(m, scenario) ch4emit = add_comp!(m, ch4...
[ 1640, 1332, 1416, 268, 287, 352, 25, 17, 198, 220, 220, 220, 1188, 15908, 11, 8883, 11, 779, 62, 16321, 1878, 23341, 11, 779, 62, 8583, 501, 796, 651, 62, 1416, 39055, 7, 9288, 1416, 268, 8, 198, 220, 220, 220, 44872, 7, 1416, 3...
2.470414
338
using AutoML using Base.Test # write your own tests here @test 1 == 1 include("evaluation/mlogloss.jl")
[ 3500, 11160, 5805, 198, 3500, 7308, 13, 14402, 198, 198, 2, 3551, 534, 898, 5254, 994, 198, 31, 9288, 352, 6624, 352, 198, 198, 17256, 7203, 18206, 2288, 14, 4029, 519, 22462, 13, 20362, 4943, 198 ]
2.944444
36
push!(LOAD_PATH, "/Users/czhang/Desktop/Projects/dw_/julialib/") import DimmWitted DimmWitted.set_libpath("/Users/czhang/Desktop/Projects/dw_/libdw_julia") ###################################### # The following piece of code creates a # synthetic data set: # - Data type is Cdouble # - Modle type is Array{Cdoubl...
[ 198, 14689, 0, 7, 35613, 62, 34219, 11, 12813, 14490, 14, 66, 23548, 648, 14, 36881, 14, 16775, 82, 14, 67, 86, 62, 14, 73, 377, 498, 571, 14, 4943, 198, 11748, 360, 8608, 54, 2175, 198, 35, 8608, 54, 2175, 13, 2617, 62, 8019, ...
2.369099
1,165
<filename>src/generic/state.jl "Generic PDDL state description." mutable struct GenericState <: State types::Set{Compound} # Object type declarations facts::Set{Term} # Boolean-valued fluents values::Dict{Symbol,Any} # All other fluents end GenericState(types) = GenericState(types, Set{Term}(), Dict{Symbol...
[ 27, 34345, 29, 10677, 14, 41357, 14, 5219, 13, 20362, 198, 1, 46189, 14340, 19260, 1181, 6764, 526, 198, 76, 18187, 2878, 42044, 9012, 1279, 25, 1812, 198, 220, 220, 220, 3858, 3712, 7248, 90, 7293, 633, 92, 1303, 9515, 2099, 31713, ...
2.562368
1,419
<reponame>jmmshn/LeetCode.jl # --- # title: 675. Cut Off Trees for Golf Event # id: problem675 # author: <NAME> # date: 2020-10-31 # difficulty: Hard # categories: Breadth-first Search # link: <https://leetcode.com/problems/cut-off-trees-for-golf-event/description/> # hidden: true # --- # # You are asked to cut off al...
[ 27, 7856, 261, 480, 29, 73, 76, 907, 21116, 14, 3123, 316, 10669, 13, 20362, 198, 2, 11420, 198, 2, 3670, 25, 718, 2425, 13, 9712, 3242, 34925, 329, 19709, 8558, 198, 2, 4686, 25, 1917, 42444, 198, 2, 1772, 25, 1279, 20608, 29, ...
2.621501
893
<gh_stars>1-10 function kerker_mix(res, mixOpts::kerkerMixOptions) #The Kerker mixing, following the parameter setup of elliptic #preconditioner. # #<NAME> #Last revision: 5/6/2012 return kerker_mix(res, mixOpts.KerkerB, mixOpts.kmult, mixOpts.YukawaK, mixOpts.epsil0) end function kerker_mi...
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 8818, 220, 479, 35779, 62, 19816, 7, 411, 11, 5022, 27871, 82, 3712, 6122, 6122, 35608, 29046, 8, 198, 2, 464, 17337, 6122, 17090, 11, 1708, 262, 11507, 9058, 286, 48804, 291, 198, 2, 3866...
2.266254
323
mutable struct WishartStatXMLElement <: MyXMLElement el::XMLOrNothing traitLikelihood_el::TraitLikelihoodXMLElement rm_el::Union{Nothing, RepeatedMeasuresXMLElement} mbd_el::Union{Nothing, MBDXMLElement} function WishartStatXMLElement(like_el::TraitLikelihoodXMLElement, mbd_el::MBDX...
[ 76, 18187, 2878, 23447, 433, 17126, 37643, 2538, 1732, 1279, 25, 2011, 37643, 2538, 1732, 198, 220, 220, 220, 1288, 3712, 55, 5805, 5574, 18465, 198, 220, 220, 220, 16708, 7594, 11935, 62, 417, 3712, 51, 12907, 7594, 11935, 37643, 2538,...
2.132413
1,956
<reponame>dataScienceToolKit/NextGP.jl<filename>src/runTime.jl using StatsModels: AbstractTerm struct RandTerm <: AbstractTerm var::Char data::Char end ran(s::Char, d::Char) = RandTerm(s, d) struct PartRegTerm <: AbstractTerm mat::Char regSize::Int path::String end PR(s::Char, d::Int, p::String)...
[ 27, 7856, 261, 480, 29, 7890, 26959, 25391, 20827, 14, 10019, 16960, 13, 20362, 27, 34345, 29, 10677, 14, 5143, 7575, 13, 20362, 198, 3500, 20595, 5841, 1424, 25, 27741, 40596, 198, 198, 7249, 8790, 40596, 1279, 25, 27741, 40596, 198, ...
2.5
138
<filename>src/02_commands/03_Navigation/02_Get_Current_URL.jl # Command: Get Current URL """ current_url(session::Session)::String Get Current URL. """ function current_url(session::Session)::String @unpack addr, id = session response = HTTP.get("$addr/session/$id/url", [("Content-Type" => "application/json")...
[ 27, 34345, 29, 10677, 14, 2999, 62, 9503, 1746, 14, 3070, 62, 30575, 7065, 14, 2999, 62, 3855, 62, 11297, 62, 21886, 13, 20362, 198, 2, 9455, 25, 3497, 9236, 10289, 198, 37811, 198, 197, 14421, 62, 6371, 7, 29891, 3712, 36044, 2599,...
2.905109
137
# Copyright (c) 2017: <NAME> and contributors # Copyright (c) 2017: Google Inc. # # Use of this source code is governed by an MIT-style license that can be found # in the LICENSE.md file or at https://opensource.org/licenses/MIT. using Test # This file gets called first. It it doesn't crash, all is well. include("iss...
[ 2, 15069, 357, 66, 8, 2177, 25, 1279, 20608, 29, 290, 20420, 198, 2, 15069, 357, 66, 8, 2177, 25, 3012, 3457, 13, 198, 2, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 281, 17168, 12, 7635, 5964, 326, 460, 307, 1043, 198,...
2.579937
319
<filename>src/findfonts.jl if Sys.isapple() function _font_paths() [ "/Library/Fonts", # Additional fonts that can be used by all users. This is generally where fonts go if they are to be used by other applications. joinpath(homedir(), "Library/Fonts"), # Fonts specific to each user...
[ 27, 34345, 29, 10677, 14, 19796, 10331, 82, 13, 20362, 198, 198, 361, 311, 893, 13, 271, 18040, 3419, 198, 220, 220, 220, 2163, 4808, 10331, 62, 6978, 82, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220,...
2.155866
1,790
<gh_stars>0 include("config.jl") println("evalon=$evalon") include("gtest1.jl") abc()
[ 27, 456, 62, 30783, 29, 15, 198, 17256, 7203, 11250, 13, 20362, 4943, 198, 35235, 7203, 18206, 261, 43641, 18206, 261, 4943, 198, 17256, 7203, 70, 9288, 16, 13, 20362, 4943, 198, 39305, 3419, 628, 198 ]
2.444444
36
<reponame>davidanthoff/SASLib.jl<filename>src/tables.jl<gh_stars>0 Tables.istable(::Type{<:ResultSet}) = true Tables.rowaccess(::Type{<:ResultSet}) = true Tables.columnaccess(::Type{<:ResultSet}) = true Tables.rows(rs::ResultSet) = rs Tables.columns(rs::ResultSet) = rs Tables.schema(rs::ResultSet) = Tables.Schema(na...
[ 27, 7856, 261, 480, 29, 67, 8490, 29313, 2364, 14, 50, 1921, 25835, 13, 20362, 27, 34345, 29, 10677, 14, 83, 2977, 13, 20362, 27, 456, 62, 30783, 29, 15, 198, 51, 2977, 13, 396, 540, 7, 3712, 6030, 90, 27, 25, 23004, 7248, 30072...
2.471831
142
<filename>src/partitioning/variable.jl # ------------------------------------------------------------------ # Licensed under the MIT License. See LICENSE in the project root. # ------------------------------------------------------------------ """ VariablePartition(var) A method for partitioning spatial data into...
[ 27, 34345, 29, 10677, 14, 3911, 653, 278, 14, 45286, 13, 20362, 198, 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, ...
3.256
375
<reponame>McCannLab/spatial_fingerprints<filename>inst/julia/main2.jl include("scripts.jl") function scr_ml(ARGS) # PARSING ARGUMENTS id_scr = parse(Int32, ARGS[1]) # number of biotracers n_bio = parse(Int64, ARGS[2]) # number of indiv used for building distribution n_distr = parse(Int64, ARG...
[ 27, 7856, 261, 480, 29, 30464, 1236, 17822, 14, 2777, 34961, 62, 35461, 17190, 27, 34345, 29, 8625, 14, 73, 43640, 14, 12417, 17, 13, 20362, 198, 17256, 7203, 46521, 13, 20362, 4943, 628, 198, 8818, 6040, 62, 4029, 7, 1503, 14313, 8...
2.009721
823
<reponame>jmboehm/Douglass.jl # douglass.jl # Todo implement for first version: # # @gen is probably suffering from type instability # @egen is still really crap. It should expect a type (e.g. `egen Float64 :x = ...`) # Nice to have, but not necessary for first version: # assert <condition> # collapse (<statistic>) <...
[ 27, 7856, 261, 480, 29, 73, 2022, 2577, 23940, 14, 40287, 20721, 13, 20362, 198, 2, 2255, 20721, 13, 20362, 198, 198, 2, 309, 24313, 3494, 329, 717, 2196, 25, 198, 2, 198, 2, 2488, 5235, 318, 2192, 7195, 422, 2099, 24842, 198, 2, ...
3.03551
873
<filename>src/stepsize_controllers.jl function stepsize_controller!(integrator::SDDEIntegrator, controller::PIController, alg) integrator.q11 = DiffEqBase.value(DiffEqBase.fastpow(integrator.EEst,controller.beta1)) integrator.q = DiffEqBase.value(integrator.q11/DiffEqBase.fastpow(integrator.qold,controller.beta2))...
[ 27, 34345, 29, 10677, 14, 9662, 7857, 62, 3642, 36667, 13, 20362, 198, 198, 8818, 4831, 1096, 62, 36500, 0, 7, 18908, 12392, 3712, 10305, 7206, 34500, 12392, 11, 10444, 3712, 47, 2149, 756, 10646, 11, 435, 70, 8, 198, 220, 4132, 123...
2.807263
358
const branin = let res_init=zeros(2), jac_init=zeros(2,2), x_init=[2.0, 0.0] function res(x, r) r[1] = 4.0 * (x[1] + x[2]) r[2] = r[1] + (x[1] - x[2]) * ((x[1] - 2.0) ^ 2 + x[2] ^ 2 - 1.0) return r end function jac(x, jac) jac[1, 1] = 4.0 jac[1, 2] = 4.0 jac...
[ 9979, 865, 272, 259, 796, 1309, 581, 62, 15003, 28, 9107, 418, 7, 17, 828, 474, 330, 62, 15003, 28, 9107, 418, 7, 17, 11, 17, 828, 2124, 62, 15003, 41888, 17, 13, 15, 11, 657, 13, 15, 60, 628, 220, 220, 220, 2163, 581, 7, 87...
1.45611
581
<gh_stars>1-10 # This file is a part of NeighborhoodApproximationIndex.jl using Test, SimilaritySearch, InvertedFiles, LinearAlgebra, UnicodePlots function runtest(; dim, n, m, numcenters=5ceil(Int, sqrt(n)), k=10, centersrecall=0.95, kbuild=1, ksearch=1, parallel_block=1000, ordering=DistanceOrdering(), minr...
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 2, 770, 2393, 318, 257, 636, 286, 37914, 4677, 13907, 18991, 15732, 13, 20362, 198, 198, 3500, 6208, 11, 11014, 414, 18243, 11, 554, 13658, 25876, 11, 44800, 2348, 29230, 11, 34371, 3646, 17...
2.621764
1,893
<reponame>UnofficialJuliaMirrorSnapshots/CircularList.jl-e1d4a2be-69cc-597c-a2ea-cc5d6f241fff<gh_stars>1-10 using CircularList using Test @testset "CircularList.jl" begin # general/peek CL = circularlist(0) @test length(CL) == 1 @test current(CL) == previous(CL) @test current(CL) == next(CL) ...
[ 27, 7856, 261, 480, 29, 3118, 16841, 16980, 544, 27453, 1472, 43826, 20910, 14, 31560, 934, 8053, 13, 20362, 12, 68, 16, 67, 19, 64, 17, 1350, 12, 3388, 535, 12, 43239, 66, 12, 64, 17, 18213, 12, 535, 20, 67, 21, 69, 28872, 2097...
2.255482
912
<filename>test/test_model_structure.jl module TestModelStructure # tests the framework of components and connections using Test using Mimi import Mimi: connect_param!, unconnected_params, set_dimension!, build, get_connections, internal_param_conns, dim_count, dim_names, modeldef, modelinstance, compde...
[ 27, 34345, 29, 9288, 14, 9288, 62, 19849, 62, 301, 5620, 13, 20362, 198, 21412, 6208, 17633, 1273, 5620, 198, 198, 2, 5254, 262, 9355, 286, 6805, 290, 8787, 198, 198, 3500, 6208, 198, 3500, 337, 25236, 198, 198, 11748, 337, 25236, 2...
2.455603
1,633
# This file is auto-generated by AWSMetadata.jl using AWS using AWS.AWSServices: amplifyuibuilder using AWS.Compat using AWS.UUIDs """ create_component(app_id, component_to_create, environment_name) create_component(app_id, component_to_create, environment_name, params::Dict{String,<:Any}) Creates a new compo...
[ 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, 47366, 84, 571, 3547, 263, 198, 3500, 30865, 13, 40073, 198, 3500, 30865, 13, 52, 27586, 82, ...
2.493786
7,242
export subalgebra, decompose, radical, is_central, is_simple _base_ring(A::AbsAlgAss) = base_ring(A) ################################################################################ # # Morphism types # ################################################################################ morphism_type(::Type{T}, ::Type{...
[ 39344, 850, 282, 29230, 11, 26969, 3455, 11, 7702, 11, 318, 62, 31463, 11, 318, 62, 36439, 198, 198, 62, 8692, 62, 1806, 7, 32, 3712, 24849, 2348, 70, 8021, 8, 796, 2779, 62, 1806, 7, 32, 8, 198, 198, 29113, 29113, 14468, 198, 2...
2.221879
17,469
function test_cat() ϵ = eps(Float64) rtol = sqrt(ϵ) @testset ExtendedTestSet "Concatenation" begin A = simple_sparse_matrix(Float64, 100, 100) B = simple_matrix(Float64, 100, 10) C = simple_matrix(Float64, 100, 90) D = [A B C] Ao = LinearOperator(A) Bo = LinearOperator(B) Co = LinearOp...
[ 8818, 1332, 62, 9246, 3419, 198, 220, 18074, 113, 796, 304, 862, 7, 43879, 2414, 8, 198, 220, 374, 83, 349, 796, 19862, 17034, 7, 139, 113, 8, 198, 220, 2488, 9288, 2617, 24204, 14402, 7248, 366, 3103, 9246, 268, 341, 1, 2221, 198...
2.127055
669
# # How to Make a bar plot # See [How to set up plots](3.0_set_up_plots.md) to get started # ```julia # using PowerGraphics # const PG = PowerGraphics # ``` # ### Make bar plots of results # ```julia # bar_plot(results) # ``` # ![this one](plots-20/P__ThermalStandard_Bar.png) # ![this one](plots-20/Example_Bar_Plo...
[ 2, 1303, 1374, 284, 6889, 257, 2318, 7110, 198, 198, 2, 4091, 685, 2437, 284, 900, 510, 21528, 16151, 18, 13, 15, 62, 2617, 62, 929, 62, 489, 1747, 13, 9132, 8, 284, 651, 2067, 198, 198, 2, 7559, 63, 73, 43640, 198, 2, 1262, 4...
2.589018
601
# UnitCommitment.jl: Optimization Package for Security-Constrained Unit Commitment # Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved. # Released under the modified BSD license. See COPYING.md for more details. using UnitCommitment, Test, LinearAlgebra import UnitCommitment: _Violation, _offer, _query @...
[ 2, 11801, 6935, 270, 434, 13, 20362, 25, 30011, 1634, 15717, 329, 4765, 12, 3103, 2536, 1328, 11801, 35910, 434, 198, 2, 15069, 357, 34, 8, 12131, 11, 471, 25705, 49974, 710, 11, 11419, 13, 1439, 2489, 10395, 13, 198, 2, 28728, 739,...
2.440644
497
# Borrowed from Zygote tests function ngradient(f, xs::AbstractArray...) grads = zero.(xs) for (x, Δ) in zip(xs, grads), i = 1:length(x) δ = sqrt(eps()) tmp = x[i] x[i] = tmp - δ / 2 y1 = f(xs...) x[i] = tmp + δ / 2 y2 = f(xs...) x[i] = tmp Δ[i] = ...
[ 2, 347, 6254, 276, 422, 1168, 35641, 1258, 5254, 198, 8818, 299, 49607, 7, 69, 11, 2124, 82, 3712, 23839, 19182, 23029, 198, 220, 220, 220, 3915, 82, 796, 6632, 12195, 34223, 8, 198, 220, 220, 220, 329, 357, 87, 11, 37455, 8, 287,...
1.919255
322
using Documenter, CSV makedocs(modules = [CSV], sitename = "CSV.jl", format = Documenter.HTML(canonical = "https://juliadata.github.io/CSV.jl/stable/")) deploydocs(repo = "github.com/JuliaData/CSV.jl.git")
[ 3500, 16854, 263, 11, 44189, 198, 198, 76, 4335, 420, 82, 7, 18170, 796, 685, 7902, 53, 4357, 1650, 12453, 796, 366, 7902, 53, 13, 20362, 1600, 5794, 796, 16854, 263, 13, 28656, 7, 49883, 605, 796, 366, 5450, 1378, 73, 32176, 14706,...
2.536585
82
# This file is for Simulation object. """ Simulation(model; simdir=tempdir(), simname=string(uuid4()), simprefix="Simulation-", logger=SimpleLogger()) Constructs a `Simulation` object for the simulation of `model`. The `Simulation` object is used to monitor the state of the simulation of the `model`. `simdir` is ...
[ 2, 770, 2393, 318, 329, 41798, 2134, 13, 198, 198, 37811, 198, 220, 220, 220, 41798, 7, 19849, 26, 985, 15908, 28, 29510, 15908, 22784, 985, 3672, 28, 8841, 7, 12303, 312, 19, 3419, 828, 985, 40290, 2625, 8890, 1741, 12, 1600, 49706...
2.812912
1,518
<reponame>jonas-schulze/julia # This file is a part of Julia. License is MIT: https://julialang.org/license # script to generate tables of common symbols # steps to rerun this: # 1. empty the contents of common_symbols*.inc # 2. build # 3. cd src && ../julia --depwarn=no gen_sysimg_symtab.jl import Base.Iterato...
[ 27, 7856, 261, 480, 29, 46286, 292, 12, 20601, 377, 2736, 14, 73, 43640, 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, 4226, 284, 7716, ...
1.836717
1,133
<reponame>qlete/markov-decision export simulate, simulate_k, oneturn include("traps.jl") """ simulate(list, dice, circular) Returns the cost (number of dice throws) of a a complete simulation of a Snakes and Ladders game, meaning it starts at square 1, with a board disposition described in `list`, a dice strateg...
[ 27, 7856, 261, 480, 29, 80, 5807, 14, 4102, 709, 12, 12501, 1166, 198, 39344, 29308, 11, 29308, 62, 74, 11, 319, 316, 700, 198, 198, 17256, 7203, 9535, 862, 13, 20362, 4943, 198, 198, 37811, 198, 220, 220, 220, 29308, 7, 4868, 11,...
2.702335
1,028
<gh_stars>1-10 # This script checks sparse arrays can be used as caches for Γ₅, Γ₆, Λ_sss, and Σ_sss using BenchmarkTools, RiskAdjustedLinearizations, Test include(joinpath(dirname(@__FILE__), "..", "..", "examples", "rbc_cc", "rbc_cc.jl")) include(joinpath(dirname(@__FILE__), "..", "..", "examples", "crw", "crw.jl")) ...
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 2, 770, 4226, 8794, 29877, 26515, 460, 307, 973, 355, 50177, 329, 7377, 241, 158, 224, 227, 11, 7377, 241, 158, 224, 228, 11, 7377, 249, 62, 824, 82, 11, 290, 7377, 96, 62, 824, 82, 19...
2.019915
703
# This file was generated by the Julia Swagger Code Generator # Do not modify this file directly. Modify the swagger specification instead. @doc raw"""LimitRangeSpec defines a min/max usage limit for resources that match on kind. IoK8sApiCoreV1LimitRangeSpec(; limits=nothing, ) - limits::Vector{...
[ 2, 770, 2393, 373, 7560, 416, 262, 22300, 2451, 7928, 6127, 35986, 198, 2, 2141, 407, 13096, 428, 2393, 3264, 13, 3401, 1958, 262, 1509, 7928, 20855, 2427, 13, 628, 198, 31, 15390, 8246, 37811, 39184, 17257, 22882, 15738, 257, 949, 14...
2.697531
648
<reponame>BradyPlanden/LiBRA<gh_stars>1-10 @inline function Phi_s(Cell,s,z,Def,ϕ_tf,D,res0) """ Solid Potential Transfer Function Phi_s(Cell,s,z,Def) """ if Def == "Pos" Electrode = Cell.Pos #Electrode Length else Electrode = Cell.Neg #Electrode Length end κ_eff = Cell.Const.κ*Electrode...
[ 27, 7856, 261, 480, 29, 9414, 4597, 47, 1044, 268, 14, 32304, 33, 3861, 27, 456, 62, 30783, 29, 16, 12, 940, 198, 31, 45145, 2163, 47256, 62, 82, 7, 28780, 11, 82, 11, 89, 11, 7469, 11, 139, 243, 62, 27110, 11, 35, 11, 411, ...
1.947214
1,023
import JuMP import Ipopt import Zygote using JuMP: @variable, @constraint, @objective using PartiallyObservedInverseGames.ForwardGame: IBRGameSolver, KKTGameSolver, solve_game using PartiallyObservedInverseGames.InverseGames: InverseKKTConstraintSolver, solve_inverse_game using PartiallyObservedInverseGames.Trajectory...
[ 11748, 12585, 7378, 198, 11748, 314, 79, 8738, 198, 11748, 1168, 35641, 1258, 198, 198, 3500, 12585, 7378, 25, 2488, 45286, 11, 2488, 1102, 2536, 2913, 11, 2488, 15252, 425, 198, 3500, 2142, 1927, 31310, 8520, 818, 4399, 24474, 13, 3974...
2.047469
2,865
<reponame>danielzhaotongliu/MALTrendsWeb {"score_count": 205723, "timestamp": 1565469104.0, "score": 7.54} {"score_count": 205461, "timestamp": 1564796520.0, "score": 7.54} {"score_count": 205461, "timestamp": 1564455261.0, "score": 7.54} {"score_count": 204221, "timestamp": 1562190541.0, "score": 7.54} {"score_count":...
[ 27, 7856, 261, 480, 29, 67, 6321, 89, 3099, 313, 506, 4528, 84, 14, 44, 31429, 10920, 82, 13908, 198, 4895, 26675, 62, 9127, 1298, 1160, 3553, 1954, 11, 366, 16514, 27823, 1298, 1315, 39111, 3388, 13464, 13, 15, 11, 366, 26675, 1298...
2.393187
6,165
include("try.jl") # solvers_list = [:Mosek, :Ipopt, :Knitro_Ip, :Knitro_IpCG, :Knitro_AS, :Knitro_SQP, :Cvxopt] solvers_list = [:Mosek] tmpFloatDatatype = Float64 list= String[] for i in 1:5 push!(list, "../PDFs/Data/gauss-$i") end size =[1,0.75,0.5,0.4] list_instances=String[] for l in 1:length(list) for...
[ 17256, 7203, 28311, 13, 20362, 4943, 628, 198, 2, 1540, 690, 62, 4868, 796, 685, 25, 44, 577, 74, 11, 1058, 40, 79, 8738, 11, 1058, 25095, 270, 305, 62, 40, 79, 11, 1058, 25095, 270, 305, 62, 40, 79, 39816, 11, 1058, 25095, 270,...
2.478261
368
<filename>src/diffusion.jl """ lp(s, x, t, y, P) Log-transition density, shorthand for `logpdf(transitionprob(s,x,t,P),y)`. """ lp(s, x, t, y, P) = logpdf(transitionprob(s,x,t,P),y) """ llikelihood(X::SamplePath, P::ContinuousTimeProcess) Log-likelihood of observations `X` using transition density `lp`. ""...
[ 27, 34345, 29, 10677, 14, 26069, 4241, 13, 20362, 198, 198, 37811, 198, 220, 220, 220, 300, 79, 7, 82, 11, 2124, 11, 256, 11, 331, 11, 350, 8, 198, 198, 11187, 12, 7645, 653, 12109, 11, 45883, 329, 4600, 6404, 12315, 7, 7645, 65...
2.049201
1,565
export SimplexExact, transferoperator """ SimplexExact() <: TriangulationBasedTransferOperator A transfer operator estimator using a triangulation partition and exact simplex intersections[^Diego2019]. To use this estimator, the Simplices.jl package must be brought into scope by doing `using Simplices` after ...
[ 39344, 3184, 11141, 3109, 529, 11, 4351, 46616, 198, 198, 37811, 198, 220, 220, 220, 3184, 11141, 3109, 529, 3419, 1279, 25, 7563, 648, 1741, 15001, 43260, 18843, 1352, 198, 198, 32, 4351, 10088, 3959, 1352, 1262, 257, 1333, 648, 1741, ...
2.465731
1,211
<gh_stars>1-10 # src/crypto.jl # Cryptocurrency Wallet Extras export AbstractPublicKey, keypairs, privatekey, AbstractDeterministicWallet, rootkey, mnemonic, seed, next_keypair!, next_address! """``` AbstractPublicKey <: AbstractAddress ``` Public Keys for Wall...
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 2, 12351, 14, 29609, 78, 13, 20362, 198, 2, 15126, 420, 13382, 37249, 43620, 198, 198, 39344, 27741, 15202, 9218, 11, 198, 220, 220, 220, 220, 220, 220, 1994, 79, 3468, 11, 198, 220, 220, ...
3.209205
717
<gh_stars>0 function codegen end include("utils.jl") include("emulation.jl") include("qasm.jl") include("qobj.jl")
[ 27, 456, 62, 30783, 29, 15, 198, 8818, 2438, 5235, 886, 198, 198, 17256, 7203, 26791, 13, 20362, 4943, 198, 17256, 7203, 368, 1741, 13, 20362, 4943, 198, 17256, 7203, 80, 8597, 13, 20362, 4943, 198, 17256, 7203, 80, 26801, 13, 20362, ...
2.636364
44
module Docker using AWS using ..ECR export login, pull, push, build """ login(registry_id::Union{AbstractString, Integer}="") Gets the AWS ECR authorization token and runs the corresponding docker login command. Takes an optional AWS `config` keyword argument or uses the default. """ function login( registr...
[ 21412, 25716, 198, 198, 3500, 30865, 198, 3500, 11485, 2943, 49, 198, 198, 39344, 17594, 11, 2834, 11, 4574, 11, 1382, 198, 198, 37811, 198, 220, 220, 220, 17594, 7, 2301, 4592, 62, 312, 3712, 38176, 90, 23839, 10100, 11, 34142, 92, ...
2.938215
437
<filename>src/render.jl # Open a URL in a browser # function openurl(url::AbstractString) # @static if is_apple() run(`open $url`) end # @static if is_windows() run(`cmd /c start $url`) end # @static if is_linux() run(`xdg-open $url`) end # end # #Convenience method for getting Vega JSON print(x::VegaVis...
[ 27, 34345, 29, 10677, 14, 13287, 13, 20362, 198, 2, 4946, 257, 10289, 287, 257, 6444, 198, 2, 2163, 1280, 6371, 7, 6371, 3712, 23839, 10100, 8, 198, 2, 220, 220, 220, 220, 2488, 12708, 611, 318, 62, 18040, 3419, 1057, 7, 63, 9654,...
2.008273
967
## AbstractTrees interface AbstractTrees.children(node::Node) = node.foldchildren ? typeof(node)[] : node.children AbstractTrees.printnode(io::IO, node::Node) = print(io, node.foldchildren ? "+ " : " ", node.data)
[ 2235, 27741, 51, 6037, 7071, 198, 198, 23839, 51, 6037, 13, 17197, 7, 17440, 3712, 19667, 8, 796, 10139, 13, 11379, 17197, 5633, 2099, 1659, 7, 17440, 8, 21737, 1058, 10139, 13, 17197, 198, 198, 23839, 51, 6037, 13, 4798, 17440, 7, ...
3.056338
71
<reponame>JuliaAstrodynamics/Orekit.jl module MomentWrapper using JavaCall const AbstractStorelessUnivariateStatistic = @jimport org.hipparchus.stat.descriptive.AbstractStorelessUnivariateStatistic const AbstractUnivariateStatistic = @jimport org.hipparchus.stat.descriptive.AbstractUnivariateStatistic const Aggregata...
[ 27, 7856, 261, 480, 29, 16980, 544, 33751, 14892, 4989, 873, 14, 41543, 15813, 13, 20362, 198, 21412, 29278, 36918, 2848, 198, 198, 3500, 7349, 14134, 198, 198, 9979, 27741, 22658, 1203, 3118, 42524, 17126, 2569, 796, 2488, 73, 11748, 8...
3.136216
925
<filename>src/Session/utils.jl function get_stream(connection::HTTPConnection, stream_identifier::UInt32) @assert stream_identifier != 0x0 for stream in connection.streams if stream.stream_identifier == stream_identifier return stream end end stream = HTTPStream(stream_iden...
[ 27, 34345, 29, 10677, 14, 36044, 14, 26791, 13, 20362, 198, 8818, 651, 62, 5532, 7, 38659, 3712, 40717, 32048, 11, 4269, 62, 738, 7483, 3712, 52, 5317, 2624, 8, 198, 220, 220, 220, 2488, 30493, 4269, 62, 738, 7483, 14512, 657, 87, ...
2.666261
821
# Unit signalProcessing.jl, part of PosDefManifold Package for julia language # v 0.3.5 - last update 6th of November 2019 # # MIT License # Copyright (c) 2019, <NAME>, CNRS, Grenobe, France: # https://sites.google.com/site/marcocongedo/home # # DESCRIPTION # This Unit implements Signal Processing m...
[ 2, 220, 220, 220, 11801, 6737, 18709, 278, 13, 20362, 11, 636, 286, 18574, 7469, 5124, 361, 727, 15717, 329, 474, 43640, 3303, 198, 2, 220, 220, 410, 657, 13, 18, 13, 20, 532, 938, 4296, 718, 400, 286, 3389, 13130, 198, 2, 198, ...
2.233161
6,785
<reponame>ctrekker/PropositionalLogic.jl<gh_stars>1-10 export ¬, ∧, ∨, →, ⟷ export AbstractExpression, LogicalSymbol, LogicalExpression, istree, isnode, name, metadata, variables, operation, operations, arguments, parents, left, right, isassociative, iscommutative export isunary, isbinary, argument_count export @symbol...
[ 27, 7856, 261, 480, 29, 310, 37818, 6122, 14, 24331, 418, 1859, 11187, 291, 13, 20362, 27, 456, 62, 30783, 29, 16, 12, 940, 198, 39344, 1587, 105, 11, 18872, 100, 11, 18872, 101, 11, 15168, 11, 2343, 253, 115, 198, 39344, 27741, 1...
2.907614
6,278
<reponame>Mattriks/GeoStatsBase.jl # ------------------------------------------------------------------ # Licensed under the MIT License. See LICENSE in the project root. # ------------------------------------------------------------------ """ RegularGrid(dims, origin, spacing) A regular grid with dimensions `dim...
[ 27, 7856, 261, 480, 29, 13448, 39370, 14, 10082, 78, 29668, 14881, 13, 20362, 198, 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...
2.565453
1,291
<filename>plotting/chunlok/plot_reproduce_state_visitation_heatmap.jl using Plots using Reproduce using JLD2 using FileIO using Statistics using ProgressMeter include("plot_utils.jl") previous_GKSwstype = get(ENV, "GKSwstype", "") ENV["GKSwstype"] = "100" save_file = "plotting/chunlok/generated_plots/state_vistation...
[ 27, 34345, 29, 29487, 889, 14, 354, 403, 75, 482, 14, 29487, 62, 260, 18230, 344, 62, 5219, 62, 4703, 3780, 62, 25080, 8899, 13, 20362, 198, 3500, 1345, 1747, 198, 3500, 36551, 344, 198, 3500, 449, 11163, 17, 198, 3500, 9220, 9399, ...
2.443439
663
#= Code for simulating, visualizing and manipulating *scalar* additive and multiplicative functionals. @authors: <NAME> =# using QuantEcon """ This type and method are written to transform a scalar additive functional into a linear state space system. """ type AMF_LSS_VAR{TR<:Real} A::TR B::...
[ 2, 28, 201, 198, 10669, 329, 985, 8306, 11, 5874, 2890, 290, 29349, 1635, 1416, 282, 283, 9, 38298, 290, 201, 198, 47945, 43058, 2163, 874, 13, 201, 198, 201, 198, 31, 41617, 25, 1279, 20608, 29, 201, 198, 201, 198, 46249, 201, 19...
1.981205
1,543
<gh_stars>10-100 include("Type/Type.jl")
[ 27, 456, 62, 30783, 29, 940, 12, 3064, 198, 17256, 7203, 6030, 14, 6030, 13, 20362, 4943 ]
2.352941
17
<filename>src/TimeModeling/Modeling/distributed.jl _parallel_functions = [:time_modeling, :fwi_objective, :twri_objective, :extended_source_modeling, :lsrtm_objective] # Shot and experiment parallelism for func in _parallel_functions @eval $func(args...; kwargs...) = task_distributed($func, _worker_pool(), args...;...
[ 27, 34345, 29, 10677, 14, 7575, 5841, 10809, 14, 5841, 10809, 14, 17080, 6169, 13, 20362, 198, 62, 1845, 29363, 62, 12543, 2733, 796, 685, 25, 2435, 62, 4666, 10809, 11, 1058, 69, 37686, 62, 15252, 425, 11, 1058, 4246, 380, 62, 1525...
2.663236
3,109
<gh_stars>0 # This file was generated by the Julia Swagger Code Generator # Do not modify this file directly. Modify the swagger specification instead. mutable struct IoK8sApiCoreV1ServicePort <: SwaggerModel name::Any # spec type: Union{ Nothing, String } # spec name: name nodePort::Any # spec type: Union{ ...
[ 27, 456, 62, 30783, 29, 15, 198, 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, ...
2.719665
956
<gh_stars>100-1000 @inline function _colorediteration!(J,sparsity,rows_index,cols_index,vfx,colorvec,color_i,ncols) @inbounds for i in 1:length(cols_index) if colorvec[cols_index[i]] == color_i J[rows_index[i],cols_index[i]] = vfx[rows_index[i]] end end end @inline function ...
[ 27, 456, 62, 30783, 29, 3064, 12, 12825, 198, 31, 45145, 2163, 4808, 25717, 2676, 341, 0, 7, 41, 11, 2777, 45826, 11, 8516, 62, 9630, 11, 4033, 82, 62, 9630, 11, 85, 21373, 11, 8043, 35138, 11, 8043, 62, 72, 11, 77, 4033, 82, ...
1.704679
3,569
""" Upper triangular and lower triangular matrices are the same views of the underlying data. Upper triangular matrices are column major, and lower triangular row major. As an implementation detail, indexing with @inbounds into the 0-triangle (ie, lower triangle of an Upper Triangular matrix) is undefined. This is bec...
[ 37811, 198, 52, 2848, 46963, 290, 2793, 46963, 2603, 45977, 389, 262, 976, 5009, 286, 262, 10238, 1366, 13, 198, 52, 2848, 46963, 2603, 45977, 389, 5721, 1688, 11, 290, 2793, 46963, 5752, 1688, 13, 198, 198, 1722, 281, 7822, 3703, 11,...
2.318204
4,164
mutable struct KalmanFilter <: AbstractEstimator belief_::MvNormal{Float64} motion_noise_stds::Dict{String,Float64} distance_dev_rate::Float64 direction_dev::Float64 pose_::Vector{Float64} map_::Map function KalmanFilter( envmap::Map, initial_pose::Vector{Float64}, mo...
[ 76, 18187, 2878, 12612, 805, 22417, 1279, 25, 27741, 22362, 320, 1352, 198, 220, 220, 220, 4901, 62, 3712, 44, 85, 26447, 90, 43879, 2414, 92, 198, 220, 220, 220, 6268, 62, 3919, 786, 62, 301, 9310, 3712, 35, 713, 90, 10100, 11, 4...
1.810234
2,482
<reponame>andreasvarga/PeriodicSystems.jl<filename>test/test_psutils.jl module Test_psutils using PeriodicSystems using DescriptorSystems using Symbolics using Test using LinearAlgebra using LinearAlgebra: BlasInt using ApproxFun #using BenchmarkTools println("Test_psutils") @testset "test_psutils" begin # MB03BD...
[ 27, 7856, 261, 480, 29, 49078, 292, 85, 853, 64, 14, 5990, 2101, 291, 11964, 82, 13, 20362, 27, 34345, 29, 9288, 14, 9288, 62, 862, 26791, 13, 20362, 198, 21412, 6208, 62, 862, 26791, 198, 198, 3500, 18581, 291, 11964, 82, 198, 35...
1.99958
14,284
# # RNN Character level # In this example, we create a character-level recurrent neural network. # A recurrent neural network (RNN) outputs a prediction and a hidden state at each step # of the computation. The hidden state captures historical information of a sequence # (i.e. the neural network has memory) and the...
[ 2, 1303, 371, 6144, 15684, 1241, 198, 198, 2, 554, 428, 1672, 11, 356, 2251, 257, 2095, 12, 5715, 42465, 17019, 3127, 13, 220, 198, 2, 317, 42465, 17019, 3127, 357, 49, 6144, 8, 23862, 257, 17724, 290, 257, 7104, 1181, 379, 1123, ...
3.015371
2,342
<reponame>UnofficialJuliaMirror/AIControl.jl-3868d828-178d-56af-83e1-d523478a73cd<gh_stars>10-100 using GZip import Base: eof, close, position export BamReader, close, value, eof, advance!, eachposition mutable struct BamReader bamStream readOrientation #useReverseReads::Bool done::Bool position::Int6...
[ 27, 7856, 261, 480, 29, 3118, 16841, 16980, 544, 27453, 1472, 14, 32, 2149, 756, 3225, 13, 20362, 12, 2548, 3104, 67, 23, 2078, 12, 23188, 67, 12, 3980, 1878, 12, 5999, 68, 16, 12, 67, 49803, 29059, 64, 4790, 10210, 27, 456, 62, ...
2.353069
1,385
function update!(cur_reactor::AbstractReactor) if !cur_reactor.is_good _NanizeReactor!(cur_reactor) return cur_reactor end cur_reactor.sigma_v = calc_sigma_v(cur_reactor) secondary_constraint = getfield(Fussy, Symbol("$(cur_reactor.constraint)_equation"))(cur_reactor) cur_equation_set = EquationSe...
[ 8818, 4296, 0, 7, 22019, 62, 260, 11218, 3712, 23839, 3041, 11218, 8, 628, 220, 611, 5145, 22019, 62, 260, 11218, 13, 271, 62, 11274, 198, 220, 220, 220, 4808, 45, 272, 1096, 3041, 11218, 0, 7, 22019, 62, 260, 11218, 8, 198, 220, ...
2.199566
1,383
export TimeBasedSampleModel import StatsBase: sample """ TimeBasedSampleModel(nactions::Int, κ::Float64 = 1e-4) """ mutable struct TimeBasedSampleModel <: AbstractEnvironmentModel experiences::Dict{ Any, Dict{Any,NamedTuple{(:reward, :terminal, :nextstate),Tuple{Float64,Bool,Any}}}, } ...
[ 39344, 3862, 15001, 36674, 17633, 198, 198, 11748, 20595, 14881, 25, 6291, 198, 198, 37811, 198, 220, 220, 220, 3862, 15001, 36674, 17633, 7, 77, 4658, 3712, 5317, 11, 7377, 118, 3712, 43879, 2414, 796, 352, 68, 12, 19, 8, 198, 37811,...
1.924628
942
<reponame>MasonProtter/ChainRules.jl @testset "base" begin @testset "Trig" begin @testset "Basics" for x = (Float64(π)-0.01, Complex(π, π/2)) test_scalar(sec, x) test_scalar(csc, x) test_scalar(cot, x) test_scalar(sinpi, x) test_scalar(cospi, x) ...
[ 27, 7856, 261, 480, 29, 44, 888, 19703, 353, 14, 35491, 37766, 13, 20362, 198, 31, 9288, 2617, 366, 8692, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 366, 2898, 328, 1, 2221, 198, 220, 220, 220, 220, 220, 220, 220, 2488, 9288, ...
1.64498
2,490
using Colors, Test @test isempty(detect_ambiguities(Colors, Base, Core)) include("algorithms.jl") include("conversion.jl") include("colormaps.jl") include("colordiff.jl") include("din99.jl") include("display.jl") include("parse.jl") include("utilities.jl")
[ 3500, 29792, 11, 6208, 198, 31, 9288, 318, 28920, 7, 15255, 478, 62, 4131, 328, 84, 871, 7, 5216, 669, 11, 7308, 11, 7231, 4008, 198, 198, 17256, 7203, 282, 7727, 907, 13, 20362, 4943, 198, 17256, 7203, 1102, 9641, 13, 20362, 4943, ...
2.804348
92
<filename>test/test_utils.jl using Test, WAVI @testset "WAVI tests" begin @testset "Pos Fraction" begin @info "testing pos fraction" z=[-1.0 -1.0 -1.0;-1.0 1.0 -1.0;-1.0 -1.0 -1.0] pfh,pfu,pfv=WAVI.pos_fraction(z) @test pfh == [0.0 0.0 0.0;0.0 0.5 0.0;0.0 0.0 0.0] @test pfu ...
[ 27, 34345, 29, 9288, 14, 9288, 62, 26791, 13, 20362, 198, 3500, 6208, 11, 370, 10116, 40, 198, 198, 31, 9288, 2617, 366, 54, 10116, 40, 5254, 1, 2221, 198, 220, 220, 220, 2488, 9288, 2617, 366, 21604, 376, 7861, 1, 2221, 198, 220,...
1.833529
853
<filename>src/contamination/teff_chain2.jl # Run a chain with: # 1). T_1, T_2, f with the constraint T_1^4(1-f)+f T_2^4 = T_eff^4 within the uncertainties. # 2). Fit these to the transit transmission data (assuming an achromatic atmosphere). # 3). See how much this affects the Spitzer IRAC band inferred depths. # ...
[ 27, 34345, 29, 10677, 14, 3642, 24979, 14, 660, 487, 62, 7983, 17, 13, 20362, 198, 198, 2, 5660, 257, 6333, 351, 25, 198, 2, 220, 352, 737, 309, 62, 16, 11, 309, 62, 17, 11, 277, 351, 262, 32315, 309, 62, 16, 61, 19, 7, 16, ...
2.167144
3,494
# --- # title: Rotate # cover: rotate.gif # description: rotate image anticlockwise # --- # The type [`Rotate`](@ref) defines a generic anticlockwise rotation operation around the center # of the image. It is also possible to pass some abstract vector to the constructor, in which case # Augmentor will randomly sample ...
[ 2, 11420, 198, 2, 3670, 25, 18481, 378, 198, 2, 3002, 25, 23064, 13, 27908, 198, 2, 6764, 25, 23064, 2939, 47792, 5354, 3083, 198, 2, 11420, 198, 198, 2, 383, 2099, 685, 63, 24864, 378, 63, 16151, 31, 5420, 8, 15738, 257, 14276, ...
2.87037
540
""" StaticSymbol A statically typed `Symbol`. """ struct StaticSymbol{s} StaticSymbol{s}() where {s} = new{s::Symbol}() StaticSymbol(s::Symbol) = new{s}() StaticSymbol(x::StaticSymbol) = x StaticSymbol(x) = StaticSymbol(Symbol(x)) end StaticSymbol(x, y) = StaticSymbol(Symbol(x, y)) StaticSymbol(x:...
[ 198, 37811, 198, 220, 220, 220, 36125, 13940, 23650, 198, 198, 32, 47746, 25683, 4600, 13940, 23650, 44646, 198, 37811, 198, 7249, 36125, 13940, 23650, 90, 82, 92, 198, 220, 220, 220, 36125, 13940, 23650, 90, 82, 92, 3419, 810, 1391, ...
2.372483
298
<reponame>a2ray/transD_GP<gh_stars>0 using transD_GP.GP, Random, PyPlot, Statistics, LinearAlgebra, PositiveFactorizations ## Random.seed!(12) f = 1.0/0.5 t = 0:(100*f)^-1:2/f ntrain = 1 ntries = 4 λ = [0.1] δ = 0.01 δtry = 5δ p = 2 demean = true findmin = true switchflag = findmin ? -1. : 1. knownvalue = NaN acqfun = ...
[ 27, 7856, 261, 480, 29, 64, 17, 2433, 14, 7645, 35, 62, 16960, 27, 456, 62, 30783, 29, 15, 198, 3500, 1007, 35, 62, 16960, 13, 16960, 11, 14534, 11, 9485, 43328, 11, 14370, 11, 44800, 2348, 29230, 11, 33733, 41384, 4582, 198, 2235...
1.959614
1,139
""" pde_lin_test(n) Test the linear operators. """ function pde_lin_test(n) h = 1.0 / (n + 1) x = collect(h:h:1.0-h) fdata = fishinit(n) z = rand(n, n) L2d = Lap2d(n) DX = Dx2d(n) DY = Dy2d(n) lapok = lap_test(n, x, z, L2d, fdata) discok = disc_test(n, x, L2d, DX, DY, fdata) lap...
[ 37811, 198, 79, 2934, 62, 2815, 62, 9288, 7, 77, 8, 198, 198, 14402, 262, 14174, 12879, 13, 198, 37811, 198, 8818, 279, 2934, 62, 2815, 62, 9288, 7, 77, 8, 198, 220, 220, 220, 289, 796, 352, 13, 15, 1220, 357, 77, 1343, 352, 8...
1.932921
969
# Note that this script can accept some limited command-line arguments, run # `julia build_tarballs.jl --help` to see a usage message. using BinaryBuilder name = "Opus" version = v"1.3.1" # Collection of sources required to build Opus sources = [ ArchiveSource("https://archive.mozilla.org/pub/opus/opus-$(version)...
[ 2, 5740, 326, 428, 4226, 460, 2453, 617, 3614, 3141, 12, 1370, 7159, 11, 1057, 198, 2, 4600, 73, 43640, 1382, 62, 18870, 21591, 13, 20362, 1377, 16794, 63, 284, 766, 257, 8748, 3275, 13, 198, 3500, 45755, 32875, 198, 198, 3672, 796,...
2.816367
501
using Test using ParticleInCell @testset "ParticleMeshCoupling 2D" begin n_cells = 10 # Number of cells n_particles = 4 # Number of particles spline_degree = 3 # Spline degree xmin, xmax, nx = 0.0, 2.0, n_cells ymin, ymax, ny = 0.0, 1.0, n_cells mesh = TwoDGrid(xmin, xmax, nx, ymin, ymax, ny)...
[ 3500, 6208, 198, 3500, 2142, 1548, 818, 28780, 198, 198, 31, 9288, 2617, 366, 7841, 1548, 37031, 34, 280, 11347, 362, 35, 1, 2221, 628, 220, 220, 220, 299, 62, 46342, 796, 838, 1303, 7913, 286, 4778, 198, 220, 220, 220, 299, 62, 3...
1.752448
2,145
<filename>test/AtomixTests/src/AtomixTests.jl module AtomixTests include("test_core.jl") include("test_sugar.jl") include("test_doctest.jl") if VERSION >= v"1.7" include("test_fallback.jl") end end # module AtomixTests
[ 27, 34345, 29, 9288, 14, 2953, 296, 844, 51, 3558, 14, 10677, 14, 2953, 296, 844, 51, 3558, 13, 20362, 198, 21412, 33102, 844, 51, 3558, 198, 198, 17256, 7203, 9288, 62, 7295, 13, 20362, 4943, 198, 17256, 7203, 9288, 62, 82, 35652, ...
2.389474
95
<gh_stars>1-10 module NamedAxesArrays import Base: eltype, getindex, ndims, setindex! immutable NamedAxesArray{T,N,A<:AbstractArray,axisnames<:(Symbol...)} <: AbstractArray{T,N} data::A end NamedAxesArray{T,N}(A::AbstractArray{T,N}, axisnames::NTuple{N,Symbol}) = NamedAxes{T,N,typeof(A),axisnames}(A) eltype{T...
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 21412, 34441, 31554, 274, 3163, 20477, 198, 198, 11748, 7308, 25, 1288, 4906, 11, 651, 9630, 11, 299, 67, 12078, 11, 900, 9630, 0, 198, 198, 8608, 18187, 34441, 31554, 274, 19182, 90, 51, ...
2.209235
1,386
__precompile__(true) module Baz import Foo, Qux this = "Baz" end
[ 834, 3866, 5589, 576, 834, 7, 7942, 8, 198, 21412, 47099, 198, 11748, 36080, 11, 2264, 87, 198, 5661, 796, 366, 33, 1031, 1, 198, 437, 198 ]
2.407407
27
function init_constraint_struct(com, ::GeqSetInternal, internals) GeqSetConstraint(internals, internals.indices[1], internals.indices[2:end], []) end """ init_constraint!(com::CS.CoM, constraint::GeqSetConstraint, fct::MOI.VectorOfVariables, set::GeqSetInternal) Initialize the GeqSetConstraint by filling `sub...
[ 8818, 2315, 62, 1102, 2536, 2913, 62, 7249, 7, 785, 11, 7904, 10082, 80, 7248, 37693, 11, 1788, 874, 8, 198, 220, 220, 220, 2269, 80, 7248, 3103, 2536, 2913, 7, 23124, 874, 11, 1788, 874, 13, 521, 1063, 58, 16, 4357, 1788, 874, ...
2.370781
2,163
export Structure, Atom, Pseudo, DFTU #Units exported export Ang, e₀, kₑ, a₀, Eₕ, Ry include("inputAPI.jl") export DFInput #Basic Interaction with DFInputs export flag, setflags!, rmflags!, data, setdata!, setdataoption!, exec, execs, setexecflags!, rmexecflags!, setexecdir!, runcommand, outputdata #Extended I...
[ 39344, 32522, 11, 33102, 11, 49693, 12003, 11, 360, 9792, 52, 198, 2, 3118, 896, 29050, 198, 39344, 2895, 11, 304, 158, 224, 222, 11, 479, 158, 224, 239, 11, 257, 158, 224, 222, 11, 412, 158, 224, 243, 11, 11089, 628, 198, 17256, ...
3.131799
478
<filename>src/models.jl<gh_stars>0 """ A `RateModel` contains the parameters to calculate the contribution of a growth or stress factor to the overall population growth rate. A [`rate`](@ref) method corresponding to the model type must be defined specifying the formulation, and optionally a [`condition`](@ref) method...
[ 27, 34345, 29, 10677, 14, 27530, 13, 20362, 27, 456, 62, 30783, 29, 15, 198, 198, 37811, 198, 32, 4600, 32184, 17633, 63, 4909, 262, 10007, 284, 15284, 262, 10156, 286, 257, 198, 27922, 393, 5503, 5766, 284, 262, 4045, 3265, 3349, 2...
3.21013
2,389
# - LOAD SYSTEM PACKAGES ------------------------------------------------------- # using HTTP # ------------------------------------------------------------------------------ # # constants - const path_to_package = dirname(pathof(@__MODULE__)) # - LOCAL FILES ----------------------------------------------------------...
[ 2, 532, 17579, 2885, 36230, 47035, 25552, 20368, 19351, 6329, 1303, 198, 3500, 14626, 198, 2, 16529, 26171, 1303, 198, 198, 2, 38491, 532, 198, 9979, 3108, 62, 1462, 62, 26495, 796, 26672, 3672, 7, 6978, 1659, 7, 31, 834, 33365, 24212...
5.316327
98
# Interval # ======== # # Base interval types and utilities. # # This file is a part of BioJulia. # License is MIT: https://github.com/BioJulia/Bio.jl/blob/master/LICENSE.md # Note, just to be clear: this shadows IntervalTrees.Interval "A genomic interval specifies interval with some associated metadata" struct Interv...
[ 2, 4225, 2100, 198, 2, 29335, 18604, 198, 2, 198, 2, 7308, 16654, 3858, 290, 20081, 13, 198, 2, 198, 2, 770, 2393, 318, 257, 636, 286, 16024, 16980, 544, 13, 198, 2, 13789, 318, 17168, 25, 3740, 1378, 12567, 13, 785, 14, 42787, ...
2.613173
1,913
<reponame>Yoshinobu-Ishizaki/StatsWithJuliaBook using Flux, MLDatasets, Statistics, Random, BSON using Flux.Optimise: update! using Flux: logitbinarycrossentropy batchSize, latentDim = 500, 100 epochs = 40 etaD, etaG = 0.0002, 0.0002 images, _ = MLDatasets.MNIST.traindata(Float32) imageTensor = reshape(@.(2f0 * image...
[ 27, 7856, 261, 480, 29, 56, 3768, 259, 672, 84, 12, 40, 1477, 528, 8182, 14, 29668, 3152, 16980, 544, 10482, 198, 3500, 1610, 2821, 11, 10373, 27354, 292, 1039, 11, 14370, 11, 14534, 11, 347, 11782, 198, 3500, 1610, 2821, 13, 27871,...
2.025424
1,062
<reponame>bbejanov/StateSpaceEcon.jl ################################################################################## # This file is part of StateSpaceEcon.jl # BSD 3-Clause License # Copyright (c) 2020-2022, Bank of Canada # All rights reserved. #######################################################################...
[ 27, 7856, 261, 480, 29, 65, 1350, 13881, 709, 14, 9012, 14106, 36, 1102, 13, 20362, 198, 29113, 29113, 14468, 2235, 198, 2, 770, 2393, 318, 636, 286, 1812, 14106, 36, 1102, 13, 20362, 198, 2, 347, 10305, 513, 12, 2601, 682, 13789, ...
2.428517
2,602
<gh_stars>1-10 ## ExoplanetsSysSim/src/mission_constants.jl ## (c) 2015 <NAME> #module KeplerConstants const num_channels = 84 const num_modules = 42 const num_quarters = 17 # QUERY: I'm favoring leaving out quarter 0, since that was engineering data. Agree? const cdpp_durations = [1.5,2.,2.5,3.,3.5...
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 2235, 1475, 46853, 1039, 44387, 8890, 14, 10677, 14, 3411, 62, 9979, 1187, 13, 20362, 198, 2235, 357, 66, 8, 1853, 1279, 20608, 29, 198, 198, 2, 21412, 40294, 34184, 1187, 198, 1500, 997, ...
2.438267
1,223
using Pkg, DelimitedFiles, MPIReco # Install required packages for P in [:HTTP,:TensorDecompositions, :PyPlot] try @eval using $P catch Pkg.add(String(P)) @eval using $P end end # Download data include("downloadData.jl") include("./utils/subsampling.jl") include("./utils/FRTruncation.jl") # load system...
[ 3500, 350, 10025, 11, 4216, 320, 863, 25876, 11, 4904, 4663, 47704, 198, 198, 2, 15545, 2672, 10392, 198, 1640, 350, 287, 685, 25, 40717, 11, 25, 51, 22854, 10707, 296, 1930, 1756, 11, 1058, 20519, 43328, 60, 198, 1949, 220, 198, 22...
2.144888
1,477
<reponame>TartuQC/ClangARGH.jl using Clang using Clang.LibClang using Test @testset "typedef" begin trans_unit = parse_header(joinpath(@__DIR__, "c", "typedef.h")) ctx = DefaultContext() push!(ctx.trans_units, trans_unit) # get root cursor root_cursor = getcursor(trans_unit) cursors = children...
[ 27, 7856, 261, 480, 29, 51, 433, 84, 48, 34, 14, 2601, 648, 1503, 17511, 13, 20362, 198, 3500, 1012, 648, 198, 3500, 1012, 648, 13, 25835, 2601, 648, 198, 3500, 6208, 198, 198, 31, 9288, 2617, 366, 774, 9124, 891, 1, 2221, 198, ...
2.304463
2,263
<reponame>KristofferC/FinEtools.jl module NAFEMS_examples using FinEtools using FinEtools using FinEtools.AlgoDeforLinearModule: ssit function NAFEMS_FV32_algo() println(""" FV32: Cantilevered tapered membrane This is a test recommended by the National Agency for Finite Element Methods and Standards (U...
[ 27, 7856, 261, 480, 29, 40756, 47895, 34, 14, 18467, 36, 31391, 13, 20362, 198, 21412, 399, 8579, 39201, 62, 1069, 12629, 198, 3500, 4463, 36, 31391, 198, 3500, 4463, 36, 31391, 198, 3500, 4463, 36, 31391, 13, 2348, 2188, 7469, 273, ...
2.156755
2,724
<filename>src/algorithms.jl """ ``` normals{VT,FD,FT,FO}(vertices::Vector{Point{3, VT}}, faces::Vector{Face{FD,FT,FO}}, NT = Normal{3, VT}) ``` Compute all vertex normals. """ function normals{VT,FD,FT,FO}(vertices::Vector{Point{3, VT}}, faces:...
[ 27, 34345, 29, 10677, 14, 282, 7727, 907, 13, 20362, 198, 37811, 198, 15506, 63, 198, 27237, 874, 90, 36392, 11, 26009, 11, 9792, 11, 6080, 92, 7, 1851, 1063, 3712, 38469, 90, 12727, 90, 18, 11, 32751, 92, 5512, 198, 220, 220, 220...
1.873418
474
using JuMP, EAGO m = Model() EAGO.register_eago_operators!(m) @variable(m, -1 <= x[i=1:2] <= 1) @variable(m, -2.8031108847289734 <= q <= 2.6473335630382056) add_NL_constraint(m, :(sigmoid(-0.8475658981369358 + ...
[ 3500, 12585, 7378, 11, 412, 4760, 46, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 796, 9104, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
1.54717
371
module ArtifactHelpers using Pkg using Pkg.Artifacts using Pkg.PlatformEngines #Note: supplies unpack. using Pkg.BinaryPlatforms using SHA using Downloads: download using ZipFile import Base: SHA1 export File, AutoDownloadable, Zip, Processed, build_artifact!, initialise_artifact, setup const AUTODOWNLOADA...
[ 21412, 45908, 12621, 19276, 198, 198, 3500, 350, 10025, 198, 3500, 350, 10025, 13, 8001, 37199, 198, 3500, 350, 10025, 13, 37148, 7936, 1127, 1303, 6425, 25, 9416, 555, 8002, 13, 198, 3500, 350, 10025, 13, 33, 3219, 37148, 82, 198, 35...
2.757153
5,872
<filename>test/core.jl function gen_dist(scl=5, nvars=2, nmix=nv) Product([MixtureModel([Normal(scl*rand(), scl*rand()) for _ in 1:nmix]) for _ in 1:nvars]) end
[ 27, 34345, 29, 9288, 14, 7295, 13, 20362, 198, 8818, 2429, 62, 17080, 7, 38528, 28, 20, 11, 299, 85, 945, 28, 17, 11, 299, 19816, 28, 48005, 8, 198, 220, 220, 220, 8721, 26933, 44, 9602, 17633, 26933, 26447, 7, 38528, 9, 25192, ...
2.391304
69
<gh_stars>1-10 _scip = JuMP.optimizer_with_attributes(SCIP.Optimizer, "display/verblevel" => 0) _glpk = GLPK.Optimizer @testset "solve master problem: ground structure, discrete diameters" begin # 7 9 even arc numbers for # () - d2 - () reversed arcs # /1 /3 /5 # s1 - () - d1 ...
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 62, 1416, 541, 796, 12585, 7378, 13, 40085, 7509, 62, 4480, 62, 1078, 7657, 7, 6173, 4061, 13, 27871, 320, 7509, 11, 366, 13812, 14, 332, 903, 626, 1, 5218, 657, 8, 198, 62, 4743, 79, ...
1.889791
8,992
<gh_stars>1-10 import Base: @propagate_inbounds,getindex, setindex!,iterate,size,length,push!, collect,view export BodyList, getrange, numpts struct BodyList list :: Vector{Body} end BodyList() = BodyList(Body[]) @propagate_inbounds getindex(A::BodyList, i::Int) = A.list[i] @propagate_inbounds set...
[ 27, 456, 62, 30783, 29, 16, 12, 940, 198, 11748, 7308, 25, 2488, 22930, 37861, 62, 259, 65, 3733, 11, 1136, 9630, 11, 900, 9630, 28265, 2676, 378, 11, 7857, 11, 13664, 11, 14689, 28265, 198, 220, 220, 220, 220, 220, 220, 220, 220,...
2.527313
897
<reponame>terasakisatoshi/Gomagorithm.jl # --- # jupyter: # jupytext: # text_representation: # extension: .jl # format_name: light # format_version: '1.5' # jupytext_version: 1.5.2 # kernelspec: # display_name: Julia 1.5.0-rc2 # language: julia # name: julia-1.5 # --- """ ...
[ 27, 7856, 261, 480, 29, 353, 292, 27321, 265, 13704, 14, 38, 296, 363, 273, 342, 76, 13, 20362, 198, 2, 11420, 198, 2, 474, 929, 88, 353, 25, 198, 2, 220, 220, 474, 929, 88, 5239, 25, 198, 2, 220, 220, 220, 220, 2420, 62, 15...
2.132159
908
<reponame>GediminasA/st16Sseqanalysis function run() out="Zymo1-2X-65C_S6_contigs.fasta" ref="rRNA_ampl_1500Genomic.fasta" mapf = "map" #read names mapping text=read(open(ref,"r"),String) f=open(mapf,"r") ct = 0 for l in readlines(mapf) o,r = split(l) text = replace(text,...
[ 27, 7856, 261, 480, 29, 38, 276, 320, 24252, 32, 14, 301, 1433, 50, 41068, 20930, 198, 8818, 1057, 3419, 198, 220, 220, 220, 503, 2625, 57, 4948, 78, 16, 12, 17, 55, 12, 2996, 34, 62, 50, 21, 62, 3642, 9235, 13, 7217, 64, 1, ...
1.915493
213
<reponame>maeckha/Oceananigans.jl<filename>benchmark/benchmark_time_steppers.jl push!(LOAD_PATH, joinpath(@__DIR__, "..")) using BenchmarkTools using CUDA using Oceananigans using Benchmarks # Benchmark function function benchmark_time_stepper(Arch, N, TimeStepper) grid = RegularRectilinearGrid(size=(N, N, N), e...
[ 27, 7856, 261, 480, 29, 2611, 68, 694, 3099, 14, 46607, 272, 34090, 13, 20362, 27, 34345, 29, 26968, 4102, 14, 26968, 4102, 62, 2435, 62, 4169, 11799, 13, 20362, 198, 14689, 0, 7, 35613, 62, 34219, 11, 4654, 6978, 7, 31, 834, 3472...
2.722222
576
using ScikitLearn @sk_import datasets: make_moons @sk_import datasets: make_circles @sk_import datasets: make_blobs @sk_import datasets: make_s_curve function generate_data_A(n_inlier = 300, n_outlier = 35) inliers = make_moons(n_inlier, true, 0.1, random_state=seed)[1]' out_tmp = make_blobs(n_outlier, n_feat...
[ 3500, 10286, 15813, 20238, 198, 198, 31, 8135, 62, 11748, 40522, 25, 787, 62, 5908, 684, 198, 31, 8135, 62, 11748, 40522, 25, 787, 62, 66, 343, 5427, 198, 31, 8135, 62, 11748, 40522, 25, 787, 62, 2436, 8158, 198, 31, 8135, 62, 117...
2.286371
653
using Arblib """ parse_arbdoc(filename) Parse a .rst file from the Arb documentation. Returns the title of the document together with a list of sections with their titles and the functions documented in them. """ function parse_arbdoc(filename) return open(filename) do file lines = readlines(file) ...
[ 3500, 943, 2436, 571, 198, 198, 37811, 198, 220, 220, 220, 21136, 62, 38039, 15390, 7, 34345, 8, 198, 10044, 325, 257, 764, 81, 301, 2393, 422, 262, 943, 65, 10314, 13, 16409, 262, 3670, 286, 262, 198, 22897, 1978, 351, 257, 1351, ...
2.0953
3,851
using IL_simulations, PDBTools top_dir = "/home/viniciusp/Documents/doutorado/ANALYSE/Repository/IL_simulations.jl/VSIL/ITP" pdb_dir = "/home/viniciusp/Documents/doutorado/ANALYSE/Repository/IL_simulations.jl/VSIL/PDB" input_dir = "/home/viniciusp/Documents/doutorado/ANALYSE/Repository/IL_simulations.jl/u...
[ 3500, 14639, 62, 14323, 5768, 11, 350, 11012, 33637, 198, 198, 4852, 62, 15908, 220, 220, 220, 220, 796, 220, 12813, 11195, 14, 7114, 291, 3754, 79, 14, 38354, 14, 67, 448, 273, 4533, 14, 1565, 1847, 56, 5188, 14, 6207, 13264, 14, ...
2.182438
1,321
# Note: none of the cross validation tests precise numbers. This is because # random number generation can be different with Julia versions even if we # set the seed. AKA I don't know any good way of ensuring continuous integration @testset "Cross validation on SnpLinAlg, normal model" begin #simulat data with k ...
[ 2, 5740, 25, 4844, 286, 262, 3272, 21201, 5254, 7141, 3146, 13, 770, 318, 780, 198, 2, 4738, 1271, 5270, 460, 307, 1180, 351, 22300, 6300, 772, 611, 356, 220, 198, 2, 900, 262, 9403, 13, 15837, 32, 314, 836, 470, 760, 597, 922, ...
2.330631
4,071
<reponame>harrymd/NonlinearEigenproblems.jl using LinearAlgebra export blocknewton default_block_errmeasure(nep::NEP) = (S,X) -> opnorm(compute_MM(nep,S,X)) """ (S,X)=blocknewton(nep [S,] [X,] [errmeasure,] [tol,] [maxit,] [armijo_factor,] [armijo_max,] [logger]) Applies the block Newton method to `nep::Abstrac...
[ 27, 7856, 261, 480, 29, 71, 6532, 9132, 14, 15419, 29127, 36, 9324, 1676, 22143, 13, 20362, 198, 3500, 44800, 2348, 29230, 198, 198, 39344, 2512, 3605, 1122, 198, 198, 12286, 62, 9967, 62, 8056, 1326, 5015, 7, 77, 538, 3712, 45, 890...
1.786835
4,208