text
string
size
int64
token_count
int64
/* * This program 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 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that...
1,789
708
#pragma once #include <core/core.hpp> #include <physics/data/pointer_encapsulator.hpp> #include <physics/halfedgeedge.hpp> #include <physics/halfedgeface.hpp> namespace legion::physics { struct ConvexConvexCollisionInfo { math::vec3 edgeNormal; float ARefSeperation, BRefSeperation, aToBEdgeSep...
554
182
/* * Copyright (c) 2021, Cesar Torres <shortanemoia@protonmail.com> * Copyright (c) 2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include "SoundPlayerWidgetAdvancedView.h" #include "BarsVisualizationWidget.h" #include "Common.h" #include "M3UParser.h" #include "PlaybackManager.h" ...
8,318
2,982
/* The copyright in this software is being made available under the BSD * License, included below. This software may be subject to other third party * and contributor rights, including patent rights, and no such rights are * granted under this license. * * Copyright (c) 2010-2015, ITU/ISO/IEC * All rights r...
8,932
3,739
#include "heuristic.h" #include "cost_adapted_task.h" #include "evaluation_context.h" #include "evaluation_result.h" #include "global_operator.h" #include "globals.h" #include "option_parser.h" #include "operator_cost.h" #include <cassert> #include <cstdlib> #include <limits> using namespace std; Heuristic::Heurist...
3,299
1,048
#include "framesimplemainwindow.h" USING_NS_QRDEMO; FrameSimpleMainWindow::FrameSimpleMainWindow(QWidget *parent) : QrMainWindow(parent) { } FrameSimpleMainWindow::~FrameSimpleMainWindow() { }
201
74
// Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #include <tao/pegtl.hpp> #include <tao/pegtl/contrib/uri.hpp> #include <iostream> namespace pegtl = TAO_PEGTL_NAMESPACE; struct URI { std::string scheme; std::string authorit...
2,833
981
// ========================================================================== // Guesstimate - Technology Constant Estimator // ========================================================================== // Copyright (c) 2011, Manuel Holtgrewe // All rights reserved. // // Redistribution and use in source...
2,025
624
#include "stdafx.h" #include "core/macros.h" #include "rftl/string" namespace RF { /////////////////////////////////////////////////////////////////////////////// TEST( Bootstrap, Pass ) { RF_ASSERT( true ); ASSERT_TRUE( true ); } /////////////////////////////////////////////////////////////////////////////// } ...
633
240
/*------------------------------------------------------------------------- * drawElements Quality Program Reference Renderer * ----------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use ...
1,924
650
#ifndef AXIREGDRIVER_H #define AXIREGDRIVER_H #include <stdint.h> #include "wrapperregdriver.h" class AXIRegDriver : public WrapperRegDriver { public: AXIRegDriver(void *baseAddr) { m_baseAddr = (AccelReg *) baseAddr; } virtual ~AXIRegDriver() {} virtual void writeReg(unsigned int regInd, AccelReg regV...
502
203
// ----------------- BEGIN LICENSE BLOCK --------------------------------- // // Copyright (C) 2018-2021 Intel Corporation // // SPDX-License-Identifier: MIT // // ----------------- END LICENSE BLOCK ----------------------------------- #include "GeometryStore.hpp" #include <memory> #include "ad/map/access/Logging.hpp"...
8,209
2,857
// // Created by vik on 25.04.18. // #include <gtest/gtest.h> #include <input.h> #include "json_requests.h" using namespace input_lib; TEST(make_req_type, req_type_nodes) { std::array<req_type,5> results = {NODES_POST, NODES_DELETE, NODES_GET, NODES_PUT_START, NODES_PUT_END}; for(int i = 0; i < nodes_j_vec.s...
1,384
562
// Copyright 2013 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/deoptimizer/deoptimizer.h" #include <memory> #include "src/ast/prettyprinter.h" #include "src/builtins/accessors.h" #include "src/codege...
151,617
47,930
// Copyright 2021 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "iree-dialects/Dialect/LinalgExt/IR/LinalgExtDialect.h" #include "iree-dialects/Dialect/...
4,414
1,426
/* Q Light Controller Plus webaccess.cpp Copyright (c) Massimo Callegari 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/licenses/LICENSE-2.0.txt Unless ...
50,162
15,659
#ifndef IBUSINESS_EVENT_HEADER #define IBUSINESS_EVENT_HEADER #include <cstdint> #include <absl/status/status.h> class IPoller; class IBusinessEvent { public: virtual ~IBusinessEvent() {} virtual absl::Status OnAcceptable(int) { return absl::OkStatus(); }; virtual absl::Status OnCloseable(int) { return ...
547
195
#include "precompiledHeaders.h" #include "KillerList.h" KillerList::KillerList(){ killers = new figureBasic*[16]; killerSize = 0; } KillerList::KillerList(const KillerList &rhs) { killerSize = rhs.killerSize; killers = new figureBasic*[16]; for (char i = 0; i < killerSize; ++i) killers[i] = rhs.killers[i]; } ...
603
256
/* * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * 1. Redistributions of source code must retain the above * copyright notice, this list of conditions and the * following disclaimer. * * 2. Redistribu...
4,428
1,882
/* * Copyright (C) 2020-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "level_zero/experimental/source/tracing/tracing_imp.h" #include "level_zero/source/inc/ze_intel_gpu.h" #include <level_zero/ze_api.h> #include <level_zero/ze_ddi.h> #include <level_zero/zet_api.h> #include <level_zero/ze...
30,213
10,916
#include <iostream> int stringLength(char* string) { int length = 0; char lastChar = string[0]; while (lastChar != '\0') { length += 1; lastChar = string[length]; } return length; } int main() { char string[20] = "hello world"; std::cout << string << std::endl; std::cout << stringLength(string...
338
122
#include "duckdb/common/file_buffer.hpp" #include "duckdb/common/file_system.hpp" #include "duckdb/common/helper.hpp" #include "duckdb/common/checksum.hpp" #include "duckdb/common/exception.hpp" #include <cstring> namespace duckdb { using namespace std; FileBuffer::FileBuffer(FileBufferType type, uint64_t bufsiz) : ...
2,396
876
/************************************************************************ * Derived from the BSD3-licensed * LAPACK routine (version 3.7.0) -- * Univ. of Tennessee, Univ. of California Berkeley, * Univ. of Colorado Denver and NAG Ltd.. * December 2016 * Copyright (c) 2019-2021 Advanced Micro Devices, ...
7,546
2,315
/* * -------------------------------------------------------------- * * ------ Lattice Boltzmann @ The University of Manchester ------ * * -------------------------- L-U-M-A --------------------------- * * Copyright 2018 The University of Manchester * * Licensed under the Apache License, Version 2.0 (the "License"); * ...
13,467
5,088
#include "catch.hpp" #include <tl/optional.hpp> #include <tuple> #include <vector> struct takes_init_and_variadic { std::vector<int> v; std::tuple<int, int> t; template <class... Args> takes_init_and_variadic(std::initializer_list<int> l, Args &&... args) : v(l), t(std::forward<Args>(args)...) {} }; TE...
1,037
537
#include <iostream> #include "clinkbot.hpp" int main(int argc, char *argv[]) { CLinkbotI robot; robot.connect(); usleep(1000000); return 0; }
148
68
#include "gambit/ColliderBit/analyses/Analysis.hpp" #include "gambit/ColliderBit/ATLASEfficiencies.hpp" namespace Gambit { namespace ColliderBit { using namespace std; /// bjf> Experimental! But already useful for helping me convert the key /// numbers from these analyses to Python for the p-value c...
4,480
1,454
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <memory> #include "base/memory/raw_ptr.h" #include "ui/aura/test/test_windows.h" #include "ui/aura/window.h" #include "ui/aura/window_event_disp...
10,287
3,430
// Copyright (c) 2019-2021 Duality Blockchain Solutions Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bdap/linkmanager.h" #include "bdap/domainentry.h" #include "bdap/domainentrydb.h" #include "bdap/linki...
47,171
13,109
/* ** License Applicability. Except to the extent portions of this file are ** made subject to an alternative license as permitted in the SGI Free ** Software License B, Version 1.1 (the "License"), the contents of this ** file are subject only to the provisions of the License. You may not use ** this file except in co...
14,177
6,525
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
3,833
1,263
/* * Copyright 2020 Alex Syrnikov <pioneer19@post.cz> * SPDX-License-Identifier: Apache-2.0 * * This file is part of libcornet (https://github.com/pioneer19/libcornet). */ const uint8_t tls13_client_hello_record[] = { 0x16, 0x03, 0x01, 0x00, 0xea, // TlsPlaintext handshake, legacy version, length ...
2,997
1,803
/** * Copyright (C) 2008 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * ...
73,408
18,099
#include <string> class Quote { public: Quote() = default; Quote(const std::string &book, double sales_price) : bookNo(book), price(sales_price) {} std::string isbn() const { return bookNo; } virtual double net_price(std::size_t n) const { return n * price; } virtual ~Quote() = default; p...
895
342
//------------------------------------------------------------------------------ // multiplerendertargetbase.cc // (C) 2007 Radon Labs GmbH // (C) 2013-2016 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "stdneb.h" #include "coregra...
2,981
875
// Scintilla source code edit control // Encoding: UTF-8 /** @file CaseConvert.cxx ** Case fold characters and convert them to upper or lower case. ** Tables automatically regenerated by scripts/GenerateCaseConvert.py ** Should only be rarely regenerated for new versions of Unicode. **/ // Copyright 2013 by Neil Ho...
19,198
11,159
#include "tutorial/sandBox/sandBox.h" #include "igl/edge_flaps.h" #include "igl/collapse_edge.h" #include "Eigen/dense" #include <functional> using namespace std; using namespace Eigen; using namespace igl; SandBox::SandBox() { } void SandBox::Init(const std::string& config) { std::string item_name; std::ifstrea...
1,105
507
#include "common/data/vector_dok.hpp" template<typename T> DokVector<T>::DokVector(T sparseValue) : sparseValue_(sparseValue) { } template<typename T> typename DokVector<T>::iterator DokVector<T>::begin() { return data_.begin(); } template<typename T> typename DokVector<T>::iterator DokVector<T>::end() { ...
1,144
376
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * CompressNull.cpp * * Created on: Dec 1, 2021 * Author: Jason Wang jason.ruonan.wang@gmail.com */ #include "CompressNull.h" #include "adios2/helper/adiosFunctions.h" namespace adio...
1,635
500
#include <numeric> #include <iostream> #include <array> #include <iomanip> #include <generate.h> #include <storage.h> #include <test_functions.h> #include <TApplication.h> #include <TH1.h> #include <TF1.h> #include <TFitResult.h> #include <TCanvas.h> #include <TROOT.h> #define CATCH_CONFIG_RUNNER #include "catch2/c...
1,814
756
/* * (C) Copyright 2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an intergo...
13,607
5,220
#include "DatabaseSQLite.h" #if USE_SQLITE #include <base/logger_useful.h> #include <DataTypes/DataTypesNumber.h> #include <DataTypes/DataTypeNullable.h> #include <Databases/SQLite/fetchSQLiteTableStructure.h> #include <Parsers/ASTCreateQuery.h> #include <Parsers/ASTColumnDeclaration.h> #include <Interpreters/Context...
7,368
2,270
/** * Copyright 2021 Huawei Technologies Co., Ltd * * 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/licenses/LICENSE-2.0 * * Unless required by applicable law...
4,826
1,689
/* * LibCurlHttpContentFetcher.cpp * * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.ama...
9,645
2,856
// // TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd. // All rights reserved. See LICENSE.txt for license. // #include <PyMaterialX/PyMaterialX.h> #include <MaterialXCore/Definition.h> #include <MaterialXCore/Material.h> namespace py = pybind11; namespace mx = MaterialX; void bindPyDefinitio...
4,317
1,524
#ifndef BOOST_MPL_AUX_MSVC_ETI_BASE_HPP_INCLUDED #define BOOST_MPL_AUX_MSVC_ETI_BASE_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2001-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://ww...
1,756
766
#include "../../include/AttributeWidgets.h" #include "../../include/Application.h" #include "../../include/Layouts.h" #include "../../include/SettingsPanels.h" using Layers::Button; using Layers::Combobox; using Layers::Theme; using Layers::ThemesSettingsPanel; ThemesSettingsPanel::ThemesSettingsPanel(QWidget* parent...
5,030
1,967
/*! \file checkFramebufferStatus.inl * \author Jared Hoberock * \brief Inline file for checkFramebufferStatus.h. */ #include "checkFramebufferStatus.h" #include <iostream> void checkFramebufferStatus(const char *filename, const unsigned int lineNumber) { GLenum status = glCheckFramebufferStatusEXT(GL...
1,809
686
#include "projection.hpp" #include <algorithm> #include <functional> #include <memory> #include <numeric> #include <string> #include <utility> #include <vector> #include "expression/evaluation/expression_evaluator.hpp" #include "expression/expression_utils.hpp" #include "expression/pqp_column_expression.hpp" #include...
7,310
2,138
/////////////////////////////////// // eleven.cpp // A C/C++ program to demonstrate pointers // g++ -oeleven.exe eleven.cpp // cl /Feeleven.exe eleven.cpp #include <stdio.h> #include <stdlib.h> #include <string.h> int main( int argc , char **argv , char **envp ){ int arr[] = { 0,2,4,5,6}; int arr_count = sizeof(...
790
285
#pragma once #include "enums.hpp" #include "types.hpp" #include <functional> namespace core { struct Core; } namespace modules { using on_mod_fn = std::function<walk_e(mod_t)>; using on_event_fn = std::function<void(mod_t)>; bool list (core::Core&, proc_t proc, on_mod_fn on_...
934
319
#include <stdio.h> #include <unistd.h> #include <sys/time.h> #include "Thread.hpp" #include "Object.hpp" #include "HttpMime.hpp" #include "HttpAcceptLanguage.hpp" #include "Math.hpp" using namespace obotcha; void testLanguageParse() { while(1) { HttpAcceptLanguage encoding1 = createHttpAcceptLang...
1,805
660
#include "DirectX/Effects/Effects.h" #pragma region Effect Effect::Effect(ID3D11Device* device, const std::wstring& filename) : mFX(0) { std::ifstream fin(filename, std::ios::binary); fin.seekg(0, std::ios_base::end); int size = (int)fin.tellg(); fin.seekg(0, std::ios_base::beg); std::vector<char> compiledShade...
15,279
5,662
/* * Copyright (c) 2013 Broadcom Corporation * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO...
14,962
6,641
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
3,457
1,130
#include "HuffmanEncoder.h" #include <iostream> #include <stdexcept> #include <string> int main(int argc, const char * argv[]) { if (argc != 3) { std::string errorMessage = std::string("Usage: ") + argv[0] + " <input filename> <encoded filename>"; throw std::logic_error(errorMessage)...
573
197
/* Hyperborea (c) by Nicolas @ https://github.com/NicolasDe Hyperborea is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. You should have received a copy of the license along with this work. If not, see <http://creativecommons.org/licenses/by-sa/4.0/>. */ #include "gameui2_interfa...
14,975
4,916
/* * Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use,...
5,675
1,764
/* * Copyright (C) 2010 - 2015 Leonid Kostrykin * * Chair of Medical Engineering (mediTEC) * RWTH Aachen University * Pauwelsstr. 20 * 52074 Aachen * Germany * */ #include <Carna/base/glew.h> #include <Carna/base/ShaderUniform.h> namespace Carna { namespace base { // -------------------------------...
2,256
723
#ifndef G4GEOMETRY_OPTIONS #define G4GEOMETRY_OPTIONS // // G4 geometry options look-up facility, to be used in conjunction // with SimpleConfig. // // // Original author: Kyle Knoepfel // // This method is used for setting and overriding various flags that // are specified when creating volumes in G4. Ideally, it wou...
6,434
1,835
#include <iostream> #include <vector> #include <cstdio> #include <string> #include <algorithm> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; if (A != C) { cout << 1 << "\n"; return 0; } cout << 0 << "\n"; return 0; }
291
115
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. 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/licenses/LICENSE-2.0 Unless required by applicable law or a...
17,788
5,476
#ifndef XTR_TIMESPEC_HPP #define XTR_TIMESPEC_HPP #include <ctime> #include <fmt/chrono.h> namespace xtr { // This class exists to avoid clashing with user code---if a formatter // was created for std::timespec then it may conflict with a user // defined formatter. struct timespec : std::timespec ...
1,009
331
// Copyright 2021 Slava-100 <svat.strel.2001@gmail.com> #ifndef INCLUDE_STACKIMPL_HPP_ #define INCLUDE_STACKIMPL_HPP_ #include <utility> template <typename T> class StackImpl { public: StackImpl() : _tail(nullptr), _size(0) {} StackImpl(const StackImpl &) = delete; StackImpl(StackImpl &&) = delete; StackI...
1,791
698
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2012 EMC Corp. // // @filename: // CXformSimplifyGbAgg.cpp // // @doc: // Implementation of simplifying an aggregate expression by finding // the minimal grouping columns based on functional dependenc...
6,055
2,367
/* Cycript - The Truly Universal Scripting Language * Copyright (C) 2009-2016 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ /* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the...
42,409
14,049
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // 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/licenses/LICENSE-2.0 // // Unless requir...
5,993
2,057
#include "mem/spm/governor/explicit_local_spm.hh" #include <iostream> ExplicitLocalSPM * ExplicitLocalSPMParams::create() { return new ExplicitLocalSPM(this); } ExplicitLocalSPM::ExplicitLocalSPM(const Params *p) : BaseGovernor(p) { gov_type = "ExplicitLocal"; } ExplicitLocalSPM::~ExplicitLocalSPM() { ...
4,189
1,400
/*-----------------------------------------------------------------------------+ Copyright (c) 2008-2009: Joachim Faulhaber +------------------------------------------------------------------------------+ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENCE.txt or copy ...
693
210
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. // // 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/licenses/LICENSE-2.0 // // Unless required...
8,768
3,613
/* * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. * Copyright (C)...
30,056
8,597
#include <QVariant> #include <QMouseEvent> #include <QStackedWidget> #include <QHBoxLayout> #include <QVBoxLayout> #include <QPushButton> #include <common/iconstore/IconFontStore.h> #include "QzScroller.h" #include "IdButton.h" #include "StackedContainer.h" namespace Quartz { struct Item { using Ptr = std::sha...
10,690
3,063
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. #include "SpawnPedestrian.h" #include "SpawnPedestrianStyle.h" #include "SpawnPedestrianCommands.h" #include "Misc/MessageDialog.h" #include "Framework/MultiBox/MultiBoxBuilder.h" #include "LevelEditor.h" #include "SpawnManager.h" static const FName SpawnP...
2,730
905
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details #include "Luau/Module.h" #include "Luau/Common.h" #include "Luau/RecursionCounter.h" #include "Luau/Scope.h" #include "Luau/TypeInfer.h" #include "Luau/TypePack.h" #include "Luau/TypeVar.h" #include "Lu...
16,352
5,465
#include "compiler/compiler.hpp" #include <gtest/gtest.h> TEST(Compiler, IsDebugBuild) { #ifdef NDEBUG ASSERT_FALSE(cen::is_debug_build()); #else ASSERT_TRUE(cen::is_debug_build()); #endif } TEST(Compiler, IsReleaseBuild) { #ifdef NDEBUG ASSERT_TRUE(cen::is_release_build()); #else ASSERT_FALSE(cen::is_releas...
702
314
// ========================================================================== // CommandGroupBuilder class // // FRC 4143: MARS/WARS // ========================================================================== // 2022-02-27 JKSalmon - Initial release // =================================================================...
4,768
1,472
// // G3MCanvas2DDemoScene.hpp // G3MApp // // Created by Diego Gomez Deck on 2/12/15. // Copyright (c) 2015 Igo Software SL. All rights reserved. // #ifndef __G3MApp__G3MCanvas2DDemoScene__ #define __G3MApp__G3MCanvas2DDemoScene__ #include "G3MDemoScene.hpp" class G3MCanvas2DDemoScene : public G3MDemoScene { ...
612
250
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
25,121
9,521
/** * 2475. ๊ฒ€์ฆ์ˆ˜ * * ์ž‘์„ฑ์ž: xCrypt0r * ์–ธ์–ด: C++14 * ์‚ฌ์šฉ ๋ฉ”๋ชจ๋ฆฌ: 1,984 KB * ์†Œ์š” ์‹œ๊ฐ„: 0 ms * ํ•ด๊ฒฐ ๋‚ ์งœ: 2020๋…„ 8์›” 21์ผ */ #include <iostream> using namespace std; int main() { int n1, n2, n3, n4, n5; cin >> n1 >> n2 >> n3 >> n4 >> n5; cout << (n1 * n1 + n2 * n2 + n3 * n3 + n4 * n4 + n5 * n5) % 10; }
308
212
#include "stdafx.h" #include "protein_calls/IntSelectionCall.h" using namespace megamol; using namespace megamol::protein_calls; /* * IntSelectionCall::CallForGetSelection */ const unsigned int IntSelectionCall::CallForGetSelection = 0; /* * IntSelectionCall::CallForSetSelection */ const unsigned int IntSelecti...
576
182
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
183,668
51,633
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory (LLNL). // Written by Cosmin G. Petra, petra1@llnl.gov. // LLNL-CODE-742473. All rights reserved. // // This file is part of HiOp. For details, see https://github.com/LLNL/hiop. HiOp // is releas...
18,866
6,183
#include <cmath> #include <cstdio> #include <ctime> #include <chrono> #include <thread> #include "matmultran.hpp" void alloc_mem(int m, int n, float **A_ptr, float **C_ptr, float **D_ptr) { *A_ptr = (float *) malloc(m * n * sizeof(float)); *C_ptr = (float *) malloc(m * m * sizeof(float)); *D_ptr = (float...
2,366
1,030
// The MIT License (MIT) // // Copyright (c) 2017 Darrell Wright // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files( the "Software" ), to deal // in the Software without restriction, including without limitation the rights // to use,...
3,387
1,398
#include "Node.h" #include "WebPage.h" #include "WebPageManager.h" #include "JsonSerializer.h" #include "InvocationResult.h" Node::Node(WebPageManager *manager, QStringList &arguments, QObject *parent) : JavascriptCommand(manager, arguments, parent) { } void Node::start() { QStringList functionArguments(arguments()...
1,029
290
/* Copyright 2012-present Facebook, Inc. * Licensed under the Apache License, Version 2.0 */ #include "watchman.h" #include "ChildProcess.h" #include "Logging.h" #include "ThreadPool.h" #ifndef _WIN32 #include <poll.h> #endif #include <folly/Exception.h> #include <folly/ScopeGuard.h> #include <folly/Singleton.h> usin...
33,522
12,063
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,303
1,110
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve. 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/licenses/LICENSE-2.0 Unless required by applicable law or ...
8,695
2,951
// Boost.Geometry // Copyright (c) 2021, Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html #ifndef BOOST_GEOMETRY_STRATEGIES_SIMPLIFY_SPHERICAL_HPP #define BOOST_GE...
4,295
1,314
#include "BigInteger.h" BigInteger::BigInteger():n(0), val(NULL), pos(false){ } BigInteger::BigInteger(std::string s){ n = s.length(); pos = (s[0]=='-')?false:true; if(!pos) n--; val = new int[n]; for (int i = 0; i < n; i++) { if(s[i]!='-' || s[i]!='+'){ if(pos) val[i] = s[i]-'0'; e...
5,312
2,451
// This file is part of OpenMOOR, an Open-source simulation program for MOORing // systems in offshore renewable energy applications. // // Created by Lin Chen on Sep 15, 2017. // // Copyright 2018 Lin Chen <l.chen.tj@gmail.com> & Biswajit Basu <basub@tcd.ie> // // Licensed under the Apache License, Version 2.0 (the "L...
9,075
3,150
#pragma once #include <cstdint> #include <mpi/core/mpi.hpp> namespace mpi { enum class comparison : std::int32_t { identical = MPI_IDENT , congruent = MPI_CONGRUENT, similar = MPI_SIMILAR , unequal = MPI_UNEQUAL }; }
235
105
#include "al2o3_platform/platform.h" #include "al2o3_catch2/catch2.hpp" #include "utils_simple_logmanager/logmanager.h" #include "al2o3_os/file.h" #include "al2o3_os/filesystem.h" TEST_CASE("Alloc/Free", "[SimpleLogManager]") { auto slm = SimpleLogManager_Alloc(); REQUIRE(slm); SimpleLogManager_Free(slm); } TEST_C...
2,989
1,176
/* inih -- simple .INI file parser Copyright (c) 2009, Brush Technology All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright ...
6,357
2,056
#include <iostream> #include <vector> #include <algorithm> using namespace std; template<typename T> class UnionFind { public: struct Node { T data; int rank; int forestIndex; Node* parent; Node(T _data, int _forestIndex) { data = _data; rank = 0; ...
2,232
810
#include <iomanip> #include <iostream> #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <sstream> #include <string> using namespace std; void loadImage3() { // load images vector<cv::Mat> imgList; for (int i = 5; i <= 9; i++) { // create file name ostringstream imgNumber; ...
1,204
403
#include <FoundationPCH.h> #include <Foundation/Utilities/Node.h> // EZ_CHECK_AT_COMPILETIME(sizeof(ezNodePin) == 4); // clang-format off EZ_BEGIN_DYNAMIC_REFLECTED_TYPE(ezNode, 1, ezRTTINoAllocator) EZ_END_DYNAMIC_REFLECTED_TYPE; EZ_BEGIN_STATIC_REFLECTED_TYPE(ezNodePin, ezNoBase, 1, ezRTTINoAllocator) { EZ_BEGI...
2,852
1,185
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <string> #include <vector> #include "gpu/gpu_config.hpp" #include "multi/multi_remote_blob_tests.hpp" #include "common_test_utils/test_constants.hpp" const std::vector<DevicesNamesAndSupportPair> device_names_and_support_f...
2,393
805
/* * bigmac_solution_con.hh * * Created on: Jan 17, 2012 * Author: jpods */ #ifndef DUNE_AX1_BIGMAC_SOLUTION_CON_HH #define DUNE_AX1_BIGMAC_SOLUTION_CON_HH #include <dune/pdelab/common/function.hh> #include <dune/ax1/common/constants.hh> #include <dune/ax1/acme1MD/common/acme1MD_parametertree.hh> templat...
1,494
617
//------------------------------------------------------------------------------ /* This file is part of jbcoind: https://github.com/jbcoin/jbcoind Copyright (c) 2012, 2013 Jbcoin Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
40,091
12,281