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
6d4197f09e320921ff7e8ea5360ceb3d69e6426b
11573fdac8ee38d717d0c8ea8341a0937f39db7a
Azaezel/quillus-daemos
/Zen/plugins/ZBoostNetworking/src/UDP/MessageBuffer.cpp
C++
cpp
4,736
no_license
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ // Zen Enterprise Framework // // Copyright (C) 2001 - 2009 Tony Richards // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arisin...
73d8019b80607e7fab5aa17b51cf879a34071275
da7ab1bf8bedb22f38a9da52602288ccca3dcfb8
Aldidix/TheKirico
/main.cpp
C++
cpp
14,302
no_license
// HelloOpenGL.cpp : This file contains the 'main' function. Program execution begins and ends there. // #define GL_GLEXT_PROTOTYPES #include <iostream> #include <GL/glut.h> #include <GL/gl.h> #include <stdlib.h> #include <math.h> #include <string> #include <IL/il.h> #include <IL\ilu.h> #include <IL\ilut.h...
46141569c2060a1edf069f366a7ca3c0cf18ef2e
1f1fe2a718928807ccf9c031222ca9922fa0db52
ConnectionMaster/godot
/thirdparty/thorvg/src/loaders/svg/tvgSvgUtil.cpp
C++
cpp
8,104
permissive
/* * Copyright (c) 2020 - 2022 Samsung Electronics Co., Ltd. All rights reserved. * 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 ri...
48097204409dfc1dcd172b26e1b10237955bd21b
832a3850fa1033439ae0272e7b54733e15cbeaa8
DigiByte-Core/digibyte
/src/bench/rpc_blockchain.cpp
C++
cpp
1,640
permissive
// Copyright (c) 2016-2020 The DigiByte Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <bench/data.h> #include <rpc/blockchain.h> #include <streams.h> #include <test/util/setup...
af93cb953552c1ef8de9dab7ccbadd72b58fb634
3daa47260c56122a57ae8ede2c55f46ae7990196
afluriach/ScarletDevilUnderground
/Classes/spells/SpellUtil.cpp
C++
cpp
1,709
no_license
// // SpellUtil.cpp // Koumachika // // Created by Toni on 3/27/19. // // #include "Prefix.h" #include "Agent.hpp" #include "AIUtil.hpp" #include "Bomb.hpp" #include "physics_context.hpp" #include "SpellUtil.hpp" #include "Wall.hpp" void explosion(const GObject* source, SpaceFloat radius, DamageInfo baseDamage) {...
b4341173baa50d26ceed9842eeebd7df28643169
d7ad4f06bafead949b50a0db7f66895aa3e264e5
cpe102/lab11-2562-2-konglarock
/lab11_3.cpp
C++
cpp
437
no_license
#include<iostream> using namespace std; void mySwap (int &x,int &y); //Pass variables by references int main(){ int x = 6, y = 9; cout << "Before swapping:\n"; cout << "x = " << x << ", y = " << y << "\n"; mySwap (x,y); cout << "After swapping:\n"; cout << "x = " << x << ", y = " << y << "\n"; return 0; } ...
a117956e676efca51b9bd970541b3cc7e9b6b783
474765e7dd27dabfb9c743ba614e6041d35cccc2
honesttea/URI
/1253.cpp
C++
cpp
604
no_license
#include <bits/stdc++.h> using namespace std; int main() { string entrada; int qtd, qtd2; int total; cin>>qtd2; for(int i = 0;i<qtd2;i++){ cin>>entrada; cin>>qtd; printf("%d",total); for(int j = 0;j<entrada.size();j++){ if(entrada[j]+qt...
f2c5e8ddc95aff525a4ff07b3a0832687b4be6bd
9026533ca61829f12f63edeb5e31e6b47e67fa53
nsrchemie/learncpp
/Arrays_and_Strings/mDmArr.cpp
C++
cpp
390
no_license
#include <iostream> using namespace std; int main() { const int A_ROWS = 3; const int A_COLS = 3; int threeRowsNCols [A_ROWS][A_COLS] = { {61,62,63}, {73,94,17}, {95,24,79}}; for (int row = 0; row < A_ROWS; ++row) { for (int col = 0; col < A_COLS; ++col) { cout << "Row [" << row << "] Col [" << col ...
f12a8d186312569ec90218c2a955c7c3fe2f1955
f14f5761ce705f66f5b7026699bbf28be1346e95
blotenko/task_If_Switch_15
/lib_if_.cpp
C++
cpp
10,559
no_license
#include <iostream> using namespace std; #include "lib_if_.hpp" /* Даны два числа. Вывести вначале большее, а затем меньшее из них. */ void task8(){ int a,b; cout<<"Введите первое число : "; cin>>a; cout<<"Введите второе число : "; cin>>b; if(a>b) cout<<"Число "<<a<<" больше чем "<<b<<endl;...
30ac6499300e8268a7007517f5406f195762e95e
f9a91dea6c59d731f271698993308973414143b7
mba5157/opbb10
/hookflash-libs/boost/libs/exception/test/errinfos_test.cpp
C++
cpp
2,545
permissive
//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. //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) #include <boost/exception/errinfo_api_function.hpp> #include <boost/exception/errinfo_at_line.hpp> ...
90037d23f4df403bcb1ff9fec8ac418dc45d3faf
00f33ee732495888109590850aa8edd84b13ee3b
YeleiZ/Socket-Programming-Project
/aws.cpp
C++
cpp
7,467
no_license
#include <iostream> #include <sstream> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <arpa/inet.h> #include <sys/types.h> #include <vector> #include <string> #include <sys/types.h> #include <unistd.h> #include <sys/socket.h> #include <netdb.h> #include <arpa/inet.h> #include <string.h> #include <st...
350e258d64fb976016898e54783b92b8a81cbdb2
630acf128fd6918cc37292c99893989b9908c1fc
BROEntertainment/Movie
/movies.cpp
C++
cpp
8,686
no_license
#include <iostream> #include <string> #include <sstream> #include <fstream> using namespace std; class Movie { private: string DVD_Title, Status, Genre; double Price; string Year, DVD_ReleaseDate, ID; public: Movie(){}; Movie(string DVD_Title,string Status,double Price,string Year,string Genre,string DVD_...
31c4c670627401a74bfa5ac722afa57d2ca62920
71fdd483bc85bb6d48e5083284e07aa2780b4348
Tristochi/Segs
/Projects/CoX/Common/GameData/GameDataStore.cpp
C++
cpp
23,193
permissive
/* * SEGS - Super Entity Game Server * http://www.segs.io/ * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md) * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details. */ /*! * @addtogroup GameData Projects/CoX/Common/GameData * @{ */ #include "GameDataStore.h" #...
93dd77857aa338273d7109e2d593361c084b65cb
5bd6f9953493fb953dc45d18779fbc8335459bc8
ymko13/KaosuProject
/Source/KaosuProjectApplication/Common/Modules/VLoadingScreen.cpp
C++
cpp
12,830
no_license
/* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Product and Trade Secret source code contains trade secrets ...
45845bd41f3c0cacd99e7aaa3bbc14181cae451e
e7c44416191d993ea1720e04ec66c5e14cd79713
thngkaiyuan/chromium
/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp
C++
cpp
27,524
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 "modules/cachestorage/Cache.h" #include "bindings/core/v8/ExceptionState.h" #include "bindings/core/v8/ScriptFunction.h" #include "bindings/core...
865beb7ff61c0003b8948b9d784d1be8e0dfab9f
ce81e54aeaa399f479f82904bed01c70e03ff297
qunin/sudoku
/BIN/sudoku.cpp
C++
cpp
3,947
no_license
#include <iostream> #include <ctime> #include <stdlib.h> #include <time.h> #include <conio.h> #include <stdio.h> #include<string.h> using namespace std; int sdk[9][9]; bool valid(int sudoku[][9],int m,int n) { int tmp=sudoku[m][n]; int i,j; for(i=0;i<9;i++) { if (i!= m&&sudoku[i][n]==tmp) return false; } fo...
824d25727d505b912b07c91e6b21cc68eac9cb79
9fc519dcb75b82489253cfc22c501df246dc3563
mj10777/gdal
/gdal/ogr/ogrsf_frmts/idf/ogridfdatasource.cpp
C++
cpp
17,308
permissive
/****************************************************************************** * $Id$ * * Project: IDF Translator * Purpose: Implements OGRIDFDriver. * Author: Even Rouault, even.rouault at spatialys.com * ****************************************************************************** * Copyright (c) 2015, ...
62d477d1a74e633c06d1395e3fa35bd8e271119a
25666250522de2deb3f27885f642eb8fa7521d93
mwilsnd/SkyrimSE-SmoothCam
/SmoothCam/source/render/common.cpp
C++
cpp
1,421
no_license
#include "render/common.h" extern Offsets* g_Offsets; float Render::GetFOV() noexcept { #ifdef SKYRIM_SUPPORT_AE static const auto fov = REL::Relocation<float*>(g_Offsets->FOV); const auto deg = *fov + *REL::Relocation<float*>(g_Offsets->FOVOffset); return glm::radians(deg); #else // The game doesn't tell us abou...
5a5e76add8ccbefdc18a60d48da5bc90e51b9b3d
949ca5cdd65f518cf0d2142f8c75fcd746040cfc
RyuJaeSung/Ratropolis_remade
/Ratropolis/MouseMgr.cpp
C++
cpp
1,116
no_license
#include "stdafx.h" #include "MouseMgr.h" #include "Graphic_Device.h" #include "TextureMgr.h" CMouseMgr* CMouseMgr::m_pInstance = nullptr; CMouseMgr::CMouseMgr() { m_pDevice = nullptr; } CMouseMgr::~CMouseMgr() { Release(); } void CMouseMgr::Initialize() { m_pDevice = CGraphic_Device::Get_Instance(); ShowCursor...
b6b86bb2d178c45800baaf1c36a141855bb33214
951e1a215ca55681894d82250f2a9d8f79c5bc49
msorins/IronCoders
/cursuri/users_code/brattyx-25-3.cpp
C++
cpp
200
no_license
#include <iostream> #include <string.h> using namespace std; char str[101],str2[101]; int main() { cin.getline(str,100); cin.getline(str2,100); if (strlen(str)>strlen(str2)) cout<<1; else cout<<2; }
084f99af6531bc8c0324cc4ab86f96b2aa296e72
0db185920e967eef063cb69c93e1c1efe12d6197
plstcharles/litiv
/3rdparty/dshowbase/src/gmf/cp.cpp
C++
cpp
7,872
permissive
// // Implementation of Connection Point classes for DirectShow filters, // required to support outgoing ActiveX events // #pragma warning(push) #pragma warning(disable:4312) #pragma warning(disable:4995) #include "litiv/3rdparty/dshowbase/streams.h" #include <comdef.h> _COM_SMARTPTR_TYPEDEF(IMemAllocator, IID_IMemAll...
f13827b81a57c2d6aa717503a504391292f78241
17e0b555276d588f659916ab443f16afab050d24
jtlap/nt2
/modules/core/swar/include/nt2/core/functions/outer_scan.hpp
C++
hpp
2,557
permissive
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
65ec5387335f817ecbc5b893ee54dfc5686b2302
93ae1ddc9098072daf911996c7c9985020157bc3
PayQ/anodoscoin
/src/qt/clientmodel.cpp
C++
cpp
8,927
permissive
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Anodos developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2015-2017 The ANS developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/m...
73255330c49fe4901ca1fa8b2824142c96ad3f72
fd5fe9c61b8aa6562e73cdad51454f2a62f3d82a
snashraf/SURVIVOR
/src/Summarize_SV.cpp
C++
cpp
7,453
permissive
/* * Summarize_SV.cpp * * Created on: Nov 18, 2015 * Author: fsedlaze */ #include "Summarize_SV.h" void adjust(std::vector<int> & vec, int dist) { while (vec.size() < dist + 1) { vec.push_back(0); } } /* Rcode: if (!require("RColorBrewer")) { #install.packages("RColorBrewer") library(RColorBrewer) ...
2e5d47c189cff1fb3293868f501959dcfd826c38
23ba58cee47584c2be86690fbb2cb6845bb20863
AOSP-RRO/platform_frameworks_base
/core/jni/android_hardware_Camera.cpp
C++
cpp
45,981
permissive
/* ** ** Copyright 2008, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by appl...
c7afe67530f0190db904bededf19a94a215e8c15
adfd9f11c37ba0ac48a46e3cbf596ea850fdaee9
anil-adepu/HPC_lab
/client_server/thread_client.cpp
C++
cpp
1,475
no_license
#include <bits/stdc++.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <pthread.h> #define endl "\n" #define pb push_back typedef int ll; typedef unsigned long long ull; using namespace std; #include<arpa/inet.h> int32_t main(int count, char* argv[]) { ll soc...
a014ea06e5ac9da4f55f47f5d1a44f2a844423ac
bb9ca109de4484aa32ef7b8d99957b28e9b9f31c
ericosur/myqt
/resid/msgout.cpp
C++
cpp
1,503
permissive
#include "msgout.h" #include <iostream> #include <QCoreApplication> #include <QTime> bool g_messageVerbose = false; /** \brief myMessageOutput() is customized message handler to redirect qDebug() **/ void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg) { Q_UNUSED(conte...
51604fcfe7be8f6b9d6ae16e893dec2d99e84926
e5f9061c27568b6ca4a43f39ba67a79cc401fbc8
MartynaChodkowska/AdressBookOOP
/Uzytkownik.cpp
C++
cpp
426
no_license
#include "Uzytkownik.h" void Uzytkownik::ustawId(int noweId) { if (noweId >= 0) //walidacja id = noweId; } void Uzytkownik::ustawLogin(string nowyLogin) { login = nowyLogin; } void Uzytkownik::ustawHaslo(string noweHaslo) { haslo = noweHaslo; } int Uzytkownik::pobierzId() { return id; } string...
a399447fee6da79cdbbc39828a2db4ee66d4a62c
663d987c6b718daa95f060dcc072e139aa482361
uel-dataexchange/Opencascade_uel
/inc/VrmlConverter_DeflectionCurve.hxx
C++
hxx
3,992
no_license
// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _VrmlConverter_DeflectionCurve_HeaderF...
eef633fb0f28cd76cdfb055f3753ac4759db1d01
4ff28dceefc3170cffdc758e4132a9b5613f8e89
hhx20120607/CodingInterviewGuide
/question2_21.cpp
C++
cpp
2,532
no_license
#include <stdio.h> #include <stdlib.h> #include <map> #define maxn 500001 /* 先序、中序和后序数组两两结合重构二叉树 */ using namespace std; typedef struct node { int data; node* left; node* right; } node; node nodes[maxn]; void constructByPreIn(node* &t,int* pre,int pL,int pR,int* in,int iL,int iR,map...
642d74033d36a338bc81f1da2ebe2676d7a514e7
637c69204addfe2a1d0869f4f5269bc67a9d1919
smeenai/llvm-project
/llvm/unittests/IR/InstructionsTest.cpp
C++
cpp
68,218
permissive
//===- llvm/unittest/IR/InstructionsTest.cpp - Instructions unit tests ----===// // // 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 // //===---------------------------...
b52cb3f1986e9f12db6cf7bd9088dcc5633b7597
b55702e55725999ef17b1adb6e92b3b56e21a9b5
patiwwb/placementPreparation
/Graphs/checkGraphIsEulerianOrNot.cpp
C++
cpp
2,088
no_license
#include<bits/stdc++.h> using namespace std; class Graph{ int V; list<int> *adj; public: Graph(int x){ V=x; adj=new list<int>[V]; } void addEdge(int u,int v){ adj[u].push_back(v); adj[v].push_back(u); } void DFSUtil(int v,bool visited[]){ visited[v] = true; list<int>::iterator i; ...
42c17b0a091870cffcc575f72c979793dd7c9734
ef7059c54d1a8bd3c611deb1a285eb542ea750a6
heyzwming/HumanHungry
/HumanHungry/myskill/src/GotoPos.cpp
C++
cpp
631
no_license
/************************************************************ * 跑位接球函数函数名: GotoPos * * * * 实现功能: 指定跑位点 * * * * 具体描述: * * * * * * 返回值: PlayerTask * * * * 说明: * * * ***********************...
1e5d1811c8bb7c63a9b9aaad4fcaf21a20aba0c4
4d578dbcc8acc68b87e480132e4c2d3e6124971b
nbgao/HDU-Graduate-Algorithm-Design-Experiment
/W3/3-4.cpp
C++
cpp
2,062
no_license
// 0-1二维费用背包 #include <bits/stdc++.h> using namespace std; // 0-1一维背包问题 空间复杂度O(nc) 时间复杂度O(nc) /* int main(){ int n,c; cin>>n>>c; int w[n+1], v[n+1]; for(int i=1;i<=n;i++) cin>>w[i]>>v[i]; int dp[n+1][c+1]; memset(dp,0,sizeof(dp)); for(int i=1;i<=n;i++) for(int j=c;j>=0;j--){...
89a3facc2000fb6506c0754b59d36ee396c8c980
4eb0ed615da5327ab5a1d7ab798e932f673ea41d
naveen36/EquationSolver
/split.cpp
C++
cpp
2,018
no_license
// // Created by Naveen Varma on 4/15/18. // #include "header.h" int Equation:: split(string line) { double sum_int=0; //sum of integers in the equation string match_pattern = "([[:s:]]+(?:[[:alpha:]]+|[[:digit:]]+))"; ...
adf10196542789e66388ceb2e54036107285718c
ed8c8c9064c33414c6b7b794d54471efb93cc98f
JuanJosephG/MyProject
/PaginaNews/thrift/thrift-0.11.0/compiler/cpp/src/thrift/thrifty.cc
C++
cc
96,769
permissive
/* A Bison parser, made by GNU Bison 3.0.4. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. 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...
15a95ada5c264b69bae5ca6a152b07b943131561
4a029329ee79615c0bc73a910f859ab25436e0a8
SREERAGI18/chromium
/services/network/cookie_settings_unittest.cc
C++
cc
33,350
permissive
// Copyright 2018 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/network/cookie_settings.h" #include "base/test/metrics/histogram_tester.h" #include "base/test/scoped_feature_list.h" #include "base/t...
4e03a8e90d5fb0d7211ef8afe25fdbdf6aa2713c
1aa45b39ed6620fad8a624dc6e2a43ff5f16246f
elisobylak/StudentOriginatedSoftware
/Winter/Data Structures/Week5/lab4_hashTableWithChain.cpp
C++
cpp
1,546
no_license
template <typename HashedObj> class HashTable { public: explicit HashTable( int size = 101 ); bool contains( const HashedObj & x ) const { const list<HashedObj> & whichList = theLists[ myhash( x ) ]; return find( whichList.begin( ), whichList.end( ), x ) != whichList.end( ); } void makeE...
3e1689f1bc1cdf0095c56023935d8f3d5394c8b3
65b3fb2b711fbf01dffaa90c06043c193537b314
Valcob/deconz-rest-plugin
/sensor.cpp
C++
cpp
63,640
permissive
/* * Copyright (c) 2013-2019 dresden elektronik ingenieurtechnik gmbh. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * */ #include "sensor.h" #include "json.h" ...
349777392e885c7547cb3b3d67ce0af50f9de27e
356c8df5673d0b111533fe3bb637fd2d9851ada4
HarleyWB/aFile
/word防伪无界面版本/RGBtransHSV.cpp
C++
cpp
5,385
no_license
#include "RGBtransHSV.h" void sharpen(const Mat& img, Mat& result) { result.create(img.size(), img.type()); //处理边界内部的像素点, 图像最外围的像素点应该额外处理 for (int row = 1; row < img.rows - 1; row++) { //前一行像素点 const uchar* previous = img.ptr<const uchar>(row - 1); //待处理的当前行 const uchar*...
4c416975f8078b5efd7d5eaa90fc1ed373cf5794
0d41f7dd055628d75ae6abe9f2ecbd5fc79bf188
icl-rocketry/Avionics
/Ricardo_OS/Ricardo_OS/lib/ArduinoJson-6.x/src/ArduinoJson/Deserialization/Readers/FlashReader.hpp
C++
hpp
1,164
permissive
// ArduinoJson - arduinojson.org // Copyright Benoit Blanchon 2014-2021 // MIT License #pragma once namespace ARDUINOJSON_NAMESPACE { template <> struct Reader<const __FlashStringHelper*, void> { const char* _ptr; public: explicit Reader(const __FlashStringHelper* ptr) : _ptr(reinterpret_cast<const char*...
8000941035018ba5a8b44458fdb080e583fa4d74
7f8ac33a1e22938802d6410b4ca8ddddeed23445
ihmin/bspsGPU
/MeshRApp.hxx
C++
hxx
786
permissive
//////////////////////////////////////////////////////////////////// // // $Id: MeshRApp.hxx 2021/06/05 12:27:15 kanai Exp $ // // Copyright (c) 2021 Takashi Kanai // Released under the MIT license // //////////////////////////////////////////////////////////////////// #ifndef _MESHRAPP_HXX #define _MESHRAPP_HXX 1 #i...
2c199cbf256d9092e3e073aa1fff44fa188dae01
b3a143f6c826f8c5a622243d558d2c109bea1424
takaxyz/atcoder
/ABC104/A.cpp
C++
cpp
436
no_license
#include <bits/stdc++.h> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) #define ALL(a) (a).begin(),(a).end() #define VI vector<int> #define MOD 1000000007 typedef long long int ll; const ll INF=(ll)1e19; //const int INF=(1<<30); int main(){ int r; cin...
6c1d437f7bf61149020d05211a77545cab2dabcc
f491db4ec16de7627091721bd4e303a4a7f56a42
zhaoxiaokai520/ActionGame
/Plugins/PakMgr/Source/PakMgr/Private/SPakMgrPanel.cpp
C++
cpp
4,930
no_license
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. #include "SPakMgrPanel.h" #include "SlateOptMacros.h" #include "Textures/SlateIcon.h" #include "EditorStyleSet.h" #include "PakMgrModule.h" #include "Widgets/Docking/SDockTab.h" #include "Modules/ModuleManager.h" #include "FileTree/SFileTree.h" #include "In...
9150e10e3546c12918f05a28e0847473cd26d2d6
f498419dd429bd92165cbc97f7f005ff1d460f9b
aleonnet/ros-slam-cars
/navio_provided/C++/Examples/RCInput/RCInput.cpp
C++
cpp
814
permissive
#include <unistd.h> #include <cstdio> #include <Navio2/RCInput_Navio2.h> #include <Navio+/RCInput_Navio.h> #include <Common/Util.h> #include <memory> #define READ_FAILED -1 std::unique_ptr <RCInput> get_rcin() { if (get_navio_version() == NAVIO2) { auto ptr = std::unique_ptr <RCInput>{ new RCInput_Na...
6c9ae67bbee6235b847aedbffba422de3155cca4
25998aa7e48104df3d6707ed94ecf98056892b07
BenJamesbabala/amunmt
/src/common/config.cpp
C++
cpp
11,000
permissive
#include <set> #include "config.h" #include "file_stream.h" #include "exception.h" #define SET_OPTION(key, type) \ do { if(!vm_[key].defaulted() || !config_[key]) { \ config_[key] = vm_[key].as<type>(); \ }} while(0) #define SET_OPTION_NONDEFAULT(key, type) \ do { if(vm_.count(key) > 0) { \ config_[key] = vm_[ke...
aa0490e1b8480d9a0220360b8440a40a0b74087b
bc9aee64495e705110eb861e805cbc7f1d588f55
aggarwalanubhav/Nucleus
/src/gtpV2Codec/ieClasses/additionalFlagsForSrvccIe.cpp
C++
cpp
2,978
permissive
/* * Copyright 2019-present Infosys Limited * * SPDX-License-Identifier: Apache-2.0 */ /****************************************************************************** * * This is an auto generated file. * Please do not edit this file. * All edits to be made through template source file * <TOP-DIR/scripts/GtpV2...
edec26dbb3947bcaabd9742f742769b7bb4ef0fe
3bf7adffcd8b675e4c6e9082cf6de44fd114c1d4
adminy/vanilla-server
/game/src/dragon_soul_table.cpp
C++
cpp
25,810
no_license
#include "stdafx.h" #include "constants.h" #include "group_text_parse_tree.h" #include "dragon_soul_table.h" #include "item_manager.h" #include <boost/lexical_cast.hpp> const std::string g_astGradeName[] = { "grade_normal", "grade_brilliant", "grade_rare", "grade_ancient", "grade_legendary", }; const std::string ...
e2b78e1b1c04605b540f980e89437ac4e8553603
b7103768ce9c169055baa1490b319006fab046ea
envoyproxy/envoy-wasm
/source/extensions/transport_sockets/tls/private_key/private_key_manager_impl.cc
C++
cc
1,013
permissive
#include "extensions/transport_sockets/tls/private_key/private_key_manager_impl.h" #include "envoy/extensions/transport_sockets/tls/v3/cert.pb.h" #include "envoy/registry/registry.h" namespace Envoy { namespace Extensions { namespace TransportSockets { namespace Tls { Envoy::Ssl::PrivateKeyMethodProviderSharedPtr Pr...
1d38edd6fbd1a3d54381bb2ed957a939ec39e9f0
b6524f74c8091409c3fa5809db85900b98a9945e
minux777/util
/zigzag_encode.cpp
C++
cpp
2,195
no_license
#include <vector> #include <iostream> #include "headers/read_MDT.h"//mdt-parse-morton #include "headers/difftree.h"//diferencial encoder #include "headers/timing.h" using namespace std; int main(int argc, char * argv[]){ if(argc < 3){ cout << "use: " << argv[0] << " <filename> <0=without 0s|1=with 0s> [nºrep querys...
e966f38babf60b1c9a60214ae5a606013761ec2f
0de9aefa93d89d7254d179fd7b805e6277b64e8a
AlexRaheb/--193-
/Praktika 2.cpp
C++
cpp
2,855
no_license
// Дана матрица А(nn). Найти наибольшие элементы каждой //строки матрицы. В каждой строке заменить нулями элементы, //расположенные левее наибольшего #include <iostream> #include <locale> #include <fstream> #include <iomanip> #include <stdio.h> using namespace std; //Çàïîëíåíèå ìàññèâà [n]...
51b17690eaddf6aaa8fbc5e09b17324fd4f7c0fd
2f8abe6dffed07cb834d4c66f1da3f46488db958
LoesterFranco/llvm-project
/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
C++
cpp
173,005
permissive
//===- CodeGenDAGPatterns.cpp - Read DAG patterns from .td file -----------===// // // 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 // //===---------------------------...
c0d88a2207e2934e0d22c3c09330e6c10f771bf3
54dc60092e505beeffe954ae23529efdbf1c226a
davidaknowles/leafcutter
/leafcutter/src/stanExports_bb_glm.cc
C++
cc
1,880
permissive
// Generated by rstantools. Do not edit by hand. #include <Rcpp.h> using namespace Rcpp ; #include "stanExports_bb_glm.h" RCPP_MODULE(stan_fit4bb_glm_mod) { class_<rstan::stan_fit<stan_model, boost::random::ecuyer1988> >("model_bb_glm") .constructor<SEXP,SEXP,SEXP>() .method("call_sampler", &rstan::...
6a12b6aab431b534d4f50649e5a331c9c2e16212
5d7a86cc3fd1e327e450d4645c9816938eb634c1
GBDT-PL/GBDT-PL
/include/vectorize/vectorize_common.hpp
C++
hpp
2,476
permissive
// // common.h // LinearGBMVector // // #ifndef vectorize_common_hpp #define vectorize_common_hpp #include "x86intrin.h" //extend a 8 bits unsigned char into 64 bits, replicate it 8 times inline int64_t extend_8_to_64(uint8_t __t) { uint64_t __extend = __t; return __extend | (__extend << 8) | (__extend...
da724d1f13a261021b2d4957a0d3a43be45a22e0
af6d7d25602fdef2458387a709d1382af1dc8fae
yenilmezDev/CTIS489-Interactive-Computer-Graphics
/Huseyin_Yenilmez.cpp
C++
cpp
14,983
permissive
#include <GL/freeglut.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <stdarg.h> #include "camera.h" #include "texture.h" #include "LightSource.h" #include "PointLightSource.h" #include "Material.h" #include "Model.h" #include "stb_image.h" #include <sstream> #incl...
075958dcb14a64ea38cedd660491f5e587abd9f5
bb7753743673fee1e2a54cc8550a22954ddc6ff7
tarekfellah/hhvm
/hphp/compiler/expression/simple_function_call.cpp
C++
cpp
46,214
permissive
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) | +---------...
71e392e486e153fc0e234b499026699437320a76
35818247cceb5e89bef0a92631041712d6ad971c
connectthefuture/psdmrepo
/pypdsdata/tags/0.3/src/ProcInfo.cpp
C++
cpp
4,758
no_license
//-------------------------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Class ProcInfo... // // Author List: // Andrei Salnikov // //------------------------------------------------------------------------ //----------------------- // This Clas...
ae388248fcb62de4b4a399040489bb40ef6167b1
8bd0a0b2fc85e69c548bf8b8ad98c6f6200b698f
gncoincc/gncoin
/src/netbase.cpp
C++
cpp
42,072
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifdef HAVE_CONFIG_H #include "config/gncoin-config.h" #endif #include "netbase.h...
fe9914c0434a6205f5b39582c4094c2ae14adc28
cf97bdd611ff9ae1b83ef982198fb58a77a3edbf
pedropaim/Quad_Estimator
/QuadEstimatorEKF.cpp
C++
cpp
17,732
no_license
#include "Common.h" #include "QuadEstimatorEKF.h" #include "Utility/SimpleConfig.h" #include "Utility/StringUtils.h" #include "Math/Quaternion.h" #include "Constants.h" using namespace SLR; const int QuadEstimatorEKF::QUAD_EKF_NUM_STATES; QuadEstimatorEKF::QuadEstimatorEKF(string config, string name) : BaseQuadEs...
153d3fcc2cff3d7c62b4500f6b5a4d4f9c68130c
18b6cc12cc6fc285c1277459fa87075a7cd8fbef
homacoin-project/homacoin
/src/script.cpp
C++
cpp
64,858
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Homacoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/foreach.hpp> #include <boost/tuple/tuple.hpp> using namespace std...
be75f2851932808b1da7df78297fa21d6db10ee9
2eb1c1eb5b70bb4f13eb45f4b04ac99773c891ed
kvdheijden/Multi-Robot-Motion-Planning
/src/main.cpp
C++
cpp
793
no_license
#include <iostream> #include <boost/filesystem.hpp> #include <QApplication> #include <QGraphicsScene> #include <QObject> #include <CGAL/Qt/CircularArcGraphicsItem.h> #include "MainWindow.h" static void snap_xdg_fix() { using namespace boost; filesystem::path xdg_runtime_dir(std::getenv("XDG_RUNTIME_DIR")); ...
fa52e312a47dad53fae59fbe9939ebf28aefe9ef
7251d68a8de1840335a0af02a8827e79571bc9f7
Xilinx/Vitis_Libraries
/vision/L1/include/imgproc/xf_stereo_pipeline.hpp
C++
hpp
8,849
permissive
/* * Copyright 2019 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
8484e9507fd2add2c5757e00a7c58d1444f62cbf
d01670892e28a39211463d6950477ef00393e2ae
showmake/Contest
/acwing/improve/graph/lca/1172.cpp
C++
cpp
1,736
no_license
#pragma GCC optimize(2) #include <iostream> #include <cstring> #include <algorithm> #include <vector> #include <deque> #include <stack> #include <queue> #include <cmath> #include <set> #include <map> #include <unordered_set> #include <unordered_map> using namespace std; using ll= long long; using pii =pair<int,int> ;...
ae8d91b0f44987ff1be74eeedf300673de2c4519
f71e92eb870ef99a64ffcba249027efe388e08fd
DDan1l232/SoT-SDK
/SDK/SoT_BP_hair_col_brown_03_over_Desc_parameters.hpp
C++
hpp
385
no_license
#pragma once // Sea of Thieves (2.0.17) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_BP_hair_col_brown_03_over_Desc_classes.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //---------------------------------------------------------...
f6d47be0f70bb4de26af899f40a09ca1f1791cf9
0d1f81aec70619e16a11a0afe010441c40535fd4
litao1009/SimpleServer
/externals/AutoDB/src/Column.cpp
C++
cpp
1,405
no_license
#include "AutoDB/Column.h" #include "AutoDB/SColumns.h" #include "ColumnImp.h" #include <assert.h> namespace autoDB { Column::Column( TableImpSPtr sptb, const StringType& colName):ImpUPtr_(new Imp(colName)) { ImpUPtr_->TableInfoSPtr_ = sptb; } Column::Column( const Column& rhs ):ImpUPtr_(new Imp(*rhs.ImpUPtr_)) { ...
76110fa3b92e9b04dc52804652d324c014ec5d98
62a63b8e9922e15439f2f1e69b529b9ef0f78a39
MaxSab-Git/Think-AHead
/Think AHead/Project2/Project2/Grille.cpp
C++
cpp
4,683
no_license
#include "Grille.h" #include "Joueur.h" #include <iostream> Grille::Grille(int nbCases, const sf::Font& font, float tailleCellule) : m_tailleCellule(tailleCellule) { m_valeur.setFont(font); m_valeur.setFillColor(sf::Color::Black); m_valeur.setCharacterSize(20U); m_valeurs.resize(nbCases); regenerer(nbCa...
edc850dd060a49bfe2f1d9bf9367ded620baa2db
2205cf4aa8af92d5a3855fcf2fd9e3dfe5c861d8
ISISComputingGroup/EPICS-ioc
/SP2XX/SP2XX-IOC-02App/src/SP2XX-IOC-02Main.cpp
C++
cpp
412
permissive
/* SP2XX-IOC-02Main.cpp */ /* Author: Marty Kraimer Date: 17MAR2000 */ #include <stddef.h> #include <stdlib.h> #include <stddef.h> #include <string.h> #include <stdio.h> #include "epicsExit.h" #include "epicsThread.h" #include "iocsh.h" int main(int argc,char *argv[]) { if(argc>=2) { iocsh(argv[1...
db9444d43732bca371043fa72d4990a22e4ca859
9815f4703c2305d335c4e5b69c2726dd1432ac98
perewodchik/contests
/#5/L/L.cpp
C++
cpp
1,777
no_license
#include <iostream> #include <vector> #include <string> #include <cmath> using namespace std; int digit_sum(long long n) { int sum=0; while(n) { sum += (n%10); n /= 10; } return sum; } int first_digit(long long a) { int a_f; while(a) { a_f = a%10; a /= 10; } return a_f; } int digit_mult(long long n...
a516618a596c5e163479bd04c628bb19eb59ccea
4d2682a9715808fefd6b9232f44e83bcdb404b25
PawkaHub/Lore-Unity
/Builds/iPhone/Classes/Native/LuaInterpreterMetadata.cpp
C++
cpp
24,010
no_license
#include "il2cpp-config.h" #include "class-internals.h" #include "codegen/il2cpp-codegen.h" #include <cstring> #include <string.h> #include <stdio.h> #ifndef _MSC_VER #include <alloca.h> #else #include <malloc.h> #endif #include <cmath> #include <limits> #include <assert.h> #include "stringLiterals.h" extern TypeInfo...
e73c30aa98964f395334f80aea457773d7c46d75
7288a7a24b258bf7fdb2c531aaa10c07e2ff7dc5
ahsanMuzaheed/Midi-Unreal
/Procedural-Midi/MidiAsset/Source/Midi/Classes/Event/MidiEvent.cpp
C++
cpp
5,073
no_license
// Copyright 2011 Alex Leffelman // Updated 2016 Scott Bishel #include "MidiEvent.h" #include "ChannelAftertouch.h" #include "ChannelEvent.h" #include "Controller.h" #include "NoteAfterTouch.h" #include "NoteOff.h" #include "NoteOn.h" #include "PitchBend.h" #include "ProgramChange.h" #include "SystemExclusiveEvent.h"...
819516371c273b98c00c60d57bec376b967663b5
5e2a7153c4b5cb890ea0be258197236a2ac5f02f
Nandhini1296/CS1032-Data-Structures-and-Algorithms
/SLL.cpp
C++
cpp
5,665
no_license
#include<conio.h> #include<stdio.h> #include<malloc.h> struct node{ int data; struct node *next; }; struct node *start=NULL; struct node *create_list(struct node *); struct node *display(struct node *); struct node *insert_beg(struct node *); struct node *insert_end(struct node *); struct node *insert_bef(s...
dc0438cbda25653af91e69ec1791a023ab9948ba
e5190cabf95820e4294e2f474e73fa8919395235
tsnest/lost-alpha-dc-sources-master
/xray-svn-trunk/xr_3da/xrGame/ui/UIBtnHint.cpp
C++
cpp
1,382
no_license
#include "stdafx.h" #include "UIBtnHint.h" #include "UIFrameLineWnd.h" #include "UIXmlInit.h" CUIButtonHint* g_btnHint = NULL; CUIButtonHint* g_statHint = NULL; CUIButtonHint::CUIButtonHint () :m_ownerWnd(NULL),m_enabledOnFrame(false) { // Device.seqRender.Add (this, REG_PRIORITY_LOW-1000); CUIXmlInit xml_i...
db2be610444cabca3b60b4469f1470ae32258a9b
0889d8314c3b85b440daaac190df1070d3732f13
Chaphlagical/LSRViewer
/source/framework/scene_graph/components/sub_mesh.cpp
C++
cpp
2,368
permissive
/* Copyright (c) 2018-2019, Arm Limited and Contributors * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 the "License"; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/L...
09e6826440d00ada296f8a982afde610e297bd41
1c30cf4a8f3b3f36703e64ac063b31a0ae07889a
denismorozov/QtOpenGL-ComputerGraphics
/PA11/src/Maze/ball.cpp
C++
cpp
464
permissive
#include "ball.h" /** * @brief Default constructor for Ball. */ Ball::Ball( const float x, const float y, const float z, bool isBoulder ) : UVPhysicsEntity( btTransform( btQuaternion(0, 0, 0, 1), btVector3(x, y, z) ), // initial state 1, // mass "models/UVSphere50.obj"...
3982d549e8320af1602a54ce73b9b9f4d9751627
1ad1d9e2d01a2644e2fde5fec4ee290b8560f5c6
idzardh/celix
/remote_services/topology_manager/tms_tst/run_tests.cpp
C++
cpp
948
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 no...
12adcd5c835f511fef85ccd44191e95aacd5f7aa
3c1ed3278bc4a1a5d9cddd537d5f20ca47aff00a
jrprice/amber
/src/vulkan/compute_pipeline.cc
C++
cc
2,896
permissive
// Copyright 2018 The Amber Authors. // // 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...
b6936148f07de6e4d0b479a0f8984814a1799381
46a43e822953286dec65d24216acbd0909da42d1
ttyang/sandbox
/sandbox/SOC/2011/simd/libs/simd/test/simd/terminal_of.cpp
C++
cpp
2,152
no_license
/******************************************************************************* * Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II * Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI * * Distributed under the Boost Software License, Version 1.0. * ...
d45fbac83f76e02c93157234b843af2083b9befe
e4374b836b2a6e1e4ceda604eef5dba640748804
HBShaoUFZ/ogs
/ProcessLib/HeatTransportBHE/HeatTransportBHEProcess.cpp
C++
cpp
10,512
permissive
/** * \file * \copyright * Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #include "HeatTransportBHEProcess.h" #in...
0a8c6b8b6a0fab78ce87dc6fd958da59f465317e
6673ad8bc7f694dde71da99696d378d8c9e0d63d
sherwinpalana13/bitcoin-abc
/src/versionbits.cpp
C++
cpp
9,438
permissive
// Copyright (c) 2016-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <consensus/params.h> #include <versionbits.h> ThresholdState AbstractThresholdConditionChecker::GetStateFor( co...
dd8f70a75cb34e400dcf4623751859a7eaec1e84
0d5f081faf297dcbd3c32fc2ffb7e10a2440fc02
broadmind-io/CompetitiveCoding
/CPP/Cheg.cpp
C++
cpp
437
no_license
#include<iostream> #include<iomanip> using namespace std; void modify(int x, int y, int z) { cout << setfill('$'); cout << setw(sizeof(int)) << x; cout << setfill('#'); cout << setw(sizeof(char)) << y; cout << setfill('@'); cout << setw(sizeof(double)) << z << endl; } int main() { modify(...
373f191a5017266d30fad115d1460de818d60c19
37b13408e076314fcf8a43549cb999b74bed6aef
st021213/programming-bach-2020-autumn
/2020.11.11-Homework-5-6-7/2020.11.11-Homework-5-6-7/Source.cpp
C++
cpp
1,790
permissive
#include <iostream> #include "ArrayList.h" using namespace std; int main() { ArrayList list1; cout << list1 << endl; cout << list1.toString() << endl << endl; list1 += 4; list1 += -1238; list1 += 4323; list1 += 21; list1 += 6; cout << "list1 : " << list1 << endl << endl; list1 -= 4; cout << "list1 : " <<...
334529391d07e109f8eab4d0da2b8b0adb684569
87ce4d5c8b2db6b843b4a1109086b3483997b4fd
Shitakami/AtCoder_SolveProblems
/AtCoder/PracticeProblems/DP/ABC015_D_高橋君の苦悩/prog.cpp
C++
cpp
1,331
no_license
/* * いくつかのテストケースでWA */ #include <iostream> #include <algorithm> #include <vector> using namespace std; struct S { int count; int length; S() : count(0), length(0) {} bool operator > (const S &a) { if(length == a.length) return count < a.count; return length ...
c4870c6e69329bac8c0d05cd35bf2ce8aeefb025
36b3a82f0d143dc0b3b578762d12743f083d8ba2
adityanjr/code-DS-ALGO
/CodeForces/Complete/800-899/859B-LazySecurityGuard.cpp
C++
cpp
344
permissive
#include <cstdio> #include <cmath> int main(){ long x; scanf("%ld", &x); long a = sqrt(x); long perimeter(0); if(a * a >= x){perimeter = 4 * a;} else if(a * (a + 1) >= x){perimeter = 4 * a + 2;} else if((a + 1) * (a + 1) >= x){perimeter = 4 * a + 4;} printf("%ld\n", perimeter...
8e9ea904edb45336f9ca29b1c8baf781f7e0ee27
0973c062b7d002780587834b8a2fc012865f2a0b
giallon/couchbase-lite-core
/LiteCore/tests/N1QLParserTest.cc
C++
cc
21,744
permissive
// // c4N1QLParserTest.cc // // Copyright © 2019 Couchbase. 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 // // Unl...
a04ec7829a50925f53d68ee4665ce1276621c58c
be568612e6cf1b393a651e2f6a814b5c6881116a
martell/ellcc
/llvm/lib/CodeGen/RegisterScavenging.cpp
C++
cpp
16,744
permissive
//===-- RegisterScavenging.cpp - Machine register scavenging --------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
c2469b1ff7e2665632ad47a957daebf05e669f75
ccdbd19239a4af970bb563ba67dc517228c27178
blueboxd/chromium-legacy
/ui/base/resource/data_pack_with_resource_sharing_lacros_unittest.cc
C++
cc
9,775
permissive
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/resource/data_pack_with_resource_sharing_lacros.h" #include <filesystem> #include <map> #include <string> #include <utility> #include "base/files/file_util....
6344b0cd8572335a4551a5cdfed2fcf976710813
db78d293cdfb7263fc4581088a0caa645bb6987c
quiddi-github/master-thesis
/example_1/feld_ca.cpp
C++
cpp
777
no_license
#include <iostream> using namespace std; Feld_Ca::Feld_Ca(){} Feld_Ca::~Feld_Ca(){} int Feld_Ca::get_zustand(){return zustand;} std::string Feld_Ca::get_name(){return name;} float Feld_Ca::get_sauerstoff(){return sauerstoff;} float Feld_Ca::get_eisen(){return eisen;} int Feld_Ca::get_zustand_cya...
121a8df9a9449111a2bd63c0d47cd51ffd054f68
a7d98222511a7776a00fa1126b5b55c03860e909
emile24/UnrealEngine-UdemyCourse
/BattleTank/Source/BattleTank/TankAIController.cpp
C++
cpp
805
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "TankAIController.h" #include "Engine/World.h" #include "TankAimingComponent.h" #include "GameFramework/PlayerController.h" void ATankAIController::BeginPlay() { Super::BeginPlay(); } void ATankAIController::Tick(float DeltaSe...
c715158625a6172321040f452cc11bc55f3277e7
439d8273c7d1d43a2f1dcb78f9fcd33a91aa08e3
sgarces/godot
/tools/editor/plugins/script_editor_plugin.cpp
C++
cpp
51,354
permissive
/*************************************************************************/ /* script_editor_plugin.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
4239d33f84a52c435789730cb5e189390af78eef
92c6800381cfd37624b941ddf6ce2ca772fdc642
florommel/ara
/libs/sra/arm/platforms/stm32f103rb/debug.cc
C++
cc
1,921
no_license
#include <stdint.h> extern "C" { typedef struct __attribute__((packed)) ContextStateFrame { uint32_t r0; uint32_t r1; uint32_t r2; uint32_t r3; uint32_t r12; uint32_t lr; uint32_t return_address; uint32_t xpsr; } sContextStateFrame; // NOTE: If you are using CMSIS, the registers can also be // access...
c7c367aa14f16b8dec97ca272a19cac04380033a
d684f38f77e3e2fc3afbfeb9b4e2bf52e21addc4
DaniGodin/LeafModeling
/Cpp/src/Obj/Parser.cpp
C++
cpp
10,407
no_license
// // Created by revetoon on 3/1/19. // #include <tuple> #include <sstream> #include "Parser.hh" #include "../Utils/Strutils.hh" Parser::Parser(const std::string &filename) : filepath(filename) { mtlfilepath = Strutils::rmExtension(filename) + ".mtl"; } Parser::Parser(const std::string &filename, const s...
4cf23bdc44856081cc91218720168c8ebb333fea
12c8d29eeef836884c3c671f44eeac5e5751758a
pavellevap/code_antiplagiat
/final_test/17/u347_86_B_466498.cpp
C++
cpp
3,412
no_license
/** * Author: Sergey Kopeliovich (Burunduk30@gmail.com) */ #include <ctime> #include <cmath> #include <cctype> #include <cstdio> #include <cstdlib> #include <cstring> #include <cassert> #include <algorithm> #include <vector> #include <string> #include <sstream> #include <iostream> #include <functional> #include <ma...
58d9e181ffe67db41786028a943ade0fb8277986
9434b912d088c0d2446c7b5a00fbd03f3573f11d
Bibool/Lost-Souls
/Project/Intermediate/Build/Win64/UE4/Inc/GCAA/FBlinkStatsStruct.gen.cpp
C++
cpp
14,949
no_license
// Copyright Epic Games, Inc. All Rights Reserved. /*=========================================================================== Generated code exported from UnrealHeaderTool. DO NOT modify this manually! Edit the corresponding .h files instead! ========================================================================...
e7114e65463238de018c5721ba12c0378140bdd1
1164f15572e7fcc7042ad92df96acb3ee0a7d6ae
freshbell/Coding-Practice
/Hyundai Mobis/Practice/동계 테스트 시점 예측/동계 테스트 시점 예측/동계 테스트 시점 예측.cpp
C++
cpp
2,160
no_license
// 동계 테스트 시점 예측.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다. // #include <iostream> #include <queue> #include <map> using namespace std; int N, M; int jido[101][101] = { 0 }; int fill(); int ans = 0; int main() { int i, j; int count = 1; cin >> N >> M; for (i = 0; i < N; i++) ...
60fb6c95ab56d897715f8a8847a1fac88d61dd0d
aa19b53684ea269bd9c711b475b5332825460da8
GrafikaNECT/gambar-muka
/src/lib/Point.cpp
C++
cpp
1,249
no_license
#include "../include/Point.h" #include <math.h> #include <iostream> // Constructor Point::Point(int _x, int _y) { x = _x; y = _y; } // Getter int Point::getX() const { return x; } int Point::getY() const { return y; } // Setter void Point::setX(int _x) { x = _x; } void Point::setY(int _y) { y = _y; } // Opera...
2cfbd34e03b29001c68b7c6efd6ef16120570a32
38271a48b70ede494b7d7c08de65a781996deaff
KorolWu/WCS
/WarehouseControlSystem/ControlClass/basedevice.cpp
C++
cpp
8,245
no_license
#include "basedevice.h" /** * @author korol * @date 2020-7-2 09:27 * @brief BaseDevice::BaseDevice * @param ip * @param port * @param parent * 建立客户端通讯,处理了断线重连,将收到的消息处理塞进对应的内存,将消息接受方法,断线重连方法, 清除报警方法虚化,可由子类重写。 */ BaseDevice::BaseDevice(QString ip, qint16 port, QObject *parent) { qRegisterMetaType<OrderStr...
e01725ce3637c2162b68955f057ee07b02a9a7d1
257fc80b405eebea3e7d94fd916f465667653c82
dskarlatos/sst-elements
/src/sst/elements/HMC/HMCsimplemem.cc
C++
cc
5,104
no_license
// Copyright 2009-2017 Sandia Corporation. Under the terms // of Contract DE-NA0003525 with Sandia Corporation, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2017, Sandia Corporation // All rights reserved. // // Portions are copyright of other developers: // See the file CONT...
f4f8af2aec3a17d2814a5e0da855c80fe0e981a5
157a3d602a2177ac4025ad9bb73e220abb66e53b
KinglittleQ/cs144
/tests/fsm_retx_relaxed.cc
C++
cc
2,434
no_license
#include "fsm_retx.hh" #include "tcp_config.hh" #include "tcp_expectation.hh" #include "util.hh" #include <algorithm> #include <cstdlib> #include <iostream> using namespace std; using State = TCPTestHarness::State; int main() { try { TCPConfig cfg{}; cfg.recv_capacity = 65000; auto rd = g...
667e7454d174e67f09d07287bbb233fda21d5293
a202d6213b4b69af88fb84f3f10338230d18f599
bravesoftdz/realwork
/shared/yas/include/yas/serializers/text/boost/boost_container_multimap_serializers.hpp
C++
hpp
3,275
no_license
// Copyright (c) 2010-2014 niXman (i dot nixman dog gmail dot com). All // rights reserved. // // This file is part of YAS(https://github.com/niXman/yas) project. // // 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) ...
2d9b0b8b1509cb681c653cb52e2ef2ff697d7322
4293fdffeff6a37907bc3c7a695bc939edc04fc1
vteromero/algorithms
/sort/sort-stats.cc
C++
cc
1,289
permissive
// Copyright (c) 2013 Vicente Romero Calero // // Distributed under the MIT software license, see the file LICENSE // // Author: Vicente Romero <vteromero@gmail.com> #include "sort-stats.h" #include <stdio.h> #include <cmath> void InitSortStats(SortStats *stats) { stats->array_length = 0; stats->iterations =...