text
string
size
int64
token_count
int64
// We want to ensure that the "never instrument" attributes show up even if we // explicitly turn off XRay instrumentation. // /// -fno-xray-instrument is the default. It does not produce a CC1 option. // RUN: %clang_cc1 %s -std=c++11 -x c++ -emit-llvm -o - \ // RUN: -triple x86_64-unknown-linux-gnu | FileCheck %s ...
1,341
568
/* Given the root of a binary tree, calculate the vertical order traversal of the binary tree. For each node at position (row, col), its left and right children will be at positions (row + 1, col - 1) and (row + 1, col + 1) respectively. The root of the tree is at (0, 0). The vertical order traversal of a binary tree...
3,942
1,272
#include "test/include/Test.h" #include "http/HttpRequestParser.h" #include "logger/include/Logger.h" namespace Http { class RequestParserTest : public TestSet { public: RequestParserTest(); bool testOK(); bool testBrokenHeader(); bool testCuttedData(); }; TEST_SET_REGISTER(Http::RequestParserTest); RequestPars...
8,578
3,899
#ifndef CLOCKS_HPP #define CLOCKS_HPP #include <chrono> #include <iomanip> #include <ratio> #include <thread> #include <iostream> // http://www.modernescpp.com/index.php/the-three-clocks using namespace std::chrono_literals; namespace Time { void GetCurrentTime() { // Get time as time_point auto systemNow ...
2,715
893
#include <Robot.hpp> namespace ras { Robot::Robot(PinName front_sensor_pin, PinName right_sensor_pin, PinName left_sensor_pin) : serial_monitor_(USBTX, USBRX) , right_motor_(NULL) , left_motor_(NULL) , front_sensor_(front_sensor_pin) , left_sensor_(left_sensor_pin) , right_sensor_(right_sensor_...
3,231
1,220
#ifndef CPP_MOULD_CONSTEXPR_DRIVER_HPP #define CPP_MOULD_CONSTEXPR_DRIVER_HPP #include <tuple> #include "argument.hpp" #include "engine.hpp" #include "format.hpp" #include "format_info.hpp" namespace mould::internal::constexpr_driver { /* Resolved expression representation */ template<size_t N> struct Expression...
6,784
2,029
//////////////////////////////////////////////////////////////////////////// // Module : UIInventoryUpgradeWnd_add.cpp // Created : 08.11.2007 // Author : Evgeniy Sokolov // Description : inventory upgrade UI window (additional) class implementation /////////////////////////////////////////////////////////////...
5,462
2,388
// 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 "components/gcm_driver/gcm_client_impl.h" #include <stdint.h> #include <initializer_list> #include <memory> #include "base/callback_helpers.h"...
73,816
25,185
#include "randomizeicontooleffect.h" #include "iconmanager.h" #include "gameicon.h" #include <QList> #include <QDebug> #include "animationgroup.h" #include "Animation.h" #include "inversespiralfunction.h" #include "spiralfunction.h" #include "gameconfig.h" RandomizeIconToolEffect::RandomizeIconToolEffect(QObject *pare...
791
298
#include <FoundationTest/FoundationTestPCH.h> #include <Foundation/Configuration/Startup.h> #include <Foundation/IO/FileSystem/DataDirTypeFolder.h> #include <Foundation/Logging/ConsoleWriter.h> #include <Foundation/Logging/HTMLWriter.h> #include <Foundation/Logging/Log.h> #include <Foundation/Logging/VisualStudioWrite...
8,239
2,785
#include <array> #include <utility> #include <iostream> #include <cmath> #include <cstdint> #include "floaxie/atof.h" #include "floaxie/print.h" using namespace std; using namespace floaxie; namespace { const char* inf_str = "inf"; const char* inf_str_w = "0inf"; const char* pinf_str = "+inf"; const char* ninf_s...
2,021
863
/* * Copyright 2018 Google * * 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...
48,845
17,299
// Generated by Haxe 3.3.0 #include <hxcpp.h> #ifndef INCLUDED_Reflect #include <Reflect.h> #endif #ifndef INCLUDED_Std #include <Std.h> #endif #ifndef INCLUDED_openfl__legacy_events_Event #include <openfl/_legacy/events/Event.h> #endif namespace openfl{ namespace _legacy{ namespace events{ void Event_obj::__constru...
40,702
19,318
#ifndef MARKED_BLOCK_H #define MARKED_BLOCK_H #include "markedInstruction.hpp" #include <vector> class markedBlock { // markedCodeContainer basically does all the construction of this class by inserting instructions friend class markedCodeContainer; public: typedef std::vector<markedInstruction>::iterato...
445
128
/* The MIT License Copyright (c) 2017 Adrian Tan <atks@umich.edu> 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 us...
23,911
9,646
// MESSAGE FENCE_STATUS support class #pragma once namespace mavlink { namespace common { namespace msg { /** * @brief FENCE_STATUS message * * Status of geo-fencing. Sent in extended status stream when fencing enabled. */ struct FENCE_STATUS : mavlink::Message { static constexpr msgid_t MSG_ID = 162; st...
2,401
786
#include "Utils.hpp" #include "API/Globals.hpp" #include "API/CAppManager.hpp" #include "API/CServerExoApp.hpp" #include "API/CVirtualMachine.hpp" #include <sstream> namespace NWNXLib { namespace Utils { std::string ObjectIDToString(const API::Types::ObjectID id) { std::stringstream ss; ss << std::hex << id;...
727
268
#include "DebugToolbar.h" DebugToolbar::DebugToolbar(QToolBar* parent) : QToolBar(parent) { actionPtrVecPtr = new QVector<QAction*>(); initActions(); } void DebugToolbar::handleStartActPtrSlot() { cout << "@ DebugToolbar::handleStartActPtrSlot()" << endl; } void DebugToolbar::handleStop...
2,736
946
#include "dmzPluginUndo.h" #include <dmzRuntimeConfigToTypesBase.h> #include <dmzRuntimePluginFactoryLinkSymbol.h> #include <dmzRuntimePluginInfo.h> /*! \class dmz::PluginUndo \ingroup Foundation \brief Performs and undo or redo when a message is received. \details The default Message name to perform an undo is "Plug...
1,740
618
//---------------------------------------------------------------------------// // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.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 // // See http://kylelutz.gi...
6,189
2,317
/** Flex [Nimbly] * Version: 2.0 * * A dynamic contiguous data structure with a low dynamic allocation demand. * FlexArray, FlexQueue, and FlexStack all rely on these. * * Author(s): Jason C. McDonald, Michael Parkman, * Jonathan Theodore, Moshe Uminer */ /* LICENSE (BSD-3-Clause) * Copyright (c) 2...
22,952
8,155
//----------------------------------------------------------------------------- // Apr 2013 P.Murat: initialization of the MU2E STNTUPLE cluster block // //----------------------------------------------------------------------------- #include <cstdio> #include "TROOT.h" #include "TFolder.h" #include "TLorentzVector.h"...
9,648
3,495
// SPDX-License-Identifier: Apache-2.0 /** @file Errata unit tests. */ #include <memory> #include <errno.h> #include "swoc/Errata.h" #include "swoc/bwf_std.h" #include "swoc/swoc_file.h" #include "catch.hpp" using swoc::Errata; using swoc::Rv; using Severity = swoc::Errata::Severity; using namespace std::literal...
8,536
3,541
#pragma once #include "scalar.h" namespace algebra::arithmetic { template<typename T> inline matrix<T>& operator*=(matrix<T>& m, T scalar) { for (size_t i = 0U; i < m.columns(); ++i) { for (size_t j = 0U; j < m.rows(); ++j) { pixel id{i, j}; m[id] *= scalar; } } return m; } template<typename ...
549
214
#ifdef PEGASUS_OS_AIX #ifndef __UNIX_VLANSERVICE_PRIVATE_H #define __UNIX_VLANSERVICE_PRIVATE_H #endif #endif
116
64
#define BOOST_TEST_MODULE Controlling output #include <boost/test/included/unit_test.hpp> BOOST_AUTO_TEST_CASE(test_case) { BOOST_TEST(true); } BOOST_AUTO_TEST_SUITE(test_suite) BOOST_AUTO_TEST_CASE(test_case) { int a = 42; BOOST_TEST(a == 0); } BOOST_AUTO_TEST_SUITE_END()
289
131
// Copyright 2019 the deepx authors. // Author: Yafei Zhang (kimmyzhang@tencent.com) // #include "../op_test.h" namespace deepx_core { class BinaryElementWiseBackwardTest : public testing::Test {}; TEST_F(BinaryElementWiseBackwardTest, Add) { VariableNode X("X", Shape(2, 3), TENSOR_INITIALIZER_TYPE_RANDN, 0, 1); ...
1,542
728
#ifndef O2FS_OTWO_HPP #define O2FS_OTWO_HPP #include <windows.h> #include <vector> #include <unordered_map> #include <string> #include <O2FS/FileSystem.hpp> namespace O2FS { class OTwo { private: static std::vector<FileSystem*> systems; static std::unordered_map<HANDLE, std::string> fileC...
1,915
651
/*******************************************************************\ Module: measure and track the complexity of solver queries Author: Diffblue Ltd. \*******************************************************************/ #include "solver_hardness.h" #include <algorithm> #include <iomanip> #include <iostream> #inc...
10,490
3,745
// This file is part of the Cyclone 68000 Emulator // Copyright (c) 2004,2011 FinalDave (emudave (at) gmail.com) // Copyright (c) 2005-2011 Gražvydas "notaz" Ignotas (notasas (at) gmail.com) // This code is licensed under the GNU General Public License version 2.0 and the MAME License. // You can choose the license ...
17,380
8,862
/* * Copyright 2011 Matthias Fuchs * * 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...
4,280
1,182
#include <Hazel.h> #include <Hazel/Core/EntryPoint.h> #include "EditorLayer.h" extern "C" int g_UseCAPI = 0; namespace Hazel { class Hazelnut : public Application { public: Hazelnut() : Application("Hazelnut") { PushLayer(new EditorLayer()); } ~Hazelnut() { } }; Application* CreateApplicati...
359
162
#ifndef RBX_GLOBAL_LOCK_HPP #define RBX_GLOBAL_LOCK_HPP #include "util/thread.hpp" #include <sys/time.h> #include <stdint.h> namespace rubinius { class VM; class NativeMethodEnvironment; class SharedState; struct CallFrame; class GlobalLock { uint32_t locked_; uint32_t serial_; uint32_t requ...
1,194
423
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/codec/SkAndroidCodec.h" #include "include/codec/SkCodec.h" #include "include/core/SkBitmap.h" #include "include/core/SkColor.h" #include "include/core/SkColo...
7,407
2,451
/* * Copyright (c) 2017-2018, Intel Corporation * * 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, p...
27,494
9,994
#include "MutexLock.h" #include <assert.h> MutexLock::MutexLock() :isLocking_(false) { TINY_CHECK(!pthread_mutex_init(&mutex_, NULL)); } MutexLock::~MutexLock() { assert(isLocking()); TINY_CHECK(!pthread_mutex_destroy(&mutex_)); } void MutexLock::lock() { TINY_CHECK(!pthread_mutex_lock(&mutex_));...
639
288
#include <RendererCorePCH.h> #include <RendererCore/Pipeline/Passes/SimpleRenderPass.h> #include <RendererCore/Pipeline/View.h> #include <RendererCore/RenderContext/RenderContext.h> #include <RendererFoundation/Resources/RenderTargetView.h> #include <RendererFoundation/Resources/Texture.h> #include <RendererCore/Deb...
5,385
1,781
#include <bits/stdc++.h> using namespace std; using ll = long long; const ll inf = 2e18; struct Line { ll m, c; ll eval(ll x) { return m * x + c; } }; struct node { Line line; node *left = nullptr; node *right = nullptr; node(Line line) : line(line) {} void add_segment(Line nw, int l, int...
3,436
1,416
#include "megasampler.h" #include <capnp/serialize.h> #include <cinttypes> #include <cstdint> #include <iostream> #include <random> #include "pythonfuncs.h" #include "strengthen.capnp.h" MEGASampler::MEGASampler(std::string _input, std::string _output_dir, int _max_samples, double _max_time...
5,590
1,975
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/globals.h" #if defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME) #include...
2,296
744
#include "Interface.h" #include "YAFScene.h" #include "Application.h" #include <GL/glui.h> #define MOUSE_ROTATE_FACTOR 0 #define MOUSE_PAN_FACTOR 0 #define MOUSE_ZOOM_FACTOR 0 //#define MOUSE_ROTATE_FACTOR 0.5 //#define MOUSE_PAN_FACTOR 0.05 //#define MOUSE_ZOOM_FACTOR 0.5 #define CG_CGFcamera_AXIS_X 0 #define CG_CG...
10,885
3,935
// // // #include "bezierMk2.h" #include "Plotter.h" #include <iostream> #include <stdexcept> std::ostream &operator<< (std::ostream &s, point2d_t const &p) { s << p.to_string(); return s; } void plot_b6_UT() /* unit test */ { point2d_t p0 = point2d_t(10, 10); point2d_t p1 = point2d_t(0, 20); po...
2,527
1,144
/** * \file * * \brief Implementation of data types * * \copyright BSD License (see doc/COPYING or http://www.libelektra.org) * */ #ifndef ELEKTRA_TYPES_HPP #define ELEKTRA_TYPES_HPP #include <set> #include <map> #include <string> #include <sstream> #include <locale> #include <key.hpp> #include <keyset.hpp> #includ...
4,456
1,738
#include <iostream> #include "Magic.h" using namespace std; int main() { Magic::Magic magic; magic.createRenderWindow("",500,400, false); return 0; }
163
63
version https://git-lfs.github.com/spec/v1 oid sha256:771e89a5fdad79addce7ae43103632797345b0f6f2ab6ffc1fd4a3eab37409b7 size 228
128
86
#pragma once #include "inttypes.h" #include "node_editor.hpp" #include "redx/cpnames.hpp" //#include "System.hpp"
123
50
#include "Engine.h" #include <macgyver/Exception.h> #include <macgyver/PostgreSQLConnection.h> #include <macgyver/StringConversion.h> #include <spine/Reactor.h> #include <stdexcept> #include <utility> //#include <pqxx/pqxx> #include <stdexcept> namespace SmartMet { namespace Engine { namespace Authentication { const...
11,902
3,593
/************************************************************** * * 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...
3,338
1,355
#include <Eigen/Core> #include <Eigen/Dense> #include <assert.h> #include <errno.h> #include <fcntl.h> #include <iostream> #include <ros/ros.h> #include <sensor_msgs/Imu.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <sys/types.h> #include <termios.h> #include <time.h> #inc...
7,018
3,426
/** * Copyright 2019 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
18,764
6,992
/************************************************************************* * * REALM CONFIDENTIAL * __________________ * * [2011] - [2012] Realm Inc * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Realm Incorporated and its suppliers, * if any. The int...
4,696
1,634
/*============================================================================= 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.tx...
3,668
1,560
#include <QtPlugin> #include <QtWidgets/qmessagebox.h> #include "OpenGLWindow.h" // Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) #ifdef _WIN32 extern "C" __declspec(dllexport) #endif int main(int argc, char *argv[]) { QApplication a(argc, argv); OpenGLWindow w("flappy TRIANGLE"); a.setActiveWindow(&w); w...
352
141
// 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...
8,658
2,885
#include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<int, int>; using vi = vector<int>; using vii = vector<pii>; #define fi first #define se second #define sz(c) ((int)(c).size()) #define all(c) (c).begin(), (c).end() #define forn(i,m, n) for (int i = m, nnnn = (n); i < nnnn; ++i) #def...
1,624
668
/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH * * * ...
11,416
3,727
/* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docum...
2,829
939
/* * Copyright (c) 2008-2016, Integrity Project Ltd. 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 ...
5,562
1,781
// // Chooser.cpp // cocos2d // // Created by Francisco Sanchez on 2/11/21. // #include "Chooser.h" USING_NS_CC; bool Chooser::init() { auto numLabel = Label::createWithTTF("1", "Arcade.ttf", 96); numLabel->setTextColor(Color4B::WHITE); numLabel->enableOutline(Color4B::GRAY, 5); numLabel->setAlign...
2,038
737
// Copyright 2019 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/android/jni_android.h" #include "base/android/jni_string.h" #include "chrome/android/chrome_jni_headers/MediaCaptureDevicesDispatcherAndroi...
2,372
699
#include "catch.hpp" #include <boost/icl/interval.hpp> #include <boost/icl/interval_set.hpp> #include <boost/icl/separate_interval_set.hpp> #include <boost/optional.hpp> TEST_CASE("interval tests", "[boost]") { using namespace boost::icl; SECTION("closed intervals") { auto ival = interval<int>::closed(1, 3); ...
2,436
941
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Handle.hpp> #include <RED4ext/Scripting/Natives/Generated/AI/behavior/DriveTreeNodeDefinition.hpp> namespace RED4ext { namespace AI { struct ArgumentMapping; } namespace AI::beha...
1,293
422
#include <sstream> #include <string> static PyObject * cpp_format(PyObject *self, PyObject * args) { const char * name; unsigned age; if (!PyArg_ParseTuple(args, "sI", &name, &age)) { return NULL; } std::stringstream ss; ss << name << " is " << age << " years old."; std::string form...
448
151
#include <iostream> using namespace std; int main () { int nota; std::cout << "Digite a nota: "; std::cin >> nota; if (nota>=7) { printf("Aluno aprovado"); } else (nota<<7); { printf("Aluno reprovado"); } return 0; }
298
115
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2016, * TU Dortmund - Institute of Control Theory and Systems Engineering. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * m...
10,611
3,667
#include "fmod_alphabet_player.h" #include "fmod_errors.h" #include <iostream> #include <sstream> //########################################### Initialisation/Release functions AlphabetPlayer::AlphabetPlayer() { m_sound_files.reserve(MAX_ALPHABET); m_stereo_pos.reserve(MAX_ALPHABET); m_sound_times.reserve(...
14,560
5,214
#include<iostream> using namespace std; int main(){ int n; cin>>n; int start[n],end[n]; for(int i=0;i<n;i++) cin>>start[i]; for(int i=0;i<n;i++) cin>>end[i]; int count=1,finish=end[0]; cout<<count<<" "; for(int i=1;i<n;i++) if(start[i] >= finish){ cout<<i+1<<" "; // g...
467
180
#include "Calibration/EcalCalibAlgos/src/PhiSymmetryCalibration_step2_SM.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "CondFormats/EcalObjects/interface/EcalIntercalibConstants.h" #include "CondTools/Ecal/interface/EcalIntercalibConstantsX...
32,216
14,037
#include "../../../../../include/core/p_render/render_graph/resources/RenderResource.hpp" RenderResource::RenderResource(RenderResource::Type type, unsigned int index, const std::string &name) : _type(type), _index(index), _name(name) { } void RenderResource::addWritePass(unsigned int index) { _writePasses.inser...
614
193
#include "acpi.h" namespace ACPI{ void* FindTable(SDTHeader* sdtHeader, char* signature){ int entries = (sdtHeader->Length - sizeof(ACPI::SDTHeader)) / 8; for (int t = 0; t < entries; ++t) { ACPI::SDTHeader* newSDTHeader = (ACPI::SDTHeader*)*(uint64_t*)((uint64_t)sdtHeader + sizeof(ACP...
593
222
/* * @author Written By Bradley Grose * @date Completed On 9/9/2020 at 8:01PM * @summary This code must be able to take in 10 values and * fill an array with those values. Then it will run using * Bubble Sort in which it will sort it in increasing order. * Th...
3,838
1,201
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <string> #include "ngraph_reader_tests.hpp" TEST_F(NGraphReaderTests, ConvertBroadcastToTiles1) { std::string model = R"V0G0N( <net name="Network" version="10"> <layers> <layer id="14" name="data" type="Para...
25,315
8,254
// Copyright (c) 2021 Graphcore Ltd. All rights reserved. #include <popart/names.hpp> #include <popart/op/detach.hpp> #include <popart/popx/op/detachx.hpp> #include <popart/popx/opxmanager.hpp> namespace popart { namespace popx { DetachOpx::DetachOpx(popart::Op *op, popart::popx::Devicex *devicex) : popart::pop...
1,161
449
#include "ParticleSystem.h" #include "TimeTracker.h" #include "Random.h" #include "math\Math.h" #include "SFML/System/Clock.hpp" #include "Sandbox.h" sf::Clock tempClock = sf::Clock(); ParticleSystem::ParticleSystem(const unsigned int& aParticleCount) { myParticles.resize(aParticleCount); } void ParticleSystem::OnU...
2,736
1,087
// DDCPP/standard/bits/DD_find_max.hpp #ifndef DD_FIND_MAX_HPP_INCLUDED_ # define DD_FIND_MAX_HPP_INCLUDED_ 1 # include "DD_Iterator.hpp" # include "DD_Range.hpp" # include "DD_LessThan.hpp" DD_DETAIL_BEGIN_ template <typename UndirectionalIteratorT_, typename BinaryPredicateT_> UndirectionalIteratorT_ find_max( ...
1,764
728
#include "driver.h" #if EPINPUT_DRIVER == EPDRIVER_PPAPI #include "input_internal.h" // -------------------------------------------------------- // Author: Manu Evans, March 2015 void epInput_InitInternal() { } // -------------------------------------------------------- // Author: Manu Evans, March 2015 void epIn...
635
214
/*========================================================================= Library: iMSTK Copyright (c) Kitware, Inc. & Center for Modeling, Simulation, & Imaging in Medicine, Rensselaer Polytechnic Institute. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file e...
16,353
5,623
/*---------------------------------------------------------------------------*\ Copyright (C) 2011-2015 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it ...
4,710
1,461
#include <glm/gtc/epsilon.hpp> extern "C" { namespace bindings { struct TexelType4F { float content[4]; }; TexelType4F vec4ToTex4F(gli::vec4 raw) { TexelType4F value; value.content[0] = raw[0]; value.content[1] = raw[1]; value...
596
217
#include "concurrencpp.h" #include "../all_tests.h" #include "../test_utils/test_ready_result.h" #include "../test_utils/executor_shutdowner.h" #include "../../tester/tester.h" #include "../../helpers/assertions.h" #include "../../helpers/random.h" #include "../../helpers/object_observer.h" namespace concurrencpp::t...
9,871
4,077
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
38,879
16,855
/** * @file * * @brief * * @copyright Copyright (C) 2021. Full licence notice is in the LICENCE file. */ #pragma once #include "builder/Car.hpp" #include <cstdint> #include <string> namespace Builder { class CarBuilder { public: /*--- Constructors ---*/ CarBuilder(const CarBuilder& other) = delete; ...
873
290
// Generated by Haxe 4.0.0-preview.5 #include <hxcpp.h> #ifndef INCLUDED_zpp_nape_constraint_ZPP_Constraint #include <hxinc/zpp_nape/constraint/ZPP_Constraint.h> #endif #ifndef INCLUDED_zpp_nape_util_ZNPNode_ZPP_Constraint #include <hxinc/zpp_nape/util/ZNPNode_ZPP_Constraint.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_98...
8,353
3,937
/* Copyright (c) 2005-2021, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
4,331
1,432
/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2010, Jason Mora Saragih, all rights reserved. // // This file is part of FaceTracker. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following con...
11,264
3,804
#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { double n, sum, k; cin >> n; while (n != 0){ sum = sum + n; k++; cin >> n; } cout << setprecision(11) << fixed; cout << sum/k << endl; return 0; }
291
112
#include "master.hpp" namespace factor { void factor_vm::primitive_special_object() { fixnum n = untag_fixnum(ctx->peek()); ctx->replace(special_objects[n]); } void factor_vm::primitive_set_special_object() { fixnum n = untag_fixnum(ctx->pop()); cell value = ctx->pop(); special_objects[n] = value; } void ...
3,921
1,385
#include <iostream> #include "Database.h" using namespace std; using namespace Records; int main() { Database myDB; Employee& emp1 = myDB.addEmployee("Greg", "Willis"); emp1.fire(); Employee& emp2 = myDB.addEmployee("Marc", "Gregoire"); emp2.setSalary(100000); Employee& emp3 = myDB.addEmployee("John", "Doe"); e...
595
223
#include <iostream> #include <tuple> #include <vector> #include "fmt/format.h" #include "graph/graph.hpp" #include "Data.hpp" #include "cereal/archives/binary.hpp" #include "cereal/archives/json.hpp" #include "cereal/archives/portable_binary.hpp" #include "cereal/archives/xml.hpp" #include "cereal/types/array.hpp" #...
4,167
1,526
//===----------------------------------------------------------------------===// // DuckDB // // planner/operator/logical_filter.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/planner/logical_operator.hpp" namespace duc...
884
244
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef KAGOME_NETWORK_GRANDPATRANSMITTER #define KAGOME_NETWORK_GRANDPATRANSMITTER #include <libp2p/peer/peer_id.hpp> #include "network/types/grandpa_message.hpp" namespace kagome::network { /** * Send/broadc...
1,006
364
/* BugEngine <bugengine.devel@gmail.com> see LICENSE for detail */ #ifndef BE_INPUT_CONTROLLERS_WINCONTROL_HH_ #define BE_INPUT_CONTROLLERS_WINCONTROL_HH_ /**************************************************************************************************/ #include <bugengine/plugin.input.input/stdafx.h> #include <b...
676
189
/****************************************************************************** * * Copyright (C) 2009-2012 Broadcom 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: * ...
5,251
1,786
// 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/predictors/resource_prefetch_predictor.h" #include <iostream> #include <memory> #include <utility> #include "base/memory/ptr_ut...
72,093
23,498
#include <iostream> #include <type_traits> #include <vector> #define NDEBUG template <bool a_0> int reversed_binary_value() { #ifndef NDEBUG std::cout << __PRETTY_FUNCTION__ << ": " << a_0 << std::endl; #endif return a_0; } template <bool a_n_minus_1, bool a_n_minus_2, bool... digits> int reversed_binary_value()...
1,115
475
#include "Board.h" chess::Board::Board() { char line_0[8] = { 'R','N','B','K','Q','B','N','R' }; char line_1[8] = { 'P', 'P', 'P', 'P', 'P', 'P', 'P', 'P'}; char line_2[8] = { ' ',' ',' ',' ',' ',' ',' ',' ' }; char line_3[8] = { ' ',' ',' ',' ',' ',' ',' ',' ' }; char line_4[8] = { ' ',' ',' ',' ',' ',...
11,267
6,199
#include "osqp.h" #include "util.h" #include "algebra_vector.h" /************************************ * Printing Constants to set Layout * ************************************/ #ifdef PRINTING # define HEADER_LINE_LEN 65 #endif /* ifdef PRINTING */ /********************** * Utility Functions * *********************...
11,688
4,830
/* * 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 ...
12,372
4,271
//============================================================================ // İsim : 18_List_Kullanımı // Yazan : Mert AceL // Version : 1.0 // Copyright : AceL // Açıklama : Listelere Giriş //============================================================================ #include <iostream> #inc...
880
324
#include "../my_time.h" #include <iostream> int main() { auto start = my::time::epoch_milliseconds_now(); my::time::sleepForMilliseconds(1000); auto end = my::time::epoch_milliseconds_now(); std::cout << "Elapsed time: " << (end-start) << std::endl; }
271
102