text
string
size
int64
token_count
int64
#include <vector> #include <algorithm> #include <iostream> #include "TicTacToePlayer.h" TicTacToeMove TicTacToePlayer::generateMove(const TicTacToeBoardDescriptor& board, char next_sym, std::vector<int>& generated){ auto last = generated.size() > 0 ? generated.back() : -1; for (auto i = ++last; i < BOARD_SIZE;...
2,872
1,000
/** * @author ${kekkaishivn} - dattl@ifi.uio.no * * ${tags} */ #include <grp.h> #include "MyEnclave_u.h" struct group *ocall_getgrgid(gid_t gid) { return getgrgid(gid); } int ocall_initgroups(const char *user, gid_t group) { return initgroups(user, group); }
268
126
#ifndef OPENPOSE_PRODUCER_DATUM_PRODUCER_HPP #define OPENPOSE_PRODUCER_DATUM_PRODUCER_HPP #include <atomic> #include <limits> // std::numeric_limits #include <tuple> #include <openpose/core/common.hpp> #include <openpose/core/datum.hpp> #include <openpose/utilities/fastMath.hpp> #include <openpose/producer/producer.hp...
10,164
2,822
#include "manager.h" namespace Blocks { Manager manager; Manager::~Manager() { // So the 0x1 placeholders are not accidentally deleted. blocks_[0] = nullptr; groups_[0] = nullptr; deleteallslotvector(connections_); deleteallslotvector(blocks_); deleteallslotvector(groups_); } // TODO: Multiple ...
16,637
6,304
#include "nativeparticipantimpl.h" #include "nativesubscriberimpl.h" #include <iostream> #include <chrono> #include <thread> using namespace us::ihmc::rtps::impl::fastRTPS; class ExampleParticipantListener : public NativeParticipantListener { void onParticipantDiscovery(int64_t infoPtr, int64_t guidHigh, int64_t...
2,076
713
#include "common.h" #include "Window.h" #include "TaskSystem.h" #include "Timer.h" #include "Graphics.h" #include "Renderer.h" #include "State.h" #include "DefaultLoadState.h" #include "StateManager.h" #include "GuiSystem.h" using namespace jsh; using namespace jsh::_internal; namespace jshEngine { void BeginUpdat...
6,860
2,989
/** * @file * @copyright This code is licensed under the 3-clause BSD license.\n * Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.\n * See LICENSE.txt for details. */ #include "LevenbergMarquardt.h" #include <Eigen/Dense> #include <unsupported/Eigen/NonLinearOptimizati...
2,191
736
#include<bits/stdc++.h> using namespace std; using vi = vector<int>; using vvi = vector<vi>; using ii = pair<int,int>; using vii = vector<ii>; using l = long long; using vl = vector<l>; using vvl = vector<vl>; using ll = pair<l,l>; using vll = vector<ll>; using vvll = vector<vll>; using lu = unsigned long long; using ...
2,182
955
/* * Copyright 2004-2017 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 * *...
64,295
21,914
// Copyright 2021 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/ui/ash/projector/projector_client_impl.h" #include "ash/constants/ash_features.h" #include "ash/public/cpp/projector/projector_c...
6,403
2,019
#include "output.h"//use file code that I created #include<iostream>//use standard library using std::cout; int main() { cout<<"Hello World!"; return 0; }
160
58
/*Ideas22222222222 ⭐ -1. Still giving INVALID MOVE(wrong in game.py). 0. Doesn,t know townhall dead 1. GAME: Improve Endgame Heuristics (If less stealth attack) 2. GAME: Similar to above, Try adding heuristics for stealth attack 0. Work on 10x10 rather than samller XXX 3. TIME: Instead of calling Function directl...
16,538
7,809
// Copyright 2022 Trevogin Kirill #include <tbb/tbb.h> #include <algorithm> #include <cmath> #include <ctime> #include <iostream> #include <random> #include <utility> #include <vector> #include "../../../modules/task_3/trevogin_k_hoar_tbb/hoar.h" #include "gtest/gtest.h" #define N 100000 TEST(Hoare_Quick_Sort_TBB, Ca...
3,023
1,308
/* * Copyright (c) 2012 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 contribut...
37,123
12,227
//===--- SarifDiagnostics.cpp - Sarif Diagnostics for Paths -----*- C++ -*-===// // // Part of the LLVM Project, 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 // //===---------------------------...
12,911
3,919
#include "opt-methods/util/Charting.hpp" using namespace Charting; void Charting::addToChart(QtCharts::QChart *chart, QtCharts::QAbstractSeries *s) { s->setUseOpenGL(); chart->addSeries(s); s->attachAxis(axisX(chart)); s->attachAxis(axisY(chart)); } qreal Charting::getAxisRange(QtCharts::QValueAxis *axis) { retu...
846
331
// -*- C++ -*- // // $Id: EC_ProxySupplier.inl 77001 2007-02-12 07:54:49Z johnnyw $ TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE void TAO_EC_ProxyPushSupplier::suspend_connection_i (void) { this->suspended_ = 1; } ACE_INLINE void TAO_EC_ProxyPushSupplier::suspend_connection_locked (void) { ACE_GUARD_THROW_EX ( ...
2,200
922
#include <assert.h> #include "DO.h" #include "Iterator.h" #include <exception> using namespace std; bool relatie1(TCheie cheie1, TCheie cheie2) { if (cheie1 <= cheie2) { return true; } else { return false; } } void testAll() { DO dictOrd = DO(relatie1); assert(dictOrd.dim() =...
827
328
#include "game_loop.h" #include <chrono> #include <thread> #include <iostream> using namespace std::chrono_literals; // we use a fixed timestep of 1 / (60 fps) = 16 milliseconds constexpr std::chrono::nanoseconds timestep(16666666ns); void GameLoop::run(std::function<void(float)> update) { using clock = st...
1,315
480
/******************************************************************************************* * @file MergeTwoSortedListsSolution.cpp 2015\12\7 18:00:31 $ * @author Wang Xiaotao<wangxiaotao1980@gmail.com> (中文编码测试) * @note LeetCode No.21 Merge Two Sorted Lists *****************************************...
1,348
421
/* * * Copyright 2018 Asylo 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...
2,194
802
#include "LFO.hpp" #include "lookup_tables.hpp" #include "PRNG.hpp" #include "wave_scanner.hpp" LFO::LFO(uint32_t sample_rate) : sample_rate(sample_rate) {} void LFO::tick(void) { phase_accumulator += tuning_word; updateWaveshapes(); } void LFO::setInput(Input_t input_type, int value) { input[input_type]...
3,411
1,367
// 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...
13,674
4,815
#include "../../headers/renderpasses/Renderpass.hpp" #include "../../headers/RTFilterDemo.hpp" namespace rtf { void Renderpass::setRtFilterDemo(RTFilterDemo* rtFilterDemo) { m_rtFilterDemo = rtFilterDemo; m_vulkanDevice = rtFilterDemo->vulkanDevice; m_attachmentManager = rtFilterDemo->m_attachmentManager; m_...
353
133
/***************************************************************************** * Copyright (C) 2008-2011 Massachusetts Institute of Technology * * * * Permission is hereby granted, free of charge, to any person obtaining * * ...
2,664
729
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { char s[100]; long long int a=138902663,k,l,i=8; while(1) { k=(a*a)/100,i=8; while(k!=0) { if(k%10!=i--) break; k/=100; } if(k==0) break; i=8; a-=6; k=(a*a)/100; while(k!=0) { ...
458
252
/* pbrt source code Copyright(c) 1998-2012 Matt Pharr and Greg Humphreys. This file is part of pbrt. 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...
9,537
3,132
#include "i4pch.h" #include "WinShipLinker.h"
46
24
//===-- NativeRegisterContextWindows.cpp ------------------------*- C++ -*-===// // // Part of the LLVM Project, 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 // //===---------------------------...
1,104
327
/* Copyright (C) 2005-2007 Feeling Software Inc. Portions of the code are: Copyright (C) 2005-2007 Sony Computer Entertainment America MIT License: http://www.opensource.org/licenses/mit-license.php */ #include "StdAfx.h" #include "FUtils/FUParameter.h" #include "FCDocument/FCDocument.h" #include "FCD...
7,876
2,730
// This file has been generated by Py++. #ifndef SingletonWindowFactoryManager_hpp__pyplusplus_wrapper #define SingletonWindowFactoryManager_hpp__pyplusplus_wrapper void register_SingletonWindowFactoryManager_class(); #endif//SingletonWindowFactoryManager_hpp__pyplusplus_wrapper
283
78
#ifndef STAN_MATH_PRIM_FUN_INVERSE_HPP #define STAN_MATH_PRIM_FUN_INVERSE_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/Eigen.hpp> namespace stan { namespace math { /** * Returns the inverse of the specified matrix. * * @tparam T type of elements in the matr...
1,009
356
#include "../Shared.h" namespace UnitTests { namespace Arrays { TEST(ArrayCat, One) { const std::string innerCode = "@ = (((3 * 1).arrayCreate * 1 * 2).arraySet * 2 * 3).arraySet.(id * arrayCat).(print * ([-1] * 0 * 0).arraySet.print * print);"; const std::string expected = "[1, 2, 3]"; GeneralizedTes...
750
330
/* * Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt....
870
283
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #include "cbase.h" #include <vgui/ILocalize.h> #include "vgui_controls/TextEntry.h" #include "select_player_dialog.h" #include "tf_controls.h...
12,784
4,654
#include <cstdio> #include "AMReX_LevelBld.H" #include <AMReX_ParmParse.H> #include "Castro.H" #include "Castro_F.H" #ifdef AMREX_DIMENSION_AGNOSTIC #include "Castro_bc_fill_nd_F.H" #include "Castro_bc_fill_nd.H" #else #include "Castro_bc_fill_F.H" #include "Castro_bc_fill.H" #endif #include "Castro_generic_fill_F.H" ...
35,174
14,348
#include <windows.h> #define MAX_SPRITES 500 static char * sprites[MAX_SPRITES]; void add_sprite (int id, const char * sprite) { if ( id >= 0 && id < MAX_SPRITES ) sprites[id] = _strdup(sprite); } const char * sprite_lookup (int id) { if ( id >= 0 && id < MAX_SPRITES && sprites[id] ) return sprites[id]; e...
347
155
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; vector<int> p(n); for (int i = 0; i < n; i++) { cin >> p.at(i); } sort(p.begin(), p.end()); int ans = 0; for (int i = 0; i < k; i++) { ans += p.at(i); } cout << ans << endl...
324
143
/* File: osx_clipboard.cpp Author: Taylor Robbins Date: 10\07\2017 Description: ** Holds the functions that handle interfacing with the OSX clipboard #included from osx_main.cpp */ // +==============================+ // | OSX_CopyToClipboard | // +==============================+ // void OSX_CopyToClip...
1,057
391
void m() { fora (i = 0; 1; i++); }
35
21
#include "./utility/rt.h" int DIM_SIZE; int TILE_SIZE; void stencil_trace(int *a, int *b, unsigned int dim_size, unsigned int tile_size) { vector<int> idx; for (int i = 1; i < dim_size+1 ; i += tile_size) { for (int j = 1; j < dim_size+1; j += tile_size) { for (int i_til...
2,182
970
// // Copyright (c) 2015-2020 Microsoft Corporation and Contributors. // SPDX-License-Identifier: Apache-2.0 // #include "OfflineStorageHandler.hpp" #include "OfflineStorageFactory.hpp" #include "offline/MemoryStorage.hpp" #include "ILogManager.hpp" #include <algorithm> #include <numeric> #include <set> namespace M...
18,463
5,232
// OutputMaster example // By Andrés Cabrera mantaraya36@gmail.com // July 2018 #include <iostream> #include "al/app/al_App.hpp" #include "al/graphics/al_Shapes.hpp" // This example shows a simple input level meter using namespace al; struct MyApp : public App { float *meterValues; void onCreate() override { ...
1,357
526
#pragma once #ifndef BE_BLT_LUA_BLT_DEBUG_HPP_ #define BE_BLT_LUA_BLT_DEBUG_HPP_ #include <lua/lua.h> #include <lua/lauxlib.h> namespace be::belua { /////////////////////////////////////////////////////////////////////////////// int open_blt_debug(lua_State* L); extern const luaL_Reg blt_debug_module; } // be::bel...
331
131
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
3,133
1,341
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2011 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
2,822
770
#include "image_clip.h" #include <QGraphicsSceneMouseEvent> #include <QtWidgets/QGraphicsPixmapItem> #include <QtWidgets/QGraphicsRectItem> #include <iostream> ImageClip::ImageClip(QObject* parent) { cap = new cv::VideoCapture; bins = 64; lut = cv::Mat(1, bins*bins*bins, CV_8UC1, cv::Scalar(0)); std::cout <<l...
6,677
2,576
/* joystick_node.cpp * Copyright (C) 2021 SS47816 * ROS Node for controlling the vehicle using joysticks **/ #include <math.h> #include <ros/ros.h> #include <ros/console.h> #include <std_msgs/String.h> #include <sensor_msgs/Joy.h> #include <lgsvl_msgs/VehicleControlData.h> #include <lgsvl_msgs/VehicleStateData.h...
14,122
5,791
#pragma once #include "matrix.hpp" #include "max-or-inf.hpp" #include "global-greedy.hpp" #include "edge.hpp" #include "print-info.hpp" #include "k-opt.hpp" #include <unordered_set> #include <random> #include <iostream> #include <cmath> template<typename T> class Sigma_Male { public: Sigma_Male(uint32_t seed, double ...
3,156
1,349
/******************************************************************************* * Copyright (c) 2014, 2015 IBM Corporation and others * * 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 ...
2,920
883
// c:/Users/user/Documents/Programming/Music/Chou/OnKai/a.cpp #include "../../Header.hpp" #include "a_Body.hpp" #include "../../../Error/FaultInCoding/a.hpp" const PitchClass& OnKai::PitchClassTable( const KaiMei& num ) const noexcept { const PitchClass* p_Table[7] = { &m_I , &m_II ...
706
362
#include <string> #include <string.h> #include <memory> #include <cstdlib> #include "timer-test.hpp" /* TODO: This example is really dry, how can we make it awesome? Without making it so complicated that it fails to elucidate its point. */ using namespace blit; const uint16_t screen_width = 320; cons...
2,320
914
// Time: O(nlogn) // Space: O(n) class Solution { public: int minAbsoluteSumDiff(vector<int>& nums1, vector<int>& nums2) { static const int MOD = 1e9 + 7; vector<int> sorted_nums1(cbegin(nums1), cend(nums1)); sort(begin(sorted_nums1), end(sorted_nums1)); int result = 0, max_change...
983
355
#include <Core/Types.hpp> #include <Core/Utils/Attribs.hpp> #include <Core/Utils/Log.hpp> namespace Ra { namespace Core { namespace Utils { AttribBase::~AttribBase() { notify(); } template <> size_t Attrib<float>::getElementSize() const { return 1; } template <> size_t Attrib<double>::getElementSize() const...
2,258
736
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, 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 // //===---------------------------...
521
160
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2015 - ROLI Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL v3 Details of these ...
5,654
1,650
/* * Copyright 2009-2017 Alibaba Cloud 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...
3,155
983
#include <chrono> #include <regex> #include <fstream> #include <thread> #include <sstream> #include <iosfwd> #include <unistd.h> #include <rapidjson/document.h> #include <openssl/md5.h> #include "misc.h" #ifdef _WIN32 //#include <io.h> #include <windows.h> #include <winreg.h> #else #ifndef __hpux ...
15,877
6,356
#include <netwidgets.h> N::TldEditor:: TldEditor ( QWidget * parent , Plan * p ) : TreeWidget ( parent , p ) , NetworkManager ( p ) { WidgetClass ; Configure ( ) ; } N::TldEditor::~TldEditor(void) { } void N::TldEditor::Configure(voi...
3,129
897
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/ int main() { string operation; getline(cin, operation); int pseudo_random_number; ci...
1,264
482
 /* Copyright (c) 2009-present Maximus5 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 follo...
210,988
98,284
// System.Net.IPEndPoint.MaxPort; System.Net.IPEndPoint.MinPort; // System.Net.IPEndPoint.AddressFamily; System.Net.IPEndPoint.IPEndPoint(long,int) // System.Net.IPEndPoint.Address; System.Net.IPEndPoint.Port; /*This program demonstrates the properties 'MaxPort', 'MinPort','Address','Port' and 'AddressFamily' and a co...
4,968
1,586
// 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 "net/third_party/quiche/src/quic/tools/quic_toy_server.h" #include <utility> #include <vector> #include "net/third_party/quiche/src/quic/core/q...
3,091
1,003
#include <gtest/gtest.h> #include <vector> #include <spcppl/ranges/wrappers.hpp> #include <spcppl/ranges/Range.hpp> TEST(WrappersTest, Reversed) { EXPECT_EQ(reversed(std::vector<int>{5, 7, 2, 3}), (std::vector<int>{3, 2, 7, 5})); } TEST(WrappersTest, Sorted) { EXPECT_EQ(sorted(std::vector<int>{5, 7, 2, 3}), (std::v...
1,715
833
#pragma once #include <fc/variant.hpp> #include <fc/container/flat_fwd.hpp> #include <fc/container/container_detail.hpp> #include <fc/crypto/hex.hpp> namespace fc { namespace raw { template<typename Stream, typename T, typename A> void pack(Stream& s, const boost::container::vector<T, A>& value) { FC_ASSERT(value...
4,343
1,604
#include <string> using std::string; class Solution { public: char findTheDifference(const string s, const string t) { size_t dict_s[26] = {0}; size_t dict_t[26] = {0}; for (const char ch : s) ++dict_s[ch - 'a']; for (const char ch : t) ++dict_t[ch - 'a']; for (size_t i = 0; i < 26; ++i) ...
801
348
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018 www.open3d.org // // Permissio...
10,863
2,964
#ifndef LEXER_HPP #define LEXER_HPP #include "lexer/Token.hpp" #include "llvm/ADT/StringSwitch.h" #include <functional> #include <iterator> #include <memory> #include <optional> #include <string> #include <type_traits> template <class InputIterator> class Lexer : public std::iterator<std::input_iterator_tag, Token>...
4,708
1,372
// Copyright 2017 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 agreed to in...
7,593
2,703
#include "rein.h" void Rein::insert(IntervalSub sub) { for (int i = 0; i < sub.size; i++) { IntervalCnt cnt = sub.constraints.at(i); Combo c; c.val = cnt.lowValue; c.subID = sub.id; data[cnt.att][0][c.val / buckStep].push_back(c); c.val = cnt.highValue; ...
2,176
816
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the Licen...
4,835
1,479
/*============================================================================= Copyright (c) 2011-2017 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.tx...
1,977
726
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved #include "RouteSimulationAnimationExampleFactory.h" #include "RouteSimulationAnimationExample.h" #include "LocalAsyncTextureLoader.h" #include "RenderContext.h" #include "CollisionMeshResourceRepository.h" #include "MapModule.h" #include "TerrainModelModule.h" ...
2,660
707
#include <iostream> #include <stack> #include <cassert> #include <vector> #include <sstream> bool isdigit (char c) { return c >= '0' && c <= '9'; } int apply (char op, int x, int y) { switch (op) { case '+': return x+y; case '*': return x*y; default: assert (false); } retur...
5,084
1,789
/*++ Copyright (c) 2006 Microsoft Corporation Module Name: der.cpp Abstract: <abstract> Author: Leonardo de Moura (leonardo) 2008-01-27. Revision History: Christoph Wintersteiger, 2010-03-30: Added Destr. Multi-Equality Resolution --*/ #include "ast/rewriter/der.h" #include "ast/occurs.h" #incl...
12,432
4,349
#include <c10/util/Metaprogramming.h> #include <c10/util/TypeIndex.h> #include <gtest/gtest.h> using c10::string_view; using c10::util::get_fully_qualified_type_name; using c10::util::get_type_index; namespace { static_assert(get_type_index<int>() == get_type_index<int>(), ""); static_assert(get_type_index<float>() ...
7,254
2,616
// Copyright © 2017-2020 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #include "../interface/TWTestUtilities.h" #include <PPTrus...
997
430
/** * Copyright (c) 2016-2017 Los Alamos National Security, LLC * All rights reserved. * * Copyright (c) 2016 Stanford University * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * *...
7,112
2,316
/* ISC License Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link> 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 PR...
4,921
1,724
// // MemoryFuzzer.cpp // Clock Signal // // Created by Thomas Harte on 19/10/2016. // Copyright 2016 Thomas Harte. All rights reserved. // #include "MemoryFuzzer.hpp" #include <cstdlib> void Memory::Fuzz(uint8_t *buffer, std::size_t size) { unsigned int divider = (static_cast<unsigned int>(RAND_MAX) + 1) / 256...
608
265
// // FILE NAME: CIDMacroEng_SysInfoClass.cpp // // AUTHOR: Dean Roddey // // CREATED: 02/20/2003 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://...
5,172
1,625
/* Copyright (c) 2016-2020 Xavier Leclercq Released under the MIT License See https://github.com/Ishiko-cpp/Process/blob/master/LICENSE.txt */ #include "ChildProcessTests.h" #include "Ishiko/Process/ChildProcess.h" using namespace Ishiko; using namespace Ishiko::Process; using namespace Ishiko::Tests; Ch...
1,810
597
#include <jni.h> #include <string> #include <termios.h> #include <fcntl.h> #include <unistd.h> #include "include/SerialPort.h" #include "include/SerialPortLog.h" static speed_t getBaudRate(jint baud_rate) { switch (baud_rate) { case 0: return B0; case 50: return B50; ...
3,962
1,526
#include "stdhdr.h" #include "simveh.h" #include "digi.h" #include "object.h" #include "simbase.h" #include "airframe.h" #include "team.h" #include "aircrft.h" #include "sms.h" #define INIT_GUN_VEL 4500.0f //me123 changed from 3500.0F extern float SimLibLastMajorFrameTime; void DigitalBrain::GunsJinkCheck(void) { f...
10,476
3,951
#include "FileContainer.h" /** * * Class FileContainer: * * Member Variables: * std::string file_name; -> initialised in the constructor * std::vector<std::string> -> loaded from file file_name in the constructor. * * **/ // FileContainer::F...
16,978
4,349
/** \file * * $Date: 2008/04/10 16:36:41 $ * $Revision: 1.2 $ * \author Jim Pivarski - Texas A&M University */ #include "Alignment/MuonAlignment/interface/AlignableCSCRing.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" /// The constructor simply copies the vector of CSC Chambers and computes...
3,159
1,122
/* Implement a Queue (FIFO) using 2 Stacks (LIFO) Method 1 (By making enQueue operation costly): This method makes sure that oldest entered element is always at the top of stack 1, so that deQueue operation just pops from stack1. To put the element at top of stack1, stack2 is used. enQueue(q, x) 1) While stack1 i...
2,889
1,152
#include "il2cpp-config.h" #if !RUNTIME_TINY #include "NativeDelegateMethodCache.h" #include "os/Mutex.h" namespace il2cpp { namespace utils { baselib::ReentrantLock NativeDelegateMethodCache::m_CacheMutex; NativeDelegateMap NativeDelegateMethodCache::m_NativeDelegateMethods; const VmMethod* NativeDeleg...
989
296
// Copyright 2020 kkozlov #include <string> #include <iostream> #include "Form.h" Form::Form(std::string const &name, unsigned minGradeToSign, unsigned minGradeToExecute, std::string const &target) throw() : name_(name) , minGradeToSign_(minGradeToSign), minGradeToExecute_(...
2,192
782
/*============================================================================= Library: CTK Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the ...
5,722
1,890
#include "Application.h" #include <engine/core/util/PathUtil.h> #include <engine/core/main/Engine.h> #include <engine/core/render/base/Renderer.h> extern float iOSGetScreenWidth(); extern float iOSGetScreenHeight(); namespace Echo { Application::Application() { } Application::~Application() { } Applicati...
1,404
423
// Copyright (c) the JPEG XL 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 "jxl/encode.h" #include "gtest/gtest.h" #include "jxl/encode_cxx.h" #include "lib/extras/codec.h" #include "lib/jxl/dec_file.h" #includ...
24,581
9,282
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2017 Couchbase, 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 * * h...
17,015
4,895
/* Copyright (c) 2020, Ford Motor Company, Livio 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 notice, this list of conditions and ...
5,536
1,756
/* This file is part of cpp-ethereum. cpp-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. cpp-ethereum is distributed in the...
3,368
1,271
#include "../search/analysisdata.h" AnalysisData::AnalysisData() :move(Board::NULL_LOC), numVisits(0), playSelectionValue(0.0), lcb(0.0), radius(0.0), utility(0.0), resultUtility(0.0), scoreUtility(0.0), winLossValue(0.0), policyPrior(0.0), scoreMean(0.0), scoreStdev(0.0), lead(0....
5,877
2,234
/*************************************************************** * * Copyright (C) 1990-2011, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Yo...
9,665
3,830
/*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 3.1 Module * ------------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
46,926
19,058
/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
3,110
1,005
/* * sem.cpp * * Created on: Apr 21, 2017 * Author: Paul */ #include "sem.h" namespace xv6 { } /* namespace xv6 */
129
61