text
string
size
int64
token_count
int64
/* * File: BufferedInsert.cpp * Author: root * * Created on October 3, 2012, 2:06 PM */ #ifdef _WIN32 #include "stdafx.h" #endif #include "BufferedInsert.h" #include <memory> namespace util { BufferedInsert::BufferedInsert(DBase &conn, const char *preface, const char *postface) : ...
1,842
601
#include <iostream> #include <fstream> #include <vector> #include <iomanip> #include "GostCipher.h" enum RETURN_CODES { SUCCESS = 0, NOT_ENOUGH_ARGS = 1, TOO_MANY_ARGS = 2, WRONG_OPERATION = 3, WRONG_KEY = 4, FAILED_TO_READ_FILE = 5, FAILED_TO_WRITE_FILE = 6, }; std::vector<uint8_t> read_...
3,254
1,105
#define YGP_DISABLE_BROOM #define YGP_DISABLE_DEMENTOR #define YGP_DISABLE_BROWSER #define YGP_DISABLE_PLAYER #include"../include/ygp.hpp" YGP_INIT YGP_WNDPROC { static window win; YGP_BEGIN_MSG_MAP case WM_CREATE: { win=hwnd; break; } case WM_DESTROY: { PostQuitMessa...
540
228
#include "Random.h" std::mt19937 Random::s_RandomEngine; std::uniform_int_distribution<std::mt19937::result_type> Random::s_Distribution;
138
54
#include <memory> #include <vector> #include <string> #include <any> #include "cm/cf/func/SdeFFunction.h" #include "cm/ControlledObject.h" #include "Configuration.h" #include "PrototypeManager.h" #include "Individual.h" namespace adef { void SdeFFunction::setup(const Configuration & config, const PrototypeManager & p...
1,675
547
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: main.cpp * Author: Hiromi Jenna Koh * * Created on 9 May, 2016, 11:03 AM */ #include "global.hpp" #include <gsl/...
6,093
2,252
// Copyright (c) 2012 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/page_info_model.h" #include <string> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/command_line.h" #...
13,989
5,002
// Fill out your copyright notice in the Description page of Project Settings. #include "GravityGunCameraShake.h" void UGravityGunCameraShake::SetRotPitch(float Amplitude, float Frequency) { //Setting new values for the roational pitch of the oscillation RotPitch.Amplitude = Amplitude; RotPitch.Frequency = Frequen...
1,428
539
#include "acmacs-base/argv.hh" #include "acmacs-base/color-gradient.hh" // ---------------------------------------------------------------------- using namespace acmacs::argv; struct Options : public argv { Options(int a_argc, const char* const a_argv[], on_error on_err = on_error::exit) : argv() { parse(a_argc, ...
1,272
436
#include <aslam/cameras/distortion-fisheye.h> namespace aslam { std::ostream& operator<<(std::ostream& out, const FisheyeDistortion& distortion) { distortion.printParameters(out, std::string("")); return out; } FisheyeDistortion::FisheyeDistortion(const Eigen::VectorXd& dist_coeffs) : Base(dist_coeffs, Distortion...
5,756
2,330
/* * Copyright (c) The Shogun Machine Learning Toolbox * Written (w) 2014 Parijat Mazumdar * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the abo...
15,640
7,940
#ifdef __EMSCRIPTEN__ #include <emscripten.h> #define GL_GLEXT_PROTOTYPES #define EGL_EGLEXT_PROTOTYPES #else extern "C" { #include "examples/libs/gl3w/GL/gl3w.c" } #define IMGUI_IMPL_OPENGL_LOADER_CUSTOM "examples/libs/gl3w/GL/gl3w.h" #endif #include "backends/imgui_impl_opengl3.cpp" #include "backends/imgui_impl...
5,945
1,967
#include <iostream> using namespace std; int main () { cout << endl; //Extra space cout << "__________________________________________________________" << endl; cout << "Lesson 8.3 Pointer Reassignment to Another Variable" << endl; cout << "----------------------------------------------------------" << endl; ...
665
207
//////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages ...
3,246
746
#include <Heap.h> #include <Memory.h> using namespace Kernel; Heap::Heap(void* start_addr, u64 size) : m_start_addr(start_addr), m_size(size) { Header* first_header = (Header*)start_addr; Header* last_header = (Header*)((u64)start_addr + size - sizeof(Header)); first_header->prev = nullptr; first_header->free...
3,911
1,666
/* * Copyright (C) 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
1,994
624
/***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Common Public * License Version 1.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.eclipse.org/legal/cpl-v...
2,597
824
/**************************************************************************** ** Meta object code from reading C++ file 'qvalidatedtextedit.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.0) ** ** WARNING! All changes made in this file will be lost! ********************************************...
4,204
1,644
#include <functional> #include <string> #include <vector> struct SuffixArray { int N, k; std::string S; std::vector<int> sa, rank, tmp; std::vector<int> lcp, rank_lcp; SuffixArray(std::string &S) : N(S.size()), S(S), sa(N + 1), rank(N + 1), tmp(N + 1) { construct(); } void construct() { fo...
1,623
732
/** * ofxMPMFluid.cpp * The MIT License (MIT) * Copyright (c) 2010 respective contributors * * 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 l...
2,082
734
// vi: set et ts=4 sw=2 sts=2: #ifndef HMAT_HMATRIX_DENSE_COMPRESSOR_HPP #define HMAT_HMATRIX_DENSE_COMPRESSOR_HPP #include "common.hpp" #include "hmatrix_compressor.hpp" #include "data_accessor.hpp" namespace hmat { template <typename ValueType, int N> class HMatrixDenseCompressor : public HMatrixCompressor<ValueT...
700
261
// // Created by Ciaran on 05/02/2021. // #include <algorithm> #include "OptItems.h" #include "Error.h" namespace opt { OptItems::OptItems(std::vector<OptItem> optItems) : optItems_(std::move(optItems)) {} OptItems::OptItems(const std::vector<double> &startingValues, const std::vector<double> &l...
1,584
507
/* $Id: Cit_proc.cpp 272611 2011-04-08 18:57:08Z ucko $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" u...
2,222
664
// Copyright (C) 2018-2020 Vincent Chambrin // This file is part of the libscript library // For conditions of distribution and use, see copyright notice in LICENSE #include "script/templateargumentprocessor.h" #include "script/class.h" #include "script/classtemplate.h" #include "script/classtemplateinstancebuilder.h...
4,139
1,302
/* * Copyright (c) 2018 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2026-01-04 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
6,407
2,169
// // Created by hejia on 9/22/19. // #include "ai/external/hauser_parabolic_smoother/HauserUtil.h" #include "ai/external/hauser_parabolic_smoother/DynamicPath.h" namespace wecook { namespace ai { namespace external { namespace hauser_parabolic_smoother { //=============================================================...
1,310
434
/* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
3,777
1,295
// // ImageProgressing.hpp // Kessler Syndrome // // Created by Shamyl Zakariya on 11/30/17. // #ifndef ImageProcessing_hpp #define ImageProcessing_hpp #include <cinder/Channel.h> #include <cinder/Perlin.h> #include "core/Common.hpp" #include "core/MathHelpers.hpp" namespace core { namespace util { n...
6,577
1,765
#pragma once #include "wx/dialog.h" #include "wx/textctrl.h" #include "wx/button.h" class cDialogConfigureDetection : public wxDialog { public: cDialogConfigureDetection ( wxWindow * parent, wxWindowID id, const wxString & title, const wxPoint & pos, const wxSize & size, wxString& yoloCfg, wxSt...
510
200
/* * Copyright 2017 Igor Maculan <n3wtron@gmail.com> * * 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...
2,847
864
// Created on 15-07-2019 18:51:46 by necronomicon #include <bits/stdc++.h> using namespace std; #define MP make_pair #define PB push_back #define ARR_MAX (int)1e5 //Max array length #define INF (int)1e9 //10^9 #define EPS 1e-9 //10^-9 #define MOD 1000000007 //10^9+7 #define PI 3.14159265358979323846264338327...
4,822
1,746
/* * 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...
1,772
629
// Copyright 2018-current Getnamo. All Rights Reserved #include "CUBlueprintLibrary.h" #include "IImageWrapper.h" #include "IImageWrapperModule.h" #include "Core/Public/Modules/ModuleManager.h" #include "Core/Public/Async/Async.h" #include "Engine/Classes/Engine/Texture2D.h" #include "Core/Public/HAL/ThreadSafeBool.h...
16,686
6,327
#include <stdio.h> #include <string.h> #ifdef LINUX #include <stdlib.h> #include <mntent.h> #include <libudev.h> #else #import <Foundation/Foundation.h> #import <IOKit/IOKitLib.h> #import <IOKit/usb/IOUSBLib.h> #import <IOKit/hid/IOHIDKeys.h> #endif #ifdef LINUX #include "../../PISupervisor/apple/include/KernelPr...
11,727
4,469
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "dexoperatortx.h" #include "config/configuration.h" #include "main.h"...
16,923
5,761
#pragma once #include <Render/Pipelining/Render/FrameBufferRender.hh> #include <glm\glm.hpp> namespace AGE { class Texture2D; class Program; class GaussianBlur : public FrameBufferRender { public: GaussianBlur(glm::uvec2 const &screenSize, std::shared_ptr<PaintingManager> painterManager, std::shared_ptr<...
650
249
#include "../../BenchmarkNode.h" #include <stdint.h> #include <iostream> #include <cmath> #define ITER_COUNT 2 #define CACHE_LINE 32 // cache line in byte /* this structure represents a point */ /* these will be passed around to avoid copying coordinates */ typedef struct { float weight; float *coord; long ass...
4,332
1,689
/*========================================================================= Program: ShapeWorks: Particle-based Shape Correspondence & Visualization File: Optimize.cpp Copyright (c) 2020 Scientific Computing and Imaging Institute. See ShapeWorksLicense.txt for details. This software is ...
76,844
24,761
#ifndef GENERATED_419896c26be84c4028d040a9d3789448_HPP #define GENERATED_419896c26be84c4028d040a9d3789448_HPP #include "bullet.hpp" void stepfunc_10c3a88a8e44bab5c0812abd588467e2_e9c5251663b26b8b849de773f3f9b7a0(BulletInfo *p); void stepfunc_6536e4546bdcfcf651852434db03b678_e9c5251663b26b8b849de773f3f9b7a0(Bullet...
1,551
1,141
#include <stan/math/mix/scal.hpp> #include <gtest/gtest.h> #include <math/rev/scal/util.hpp> TEST(AgradRev, value_of_rec_0) { using stan::math::fvar; using stan::math::value_of_rec; using stan::math::var; fvar<var> fv_a(5.0); fvar<fvar<var> > ffv_a(5.0); fvar<fvar<fvar<fvar<fvar<var> > > > > fffffv_a(5.0)...
462
246
#include "NuHepMC/Kinematics.hxx" #include "NuHepMC/ParticleStackReaderHelper.hxx" #include <iostream> namespace NuHepMC { HepMC3::FourVector GetFourMomentumTransfer(HepMC3::GenEvent const &evt) { auto ISProbe = GetProbe(evt); if (!ISProbe) { return HepMC3::FourVector::ZERO_VECTOR(); } auto FSProbe = Ge...
592
261
#include <iostream> #include <vector> #include <unordered_set> #include <unordered_map> #include <set> #include <algorithm> #include <string> #include <sstream> #include <cstdlib> struct Photo { int id; char orient; std::unordered_set<std::string> tags; }; struct Slide { int a; int b; }; void read_photos(i...
5,779
2,237
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: int diameterOfBinaryTree(TreeNode* root) { int diam = 0; maxDepth(root, diam); ...
643
213
#include <iostream> using namespace std; int main() { int m, k, n, w, t = 0; cin >> m >> k; n = m; while (n) { w = n % 10; if (w == 3) ++t; n /= 10; } if (m % 19 == 0 && t == k) cout << "YES" << endl; else cout << "NO" << endl; ret...
329
143
#include <algorithm> #include <vector> #include "caffe/common_layers.hpp" #include "caffe/layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype, typename Mtype> void MVNLayer<Dtype,Mtype>::Reshape(const vector<Blob<Dtype,Mtype>*>& bottom, const vector<Blob<Dtype,Mtype>*...
6,364
2,469
// 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 <windows.h> #include <setupapi.h> #include <stddef.h> #include <winioctl.h> #include "base/logging.h" #include "chrome/utility/image_writer/erro...
6,448
1,933
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
7,742
2,347
// Arquivo pangya_db.cpp // Criado em 25/12/2017 por Acrisio // Implementação da classe pangya_db #if defined(_WIN32) #pragma pack(1) #endif #if defined(_WIN32) #include <WinSock2.h> #elif defined(__linux__) #include "../UTIL/WinPort.h" #include <unistd.h> #endif #include "pangya_db.h" #include "../UTIL/exception.h"...
10,583
4,326
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkColorSpace.h" #include "include/core/SkTypes.h" #include "src/core/SkColorSpaceXformSteps.h" #include "src/core/SkRasterPipeline.h" #include "tests/Te...
3,824
1,579
#include <bonsai_types.h> #include <game_constants.h> #include <game_types.h> #define RANDOM_HOTKEY_MASHING 0 #if RANDOM_HOTKEY_MASHING static u32 HotkeyFrameTimeout = 0; static random_series HotkeyEntropy = {}; static hotkeys StashedHotkeys = {}; #endif model * AllocateGameModels(game_state *GameState, memory_are...
7,717
2,819
#include<iostream> using namespace std; int hey(int a){ int c= a+3; return c; } int main(){ int i= 29; cout<<hey(i); }
145
62
#include "ExtractZipPassFromCredMan.h" #include <iostream> using namespace std; int main() { PCREDENTIALW * credBuf = NULL; DWORD count; int result = ExtractZipPassFromCredMan(&credBuf, &count); if (result == CREDENTIALS_BUFFER_ERROR) { cout << "CREDENTIALS_BUFFER_ERROR" << endl; goto __clea...
995
396
/* * Copyright (c) 2016-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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...
3,137
1,128
// Copyright ilikotsutskiridze 2021 #include <revert_string.hpp> std::string convert(const int &a) { int bin=0, j; for(j=0; a>0; j++) { bin+=(a%2)*pow(10.0,j); a/=2; } std::string s=std::to_string(bin); return s; }
265
125
#include <iostream> #include <string> #include <pybind11/pybind11.h> #include <autocxxpy/autocxxpy.hpp> #include "module.hpp" #include "wrappers.hpp" #include "generated_functions.h" #include "xtp_trader_api.h" #include "xtp_quote_api.h" void generate_caster_XTP_API(pybind11::object & parent) { struct caster: a...
48,207
20,609
/* Given a linked list, find and return the length of input LL recursively. Input format : Linked list elements (separated by space and terminated by -1) Output format : Length of LL Sample Input : 3 4 5 2 6 1 9 -1 Sample Output : 7 */ /********** * Following is the Node class that is already written. cla...
1,631
536
#include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> #include <vector> using namespace std; const int INF = 1e9; const int MAX_N = 5e5 + 5; const int MAX_P = 21; int f[MAX_N][MAX_P]; int next_right[MAX_N]; int n, m; int main() { cin >> n >> m; for (int i = 0; i < n; ++i) { int l, r;...
1,187
570
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: StandaloneMono...
87,328
25,685
#include "imgplane.h" ImgPlane::ImgPlane(int w, int h) : width(w), height(h) { int size = w*h; for(int i=0; i<size; ++i){ image.push_back(new Color(0,0,0)); raysNumber.push_back(0); } } void ImgPlane::updatePixel(int x, int y, Color &pxl, int rays){ Color *actual = image[x*width+y]; ...
1,122
472
/**************erik****************/ #include<bits/stdc++.h> #include <cstdio> #include <iostream> #include <algorithm> using namespace std; typedef long long int ll; typedef unsigned long long int ull; map<int,int> mp1; set<int> s1; //set<int>::iterator it; #define maxm(a,b,c) max(a,max(c,b)) #define minm(a,b,c) mi...
3,503
1,365
/* P U L L B A C K C U R V E . C P P * BRL-CAD * * Copyright (c) 2009-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * versio...
143,300
62,721
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2022 Ryo Suzuki // Copyright (c) 2016-2022 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/TCPServer.hpp> # include <Siv...
1,895
732
/* Copyright (c) 2003, Xentronix Author: Frans van Nispen (frans@xentronix.com) 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 ...
11,799
6,160
#include "duckdb/common/sort/comparators.hpp" #include "duckdb/common/sort/sort.hpp" namespace duckdb { //! Calls std::sort on strings that are tied by their prefix after the radix sort static void SortTiedBlobs(BufferManager &buffer_manager, const data_ptr_t dataptr, const idx_t &start, const idx_t &end, ...
8,914
3,442
/* * Copyright :SIAT 异构智能计算体系结构与系统研究中心 * Author : Heldon 764165887@qq.com * Date :19-03-01 * Description:containerizer(docker) codes */ #ifndef CHAMELEON_DOCKER_HPP #define CHAMELEON_DOCKER_HPP //C++11 dependencies #include <list> #include <map> #include <set> #include <string> //stout dependencies ...
6,493
1,736
#include "ScoreProcessor.h" #include "ExecutionManager.h" #include "ScenePlayer.h" using namespace std; PlayableProcessor::PlayableProcessor(ScenePlayer *splayer) { player = splayer; currentState = player->manager->GetControlStateSafe(); SetJudgeWidths(0.033, 0.066, 0.084); SetJudgeAdjusts(0, 1, 0, 1...
26,001
8,442
#include "meleeattackbhv.h" #include "util/math.h" #include "objects//enemy.h" #include "level/level.h" MeleeAttackBhv::MeleeAttackBhv(Enemy* owner): Behaviour(owner), _attackTime { 0.0f } { } void MeleeAttackBhv::collision(float x, float y, float z) { (void) x; (void) y; (void) z; } void Mele...
1,147
441
/*************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Qt Software Information (qt-info@nokia.com) ** ** ** Non-Open Source Usage ** ** Licensees may use this file in accor...
76,520
26,397
/* * 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 ...
2,011
644
#ifndef AIKIDO_STATESPACE_SE2STATESPACE_HPP_ #define AIKIDO_STATESPACE_SE2STATESPACE_HPP_ #include <Eigen/Geometry> #include "aikido/statespace/ScopedState.hpp" #include "aikido/statespace/StateSpace.hpp" namespace aikido { namespace statespace { /// Defined in detail/SE2-impl.hpp template <class> class SE2StateHand...
4,446
1,339
// RUN: %clang_cc1 -no-opaque-pointers -verify -triple x86_64-apple-darwin10 -fopenmp -x c++ -emit-llvm %s -o - | FileCheck %s // RUN: %clang_cc1 -no-opaque-pointers -fopenmp -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s // RUN: %clang_cc1 -no-opaque-pointers -fopenmp -x c++ -triple x86_64-apple-darwin10 -inc...
14,710
7,010
/*************************************************************************** * Copyright 1998-2017 by authors (see AUTHORS.txt) * * * * This file is part of LuxRender. * * ...
20,490
7,094
#include "stdafx.h" #pragma hdrstop #include "ParticleEffect.h" #ifndef _EDITOR #include <xmmintrin.h> #include "../../xrCPU_Pipe/ttapi.h" #pragma comment(lib,"xrCPU_Pipe.lib") #endif using namespace PAPI; using namespace PS; const u32 PS::uDT_STEP = 33; const float PS::fDT_STEP = float(uDT_STEP)/1...
26,189
13,214
#include <iostream> #include "Direction.hpp" #include <string> #include <stdexcept> #include <map> using namespace std; using namespace ariel; namespace ariel { class Notebook { map<int , map <int , string> > notebook ; public : Notebook(); void write(int const & page, int const & r...
572
177
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "StdAfx.h" #include <Components/BlastFamilyComponentNotificationBusHandler.h> namespace...
3,349
937
#include "creditsview.h" #include "gamecontext.h" CreditsView::CreditsView(GameContext* context) : View(context) { } std::ostream & CreditsView::display() { return std::cout << "This game was created by Tobi van Bronswijk and Rick van Berlo." << std::endl << "Thanks for playing!" << std::endl; } bool Credit...
375
140
// Copyright (C) 2014-2017 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include <config.h> #include <cc/command_int...
3,385
930
#pragma once #include "KEngine/Interfaces/ISystem.hpp" namespace pf { /// <summary> /// /// </summary> class EventFeedbackSystem : public ke::ISystem { public: }; }
201
72
// COCOA class implementation file //Id: ALIUtils.cc //CAT: ALIUtils // // History: v1.0 // Pedro Arce #include "Alignment/CocoaUtilities/interface/ALIUtils.h" #include "Alignment/CocoaUtilities/interface/GlobalOptionMgr.h" #include <cmath> #include <cstdlib> #include <iomanip> ALIint ALIUtils::...
32,625
12,377
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
3,847
1,070
#include "event.h"
20
9
/****************************************************************************** * tsp_instance.cpp: Implementation for TSP_Instance class. * * (c) Copyright 2015-2019, Carlos Eduardo de Andrade. * All Rights Reserved. * * Created on : Mar 05, 2019 by andrade * Last update: Mar 05, 2019 by andrade * * This co...
2,233
793
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
10,338
3,363
#include "Base64.h" #include <mutex> #include <iostream> using namespace std; using namespace sensor_tool; std::string sensor_tool::base64Encode(const std::string & origin_string) { static const char base64Char[] ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; std::string ret(""); if(or...
3,562
1,567
/* [auto_generated] boost/numeric/odeint/iterator/detail/adaptive_time_iterator_controlled_impl.hpp [begin_description] tba. [end_description] Copyright 2009-2012 Karsten Ahnert Copyright 2009-2012 Mario Mulansky Distributed under the Boost Software License, Version 1.0. (See accompanying file LICE...
4,649
1,416
// generated from rosidl_generator_cpp/resource/srv__struct.hpp.em // generated code does not contain a copyright notice #ifndef RCL_INTERFACES__SRV__GET_PARAMETERS__STRUCT_HPP_ #define RCL_INTERFACES__SRV__GET_PARAMETERS__STRUCT_HPP_ #include "rcl_interfaces/srv/get_parameters__request.hpp" #include "rcl_interfaces/...
666
250
#include "Geometry/HGCalCommonData/interface/HGCalParameters.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "Geometry/HGCalCommonData/interface/HGCalWaferIndex.h" //#define EDM_ML_DEBUG HGCalParameters::HGCalParameters(const std::string& nam) : name_(nam), nCells_(0), waferMaskMode_(0) { #ifdef...
7,477
2,985
////http://www.ogre3d.org/tikiwiki/DynamicLineDrawing #include "DynamicLines.h" #include <Ogre.h> #include <cassert> #include <cmath> using namespace Ogre; enum { POSITION_BINDING, TEXCOORD_BINDING }; DynamicLines::DynamicLines(OperationType opType) { initialize(opType,false); setMaterial("BaseWhiteNoLig...
3,044
1,169
YAML::Node default_config; default_config["species"]["num"] = "0"; default_config["species"]["insertion_type"] = "random"; default_config["species"]["insert_file"] = "none"; default_config["species"]["overlap"] = "0"; default_config["species"]["draw_type"] = "orientation"; default_config["species"]["color...
11,578
4,412
#include <windows.h> #include <tchar.h> #include <commctrl.h> #include <richedit.h> #include <iostream> #include <string> #include <atlstr.h> #include <cassert> #include "appconst.h" #include "toolbarControl.h" #include "statusControl.h" #include "mainWindowProc.h" #include "menuids.h" #include "mainPrefs.h" #include "...
10,417
4,508
#include "OnlinePolicyGradient.h" PolicyGradientActorCritic::PolicyGradientActorCritic(int n_states_, int n_actions_, real gamma_, real step_size_) : n_states(n_states_), n_actions(n_actions_), gamma(gamma_), step_size(step_size_), critic(n_states, n_actions, gamma, 0.0, step_size), policy(n_states, n_actions), ...
3,487
1,449
/* * Copyright (C) 2018-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/os_interface/windows/os_time_win.h" #include "shared/source/os_interface/windows/device_time_wddm.h" #include "shared/source/os_interface/windows/wddm/wddm.h" #include <memory> #undef WIN32_NO_STATUS n...
1,386
521
// // FILE NAME: CIDCtrls_ImgCacheItem.hpp // // AUTHOR: Dean Roddey // // CREATED: 10/28/2005 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://ope...
8,778
2,311
/*! * \file digital_out.hpp * \brief Header file for digital out gpio state. * \author garciay.yann@gmail.com * \copyright Copyright (c) 2015 ygarcia. All rights reserved * \license This project is released under the MIT License * \version 0.1 */ #pragma once #include "libhal.h" /*! * \class digital_out ...
1,869
671
//Memory get free as scope ends and this pointers can have copy of them. #include<iostream> #include<memory> using namespace std; class User{ public: User(){ cout<<"User Created\n"; } ~User(){ cout<<"User Destroyed\n"; } void testFunc(){ cout<<"I am a test function\n"; ...
629
208
#include "ResourceShaderProgram.h" #include "Application.h" #include "ModuleShaders.h" #include "JSONManager.h" ResourceShaderProgram::ResourceShaderProgram() : Resource(RES_SHADER) { } ResourceShaderProgram::ResourceShaderProgram(std::string& file) : Resource(RES_SHADER, file) { } ResourceShaderProgram::~Resour...
1,656
612
// Copyright 2017 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 "mojo/public/cpp/bindings/lib/buffer.h" #include <cstring> #include "base/check_op.h" #include "base/notreached.h" #include "base/numerics/safe...
4,235
1,443
#include <concepts> template <typename T> concept type_test = requires { typename T::ElementType; // ElementType member type must exist }; void function(type_test auto x) {} struct X { using ElementType = int; }; int main() { function(X{}); // OK function(1); // Fails }
281
93
#include "deadeye.h" #include <chrono> #include <thread> using namespace deadeye; namespace { constexpr auto NTGT_SLEEP_MS = std::chrono::milliseconds(10); } Deadeye::Deadeye(std::shared_ptr<cpptoml::table> config) : logger_(spdlog::get("deadeye")), link_(config), boiler_camera_(config), gear_...
4,886
1,743
/* To use .lib file, go to Project > References... > Configuration Properties > Linker > > General > Additional Library directories | add the directory the .lib is in. Then go to Project > References... > Configuration Properties > Linker > Input > Additional dependencies | add the name of the .lib fi...
15,751
5,913