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
922076aa6bf020854eae4aecfceb1ffc31db030c
c9a8605b28a910f240e247c3de0749bf04e06625
MontiCore/EmbeddedMontiArc
/generators/EMAM2Cpp/native/armadillo_linux/include/armadillo_bits/unwrap_spmat.hpp
C++
hpp
3,570
no_license
/* (c) https://github.com/MontiCore/monticore */ // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au) // Copyright 2008-2016 National ICT Australia (NICTA) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ...
0a5f25236d27d172edb9ad6b93bcaf4aaab68c7e
e7288ddd615c91f3bc4c7e122778f1a2d31c3c68
mynew4/Circle-Launcher
/src/gui/mainwidget.cpp
C++
cpp
10,035
no_license
#include "mainwidget.h" #include "ui_mainwidget.h" #include <QScrollBar> MainWidget::MainWidget(Settings *_settings, QWidget *parent) : QWidget(parent), ui(new Ui::MainWidget) { ui->setupUi(this); ui->textBrowser->verticalScrollBar()->hide(); ui->textBrowser->horizontalScrollBar()->hide(); set...
fb5028d46b8534616d515bc9f641236e826212b2
85b9aca677c5301025124a3c1efbf4015ddae22f
advaitjain/tensorflow
/tensorflow/lite/tools/benchmark/benchmark_tflite_model.cc
C++
cc
33,746
permissive
/* Copyright 2018 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...
e9a9014360fe8c48afe5a551bdc46cbf1192a377
b5d370674d0d3efd9925d06f8a8dfe4d015e8d6a
kmN666/Leroy
/src/server/game/Handlers/CombatHandler.cpp
C++
cpp
3,068
no_license
/* * Copyright (C) 2012 DeadCore <https://bitbucket.org/selectorcore/deadcore-private> * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Founda...
48188a2ce083e5a8a976cf8a754ae9c73a058cde
aff407c5e42f9a2b3ecd273778f0bc508ec8de28
s910702s910702/Coding-Archive-in-C
/Codeforces/727A.cpp
C++
cpp
519
no_license
#include <iostream> #include <stack> using namespace std; stack<int> route; int main() { int a, b; cin >> a >> b; while(b > a) { if(b % 10 == 1) { route.push(b); b /= 10; } else if(b % 2 == 0) { route.push(b); b >>= 1; } else { break; } } if(b == a) { route.push(a); cout << "Y...
e25de653363a51ca7da30aaac0da59b6f33680ef
f42df6e3402eb48c1952c7892b9b4612ff36829e
m13253/tianocore_uefi_duet_installer
/Linux_Source/C/VfrCompile/VfrUtilityLib.cpp
C++
cpp
94,528
no_license
/** @file Vfr common library functions. Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution...
c12317b69effdb3e9248eb846a0d8e781e3a55d7
7023d545425aaabd6928504965b35e013f919da6
KingRight/example_code
/Chapter09/RecognizeIt v4.0 (softmax)/main.cpp
C++
cpp
6,690
no_license
#include <windows.h> #include <stdlib.h> #include <time.h> #include "CNeuralNet.h" #include "defines.h" #include "CController.h" #include "CData.h" #include "resource.h" #pragma warning (disable : 4089) ///////////////////////GLOBALS //////////////////////////////////// char* szApplicationName = "Chapter9 - ...
38fb34b73fd4bd6406d9533babab0cd5ba5d68fb
01cc0f60a8e302b04cf5c409151d4e520fe86396
weioier/omim
/drape_frontend/apply_feature_functors.hpp
C++
hpp
6,513
permissive
#pragma once #include "drape_frontend/stylist.hpp" #include "drape_frontend/tile_key.hpp" #include "drape_frontend/shape_view_params.hpp" #include "drape/pointers.hpp" #include "indexer/ftypes_matcher.hpp" #include "indexer/road_shields_parser.hpp" #include "geometry/point2d.hpp" #include "geometry/polyline2d.hpp" ...
9045856c8b8c9a1b7347b4f1a817b6e1c91edd9b
1f77e31a837d0d4833a099ddbaa4f5345d5454ef
cran/catSurv
/src/MPWISelector.cpp
C++
cpp
1,465
no_license
#include "MPWISelector.h" #include "ParallelUtil.h" struct MPWI : public mpl::FunctionCaller<Prior> { using Base = mpl::FunctionCaller<Prior>; MPWI(Estimator& e, Prior& p):Base{e,p}{} double operator()(int question) { return estimator.pwi(question, arg); } }; SelectionType MPWISelector::getSelectionType() { ...
4521c0f6713e583735197aa9440228b28cbbea30
959a845fe6259733af77cc2540c67e24c0b4ce8d
kokoasann/UsualEngineR
/Game/Effect/MuzzleFlash.cpp
C++
cpp
2,321
no_license
#include "stdafx.h" #include "MuzzleFlash.h" MuzzleFlash::MuzzleFlash() { } MuzzleFlash::~MuzzleFlash() { } void MuzzleFlash::Release() { DeleteGO(m_effect); } void MuzzleFlash::OnDestroy() { Release(); } void MuzzleFlash::Init(const MuzzleFlashEffectInitData& mfid) { Release(); m_particleLifeTime = mfi...
a0d2ce09fae8d5201ebfe4f88817d59b7b4e318c
4ae5462fb18fca3c97b8407f6e05022aac0ff602
lmvasquezg/Programming-Languages
/clases/clase22/cstr05.cpp
C++
cpp
576
no_license
/* * fichero: cstr05.cpp * * proposito: Mostrar el formato de entrada y salida en C++. Para los tipos * de datos c-string. * * compile: $ g++ -o cstr05 cstr05.cpp * $ make cstr05 */ #include <iostream> #include <cstring> using namespace std; int main(void) { const int MAX = 256; char...
6217cae49865363d7cdb363a3fc8b0f5288c2725
d503db6d41f150fe2cb11766e47cd1ebd79d7193
jordi-chacon/ai-google-contest
/MyBot.cc
C++
cc
912
no_license
#include <iostream> #include <fstream> #include "PlanetWars.h" #include "Attack.h" #include "Defense.h" using namespace std; PlanetWars* pw; GameState game_state; Attack a; Defense d; void DoTurn(int turn); int main(int argc, char *argv[]) { string current_line; string map_data; int turn = 0; // ofstream my...
95ff11a5171bc2ffbbe3a1d4dbf1bb6ff7c1640f
f1c1c1a89d994ff822e6d1482e2d7bd3d2c9c02d
skurdi7/CMCalibration
/PHG4TpcCentralMembrane.cc
C++
cc
24,225
no_license
#include "PHG4TpcCentralMembrane.h" #include <iostream> #include <cmath> #include <vector> #include "TMath.h" #include "TVector3.h" #include "TH2F.h" //from phg4tpcsteppingaction.cc #include <g4main/PHG4Hit.h> #include <g4main/PHG4Hitv1.h> //R__LOAD_LIBRARY(libphg4hit.so) // all distances in mm, all angles in rad /...
723d9b6fef10f5737ee173bc67f60b7d3c1b0b28
c1c342c018c07d936ec815916a5187734d74b099
xissburg/edyn
/include/edyn/constraints/constraint_row.hpp
C++
hpp
1,698
permissive
#ifndef EDYN_COMP_CONSTRAINT_ROW_HPP #define EDYN_COMP_CONSTRAINT_ROW_HPP #include <array> #include "edyn/math/vector3.hpp" #include "edyn/math/matrix3x3.hpp" #include "edyn/config/constants.hpp" #include "edyn/comp/delta_linvel.hpp" #include "edyn/comp/delta_angvel.hpp" namespace edyn { struct constraint_row_option...
ad45f31dd20e8fecc492502c07184d63b796e4f0
5ef5aa17153bfb93282724832b22519d78331fd9
reikonakajima/meshcorr
/src/utilities/BinomFact.cpp
C++
cpp
1,923
no_license
// $Id: BinomFact.cpp,v 1.2 2002-08-16 15:49:44 garyb Exp $ #include "BinomFact.h" double fact(int i) // return i! { Assert(i>=0); static myvector<double> f(10); static bool first=true; if (first) { f[0] = f[1] = 1.; for(uint j=2;j<10;j++) f[j] = f[j-1]*(double)j; first = false; } if (i>=(in...
47d7f618c2100ac241f276d1ab4704012b202028
3997ddcb7663308028b7d7555e724e4efac82634
annjeff/DirectX11_study
/DX11 Base Tutorials/CommonFramework/WindowsApplication.cpp
C++
cpp
2,076
no_license
#include "stdafx.h" #include "WindowsApplication.h" void WindowsApplication::InitializeWindows() { hinstance_ = GetModuleHandle(NULL); application_name_ = L"Engine"; WNDCLASSEX wc; ZeroMemory(&wc, sizeof(WNDCLASSEX)); wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; wc.lpfnWndProc = *windd_proc_; wc.cbClsExtr...
1e71337152cee0b3735baa7e815b89a682e9af84
7938a1cb5639865003cc9cd6d4659666dde055f6
oturan-boga/Windows2000
/private/shell/ext/mlang/convinet.cpp
C++
cpp
9,610
no_license
#include "private.h" #include "jisobj.h" #include "eucjobj.h" #include "hzgbobj.h" #include "kscobj.h" #include "utf8obj.h" #include "utf7obj.h" #include "fechrcnv.h" #include "codepage.h" #include "ichrcnv.h" HRESULT CICharConverter::KSC5601ToEUCKR(LPCSTR lpSrcStr, LPINT lpnSrcSize, LPSTR lpDes...
e88635aecbac46b1e7757245270ceaee70682ac2
aa7c28b86cba830f51679003cb779e841ea7a1c2
ric2b/Vivaldi-browser
/chromium/chrome/browser/apps/app_service/app_icon/app_icon_loader.cc
C++
cc
33,923
permissive
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/apps/app_service/app_icon/app_icon_loader.h" #include <memory> #include <utility> #include "base/bind.h" #include "base/callback.h" #include "base/co...
614cd24717357c2f58a5807c4363d37768b2a048
b8ede8c74a0ab76ff2bd8cd7ae5b1e52a98db655
1547590574/MyBookStore
/OnlineBookStore/main.cpp
C++
cpp
724
no_license
#include "login.h" #include"mainwindow.h" #include"widget.h" #include"register.h" #include"personinfor.h" #include"manager.h" #include <QApplication> #include"QObject" void insetData(){ } int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; // w.show(); Manager m;...
ec16d4aaab1543989cbcf567bca375fc2ae99734
66e6fcb026ac0241940bc70dec60da2578fe7268
rlnx/nestopt
/cpp/nestopt/intervals.hpp
C++
hpp
4,091
no_license
#pragma once #include "nestopt/types.hpp" #include "nestopt/utils/common.hpp" namespace nestopt { class Interval { public: Interval(Scalar x_left, Scalar z_left, Scalar x_right, Scalar z_right) : x_left_(x_left), z_left_(z_left), x_right_(x_right), z_right_(z_right) { } Scalar x...
5daa6b75cee15b68464e621eb31a771404108648
534e20df3e84175a4148e6e50002360f7dfe580e
arangodb/arangodb
/3rdParty/V8/v7.9.317/third_party/icu/source/i18n/collationsettings.cpp
C++
cpp
13,003
permissive
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* * Copyright (C) 2013-2015, International Business Machines * Corporation and others. All Rights Reserved. ******************...
719f42682e5fd76717f257ecfee4182cd6af181f
e649356b2c03d12c4407356f7a41e2753cd0c826
JJHbrams/LocallyAdaptiveSampling
/UncertainKino/uncertain_kinodynamic/src/UncertainKinodynamicPlanner_RRTstar.cpp
C++
cpp
46,208
no_license
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2011, Rice University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
e1e5044d623795bd07e64705b87ae45d1d32f16b
415e12502e6f10cbe29070d306a1be9487d73290
infernalheaven/dc2021f-ooows-public
/devices/utils/virtio.hpp
C++
hpp
9,093
no_license
#pragma once #include <stdint.h> #include <string> #include "vmm.h" #define MAGIC 0x74726976 #define VIRTIO_DEVICE_VERS 0x2 #define CONFIG_SPACE_MAX 0x400 #define CONFIG_SPACE_START 0x100 #define MAX_VQ_SIZE 32768 // #################### // # Status bit masks # // #################### // indicates the guest OS has f...
c4ee6a56423b7ca4e0fefb0f316046389ef3fb60
044a21e19193422aaf4c3003aec05264105f8e98
doumdev/Hexagon
/src/BlockchainExplorer/BlockchainExplorerErrors.cpp
C++
cpp
973
no_license
// Copyright (c) 2012-2017, The CryptoNote developers, The Hexagon developers // // This file is part of Hexagon. // // Hexagon is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the ...
23313d18438301a7ef0acf39e91980f8bc124607
a438f8406fa71d5b5b1a0c8bc25995091c343c08
aaronfranke/oneDNN
/src/cpu/cpu_batch_normalization_list.cpp
C++
cpp
4,575
permissive
/******************************************************************************* * Copyright 2019-2021 Intel Corporation * Copyright 2021 FUJITSU LIMITED * * 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 ...
fbc10d540e2d90ddb33b0e1847d94cc733a45e07
f4bc62cbe64cab26a14491bd02732bfa40bb7e16
mkoppanen/php-pdo_cassandra
/php_pdo_cassandra.hpp
C++
hpp
1,000
permissive
/* * Copyright 2011 DataStax * * 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...
878d9c0b967479bc2ef6a1d6c9f900631fbe3a6f
a8194feb540fe029c4178d642671ad9353084cd1
joaomontenegro/ContagionSim
/ContagionSim/simpleDisease.cpp
C++
cpp
954
no_license
#include "simpleDisease.h" #include "random.h" SimpleDisease::SimpleDisease(const Params& params) : Disease(params.get<float>("disease.transmitionRate", 0.1f), params.get<int>("disease.numInitialInfected", 1)) , _cureTime(params.get<int>("disease.cureTime", 1000)) {} SimpleDisease::~SimpleDisease() {} void...
2f14555a34b341f891646f0a3c81c3db574ef176
6cb826f6c37d805c62af8344a7b54a8a7ba97907
AdrienDuff/2048
/Code/2048_vB/qcontinuebutton.cpp
C++
cpp
353
no_license
#include "qcontinuebutton.h" QContinueButton::QContinueButton(QWidget* parent) { setText("Continue"); setAlignment(Qt::AlignCenter); setStyleSheet("QContinueButton { background-color: rgb(143,122,102); border-radius: 10px; font: bold; color: white; }"); } void QContinueButton::mousePressEvent(QMouseEvent...
d9b5d24a89f1df982a129e8d23289452b17dbfa6
7f79b05d0662a93da85f9df1d97406f44fc15d82
portegys/Parallel-tree
/ptree/Vector.cpp
C++
cpp
455
no_license
// Vector.c++ // // CODE: Class for 3-vectors with double precision // // (c) 1996 Christopher Kline <ckline@acm.org> #include "Vector.h" Vector Average(int numvectors, Vector a, ...) { Vector v = a; va_list arg_ptr; int i; va_start(arg_ptr, a); for (i = 0; i < numvectors - 1; i++) { v +...
d8b84eb1f2c7f866e685bd61e87ee8da9f4f493e
c7ebd401fad1302e07d11e79c5f1404b7c3acc3c
cheerforthemaster/cpp
/xlwei9/xlwei9/FileView.cpp
C++
cpp
6,567
no_license
#include "stdafx.h" #include "mainfrm.h" #include "FileView.h" #include "Resource.h" #include "xlwei9.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ///////////////////////////////////////////////////////////////////////////// // CFileView CFileView::CFileView() { }...
ef5850a5e50f6e998273471287c11ddea49075ff
4a406b0c271596ebee8a557c8a7f501d3dccd5db
NobleSeagull/Legacy
/main.cpp
C++
cpp
4,280
no_license
#include "stdafx.h" #include <stdlib.h> #include <stdio.h> #include <iostream> #include <vector> #include "Box2D\Box2D.h" #include "SDL.h" #include "SDL_image.h" #include "SplashScreen.h" #include "EndScreen.h" #include "State.h" #include "Block.h" #include "JSONReader.h" #include "LevelData.h" #include "LevelCo...
871f3b67a235c57a3f37150668383d7fa86bd188
6f91c712a7c5f4e285589bbd8b3c2841a3b50338
sizmailov/pyxmolpp2
/src/xmol/proxy/smart/references.cpp
C++
cpp
1,848
permissive
#include "xmol/proxy/smart/references.h" #include "xmol/proxy/smart/FrameObserverImpl.h" using namespace xmol::proxy::smart; AtomSmartRef::AtomSmartRef(AtomRef atom) : FrameObserver<AtomSmartRef>(&atom.frame()), m_ref(atom) { frame().reg(*this); } void AtomSmartRef::on_coordinates_move(XYZ* from_begin, XYZ* from_en...
70cefd745e3ff21caf6ea489e266bd38af69429b
dd784d8cea81d7f766b637858703772d5aca8f04
fsq/codeforces
/lg3119.cpp
C++
cpp
3,010
no_license
#include <vector> #include <algorithm> #include <queue> #include <cstring> #include <numeric> using namespace std; const int N = 100007; vector<int> e[N], et[N], ec[N]; vector<int> fa; int n, m, f[N], sz[N], id[N]; int vis[N]; int reach[N]; void dfs(int u, vector<int> e[], vector<int>& a, int vis[]) { vis[u] = 1...
3ce95a07d04524b6cbc2664127dcf6b1cd92ad06
b489cdb78e0868f355c7fcfe0ff62702dbbbf923
wayfinder/Wayfinder-Server
/Server/Tools/GSystemTest/src/GSystemTest.cpp
C++
cpp
12,724
no_license
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 condit...
5a9907e0ee2325140108f22cb6c7cdbbbab309e0
02f631ac4d41a1d709028ea7fab3b931218ed970
jan4/busy
/src/busyConfig/Project.cpp
C++
cpp
540
permissive
#include "Project.h" namespace { bool isStartingWith(std::string const& str, std::string const& start) { if (str.length() <= start.length()) { return false; } std::string sub = str.substr(0, start.length()); return sub == start; } } namespace busyConfig { /** tries to determine type by name * name s...
3cd03fa47e0ab57d72be32eb2e04d29eca21c7a1
0dc61e470674005ab33d73748c30e9f90dddafa0
vgteam/vg
/src/vcf_buffer.hpp
C++
hpp
8,135
permissive
#ifndef VG_VCF_BUFFER_HPP_INCLUDED #define VG_VCF_BUFFER_HPP_INCLUDED /** \file * vcf_buffer.hpp: defines a buffer for reading through VCF files with * look-ahead. */ #include <list> #include <tuple> // We need vcflib #include "Variant.h" namespace vg { using namespace std; /** * Provides a one-variant look-...
588d74e99696e674de01248c75c973e19d2a2f25
45aa9710f984f87b559308e626d9dc9cfe94831a
qipengwang/Melon
/test/expr/MultiThreadLoad.cpp
C++
cpp
1,631
permissive
// // MultiThreadLoad.cpp // MNNTests // // Created by MNN on 2019/09/26. // Copyright © 2018, Alibaba Group Holding Limited // #include <MNN/Interpreter.hpp> #include <MNN/expr/ExprCreator.hpp> #include <thread> #include "MNNTestSuite.h" #include "MNN_generated.h" using namespace MNN::Express; using namespace MNN...
4a6c06232a938e5965f25ff5bb92dd972c61bc3d
41c5e76b5aefdc2b411273f968f0492e7b80435c
adityaag24/LeetCode-Solutions
/C++/897.IncreasingOrderSearchTree.cpp
C++
cpp
2,159
permissive
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l...
273b62321bf9b60c5ad8d820ab5efe24d9bb922f
910be1f6553b5d9634ce2c75ca14d912fac6a428
rc-matthew-l-weber/qpid-proton
/cpp/src/listener.cpp
C++
cpp
2,392
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 ...
b582c7222507c1f950a7fd0dde10148adae95e44
03fda3870605a620da572a1be615986a4abea133
zxc123qwe456asd789/library
/data-structure/van-emde-boas-tree.hpp
C++
hpp
3,045
permissive
#pragma once namespace vEB_tree_impl { using u64 = uint64_t; static constexpr unsigned int lgW = 6; static constexpr unsigned int W = 1u << lgW; static constexpr int inf = 1 << 30; inline int ctz(u64 n) { return n ? __builtin_ctzll(n) : -1; } inline int clz(u64 n) { return n ? 63 - __builtin_clzll(n) : -1; } template...
33778111a769b7274aa74b059feb399f002703b5
044eadd7a4797ff13a77c766a722d7e3fbaafdf0
sue602/Terabit
/TProactor/POSIX_AIO_LINUX_NAIO_Provider.cpp
C++
cpp
17,160
no_license
/********************************************************************* ** Copyright (C) 2003 Terabit Pty Ltd. All rights reserved. ** ** This file is part of the POSIX-Proactor module. ** ** ** ** ** ** ** ** **********************************************************************/ /* -*- C++ -*- */ // $Id: $ #i...
e5a28ce985b43f4d8dbf51c1aeb64c5bdc7a4de1
5a670e9c113209e2edb322a315162e1a58212240
mitiguy/drake
/common/symbolic_monomial.cc
C++
cc
7,785
permissive
// NOLINTNEXTLINE(build/include): Its header file is included in symbolic.h. #include <map> #include <numeric> #include <stdexcept> #include <utility> #include "drake/common/drake_assert.h" #include "drake/common/symbolic.h" #define DRAKE_COMMON_SYMBOLIC_DETAIL_HEADER #include "drake/common/symbolic_expression_cell.h"...
9a9af6b613540560ed038cf2c9d3611550076bfe
a822a8e239f142813ef5838a71cb51cd986949ca
aojha97/v8
/src/arm/deoptimizer-arm.cc
C++
cc
48,822
permissive
// Copyright 2012 the V8 project authors. 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 ...
c070cc7179352fedae990df3088b6b8281093a2a
f9b9c6328f986fece422113515e4e64e4752cbfc
Minssc/BJA
/old/11660.cpp
C++
cpp
412
no_license
#include<iostream> using namespace std; int N,M; int D[1026][1026]; int main(){ cin.tie(0), ios_base::sync_with_stdio(0); cin>>N>>M; for(int i=1; i<=N; ++i) for(int j=1; j<=N; ++j){ int v; cin>>v; D[i][j] = D[i-1][j]+D[i][j-1]-D[i-1][j-1]+v; } for(int i=0; i<M; ++i){ int a,b,c,d;cin>>a>...
248129560938c580c38f01302cf6c01322fe5c18
7e2f805f54bc8ac6561bdf450c78163d22ed1e62
khyveasna/LumixEngine
/src/engine/win/os.cpp
C++
cpp
24,133
permissive
#include "engine/allocator.h" #include "engine/lumix.h" #include "engine/os.h" #include "engine/path_utils.h" #include "engine/string.h" #define UNICODE #include <cASSERT> #pragma warning(push) #pragma warning(disable : 4091) #include <ShlObj.h> #pragma warning(pop) #include <Windows.h> namespace Lumix::OS { static ...
fc2f9865550cf5a3e852768043538f87741b744f
0f3867f11bc69648b271d83036e32b473d73c5f9
chisuhua/graph
/tests/unittest/test_arith_canonical_simpilfy.cpp
C++
cpp
226
no_license
#include "gtest/gtest.h" #include <tvm/arithmetic.h> #include <tvm/expr_operator.h> #include <tvm/ir.h> #include <tvm/ir_pass.h> using namespace tvm; using namespace tvm::ir; TEST(LANG_ARITH_SIMPILFY, canonical_mul_sum) { }
b4ad3a9575992b1822ccc14a2e8f4a66124c3f59
92734285a45f92d9fdd22c4d4fc5c1cccda0cfc3
DalavanCloud/kythe
/kythe/cxx/indexer/cxx/testdata/template/template_class_fn_spec.cc
C++
cc
560
permissive
// Checks that we get edges for member function specialization and calls // thereto. //- @F defines/binding _MemDecl //- @C defines/binding TmplDefn template <typename T> struct C { static void F(); }; //- @F defines/binding IntMemDefn //- @F completes/uniquely IntMemDecl template <> void C<int>::F() {} //- IntMemDecl...
cf9792b8c5e9cf0b502f1235c5e62b4046ccb1d1
34177f09314a4c49a745aa56d4440b1a79a26a21
zrt/algorithm
/bzoj/bzoj2251-3.cpp
C++
cpp
588
no_license
#include <cstdio> using namespace std; struct Trie { Trie *ch[2]; int size; Trie(): size(0) { ch[0]=ch[1]=0; } void insert(const char *str) { ++size; if(!str[0]) return; if(!ch[str[0]-'0']) ch[str[0]-'0']=new Trie(); ch[str[0]-'0']->insert(str+1); } void dfs(bool isroot) { if(size<=1) return; if...
35cf7b2a2bc8f91f5e4fc84294cdc8582ad0ce05
21e20cf49a8685acd0ef669490117bb3d559ffa9
gralkapk/megamol_pub_backup
/vislib/tests/test/testprocess.cpp
C++
cpp
2,517
no_license
/* * testprocess.cpp * * Copyright (C) 2006 by Universitaet Stuttgart (VIS). Alle Rechte vorbehalten. */ #include "testprocess.h" #include <iostream> #ifndef _WIN32 #include <unistd.h> #endif /* !_WIN32 */ #include "testhelper.h" #include "vislib/sys/ImpersonationContext.h" #include "vislib/sys/...
4609e3522371b6a89b100dc81aeb16f535292f2e
861057fd1d8a4819e28a8d702e4b354a046a18de
Windrist/Fuso_imu
/mpu6050/src/imu.cpp
C++
cpp
15,586
no_license
#include <geometry_msgs/Quaternion.h> #include <ros/ros.h> #include <serial/serial.h> #include <sensor_msgs/Imu.h> #include <sensor_msgs/Temperature.h> #include <std_msgs/String.h> #include <std_srvs/Empty.h> #include <string> #include <tf/transform_broadcaster.h> #include <tf/transform_datatypes.h> #include <geometry_...
26c8b0aa22155abe0911eb11473687365c1f1daf
b40759bb9908859745fb67cd9a769857ae72bcd8
lubing521/mmo-resourse
/Sources/Kernel/Engine/KStepLuaScript.cpp
C++
cpp
8,636
no_license
//--------------------------------------------------------------------------- // Sword3 Engine (c) 1999-2000 by Kingsoft // // File: KStepLuaScript.cpp // Date: 2001-9-13 10:33:29 // Code: Romandou // Desc: //--------------------------------------------------------------------------- #include "KWin32.h" #inc...
977f21881e18c57c4db0879ef6a1825050939e66
6f68f219a2265fdf49a23436f520a89eeb043d1e
dsc-sookmyung/2020-Algorithm-study
/04-Queue-and-Deque/gristar/D-5430.cpp
C++
cpp
1,225
no_license
#include <iostream> #include <string> #include <deque> using namespace std; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); int T; cin>>T; for(int t=0;t<T;t++){ string fun; cin>>fun; int n; cin>>n; string arr; cin>>arr; deque<int> dq; string tmp; //두 자리 숫자 입력받기위해 for(i...
74f204daec2bbd750e2f78bdb452ac3319a37324
8dc5bd20c8fd1babc488c69477688fdf557bb6ea
nicoleorzan/advanced-programming
/exercises/01_intro/textformatter.cc
C++
cc
1,019
no_license
using namespace std; #include <iostream> #include <stdlib.h> #include <string> #include <sys/resource.h> #include <sys/times.h> #include <time.h> #define TCPU_TIME (clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &ts ), (double)ts.tv_sec + (double)ts.tv_nsec * 1e-9); int main(){ double tstart, ctime; struct timespec ...
b13c54cfbb706f65ead9ca105ac65ea89a4b375e
6acce05c35c337c56d8fbefdb71c7b26b943f033
okuraofvegetable/AtCoder
/atcoder.jp/abc204/abc204_d/Main.cpp
C++
cpp
4,225
no_license
#include <bits/stdc++.h> using namespace std; #define eps 1e-9 #define INF 2000000000 // 2e9 #define LLINF 2000000000000000000ll // 2e18 (llmax:9e18) #define all(x) (x).begin(), (x).end() #define sq(x) ((x) * (x)) #define rep(i, x) for (int i = 0; i < (int)(x); i++) #define drep(i, x) for (int i = ((int...
cd1a736b66bfda3935060bd288b519381502b22b
954607ae60d48da96a67a4d6b61f7fe512e15462
dnichyparuk/bob-flight-sim
/3d/shpbld.cpp
C++
cpp
12,722
no_license
/* Battle of Britain Copyright (C) 2000, 2001 Empire Interactive (Europe) Ltd, 677 High Road, North Finchley, London N12 0DA Please see the document licence.doc for the full licence agreement 2. LICENCE 2.1 Subject to the provisions of this Agreement we now grant to you the following rights ...
ee97f87190f241cded61ac6f3e55a18a36d5b7ce
edb8d0abe4ef30badffe1d1b41a8d3d37445a39d
cms-sw/cmssw
/DataFormats/CSCRecHit/src/CSCSegment.cc
C++
cc
7,107
permissive
/** \file CSCSegment.cc * * \author Matteo Sani */ #include <DataFormats/CSCRecHit/interface/CSCSegment.h> #include <iostream> namespace { // Get CSCDetId from one of the rechits, but then remove the layer part so it's a _chamber_ id inline DetId buildDetId(CSCDetId id) { return CSCDetId(id.endcap(), id.stati...
b1a160fbd3d7f48b834ffd14194b85c2f6fd6b0b
f9ccfbf87b1ec413175059ee74c8274ad8a3a913
MAkcanca/twitchplaysreborn
/Source/TwitchTest/Private/Strategy.cpp
C++
cpp
1,027
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "TwitchPlaysAPI.h" #include "Strategy.h" TMap<FString, int32> Strategy::StrategyMap = BasicStrategyMap(); // === Strategy::Strategy(BlockingQueue<FCommandParser>* _queue, GameContext* _context) : queue(_queue), Context(_context)...
4d899f3614d13f277407d294c98897ec67ebd345
3b557acc69cc9fe6bfb2444b5c49ff7bde5d8ffd
MsF-NTDLL/WindowsReversed
/Processes/IsProtectedProcess.cpp
C++
cpp
642
no_license
/* Checks If Process Is Protected Fun Fact Protected Process If Terminated You BSOD With StopCode CRITICAL_PROCESS_DIED (0x000000EF) */ bool __fastcall PsIsProtectedProcess(_EPROCESS* eproc) { return (*(BYTE*)(eproc + 0x87A) & 7) != 0; // +0x87a Protection: _PS_PROTECTION Ands with 7 and returns true if its ...
cb80dbe6ce6f4114645028c15ead7fb3ff907b2c
e1a808bd09159330eb275f78528477fd71c49bbc
furuholm/rapidcheck
/test/gen/InvokeTests.cpp
C++
cpp
2,955
no_license
#include <catch.hpp> #include <rapidcheck-catch.h> #include "util/Predictable.h" using namespace rc; // Always increasing type for testing generatinon ordering. Note that this is // very much a hack but it will catch regressions where arguments are not // generated in the correct order. struct IncInt { int value; };...
7fcd1cf902775910c1d3291fcbc8229f57854377
b6f62e9e9d7d8803da850c77ef4531e33375ee51
aws/aws-sdk-cpp
/generated/src/aws-cpp-sdk-fms/source/FMSErrors.cpp
C++
cpp
1,795
permissive
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/core/client/AWSError.h> #include <aws/core/utils/HashingUtils.h> #include <aws/fms/FMSErrors.h> using namespace Aws::Client; using namespace Aws::Utils; using namespace Aws::FMS; names...
81163b8ff8b69770b9caca8c20c9c99485a71e62
ea49a47fb24fe2f2aed9dffe4798941d8bc50175
pharick/cpp
/2-year/11-structures/c.cpp
C++
cpp
633
no_license
#include <iostream> #include <iomanip> #include <cmath> using namespace std; struct Point { double x; double y; }; struct Rectangle { Point p1; Point p2; }; double rectangle_square(Rectangle *rect) { return abs((rect->p1.x - rect->p2.x) * (rect->p1.y - rect->p2.y)); } double rectangle_perimetr(Rectangle *...
97c0abc705bc86ea2448db95ecdf94a2b96419f2
016760ff82de75ea48f24cfb8ccdd20aec92402a
teng-lin/KeyRemap4MacBook
/src/core/kext/VirtualKey/VK_CONFIG.hpp
C++
hpp
1,347
no_license
#ifndef VIRTUALKEY_VK_CONFIG_HPP #define VIRTUALKEY_VK_CONFIG_HPP #include "RemapClass.hpp" namespace org_pqrs_KeyRemap4MacBook { namespace VirtualKey { class VK_CONFIG { public: static void initialize(void); static void terminate(void); static void add_item(RemapClass* remapclass, ...
edb8a698a2d22a53254d88c4aca5521391e5ab2e
ef61f8a0f7e6d6318eb4c04b11808effc24cdce6
wuhang100/pointml
/utils/view_cloud/src/main.cpp
C++
cpp
1,489
no_license
#include <iostream> #include <pcl/io/io.h> #include <pcl/io/pcd_io.h> #include <pcl/io/vtk_lib_io.h> #include <pcl/point_cloud.h> #include <pcl/console/parse.h> #include <pcl/common/transforms.h> #include <pcl/visualization/cloud_viewer.h> #include <pcl/visualization/common/common.h> #include <pcl/visualization/range_i...
f3d31eb9ff0a0d4a39eb948f93cdd5c17c2b5b37
9d823bb1a830fa5be3784650e04508f9fa22fe83
TaffyWrinkle/MSIX-Labs
/HR/Payroll/App.xaml.cpp
C++
cpp
4,329
permissive
// // App.xaml.cpp // Implementation of the App class. // #include "pch.h" #include "MainPage.xaml.h" using namespace Payroll; using namespace Platform; using namespace Windows::ApplicationModel; using namespace Windows::ApplicationModel::Activation; using namespace Windows::Foundation; using namespace Windows::Fou...
6b51ff2830508a6b1742473bdfc13dfe9ccbdf8b
794b4f0e8c90c2ec1a63932f00f7fe853545d543
jaidurn/BasicEngine
/BasicEngine/ResourceManager.cpp
C++
cpp
8,344
no_license
#include "ResourceManager.h" #include "Window.h" #include "Renderer.h" #include "TextureCache.h" #include "AnimationCache.h" #include "SettingIO.h" Window* ResourceManager::m_window = NULL; Renderer* ResourceManager::m_renderer = NULL; TextureCache* ResourceManager::m_textureCache = NULL; AnimationCache* ResourceManag...
abb01966d06b32a550c902bef6a590328257167e
cb27090917a19ecaf6cb1c3430cb59199dfb44ae
ethanlikescpp/MoreOOP
/MoreOOP/PersonA.cpp
C++
cpp
308
no_license
#include "stdafx.h" #include <iostream> #include <string> #include "PersonA.h" using namespace std; PersonA::PersonA() { } PersonA::~PersonA() { } PersonA::PersonA(string inputname, int inputage) { name = inputname; age = inputage; } void PersonA::display() { cout << name << ", " << age << endl; }
678a7bc86da68db6b1be8f4ea4d9f6d55f0c85ca
cf0201567e50f2dea73bd0f5b32e82f88ce39570
motis-project/motis
/modules/path/src/prepare/schedule/schedule_wrapper.cc
C++
cc
946
permissive
#include "motis/path/prepare/schedule/schedule_wrapper.h" #include <filesystem> #include <iostream> #include "utl/parser/file.h" #include "motis/path/prepare/fbs/use_64bit_flatbuffers.h" #include "motis/schedule-format/Schedule_generated.h" namespace fs = std::filesystem; using namespace motis::loader; namespace ...
fec0726c09e963878b8d24fc749cbfeab60df75c
6f9162dfe6befb9e7801ee00245b177db75dd09d
slingcoin/sling-market
/src/rpcserver.cpp
C++
cpp
40,769
permissive
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php...
a4c1154e86e894dc64339e123fb6936731dc8f5d
033fe470c19aa9b72274f2400b4acf0056c76b5c
GauravBahadur/edx-io
/tests/04-writing-longs/Test.cpp
C++
cpp
314
permissive
#include "edx-io.hpp" int main() { int n; long long a, b, c, v0, v1, v2; io >> n >> a >> b >> c >> v0 >> v1; io << v0 << ' ' << v1; for (int i = 2; i < n; ++i) { v2 = a * v0 + b * v1 + c; io << ' ' << v2; v0 = v1; v1 = v2; } io << '\n'; return 0; }
26dee8a2a131cdcaf806ece8d9c176da4e537e05
a2b1213a5197c83b2e43b8f7bdeeb35127a06b0f
i-RIC/prepost-gui
/libs/guicore/pre/gridcond/base/gridattributedimensionscontainer.cpp
C++
cpp
4,656
permissive
#include "../../../project/projectdata.h" #include "../../../project/projectdataitem.h" #include "../../../solverdef/solverdefinitiongridattribute.h" #include "../../../solverdef/solverdefinitiongridattributedimension.h" #include "../../base/preprocessorgeodatagroupdataiteminterface.h" #include "gridattributeconta...
ab8431ea653798c833c25f0f435826830507d135
260b8502197e7c181e4f584f6b96f3d85edf5470
wcysai/Calabash
/XVII Open Cup named after E.V. Pankratiev. Grand Prix of Moscow Workshops/K.cpp
C++
cpp
1,652
no_license
#include<bits/stdc++.h> #define MAXN 200005 #define INF 1000000000000000000LL #define MOD 1000000007 #define F first #define S second using namespace std; typedef long long ll; typedef pair<int,int> P; struct edge{int to,cost;}; vector<edge> G[MAXN]; int n; ll dp[MAXN][3]; bool iswhite[MAXN],isblack[MAXN]; void dfs(int...
1c3bdec778a80534d8f3b0e30fd525c4412445f3
42a0378082e8c26cfc0ac4f5cd6d920617e0f20f
alps-jbnu/ALPS_2020_Summer_Study
/KiwanKim/1012.cpp
C++
cpp
1,262
permissive
#include <iostream> #include <string> #include <cstring> #include <vector> #include <queue> #include <set> #include <cmath> #include <algorithm> #include <stack> #include <deque> using namespace std; #define INF 987654321 #define INF2 1e9; #define MOD 998244353 #define pii pair<int,int> #define pll pair<long long,lon...
81af62c7f20cd18759ab3996dfa17ab1807cc0f0
cd7a2087f856373690fe1756f1882e1be1e6b1b5
DolaBMOon/CodeerStf
/Codeforces/1028/H/mk.cpp
C++
cpp
848
no_license
//%:pragma GCC optimize("Ofast") //%:pragma GCC target("sse3","sse2","sse") //%:pragma GCC target("avx","sse4","sse4.1","sse4.2","ssse3") //%:pragma GCC target("f16c") //%:pragma GCC optimize("inline","fast-math","unroll-loops","no-stack-protector") //%:pragma GCC diagnostic error "-fwhole-program" //%:pragma GCC diagn...
18f955ffa6973eb98571e08c18480c1442ff6f92
f9056b541c025ed26a6fb247e2ea0ffeb5c578d1
tychota/cg3-path-tracer
/cpp/src/manager/strategy.cpp
C++
cpp
1,656
permissive
#include "cg3/manager/strategy.hpp" using namespace std; vector< Tile > Strategy::create_render_tiles( tiny_vec< size_t, 2 > resolution ) { return create_tile_field( resolution, _samples_per_pixel, 1. ); } vector< Tile > Strategy::create_target_tiles( tiny_vec< size_t, 2 > resolution ) { return create...
1202927033245248de3887887d480503e48c5190
a95581ca338ed87c2aae0f8710b2a259f3404168
raptoravis/vuk
/include/vuk/Context.hpp
C++
hpp
13,851
permissive
#pragma once #include <atomic> #include <span> #include <string_view> #include "vuk_fwd.hpp" #include "vuk/Pipeline.hpp" #include "vuk/SampledImage.hpp" #include "vuk/Image.hpp" #include "vuk/Buffer.hpp" #include "vuk/Swapchain.hpp" namespace vuk { struct TransferStub { size_t id; }; class Context { public: ...
62f87f44586e012ef8c170ffe1ea742039c0051b
b95d4051de97af004bf3406c91df3dd4670d7291
kfazi/Engine
/CommonLibSrc/SmartPointers/CDeleteArrayPolicy.hpp
C++
hpp
335
no_license
#ifndef COMMON_DELETE_ARRAY_POLICY_HPP #define COMMON_DELETE_ARRAY_POLICY_HPP #include "../Internal.hpp" namespace Common { class CDeleteArrayPolicy { public: template<typename tType> static void Delete(tType *pData) { delete [] pData; } }; } #endif /* COMMON_DELETE_ARRAY_POLICY_HPP */...
8534387d346c057a102d7f58d04d49174b744bf0
c44098de7594f0f511113462572c542b849fce33
exinfinitum/Mammoth
/TSE/CConquerNodesProc.cpp
C++
cpp
10,245
no_license
// CConquerNodesProc.cpp // // CConquerNodesProce class #include "PreComp.h" #define CRITERIA_TAG CONSTLIT("Criteria") #define EXPAND_CHANCE_TAG CONSTLIT("ExpandChance") #define PROCESSOR_TAG CONSTLIT("Processor") #define SEED_CHANCE_TAG CONSTLIT("SeedChance") #define CHANCE_ATTRIB CONSTLIT("...
cace27f16f4cc6634670791f1321593cb190d8f2
c3e84af23c4441ce97a253209b5d59b982d88afa
amir5200fx/Tonb
/TnbMarineBase/TnbLib/MarineBase/Parameter/D/Marine_VesselParam_D.hxx
C++
hxx
259
no_license
#pragma once #ifndef _Marine_VesselParam_D_Header #define _Marine_VesselParam_D_Header #include <Marine_VesselParamM.hxx> namespace tnbLib { namespace marineLib { MARINE_VESSELPARAM(D, "depth", dimLength) } } #endif // !_Marine_VesselParam_D_Header
7af7f7ce1ab9d0e0b2121cedfd172e11d13e204a
ae50e3ffbbac0cb0a894f29019d7ee2d3e659f40
cesperon/Sonoma-State-CS
/cs215-Programming II/Project2 2/Proj2app.cpp
C++
cpp
1,965
no_license
#include <iostream> #include <fstream> #include "SetLimits.h" #include "CLife.h" using namespace std; int main () { SetLimits(); char play = 'y'; CLife life; life.Instructions (cout, cin); while (tolower (play) == 'y') { char key; char row, col; string filename; ifstream input; life.Init(1...
2b73df9400b0bc4ed89137cf4320ce3a1afbdf5e
8f79f15b07a583df831be01f3aeef8d48174bf59
Nebbus/Haaaaalp
/VirtualGameConsole/VirtualGameConsoleEmpty/Bullet.cpp
C++
cpp
1,984
no_license
#include <VGCVirtualGameConsole.h> #include "Bullet.h" #include "Ship2.h" #include <cstdlib> #include <vector> using namespace std; ////////////////////////////////////////////////////////////////////////////////////////////// Bullet::Bullet(VGCVector pos, bool fren): spr_bullet(VGCDisplay::openImage("bullet.png", 1, ...
bcbbd58a946c7718f6b4665a1f9f06641f15e9c6
6e54991373fcb26b72b80dcbf7fbee556c3f8385
jperge/GUI_Jan7_2016
/Source/Processors/Editors/ChannelSelector.cpp
C++
cpp
24,638
no_license
/* ------------------------------------------------------------------ This file is part of the Open Ephys GUI Copyright (C) 2013 Open Ephys ------------------------------------------------------------------ This program is free software: you can redistribute it and/or modify it under the term...
c614d45dadf526e4c1e4996f46ef14198ba119fc
fc8131577a53184c6231f811fe90578adabc9ca4
merge-swap/celer-wallet
/src/celerd.cpp
C++
cpp
6,065
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2018 The Celer Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #in...
adcac4ca741d544487f9524da2428cf05ba2f8c1
3f8ae9180156c97bb408f12f92b28a67e1482163
dawidjaja/competitive-programming
/codeforces/gym/102082/Sandbox.cpp
C++
cpp
4,031
no_license
#include <bits/stdc++.h> #define pp 1000000007 using namespace std; typedef vector<long long> vi; typedef vector<vi> vvi; typedef vector<vvi> vvvi; typedef pair<int, int> ii; typedef vector<ii> vii; typedef vector<vii> vvii; typedef vector<vvii> vvvii; typedef vector<bool> vb; typedef vector<vb> vvb; typedef vector...
015966e30b93dd72fcf403464da8915dc58d8f0c
2fea12643cfb102aefe55aedf000630a794d857f
ASTHA193/SudokuSolver
/Solution.cpp
C++
cpp
6,247
no_license
* Program to solve the famous numbers placement puzzle 'Sudoku'. Uses the technique of backtracking. Gives you multiple solutions if there are possible. */ #include<iostream> #include <cstdio> using namespace std; #include<math.h> //This is the limit of size of sudoku board for now //You can increase it, ...
532abc1df1daaa2707c1e870c18976db10cf8359
8ba533dc50396190b7de321af5a99186c415a49d
BitenCoin/bitenx
/src/test/script_tests.cpp
C++
cpp
61,264
permissive
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "data/script_tests.json.h" #include "core_io.h" #include "key.h" #include "keystore.h" #include "script/script.h" #...
7920e1eb84bc9742df208a8ac63082b7a7057ff9
93b6ec9cc954cf2df67bce6cee6a3d18b7b341d4
dascandy/OpenLoco
/src/OpenLoco/src/Windows/IndustryList.cpp
C++
cpp
49,904
permissive
#include "Audio/Audio.h" #include "Config.h" #include "Date.h" #include "Drawing/SoftwareDrawingEngine.h" #include "Economy/Economy.h" #include "GameCommands/GameCommands.h" #include "Graphics/Colour.h" #include "Graphics/ImageIds.h" #include "Input.h" #include "LastGameOptionManager.h" #include "Localisation/FormatArg...
99a26a2f73e64de23935c0fcf8b191f9932ebdb5
5c0229c6ffd64efc3426b433a7c29524184a8c95
osushkov/phd_src
/CameraView/src/SIFT/imgfeatures.cpp
C++
cpp
19,731
no_license
/* Functions and structures for dealing with image features Copyright (C) 2006-2007 Rob Hess <hess@eecs.oregonstate.edu> @version 1.1.1-20070913 */ #include "utils.h" #include "imgfeatures.h" #include <opencv/cxcore.h> #include <iostream> int import_oxfd_features( char*, struct feature** ); int export_oxfd_...
d37731242777576113b5e270735eedbd68404fe3
92bb58047a2690fcdee5eeceec7e5531fd0b8a58
tagattie/FreeBSD-Electron
/devel/electron8/files/patch-gpu_config_gpu__test__config.cc
C++
cc
407
no_license
--- gpu/config/gpu_test_config.cc.orig 2020-03-03 07:03:04 UTC +++ gpu/config/gpu_test_config.cc @@ -25,7 +25,7 @@ namespace { GPUTestConfig::OS GetCurrentOS() { #if defined(OS_CHROMEOS) return GPUTestConfig::kOsChromeOS; -#elif defined(OS_LINUX) || defined(OS_OPENBSD) +#elif defined(OS_LINUX) || defined(OS_BSD) ...
d1eeedb4c945069c33f4c8929dbdc2defd24debe
595623d3ce8223ad1fff24e4ee53c2361ef8bd5b
nanocurrency/nano-node
/nano/node/signatures.cpp
C++
cpp
4,073
permissive
#include <nano/boost/asio/post.hpp> #include <nano/lib/numbers.hpp> #include <nano/node/signatures.hpp> nano::signature_checker::signature_checker (unsigned num_threads) : thread_pool (num_threads, nano::thread_role::name::signature_checking) { } nano::signature_checker::~signature_checker () { stop (); } void nan...
740654d20b492cf0334970af7738092a9f3aaf21
340fec0ea06da91db1b53733c7209e64ea6f2338
MaxCarlson/Qt-Chess
/tile.cpp
C++
cpp
5,862
no_license
#include "tile.h" #include <QDebug> #include "Pieces.h" #include "externs.h" Pieces *isValid = new Pieces(); extern Tile * rect[8][8]; extern QWidget *myWidget; Tile *click1; // NOTE!!!!! //Castling doesn't move the rook on the GUI only on the array of the board void Tile::mousePressEvent(QMouseEvent * event){...
cbea2cc5c8d8ac0001f2c1e23724175e49347628
97635d9aaed1f50d0e6a505183437fb39155156c
shandaming/Martial_arts
/Smjy/src/client/old/gui/core/event/dispatcher.cpp
C++
cpp
3,742
no_license
/* * Copyright (C) 2018 */ #include "dispatcher.h" namespace gui { namespace event { Dispatcher::Dispatcher() : mouse_behavior_(all), want_keyboard_input(true), signal_queue_(), signal_mouse_queue_(), signal_keyboard_queue_(), signal_notification_queue_(), signal_message_queue_(), connecte...
3dc7ececafa044690e260fcbd4b32580e2763ee6
cb24a1c61bf634749c8d9b5a300fccfa4a97c9d2
sauravchaudharysc/Programming
/Novice/Standard Problems/Problem/Data Structure/Linked List/InsertionSortLL.cpp
C++
cpp
1,265
no_license
//Insertion Sort #include<bits/stdc++.h> using namespace std; class Node{ public: int data; Node *next; Node(int d) { data=d; next=NULL; } }; void push(Node*&head,int x){ if(head==NULL){ head= new Node(x); return; } Node * temp=head; while(temp->next!=NULL) temp=temp...
6b29054aed71d380e4affc2c43afb718914e8ef5
004022808640645bccbd5283a3b7c894dd1854f1
novaquark/aws-sdk-cpp
/aws-cpp-sdk-rds/source/RDSErrorMarshaller.cpp
C++
cpp
1,041
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...
d56c8713e5a488c44406c99d8bf17d2649ee04b0
28536848e06d5785f7f99f6d3f4a6488d5a34570
heyyviv/Algorithms
/problems/kthprime.cpp
C++
cpp
1,093
no_license
// question at https://www.codechef.com/LRNDSA05/problems/KPRIME // #include <iostream> #include <bits/stdc++.h> #include <cstdlib> #include<vector> #include<algorithm> #include<cstring> #include<set> #include<map> #include<queue> #define INF 0x3f3f #define ll long long int #define endl "\n" using namespa...
0f563fc3274a7c86a2553f96fd18a918fca8c2fb
b48aee506ab7bc39512d6758abe1fe1b5394d9bd
dnsl48/richman
/Richman/Text/Scanner/Escape.hpp
C++
hpp
706
no_license
#ifndef Richman__Text__Scanner__Escape___hpp #define Richman__Text__Scanner__Escape___hpp #include "Richman/Text/Scanner/Symbol.hpp" namespace Richman { namespace Text { namespace Scanner { /* Represents an escape entity */ class Escape { Symbol _symbol; public: /* Does nothing */ Escape () = default; ...
d3a3d4fc20fecfb41bd66587646cfe49e59d2339
42a89609bc5b0ea7de041e8b69360d8f4e0d6371
vadymyamburenko/Practice-2017-1st-course
/chapter5/lab5.1/lab5.1.1.cpp
C++
cpp
441
no_license
#include <iostream> #include <string> using namespace std; class Person { public: string name; int age; int iq; }; void print(Person* person) { cout << person->name << " is " << person->age << " years old" << endl; } int main() { Person person; person.name = "Harry"; person.age = 23; person.iq=15; cout << "Meet " << pe...
9c0cabaa911568c5b0b5657e29e11734f022c631
67689b04f50ef863337f1318f6929cb87f77e14b
IsraMekki/tiramisu_code_generator
/cmake-build-debug/programs_tiling/function14154/function14154_schedule_8/function14154_schedule_8_wrapper.cpp
C++
cpp
921
no_license
#include "Halide.h" #include "function14154_schedule_8_wrapper.h" #include "tiramisu/utils.h" #include <cstdlib> #include <iostream> #include <time.h> #include <fstream> #include <chrono> #define MAX_RAND 200 int main(int, char **){ Halide::Buffer<int32_t> buf00(64); Halide::Buffer<int32_t> buf0(64, 128, 64,...
a202f0b72b89371415aa2b13af891b76f1a97c74
c800ed411b26aa577cd64167136e9962eb94fc7c
zhaowen28/xag-core
/src/test/jtx/impl/acctdelete.cpp
C++
cpp
1,524
permissive
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2019 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby grante...
8b9529c10da4d2e9f98273a86bac3e4495dd7026
d09e67f5744542781c704e8d01b5bc0440f73467
MathiasBaumgartinger/RayTracer
/src/util/Transform.cpp
C++
cpp
10,429
no_license
#pragma once #include "Vector3.cpp" #include "Vector4.cpp" #include "../pugixml/src/pugixml.cpp" #include "../util/Util.cpp" #include "../util/Math.cpp" #include <iostream> #include <memory> class Transform { public: void initFromXMLNode(pugi::xml_node node, bool inverse=false) { V...
e924823d6a0b35ab04af33debef6c0af566daeec
ed20f6fe4553347f1e804051135f26c565629348
CU-0xff/juliet-cpp
/000/248/343/CWE78_OS_Command_Injection__wchar_t_listen_socket_execlp_81_goodG2B.cpp
C++
cpp
1,308
no_license
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_execlp_81_goodG2B.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-81_goodG2B.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read...