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
347025ea494f783193019e541552aad67ac83874
1cea115de3e8b695c1985418e1dd09ec25668730
evbelda/Alarma_CVC
/Alarma_CVC_V8.0/TelegramCom.cpp
C++
cpp
9,213
no_license
// // // #include "TelegramCom.h" #include <WiFiClientSecure.h> #include <UniversalTelegrambot.h> #include "RelojAlarma.h" #include "AlarmaC.h" #include "LectorSD.h" #include "RTC.h" void TelegramCom::TelegramServidor(RelojAlarma *reloj, AlarmaC *alcObj, LectorSD *objSD, RTC *rtc, UniversalTelegramBot...
06340312ec9b02fb96dc2c859cf0989021f37118
9928e38fac4d90d4cba21b0b742ea1aa1774554a
Geowil/Space-Crusade-0.5.4
/Code/ship.cpp
C++
cpp
66,358
no_license
#include <string> #include "ship.h" #include "weapon.h" #include "random.h" #include "datasystem.h" #include "msgproc.h" #include "map.h" using namespace std; dataSystem ds_s; msgProc mp_s; Map m_s; Ship::Ship() { lHPoints = 0; mHPoints = 0; bHPoints = 0; rHPoints = 0; hHPoints = 0; sWSpreads = 0; bIsSDisa...
f45fe5b6c0d5c5336a51513c876260f9cf45d7ec
ccfe896a2386326fc5fe493bf966c0c6003cbc68
julitopower/CppLittleExercises
/cuda_template_project/main.cpp
C++
cpp
570
no_license
#include <iostream> #include <vector> #include "main.cuh" int main(int argc, char *argv[]) { if (argc < 2) { std::cerr << "Please provive input vector size" << std::endl; exit(1); } const auto N = std::stoi(argv[1]); std::cout << "Hi there" << std::endl; std::vector<float> v1 {}; std::vector<float...
7dde27d8db002916d50a1f0efb9ecf5765be0814
e0f49989e746d54e3e618b6eb225da496027f913
jjzhang166/WinNT5_src_20201004
/NT/admin/dcpromo/exe/postop.hpp
C++
hpp
268
no_license
// Copyright (c) 1997-1999 Microsoft Corporation // // Post-operation code // // 1 Dec 1999 sburns #ifndef POSTOP_HPP_INCLUDED #define POSTOP_HPP_INCLUDED void DoPostOperationStuff(ProgressDialog& progress); #endif // POSTOP_HPP_INCLUDED
3d14143f52e10cb8846e8ad0a13778baa7d7f245
d6e5eeed91f8f5a592e53273f09a878f54b860ef
coronalabs/corona
/external/Angle/Project/src/compiler/util.cpp
C++
cpp
662
permissive
// // Copyright (c) 2010 The ANGLE Project 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 "compiler/util.h" #include <limits> #include "compiler/preprocessor/numeric_lex.h" bool atof_clamp(const char *str, float *valu...
2fac09fd76715e8c7b7e847b2afa5ed2ee0de925
e41ac730d888a7fed35d240ea5cf9848ba4b6daa
xzeck/FFT
/FFT.cpp
C++
cpp
3,482
permissive
#include "FFT.hpp" // n = length(x) // m = n/2 // X = x[2j] 0 < j < m - 1 // Y = y[2j + 1] 0 < j < m - 1 // Calculate X[n] * e ^ (-j * 2 * pi * k * 2r) / ( N / 2) -> cos( theta) - jsin( theta) // Calculate Y[n] * e ^ (-j * 2 * pi * k * 2r) / ( N / 2) // Calculate Y[n] * e ^ (-j * 2 * pi * k) / ( N ) // Calculating ...
747152e29aaa483d43a68612f6b4f4093475231a
240ae2a1474051a06f300168b686f66486333364
KernelPanic-OpenSource/Win2K3_NT_ds
/adsi/nds/cexsyncf.cxx
C++
cxx
3,875
no_license
//--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992 - 1995 // // File: cdomcf.cxx // // Contents: Windows NT 3.5 NDS Security Class Factory Code // // // History: 01-30-95 krishnag Created. // //--------------...
906caa265ff1e2695cc055a7fa2fa787665a0296
b8ed7e2af2a5ac5126510c88e4fd8bbf4d0f7527
liwan-cn/oj
/九度OJ/1109.cpp
C++
cpp
508
no_license
#include<stdio.h> #define N 1001 int Tree[N]; int findRoot(int x){ if(Tree[x]==-1) return x; else { int tmp=findRoot(Tree[x]); Tree[x]=tmp; return tmp; } } int main(){ int n,m; while(scanf("%d %d",&n,&m)!=EOF&&n!=0){ for(int i=1;i<=n;i++) Tree[i]=-1; while(m--){ int a,b; scanf("%d %d",&a,&b); ...
d1878586dc22e1b750e8786ced9e5967514412e7
9120576f9cec45904a835a8b797bdda50a0d7352
kryptohash/kryptohash
/src/qt/kryptohashaddressvalidator.cpp
C++
cpp
2,604
permissive
// Copyright (c) 2011-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "kryptohashaddressvalidator.h" #include "base58.h" /* Base58 characters are: "123456789ABCDEFGHJKLMNPQRSTUVWXY...
cbd3a5c93cb2f686c1e40ecc70cc05683cf56e0c
e70e94666cc6ad89fc6365170a9fdfa3935c0938
marko1597/Programming-competitions
/Semafori.cpp
C++
cpp
537
no_license
#include <cstdio> #include <cstring> #include <iostream> #include <math.h> #include <string> #include <sstream> #include <iomanip> #include <stdio.h> #include <stdlib.h> #include <ctime> #include <string.h> #include <algorithm> #include <queue> #include <stack> #include <vector> #include <map> #include <set> using name...
44b335eb3057dfe35efc76654715fc6a8e9d7969
f5b18f95c5d07d79cb36ffea98428d1e907c26a6
kmuthukk/yugabyte-db
/src/yb/client/client.cc
C++
cc
70,832
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...
5b3103d61ee0c352fa74c92ae748fe79afb6d4ab
0fd96a81d8c540c613dccc762ee7c923a11a5c45
eirinaga/APREM2-2019-2
/Atividades/Vitor Kenzo Kikuchi/1.3 Cap.03 - Prog03.cpp
C++
cpp
853
no_license
/********************************************************** - Autor: Vitor Kenzo Kikuchi - Descrição: Exercício 4 - Este programa calcula a média ponderada. **********************************************************/ #include <iostream> #include <locale.h> #include <cstdlib> using namespace std; int mai...
a17a3e0d0ec241c968d8ef155fea12aec970840e
51a1c22360a85245c0b573fcd92335433351e43c
synkcoinblockchain/Synkcoin
/src/qt/signverifymessagedialog.cpp
C++
cpp
8,782
permissive
#include "signverifymessagedialog.h" #include "ui_signverifymessagedialog.h" #include "addressbookpage.h" #include "base58.h" #include "guiutil.h" #include "init.h" #include "main.h" #include "optionsmodel.h" #include "walletmodel.h" #include "wallet.h" #include <string> #include <vector> #include <QClipboard> Sign...
3ae1e8fe8cd7ade855aeafa563be1725286e2fe4
208a0d4f3617ad2a074fa5c039e582e88f17d852
kimown/chromium
/third_party/blink/renderer/core/script/detect_javascript_frameworks.cc
C++
cc
10,728
permissive
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/script/detect_javascript_frameworks.h" #include "base/feature_list.h" #include "third_party/blink/public/common...
94eaf519bdf85432069e72f9b3d0ad43e5d29e21
c7f33e64fea205b435b1abfba27744e86188b3bb
jjzhang166/WinNT5_src_20201004
/NT/admin/services/sched/job/job.hxx
C++
hxx
1,229
no_license
//+---------------------------------------------------------------------------- // // Job Schedule Object Handler // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992 - 1996. // // File: job.hxx // // Contents: job object header // // History: 23-May-95 EricB created // //-...
07c552196410effb6d9b2a1ba8f79b0b55495077
b63138feabe350a0841327af69e492baf6027260
sworley8/miSoMadness
/Plugins/AdvancedSessions/AdvancedSessions/Intermediate/Build/Mac/UE4Editor/Inc/AdvancedSessions/AdvancedFriendsGameInstance.gen.cpp
C++
cpp
40,417
permissive
// Copyright Epic Games, Inc. All Rights Reserved. /*=========================================================================== Generated code exported from UnrealHeaderTool. DO NOT modify this manually! Edit the corresponding .h files instead! ====================================================================...
5904006769f1410f1f1a6267d7de134d35646b22
34fcbf2052ce29f4a2cc26cacc0175bfff7d2e4b
haaseben/Project2
/MachineLib/PistonSource.cpp
C++
cpp
491
no_license
/** * \file PistonSource.cpp * * \author Ben Haase */ #include "stdafx.h" #include "PistonSource.h" #include "PistonSink.h" /** * Constructor */ CPistonSource::CPistonSource() { } /** Destructor */ CPistonSource::~CPistonSource() { } void CPistonSource::UpdateLocation(Gdiplus::Point location) { if (mPistonSink != n...
2e99cc024c3d0950cd7c29621fba205a75c02ee5
d79b072d04a2cc414826542b05a5c435fbf463ab
rushioda/PIXELVALID_athena
/athena/PhysicsAnalysis/MuonID/MuonPerformanceAnalysis/MuonPerformanceHistUtils/Root/MuonTPCutFlowBase.cxx
C++
cxx
1,214
no_license
/* Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration */ /* * MuonTPCutFlowPlotBase.cxx * * Created on: Nov 11, 2014 * Author: goblirsc */ #include "../MuonPerformanceHistUtils/MuonTPCutFlowBase.h" MuonTPCutFlowBase::MuonTPCutFlowBase(PlotBase* pParent, std::string sDir) : Pl...
e69a2fe46bee44c47098dfeebe909925447b992b
ed1e723b1a9b6cec7c6228da37298f7d04679867
riochuong/CppND-SystemMonitor
/test/test_process_parser.cpp
C++
cpp
6,064
permissive
#include "gtest/gtest.h" #include "../src/ProcessParser.h" const string DIGIT_PATTERN = "0123456789"; const string DIGIT_FLOAT_PATTERN = "0123456789."; static float get_sys_active_cpu_time_test(string corenumber) { vector<string> values = ProcessParser::getSysCpuPercent(corenumber); if (values.size() == 0) r...
3e9a3c7808094cb7fc60d8bfba50e9f1952a3ffb
156d81dd24ae071e4b3bbc19e1101cf00e974d08
ParkJWoo/graduationProject
/Graduation/Client/Effect.cpp
C++
cpp
788
no_license
#include "stdafx.h" #include "Effect.h" #include "EffectIMP.h" CEffect::CEffect() : m_pBridge(nullptr) { } CEffect::~CEffect() { Release(); } HRESULT CEffect::Initialize() { m_wstrObjKey = L"EFFECT"; return S_OK; } void CEffect::LateInit() { m_pBridge->SetObj(this); } int CEffect::Update() { CObj::LateIni...
83b04ab1404bf8734335b56bffac323383034dab
2fa04d65885c807c2c1eb7bdecd3ddc8675834b2
doytsujin/chainblocks
/src/core/blocks/imaging.cpp
C++
cpp
10,129
permissive
#ifndef IMAGING_H #define IMAGING_H #include "shared.hpp" #define STB_IMAGE_RESIZE_IMPLEMENTATION #include <stb_image_resize.h> namespace chainblocks { namespace Imaging { struct Convolve { static CBTypesInfo inputTypes() { return CoreInfo::ImageType; } static CBTypesInfo outputTypes() { return CoreInfo::ImageTy...
de22c4e6718384b280f5824c022f5f4feb90da2d
ab81d1e5bd424e0158e1d6f9bfc464c223050ca1
jjzhang166/WinNT5_src_20201004
/NT/base/fs/remotefs/dfs/tools/dfsapi/dfsapi.cxx
C++
cxx
71,920
no_license
//+------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1998 - 1998. // // File: Main.CXX // // Contents: Main file for DfsApi // // History: 11-Mar-98 MariusB Created // 10-Dec-98 MariusB Minor fixes //...
b54011ecef8646272cd1541807154bc2bd3b48b5
fc7a8fcc60bd6f253ab89ba3cf0a4e658b62c016
prodongi/Bread
/Client/Renderer/Source/BreadNavigation.cpp
C++
cpp
1,423
no_license
/* BreadNavigation.cpp Copyright (c) prodongi. All rights resserved. */ #include "BreadNavigation.h" #include "BreadNavigationHeap.h" #include "BreadTerrain.h" #include "BreadTerrainCell.h" namespace Bread { /* */ cNavigation::cNavigation() : m_sessionId(-1) { } /* */ cNavigation::~cNavigation() { } /* ...
5c7eb99c0f1f6cc1eb8c793bdcb11c4c2c84b1d7
43f473a3f889c6e73af8fe91d531a93a146360a0
guangkuan/C--Primer-5th
/Chapter13/test13.58.cpp
C++
cpp
503
no_license
#include <iostream> #include <vector> #include <algorithm> using namespace std; class Foo{ public: Foo sorted() &&; Foo sorted() const &; private: vector<int> data; }; Foo Foo::sorted() && { cout << "右值引用版本" << endl; sort(data.begin(), data.end()); return *this; } Foo Foo::sorted() const & ...
002ece9add109039592d8d28ea196c5f69a30f35
441ec1a09af1a07924ac479009607548e4e0038e
houlian0/gdal
/gdal/frmts/ozi/ozidataset.cpp
C++
cpp
23,148
permissive
/****************************************************************************** * $Id$ * * Project: OZF2 and OZFx3 binary files driver * Purpose: GDALDataset driver for OZF2 and OZFx3 binary files. * Author: Even Rouault, <even dot rouault at mines dash paris dot org> * *************************************...
fd3ef08e5c514f004de73cfb49510b26fe80c9bc
8932127c20b297b83007a731e4058b22b2d29c36
free-info/NTRTsim
/src/dev/btietz/hardwareLearning/AppTetraSpineHardwareLearning.cpp
C++
cpp
3,584
permissive
/* * Copyright © 2012, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed * under the Apache License, Version 2.0 (the "License"); * you may not use t...
44136329edd8da7074b89f23e3762d10c7dd9d99
cd4ba8c74ec2144445d5c2c66fc12354f9fcb79b
he643042156/MusicDownloader
/MusicPlayer/cookiejar.cpp
C++
cpp
263
no_license
#include "cookiejar.h" CookieJar::CookieJar() { } CookieJar::~CookieJar() { } QList<QNetworkCookie> CookieJar::getCookies() { return allCookies(); } void CookieJar::setCookies(const QList<QNetworkCookie> &cookieList) { setAllCookies(cookieList); }
d6dc0476f907296cdf62a11a35acfb660c3ed165
0dae14c884b75c35c93b0bf2305bb938570fa7ee
yangacer/agent
/detail/log_impl.hpp
C++
hpp
892
no_license
#ifndef AGENT_LOG_IMPL_HPP_ #define AGENT_LOG_IMPL_HPP_ #include <ostream> #include <boost/shared_ptr.hpp> #include <boost/asio/io_service.hpp> #include <boost/thread.hpp> #include <boost/enable_shared_from_this.hpp> class logger_impl : public boost::enable_shared_from_this<logger_impl> { public: logger_impl(); ...
79a2a29b7afa7b01e507f17288d99eeda32289d6
a5145e80c073f433221d0e0106ff128f3d868faf
satsukisahi/AtCoder
/01solved/ABC-F/abc143-f.cpp
C++
cpp
724
no_license
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) int main() { ll n ; cin >> n ; vector<ll> hist(n+1); vector<ll> ans(n+1); vector<ll> num; rep(i, n){ ll aa; cin >> aa; hist[aa]++; } for(auto b:hist){ if(b!=0)num.push_back(b); } sort(num.begi...
bb15fe1977fb3c209429ead69542af6f094ae3de
f8339a929f3fdd702957f1af58920f4a6bfdeef4
xoravi/Assignments-and-Lab-Work
/Advanced Programming Lab/R1 - Ford Fulkerson Algorithm/17COB085-Ravi-R1.cpp
C++
cpp
2,755
no_license
//Name: RAVI SAHNI //Faculty No.: 17 COB 085 //Enrollment No.: GJ 7718 //Serial No.: 024 //Course Code: COC3960 (Advanced Computing Lab) //Experiment R1: Given a flow network, W.A.P. to find the maximum flow using FORD-FULKERSON Algorithm #include <iostream> using namespace std; int frnt=-1, rear=-1, q_size...
776e26e21052429ace41542bffc3690d6a278632
e9053f839c5d08a73e89fe00e5b9b909e1f76266
SymbianSource/oss.FCL.sf.mw.uiresources
/uiresources_pub/pictograph_api/tsrc/src/akniconutilsext.cpp
C++
cpp
2,006
no_license
/* * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" * which accompanies this distribution, and is available * at the URL "http://www.eclipse.org/legal/epl-v10.h...
4ea328aff12cffa9b5a8bacd9d722f42b8ae8a28
e3695dfb1b653be7b629151c5ca65009cff023a1
mukunda-/The-Unbound-Project
/dev/source/video/shaders/ScreenShader.cpp
C++
cpp
3,163
no_license
//============================ The Unbound Project ==========================// // // //========== Copyright © 2014, Mukunda Johnson, All rights reserved. ==========// #include "stdafx.h" #if 0 namespace Video { namespace Shaders { //-----...
0adf14b20fee77c5c1d5a78f23ff7b5168018abf
42c82616038de3939339446ea4da337435c23fa8
AnjaliAPT/C-Competetive-Programming
/Array/modified_bubble_sort.cpp
C++
cpp
691
no_license
#include<bits/stdc++.h> using namespace std; void modifiedBubbleSort(int arr[], int n) { bool found; for(int i = 0; i < n; i++) { found = false; for(int j = 0; j < n - i - 1; j++) { if(arr[j] > arr[j + 1]) { swap(arr[j], arr[j + 1])...
c39062a458a169c154ba0d4cac32e2d1875e5253
45faa8f5438fa38c63fe14b9ba8710ee480f3975
CadQuery/pywrap
/opencascade/TopOpeBRepBuild_ShellFaceSet.hxx
C++
hxx
3,125
permissive
// Created on: 1993-06-16 // Created by: Jean Yves LEBEY // Copyright (c) 1993-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GN...
8dbd4f3cafb012f4b7d8b1f64488d6b7df142353
b782129b4fff18e5aa3c525d98eda7db5c5c9e1b
sc2ad/BeatSaber-Quest-Codegen
/include/System/Runtime/Remoting/Activation/IConstructionReturnMessage.hpp
C++
hpp
2,110
permissive
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Runtime.Remoting.Messaging.IMethodReturnMessage #include "System/Runtim...
e18f381dac170c67442183722bab019a1c3f3f79
9a70fe0b53b91995cb1404e03ab1a5f103ee9b4f
Peter-Pan-001/Data_Structure
/Fibonacci Search.cpp
C++
cpp
4,814
no_license
#include<iostream> #include<stdlib.h> #include<windows.h> #include<time.h> using namespace std; bool Isincreasing(int *A,int n1); void Binarysearch(int *A,int n1,int k1); int Fbnqsearch(int *A,int m1,int k1,int *fib); void Createfbnq(int n,int *f); static int count1,count2; void Createfbnq(int n,int *f){ ...
07d45e2aa3bcdfbdf70153d9007707968e0bad7d
5f16d348b102d4c50bd339a96df36d70c14e6aba
projectceladon/compute-runtime
/unit_tests/gen9/cmd_parse_gen9.cpp
C++
cpp
2,627
permissive
/* * Copyright (C) 2017-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "unit_tests/gen_common/gen_cmd_parse.h" #include "gtest/gtest.h" using GenStruct = NEO::GEN9; using GenGfxFamily = NEO::SKLFamily; #include "unit_tests/gen_common/cmd_parse_base.inl" #include "unit_tests/gen_common/cmd_...
f6c61f71316fb8624dec0be33150e0ffdbd97b75
bdf59c25c05c069fef292a3bf7163086f2692d86
strigazi/athena
/MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonHoughPatternEvent/src/MuonHoughTransformer_CurvedAtACylinder.cxx
C++
cxx
10,324
permissive
/* Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ #include "MuonHoughPatternEvent/MuonHoughTransformer_CurvedAtACylinder.h" #include "CxxUtils/sincos.h" #include "GaudiKernel/MsgStream.h" #include "AthenaKernel/getMessageSvc.h" MuonHoughTransformer_CurvedAtACylinder::MuonHoughTransformer...
c89c9e84bf549cc5f84cd52f189c8bab52f4d223
4823c4a5e0fb172ffd5bc849d0baad0aef3a4694
tthheusalmeida/URI_Online_Judge
/C++/2482.cpp
C++
cpp
703
no_license
#include <bits/stdc++.h> using namespace std; int main() { int qtd; string language, phase, name; map<string, string> myMap; map<string, string> :: iterator it; cin >> qtd; for (int i = 0; i < qtd; i++) { cin >> language; getchar(); getline(cin,phase); myMap[lang...
484c0cf033f8a9672c1ea2aebdc577f0d24bfff8
8cc3fd20cd70f1c0ad68b4e72d8fff440e50420b
DylanTheWise/CS-215
/pa4/board.cpp
C++
cpp
8,111
no_license
// Dylan Wise // CS 215-001, Spring 2014 // Programming assignment 4 // 27 April, 2014 #include <iostream> #include <vector> #include <ctime> #include "board.h" #include "positionlist.h" #include "position.h" using namespace std; // the constructor for the minesweeperboard, there is NO default constructor MineSweeperB...
86b07fd285f82af6b8236f0d29d264e7c9d670a5
75af81f9ec0b0ccc4507724bfe0c0eb5e97a936d
berubeje/TextAdventure
/JesseBerube_TextAdventure/JesseBerube_TextAdventure/Note.cpp
C++
cpp
1,201
no_license
#include "Note.h" #include <iostream> #include "DatabaseManager.h" //Note::Note(int loc, std::string name, std::string noun, std::string info, std::string writing) // :Item(loc, name, noun, info), writtenOnNote(writing) //{ //} Note::Note() { validVerbs.push_back("READ"); } Note::~Note() { } //Note does not need a...
a47e2440cb254524f87cb41f7373bf22eef41f88
29cea648c6e4e72eaaa87a6903636ff8e31f74df
LRih/UVa-Problems
/src/429 Word Transformation.cpp
C++
cpp
2,108
no_license
#include <cstdio> #include <cstring> #include <iostream> #include <queue> #define MAX_WORDS 200 #define WORD_LEN 15 using namespace std; int wordCnt; char words[MAX_WORDS][WORD_LEN]; bool visited[MAX_WORDS]; int start, end; struct agent { int index, steps; }; bool isConnected(char w1[], char w2[]) { int len...
b450081d06f04602208a40e5096bc741e6f2a6e4
1b4ab0bbc18534403d183cc8af2d5d3a037bd70a
Rudra-Trivedi/FPP-Shooter
/Source/FPSGame/Private/BlackHole.cpp
C++
cpp
1,967
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "BlackHole.h" #include "Components/SphereComponent.h" #include "Components/StaticMeshComponent.h" // Sets default values ABlackHole::ABlackHole() { // Set this actor to call Tick() every frame. You can turn this off to improve...
39fa8602b02259c472a3d6cf3dc4d38796751e25
3690f42f5803ddb51c60f41f9c24700015c189a5
yebanxinghui/leetcode
/T32.cpp
C++
cpp
1,388
no_license
class Solution { public: int longestValidParentheses(string s) { int maxans = 0; stack<int> stack; stack.push(-1); for (int i = 0; i < s.length(); i++) { if (s[i] == '(') { stack.push(i); } else { stack.pop(); if...
adf8847f0135152cd2a6083c34961787437cd7ab
f37abdf731dca5e2948a888b111fdce05bd6e503
perrozzi/cmg-cmssw
/TrackingTools/GsfTracking/src/GsfTrajectorySmoother.cc
C++
cc
10,200
no_license
#include "TrackingTools/GsfTracking/interface/GsfTrajectorySmoother.h" #include "TrackingTools/GsfTracking/interface/MultiTrajectoryStateMerger.h" #include "TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h" #include "DataFormats/GeometrySurface/interface/BoundPlane.h" #include "TrackingTools/T...
ad6ed8ad85489a52bbe5a5d1469cb9d2e6c85722
5aef452b03429f2c95cdae3b1219864275cb18b3
Sifum/C-plus-plus-Learn
/第二十七章文件流输入输出/cin用c风格输入到字符串.cpp
C++
cpp
1,370
no_license
#include <iostream> #include <iomanip> using namespace std; /* C++流类: cout 标准输出流 cin 标准输入流 cerr 用于显示错误信息的标准输出流 fstream 用于操作文件的输入和输出流,继承了ofstream和ifstream ofstream 用于操作文件的输出流类,即用于创建文件 ifstream 用于操作文件的输入流类,即用于读取文件 stringstream 用于操作字符串的输入和输出流类,继承了istringstream和ostringstream,通常 用于在字符串和其他类型之间进行转换 控制符: endl 插入换行符 ends 插入空...
d266b9ede818a997804595edf14669dbf5b47c37
fed37eb4c9e9c752bd3d7cd7b4d551cc50e12a62
vins13pattar/osrm-backend
/third_party/libosmium/include/osmium/util/progress_bar.hpp
C++
hpp
6,390
permissive
#ifndef OSMIUM_UTIL_PROGRESS_BAR_HPP #define OSMIUM_UTIL_PROGRESS_BAR_HPP /* This file is part of Osmium (http://osmcode.org/libosmium). Copyright 2013-2017 Jochen Topf <jochen@topf.org> and others (see README). Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, ...
12c37e964438e046c98f6d46ef10b0642e0a59e3
eba5c6d3e155c9ac0268f2866c94d10c3fe339be
konradkiss/meshloop
/Engine/source/T3D/guiMaterialPreview.cpp
C++
cpp
14,127
no_license
//----------------------------------------------------------------------------- // GuiMaterialPreview Control for Material Editor Written by Travis Vroman of Gaslight Studios // Updated 2-14-09 // Portions based off Constructor viewport code. //-----------------------------------------------------------------------...
3279da4a99918e6370d753cc7ecf402b500eb59a
524be9bf9ff77e169597f00e2149320733be38e5
biebipan/coding
/third_part/testing/gtest/src/gtest_main.cc
C++
cc
2,213
no_license
// Copyright 2006, Google 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: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
f5a17f6b29e0badf010006eab7b7669fd6c5a85b
233f3b8be3af034077e54f3b7385cb3758711334
yuchienhsiao/rtabmap
/corelib/src/Graph.cpp
C++
cpp
56,678
no_license
/* Copyright (c) 2010-2014, Mathieu Labbe - IntRoLab - Universite de Sherbrooke 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 ...
a0231b88f35037e6a785285d04294673ef5b71e9
173bfdc75a3f564bcc015fe6d9c13ff1689b7671
msuchard/nt2
/modules/boost/simd/ieee/cover/scalar/saturate_at.cpp
C++
cpp
2,650
permissive
////////////////////////////////////////////////////////////////////////////// /// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...
e8f298c8549ecac3bb252634c51fae8efae0e063
d1f214eb7320e1c5ee1fa2cde025acce9cead7e8
speakingrooman/Inheritance
/CheckingAccount.cpp
C++
cpp
738
no_license
// // CheckingAccount.cpp // Assignment2 // // Created by Rooman Zahid on 9/28/18. // Copyright © 2018 Rooman Zahid. All rights reserved. // #include <stdio.h> #include <iostream> #include "Account.h" #include "CheckingAccount.h" using namespace std; CheckingAccount::CheckingAccount(double bal,double fee) :Accoun...
2d7926901ed675dd5a557e0479169819463ef519
1796ac842be560bc6302b0e80e3bcd4591f840c4
mhiramat/armnn
/src/armnn/optimizations/Optimization.hpp
C++
hpp
3,741
permissive
// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include "Graph.hpp" #include "LayersFwd.hpp" #include <armnn/utility/PolymorphicDowncast.hpp> namespace armnn { class Optimization { public: Optimization() = default; virtual ~Optimization() = default; ...
d966bbda201b46f88c149a0873241dd83535e343
6c70229873103100e7dca4ade8d939fccdc5ccf2
0xecho/KattisSubmissions
/estimatingtheareaofacircle.cpp
C++
cpp
860
no_license
#include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <cmath> #include <cstring> #include <chrono> #include <complex> #define endl "\n" #define ll long long int #define vi vector<int> #define vll vector<ll> #define vvi vector < vi > #define pii pair<int,int> #define pll pai...
16109404a3bf019f3109f4c4afff60daa2747032
95d02ae78ff9e3ad455f76f7a3e35c063faa14eb
trikset/trik-studio
/plugins/robots/interpreters/interpreterCore/src/coreBlocks/details/timerBlock.cpp
C++
cpp
1,221
permissive
/* Copyright 2007-2015 QReal Research Group * * 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...
f46421facb4c3607f0392761097d4ac53371bc50
7dd362d7504a36a7bf16fcf992fb7d467a0c2c23
WhiZTiM/coliru
/Archive2/f3/6f04fea1fc8936/main.cpp
C++
cpp
232
no_license
#include <iostream> #include <string> #include <vector> template<typename T> std::ostream& operator<<(std::ostream& os, const std::vector<T>& vec) { for (auto& el : vec) { os << el << ' '; } return os; } i
20ebbf0534422258396052b3f0ad929d6617f9ef
7f3d850297223ab16e7940c0535a1d93153eded9
warrenween/Elastos
/Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/telecom/InCallService.cpp
C++
cpp
5,604
permissive
//========================================================================= // Copyright (C) 2012 The Elastos 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 // // ...
d1a0f4b8baa9ae8cfde850b5b3133f83bdb781f7
782cb66cc4f3a158e0548f54e5c23c68c95dda2f
rickBuczynski/Base2
/src/sounds.cpp
C++
cpp
1,433
no_license
#include "sounds.h" #include <string> #include <list> #include <stdio.h> #include <iostream> #include "SFML/Audio.hpp" void sounds::loadShots() { std::list<std::string> names; names.push_front("gunShot"); names.push_front("railLase"); names.push_front("missileLaunch"); for(std::list<std::string>::iterator it...
d25bbaa6fcac9f1103bba0d88d1730cb469dbfca
10967f183c1aa14369da89eae3abf8919a71c657
KDE/okteta
/gui/test/selectiontest.hpp
C++
hpp
709
no_license
/* This file is part of the Okteta Gui library, made within the KDE community. SPDX-FileCopyrightText: 2006 Friedrich W. H. Kossebau <kossebau@kde.org> SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef SELECTIONTEST_HPP #define SELECTIONTEST_HPP // Qt #in...
47b94f8cbd5dcfed8c9b87a03b92d719d8688d61
544b5337ab2f80c2ac89e5022910883e72e2f721
anshu3012/Kilobot_Buddies
/sim_data_structures.cpp
C++
cpp
43,099
permissive
/* # The MIT License (MIT) # # Copyright (c) January, 2015 michael otte # Copyright (c) April, 2020 michael otte, University of Maryland # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software with...
05e2223264d24e261e27e60e89d7cf96f1c1ce0f
35068ebcdca2ee6657aa6bb11aad8248e259e354
aharthcock/phantomjs
/src/qt/qtwebkit/Source/WebCore/html/canvas/WebGLShader.cpp
C++
cpp
2,062
permissive
/* * Copyright (C) 2009 Apple 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 code must retain the above copyright * notice, this list of conditions a...
dd170fdb54a49366aa3ff324ff6b3b53fcd58d94
86797ad7dc2da5786c0004e083ea67216a394d8d
enkimute/gal
/test/test.cpp
C++
cpp
1,501
permissive
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include <doctest/doctest.h> // Cheat sheet // TEST_SUITE_BEGIN defines the start of a scope of tests grouped under a suite // TEST_SUITE_END ends the test suite scope // TEST_CASE defines a test case and takes a string name // After the test name, the * operator can be use...
134378fd2e1b9b167883201b4de5c2762da8bd57
d4037d8aa3e2655b3c6145ef90fc36dbbaac032e
sillsdev/masterinstaller
/Code and Projects/SfConverterPreinstall.cpp
C++
cpp
1,158
no_license
#pragma once #include <tchar.h> // Handle important stuff prior to installing SF Converters int SfConverterPreinstall(SoftwareProduct * Product) { g_Log.Write(_T("Starting SF Converter preinstallation function...")); g_Log.Indent(); // We need to copy the VER.DLL file in the installation source folder t...
646ced016c75fc83b41300f812f819058851c416
0a9f6a00c57edccbc7238ea6443fb92bf651c3c0
pieper/Slicer3-shallow
/Modules/Pharmacokinetics/vtkMRMLPharmacokineticsCurveAnalysisNode.cxx
C++
cxx
9,385
permissive
#include <string> #include <iostream> #include <sstream> #include <map> #include "vtkObjectFactory.h" #include "vtkMRMLPharmacokineticsCurveAnalysisNode.h" #include "vtkMRMLScene.h" //------------------------------------------------------------------------------ vtkMRMLPharmacokineticsCurveAnalysisNode* vtkMRMLPharm...
b4c4cb1fb0c6b76b89440c0175ccb5de6c7d5638
a9c31505bef6198c8380c737e4cb582931ff5d7c
techtonik/chromium
/chrome/browser/sync/sessions/page_revisit_broadcaster.cc
C++
cc
4,284
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 "chrome/browser/sync/sessions/page_revisit_broadcaster.h" #include <string> #include <vector> #include "base/metrics/field_trial.h" #include "c...
f3c9c0b8e9202bdc7d123d6d26b694c76e0e4a91
a1bbd958023da9aad3a813bc09510ea02f17da54
Flexiblecoin/Flex
/src/rpcrawtransaction.cpp
C++
cpp
20,294
permissive
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include "base58.h" #include "bitcoinrpc.h" #inclu...
51fd147595f5569bed85cbedaeefccc8df5495ac
31fa5f98569c76056b58752c5a39e2f04ce2bdf6
huynh-vch/code_c
/chuong04_manghaichieu/Bai074.cpp
C++
cpp
1,293
no_license
#include <iostream> #include <iomanip> #include <ctime> using namespace std; void Nhap(int[][100], int &, int &); void Xuat(int[][100], int, int); bool TonTaiChan(int[][100], int, int); int SoChanDauTien(int[][100], int, int); int main() { int k; int l; int b[100][100]; Nhap(b, k, l); cout << "\nMa tram ban dau ...
31e0260444613e121608f4ccbeb67a0f7ac571d2
4912eb09b859d7eaec19823102e01f749c91079d
lorenzopagnanini/PulseShapeGeMPI
/sources/computeParameters.cpp
C++
cpp
3,995
no_license
//g++ -o DisplayPulses displayPulse.cpp `root-config --cflags --glibs` #include <iostream> #include <fstream> #include <algorithm> #include <cstdlib> #include <string> #include "TTree.h" #include "TDirectoryFile.h" #include "TFile.h" #include "TTreeIndex.h" #include "TKey.h" #include "TH1F.h" #include "TGraph.h" #incl...
8b85d6147b7827e4f5bd196f7f0c6e0843022533
f30bccac646b1907faca7fd249a112e6a13e1314
sarthak11yadav/leetcode
/array/76.cpp
C++
cpp
968
no_license
class Solution { public: string minWindow(string s, string t) { vector<int>ve(128,0);int c=t.size(),end=0,startind,length=INT_MAX,st=0; for(auto x:t) ve[x]++; while(end<s.size()) { if(...
75bef8b300a07991a56a5a1e7a22456562923841
5926d9e53f63ac90c1f51b351607ab4b51f43437
sonnickoo/mu-server-ex
/Source/GameServer/ChaosCard.cpp
C++
cpp
2,021
no_license
#include "StdAfx.h" #include "ChaosCard.h" #include "ChaosBox.h" #include "LogProc.H" #include "DSProtocol.h" #include "Functions.H" #include "SendProto.H" CChaosCard gChaosCard; CChaosCard::CChaosCard(void) { } CChaosCard::~CChaosCard(void) { } void CChaosCard::ChaosCardMix(LPOBJ lpObj) { ...
6b19dc8fe11af23183d1f7e3193f172377a3f44f
218792d367b9322f7676e4f32ff7abf547767db2
kamyu104/LeetCode-Solutions
/C++/insert-interval.cpp
C++
cpp
896
permissive
// Time: O(n) // Space: O(1) class Solution { public: vector<vector<int>> insert(vector<vector<int>>& intervals, vector<int>& newInterval) { size_t i = 0; vector<vector<int>> result; // Insert intervals appeared before newInterval. while (i < size(intervals) && newInterval[0] > int...
75cc6b8cb9fd619679dd9a2fe4ffc80bac3fd86a
c80cd5a29f6a24ceb144d9267aab0e4fe3aa2686
fansNvidia/tensorflow
/tensorflow/python/eager/pywrap_tfe_src.cc
C++
cc
118,842
permissive
/* Copyright 2017 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...
c7a5c8748071442cb73f7e92533fc157fe4636e9
256db2bc19b1dfed9bb3ad9b2885680b8376baab
adikolo/visiblesim
/BlockSimulator-MT2/applicationsSrc/coloration_v2/neighbor_finding.cpp
C++
cpp
3,861
no_license
#include "neighbor_finding.h" #include <iostream> #include <cassert> using namespace std; using namespace neighbor_finding; ////////////////////////// // class RouteSearchMsg // ////////////////////////// RouteSearchMsg::RouteSearchMsg( list<Coordinates> searched_blocks_list, Coordinates origine, unsigned...
6a178b294c8f6b71a5c4da5843d855caec818c8d
60f459d9fea40dfc07cada11914b86bb824a4bf1
rborawski/pmdk
/src/benchmarks/poolset_util.hpp
C++
hpp
1,871
permissive
/* * Copyright 2018, Intel Corporation * * 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 list of conditions and the f...
c09304b031b815364a3ec5bb6e38ea7e88b45ab0
d169c3a63c634f8bf7b46f37e7f5570ab23bb5ad
mojmir-svoboda/DbgToolkit
/trace_server/widgets/gantt/ganttconfig.cpp
C++
cpp
972
permissive
#include "ganttconfig.h" #include <boost/serialization/type_info_implementation.hpp> #include <boost/archive/xml_iarchive.hpp> #include <boost/archive/xml_oarchive.hpp> #include <boost/serialization/utility.hpp> #include <boost/serialization/serialization.hpp> #include <boost/serialization/vector.hpp> #include <seriali...
f6c703e80039f75a8c9151eeae85ae96b6ab44a4
51b401c2fff19550bc3b2e4141ab38c878777892
baquerrj/ECEN5623
/exercises/Time-Lapse_Image_Acquisition/code/src/server/server.cpp
C++
cpp
4,902
permissive
#include <FrameCollector.h> #include <FrameProcessor.h> #include <FrameSender.h> #include <RingBuffer.h> #include <Sequencer.h> #include <SocketBase.h> #include <SocketServer.h> #include <V4l2.h> #include <cleanup.h> #include <fcntl.h> #include <logging.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #in...
871bff37f8e23b0002f09bd5ce45038e4a632686
32712f48e79b741861852c9bcb260284f6f1c07d
tschissler/nf-lib
/nf-lib/Stubs/nf_lib/nf_lib_nf_lib_Display_LiquidCrystal_I2C_mshl.cpp
C++
cpp
854
no_license
//----------------------------------------------------------------------------- // // ** DO NOT EDIT THIS FILE! ** // This file was generated by a tool // re-running the tool will overwrite this file. // //----------------------------------------------------------------------------- #include "nf_lib.h" #inclu...
3546b79c2a4320ed8e22afb56541fe98b0f18ff1
24cbee0009e5cec36c7b9ab503866cdf97e3913b
coreMember/studyNewTechnique
/ta/MeterBar.cpp
C++
cpp
1,681
no_license
// // MeterBar.cpp // MyCppGame // // Created by たかふく on 2014/10/18. // // #include "MeterBar.h" using namespace cocos2d; using namespace CocosDenshion; using namespace std; // 初期化 bool MeterBar::init() { if(!Node::init()) { return false; } _speed = SPEED_NORMAL; createBar(); ...
46cf27f85cd01c73772d2fb8c3df1588ef5e51d0
b1d8552393aeaf685534328253225f32df4dce7e
DV1537/assignment-a2-Willielilja
/home/home/main.cpp
C++
cpp
322
no_license
#include "Point.h" #include "Shape.h" #include "Polygon.h" #include "Rectangle.h" #include <iostream> #include <fstream> #include <cmath> using namespace std; int main() { Polygon* foo = new Polygon(); /*foo = new Polygon[];*/ cout << endl; Rectangle* boo = new Rectangle(); system("pause"); return 0;...
24df5d873b07a6a601f98bfbf48d031d8238bbcc
76f8a4aa96c03926d85f9ef130a9a8649fb422ff
tido64/rainbow
/src/Tests/FileSystem/FileSystem.test.cc
C++
cc
2,829
permissive
// Copyright (c) 2010-present Bifrost Entertainment AS and Tommy Nguyen // Distributed under the MIT License. // (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) #include "FileSystem/FileSystem.h" #include <cstring> #include <gtest/gtest.h> #include "Tests/TestHelpers.h" #ifdef RAINBOW...
4477bd9cafb25c38a946e88db340b15473fdebcf
6b359af80deaa077b764ee107222ef6fd7aeb266
Rafal14/pamsi
/lab1/zad123/inc/Tablica.hh
C++
hh
655
permissive
#ifndef TABLICA_HH #define TABLICA_HH #include <iostream> /* * Prototypy funkcji * */ using namespace std; /* * Wczytuje tablice jednowymiarowa z pliku tekstowego * */ int* Wczytaj_z_pliku_tekst( const string &NazwaPlik, int &wielkosc); /* * Wczytuje tablice jednowymiarowa z pliku binarnego * */ //i...
d0635f91d3e2c577875ab556bfd96858c63c2674
51b8bb45f4f0db9c10d6f7509a73a7b483bfab1f
hugoam/two
/src/bind/gltf.c.cpp
C++
cpp
30,782
permissive
#include <infra/Api.h> #include <type/Api.h> #include <refl/Api.h> #include <srlz/Api.h> #include <math/Api.h> #include <gltf/Api.h> #ifdef TWO_PLATFORM_EMSCRIPTEN #include <emscripten.h> #define DECL EMSCRIPTEN_KEEPALIVE #else #define DECL #endif extern "C" { // glTFNodeExtras two::Type* DECL glTFNodeExtras__ty...
8ea67b384c35fbffb82bc29b8e6ea8ecc17398f3
ef06bf2e14ce9d418252bd063b44d8cbf2a32193
HungMingWu/exp_httpsclient
/beast/boost/beast/core/detail/get_io_context.hpp
C++
hpp
2,138
no_license
// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/beast // #ifndef BOOST_BEAST_...
92cb4998cf8d522b82346c1534cd67db077a16af
7493b9d54d4f2d7ea31e087a5e9597fa01b3eef8
deepakn97/Competitive-Programming
/Spoj/ABCPATH.cpp
C++
cpp
1,647
no_license
#include <iostream> #include <vector> #include <algorithm> #include <queue> using namespace std; // loops #define all(v) (v).begin(),(v).end() #define rall(v) (v).rbegin(),(v).rend() #define fast_io ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); const int N = 51; char g[N][N]; int vis[N][N]; int dist[N][N...
d00d95f34328c8d789a2501d2a6e7539fe11df15
1c8be053eb0521970af21c27e6f9e1d9edd72f2d
chuongvhn/SEP_2020_BOSCH_CPP_DESIGN_PATTERNS
/Examples_In_CPP/06_Abstract_Factory/main.cpp
C++
cpp
3,692
no_license
#include <iostream> #include <stdio.h> #define CLRSCR system("clear"); #define LINE cout << "------------------------------------------------------------------" << endl; using namespace std; // Product-1 interface (in Diagram - Connection) struct Printer { virtual void print() = 0; virtual ~Printer() { ...
497e2ad6f56e7439a40d91dd21b3772af65d4155
17c2662dae82e8cff03686071fec9469040296d5
Amazing95/ObjectARXMod
/2004/samples/com/AsdkPlainComSamp_dg/AsdkPlainComDocSamp.cpp
C++
cpp
7,315
permissive
// // (C) Copyright 1999-2002 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and the limited ...
eafec0d3fa1ff9041dbe2b35afadc0b9052eda45
18255d950e3191ba9d69b4570f9176f418d84b46
ssln2014/chromium
/media/filters/chunk_demuxer.cc
C++
cc
48,189
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/filters/chunk_demuxer.h" #include <algorithm> #include <limits> #include <memory> #include <utility> #include "base/bind.h" #include...
03f507e77ea3f44d48f4bf5d1acdb12e1011e728
03589ded5f3ab7292a83c1da65db51adac627be9
anomous/Mastering-Delphi-Programming-A-Complete-Reference-Guide
/Chapter08/Abbrevia/source/hpp/iOSSimulator/Release/AbBitBkt.hpp
C++
hpp
2,801
permissive
// CodeGear C++Builder // Copyright (c) 1995, 2016 by Embarcadero Technologies, Inc. // All rights reserved // (DO NOT EDIT: machine generated header) 'AbBitBkt.pas' rev: 31.00 (iOSSIM) #ifndef AbbitbktHPP #define AbbitbktHPP #pragma delphiheader begin #pragma option push #pragma option -w- // All warnings off...
cd9288dd24b9777d9b1e9882d85baa486b3b7d62
cd459471eddb37258546ece8a07e88a0b15bd9e0
mpsitech/wzsk-Whiznium-StarterKit
/apiwzsk/PnlWzskLlvHeadbar.cpp
C++
cpp
4,645
permissive
/** * \file PnlWzskLlvHeadbar.cpp * API code for job PnlWzskLlvHeadbar (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Emily Johnson (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE #include "PnlWzskLlvHeadbar.h" using namespace std; using namespace Sbecore; u...
4e7975ded8bd19bd583342d42bfa7692bb92a8e8
7caa72e5171615d7419d785c657f44a06f5bf3f2
Qyuan926/pracode
/sortedArrayToBST/sortedArrayToBST/sortedArrayToBST.cpp
C++
cpp
782
no_license
#define _CRT_SECURE_NO_WARNINGS 1 #include<iostream> #include<vector> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; }; //前序遍历的思想 TreeNode* _sortedArrayToBST(vector<int>& nums, int begin, int end) { if (begin>end) { return nullptr; } //找出数组中间的位置,为树的根 int mid = (begin ...
f39920c6cc49361f4e88a00025a389d918d7c982
79f9b56e28c8ab201249079553ff028424206b16
CU-0xff/juliet-cpp
/000/083/451/CWE190_Integer_Overflow__int_listen_socket_add_82_goodB2G.cpp
C++
cpp
1,201
no_license
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_listen_socket_add_82_goodB2G.cpp Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-82_goodB2G.tmpl.cpp */ /* * @description * CWE: 190 Integer Overflow * BadSource: listen_socket Read data using a list...
55c342bb606d32069ec38c5aa63049309e62d713
5454ead8bae3bcee03a4b569cc91f5d337867354
mania14/ARCTIC
/GameEngine/FBXUtill.cpp
C++
cpp
9,438
no_license
#include "stdafx.h" #include "../CommonUtil/Macro.h" #include "Mesh.h" #include "FBXUtill.h" //FbxManager* FBXUtill::pManager = nullptr; //FbxScene* FBXUtill::pScene = nullptr; FBXUtill::FBXUtill() { //Init(); } FBXUtill::~FBXUtill() { Release(); } bool FBXUtill::Init() { // Prepare the FBX SDK. pManager = FbxM...
49322d5710070c698634d285b174144eafaa009e
89cd8887c4175825fad5892d5b0f88aca1141870
Sabbir1234/Problem-Solving
/C. Linova and Kingdom.cpp
C++
cpp
767
no_license
// CPP program to illustrate // std :: lower_bound #include <bits/stdc++.h> // Driver code int main() { // Input vector std::vector<int> v{ 10, 20, 30, 40, 50 }; // Print vector std::cout << "Vector contains :"; for (unsigned int i = 0; i < v.size(); i++) std::cout << " " << v[i]; std:...
6e5287328543f8707bd96788c2918a34b71c4299
328febb5cf6e9bd90bb3fa25d44534cfee427cc7
zhaozg/LuaState
/test/get_test.cpp
C++
cpp
3,324
permissive
// // get_tests.h // LuaState // // Created by Simon Mikuda on 16/04/14. // // See LICENSE and README.md files #include "test.h" ////////////////////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { // We create state and variables lua::State sta...
997637704b51007d9820aacd0f59554ae56e4436
7df63db1bc5a071bd01cf436e96f6ea71b2af844
cbrl/Path-ORAM
/src/main.cpp
C++
cpp
2,643
no_license
#include "path_oram.h" #include <iostream> #include <unordered_map> int main() { using ORAM = PathORAM<12, 16>; ORAM oram; // Print ORAM metadata //-------------------------------------------------------------------------------- std::cout << "Height: " << +ORAM::height_L << '\n' << "Bucket Count: "...
5b6ff1c2c4e0f4d5dc2069b8ab7258da6d029873
5a2d17ee8cd5d089cf75c254417f2327a2c73163
wuziyou199217/occa
/src/lang/expr/functionNode.cpp
C++
cpp
1,070
permissive
#include <occa/lang/expr/functionNode.hpp> namespace occa { namespace lang { functionNode::functionNode(token_t *token_, function_t &value_) : exprNode(token_), value(value_) {} functionNode::functionNode(const functionNode &node) : exprNode(node.token), ...
0fe35f0f8e834335802a20e43fadb5c47738dde1
34b50c7026fa77d97295637338cf961023ffe0e4
blues/note-arduino
/src/NoteSerial.hpp
C++
hpp
2,588
permissive
#ifndef NOTE_SERIAL_HPP #define NOTE_SERIAL_HPP #include <stddef.h> #include <stdint.h> class NoteSerial { public: /**************************************************************************/ /*! @brief Type used to abstract specific hardware implementation types. */ /************************...
ceb20a54e72f1eb2bf154fde1adcfc2f2d01635d
e6870e2636d9a40166fb6005a0307aaf4ebec411
aliyun-beta/aliyun-openapi-cpp-sdk
/aliyun-api-pts/2015-08-01/src/ali_pts_set_scenario_status.cc
C++
cc
3,096
permissive
#include <stdio.h> #include "ali_api_core.h" #include "ali_string_utils.h" #include "ali_pts.h" #include "json/value.h" #include "json/reader.h" using namespace aliyun; namespace { void Json2Type(const Json::Value& value, std::string* item); void Json2Type(const Json::Value& value, PTSSetScenarioStatusRespons...
052847235a1610764137f9d5f96469b929068dc6
491032df029fcfb52ee9fe77444830b3d9826ae7
novaquark/aws-sdk-cpp
/aws-cpp-sdk-detective/source/model/CreateMembersResult.cpp
C++
cpp
2,004
permissive
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
c6f6ac665e6ab62f13049828fcaa86f3646a06bb
ba71493969eb0f4a946bbe83a349f9b8acfb6cf2
zyzyzy3zy/Fast-DDS
/test/unittest/rtps/history/HistoryTests.cpp
C++
cpp
7,205
permissive
// Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...