text
string
size
int64
token_count
int64
#ifndef Exception_785a62ec3213411cb4e442ee734c00cb #define Exception_785a62ec3213411cb4e442ee734c00cb #include <iostream> /** * @brief Abstract class providing genereal interface to exceptions * */ class Exception: public std::exception { public: /** * @brief Message that can be printed to th...
517
204
#include <vtkActor.h> #include <vtkCamera.h> #include <vtkElevationFilter.h> #include <vtkNamedColors.h> #include <vtkNew.h> #include <vtkParametricFunctionSource.h> #include <vtkParametricSuperEllipsoid.h> #include <vtkPointData.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkProjectSphereFilte...
2,982
1,081
// // SharedTex.cpp // Oscilloscope // // Created by Hansi on 27/06/19. // // #include "TexShare.h" #include "ofMain.h" #ifdef TARGET_OSX #include "ofxSyphon.h" class TexShareImpl{ public: ofxSyphonServer server; void setup(string name){ server.setName(name); } void update(ofTexture &tex){ server.publi...
898
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...
20,389
6,356
/* * Copyright (c) 2021 Huawei Device 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 applica...
4,872
1,541
#include <iostream> #include "pugixml.hpp" #include "string" #include "XMLParts.h" #include "XMLManager.h" using document = pugi::xml_document; using string = std::string; int main() { return 0; }
202
77
#include "mbqueue.h" void ModbusEventQueue::init() { _isEventInQueue = false; } bool ModbusEventQueue::postEvent(MBEventType eEvent) { _isEventInQueue = true; _queuedEvent = eEvent; return true; } bool ModbusEventQueue::getEvent(MBEventType* eEvent) { bool isEventHappened = false; if (_isEventInQueue) { *eEv...
423
166
/** * @file HelloWorld.cpp * Copyright 2011 Steven Batchelor * * 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...
1,778
652
#ifndef _IIR_FILTER_NODE_HPP_ #define _IIR_FILTER_NODE_HPP_ #include "common.hpp" class IIRFilterNode : public CommonNode { DECLARE_ES5_CLASS(IIRFilterNode, IIRFilterNode); public: ~IIRFilterNode(); explicit IIRFilterNode(const Napi::CallbackInfo &info); static void init(Napi::Env env, Napi::Object exports)...
738
301
// Author: Jordan Randleman -- LambdaCalc_SampleExec.cpp // => Demo File to Illustrate LambdaCalc.hpp's Capabilities #include <iostream> #include "LambdaCalc.hpp" /** * -:- NAMESPACE LambdaCalc LAMBDAS -:- * => ALL DATA IS IMMUTABLE (CONST) * => ALL LAMBDAS ARE CURRIED ( IE Add(ox1, ox2) => Add(ox1)(ox2)...
15,915
6,521
#include <string> #include "format.h" using std::string; using std::to_string; // TODO: Complete this helper function // INPUT: Long int measuring seconds // OUTPUT: HH:MM:SS // REMOVE: [[maybe_unused]] once you define the function string Format::ElapsedTime(long seconds) { int hour = seconds / 3600; int re...
503
181
#include "inou_rand.hpp" #include "main_api.hpp" class Inou_rand_api { protected: static void tolg(Eprp_var &var) { Inou_rand rand; for(const auto &l:var.dict) { rand.set(l.first,l.second); } std::vector<LGraph *> lgs = rand.tolg(); if (lgs.empty()) { Main_api::warn(fmt::format("i...
954
367
/* ** EPITECH PROJECT, 2020 ** B-CPP-501-STG-5-1-rtype-romuald1.soultan ** File description: ** ButtonSystem */ #ifndef BUTTONSYSTEM_HPP_ #define BUTTONSYSTEM_HPP_ #include "ASystem.hpp" #include "ECS.hpp" #include "AScene.hpp" #include "AGame.hpp" #include "ASystem.hpp" #include "ClickableComponent.hpp" #include "Sh...
3,127
865
/* * 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....
875
271
// // Created by xcy on 2020/10/5. // #include "IndexMaxHeap.h"
65
36
// Harrison McGuire // UE4 Version 4.20.2 // https://github.com/Harrison1/unrealcpp // https://severallevels.io // https://harrisonmcguire.com #include "MyCameraShake.h" // Helpful Links // http://api.unrealengine.com/INT/API/Runtime/Engine/Camera/UCameraShake/index.html // // Great explanation of camera shake values...
835
363
/* Copyright 2020 Marco Massarelli 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 writing, softwar...
10,188
3,485
#ifndef FALCON_MPL_PLACEHOLDERS_HPP #define FALCON_MPL_PLACEHOLDERS_HPP #include <falcon/mpl/arg.hpp> namespace falcon { namespace mpl { namespace placeholders { using _1 = arg<1>; using _2 = arg<2>; using _3 = arg<3>; using _4 = arg<4>; using _5 = arg<5>; using _6 = arg<6>; using _7 = arg<7>; using _8 = arg<8>; usi...
2,241
1,156
#include<mylib.h> namespace presieved_primes{ long32 presieve_base; long32 number_of_presieve_primes; long32 sum_of_presieve_primes; long32 small_primes[5] = {2, 3, 5, 7, 11}; int primes_initialized = 0; long* Sp; void init_presieve(int nbps) { switch (nbps) { case 2: presieve_base = 6; ...
2,998
1,169
/* This file is in the public domain */ #include <string> #include <opencl/filters.h> #include <opencl/square.h> #include <opencl/randpool.h> #include <opencl/x917.h> #if defined(OPENCL_EXT_ENTROPY_SRC_DEVRANDOM) #include <opencl/devrand.h> #endif #if defined(OPENCL_EXT_ENTROPY_SRC_PTHREAD) #include <opencl/pthr_e...
2,706
937
// // Menu World // // A sample program demonstrating the basics of using // the BMessage and BMessenger classes. // // Written by: Eric Shepherd // /* Copyright 1999, Be Incorporated. All Rights Reserved. This file may be used under the terms of the Be Sample Code License. */ #include <Application.h> #include <M...
8,657
3,490
#include <algorithm> #include <array> #include <cassert> #include <cstdint> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #include <sstream> #include <utility> using Registers = std::array<int64_t, 6>; struct Instruction { int opcode; ...
5,591
2,510
#include "cdCollisionWorld.h" /** void CollisionWorld::addObject(const CollidableObject & object) { m_pObjects.push_back(object); } void CollisionWorld::addCollide(const Collide & collide) { m_pCollide.push_back(collide); } void CollisionWorld::computeCollision() { bool value = false; Collide collide; for (int...
801
322
/*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
8,708
2,831
#ifndef LODTALK_COLLECTIONS_HPP_ #define LODTALK_COLLECTIONS_HPP_ #include <stddef.h> #include <string> #include "Lodtalk/Object.hpp" namespace Lodtalk { /** * Collection */ class LODTALK_VM_EXPORT Collection: public Object { public: static SpecialNativeClassFactory Factory; }; /** * SequenceableCollection ...
12,415
4,245
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; void printArr(vector<string> &v){ for(int i=0;i<v.size();i++){ cout<<v[i]<<endl; } } long long int f(vector<string> &v,string str){ for(int i=0;i<str.length();i++){ bool is=0; char c=str...
1,610
644
/**Copyright 2012, Rahul Garg and McGill University 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 o...
72,861
27,285
// Copyright (c) 2015-2016, tandasat. All rights reserved. // Use of this source code is governed by a MIT-style license that can be // found in the LICENSE file. // // This module implements an entry point of the driver. // #include "stdafx.h" #include "log_parser.h" #include "utility.h" ///////////////////////////...
1,840
550
#include "\x\keko\addons\interrogation\script_component.hpp"
61
23
#include "ZLIBCompressionLevel.h" BF::ZLIBCompressionLevel BF::ConvertCompressionLevel(unsigned char compressionLevel) { switch (compressionLevel) { case 0u: return BF::ZLIBCompressionLevel::Fastest; case 1u: return BF::ZLIBCompressionLevel::Fast; case 2u: ...
1,603
504
#include "Sennet-ZED/Conversion.hpp" sl::VIEW SennetToStereolabs(const Sennet::ZED::View& view) { switch (view) { case Sennet::ZED::View::Left: return sl::VIEW::LEFT; case Sennet::ZED::View::Right: return sl::VIEW::RIGHT; case Sennet::ZED::View::LeftGray: return sl::VIEW::LEFT_GRAY; case Sennet::ZED...
15,185
6,230
#include "Type.hpp"
19
8
#include<stdio.h> int main() { int n; scanf("%d",&n); getchar(); while (n--) { char a='0',b; while ((b=getchar())!='\n') { if (a!='0'&&a==' '&&b==' ') continue; a=b; printf("%c",a); } printf("\n"); } return 0; }
238
137
#include "KAI/KAI.h" #include "KAI/Translator/Token.h" #include "KAI/Translator/Lexer.h" KAI_BEGIN Token::Token(Type type, const Lexer &lexer, int ln, Slice slice) : type(type), lexer(&lexer), lineNumber(ln), slice(slice) { } char Token::operator[](int n) const { return lexer->input[slice.Start + n]; } std::stri...
2,353
891
//code to find all possible combinations of a given string #include <iostream> #include <bits/stdc++.h> using namespace std; void permut(string s, int i, int n) { // Recursion end case if (i == n) cout << s << " "; else { for (int j = i; j <= n; j++) { swap(s[i], ...
521
196
#ifndef _SNARKFRONT_HEX_DUMPER_HPP_ #define _SNARKFRONT_HEX_DUMPER_HPP_ #include <cstdint> #include <istream> #include <ostream> #include <vector> #include <cryptl/ASCII_Hex.hpp> #include <cryptl/DataPusher.hpp> namespace snarkfront { //////////////////////////////////////////////////////////////////////////////// ...
863
313
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2018 Ryo Suzuki // Copyright (c) 2016-2018 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "Fwd.hpp" namespace s...
1,278
673
// // Created by ay27 on 8/15/17. // #include <superneurons.h> using namespace std; using namespace SuperNeurons; int main(int argc, char** argv) { const int T = 100; const size_t MB = 1024*1024; double ts; double t1 = 0, t2 = 0; size_t size; //---------------------------------------------...
824
333
#include "Math.h" int main() { int a = 23, b=645, c=633; double x = 132.45, y = 43.546, z = 89.476; char *p, *q; p = new char[4]; q = new char[4]; strcpy(p, "qwer"); strcpy(q, "asdf"); cout << Math::Add(a,b) << "\n"; cout << Math::Add(a,b,c) << "\n"; cout << Math::Add(x,y) << "\...
563
283
#include <iostream> #include <string> #include <vector> #include <locale> #include <algorithm> #include <cmath> #include <unordered_map> #include <bitset> #include <climits> #include <queue> #include <stack> using namespace std; // GRAPH void dfs(vector<int> adj[], vector<bool> &vis, stack<int> &st, int ind){ vis...
1,492
594
#include "event_trigger_condition.h" cwin::events::trigger_condition::~trigger_condition() = default; cwin::events::trigger_condition::operator m_callback_type() const{ return get(); } cwin::events::trigger_condition::m_callback_type cwin::events::trigger_condition::get() const{ return nullptr; } cwin::events::ex...
1,532
507
/* CMSIS */ #include "CMSIS\Device\stm32f4xx.h" /* User */ #include "user\RCC.h" /******************************************************************************/ /* Private definitions ********************************************************/ /**************************************************************************...
3,347
1,087
// Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved. #include <ivp_physics.hxx> #include <ivu_vhash.hxx> #include <ivp_clustering_longrange.hxx> #include <ivp_clustering_lrange_hash.hxx> IVP_ov_tree_hash::~IVP_ov_tree_hash() { ; } int IVP_ov_tree_hash::node_to_index(IVP_OV_Node *node) { return ...
836
370
#include <stl/algorithm> #include <stl/hash_map> #include <stl/list> #include <stl/stack> #include <stl/string> #include <xtl/bind.h> #include <xtl/common_exceptions.h> #include <xtl/function.h> #include <xtl/intrusive_ptr.h> #include <xtl/iterator.h> #include <xtl/shared_ptr.h> #include <xtl/signal.h> ...
19,721
6,309
/* * Copyright (c) 2020 Valve Corporation * Copyright (c) 2020 LunarG, 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 * * Unl...
2,715
922
#include "loopPrivate.h" #include "async.h" #include "loop.h" // LoopPrivate::LoopPrivate() // : LoopPrivate(false) // { // isRunning_ = false; // } LoopPrivate::LoopPrivate(bool isDefault) { isRunning_ = false; if (isDefault) { loop_ = uv_default_loop(); } else { loop_ = new uv_loop_t(); ::uv_loop_init(l...
1,947
780
/* * solver.cpp * * Created on: 12-nov-2017 * Author: M. El-Kebir */ #include "solver.h" #include "stategraph.h" #include <iomanip> Solver::Solver(const ReadMatrix& R, int k, int nrSegments, double precisionBetaBin) : _R(R) , _k(k) , _nrSegments(nrSegments...
21,184
8,418
#pragma once #include "dataAnalysis/correlation.hpp" #include "dataAnalysis/smoothWithNeighbourAverages.hpp" #include "dataAnalysis/smoothWithNeighbourMedians.hpp"
170
60
class Solution { public: int networkDelayTime(vector<vector<int>>& times, int n, int k) { // 建立图 vector<vector<int>> ver(n+1, vector<int>()); vector<vector<int>> edge(n+1, vector<int>()); for (auto& e: times) { int x = e[0], y = e[1], z = e[2]; ver[x].push_bac...
1,271
460
/** * @file clean_shared_memory.cpp * @author Vincent Berenz * @license License BSD-3-Clause * @copyright Copyright (c) 2019, New York University and Max Planck * Gesellschaft. * @date 2019-05-22 * * @brief Clean the shared memory of the benchmark, the unnittests, ... */ #include <boost/interprocess/managed_s...
689
239
// Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty subsets whose sums are all equal. // Example 1: // Input: nums = [4, 3, 2, 3, 5, 2, 1], k = 4 // Output: True // Explanation: It's possible to divide it into 4 subsets (5), (1, 4), (2,3), (...
1,263
474
#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_receiver_sink_optimizer.h" #include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h" #include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h" namespace blink { RtcEncodedAudioReceiverSinkOp...
961
336
/*------------------------------------------------------------------------------ Copyright 2021 Garmin Ltd. or its subsidiaries. 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.apach...
3,463
1,027
/** * @note This file is part of Empirical, https://github.com/devosoft/Empirical * @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md * @date 2020 * * @file ascii_utils.hpp * @brief Tools for working with ascii output. * @note Status: ALPHA * */ #ifndef EMP_A...
2,473
875
#include "relative_path.h" #include <assert.h> #include <string> using std::string; string GetRelativePath(const char* path) { // Input is /absolute/path/below // convert to a relative path. assert(*path != 0); if (path[1] == 0) { // special-case / ? "" isn't a good relative path. return "./"; } ...
341
126
/* -------------------------------------------------------------------------- * * File CCSorting.cpp * Author Y.H Mun * * -------------------------------------------------------------------------- * * Copyright (c) 2010-2013 cocos2d-x.org * Copyright (c) 2010 San...
5,346
1,815
#include "riptide_teleop/ps3_controller.h" #define GRAVITY 9.81 // [m/s^2] #define WATER_DENSITY 1000 // [kg/m^3] bool IS_ATTITUDE_RESET = false; bool IS_DEPTH_RESET = false; int main(int argc, char **argv) { ros::init(argc, argv, "ps3_controller"); PS3Controller ps3; ps3.Loop(); } PS3Controller::PS3Con...
14,945
6,194
// Version information for the "UsageEnvironment" library // Copyright (c) 1996-2014 Live Networks, Inc. All rights reserved. #ifndef _USAGEENVIRONMENT_VERSION_HH #define _USAGEENVIRONMENT_VERSION_HH #define USAGEENVIRONMENT_LIBRARY_VERSION_STRING "2014.12.17" #define USAGEENVIRONMENT_LIBRARY_VERSION_INT 1418774400...
329
135
#include "stdafx.h" #include "CppUnitTest.h" #include <AI.h> #include <FSM.h> using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace Task2 { TEST_CLASS(UnitTest1) { public: //Test that the AI Starting State is Idle TEST_METHOD(StartState) { AI ai(false, 0, 0); Assert::AreEqual...
3,663
1,559
#include<stdio.h> #include<stdlib.h> int main(void){ char letra1, letra2; printf("Digite um caracter: "); scanf("%c", &letra1); while(letra1 != 'X') {printf("Digite um caracter: "); scanf(" %c", &letra1); } printf("Letra1: %c Letra2: %c\n", letra1, letra2); }
276
132
/* Copyright 2021 Wolfgang Schwotzer 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 copyr...
3,361
1,610
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include "caf/byte_span.hpp" #include "caf/detail/net_export.hpp" #include "...
1,645
465
/** * @file serialspi.cpp * */ /* Copyright (C) 2020-2021 by Arjan van Vught mailto:info@orangepi-dmx.nl * * 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, includin...
2,089
807
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "CorePrivatePCH.h" #include "LinuxPlatformRunnableThread.h" #include "EngineVersion.h" #include <spawn.h> #include <sys/wait.h> #include <sys/resource.h> #include <sys/ioctl.h> // ioctl #include <asm/ioctls.h> // FIONREAD #include "LinuxApplication....
32,278
12,581
#include "Shape/SvgShape.h" namespace laal { SvgShape::SvgShape() { } SvgShape::SvgShape(const std::string& fileName) { InitChildShapes(fileName); } SvgShape::~SvgShape() { for (Shape* shape : m_ChildShapes) { delete shape; } } void SvgShape::InitChildShapes(const std::string& fileName) { N...
4,545
2,178
// copyright (c) 2011 the leveldb authors. all rights reserved. // use of this source code is governed by a bsd-style license that can be // found in the license file. see the authors file for names of contributors. #include "db/version_edit.h" #include "util/testharness.h" namespace leveldb { static void testencode...
1,343
499
/* Copyright (C) 2015 Life Technologies Corporation, a part of Thermo Fisher Scientific, Inc. All Rights Reserved. */ //! @file LinearCalibrationModel.cpp //! @ingroup Calibration //! @brief LinearCalibrationModel. Algorithms for adjusting the predicted signal by homopolymer. //! @brief During model trainin...
62,323
21,124
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id$ This program is free software; you can redistribute it and/or modify it und...
6,837
2,159
// Copyright (c) 2019-2020 ydeagames // Released under the MIT license // https://github.com/ydeagames/3DShootingGame/blob/master/LICENSE // // Author: ${ydeagames} // Created: 2019-07-22 06:12:28 +0900 // Modified: 2020-01-17 11:44:41 +0900 #include "pch.h" #include "Rigidbody.h" #include "Collidable.h" #include <Fra...
4,490
1,916
// // Created by albert on 3/17/18. // #include "native-backend/parsing/TextProcessor.h" /*!\brief Finds the value specified as key in \c replacement_map in the \c input_string and replaces it with the value for the key.*/ void nvb::TextProcessor::process(std::string *input_string, std::unordered_map<std::string, std...
754
235
#include "CommonQueries.hpp" #include <algorithm> #include "magic_enum.hpp" #include <fmt/core.h> #include <fmt/format.h> std::string enquote(const std::string &text) { return fmt::format("`{}`", text); }; namespace CommonQueries { std::string dropTableIfExists(const std::string &tableName) { return fmt::forma...
1,234
362
#include <tuple> #include <catch2/catch.hpp> #include <slowmath/arithmetic.hpp> // TODO: add comprehensive tests for shift_left() // TODO: add comprehensive tests for shift_right()
186
62
#if defined(DM_PLATFORM_ANDROID) #include <dmsdk/sdk.h> #include "iapc.h" #include "iapc_private.h" #include <string.h> #include <stdlib.h> IAPCListener::IAPCListener() { IAPC_ClearCallback(this); } void IAPC_ClearCallback(IAPCListener* callback) { callback->m_L = 0; callback->m_Callback = LUA_NOREF; ...
4,644
1,873
/* * File: main.cpp * Author: peter * * Created on March 25, 2012, 1:36 AM */ #ifndef UTILS_H #define UTILS_H #include <cstdlib> #include <iostream> #include <iomanip> #include <math.h> using namespace std; DT& getDistance(DT* distances, int n, int i, int j) { #ifdef DIS1 return distances[i * n + j]; #e...
1,614
668
#include "Program.h" #include <glad/glad.h> #include <iostream> #include <glm/ext/matrix_float4x4.hpp> #include <glm/gtc/type_ptr.hpp> Program::Program(std::vector<Shader> shaders) { id = glCreateProgram(); std::vector<Shader>::iterator itt = shaders.begin(); do { glAttachShader(id, (*itt).id); itt++; } while ...
2,437
1,016
#include <gtest/gtest.h> #include <set> #include <vector> #include <common/iterator.h> namespace chainer_compiler { namespace { TEST(IteratorTest, Zip) { std::set<int> ints = {3, 4, 5}; std::vector<std::string> strs = {"a", "b", "c"}; std::vector<std::tuple<int, std::string>> results; for (const aut...
1,235
511
class Solution { public: const int MOD = (int) 1e9 + 7; int numWays(int steps, int n) { n = min(n,steps+1); vector<vector<int>> dp(steps+1,vector<int>(n,0)); dp[0][0] = 1; for( int s = 1 ; s <= steps ; s++ ) for( int i = 0 ; i < n ; i++ ) { dp[s][i] = ...
575
254
// RecordingTrackTerminal.cpp: implementation of the CRecordingTrackTerminal class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "RecordingTrackTerminal.h" #include "FileRecordingTerminal.h" #include "..\storage\RendPinFilter.h" #include <formats.h>...
46,255
16,536
// Copyright (c) 2005-2014 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema to // C++ data binding compiler. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Fre...
23,401
8,061
#pragma once #include <vector> #include <tuple> #include <map> #include <functional> #include <PluginSDK.h> #include "Singleton.hpp" #include "NetBridge.hpp" class Plugin : public Singleton<Plugin> { friend class Singleton<Plugin>; private: Plugin(); ~Plugin() = default; std::map<std::string, lua_Stat...
5,705
1,832
#pragma once #include <vulkan/vulkan.h> #include <vector> #include "utils.hpp" namespace my_vulkan { struct command_buffer_t { struct scope_t { scope_t( VkCommandBuffer command_buffer, VkCommandBufferUsageFlags flags ); scope_...
5,809
1,539
// // main.cpp // Implement Stack using Queues // /** Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. top() -- Get the top element. empty() -- Return whether the stack is empty. Example: MyStack stack = new My...
2,325
705
/** * @file src/core/main.cpp * @date nov. 2015 * @author PhRG / opticalp.fr * * Entry point for the Instrumentall software. * * Using POCO (pocoproject.org) Util Application feature. */ /* Copyright (c) 2015 Ph. Renaud-Goud / Opticalp Permission is hereby granted, free of charge, to any person obtaining a...
1,373
463
// @file nnpooling.hpp // @brief Pooling block // @author Andrea Vedaldi /* Copyright (C) 2014-16 Andrea Vedaldi and Karel Lenc. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #ifndef __vl__nnsimpooling__ #define __vl__...
762
261
// Fill out your copyright notice in the Description page of Project Settings. #include "Unit.h" #include "BattlePlayerPawn.h" // Sets default values ABattlePlayerPawn::ABattlePlayerPawn() { // Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActo...
2,142
772
#include <llvm/Support/raw_ostream.h> #include "reflection/attribs/GetAttribute.hpp" #include "reflection/Class.hpp" namespace tau { namespace reflection { namespace attribs { AttributeData GetPropertyAttribute::parseAttribute(const DynString& attribName, const ::clang::MacroArgs*, const ::clang::Token*& currentToken...
6,494
1,416
#include "TextureLayered.hpp" #include <core/GodotGlobal.hpp> #include <core/CoreTypes.hpp> #include <core/Ref.hpp> #include <core/Godot.hpp> #include "__icalls.hpp" #include "Image.hpp" namespace godot { TextureLayered::___method_bindings TextureLayered::___mb = {}; void TextureLayered::___init_method_bindin...
3,468
1,314
/** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top level of this repository. **/ /* SPDX-License-Identifier: CC0-1.0 ...
2,431
805
/* ------------------------------------------------------------------------------- Copyright (c) Charles Carley. This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is gran...
2,518
756
#if TFLITE_MICRO_RECORDER_ENABLED #include <cstring> #include <cassert> #include "mltk_tflite_micro_recorded_data.hpp" namespace mltk { static TfliteMicroRecordedData _recorded_data; /*************************************************************************************************/ TfliteMicroRecordedData& Tflit...
1,966
580
#include "TiltReceptor.hpp" #include <QDebug> TiltReceptor::TiltReceptor(QObject *parent) : Receptor(parent) { qDebug() << "TiltReceptor"; } TiltReceptor::~TiltReceptor() { qDebug() << "~TiltReceptor"; } void TiltReceptor::connectReceptor() { QObject::connect(&m_tiltSensor, SIGNAL(readingChanged()), thi...
954
354
#include "./native_io.hpp" #include "./syserror.hpp" using namespace btr; #if !_WIN32 #include <unistd.h> void posix_fd_traits::close(int fd) noexcept { ::close(fd); } std::size_t posix_fd_traits::write(int fd, const_buffer cbuf) { neo_assert(expects, fd != null_handle, "Attempte...
1,063
369
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:15 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.MulticastDelegate #include "System/MulticastDelegate....
3,081
992
/** * lowestindexbranchingscheme.cpp * * By Sebastian Raaphorst, 2003 - 2018. */ #include <map> #include <set> #include <sstream> #include <string> #include "common.h" #include "lowestindexbranchingscheme.h" #include "nibacexception.h" #include "node.h" namespace vorpal::nibac { int LowestIndexBranchingScheme...
2,650
671
#ifndef __HAZ_SOURCE_INF #define __HAZ_SOURCE_INF #include <haz/Tools/Macro.hpp> BEG_NAMESPACE_HAZ #define SOURCE_INFO_LIST __LINE__, __PRETTY_FUNCTION__, __FILE__ #define SOURCE_INFO ::haz::SourceInfo(SOURCE_INFO_LIST) struct SourceInfo { inline SourceInfo(unsigned int line, const char* func, const char* file)...
651
240
#pragma once #include <pins/interfaces/pin.hpp> class IOutputPin : virtual public IPin { public: virtual ~IOutputPin() = default; virtual void connect() = 0; };
171
60
/* * Copyright 2021 Assured Information Security, 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 a...
3,225
1,087
#include "../include/Collection.h" qtpexels::Collection::Collection(QObject* parent) : FetchableResource(parent) { } bool qtpexels::Collection::processJSON(const QJsonObject& jsonObject) { _id = jsonObject["id"].toString(); _title = jsonObject["title"].toString(); _description = jsonObject[...
1,342
456
#include "plane.h" Plane::Plane(Vec3f pos, Vec3f normal, int material_id) : pos(pos), normal(normal.normalized()), material_id(material_id){} __m256 Plane::intersect(Ray8 &ray, DiffGeom8 &dg) const { const auto vpos = Vec3f_8{pos}; const auto vnorm = Vec3f_8{normal}; const auto t = _mm256_div_ps((vpos - ray.o).dot(...
1,342
666
/* * Arduino board serial console port USB CDC ACM. * This adds to the generic CDC ACM class, Arduino board detection and * board reset. Works for Uno and Mega/Mega2560. Includes experimental * code for Leonardo(32u4) and Nano Every (4809) but they are not supported. */ /* * MIT License * * Copyright (c) 2019 ...
8,538
3,283