text
string
size
int64
token_count
int64
//Accepted #include <bits/stdc++.h> template<typename T> T gcd(T a, T b) { if(!b) return a; return gcd(b, a % b); } template<typename T> T lcm(T a, T b) { return a * b / gcd(a, b); } template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; } template<typename T> void chmax(T& a, T b) { a = (a < b...
2,459
1,382
/* * xtensor-fftw * Copyright (c) 2017, Patrick Bos * * Distributed under the terms of the BSD 3-Clause License. * * The full license is in the file LICENSE, distributed with this software. * * basic_option.hpp: * Include xtensor-fftw functionalities with explicit defined precision types. * */ #ifndef XTENS...
921
383
/// Copyright Floris de Kruijff 2018. /// Distributed under the Boost Software License, Version 1.0. /// (See accompanying file LICENSE.txt or copy at /// https://www.boost.org/LICENSE.txt) /// @file #ifndef VECTOR_HPP #define VECTOR_HPP /// @class vector /// @author Floris de Kruijff...
3,467
1,118
#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") #pragma comment(lib, "wininet") #pragma comment(lib, "gdiplus") #pragma comment(lib, "shlwapi") #pragma comment(lib, "...
40,296
19,332
#include <bits/stdc++.h> using namespace std; bool comp(const string& lhs, const string& rhs) { return lhs.substr(6, 8) < rhs.substr(6, 8); } int main() { int n, m, res = 0; vector<string> v, g; unordered_map<string, bool> hashmap; cin >> n; for (int i = 0; i < n; ++i) { string s; ...
781
305
#define MC_FUNCTIONS_H #ifndef COMMON_HEADERS_H #include "common_headers.hpp" #endif namespace br = boost::random; namespace bu = boost::uuids; struct Params { size_t L; // size_t Lx; // size_t Ly; size_t N; size_t numSamp; uint64_t numEqSteps; // double beta; double temp; std::strin...
1,227
489
#include <iostream> #include <chrono> #include <ctime> #include <iomanip> // for put_time() using namespace std; using namespace std::chrono; int main() { // Get current time as a time_point system_clock::time_point tpoint = system_clock::now(); // Convert to a time_t time_t tt = system_clock::t...
499
175
/*++ Copyright (C) 2015 netfabb 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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
32,064
13,637
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
17,937
5,185
#pragma once #include <memory> #include <iostream> namespace bst { template <class T> class Tree { public: Tree(); Tree(std::initializer_list<T> list); template <template <class...> class Container> explicit Tree(const Container<T>& vals); Tree(const Tree& other); Tree(Tree&&) noexcept = default; ~Tree...
1,111
369
// 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. #ifndef CALIB_COMMON_HPP #define CALIB_COMMON_HPP #include <opencv2/core.hpp> #include <memory> #include <vector> #include ...
3,583
1,099
// Copyright 2020 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This is the boilerplate implementation of the IAllocator HAL interface, // generated by the hidl-gen tool and then modified for use on Chrome OS. //...
1,786
599
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // STD #include <fstream> #include <utility> #include <vector> // APSI #include "apsi/log.h" #include "common/common_utils.h" #include "sender/sender_utils.h" // SEAL #include "seal/modulus.h" using namespace std; using ...
1,600
498
/* * Copyright (c) 2013-2014 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ #include <cstdint> #include <fstream> #include <cstring> #include <boost/format.hpp> #include <pkmn/enums.hpp> #inc...
14,224
4,560
/************************************************************************************** Copyright © 2004-2014 GoPivotal, Inc. 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...
19,349
9,002
#include<iostream> #include<string> #include <memory> class HtmlRender{ public: HtmlRender() {} virtual std::string rendering(){ return ""; } virtual ~HtmlRender(){ } }; class MainPageRender:public HtmlRender{ public: MainPageRender(){} virtual std::string rendering() override { return "this is Main Page...
1,196
406
class Solution { public: bool containsPattern(vector<int>& arr, int m, int k) { for (int i = 0; i < (int)arr.size() - m * k + 1; ++ i) { bool flag = true; for (int j = 1; j < k; ++ j) { for (int l = 0; l < m; ++ l) if (arr[i + l] != arr[i + l + j *...
558
176
#include "app/impl/tracker/tracker_grid.h" #include "core/base/bean_factory.h" #include "core/util/math.h" namespace ark { TrackerGrid::TrackerGrid(uint32_t dimension, const V3& cell) : _stub(sp<Stub>::make(dimension, cell)) { } sp<Vec3> TrackerGrid::create(int32_t id, const sp<Vec3>& position, const sp<Vec3>& ...
5,552
2,205
/************************************************************************ IMPORTANT NOTE : this file contains two clearly delimited sections : the ARCHITECTURE section (in two parts) and the USER section. Each section is governed by its own copyright and license. Please check individually each section for license a...
4,173
1,147
// // Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu> // Creation Date: Wed Nov 30 20:35:56 PST 2016 // Last Modified: Fri Dec 2 03:44:55 PST 2016 // Filename: autobeam.cpp // URL: https://github.com/craigsapp/humlib/blob/master/cli/autobeam.cpp // Syntax: C++11 // vim: ts=3...
451
191
#include <boost/python.hpp> #include "greet.h" BOOST_PYTHON_MODULE(greet_ext) { boost::python::def("say_hello", say_hello); }
128
55
#include <iostream> #include <cmath> #include <chrono> using namespace std; int n; bool is_prime(long long n) { if (n == 1) { return false; } if (n == 2) { return true; } for (int i = 2; i <= sqrt(n) + 1; i++) { if (n % i == 0) { return false; ...
679
277
/********************************************************************** * Copyright (c) 2008-2013, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
7,032
2,664
//******************************************************************* // // License: See top level LICENSE.txt file. // // Author: Garrett Potts // // Description: // // Base class for all map projections. // //******************************************************************* // $Id: ossimMapProjection.cpp 23418 ...
47,430
16,919
//***************************************************************************** // Copyright 2017-2019 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://w...
2,725
784
#include "game/state/shared/agent.h" #include "framework/framework.h" #include "game/state/battle/ai/aitype.h" #include "game/state/battle/battleunit.h" #include "game/state/city/agentmission.h" #include "game/state/city/base.h" #include "game/state/city/building.h" #include "game/state/city/city.h" #include "game/stat...
36,460
14,203
/////////////////////////////////////////////////////////////////////////////// // Copyright Christopher Kormanyos 2007 - 2015. // 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) // #include <array> #include <c...
3,805
1,379
#include <string> #include <tuple> #include "armadillo" #include "ba.h" #include "ceres/ceres.h" #include "google_suite.h" #include "io.h" #include "matlab_port.h" #include "opencv2/opencv.hpp" #include "pcl/visualization/pcl_plotter.h" #include "transform.h" int main(int /*argc*/, char** argv) { google::InitGoogle...
6,632
2,398
#include <iostream> #include <fstream> #include <byteswap.h> #include <tclap/CmdLine.h> #include "abif.h" using namespace std; int main(int argc, char** argv) { TCLAP::CmdLine cmd("ABIF reader", ' ', "0.1"); TCLAP::SwitchArg listArg("l","list","list all keys"); TCLAP::ValueArg<std::string> keyArg("k","key...
833
307
#include "OpenSenseMapConfig.h" int EEPROM_START_POSITION_OSM = 70; // ssid = 32 + passwd = 32 + 3 = OK char openSenseMapBoxId[26] = ""; char openSenseMapTempId[26] = ""; char openSenseMapHumidityId[26] = ""; char openSenseMapPressureId[26] = ""; void loadOpenSenseMapSettings() { EEPROM.begin(512); EEPROM.get(EE...
2,876
1,146
#include <iostream> #include <conio.h> #include "hmi.h" int main() { int selector(0); HMI interfaceController; do { system("cls"); SetConsoleTextAttribute(STDOUT_HANDLE, BACKBLACK_FORECYAN); std::cout << "\n\t\tNetwork Sniffer CLI\n\n"; SetConsoleTextAttribute(STDOUT_HANDLE, BACKBLACK_FOREWHITE); std::c...
587
233
// Copyright (C) 2011-2018 ycmd contributors // // This file is part of ycmd. // // ycmd 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 vers...
3,693
1,160
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/core/utils/Outcome.h> #include <aws/core/auth/AWSAuthSigner.h> #include <aws/core/client/CoreErrors.h> #include <aws/core/client/RetryStrategy.h> #include <aws/core/http/HttpClient.h> #i...
35,016
10,464
/* * Copyright 2011-2017 Blender Foundation * * 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 ag...
10,763
4,285
// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks // Just test that this doesn't crash the compiler... void func(void*); struct Test { virtual void use() { func((void*)this); } Test(Test&c) { func((void*)this); } Test() { func((void*)this); } }; void useBlock(void (^)(void)); int main (void) { __block Test t;...
358
141
#include <iostream> #include <bits/stdc++.h> using namespace std; class Solution { public: int maxNonOverlapping(vector<int>& nums, int target) { int ans = 0, psum = 0; unordered_set<int> s; s.emplace(0); for (int i = 0; i < nums.size(); i++) { psum += nums[i]; ...
624
233
/* * Copyright (c) 2008-2010 * Nakata, Maho * All rights reserved. * * $Id: Rlanv2.cpp,v 1.5 2010/08/07 04:48:32 nakatamaho Exp $ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributi...
6,001
2,546
/////////////////////////////////////////////////////////////////////////////// /// /// \file Area.hpp /// /// /// Authors: Chris Peters, Ryan Edgemon /// Copyright 2010-2012, DigiPen Institute of Technology /// /////////////////////////////////////////////////////////////////////////////// #pragma once na...
4,207
1,196
// // Copyright (c) 2002-2012 The ANGLE 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. // // Program.cpp: Implements the gl::Program class. Implements GL program objects // and related functionality. [OpenGL ES 2.0.24] secti...
83,468
26,531
/* * Copyright (c) 2015-2017, Intel Corporation * * 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 notice, * this list of conditions and the f...
7,743
2,587
////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: support@coronalabs.com // ////////////////////////...
8,530
3,679
/* * Copyright (C) 2018 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...
10,054
3,376
/************************************************************** * * 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...
5,753
1,751
class Solution { public: vector<string> removeAnagrams(vector<string>& words) { // for(int i=0;i<words.size();i++){ // sort(words[i].begin(), words[i].end()); // } int i = 1; while(i<words.size()){ string x = words[i]; s...
573
182
#include "Text2D.h" Text2D::Text2D() : transfer(nullptr), texture(nullptr), height(0), width(0) { } Text2D::~Text2D() { SAFE_RELEASE(transfer); SAFE_RELEASE(texture); } void Text2D::setFont(FontAsset * asset, const char * text) { if (asset != nullptr) { asset->setText(text...
2,282
853
// Copyright 2014 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/notifications/platform_notification_service_impl.h" #include <utility> #include <vector> #include "base/command_line.h" #includ...
21,452
5,959
//------------------------------------------------------------------------------ // MathFuncs.cpp // Built-in math system functions // // File is under the MIT license; see LICENSE for details //------------------------------------------------------------------------------ #include "slang/binding/SystemSubroutine.h" #i...
9,585
2,853
// Copyright 2014 Hottinger Baldwin Messtechnik // Distributed under MIT license // See file LICENSE provided #include <iostream> #include <string> #include <signal.h> #include <unordered_map> #include <cmath> #include <json/writer.h> #include <json/value.h> #include "streamclient/streamclient.h" #include "streamcli...
5,263
1,835
/*------------------------------------------------------------------------- This source file is a part of m8rscript For the latest info, see http:www.marrin.org/ Copyright (c) 2018-2019, Chris Marrin All rights reserved. Use of this source code is governed by the MIT license that can be found in...
2,804
854
#pragma once #include <vector> #include <string> #include <algorithm> #include <iostream> #include <random> #include <set> #include "code/utilities/types/strings/transformers/casing/lib.hpp" #include "code/utilities/data_structures/index_mode.hpp" #include "code/utilities/data_structures/index/moded_index.hpp" #include...
13,057
4,680
/* XBuzzer.cpp * * Copyright (C) 2017-2022 Shanghai Mylecon Electronic Technology Co., Ltd. * * 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 you...
2,472
1,051
#ifndef GUARD_DPSG_COMPOSITE_HPP #define GUARD_DPSG_COMPOSITE_HPP #include <type_traits> #include "./fold.hpp" #include "./traverse.hpp" namespace dpsg { template <class... Args> struct composite { constexpr composite() noexcept {} template < class... Args2, std::enable_if_t< std::conjuncti...
2,977
1,020
#include "pch.h" #include "TestGraphicsPipeline.h" namespace test { TestGraphicsPipeline::TestGraphicsPipeline(VulkanCore* core) { Test::Init(core); glfwSetWindowTitle(static_cast<GLFWwindow*>(Window::GetWindow()), "TestGraphicsPipeline"); float right = m_Core->swapchain.extent.width / 200.0f; float top = m...
13,204
5,404
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2014, Robert Bosch LLC. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
12,768
6,033
/* * Copyright (C) 2005-2013 Team XBMC * http://www.xbmc.org * * 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, or (at your option) * any later version. * ...
3,056
1,161
// 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 "third_party/blink/renderer/platform/heap/gc_info.h" #include "base/allocator/partition_allocator/page_allocator.h" #include "base/bits.h" #incl...
4,348
1,459
#include <tinyfsm.hpp> #include "elevator.hpp" #include "fsmlist.hpp" #include "uart.h" class Idle; // forward declaration // ---------------------------------------------------------------------------- // Transition functions // static void CallMaintenance() { brand.data = (uint8_t *)"*** calling maintenance ***...
3,593
1,314
// Copyright 2021 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <algorithm> #include <cmath> #include <functional> #include <random> #include <vector> #include <benchmark/benchmark.h> #include "bench/utils.h" ...
10,248
4,350
#include <math.h> #include <cstdlib> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <algorithm> #include <set> #include <vector> #include <map> #include "timeutil.h" using namespace std; char...
55,512
12,526
/*------------------------------------------------------------------------ Turf: Configurable C++ platform adapter Copyright (c) 2016 Jeff Preshing Distributed under the Simplified BSD License. Original location: https://github.com/preshing/turf This software is distributed WITHOUT ANY WARRANTY; without eve...
4,292
1,248
//============================================================================= //Company : Unversity of Glasgow, Comuting Science //Template Author : Syed Waqar Nabi // ...
9,506
2,985
/* * Copyright 2016 Alexander Richard * * This file is part of Squirrel. * * Licensed under the Academic Free License 3.0 (the "License"). * You may not use this file except in compliance with the License. * You should have received a copy of the License along with Squirrel. * If not, see <https://opensource.or...
9,661
3,690
// Copyright (c) 2010 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 "base/logging.h" #include "base/threading/simple_thread.h" #include "base/threading/thread_local.h" #include "base/synchronization/waitable_e...
3,901
1,467
#include "test_case_fixture.h" #include <cstdint> #include <cstdio> #include <cstdlib> #include <string> #include <vector> #ifdef _MSC_VER #include <atlsafe.h> #include <comutil.h> #ifdef _DEBUG #pragma comment(lib, "comsuppwd.lib") #else #pragma comment(lib, "comsuppw.lib") #endif #endif namespace { struct mssql_fi...
27,012
10,932
// 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...
17,361
5,381
#include <iostream> #include <vector> #include <algorithm> #include <iterator> #include <numeric> #include <set> #include <mtao/iterator/reverse.hpp> using namespace mtao::iterator; int main() { std::vector<int> a(30); std::iota(a.begin(),a.end(),0); for(auto&& v: reverse(a)) { std::cout << v <<...
355
136
// Copyright 2017 Google Inc. // Copyright 2020 The Open GEE Contributors // // 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 // // Unles...
22,322
7,184
/************************************************************************** * File: rtnode.h * * Description: Basic classes for Tree based algorithms * * Copyright (C) 2007 by Walter Corno & Daniele Dell'Aglio * ************...
3,129
1,012
/* =========================================================================== Copyright (c) 2010-2015 Darkstar Dev Teams 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 3 of the Lic...
1,913
607
/**************************************************************************** Copyright (C) 2013 Henry van Merode. All rights reserved. Copyright (c) 2015 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
9,150
2,545
// Copyright (c) 2019-2020 Open Tournament Project, All Rights Reserved. ///////////////////////////////////////////////////////////////////////////////////////////////// #include "UR_ColorSpectrum.h" #include "Widgets/DeclarativeSyntaxSupport.h" #include "Widgets/Colors/SColorSpectrum.h" ///////////////////...
894
287
#include "../include/Being.h" void Intro() { Weapon StarterWeapon; Being Hadgar("Hadgar", "Commander", "NPC", 10, 80, 15, 25, 8, 15, 100, 500); Player hero("Farmer John", "Peasant", 15, 0, 0, 0, 0, 5); Clear(&hero); Paragraph(&hero, "You have been trekking through an arid desert for days, searching for the rumor...
8,553
3,337
// // Copyright (c) 2008-2019 the Urho3D project. // // 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, mod...
2,286
758
/* =============================================================================== Copyright (C) 2019 d&b audiotechnik GmbH & Co. KG. All Rights Reserved. This file is part of RemoteProtocolBridge. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo...
4,590
1,293
#include <internal/facts/posix/identity_resolver.hpp> #include <leatherman/logging/logging.hpp> #include <sys/types.h> #include <unistd.h> #include <pwd.h> #include <grp.h> using namespace std; namespace facter { namespace facts { namespace posix { identity_resolver::data identity_resolver::collect_data(collecti...
1,907
668
#include <iostream> #include <unordered_map> using namespace std; class Solution { public: int countPrimes(int n) { int *m = new int[n]; for(int i = 0; i < n; i++) m[i] = 0; int res = 0; int i = 2; while(1) { for(; m[i] == 1 && i < n; i++); cout<<i<<...
602
229
// Copyright (c) 2014 Ben Kelley. // // MIT License http://opensource.org/licenses/MIT #include "WeatherData.h" WeatherData::WeatherData() { int loop; for(loop = 0; loop < MAX_DATA_FIELDS; loop++) { key[loop] = -1; value[loop] = 0; dataIsSet[loop] = false; multiplier[loop] = 1;...
2,749
936
// Copyright 2014 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 "config.h" #include "modules/credentialmanager/Credential.h" #include "bindings/core/v8/ExceptionState.h" #include "core/dom/ExceptionCode.h" n...
1,450
457
#include "cpp_lib.hpp" #include <iostream> int add1_with_c_interface(int arg) { return arg + 1; } namespace bex { void print_cpp_binding_example_info() { std::cout << "Project Info\n\n"; std::cout << " name: cpp_binding_example\n"; std::cout << " namespace: bex\n"; } std::string MyClass::get_nam...
435
160
#include <include/aml.h> #include <ARMPatch.h> #include <include/modslist.h> extern char g_szAppName[0xFF]; extern char g_szCfgPath[0xFF]; extern char g_szAndroidDataDir[0xFF]; extern const char* g_szDataDir; const char* AML::GetCurrentGame() { return g_szAppName; } const char* AML::GetConfigPath() { return g...
1,833
745
#include "main.hpp" #include "Hooks/Hooks.hpp" #include "GlobalFields.hpp" #include "GlobalNamespace/MasterServerQuickPlaySetupData_QuickPlaySongPacksOverride_PredefinedPack.hpp" #include "GlobalNamespace/MasterServerQuickPlaySetupData_QuickPlaySongPacksOverride_LocalizedCustomPack.hpp" #include "GlobalNamespace/Maste...
11,175
3,538
// // Copyright (c) 2015-2016 Vinnie Falco (vinnie dot falco at gmail dot com) // // 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) // #ifndef NUDB_FILE_HPP #define NUDB_FILE_HPP #include <boost/core/ignore_unused.h...
1,111
384
// +---------------------------------------------------------------------- // | Project : ray. // | All rights reserved. // +---------------------------------------------------------------------- // | Copyright (c) 2013-2017. // +---------------------------------------------------------------------- // | * Redistributi...
3,114
1,019
#ifndef GEOMETRICKS_DATA_STRUCTURE_KD_TREE_HPP #define GEOMETRICKS_DATA_STRUCTURE_KD_TREE_HPP //C++ stdlib includes #include <functional> #include <type_traits> #include <algorithm> #include <queue> #include <vector> //Project includes #include "dimensional_traits.hpp" #include "geometricks/meta/utils.hpp" #include "...
32,233
9,791
/* $Id$ */ /* * This file is part of OpenTTD. * OpenTTD 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, version 2. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
19,601
7,395
#include "GraphicsPipeline.hpp" #include "spdlog/spdlog.h" // // GraphicsPipeline class: // GraphicsPipeline::GraphicsPipeline(GraphicsPipeline &&other) noexcept : m_program{other.m_program}, m_vertexArray{other.m_vertexArray}, m_depthStencilState{std::move(other.m_depthStencilState)}, m_rasterizerSta...
2,142
780
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Evolution/DgSubcell/Reconstruction.hpp" #include <array> #include <cstddef> #include <functional> #include "DataStructures/ApplyMatrices.hpp" #include "DataStructures/DataVector.hpp" #include "DataStructures/Matrix.hpp" #include "Evoluti...
4,857
1,603
#include <errno.h> #include <signal.h> #include <execinfo.h> #include <cxxabi.h> #include <dlfcn.h> #include <unistd.h> #include <iostream> namespace helpers { static inline std::vector<std::string> str_split(const std::string &s, char delimiter) { std::vector<std::string> result; std::string token; std::...
2,722
966
#include "AxisAngle.h" AxisAngle::AxisAngle(void): angle(0.0f) {} AxisAngle::AxisAngle(Vector3 _axis, float _angle): axis(_axis), angle(_angle) {} bool AxisAngle::operator == (const AxisAngle& _axisAngle)const { if(axis == _axisAngle.axis && angle == _axisAngle.angle) { return true; } return false; } ...
419
161
// 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/crankshaft/hydrogen-store-elimination.h" #include "src/crankshaft/hydrogen-instructions.h" namespace v8 { namespace internal { #define ...
3,930
1,341
/* * * Copyright 2017 gRPC authors. * * 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 agree...
6,614
2,589
#include <ntddk.h> #include "..\inc\SSDT.h" #define SYSCALL_TABLE_MAXLEN 4096 PSERVICE_DESCRIPTOR pNtServiceDescriptor = NULL; PSERVICE_DESCRIPTOR pW32ServiceDescriptor = NULL; ULONG_PTR origNtSyscalls[SYSCALL_TABLE_MAXLEN] = { NULL, }; ULONG_PTR origW32Syscalls[SYSCALL_TABLE_MAXLEN] = { NULL, }; bool CheckTablePoi...
1,456
607
////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2016-22, Lawrence Livermore National Security, LLC and Umpire // project contributors. See the COPYRIGHT file for details. // // SPDX-License-Identifier: (MIT) ////////////////////////////////////////////////////////////////...
29,454
9,927
/** * @file tests/llvmir2hll/optimizer/optimizers/deref_address_optimizer_tests.cpp * @brief Tests for the @c deref_address_optimizer module. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include <gtest/gtest.h> #include "retdec/llvmir2hll/ir/empty_stmt.h" #include "llvmir2hll/ir/tests_with...
1,378
504
/* * MetaCall Library by Parra Studios * A library for providing a foreign function interface calls. * * Copyright (C) 2016 - 2021 Vicente Eduardo Ferrer Garcia <vic798@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License...
4,029
1,735
/*=========================================================================================================== * * HUC - Hurna Core * * Copyright (c) Michael Jeulin-Lagarrigue * * Licensed under the MIT License, you may not use this file except in compliance with the License. * You may obtain a copy of the Lice...
3,308
910
// OpenAL header files #include <al.h> #include <alc.h> #include <list> #include <conio.h> #include "OVR_Platform.h" #include "State.h" #include "Audio.h" Audio oAudio; int main(int argc, char** argv) { if (argc < 2) { fprintf(stderr, "usage: VoIPLoopback.exe <appID>"); exit(1); } Audio oAudio; //...
546
224
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
28,011
7,586
/* Copyright (c) 2022 Deep FX 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, publish, distribute, su...
7,169
2,896
// 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 "test_precomp.hpp" namespace opencv_test { namespace { #ifdef HAVE_PNG TEST(Imgcodecs_Png, write_big) { const s...
3,298
1,409