blob_id
stringlengths
40
40
content_id
stringlengths
40
40
repo_name
stringlengths
5
114
path
stringlengths
5
318
language
stringclasses
5 values
extension
stringclasses
12 values
length_bytes
int64
200
200k
license_type
stringclasses
2 values
content
stringlengths
143
200k
5068286de9806a30bfbd7b77deebcc8f9782f8f2
6b8e052305b49c7367d9cbb46ea7fc29efac0937
flang-compiler/f18-llvm-project
/clang/lib/CodeGen/BackendUtil.cpp
C++
cpp
71,153
permissive
//===--- BackendUtil.cpp - LLVM Backend Utilities -------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
b71f4323f57371e715279f267380b194e52b113e
3938f59071c3376672fdbf1ca5c1b8f6ad47be56
longde123/WrldTmpl8
/template/world.cpp
C++
cpp
50,152
permissive
#include "precomp.h" #include "bluenoise.h" // Acknowledgements: // B&H'21 = Brian Janssen and Hugo Peters, INFOMOV'21 assignment // CO'21 = Christian Oliveros, INFOMOV'21 assignment // MB'21 = Maarten van den Berg, INFOMOV '21 assignment using namespace Tmpl8; static const uint gridSize = GRIDSIZE * sizeof( uint ...
eaab821853d9fe815ca8ab1319da3e1aff9ca4d9
a1cccc534ac6b1277762dd8f93484da7106bf1c3
rharel/cpp-raytracer
/test/src/unit/mathTest.cpp
C++
cpp
2,739
permissive
#include "../../lib/catch.hpp" #include <iris/math.h> #include <iris/vector_types.h> using namespace iris; TEST_CASE("constants", "[math][constants]") { REQUIRE(constant::m_pi == acosf(-1)); REQUIRE(constant::m_2_pi == 2.0f * constant::m_pi); } TEST_CASE("solve quadratic", "[math][solve-quadratic]") { ...
de78604ad703807b26fd11db79e665d00a39ea83
09a9e80b7847a6a442d966192f74394f9d2ffad6
smeenai/llvm-project
/clang-tools-extra/clangd/FileDistance.cpp
C++
cpp
8,038
permissive
//===--- FileDistance.cpp - File contents container -------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
17bef70bd85e4fe3180c419e92c8b98676243dbb
a2decb78be928bbddf89f3ac8d90271aefa5537b
nodegraph/ngsinternal
/src/base/memoryallocator/memoryoverloads.cpp
C++
cpp
879
no_license
#include <base/memoryallocator/memoryoverloads.h> #include <base/memorytracker/memoryops.h> #include <iostream> // Overloaded new. void* operator new(size_t size, const char *file, int line) throw () { return ngs::new_overload(size, file, line); } // Overloaded array new. void* operator new[](size_t size,...
d75e76b5fe6cd6ee830d805ae8cebe51d5a9990f
785d76071a1e89eb65f2242847590d9a97c3e215
only1deepak/Tower-of-Hanoi-openGL
/main.cpp
C++
cpp
19,571
no_license
//#include <Windows.h> // Header File For Windows //#include <GL\GL.h> // Header File For The OpenGL32 Library //#include <GL\GLU.h> // Header File For The GLu32 Library //#include <GL\freeglut.h> //#define _USE_MATH_DEFINES //#in...
137769db4497f9e82feee1d6a4d4203b574142e8
2ef053058a003bcbd892373113349a5ea5c3aa9a
yirui-wang-0212/42028501CourseProjectOfDataStructures
/8_1552651_wangyirui/8_1552651_wangyirui.cpp
C++
cpp
3,452
no_license
#include<iostream> #include<string> #include<map> #include<queue> using namespace std; const int maxn = 100; #define INF 1 << 30 struct node { int vnum; int key;//到已经访问过的顶点边的长度最小值 friend bool operator<(node a, node b) { return a.key > b.key; } }; int n;//顶点个数 int rootnum;//开始点,即最小生成树的根节点 int...
223320286861eac80d73558970e6db28bdbdd197
f82241af6c35ca6d76dbf9f396927b80ed47761e
truongpt/warm_up
/practice/cpp/binary_search_tree/lowest_common_ancestor_of_a_binary_search_tree.cpp
C++
cpp
954
no_license
/* - Problem: https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/ */ #include <iostream> struct TreeNode { int val; TreeNode* left; TreeNode* right; TreeNode(): val(0), left(nullptr), right(nullptr) {}; TreeNode(int val): val(val), left(nullptr), right(nullptr) {}; }; TreeNode* lo...
1684b6a7503fba5b3a980ba7483f03df5127791a
262a211b2a872686f8930c38f93b984ade7d7f68
Alejandro131/OOP2014
/exercises/exercise5/Product.cpp
C++
cpp
1,794
no_license
#include <iostream> #include <cstring> #include "Product.hpp" using namespace std; Product::Product(): weight(0), price(0), barcode(0) { name = new char[1]; name[0] = '\0'; } Product::Product(const char* _name, double _weight, double _price, int _barcod...
d0721e7234e5a83d623d7edd8f9aa1b49e85284d
81108d63f3db5933e09d1df5c837518c8dc6c8c8
dguenms/Dawn-of-Civilization
/CvGameCoreDLL/Boost-1.32.0/include/boost/spirit/core/primitives/primitives.hpp
C++
hpp
17,178
permissive
/*============================================================================= Copyright (c) 1998-2003 Joel de Guzman Copyright (c) 2003 Martin Wille http://spirit.sourceforge.net/ Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying fil...
326e81389f89f76302931ebdef92aa70ea2daa3c
0e6d9bf6bbfc90084304a0168748fac6660ea553
datasound9087/Light
/Lightbulb/src/platform/opengl/GLFrameBuffer.cpp
C++
cpp
2,784
no_license
#include "lbpch.h" #include "GLFrameBuffer.h" #include <glad/glad.h> GLFrameBuffer::GLFrameBuffer(const FrameBufferProps& props) { this->props = props; rebuild(); } GLFrameBuffer::~GLFrameBuffer() { cleanup(); } void GLFrameBuffer::bind() { glBindFramebuffer(GL_FRAMEBUFFER, id); GLint currentViewport[4]; glG...
4e854408c5fe85ed6351729f90719a2b78f94d1c
26a980228ede0fe14d999420c7b8b366d78a91b0
Master-Luo/my-slam-car
/myslam_/src/slam_node/front_node.cpp
C++
cpp
5,773
no_license
/* 接受xx数据,发布xx话题,消息类型为xxx */ //写一个光流追踪,判断关键帧的前端 #include "ros/ros.h" #include <sensor_msgs/Image.h> #include <sensor_msgs/image_encodings.h> #include <cv_bridge/cv_bridge.h> #include <message_filters/subscriber.h> #include <opencv2/core/core.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/highgui...
d5ea45a3c7f915d980686b481ed405bdadc88188
37f756196c3fbbc57adf8d0a05ffff8d4333a306
oshunter/fuchsia
/src/media/playback/mediaplayer/fidl/test/fidl_audio_renderer_test.cc
C++
cc
10,495
permissive
// Copyright 2019 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/media/playback/mediaplayer/fidl/fidl_audio_renderer.h" #include <lib/async-loop/cpp/loop.h> #include <lib/async-loop/default.h> #include <li...
dfa57fb04dfa07ff26d5537420e77fd2d5ee7c8f
2dfd637223082838e1209d34f136fe5e41a8ca41
mdanthony17/neriX
/simulations/nerixsim/AutoDict_vector_vector_float_allocator_float_____.cxx
C++
cxx
535
no_license
#include "vector" #ifdef __CINT__ #pragma link C++ nestedclasses; #pragma link C++ nestedtypedefs; #pragma link C++ class vector<vector<float,allocator<float> > >+; #pragma link C++ class vector<vector<float,allocator<float> > >::*; #ifdef G__VECTOR_HAS_CLASS_ITERATOR #pragma link C++ operators vector<vector<float,all...
acdaddb98d646b0e1b2f1999cee0a86f443c4987
355f776f11e593a5209c12f2d1a34ee33443106b
urykhy/stuff
/mpl/any_iter.cpp
C++
cpp
2,051
no_license
#include <any> #include <cassert> #include <iostream> #include <string> #include <tuple> #include <vector> std::vector<std::any> prepare() { using A1 = std::vector<int>; using A2 = std::vector<std::string>; using A3 = std::vector<float>; A1 a1; A2 a2; A3 a3; for (int i = 0; i < 10; i++) { ...
08eace53851b81a858c5c0193d677f3e4a60f676
34b9e3932906c9c93075e007de431f411d9ef0c6
cioltanandrei/XmasProject
/player.cpp
C++
cpp
2,920
no_license
#include "player.h" const int SKIN_IMAGE_W_PIXELS=64,SKIN_IMAGE_H_PIXELS=64; const bool ANIMATION=false; void Player::Load(char *_name) { Set_name(_name); char path[TEXT_LENGTH_MAX]={NULL}; strcpy(path,"res/skins/"); strcat(path,_name); strcat(path,".png"); skin_image=Load_Transparent_Texture(path); screen_pos...
53124b4bd043ef904da30f8b1715d5eefe37cd92
0e2cd590ce892c8a2b783c54b1f3ba0a0ffce037
vermosen/xlObjectTools
/bot/index/iborIndex/iborIndexObject.cpp
C++
cpp
1,648
no_license
/* * xlObjectTools * * Created by Jean-Matthieu VERMOSEN on 18/07/10 * Copyright 2009. All rights reserved. * */ #include <bot/index/iborindex/iborIndexObject.hpp> namespace QuantLibAddin { iborIndexObject::iborIndexObject( const boost::shared_ptr<QuantLibAddin::ValueObjects::iborIndexValueObject> &...
e35f2afbdfaa644afe5bdec005d568074de89f8c
5330c8111cd88faffd92bfa301f4e73fd81915da
byte4byte/cloudretro
/chrome/browser/chromeos/policy/policy_cert_service.cc
C++
cc
5,165
permissive
// Copyright 2013 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/chromeos/policy/policy_cert_service.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/logging.h" #include ...
570181a14e30cf78f9d777a72d79676c30c280a5
7e842835a5b44d5b880675213e995bf6f0446a47
peterwaller-arm/classic-flang-llvm-project
/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
C++
cpp
137,986
permissive
//===- AMDGPUInstructionSelector.cpp ----------------------------*- C++ -*-==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------...
c712a3103df2493303c474e913e2edd5a179547c
7f713f6a7f41c9e86b53f155afb0ba8b407d56a0
drblallo/flowerEditor
/mainwindow.cpp
C++
cpp
626
no_license
#include "mainwindow.h" #include "ui_mainwindow.h" #include <iostream> #include <functional> MainWindow* MainWindow::mainWindow(NULL); MainWindow::MainWindow() : QMainWindow(NULL), ui(new Ui::MainWindow) { ui->setupUi(this); qApp->installEventFilter(this); mainWindow = this; startUI(); } vo...
31450b33e221ff05b1adf673cb3249840f24ff95
73de771b303655f1360b15a4a361243c3cb9cfa7
MarcinJastrzebski/JP3
/Morse/Source-Morse.cpp
C++
cpp
552
no_license
#include <iostream> #include "Morse.h" #include "TabMorse.h" int main() { Morse m; m.setFrequency(1000); //czestotliwosc m.setPause(400); //przerwa miedzy slowami m.setDotTime(100); //czas trwania kropki m.setDashTime(200); //czas trawnia kreski m.setCharPause(200); //przerwa miedzy znakami m << "A...
916f54943540511b2d01fbdc80bf1ea14425c311
585abaa8451655243cd829cc21e8b4bca0f294e2
Mezozoysky/cfetch
/include/cfetchlib/Config.hpp
C++
hpp
1,563
no_license
// cfetch // // cfetch - Copyright (C) 2016 Stanislav Demyanovich <mezozoysky@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 arising from the use of this software. // // Permission is granted to anyone ...
0a9620c8b85b165492bfa733168a936800233c97
f80f6a57b877511334ae60fa900cc055fc1445e2
vseal001/chromium
/services/device/hid/hid_service_win.cc
C++
cc
11,279
permissive
// 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 "services/device/hid/hid_service_win.h" #include <memory> #define INITGUID #include <dbt.h> #include <setupapi.h> #include <stddef.h> #include...
589fd6f65a11e272e635f97677b5bee5d805ff87
3425cb92c6d5b80fa09e77d443a261009df70aa6
ezhangle/OF-Engine
/src/engine/sound.cpp
C++
cpp
19,006
permissive
// sound.cpp: basic positional sound using sdl_mixer #include "engine.h" #ifdef __APPLE__ #include "SDL2_mixer/SDL_mixer.h" #else #include "SDL_mixer.h" #endif #define MAXVOL MIX_MAX_VOLUME bool nosound = true; struct soundsample { char *name; Mix_Chunk *chunk; soundsample() : name(NULL), chunk(NU...
d4eacc554746085481af9c1c008d9dff7779ba8c
0fdee5646d4452bcae34130644b1dc5c48239e94
lmcchun/open.gl
/stencils.cpp
C++
cpp
9,556
no_license
#include <chrono> #include <iostream> #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" const char* vertexSource = "#version 150 core\n" "in vec3 position;" "in vec3 color;...
91dc705e98b316e6fe30ab645be9dd808770cc93
30a48017aef073608a05d8b4cf9ab910b9b09645
Yash-YC/Source-Code-Plagiarism-Detection
/gcj/gcj/188266/iRabbit/190103/1/extracted/C.cpp
C++
cpp
983
no_license
#include <cstdio> #include <vector> #include <algorithm> using namespace std; int N, C; double p[100]; double dp[100]; double cr(int n, int m) { if (m > n) return 0.0; double sum = 1.0; int j = n - m; for (int i = m + 1; i <= n; i++) { sum = sum * i / j; j--; } return sum; } ...
286a122ced375c558ac0e55b301d6329cd231299
dd2b99254b5d9cdb109a0ea39e364c06018fdb9c
Betterton-Lab/C-GLASS
/include/cglass/point_cover.hpp
C++
hpp
318
permissive
#ifndef _CGLASS_POINT_COVER_H_ #define _CGLASS_POINT_COVER_H_ #include "sphere.hpp" #include "composite.hpp" class PointCover : public Composite { protected: std::vector<Sphere*> sphere_ptrs_; public: PointCover(unsigned long seed); void AddSpherePtr(Sphere* s); }; #endif // _CGLASS_POINT_COVER_H_
cb0b1af041afd3517a1a2de3424fc0fef28bbfb2
9d0ee508434399047d3d5ccac0ac8603e1e6407e
RhineArcedia/the_lazy_bunch
/mono_tum.cc
C++
cc
26,989
no_license
/** * This file is part of ORB-SLAM2. * * Copyright (C) 2014-2016 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza) * For more information see <https://github.com/raulmur/ORB_SLAM2> * * ORB-SLAM2 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Lice...
b282fd0a85a6bf065a21e37ef1afc8529c52709c
b9d67441084653823c8bd0828d4bf2406677efa4
sehe/legacy
/adobe_source_libraries/adobe/adam.hpp
C++
hpp
19,052
permissive
/* Copyright 2005-2008 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://stlab.adobe.com/licenses.html) */ /*************************************************************************************************/ #ifndef ADOBE_ADAM_HPP #def...
ae1125bba1a844eaa3d7a23ad87c941cb8e070d3
a9e941f8a76038cda756e2eeb02a5c572af90529
mingfeisun/gazebo
/gazebo/common/Mesh_TEST.cc
C++
cc
10,068
permissive
/* * Copyright (C) 2012 Open Source Robotics Foundation * * 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 appl...
24c14a4a65bef509cd35290806232fd0f490def1
83f760b69d1352779e9fe4d0ec0df24df20d01c4
likewatchk/python-pcl
/VTK-7.1.1/Rendering/OpenGL/vtkPainter.cxx
C++
cxx
10,686
permissive
/*========================================================================= Program: Visualization Toolkit Module: vtkPainter.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is di...
67fdade3d8f1de1435c67ac0635c8a9fa741581b
8da8c11cbf2b8560cb3629a1e5c4ed78722fb2ff
blockspacer/tconcurrent
/include/tconcurrent/coroutine.hpp
C++
hpp
1,130
permissive
#ifndef TCONCURRENT_COROUTINE_HPP #define TCONCURRENT_COROUTINE_HPP #ifdef TCONCURRENT_COROUTINES_TS #include <tconcurrent/stackless_coroutine.hpp> #else #include <tconcurrent/stackful_coroutine.hpp> #endif namespace tconcurrent { /** Schedule a resumable function * * \param name (optional) the name of the task, fo...
0b2c550a66d608b1836a031f3cd1df71fb51f327
52e9c2cadf666646fc9e06a903904bf4093f0aca
tangyao0792/ACM_Solutions
/hdoj/hdu1850_5783270.cpp
C++
cpp
585
no_license
/* * Author: Tangyao * Email: tangyao0792@gmail.com * tangyao0792.github.com */ #include<cstdio> const int MAXN=110; int a[MAXN]; int n; int main() { #ifndef ONLINE_JUDGE freopen("in.txt","r",stdin); #endif while(scanf("%d",&n)==1 && n) { for(int i=1;i<=n;i++) ...
967acff63ba12298b0bfb3456b9380f8d0c9ab92
aeeb795af41d398b21c95758ab1a2a0b94db5e07
jakubgros/eXtreme-Diminution
/ExtensionXd/HuffmanTree.cpp
C++
cpp
3,496
no_license
#include "HuffmanTree.h" #include <iostream> // usunac jesli nie ma wyjatkow struct HTNode { HTNode* next; HTNode* left; HTNode* right; char ch[2]; int count; }; HuffmanTree::HuffmanTree(ImgWithParam* const img) : img(img), pixmap(""), ptsc(&img->pixmap, choosePalette(img)), root(nullptr), dictionary(new ...
9d91eb544d7f4750f96c9613570695980b8feab0
d6ac8395f25f269e3f489eb92c516065f9cd07ff
THaase71/Main_MiSTer
/minimig_config.cpp
C++
cpp
14,235
no_license
// config.c #include <stdio.h> #include <string.h> #include <stdbool.h> #include <sys/stat.h> #include <dirent.h> #include "hardware.h" #include "minimig_boot.h" #include "file_io.h" #include "osd.h" #include "minimig_fdd.h" #include "minimig_hdd.h" #include "menu.h" #include "minimig_config.h" #include "user_io.h"...
89d3967b385aa63bb0bec62adc0c27bc2df2e5ad
a4fb1ef0d29ea64ffd62bdcb8e6ba6231957879c
blockspacer/ValveLeak_SDK
/dlls/hl2_dll/npc_hydra.cpp
C++
cpp
58,001
no_license
//========= Copyright (c) 1996-2002, Valve LLC, All rights reserved. ========== // // Purpose: // // $NoKeywords: $ //============================================================================= #include "cbase.h" #include "npc_hydra.h" #include "npc_antliongrub.h" #include "ai_hull.h" #include "saverestore_utlvect...
7fc900daa011a1490ba272d45bd1659ce4cd5fb8
4357001069ebf8db35c03f5f53aabe5dc4b1f2aa
bruno101/MN---Tarefa-11
/main.cpp
C++
cpp
8,068
no_license
#include <iostream> #include <vector> #include <tuple> #include <math.h> using namespace std; tuple <double, vector<double>> potReg(double n, vector<vector<double>> A, vector<double> v0, double epsilon) { double lambdaNovo = 0; double lambdaVelho; vector<double> vNovo(n); vector<double> vVelho(n); vector<d...
aee3578a42d532ebc36855f342272a64c2bdb88d
205cd414783108cc88a3449fe70f52e8a0bdaec3
lee-younggwan/Algorithm
/SWExpertAcademy/[D5]/5521-상원이의 생일파티.cpp
C++
cpp
746
no_license
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <vector> #include <string.h> using namespace std; int T, N, M; int main() { int a, b; scanf("%d", &T); for (int test_case = 1; test_case <= T; test_case++) { scanf("%d %d", &N, &M); int visit[501] = { 0, }; vector <int> vec[501]; visit[1] =...
157fc2f21b331c97799537c3fc40071d98d6d8b1
9835d996c515a28d577c361fb4414d7f26e81b00
jiajlin/TrickHLA
/source/TrickHLA/Int64Time.cpp
C++
cpp
3,410
permissive
/*! @file TrickHLA/Timeline.cpp @ingroup TrickHLA @brief This class represents the HLA time. @copyright Copyright 2019 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. No copyright is claimed in the United States under Title 17, U.S. Code. All Other Rig...
14567836f6041570d34513f66e6844905c949384
ca07b40916267d961a9f81d88d3364c79abde22a
bhrnjica/magma
/testing/testing_cpotri.cpp
C++
cpp
5,391
no_license
/* -- MAGMA (version 2.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date June 2018 @generated from testing/testing_zpotri.cpp, normal z -> c, Mon Jun 25 18:24:19 2018 */ // includes, system #include <stdlib.h> #include <stdio.h>...
c512114e1fd23e65780549813da3a32de07e21f7
442db46a67dd1d768ec522bcd89a808ba0b25760
Felanbird/chatterino2
/src/messages/MessageThread.hpp
C++
hpp
1,747
permissive
#pragma once #include <boost/signals2.hpp> #include <QString> #include <memory> #include <vector> namespace chatterino { struct Message; class MessageThread { public: enum class Subscription : uint8_t { None, Subscribed, Unsubscribed, }; MessageThread(std::shared_ptr<const Messa...
6bfcccadc79b8c2941b51873f14182310d83567e
4270a7510dd54244fad764ea5b951376cc054ef4
isliulin/JFC-Tools
/Atelier Courrier/JFCFileDoc/DlgDateTarif.cpp
C++
cpp
3,871
no_license
// Boite dialogue sélection date tarifaire // créé le 20/04/2004 // DlgDateTarif.cpp : fichier d'implémentation // #include "stdafx.h" #include "DlgDateTarif.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // Boîte de dialogue CDlgDateTarif IMPLEMENT_DYNAMIC(CDlgDateTarif, CDialog) /////////////////////////////////////...
8e907153eca0fecb3947d9fffdc69ccfefe54ebc
2731afaa62db0129dc69809e544e186f1cf9f549
jgespino/openvino
/inference-engine/tests/functional/plugin/shared/src/single_layer_tests/split.cpp
C++
cpp
3,040
permissive
// Copyright (C) 2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <tuple> #include <string> #include <vector> #include <memory> #include <functional> #include <functional_test_utils/skip_tests_config.hpp> #include "ie_core.hpp" #include "ngraph_functions/utils/ngraph_helpers.hpp" #include "c...
d20bed1af79004785cfddfd8efaa3cc5bad1e8df
c162761e0888572c445785baa9ab6ce11c4730d1
emedinaa/cpp-basic-exercises
/DataStructures/exercises/exercise3.cpp
C++
cpp
1,158
no_license
// // Created by Eduardo Medina on 26/04/18. /* Usted tiene como entrada dos vectores (a y b) y se quiere saber qué valores y el orden correcto que se almacena en el tercer vector c después de aplicarles el algoritmo1: Vector a: 8, 3, 4, 12 Vector b: 10, 5, 9 */ #include <iostream> using namespace std; ...
0d3ea99bbf617c719c5b4b281086a0241cc48e2b
779f741dbcc283386a41dbc5d97dacac6ac776eb
hienmv/v8
/src/handler-table.cc
C++
cc
7,691
permissive
// Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/handler-table.h" #include <iomanip> #include "src/assembler-inl.h" #include "src/objects-inl.h" #include "src/objects/code-inl.h" names...
eacff4b763169fa2cba0980e935e0b02acc25d2e
82c066a43410ebbf0acb5b67f9eaf6d01fd4a4f0
GXhua/puno
/.libs/puno_automatic_generated/inc/types/com/sun/star/view/XPrintable.hpp
C++
hpp
1,328
no_license
#ifndef INCLUDED_COM_SUN_STAR_VIEW_XPRINTABLE_HPP #define INCLUDED_COM_SUN_STAR_VIEW_XPRINTABLE_HPP #include "sal/config.h" #include "com/sun/star/view/XPrintable.hdl" #include "com/sun/star/beans/PropertyValue.hpp" #include "com/sun/star/uno/XInterface.hpp" #include "com/sun/star/uno/Reference.hxx" #include "com/su...
4b05decdabc96a1dbff95592b1b2676c8d501ad7
e674adfd827b25d6c2d0c90fb6d9dbd4d12319fc
jbatonnet/ugly
/FreeMarketClient/Main.cpp
C++
cpp
475
permissive
#include "Client.h" namespace FreeMarket { class MyClient : public GameClient { public: void InitGame(GameConfig& gameConfig, PlayerConfig& playerConfig) {} void PlayTurn(Game& game, Player& player) {} }; } int main(int argn, char** argv) { FreeMarket::MyClient client; if (argn...
c061686abff66d2eea8a7a99a2428097705ecacc
6e41695d2e7860b27a6380b59f494e22e4413b8a
DarkCodez/TCF-SDK
/SDK/TCF_FortunaPassScreensBigContent_WBP_functions.cpp
C++
cpp
1,615
no_license
// The Cycle Frontier (1.X) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "TCF_FortunaPassScreensBigContent_WBP_classes.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //---------------------------------------------------------------------...
e7752c9971536cf620918802c07002781d506b16
0a2a19b7654a4870479a336fc72f99a9ee7dcdba
bsjung/bitcoin-abc
/src/networks/abc/chainparamsconstants.cpp
C++
cpp
950
permissive
/** * @generated by contrib/devtools/chainparams/generate_chainparams_constants.py */ #include <chainparamsconstants.h> namespace ChainParamsConstants { const BlockHash MAINNET_DEFAULT_ASSUME_VALID = BlockHash::fromHex("00000000000000000cdb64664b4442c184f9416adb0e0850948786bf2ee6283b"); const uint256 MAINNE...
1ed03c472e686cecdc0613d4f1a70a82e0151c31
407a2fd40f69df1ed30f2cf4417af3f9b9b8c108
EstelleWu/LearnCppPlusPrimer
/5LoopsAndRelatoinalExpressions/equal.cpp
C++
cpp
471
no_license
// Listing 5.10 // equal.cpp -- equality vs assignment #include <iostream> int main() { using namespace std; int quizscores[10] = {20, 20, 20, 20, 20, 19, 20, 18, 20, 20}; cout << "Doing it right:\n"; int i; for (i = 0; quizscores[i] == 20; i++) cout << "quiz " << i << " is a 20\n"; // c...
776e46861f5b61ce922342eb4b9a0b5e84dfa211
7d30bdcffbbf80e97f6c0bd1dff46a6e52128779
SirWaddles/MazeGame
/src/maze/maze.cpp
C++
cpp
8,713
no_license
#include "walls.h" #ifndef _M_SERVER_ #include "graphics/graphics.h" #endif #include <time.h> #include <vector> using namespace std; #ifndef _M_SERVER_ using namespace GraphicsM; #endif vector<Block*> blockList; int mazeWidth = 0; int mazeHeight = 0; #ifndef _M_SERVER_ Maze::MazeGeometry Maze::CreateGeometry(){ Mod...
b97a06a5b577c90b7ca5007dcb19a923a694fd5a
3ed2e56901b5b2ab5d2398c2ae52d8ff29724636
AnnyCarolineS/POO_2018.2
/agiota/agiota.cpp
C++
cpp
5,034
no_license
#include <iostream> #include <sstream> #include <vector> #include <map> using namespace std; template <class T> T read(){ T t; cin>>t; return t; } class Devedor{ string nome; int divida; public: Devedor(string nome = "", int divida = 0){ this->nome = nome; this->divida = divida; } in...
cd952a3fa8b83e6f0067da8f93928536a4f3e272
b618c8c9b4a77457140670b93784484c28c30c35
massnetwork/mass-browser
/chrome/browser/ui/libgtkui/gconf_listener.cc
C++
cc
6,700
permissive
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/libgtkui/gconf_listener.h" #include <gtk/gtk.h> #include <memory> #include "base/bind.h" #include "base/callback.h" #includ...
2bc4a0b27e07c36b97982fbefc921abba66d8b22
dec28deff3bae5a15c17a4a1e334d315f6341a7f
tmcclain-taptech/Ovaldi-Win10
/ovaldi-code-r1804-trunk/src/probes/windows/VolumeProbe.cpp
C++
cpp
17,671
no_license
// // //****************************************************************************************// // Copyright (c) 2002-2014, The MITRE Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are ...
2d53155654763a11606abd05cc467916dbf82adb
34e94d84a3a836ae50967e16c64f561c3a3774d1
D-os/EasyToolkitAndExtension
/etkxx/etk/interface/Theme.cpp
C++
cpp
3,563
permissive
/* -------------------------------------------------------------------------- * * ETK++ --- The Easy Toolkit for C++ programing * Copyright (C) 2004-2006, Anthony Lee, All Rights Reserved * * ETK++ library is a freeware; it may be used and distributed according to * the terms of The MIT License. * * Permission ...
1a3cb962763ce44cc192881a94f6652e68efd85e
510c4441c7a5a825da024af34106af21aaea3bdb
WhiZTiM/coliru
/Archive2/f6/10bbdb4aee4944/main.cpp
C++
cpp
484
no_license
template <class U, enable_if_t<!is_convertible<U&&, T>::value && is_constructible<T, U&&>::value>> explicit constexpr propagate_const(propagate_const<U>&& pu) : t_(std::move(get_underlying(pu))) { } template <class U, enable_if_t<is_convertible<U&&, T>::value && ...
dd9e8c06a9f1fa001e9b38eefaa1e81ebf0fb005
8b4aefaf580d8bc2c159bb8fc83dd07d8fc9f368
Codeon-GmbH/mulle-clang
/test/OpenMP/target_update_device_messages.cpp
C++
cpp
3,203
permissive
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s -Wuninitialized // RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s -Wuninitialized void foo() { } bool foobool(int argc) { return argc; } struct S1; // expected-note 2 {{declared here}} template <class T, class S> int tmain(T argc, S **argv) { ...
0b61323551acb75fb053e403d6969ceeadf16793
d6fa91f8d792157bc2484cf5b43b0027a829c7ff
charlesboudousquie/Workbench
/tempest_source/Engine/TempestEngine/External/bundleManipulator.hpp
C++
hpp
975
no_license
/*!*************************************************************************************** \file bundleManipulator.hpp \author Aaron Damyen \date 7/31/18 \copyright All content © 2018-2019 DigiPen (USA) Corporation, all rights reserved. \par Project: Boomerang \brief *******************...
d90f085a23a24da88a1979bcfbd6d0c60d147129
9d9d2f332835711d1005511bf92e03abc6e7b2c7
venkatesh799/CPP
/STL(Standard Template Library)/Comparators.cpp
C++
cpp
767
no_license
#include<iostream> #include<set> #include<map> using namespace std; int main() { set<int,greater<int>> s1; // we will get set in descending order s1.insert(10),s1.insert(100),s1.insert(80); for(auto &val:s1) { cout<<val<<endl; } cout<<endl; set<int,less<int>> s2; // we...
ab734843ac586851260d82550ff0a010746987b6
024607152226ebf2e8075217874638fc225e6eec
NSCCWX-AMD/HSF
/src/utilities/mpiWrapper/communicationManager/communicationManager.cpp
C++
cpp
9,599
permissive
/* Copyright (C) * 2019 - Hu Ren, rh890127a@163.com * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This pr...
a301e373528b9667170f10d26bc1140213486035
2b09bbb5d4ab2cd1367ac5f01c446c00cb278af8
ca2/nodeapp-windows
/appseed/multimedia_directsound/multimedia_directsound_factory_exchange.cpp
C++
cpp
459
no_license
#include "framework.h" namespace multimedia { namespace directsound { factory_exchange::factory_exchange(sp(::axis::application) papp) : ::object(papp) { } factory_exchange::~factory_exchange() { } } // namespace directsound } // namespace multimedia ...
63007b747b7895f389732e82a27ab096e1d6a720
5937af4037590db688ebf290ff98de914bf7f605
2bite/ARK-SDK
/SDK/ARKSurvivalEvolved_DinoColorSet_Gacha_functions.cpp
C++
cpp
1,027
permissive
// ARKSurvivalEvolved (332.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_DinoColorSet_Gacha_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //---------------------------------------------------------------...
f05fc2b8b4154604da098b0c5ee424dcc29a8d17
353b6f9e6d724714e2eddd1a9d189645cdc0c97e
bshock/game-client-server-prototype
/Tests/main.cpp
C++
cpp
23,774
no_license
#include <QCoreApplication> #include <iostream> #include "../Common/parsemessages.h" #include "../Common/parsesingle.h" #include "../Common/playercommunicator.h" #include <mutex> #include <thread> #include "../Common/playerdeletelock.h" #include "../GameServer/playermanager.h" #include "../GameServer/gamecontainer.h" #...
df7974e70ea942229218238aaa8ef4b8fa96ed0c
49e761f1aba236f92de9cd8ecc2f030734e07f85
cheoljoo/educated-advanced-cpp
/2019_first_class/Day3/4_temporary5.cpp
C++
cpp
664
no_license
/* 4_temporary5 - 참조 캐스팅 */ #include <iostream> //using namespace std; /* - */ struct Base { int value = 10; }; struct Derived : public Base { int value = 20; }; int main() { Derived d; std::cout << d.value << std::endl; // 20 // Derived d를 Base 임시객체를 만들어 복사를 한다. std::cout << static_cast<Base>(d).value <<...
a7df5e7680a7089bde16eeabfd522baba648145b
afb6256bf2315a5ef1feab39ea6fee6cb8694e62
niranjan-nagaraju/Development
/c++/hackerearth/monks_and_the_islands/monks_and_the_islands.cpp
C++
cpp
3,102
no_license
/** https://www.hackerearth.com/practice/algorithms/graphs/breadth-first-search/practice-problems/algorithm/monk-and-the-islands/ Monk and the Islands Monk visits the land of Islands. There are a total of N islands numbered from 1 to N. Some pairs of islands are connected to each other by Bidirectional bridges runnin...
df2136da3ba7a62a0ff9dcb3351ed6c2bb45dc42
54bd25cecce7f36d54380b667593022a650cb3d6
mayank-bhardwa/Placements
/SegmentTree.cpp
C++
cpp
1,624
no_license
#include <iostream> #include <vector> using namespace std; int log(int n) { // ceil(log2(n)) equivalent return 32 - __builtin_clz(n) - 1; } struct SegmentTree { private: int size; vector<long long> sums; void set(int i, int v, int x, int lx, int rx) { if (rx - lx == 1) { ...
1a8ec47aceb84069d189bb39a1ce0a1e8670b038
1973f91c41a69af0d7949ed6f23fd9cc3119627c
lin0sspice/vip
/src/qt/qtipcserver.cpp
C++
cpp
4,925
permissive
// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/version.hpp> #if defined(WIN32) && BOOST_VERSION == 104900 #define BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTT...
14d857bc8de966b6b46314921ee282c2496c8fdc
efa9a5dcebeacd035070ffd7418447162bb86282
BobDeng1974/graphics
/tutorials/02.Hello_Triangle/cpp/main.cpp
C++
cpp
6,037
no_license
///// main.cpp ///// GLSL 3.30 #include <GL/glew.h> #include <GLFW/glfw3.h> #include <iostream> #include <string> #include <fstream> #include <cassert> //////////////////////////////////////////////////////////////////////////////// /// 쉐이더 관련 변수 및 함수 /////////////////////////////////////////////////////////////////...
cf1eb105799c82b5cf6be423fa7e5aedade8def3
94c2917a2f7b233eb395f44163f374183a35183e
tomasero/Mynput
/Code/USBDevice/USBAudio/USBAudio.cpp
C++
cpp
26,974
no_license
/* Copyright (c) 2010-2011 mbed.org, MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, modify, merge...
f1e9e0c5c7e27c22f651361fd516bbee2f82b342
85587587fed6f4f2faecd22d9298279b841875ef
fengyhack/zlog
/test/stress/test_stress.cpp
C++
cpp
7,641
permissive
#ifdef ZLOG_QT_VERSION # include <QCoreApplication> #endif #include <stdio.h> #include <string.h> #include <signal.h> #if WIN32 #include <Windows.h> #include <process.h> #else #include <unistd.h> #include <pthread.h> #include <stdlib.h> #endif #ifdef ZLOG_QT_VERSION # include "zlog.h" #else # include...
336ff59c6f074361fc6c731e4bcafea366648e95
4580cb53d8d10d21753208c5fe6dfe7f33adcc6c
iridinite/wirefox
/external/asio/src/tests/unit/async_result.cpp
C++
cpp
590
permissive
// // async_result.cpp // ~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Disable autolinking for unit tes...
aff806f68baf299a5f2d09ebfeb1eb969ecfa2f5
574bc735c8858ca449f49e2fe26411f542f4e415
JayhawkZombie/EECS581Project
/SFEngine/ThirdParty/Physics/lineSegSwing.cpp
C++
cpp
4,179
permissive
#include "lineSegSwing.h" #include "mvHit.h" bool lineSegSwing::gravity_on = true; vec2d lineSegSwing::grav = vec2d(0.0f, 0.4f); lineSegSwing::lineSegSwing(std::istream& fin) : lineSegRotate(fin) { fin >> m;// >> grav.x >> grav.y; } void lineSegSwing::init(std::istream& fin) { lineSegRotate::init(fin);// base ov...
e564c2471cc771f647cf60b46574c5455da8d9e6
5390a9ad64c731b6684441290b6a3e5419b02370
mmahdi/ecn_arpro
/lecture_examples/random.cpp
C++
cpp
1,415
permissive
#include <iostream> // old way - easy to use #include <stdlib.h> #include <time.h> // modern way #include <random> int main() { // old way: rand() generates integers between 0 and RAND_MAX-1 std::cout << "Old way" << std::endl; // seed of the random numbers generator srand(time(0)); for(int i = 0; i < 10;...
21969030cf7d4d5687fcf227e745fb8c81a18c1c
2724aa41f18162eb8f5a1924b9f95a0b514190d1
eimoreno/navio
/lnx/stripExecutable/strip.cpp
C++
cpp
3,576
no_license
// Construção baseada nas definições de https://en.wikipedia.org/wiki/Executable_and_Linkable_Format #include <iostream> #include <fstream> #include <string> using namespace std; int main(int argc, char* argv[]){ if(argc<2){ cout << "Deve-se informar o arquivo executavel que deseja investigar" << endl; ret...
64efc9f052183852848f4af9a1aa4ae013b12655
f3692593b7a0b61047e4eed1ae706d6eb05181b4
MatthewAHarvey/OldE2EStepperController
/ArduinoCode/SerialChecker.cpp
C++
cpp
54,712
no_license
#include "SerialChecker.h" /** * @brief Constructs the object. Dynamically creates a char array to hold message buffers. Assigns the the default arduino serial port. */ // SerialChecker::SerialChecker(){ // this->serialType = serialTypes::HardWare; // this->port.hardware = &Serial; // rawMessage = ...
1d84e75be59494f094c51f7c8ed58b35af0abcc5
833957473105d1981bb7c05bda86c56071b1e465
nepstad/einelektron
/einpartikkel/core/potential.cpp
C++
cpp
6,647
no_license
#include <core/wavefunction.h> #include <core/potential/dynamicpotentialevaluator.h> using namespace blitz; template<int Rank> class KineticEnergyPotential : public PotentialBase<Rank> { public: //Required by DynamicPotentialEvaluator cplx TimeStep; double CurTime; //Potential parameters double mass; /* * C...
016fe699028ddc0cdbdd7b80bce0b79cf864b0db
baa6c5d09470f5e233255f6c84095286a3fee389
TommyTranX/CoopShooter
/Source/CoopGame/Private/SWeapon.cpp
C++
cpp
5,078
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "SWeapon.h" #include "DrawDebugHelpers.h" #include "Kismet/GameplayStatics.h" #include "Particles/ParticleSystem.h" #include "Components/SkeletalMeshComponent.h" #include "Particles/ParticleSystemComponent.h" #include "PhysicalMate...
a0a3833ebb5d348c715fbbb79b424e23f8b0c6a5
8524d7c1477aba29d8dec1d7ac7f28e663825f9e
xurubin/ParallelCollisionSearch
/unknownorder_gmp.cpp
C++
cpp
13,253
no_license
#include "common_gmp.h" void ucheck_gmp_(char *infile){ cout<<"Unsupported ucheck_gmp"<<endl; /* miracl *mip; FILE *fp; InputCell *data; big order; int datac,i; mip=mirsys(-1024,16); //Use Hex internally / mip->IOBASE = 16; fp=fopen(infile,"rt"); if (fp==NULL) { ...
4ac1728531b22aa2390f997afff83782b095f568
b524dcdf70fcfafd240990c8b2e4d0ce63d70f27
DmitrySigaev/ncbi
/include/objtools/blast/seqdb_reader/impl/seqdbgeneral.hpp
C++
hpp
39,139
no_license
#ifndef CORELIB__SEQDB__SEQDBGENERAL_HPP #define CORELIB__SEQDB__SEQDBGENERAL_HPP /* $Id$ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is...
5d0d41bb720a66a501505eb808030db52b0bd911
6224bf047deb0d354905c05163667e9406f7ecf7
k2font/atcoder
/abc111_C.cpp
C++
cpp
1,701
no_license
#include<bits/stdc++.h> using namespace std; const int maxn=1e6+5; int n; int bj[maxn]; int a[maxn]; int cnta[maxn]; int cntb[maxn]; typedef pair<int,int> pii; int main() { ios::sync_with_stdio(false); cin>>n; for(int i=1;i<=n;i++) { cin>>a[i]; if(i&1) { cnta[a[i]]...
df1abbc6ae60ab1ff467217551187766d0cc49a1
cd021681b9056ae46a72f553b56284611acb858d
LuuuuuG/TarenaNotes
/DMS1601/day03/server/oracledao.cpp
C++
cpp
653
no_license
// 实现Oracle数据访问对象类 #include <iostream> using namespace std; #include "oracledao.h" // 构造器 OracleDao::OracleDao (string const& username, string const& password) throw (DBException) { cout << "建立数据库连接开始..." << endl; cout << "建立数据库连接完成。" << endl; } // 析构器 OracleDao::~OracleDao (void) { cout << "关闭数据库连接开始..." << endl...
0d3596ebd51cda562ab03152c60b770bc63c5163
be932593309f278e2b05f262694cf7fb47360ddf
andnej/tddcpp
/test/SoundexTest.cpp
C++
cpp
693
no_license
#include <gmock/gmock.h> #include <gtest/gtest.h> #include "../Soundex.hpp" class SoundexEncoding : public testing::Test { private: /* data */ public: Soundex soundex; }; TEST_F(SoundexEncoding, RetainSoleLetterOneWord) { auto encoded = soundex.encode("A"); ASSERT_THAT(encoded, ::testing::Eq("A000")); } TES...
e90407f2e901486a210f20d4e1cbbeb6b435edcc
5fc1e190ba0eb2b4f4ba0a7144dcf4b4cb0f7892
IsaackEz/Projects
/C++/Math/Methods/Interpolacion Newton.cpp
C++
cpp
1,504
no_license
#include<iostream> #include<math.h> #include <stdlib.h> #include <cmath> using namespace std; int main(){ int n; float Px, x, x0, x1, x2, x3, fx, fx1, fx2, fx3, fx4, fx12, fx23, fx34, fx45, fx56, fx123, fx234, fx345, fx456, fx1234, fx2345, fx3456, fx12345, fx23456, fx123456; cout<<"N: "; cin>>n; float cadenafx[n]...
fbf0aecf3a55f6e8f9bc1140dbdf8282e114c90c
fa20bd2a8f98d9ff93bbea84e411271d8aa8dfef
satwik707/practice-coding
/Trees/print_ancestors_IMPORTANT.cpp
C++
cpp
419
no_license
int p(struct Node *root, int target) { // Code here if(root==NULL) { return 0; } if(root->data==target) { return 1; } if(p(root->left,target)||p(root->right,target)) { cout<<root->data<<" "; return 1; } return 0; } bool printAnce...
f01e3064ae0812087016e066328cdaeb7253fe1e
d6e5507298f535bf103e4b666359ce29fc371baf
qceplis/ConnectWithCare
/CommonFiles/MessageTypes/MessagesTheClientSends/ClientBasicMessage.cpp
C++
cpp
1,690
no_license
#include "ClientBasicMessages.h" #include "../../Utilities/VariableLengthQuantityLibrary.h" #include <iostream> ClientBasicMessage::ClientBasicMessage(const unsigned long int lengthArg, const unsigned char* messageAsCharArrayArg) : Message(lengthArg, messageAsCharArrayArg) { const unsigned char* messageCharArra...
c281060e95d14204ce386f1275b91f7184e4abcf
449a9ca5f0cf5bc36988ba7a77c7be7eb149eed5
cjsoft/inasdfz
/d0710/attachments/source/余姚中学叶炜宁/icefall.cpp
C++
cpp
1,369
no_license
#include<cstdio> using namespace std; int T,n,mod,f[210][210][2][210],s[210][210][2][210]; int main() { freopen("iceball.in","r",stdin); freopen("iceball.out","w",stdout); scanf("%d",&T); while (T--) { scanf("%d%d",&n,&mod); for (int i=0;i<=n;i++) for (int j=0;j<=n;j++) for (int k=0;k<=n;k+...
f4e76294e29fab7c766376dc3e9f28ca34a3536d
2cef7363dd3d692d9710777271bbbc5d50ee0ee1
WillMon/OpenGL-Lighting
/tutorials/LightingOBJApplication.cpp
C++
cpp
4,697
permissive
#include "LightingOBJApplication.h" #include "gl_core_4_4.h" #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/ext.hpp> #include "Camera.h" #include "Gizmos.h" #include "Shader.h" #include "Mesh.h" using glm::vec3; using glm::vec4; using glm::mat4; LightingOBJApplication::LightingOBJApplication() : m_ca...
74f0dccf39f2134172bbc4ded127279c5c551926
d167212ef2f4b3af05af35089166ffb71ac29a0f
scheib/blink
/Source/bindings/core/v8/ScriptPreprocessor.cpp
C++
cpp
5,187
permissive
/* * Copyright (C) 2013 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
bd241e7efcfad57a84c92983d34b0c2e321c02e8
f7431f6e8c182ced1fcf7d251d08d43611b58122
Henauxg/ExperimEngine
/src/engine/render/vlk/VlkWindow.hpp
C++
hpp
936
permissive
#pragma once #include <vector> #include <engine/render/Window.hpp> #include <engine/render/vlk/VlkInclude.hpp> namespace experim { namespace vlk { class VulkanWindow final : public Window { public: VulkanWindow(int width, int height, const std::string& title); VulkanWindow(int width, int height, const std::...
f42e7d8a2ad6158ad75dce7dfbc27cf389b39ce8
144de5792e7997f118cae4433c42998b4b0cece8
warrenween/Elastos
/Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/database/AbstractWindowedCursor.cpp
C++
cpp
6,024
permissive
//========================================================================= // Copyright (C) 2012 The Elastos 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 // // ...
c7caf1acf0b999089f4732b02af7f85c71c03116
22f847d4779c1cc70f6d6468cf39c2df2f37d712
b2n-project/b2n-wallet
/src/Gui/Transactions/FilteredTransactionsModel.cpp
C++
cpp
1,611
permissive
/* * Copyright (c) 2018, The bitcoin2network developers. * Portions Copyright (c) 2012-2017, The CryptoNote Developers, The Bytecoin Developers. * * This file is part of bitcoin2network. * * This file is subject to the terms and conditions defined in the * file 'LICENSE', which is part of this source code...
20ba4242e060985bde3b2be33177da74a5badfa8
36ce38335af2330b9cb724f12314a448be02fe6f
daodaoliang/hifi
/libraries/shared/src/ShapeInfo.cpp
C++
cpp
13,852
permissive
// // ShapeInfo.cpp // libraries/physics/src // // Created by Andrew Meadows 2014.10.29 // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "ShapeInfo.h" #include <math....
86ad4c4dbb5005a28f98ef6c2fc9c8c742248385
067c5e1021db11a3a1dc6bd2c1d271f094e510bc
UnofficialElDewrito/ElDorito
/ElDorito/Source/Web/Ui/WebConsole.cpp
C++
cpp
1,358
no_license
#include "Web\Ui\WebConsole.hpp" #include "Web\Ui\ScreenLayer.hpp" #include "Console.hpp" #include "Patches\Input.hpp" #include "ThirdParty\rapidjson\writer.h" #include "ThirdParty\rapidjson\stringbuffer.h" using namespace Blam::Input; namespace { class WebConsoleOutputHandler : public Console::ConsoleOutputHandler ...
9f5ee03c6a37c7837d72dd7e82ec037abc67f06f
fe1ee2640be2390228ba8b4b19ee2a065b846269
BEAMRobotics/ladybug_camera
/src/reorder_bag.cpp
C++
cpp
3,608
permissive
#include <ros/ros.h> #include <rosbag/bag.h> #include <rosbag/view.h> #include <sensor_msgs/Imu.h> #include <sensor_msgs/Image.h> int main(int argc, char* argv[]){ std::string input_bag_name = argv[1]; rosbag::Bag input_bag{input_bag_name}; rosbag::View img_view(input_bag, rosbag::TopicQuery("/ladybug/camera4...
ab6879e9ae79494b06a6315b5752b66eeff39d04
247639cd0509fb3c9f7a11f52fd39db4d2b921ca
Arles96/ProyectoLab_ArlesCerrato
/Konami.cpp
C++
cpp
282
no_license
#include "Konami.h" Konami::Konami() { } Konami::Konami(string pNombre, int pAno, string pConsola, int pNumero_jugadores, string pGenero, string pEstado, int pSerie, double pPrecio) : Videojuegos(pNombre,pAno,pConsola,pNumero_jugadores, pGenero, pEstado, pSerie, pPrecio) { }
edc6ad61c9ddde63f744ebff42219a7bf4b7455c
5eedba040904c9308db9e0b699eb21bf484c6385
rohitativy/turicreate
/src/external/armadillo/tests/gen_ones.cpp
C++
cpp
2,802
permissive
// Copyright 2015 Conrad Sanderson (http://conradsanderson.id.au) // Copyright 2015 National ICT Australia (NICTA) // // 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...
ee825aada54e2cdc200b2662e68c108fd1256ce5
bd36a1f000cd361022f2978e006402085f0e727f
ICHiggsInv/ICHiggsTauTau
/Analysis/HiggsHTohh/src/HhhCategories.cc
C++
cc
35,092
no_license
#include "UserCode/ICHiggsTauTau/Analysis/HiggsHTohh/interface/HhhCategories.h" #include "UserCode/ICHiggsTauTau/Analysis/HiggsTauTau/interface/HTTConfig.h" #include "UserCode/ICHiggsTauTau/interface/PFJet.hh" #include "UserCode/ICHiggsTauTau/Analysis/Utilities/interface/FnPredicates.h" #include "UserCode/ICHiggsTauTau...
25bf1679c603d567607931d4eb5a91d5c849a002
68e1f37c4ad158f63ba1db314d86b303b7af98ca
arangodb/arangodb
/3rdParty/boost/1.78.0/boost/math/distributions/hyperexponential.hpp
C++
hpp
22,216
permissive
// Copyright 2014 Marco Guazzone (marco.guazzone@gmail.com) // // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // This module implements the Hyper-Exponential distribution. ...
7d36342cdc9aefe417b6f634d26529dcf5ab7fc4
571d3a6802050eef2b0daab221fb87e0161da7e5
face4/yukicoder
/Level2_5/0726.cpp
C++
cpp
1,043
no_license
#include<iostream> #include<cmath> using namespace std; typedef long long ll; bool isprime(ll a){ if(a == 1) return false; if(a == 2) return true; if(a%2 == 0) return false; for(ll i = 3; i <= sqrt(a); i+=2){ if(a%i == 0) return false; } return true; } int main(){ ...
e2b4d456b27a20b8ec131be3b0f279241a4417bb
208955849d33d15cb6c2f0103b5bb7ce05b58b20
condordev/SmartCPP
/SimpleRAII/SimpleRAII.cpp
C++
cpp
1,450
no_license
// SimpleRAII.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <memory> /* * memory allocation vs RAII */ struct Resource { int a; //Resource() { std::cout << "C'tor a = " << a; } ~Resource() { std::cout << "D'tor a = " << a << "\n"; ...