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
fe52599048249557bbc3804cbb5d1c3f50a58022
698a37de9b1a78c1783dfb8496cceeefd55801a4
JinRLuo/solution-of-algorithm
/acwing/算法基础课/基础算法/790 数的三次方根.cpp
C++
cpp
373
no_license
#include <iostream> using namespace std; double n; int main(){ int flag=0; cin>>n; if(n<0){ n=-n; flag=1; } double l=0,r=n; while(r-l>1e-8){ double mid=(l+r)/2; if(mid*mid*mid>n) r=mid; else l=mid; } if(flag) print...
540691a1b87d09cf70d725377077a6a621ee691f
c5a3594c099b71cf9927572e2988f71e6d161a90
lubing521/mmo-resourse
/Sources/S3Client/Ui/UiCase/UiChannelSubscibe.cpp
C++
cpp
457
no_license
/***************************************************************************************** // ½çÃæ--ƵµÀ¶©ÔÄ // Copyright : Kingsoft 2003 // Author : Wooy(Wu yue) // CreateTime: 2003-4-24 *****************************************************************************************/ #include "KWin32.h" #include "...
d7a6b9a7f55078139138ca3ff7aa2b862eca75fd
3ac63642a1d2b3c60d4d172fd0c9b203d7826e93
MathProgrammer/CodeForces
/2020/Div 2/678 Div 2/Programs/Prime Square.cpp
C++
cpp
651
no_license
#include <iostream> #include <vector> using namespace std; void solve() { int n; cin >> n; for(int i = 1; i <= n; i++) { for(int j = 1; j <= n; j++) { if(i == j) { cout << "1 "; } else if(j == (i + 1) || (i == n && j ...
4b6ffdf89cad7ca66844e87552143aee0256957c
8e4aa42c2720db00ddfc20235ea10c0ef2796ec1
Shaing/NCTU_106
/20.cpp
C++
cpp
345
no_license
#include <iostream> #include <bitset> using namespace std; int a[10] = {8, 15, 23, 30, 7, 2, 10, 13, 6, 5}; int func(int* p, int n) { int i, j; for(i = 0, j = 0; i < n; i += 2) { if(*(p + i) < 10) j++; } return j; } int main() { cout << func(a, 10) << endl; //c...
98fe4e0f934db355ba76de8cc7989815a09b3e54
7c35d108d763c9ebba998482263314e642697a3a
Alpha2Cool/Algo_exercises
/判断栈的压入弹出是否相等.cpp
C++
cpp
1,168
no_license
#include <iostream> #include <vector> using namespace std; class Solution { public: bool IsPopOrder(vector<int> pushV,vector<int> popV) { int size = pushV.size(), flag=1; for(int i=0;i<size;i++) { if(pushV[i]!=popV[size-1-i]) { flag=0; } ...
0151525d2179a5a0a8b070641f6169d71675c04e
03811bcb879e1f2025f2d463bf8c005df92a0fcb
xueer2422/swift-1
/lib/IRGen/GenArchetype.cpp
C++
cpp
13,419
permissive
//===--- GenArchetype.cpp - Swift IR Generation for Archetype Types -------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
972e42ff193880ab3a9c0a32e5d82db80a57c4bb
daaf08721384868795ac7fe228dc7246ebedf3e1
Amreshhub/C-
/FOURSMOL.CPP
C++
cpp
523
no_license
#include<iostream.h> #include<conio.h> void main(){ int a,b,c,d; clrscr(); cout<<"Enter any four number:"; cin>>a>>b>>c>>d; if(a<b) if(a<c) if(a<d) cout<<endl<<"smollest value="<<a; else cout<<endl<<"Smollest value="<<d; else if(c<d) cout<<endl<<"Smollest value="<<c; else cout<<endl<<"Smollest value="...
4fe755b9c7d0670f70b06b9ee425c77749788c49
ef96f4cac89c8036fe52702e6a18f3ea6ecf54c1
CJGC/Problems-URI-judge
/1061.cpp
C++
cpp
1,141
no_license
#include <bits/stdc++.h> using namespace std; void get_numbers(int dates[], int &j){ string date_string; getline(cin,date_string); istringstream is(date_string, istringstream::in); while(true){ is >> dates[j]; while(!is.eof() && (is.bad() || is.fail())){ is.clear(); is.ignore(1); is >...
235ee840b1e72fc16b98ddb8c63d6c2876eb0d84
7195ed1616246bef375e7decc57c5ec995dd0eb3
JZDBB/Cpp-Code
/workspace/Algorithms/SearchAlgrithm/547.cpp
C++
cpp
461
no_license
#include"Search.h" // 547. إَسرب¦ void dfs(vector<vector<int>>& M, int index, vector<int> &visit) { for (int i = 0; i < M.size(); i++) { if (M[index][i] == 1 && visit[i] == 0) { visit[i] = 1; dfs(M, i, visit); } } } int findCircleNum(vector<vector<int>>& M) { if (M.empty()) return 0; vector<int> visit(M...
2ee1ae32268173d996d220ecde4fc6cbbb79e89c
18a4d119a97c1717af32474ef164e7b53eca2422
Maruf089/Competitive-Programming
/Codeforces/571.cpp
C++
cpp
2,756
no_license
#include <iostream> #include <map> #include <vector> #include <queue> #include <cmath> #include <string> using namespace std; #define REP(i, b, n) for (int i = b; i < n; i++) #define rep(i, n) REP(i, 0, n) vector<int> result_steps; typedef struct _state { int a, b; vector<int> steps; } state; void solve(int...
ef44399238cd3ca8ddbc2f7ccd7a294d2965ad79
5dd554b6c99e69828334a432626b0a6faf76b01f
ECS-251-W2020/chromium
/components/omnibox/browser/omnibox_field_trial_unittest.cc
C++
cc
19,133
permissive
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/omnibox/browser/omnibox_field_trial.h" #include <memory> #include <utility> #include "base/command_line.h" #include "base/macros.h"...
6373051880f5eea6332d8dc002b5e2a700a5a845
f941105e740910e5aa34b085a72a78a79fef4f86
SurvivorK/CG
/lab/base/texture.cpp
C++
cpp
2,914
no_license
#include <cassert> #define STB_IMAGE_IMPLEMENTATION #include "texture.h" Texture::Texture() { // create texture object glGenTextures(1, &_handle); } Texture::~Texture() { // destroy texture object if (_handle != 0) { glDeleteTextures(1, &_handle); _handle = 0; } } void Texture::cleanup() { ...
f4f92f8e58056273d0267fa24ca69aa11a69048f
4091508c2994a1415e75e2e40f16a043aa022f7e
tychota/cg3-path-tracer
/cpp/include/cg3/manager/tile.hpp
C++
hpp
946
permissive
# pragma once # include "cg3/common/utils.hpp" # include "cg3/common/mat.hpp" struct Tile { typedef tiny_vec< real_type, 3 > pixel_format_type; typedef mat< pixel_format_type > image_type; enum sampling_type { SAMPLE_REGULAR, SAMPLE_RANDOM, }; position<2> get_subpixel_sample( std...
560ba88aae67bfc821b478b3b31b3dea9e584a5e
0c6b5e6dc53c52a73c0e32afba36e82dc833ea67
PawaraGunawardena/CMake
/Source/cmQtAutoGenerator.cxx
C++
cxx
13,425
permissive
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmQtAutoGenerator.h" #include <cm3p/json/reader.h> #include "cmsys/FStream.hxx" #include "cmQtAutoGen.h" #include "cmStringAlgorithms.h" #include "cmSystemTool...
32b02dc358242eba275af9053eb35fabc200b826
56b2c6272df67105ffba25524f122091486d0bba
magoo-magoo/QNetsoul-version-Qt5
/tools/tools.cpp
C++
cpp
4,993
no_license
/* Copyright 2010 Dally Richard This file is part of QNetSoul. QNetSoul is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. QNetSo...
96fe07234dd11d59b802297b82d44636850c013c
f9b365227eb671eff2f1dbdadbfaeaa881e408a0
Simu96/study_CodeUp
/기초100제/1099.cpp
C++
cpp
751
no_license
#include <stdio.h> int main(){ int a[10][10] = {}; for(int i = 0; i < 10; i++){ for(int j = 0; j < 10; j++){ scanf("%d", &a[i][j]); } } int x = 1; int y = 1; while(1){ if(a[x][y] == 2){ a[x][y] = 9; break; }else if(a[x...
c05859d59542220d3f642c6b1c5a38efce05d951
de86c54b708507746a0473a252820f7915aae963
lzb991435344/PrimerAndPointer
/C++PrimerCode/3/string_io.cpp
C++
cpp
323
no_license
#include <string> using std::string; #include <iostream> using std::cin; using std::cout; using std::endl; int main() { //读取字符串,输出 string s; // empty string cin >> s; // read a whitespace-separated string into s cout << s << endl; // write s to the output return 0; }
76f8d2f68d67a525c06e2d18bd0ea49dbeaa8af7
2a277c406629c5b72224aeab9afc257ce40c3103
JQiu/IGSTK-4.4
/Testing/igstkPolarisTrackerTest4.cxx
C++
cxx
8,743
permissive
/*========================================================================= Program: Image Guided Surgery Software Toolkit Module: $RCSfile: igstkPolarisTrackerTest4.cxx,v $ Language: C++ Date: $Date: 2008-06-17 21:03:05 $ Version: $Revision: 1.5 $ Copyright (c) ISC Insight Software Consorti...
e2f504c334d5dd16cc89a93d98640890e491cc7e
8b749e78167a5d07a29474ad53c50de4de4c3d41
OverPowered-Team/TheWitcher
/The Witcher/Alien Engine/Perlin_Noise/PerlinNoise.cpp
C++
cpp
3,498
permissive
#include "PerlinNoise.h" #include <cmath> #include <random> #include <algorithm> #include <numeric> // THIS IS A DIRECT TRANSLATION TO C++11 FROM THE REFERENCE // JAVA IMPLEMENTATION OF THE IMPROVED PERLIN FUNCTION (see http://mrl.nyu.edu/~perlin/noise/) // THE ORIGINAL JAVA IMPLEMENTATION IS COPYRIGHT 2002 KEN PERLIN...
c15824b2ec2ea62659191b728c242f83446d6d55
44408d42d25ce6d6ea9ecf8db219ea54e8c8ac75
peerplays-network/peerplays
/libraries/chain/sidechain_address_evaluator.cpp
C++
cpp
6,942
permissive
#include <graphene/chain/sidechain_address_evaluator.hpp> #include <graphene/chain/database.hpp> #include <graphene/chain/son_object.hpp> #include <graphene/chain/sidechain_address_object.hpp> #include <graphene/chain/hardfork.hpp> namespace graphene { namespace chain { void_result add_sidechain_address_evaluator::d...
809aba8c5b2addf567f2be020b602be2da5a1a60
36fc89f3561d01a6e2c37600e4d92ed738bf7566
dari-kayoo/Cplusplus
/lab6/book.cpp
C++
cpp
369
no_license
#include <iostream> using namespace std; int main (){ int n, x; int a[n]; cin >> n; for (int i = 0; i < n; i++){ cin >> a[i]; } cin >> x; for (int i = 0; i < n; i++){ if (a[i] != x){ cout << "No"; } else { cout << ...
fab5e64dcb0a31ed4c6d664684d365da387004f7
7c18e7e3eaca51c487e510e36b7d9aa8c529b53f
hokein/clang-tools-extra
/unittests/clangd/SymbolCollectorTests.cpp
C++
cpp
35,119
permissive
//===-- SymbolCollectorTests.cpp -------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
aa94c344ca66c9131bd689d2e67de959f79f956f
71a9c5281d9546305ee8486750bc6c9678a5d42d
jbatinic/EDA---TP1
/tests.cpp
C++
cpp
3,420
no_license
#include "parseCmdLine.h" #include <string> #include <iostream> using namespace std; typedef struct { string clave; string parametro; } arg_struct; int parseCallback(char* key, char* value, void* userData) { int success = 1; arg_struct * argumentos = * (arg_struct**) userData; string my_key; ...
6954e8666c45a5d7097a96dcfd2e144e5461aa5b
69514db199cf99cd5d04ce0139cf2409b691b422
WyattHoppa/2035_game
/main.cpp
C++
cpp
8,947
no_license
// Project includes #include "globals.h" #include "hardware.h" #include "map.h" #include "graphics.h" #include "speech.h" // Functions in this file int get_action (GameInputs inputs); int update_game (int action); void draw_game (int init); void init_main_map (); int main (); int halt_action = 0; /** * The main game ...
2a6857783d408348536f2d2943b1f4a751d82239
80217e8479c07d367a9da2282899b6a87b053bd0
nwang-intel/acrn-integration
/TestCases/sgx/SampleEnclave/App/Edger8rSyntax/Functions.cpp
C++
cpp
3,008
no_license
/* * Copyright (C) 2011-2018 Intel Corporation. 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 li...
4d2ad80998a84e0eef8a54e9dfd99f2ea98618e9
beaf413fa102a2dffe45046de7a960c914ec981a
dbremner/Hilo
/C++/Browser/ShareDialog.cpp
C++
cpp
13,610
no_license
//=================================================================================== // Copyright (c) Microsoft Corporation. All rights reserved. // // THIS CODE AND INFORMATION IS PROVIDED 'AS IS' WITHOUT WARRA...
0fca4a0ccab8f77c8a91df4cdab23b0e07c6bec6
08387f2b78fc80533630235133f22aee7af25266
windmissing/exerciseForAlgorithmSecond
/src/chapter22/section22_4.cpp
C++
cpp
3,611
no_license
/************************************************************************* > File Name: section22_4.cpp > Created Time: Mon 23 Nov 2015 07:57:00 PM CST ************************************************************************/ //用邻接表实现图的转置 #include <iostream> using namespace std; #define N 14 #define WHITE 0 ...
b57f31f2853000050cdb5a10404e2ddbb5e2bbe5
80c8b07123a9dfa686f554ce7fda515460883e79
abhishek03-cs/onlinepractice
/kadane.cpp
C++
cpp
288
no_license
#include<iostream> using namespace std; int main() { int cs,ms,n; cs=0; ms=0; cin>>n; int arr[n]; for(int i=0;i<n;i++){ cin>>arr[i]; } for(int i=0;i<n;i++){ cs=cs+arr[i]; if(cs<0) cs=0; if(cs>ms) ms=cs; } cout<<" "<<ms<<endl; return 0; }
c5208d6481d4c334666ffa3d219f704ce8cc9cfb
f7e84994a80231d356c0b23b1773c56d87424cba
TIWTIW/causual-project
/arm/Robot/Sources/Robot_VisionNavV2_L3.cpp
C++
cpp
270
no_license
#include "Robot_VisionNavV2.h" static pid_t L0_pid; static pid_t L1_pid; static pid_t L2_pid; int Level3_GlobalPlanning( pid_t pidnum0, pid_t pidnum1 ) { sleep(3); while( true ) { //cout << "Level3 is Working..." << endl; sleep(10); } }
7f2feb3bead5cff993111c920f490ceadf860884
26327131934cbb467c692ac39f6972c7ac2e6a78
PX4/PX4-Autopilot
/src/drivers/cyphal/CanardHandle.cpp
C++
cpp
7,168
permissive
/**************************************************************************** * * Copyright (c) 2020 PX4 Development Team. 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. Redistri...
fe56ae7e9b8171b4b00d2c0e02a0178836d4a231
6fec17b07fa43debd50f51b6257ee5a606ba40d1
Xiangdangdang1/contest_learn_cpp
/chapter2/greedy/coin_problem.cpp
C++
cpp
544
no_license
#include <iostream> using namespace std; const int V[6] = {1, 5, 10, 50, 100, 500}; int C[6]; int A; int ans = 0; void solve() { for (int i = 5; i >= 0; i--) { //使用了t枚硬币i int t = min(A / V[i], C[i]); //这句是重点!! cout << V[i] << "元硬币用了:" << t << "枚" << endl; A -= t * V[i]; ...
7011b4e7bdf0920cfe6ffe1c57bbe8f8eb6a2b0e
c3e22f12e66ee6be44b08a980225fe5961402ab0
sinoory/webnode
/Source/Chromium/base/files/important_file_writer.cc
C++
cc
6,863
no_license
// Copyright (c) 2011 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/debug/stack_trace.h" #if defined _MSC_VER && _MSC_VER == 1800 // TODO(scottmg): Internal errors on VS2013 RC in LTCG. This should be rem...
d83521e68f122fe5166f797b07a1c073dd222235
88c30d3707e9e81d07ef6daf971cb61cf2dfdef8
jhengyangrui/paper-of-TTU
/scene.cpp
C++
cpp
7,680
no_license
#include "bsp.h" extern BspNode CreateNode (const Vec2&, const Vec2&); extern void AddToRight (BspNode, BspNode); extern void AddToLeft (BspNode, BspNode); // this file returns ... vector <LOOP> loops; // test scene 1: triangle (concave) BspNode BuildTree1() { Vec2 v[3]; int npoints = 3; // loops construction ...
2fe8a67807cffa0a2138c1e553f46253488c82bb
401959a23e198c3a61b0a7a5222f50aa09713c42
Manu343726/Sprout
/sprout/string/io.hpp
C++
hpp
2,639
permissive
/*============================================================================= Copyright (c) 2011-2015 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx...
104845940f625b4ae94501c849f890e3549f2336
256dce44f033568c88ca81b3c2283e1248b77cb5
qisimple/hdv2v
/hd-scenario.cc
C++
cc
981
no_license
#include "ns3/core-module.h" #include "ns3/hd-rsu-scenario.h" #include <string> using namespace ns3; int main (int argc, char *argv[]) { double simTime = 0.1; // Seconds std::string traceFile = "hello.mobility.tcl"; std::string parFile = "hello.par.tcl"; double sendProbility = 0.1; unsigned int mode = 0; ...
df56031bf56148814df892e2fcda8d53032f6f15
3922d9f8bb489df0e1b77b517f81cab591a74f06
semisvetikp/CPP-modules
/CPP1/ex05/Brain.hpp
C++
hpp
214
no_license
#ifndef BRAIN_H #define BRAIN_H #include <iostream> #include <string> class Brain { private: std::string _name; std::string _sex; int _age; public: Brain(); const Brain *identify() const; }; #endif
bcd772ea5cb6269f26232e70257d46e558dc73fe
dad560172a7b822b681b79e11f9cde08ff23610f
green-fox-academy/znemeth
/Week_02/weekend/function_to_center/main.cpp
C++
cpp
3,273
no_license
#include <iostream> #include <SDL.h> //Screen dimension constants const int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = 480; //Draws geometry on the canvas void draw(); //Starts up SDL and creates window bool init(); //Frees media and shuts down SDL void close(); //The window we'll be rendering to SDL_Window* gW...
43ece6266879506211d6f399098818b0be9309a7
a76e86874ca202fc2ae50ef7143c019b9f499f46
SSevenTwo/AzulBoardGame
/GameEngine/GameEngineCallback.cpp
C++
cpp
12,490
no_license
#include "GameEngineCallback.h" GameEngineCallback::GameEngineCallback() { } GameEngineCallback::~GameEngineCallback() { } void GameEngineCallback::playerBoardUpdate(std::vector<std::shared_ptr<Player>> players, int noOfPlayers, bool sixBySix, bool greyMode) { std::string outputString = ""; playerBo...
b1176368c132f92bcdaa3f2f9ee1eebd3b92d782
8e7c6c2c6bfb5fa245cf6f2025f713efdf5decc2
TravisPatriarca/Weather-Data-CPLUS
/Codeblocks Project/timeTest/main.cpp
C++
cpp
809
no_license
#include "../time.h" #include <iostream> int main() { time t; //t.setMinutes("2"); //t.setHours("40"); //std::cout << t.getMinutes() << "\n"; //std::cout << t.getHours() << "\n"; //compiler error //t.setMinutes(); //t.setHours(); //std::cout << t.getMinutes() << "\n"; //std::co...
43ca5be8b5a30fd0ec88fa903fc799e86f3ed951
afb1fbb94b120013a864884b90e3fb7853009674
ashutosh0gupta/llvm_bmc
/examples/kbound/pldi19-benchmark/07-sla.cpp
C++
cpp
1,519
no_license
void dmbsy(); long int lock=0; long int obj=0; long int ptr= 0; long int result=0; void thread0(){ long int n = lock; long int t1,t2,t3,t4; long int mask,b,t=0; ptr = 0; dmbsy(); for(int i=0 ; i < 16 ; i++){ mask = 1 << i; b = n & mask; if (b == ...
c989a2e8d8a71bd1573e18c409138382edea7e0e
eda97c696b993bcad98753ac7e23bab42134c15d
PuceBaboon/ESP_Zork
/src/control.cpp
C++
cpp
7,035
permissive
/* Jzip V2.1 Infocom/Inform Zcode Format Interpreter * -------------------------------------------------------------------- * Copyright (c) 2000 John D. Holder. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
feb4101fcde88eaa5f05ed4a95a78e9a2f578e9d
59f0ff6b665d9f5a99ccc0b1dd56b68d2ca0c43c
loongarch64/afnix
/src/mod/itu/shl/AsnUtfs.cpp
C++
cpp
6,872
no_license
// --------------------------------------------------------------------------- // - AsnUtfs.cpp - // - afnix:itu module - asn utf string node class implementation - // --------------------------------------------------------------------------- // -...
d903107a9128eae358af8928aae1579556596b79
3c937f5c141cc0692f5b59908f8277ec303068ed
ALSchwalm/cppEvolve
/examples/primes.cpp
C++
cpp
2,557
permissive
/* * This file serves as an example for the useage of the Tree genome * and TreeGA. The algorithm attemps to grow a function which will * yield the most primes on consecutive integer input. */ #include "cppEvolve/cppEvolve.hpp" #include "cppEvolve/TreeGA.hpp" using namespace evolve; //List some known primes cons...
2f7ce212f5e8d44196626ac753195ca2a34bbc2b
df45f076909fddece28522c32fcc1b3ee35574d3
ondrik/gaston
/src/app/DecisionProcedure/containers/SymbolicCache.hh
C++
hh
9,980
no_license
/***************************************************************************** * gaston - We pay homage to Gaston, an Africa-born brown fur seal who * escaped the Prague Zoo during the floods in 2002 and made a heroic * journey for freedom of over 300km all the way to Dresden. There he * was caught an...
034e36c418988caf5eee0b57c4facee7367b5f17
9ed71328bc1b72dbd888ce7d122b98759bbd8859
rtrembecky/LLVMInstrumentation
/src/instr_log.cpp
C++
cpp
566
no_license
#include "../lib/instr_log.hpp" #include <fstream> #include <string> using namespace std; Logger::Logger (string path) { file = path; ofstream ofs; ofs.open(path, std::ofstream::out | std::ofstream::trunc); ofs.close(); } void Logger::write_error(const string &text) { std::ofstream log_file( file...
bd715c1754321476407799d01a6200433d95754a
bc777a81ae65ffbab5eba8213a2cbb5a8b9dc957
20k/net_code_official_client
/custom_profile.hpp
C++
hpp
502
no_license
#ifndef CUSTOM_PROFILE_HPP_INCLUDED #define CUSTOM_PROFILE_HPP_INCLUDED #include <thread> namespace profiling { void disable_thread() __attribute__((no_instrument_function)); void disable_thread(std::thread::id id) __attribute__((no_instrument_function)); std::string format_profiling_data() __attribute__...
e4858b4e9692356304aaeafd189c99026b662477
523ca7b4e9359f8164a0dc8f8fae8af20ed7baf3
spielhuus/avcpp
/av/discid/base64.cpp
C++
cpp
4,628
permissive
/* -------------------------------------------------------------------------- MusicBrainz -- The Internet music metadatabase Copyright (C) 2000 Robert Kaye This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by t...
19e2d51263e74b6198a7a35eff01dbd8670a9ee3
e0475dcb4fc2d8b982de496def27b21370583a2c
kevinchenbin/retail
/sysadmin/Addstorge.cpp
C++
cpp
5,543
no_license
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "Addstorge.h" #include "Addsyslog.h" #include "global.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma link "RzPanel" #pragma link...
ff43144997d80d6822e954ed0c6f4a24ed84ebea
b4be81c52e122172f240f3edb0e05e58ba9ff8e3
Rikharthu/Y-Plane-2017
/Y-Plane 2017/LuftwaffeDatabase.cpp
C++
cpp
4,104
no_license
#include "pch.h" #include "LuftwaffeDatabase.h" #include <exception> #include <string> #include <cstdio> using namespace std; bool LuftwaffeDatabase::ready = false; vector<Plane*> *LuftwaffeDatabase::data; LuftwaffeDatabase::LuftwaffeDatabase() { } LuftwaffeDatabase::~LuftwaffeDatabase() { sqlite3_close(database);...
b878ec6d40425080c7a03201cc8fc97873c869ee
616a8d90a553ca889abad8fdbca6941126306f2d
JamesCondon22/FYP
/SteeringAlgorithms/Release/imgui/imgui-SFML.cpp
C++
cpp
26,401
permissive
#include "imgui-SFML.h" //#include "imgui.h" #include <../imgui/imgui.h> #include <SFML/OpenGL.hpp> #include <SFML/Graphics/Color.hpp> #include <SFML/Graphics/RenderTarget.hpp> #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/Sprite.hpp> #include <SFML/Graphics/Texture.hpp> #include <SFML/Window/Event....
deeb2b1710b0df8603a8fefc6afc31673a87f358
5a7d3b3dd49275edd5242c30b38bb4f505042816
zylo117/tensorflow-gpu-macosx
/tensorflow/tensorflow/stream_executor/host/host_stream.cc
C++
cc
1,640
permissive
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
ea1af4628ecee70af907f279c09c22f5ae099afe
e1e967a2cd1216288fa8b14216501a1a658bf004
weyoume/wenode
/libraries/protocol/node_operations.cpp
C++
cpp
21,644
permissive
#include <node/protocol/node_operations.hpp> #include <fc/io/json.hpp> #include <locale> namespace node { namespace protocol { bool inline is_asset_type( asset asset, asset_symbol_type symbol ) { return asset.symbol == symbol; } void accountCreate_operation::validate() const { validate_ac...
e14b501f4075b32c79cfd9a7154c8418a649d21c
91ac16cd453cc2a367121eadfeff2a116d354100
yangshadip/YAP-SELF
/PluginSDK/BasicRecon/Fft1D.cpp
C++
cpp
5,059
permissive
#include "Fft1D.h" #include "Client/DataHelper.h" #include "Implement/DataObject.h" #include "Implement/LogUserImpl.h" #include <string.h> #pragma comment(lib, "libfftw3-3.lib") #pragma comment(lib, "libfftw3f-3.lib") #pragma comment(lib, "libfftw3l-3.lib") using namespace std; using namespace Yap; Fft1D::Fft1D() ...
ba87f111222244999fc289faf686af804d9a5548
2306c14436add2eb7842681c08986e9295852ea1
Pruthvi-Sanghavi/Human-Detection-Module
/app/cascade.cpp
C++
cpp
1,991
permissive
/** * @file cascade.cpp * @brief load cascade model and detect object in an image by class method definition * @author Varun Asthana * @author Pruthvikumar Sanghavi * * Copyright [2019] Group14 * * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software...
763d3fcb063aab66de5917a57b23d2e5460d1477
2a1918b741d4e804b1be7feabf08be3e18f07098
islamazhar/L3D
/src/turtle.cpp
C++
cpp
5,311
no_license
#include <iostream> #include "turtle.h" Turtle::Turtle() :position(0,0,0) ,direction(0,1,0) //default direction is towards Y, stomach is faced -Z ,right(1,0,0) ,thickness(1) ,reduction(.95) { this->fp = fopen("leaf.txt", "w"); } Turtle::~Turtle() { //fclose(this->fp); } void Turtle::setReduction(float param) ...
21c92b8647fc0af6a8739265bc628af34d69fea3
b32c9d6e552a24aa2a01a3cb038698b3864abb2d
YiqinXiong/CSP_Practice
/202006/2newfix.cpp
C++
cpp
915
permissive
#include <iostream> #include <cstdio> #include <vector> using namespace std; typedef long long ll; typedef vector<pair<int, int>> myvec; int main() { int n, a, b; myvec u, v; cin >> n >> a >> b; for (int i = 0; i < a; i++) { int index, value; scanf("%d %d",&index,&value); ...
dab838cc33ca9d32e9cd53b8648cc8f34f37560b
9ea8c55ae7661d851e6c6dbe40696f63a1d7a841
guipingxie1/new_debugger
/all_tests/debugger_test_parse_tree.cpp
C++
cpp
684
no_license
/** * @file: debugger_test_parse_tree.cpp * @author: Guiping Xie * * Test file for class ParseTree * * @description: UIUC - CS242 (Programming Studio) Final Project * @date: Fall 2016 * */ #include <iostream> #include "../compile_file.h" #include "../parse_tree.h" int main(int argc, char* argv[])...
fc2f6b4e0017f04ed93ec578f132dd6f16e89365
7eb191a4d3f666d85f00a3b2d07965b9b68a2323
mirzaei-ce/linux-cocabit
/src/compat/strnlen.cpp
C++
cpp
512
permissive
// Copyright (c) 2009-2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/cocabit-config.h" #endif #include <cstring> #if HAVE_DECL_STRNLEN == 0 size_t s...
3c6b74067836c1b81966abaec566ba72e837e6a3
e3171fdf6c714e8d97a351492d29de2560a00f1c
EchoPixel-Inc/VTK
/Filters/FlowPaths/vtkTemporalStreamTracer.cxx
C++
cxx
50,091
permissive
/*========================================================================= Program: Visualization Toolkit Module: vtkTemporalStreamTracer.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is dist...
6080baad4b997822214ac8908a70a19a41129051
29df729abbd59dc0e3da6a9990ed20dbf8cb63ed
Valeria-Bravo/lp-2019
/Basic/cod_03.cpp
C++
cpp
308
no_license
#include <iostream> using namespace std; int main ( ) { int length=20; int width=40; int area=length*width; length=99; { int perimeter=(length+width)*2; } { int perimeter=length*2+width*2; } { int perimeter=length+width/ 2; } }
7d43b413880d8cfb13b5f334f4da37b40ceff3e4
5fe2c46180fd4735d3ed1215db4e7a105c6f7185
fossabot/RetroPlug
/src/retroplug/audio/AudioController.cpp
C++
cpp
5,460
permissive
#include "AudioController.h" void AudioController::setNode(Node* node) { _node = node; node->getAllocator()->reserveChunks(160 * 144 * 4, 16); // Video buffers _processingContext.setNode(node); node->on<calls::SwapLuaContext>([&](const AudioLuaContextPtr& ctx, AudioLuaContextPtr& other) { std::string component...
572c4a139298f7c13fc7ee7eb8ff6571f9dbac10
71f8700ba10f88a8ec5cbe606bc1ee14f4e99f4a
vvasco/gazebo
/gazebo/rendering/GpuLaser_TEST.cc
C++
cc
2,696
permissive
/* * Copyright (C) 2012 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
63d100d6a008995b3373c6ce923f006a502ea4fb
8d03f4fbb83c15940e4887d4211a4ceef8b22760
SINHASantos/tensorflow
/tensorflow/compiler/xla/mlir/backends/gpu2/conversion/convert_compiled_ops.cc
C++
cc
35,758
permissive
/* Copyright 2023 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
51479a4cd0b8f5da40eb97dc7d1537908bb9cc24
443758ef80f68138f16812f5444776d63f3a47ce
1217720084/steps
/code/source/device/hvdc.cpp
C++
cpp
87,269
permissive
#include "header/device/hvdc.h" #include "header/basic/utility.h" #include "header/basic/constants.h" #include "header/STEPS.h" #include "header/model/hvdc_model/hvdc_models.h" #include <istream> #include <iostream> #include <cstdio> using namespace std; HVDC::HVDC(STEPS& toolkit) : DEVICE(toolkit) { ...
dc8bb8afaad079d4f8bbf8a66ab9817ee2f20c6a
0befa336ca2ca7d4bc956533b4f682cee5953a35
karlgluck/Evidyon
/Source/common/DirectCraft/src/dcindex16.cpp
C++
cpp
3,111
permissive
//---------------------------------------------------------------------------// // This file is part of Evidyon, a 3d multiplayer online role-playing game // // Copyright © 2001 - 2022 Karl Gluck // // // ...
39e4bc6eed7efdd8637bafb0fa0fdd169b2aee72
48bf8662d7a13f8baaadc4e9b544a008bc9ef2c8
cms-nanoAOD/cmssw
/Calibration/HcalAlCaRecoProducers/plugins/AlCaIsolatedBunchFilter.cc
C++
cc
8,775
permissive
// system include files #include <atomic> #include <memory> #include <cmath> #include <iostream> #include <sstream> #include <fstream> // user include files #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/stream/EDFilter.h" #include "FWCore/Framework/interface/Event.h" #includ...
4909ca816f96cfeb7ca7e6236609130f63bc5294
9cbbb72bca1f6235765c061f702f723ca5384c7c
VB6Hobbyst7/GISCAD
/Giscad2016/AECSmartPole/AECSmartPole/LightDlg.cpp
C++
cpp
108,329
no_license
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Project name : IE Toolbox // Client name : AEC Systems // File name : LightDlg.cpp // Created : 26th April 2007 // Descript...
33d31e9949a485211b1d504ec39eea68fef45bb6
8bb71592e4130cc930467716f537d978504a3bf3
RG19120/zadace-oop-2020
/zadaca3/z6/my.hpp
C++
hpp
1,025
no_license
#pragma once #include <functional> #include <iterator> namespace my { template <typename Iter, typename lambda> void sort(Iter begin, Iter end, lambda f) { if (begin == end) return; bool swapped; Iter last_swap = --end; Iter it = begin; do { swapped = false; for (; it != last_swap; ++it) { ...
ac90e0a91c47851c78e486961209242beecb910d
ffa6c152a78fc97a599a0d19c00efb67f407d640
huanghai123456/phosphor-power
/phosphor-regulators/test/id_map_tests.cpp
C++
cpp
5,718
permissive
/** * Copyright © 2019 IBM 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
5c0d72aeb926368a9348ee2297ea9bfa89415a75
163da91c18bbc851081909f970be0ee8275cfd04
abhashksingh/practice-programs
/googlecodejampractice/tokenex.cpp
C++
cpp
1,091
no_license
/* * tokenex.cpp * * Copyright 2013 Abhash <abhash@iitj.ac.in> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later versio...
80bee92155fc2f76717bc93998546380ea9b110e
73b136fb6bc5010ca2238287e496f3a1ded100e6
Spectral-Goose/csci-332-fall-2019
/task1/server.cpp
C++
cpp
1,023
no_license
#include <iostream> #include <sys/socket.h> #include <netinet/in.h> #include <string.h> #include <arpa/inet.h> using namespace std; int main() { int udpSocket, nBytes; char buffer[1024]; struct sockaddr_in ServerAddr, ClientAddr; char *ClientIP; udpSocket = socket(PF_INET, SOCK_DGRAM, 0); S...
4b712921ef1964e8adda254403ce55905503e6f5
2332c473d4ccd0a98cdc45909fd49e1d64d7f9d5
liuyang9604/DAMPE_BT
/Calibration/Bgo/src/DmpCalBgoDataManager.cc
C++
cc
2,249
no_license
/* * $Id: DmpCalBgoDataManager.cc, 2014-04-04 21:28:38 chi $ * Author(s): * Chi WANG (chiwang@mail.ustc.edu.cn) 04/04/2014 */ #include "TFile.h" #include "TTree.h" #include "TClonesArray.h" #include "DmpCalBgoDataManager.h" #include "DmpCalBgoMSD.h" #include "DmpDetectorBgo.h" //-----------------------------...
d61376b2cc8089bec1d83173e3c2242ad33b2ad4
2c32b9644595a5839bba080902e3a849823b7d9c
go2hero/chromium
/chrome/browser/chromeos/arc/print_spooler/print_session_impl.cc
C++
cc
3,090
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. #include "chrome/browser/chromeos/arc/print_spooler/print_session_impl.h" #include <utility> #include "ash/public/cpp/arc_custom_tab.h" #include "base/b...
25cda23dd8f3781462af7eba7f94b7345b08272d
3e058ba6de16937fb36e9170d077d891935bc9a6
anujjain5699/Coding-Ninjas-Competitive-1
/3_stl/11_permut_pallin.cpp
C++
cpp
1,543
permissive
// https://www.codechef.com/problems/PERMPAL #include<bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ string s; cin>>s; if(s.length()==0) { cout<<"-1"<<endl; continue; } if(s.length()==1) { cout...
b94ff01a5ed7aa63bee8831a86b0a03721666959
a0bcf0ab1d23e866bd8e3f0959350b3195fdcfa2
sbenejam/qlcplus
/engine/test/doc/doc_test.cpp
C++
cpp
37,478
permissive
/* Q Light Controller Plus - Unit test doc_test.cpp Copyright (c) Heikki Junnila Massimo Callegari 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.apac...
9a27d5c2e72827bcea160b4c3aa73bcc1bbc9b40
b1e979be7b2dd6cc9b6bbfb4fac2c8fc6d582cc2
tamnk74/C-CplusplusSamples
/phuongphaptinh/phuongtrinh/tieptuyen.cpp
C++
cpp
2,449
no_license
#include <stdio.h> #include <conio.h> #include <stdlib.h> #include <math.h> #include <ctype.h> //Nhap mang he so void Finput(int heso[], int &n) { FILE *f; f = fopen("dulieutt.txt", "r"); fscanf(f, "%d", &n); for (int i = 0; i <= n; i++) fscanf(f, "%d", &heso[i]); } void Nhap(int heso[], int &...
3689f71df723c4415c7d96a354cd0428eb7ba35f
8a3d3f6819de610f88d62ce160c443e9cfa8e896
lexingsen/Data-Structure
/Algorithm/Greedy/diaodu.cc
C++
cc
891
no_license
/* * @Description: 多机调度问题 * @Language: C++ * @Author: lexingsen * @Date: 2020-10-26 07:41:18 */ #include <bits/stdc++.h> using namespace std; const int N=10010; int speed[N];// 作业花费时间 int mintime[N]; // 存放 作业完成的时间 bool cmp(const int& x, const int& y) {return x>y;} int main() { freopen("in.tx...
8d5daa5a8793ad51fdf9e4da2c5fead5a88e1e7d
3e564dc21fafa4f89862961b790520811b5cc78f
asraa/cocoabots
/src/sensors/shortIR_test.cpp
C++
cpp
247
permissive
#include "shortIR.h" #include <csignal> #include <iostream> #include <sys/time.h> #include "mraa.hpp" int runShortIR(){ int reading; usleep(50000.0); shortIR aShortIR(2); reading = aShortIR.timing(); std::cout << reading << std::endl; }
5e11bc906c3029caf4290039035f81423e553ef7
14c0ecc9d3789b0bf86c48dcef2942ac30c2b6a8
lambdaxymox/swift
/lib/SILGen/SILGenDistributed.cpp
C++
cpp
21,021
permissive
//===--- SILGenDistributed.cpp - SILGen for distributed -------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2020 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
b1f11d060adf2b9c349ad3b9d9b471b8eb421c8e
1075425a6559a3c4035db18f1b74fd417502d8ba
robinli90/ERP
/InOut/ErrorDlg.cpp
C++
cpp
18,133
no_license
// ErrorDlg.cpp : implementation file // #include "stdafx.h" #include "inout.h" #include "InOutDlg.h" #include "ErrorDlg.h" #include <sstream> #include "Trace.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////...
4f04584dac4c2b9b4ce313e9e4a354f543e5d533
a130a8cbe541f6d33667a209e0392702c40397db
antorkhan/OJ_Solution
/UVA/uva_10176 _ocean_deep_make_it_shallow.cpp
C++
cpp
1,322
no_license
#include<bits/stdc++.h> using namespace std; long long big_mod(int b, int p, int m) { if( p==0) return 1; else if(p&1) { return ((b%m)*(big_mod(b, p-1, m)))%m; } else { return (big_mod(b,p/2,m))*(big_mod(b,p/2,m))%m; } } int main() { // freopen("input.txt","r",s...
b719d47bb89b487e1357260ecc1566f0e2c69ef5
49988fc9e10dc46a21d31ff3d5d166ef2188bdbc
Exr0nProjects/learn_cpp
/problems/contests/dated/2020_05_15/x2_uva1160/main_2_uva1160.cpp
C++
cpp
1,429
no_license
/* TASK: 2_uva1160 LANG: C++14 */ /* * Problem 2_uva1160 (contests/dated/2020_05_15/2_uva1160) * Create time: Mon 25 May 2020 @ 10:29 (PDT) * Accept time: [!meta:end!] * */ #include <iostream> #include <sstream> #include <cstdio> #include <tuple> #include <vector> #include <string> #include <cstring> #include <l...
d2bcbf27567eea57b49a08c6adb172b77f26d40c
969f1d70ae09884f97494c56cfe953770c353af0
showmic96/Online-Judge-Solution
/UVA/12032/11748151_AC_80ms_0kB.cpp
C++
cpp
910
no_license
// In the name of Allah the Most Merciful. #include<bits/stdc++.h> using namespace std; typedef long long ll; vector<ll>v; int n; bool possible(ll mid) { for(int i=0;i<n;i++){ if(v[i+1]-v[i]>mid)return false; if(v[i+1]-v[i]==mid)mid--; } return true; } int main(void) { int t , c ...
df0d080e898c742d66e320625180231fca3fe111
d8f60e67e1158459b2abe12d4daed22b5bbfcc8a
omar-sharif03/Competitive-Programming
/LIGHT OJ/BEGINNERS PROBLEM/1008 - Fibsieve`s Fantabulous Birthday.cpp
C++
cpp
776
no_license
#include<bits/stdc++.h> using namespace std; long long s,value,n; int main() { int t,cas=0; cin>>t; while(t--){ scanf("%lld",&s); long long i,r,c; n=ceil(sqrt(s)); value=(n-1)*(n-1); //cout<<n<<' '<<value<<endl; if(n%2==0){ if(s<=value+n){ ...
84021ba94e27918efbb64a5b07b75a52231be50b
e6a7ade791be53e34dbd4195cd05d326314f878b
optimux/sphlatch
/tools/h5part_tools/h5part2ascii.cpp
C++
cpp
3,362
no_license
#include <iostream> #include <sstream> #include <vector> //#define SPHLATCH_SINGLEPREC #include <omp.h> #define SPHLATCH_OPENMP #define SPHLATCH_HDF5 #define SPHLATCH_NONEIGH #include "typedefs.h" typedef sphlatch::fType fType; typedef sphlatch::cType cType; typedef sphlatch::vect3dT vect3dT; typedef sphla...
e0b423cda1bce2e22e3955322c9cae469c5b2ad8
6cd64001194060749c33a42ac766e60a0b3575fc
cenut/ecoin
/src/qt/widgets/greylay.cpp
C++
cpp
565
permissive
// Copyright (c) 2016-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <QResizeEvent> #include <QPropertyAnimation> #include <QPainter> #include <QPaintEvent> #include "qt/widgets/greyl...
ce74b1322f658d73e4c6f7d946bcbaca32bce2b7
9c669d7b2496a833f58d1c2c577548d375865344
cpi-llvm/clang
/lib/Serialization/ASTReaderStmt.cpp
C++
cpp
97,285
permissive
//===--- ASTReaderStmt.cpp - Stmt/Expr Deserialization ----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
55a432ec10ce0d957573045159f5b0dad6fdfe27
6f886949b3c306c2862a54bc2d5628235e0f529a
wangcy6/weekly
/KM/03code/book/Thinking-In-C-resource-master/Resource/C16/StackTemplateTest.cpp
C++
cpp
749
permissive
//: C16:StackTemplateTest.cpp // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt // Test simple stack template //{L} fibonacci #include "fibonacci.h" #include "StackTemplate.h" #include <iostream> #include <fstream> #include <strin...
2bf275f1dedf0fc3b86df7ea5c454279e4747d0e
06871b8d713bdccd5c307a04282e91792ecc2fb4
CutIce/kraken
/test/CFcoding/OthersQuestions/4326.cpp
C++
cpp
537
no_license
// // Created by hsh on 2020/7/30. // #include <iostream> #include <queue> #include <stack> #include <set> #include <tuple> #include <algorithm> #include <deque> #include <utility> using namespace std; int main(){ int n,m,k; cin>>n>>m>>k; vector<int> a(n); int tmpt,tmpc; vector<pair<int,int>> poli...
4c64c7eb4d48ed1b963fb3b74313b4856a9776f8
47215998bf6206bccf50bff9bb2cf0490cc8131e
skhurram/Karabiner
/src/core/kext/Classes/LastPressedPhysicalKey.hpp
C++
hpp
645
no_license
#ifndef LASTPRESSEDPHYSICALKEY_HPP #define LASTPRESSEDPHYSICALKEY_HPP #include "bridge.h" #include "IntervalChecker.hpp" namespace org_pqrs_Karabiner { class ParamsUnion; class LastPressedPhysicalKey { public: LastPressedPhysicalKey(void) : datatype_(BRIDGE_DATATYPE_NONE), value_(0) {} ...
e8f216a467e47afb290661a02fa1a9c0e072ded2
0ce9af7e6539a146b445aef78bbb7358aac73e7b
SketchUp/sketchup-ruby-debugger
/ThirdParty/include/boost/math/special_functions/detail/bessel_jy_zero.hpp
C++
hpp
24,967
permissive
// Copyright (c) 2013 Christopher Kormanyos // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // This work is based on an earlier work: // "Algorithm 910: A Portable C++ Multi...
66a12befc597c79c2d47fdb70835034a9d58c5c2
363c3d9cf350e434ecfe94a1ceb824cc56e0208b
AaronNGray/GenomeWorkbench
/src/objtools/snputil/snp_bitfield_factory.cpp
C++
cpp
5,648
permissive
/* $Id: snp_bitfield_factory.cpp 519794 2016-11-17 23:39:13Z rudnev $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Gov...
1dcd8d559011d967f0b48741da27f0521aba97e9
7512f83d6c2978af3e7eb2e179573365ebc53c77
LindaNayeli104/LearningCPlusPlus
/Polimorfismo.cpp
C++
cpp
1,236
no_license
#include <iostream> using namespace std; class Mage{ private: public: Mage(int basePower, int baseHp){ power = basePower; hp = baseHp; } float damage(){ return power; } void getDamage(int value){ hp -= val...
8eca5a387245acccafa11d9d2aff0c8b4bd39c70
04d6bbdf95c81aee2d29c9a3f092013451a12353
visualcortex/Foundation
/src/Cryptography/Library/MD5.cpp
C++
cpp
13,009
no_license
/****************************************************************************** * @file * @author Ivan Makarov <im.visualcortex@gmail.com> * * @section LICENSE * * Copyright (C) 2012, Ivan Makarov * Licensed under the MIT license. * ********************************************************************...
969f16c4d095c48f2f2967cadd23fe4f84522411
0825e8260a24e79e6bc9c4a80c8f2fb464b14aaf
huqiucheng5/Android4.0.3
/Android4.0/device/samsung/exynos4/libhdmi/SecHdmi/SecHdmi.cpp
C++
cpp
61,347
no_license
/* * Copyright@ Samsung Electronics Co. LTD * * 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 ...
7fc7e9e6b691bc0a5772b8f9c00c983b54058cca
7a4f0a94505d5d89a0fb43965a2344b902c00df1
VictorShakhov/Red
/class_templates/paginator.cpp
C++
cpp
3,709
no_license
#include "test_runner.h" #include <numeric> #include <iostream> #include <vector> #include <string> #include <iterator> using namespace std; template <typename Iterator> class IteratorRange { private: Iterator first, last; public: IteratorRange<Iterator>(Iterator f, Iterator l) : first(f), last(l) {} Iterator...
a2c5e43f4997bba0377b62e968202c6b3b985fe0
4016aee8ddca02ccea3e0b4312bb4b4fce2dbc45
benoit-leveau/Ubik
/src/signal.cpp
C++
cpp
2,141
permissive
/* *********************************************************** * © Benoit Leveau, inc. All rights reserved. * *********************************************************** */ #include <termios.h> #include <unistd.h> #include <assert.h> #include <string.h> #include <iostream> #include <signal.h> #include "signal.hpp" ...
c790da1acfc6a53b72ad5231b5da8bb06a5ec0fd
590990b3f39453606fac585fef1376f391c6a311
DamonOuyang/gitVersionLib
/test_code/CustomSlider-master/bsrWidget/bsrwidget.cpp
C++
cpp
3,526
no_license
#include "bsrwidget.h" #include <QDebug> #include <QPainterPath> #include <QPainter> #include <QStylePainter> #include <QStyleOptionSlider> #include <QApplication> #include <QVBoxLayout> #include <QHBoxLayout> #include <QLabel> SliderButton::SliderButton(QWidget *parent) : QSlider(parent) { setOrientation(Qt::Ori...
ca983a2718dd1df8f3c770c0e786691208b3f0d5
4d13c0394aab07cb594fe0378b82d4c8041d4ade
Unknow-man/mfc-4
/Ultimate Toolbox/samples/gui/ItemTips/MyListCtrl.cpp
C++
cpp
2,931
no_license
// MyListCtrl.cpp : implementation file // #include "stdafx.h" #include "ItemTips.h" #include "MyListCtrl.h" #include "DerivedDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif //////////////////////////////////////////////////////////////////////////...
46b2b5112dfd12536b07aefc0ac355da5f652023
9f8c8bd54c3f020ceed37cc9642786feee39bf9f
tabochans/templateOBVH
/templateOBVH/example.cpp
C++
cpp
5,245
no_license
#include"Intersect.h" #include"OBVH.h" #include"tiny_obj_loader.h" #include"stb_image_write.h" #include<iostream> using namespace Primitive; using namespace mSec; using namespace PTUtility; bool Load(const char* fileName, std::vector<Polygon>& Facets){ std::vector<tinyobj::shape_t> shapes; std::vector...