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
59d2976ffb49780bb3ff9ee9e026d543bba0c971
4bc32fe98dae9be6665b0f604a6ea2a0f6d1f8e9
SamarinAnton/Digital-Healthcare
/semester_1/parallel_alg/1/helper_functions.cpp
C++
cpp
3,157
no_license
#include <iostream> #include <random> #include <omp.h> #include <fstream> const int NUMBER_KERNELS = 6; double openMP_multiplication(const std::vector<int>& A, const std::vector<int>& B, std::vector<int>& C, const int N, const int M, int threads, const int hack = false) { // by default threads == number...
da0676477c6a70ca4527337f9ffa29cda5e37ea3
deb7708edafedd03d885ea7161d4d10650eac408
violetForeden/chromium
/chrome/browser/chrome_worker_browsertest.cc
C++
cc
5,413
permissive
// Copyright 2019 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. // This file tests that Web Workers (a Content feature) work in the Chromium // embedder. #include "base/bind.h" #include "base/callback.h" #include "bas...
555e7f2baaf28518faa61361b5718a77eb878121
8422f2767899e55ccc3a0373688fc7d47d3a1622
nimesha95/MyDSA-implementations
/String matching/native/native.cpp
C++
cpp
1,003
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ #include <iostream> using namespace std; void native(string str,string pattern); void native(string str,string pattern){ ...
149831fe6021de12554b5e693b119f11c1d50f19
ad750f11a4475e97419cfe80164ca22101d814ec
arcaneframework/framework
/alien/standalone/src/core/alien/core/block/VBlock.cc
C++
cc
7,261
permissive
/* * Copyright 2020 IFPEN-CEA * * 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 wri...
2ce7d30946bf8452dad46819a52a395ad9fb8ac0
e47b0a501126d120d337ffb1757277bd0bfbc43b
WhW35/wu_hongwei
/3.12/main.cpp
C++
cpp
354
no_license
#include <iostream> #include "Acount.h" using namespace std; int main() { int n=0,m=0,l=0; cout<<"请输入你的余额 "; cin>>n; cout<<"存款 "; cin>>m; cout<<"取款 "; cin>>l; if(l<=n) l=l; else l=0&&cout<<"Debit amount exceeded account balance."; Account account(n,m,l); account.displaymessage(); r...
8f3c65169daba3cab686286f0c8c8189885fa923
3fb40fce914844166b961f213000e7f4868942e0
qingswu/Transim
/Transims60/TourData/Write_Attractions.cpp
C++
cpp
1,136
no_license
//********************************************************* // Write_Attractions.cpp - Write the New Attractions File //********************************************************* #include "TourData.hpp" //--------------------------------------------------------- // Write_Attractions //-------------------------...
6c1f9220c970541dae0e124c51e643190ae5f031
ecc6fc1be810bd92cf7825c1101e32febb7c86cf
liangjisheng/C-Cpp
/C++_CLI/ConsoleApplication23/ConsoleApplication23/AssemblyInfo.cpp
C++
cpp
1,173
permissive
#include "stdafx.h" using namespace System; using namespace System::Reflection; using namespace System::Runtime::CompilerServices; using namespace System::Runtime::InteropServices; using namespace System::Security::Permissions; // // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 // [assembly:AssemblyTitleAttribute(L"C...
42fba024234d4a893de7b20370c76cc58eab6454
5071ca0a883e5ba9d73b0e974de2bc12dff38396
chicio/HackerRank
/DataStructures/InsertaNodeAtaSpecificPositionInaLinkedList.cpp
C++
cpp
1,170
permissive
// // InsertaNodeAtaSpecificPositionInaLinkedList.cpp // HackerRank // // Created by Fabrizio Duroni on 23/10/2016. // // https://www.hackerrank.com/challenges/insert-a-node-at-a-specific-position-in-a-linked-list /*! C alike struct definition. The attribute Node is be declared with struct because in C, Node is...
1c4258df46d85f2ea34886ba28d0081587746a85
b876dc431dc4a1fb1a37975b4fa8d61930e58ad3
sanstwy777/Design-Patterns
/src/pattern/dp03/include/ConcreteCreator.hpp
C++
hpp
470
no_license
/* * ConcreteCreator.hpp * * Created on: Mar 29, 2020 * Author: sanstwy27 */ #ifndef PATTERN_DP03_CONCRETECREATOR_HPP_ #define PATTERN_DP03_CONCRETECREATOR_HPP_ #include "./Creator.hpp" namespace FactoryMethod { class ConcreteCreator: public Creator { public: ~ConcreteCreator(); ...
55ee4855cac6008ac24f87c5d1adba9cf1a30923
7189622e131d777a1e07b05a5894a4755755ac78
enbyted/qlcplus
/webaccess/src/webaccessauth.cpp
C++
cpp
5,828
permissive
/* Q Light Controller Plus webaccessauth.cpp Copyright (c) Bartosz Grabias 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.txt Unles...
f715ac32669bdca75650feda12ba0986a0686b5e
371ab90c6b099d5097d77d2506e5b04b833b524a
Doodidan/circle
/kursovaya/kursovayaDoc.cpp
C++
cpp
3,312
no_license
// kursovayaDoc.cpp : реализация класса CkursovayaDoc // #include "stdafx.h" // SHARED_HANDLERS можно определить в обработчиках фильтров просмотра реализации проекта ATL, эскизов // и поиска; позволяет совместно использовать код документа в данным проекте. #ifndef SHARED_HANDLERS #include "kursovaya.h" #endif #inclu...
36a2b4415fa7bbfe900774879c85a1a5c436749e
ca0373c844473b2f446943d3d8f140de83fe766f
arturo182/OOP
/Hunters/src/itmAnimal.cpp
C++
cpp
989
no_license
#include "itmAnimal.h" #include <QtCore/QDebug> #include <QtCore/QDir> #include <QtCore/QFileInfoList> #include <QtXml/QDomDocument> itmAnimal::itmAnimal(): itmPawn() { } void itmAnimal::loadFromDir(QString d) { QDir dir(d); QFileInfoList list = dir.entryInfoList(QStringList() << "*", QDir::NoDotAn...
238fd967b5e257419d88a6f841b719a4020c7a93
6ffc4f244db838a8cdbfe1942274f4f2000c119e
sigt44/ravage-sdl
/LIST.HPP
C++
hpp
1,559
no_license
#ifndef LIST_H #define LIST_H #include <stdlib.h> struct list { int info; void *data; struct list *next; /*This will always be NULL on the end node*/ struct list *previous; /*If the node is the head, then this points to the end node*/ }; void list_Stack(struct list **head,void *data,int info); ...
7b83b45c5b669f219e15382b4a8a2f4572a2a3b4
7c253b0fc78cdeeda79f1a5ee5fb810cf1f1f948
besimbicer89/SoT-SDK
/SDK/SoT_BP_EquipmentChestInteraction_functions.cpp
C++
cpp
868
no_license
// SeaOfThieves (1.6.4) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- // Function BP_EquipmentChestInter...
c6cfc401feab4e830f626b0d4ad9e1efa4566b2b
e2484862dc731c476debb586f70b66f0df95ea0d
mcneel/rhino-developer-samples
/cpp/SampleCommands/cmdSampleCaptureFrameBuffer.cpp
C++
cpp
1,856
no_license
#include "stdafx.h" //////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////// // // BEGIN SampleCaptureFrameBuffer command // #pragma region SampleCaptureFrameBuffer command class CCommandSampleCaptureFrameBuffer : public CRhinoCommand { public:...
d15259e13f9c45d53ff827e1e66cbaa1156eee3c
d28e0e6f4cc74a31109bf4dd5f6ff393a05e6647
PSgold/BackupDirectory-Linux
/BackupDirectory.cpp
C++
cpp
10,873
no_license
// BackupDirectory.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iomanip> #include <array> #include <vector> #include <string> #include <sstream> #include <fstream> #include <filesystem> #include <memory> #include <mutex> #include <ctime> #include <cst...
e6a16cf265774fb025449a74999e2d81f05ebff1
26ee1aae3616854ef23005b4e1d447e6d219f85b
littlefish123/HackerrankCPlusPlus
/Overload/OperatorOverloading.cpp
C++
cpp
1,315
no_license
// https://www.hackerrank.com/challenges/operator-overloading/problem #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; class Matrix { public: vector<vector<int>> a; public: Matrix& operator + (const Matrix& x) { ...
41a8b8c6612e0acd52a77eb84ea56e909978ebf3
496cdd969e02de2600806e2096f6de64fafcaf87
yxtj/maiter
/src/examples/pagerank.cc
C++
cc
2,045
no_license
#include "client/client.h" using namespace dsm; using namespace std; //DECLARE_string(graph_dir); DECLARE_string(result_dir); DECLARE_int64(num_nodes); DECLARE_double(portion); struct PagerankIterateKernel: public IterateKernel<int, float, vector<int> > { const float zero=0.0f; void read_data(string& line, int& k...
ab713e32f8418c6b868d24b5e53546c058b2ca34
2de47a2dc006fa9a5591217e63d2edd7af06aa55
Tingberer/bank-system
/bank-system/check.cpp
C++
cpp
1,896
no_license
#include "check.h" #include "ui_check.h" #include<QFile> #include<string> #include<QMessageBox> #include<QTextStream> #include<QDateTime> Check::Check(QWidget *parent) : QWidget(parent), ui(new Ui::Check) { ui->setupUi(this); this->setWindowTitle("余额"); } Check::~Check() { delete ui; } void Check:...
15751468cd751ea8a07de5cef964500fb9339605
d339ce48e00155704c11a6cd4973a95c02937047
g-stefan/quantum-script
/source/XYO/QuantumScript/ParserVar.cpp
C++
cpp
4,031
permissive
// Quantum Script // Copyright (c) 2016-2023 Grigore Stefan <g_stefan@yahoo.com> // MIT License (MIT) <http://opensource.org/licenses/MIT> // SPDX-FileCopyrightText: 2016-2023 Grigore Stefan <g_stefan@yahoo.com> // SPDX-License-Identifier: MIT #include <stdio.h> #include <stdlib.h> #include <string.h> #incl...
e068927e9265498d915c50cb9b0c138e202beae1
ff4905513d6aaa27c39f6a79393968a2215fd0eb
Hixon10/task-2-vir
/aucont_exec.cpp
C++
cpp
1,548
permissive
#include <iostream> #include <unistd.h> #include <fcntl.h> #include <vector> #include <sys/wait.h> #include <grp.h> #define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \ } while (0) using namespace std; int fd[2]; int pid; void set_ns(); int main(int argc, char *argv[]) { ...
06d13fa18b6e0be86da0c4efefca1e619777792c
e90137888946a822d87fbe9c94498155db4e77ed
abrennec/ofxadvanced
/02_day/code/c3_image_to_sound/06_image_to_sound/src/ofApp.cpp
C++
cpp
5,098
permissive
#include "ofApp.h" /********** WARNING *********************** To avoid the hazard of damaging your ears, do not listen the project's output sound with headphones. This project uses low-level audio output, so due possible errors in software it can suddenly generate clicks and very loud sounds. **********...
890df9630c59cf0d7305fb6fe5c55fa2f87d8653
33073fe2ee2679b300f9f243b3432f3b123a8ef4
wayland-chen/RaftLib
/raftinc/systemsignalfifo.hpp
C++
hpp
1,337
permissive
/** * systemsignalfifo.hpp - * @author: Jonathan Beard * @version: Fri Jan 2 19:49:31 2015 * * Copyright 2015 Jonathan Beard * * 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: * ...
4c030854b6bb14f42096bb3e5d0f87c34725095e
af9ca7e9897e331587379b1ebadbcb71bd18033d
bbennett905/GLRenderer
/src/Mesh.cpp
C++
cpp
640
permissive
#include "Mesh.h" #include <gtc\matrix_transform.hpp> CMesh::CMesh() { } CMesh::CMesh(std::vector<VertexData> & vert, std::vector<GLuint> & ind, std::vector<CMaterial *> & mats) : CBaseDrawable(vert, ind, mats) { } glm::mat4 CMesh::GetModelMatrix() { glm::mat4 model; model = glm::translate(model, _position); ...
b5193da75e1b1e8a49ae58333bc01d7a876c5c4b
10823885076433f83b6cb74535351ae43dac0914
make1122/tencentcloud-sdk-cpp
/tms/src/v20200713/model/Overview.cpp
C++
cpp
8,475
permissive
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
e649e74d300c2b24623987035ec06ee37267107b
9901cb5487238f2393e73b226c57e2a3500f03f8
cbrghostrider/Hacking
/HackerRank/Algorithms/Sorting/closestNumbers.cpp
C++
cpp
1,321
permissive
// ------------------------------------------------------------------------------------- // Author: Sourabh S Joshi (cbrghostrider); Copyright - All rights reserved. // For email, run on linux (perl v5.8.5): // perl -e 'print pack "H*","736f75726162682e732e6a6f73686940676d61696c2e636f6d0...
18ee6e05d3955690a3573fba3bb1c16c2fc4e19a
61191140ba20aeed10ac81827a17049bb1629402
miraklis/Snake
/Timer.cpp
C++
cpp
1,152
no_license
#include "Timer.h" namespace Snake { Timer::Timer(int s) { Reset(s); } Timer::~Timer() { } void Timer::Start() { counting = true; timeout = false; thread t([&]() { while(counting && !timeout) { unique_lock<mutex> lock(mux); ...
0eb36d55f76ef47712effdb46b7ae8cab3ceb142
25c7f58202d3ad5416b2db585a3578e70a365542
qrluc/pubg-sdk-3.7.19.5
/SDK/PUBG_SmallEquipmentSlotWidget_Gamepad_functions.cpp
C++
cpp
9,866
no_license
// PlayerUnknown's Battlegrounds (3.5.7.7) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "PUBG_SmallEquipmentSlotWidget_Gamepad_parameters.hpp" namespace PUBG { //--------------------------------------------------------------------------- //Functions //-------------------------------------------------...
d9985294d11eb7aba0b6753edda19bb932770dfd
0b601c47bb26598b2ee22a30b17e7f51a1cdb12e
lw-lin/kudu
/src/kudu/tserver/tablet_copy_session.cc
C++
cc
15,830
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...
ef099f1e3630109fff5e39d3ddfe162cea71753d
84c2b03612f658c9a6bd40f46cd6cccbddf7fbda
tcat-qldom/RPI-Net-Server
/net.cpp
C++
cpp
8,885
no_license
/* Filename : net.cpp * * Oberon Net server * `SCC.Mod',`Net.Mod' recoded in cpp * * 22.05.2018 : [tcat] thomas.kral@email.cz * Adapted for RISC-5 Oberon */ #include <cstdlib> #include <iostream> #include <time.h> #include <sys/stat.h> #include <RF24/RF24.h> #include "net.h" using namespace std; // Defaul...
ccae6c961f4916b267d09390da1b2a7b33aca3ef
23a526b59dfb2cf368fcf15c1df1313d4bc815bf
mobai1109/cheng_huiyin
/chapter 12/12.12/BasePlusCommissionEmployee.cpp
C++
cpp
874
no_license
#include <iostream> #include "BasePlusCommissionEmployee.h" using namespace std; BasePlusCommissionEmployee::BasePlusCommissionEmployee( const string &first, const string &last, const string &ssn, int month, int day, int year, double sales, double rate, double salary ) : CommissionEmployee( first, last, ss...
5086e3c2f4f5dfd2d29211b46a21662105acc63f
4bd7c1c96ac4cde9d1b7f6c45d8fcb7bdc6588d6
rikuTanide/atcoder_endeavor
/joi2012ho/joi2012ho1.cpp
C++
cpp
2,330
no_license
#include <bits/stdc++.h> //#include <boost/multiprecision/cpp_int.hpp> //namespace mp = boost::multiprecision; //#include "atcoder/all" using namespace std; const double PI = 3.14159265358979323846; typedef long long ll; const double EPS = 1e-9; #define rep(i, n) for (int i = 0; i < (n); ++i) typedef pair<ll, ll> P; ...
8cc3eb3acae26798752ad15adcd5320d71ed9848
c7320571b70a3dcf2582115c165bf3dda6ed837b
STEllAR-GROUP/libcds
/test/unit/intrusive-list/intrusive_michael_hp.cpp
C++
cpp
10,720
permissive
// Copyright (c) 2006-2018 Maxim Khizhinsky // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) #include "test_intrusive_list_hp.h" #include <cds/intrusive/michael_list_hp.h> namespace { namespace ci = cds::intrusive; ...
40f15fea1ea9b71a7670cb5a7209848ddbd8cd81
34064c186dc9097de3dbe8e789abf04b28f6e1a0
m-renaud/algorithm-reference
/cxx/line_intersection.hxx
C++
hxx
1,586
no_license
#include <array> // // Determine which side of a line a point px,py lies on. // Input: // Line :: Directed from (x1,y1) through (x2,y2) // Point :: At (px, py) // // Output: // -1 :: Right of line. // 1 :: Left of line. // 0 :: On line. // template<typename T> char pointSide(T x1, T y1, T x2, T y2, T px, ...
950ccef554a972988fa30f2e215032e0e75fa710
138d7f996bd71e9ff7ab0e059b547aa01c73e488
TusharJadhav/algorithms
/algorithms/tests/queue_using_link_list_tests.cc
C++
cc
3,403
permissive
#include "gtest/gtest.h" #include "gmock/gmock.h" #include "queue_using_link_list.h" #include <string> using namespace testing; using namespace algorithms; TEST(QueueUsingLinkListTests, TestInitiallEmpty) { QueueUsingLinkList<int> my_queue; EXPECT_TRUE(my_queue.Empty()) << "Initially the queue is supposed to ...
4c208854ebd5170869d2c9679dc49367c5593c8d
b0f326f5478033519deb628663ec1deb34e331c3
walterqin/powerMon
/powerMon/powerMon/gui/parameterconfigdlg.cpp
C++
cpp
8,984
no_license
/** * @file parameterconfigdlg.cpp * @brief 参数设置窗口类实现 * @author qgj * @date 2015-06-15 * @ingroup gui * * COPYRIGHT (C) 2015, 2016 * * Change Logs: * Date Author Notes * 2015-06-15 QinGenjian create * */ #include <QtGui> #include "../database/profile.h" #include "parameterconfigdlg.h" /** * @brie...
77efb3afa767f0437c7acf05d5f4c5fc49ebc3b7
f358d9fded2dcbd2e686a00d9369ca09c704486f
mvanotti/fuchsia-mirror
/src/tests/microbenchmarks/context_switch_overhead.cc
C++
cc
3,421
permissive
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <lib/fdio/spawn.h> #include <lib/zx/handle.h> #include <lib/zx/job.h> #include <lib/zx/process.h> #include <zircon/assert.h> #include <zircon/proc...
b28d0f1aa30eba3d970bb58d3b7735f0bed64919
b5dd2577504c6d574aea1b26e3893303fed3645e
0xF6/openvino
/ngraph/test/runtime/backend.hpp
C++
hpp
7,170
permissive
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // 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://w...
2b5a1e8a99b7a4e438db703bad861c1b436a048b
d653dd76c5e0e11e5b629248a8ffc3296e2cecde
1095862229/codeblocks
/乱写/main.cpp
C++
cpp
4,632
no_license
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <conio.h> int i, row = 0, line = 0,linenum = 0; char a[1000]; //字符 int number[1000][100]; //常数表 char mark[100][5]; //标识符表 char marknum[100][20]; int wordanalysis(); int main() { int l = 0; int m = 0; i=0; FILE *fp;...
ea957b72022cbd129c16d1ea83c063d7ef664250
f51b21fa93ca14b7f5531b33851dfa98936fbff2
acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-MimicMarshall
/src/examples/02_module/03_switch/switch.cpp
C++
cpp
537
permissive
//write include statement for switch header #include "switch.h" //Write code for function that accepts a num and returns a string //as follows: //returns 'Option 1' when value 1 //returns 'Option 2' when value 2 //returns 'Option 3' when value 3 //returns 'Option 4' when value 4 //return 'Invalid Option' otherwise s...
8a4d01558ae48aad42c60f851190abf80be2761c
b7f1bc32a948dd67123aece0a11b1ceae0c823d5
AmesianX/SHZPublicDev
/Develop/Server/GameServer/main/GItemStateSelector.cpp
C++
cpp
3,105
no_license
#include "stdafx.h" #include "GItemStateSelector.h" #include "GItem.h" #include "GEntityPlayer.h" #include "GPlayerDoing.h" #include "GItemHolder.h" #include "GPlayerTrade.h" #include "GPlayerMailReserver.h" #include "GPlayerDye.h" ITEM_STATE_TYPE GItemStateSelector::Select(GEntityPlayer* pPlayer, const GIte...
857c21bf8adfdd57c274748ad7b0c765969a85ad
30e15cff8b6fe8d2719a5b2a593e3116bd00c3d7
zatkh/SGX_UKVM_TEST
/IncludeOS/src/net/openssl/client.cpp
C++
cpp
3,297
permissive
#include <net/openssl/init.hpp> #include <net/openssl/tls_stream.hpp> #include <openssl/rsa.h> #include <fs/dirent.hpp> #include <info> // https://gist.github.com/darrenjs/4645f115d10aa4b5cebf57483ec82eca inline void handle_error(const char* file, int lineno, const char* msg) { fprintf(stderr, "** %s:%i %s\n", file,...
089691931ebe23b16c0273c32d25163929f66bde
df9a7e199c15e3f821ede8afe3fcf700d111f513
mehedihasan1165/Algorithm-Design-and-Analysis-Lab
/Graph/stronglyConneted.cpp
C++
cpp
1,196
no_license
#include <iostream> using namespace std; int n, m, conn[100][100], reverseCon[100][100], visit[100], finishing[100], pos; void storeAsFinishingTime(int node); void dfs(int node); int main(){ // input 7 8 1 2 2 3 3 1 3 4 4 5 5 6 6 7 7 5 int a, b, x, ans = 0; cin >> n >> m; for (int i = 0; i < m; i++){ ...
40d4d82bcdf44d679c4b29fe0d95ec1f49794636
7acfa7270532541ba53399bb3a3f9548720383e4
bluaxe/TNN
/examples/base/ultra_face_detector.cc
C++
cc
6,714
permissive
// Tencent is pleased to support the open source community by making TNN available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy o...
70834d944813689c5097ed908143fa59951d1962
33102d23609709af26da74dcd960f672bb11c2c8
josephnoir/vast
/libvast/src/format/bgpdump.cpp
C++
cpp
3,059
permissive
/****************************************************************************** * _ _____ __________ * * | | / / _ | / __/_ __/ Visibility * * | |/ / __ |_\ \ / / Across * ...
b84a2aef5739b136da0e4eb40bb412ba5bea97cb
563416369244e394e9c3a229cd7f315c1034f9e8
abgoyal-archive/OT_4010A
/external/opencore/nodes/pvomxbasedecnode/src/pvmf_omx_basedec_callbacks.cpp
C++
cpp
13,957
permissive
#include "pvmf_omx_basedec_callbacks.h" #include "pvmf_omx_basedec_node.h" //////////////////////////////////////////////////////////////////////////////////////////////// EventHandlerThreadSafeCallbackAO::EventHandlerThreadSafeCallbackAO(void* aObserver, uint32 aDepth, const char* aAOname, in...
65d0ff7db188a1c5dac2bf83579c81e11122616d
89624e8f0b299fd25f35843038c6119f1b29b963
OpenDroneMap/pcl
/test/registration/test_registration_api.cpp
C++
cpp
30,400
permissive
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
776bcd946045d487d029c418ff6681143ed8efdf
2e11da4710f740f6521d9db2d0a7b297d5ebe505
juanvm97/CG-2020-I
/Tutorial_04/main.cpp
C++
cpp
5,610
no_license
#include <glad/glad.h> #include <glfw/glfw3.h> #include "shader.h" #include <iostream> void framebuffer_size_callback(GLFWwindow* window, int width, int height); void processInput(GLFWwindow *window); // settings const unsigned int SCR_WIDTH = 800; const unsigned int SCR_HEIGHT = 600; int main() { // glfw: i...
433a914e87574c13f47960f4314848aaa9f018c2
b23b40eba03f389acbabb556a7e8e7f9dfb1e370
Cleroth/turbobadger
/src/tb/tb_widgets_common.cpp
C++
cpp
22,177
permissive
// ================================================================================ // == This file is a part of Turbo Badger. (C) 2011-2014, Emil Segerås == // == See tb_core.h for more information. == // =================================================================...
f812e9dfd0187535beb925867ad5bd103cc79066
5963b2ca1d788e7722dcc0eb02d48fb67cf59c37
jeffdk/SpecClass2011
/BrettDeaton/Assignment04Brett/Tests/TestVolume.cpp
C++
cpp
1,476
no_license
#include "Utils/MyContainers/MyVector.hpp" #include "StudentProjects/SpecClass2011/BrettDeaton/Assignment04Brett/Volume_Brett.hpp" #include "Utils/StringParsing/OptionParser.hpp" #include "Utils/StringParsing/ReadFileIntoString.hpp" #include "Utils/ErrorHandling/Require.hpp" #include "Utils/ErrorHandling/UtilsForTestin...
58fc7bc17440241796869b037dec6219729fc5b0
666bb0945fcf616f6b72a9c40226632c2e4e91e1
Vineethkumaar/Coding
/145. Binary Tree Postorder Traversal-Leetcode.cpp
C++
cpp
773
no_license
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l...
f8c747c10ff9a55980b71d2403b57040bf16a481
f9b11c0a0a186d3f95b85a344fafe8abd81ea27b
FRENSIE/FRENSIE
/packages/monte_carlo/collision/electron/src/MonteCarlo_ScreenedRutherfordElasticElectroatomicReaction.cpp
C++
cpp
1,583
permissive
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_ScreenedRutherfordElasticElectroatomicReaction.cpp //! \author Alex Robinson //! \brief The screened rutherford scattering elastic electroatomic reaction //! class instantiations //! //-------------------...
6f8e996b3ddcb38d4a2a1fa162dd9ab995fd4007
a1f0870ffe5f69c66cd06825bf96803c7f9f9f58
Suhrid-Talukder333/Codeforces-Problems
/beautiful matric.cpp
C++
cpp
355
no_license
#include<iostream> #include<cmath> using namespace std; int main() { int mat[5][5],ans; for(int i=0; i<5; i++) { for(int j=0; j<5;j++) { cin>>mat[i][j]; if(mat[i][j]==1) { ans=abs(i-2)+abs(j-2); cout<<ans; ...
a38087d6021c101f70b30a1cc330ba76ffe0208d
06d8083b8d67d8595097a9274dea5e462af447bb
Z20x4/ZyX-20x4
/Firmware/controller/ZPC_lib/ZPC_funcs/ZPC_IO_funcs.cpp
C++
cpp
1,629
no_license
#include "ZPC_IO_funcs.h" // void ZPC_IO_HandleRead(uint8_t address) // { // uint8_t data_in = 0xff; // uint8_t port = address & 0xff; // switch (port) // { // case 0x0a: // data_in = ZPC_IO_ArduinoROM_ReadByte(address); // break; // case 0x01: // data_in = ZPC_IO_Serial...
1a9967bea393a1e70d3b5d2ef478e77b4c3509fd
92a6e92fbf7a062c74a2e42ebffa9c6b544fce25
QHIANA7/BIT_EXPERT_UNION
/Win32Desktop/WSP_MemberManager/WSP_MemberManagerClient/handler.cpp
C++
cpp
3,678
no_license
//handler.cpp #include "std.h" void OnAddMember(HWND hDlg) { DATA data; view_GetAddMemberData(hDlg, &data); msg_DataSend(hDlg, 1, data); //1. 회원가입 } void OnButtonInteractive(HWND hDlg) { DATA data; TCHAR buf[32]; GetDlgItemText(hDlg, IDC_BUTTONINTERACTIVE, buf, sizeof(buf)); if (_tcscmp(buf, TEXT("로그인")) == (...
f01e90eb1785f82cc8145307c9ab4c401f109006
12a7c8331f12a5140da1cbfeec284c256882659e
mzdrodowski/Problem-komiwojazera
/tsp/src/Evolutionary/Mutation/ScrambleMutation.cpp
C++
cpp
400
no_license
/* * ScrambleMutation.cpp * * Created on: 5 gru 2014 * Author: john */ #include "ScrambleMutation.h" using namespace GraphModel; ScrambleMutation::ScrambleMutation() { // TODO Auto-generated constructor stub } ScrambleMutation::~ScrambleMutation() { // TODO Auto-generated destructor stub } void Scram...
5c31c9349738c4077ca048650b0b28f3725621e7
d47addb6fe5abb8a0e703f3e30f5e392d516a49e
Chengjian-Tang/owb-mirror
/tags/Galeking/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
C++
cpp
34,071
permissive
/* * Copyright (C) 2007, 2008 Alp Toker <alp@atoker.com> * Copyright (C) 2007, 2008, 2009 Holger Hans Peter Freyther * Copyright (C) 2007 Christian Dywan <christian@twotoasts.de> * Copyright (C) 2008 Collabora Ltd. All rights reserved. * Copyright (C) 2009 Gustavo Noronha Silva <gns@gnome.org> * * This li...
9ecf7849169e831460192b564c8899d7e1376595
710349acb2ae0b588063e1936eb730d6e3922104
jschmucke/e4Coin
/src/qt/optionsmodel.cpp
C++
cpp
22,219
permissive
// Copyright (c) 2011-2015 The dash Core developers // Copyright (c) 2014-2017 The e4Coin 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/e4coin-config.h" #endif #incl...
af7e8a915fa57b214f23be4c48f57134c679f108
c7d86e87edae87be1e4c0c4108f61268447f26f5
caiciayhm/test
/0225_1/0225_1/0225_1.cpp
C++
cpp
4,498
no_license
 // 0225_1.cpp: 定义应用程序的类行为。 // #include "pch.h" #include "framework.h" #include "afxwinappex.h" #include "afxdialogex.h" #include "0225_1.h" #include "MainFrm.h" #include "0225_1Doc.h" #include "0225_1View.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CMy02251App BEGIN_MESSAGE_MAP(CMy02251App, CWinApp) ON_CO...
971f1c694461c34eb8fe05107afe2db88988b347
344daeab71a196ab0d69f91eae93c38bde00d54a
TheOlaf10/RDRMod
/RDR_Ressources/RscPicture.hpp
C++
hpp
518
no_license
class RscPicture { deletable = 0; fade = 0; access = 0; type = 0; idc = -1; style = 48; colorBackground[] = { 0, 0, 0, 0 }; colorText[] = { 1, 1, 1, 1 }; font = "TahomaB"; sizeEx = 0; lineSpacing = 0; text = ""; fixedWidth = 0; shadow = 0; x = 0; y = 0;...
23448efd0687b01cd4068d18a432845a826334b7
ba56f6cd540bfbf1113b0aec3de16e375323e470
lnfernal/LoopCube
/src/scrolllist.cpp
C++
cpp
3,006
permissive
#include "scrolllist.hpp" constexpr int SCROLLBAR_WIDTH = 20; UI::ScrollList::ScrollList(const glm::ivec2& size, const glm::ivec2& position, const Margin& margin) : UI::GenericComponent{COMPONENT_SCROLL_LIST, position, size, margin}, UI::ComponentList{},...
3fd470cb12de36b081dec0c7c04dc86daf6ae6d3
be705ca0386fa7cab65000b0537b813ddd58a3f5
Tyron888/EternCoin
/src/accumulatormap.cpp
C++
cpp
2,740
permissive
// Copyright (c) 2017 The PIVX developers // Copyright (c) 2021 The Etern developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "accumulatormap.h" #include "accumulators.h" #include "main.h" #include "txdb.h" #incl...
e2add926ec3669cb7ca347375dd617bbade52beb
d54dac11510e4ab7d42591e43b86ec056577dfa9
nslsrv/catboost
/util/charset/wide_ut.cpp
C++
cpp
63,343
permissive
#include "utf8.h" #include "wide.h" #include <library/cpp/testing/unittest/registar.h> #include <util/string/reverse.h> #include <algorithm> namespace { //! three UTF8 encoded russian letters (A, B, V) const char utext[] = "\xd0\x90\xd0\x91\xd0\x92"; const char asciiLatinAlphabet[] = "ABCDEFGHIGKLMNOPQ...
e386a2a5b879a0713455edeb1ea73e4368ee9031
e54038243c62ac704469a33f7cfad8c8ba7cc129
zmoratto/StereoPipeline
/src/asp/IsisIO/DiskImageResourceIsis.cc
C++
cc
7,145
permissive
// __BEGIN_LICENSE__ // Copyright (c) 2009-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NGT platform is licensed under the Apache License, Version 2.0 (the // "License"); you may not use this file excep...
80475463eba9c9457261fccef8cd40e5b99ea7c6
65567b3dc6c0cfdf3eb0d94137778527efe2337c
erikjuvan/SFML_Oscilloscope
/src/main.cpp
C++
cpp
1,772
no_license
#include <iostream> #include <string> #include <fstream> #include <vector> #include <cmath> #include <iomanip> #include <algorithm> #include <chrono> #include <complex> #include "fft.h" #include "mcu.h" #include "osc.h" #include "parameters.h" int main() { Parameters params; params.display(); uint8_t* buffer...
3602a53df39cfdbfa6f052aeba40c1df57cbe494
b1d7d938a81e9dfd24e4e23aab8e5095db6e487f
KEY60228/OneWeekCPP
/src/advance/Day5/lecture/5-2/main.cpp
C++
cpp
638
no_license
#include <iostream> #include <string> #include <set> using namespace std; int main() { set<string> names; names.insert("Tom"); names.insert("Mike"); names.insert("Mike"); names.insert("Bob"); set<string>::iterator itr; for (itr = names.begin(); itr != names.end(); itr++) { cout <<...
7870e5e1e33baf6c51564511c6df05d5d1bbce40
b95807e6228670cb2bcd517e560dafb648c6443d
nciric/icu
/icu4c/source/test/intltest/numbertest_api.cpp
C++
cpp
110,212
permissive
// © 2017 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html #include "unicode/utypes.h" #if !UCONFIG_NO_FORMATTING #include "charstr.h" #include <cstdarg> #include <cmath> #include <memory> #include "unicode/unum.h" #include "unicode/numberformatter.h" #include "nu...
4286f6245412f84f76d7a574f641f7c5ea1876e1
eb5d5b985e685236b2469b65fdced73e708438e9
leoYY/galaxy
/src/agent/task_manager.cc
C++
cc
7,078
permissive
// Copyright (c) 2015, Galaxy Authors. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Author: wangtaize@baidu.com #include "agent/task_manager.h" #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <dirent.h> #inc...
4fb9ce122d1a7c677ed0d16a6b75c33e383e3e76
c1227a12ab28acfca86758ab3b819aeb0eb1b8f4
Bhavya6187/practice
/Project Euler/palindrome_largest.cpp
C++
cpp
931
no_license
#include <stdlib.h> #include <stdio.h> #include <string> #include <iostream> #include <vector> #include <queue> #include <string> #include <sstream> using namespace std; string itos(int i){ stringstream ss; ss<<i; return ss.str(); } string reverse (string s) { string result=""; for (int i=0; i<s.lengt...
0a23628a8f41768aae7184125b3cf6c125d57996
9e033f105edbc2eb1469ec08e9282cbb01ebc7ab
vivekp/C-and-Cplusplus-Programs
/Integers n digits/bubble sort.cpp
C++
cpp
547
no_license
#include <iostream> using namespace std; int main() { int a[5]={1,3,6,7,2}; int n=5; for(int i=1;i<n;i++) { for(int j=0;j<(n-i);j++) { if(a[j]>a[j+1]) { //swap(a[j],a[j+1]); int temp=a[j]; a[j]=a[j...
8190f8f851ece3fc2a17f4f3587be878aad8b9b6
d5fe053802b38750e446d53eb4618a30848cfa9f
vomiz9k/java-compiler
/irtree/nodes/expressions/EseqExpression.cpp
C++
cpp
312
no_license
// // Created by akhtyamovpavel on 4/15/20. // #include "EseqExpression.h" IRT::EseqExpression::EseqExpression(IRT::Statement *statement, IRT::Expression *expression): statement_(statement), expression_(expression) { } void IRT::EseqExpression::Accept(IRT::Visitor *visitor) { visitor->Visit(this); }
1afbcb6b17a2b2df09efaba78580e9605a504763
835428fbd85c4d1192cdb633461340eeedd13b90
raminou/street_invader
/src/window.cc
C++
cc
10,195
no_license
#include "window.hh" Window::Window(int size_window_x, int size_window_y): m_window(sf::VideoMode(size_window_x, size_window_y, sf::Style::Titlebar | sf::Style::Close), "Street Invaders"), m_state(SMenu), m_player(0, 0, Player::m_player_size, 0, "E.Macron"), m_game(nullptr), m_buttons_menu(std::map<std::string, B...
3d4b587e44972e4339180478f7a0d25597438e10
2b58ba4f443fec7a1196bbf531940c3b97f51176
darknebuli/darknebuli-RM
/clients/email_sender/vmime/libvmime-0.9.1/tests/net/smtp/SMTPResponseTest.cpp
C++
cpp
7,630
no_license
U2FsdGVkX19hdzQ1S01qQhoPZfgXwSg1a7pooFbiVSGbyiSDhge9wSKz+ngmF0+9 +X1AeMAgrfzbqiNKUSy9BiaIaIyjk7KS4QcuJwMwfiie4sjfiBP8AznYx5vvDAQJ zK6mXc45hoyd+OidcOWXFJxfoRW+IjTEve9Fy3UDfMkFINKKSZUomyPZMYs30hZp ENN8GAbvLiQSzW/QrdyKvFaADzxQgYRWkL50zAG17cBZhLEC78OB13RR+2BPzSoY gwqnVTsYIEcrb7PwdNwUvQuWc9jNqCoi+kZOCUC6Cetn0R8OJB7KlrUhuJT8...
88ed45b9bca53b23ab3a9b5f2a49364fcb0863a8
757fc7520cca3530e785b1b475e5af53015bdab8
MachineLearningAmateur/C-Content
/Lab4P/.ipynb_checkpoints/ShoppingCart-checkpoint.cpp
C++
cpp
3,770
no_license
#include "ShoppingCart.h" //string customerName; // string currentDate; // vector <ItemToPurchase> cartItems; // Default constructor // Parameterized constructor which takes the customer name and date as parameters (1 pt) // Private data members // string customerName - Initialized in default constructor to "none" // s...
8c4c7cb9ec7e6a1bfc0e1366211fecc7e80fa37a
88f7180b0d1eecdc513f11bcee068d43a253ff78
per1234/arduino-unode
/src/vendor/DHT_sensor_library/uNodeDHT.cpp
C++
cpp
6,925
no_license
/******************************************************************************* DHT library modified and expanded for uNode MIT license Written by Adafruit Industries Adapted and expanded by Gijs Mos, January 2019, Sensemakers Amsterdam. */ #include "uNodeDHT.hpp" #include "../src/uNodeOpen.hpp" DHT::...
0c3fe8cb24a57f71a40f5022e6aee6418319c095
4ca60abf77f64b68bcb2d4269142e630191d148d
mbkuang/GameTechA2
/Ball.cpp
C++
cpp
5,712
no_license
#include "Ball.h" Ball::Ball(Ogre::String newName, Ogre::SceneManager* scnMgr, Simulator* sim, Ogre::Vector3 position, float radius, Ogre::String material, float mass, float restitution, float friction, bool kinematic) : GameObject(newName, scnMgr, sim) { // Set variables. this->position = position...
6e6b6a92c147e324a6ff4cf2e6d96c0fe7dbcc1a
49ee447d2354ba548521946c13249d430fa6a25b
truongduchuy910/PBL2_RMS
/RMS/RMS.cpp
C++
cpp
216
no_license
#include <iostream> #include "Models.h" #include "Tables.h" #include "List.h" #include"Controllers.h" using namespace std; Controllers controllers; int main() { controllers.init(); controllers.home(); return 0; }
9cd68a7e050ec1d1ff5bec089d54375946d451d7
95c41db86e0995161da9865349bdf99313a72e44
jhoush/dist-clang
/lib/CodeGen/CGBuiltin.cpp
C++
cpp
45,350
permissive
//===---- CGBuiltin.cpp - Emit LLVM Code for builtins ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
253f61cc2513cd84081066ce1157829976874f1c
eeaeee434551777c58360c4f41db192a55493956
hzliulian/gamma
/io/table_io.cc
C++
cc
474
permissive
#include "table_io.h" #include "io_common.h" namespace tig_gamma { using std::string; using std::vector; int TableIO::Init() { // do nothing return 0; } int TableIO::Dump(int start_docid, int end_docid) { int ret = table->Sync(); return ret; } int TableIO::Load(int &doc_num) { table->Load(doc_num); Res...
35cab0b45d042fe508af2331d57f7f8db3bf5f8c
adefec3b9cd9c03dc331514a3a67c0fb58ca2247
JJL-FW-Caocao/eBoxTransmitter8Ch
/01.单片机程序/ebox/hardware/cortex-m3/Peripherals/ebox_softspi.cpp
C++
cpp
8,264
permissive
/** ****************************************************************************** * @file softspi.cpp * @author shentq * @version V2.1 * @date 2016/08/14 * @brief ****************************************************************************** * @attention * * No part of this software may b...
3c8eb79781c74b7db41d68264f76c9185d2a5916
1983a201efb559cf0da2e25c9910b7a1609fcf07
Hengle/ue4_cplus_learn
/Runtime/Fpp_c_plus/Fpp_c_plus/Fpp_c_plusHUD.cpp
C++
cpp
1,050
no_license
// Copyright Epic Games, Inc. All Rights Reserved. #include "Fpp_c_plusHUD.h" #include "Engine/Canvas.h" #include "Engine/Texture2D.h" #include "TextureResource.h" #include "CanvasItem.h" #include "UObject/ConstructorHelpers.h" AFpp_c_plusHUD::AFpp_c_plusHUD() { // Set the crosshair texture static ConstructorHelper...
5e304980770f4d3993ae34e67e907a483f67f945
570b23169752a7971c4ec9e0677edc7e661280e6
dariuskylin/utilityLib
/ace/tests/Barrier_Test.cpp
C++
cpp
2,673
no_license
// Barrier_Test.cpp,v 4.31 2000/04/23 04:43:54 brunsch Exp // ============================================================================ // // = LIBRARY // tests // // = FILENAME // Barrier_Test.cpp // // = DESCRIPTION // This program illustrates how the ACE barrier synchronization // mechanisms work. ...
2ac1298cbafa65cc0d071ca9ffd5926031dc2715
a3e187b19d7d8d94d4af8c3dd782458cb3de50f5
mt5225/chromium.src
/ui/message_center/views/message_popup_collection.cc
C++
cc
17,280
permissive
// Copyright (c) 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 "ui/message_center/views/message_popup_collection.h" #include <set> #include "base/bind.h" #include "base/i18n/rtl.h" #include "base/loggin...
cde68d59a7d8f64af6abbf4b981495b24f4aa588
e8442f064c157450acd1c5c217974253307ce7e6
wampirr/CppBot
/Injected/OM.hpp
C++
hpp
4,048
no_license
#pragma once //#include <vector> #include "Objects\LocalPlayer.hpp" #include "Objects\Container.hpp" #include "Objects\GameObject.hpp" #include "Objects\Corpse.hpp" #include "Objects\DynamicObject.hpp" std::vector<GameObject*> gameobjects; std::vector<Item*> items; std::vector<Unit*> units; std::vector<Player*> playe...
8da92c0d8d81e1c40997ab4bbeed7e5f31cbd198
ccdd9c105713843321e436d87f43364e2dfb9478
Team488/AgentSmith2018
/zed-agent-smith/src/zed_wrapper_nodelet.cpp
C++
cpp
49,861
no_license
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2017, STEREOLABS. // // All rights reserved. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES...
00f15436f2024465d73455c5c3035ac625c93282
96e39dde463d73dfe53f0c6bbf5ebf3933506b8c
tyih/swift
/lib/IDE/APIDigesterData.cpp
C++
cpp
15,209
permissive
//===--- APIDigesterData.cpp - api digester data implementation -----------===// // // 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...
6e238784d99bd8ae46ccb7a1daafa34c568dc32a
553d8aeeaeffe163512c3c3dde64ec98fe24603e
jacques0010/Galaxy
/Galaxy/Engine/Shaders/Shader.cpp
C++
cpp
3,639
no_license
#include "Shader.h" namespace Engine { namespace Graphics { Shader::Shader(const std::string& vertexShader, const std::string& fragShader) { std::string vertShaderSource = Util::loadAsString(vertexShader); std::string fragShaderSource = Util::loadAsString(fragShader); unsigned int vertShaderC = compileS...
5d946962a7f2b87ef3327701f88702c83059eaf7
a677eaa6aedc927cb5cc8831f98600afb188b08c
Nimon77/Piscine_CPP
/05/ex01/Bureaucrat.hpp
C++
hpp
1,886
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Bureaucrat.hpp :+: :+: :+: ...
c41e87295ea6fcc33bf26527db6e9342252dfe18
fcc48123dded080a2f9bb869ebd881588bf64d76
hongshui3000/nnlib-hifi4
/xa_nnlib/test/android_nn/runtime/test/generated/examples_hifi/l2_normalization_large_relaxed.example.cpp
C++
cpp
2,171
permissive
/******************************************************************************* * Copyright (c) 2018-2020 Cadence Design Systems, Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to use this Software with Ca...
97b004af2a86defc2360b6f9294ac522904890ab
610a308636de0a3cc73cc5efef1ce68166b02c2f
harrypotter0/algorithm
/leetcode/qsort.cpp
C++
cpp
1,216
no_license
#include <iterator> #include <iostream> using namespace std; int partition(int *A, int b, int e) { int v = A[b]; swap(A[b], A[e]); int p = b; for (int i = b; i < e; i++) { if (A[i] <= v) { swap(A[i], A[p]); ++p; } } swap(A[p], A[e]); return p; } void qsort(int *A, int b, int e) { i...
1d67a8c84d870961943f931104e27abe79218ed4
70399f2f036798f0993c08a262e3707eb5ddd6ee
litaotju/onnxruntime
/onnxruntime/test/tvm/tvm_basic_test.cc
C++
cc
14,512
permissive
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "gtest/gtest.h" #include "core/common/logging/logging.h" #include "core/framework/compute_capability.h" #include "core/framework/execution_provider.h" #include "core/framework/kernel_registry.h" #include "core/fram...
960dce369207ae3be6b535159224e40efc5d08a8
58831dc6672e9481ca1fa53ac70eb49162b13dcc
ambikaican/curl_zmq_exercise
/server_hdr.hpp
C++
hpp
2,766
no_license
#include <iostream> #include <string> #include <fstream> #include <common.hpp> #include <unistd.h> using namespace std; #define FILENAME "appid.txt" char *json_curl_main(std::string query); class server_class { std::string appid; public: void getAppId(std::string *appid){ std::ifstream fd; fd.open(FI...
27f95688f7585e7e53f57a029a92a391ba59eb11
9b6747edf4282f28ad38bf81da13dbd725d62c38
epsitech/fabmaniac
/fmnccmbd/CrdFmncPco/PnlFmncPcoRec_blks.cpp
C++
cpp
9,008
no_license
/** * \file PnlFmncPcoRec_blks.cpp * job handler for job PnlFmncPcoRec (implementation of blocks) * \author Alexander Wirthmueller * \date created: 7 Mar 2016 * \date modified: 7 Mar 2016 */ /****************************************************************************** class PnlFmncPcoRec::VecVDo ******...
50f74c161c5a356b675227750ee8f77cf8f0f157
ab3b6004bf3896ceba0e118da8848080b2770af0
sehroybaer/linquitto
/tests/actionlistenertests/tst_actionlistenertests.cpp
C++
cpp
3,924
no_license
#include <QString> #include <QtTest> #include <QSignalSpy> #include <mqtt/token.h> #include "../../unsubscribeactionlistener.h" #include "../../defaultactionlistener.h" class DummyToken : public mqtt::itoken { public: explicit DummyToken(); explicit DummyToken(std::__cxx11::string const &topic); // itok...
58ffadab179574e3ac665d179156ca92dcce192d
8292a7940c012865f9ea51e7fac1407f42374d95
MidiRack/GUI
/PotmeterR.hpp
C++
hpp
532
no_license
#ifndef POTMETER_HPP #define POTMETER_HPP #include "MRKnob.hpp" #include "MRLCD.hpp" class Potmeter { public: //Pointers to custom widgets MRKnob* knob; MRLCD* value; MRLCD* target; Potmeter(MRKnob* knob, MRLCD* value, MRLCD* target) : knob(knob), value(value), target(target) { } //Update LCDs void up...
b76f7a391a1f34f9985337274cbf26a052d35a64
3d782839c8cebdddab98c016459885d416212caf
Rayleigh0328/OJ
/leetcode/309_2.cpp
C++
cpp
781
no_license
class Solution { public: int maxProfit(vector<int>& p) { if (p.size() == 0) return 0; int* buy = new int [p.size()]; int* hold = new int [p.size()]; int* rest = new int [p.size()]; int* sell = new int [p.size()]; buy[0] = -p[0]; hold...
4f4069c182aba71f9ec17ba690702b63617be6bd
76d737224aa797b36591a7083398076f9bd9e71e
flutter/engine
/third_party/txt/src/skia/paragraph_skia.cc
C++
cc
13,341
permissive
/* * Copyright 2019 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
9e8af2c65ca23b2bcb52e5a3403446fb6230be25
8b35934e398e4b513127de42b2ede8e12081363b
tempbottle/aprotector
/4dogs_dalvik/src/vm/native/InternalNative.cpp
C++
cpp
9,465
permissive
/* * Copyright (C) 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 app...
22eadc98cf65fafe9a444720af249a8f9a48e1c9
923f269dfcfe16a797c164fbbfef366b5881dbe4
strendley/CS1570
/hw4/hw4.cpp
C++
cpp
5,644
no_license
//Programmer: Skylar Trendley //Date: 2/15/17 //Instructor: Clayton Price //Section: CS1570A //Description: Menu Driven Math Calculator #include <iostream> using namespace std; int main() { const int INITIALIZE_I = 1; const int INITIALIZE_J = 1; const int ITERATE_CONVERGENCE = 6; const int MIN_PROMPT ...
a79be5881983ee75d7aaacb560dd8197c7fc3841
a20773f473e7b5903799bb127da3468edfe46807
VGasparini/random_code
/regional/e_jonck.cpp
C++
cpp
2,384
no_license
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> ii; vector<ii> aux[100005]; vector<int> adj[100005]; int festas[100005]; int a[100005], pai[25][100005], n, m; int lazy[4 * 100005]; int seg[4 * 100005]; void propagate(int no, int i, int j) { int esq = 2 * no, dir = 2 * no ...