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
cb0c9f87929c4adcbcd3b3a38333bc05474632ce
4ba581591b31e70b5f822fe1833a42338850af06
nfagan/mtype
/src/mt/keyword.hpp
C++
hpp
1,550
permissive
#pragma once #include <string_view> namespace mt { bool is_end_terminated(std::string_view kw); namespace matlab { // Keywords in a classdef context. const char** classdef_keywords(int* count); // Keywords in any context. const char** keywords(int* count); // Names of operator methods; p...
d2054e63a1faecb723ca3334fad7b7e86de9920c
cb1cd6ef51273bd6d0a1b060ba545cb98665c8c5
giranath/terratech_demo
/src/client/sdl/istream_rwops.cpp
C++
cpp
3,182
no_license
#include "istream_rwops.hpp" #include <new> #include <SDL_rwops.h> namespace sdl { namespace internal { struct fstream_context { std::fstream stream; fstream_context(std::fstream&& stream) : stream{std::move(stream)} { } static Sint64 size(SDL_RWops* ops) { ...
f93dcd5543ef24ada87d6b99f04aee8701c560ea
369e0081f5a67826869b6a82dacc18d7cd051ff2
DalavanCloud/WebKitForWayland
/Source/WebKit2/UIProcess/Launcher/wpe/ProcessLauncherWPE.cpp
C++
cpp
5,459
no_license
/* * Copyright (C) 2010 Apple Inc. All rights reserved. * Portions Copyright (c) 2010 Motorola Mobility, Inc. 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...
7f8c765c3a984833b4d1a64e04832099433c52b4
852fb77a855a0d382476fa7d54a07e1f30a646f4
eliasreid/rad-shooter
/src/util/subject.cpp
C++
cpp
1,049
no_license
#include <iostream> #include <algorithm> #include "subject.h" void Subject::AddObserver(std::shared_ptr<Observer> new_observer){ if(std::find(observers_.begin(), observers_.end(), new_observer) == observers_.end()){ //reached end, so observer is not in list observers_.push_back(new_observer); }else{ st...
f4cb4825065ee72d71dfeba99a8ff801808d965f
2e46b690695708bb2b0b12c3b791e6e513b62245
olimpiadi-informatica/oii
/2018/territoriali/scommessa/sol/edoardo.cpp
C++
cpp
787
no_license
#include <iostream> #include <fstream> #include <vector> using namespace std; const int MAX_N = 150; int nums[MAX_N]; int parity[MAX_N]; // unibili finendo ad i-1 se prefix[i] == 0 int prefix[MAX_N]; // unibili partendo da i+1 se suffix[i] == 0 int suffix[MAX_N]; int main() { ifstream in("input.txt"); ofstream ou...
1b9f7e50c6ab5c4d541bdd3e7dbde602f3532c7f
d5a7b0e580591a7cfd2d9a53c76ef1f512a6aba1
encelo/pmTracer
/src/EnvironmentLight.cpp
C++
cpp
1,124
permissive
#include "EnvironmentLight.h" #include "Emissive.h" #include "ShadeRecord.h" #include "World.h" #include "Geometry.h" #include "MultiJittered.h" namespace pm { EnvironmentLight::EnvironmentLight(Emissive *material) : Light(Type::ENVIRONMENT), u_(1.0f, 0.0f, 0.0f), v_(0.0f, 1.0f, 0.0f), w_(0.0f, 0.0f, 1.0f),...
243e2c5b25cec30b582a7e48439055efb7b50a3e
77c22111e6a5f015f3791f51b69360e1d74dc50c
bareya/hdcycles
/plugin/hdCycles/points.cpp
C++
cpp
29,890
permissive
// Copyright 2020 Tangent Animation // // 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...
02dbeb872018932b8c4419c7144b42a20db8afc5
8e38c44ac2474fc1edd9731e33cc9d48130eb0c5
Akash671/LeetCode
/Easy/roman_to_int.cpp
C++
cpp
1,202
permissive
// Program to convert Roman // Numerals to Numbers #include <bits/stdc++.h> using namespace std; // This function returns value // of a Roman symbol int value(char r) { if (r == 'I') return 1; if (r == 'V') return 5; if (r == 'X') return 10; if (r == 'L') return 50; if (r == 'C') return 100; if (r == '...
3851aa6979430d7e1f4343183d17dce9d7783f67
eb9686ad922ca36cddc116cced55e5141cfa6e63
oliback/WWWWWW
/src/mini_map.cpp
C++
cpp
4,087
no_license
#include "mini_map.h" MiniMap::MiniMap(int x_block_count, int y_block_count, Map* map) { this->x_block_count = x_block_count; this->y_block_count = y_block_count; this->zone_block_count = x_block_count * y_block_count; zone_blocks = new Block*[zone_block_count]; this->map = NULL; this->map = ma...
8ab1224546227237acd9f155f0b9ed27792e32dc
3f22197c7209bcd2be01beb6e05ea5afa71dcebf
hkoketsu/leetcode
/kohei_arai_60/14_pow.cpp
C++
cpp
306
no_license
class Solution { public: double myPow(double x, int n) { if (!n) return 1; long absN = abs((long)n); double ans = 1; while(absN>0) { if (absN&1 == 1) ans *= x; absN >>= 1; x *= x; } return n > 0 ? ans : 1/ans; } };
5cee5e19bd21c7ffd1cff0cb9efdc308db36584a
1b6bdea57cdc8f4b229f616e46fb69f8f706f7e9
NoraXie/LeetCode_Archiver
/LeetCode/cpp/1048.cpp
C++
cpp
1,210
permissive
class Solution { public: int longestStrChain(vector<string> &words) { unordered_map<int, unordered_set<string>> dict; unordered_map<string, int> dp; int min_len = INT_MAX, max_len = 0, res = 1, temp = 1, n = words.size(); for (auto &word:words) { dp[word] = 1; ...
da98eede3acbdd36463294812e4a4abaa79d2287
b61456be552513c11333a29ce90b40d4f7c8e31c
Opticalp/instrumentall
/src/modules/extern/PythonModule.cpp
C++
cpp
3,834
permissive
/** * @file src/modules/extern/PythonModule.cpp * @date Feb. 2017 * @author PhRG - opticalp.fr */ /* Copyright (c) 2017 Ph. Renaud-Goud / Opticalp 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 S...
de0540cfa2c8ec54abdaf5a6e0a0cc62efea28c6
4333e873124cc4cb98848fa10189f354dd9dcfed
ykoh42/CPP-Modules
/Module 04/ex03/AMateria.hpp
C++
hpp
570
no_license
#ifndef AMATERIA_HPP # define AMATERIA_HPP #include <iostream> class AMateria; class ICharacter; #include "ICharacter.hpp" class AMateria { public: AMateria(const std::string& type); AMateria(const AMateria& other); virtual ~AMateria(void); AMateria& operator=(const AMateria& other); const std::string& ge...
c4704210e9a3cb2b835ed3fcd6451cfc7181b3f6
2c6aaef941a062cfab990a4d3033161b6490f78c
sundsx/RevBayes
/src/core/math/RandomNumberGenerator.cpp
C++
cpp
2,265
no_license
/** * @file * This file contains the implementation of RandomNumberGenerator, which is * used to generate uniform(0,1) random variables. * * @brief Declaration of RandomNumberGenerator * * (c) Copyright 2009- * @date Last modified: $Date$ * @author The RevBayes Development Core Team * @license GPL version 3 ...
a3ce64707bbedb5d35307af5188043ac019f7219
44ed1db2a1e0c70fd1ab3bf778e4e03481c5b0cd
assarbad/lsads
/lsads.cpp
C++
cpp
3,082
permissive
/////////////////////////////////////////////////////////////////////////////// /// /// Written 2010, Oliver Schneider (assarbad.net) - PUBLIC DOMAIN/CC0 /// /// Original filename: lsads.cpp /// Project : lads /// Date of creation : 2010-01-26 /// Author(s) : Oliver Schneider /// /// Purpose ...
a678e4b07e8581be74e38c1b0741f6b3b9990c5b
64d481005119430916d4ee769ac8abd4d79aa679
Aplikacjacpp/Drzewo_genealogiczne
/Drzewo_genealogiczne/Main.cpp
C++
cpp
8,144
no_license
#include <iostream> #include <Windows.h> #include "Data\Databases\tree.h" #include "Data\Interface\aplication_txt.h" #include "Data\Date\date.h" #include "Data\Relation\relation.h" #include "Data\Enginer\enginer.h" int main() { C_sl_personalys personal; C_enginer Engin; //C_data Data; C_day day; // definicja zm...
890944934b82fea92e83f98685f3d73f834eafe4
4f9bb2a96c771e3edd91e85174f00f7825e841ee
renato-grottesi/pokitto
/Platformer/Player.cpp
C++
cpp
7,584
permissive
#include "Player.hpp" #include "assets.h" // TODO: pass in the constructor static const uint8_t COLL_R = 0b00000001; // right static const uint8_t COLL_L = 0b00000010; // left static const uint8_t COLL_U = 0b00000100; // up static const uint8_t COLL_D = 0b00001000; // down static const uint8_t COLL_C = 0b0001000...
54a8b2d2618cc181bcc484f1063d3cb2bb43ddc1
978cf69fca7cd5413a767e2e311288793a217ded
ASBer68/TOM2
/SQLaction.cpp
C++
cpp
1,957
no_license
#pragma hdrstop #include "MainForm.h" #include "SQLaction.h" #pragma package(smart_init) //--------------------------------------------------------------------------- // произвольный SQL-запрос void __fastcall TMForm::ExecuteSQL(TObject*Sender) { AnsiString Query, Text; //-------------------------------------...
d843ce0c3828c6de08f3cbf9943d081e57fe1b23
1ddb1c9d7434a173e9a48167bc598a7d4642f0d9
madeeasyliteracy/chromium
/device/fido/attestation_object.cc
C++
cc
2,446
permissive
// Copyright 2017 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 "device/fido/attestation_object.h" #include <utility> #include "components/cbor/cbor_values.h" #include "components/cbor/cbor_writer.h" #includ...
227b465c053aa53231cfb2cc5e0671e01db19eed
e09245f36b59bfe6a34d10c0a6ef8be0c399c2d9
JetAr/ZNginx
/Book/3dlearn/Samples/Ogre/MoveDemo/NoxWindowListener.cpp
C++
cpp
1,083
no_license
#include "stdafx.h" #include "NoxWindowListener.h" NoxWindowListener::NoxWindowListener(Ogre::RenderWindow* window , OIS::InputManager* inputMgr , OIS::Mouse* mouse , OIS::Keyboard* keyboard) : mWindow(window) , mInputManager(inputMgr) , mMouse(mouse) , mKeyboard(keyboard) { } NoxWindowListener::~No...
aa48d197f31d24c1c0d0b78828711ae5ac0a65d0
4c4a58d30594b9f6eb013f082ad49328f03226a8
Tianyi94/EC602-Design_by_Software
/Homework_2/number_limits.cpp
C++
cpp
1,484
no_license
// Copyright 2017 J Carruthers jbc@bu.edu // Copyright 2017 Michael Graziano mjgrazia@bu.edu // Definitions: // Rs = factor by which float is better than int at representing small numbers // Rm = factor by which float is better than int at representing large numbers // Ri = factor by which int is better than float at r...
c98aa9859192fc72787134d9d3e93841fc99f327
35da927fe44090707edc7f61c8406a951478bc8a
cepreagaadrianvasile/cepreagaadrian_sortselection.zip
/CepreagaAdrian_heap.cpp
C++
cpp
517
no_license
#include<iostream> using namespace std; int n,v[100]; int read_data(){ cout<<"n=";cin>>n; for(int i=1;i<=n;i++){ cout<<"v["<<i<<"]=";cin>>v[i]; } } int make_heap(){ for(int i=2;i<=n;i++){ int element=v[i]; int Tata=i/2; int Fiul=i; while((Tata>=1)&&(v[Tata]<v[Fiul])){ swap(v[T...
45ca681e7875cc8953b4115666ebd9f0e9ce68f9
1d8721a1ed9cdf21cad92badb453c182ab2efc79
EnjoyHacking/ChromiumGStreamerBackend
/chrome/browser/predictors/predictor_database.cc
C++
cc
5,601
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 "chrome/browser/predictors/predictor_database.h" #include "base/bind.h" #include "base/files/file_path.h" #include "base/files/file_util.h" ...
888372511c9dfb5b9794156e4f6b4a5734b6aabb
2f4ac2f738622f60fa5470238fc5650b12c4004f
eighteight/Cinder-Utils
/TextureMask/SampleAnimated/src/AnimatedMaskApp.cpp
C++
cpp
1,987
no_license
#include "cinder/app/App.h" #include "cinder/app/RendererGl.h" #include "cinder/gl/gl.h" #include "cinder/gl/Texture.h" #include "MaskedTexture.h" using namespace ci; using namespace ci::app; class AnimatedMaskApp : public App { public: void setup(); void draw(); void mouseMove( MouseEvent event ); void ...
ea63285e683c98ea189224aabe089fcf99361e42
4a08a8acc2bcdf0fee8bcca7a272efae2674bbbd
mukeshjais/FAANG_coding_list
/Array/17/trapping_rain_water.cpp
C++
cpp
1,918
permissive
//In c++ //by goku_11 #include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = a; i < b; i++) #define FORD(i, a, b) for (int i = a; i >= b; --i) #define REP(i, n) FOR(i, 0, (int)n - 1) #define pb push_back #define mp make_pair #define MS0(x) memset(x, 0, sizeof(x)) #define MS1(x) memset(x, 1, s...
e6cd3ea250fdf6c190e31b998992b8fdbcef84ef
7c29df877a817366c238e95fef2aee4cbe1e78c4
android-build-team/art
/compiler/optimizing/bounds_check_elimination_test.cc
C++
cc
47,201
permissive
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
0a6ce21774b88319bff36adc9bacd3f9e1702a29
249f1efc0d3636268f0de840649e525e9bdeeb98
krunt/projects
/misccode/opengl/Application.cpp
C++
cpp
862
no_license
Application::Application() { m_lastTickTime = idLib::Milliseconds(); } int Application::ElapsedTickMs() const { int lastTickTime = m_lastTickTime; m_lastTickTime = idLib::Milliseconds(); return m_lastTickTime - lastTickTime; } void Application::OnKeyDown( KeyButtonKey k ) { switch ( k ) { ...
68accf79261e784ab3e35cb8262d1eb6ecbeb872
81f15909925f2f85f8f282d18fcb7343711b7cb0
mybitcoinbucks/bitcoinbuck
/src/qt/transactionview.cpp
C++
cpp
15,106
permissive
#include "transactionview.h" #include "transactionfilterproxy.h" #include "transactionrecord.h" #include "walletmodel.h" #include "addresstablemodel.h" #include "transactiontablemodel.h" #include "bitcoinbuckunits.h" #include "csvmodelwriter.h" #include "transactiondescdialog.h" #include "editaddressdialog.h" #include...
90955f91132e5418c9ee8bc4d8bc69a57fa333cb
c5b0afdbfa03430fa15aa69c5d63897edc8420d3
ArthurYdalgo/Cadernaveis
/imprimir/dariel.cpp
C++
cpp
682
no_license
#include <bits/stdc++.h> using namespace std; int amod(string num, int a) { int res = 0; for (int i = 0; i < num.length(); i++) res = (res*2 + (int)num[i] - '0') %a; return res; } int main() { string binario; int n,i,j,teste,result; cin >> binario; multiset<in...
7297fccdb5e737d8aafd32a705c5b3fc1a9dd57a
94d2028731712614d8737730cdb7a364b4bf2373
schinmayee/nimbus
/applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Particles/CODIMENSIONAL_FLUID_PARTICLES.cpp
C++
cpp
780
permissive
#include <PhysBAM_Tools/Vectors/VECTOR.h> #include <PhysBAM_Dynamics/Particles/PARTICLES_FORWARD.h> #include "CODIMENSIONAL_FLUID_PARTICLES.h" namespace PhysBAM{ template<class TV> CODIMENSIONAL_FLUID_PARTICLES<TV>:: CODIMENSIONAL_FLUID_PARTICLES(){} template<class TV> CODIMENSIONAL_FLUID_PARTICLES<TV>:: ~CODIMENSIO...
951b9f3ce477a0c415468d5fa60f927e3e2b9ad1
b4f9364b21a5b929edaba22954eab426039a2c78
xAcerolax/DirectX12
/DirectX12project/Manager/Manager_single.cpp
C++
cpp
8,217
no_license
#include "Manager.h" #include "../Graphics/List/List.h" #include "../Graphics/RootSignature/RootSignature.h" #include "../Graphics/Pipeline/Pipeline.h" #include "../Graphics/Texture/Texture.h" #include "../Graphics/Primitive/Primitive.h" #include "../Func/Func.h" #include "../resource/resource.h" #include <d3d12.h> /...
dc918b02e8797a6754d581a4f38ba3682b1235ac
c583f42f25d839371eb70e3743b0fd95952903dc
djg/llvm-project-20170507
/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_common.cc
C++
cc
5,343
permissive
//===-- sanitizer_procmaps_common.cc --------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
4cfcaec229987162ce3ed3987bff07b205fbc56e
627cb144d764d0feaa00a3f880b5e7db306fb4f6
thiruppathi-svmx/react-native-windows
/vnext/ReactUWP/Views/Impl/ScrollViewUWPImplementation.cpp
C++
cpp
3,959
permissive
#include "pch.h" #include "ScrollViewUWPImplementation.h" namespace react { namespace uwp { ScrollViewUWPImplementation::ScrollViewUWPImplementation(const winrt::ScrollViewer &scrollViewer) { assert(scrollViewer); const auto scrollViewContent = scrollViewer.Content(); assert(scrollViewContent); const auto sn...
3c9dc1ceb6383cd34afd1a27094f91a59586a5e0
f8c8de46abaa82a4f30df9b63884f6cb6b246dd3
RoCampos/doutorado
/statistics/median.cpp
C++
cpp
202
no_license
#include <iostream> #include <fstream> #include "readFile.h" using namespace std; int main (int argc, char** argv) { int sample = atoi (argv[3]); median ( argv[1], argv[2], sample); return 0; }
72ce147a3305d3777bd4f34f0bb4cef84779b04f
5e7eeb6262806277200b28e987152dcd3393591f
jesuscraf/peopletech
/cpp/m4vm/inc/prnodef.hpp
C++
hpp
3,006
no_license
//============================================================================== // // (c) Copyright 1991-1997 Meta Software M.S., S.A // All rights reserved. // // Module: Compiler // File: VMachin1.h // Project: Calculo // Author: Meta Software M.S. , S.A // Date: 21 m...
a2a1c7c664f1534685ec45c9b9a6c0a5c710dff6
dcacb650dc44e575647854857292d75d19ea79fa
krasznaa/llvm
/llvm/lib/Target/X86/X86InstructionSelector.cpp
C++
cpp
62,523
permissive
//===- X86InstructionSelector.cpp -----------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
2eac99cce0aa3f8802139a55b353903371760684
17d51d497380701c9800e2589fab99ccd1d313e8
neuroradiology/RemotePlayWhatever
/RemotePlayWhatever/ClientContext.cpp
C++
cpp
1,891
no_license
#include "ClientContext.h" ClientContext::ClientContext(): m_hPipe(0), m_hUser(0), m_pClientEngine(nullptr), m_pClientUser(nullptr), m_pClientRemoteManager(nullptr), m_pClientFriends(nullptr) { } ClientContext::~ClientContext() { if (m_hPipe) { if (m_hUser) { ...
4e2e7a4a76677ea568eb0a752db1b3c878d96e80
06404ce2fb4982d01570520230ae23b2fe506054
brandonelman/LSESolver
/src/main.cpp
C++
cpp
14,488
no_license
//This program solves the Lippman-Schwinger Equation #include <iostream> #include <string> #include <vector> #include <cmath> #include <armadillo> //#include <limits> #include <algorithm> struct MeshPoint{ double k;//position double w;//weight MeshPoint(double ik, double iw) : k(ik), w(iw) {} }; struct LowEner...
4ba3a8fed7f52fba9136c9178bfa2295caf3dddb
cada53f91d258b47fc20fb45dd6598333dcbe978
sidhu421/Cpp_Course
/Day-12/05-Binary_tree.cpp
C++
cpp
1,484
no_license
#include<iostream> using namespace std; class node{ public: int data; node *left = NULL; node *right = NULL; node(int d){ data = d; } }; // 10 // NULL NULL // 10 -1 -1 node* buildTree(){ int d; cin >> d; // Base Case if(d==-1){...
f775794d3b5a43fe8d6631a31ddb2c78698f5a3a
6e68cb85e2d972d29a36e2cf1853ea8ce5926304
Aliceljm1/WinSDKV6.0Samples
/Multimedia/WMP_11/cpp/WMPHost/CWMPEventDispatch.cpp
C++
cpp
14,546
no_license
// CWMPEventDispatch.cpp : Implementation of the event dispatcher // // Copyright (c) Microsoft Corporation. All rights reserved. // #include "CWMPEventDispatch.h" HRESULT CWMPEventDispatch::Invoke( DISPID dispIdMember, REFIID riid, ...
46905625041ffaeb0eb5fcacdcd2c521e3bed528
01a00ef2b0f0e1c25029d8e9bbfe133d4642dad0
kuyon/mruby-siren
/src/vec.cpp
C++
cpp
2,523
permissive
#include "vec.h" mrb_data_type* mrb_siren_get_vec_type(void) { return &mrb_siren_vec_type; } bool mrb_siren_vec_install(mrb_state* mrb, struct RClass* rclass) { rclass = mrb_define_class(mrb, "Vec", mrb->object_class); MRB_SET_INSTANCE_TT(rclass, MRB_TT_DATA); mrb_define_method(mrb, rclass, "initialize", mrb_...
4a41fe3c41b674928c0562e7807d6d7bec77bd0c
999fbfe4e79210834eae8ce44dd907da4d93148f
mayu0418/leetcode
/LY/LYLeetCode/MaximumBinaryTree.cpp
C++
cpp
2,083
no_license
/* 给定一个不含重复元素的整数数组。一个以此数组构建的最大二叉树定义如下: 二叉树的根是数组中的最大元素。 左子树是通过数组中最大值左边部分构造出的最大二叉树。 右子树是通过数组中最大值右边部分构造出的最大二叉树。 通过给定的数组构建最大二叉树,并且输出这个树的根节点。 Example 1: 输入: [3,2,1,6,0,5] 输入: 返回下面这棵树的根节点: 6 / \ 3 5 \ / 2 0 \ 1 注意: 给定的数组的大小在 [1, 1000] 之间。 */ #include <stdio.h> struct TreeNode{ int val; ...
9fa6f26cd9c398ace0e2b51d158bb5575fefad17
82d471893d64ca955aacbba0b2221ed3fbc57089
Vesion/Misirlou
/leetcode/173-BinarySearchTreeIterator.cpp
C++
cpp
731
no_license
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <stack> using namespace std; struct TreeNode { int val; TreeNode *left, *right; TreeNode(int val) : val(val), left(NULL), right(NULL) {} }; // Inorder traversal with stack class BSTIterator { private: stack<TreeNode...
7133ff8bb8e34ffc176b485dcdb44dd20c4038ce
844260ffbe16585f4c9898626ff38c23c8baf11f
cristian357r4/Code-And-Inspiration
/Cpp And Inspiration/14.Cpp And QCameraWindow/Project/QCameraWidget.cpp
C++
cpp
1,474
no_license
#include "QCameraWidget.h" #include <QCameraInfo> #include <QBoxLayout> #include <QCameraViewfinder> QCameraWidget::QCameraWidget(QWidget* widget) : QWidget(widget) { this->camera=new QCamera(QCameraInfo::defaultCamera()); this->cameraImageCapture=new QCameraImageCapture(camera); QCameraViewfinder* viewfinder=new Q...
292edc9599f095905ff974338da9ac206e5b53d9
3e35961ae4a76a105e6ebc17a1c76d12edf69d26
cbartholomew/PhilipsiSiteRadiologyPlugin
/iSiteSDK/3.6-4.1/Sample Code/PlugInSamples/LogWriter/Writer.cpp
C++
cpp
4,834
no_license
// Writer.cpp : Implementation of CWriter #include "stdafx.h" #include "LogWriter.h" #include "Writer.h" ///////////////////////////////////////////////////////////////////////////// // CWriter // Method to initialize the log file. Log file is automatically named with a date/time stamp // to avoid collision with pr...
001a72d62b5ddb74811f45abca8abac435d1268b
0d07e31fc24bb933e92206cf0814906c39ba7fa6
shane-powell/32blit-beta
/examples/flight/flight.cpp
C++
cpp
7,809
permissive
#include <string> #include <cstring> #include <memory> #include <cstdlib> #include "graphics/mode7.hpp" #include "flight.hpp" #include "assets.hpp" using namespace blit; const uint16_t screen_width = 160; const uint16_t screen_height = 120; // extra space allocated to take mipmaps // mipmaps are stored as Pen sin...
750a82e316059289abb813ceb1d39f0a6f4419ce
7aecb6ebfc1a6c9ab67fc5269398a46fe36b6786
runauto/NPD
/detection/LearnGAB.cpp
C++
cpp
14,237
permissive
#include "LearnGAB.hpp" #include <math.h> #include <sys/time.h> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <map> #include <omp.h> #define max(a, b) (((a) > (b)) ? (a) : (b)) #define min(a, b) (((a) < (b)) ? (a) : (b)) using namespace cv; int pWinSize[]={24,29,35,41,50,60...
1494cf932eeb44bb30dcecc03a85744b5136e931
e0bc3216b05b90b92df35ed0c6141fb2e877a359
kc9qin/Offline
/ExtinctionMonitorFNAL/Digitization/src/ExtMonFNALHitMaker_module.cc
C++
cc
26,629
permissive
// Pixel digitization: create ExtMonFNALRawHits and associated truth. // Time stamps of created hits are in [0, numClockTicksPerDebuncherPeriod-1]. // // Original author Andrei Gaponenko #include <string> #include <cmath> #include <memory> #include <queue> #include <iostream> #include <iomanip> #include "CLHEP/Random...
bcfdb99bccd75df2f825a891ff0017e6ec47c030
60c1433ba7383415b6756d97ccc0ab16496ae270
zzy0119/emb1209
/apue/nettalk/c++/enclosed_class.cpp
C++
cpp
1,129
no_license
#include <iostream> using namespace std; // 轮胎类 r w class Tyre { private: int m_radius; int m_width; public: // 构造方法 Tyre(int r, int w); void show(); }; // 初始化列表 Tyre::Tyre(int r, int w) : m_radius(r), m_width(w){ } void Tyre::show() { cout << "轮胎半径是:" << m_radius << endl; cout << "轮胎宽度:" << m_widt...
b6400a30317aecbcb610fefde2f476936e4ada35
77b86b515caed55da5716b6a666e2ea46413b247
feiyuxiaoThu/IITS
/hdmap/ad_map/ad_physics/impl/test/generated/ad/physics/DurationSquaredTests.cpp
C++
cpp
17,692
no_license
/* * ----------------- BEGIN LICENSE BLOCK --------------------------------- * * Copyright (C) 2018-2020 Intel Corporation * * SPDX-License-Identifier: MIT * * ----------------- END LICENSE BLOCK ----------------------------------- */ /* * Generated file */ #if defined(__clang__) && (__clang_major__ >= 7) #...
23ccf11d8e692bea0ab3a65ed96e1428c80eb301
87abb82d4fefa669b46875ede74b430946090982
bloodycoder/dg
/tools/llvm-pta-dump.cpp
C++
cpp
25,367
permissive
#ifndef HAVE_LLVM #error "This code needs LLVM enabled" #endif #include <set> #include <vector> #include <string> #include <iostream> #include <sstream> #include <fstream> #include <cassert> #include <cstdio> #include <cstdlib> // ignore unused parameters in LLVM libraries #if (__clang__) #pragma clang diagnostic pus...
993df92c9bc2e4bf0a9515c2147ba61183c75121
1654b7698223683efb6a2ce59120e8e7b35aecb5
LiamNCAT/GameEngine
/lib/Nadia-CPP/Nodes/Dependency Type/dependency_type.cpp
C++
cpp
1,039
no_license
// // dependency_type.cpp // Nadia-CPP // // Created by Dean Lee on 23/6/20. // Copyright © 2020 Dean Lee. All rights reserved. // #include "dependency_type.hpp" int Dependency_Type::mandatoryDependency = 64; // 1000000 int Dependency_Type::optionalDependency = 32; // 0100000 int Dependency_Type::possibleDependen...
43993657a3c85ef9baa538716bcc1f3816af13b0
27e4f1cb9ede32e13bce2bc5af86388018d49ff7
metux/chromium-suckless
/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp
C++
cpp
3,240
permissive
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "modules/webgl/WebGLTimerQueryEXT.h" #include "core/dom/TaskRunnerHelper.h" #include "gpu/command_buffer/client/gles2_interface.h" #include "mod...
55f0251946a2d4e0eff2d54d04e26cb428b3333b
24233d15d1a35e68463a5c659e890f8d22e2b9b0
mic159/TinySTG
/Mathmatics.hpp
C++
hpp
304
no_license
#ifndef TINY_MATHEMATICS_HPP #define TINY_MATHEMATICS_HPP class Mathmatics { public: static int Sin8(unsigned char theta); static int Cos8(unsigned char theta); private: static const short sin_table[256]; Mathmatics(void); Mathmatics(Mathmatics&); Mathmatics& operator = (Mathmatics&); }; #endif
1a59f1f26d8943b036583981966c4e1e3cf3675d
d0cf77a5f638c5dcc23ab2615c51fbd3f12da030
Raelifin/Adamant.Compiler
/test-cases/Function.cpp
C++
cpp
325
no_license
#include "RuntimeLibrary.h" // Type Declarations // Function Declarations auto Func_() -> int; auto Main_() -> int; // Class Declarations // Definitions auto Func_() -> int { return 1; } auto Main_() -> int { return Func_(); } // Entry Point Adapter int main(int argc, char const *const * argv) { return Main_(...
b10595c8813a51020650d03dfe4f8514b4c8fa94
a4ff80afaa9ded94fc9d8a24d39a0a7be5ff3596
niuxu18/logTracker-old
/second/download/collectd/gumtree/collectd_repos_function_2035_collectd-5.6.1.cpp
C++
cpp
390
no_license
static int ctail_config (oconfig_item_t *ci) { for (int i = 0; i < ci->children_num; i++) { oconfig_item_t *option = ci->children + i; if (strcasecmp ("File", option->key) == 0) ctail_config_add_file (option); else { WARNING ("tail plugin: Option `%s' not allowed here.", option->key); ...
04a01ae6922803ada462f67f635c3e26df389a10
eccea58ee319c9e23ce634edbfaefc6523d4b46e
Blaxar/log4cxxNG
/src/main/cpp/appenderattachableimpl.cpp
C++
cpp
3,607
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
5b2e69e6dd3c99ee2843c2bc99aba31da438bdae
93f7eeef16df041e15afc7af3f8470e33c2e9930
drstrangelooker/ClickHouse
/dbms/src/DataTypes/tests/gtest_data_type_get_common_type.cpp
C++
cpp
6,704
permissive
#include <DataTypes/DataTypeFactory.h> #include <DataTypes/getLeastSupertype.h> #include <DataTypes/getMostSubtype.h> #include <sstream> #include <gtest/gtest.h> namespace DB { bool operator==(const IDataType & left, const IDataType & right) { return left.equals(right); } std::ostream & operator<<(std::ostream...
a9a7ca68ff26eeb6df5ec661a546e26ec92ca6c1
7dc2fcd919466371032468e713b9e804f7f1e333
gianantonio71/amber-interpreter
/os_interface_linux.cpp
C++
cpp
317
no_license
#include "os_interface.h" #include <time.h> #include <iostream> int get_tick_count() { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { std::cerr << "clock_gettime failed" << std::endl; return 0; } return 1000 * ts.tv_sec + ts.tv_nsec / 1000000; } void set_priority_idle() { }
11468f2b14a600dba5c74ec099599d38d0297222
4a0b6a573101a97062ce79069634fc6b2c8575d3
siberianwombat/chromium
/chrome/browser/chromeos/login/saml/in_session_password_change_manager.cc
C++
cc
13,161
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/login/saml/in_session_password_change_manager.h" #include "ash/public/cpp/session/session_activation_observer.h" #inclu...
651c24966a132975245f4922ffd1b8bc55c4db0c
ac90cb0a1b401a1edaf0a207c4acdb1972357242
tudorcgb/autonomous_car
/src/lanedetection/neuralnetwork/movidiusnetwork.cpp
C++
cpp
4,496
no_license
#include "movidiusnetwork.h" #include "image.h" #include <chrono> // Load a graph file // caller must free the buffer returned. void *LoadFile(const char *path, unsigned int *length) { FILE *fp; char *buf; fp = fopen(path, "rb"); if(fp == NULL) return 0; fseek(fp, 0, SEEK_END); *length = ftell(fp); rewind(f...
efa19af3732359c9c14ec9cffa489cc33ea36e3d
641f324a61ea8dde2e573eef88be72adac850090
google/orbit
/src/OrbitCaptureGgpClient/OrbitCaptureGgpClient.cpp
C++
cpp
5,870
permissive
// Copyright (c) 2020 The Orbit 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 "OrbitCaptureGgpClient/OrbitCaptureGgpClient.h" #include <absl/types/span.h> #include <grpcpp/grpcpp.h> #include <grpcpp/security/credentials.h...
7b4c525c256b0f1a9d7d3de191d44436dc99f253
fef93e93d95b96bcf4ee2519276d6eefde400006
0/php-src
/ext/intl/dateformat/dateformat_create.cpp
C++
cpp
6,256
permissive
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is ...
a1161c58f758e802d8bc33903e13b6a68751bc01
ca8ed5a92ae11f6fdc06ec77d7e92b470cb3650e
NetBSD/pkgsrc-wip
/prusaslicer/patches/patch-src_slic3r_GUI_Mouse3DController.hpp
C++
hpp
324
no_license
$NetBSD$ pkgsrc hidapi.h is one level deeper than builtin. --- src/slic3r/GUI/Mouse3DController.hpp.orig 2021-12-17 14:00:02.000000000 +0000 +++ src/slic3r/GUI/Mouse3DController.hpp @@ -6,7 +6,7 @@ #include "libslic3r/Point.hpp" -#include "hidapi.h" +#include "hidapi/hidapi.h" #include <queue> #include <atom...
0cec3178d829875fbe45182594e3ba2c996b139f
50451e9d2a2b485b09b664865f91b436d87b5d37
SubwayRocketTeam/Server
/src/choco_2/choco/orm/builder.cpp
C++
cpp
2,900
no_license
#include "orm.h" using namespace std; namespace choco{ namespace orm{ string join(vector<string> vec, string delim){ string result; if( vec.empty() ) return ""; for(auto it=vec.begin();it!=vec.end()-1;++it){ result += (*it) + delim; } return result + (*vec.rbegin()); } string query::bui...
4da937bf1bbd552b03f5f21f1974751422e54880
76ffdea4e4032b9453e25715774ac9aeb24c375a
Altanb1337/Growtopia-Private-Server
/Growtopia/Time.cpp
C++
cpp
810
permissive
#include "Time.h" using namespace std; unsigned long Time::now() { using namespace chrono; return duration_cast<seconds>(system_clock::now().time_since_epoch()).count(); } unsigned long Time::nowMillisecond() { using namespace chrono; return duration_cast<milliseconds>(system_clock::now().time_since_e...
3292eae19d316ccf634851bb09ee8c3204a389a4
057110ae987b71714bc815a82d7f92ca1cc7507c
MoonMagus/leetcode-c-plus-plus
/leetcode/Sum Root to Leaf Numbers.cpp
C++
cpp
3,526
no_license
#pragma warning(disable:4996) #include <cstdio> #include <iostream> #include <vector> #include <string> #include <sstream> #include <unordered_map> #include <algorithm> #include <numeric> #include <list> #include <stack> #include <queue> using namespace std; struct ListNode { int val; ListNode* next; List...
7a0cdaa3f59a5a2d267fd69255ad316a4f1cc5e1
0c8f6af973c8da54536d19a413eb452005a2e245
EuiSeong-Moon/Algorithm
/Baekjoon/불.cpp
C++
cpp
2,217
no_license
#include<iostream> #include<queue> #include<string> using namespace std; char map[1000][1000]; bool flag[1000][1000]; int dr[] = { 1,-1,0,0, }; int dc[] = { 0,0,1,-1 }; int main(void) { int T; cin >> T; for (int test = 0; test < T; test++) { int N, M; string buf; cin >> M >> N; for (int i = 0; i < N; i++) { ...
2f6d5132e9dec016db0f802f4533eb1c5b229ca1
c004db3228ac0eb08ed26014b16d2fbedd85b378
Deadmanovi4/mmo-resourse
/PUBLIC/MapFile.cpp
C++
cpp
10,901
no_license
//============================================================================= /** * file: MapFile.cpp * * Brief:通过Windows的文件影射机制,包装了简单的影射文件操作功能 * 用于异地的文件日志记录 * * Authtor:wangqiao * * Datae:2008-10-29 */ //============================================================================= #inclu...
2954060757a3b3f1aa5f3c71f46f27df81cb1874
7e15fdc36c10091a7077a23b957ab7b033f608cc
gxliu/esesc
/misc/libsuc/Transporter.cpp
C++
cpp
8,306
no_license
#if ESESC_LIVE /* ESESC: Enhanced Super ESCalar simulator Copyright (C) 2014 University of California, Santa Cruz. Contributed by Sina Hassani Jose Renau This file is part of ESESC. ESESC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public ...
244ebb55e05942b049da3847af571a9c7ef6bbf6
17efc684562b4b22bbdd60b95db1ece122875acc
jasha64/jasha64
/Fall 2018/数据结构/11.28_HW/trapping-rain-water-ii.cpp
C++
cpp
3,144
permissive
//leetcode - trapping rain water ii //搜索 /* 这道"装水问题"我们采用"模拟海平面上升"的方法来解决,模拟"海平面"上升时漫过较高的 格子汇入较低的格子的过程 首先,易见边界上的点无法装水,海平面只要上升到一个边界格子的高度就一定会漫过它 因为只有海平面的高度到达格子高度时装水的情况可能发生变化,所以只需要从低到高依次 访问边界上所有的格子 所以,我们把所有位于边界的点作为BFS的启动点,BFS时每次取出队列中高度最低的点(需 要使用优先队列)并且维护海平面高度mx为目前已搜过的点中的最高高度 因为能装水的方格周围的四个方格都比自己高,而且装水高度取决于周围四个方格最低的一 ...
875bef3b24c19ff198177cc534841f3c50a5df43
f56ff8e734d07bdd49a0fb94575837604bb33ce4
psocha/ChessEngine
/test/ai_tests.cc
C++
cc
4,181
no_license
#include "ai_tests.h" #include "test_main.h" #include "../ai/material_positional_ai.h" #include "../core/board.h" #include <iostream> using core::Board; using std::string; namespace test { bool RunAITests() { try { TestObviousMateInOne(); TestRollingRook(); TestSacrificeMateCombo(); TestRescueStal...
63158e3b5e7a0e147fdcce1782e4167ba72fd770
cc038aea3f695db778a3bea624a9dd13d1667e96
pangeneral/z3
/src/tactic/core/tseitin_cnf_tactic.cpp
C++
cpp
33,047
permissive
/*++ Copyright (c) 2011 Microsoft Corporation Module Name: tseitin_cnf_tactic.cpp Abstract: Puts an assertion set in CNF. Auxiliary variables are used to avoid blowup. Features: - Efficient encoding is used for commonly used patterns such as: (iff a (iff b c)) (or (not (or a ...
f20207ca6854b70fdae74161f6a0d08da4fd8260
0363e32280afc453c27f86a2f7d705152e6507fd
giganteous/boringssl
/ssl/ssl_lib.cc
C++
cc
85,421
permissive
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as ...
2052f7532d32d4f05993acb4745c5aa45198c210
0e4944243781016ebcfd69fe8f22880f20eef6d5
kwisniew/devsim
/src/meshing/GmshReader.hh
C++
hh
1,456
permissive
/*** DEVSIM Copyright 2013 Devsim LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
78fdfe7f88c3609787abee78fd692dcdc4901e35
69426a86dfd5a4f743be361703b0bb149becc2c2
sysrqb/chromium
/chrome/browser/extensions/extension_service_test_base.cc
C++
cc
12,650
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 "chrome/browser/extensions/extension_service_test_base.h" #include <utility> #include "base/command_line.h" #include "base/files/file_util.h" #...
282a2afb85b122ae0a4d39ecf3a6cbc4f372dc15
028eb30991188cc275d5e1d52e201915d393628b
niuxu18/logTracker-old
/second/download/squid/gumtree/squid_repos_function_3532_squid-3.5.27.cpp
C++
cpp
599
no_license
void clientStreamInit(dlink_list * list, CSR * func, CSD * rdetach, CSS * readstatus, ClientStreamData readdata, CSCB * callback, CSD * cdetach, ClientStreamData callbackdata, StoreIOBuffer tailBuffer) { clientStreamNode *temp = clientStreamNew(func, NULL, rdetach, readstatus, ...
b0141c1433a4835d82678295b3db87231d3025ad
d91316b5bf4fdab7aa6838b81cf6149ccb722f16
RauPro/Competitive-Programming-Material
/Solved problems/Codeforces/1042B_Vitamins.cpp
C++
cpp
1,959
no_license
// tags: backtracking, pruning, implementation, bitwise operations #include <bits/stdc++.h> // import everything in one shot using namespace std; #define rep(i,a,b) for(int i = a; i <= b; ++i) // ------------------------------- int N; // number of juices int price[1000]; // juices' prices int masks[1000]; // juices' b...
4d4866760f84b6fde7483a79d7979583a083028a
930898f2568b9371ebcdf058c0c38848fb229081
Sidebail/KnittedAndInflatable
/Plugins/SceneFusion/Source/SceneFusion/Private/Testing/sfDeleteActivity.cpp
C++
cpp
633
no_license
#include "sfDeleteActivity.h" #include "../../Public/SceneFusion.h" #include <Engine/Brush.h> #include <InstancedFoliageActor.h> sfDeleteActivity::sfDeleteActivity(const FString& name, float weight) : sfBaseActivity{ name, weight } {} void sfDeleteActivity::Start() { AActor* actorPtr = RandomActor(); if ...
d5d0d39e3a572ad636857b5dd504752a66d59ee5
f1e6d5b16e6c4d0b154b887ce860484921a25d51
tectronics/asu-uav
/Onboard/tests/Test/Time.cpp
C++
cpp
2,224
no_license
#ifdef __GNUC__ #include <sys/time.h> #elif defined(_MSC_VER) #include <time.h> #endif #include "Time.h" using namespace std; namespace uav { namespace test { namespace { const unsigned int UsecPerSec = 1000000; } // anonymous namespace /// Constructs a time object with zeroed time. /// Time::Time() : _sec(0), _...
1fcad596f2c5582259b94207b26ecc592238fc9f
24e9fb8f801dfbafeae1bc3d8639752db6f2c4b6
G-CR/acm-solution
/ACM/Prictise/CodeForces/Codeforces Round #556 (Div. 2)/A - Stock Arbitraging.cpp
C++
cpp
620
no_license
#include<iostream> using namespace std; int n,m,r,i,j,t,buyMin = 1001,sellMax; int s[1005],b[1005]; int main() { cin >> n >> m >> r; for(i = 1;i <= n; ++i) { cin >> s[i]; if(s[i] < buyMin) buyMin = s[i]; } // cout << "buyMin = " << buyMin << endl; for(i = 1;i <= m; ++i) { cin >> b[...
a1cf1873ca8b16761ecdd1f3536f162128191b53
6ae41d5af077e41087fc3244f9a4b9949fcf18a7
Sioweb/hhvm
/hphp/runtime/base/program-functions.cpp
C++
cpp
101,503
permissive
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
cc6e2b0899ef1ef7a5f068c5156253ef98db16cd
0bdfabe3ff15ef1e139a528a44f1eb3ead6cd75c
callista-suite/libCallistaShared
/src/app.cpp
C++
cpp
1,659
permissive
#define CALLISTA_INTERNAL #include <callista/app.h> #include <callista/types.h> #include <callista/ui/document_window.h> Dynarr<String> args; CallistaApp app_config; #if CS_OS_WIN32 // I try to keep my code clean and professional, // but all I can say here is... // // What the fuck, Windows? // // Sigh... d...
936886f8cfeed0695ca096bda5f8b8518cfa1d1d
9a9b91cad87173d6a41c2127e8c5b07d325e8179
cwang64/compute-runtime
/unit_tests/gen11/lkf/linux/hw_info_config_tests_lkf.cpp
C++
cpp
3,069
permissive
/* * Copyright (C) 2018-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "unit_tests/helpers/gtest_helpers.h" #include "unit_tests/os_interface/linux/hw_info_config_linux_tests.h" using namespace NEO; struct HwInfoConfigTestLinuxLkf : HwInfoConfigTestLinux { void SetUp() override { ...
e3b2a2a5692c6a1f9041909577e10e28c989c23c
746100f0b10672dfd9997f415857676fc583a6f5
ldab/Arduino-u-blox-NINA-W10
/Server/main.cpp
C++
cpp
7,423
permissive
/****************************************************************************** u-blox NINA-W10 Arduino example Leonardo Bispo March - 2019 https://github.com/ldab/Arduino-u-blox-NINA-W10 Distributed as-is; no warranty is given. This example tries to implement some key functions and key PIN atributes in order to get...
d6d9743ed3e33912ba57b89a7c7c33e6c4142e3f
237047c5d006d8e691a2dc01c55d2a1021c2d9c6
cjacker/windows.xp.whistler
/source/UTILS/REGEDIT/INC/REGEDVAL.HXX
C++
hxx
5,896
no_license
/*++ Copyright (c) 2000 Microsoft Corporation Module Name: regedval.hxx Abstract: This module contains the declarations for the REGEDIT_FORMATTED_VALUE_ENTRY class. This class models a value entry of a registry key, and contains a formatted string to be displayed in the data view of regedit. ...
a4cfb0e8e6059dd80f11a6088395391c1e97a2a5
f90e83b7c331d1c760095510f31ef59086430b72
adslinfosoft/bitozcoin
/src/qt/rpcconsole.cpp
C++
cpp
38,743
permissive
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The BIToz Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcconsole.h" #include "ui_debugwindow.h" #include "bantablem...
9c710f9d5812695cff71c9259335126d77d5811e
e8901b05e0a1a4ceab9178a9e3ce12d1801977ea
AaronHeee/Y86_2
/server/Stage.cpp
C++
cpp
17,908
no_license
// // Created by aaron on 17-6-6. // #include "Stage.h" void Stage::init(){ F_predPC = 0x0; f_pc = 0x0; f_predPC = 0x0; f_icode = INOP; f_ifun = FNONE; f_valC = 0x0; f_valP = 0x0; f_stat = SBUB; f_rA = RNONE; f_rB = RNONE; imem_error = false; ins...
519f5f53c50b284ccdc8c8629a87d49f6e1efda2
2e83d0812da78b74e792045edd83b7b778172a14
zosnet/zos-core
/programs/store_node/my_sql.cpp
C++
cpp
3,620
no_license
#include <stdio.h> #include <stdlib.h> #include <mysql/mysql.h> #include <mysql/mysqld_error.h> #include <unistd.h> #include <fc/exception/exception.hpp> #include <fc/interprocess/signals.hpp> #include <fc/log/console_appender.hpp> #include <fc/log/file_appender.hpp> #include <fc/log/logger.hpp> #include <fc/log...
4f54d69008a6db8d3d3337968305d93355918cbe
f85487dccc5d60c6cd2cf1a5b33623e20b2f2b8a
yimengfan/BDFramework.Core
/HybridCLRData/LocalIl2CppData-OSXEditor/il2cpp/libil2cpp/icalls/mscorlib/Mono/RuntimeClassHandle.cpp
C++
cpp
442
permissive
#include "il2cpp-config.h" #include "il2cpp-class-internals.h" #include "RuntimeClassHandle.h" #include "vm/Class.h" namespace il2cpp { namespace icalls { namespace mscorlib { namespace Mono { intptr_t RuntimeClassHandle::GetTypeFromClass(Il2CppClass* klass) { return reinterpret_cast<intptr_t>(il2cpp::...
58df5aa20b31427d19d7092221caa3c0fae5baae
9ce781fb14bcd2f3c83c97a7e8b5179526009390
nalreddy/code
/DS/string/wordfrequency.cpp
C++
cpp
515
no_license
#include<iostream> #include<sstream> #include<map> using namespace std; int main() { std::stringstream ss; string word; map<string, int> mp; ss << 20 << endl; ss << 20 << endl; ss << 30 << endl; ss << 30 << endl; //ss.clear /ss.eof /ss.str while ( ss >> word) { mp[word]++...
0350e4c3056e39fd149c4826ec8992bfc08ac275
c242c31064d49430f621a0b010184845e37be535
kimown/chromium
/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc
C++
cc
23,652
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 <list> #include <set> #include "base/bind.h" #include "base/callback_helpers.h" #include "base/files/scoped_temp_dir.h" #include "base/macro...
312d40d6d3fab7445aff69d4531064c87ad0d8f3
e175917ed7414fb76e2b172891b91c1dc100e937
idoleat/simple-P-compiler
/hw4/src/include/AST/UnaryOperator.hpp
C++
hpp
613
permissive
#ifndef __AST_UNARY_OPERATOR_NODE_H #define __AST_UNARY_OPERATOR_NODE_H #include "AST/expression.hpp" #include "AST/operator.hpp" #include <memory> class UnaryOperatorNode : public ExpressionNode { public: UnaryOperatorNode(const uint32_t line, const uint32_t col, Operator op, ExpressionN...
1fad960f19d1120d90359e13e02933de8d15acdc
b71c0865c89284eb8e2b103304eb1bf1b6863b8d
marybm-dev/CPlusPlus
/Class - Starfish/main.cpp
C++
cpp
227
no_license
#include <iostream> #include "Starfish.h" using namespace std; int main() { Starfish bob; cout << "bob says: "; bob.Describe(); Starfish amy(7); cout << "amy says: "; bob.Describe(); }
b2a7b5b38a8a3bb5e1bd16c176a95d4ee7cd5db4
289c24db8c3c1d894eedc0e2c4220ebee2302b2b
mmoscat/ai-project-2014
/Simulation/src/Game.cpp
C++
cpp
2,211
no_license
#include <cstdlib> #include <iostream> #include <ode/ode.h> #include "Game.h" Game::Game(int w, int h) : m_window(nullptr), m_viewport(nullptr), m_framecount(0) { // create OGRE root object m_root = std::auto_ptr<Ogre::Root>(new Ogre::Root("plugins.cfg", "", "logs")); // initialize physics dInitODE(); // set t...
f94d6d07d512c6397aa19f4cae026cd0b549b427
ac4f8c75002b1b4fe98cdb5613691e0c58336fe9
niuxu18/logTracker-old
/second/download/git/gumtree/git_new_hunk_1324.cpp
C++
cpp
430
no_license
o->local_ref = local_ref_to_free = resolve_refdup("NOTES_MERGE_REF", 0, oid.hash, NULL); if (!o->local_ref) die(_("failed to resolve NOTES_MERGE_REF")); if (notes_merge_commit(o, t, partial, &oid)) die(_("failed to finalize notes merge")); /* Reuse existing commit message in reflog message */ memset(&pret...
d20161f7bdd18fad35dbb32c832e898f4c49c156
6c385bf7e4aa9400cefd03220ba5a4599225fe42
haonancool/OnlineJudge
/qiniu/permute.cc
C++
cc
914
permissive
#include <iostream> #include <vector> #include <algorithm> using namespace std; void helper(vector<int> &table) { vector<int> s; while (1) { if (s.size() < table.size()) { int i = s.size(); s.push_back(i); } else { for (int i : table) cout << i << " "; cout << endl; int j, k; do { j = ...
8dcc5702e7772258aa80bc033aa5d1256e220a5d
783c40b700dfc4fe4842f730a54e59e0e49c96cf
QuickSorting/CompetitiveProgramming
/CodeForces/CF-1205-D1-B.cpp
C++
cpp
1,297
no_license
#include <bits/stdc++.h> using namespace std; const long long MAXN = 1e5 + 7; const long long BITS = 63; const long long inf = 1e9; long long a[MAXN], par[MAXN]; bool used[MAXN]; long long dist[MAXN]; int main(){ ios::sync_with_stdio(false); cin.tie(NULL); long long n; cin >> n; for(long long i = 0; i < n; ...
257a73bc76c48da1e281f07bbc28128ec5996198
a3a3ebe0b03c2a124f439a5fe22f764aa2176401
emrul-chy/Competitive-Programming
/UVa/10925 - Krakovia.cpp
C++
cpp
1,486
no_license
#include <bits/stdc++.h> #define LL long long int using namespace std; string strdiv(string s, LL n) { LL i, flg = 0, sum = 0, t; string ans; for(i=0; i<s.size(); i++) { sum = sum * 10 + (s[i]-'0'); t = sum / n; if(!t && !flg) { continue; } el...
088da69bde3dbf4d1b4b95e4e25a8f588431060b
90c25d1a3a7139faf8520791266efb94de2d6a23
walteer/TesteKulka
/Project2/Origem.cpp
C++
cpp
225
no_license
#include <iostream> #include "Matematica.h" #include "Inimigo.h" #include "Heroi.h" int main() { Matematica m1(10, 5), m2(7, 8); Matematica m3 = m1 + m2; int x = m3 != 5; std::cout << m3.getX() << std::endl; return 0; }