text
string
size
int64
token_count
int64
#include "PSpriteManager.h" PSpriteManager::~PSpriteManager() { } PSpriteManager::PSpriteManager() : kDamageFontLifetime(1.2f), kDamageFontGap(35.0f) { dmg_font_index_ = 0; } bool PSpriteManager::Init() { need_load_character_sprite_data_ = true; need_load_UI_sprite_data_ = true; need_load_map_sprite_data_ = tru...
5,718
2,539
/* BitwiseDevice.cpp */ //================================================================================ // BOOST SOFTWARE LICENSE // // Copyright 2020 BitWise Laboratories Inc. // Author.......Jim Waschura // Contact......info@bitwiselabs.com // //Permission is hereby granted, free of charge, to any person or organi...
16,072
5,838
#include <hxcpp.h> #ifndef INCLUDED_LuaSprite #include <LuaSprite.h> #endif #ifndef INCLUDED_flixel_FlxBasic #include <flixel/FlxBasic.h> #endif #ifndef INCLUDED_flixel_FlxObject #include <flixel/FlxObject.h> #endif #ifndef INCLUDED_flixel_FlxSprite #include <flixel/FlxSprite.h> #endif #ifndef INCLUDED_flixel_util_IFl...
4,483
2,126
#include <bits/stdc++.h> using namespace std; void solve() { string str; cin>>str; int countKick = 0; int TeamACount = 0; int TeamAMiss = 0; int TeamBCount = 0; int TeamBMiss = 0; for(int i=0;i<str.length();i++) { if(str[i]!='?') countKick++; ...
2,037
653
/** * Copyright 2020 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...
1,676
589
//-------------------------------------------------------------------------------------- // GameChatManager.cpp // // Advanced Technology Group (ATG) // Copyright (C) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------- #include "pc...
17,669
5,454
#include "rocketmodel.hpp" #include "external/json.h" #include <stdexcept> #include <gtest/gtest.h> using nlohmann::json; using boost::units::si::meters; using boost::units::si::kilograms; using boost::units::si::kilograms; using boost::units::si::newtons; using boost::units::si::seconds; TEST(TestRocketModel, Te...
5,353
2,141
/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkQuadEdgeMeshDeletePointAndReorderIDsTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserve...
2,863
1,163
/* * Copyright (C) 2013 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...
1,983
784
#include <Parsers/IParserBase.h> #include <Parsers/ParserSetQuery.h> #include <Parsers/ASTExpressionList.h> #include <Parsers/ASTSelectWithUnionQuery.h> #include <Parsers/Kusto/ParserKQLQuery.h> #include <Parsers/Kusto/ParserKQLStatement.h> #include <Parsers/Kusto/KustoFunctions/KQLFunctionFactory.h> namespace DB { bo...
1,674
590
/* * Warhammer Age of Sigmar battle simulator. * * Copyright (C) 2019 by Rick Weyrauch - rpweyrauch@gmail.com * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #include <wanderers/WildwoodRangers.h> #include <UnitFactory.h> namespace Wanderers { static const int g...
4,051
1,287
/************************************************************************************ * EMStudio - Open Source ECU tuning software * * Copyright (C) 2020 Michael Carpenter (malcom2073@gmail.com) * * ...
6,679
3,165
#include "font.hpp" #include "game.hpp" #include "meta.hpp" #include "inugami/texture.hpp" using namespace Inugami; Font::Font(const Texture& img, int tw, int th, float cx, float cy) : Spritesheet(img, tw, th, cx, cy) , tileW(tw/8) , tileH(th/8) , centerX(1.f-cx) , centerY(1.f-cy) {} Font::Font...
1,637
675
/* THIS FILE IS A PART OF GTA V SCRIPT HOOK SDK http://dev-c.com (C) Alexander Blade 2015 */ #include "utils.h" #include "script.h" #include <windows.h> extern "C" IMAGE_DOS_HEADER __ImageBase; // MSVC specific, with other compilers use HMODULE from DllMain std::string cachedModulePath; std::string GetCurren...
1,864
836
#pragma once #include <condition_variable> #include <mutex> // Inspired by C++20's std::counting_semaphore // Not available in any compiler on 15.05.2020 // Meets C++ BasicLockable requirements class CountingMutex { public: explicit CountingMutex(int max); void lock(); void unlock(); private: int c...
406
143
#ifndef CUKE_DEPRECATED_DEFS_HPP_ #define CUKE_DEPRECATED_DEFS_HPP_ // ************************************************************************** // // ************** USING_CONTEXT ************** // // ************************************************************************** // #defin...
426
130
// Authors: Jorge. A Navas, Peter Schachte, Harald Sondergaard, and // Peter J. Stuckey. // The University of Melbourne 2012. ////////////////////////////////////////////////////////////////////////////// /// \file FixpointSSI.cpp /// Iterative Forward Abstract Interpreter /////////////////////////////...
71,997
24,602
#pragma once #include "m4c0/fuji/main_loop.hpp" #include "m4c0/log.hpp" #include "m4c0/vulkan/surface.hpp" #include <thread> namespace m4c0::fuji { /// \brief Convenience for running a main_loop in a different thread template<class MainLoopTp> class main_loop_thread { MainLoopTp m_loop; std::thread m_t...
749
278
/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /** * @file IasLocalVideoBuffer.hpp * @brief This class contains all methods to access the ring buffers * @details Each local Video stream handles its data via a * separate ring buffer. * ...
5,652
1,987
#include <boost/algorithm/string/join.hpp> #include <boost/format.hpp> #include <flexcore/extended/base_node.hpp> #include <flexcore/extended/visualization/visualization.hpp> #include <stack> namespace fc { static forest_t::iterator find_self(forest_t& forest, const tree_node& node) { auto node_id = node.graph_info...
2,963
1,122
#include<bits/stdc++.h> using namespace std; mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count()); struct Kuhn { int n; vector<vector<int>> g; vector<int> l, r; vector<bool> vis; Kuhn(int _n, int _m) { n = _n; g.resize(n + 1); vis.resize(n + 1, false); l.resize(n + 1, -1); r.resize(_m + 1, -1);...
1,944
1,117
#include <gtest/gtest.h> #include <string.h> TEST(string, strstr) { char s[] = "abcabcabcdabcde"; EXPECT_EQ(NULL, strstr(s, "x")); EXPECT_EQ(NULL, strstr(s, "xyz")); EXPECT_EQ(&s[0], strstr(s, "a")); EXPECT_EQ(&s[0], strstr(s, "abc")); EXPECT_EQ(&s[6], strstr(s, "abcd")); EXPECT_EQ(&s[10], ...
343
167
/* * Copyright 2021 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "modules/skottie/src/effects/Effects.h" #include "modules/skottie/src/Adapter.h" #include "modules/skottie/src/SkottieValue.h" #include "modules/sksg/include/SkSGPai...
2,385
684
/************************************************************************** * * * File : smalldense.c * * Programmers : Scott D. Cohen and Alan C. Hindmarsh @ LLNL * * Version of ...
8,712
3,347
/* * File: getLocation.cpp * Project: nodemcu-clock * Created Date: 05.09.2021 14:16:00 * Author: 3urobeat * * Last Modified: 30.12.2021 22:24:01 * Modified By: 3urobeat * * Copyright (c) 2021 3urobeat <https://github.com/HerrEurobeat> * * Licensed under the MIT license: https://opensource.org/licenses/MI...
2,187
764
#ifndef GBAXX_DISPLAY_BACKGROUND_CONTROL_HPP #define GBAXX_DISPLAY_BACKGROUND_CONTROL_HPP #include <gba/types/color.hpp> #include <gba/types/int_type.hpp> #include <gba/types/screen_size.hpp> namespace gba { enum class affine_background_wrap : bool { transparent = false, wrap = true, clamp = false, r...
794
309
#include <iostream> #include <tr1/memory> using std::tr1::shared_ptr; using std::tr1::enable_shared_from_this; struct Arg { virtual int run() = 0; virtual ~Arg() { }; }; int A(int, shared_ptr<Arg>, shared_ptr<Arg>, shared_ptr<Arg>, shared_ptr<Arg>, shared_ptr<Arg>); class B : public Arg, public enable_shar...
1,294
542
/** * Copyright 2016, Quickstep Research Group, Computer Sciences Department, * University of Wisconsin—Madison. * * 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 * * ...
7,608
2,268
#include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <algorithm> using namespace std; int T, K; struct Fraction { long long x; long long y; Fraction(long long __x = 0, long long __y = 1) { x = __x; y = __y; } }; int main() { int t; long long d; Fraction l, r, mid, ans; scan...
964
541
#include "rutil/Logger.hxx" #include "rutil/ParseBuffer.hxx" #include "rutil/Lock.hxx" #include "resip/stack/SipMessage.hxx" #include "repro/SiloStore.hxx" #include "rutil/WinLeakCheck.hxx" using namespace resip; using namespace repro; using namespace std; #define RESIPROCATE_SUBSYSTEM Subsystem::REPRO SiloStore...
4,011
1,357
#ifndef STAN_MATH_PRIM_PROB_DISCRETE_RANGE_RNG_HPP #define STAN_MATH_PRIM_PROB_DISCRETE_RANGE_RNG_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/max_size.hpp> #include <stan/math/prim/fun/scalar_seq_view.hpp> #include <boost/random/uniform_int_distribution.hpp> #i...
2,251
742
/* $Id: zenbutools.cpp,v 1.20 2015/11/13 09:03:34 severin Exp $ */ /**** NAME zdxtools - DESCRIPTION of Object DESCRIPTION zdxtools is a ZENBU system command line tool to access and process data both remotely on ZENBU federation servers and locally with ZDX file databases. The API is designed to both ena...
17,993
6,395
//==========================================================================// // Copyright Elhoussine Mehnik (ue4resources@gmail.com). All Rights Reserved. //================== http://unrealengineresources.com/ =====================// #include "VectorMeshComponentVisualizer.h" #include "VectorMeshComponent.h" #includ...
5,841
2,107
#pragma once #include <PP/get_type.hpp> #include <PP/partial_.hpp> #include <PP/view/for_each.hpp> namespace PP::detail::functors { PP_CIA destroy_helper = [](auto&& x) { using T = PP_GT(~PP_DT(x)); x.~T(); }; } namespace PP::view { PP_CIA destroy = for_each * detail::functors::destroy_helper; }
307
128
#include "Shader.hpp" #include <glm/gtc/type_ptr.hpp> #include <fstream> #include <sstream> #include <stdexcept> namespace { void compile_glsl(const std::string& filename, GLuint shader) { std::ifstream ifs(filename); if (!ifs) { throw std::runtime_error("compile_glsl(): unable to open " + filename); } ...
2,393
898
/* Sereja and Dima play a game. The rules of the game are very simple. The players have n cards in a row. Each card contains a number, all numbers on the cards are distinct. The players take turns, Sereja moves first. During his turn a player can take one card: either the leftmost card in a row, or the rightmost one. ...
1,395
448
#pragma once #include <cinttypes> #include <cstddef> namespace perq { struct NoPrefix { using Type = uint8_t; }; namespace internal { template <typename T> struct PrefixSize { static constexpr size_t size = sizeof(T); }; template <> struct PrefixSize<NoPrefix> { static constexpr size_t size = 0; }; } }
316
113
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "SimContactsImportWindow.hpp" #include <application-settings/windows/WindowNames.hpp> #include <InputEvent.hpp> #include <service-appmgr/Controller.hpp> namespace gui { ...
7,550
2,167
#ifndef ZAX_STRINGCAT_HPP #define ZAX_STRINGCAT_HPP #include <string> #include <string_view> #include <charconv> #include "unicode.hpp" namespace zax { // class AlphaNum { static constexpr const int suggest_size = 32; public: AlphaNum(bool x) { piece_ = x ? "true" : "false"; // true or false } AlphaNum(in...
1,925
725
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : Marc Pierrot Deseilligny Contributors : Gregoire Maille...
46,972
19,001
namespace bug256281 { typedef __sun_va_list __builtin_va_list; }
67
30
#include<bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); set<int>s; int n; cin>>n; for(int i=0;i<n;i++){ int k; cin>>k; s.insert(k); } int a=n-s.size()+1; int b=n-a+1; cout<<a<<" "<<b<<"\n";...
340
152
#include "networkManager.h" #include "RakPeer.h" #include <map> #include "../SharedDefines/easylogging++.h" #include "../SharedDefines/packetsIds.h" #include "playerConnectionState.h" #include "receiveFootSync.h" #include "receiveClientCredentials.h" #include "sendClientRequestedData.h" #include "vehicleSyncDeclaratio...
6,097
2,337
#include <BaseApp.h> int main(int /*argc*/, char ** /*argv*/) { BaseApp app; ProgramObject program; auto mainWindow = app.getMainWindow(); std::string prefix = app.getResourceDir() + "Shaders/Examples/e06_ModelLoader/"; PerspectiveCamera cam; OrbitManipulator manipulator(&cam); manipulator.setupCallbacks(ap...
1,266
538
/* *** ODSATag: Largest *** */ /** Return position of largest value in integer array A */ int largest(int A[], int size) { int currlarge = 0; // Position of largest element seen for (int i=1; i<size; i++) // For each element if (A[currlarge] < A[i]) // if A[i] is larger currlarge = ...
459
138
/// /// @file alias.cpp /// @brief Alias service for aliasing URLs to file storage. /// @overview This module supports the alias directives and mapping /// URLs to physical locations. It also performs redirections. // ////////////////////////////////// Copyright /////////////////////////////////// // // @copy defau...
3,081
879
#include "stdafx.h" #include <iostream> #include "SerialPort.h" #include <stdio.h> #include <string.h> #include <sstream> #include <assert.h> #include <vector> using namespace std; char* portName = "\\\\.\\COM3"; #define MAX_DATA_LENGTH 255 char incomingData[MAX_DATA_LENGTH]; //Control signals for turning on and t...
2,309
872
#include "resources/Material.hpp" #include "core/LogicalDevice.hpp" #include "command/TransferPool.hpp" #include "resource/DescriptorSetLayout.hpp" #include "resource/DescriptorSet.hpp" #include "resource/Buffer.hpp" using namespace vpr; namespace vpsk { Material::Material(Material&& other) noexcept : ambient(st...
3,356
1,063
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/ssm/model/SessionFilter.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace S...
1,359
493
//************************************************************************************************** // // OSSIM Open Source Geospatial Data Processing Library // See top level LICENSE.txt file for license information // //*****************************************************************************************...
5,987
1,998
/** * @brief 視錐台クラス */ #include "View/Frustum.h" #include <boost/assert.hpp> #include <glm/gtc/constants.hpp> #include <glm/gtc/matrix_transform.hpp> #include <iostream> #include <vector> void Frustum::SetupPerspective(float fovy, float aspectRatio, float near, float far) { fovy_ =...
2,082
929
/* The Forgotten Client Copyright (C) 2020 Saiyans King 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 granted to anyone to use this software for any purpose, in...
22,028
9,732
#include <iostream> #include <algorithm> #include <string> #include <cstdio> using namespace std; struct data { int a; int b; int c; int all; int num; }; int cmp1(data a, data b) { return a.all < b.all; } void _swap(data *a, data *b) { data tmp; tmp = *a; *a = *b; *b = tmp; } void com(data *a, data *b...
1,088
509
#pragma once #include <iosfwd> #include <memory> #include <string> #include <unordered_map> #include <vector> #include "../Context.hpp" #include "../HasPtrAlias.hpp" #include "../Values/Value.hpp" #include "../Variable.hpp" #include "Type.hpp" #include "TypeProvider.hpp" namespace Kyra { class TypeContext : public Co...
754
258
#include "prob_quadratico_cp.h" //#include "traj_planner.h" using namespace std; PROB_QUAD_CP::PROB_QUAD_CP(){ }; void PROB_QUAD_CP::CalcoloProbOttimoCP(VectorXd &b, Matrix<double,18,18> &M, Matrix<double,24,18> &Jc, Matrix<double,24,1> &Jcdqd, Matrix<double,18,18> &T, Matrix<double,18,18> &T_dot,Matrix<double, 1...
10,320
5,472
// Fill out your copyright notice in the Description page of Project Settings. #include "KiruroboMocapPlugin.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, KiruroboMocapPlugin, "KiruroboMocapPlugin" );
220
79
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //+----------------------------------------------------------------------------- // // // $TAG ENGR // $Mod...
24,208
7,409
#include <C:\git\RunProject\RunProject\myHeader.h> #include <string> #include <algorithm> // std::transform using namespace std; bool StringUtil::isPalindrome(string input){ // Make the string lowercase to compare it std::transform(input.begin(), input.end(), input.begin(), ::tolower); // Store the length of th...
1,051
328
#ifndef TAIWANSE_HPP #define TAIWANSE_HPP #ifdef QT_CORE_LIB #include <QtCore> #endif #ifdef QT_GUI_LIB #include <QtGui> #endif #ifdef QT_NETWORK_LIB #include <QtNetwork> #endif #ifdef QT_SQL_LIB #include <QtSql> #endif #include "nFixEngine.hpp" class TaiwanApplication : public FixApplication { public: exp...
1,007
367
#include "Environment/PytorchEnvironment.h" PytorchEnvironment::PytorchEnvironment(torch::Device device):device(device){ } void PytorchEnvironment::to(torch::Device dev){ device = dev; } int PytorchEnvironment::getObservationSize(){ return observationSize; } int PytorchEnvironment::getActionSize(){ return actio...
330
106
/* * Recorder.hpp * * Created on: 14.04.2017 * Author: adivek */ #ifndef HEADERS_RECORDER_HPP_ #define HEADERS_RECORDER_HPP_ #include "../Definitions/glo_def.hpp" #include "../Definitions/glo_inc.hpp" #include <SFML/Config.hpp> class Recorder : public sf::SoundBufferRecorder { public: Recorder(); void r...
387
168
#include <ros/console.h> #include <ros/time.h> #include <cassert> #include <fstream> #include <map> #include <memory> #include <numeric> #include <stdexcept> #include <string> #include <utility> #include <vector> #include "nlohmann/json.hpp" #include "proseco_planning/action/action.h" #include "proseco_planning/actio...
17,097
5,278
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "IMessagingRpcModule.h" #include "Modules/ModuleManager.h" #include "MessageRpcClient.h" #include "MessageRpcServer.h" /** * Implements the MessagingRpc module. */ class FMessagingRpcModule : public IMessagingRpcModule { public: //~ IMessagin...
842
298
#include <iostream> #include "Hannah.h" using namespace std; Hannah::Hannah(int num) : h(num) { } void Hannah::printStuff() { //Method #1 //Private Variable: Implided cout << "h = " << h << endl; //Method #2 //Explicit: access the member variable of the current object //being pointe...
551
186
/* GsTL: the Geostatistics Template Library * * Author: Nicolas Remy * Copyright (c) 2000 The Board of Trustees of the Leland Stanford Junior University * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following c...
2,264
777
#include <strDecode.h> #define LOG_TAG " [STR_DECODE] " #define LOGLINE_STR_INT(s,i) std::cout<<LOG_TAG<<s<<" "<<i<<std::endl #define LOGLINE_STR_INT_STR_STR(s1,i1,s2,s3) std::cout<<LOG_TAG<<s1<<" "<<i1<<s2<<" "<<s3<<std::endl void decode_str_by_lines(std::vector <std::string> & lines_str,std::string string_raw) { ...
1,903
765
#include "SGLibExceptions.hpp" namespace SGLib{ const char* invalid_fastx::what() const noexcept { return "The given input stream does not follow the supposed convention!"; } const char* fastx_end::what() const noexcept { return "The fast* file is finished, no more records in it"; } }//SGLib
305
98
// // Copyright © 2021 Arm Limited. // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "Part.hpp" namespace ethosn { namespace support_library { class ConcatPart : public BasePart { public: ConcatPart(PartId id, const std::vector<TensorInfo>& inputTensorsInfo, const Co...
1,166
334
#pragma once #include <thread> #include <atomic> #include <SFML/Audio/Music.hpp> #include <SFML/System/Clock.hpp> #include <SFML/System/Time.hpp> #include "AbstractMusic.hpp" namespace Gameplay { struct _PreciseMusic : sf::Music { explicit _PreciseMusic(const std::string& path); ~_PreciseMusic()...
1,454
457
/* * squareScene.cpp * sceneExample * * Created by zachary lieberman on 11/30/10. * Copyright 2010 __MyCompanyName__. All rights reserved. * */ #include "circleScene.h" void circleScene::setup(){ } void circleScene::update(){ } void circleScene::draw(){ ofSetColor(0,0,0); for (int i = 0; i < 100...
418
179
// gpuruntime.hpp #ifndef GPU_RUNTIME_HPP #define GPU_RUNTIME_HPP #include "gpucontext.hpp" namespace brook { class GPURuntime : public RunTime { public: virtual Kernel* CreateKernel(const void*[]); virtual Stream* CreateStream( int fieldCount, const __BRTStreamType fieldTypes[], ...
699
244
#include "stdafx.h" #include "Item.h" Item::Item() { } Item::~Item() { } void Item::SetType(int type) { Type = type; Description = ""; if (Type == 1) { Name = "Shield"; SetStats(0, 0, 0, 1, 0); Description = "Adds 1 defence"; Cost = 4; } if (Type == 2) { Name = "Breastplate"; SetStats(0, 0, 0, 3, 0...
1,029
543
/* * Created by OFShare on 2019-12-10 * */ #include <cstdio> #include <algorithm> #include <queue> #include <cmath> #include <cstring> const int maxn = 5e5 + 5; int n; struct node { int start, end, id; bool operator<(node &rhs) const { return start < rhs.start; } }A[maxn]; int ans[maxn]; // <右端点, stall的...
1,092
522
#include "mino.hpp" #include <iostream> Mino::Mino() { sprPlace.left = 0; sprPlace.top = 0; sprPlace.width = 16; sprPlace.height = 16; texture = Defaults::Get().MinoTexture(); spr.setTexture(texture); spr.setPosition(sf::Vector2f(0.f, 0.f)); updateCollision(); Collision.addAreaPlayab...
4,692
1,921
#include "vtkImageDualSigmoid.h" #include <vtkImageData.h> #include <vtkImageProgressIterator.h> #include <vtkObjectFactory.h> vtkStandardNewMacro(vtkImageDualSigmoid); vtkImageDualSigmoid::vtkImageDualSigmoid() { this->SetNumberOfInputPorts(1); this->SetNumberOfOutputPorts(1); Alpha = 1.0; LowerBeta = 0.0; Upp...
4,345
1,789
//------------------------------------------------------------------------------ // instancerendererbase.cc // (C) 2012 Gustav Sterbrant // (C) 2013-2018 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "stdneb.h" #include "instancere...
3,446
956
// ------------------------------------------------------------------------- // stdga.cpp - implementation of cStandardGA class. // ------------------------------------------------------------------------- // Copyright (c) 2021 LMCV/UFC // All rights reserved. // // Redistribution and use in source and binary forms, wi...
10,616
3,586
#include "file.hxx" #include <fstream> #include <stdexcept> namespace test { namespace utils { void read_file_contents(const std::string& filename, std::string& dest) { std::ifstream in(filename, std::ios::in | std::ios::binary); if(in) { in.seekg(0, std::ios::end); dest.resize(in.tellg()); in.seekg...
541
210
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include <initializer_list> // Including type: System.IComparable #include "System/IComp...
49,912
17,088
#include <stdio.h> #include <conio.h> #include <iostream.h> #include <string> main() { char kd[3],mskp[15]; int kls; long hrg=0; cout<<"Masukkan Kode Pesawat [MPT/GRD/BTV] : ";cin>>kd; cout<<"Kelas Pesawat : ";cin>>kls; if(strcmp(kd,"MPT") || strcmp(kd,"mpt") || strcmp(kd,"Mpt")) { strcpy(mskp,"...
1,430
707
#include "GDepthStencil.h" GDepthStencil::GDepthStencil( ) : mDSDesc(D3D11_DEPTH_STENCIL_DESC( )) , mState(nullptr) { EMPTY_STATEMENT; } GDepthStencil::~GDepthStencil( ) { if ( nullptr != mState ) { mState->Release( ); mState = nullptr; } } bool GDepthStencil::Create( ) { mDSDesc.DepthEnable = true; mDSD...
912
453
// Copyright 2014-2015 SDL plc // 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,...
7,803
2,595
#include "include.h" namespace MessageWrap { void BasicEmbedReturn(bool Error, std::string Disc, discord::MessageEvent& event, uint64_t timestamp) { Helpers::ChecksStr(Disc); event.channel()->send_embed([&Error, &Disc, &timestamp](discord::Embed& e) { if (Error) e.se...
2,655
816
#include "Shader.h" namespace ph { void Shader::use() { glUseProgram(pr); } void Shader::load(std::string vpath, std::string fpath) { en->log(INF) << "Loading shaders: (" << vpath << ", " << fpath << ")" << endlog; std::string vertexCode; std::string fragmentCode; std::ifstream vShaderFile; std::if...
2,327
1,011
// Copyright 2016 The Fuchsia 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/ui/lib/escher/vk/image.h" #include "src/ui/lib/escher/util/image_utils.h" namespace escher { const ResourceTypeInfo Image::kTypeInfo("Imag...
1,778
549
/* //////////////////////////////////////////////////////////// File Name: fsglxwrapper.cpp Copyright (c) 2017 Soji Yamakawa. All rights reserved. http://www.ysflight.com Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are ...
50,799
23,073
#include "Split into html pages.h" #include <Aspose.Words.Cpp/Body.h> #include <Aspose.Words.Cpp/BreakType.h> #include <Aspose.Words.Cpp/Fields/Field.h> #include <Aspose.Words.Cpp/ImportFormatMode.h> #include <Aspose.Words.Cpp/MailMerging/MailMerge.h> #include <Aspose.Words.Cpp/Node.h> #include <Aspose.Words.Cpp/Node...
8,154
2,499
/* Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR...
1,839
588
#include "perf_precomp.hpp" #ifdef _MSC_VER # if _MSC_VER >= 1700 # pragma warning(disable:4447) // Disable warning 'main' signature found without threading model # endif #endif CV_PERF_TEST_MAIN(core)
204
83
#pragma once #include "ih/gs_events.hpp" #include "utils/Noncopyable.hpp" #include <any> #include <atomic> #include <functional> #include <memory> #include <vector> #include <etl/queue_spsc_atomic.h> #include <etl/vector.h> namespace Graphics::Events { class EventDispatcher : private Utils::noncopyable { public:...
1,301
411
/* GPU plot generator for Burst coin. Author: Cryo Bitcoin: 138gMBhCrNkbaiTCmUhP9HLU9xwn5QKZgD Burst: BURST-YA29-QCEW-QXC3-BKXDL Based on the code of the official miner and dcct's plotgen. */ #include <fstream> #include <sstream> #include <cstdlib> #include <stdexcept> #include <algorithm> #include <memory> #in...
3,421
1,309
// Copyright 2020 Arthur Sonzogni. All rights reserved. // Use of this source code is governed by the MIT license that can be found in // the LICENSE file. #ifndef GAME_PARTICULE_HPP #define GAME_PARTICULE_HPP #include <smk/Sprite.hpp> #include "game/Hero.hpp" class window; class Particule { public: smk::Sprite...
1,742
667
#include "stdafx.h" #include "pe_debug.h" debug_item::debug_item() { this->characteristics = 0; this->timestamp = 0; this->major_version = 0; this->minor_version = 0; this->type = 0; this->size_of_data = 0; this->address_of_raw_data = 0; this->pointer...
8,117
2,746
/* * YangScreenShareLinux.cpp * * Created on: 2020年8月30日 * Author: yang */ #include "YangScreenShare.h" #include "yangutil/yang_unistd.h" #include "yangavutil/video/YangYuvConvert.h" YangScreenCapture::YangScreenCapture(){ m_isStart=0; } YangScreenCapture::~YangScreenCapture(){ } void YangScreenCaptur...
1,997
870
/******************************************************* * Copyright (c) 2015-2019, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *****************************************...
3,601
1,346
/* Compilation : g++ main.cpp -std=c++17 `sdl2-config --libs` -lSDL2_mixer `taglib-config --libs` `pkg-config --cflags --libs taglib` -lz Some flags are useless for now. */ #include "DatabaseHandler.h" #include "WebHandler.h" #include <stdio.h> #define SERVER_VERSION "0.1" int main() { printf("Welcome to...
388
151
#include "global.h" namespace OFEC { factory<Problem> g_reg_problem; factory<Algorithm> g_reg_algorithm; std::map<std::string, std::set<std::string>> g_alg_for_pro; std::set<std::string> g_param_omit; std::map<std::string, std::string> g_param_abbr; std::string g_working_dir = OFEC_DIR; std::mutex g_cout_mutex...
323
135
/*************************************************************************** * @file stack_by_list.hpp * @author Alan.W * @date 30 May 2014 * @remark Chapter 10, Introduction to Algorithms * @note code style : STL ********************************************************************...
1,624
550
#include "PolyCubeCutInterface.h" #include "PolyCubeCut.h" PolyCubeCutInterface::PolyCubeCutInterface( const std::vector<ig::CVec<double, 3>> &v_input_point, const std::vector<unsigned int> &v_input_face, const std::vector<int> &v_input_chart, const std::vector<int> &v_input_label ) { m_pcc = new P...
3,490
1,420
//#include "rosic_AcidPattern.h" //using namespace rosic; AcidPattern::AcidPattern() { numSteps = 16; stepLength = 0.5; } //------------------------------------------------------------------------------------------------- // setup: void AcidPattern::clear() { for(int i=0; i<maxNumSteps; i++) { notes...
3,948
1,609