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
ea6cc61d0a35604e4adbf41ef48482271e707304
5cb5e5882cf717b2535118bfa274633637036ea7
benbenw/honest-profiler
/src/main/cpp/circular_queue.cpp
C++
cpp
2,266
permissive
#include "circular_queue.h" #include <iostream> #include <unistd.h> bool CircularQueue::push(const JVMPI_CallTrace &item) { size_t currentInput; size_t nextInput; do { currentInput = input.load(); nextInput = advance(currentInput); if (output.load() == nextInput) { retur...
cfcfb73ca69a9c10c9186b46f69dc4c48bb1be6b
a75dcf3141596564bdda0f9c6ed3df070976e06d
carolclark/swift
/lib/IDE/IDETypeChecking.cpp
C++
cpp
20,636
permissive
//===--- IDETypeChecking.cpp ----------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
bc0a6299c50fea65605cb872d8bdb17cb3e474c5
2a645d4d88fda93c0fad3a9bd7a7f4870dbfd42e
Wqxleo/C_plus
/实验4.A家教.cpp
C++
cpp
1,569
no_license
#include <iostream> #include <string> using namespace std; class Person { public: Person(string s1) { name = s1; cout<<"Person "<<name<<" is created."<<endl; } ~Person() { cout<<"Person "<<name<<" is erased."<<endl; } protected: string name; }; class...
3b64c64d79720862f9f2a3b163d4d8432b9ca1f4
f7a783f4dc606e2fd56c5961ff902fa84686806d
fandongwei/radiox
/cpp/LobePrior_LogNormal.cpp
C++
cpp
1,264
no_license
/* @author Dongwei Fan <fandongwei@nao.cas.cn> http://www.lamost.org/~dwfan/ sponsored by NSFC (National Natural Science Foundation of China) No. 11503051 Institute: National Astronomical Observatories, Chinese Academy of Sciences and also from Chinese Virtual Observatory http://www.china-vo.org/ please cite http://mnr...
88e240529efc4e66293d907e4c4e56513b6dba09
37055b437e6f35acbc59b1252d44b5562715ff7f
NjnuTZhou/Data-structure
/algorithm1/algorithm1/源.cpp
C++
cpp
544
no_license
#include<stdio.h> #include<stdlib.h> //有序线性表的合并 void main() { int a[5] = { 2,5,8,11,16 }; int b[10] = { 3,4,6,9,10,11,16,19,20,21 }; int c[15] = {}; int i = 0; int j = 0; int p = 0; while (i < 5 && j < 10) { if (a[i] <= b[j]) { c[p] = a[i]; i++; } else { c[p] = b[j]; j++; } p++; } if (i ...
95fb979cbba0a42ce366a117d055d31ad1725072
c381f505b6267edef037699d750433d3d7dc0e14
joshuaseol/incubator-reef
/lang/cpp/reef-bridge-clr/src/main/Cpp/CppBridge/JavaClrBridge/ActiveContextClr2Java.cpp
C++
cpp
4,267
permissive
/** * 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...
250c45643db4429b5a6193c180d001e4bea98a31
dc09b50216e74e0f45ebecc3ac736494fab86ba6
nidhalrahali/v8
/src/wasm/baseline/liftoff-compiler.cc
C++
cc
146,510
permissive
// Copyright 2017 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/wasm/baseline/liftoff-compiler.h" #include "src/base/optional.h" #include "src/codegen/assembler-inl.h" // TODO(clemensb): Remove depende...
ac7dfb49f2465ecc2e8aae3f14488d9987b7d694
6a2c1436349c988a70fdc7eb9e4b20f1becf527f
0x17/CPP-RCPSP-OC
/GurobiSolver.cpp
C++
cpp
12,298
no_license
#ifndef DISABLE_GUROBI #include "GurobiSolver.h" #include "ProjectWithOvertime.h" using namespace std; GurobiSolverBase::Options::Options() : BasicSolverParameters(GRB_INFINITY, -1, false, "GurobiTrace_", 1), // 0 useSeedSol(true), gap(0.0), displayInterval(1), saveTimeForBks(false) { } GurobiSolverBase::Custo...
7aca3aa4eccf642da880d21fd6445597ad6f781b
f0547ba6aa778a77d61b57d3eb36cb33e5e6e7e6
iammarajul/competitive_programming
/Toph/INtra city unv/2.cpp
C++
cpp
938
no_license
#include<bits/stdc++.h> using namespace std; int sc1(){int x; scanf("%d",&x); return x;} long long sc2(){long long x;scanf("%lld",&x);return x;} #define gcd(a,b) __gcd(a,b) #define lcm(a,b) (a*b)/gcd(a,b) #define Int sc1() #define LL sc2() #define For(n) ...
4497985e565c99d53f8c0c6af35f0e8a2ae517d7
9c85911f84ef3182393207ff0a56717c3431a0c2
SARPAINe/Codeforces
/584B.cpp
C++
cpp
880
no_license
#include<cstdio> #include<cmath> #include<cctype> #include<cstdlib> #include<iostream> #include<algorithm> #include<string.h> #include<vector> #include<list> #include<set> #include<utility> #include<map> #include<queue> #include<deque> #include<stack> #include <iterator> //iterators #include<stdio.h> #include<limits.h...
1e7eba8fdb156fa60056d433b88e1ddfabd1a92c
40d37f1a0ea7fc2793b05dd7c6043fc327975859
locusy/react-native-app-base
/node_modules/react-native/ReactCommon/cxxreact/CxxNativeModule.cpp
C++
cpp
5,768
permissive
// Copyright 2004-present Facebook. All Rights Reserved. #include "CxxNativeModule.h" #include "Instance.h" #include <iterator> #include <folly/json.h> #include <cxxreact/JsArgumentHelpers.h> using facebook::xplat::module::CxxModule; namespace facebook { namespace react { std::function<void(folly::dynamic)> make...
a3a8c3e56471ed8beb3d7c244cf27d67b1ca8955
2921bb4bf3bc158e8923f08ec717cdeae453c9d4
nyccowgirl/coding-challenges
/leet/C++/maxdepthbinarytree.cpp
C++
cpp
1,971
no_license
/* Given the root of a binary tree, return its maximum depth. A binary tree's maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. Example 1: Input: root = [3,9,20,null,null,15,7] Output: 3 Example 2: Input: root = [1,null,2] Output: 2 Example 3: Input: ro...
b2ddfd5fa28797f32a2f79be22115995485a0329
f132eab14808ab78a0ab23a97ec1a0b1c03ec618
AlexandreBellas/UVa-Online-Judge
/p10664.cpp
C++
cpp
1,341
no_license
#include <bits/stdc++.h> using namespace std; int pd[207][207]; int somatotal; int pesos[207]; string s; int u; void PD(){ int peso = somatotal/2; for(int j = 0; j <= peso; j++){ pd[0][j] = 0; } for(int i = 1; i <= u; i++){ for(int j = 0; j <= peso; j++){ if(j < pesos[i]){ pd[i][j]...
5c7775e2e9b5fd0268d9970a0496fb02ac292590
d981ce00afbf6925a23742ba04c9a265bf1823f1
NikithaSiri/MavenProjects
/CPP/oooops14.cpp
C++
cpp
1,311
no_license
/*Demonstrate the concept of ADT class to achieve procedural abstraction by creating a class by name ‘Complex’ representing a complex number system with floating point real and imaginary values. Use appropriate mutator and accessor. Create one complex object and justify what is static binding. */ #include<iostrea...
791e201570318ea280a845783f0203ac84a96aeb
f68e2fd529967275982c30a728db4af827d6fecf
guille31794/EDNL
/EDNL Selu/Parte 3/Practica 8/Ejercicio6.cpp
C++
cpp
513
no_license
#include<iostream> #include"particion.cpp" #include"alg_grafoMA.cpp" #include"grafoMA.cpp" #include"alg_grafoPMC.h" using namespace std; void Ejercicio(); template <typename tCoste> void inicializar(matriz<tCoste>& Caudal); int main(){ Ejercicio(); return 0; } void Ejercicio(){ string a="Cacere...
23921accc3d89585d68c6d936a03f912b2d37ee8
3725563b0a361c613bb88df3e0f0517dfb6cc0d3
git-Charlie/ARK-SDK
/SDK/ARKSurvivalEvolved_DinoSettings_CarrionEater_parameters.hpp
C++
hpp
752
permissive
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_DinoSettings_CarrionEater_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------...
f2e721f80e83dbd9588a8465635857199808a9c4
e55e3c89d92da7b37895d77791906f6cce69a138
mygirl8893/loki-network
/include/llarp/routing/message.hpp
C++
hpp
994
permissive
#ifndef LLARP_ROUTING_MESSAGE_HPP #define LLARP_ROUTING_MESSAGE_HPP #include <llarp/buffer.h> #include <llarp/router.h> #include <llarp/bencode.hpp> #include <llarp/path_types.hpp> namespace llarp { namespace routing { struct IMessageHandler; struct IMessage : public llarp::IBEncodeMessage { ll...
303c61b12d12d3e05eca52097fa42baa63ea29ca
28b07c6669a979132346c16dad6b8dd412d5abb3
Pentagon03/competitive-programming
/spoj/XXXXXXXX.cc
C++
cc
2,576
no_license
#include <bits/stdc++.h> #define MP make_pair using namespace std; typedef pair<int, int> PII; typedef long long LL; const int MAXN = 100005; const int SIZE = 200005; struct node { int l, r; }; map<LL, int> Hash; set<int> pos[SIZE]; set<int>::iterator it1, it2; node blk[MAXN]; int pre[SIZE]; PII B[MAXN]; LL sum[MA...
98a8daa681b2742b499fd36573b2d9c2555df37a
b0a69b305562083c078ede1cfd49b916433de420
Trailblazer01010111/chromium
/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc
C++
cc
26,958
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/ui/views/frame/opaque_browser_frame_view_layout.h" #include "base/command_line.h" #include "base/containers/adapters.h" #include...
46aad56d6e2b9aac4730b166c865144172aa74b2
d78e1347b04589fb874d2890f7b03ce969c70762
aaron-ai/rocketmq-client-cpp
/src/test/cpp/ut/base/UniqueIdGeneratorTest.cpp
C++
cpp
1,572
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
c6d9b14590eb65a590e108f0b6db79e028415aeb
df9e92f76f6afd44515d443cff9bdab2da5c5261
pay444/Directx113D
/Directx113D/SGASpriteSheet.cpp
C++
cpp
4,869
permissive
#include "stdafx.h" #include <fstream> #include <string> #include <regex> #include "SGASpriteSheet.h" SGASpriteSheet::SGASpriteSheet() { } SGASpriteSheet::~SGASpriteSheet() { } void SGASpriteSheet::Load(ID3D11ShaderResourceView * texture, const TCHAR * fileName) { mFrames.clear(); mspTexture = texture; ifstrea...
143ef3a975e282b6282dc61e6695547e4e969c27
54d40041b15a7b6cfb77120dc30aec668f48152a
atatomir/work
/_infoarena/---.Delfin/Grader_delfin/main.cpp
C++
cpp
1,672
no_license
#include <iostream> #include <cstdio> #include <cstring> #include <vector> #include <algorithm> #include <cmath> #include <ctime> #include <cstdlib> #include <fstream> using namespace std; #define mp make_pair #define pb push_back #define ll long long const int maxN = 23; const int maxM = 23; int tests, i, j; char ...
6a6dc506ee743b73ee7b1871af599d1760256709
6dbf1bf42a15421ed60fed0787f8b23021940226
HellBz/HGA-Altis_EXILE
/mpmissions/Exile.Altis/custom/traders/CUPV/CUPV_Cars.hpp
C++
hpp
956
no_license
"CUP_C_Datsun", "CUP_C_Datsun_4seat", "CUP_C_Datsun_Plain", "CUP_C_Datsun_Covered", "CUP_C_Datsun_Tubeframe", "CUP_C_LR_Transport_CTK", "CUP_O_LR_Transport_TKA", "CUP_O_LR_Transport_TKM", "CUP_B_LR_Transport_CZ_W", "CUP_B_LR_Transport_CZ_D", "CUP_B_LR_Transport_GB_W", "CUP_B_LR_Transport_GB_D", "CUP_B_LR_Ambulance_CZ_W...
226b94edb16362eaa154c72b773b8aa523030c53
458829afe01bca130e7a85f462f09d3a50c36334
rlfagan/neuropod
/source/neuropod/internal/error_utils_header_only.cc
C++
cc
1,244
permissive
/* Copyright (c) 2020 UATC, LLC 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, software d...
ca834ffac93a082c09f94a64613cbd3b69fc37c5
9e7b61cdfaf6e592b5eea45c3ac113ecfb9c7fa5
tsbyq/EnergyPlus
/src/EnergyPlus/DataHeatBalance.hh
C++
hh
178,970
permissive
// EnergyPlus, Copyright (c) 1996-2019, The Board of Trustees of the University of Illinois, // The Regents of the University of California, through Lawrence Berkeley National Laboratory // (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge // National Laboratory, managed by UT-Batt...
769c4fcf319203c149af58b6d89419703aa047ef
0d71040cb992ee1e03057b744838d77c6afde2b6
iCodeIN/Competitive-Programming_Cpp
/SPOJ9151.cc
C++
cc
410
no_license
// SPOJ 9151: Kids Love Candies // http://www.spoj.com/problems/MIDOZ/ // // Solution: trivial #include <iostream> #include <cstdio> #include <cstdlib> using namespace std; int main() { int t; scanf("%d", &t); while (t--) { int n, k, s = 0; scanf("%d %d\n", &n, &k); for (int i = 0; i < n; ...
a26fd8c4403f755cb28efe024ebca5fddb1f1129
ee156f6e23e24c70b5f739028fdee36d2a3f95dc
worldmint/Adirondack
/src/masternode-budget.cpp
C++
cpp
71,408
permissive
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2017-2018 The Adirondack developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" #include "m...
b5eb3ed2c6ed8e3e67490d1df37e5d423cc0cfba
221d3cf713d6e51872ad3e954ec1c02c5087d436
NelsonGomesNeto/Competitive-Programming
/Online Judges/AtCoder/AtCoder Begginer Contest/194/E - Mex Min.cpp
C++
cpp
4,244
no_license
#include <bits/stdc++.h> #define DEBUG if(0) #define lli long long int #define ldouble long double using namespace std; struct Data { int cnt, value; Data operator+(const Data &other) { if (cnt == 0 && other.cnt == 0) return value < other.value ? *this: other; if (cnt == 0) return *this; ...
ef98782dae3d36accf2ebcb679ce060d66e80740
12a7d4382839c3a447d84675c8130dbcf725a7c0
liz0527/PTA
/PAT (Basic Level) Practice (中文)/1003.我要通过!.cpp
C++
cpp
565
no_license
#include <iostream> #include <map> using namespace std; int main(){ int n; cin >> n; int p,t; string s; for(int i=0;i<n;i++){ cin >> s; map<char,int> m; for(int j=0;j<s.length();j++){ m[s[j]]++; if(s[j]=='P') p=j; if(s[j]=='T') t=j; //p记录P的位置,t记录T的位置,p即为P之前A的个数,s.length()-t-1即为T之后A的个数,t-p-1即为P和T之...
2a5474e939d77b3ea3880bb443734cacc9583277
33b86f553c2c7a2fa7379d82ab8e7cc62a5cd215
hkduke/my_src
/louluosrc/logingame_server/src/main/redis_pool.cpp
C++
cpp
1,329
no_license
#include "redis_pool.h" #include "SDConfigurationSingleton.h" IMPL_LOGGER(redis_pool, logger); redis_pool::redis_pool(void) { } redis_pool::~redis_pool(void) { } int redis_pool::init_pool( void ) { redis_client::INIT_REDIS_CLIENT(); const SDConfiguration& config = SDConfigurationSingleton::get_i...
418b3fddf036ac7260c8b72ddc998b8830338668
10a4d56f79d476a4e2db20f0df19e34b3d8e66a8
satcoin-dev/satcoin
/src/satcoind.cpp
C++
cpp
5,333
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/satcoin-config.h> #endif #include <c...
60a9d92add36a989c9cf0cb495f46e9c7203464a
c6d3b730c43c6a70462c03047f2722737b42ac4e
bob1996w/tcg-final
/src/hashCreator/hashCreator.cpp
C++
cpp
1,074
no_license
#include <iostream> #include <random> #include <cmath> using namespace std; int main() { cout << "#pragma once\n\n" << endl; std::random_device rd; std::mt19937_64 e2(rd()); std::uniform_int_distribution<long long int> dist(std::llround(std::pow(2,61)), std::llround(std::pow(2,62))); cout <...
85e34a14fa468e9574a375760bee2c1d5a4d850f
f1a903e86d7d6afa03f81f2b7bb7afa30a9a6810
betamake/robot
/documentjson.cpp
C++
cpp
3,019
no_license
#include "documentjson.h" DocumentJson::DocumentJson() { clearValue(); } void DocumentJson::clearValue() { attachmentId = ""; //单据附件id attachmentName = ""; //单据附件名称 attachmentPath = ""; //单据附件path attachmentType = ""; //单据附件类型 billCode = ""; /...
26dda84ad53c2ba8b062da5bb8a28a76889cbb8c
828a8c984cf31bfa423f9f0c6239a599dec5503e
philip1337/samp-plugin-api
/src/api/Session.hpp
C++
hpp
2,246
permissive
#ifndef SRC_API_CONNECTION_HPP #define SRC_API_CONNECTION_HPP #pragma once #include <Config.hpp> #include <boost/beast/core.hpp> #include <boost/beast/http.hpp> #include <boost/beast/version.hpp> #include <boost/asio.hpp> #include <boost/filesystem.hpp> #include <chrono> #include <cstdlib> #include <cstring> #includ...
d70d6d92810adcfb0b94d04c0a79d5d93970fcb0
2f81a7844e182816a90ed06efb53a93dbfd73960
lianlian51/offer
/offer68/offer68/test.cpp
C++
cpp
1,336
no_license
#include <iostream> #include <list> #include <vector> #include "..\Utilities\Tree.h" using namespace std; struct TreeNode{ }; bool GetNodePath(const TreeNode* pRoot, const TreeNode*pNode, list<const TreeNode*>&path) { if (pRoot == pNode) return true; path.push_back(pRoot); bool found = false; vector<TreeNode...
831651928a6b4f169761989f4177850b408d6517
d216aa1736dd59429a804035f7c05c462eb8d34d
bof34/Arduino_Nmea0183_Protocol
/Nmea183_Protocol/Nmea0183_Data.cpp
C++
cpp
28,820
no_license
#include "Nmea0183_Data.h" #include <string.h> Nmea0183_Data::Nmea0183_Data() { } Nmea0183_Data::~Nmea0183_Data() { } double Nmea0183_Data::latLonToDouble(const char *data, const char sign) { double val = atof(data); double deg = floor(val / 100.0); double ss = (val - deg*100.0) / 60.0; val = deg + s...
6c4ea2e6657516148b2f3a1d09905b94f8ea6dd6
2979371ccdbe018bddafb1b2f0f1e95eaba07548
Artur-Aghajanyan/VSU_ITC
/Nare_Mkrtchyan/before_bash/17_03/view.cpp
C++
cpp
467
no_license
#include "view.h" #include <iostream> View::View(){ x = 0; y = 0; color = ""; } View::View(int x, int y){ this->x = x; this->y = y; color = ""; } View::View(int x1, int y1, std::string color1){ x = x1; y = y1; color = color1; } void View::print(){ std::cout<<x<<" "<<y<<" "<...
244b9b264d3ed35ae0cd019fb3bad6eca8691678
bfd13d8d92b0ac8d4e5c321e84fb46035fa6fed9
xenomorphales/Ceres2.0
/Archive-2017/TrajectoryManager.cpp
C++
cpp
7,648
no_license
#include "PositionManager.h" #include "TrajectoryManager.h" #if 0 #define TRAJ_DEBUG(msg) Serial.println(msg) #else #define TRAJ_DEBUG(msg) ((void)0) #endif TrajectoryManager TrajectoryManager::Instance; #define ABS(x) (((x) < 0)? -(x): (x)) #define SQUARE(x) ((x)*(x)) #define UNDEFINED_ANGLE (NAN) #define IS_UNDE...
9cc0d09e48db434cf9e0a4c29ebd0f6604842dab
156837821325f5e2f14aa700ee1f86be0f8348d6
chromium/chromium
/chrome/browser/cart/commerce_hint_service.cc
C++
cc
12,755
permissive
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/cart/commerce_hint_service.h" #include <map> #include <memory> #include "base/metrics/histogram_functions.h" #include "base/time/time.h" #include "ch...
a91b33516fdeb628d9ee389366ff2f12d1919d29
1a616f4c3c1e98fea6a89b13fe5fd4a763164687
nestcoin/nest
/build/moc_qvalidatedlineedit.cpp
C++
cpp
3,616
permissive
/**************************************************************************** ** Meta object code from reading C++ file 'qvalidatedlineedit.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.0) ** ** WARNING! All changes made in this file will be lost! **************************************************...
377fa67f1307475fa3e00225546131641b0aca16
58423f5897a84cb284e2052ce84921324f707d2f
brnaoliveira/Parte2-SegundaUnidadePA
/cutellipsoid.cpp
C++
cpp
859
no_license
#include "cutellipsoid.h" #include <Sculptor.h> CutEllipsoid::CutEllipsoid(int _xcenter, int _ycenter, int _zcenter, int _rx, int _ry,int _rz,int _dimx,int _dimy,int _dimz) { xcenter = _xcenter; ycenter = _ycenter; zcenter = _zcenter; rx = _rx; ry = _ry; rz = _rz; dimx = _dimx; dimy = _dimy; dimz = _dimz; } v...
3999ea34aa4aa0925d6cd0be3646a3740f70697a
b77c798b044e3258141d82389816e6023bbbfe05
killvxk/PaintsNow
/Source/Utility/MythForest/Component/Renderable/RenderableComponent.cpp
C++
cpp
413
permissive
#include "RenderableComponent.h" #include "../../Entity.h" using namespace PaintsNow; using namespace PaintsNow::NsMythForest; RenderableComponent::RenderableComponent() {} Tiny::FLAG RenderableComponent::GetEntityMask() const { return Entity::ENTITY_HAS_RENDERABLE; } bool RenderableComponent::UpdateCommandCaptur...
5a1932dfe52ba68344ef77f426a0a10f5a453152
66ac9612ff93aae6dbc21cd43b6529cef3790d1a
susant-pant/Modelling-A1
/main.cpp
C++
cpp
5,713
no_license
/* Susant Pant 10153138 Boilerplate code provided by Troy Alderson */ #include <GLFW/glfw3.h> #include <GL/gl.h> #include <GL/glu.h> #include <iostream> #include <math.h> using namespace std; #define PI 3.14159 GLFWwindow *window; int w, h; double mouseX, mouseY; float bigRadius = 1.f; // radius of big circle fl...
5e34c9e23336768cfeff887de630ec13e2380116
5615b1989b370a272d06435acb514bc8fe5174f9
zhaoming0/chromium-src
/content/renderer/render_frame_proxy.cc
C++
cc
28,895
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 "content/renderer/render_frame_proxy.h" #include <stdint.h> #include <map> #include <utility> #include "base/command_line.h" #include "base/laz...
35fa7ef491e774c82d9cab4e07afc897a48697c3
98b8c453c063e2f2bb61af558d8be66875eab78e
seanyen/sdformat-1
/src/Light.cc
C++
cc
13,935
permissive
/* * Copyright 2018 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 applicab...
a86ecf6a6380aab0d13a067662d9ec197790c6fd
b4255c8e14aa7596d980875b2dce527c813203f1
hertrste/mythos
/kernel/util/mlog-base/util/Logger.hh
C++
hh
3,617
permissive
/* -*- mode:C++; -*- */ /* MyThOS: The Many-Threads Operating System * * 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 u...
209f22895608ad9daa880cae3b1eeff920115acd
9af5ea0da1d00122f8dd681416c10be394cce3ee
ttyang/sandbox
/sandbox/boost/profiler/detail/dump.hpp
C++
hpp
12,888
no_license
#ifndef BOOST_PROFILER_DETAIL_DUMP_HPP_INCLUDED #define BOOST_PROFILER_DETAIL_DUMP_HPP_INCLUDED #include <boost/profiler/detail/report.hpp> #include <boost/profiler/detail/context.hpp> #include <boost/profiler/detail/iterator.hpp> #include <boost/profiler/detail/timer.hpp> #include <boost/profiler/detail/semaphore.hpp...
65ad4d5a159a57ccefb862105512bc17a6861d44
3a5ba72fc1d2a9096e004568799d428f08685719
ProboxAM/Raider_IO
/Multiplayer Game/DeliveryManager.cpp
C++
cpp
2,947
permissive
#include "Networks.h" #include "DeliveryManager.h" // TODO(you): Reliability on top of UDP lab session Delivery* DeliveryManager::writeSequenceNumber(OutputMemoryStream& packet) { packet.Write(nextSequenceNumber); Delivery* newDelivery = new Delivery(); newDelivery->sequenceNumber = nextSequenceNumber++; newDeli...
da25e7a24a38fb785ba5678d8b99dc4a5abddf1a
3f4a80c5d328a8594015134cc04676cdaa9a2717
dyang23/compute-runtime
/opencl/test/unit_test/command_queue/enqueue_fill_buffer_tests.cpp
C++
cpp
26,404
permissive
/* * Copyright (C) 2018-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/built_ins/built_ins.h" #include "shared/source/command_stream/command_stream_receiver.h" #include "shared/source/helpers/aligned_memory.h" #include "shared/source/helpers/ptr_math.h" #include "shared/sourc...
97553fee80beacc51280fba2d94e8b9c12d9bd1c
112bac07e1e61b9bf98a4bf0e03d12180f0946ef
vaijayanti1234/libpq_build
/POC_pqxx/Source.cpp
C++
cpp
1,663
no_license
#include <iostream> #include <pqxx/pqxx> #include <string> #include <vector> #include <fstream> using namespace std; using namespace pqxx; int main(int argc, char* argv[]) { try { string ip, user, passwd; cout << "Enter PostgreSQL server IP address : " << endl; getline(cin, ip); cout << "Enter ...
c1964b42d50e1b8d591d7a86741c4bc13f9eb4ea
48ff0ea7702ac5bef04a92f872979a6027a765a4
kelandisi/After-Class-Practice-
/九大排序/NineSort/NineSort/test.cpp
C++
cpp
372
no_license
#define _CRT_SECURE_NO_WARNINGS #include"Main.h" void Test() { int array[5] = {3,1,4,2,5}; int size = sizeof(array) / sizeof(int); //BubbleSort(array,size); //InsertSort(array, size); //ShellSort(array, size); //SelectSort(array, size); //HeapSort(array, size); quickSort(array, size); Print(array, size); } ...
3c8db89672bbf9a0f6ae63d8a6e561b3c380751b
e3d933e2f30c49568903460a7a0def1ec1c67070
Hapaxia/Plinth
/Plinth/Sfml/KeyMap.hpp
C++
hpp
2,027
permissive
////////////////////////////////////////////////////////////////////////////// // // Plinth // // Copyright(c) 2014-2016 M.J.Silk // // 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. // ...
9a49a7b9401725638cc3d25c0ab30afee307a351
b3108a2f886ce7abf6ff6de4bcbb80b6ae6d23b4
leedefu/leetcode
/SumOfTwoIntegers.cpp
C++
cpp
3,503
no_license
#include <stdio.h> class Solution { public: int oppositeOf(int n) { return ~n + 1; } // version 1 /* int add(int i, int j) { if (0 == i) { return j; } if (0 == j) { return i; } int carry = (i & j) << 1; int sum = i ^ ...
7a6cc447332d8c6be61c1c6131a00ee85a8e0104
a2f0353c3333629f64ac3bb2d8e873f9ab3ee141
DraculaK/lab8
/rel_osc.cxx
C++
cxx
2,788
no_license
// Lorenz.cxx // Runge Kutta 4th order // GL, 4.12.2015 //-------------------- #include <cmath> #include <iostream> #include <fstream> //-------------------- void f(double* const y0, const double x); void RKstep(double* const yn, const double* const y0, const double x, const double dx,double* k1, double* k2, double* k3...
add7a5dc3dba2e33cb8ea9a3fa8148913b022b00
a881422a11dabbb7c14f1557b233b1a05bf52633
sbima/Programming
/task3/A4a.cpp
C++
cpp
8,427
no_license
#include "A4a.h" /* * Entry point */ int main() { Student *allStudentsPointer; int totalStudents = 0; allStudentsPointer = readStudentsFromFile(totalStudents); menu(allStudentsPointer, totalStudents); if( allStudentsPointer == NULL ) { return 0; } return 0; } /* * Responsible for reading students records...
c368b61591757af876e9f7de118731f4b2a74c82
db111375a9d3196e9bb51301a14751ce97bd2006
baziotis/llvm-project
/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
C++
cpp
133,322
permissive
//===- InstCombineSelect.cpp ----------------------------------------------===// // // 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 // //===---------------------------...
7934cbb25b79314220459e87d7414babd21f2cd9
47b144d05325e52d25583a6a08670c51723afd8d
MtDesert/ChatClient
/SnapScreen/SnapText.cpp
C++
cpp
575
no_license
#include <QtGui> #include <QDebug> #include "SnapText.h" SnapText::SnapText(QWidget *parent) : QTextEdit(parent) { setWindowFlags(Qt::ToolTip); setWindowOpacity(0); resize(0,0); setVisible(true); //不显示滚动条 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); ...
323a2e9f7e471d4afb5dd47dde78c68ef6877f35
fd1b0f3ae05d11883fe553267a8d05f73d534166
chiforbogdan/MultiPathVoIPLite
/data_msg/src/MpMsg.cpp
C++
cpp
943
no_license
#include "MpMsg.h" #include "MpBaseService.h" #include "MpStatus.h" #include <iostream> #define THIS_TAG "MpMsg" MpMsg::MpMsg() { MpService::instance()->getLogger()->print(THIS_TAG, __FUNCTION__, "Ctor"); } MpMsg::~MpMsg() { MpService::instance()->getLogger()->print(THIS_TAG, __FUNCTION__, "Dtor"); } void M...
7b2708b940bbbe4aee091f9d0d91907d87167f70
1f5f2ad59835a8686002c1c23bf488d4a566e6aa
Worgaros/OpenGLDemoScene
/src/camera.cpp
C++
cpp
3,325
no_license
#include "camera.h" namespace gl { // constructor with vectors Camera::Camera( glm::vec3 position, glm::vec3 up, float yaw, float pitch) : front(glm::vec3(0.0f, 0.0f, -1.0f)), movement_speed_(SPEED), mouse_sensitivity_(SENSITIVITY), zoom_(ZOOM) { this->position = position; this->world_up = up; ...
e59c17870720f93dbfc8dbefb97b87abe79e3641
907747c8796465d2ebd4cd6fa021c36f0a3883c6
amir5200fx/Tonb0.1
/Tonb0.1/AutLib/IO/global/IO_ShapeIO.cxx
C++
cxx
648
no_license
#include <IO_Shape.hxx> #include <error.hxx> #include <OSstream.hxx> #include <Entity3d_Triangulation.hxx> #include <Cad3d_SolidTools.hxx> #include <TopoDS.hxx> #include <TopoDS_Face.hxx> #include <TopExp_Explorer.hxx> #include <TecPlot_Opencascade.hxx> void AutLib::IO_Shape::ExportToPlt ( OFstream & File ) const { ...
ca42539e546abe74cccd226f868ca2a904839d82
d9e18b22101cd9916a097d71a80bbc6f514549ec
jineeKim/Algorithm
/2020_05/clock.cpp
C++
cpp
247
no_license
#include <iostream> #include <stdio.h> using namespace std; int h, m; int main() { scanf("%d %d", &h, &m); m-=45; if(m<0){ h--; if(h<0) h=23; m=60+m; } printf("%d %d", h, m); return 0; }
9dc24b09de83d0684ec2ded8dca8f891674f351e
438e6f0a8f35caf2ce92485cf20d1ece85549a57
radkum/RadoHook
/SpyCreateWindow/ApiCallAnalysis.cpp
C++
cpp
3,902
permissive
#include "ApiCallAnalysis.h" #include "LogHelper.h" bool performApiCallAnalysis(std::wstring wzFileName, std::string apiCallsReportPath) { //create suspended process STARTUPINFO si = { 0 }; PROCESS_INFORMATION pi = { 0 }; si.cb = sizeof(si); const char envVarName[] = "REPORT_FILE_PATH="; const size_t envVarNam...
be23ba72aacbc56b48f1d9b3229c6c46b9a48da6
d9a456799a5571b54b69aad429f856248c9c9ec7
markverick/ioi-training
/skgrader/elephant_bak2.cpp
C++
cpp
701
no_license
#include<bits/stdc++.h> int maps[120000]; int n; long long jum[120000]; long long omelet(int idx) { if(jum[idx]>=0) { return jum[idx]; } if(idx>=n) { return 0; } else { return jum[idx] = std::max(omelet(idx+3)+maps[idx+2],omelet(idx+1)); /...
b613cb802970d03e6d4014a1af7c4517dfe09cc0
16e22085efacf9aae2d60056b34c124ff0dbd423
e54385991/CZElauncher
/ZElauncher/礼包.cpp
C++
cpp
14,073
no_license
#include "礼包.h" TCHAR G_TodayUIName[50] = { 0 }; C礼包UI::C礼包UI(CPaintManagerUI& m_paintmanage) { m_paintmanage_ = &m_paintmanage; CDialogBuilder Builder; CContainerUI* pAward = static_cast<CContainerUI*>(Builder.Create(_T("Award.xml"), NULL, NULL, &m_pm2)); if (pAward) { this->Add(pAward); m_paintmanage_->AddNo...
21462c79dff81dc9b69e656604ed2bb806631e76
437df505ceac1061654244ab4c70a6f286d5383d
brownjustinmichael/pisces
/test/elements/convection_test.hpp
C++
hpp
3,313
no_license
/*!********************************************************************** * \file convection_test.hpp * /Users/justinbrown/Dropbox/pisces * * Created by Justin Brown on 2015-01-28. * Copyright 2015 Justin Brown. All rights reserved. ************************************************************************/ #incl...
b1aef77e40a4f4fac119ee8b65f13b64d1071832
5ee3817eb971dcdbd8df87e47fa65ca5796bc85a
sahilgoyals1999/Love-Babber-DSA-450
/15. Bit Manipulation/02. Non Repeating Numbers.cpp
C++
cpp
775
no_license
// https://practice.geeksforgeeks.org/problems/finding-the-numbers0215/1 // T.C => O(n), S.C => O(1) vector<int> singleNumber(vector<int>& a) { int n = a.size(); // Will hold Xor of all elements int Xor = a[0]; // Get the Xor of all elements for (int i = 1; i < n; ++i) { Xor ^= a[i]; } // Will have only sing...
e7964af4c9621c7d1cfe9a6b373bc6f44b9f56cf
56d96265558c58a21ab76f1408e18fe8428836f1
tralondong/FreeCad-McCad
/project/src/Mod/PartDesign/Gui/TaskPadParameters.cpp
C++
cpp
21,770
no_license
/*************************************************************************** * Copyright (c) 2011 Juergen Riegel <FreeCAD@juergen-riegel.net> * * * * This file is part of the FreeCAD CAx development system. * * ...
1b77f1f954f0434b231f739db481c8a52a79cbe9
7102fb287b8c7b119f0d2488a3acbf26c2cec4da
fhict-technology-semester3/es31
/Werkcollege - ExampleBlink/src/timer.cpp
C++
cpp
285
permissive
#include "timer.h" #include "Arduino.h" Timer::Timer(double freq) { _freq = freq; _prevMs = 0; } bool Timer::Deadline() { unsigned long _freqToMs = ((1 / _freq) * 1000); if ((millis() - _prevMs) >= _freqToMs ) { _prevMs = millis(); return true; } return false; }
68f43d34fe70928dd237b459eb6eb2b700d93f87
8cda930914d317b9f82851f03afffaf109a3777e
omer4d/OldCodeBackup
/CODE/OLD_CRAP/FPTEST.cpp
C++
cpp
355
no_license
#include <stdio.h> #include <conio.h> #include <inttypes.h> #define INT32_MAX 2147483647 int main() { int i = 0; float f = 0; while(i == int(f + 0.5f) && i < INT32_MAX) { ++i; ++f; //if(!(i % 100000)) //printf("%d\n", i); } printf("Done: %d - %d", i, int(f + 0....
11d45376cd2b87fb55c1094a8f73d60cc5df0e2a
3a3c68a00f66aaf43e25bb8a876c2b6e399a56fa
orgNDEngine/NDServer2
/NDShareBase/commonImpl/net/netio/NDClientNetIO.cpp
C++
cpp
3,782
no_license
#include "net/netio/NDClientNetIO.h" #include "NDShareBaseGlobal.h" #include "net/session/NDClientSession.h" #include "net/session/NDSessionManager.h" #include "net/stream/NDProtocol.h" #include "net/stream/NDProtocolPacket.h" #include "net/process/NDServerTask.h" #include "event/functor/NDSubFunctorSlot.h" #incl...
81213f9bbda152db08fe500722729b7c72fc1f0a
6e9e02a624d64e203cf172bad9e269b379be1f39
xycqzf/X-DA
/src/rpcmining.cpp
C++
cpp
19,549
permissive
// Copyright (c) 2010 Satoshi Nakamoto // 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 "main.h" #include "db.h" #include "init.h" #include "bitcoinrpc.h" using name...
73a75a4088d0c0d427e9b3e888b1b8b08c37b761
1dc34df4598d93979784851d247b933591070787
Tureyz/Licenta
/LicentaV2/LicentaV2/Managers/SceneManager.cpp
C++
cpp
5,488
no_license
#include "SceneManager.h" #include "../Core/DeltaTime.h" Managers::SceneManager::SceneManager() { glEnable(GL_DEPTH_TEST); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); //m_textRenderer = new TextRenderer(); m_shaderManager = new ShaderManager(); m_shaderManager->CreatePrograms(); m_viewMatrix = g...
c57956a50f8c0d0fc5aef2070e54c5cb0b5b1dc8
56b92e60b663da458ba2afe43b2157164833c117
ourarash/csp-in-cpp
/src/main/producer_consumer_lock_main.cc
C++
cc
1,652
no_license
#include <condition_variable> // std::condition_variable, std::cv_status #include <iostream> #include <mutex> // For std::unique_lock #include <random> #include <thread> // Create a function to generate a random value between 0 and 10 auto GenRandomValue = std::bind(std::uniform_int_distribution<>(0, 10), ...
0ef043c51019322240e1a3ab05b940c20d52b051
4e2ce98c3471fa1a5fed34b38aaf731a9ce305a2
zeldaret/botw
/src/Game/AI/AI/aiBeeSwarmRoot.cpp
C++
cpp
510
no_license
#include "Game/AI/AI/aiBeeSwarmRoot.h" namespace uking::ai { BeeSwarmRoot::BeeSwarmRoot(const InitArg& arg) : SwarmRoot(arg) {} BeeSwarmRoot::~BeeSwarmRoot() = default; bool BeeSwarmRoot::init_(sead::Heap* heap) { return SwarmRoot::init_(heap); } void BeeSwarmRoot::enter_(ksys::act::ai::InlineParamPack* params...
2f1164642a825009369f6b990c9913089841342f
1440a4ee99cd5b7a319f043ae80ffeb1e45c71af
lineCode/oglplu2
/include/eagine/units/qty/si/time.hpp
C++
hpp
965
permissive
/** * @file eagine/units/qty/si/time.hpp * * Copyright Matus Chochlik. * 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 */ #ifndef EAGINE_UNITS_QTY_SI_TIME_HPP #define EAGINE_UNITS_QTY_SI_TIME_HPP #inclu...
631a8e73bddc220fc2b4b4b5f1f3088c5f5fbc08
223ded22454bd2bef7270488ae5d6f11b8200e7c
kuina/Kuin
/src/lib/dll/lib_win/snd.cpp
C++
cpp
9,209
no_license
#include "snd.h" #include "wav_decoder.h" #include <dsound.h> #pragma comment(lib, "dsound.lib") static const S64 BufSize = 2; struct SSnd { SClass Class; LPDIRECTSOUNDBUFFER8 SndBuf; S64 SizePerSec; double EndPos; double Freq; double Volume; }; // The main volume controls these. struct SListSnd { SListSnd*...
8a50dbcda0e8e9d3ad50c4980cdffcf5e17c36e6
bac4666db2633d7fef14442dd9f1eeaf6ec3a10c
yrnkrn/zapcc
/tools/clang/test/OpenMP/taskgroup_ast_print.cpp
C++
cpp
2,524
permissive
// RUN: %clang_cc1 -verify -fopenmp -ast-print %s | FileCheck %s // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s // RUN: %clang_cc1 -verify -fopenmp-simd -ast-print %s | FileCheck %s // RUN: %clan...
79cf02f61304ab59a1035c326428f0b0fb7f1aa2
e10df29f01053eabc00605f392c09591e6ed190a
emirkaragoz/Object-Oriented-Programming
/HW3/151044052_Emirhan_Karagözoğlu/main.cpp
C++
cpp
2,233
no_license
using namespace std; #include "ConnectFour.cpp" #include <iostream> #include <string> #include <fstream> #include <vector> int main(){ string gameMode; cout << "Welcome to Connect 4!" << endl; while(gameMode[0]!='S' && gameMode[0]!='s' && gameMode[0]!='M' && gameMode[0]!='m'){ cout << "Choose a game mode(S/M...
2d9e535a0d4d5ca70bcd23563e090a4ce8b139a8
74efa2ebc4c37e0acfb7bb054d10245d427f9c3c
balp/CxxIntroClass
/ExampleCode/src/test/c++/hellotest.cpp
C++
cpp
3,547
permissive
/* * Copyright (c) 2016 Anders Arnholm <anders.arnholm@hiq.se> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
fe0db14c140c11061adf5ed2f1dcfcdbe0bb2559
7c2a6e53e107270be364ea48b6a28b3665ac7214
vandermerwewaj/RED4ext.SDK
/include/RED4ext/Scripting/Natives/Generated/AI/BoolArgumentInstancePS.hpp
C++
hpp
560
permissive
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/AI/ArgumentInstancePS.hpp> namespace RED4ext { namespace AI { struct BoolArgumentInstancePS : AI::ArgumentInstancePS { static constexpr const char...
c0b9bab1dbfd8315ccfb74f6b168ed20feb35805
cfa6a652dd066e25b8d40bc236781b42706ee6d3
Ahmad-Diab/CPP-Library
/SPOJ/QTREE5.cpp
C++
cpp
2,966
no_license
#include <bits/stdc++.h> using namespace std; struct Pair { int a, b; Pair(int x, int y) {a = x, b = y;} bool operator < (const Pair &y) const { return y.b < b; } bool operator () (const Pair &x , const Pair &y) const{ return y.b < x.b; } }; const int INF = (int) 1e9; vector<vector<int> > adjList, P; vecto...
1d0042bb2448cd697ba273d2e1c2edad3fe0d69b
180ae6daf2f9195f3d8ca659562d42cfafde57b7
norda97/SFML-project-
/SFML test/TextureHandler.cpp
C++
cpp
321
no_license
#include "TextureHandler.h" TextureHandler::TextureHandler(const std::string & fname) { addTexture(fname); } TextureHandler::~TextureHandler() { } bool TextureHandler::addTexture(const std::string & fname) { return mTextures.loadFromFile(fname); } sf::Texture * TextureHandler::getTexture() { return &mTextures; }...
de9a3ed8342bf1c5bf71d87a4b8c5348df5bb169
f26bc75997bde4fb2a1d9f4ea16958d3bd8e4a31
Liuhao-bupt/my-leetcode
/my_005_Longest Palindromic Substring.cpp
C++
cpp
786
no_license
class Solution { public: //created by lh on 2017/3/16 //complexity Time:;Space: string longestPalindrome(string s) { if (s.size() < 2) return s; int len = s.size(), max_left = 0, max_len = 1, left, right; for (int start = 0; start < len && len-start > max_len/2;){ lef...
adb32b4c1ec41ce45276de8fe4727f1f093b1b87
479ad16b7bbcfa8cc8499dd9e12da426d145db29
hanlulugeren/skia
/src/core/SkTypeface_remote.cpp
C++
cpp
2,558
permissive
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTypeface_remote.h" #include "SkPaint.h" #include "SkRemoteGlyphCache.h" #include "SkStrikeCache.h" #include "SkTraceEvent.h" SkScalerContextProxy::SkScalerContext...
8bc3a3af255b5cc6e17e4959273c64084b570743
4eb055dfb5180d16b567e70ffcfb34c103469cdb
naturalatlas/node-gdal
/deps/libgdal/gdal/ogr/ogrsf_frmts/htf/ogrhtfdriver.cpp
C++
cpp
3,247
permissive
/****************************************************************************** * * Project: HTF Translator * Purpose: Implements OGRHTFDriver. * Author: Even Rouault, even dot rouault at mines dash paris dot org * ****************************************************************************** * Copyright (c)...
f91c325f14a8c549a3eb3a9c8394dc7c22b77c19
6eb81df7e51c0606c164bc2ff5a74de92bd1f898
vanishedzhou/leetcode
/Array/832_FlippingAnImage.cpp
C++
cpp
2,459
no_license
// // Created by Zhou,Zhiyong(DAPD) on 2018/12/17. // #include "common_lib.h" /* * 找规律,原理是对称交换后取反。若相同则同时取反,不同则交换取反后保持不变 */ class Solution { public: vector<vector<int>> flipAndInvertImage(vector<vector<int>>& A) { for (auto iter = A.begin(); iter != A.end(); ++iter) { auto& item = *iter; ...
91dd6aeb240f8e1c532b0fb8c12b4ebf7719c37a
d5ab12f876cc0b91868ba652446958c53bbe8003
jonalmeida/random-code
/interview-revision/bitshift.cpp
C++
cpp
206
no_license
#include <iostream> int main() { unsigned int i = 1; std::cout << "Value of i before: " << i << std::endl; //i << 2; std::cout << "Value of i after: " << i << std::endl; return 0; }
aa9495910ea86c10a5880e3d34442ac66a1a5d03
af82ab174fb58c3b2d77ae0dec73af26a58add52
neverm1ndo/gta-paradise-sa
/src/cplusplus/freezone-samp/src/player_ban_serial.hpp
C++
hpp
3,411
no_license
#ifndef PLAYER_BAN_SERIAL_HPP #define PLAYER_BAN_SERIAL_HPP #include "core/module_h.hpp" #include "player_ban_serial_item.hpp" #include <string> #include <set> #include <map> #include <bitset> struct ban_reason_t { enum ban_reason_e { reason_none = 0, reason_ip = 1 << 0, reason...
1de36a3e7d89965c1995f1df6dc922272e203cd0
f07681112aa84a5fab9b708798367040903abccc
ALEHACKsp/NoCheatZ-3
/old-nocheatz3/AutoStatus.cpp
C++
cpp
4,026
permissive
#include "AutoStatus.h" #include "nocheatz.h" #include "Cg_NCZ_Player.h" #define STATUS_MAX_JOB_PER_FRAME 1 class NoCheatZ; extern NoCheatZ g_NoCheatZPlugin; extern IVEngineServer * engine; extern CGlobalVars* gpGlobals; AutoStatus::AutoStatus(void) : isStarted(false), allow_status(true), ccl(1), s...
c95375877e04c7d5c3d1ab761c8bbf25f3ec86c1
d722a46d0bf3f678b6a0beba99b6e08f2d96998a
vdg1/cs8-components
/cs8Components/cs8ProgramComponent/lib/src/cs8programmodel.cpp
C++
cpp
8,724
no_license
// // C++ Implementation: cs8programmodel // // Description: // // // Author: Volker Drewer-Gutland <volker.drewer@gmx.de>, (C) 2007 // // Copyright: See COPYING file that comes with this distribution // // #include "cs8programmodel.h" #include "cs8program.h" #include <QDebug> #include <QFileInfoList> #include <QFont> ...
78abee240608b55392f68d8ae4958ce8e2109a4f
9df536d1a796a32d819c5214136dbf84a1c38d00
copernicus231/gatempi
/source/digits_hits/src/GateCrosstalk.cc
C++
cc
9,385
no_license
/*---------------------- GATE version name: gate_v6 Copyright (C): OpenGATE Collaboration This software is distributed under the terms of the GNU Lesser General Public Licence (LGPL) See GATE/LICENSE.txt for further details ----------------------*/ #include "GateCrosstalk.hh" #include "GateCrosstalkMessenge...
6125077007232efcfb23ec4e0b0f6c20de6ef656
fa93edb53f29d2454e01cc20a443752b51eea507
fanfuqiang/iec
/tools/clang/lib/Parse/ParseCXXInlineMethods.cpp
C++
cpp
26,370
permissive
//===--- ParseCXXInlineMethods.cpp - C++ class inline methods parsing------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
56d383ff5b2da345a529eccd39461117fb8164ff
c54093e4dfa00f89f51c70840c45518f3eddfd3d
PaddlePaddle/Paddle-Lite
/lite/backends/x86/jit/gen/seqpool.cc
C++
cc
2,863
permissive
/* Copyright (c) 2018 PaddlePaddle 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 ...
e4579f63d58e3171511c95f08c55cb4177cb2f02
87472d96f1dacb8cd68a639e774b18fdb9a4e3d9
khursia/IL2C
/samples/requires-fix/microbit/Accelometer.FSharp/Accelometer.FSharp.Code.cpp
C++
cpp
22,583
permissive
 #include "Accelometer.h" #include "Accelometer.FSharp.Code.h" ////////////////////////////////////////////////////////////////////////////////// // [9-1] Const strings: ////////////////////////////////////////////////////////////////////////////////// // [9-2] File scope prototypes: #ifdef __cplusplus extern "C" ...
dc2504319f0f048d9be3a9a5caba2222c05e8fcc
67664d5951514c27ef16d50f6bf64572c6b191ee
PirateTeamDDJV12/Pirate-Simulator
/Project/PirateSimulator/Triangle.cpp
C++
cpp
409
no_license
#include "Triangle.h" #include <algorithm> using namespace PirateSimulator; std::string Triangle::toString() const noexcept { std::string intermediary(""); std::for_each(begin(), end(), [&intermediary, this](unsigned int iter) { intermediary += std:...
338928584a06948d26dd8bab4b12b1fa5d31be1a
13abb23339e9e2544ff69fa5bbb0c94621916a90
bulb/xyzzy.src
/src/msgbox.cc
C++
cc
9,638
permissive
#include "ed.h" #include "msgbox.h" void XMessageBox::add_button (UINT id, const char *caption) { if (nbuttons < MAX_BUTTONS) { btn[nbuttons].id = id; btn[nbuttons].caption = caption; nbuttons++; } } void XMessageBox::set_button (int n, UINT id, const char *caption) { if (n < nbuttons) ...
ab4a30819a438e31bac0f268ea6e1a55c477d41e
42d978722c0f87fe93cba4cc1a600aab93ef1283
TheIslland/Code_learn
/7.代码练习/1.noip入门组/8.简单算法/189实现折半查找.cpp
C++
cpp
1,057
no_license
/************************************************************************* > File Name: 189实现折半查找.cpp > Author: TheIslland > Mail: voidland@163.com, 861436930@qq.com > Created Time: Tue Nov 5 09:55:41 2019 ************************************************************************/ #include<iostream> #include<algo...
53e1a34626529311cae80f8db59add86dba6118f
6246bea3b5d7b0a0bccc048c0d47cba081f76442
fynbntl/Titan
/Server/SchemeCenter/Src/SchemePatrol.cpp
C++
cpp
3,937
no_license
/******************************************************************* ** 文件名: SchemePatrol.cpp ** 版 权: (C) 深圳冰川网络技术有限公司 2008 - All Rights Reserved ** 创建人: 李界华 ** 日 期: 1/9/2015 ** 版 本: 1.0 ** 描 述: 人物模型 PersonModel.csv **************************** 修改记录 ****************************** ** 修改人: ** 日 期: ** 描 述: ...
15f73c27811d70fafed8abad97453f68da1fb3cf
e2fd16406eebe12435700e09088a6feced361f10
evanchime/WIN32
/Win32_Menu/Win32_Menu/Exercise.cpp
C++
cpp
2,888
no_license
#include <windows.h> #include "resource.h" HINSTANCE hInst; LRESULT CALLBACK WndProcedure(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG Msg; HWND hWnd; WNDCLASSEX WndClsEx; hInst = hInstanc...
3c6de4e10203f631fcd51772bb26e9da28fe898c
9673aa96ac020bff368fc5752d22be3459b55560
rexhent/NevolutionX
/Includes/sntpClient.cpp
C++
cpp
4,388
permissive
#include "sntpClient.h" #include <utility> #include "infoLog.h" // clang-format off #ifdef NXDK #include <lwip/netdb.h> static int sntpConnect(std::string const& sntpHost, uint32_t port, struct sockaddr& saddr); #endif // clang-format on // Delta between 1/1/1970 and 1/1/1900. static const uint64_t unixToNTPOffsetSe...