text
string
size
int64
token_count
int64
/*** MIT License Copyright (c) 2018 NUMERARE 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, copy, modify, merge, publis...
5,220
1,777
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | | | Cop...
4,976
1,846
/******************************************************************************* * Copyright 2019-2020 Intel Corporation * * 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.apa...
11,159
4,253
/* 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...
4,770
2,158
#pragma once #include <stdint.h> // 構造体定義はUEFI specificな部分. UEFI規格で定められてる定義を独自に構造体定義とした. // ref: edk2/MdePkg/Include/Uefi/UefiSpec.h // ref: p57 struct MemoryMap { unsigned long long buffer_size; // memory mapの中身の先頭アドレス. // 内部的にはEFI_MEMORY_DESCRIPTORの配列になっている(ref:edk2/MdePkg/Include/Uefi/UefiSpec.h) void* buf...
1,718
779
/****************************************************************************** * Copyright (c) 2018 McAfee, LLC - All Rights Reserved. *****************************************************************************/ #include "include/BrokerSettings.h" #include "message/include/DxlMessageConstants.h" #include "message...
1,016
297
// // Created by igor on 25/07/2021. // #include <doctest/doctest.h> #include <neutrino/utils/strings/numeric_string.hh> #include <climits> using namespace neutrino::utils; TEST_SUITE("numeric string conversions") { TEST_CASE("int2string") { // decimal std::string result; REQUIRE (int_t...
11,610
5,410
#include "Ability_Priest.h" Ability_Priest::Ability_Priest() : AbilityStruct(selectorH, ShaderForm::TxT, ShaderType::nullSh) {} bool Ability_Priest::AbilityExecute(int x, int y) { bool hasCured = false; GameMap* map = this->getAbility()->getMap(); Entity* entity_ = this->getAbility()->getEntity(); std::vector<Vec...
1,059
412
#include <jurassic_jigsaw.hpp> #include <fmt/printf.h> #include <range/v3/view/cartesian_product.hpp> #include <range/v3/range/conversion.hpp> #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <charconv> #include <iterator> #include <limits> #include <numeric> #include <regex> #inc...
21,491
7,310
#include "Carla.h" #include "Carla/Sensor/OpticalFlowCamera.h" #include "Carla/Sensor/PixelReader.h" FActorDefinition AOpticalFlowCamera::GetSensorDefinition() { return UActorBlueprintFunctionLibrary::MakeCameraDefinition(TEXT("optical_flow")); } AOpticalFlowCamera::AOpticalFlowCamera(const FObjectInitializer &Obj...
802
265
/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "planner/Admin.h" #include "common/interface/gen-cpp2/graph_types.h" #include "util/ToJson.h" namespace nebu...
6,049
1,870
#include "latino/Lex/Lexer.h" #include "UnicodeCharSets.h" #include "latino/Basic/CharInfo.h" #include "latino/Basic/Diagnostic.h" #include "latino/Basic/IdentifierTable.h" #include "latino/Basic/LLVM.h" #include "latino/Basic/LangOptions.h" #include "latino/Basic/SourceLocation.h" #include "latino/Basic/SourceManager....
40,132
13,103
#include "pch.h" #include "Graphics/TextureUtils.h" #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #include "StringView.h" #include "VkRenderer/VkApp.h" #include "VkRenderer/VkStackAllocator.h" #include "VkRenderer/VkCommandBufferUtils.h" #include "VkRenderer/VkSyncUtils.h" #include "VkRenderer/VkImageUtils.h...
5,671
2,206
#pragma once #include "routing/base/astar_graph.hpp" #include "routing/fake_feature_ids.hpp" #include "routing/index_graph_starter.hpp" #include "routing/joint_segment.hpp" #include "routing/segment.hpp" #include "geometry/point2d.hpp" #include "base/assert.hpp" #include <algorithm> #include <limits> #include <map...
22,341
7,103
/** * \file dnn/src/naive/split/split.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS ...
2,243
822
// Copyright 2021 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/base/memory.h" #include "src/base/platform/mutex.h" #include "src/execution/arguments-inl.h" #include "src/execution/frames-inl.h" #includ...
17,859
6,260
/* * Copyright 2013 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
18,461
5,771
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2013 Intel Corporation. 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 noti...
4,533
1,476
#include "QuantalAudio.hpp" namespace rack_plugin_QuantalAudio { struct MasterMixer : Module { enum ParamIds { MIX_LVL_PARAM, MONO_PARAM, ENUMS(LVL_PARAM, 2), NUM_PARAMS }; enum InputIds { MIX_CV_INPUT, ENUMS(CH_INPUT, 2), NUM_INPUTS }; enum ...
4,262
1,799
//================================================================================================== /*! @file @copyright 2015 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //===========================...
1,382
423
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Worldcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "primitives/pureheader.h" #include "crypto/scrypt.h" #include "hash.h"...
1,045
426
// Fill out your copyright notice in the Description page of Project Settings. #include "DynamicTextureStaticMeshActor.h" #include "Runtime/CoreUObject/Public/UObject/ConstructorHelpers.h" #include "Runtime/Engine/Classes/Materials/MaterialInstanceDynamic.h" // Sets default values ADynamicTextureStaticMeshActor::ADy...
1,876
623
#include "utils/test.hxx" #include <string> #include <memory> #include <iostream> int main(int argc, char** argv) { using namespace test; using dblclient::Session; UnitTest unit_test; std::unique_ptr<Server> server(new Server()); std::string address = server->get_address(); int port = server->get_port(); uni...
661
249
// Copyright (c) 2012 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 "chrome/browser/content_settings/chrome_content_settings_utils.h" #include "base/metrics/histogram_macros.h" #if !defined(OS_ANDROID) #incl...
2,120
664
/* * Copyright (c) 2012, Willow Garage, Inc. * Copyright (c) 2017, Bosch Software Innovations GmbH. * 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...
8,144
2,821
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the Apache License...
4,235
1,553
// Copyright 2018, Bosch Software Innovations GmbH. // // 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 applicabl...
1,758
562
#ifndef STAN_MATH_PRIM_MAT_META_IS_CONSTANT_HPP #define STAN_MATH_PRIM_MAT_META_IS_CONSTANT_HPP #include <stan/math/prim/mat/fun/Eigen.hpp> #include <stan/math/prim/mat/meta/is_eigen.hpp> #include <stan/math/prim/scal/meta/bool_constant.hpp> #include <stan/math/prim/scal/meta/is_constant.hpp> #include <type_traits> n...
776
289
/* * ::718604! * * Copyright(C) November 20, 2014 U.S. Food and Drug Administration * Authors: Dr. Vahan Simonyan (1), Dr. Raja Mazumder (2), et al * Affiliation: Food and Drug Administration (1), George Washington University (2) * * All rights Reserved. * * The MIT License (MIT) * * Permission is hereb...
73,895
22,889
#if !QSBOOST_PHOENIX_IS_ITERATING #ifndef QSBOOST_PHOENIX_CORE_EXPRESSION_HPP #define QSBOOST_PHOENIX_CORE_EXPRESSION_HPP #include <qsboost/phoenix/core/limits.hpp> #include <qsboost/call_traits.hpp> #include <qsboost/fusion/sequence/intrinsic/at.hpp> #include <qsboost/phoenix/core/as_actor.hpp> #include <qsboost/ph...
4,613
1,677
#pragma once #include <initializer_list> #include <iterator> #include <memory> #define DEBUG 1
102
36
#include<stdio.h> #include <stdlib.h> struct node { unsigned int rc; int value; struct node *node1; struct node *node2; struct node *node3; }; typedef struct node Node; Node *address_arr[10]; Node *root_arr[15]; int adjcency_matrix_root1[10][10]; int adjcency_matrix_root2[10][10]; const Node ...
4,412
2,160
/* Problem: P1619 Time: 2020/10/14 20:35:55 Author: Insouciant21 Status: Accepted */ #include <bits/stdc++.h> using namespace std; const int maxn = int(1e7) * 4 + 1; bitset<maxn> numList; map<int, int> q; int prime[2433655]; int cnt; void prepare() { numList[0] = numList[1] = 1; for (int i = 2; i ...
2,044
743
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #include "precomp.hpp" #include <OgreApplicationContext.h> #include <OgreCameraMan.h> #include <OgreRectangle2D.h> #include ...
28,902
9,721
// LuaState.cpp // Implements the cLuaState class representing the wrapper over lua_State *, provides associated helper functions #include "Globals.h" #include "LuaState.h" extern "C" { #include "lua/src/lualib.h" } #undef TOLUA_TEMPLATE_BIND #include "tolua++/include/tolua++.h" #include "Bindings.h" #include "Ma...
33,768
14,859
// license:BSD-3-Clause // copyright-holders:Miodrag Milanovic /********************************************************************* ng_memcard.c NEOGEO Memory card functions. *********************************************************************/ #include "emu.h" #include "emuopts.h" #include "ng_memcard....
1,995
704
// v8_utils.cpp /* Copyright 2014 MongoDB 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...
12,861
3,722
// Copyright 2018 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 "components/invalidation/impl/per_user_topic_subscription_manager.h" #include <stdint.h> #include <algorithm> #include <cstddef> #include <iter...
23,992
7,082
/* Process Kernels Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL. Amanzi is released under the three-clause BSD License. The terms of use and "as is" disclaimer for this license are provided in the top-level COPYRIGHT file. Authors: Konstantin Lipnikov, Ethan Coon This is a purely virtu...
1,412
538
#include "bin_niblack.h" #include "transformation.h" BinarizationNiblack::BinarizationNiblack(PNM* img) : Transformation(img) { } BinarizationNiblack::BinarizationNiblack(PNM* img, ImageViewer* iv) : Transformation(img, iv) { } PNM* BinarizationNiblack::transform() { int width = image->width(); int h...
1,674
544
/* Copyright (c) 2010-2019, Delft University of Technology * All rigths reserved * * This file is part of the Tudat. Redistribution and use in source and * binary forms, with or without modification, are permitted exclusively * under the terms of the Modified BSD license. You should have receiv...
14,586
4,172
#define _USE_MATH_DEFINES #include <iostream> #include <stdio.h> #include <cmath> #include <iomanip> #include <vector> #include <string> #include <algorithm> #include <unordered_set> #include <ctype.h> #include <queue> #include <map> #include <set> #include <stack> #include <unordered_map> #define EPSILON 0.00001 type...
1,648
534
#pragma once #ifndef GEODE_TIMEOUTTIMER_H_ #define GEODE_TIMEOUTTIMER_H_ /* * 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 fil...
2,121
730
/* Author: Akhtar, Junaid E-mail: junaida@mail.uni-paderborn.de Date: 2020/05/30 */ #include <gtest/gtest.h> #include <time.h> #include "../../src/common/benchmarkoptionsparser.h" #include "../../src/common/utility.h" #include "../common/basetest.h" using namespace std; using ::testing::Values; using :...
6,537
2,164
#include <google/protobuf/compiler/code_generator.h> #include <google/protobuf/compiler/plugin.h> #include <google/protobuf/descriptor.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/io/zero_copy_stream.h> #include <filesystem> #include <functional> using google::protobuf::Descripto...
17,176
5,910
/* Copyright (c) 2019 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #include "common/meta/GflagsManager.h" #include "common/conf/Configuration.h" #include "common/fs/FileUtils.h" DEFINE_string(gflags_mode_json, "share/resources/gflags.json", "gflags mode json for s...
6,838
2,332
#include <qt/veil/veilstatusbar.h> #include <qt/veil/forms/ui_veilstatusbar.h> #include <qt/bitcoingui.h> #include <qt/walletmodel.h> #include <qt/veil/qtutils.h> #include <iostream> VeilStatusBar::VeilStatusBar(QWidget *parent, BitcoinGUI* gui) : QWidget(parent), mainWindow(gui), ui(new Ui::VeilStatusBar...
3,288
1,054
//============================================================================== /// /// File: ImporterFontTTF.cpp /// /// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved. /// /// This file is subject to the terms and conditions defined in /// file 'LICENSE.txt', which is part of this ...
4,156
1,147
#include <pch.hpp> #include <xrn/Util/Time.hpp> template class ::xrn::util::BasicTime<double>; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Weffc++" #include <boost/test/unit_test.hpp> #pragma GCC diagnostic pop BOOST_AUTO_TEST_SUITE(test) BOOST_AUTO_TEST_SUITE(xrn) BOOST_AUTO_TEST_SUITE(util) BOOST_A...
5,272
2,609
// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Utility module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_UTILITY_HPP #define NAZARA_UTILITY_HPP #include <Nazara/Prerequisites.hpp> #include <Nazara/Core/Core.hpp> #incl...
654
264
// Copyright 2017 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 "components/no_state_prefetch/common/prerender_url_loader_throttle.h" #include "base/bind.h" #include "build/build_config.h" #include "component...
6,815
2,165
#include "StdAfx.h" #include "VFSBackend.h" #include "AppLog.h" #include "AssetStorageError.h" #include "Settings.h" #include "DatabaseSet.h" #include "IndexFile.h" #include "SQLiteIndexFileManager.h" #include "IIndexFileManager.h" #include "kashmir/uuid.h" #include "SQLiteError.h" #include <boost/filesystem/fstream...
14,587
5,471
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef AMRINTERPOLATOR_HPP_ #define AMRINTERPOLATOR_HPP_ // Chombo includes #include "AMR.H" #include "AMRLevel.H" #include "UsingNamespace.H" // Our includes #include "BoundaryConditions.hpp" #...
4,019
1,329
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it under...
6,135
1,601
/* * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/MappedFile.h> #include <AK/ScopeGuard.h> #include <AK/String.h> #include <errno.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> namespace AK { Result<...
1,088
477
// Copyright (c) 2018 Microsoft Corporation // Licensed under the MIT license. // Author: Paul Koch <code@koch.ninja> #include "PrecompiledHeader.h" #include <stddef.h> // size_t, ptrdiff_t #include <limits> // numeric_limits #include "ebm_native.h" #include "EbmInternal.h" #include "Logging.h" // EBM_ASSERT & LOG /...
21,610
6,520
#include <iostream> #include <string.h> #include "audioIO.h" #define F0 (3000) #define FB (1000) using namespace std; typedef struct { float f0; float fb; float G; float wL[2]; float wR[2]; } filtro; /* Parametri del filtro Shelving del II ordine -----------------------...
4,159
1,536
#include <stdio.h> int mu[1000005], M[1000005] = {}; int p[1005], pt = 0; void sieve() { int i, j, mark[1005] = {}; for(i = 2; i <= 1000; i++) { if(mark[i] == 0) { p[pt++] = i; for(j = i+i; j <= 1000; j += i) mark[j] = 1; } } } int main() { sieve()...
966
460
// Author: Jonas Byström // Copyright (c) Pixel Doctrine #include "pch.h" #include "explodingmachine.h" #include "../../cure/include/contextmanager.h" #include "../../cure/include/gamemanager.h" #include "../../cure/include/health.h" #include "../projectileutil.h" namespace life { ExplodingMachine::ExplodingM...
1,558
602
#include "JACKplugin.h" JACKPlugin* JACKPlugin::instance = NULL; JACKPlugin::JACKPlugin() { instance = this; client = NULL; inputLeft = NULL; inputRight = NULL; audioSource = NULL; ClientConnect(); } JACKPlugin::~JACKPlugin() { instance = NULL; ClientDisconnect(); } bool JACKPlugin::ClientConnect() { i...
2,979
1,108
#include <bits/stdc++.h> using namespace std; // edge struct E { int from; int to; int cap; int rev; }; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n, t; cin >> n >> t; int source = n + t; int sink = n + t + 1; int nodes_total = n + t + 2; vec...
4,562
1,598
// Copyright 2015 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 "blimp/engine/app/ui/blimp_window_tree_host.h" #include "base/memory/ptr_util.h" #include "ui/platform_window/stub/stub_window.h" namespace bli...
779
257
#ifndef BOOST_THREAD_EXPERIMENTAL_CONFIG_INLINE_NAMESPACE_HPP #define BOOST_THREAD_EXPERIMENTAL_CONFIG_INLINE_NAMESPACE_HPP ////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Vicente J. Botet Escriba 2014. Distributed under the Boost // Software License, Version 1.0. (Se...
778
261
/*******************************************************************\ Module: Goto Program Author: Thomas Kiley \*******************************************************************/ /// \file /// Goto Program #include "show_goto_functions_json.h" #include <iostream> #include <sstream> #include <util/json_irep.h>...
4,259
1,278
#include "DropDown.h" #include "graphics/Graphics.h" #include "gui/Style.h" #include "Button.h" #include "gui/interface/Window.h" namespace ui { class DropDownWindow : public ui::Window { DropDown * dropDown; Appearance appearance; std::vector<Button> buttons; public: DropDownWindow(DropDown * dropDown): Wind...
4,142
1,602
#include<iostream> #include<sys/time.h> #include<stdio.h> #include"LennardJonesPotential.h" #include"MonteCarlo.h" #include"Particles.h" using namespace std; double getTime() { struct timeval tf; gettimeofday( &tf, NULL ); return tf.tv_sec + tf.tv_usec * 0.000001; } double showTime( double last ) { double...
2,036
839
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: Frank Dellaert, et al. (see THANKS for the full author list) * See LICENSE for the license information * ----...
11,100
4,352
/* * Copyright (C) 2008 The Android Open Source Project * * 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 app...
11,815
4,462
#ifndef _WIN32 #include <arpa/inet.h> #endif #include <net/exit_info.hpp> #include <util/bencode.h> #include <util/bits.hpp> #include <util/mem.h> #include <list> #include <string.h> namespace llarp { bool ExitInfo::BEncode(llarp_buffer_t* buf) const { char tmp[128] = {0}; if(!bencode_start_dict(buf)) ...
2,272
882
// Boost.Geometry - gis-projections (based on PROJ4) // Copyright (c) 2008-2015 Barend Gehrels, Amsterdam, the Netherlands. // This file was modified by Oracle on 2017, 2018. // Modifications copyright (c) 2017-2018, Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle....
17,860
5,777
#include "lua_helper.h" #include "storm.h" #include <cstring> #include <base/util/unicode.h> #include <base/warcraft3/jass.h> #include <base/warcraft3/war3_searcher.h> namespace base { namespace warcraft3 { namespace lua_engine { namespace package { int searcher_storm(lua_State *L); int searcher_f...
2,658
1,328
// // Copyright (c) 2020 Google Inc. // // 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 agre...
44,839
12,703
// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // Copyright (c) 2011 The...
17,345
5,990
#include "LicenseManager.h" #include "core/BinaryData.h" #include "components/Exceptions.h" #include "components/LicenseManagerListener.h" #include "network/HTTPClient.h" #include "utils/PlatformUtils.h" #include "utils/NetworkUtils.h" #include "utils/Log.h" #include <chrono> #include <cstdlib> #include <ctime> #inclu...
16,375
4,949
#include <cstdlib> #include <ctime> #include "gra.h" #include "kreacjaPostaci.h" #include "walka.h" #include "poSmierci.h" #include "czyJeszczeRaz.h" #include "zwolnijPamiec.h" void glownaPetlaGry() { srand(time(0)); char *imieBohatera=0; int atakFizyczny=0; int obronaFizyczna=0; i...
1,527
680
/** Syntax Highlighting test file for C++ * \brief Doxygen tag highlighting */ #include<iostream> #include<cstdlib> using namespace std; int main(void) { cout << "\nHello World" << endl; cout << "\nUnclosed String << endl; // One line comment int a = 0; exit(a); } int add(int x, int y) { ...
393
151
#include "ReligionGroupScraper.h" #include "Log.h" #include "OSCompatibilityLayer.h" #include "ParserHelpers.h" #include "ReligionGroupScraping.h" #include "CommonRegexes.h" mappers::ReligionGroupScraper::ReligionGroupScraper() { LOG(LogLevel::Info) << "-> Scraping religion hierarchy."; registerKeys(); for (const a...
1,402
483
#include <gtest/gtest.h> #include <isce3/cuda/core/Device.h> #include <isce3/except/Error.h> using isce3::cuda::core::Device; using isce3::cuda::core::getDevice; using isce3::cuda::core::getDeviceCount; using isce3::cuda::core::setDevice; using isce3::except::InvalidArgument; struct DeviceTest : public testing::Test...
1,934
677
// Copyright (c) 2017-2018, NVIDIA CORPORATION. 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 requ...
12,798
4,474
#include "tkdCmdParser.h" #include "graphCommon.h" /** * Calculate (normalized) laplacian and eigenvector/values. */ class Laplacian { public: typedef double PixelType; /** * Run app. */ void Run( const std::string& filename, const std::string& outputFileName, bool normalize, const std::string& outpu...
5,376
2,045
// Copyright (c) 2016 The UUV Simulator 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 ...
4,656
1,529
#include "ExplicitEuler.h" bool ExplicitEuler::stepScene( TwoDScene& scene, scalar dt ) { // Your code goes here! // Some tips on getting data from TwoDScene: // A vector containing all of the system's position DoFs. x0, y0, x1, y1, ... //VectorXs& x = scene.getX(); // A vector containing all ...
632
224
// Copyright (c) Darrell Wright // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/beached/daw_json_link // #include "defines.h" #include <daw/daw_read_file.h> #include "daw/...
3,280
1,228
// MIT License // // Copyright (c) 2020 degski // // 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, rhs_, modify, mer...
18,521
6,307
#include "Status.hpp" #include "Memory.hpp" using namespace Core; Status Status::OK(StatusCode::OK, "OK"); Status Status::NotImplemented(StatusCode::NotImplemented, "Not implemented."); Status::Status() : code(StatusCode::OK), message("OK") { } Status::Status(const StatusCode& code, const std::string& message) : ...
1,000
316
#include <limits> #include "gtest/gtest.h" #include "base_types/BaseTypes.h" namespace base_types { class BaseTypesTest : public ::testing::Test { protected: BaseTypes m_baseTypes; }; TEST_F(BaseTypesTest, uint8Type) { const uint8_t maxUint8Type = std::numeric_limits<uint8_t>::max(); m_baseTypes.setU...
15,909
6,394
// Copyright 2017 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 "net/http/http_proxy_client_socket.h" #include "build/build_config.h" #include "net/base/address_list.h" #include "net/base/host_port_pair.h" #i...
1,487
509
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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) ==...
9,051
3,983
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /////////////////////////////////////////////////////////////////////////////////////////////////// #include <string> #include <vector> #include <memory> #include <map> #include "multi_device_async_infer_request.hpp" namespace Mul...
5,032
1,256
#include "Bme280Spi.hpp" #include <cstring> #include <iostream> #include <thread> #include <chrono> namespace { void ensureValidSpiSpeed(SpiDevice& spi) { constexpr uint32_t Mhz20 = 20'000'000; if (const uint32_t spiSpeed = spi.getMaxSpeedHz(); spiSpeed > Mhz20) { spi.setMaxSpeedHz(Mhz20); ...
3,695
1,646
#include <cstdio> #include <iostream> using namespace std; const int N = 10000010; int n, m; int num[N], a[111111]; bool U_prime[N]; int cnt = 0; struct Node { int l, r, Max, sum; } tree[400444]; void update(int root) { tree[root].Max = max(tree[root << 1].Max, tree[root << 1 | 1].Max); tree[root].sum ...
3,115
1,258
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
4,936
1,704
/* * Copyright (c) 2014-2020, Ilya Kotov <forkotov02@ya.ru> * * 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 condi...
4,640
1,664
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "Carla.h" #include "Carla/Game/CarlaGameModeBase.h" #include "Carla/Game/CarlaHUD.h" #...
12,903
4,341
/* Question Kattapa, as you all know was one of the greatest warriors of his time. The kingdom of Maahishmati had never lost a battle under him (as army-chief), and the reason for that was their really powerful army, also called as Mahasena. Kattapa was known to be a very superstitious person. He believed that a ...
1,594
487
//---------------------------------Spheral++----------------------------------// // MortonOrderRedistributeNodes // // Attempt to redistribute nodes such that they are laid out in memory // in a Morton ordering. Note that this involves renumbering the nodes of // each NodeList, not just redistributing them between pr...
2,199
598
/* * pfs_pack.cc * * Created on: 2015. 5. 7. * Author: windfree */ #include "data_pack/table_pack.h" #include "data_pack/pack_constants.h" #include "value/map_value.h" #include "value/list_value.h" #include "util/util.h" #include "util/obj_name_util.h" #include "io/data_output.h" #include "i...
1,674
686
#include "singletons/settingsmanager.hpp" #include "debug/log.hpp" #include "singletons/pathmanager.hpp" #include "singletons/resourcemanager.hpp" #include "singletons/windowmanager.hpp" using namespace chatterino::messages; namespace chatterino { namespace singletons { std::vector<std::weak_ptr<pajlada::Settings::I...
6,923
2,135
/************************************************************** * * 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 y...
1,773
558
/* Copyright 2013-present Barefoot Networks, Inc. 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 agreed to in w...
2,255
729