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
dfddb9723e24b8e2434689400e8a22d686f2ac5a
8c1877c4fd232bdf17e8a94a86e12215821c68e2
klzgrad/naiveproxy
/src/net/third_party/quiche/src/quiche/quic/core/io/quic_default_event_loop.cc
C++
cc
1,252
permissive
// Copyright 2022 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 "quiche/quic/core/io/quic_default_event_loop.h" #include <memory> #include "quiche/quic/core/io/quic_poll_event_loop.h" #include "quiche/common...
d9176c739c12d9ca25140ad2e8a3480ecb8b3f32
55a81a6bd9b23cabb487fe0df15ad7d0b244efcd
lingxizhong/SampleWorkLZ2018
/EDU App/screenreward.cpp
C++
cpp
3,270
no_license
/*** * Authors: Matt Wilson, Osama Kergaye, Lingxi Zhong, Kathy Huang, Andrew Radford, Joel Swanson * */ #include "screenreward.h" screenReward::screenReward(QWidget *parent) : QWidget(parent) { //Declarring objects layout = new QVBoxLayout(this); headerText = new QLabel(this); markovText = new QLa...
c4042bde107ab0931da638206362c2fbf0d0da18
acaffa1877ab7cd91420a3bfb2bff801910126da
AIChipx/Qt-training
/mainwindow.cpp
C++
cpp
759
no_license
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_btnNo1_clicked() { this->ui->renderArea->setShape(RenderArea::Shape1); t...
a9b17f13b551a33ac158c215808b71424e6bc3e7
459f660a4056f07cec3c4864e8fe1d5212aa6774
dukkar2017/codeninja
/graphs/detectbipartitegraph.cpp
C++
cpp
1,514
no_license
//https://practice.geeksforgeeks.org/problems/bipartite-graph/1 /* Please note that it's Function problem i.e. you need to write your solution in the form of Function(s) only. Driver Code to call/invoke your function would be added by GfG's Online Judge.*/ /*The function takes an adjacency matrix representat...
992f4ff33397b1bc2832fed157dbfed9fd074746
46583346a34ef67446ca70e19924d2712c92ea26
NeeeeeeaL/Graduation-Project
/3D_Reconstruction/3D_Reconstruction/myOpenGL.cpp
C++
cpp
9,993
no_license
#include "myOpenGL.h" #include <QKeyEvent> #include <QGLWidget> #include <QOpenGLFunctions_3_2_Core> MyOpenGL::MyOpenGL() { } MyOpenGL::~MyOpenGL() { glDeleteBuffers(1, &verVbo); glDeleteBuffers(1, &v_indexVbo); glDeleteProgram(programid); glDeleteTextures(1, &texture); } /* 1.1 着色器代码 */ /* *******************...
3ec7d19a3e10aa3d724e7ad014fd31b22c575b53
4f8551a48f7dee93909feb3acbb2eca5fd03ea5e
Arcuman/Basics-of-Algorithmization
/lab16/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp
C++
cpp
2,105
no_license
// ConsoleApplication1.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы. // #include "pch.h" #include <iostream> #include <algorithm> using namespace std; #define N 10 int insertB(int A[], int B[], int size) { int maxI,max; max = A[0]; for (int i = 0; i < 10; i++) { ...
4d5320c85ea1d4ccfb1b8eca007d954fdb6e0b6d
07309183553fe53c123d7c7d0a2e7904b1c1e426
libertyernie/rstmcpp
/pcm16.cpp
C++
cpp
2,200
permissive
#include <stdexcept> #include <cstdlib> #include <cstring> #include "pcm16.h" #include "endian.h" using std::memcpy; using namespace rstmcpp::pcm16; using namespace rstmcpp::endian; void PCM16::initWav(int channels, int sampleRate, int16_t* sample_data, int sample_count, int loop_start, int loop_end) { if (channels ...
a2bdf76fba736726dbf1f1fdfa4cdd0fa41736bc
dd419b084d5cc20025b50c47f8fd85313e661f91
iVcente/Tankz
/Camera.cpp
C++
cpp
2,585
no_license
#ifdef WIN32 #include <windows.h> #include <glut.h> #else #include <sys/time.h> #endif #ifdef __APPLE__ #include <GLUT/glut.h> #endif #ifdef __linux__ #include <glut.h> #endif #include "Headers/Camera.h" #include "Headers/Physics.h" /* * Constructor for Camera. * * Parameters:`initialPosit...
a29f62a6a83877d6894d2d90a77dbe28252c4408
2d05f88e1aac7bc8836acfd26a1fb4e7cb9a9332
sshedbalkar/DigiPen_Backup
/Team_Alien/GAM 550/mem/source/Quaternion.cpp
C++
cpp
455
no_license
#include "Quaternion.h" namespace Framework { std::ostream& operator<<(std::ostream &out, const Quaternion &v) { out<<"["<<v.r<<","<<v.i<<","<<v.j<<","<<v.k<<"]"<<std::endl; return out; } Quaternion::Quaternion(D3DXQUATERNION &q) { i=q.x; j=q.y; k=q.z; r=q.w; } D3DXQUATERNION Quaternion::...
e77a6bda2512ee153be301fff92fd0deb361a3ff
340672733abda59a155231eddb837c1e0a735721
ReidAtcheson/OCCA2
/src/occaFC.cpp
C++
cpp
44,964
permissive
#ifndef OCCA_FBASE_HEADER #define OCCA_FBASE_HEADER #include <stdint.h> #include <stdio.h> #include "occaCBase.hpp" /* * The code related to fortran string handling was adapted from petsc. The * license information for petsc can be found below. * * Licensing Notification * * Permission to use, reprod...
c4ed15727be39cf77d24deba669796574c82411b
97f1c06c9037a711b6fbc5e0ac7e2010a6c44953
amanraj-iit/DSA_Uplift_Project
/Assignments/Solutions/Ruhee Jain/Assignment 11/Ques3.cpp
C++
cpp
963
no_license
/* Ques3 https://practice.geeksforgeeks.org/problems/leaders-in-an-array-1587115620/1/?track=DSASP-Arrays&batchId=154 */ #include <bits/stdc++.h> using namespace std; class Solution{ public: vector<int> leaders(int a[], int n){ vector<int> res; int max=a[n-1]; res.push_back(...
6b5a96c9e034fec9c50b2b438e93eaa29632cef3
b6b490cb453a3036336f9d60eb8ca53c3df5b215
wfwqndddysh/leetcode
/rotate_array.cpp
C++
cpp
2,251
no_license
#include<iostream> #include<cassert> #include<vector> #include<algorithm> class Solution { public: void rotate(std::vector<int>& nums, int k) { auto sz = nums.size(); k %= sz; std::vector<int> tmp(sz); for(size_t i=0; i<sz; ++i) { tmp[(i+k)%sz] = nums[i]; ...
1c1543f268c75b54a5f7715f23188e0c68c191d8
6f7ef969e9ca63d9946cc12c76b133671da33e0f
starius/lua-npge
/src/npge/cpp/model.cpp
C++
cpp
37,302
permissive
/* lua-npge, Nucleotide PanGenome explorer (Lua module) * Copyright (C) 2014-2016 Boris Nagaev * See the LICENSE file for terms of use. */ #include <cmath> #include <cstring> #include <algorithm> #include <iterator> #include <map> #include <set> #include <boost/foreach.hpp> #include <boost/scoped_array.hpp> #includ...
ae7627aca6246623fc139bc268d8714585aea478
2a0b2af4a37c1e122158702ec537f8092fb11ca0
SarahRichards1928/knossos
/Hashtable.cpp
C++
cpp
1,772
no_license
/* * This file is a part of KNOSSOS. * * (C) Copyright 2007-201 * Max-Planck-Gesellschaft zur Foerderung der Wissenschaften e.V. * * KNOSSOS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 of * the License as published by the Free So...
1283822e544856d6ae0a3c7d68fe9ea840db5744
7026174cb5d1dba007b69578e1de413f2784cb09
priya1254/dataStructureAndAlgo
/GraphAndTrees/CheckHamiltonianPathExistOrNot.cpp
C++
cpp
1,183
no_license
//check hamiltonian path exist or not #include <bits/stdc++.h> using namespace std; int flag; int adj[15][15]; int dp[15][2000]; int visited[15]; int n,m; bool check_hamiltonianpath() { for(int i = 0; i < (1<<n) ; i++) { for(int j = 0; j < n; j++) { if((1<<j & i) == 1) ...
02092b76eefbdf397e33a18029769967f7714405
a571548a4e342175edf563fb8ee95af8ad1eec66
ifsmirnov/olymp
/opencup/2014-04-13/f/f3.cpp
C++
cpp
1,128
no_license
#include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <set> #include <map> #include <functional> #include <numeric> #include <set> #include <map> #include <cassert> #include <ctime> #include <cstdlib> using namespace std; #define forn(i, n) for (int i = 0; i < (int)(n); ++i) #define fore...
b176a3481ba8d281cdb69ae5d82d49abaa0e506a
223a32ec2c378f3bc8ea5233fb86f8779af11281
Sergkon99/differential-eq-py
/differential_equation.hpp
C++
hpp
4,233
no_license
#pragma once #include <vector> #include <map> #include <deque> #include <cassert> #include <optional> #include <functional> typedef std::pair< std::vector< double >, std::vector< double > > Coords; typedef std::vector< Coords > CoordsList; typedef std::map< size_t, std::vector< std::pair< int, double > > >...
6f6a7f59fe2cbe23409daf8dbf69c7ad8d7a10b2
61e2cd9650347ecec7ca0878764c585c668e263e
heon24500/PS
/BOJ/1668.cpp
C++
cpp
624
no_license
#include <iostream> #include <vector> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int N; cin >> N; vector<int> h; for (int i = 0; i < N; i++) { int height; cin >> height; h.push_back(height); } int max = h[0], cnt = 1; for (int i...
e7c7f6b8992e8183ea68565c0d7605128868e2a7
8ebaa7015e7789df98f1ef3fcc054b9d2dffa58c
ruanpengruanpeng/-
/C/Ctest/Ctest.cpp
C++
cpp
248
no_license
#include "pch.h" #include "CppUnitTest.h" #include "C.h" using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace Ctest { TEST_CLASS(Ctest) { public: TEST_METHOD(Testmul) { Assert::AreEqual(12, mul(4, 3)); } }; }
14c1bd6cb3f69d34cf05ce4b50539c17f8c30784
ceed7ee134ee5b029a796e793f4b6c66f8e67923
Szymcio587/Projekt_PI
/hpp/screen_5.hpp
C++
hpp
2,251
no_license
#include "screen_2.hpp" class screen_4 : public cScreen { private: int alpha_max; bool playing; public: screen_4(void); virtual int Run(sf::RenderWindow &App); }; screen_4::screen_4(void) { alpha_max = 255; playing = false; } int screen_4::Run(sf::RenderWindow &App) { sf::Event Event; bool Running = true; s...
052b2a747c8bb0118a915fcfcd7831e8879aa7c3
830d3922000f00da86aada4314d39a009563929a
ThomasGartman/Lab06
/main.cpp
C++
cpp
293
no_license
/** * @author * @date * @file main.cpp * @brief driver for LinkedList demo */ #include <iostream> #include "LinkedListOfInts.h" #include "Test.h" int main(int argc, char** argv) { Test test; test.runTests(); std::cout << "Running...\nAnd we're done.\nGoodbye.\n"; return (0); }
47badbb782d0e49f799784c9d7ce5637db62fad7
58ca274c56aa28002cd62d99da52d369336e0ab8
hackepeson/radarRASPI
/GUI/RadarViewer/main.cpp
C++
cpp
244
no_license
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; //w.setWindowState(Qt::WindowFullScreen); //w.showFullScreen(); w.show(); return a.exec(); }
5c0ead3c6c29517eb9c05a4aa6ac229ea0c21791
4a0ce4bed20379f7801a8141bab6c830cf825c51
Rayleigh0328/OJ
/leetcode/875.cpp
C++
cpp
763
no_license
class Solution { int count(int speed, const vector<int>&a){ int ans = 0; for (auto x : a){ if (x % speed==0) ans += x / speed; else ans += x / speed + 1; } return ans; } public: int minEatingSpeed(vector<int>&...
3bea9e6a7e83e7bda2f213eb961248b77b22300d
4df731fceca4355f8ec96b8dc2bca9c3257b16b5
akin666/core
/exceptions/invalidtype.cpp
C++
cpp
404
no_license
/* * File: InvalidType * Author: akin * * Created on 15.1.2015 */ #include "invalidtype.hpp" namespace core { InvalidType::InvalidType( std::string msg ) : msg("Invalid type Exception: " + msg) { } InvalidType::~InvalidType() { } const char* Invali...
b56acea68aa1e7496acc3e31b410190fbdab4317
2c8e169e9cc6ae9f0200e545de8bb97421b0e433
kvetak/ANSA
/src/ansa/linklayer/lldp/tables/LLDPNeighbourTable.cc
C++
cc
5,589
no_license
// // Copyright (C) 2009 - today Brno University of Technology, Czech Republic // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option...
5dc10f8aa41fb57f7505792a238dc9149ad40426
7a393b2f4be654dd16e5e678188e6674937a9ca5
martty/Vulkan
/computeparticles/computeparticles.cpp
C++
cpp
24,250
permissive
/* * Vulkan Example - Attraction based compute shader particle system * * Updated compute shader by Lukas Bergdoll (https://github.com/Voultapher) * * Copyright (C) 2016 by Sascha Willems - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #include <stdi...
8bac596ee00519136eba3a5d6f72bd395d452dcd
f69eac01da8fb8c59d762a3ee2f904d4889ee92b
magedavee/mygame
/src/EventQuit.cpp
C++
cpp
1,063
no_license
#include "EventQuit.h" #include<iostream> REGISTER_EVENT(EventQuit) using namespace std; EventQuit::EventQuit() { } void EventQuit::handleEvent(map<string,bool>&flags,map<string,int>&i_states ,map<string,float>&f_states,map<string,char>&c_states) { //cerr<<"db EventQuit handleEvent begin \n"; //cerr<<"db ...
51c3e28d5878ad800c7317f939acccfc8b0098dd
3360f84058c13bc862f51f6b365b2711efa9bc29
Yabing67/basicProgram_THU
/打印金字塔.cpp
C++
cpp
324
no_license
#include<iostream> using namespace std; int main() { int N; cout << "ÇëÊäÈë½ð×ÖËþ²ãÊý£º"; cin >> N; for (int line = 1; line <= N; line++) { for (int i = 1; i <= N - line; i++) cout << " "; for (int j = 1; j <= 2 * line - 1; j++) cout << "*"; cout << endl; } return 0; }
f0c385a2b457d447c812e656aa673c83aa97854e
4a3853f5023db16cb73b1352956fe6ef0a6a676d
bobstockton/Cpp
/main.cpp
C++
cpp
637
no_license
#include <TApplication.h> #include <Form1.h> //#include <Form2.h> #include <iostream> TApplication *Application; Form1 frmMain; TForm *Form2; int main (int argc, char *argv[]) { try { Application = new TApplication(); // Form2 = new Form2()...
a069e169cf78a4587e6b2babeb5b8b197d0b1e40
1836d9c3195c112b6ab5e8fa45229350d8350c4d
be2rlab/myicub_ros
/scripts/planner/Catkin/PositionControlMatlab.cpp
C++
cpp
5,237
no_license
#include "PositionControlMatlab.h" PositionControlMatlab::PositionControlMatlab() { // initialisations sub = nh_.subscribe("/joint1",1000, &PositionControlMatlab::callback, this); Property options; options.put("device", "remote_controlboard"); options.put("local", "/test/client"); //local port n...
d91459a75adbc40d5683c26e2f6fb225e78c49a6
dbb4d99b55d192a0e479275cb2c62a4b08ed8492
zhongweixiaoyang/kwayland
/src/tools/testserver/main.cpp
C++
cpp
625
no_license
/* SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "testserver.h" #include <QCoreApplication> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); auto arguments = QCoreA...
5cf5fe8f83fa6a371d40e347292f93ccf842af66
e8bab526026eab0848c1471705e9fe3d35e021d5
barthoekstra/rack
/rack/drain/image/ImageFrame.cpp
C++
cpp
8,066
permissive
/* MIT License Copyright (c) 2017 FMI Open Development / Markus Peura, first.last@fmi.fi 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 rig...
6401025ab02485488d45d40df52255b28a8e2edb
320e7fffe8d51e18567eae41efffb3a391060723
0000duck/VisualCppZhangJun
/Chapter15/01_AppSnap/AppSnap.cpp
C++
cpp
2,003
no_license
// AppSnap.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "AppSnap.h" #include "AppSnapDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAppSn...
656b9359e88ee42a65b2672e08d6d8d11ba1d39e
35117fa165185e1471e3e4a7fede1469b070fa4e
daidaotian/NoahGameFrame
/NFComm/NFCore/NFCProperty.cpp
C++
cpp
8,786
permissive
// ------------------------------------------------------------------------- // @FileName : NFCProperty.cpp // @Author : LvSheng.Huang // @Date : 2012-03-01 // @Module : NFCProperty // // --------------------------------------------------------------...
5356ee2458fe37ed5733f5d04122a7ca1c5be0cb
339e426b0363ada0443938b814e352c85365ddeb
AnTAVR/TabGraph
/TabGraph/include/Texture/Texture2D.hpp
C++
hpp
1,636
permissive
#pragma once #include "Texture/Texture.hpp" class Texture2D : public Texture { public: static std::shared_ptr<Texture2D> Create(const std::string& name, glm::ivec2 s, GLenum target, GLenum f, GLenum fi, GLenum data_format = GL_UNSIGNED_BYTE, void* data = nullptr); /**@brief Fetches a texel with pixel c...
5c38ee4177e63ff62ea09eadb50e895f8c7d45da
c9744d5c036c66e81aa5dd6524b0c9c82ad00db8
Czeroo/sigma-chess
/Board.cpp
C++
cpp
7,663
no_license
#include "Board.hpp" #include "Utility.hpp" #include <iostream> #include <algorithm> #include <optional> #include <SFML/Window/Event.hpp> #include <SFML/System/Time.hpp> Board::Board(sfmlContext context) : mContext(context) , tile_size(context.tilesize) , mLastFrom(std::nullopt) , mLastTo(std::nullopt) , mSelected...
d321de95f193d1f6d7a76b3807ad4d836a8a72b8
c63f4793cf80e5672906f2c5fbf0d4161c9556b3
stan-dev/math
/test/unit/math/fwd/meta/partials_return_type_test.cpp
C++
cpp
1,170
permissive
#include <stan/math/fwd.hpp> #include <test/unit/util.hpp> #include <gtest/gtest.h> #include <vector> using stan::partials_return_type; using stan::math::fvar; TEST(MathMetaFwd, PartialsReturnTypeFvarDouble) { EXPECT_SAME_TYPE(double, partials_return_type<fvar<double> >::type); } TEST(MathMetaFwd, PartialsReturnTy...
7cd6d78c50a20a680f8dd2bcd1a4452588a2f1bb
3463beaabe55df43370b385eee4f2c8de09f2b76
calum-chamberlain/pylith
/unittests/libtests/materials/data/PowerLaw3DTimeDepData.cc
C++
cc
9,558
permissive
// -*- C++ -*- // // ====================================================================== // // Brad T. Aagaard, U.S. Geological Survey // Charles A. Williams, GNS Science // Matthew G. Knepley, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://...
6ffa6ae66be62b133588d3e453dbe0f3ae59fdfa
153b0e0b80dbf38d300e3a63875318ff37e83f0d
wayelee/TESTPROJECT
/mlRVML/src/mlRVML/mlLinearImage.cpp
C++
cpp
37,196
no_license
/** * @copyright Copyright(C), 2011-2012, PMRS Lab, IRSA, CAS * @file mlLinearImage.cpp * @date 2011.11.18 * @author 刘一良 ylliu@irsa.ac.cn * @brief 线阵卫星影像处理源文件 * @version 1.0 * @par 修改历史: * <作者> <时间> <版本编号> <描述>\n */ #include "mlLinearImage.h" #define ML_PI 3.1415926535897932384626433832795 #define Moon_Radius 173...
0184cdd2a0a81d4fc2727c7f49d651579515eace
8336a62c8ea0ec1d04bc7a26f8feb0ada89f793e
luckcul/LeetCode
/algorithms/Construct Binary Tree from Inorder and Postorder Traversal/Construct Binary Tree from Inorder and Postorder Traversal.cpp
C++
cpp
1,076
no_license
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: TreeNode* buildTree(vector<int>& inorder, vector<int>& postorder) { int in_length = ino...
6b50588f89b0608d7ddc37a2eb3f4f59e5abee9f
28ba2db95678339c328af858837207cb75079618
miyachu/behavioral-model
/targets/simple_switch/tests/test_recirc.cpp
C++
cpp
4,246
permissive
/* Copyright 2013-present Barefoot Networks, 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 la...
7120b22d56d47f6c63d78fe64bd63647e5bdc754
8aa10db9e74010c5c2696187ba275804c9543a0b
shannonbooth/serenity
/Userland/Applications/Spreadsheet/HelpWindow.cpp
C++
cpp
7,783
permissive
/* * Copyright (c) 2020-2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include "HelpWindow.h" #include "SpreadsheetWidget.h" #include <AK/LexicalPath.h> #include <AK/QuickSort.h> #include <LibGUI/BoxLayout.h> #include <LibGUI/Frame.h> #include <LibGUI/ListView.h> #include <LibGUI/Me...
53bed856a6f1cd1ec4209d0a87918c4b4b48e7d3
1f4b0ff8beaef58932bd92614ef0af3c0393de06
vitalyzhakov/linearSolver
/gaussParallel.cpp
C++
cpp
3,703
no_license
/* * File: gaussParallel.cpp * Author: zhakov * * Created on 10 Декабрь 2012 г., 23:23 */ #include "gaussParallel.h" #include "omp.h" #include "math.h" #include "types.h" #include "stdio.h" #include "matrixHelpers.h" gaussParallel::gaussParallel(int size) { mSize = size; pSerialPivotIter = new int[s...
9bb87f51d349aec6676964285df11723dc667728
8a0b8199938882201befbbdc495e1dc14c5ecaf9
praveenmunagapati/dll
/include/dll/base_conf.hpp
C++
hpp
11,415
permissive
//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================================...
efaf905b92f8f99cd89a3d2d4d48838ff88ee134
7c296b4fe511536e4fb21aeeb7d61410e3791e1f
niuxu18/logTracker-old
/second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_1672.cpp
C++
cpp
313
no_license
{ errno = 0; if (fgets(buf, bufSize, file) == 0) { if (ferror(file) && (errno == EINTR)) { clearerr(file); } continue; } char* pBuf = buf; while (*pBuf) { if (*pBuf == '\n') *pBuf = '\0'; pBuf += 1; } lines.push_back(buf); ++nRead; }
6f13cdfe843562df88a48054d30d2b283d22a9d8
2776f63bbcc834a4fdda6e4eb3fb1aae3d4abf16
DD-L/lproxy-childish
/src/sta.cpp
C++
cpp
423
permissive
/* * 为了解决proxy意外退出, 强行重启服务器 * 不推荐使用此方式启动 proxy **/ #include <string> #include <cstdlib> #include <unistd.h> using namespace std; int main(int argc, char* argv[]) { string cmd = "./proxy"; for (int i = 1; i < argc; ++i) { cmd += string(" ") + argv[i]; } while (true) { system(cmd.c_str...
099d4f78234132c8b4e43d1247519f49567c7266
bbb48b5413de0c37f282d90272ccfc1bba164021
wangyh082/research
/some local search/random1.cpp
C++
cpp
1,033
no_license
#include<stdio.h> #include<stdlib.h> #include<time.h>//设置随机数种子头文件 #include<algorithm> using namespace std; struct po { double number; int pos; }s[100]; int cmp(const void *a,const void *b) { po l1=*(po*)a; po l2=*(po*)b; double t=l1.number-l2.number; if(t>0) return 1; else if(t<0) re...
df0214e470d0f32e11f642238e89dad2e49dfb18
6cfe2d4380f1e6bb80a58f147fffc11ce47a568d
MasterMind90/cppractice
/atcoder/abc145/D.cpp
C++
cpp
1,964
no_license
#ifndef LOCAL #pragma GCC optimize("O3") #endif #include "bits/stdc++.h" using namespace std; #define sim template < class c #define ris return * this #define dor > debug & operator << #define eni(x) sim > typename \ enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) { sim > struct rge { c b, e; }; sim > r...
6ce2c7a474cfce5cfa5f6c0e4f9afc4bbd403389
dc717303fa546fc362c810a4c04c99f0caa72788
Boklazhenko/itstephomework
/ps/week8.2/task9/neradovskiy/task9.cpp
C++
cpp
513
no_license
#include <iostream> #include <stdlib.h> int main() { char line[] = "saippuakivikauppias"; int size = strlen(line); //strlwr(line); //не работает тоже устаревшая функция выдает ошибку int space = ' '; int palindrome = (size - 1) / 2; int count = 0; int index = size - 1; for (int i = 0; i < size / 2; ++i) { ...
9c4736651437ab3b150db1d4717fbb33f5135851
027e7ec0e0a0dc884197ffb79bf94b8500d58403
TGDiamond/Diamond
/src/qt/transactiontablemodel.cpp
C++
cpp
22,337
permissive
// Copyright (c) 2011-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. #include "transactiontablemodel.h" #include "addresstablemodel.h" #include "guiconstants.h" #include "guiutil.h" #include "op...
2c4e02a1d2de87fab736fb64a03eb6790caf96c1
3d61e276e0b318743134940368f8588bff870b9a
adist1994/CT-EndocorticalBoneModeller
/src/vtkOBJWriter.cxx
C++
cxx
9,047
permissive
/*========================================================================= * * Copyright David Doria 2011 daviddoria@gmail.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *...
ab3fa4626bbed0be33c76bf88a53e61ce5062bfc
fa8e00ed45602afa65845c2f86067dd0d1c1a930
i5anoff/planeEtoiles
/src/planeApp.cpp
C++
cpp
135,232
no_license
#include "planeApp.h" #include "ofBitmapFont.h" std::ostream& tcout() { // Todo: get a timestamp in the desired format return std::cout << ofGetFrameNum() << " \t"; } //-------------------------------------------------------------- void planeApp::setup(){ idealFPS = 60; ofSetFrameRate(idealFPS); ...
e45c17e3b45f78df90707b660ef5fe10fd5ff6f2
68fcd9fe27d6a1d685862e8280b897499a31745b
byzin/Zisc
/source/zisc/core/zisc/ieee_754_binary.hpp
C++
hpp
12,956
permissive
/*! \file ieee_754_binary.hpp \author Sho Ikeda \brief No brief description \details No detailed description. \copyright Copyright (c) 2015-2023 Sho Ikeda This software is released under the MIT License. http://opensource.org/licenses/mit-license.php */ #ifndef ZISC_IEEE_754_BINARY_HPP #define ZI...
29cc315d786e8304437857adc22d98a872fa6d42
28117161b4d5b0b43a7bc377b97092260fea971b
kleopatra999/Far3bis-1
/unicode_far/syslog.cpp
C++
cpp
74,412
permissive
/* syslog.cpp Системный отладочный лог :-) */ /* Copyright © 1996 Eugene Roshal Copyright © 2000 Far Group All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code...
23e8fddb1137229e434ee296cbaf84fb63e3ac27
7155ae23e44a0e899d630448d6cabd34ebc7a597
duki994/G900H-Platform-XXU1BOA7
/vendor/samsung/common/packages/apps/SBrowser/src/media/video/capture/linux/video_capture_device_linux.cc
C++
cc
20,300
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/video/capture/linux/video_capture_device_linux.h" #include <errno.h> #include <fcntl.h> #if defined(OS_OPENBSD) #include <sys/videoio...
c1e6579562ce1e4c09566f09a6f31d6515a437ff
69cde5fc1c3e7d81d39d9f44fc5aff2a1f123e03
damianarielm/nachos
/userprog/address_space.cc
C++
cc
4,875
no_license
/// Routines to manage address spaces (executing user programs). /// /// In order to run a user program, you must: /// /// 1. Link with the `-N -T 0` option. /// 2. Run `coff2noff` to convert the object file to Nachos format (Nachos /// object code format is essentially just a simpler version of the UNIX /// exec...
75098562dd259f7454b7e0816bf6869cd6f8ed26
44c0d1c89fb2cbb15630ed0f8523b5398ef56fde
chensongpoixs/ccocos2d-x-4.0_lua
/cocos2d-x-4.0/tests/cpp-empty-test/Classes/StaticBall.cpp
C++
cpp
1,084
permissive
// // StaticBall.cpp #include "StaticBall.h" #include "Game.h" StaticBall::StaticBall() { radius = 4; reActive(); } void StaticBall::reActive() { // 默认活跃 isActive = true; // 随机位置 position = Vec2((CCRANDOM_0_1()*2-1) * maxW, (CCRANDOM_0_1()*2-1) * maxH); // 随机颜色 color = Color4F(10+24...
a7ae5f7c4edb6d8d49a0ad77d2a9d88ef32a21ad
75372a6a118a2349369e3576aaafa2200903f64a
sirAdarsh/CP-files
/CodeForces/508-B.cpp
C++
cpp
1,071
no_license
/*----- || Hare Krishna || -----*/ /* "WHY DO WE FALL, BRUCE?" */ // #pragma GCC optimize("Ofast") // #pragma GCC target("avx,avx2,fma") #include<bits/stdc++.h> #define ll long long #define endl '\n' #define elif else if #define PI 3.1415926535897932384 #define MOD 1000000007 using namespace std; char alpha[26] =...
2c44009f3bbae35e1db1e2e42778a37313155072
bdf0bfac958177c58667972e84cbb9e2e4dd24bf
standardgalactic/IsingModel-8
/Ising/IsingSand/config2.cpp
C++
cpp
1,048
no_license
#include "config2.h" const int TEST_NUM = 100000000; const int CALC_TO_PRINT = 10000000; const int PRINT_NUM = 50; const double MU = 0.2;//should not be zero : infinite loop const int N = 10000; const double G = 10;//gravitational accelation const double RADIUS = 0.01;//meter const double MASS = 0.10;//kg per parti...
9521af189bc175856597daa34afb5960dfb5e67c
3303337ccb8311ab4773fd653c3da78d4fe7c665
llllIIIIllll/opencv
/Basic/main.cpp
C++
cpp
2,263
no_license
// // main.cpp // opencv // // Created by Feast on 2017/11/24. // Copyright © 2017年 Feast. All rights reserved. // #include <iostream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int main(int argc, const char * argv[]) { // insert code here... const cv::String input_file =...
61799938578b7d5f752d45685919a52037074055
0dd091ee99d090d8d3ae7152a60334a1a08dfc21
SuperHashTokens/SuperHashToken
/src/script.cpp
C++
cpp
64,078
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2014 The SuperHashToken developer // 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 st...
25bf811cd787aa2afb47a8a7dd86acb0c0074f40
880a4a56595b20d237d788f13abc9c7ece228bc7
tianyu-devc/chromium
/chrome/browser/focus_ring_browsertest.cc
C++
cc
7,774
permissive
// Copyright 2020 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 "base/files/file_util.h" #include "base/path_service.h" #include "build/build_config.h" #include "build/chromeos_buildflags.h" #include "cc/test/...
22839cbb6dca2d4792f6cc87efc4a38253ab5fed
bed114698c8ab48c9de1ace847815e41cfe4ea9d
mitchute/EnergyPlus
/src/EnergyPlus/WaterToWaterHeatPumps.hh
C++
hh
3,811
permissive
// EnergyPlus, Copyright (c) 1996-2022, The Board of Trustees of the University of Illinois, // The Regents of the University of California, through Lawrence Berkeley National Laboratory // (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge // National Laboratory, managed by UT-Batt...
50b09bf731bb07d04fd82c608e2caaf432ab0a61
4608e7315acf2a60993c17b1c7c20b134285fb70
betoesquivel/Algoritmos
/howmanyprimes.cpp
C++
cpp
2,085
no_license
/* * ===================================================================================== * * Filename: howmanyprimes.cpp * * Description: * * Version: 1.0 * Created: 01/18/2014 10:16:21 * Revision: none * Compiler: gcc * * Author: Jose Alberto Esquivel Pat...
146c9fe0184492be09fd40079e3d45f0ac4a80bb
302296fe7216e154a3fea605dfe34b23591227cf
urjaman/s2putty
/ui/s80/puttyappview.cpp
C++
cpp
6,977
permissive
/* puttyappview.cpp * * Putty UI View class * * Copyright 2002,2009 Petteri Kangaslampi * * See license.txt for full copyright and license information. */ #include <e32std.h> #include <gdi.h> #include <eikenv.h> #include <apgtask.h> #include <eikspane.h> #include <eikbtgpc.h> #include "puttyappui.h" #include ...
994b02435a2ccabbb823ba010b62625ed158f61c
89e7ded815a9b4171b4646c91555049043176453
sakura-editor/SakuraSonarTest
/sakura_core/extmodule/CBregexp.cpp
C++
cpp
24,445
permissive
/*! @file @brief BREGEXP Library Handler Perl5互換正規表現を扱うDLLであるBREGEXP.DLLを利用するためのインターフェース @author genta @date Jun. 10, 2001 @date 2002/2/1 hor ReleaseCompileBufferを適宜追加 @date Jul. 25, 2002 genta 行頭条件を考慮した検索を行うように.(置換はまだ) @date 2003.05.22 かろと 正規な正規表現に近づける @date 2005.03.19 かろと リファクタリング。クラス内部を隠蔽。 */ /* Copyrig...
3cc9779657d8f0fb1ee0ef401d37bbb46c498d40
0d3ff8ea59c48a653afd798d04eeae93c3227fd9
aTiKhan/grpc
/src/core/lib/security/transport/security_handshaker.cc
C++
cc
25,061
permissive
/* * * Copyright 2015 gRPC 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 agree...
ed61ca6fb07d4e49bdb635c6b55fcfc972fd982b
12ee521bfe46a00bac7469ffd392ab661fb94a4c
ln93/EmulationStation-zhcn
/es-app/src/views/SystemView.cpp
C++
cpp
21,784
permissive
#include "views/SystemView.h" #include "animations/LambdaAnimation.h" #include "guis/GuiMsgBox.h" #include "views/UIModeController.h" #include "views/ViewController.h" #include "Log.h" #include "Settings.h" #include "SystemData.h" #include "Window.h" // buffer values for scrolling velocity (left, stopped, right) cons...
212fab6981ef674c0a4ef5486d17e198c8f0ffa5
5d43297acaa50375850723ef9e72f5744f76c82e
yuri410/rpg
/external/DirectXShaderCompiler/lib/Analysis/MemoryLocation.cpp
C++
cpp
6,602
permissive
//===- MemoryLocation.cpp - Memory location descriptions -------------------==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------...
5155f3f83c73b18a5b74c3094aa29e85f70129ba
5cd7d7d57aac5252dd3f95228814713e3c6b0207
RajashreeSundaram/Little_simulation_GUI_gridbox
/sim.cpp
C++
cpp
832
no_license
#include <GL/gl.h> #include <GL/glut.h> #include "gridmap.h" #define COLUMNS 30 #define ROWS 50 void display_callback(); void reshape_callback(int,int); void init() { glClearColor(0.0,0.0,0.0,1.0); initGrid(COLUMNS,ROWS); } int main(int argc,char **argv) { glutInit(&argc,argv); glutInitDisplayMode(GLUT_RGB | G...
defa98d5af343e6aa76e7078f2304902a39e2476
ab06a1c077a8e5ab6f2c0f966a8b00851d0980a5
PiasTanmoy/Codeforces
/codeforces 707B.cpp
C++
cpp
1,059
no_license
#include<bits/stdc++.h> using namespace std; typedef pair<long long int, long long int>PII; vector<PII> List[100005]; vector<PII>::iterator vi; long long int n,m,k; long long int a[100005]; long long int index[100005]; int main() { cin>>n>>m>>k; long long int u, v, l; for(int i=0; i<m; i++...
906a42d5e975cb98e7230cf3ff46e219f3813ed0
09e25be50ff796510656cee848fa90fe20669e4c
abcweizhuo/Test3
/Common/ModelsC/MG/MG_TWOPH.CPP
C++
cpp
132,787
no_license
//================== SysCAD - Copyright Kenwalt (Pty) Ltd =================== // $Nokeywords: $ //=========================================================================== // SysCAD Copyright Kenwalt (Pty) Ltd 1992 #include "stdafx.h" #include <string.h> #include <math.h> #include <stdlib.h> #include <float.h...
0f74e6b32593b8a97e649501779066ab0d76be5f
611bb945477f8e2d64c9dd98245a0d89e5ce29a3
flor-rovere/nachOS
/Plancha 2/tags/nachOS/code/network/post.cc
C++
cc
10,380
no_license
/// Routines to deliver incoming network messages to the correct “address” -- /// a mailbox, or a holding area for incoming messages. /// /// This module operates just like the US postal service (in other words, it /// works, but it is slow, and you cannot really be sure if your mail really /// got through!). /// /// N...
4e0d2961305e0f7dae1a8b131990c5915deb246a
870fbc8f66ced753d613b6c3d474d562b38ee64b
moteesh-in2tive/chromium
/ash/app_list/views/productivity_launcher_search_view.cc
C++
cc
9,413
permissive
// Copyright 2021 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 "ash/app_list/views/productivity_launcher_search_view.h" #include <limits> #include <memory> #include <utility> #include "ash/app_list/app_list...
8e8795a6468104b634b5926b15a5e66a4fd5cf7e
574b79412f9b4d011c434ae7d71d8c4dbd5be1d6
severin-lemaignan/v4r
/modules/common/include/v4r/common/impl/graph_geometric_consistency.hpp
C++
hpp
49,110
no_license
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2012, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
7e7dae82ea120f52daf3d794a75aeada1f0bac00
5366181e6285bea5be810a541d8dd06fc97e299f
thegamer1907/Code_Analysis
/Codes/AC/2241.cpp
C++
cpp
2,235
no_license
#include<bits/stdc++.h> #define mp(a,b) make_pair((a),(b)) #define pii pair<int,int> #define pll pair<LL,LL> #define pb push_back #define x first #define y second #define sqr(x) ((x)*(x)) #define EPS 1e-6 #define MEM(x) memset(x,0,sizeof(x)) #define MEMS(x) memset(x,-1,sizeof(x)) #define pi acos(-...
82e4c4ef86f82369dd5d810eeb804009aa35f0de
fa14137d22217962142e0153bfae6256980240ee
herr-biber/opengm
/src/interfaces/python/opengm/inference/pyDualDecompositionBundle.cxx
C++
cxx
2,994
permissive
#ifdef WITH_CONICBUNDLE #define GraphicalModelDecomposition DualDecompostionBundleInference_GraphicalModelDecomposition #include <boost/python.hpp> #include <string> #include "inf_def_visitor.hxx" #include <opengm/inference/dualdecomposition/dualdecomposition_bundle.hxx> #include <param/dual_decompostion_bundle_param...
5173868047363d741e14bfb4c475012b1e5a7a8b
be9e6652a5c039765136083532fcb4d9256daffc
yuntan/twitter4qml
/src/lib/friendships/friendshipscreate.cpp
C++
cpp
1,708
permissive
/* Copyright (c) 2012-2013 Twitter4QML Project. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this l...
90816a32317d77eb343aed68eead74b7906d4a5b
882649fdbd80a5916ef9b77daf4d1a9fd7d41295
SmartEngines/minimg_interfaces
/minimgio/test/test_webp.cpp
C++
cpp
3,764
permissive
/* Copyright 2021 Smart Engines Service LLC Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
0da2ff6cabb03cd0e10a6ffcdec67fd69e7a7ebd
852e5c8a14e63ebd4707011e03c630d4e5665689
alogfans/Montage
/src/rideables/DaliUnorderedMap.hpp
C++
hpp
20,356
permissive
#ifndef DALI_UNORDEREDMAP #define DALI_UNORDEREDMAP #include <atomic> #include <mutex> #include "HarnessUtils.hpp" #include "TestConfig.hpp" #include <map> #include <vector> #include <unistd.h> #include <math.h> #include <assert.h> #include <sys/resource.h> #include <hwloc.h> #include "ConcurrentPrimitives.hpp" // #...
c3373b2920ed7dcaf9966bed0ca5d53db6cd6387
a81274110515fc06a9c2dbd342e1b89c9150e58a
hermit-git/C-
/CodingBlocks_algo++/Binary Tree/CreateTreeByTraversal.cpp
C++
cpp
1,413
no_license
#include<iostream> #include<queue> using namespace std; class node { public: int data; node*left; node*right; node(int d): left(NULL), right(NULL) { this->data = d; } }; node* builtTree() { int d; cin >> d; if (d == -1) { return NULL; } node*root = new node(d); root->left = builtTree(); root->right = ...
87665fe81019a3d1713909e99b38c00472e9eb1a
92308892fe1658a839168cc47e0e08480218deb7
ShaunNaude/COS214_GP
/src/Planets/Route.cpp
C++
cpp
351
no_license
// // Created by danienel21 on 2019/10/19. // #include "Planets/Route.h" Route::Route(Planet *start, Planet *end, int dist) { Planet1 = start; Planet2 = end; distance = dist; } Planet *Route::getPlanet2() { return Planet2; } Planet *Route::getPlanet1() { return Planet1; } int Route::getDista...
03d7e655411a10c615213ff8422ccf00ff504283
c933f7d86722d6aaa4b3a0b2df81984990e00e03
eyalroz/cuda-api-wrappers
/examples/modified_cuda_samples/clock_nvrtc/clock.cpp
C++
cpp
5,526
permissive
/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
e6ce678484b60fb557c234f9666220567e047d85
274cbf310c5c362ba3f6111879398ec75068d38c
theaky/kovri
/src/core/Garlic.cpp
C++
cpp
20,946
permissive
/** * Copyright (c) 2015-2016, The Kovri I2P Router Project * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, ...
37a0deb0f77326e5dac48c0babf257bdb1d95861
e033325d5f639545236ac896eb7eea87045f5500
marco-c/gecko-dev-wordified-and-comments-removed
/third_party/libwebrtc/test/scenario/hardware_codecs.cc
C++
cc
1,093
permissive
# include " test / scenario / hardware_codecs . h " # include " rtc_base / checks . h " # ifdef WEBRTC_ANDROID # include " modules / video_coding / codecs / test / android_codec_factory_helper . h " # endif # ifdef WEBRTC_MAC # include " modules / video_coding / codecs / test / objc_codec_factory_helper . h " # endif n...
4f788370064d1a508f9a2d64b240329664819d96
1bb13885e5442318d914e1e2fa757d7d955420e8
brinkqiang/fastformat
/test/scratch/test.scratch.inserter.real/implicit_link.cpp
C++
cpp
983
permissive
/* ///////////////////////////////////////////////////////////////////////// * File: implicit_link.cpp * * Purpose: Implicit link file for the test.scratch.inserter.real project. * * Created: 1st March 2009 * Updated: 11th August 2009 * * Status: Wizard-generated * * License:...
88deae7911bc059d3a799d319b00fe31490c6236
c7efcc3908880d9b08ce8b0bc4160668152d2954
cacoderquan/tuplex
/benchmarks/tpch/Q19/weld/main.cc
C++
cc
10,437
permissive
// // Created by Rahul Yesantharao on 2/02/20. // #include <iostream> #include <string> #include <weld.h> #include "CLI11.hpp" #include "csvmonkey.h" #include "timer.h" using namespace std; // @TODO: need to load FULL data, so it's fair to the other frameworks... template<typename T> struct weld_vector { T *dat...
aff13e38a0225b5c631a5c89ceffe1da9f55195a
81c5b4ce26f4258c37c36618779f334c68b1dd3b
RwdrQP/GatewayServer
/GatewayServer/LotusConfigMng.cpp
C++
cpp
12,979
no_license
#include "SectionConfig.hpp" #include "LotusConfigMng.hpp" #include "LotusLogAdapter.hpp" #include "base.hpp" #include "LotusDefine.hpp" using namespace ServerLib; CLotusConfigMng::CLotusConfigMng() { m_ushServerType = 0; m_ushServerID = 0; m_uiInternalSocketBufferSize = DEFAULT_SENDBUFFER_SIZE; m_uiC...
0a29f2848da0b9466ca4a05e11f9ac0feefbff90
381ad1a88a386cd04f05c4e05541e797c4005b76
jwaggoner/ShareCameraQt
/ShareCameraQt.cxx
C++
cxx
6,005
no_license
#include "ShareCameraQt.h" #include <vtkDataObjectToTable.h> #include <vtkElevationFilter.h> #include <vtkPolyDataMapper.h> #include <vtkQtTableView.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRendererCollection.h> #include <vtkSphereSource.h> #include <vtkCubeSource.h> #include "vtkSmartPoin...
31db63de66283ce1b8cbc4c44a4e3e04d223f848
6d0c8313816fe4b4d9e0dcceb8bf1138c2163fef
UchihaDoThTrong/SPOJ
/DIVSUM.cpp
C++
cpp
1,022
no_license
#include <vector> #include <map> #include <queue> #include <algorithm> #include <sstream> #include <iostream> #include <cmath> #include <cstdlib> #include <set> #include <bitset> #define FOR(A,B,C) for(int A=B;A<C;A++) #define EFOR(A,B,C) for(int A=B;A<=C;A++) #define RFOR(A,B,C) for(int A=B;A>=C;A--) #define PB(A,B) ...
35f0481ce4bd3e852d99d421faf28c13649dafa9
e5ababccba92c8f00b7205f5bfb642d8a532fddb
seanngpack/swag-scanner-cpp
/test/calibrationTests/CalibrationTests.cpp
C++
cpp
2,284
permissive
#define private public #include <gtest/gtest.h> #include <memory> #include "CalibrationModel.h" #include "Visualizer.h" #include "CalibrationModel.h" #include "Plane.h" #include "Normal.h" #include "Point.h" class CalibrationPhysicalFixture : public ::testing::Test { protected: model::CalibrationModel *mod; ...
dc995a7dbcffc9bd4fb00ab018972700f763f8dd
9af60c9594d4492a3dfa1d08e68f7496f9aa5121
EAirPeter/vmp
/test/vu64cmp.cpp
C++
cpp
2,497
no_license
#include "../intrin/Vu64Compare.hpp" #include "_test.h" using namespace vmp; template<U64 N> constexpr int U64Cmp1(const U64 *pLhs, const U64 *pRhs) noexcept { return vmp::intrin::Vu64Compare<N>(pLhs, pRhs); } template<U64 N> constexpr int U64Cmp2(const U64 *pLhs, const U64 *pRhs) noexcept { auto y0 = _mm256...
ba2db04183035922ab92473e55487f146d8c2916
7466f95ab4502993c46ff359e887617a3b4fcea7
LukasHromadnik/CVUT
/FIT-PA2/Progtest/5-2/progtest.cpp
C++
cpp
2,171
no_license
#include <iostream> using namespace std; class CTimeStamp { public: CTimeStamp (int year, int month, int day, int hour, int minute, int sec); friend ostream & operator << (ostream & os, const CTimeStamp & x); void operator = (const CTimeStamp & x); int Compare (const CTimeStamp & x) const; protected: int m_Time[...
5cc13eccab3523ce0828aa898bf88ede62360446
48c78151efd8cf605c87f15d10aba4c75c54548b
gura-lang/gurax
/src/module-model_obj/VType_D_interp.cpp
C++
cpp
3,643
no_license
//============================================================================== // VType_D_interp.cpp //============================================================================== #include "stdafx.h" Gurax_BeginModuleScope(model_obj) //------------------------------------------------------------------------------...
2008e246d3d0c425a1db7e9a67dc34894e6d8ccc
857fe66e3dfd88e56494814fe996aa93a1bad619
junayed112/Codeforces
/32A. Reconnaissance.cpp
C++
cpp
347
no_license
#include <bits/stdc++.h> using namespace std; int main() { long long t,n,i,j,d,c=0; cin>>n>>d; long long a[n]; for(i=0;i<n;i++){ cin>>a[i]; } for(i=0;i<n-1;i++){ for(j=i+1;j<n;j++){ if(abs(a[i]-a[j])<=d){ c+=2; } } ...
87693498e1f8339d7d40ce4246e9ec3d1ab9497d
156c956195b110d3026bcc4bc508c6bc86a661f1
daajoe/detkdecomp
/sources/DetKDecomp.cpp
C++
cpp
33,751
no_license
// DetKDecomp.cpp: implementation of the DetKDecomp class. // ////////////////////////////////////////////////////////////////////// #include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <list> #include <vector> using namespace std; #include "DetKDecomp.h" #include "Hypertree.h" #inc...
3692439fdaa62afa0276e71fce6fa9c6299a689b
1b28088bd0e16c25a9234b67c28b5f7d92c875f4
mengxingshifen1218/StaticMapping
/builder/submap.cc
C++
cc
9,495
permissive
// MIT License // Copyright (c) 2019 Edward Liu // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merg...
5f39806669983d1201909f938a8024d54a99c4a9
1209c8ca16dcfa6c175e86738c02a4f89cb3717a
DavidSunny86/nextar
/source/Plugins/MeshLoader/src/Plugin.cpp
C++
cpp
601
no_license
/* * File: Plugin.cpp * Author: obhi * * Created on May 8, 2011, 2:23 AM */ #include <EngineHeaders.h> #include <Plugin.h> #include <MeshLoaderImpl.h> NEX_IMPLEMENT_PLUGIN(MeshLoader, MeshLoader::Plugin); namespace MeshLoader { Plugin::Plugin() { } Plugin::~Plugin() { } void Plugin::Open() { } void Plug...
fb3298983d333c7952439ec07301255383f65cfd
ebbe6a85c861c55629abbafa97d047a0b36051ec
showkawa/deeplearning4j
/libnd4j/include/ops/declarable/helpers/cpu/lgamma.cpp
C++
cpp
1,727
permissive
/* * ****************************************************************************** * * * * * * This program and the accompanying materials are made available under the * * terms of the Apache License, Version 2.0 which is available at * * https://www.apache.org/licenses/LICENSE-2.0. * * * * See the NOT...
6dbcd3166722fc910623f707ba929011276ce1ba
24a15d1785e4934fb756bda25865275e0dbcb959
julcia106/Stephen-Prata-Primer-Plus
/Rozdział 14/5/Source.cpp
C++
cpp
701
no_license
#include "pch.h" #include "emp.h" #include <iostream> using namespace std; int main (void) { employee em ("Tadeusz", "Hubert", "Sprzedawca"); cout << em << endl; em.ShowAll (); manager ma ("Amforiusz", "Smoczewski", "Malarz", 5); cout << ma << endl; ma.ShowAll (); fink fi ("Maurycy", "Olkuski", "Hydraulik", "...