sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
379892b7fd173c01f2337dd350e5aa4c3c0b27a5620d6a3e4160e1581b76c0eb | C++ | 688 | 15 | // ***************************************************************************
// BamException_p.cpp (c) 2011 Derek Barnett
// Marth Lab, Department of Biology, Boston College
// ---------------------------------------------------------------------------
// Last modified: 25 October 2011 (DB)
// -----------------------... |
5f1e2d3006c735c308c25643a5df4b6d6461b8336cc3f82e9cb290b6a071be82 | C++ | 691 | 24 | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using namespace nlohmann::literals;
int main()
{
// create two JSON objects
json o1 = R"( {"color": "red", "price": 17.99, "names": {"de": "Flugzeug"}} )"_json;
json o2 = R"( {"color": "blue", "speed": 100, "n... |
4f8bda06e065cd048dbf42558742632ff661560df0b2df81b61dfd1f37afd378 | C++ | 692 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
8e514472bdd6710261c00557e03f4f47abff63320b0e8a8690acfc30c27f8203 | C++ | 693 | 21 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Lena Ploetzke
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
9a9be790aaa7fff205f321e51d2c83333322a9473b400f948fca54cf3e454464 | C++ | 693 | 42 | // Cytosim was created by Francois Nedelec. Copyright 2007-2017 EMBL.
#include "offscreen.h"
#include "opengl.h"
#if defined(__APPLE__) && defined(GL_VERSION_2_1)
// OpenGL Frame Buffer Objects
#include "offscreen_fbo.cc"
#elif defined(__linux)
// X-windows offscreen rendering routines (Linux)
#include "offscreen... |
e5ad8b3dd0dcab4770025ccc2f5084f5b84bd5b986ad71a6751928a6466d7aee | C++ | 693 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Henrik Zunker
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
1fed0f1054510a5cd6eb0d489191165c0a039771a8028370f3f96bce4cde219c | C++ | 694 | 25 | // This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Threaded test for a fuzzer. The fuzzer should find "H"
#include <assert.h>
#include <cstdint>
#include <cstddef>
#include <cstring>
#include <iostream>
#include <thread>
extern "C" int LLVMFuzzerTestOn... |
313abcdbc7ab6a477cc3d243beda177ee407dff83c0c1a17eea9b3255b5c8c70 | C++ | 694 | 23 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2014 Benoit Steiner <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file,... |
d08e3516cd922c5112124c7dac7ce5f7db4bfcfd3e7cf64e287008788faf3d4c | C++ | 694 | 28 | // This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Tests OOM handling when there is a single large allocation.
#include <assert.h>
#include <cstdint>
#include <cstdlib>
#include <cstddef>
#include <cstring>
#include <iostream>
static volatile char *Sin... |
542484cfcbf9530a0227dd17ef73c5ceb9f6306f9adcd58ef54276ef31094037 | C++ | 696 | 24 | #include <gtest/gtest.h>
#include <string>
#include <arbor/util/hash_def.hpp>
TEST(hash, string_eq) {
ASSERT_EQ(arb::hash_value("foobar"), arb::hash_value(std::string{"foobar"}));
ASSERT_EQ(arb::hash_value("foobar"), arb::hash_value("foobar"));
ASSERT_NE(arb::hash_value("foobar"), arb::hash_value("barfoo... |
a06f66179fc79fb551cdd36c68be1d78cd09974523f9261b44b569462414f3aa | C++ | 696 | 27 | #include <mpi.h>
#include <arbor/communication/mpi_error.hpp>
namespace arb {
ARB_ARBOR_API const mpi_error_category_impl& mpi_error_category() {
static mpi_error_category_impl the_category;
return the_category;
}
const char* mpi_error_category_impl::name() const noexcept { return "MPI"; }
std::string mpi_... |
c4357f26f73018e4ccbc12296799c3c09c6fb55ab0d2ad3622c00f25bc3309ba | C++ | 697 | 38 | #include "file_io.h"
using namespace std;
//--------------------------------------------------
vector<string> separate_line(string line)
{
string s="";
vector<string> sv;
for(string::iterator i=line.begin(); i!=line.end(); i++)
{
if(*i!=',')
{
s += *i;
}
else
{
sv.push_back(s);
s="";
}
}
sv... |
17bce8c47007e58d5a6c460a0c8b8021265a98524c0e86564b84810000da486a | C++ | 698 | 22 | #include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create several JSON values
json array = {1, 2, 3};
json object = {{"A", "a"}, {"B", "b"}};
json number = 17;
json string = "foo";
json null;
// output values and comparisons
std::cout << std:... |
8f126061bb92855f7761ad4f608d8891c7e3240dca153866a610b011799623c0 | C++ | 698 | 22 | #include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create several JSON values
json array = {1, 2, 3};
json object = {{"A", "a"}, {"B", "b"}};
json number = 17;
json string = "foo";
json null;
// output values and comparisons
std::cout << std:... |
1a77724291a04aac150365237de44862481e29aecd581559452ba5b8e0657a1c | C++ | 699 | 22 | #include <Eigen/Dense>
#include <iostream>
using namespace Eigen;
template <typename Derived1, typename Derived2>
void copyUpperTriangularPart(MatrixBase<Derived1>& dst, const MatrixBase<Derived2>& src)
{
/* Note the 'template' keywords in the following line! */
dst.template triangularView<Upper>() = src... |
c9037b8871fad00c92e43fb7390851b2a8b4a57dde7bfa0d0cc3f65c4a2c65a6 | C++ | 699 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele, Martin J. Kuehn
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* htt... |
eea954bb628eee70e0d794d91bd50952e430527a4da0cec2d3c7039e92d42073 | C++ | 699 | 30 | #include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using namespace nlohmann::literals;
int main()
{
try
{
// executing a failing JSON Patch operation
json value = R"({
"best_biscuit": {
"name": "Oreo"
}
})"_json;
... |
1fbf6702ba410bb3ab0e40e1a6c2b52d746378b212e22dda00f2da3825036c9e | C++ | 700 | 27 | #include <Eigen/Core>
#include <iostream>
using namespace Eigen;
using namespace std;
template<typename Derived>
Eigen::VectorBlock<Derived, 2>
firstTwo(MatrixBase<Derived>& v)
{
return Eigen::VectorBlock<Derived, 2>(v.derived(), 0);
}
template<typename Derived>
const Eigen::VectorBlock<const Derived, ... |
d2553d8ce8f329631f5a892427a20c6146deaa32b85e57249e21156b272b9a60 | C++ | 700 | 14 | /*****************************************************************************************
* SPDX-License-Identifier: MIT
* SPDX-FileCopyrightText: 2022 Stephane Sanchez <[email protected]>
* Université Toulouse Capitole - Institut de Recherche en Informatique de Toulouse
* Real Expression Artificial ... |
12991b52d6ca58a171ce8d85623465ebc8587fb89414807832ae8365d9326c05 | C++ | 701 | 21 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Ralf Hannemann-Tamas
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... |
243c598d1d13e982b846552333873847cf307d7fdd9de17d65da590e307c61cc | C++ | 701 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
af148bd03b9cdfa3e4170b1df19fb7e1e24cf205c1104c2e9c944184f9cab2f6 | C++ | 701 | 28 | #include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create JSON objects
json j_no_init_list = json::object();
json j_empty_init_list = json::object({});
json j_list_of_pairs = json::object({ {"one", 1}, {"two", 2} });
// serialize the JSON objects
std... |
cbc31ffa36a05cd658b8934b61db688b1a3ff3acb216165dbc4b3c2b30145f1f | C++ | 701 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
e7de118cb6ffeb0fc423857d9c1086a4c17eeb7a14d885c3a0bb2d2d4e64cc95 | C++ | 702 | 22 | #include <Eigen/Core>
#include <iostream>
using namespace Eigen;
int main()
{
for (int size=1; size<=4; ++size)
{
MatrixXi m(size,size+1); // a (size)x(size+1)-matrix of int's
for (int j=0; j<m.cols(); ++j) // loop over columns
for (int i=0; i<m.rows(); ++i) // loop over rows
... |
6fa8a056845ae1887708fbcccc1a428a5878e9bd613857659c623c041939a969 | C++ | 703 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... |
b8a6255c20ea8709712098333d6be0f9d7d10c584335b4e0a66849c54fd32447 | C++ | 703 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
c2282145931a84a7814a99e1a34894e73ab0983386fa470e1235d03dd69507d2 | C++ | 703 | 28 | #include <Eigen/Dense>
#include <iostream>
using namespace std;
using namespace Eigen;
int main()
{
VectorXf v(2);
MatrixXf m(2,2), n(2,2);
v << -1,
2;
m << 1,-2,
-3,4;
cout << "v.squaredNorm() = " << v.squaredNorm() << endl;
cout << "v.norm() = " << v.norm() << endl... |
f57add2b236e001f360dbef932527978272135eaa9b6758d11ef9e546dafb2be | C++ | 703 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... |
32f3e168abfd91581093f2b16f62973d77ec6ce47d3895424591b358114867f3 | C++ | 706 | 21 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... |
96fb844ee3b5aaf42aeeb6aca49ae88031841cdd5f6e3a798cef3cf8ecbc7598 | C++ | 707 | 25 | #include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create JSON values
json j_null;
json j_boolean = true;
json j_number_integer = 17;
json j_number_float = 23.42;
json j_object = {{"one", 1}, {"two", 2}};
json j_array = {1, 2, 4, 8, 16};
json ... |
1d6c27bd1b721f84efea8875507943372791d6bb9164d69267a8959a0a042bf7 | C++ | 708 | 24 | // This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Simple test for a fuzzer. The fuzzer must find the string "FUZZER".
#include <cstdint>
#include <cstdlib>
#include <cstddef>
#include <iostream>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Dat... |
bc18c0afc6f110e6330dcd2a510f1f9490d989c4163bdd7fc8f9d2cb0613442b | C++ | 708 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Rene Schmieding
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... |
7c329a9e15cb1ede5e5734042ea77696374be0e31a46be3d0e2e9162125782e5 | C++ | 712 | 22 | #include <iostream>
#include <nlohmann/json.hpp>
// define a byte container based on std::vector
using byte_container_with_subtype = nlohmann::byte_container_with_subtype<std::vector<std::uint8_t>>;
int main()
{
std::vector<std::uint8_t> bytes = {{0xca, 0xfe, 0xba, 0xbe}};
// create container
auto c1 = b... |
57129098a5b93d14b27252ffdcb0d9933c68c854bc357cf50f65758e6e2435cd | C++ | 713 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Martin J. Kuehn, Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* htt... |
5de661b41d7d652da7e1cdba93f538f62957b227876f31ba00216bb75a52a3bb | C++ | 713 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Rene Schmieding
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... |
5451129e3840161c72a0c3b648697983ef9f61f82d0e35e29aa4758bef3c4027 | C++ | 715 | 24 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Anna Wendler, Lena Ploetzke
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:... |
64a09a75a132d638e115197a5a8f9e4abc55cfbaeec141ff9cc086235687decb | C++ | 715 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
6d7f492ca5e1cc60316a5c03752fe702a7d4f4bac34e22e1ee7fcf13626baa8a | C++ | 715 | 21 | //===- FuzzerMain.cpp - main() function and flags -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
5fcb5abb60e56a3c9dda1c9aa7e54a1bf715d705e9a5f09f44c9dea6ee6ff599 | C++ | 716 | 25 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
4d4508841cdd16429ac895e526af7d34ccd51ece9c6e71d0bdc960ab059c6502 | C++ | 720 | 25 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
75c9a22c5ecb3c4e582a0c1dc9157e2a40017a5126491f182c4807ba8a077e6a | C++ | 720 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele, Martin J. Kuehn
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* htt... |
f613c70c4b6bfae776a9a4556866b90b83c808a07f0b1f2a5e8196db18c8d332 | C++ | 721 | 28 | // This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Make sure LLVMFuzzerInitialize is called.
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static char *argv0;
extern "C" int LLVM... |
4e823e3d377ac281643bdf9c2b54a597178d316d5497d799d71c99e0ad4c482c | C++ | 722 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele, Jan Kleinert, Martin J. Kuehn
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... |
5e354c7bc67650c15b8b5ebbc856957b359763f1bc1eebb1c00ba23115811aa1 | C++ | 722 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Martin J. Kuehn, Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* htt... |
bf24dfeb874bc67f07f3d6bb734e04a4b41eb0d68095112081e5b2cf6b5415f9 | C++ | 722 | 26 | // This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Threaded test for a fuzzer. The fuzzer should not crash.
#include <assert.h>
#include <cstdint>
#include <cstddef>
#include <cstring>
#include <thread>
extern "C" int LLVMFuzzerTestOneInput(const uint8... |
411caedabbfa8b34ac786d810c037f8a43f1e78aa2a27f4b68094cee638c9f39 | C++ | 723 | 25 | #include "constants.h"
#include "inc_libCZI.h"
namespace pylibczi {
const std::initializer_list<Constants::CziDi> Constants::s_sortOrder{
Constants::CziDi::B, Constants::CziDi::V, Constants::CziDi::H, Constants::CziDi::I, Constants::CziDi::S,
Constants::CziDi::R, Constants::CziDi::T, Constants::CziDi::C, Constant... |
e00b13458932983f65502d21f62321733d1525e238a1cc82d3f09372ec6eff91 | C++ | 723 | 20 | #include "exceptions.h"
namespace pylibczi {
const std::map<libCZI::PixelType, const std::string> PixelTypeException::s_byName{
{ libCZI::PixelType::Invalid, "Invalid" },
{ libCZI::PixelType::Gray8, "Gray8" },
{ libCZI::PixelType::Gray16, "Gray16" },
{ libCZI::PixelType::Gray32Float, "Gray32Float" },
{ libC... |
af5d90adf2711827a546e57f0398a8aa7d874b8c5909b1348c06ec1b47899d51 | C++ | 724 | 27 | #include <Eigen/Core>
#include <iostream>
using namespace Eigen;
using namespace std;
template<typename Derived>
Eigen::Block<Derived, 2, 2>
topLeft2x2Corner(MatrixBase<Derived>& m)
{
return Eigen::Block<Derived, 2, 2>(m.derived(), 0, 0);
}
template<typename Derived>
const Eigen::Block<const Derived, 2... |
10214d33264c17ac0a8d3edab1b20ec6e578a4ea6313779b7a7e9c81f4bc04c2 | C++ | 726 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Wadim Koslow, Daniel Abele, Martin J. Kühn
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... |
336f8c93b02a5cc37e73f8c1505dfd9793aeca53d63a9fc7780cda669ec57728 | C++ | 727 | 24 | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using namespace nlohmann::literals;
int main()
{
// create two JSON objects
json o1 = R"( {"color": "red", "price": 17.99, "names": {"de": "Flugzeug"}} )"_json;
json o2 = R"( {"color": "blue", "speed": 100, "n... |
3fc10fb0cfa0064aa9f1c67500e238210513ccfb41c25d45753727ec1848b8f9 | C++ | 728 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Rene Schmieding
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://... |
5391723a1b4b830f77d50f2f25a9978b9f3547ce2f7fa50787cb5100e5483241 | C++ | 728 | 22 | /*****************************************************************************************
* SPDX-License-Identifier: MIT
* SPDX-FileCopyrightText: © 2022 Stephane Sanchez <[email protected]>
* Université Toulouse Capitole - Institut de Recherche en Informatique de Toulouse
* Real Expression Artificia... |
a5d91f3572861c43575a6b49a366a72add1d503370d8c86e5e7be55251453df5 | C++ | 728 | 30 | // __ _____ _____ _____
// __| | __| | | | JSON for Modern C++ (supporting code)
// | | |__ | | | | | | version 3.11.2
// |_____|_____|_____|_|___| https://github.com/nlohmann/json
//
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
// SPDX-License-Identifier: MIT
#undef ... |
1fc6887748b3f6bf9253b893b511c566c98a318bb1df71170e05ac9784d83883 | C++ | 729 | 22 | // __ _____ _____ _____
// __| | __| | | | JSON for Modern C++ (supporting code)
// | | |__ | | | | | | version 3.11.2
// |_____|_____|_____|_|___| https://github.com/nlohmann/json
//
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
// SPDX-License-Identifier: MIT
#includ... |
e093d4c085434297669488f5ac4c2a7e98058646124124dba60ff4fae3760d16 | C++ | 729 | 25 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Kilian Volmer
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
115e4507c1ae3c0119468ad80b678ddd3e334acc6094a32485a91020e6b6a9d5 | C++ | 730 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Martin J. Kuehn, Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* htt... |
d457c3ff5d387b859c6e22788dba21e95958000041423fcb537095f43b93360e | C++ | 731 | 25 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
dbcad6044b56bbbb27194b3ead2adbd30bf2f15e5a58e45c60430b8df5bfb85d | C++ | 731 | 30 | // __ _____ _____ _____
// __| | __| | | | JSON for Modern C++ (supporting code)
// | | |__ | | | | | | version 3.11.2
// |_____|_____|_____|_|___| https://github.com/nlohmann/json
//
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
// SPDX-License-Identifier: MIT
#undef ... |
899230464f38e54727789783aa49698d5f7d5451e14774b3a3cea9c28523cba1 | C++ | 732 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele, Martin J. Kuehn
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* htt... |
b76c4e1f40d7d7e6e0995cc7d50c7136bdb9c55b0cab72a87a0c9dd8da004c89 | C++ | 733 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Martin J. Kuehn, Daniel Abele, Rene Schmieding
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... |
f04109cd3cac9cbde4948098110cfb7032c4f59bc4448725f0eb8b5f279facae | C++ | 733 | 24 | /*
* This file is part of NAStJA.
*
* Copyright 2016 - 2021 Marco Berghoff and the NAStJA Core Developers
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#inc... |
55317ad6a7a8395e15fccda5d52a62f2e6efa8b600b366bc4e6f1bd5e0b3624d | C++ | 734 | 34 | #include <iostream>
#include <iomanip>
#include <string_view>
#include <nlohmann/json.hpp>
using namespace std::string_view_literals;
using json = nlohmann::json;
int main()
{
// create a JSON object
json object =
{
{"one", 1}, {"two", 2}, {"three", 2.9}
};
// output element with key "two... |
986a70f88d592ef3c9294b1bc44acf249035cbb0150a2759e2db726c02a00f69 | C++ | 735 | 27 | /*
* This file is part of NAStJA.
*
* Copyright 2016 - 2021 Marco Berghoff and the NAStJA Core Developers
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#inc... |
7b9e7735378739e22be2b2adb91db19fd81ba69e8b8d664282deb3396bef6f72 | C++ | 736 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Wadim Koslow, Daniel Abele, Martin J. Kühn
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... |
60de105bc76d4afaca76e3409c040bb848a92af8fe82bc0b329793e73652e2ba | C++ | 737 | 26 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Julia Bicker
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... |
99e6dc94c88d633042812cb4fd08d1184bfba194cfcce57fdd0e48fc11131cc6 | C++ | 738 | 33 | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using namespace nlohmann::literals;
int main()
{
// the original document
json doc = R"(
{
"baz": "qux",
"foo": "bar"
}
)"_json;
// the patch
json patch = R"(
... |
d60f682a7c453f142faffa533521613e7fc3fb847718fae11a12e4dadde0f6ab | C++ | 738 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: David Kerkmann, Sascha Korf
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... |
c48d80bc677e1950ea7220dc3ebf8bb2ab2ddb980181150dea3cbf024e2d211c | C++ | 739 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Martin J. Kuehn, Martin Siggel, Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License... |
6de8a31ba20df20983e3c7c0c78c2ee52fb8c3691595cc32ab6ca52a9daffd94 | C++ | 740 | 25 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
949a68574881ade72b1ed8c70b6a6f24ede59f3ebc454c4302dbd461df3c5881 | C++ | 741 | 37 | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using namespace nlohmann::literals;
int main()
{
// the source document
json source = R"(
{
"baz": "qux",
"foo": "bar"
}
)"_json;
// the target document
json ta... |
788611b4d46307acf4d1ffd2d08a498d84570c78209ae5bb2fa3baf39501eeab | C++ | 745 | 24 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: René Schmieding, Julia Bicker
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... |
da7fea5f9892c0b60652cba196f9ff48ea0c54590cadaf04f316d1ac8ba1dbe4 | C++ | 745 | 28 | // This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Test that we can find the minimal item in the corpus (3 bytes: "FUZ").
#include <cstdint>
#include <cstdlib>
#include <cstddef>
#include <cstring>
#include <cstdio>
static volatile int Sink;
extern "C... |
03f6df776e20d7ec02d99b6bcbb5eff5517b41324599af294c3a4b380e8c7181 | C++ | 748 | 31 | // This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Tests OOM handling.
#include <assert.h>
#include <cstdint>
#include <cstdlib>
#include <cstddef>
#include <cstring>
#include <iostream>
#include <thread>
static volatile char *SinkPtr;
extern "C" int ... |
3a34d325d0d2cd1791dec1ef57e9d11b40a738458471c2fa58028c5487d75ab8 | C++ | 748 | 16 | typedef Matrix<double, 5, 3> Matrix5x3;
typedef Matrix<double, 5, 5> Matrix5x5;
Matrix5x3 m = Matrix5x3::Random();
cout << "Here is the matrix m:" << endl << m << endl;
Eigen::FullPivLU<Matrix5x3> lu(m);
cout << "Here is, up to permutations, its LU decomposition matrix:"
<< endl << lu.matrixLU() << endl;
co... |
9af861e78fecd857b03d8a7fabcd166ef682f80d61e72781d996435c7dcff94f | C++ | 748 | 35 | /*
* This file is part of NAStJA.
*
* Copyright 2016 - 2021 Marco Berghoff and the NAStJA Core Developers
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#inc... |
eb5978e2eb4e987bdde2b72ba2c7ffcded6a592ebb823000d4decdeba7b52efe | C++ | 748 | 25 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Martin J. Kuehn, Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* htt... |
4b348990e580c9c3f31c2c3509c3cca7038f95d585c1cd5f401fdc294916cc86 | C++ | 750 | 20 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Henrik Zunker, Wadim Koslow, Daniel Abele, Martin J. Kühn
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... |
2d7f91be3c2e7e2c22882253be5373fff2cd2e79e42233d72abc238ac2735b04 | C++ | 751 | 29 | // This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Simple test for a fuzzer.
// The fuzzer must find a string based on dictionary words:
// "Elvis"
// "Presley"
#include <cstdint>
#include <cstdlib>
#include <cstddef>
#include <cstring>
#include <io... |
aa0be4ccde9b41d091fabb7095e2041efe6b0b5916625d578efd04389189aab6 | C++ | 751 | 19 | /* This file is part of Jellyfish.
Jellyfish is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Jellyfish is distributed ... |
af11568b59ff4dacfb8c0d4bc25e1d626cb89e8259ff8db975522f0fa7436f37 | C++ | 753 | 30 | ///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2010-09-16
// Updated : 20... |
c364c71ae6cd90ecf81b95ed29f1b7f83b954df95c6f8feede85ac7ef9439ed1 | C++ | 753 | 39 | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create a JSON object
json j =
{
{"pi", 3.141},
{"happy", true},
{"name", "Niels"},
{"nothing", nullptr},
{
"answer", {
{"ever... |
2ded572116a402b35de37a60e7dc8e39709e43c995827d68759b60679c2c3cfb | C++ | 754 | 28 | // This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Test strstr and strcasestr hooks.
#include <string>
#include <string.h>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
// Windows does not have strcasestr and memmem, so we are not testing the... |
c91d9ade3be819ca2a473a9edcebacbce24da7950667dc5a0b3caa96ec8099e1 | C++ | 755 | 37 | #include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create JSON array
const json array = {"first", "2nd", "third", "fourth"};
// output element at index 2 (third element)
std::cout << array.at(2) << '\n';
// exception type_error.304
try
{
... |
76e9f5308b6f6f0dcea0eb98ccbeae8f2ca78c85a29d12ee5ffb036dec17d5a0 | C++ | 759 | 20 | /*
* Copyright 2011, Ben Langmead <[email protected]>
*
* This file is part of Bowtie 2.
*
* Bowtie 2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opt... |
81531a20e6522c0ed5519b1d01354aa7cf71236a99c286472b2a468691b6eda8 | C++ | 760 | 25 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Martin J. Kuehn, Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* htt... |
51c9267b1277c7956db314c6af9e241b6249cd075f25b9dca7e734d63918967c | C++ | 761 | 22 | //
#include "catch.hpp"
#include "inc_libCZI.h"
#include <iostream>
#include "DimIndex.h"
#include "helper_algorithms.h"
using namespace pylibczi;
TEST_CASE("constants_dimension", "[constants_DimMap]")
{
using DMI = DimIndex;
using DI = libCZI::DimensionIndex;
std::vector<DimIndex> input = { DMI::B, DMI::V, DM... |
b50bb274290ffa679ce37f4d05f8a7f52e13b3e67dda97a81d5f3f06a2452ff0 | C++ | 761 | 24 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Daniel Abele
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... |
c30da270d8b2454bb30475e1947b9c6f5a35855012783f2b1aed759cb90d35a5 | C++ | 763 | 29 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: René Schmieding
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... |
d433b82fdcd49fbc95fece6b16b2f2ec1740a47fba8c6c3d64fd304b09cce265 | C++ | 763 | 26 | /*
* This file is part of NAStJA.
*
* Copyright 2016 - 2021 Marco Berghoff and the NAStJA Core Developers
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#inc... |
6235245d79445d893588f773af8c4ad762e0a350352b2f931bca43c43e6d08ed | C++ | 764 | 25 | #include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create the different JSON values with default values
json j_null(json::value_t::null);
json j_boolean(json::value_t::boolean);
json j_number_integer(json::value_t::number_integer);
json j_number_float(jso... |
d1c1990833be9f2015462f606545cdc0ef45154e30ed5f596565a44ed75df5ae | C++ | 764 | 27 | #include <Eigen/Core>
#include <iostream>
using namespace Eigen;
using namespace std;
template<typename Derived>
Eigen::Block<Derived>
topLeftCorner(MatrixBase<Derived>& m, int rows, int cols)
{
return Eigen::Block<Derived>(m.derived(), 0, 0, rows, cols);
}
template<typename Derived>
const Eigen::Block... |
70193e67136edfc1f651e6c11883e7f2649c136442bb0535116b08498e838cef | C++ | 765 | 25 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Julia Bicker
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... |
da9c44c06e3943f22eb88285d5cfb9c3eaab4ea846e014b0e5e60c519839321a | C++ | 766 | 30 | /*
* This file is part of NAStJA.
*
* Copyright 2016 - 2021 Marco Berghoff and the NAStJA Core Developers
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#inc... |
080145b11ebfea476bdb9e70ca9a53c3144a9ffa92c43110d42c59475d42995d | C++ | 767 | 29 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: René Schmieding
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... |
ee33b41ef90617b81902e9aeac27800da2f89c8f88f001872be87da43a6984d7 | C++ | 770 | 30 | //
// Created by snorri on 8.10.2018.
//
#include "AtlasTexture.h"
#include "TextureAtlas.h"
AtlasTexture::AtlasTexture(TextureAtlas* owner, Area* area) : m_owner(owner), m_area(area) {
}
VkDescriptorSet AtlasTexture::GetDescriptorSet() {
return m_owner->GetDescriptorSet();
}
TextureWindow AtlasTexture::GetTex... |
01e529255fae889dd27184c665dad874a5bf35e26708f440e96890f4e63ca97b | C++ | 771 | 29 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Lena Ploetzke
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
0b14b64ef6fb333ca6ef4bda8a048f6919114293a781a4bb59695b838b53f9ff | C++ | 772 | 35 | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using namespace nlohmann::literals;
int main()
{
// the original document
json doc = R"(
{
"baz": "qux",
"foo": "bar"
}
)"_json;
// the patch
json patch = R"(
... |
01d257aae01ea58d5b5eb3d6bc2b5f00d32321ceafd1dabc83a25c4014f68128 | C++ | 774 | 29 | /*
* Copyright (C) 2020-2026 MEmilio
*
* Authors: Lena Ploetzke
*
* Contact: Martin J. Kuehn <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
88e3b163b0dcc705c381c89248fd4483219732540a36dd60144c9cad9da40e9c | C++ | 775 | 31 | #include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create JSON values
json object = {{"one", 1}, {"two", 2}};
json null;
// print values
std::cout << object << '\n';
std::cout << null << '\n';
// add values
auto res1 = object.emplace("three"... |
6462ea7d08d0942b96d3ffb38422dfddb906076c16064a7de9c1c16427e484d8 | C++ | 776 | 25 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2012 Désiré Nuentsa-Wakam <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.