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
c754e12b3551bbd12d26b5fd9a028478a15b5509
57fc3ca4b9dff405bd543d83fa06116388f5a62e
chromium/chromium
/components/permissions/android/permissions_reprompt_controller_android.cc
C++
cc
4,787
permissive
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/permissions/android/permissions_reprompt_controller_android.h" #include "base/check.h" #include "components/permissions/android/android_permission_util.h"...
015786db8f1137060eeb41badd3faf86384289dd
de132794ac8feba3b7af83de2c15da1938be4e05
dusx1981/litehtml
/src/document.cpp
C++
cpp
22,136
permissive
#include "html.h" #include "document.h" #include "stylesheet.h" #include "html_tag.h" #include "el_text.h" #include "el_para.h" #include "el_space.h" #include "el_body.h" #include "el_image.h" #include "el_table.h" #include "el_td.h" #include "el_link.h" #include "el_title.h" #include "el_style.h" #includ...
93efea353dc969952d7bfafabbd17e8b3a7d455f
c936bbec82efd580a9227e56fbc4533593c262b5
hayashi-kengo/KVS
/Source/SupportGLUT/Widget/Rectangle.cpp
C++
cpp
9,572
permissive
/*****************************************************************************/ /** * @file Rectangle.cpp * @author Naohisa Sakamoto */ /*---------------------------------------------------------------------------- * * Copyright (c) Visualization Laboratory, Kyoto University. * All rights reserved. * See ...
7c79fc404e715229036352920fb5113d2c55cd6d
6e106d7ae643f0ddbf228ea5398728fdedb49f95
keshbach/PEP
/Source/UtilsNet/ZipNet/ZipNetDllMain.cpp
C++
cpp
680
permissive
///////////////////////////////////////////////////////////////////////////// // Copyright (C) 2014-2014 Kevin Eshbach ///////////////////////////////////////////////////////////////////////////// #include <Windows.h> BOOL WINAPI DllMain( HINSTANCE hInstance, DWORD dwReason, LPVOID pvReserved) { pvReserved...
22b7f35df2d17364dbd25bb8b41024605bfe54ae
f8d1353926f715c685bcc05daa96740be3343a82
zenoalbisser/chromium
/cc/test/layer_tree_host_common_test.cc
C++
cc
8,123
permissive
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cc/test/layer_tree_host_common_test.h" #include "cc/layers/layer.h" #include "cc/layers/layer_impl.h" #include "cc/test/fake_layer_tree_host.h"...
5ac4bc30fad36ec5dedd88dcdd6dac10f5fc1411
a4132b55dd9c0aeaddb04f30e2afd7d38a3ae81a
rousse101/arrayfire
/src/api/c/graphics_common.cpp
C++
cpp
8,596
permissive
/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
d7aa8de3c52a5aaa90c4b3adfc1374b12db84c88
ccbd46a39b440f7192db76d23480dc2a121eab88
jrp6/flight
/src/haversine.cpp
C++
cpp
1,424
permissive
// haversine.cpp - Implementation of the haversine function &c /*********************************************************** Copyright (c) 2013 Juho Rinta-Paavola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal i...
693a891351e53d32b2769c31a5d2bf2dbf8a5404
909c11adf48f8f848e0687e95064859245012717
yuanyiyixi/C--
/C/child_pointer/child.cpp
C++
cpp
246
no_license
#include <iostream> using namespace std; class A{ public: int a; }; class B : public A{ public: int b; }; int main() { int n = 10; cout << "n = " << n << endl; A a; B* p = (B*)&a; p->b = 1000; cout << "n = " << n << endl; return 0; }
9c0e32af1d78e245448516cefb2198dd0b0444af
7d477e36016c165e189070732dc6248432e08b4a
zeiland/LP-calculator
/Classes/MainScene.cpp
C++
cpp
9,043
no_license
#include "MainScene.h" #include <iostream> #include <fstream> #include "AskConditionScene1.h" #include "UI.h" #include "ShowPageScene.h" #include "IntProgrammingInputScene.h" USING_NS_CC; Scene* MainScene::createScene() { auto scene = Scene::create(); auto layer = MainScene::create(); scene -> addChild(layer); r...
5bbd635c7298a19d3d8fd45b1d58e75bcf559813
0b8df950d084ac0e9610a4daae2463ef3511895e
graycker/eBox_STM32F1
/ebox/hardware/cortex-m3/Peripherals/ebox_exti.cpp
C++
cpp
6,905
no_license
/** ****************************************************************************** * @file exti.cpp * @author shentq * @version V2.1 * @date 2016/08/14 * @brief ****************************************************************************** * @attention * * No part of this software may be u...
96e3792bbafaa8fdc0d419a12541ecf14df0c9d5
eec0b7d9341222bf40d4472d3f5f118a8366627f
linbin0107/incubator-trafodion
/core/sql/generator/GenFastTransport.cpp
C++
cpp
22,699
permissive
/********************************************************************** // @@@ START COPYRIGHT @@@ // // 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. ...
886d0123109038db8f10a520739269215f4c398d
c3550aad8f1a83fd955e0a495004f733aa7da60e
DavyVan/PhDStillNeedLeetCode
/problems/303-Range-Sum-Query-Immutable/main.cpp
C++
cpp
713
no_license
#include "kernel.h" #include <cstdlib> #include <iostream> int main() { int size; cout << "Input <size>: "; while (cin >> size) { vector<int> nums(size); cout << "Input <nums>...: "; for (int i = 0; i < size; i++) cin >> nums[i]; NumArray na(n...
9568dbb35a6fb59d44afaf4764ac0e931e9fe602
9c32e6b5a36800024c821adecaca2ce83df12fe0
BackupTheBerlios/fluxbox-svn
/tags/Release-0_1_9/src/StringUtil.cc
C++
cc
4,460
permissive
// StringUtil.cc for fluxbox // Copyright (c) 2001 - 2002 Henrik Kinnunen (fluxgen@linuxmail.org) // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including withou...
48c77fca7a7537d949fd574576a8da007063661b
c70408a8d396cd3ac188d50d41b4634dd7be3d6c
LucQ12/zeeron.su
/CSGO Solution/Features/RageBot/Autowall.hpp
C++
hpp
1,568
no_license
#pragma once #include "../SDK/Includes.hpp" struct PenetrationData_t { Vector m_vecShootPosition = Vector( 0, 0, 0 ); Vector m_vecTargetPosition = Vector( 0, 0, 0 ); Vector m_vecDirection = Vector( 0, 0, 0 ); int32_t m_PenetrationCount = 4; float_t m_flPenetrationPower = 0.0f; float_t m_flPenetrationDistance =...
9e0886a7716e1dc563db833d8810b283370eba95
235e23d7a51edab27df78d010de0d3ff868ff364
williamjchen/Codeforces
/Woodcutters.cpp
C++
cpp
824
no_license
#include <bits/stdc++.h> using namespace std; int main(){ vector<pair <int, int>> trees; int n, x, h; cin >> n; while(n--){ cin >> x >> h; trees.push_back(make_pair(x,h)); } int count = 0, previous = 0; for(int i = 0; i < trees.size(); i++){ if(i == 0 ||...
68cf4c6376fa602d0ffd25abfb4cf6b7ad2f71e2
05fedebe6e7c2ff7cb556d1bae3e734dc78cadc9
tjkendev/procon-library
/cpp/union_find/union_find.cpp
C++
cpp
370
no_license
#define N 100008 int parent[N]; int root(int x) { if(x == parent[x]) { return x; } return parent[x] = root(parent[x]); } bool unite(int x, int y) { int px = root(x), py = root(y); if(px == py) return false; if(px < py) { parent[py] = px; } else { parent[px] = py; } return true; } // 以下...
290b87f2e6fb9a1cf5c93f678051720f3afbd4af
c26d8d2752fc83fb8b19d5b36d3814f6bbde3eec
lubing521/librhino
/third_party/libshairplay/src/lib/crypto/rc4.cc
C++
cc
2,755
no_license
/* * Copyright (c) 2007, Cameron Rich * * 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 c...
45b1cfaabd956531421b1f0ba8bc2beda4e2d797
720a64a8ae9d021a7eb4f0eb18a7cf2d2f745f4f
pcooksey/TREX-WaveGlider
/trex-0.5.1/trex/utils/SharedVar.hh
C++
hh
9,947
no_license
/* -*- C++ -*- */ /** @file "SharedVar.hh" * @brief utilities for multi-thread shared variable * * This header declare classes and utilities to easily * share a variable between multiple threads. * * @author Frederic Py <fpy@mbari.org> * @ingroup utils */ /*******************************************************...
197a04bb8ff35478aa8ca93d640e70f209b8744f
02b20ba7d47fd9e5a7214935ac65fa84e823798b
Cxiro/Synthetic-Client
/Synthetic/Client/Synthetic/Module/Modules/Visuals/ClickGui.cpp
C++
cpp
6,286
no_license
#include "ClickGui.h" #include "../../../Manager/Manager.h" #include "../../../Synthetic.h" #include "../../../Category/Category.h" class VItem; class VWindow { public: std::vector<VItem*> items = std::vector<VItem*>(); Vec4<float> windowTitleRect = Vec4<float>(); Vec4<float> windowRect = Vec4<float...
c30cd4d97ce0202ca9eddbac7afe01300e0b5152
6eebfc840d24d2f5e82a9cf64edfeb6b33f04563
snakeoil-ceo/chromium
/components/bookmarks/browser/model_loader.cc
C++
cc
4,835
permissive
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/bookmarks/browser/model_loader.h" #include "base/bind.h" #include "base/files/file_path.h" #include "base/files/file_util.h" #includ...
d36e8aa72dfacab90af9299909626cb7e34f4857
bedf8faacbefa39df0551e24a552d40f0e810861
nicola-lissandrini/opt_view
/src/self_positioning.cpp
C++
cpp
1,215
no_license
#include "self_positioning.h" using namespace std; using namespace Eigen; SelfPositioning::SelfPositioning (): started(false) { } void SelfPositioning::setParams (XmlRpc::XmlRpcValue &_params) { agentsNo = int (_params["agents_no"]); computedFormation.resize (agentsNo); currentFormation.resize (agentsNo); form...
217af9774ab47f112a129f44231dfd098d3bce7f
94903c1b7f5727756541a6684db0c2842aafcfad
roommmmmmmm/c_exercise
/Cpp/Graph/out_and_in_degree.cpp
C++
cpp
2,154
no_license
#include <cstdio> #include <cstring> #define MAXN 100 int Edge[MAXN][MAXN]; // 邻接矩阵 // 题目描述 // 输入文件中包含多个测试数据,每个测试数据描述了一个无权有向图。每个测试数据的第一行为两个正整数 n 和 m, 1 ≤ n ≤ 100, 1 ≤ m ≤ 500,分别表示该有向图的顶点数目和边数,顶点的序号从 1 开始计起。接下来有 m 行,每行为两个正整数,用空格隔开,分别表示一条边的起点和终点。每条边出现一次且仅一次,图中不存在自身环和重边。输入文件最后一行为 0 0,表示输入数据结束。 // 输出描述: // 对输入文件中的...
9a1158b74ca72ed0c3b06b67a1cb03a894ba8c16
9e53163e94cdb1538c1fa56ca4eb3ed5014e7a29
tahmaz/c
/projects 21.09.09/Script.cpp
C++
cpp
36,033
no_license
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "Script.h" #include "Progres.h" #include "TRGSM.h" #include "TRGSMprUnit3.h" #include "Unit5.h" //--------------------------------------------------------------------------- #pragma package(smart_in...
f059e3e3ad2bf4e51da5d8b0e99235839201b0ef
67f487a0e5d6a0a24c8a54356bd49aebc5008e4a
wjxwalkno/chromium
/media/gpu/v4l2/v4l2_slice_video_decoder.cc
C++
cc
39,158
permissive
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/gpu/v4l2/v4l2_slice_video_decoder.h" #include <algorithm> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/logging.h...
e2a08475f9bc82fbe6e64a2ce9b62f3dd6f3d52d
9b255bd36a3f9740f6dd68c5fb60998d3e6fdca4
uel-dataexchange/Opencascade_uel
/drv/TColStd/TColStd_SequenceNodeOfSequenceOfInteger_0.cxx
C++
cxx
1,531
no_license
// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #include <TColStd_SequenceNodeOfSequenceOfInteger.h...
137db589792fad9edd211390ccb6051c5078d85e
36789086dbb8f36564cb18e443818a671e40787e
amkishkevich/hello
/main.cpp
C++
cpp
3,042
no_license
#include<iostream.h> #include<iomanip.h> #include<time.h> class Matrix{ int n,i,j; double **mas; public: Matrix(); Matrix(int x); Matrix(const Matrix & A); Matrix operator+(Matrix A); Matrix operator-(Matrix A); Matrix operator*(Matrix A); Matrix& operator =(const Matrix & A){ if(this!=&A) {delete [] mas; n=A.n; ...
8b31e8a6e5ab3fe39b220a2437b2b63c1418c029
905cdca66935ea8d49d5bf4e8f64ee420808c9fc
jmichel-otb/gdal
/gdal/frmts/ozi/ozidataset.cpp
C++
cpp
23,529
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> * *************************************...
d931d7798cbf304c3ec80423ef35e9a364222659
d611e6334b0673c25ca71fc1f1293669a83bd874
pono2189/programmiersprachen-aufgabenblatt-3
/source/aufgabe_12.cpp
C++
cpp
1,242
permissive
#define CATCH_CONFIG_RUNNER #include <catch.hpp> #include <cmath> #include <algorithm> #include <vector> #include <iterator> #include <iostream> #include "stdio.h" //#include <bits/stdc++.h> TEST_CASE("Aufgabe12", "[Aufgabe12]"){ std::vector<int> v_1{1, 2, 3, 4, 5, 6, 7, 8, 9}; std::vector<int> v_2{9, 8, 7,...
9731c29bbb895f3880bd44d147822544711a844a
db41a28bd7ebf80585daac4620e79c026e422811
salvAuri/optimisationRefactoring
/optimisationRefactoring/differentiatedCAD/occt-min-topo-src/src/IGESSolid/IGESSolid_RightAngularWedge.hxx
C++
hxx
3,798
no_license
// Created on: 1993-01-09 // Created by: CKY / Contract Toubro-Larsen ( SIVA ) // 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 ...
86e5d1ab35ed81aea819e2b10e730535d65c648d
837516353218b3562aaf1629d4e251e21ed93927
VB6Hobbyst7/GeometricTools-Apple
/WildMagic5/SampleGraphics/SphereMaps/SphereMapEffect.cpp
C++
cpp
1,850
no_license
// Geometric Tools, LLC // Copyright (c) 1998-2013 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // // File Version: 5.0.0 (2010/01/01) #include "SphereMapEffect.h" #include "Wm5PVWMatrixCons...
5fb2a9d9a0a46057d565632e3964f6f4ff1ec4f5
1ab90ec5ec11a9d47db8145f20335b578a52c5ba
opersys/node
/deps/v8/test/cctest/test-global-handles.cc
C++
cc
13,705
permissive
// Copyright 2013 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 ...
8fdca6ac173fa4a1f7f4d327d28093989eacb02f
d78501e8e51c9ef2f164bfd566035d02b27e3f35
armikhael/guacharo
/mailnews/mime/src/nsMimeConverter.cpp
C++
cpp
5,197
no_license
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <stdio.h> #include "mimeco...
b4bd45533540bcdf44a85fa8cb1f8e9e73e942da
dd3e75598915f6461555564c40832481a2fca66a
Pengyuuu/CECS-282-Project-2
/BoardPosition.cpp
C++
cpp
1,909
no_license
#include "BoardPosition.hpp" #include <sstream> #include <vector> using namespace std; BoardPosition::BoardPosition() : mRow(0), mCol(0){ } BoardPosition::BoardPosition(char row, char col) : mRow(row), mCol(col){ } BoardPosition::operator std::string() const { ostringstream os; os << "(" << (int...
6b299d2feb05c21939552a091ff4884adcc1f9b1
a72a753e7b789f7361dca5d6ae95b6306fd10839
Cekiosk/Data_Structure_From_Entry_To_Master
/thucpp_p352_template_class.cpp
C++
cpp
1,087
no_license
#include<iostream> using namespace std; template<class T> class Store{//目标是存储任意类型 private: T item; bool have_value; public: Store();//默认构造函数必须得写 void value_input(T x); T value_output(); }; template<class T>//这个每个定义前面都带 Store<T>::Store(){ //我啥也不干 但得写出来? } template<class T>//这个每个定义前面都要带 T Store<T>::value_...
c97924e9f7137dc6603b17840e0cd85209c70870
3016377d04b084b639f60ea3e9add8473237a574
chengfzy/CPlusPlusStudy
/hv/hv04_WebSocketServer/main.cpp
C++
cpp
1,190
no_license
#include <fmt/format.h> #include <hv/EventLoop.h> #include <hv/WebSocketServer.h> #include <boost/lexical_cast.hpp> #include <common/common.hpp> #include <iostream> using namespace std; using namespace fmt; using namespace common; using namespace hv; int main(int argc, const char* argv[]) { initLog(argc, argv); ...
642ee43d2210b196e7110cf25bd85c7053c157ea
fdaabeab3f42d7cefa3445384ff7a09b9bebabe3
cubetrain/CubeTrain
/contracts/libc++/upstream/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/param_types.pass.cpp
C++
cpp
789
permissive
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------...
aa99bc6231b06ee98528af520c4cd778378eed99
95fca2b39d1cacc6516ef78561b8d90402666b89
ankit-nigam/work
/SPOJ/NegativeBase.cpp
C++
cpp
520
no_license
#include <bits/stdc++.h> using namespace std; vector <int> a; void convert(int n) { while (n != 0) { int r = n % -2; n /= -2; if (r < 0) { r += 2; n++; } a.push_back(r); } if (a.size() == 0) { a.push_back(0); } reverse(a.begin(), a.end()); for (int i = 0; i < (int) a....
32dae4ad53b80a58d8788f30c3225f0e8b9e7069
c959f176ef82aa61eac4a45030f9beda3458eac4
Woking-34/embree-benchmark-protoray
/render/renderer_factory_single.cpp
C++
cpp
3,809
permissive
// ======================================================================== // // Copyright 2015-2018 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
314f54456232bcc872346b5fd629ae98f28fc93f
f32d37562a9d178528e6f51be9842f911babc11a
nimisha20/hifi
/libraries/audio-client/src/AudioClient.cpp
C++
cpp
74,752
permissive
// // AudioClient.cpp // interface/src // // Created by Stephen Birarda on 1/22/13. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include <cstring> #include <math.h> #inclu...
1734010adc703792a4d7155c974e910cff469b40
dfffd8a2e03d052ce326dc129bbca5d68625097e
Bsgcoin/Bsgcoin
/src/qt/bitcoin.cpp
C++
cpp
10,909
permissive
/* * W.J. van der Laan 2011-2012 */ #include <QApplication> #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "messagemodel.h" #include "guiutil.h" #include "guiconstants.h" #include "init.h" #include "util.h" #include "wallet.h" #include "ui_interface.h" #...
cc8e895bee25ead598250184a75e9c4ca021cf49
3fd551a09abef39d1b6467f8c27753a6ce9f5e80
STong01/-1-
/JZ.5/JZ.5/替换空格.cpp
C++
cpp
902
no_license
#include <iostream> using namespace std; void ReplaceBlank(char string[], int length) { if (string == nullptr || length <= 0) { return; } int originalLength = 0; int numberOfBlank = 0; int i = 0; while (string[i] != '\0') { ++originalLength; if (string[i] == ' ') { ++numberOfBlank; } ++i; } ...
2d291152f4873882a167ccb141ed0863dd4400fb
bb075f6930c990978aaa2541d638c948b1b749b6
Nelarius/archive
/GPU-patterns/src/ImGuiRenderer.cpp
C++
cpp
9,843
no_license
#include "ImGuiRenderer.h" #include "Window.h" #include "opengl/Shader.h" #include "opengl/Program.h" #include "opengl/VertexArrayObject.h" #include "opengl/VertexArrayObjectFactory.h" #include "math/Matrix.h" #include "common/Array.h" #include "common/Assert.h" #include "common/Log.h" #include "common/File.h" #include...
f7b94f8ba71ddf11812487bacb42aab7ebef275c
44f54cf0522a4aaf327764e915e6620c9fd0da33
DisplacedHiggs/Statistics
/plotting/include/helper_functions.hh
C++
hh
440
no_license
#ifndef HELPER_FUNCTIONS_HH #define HELPER_FUNCTIONS_HH #include <iostream> #include <THStack.h> #include <TH1F.h> #include <TGraphAsymmErrors.h> #include <TCanvas.h> #include <TLatex.h> bool create_stack(THStack* stack, TH1F* light, TH1F* heavy, TH1F* other); bool create_ratio_plot(TGraphAsymmErrors* data, THStack* s...
7630df9b946f07bb08527ce95fcbfd20353f67c7
067a16fa92d0d43a8847bd6eb053cb116462163d
asimilon/Gin
/modules/gin_plugin/components/gin_knob.cpp
C++
cpp
6,701
permissive
//============================================================================== Knob::Knob (Parameter* p, bool fromCentre) : ParamComponent (p), value (parameter), knob (parameter, juce::Slider::RotaryHorizontalVerticalDrag, juce::Slider::NoTextBox) { addAndMakeVisible (name); addAndMakeVisible (val...
e50f0c8e6994543b7b81494f3c90aa4b785aa8a8
debb482da9dcd4f9aad21f83eae527a4a905947a
MMReisi/codes-
/BST.cpp
C++
cpp
2,777
no_license
#include<bits/stdc++.h> using namespace std; template<class T> class BST{ private: struct node{ T data; bool mark_d = 0, mark_r = 0, mark_l = 0; node *right, *left, *par; }; node root; node* min_right_child(node* p){ if(!(p->mark_l)) return NULL; p = p->left; while(p->mark_r) p = p->right; return p...
a5988968b7cc783e93a2e44f68b20928dd53828f
c6b03ab9fe0dbf990924499c9d56c76d1c1f9371
drcurtis1/conceal-core
/src/Wallet/WalletGreen.cpp
C++
cpp
156,004
permissive
// Copyright (c) 2011-2017 The Cryptonote developers // Copyright (c) 2017-2018 The Circle Foundation & Conceal Devs // Copyright (c) 2018-2019 Conceal Network & Conceal Devs // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #...
c65e0febf2383530523e881cdde1341129aab164
521dcc7486e64b91482b8f086b4a0843282f661e
Faolan-Rad/nebula
/code/render/coregraphics/vk/vkmemorytexturepool.cc
C++
cc
57,277
permissive
//------------------------------------------------------------------------------ // vkmemorytextureloader.cc // (C) 2016-2020 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "render/stdneb.h" #include "vkmemorytexturepool.h" #include "c...
2b6794908743adba73f0a66703b0f70c7d0a7b67
8e00251626da1108f8925dbf2d17b4d5ef9d2e96
FractalDesigns/cowichan-1
/cowichan/cowichan.hpp
C++
hpp
23,345
no_license
/** * \mainpage Parallel Programming and Cowichan Problems * * \section intro_sec Introduction * * The Cowichan problems are implemented by various parallel programming * systems. Serial C++ implementation is available for comparison. * The Cowichan class is the base class for all C++ implementations. * * \sec...
2e927a2441df0e36089c8a2348875094d1a1ed62
95e617ac5fff38e58af5ae9168fc5bb2ba6f45fd
yangzebin001/OJ
/luogu/p1014B.cpp
C++
cpp
829
no_license
/* * @Date: 2019-11-18 20:54:16 * @LastEditors: BeckoninGshy * @LastEditTime: 2019-11-18 21:50:38 */ #include<iostream> #include<cstdio> #include<cstring> using namespace std; const int MAXN = 1e7+10; struct node{ int a,b; }D[MAXN]; int N; int main(){ scanf("%d",&N); D[0].a = 1; D[0].b = 1; D[1]...
46b4d889cb83aeae371e587b0052605ae999d9b1
0795120a0b4d7739a37815569b55a981bc3811d8
sagniknitr/iceoryx
/iceoryx_utils/include/iceoryx_utils/internal/concurrent/loffli.hpp
C++
hpp
3,114
permissive
// Copyright (c) 2019 by Robert Bosch GmbH. 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...
8e3dc0264cd4fe713a8b9df8b90140cbe2d770fd
e34fea1a1a791e9910a822c22307a9f491dcc55d
darkseer54/Robot-2017
/src/bldc_uart_beaglebone/src/comm_uart.cpp
C++
cpp
7,464
no_license
/* Copyright 2015 Benjamin Vedder benjamin@vedder.se This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This pr...
4aeeb0aada2e5ef1c9c4b2ca9e4faf7d2fa08d2e
4923690a497c1c46973ee9e2a1e3e1cbbc8dc843
drakemain/tetris-sdl2
/tetris/source/cell.cc
C++
cc
2,876
no_license
#include "tetris/headers/cell.h" #include "tetris/headers/tetromino.h" #include <iostream> Cell::Cell(int size, Tetromino* owner): owner(owner) { SDL_Surface* surface = SDL_CreateRGBSurface(0, 5, 5, 32, 0, 0, 0, 0); this->cell = SDL_CreateTextureFromSurface(this->getRenderer(), surface); SDL_FreeSurface(surface...
579958a2fbb697bc4ce3fa6847d9238d869f3048
e1e2eba3e0f856d5bbcfdcdd4185c4b7400266ce
wapm-packages/jsc
/Source/WTF/wtf/PORT/RAMSize.cpp
C++
cpp
1,824
no_license
/* * Copyright (C) 2012 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...
6b55cc8f93623167a998e1e68329fbd8293f2c30
bb67268ba61c775622a74d8c3d5cd7a2be2998f6
sakayaparp/CodeChef
/Contests/CODECHEF STARTERS 13 DIVISION 3/Chef in Vaccination Queue/VACCINQ.cpp
C++
cpp
1,126
permissive
# include<bits/stdc++.h> using namespace std; # define ll long long int #define ld long double #define F first #define S second #define nl "\n" #define mem(v, t) memset(v, t, sizeof(v)) #define all(v) v.begin(), v.end() #define sz(v) (ll)(v.size()) #define srt(v) sort(all(v)) #define rsrt(v) sort(v.rbegin(), v.rend()) ...
919058b3b290a3e0a82642e7f49866acbaf0af8f
0f6e5ddcecb5c05367aca89a3fdab0da8dae61f7
hellonaro/BOJ
/2475.cpp
C++
cpp
850
no_license
#include <iostream> #define REP(n) for(int i=0; i< n; i++) using namespace std; /* 컴퓨터를 제조하는 회사인 KOI 전자에서는 제조하는 컴퓨터마다 6자리의 고유번호를 매긴다. 고유번호의 처음 5자리에는 00000부터 99999까지의 수 중 하나가 주어지며 6번째 자리에는 검증수가 들어간다. 검증수는 고유번호의 처음 5자리에 들어가는 5개의 숫자를 각각 제곱한 수의 합을 10으로 나눈 나머지이다. 예를 들어 고유번호의 처음 5자리의 숫자들이 04256이면, 각 숫자를 제곱한 수들의 합 0+16+4...
91246edca193b24a1c1792a041b588dbc23ee194
b6b45b5ca981f0393c1ca7450c5790bd8fe0afc9
creativechain/crea
/libraries/plugins/smt_test/smt_test_plugin.cpp
C++
cpp
9,646
permissive
#include <crea/plugins/smt_test/smt_test_plugin.hpp> #include <crea/plugins/smt_test/smt_test_objects.hpp> #include <crea/chain/account_object.hpp> #include <crea/chain/database.hpp> #include <crea/chain/index.hpp> #include <crea/protocol/smt_operations.hpp> #define SMT_TEST_PLUGIN_NAI (SMT_MIN_NON_RESERVED_NAI * 10...
6cc463e4f7a8ead3d77a501a2d2b63f0cf8cffa7
59aef4e6f9e714a48cc921805a007fabc00f447c
tangqi/mfem
/tests/unit/fem/test_bilinearform.cpp
C++
cpp
2,257
permissive
// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit ht...
7a151f4781d22dc3c9c264c03e7ba1b7370bee38
9b0ec56c1bf45f4b5bc9b37c97fb9f0db45f641f
lalitgarg2005/swift
/lib/Serialization/Serialization.cpp
C++
cpp
184,094
permissive
//===--- Serialization.cpp - Read and write Swift modules -----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
608fc9b98d21b0a348d9c28f28de567ecd610580
2fffd5f546d00583f651b47a4f052db9ab8e1fa3
bnaib/Coursera_CPP
/Course1/2/3/test.cpp
C++
cpp
289
no_license
#include <iostream> #include <string> #include <vector> using namespace std; #include "PalindromFilter.cpp" int main(int argc, char **argv) { vector<string> v = {"weew", "bro", "code"}; vector<string> r = PalindromFilter(v, 4); for (string s : r) cout << s << endl; return (0); }
d762c82bee2dcb3955a8f9ee7a6f256a4b3a2e70
d1168f5c14f913317af78444a6c67791f0416673
aloucks/dawn
/src/dawn_native/ShaderModule.cpp
C++
cpp
69,444
permissive
// Copyright 2017 The Dawn Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
abf0e87ff3266b06afd8b512affdfe65bf547034
c13bab36f232703c56a0c73f9aac61c57295541d
ZJCRT/drishti
/src/examples/facefilter/lib/facefilter/renderer/android/FaceTrackerFactoryJsonAndroid.cpp
C++
cpp
1,410
permissive
/*! -*-c++-*- @file FaceTrackerFactoryJsonAndroid.h @brief Implementation of a FaceTrackerFactory to load models from a JSON file using the NDK AssetManager. \copyright Copyright 2017-2018 Elucideye, Inc. All rights reserved. \license{This file is released under the 3 Clause BSD License.} */ #include "facefi...
fa7b85e31fb1908cffcf4fb1469eedfab1e3f0fa
6097a70c3a41327ce9f348022d267ef348ff6700
msuchard/nt2
/modules/fuzzy/unit/simd/fuzzy_definitely_greater.cpp
C++
cpp
2,866
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 /// ...
5ccb6d8a5f78a136656e265feaddbe6c661a1088
b9a114842d3cec69469deea8c0fffc090c09270e
graciposser/astran
/src/cellnetlst.cpp
C++
cpp
21,716
no_license
#include "cellnetlst.h" #include <algorithm> void CellNetlst::multiply(int m){ for(int tmp=0; tmp<trans.size(); tmp++) trans[tmp].width*=m; } bool CellNetlst::verifyCnt(int pos){ if(nets[pos].trans.size()>2) // if is connected to more than 2 transistors return true; else for(vector<int>::iterator tmp=inouts...
0ab9d368b59bc8ec79622c76df045b320cf5380a
cf6f9b2d48cdbf0b08f33ee1c8199fe85d504a80
Ericir3/PUBG-SDK
/SDK/PUBG_WidgetFunctionLibrary_classes.hpp
C++
hpp
833
no_license
#pragma once // PlayerUnknown's Battlegrounds SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace Classes { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass Wi...
c3966ce1156052314b962b8366b322792da9b442
a20911307e785ad429b045b00d428386ce2771c0
justinctlam/MarbleStrike
/game/code/common/engine/render/font.cpp
C++
cpp
16,218
permissive
////////////////////////////////////////////////////// // INCLUDES ////////////////////////////////////////////////////// #include "common/engine/database/database.hpp" #include "common/engine/game/gameapp.hpp" #include "common/engine/render/effect.hpp" #include "common/engine/render/effectmanager.hpp" #include "commo...
da5d9af8d0e410c46e124e9c0ce3ae739a84b008
e11fedb8209046ca31317524cf864ff4c35ba047
Wiznet/WizFiShield
/Software/WizFiShield/HTMLParser.cpp
C++
cpp
7,025
no_license
#include "HTMLParser.h" #include <avr/pgmspace.h> #ifdef CODEMEM const char Get_Msg[] PROGMEM = "GET"; // "String 0" etc are strings to store - change to suit. const char URI_Msg[] PROGMEM = "/?command"; // "String 0" etc are strings to store - change to suit. const char Forward_CMD_Msg[] PROGMEM = "FW_CMD";...
3f4a4fe308d8dc07c30587c221ee492c96a81f2a
7d106c82c613a2b3f52b21917e4f0566f4eea7d0
tataglarasati11/c-tatag-luasdankeliling-prokom-10week
/program keliling dan luas persegi dan persegi panjang.cpp
C++
cpp
3,328
no_license
#include <iostream> #include <conio.h> #include <fstream> using namespace std; void header (); void jenis (); void persegi (); void persegiP (); int hasil(int sisi, int panjang,int lebar) ; int main() { int pilih; char ulang; do{ header (); cout << "Pilihan:" << endl; cout << "1. P...
799efa0835a12ef90c09a7a073e8d77acad012fa
6493ceadc1f032b279841dbc7addb906f7112e45
thanhnguyen210299/HCMUS-CSC-10008-_-COMPUTER-NETWORKS
/Project 01_Socket/Source/CLIENT/client_PrivateChat_ui.cpp
C++
cpp
3,826
no_license
#include "private_chat.h" #include "ui_private_chat.h" private_chat::private_chat(QWidget *parent) : QWidget(parent), ui(new Ui::private_chat) { ui->setupUi(this); //Create client privateSocket=new QTcpSocket(); //Connect to server privateSocket->abort(); privateSocket->...
b5da6802e6af5038895d23523132ac3b9e43829a
75253e74fa8995a8aee9b063f154f33ada971766
mpuccio/onnxruntime
/onnxruntime/server/http/core/session.cc
C++
cc
4,783
permissive
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "session.h" namespace onnxruntime { namespace server { namespace net = boost::asio; // from <boost/asio.hpp> namespace beast = boost::beast; // from <boost/beast.hpp> using tcp = boost::asio::ip::tcp; /...
86c8376eb7c6399ecbefe159ffbcb14dfe2ef394
a8ab1dd14db2061ad976bc0a7c61e237752e42d3
erisonliang/2014_Kriging
/3DGrapher.cpp
C++
cpp
5,618
no_license
// 3DGrapher.cpp: implementation of the C3DGrapher class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "3DGrapher.h" #include "gl\glaux.h" #include <cmath> using namespace std; #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_...
3de2e0f7b121e399ffd4cbd301efd48291ac5738
43e99c1d9d20aec0470bdb4bafe3b1f5bfb0c334
JohnHeikens/WorldCraft
/v4.2/Part 6/parrot.cpp
C++
cpp
2,521
no_license
#include "parrot.h" //color parrotcolor = color(210, 149, 20); void parrot::Update() { fp cosyaw = cos(body.rotations[1].angle); fp sinyaw = sin(body.rotations[1].angle); vec3 direction = vec3(cosyaw, sinyaw, 0); block b = GetBlock(position + direction); speed += 0.005 * direction; fp mult = b == air ? 0.01 : 0.0...
a3784399b12fbb3d72809a2f2e26ae8bd01e5cb7
39672373e3a4739c20514040894f8b8c6eb430c4
nayemislamzr/Competitive-Programming
/acm hust/Others/LightOJ/1341/8279980_AC_380ms_6584kB.cpp
C++
cpp
2,614
no_license
#include <bits/stdc++.h> #define loop(i,s,e) for(int i = s;i<=e;i++) //including end point #define pb(a) push_back(a) #define sqr(x) ((x)*(x)) #define CIN ios_base::sync_with_stdio(0); cin.tie(0); #define ll long long #define ull unsigned long long #define SZ(a) int(a.size()) #define read() freopen("input.txt...
bd1fb1e0ac136ed79465d9a5cefa2f0ef9c80298
979654e0f069b8e459731283b015a1fc287d0f34
tcagame/Attraction2017
/Solution/AceLiveMonitor/NPCMiko.cpp
C++
cpp
1,019
no_license
#include "NPCMiko.h" #include "SynchronousData.h" const int WAIT_ANIM_TIME = 10; NPCMiko::NPCMiko( const Vector& pos ) : NPC( pos, BIG_CHAR_GRAPH_SIZE ) { _solt = false; } NPCMiko::~NPCMiko( ) { } void NPCMiko::act( ) { } void NPCMiko::startSolt( ) { _solt = true; } void NPCMiko::setSynchronousData( ) const { ...
217b358a1bef2c26cec2975bcbc88551869e62bb
142e257d2b33690d79d6285f0490adb883e42952
DamieFC/chromium
/third_party/blink/renderer/platform/exported/web_runtime_features.cc
C++
cc
24,063
permissive
/* * Copyright (C) 2013 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 conditio...
bd99322ba7aee1ba1276f6996cb0ad1430ee8384
47c94c0601d7ab503b33967c902eb0111b626640
ZhiyuLiu1993/GitTest
/Ran_test/Traitor.cpp
C++
cpp
1,433
no_license
#include <iostream> #include <vector> #include <limits> using namespace std; //寻找数组中的背叛者,距离数组值(所有数之和的一半)差距最大的是traitor,每次去除数组中离数组值最近的,3,5 数组值4,3更近 class Solution{ public: int Traitor(int group[], int length){ int median; for(int i = 0; i < length-1; ++i){ median = 0; for (int...
6d7735c6bd80e070978066ac530835481a9d693a
5629524585c9c3f0f86b5c2648cef3fae981a91c
yori05/Adventur
/Source/Adventur/Components/LockerComponent.cpp
C++
cpp
5,963
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "LockerComponent.h" #include "Components/PrimitiveComponent.h" #include "Adventur/Components/TargetableComponent.h" #include "Engine/Engine.h" #include "GameFramework/Actor.h" #include "Engine/World.h" #include "Engine/En...
0a26e6e062c961061317ab99752074fe566e96ca
e6d8806fe5f420d21f3da5f443ea1998b24bcec8
gav1n-cheung/PCL_Study
/Registration/main.cpp
C++
cpp
30,473
no_license
////#include <iostream> ////#include <pcl/io/pcd_io.h> ////#include <pcl/point_types.h> ////#include <pcl/registration/icp.h> ////#include <pcl/visualization/pcl_visualizer.h> //// ////int main(int argc,char** argv){ //// pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_in(new pcl::PointCloud<pcl::PointXYZ>(5,1)); //// ...
b32c4296c846db9fc1eb462a7b5025f00526c5ff
63518705703906145edda43b300e2f36d6ed6d83
noahberg/Noah-Bergman
/hw2/test_llist.cpp
C++
cpp
2,850
no_license
#include "llistint.h" #include <iostream> using namespace std; int main() { LListInt* list = new LListInt(); int passed = 0; int total_tests = 0; if(!list->empty()) cout << "Failure, test at line 10" << endl; else passed++; total_tests++; /* tests for insert function */ // test inserting at wrong po...
d0ceac7ff90f20fba1ac0fc965bb6fccb8e4392c
212cc36d52e1753675b8668ac90a783067cfda7d
indistormborn/App
/Application/MyData.cpp
C++
cpp
955
no_license
#include <sstream> #include "MyData.h" void MyData::createLists() { list1= new ListStructure(); list2= new ListStructure(); for(int i= 0; i < 10; i++){ int x= rand() % 10; list1->add(x); } for(int i= 0; i < 10; i++){ int x= rand() % 10; list2->add(x); } } std::string My...
9fa95666c36dd5bb08c892e6a2b3724947b95b60
865e326c720a7d3400babfd96815fc790caed54a
automovil-uchile/V2018-1
/code/lib/EngineAdministrator.cpp
C++
cpp
3,787
no_license
//#include "Arduino.h" #include "Engine.h" #include "EngineAdministrator.h" #include <math.h> EngineAdministrator::EngineAdministrator(int pinRET, int pinRES, int pinLET, int pinLES, float w, float l): _rightEngine("right", pinRET, pinRES), _leftEngine("left", pinLET, pinLES) /* This class is in charge of the...
ec7cc0e0f6d67b25bea1df029210783e5e4d9caf
49a69c5b26392c298014227ee5710d97eadecf27
Sohan021/DataStructure_-_Algorithm
/Array/Reverse_The_Array_RecursiveWay.cpp
C++
cpp
511
no_license
#include<bits/stdc++.h> using namespace std; void printA(int a[], int n) { for(int i=0;i<n;i++){ cout<<a[i]<<" "; } cout<<endl; } void reverseA(int a[], int s, int e) { if(s >= e) return; int t = a[s]; a[s] = a[e]; a[e] = t; reverseA(a, s + 1, e - 1); } int main() { ...
244036918a6f041bd385a6ee4b4f05b4554a1726
843e91d2bc4ee5e869a1b46898c1207b94c9ea96
LMS-KING/Plane_Ticket
/File.cpp/main.cpp
C++
cpp
332
no_license
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.setWindowTitle("新视野航空网络订票系统"); w.setWindowFlags(w.windowFlags()& ~Qt::WindowMaximizeButtonHint& ~Qt::WindowMinimizeButtonHint); w.show(); return a.exec(); }
654826bd5c1ff881fe4cfc557bae8657ecc18a14
81e1b784d4361c6a438dfc0ff8f9f11479568419
Vent-Frais/HqWalletSDK
/HqWalletSDK/libs/HqMyUitl.hpp
C++
hpp
271
no_license
// // HqMyUitl.hpp // HqWalletSDK // // Created by hehuiqi on 2020/11/21. // #ifndef HqMyUitl_hpp #define HqMyUitl_hpp #include <stdio.h> class HqMyUitl { public: int tag; public: HqMyUitl(); ~HqMyUitl(); void Write(); }; #endif /* HqMyUitl_hpp */
f8b30c647c6928f766ab594a52314474ed179137
1ba12ca10c923ed0a5f2ba07c39366f4674f1ec6
ashutosh0gupta/llvm_bmc
/examples/litmus/c/run-scripts/tmp_5/Z6.0+poreleaserelease+poonceonce+poreleaseacquire.c.cbmc.cpp
C++
cpp
40,216
no_license
// Global variabls: // 4:atom_2_X1_0:1 // 0:vars:3 // 3:atom_1_X0_1:1 // Local global variabls: // 0:thr0:1 // 1:thr1:1 // 2:thr2:1 #define ADDRSIZE 5 #define LOCALADDRSIZE 3 #define NTHREAD 4 #define NCONTEXT 5 #define ASSUME(stmt) __CPROVER_assume(stmt) #define ASSERT(stmt) __CPROVER_assert(stmt, "error") #define m...
0154cb84d740ce6716a017123d0a30ec6f01b119
e3aebf13e2a38cb4a5d7d22f087db6bce6888383
gonidelis/hpx
/libs/full/distribution_policies/include/hpx/distribution_policies/container_distribution_policy.hpp
C++
hpp
5,525
permissive
// Copyright (c) 2014 Bibek Ghimire // Copyright (c) 2014-2021 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 // 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) #pragma once #include <hpx/config.hpp> #inc...
37e047b0853e4697371f891c00f131a45697c7ad
98a6a7bdf9936b0bde362c1f9c05b01177ef18d9
anthonyclays/llvm-project
/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_common.cc
C++
cc
5,406
permissive
//===-- sanitizer_procmaps_common.cc --------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
633473fc6954001cc7b6128eb17f3c7a7fd98f4f
08444548b44438584cfcf769a45a372e4bd22c2e
RainbowZerg/X-Ray_Engine_1.5.1.0
/src/xrGame/ai/monsters/poltergeist/poltergeist_flame_thrower.cpp
C++
cpp
11,362
no_license
#include "stdafx.h" #include "poltergeist.h" #include "../../../../xrServerEntities/xrmessages.h" #include "../../../ai_object_location.h" #include "../../../level_graph.h" #include "../../../level.h" #include "../../../ai_space.h" #include "../../../restricted_object.h" #include "../../../actor.h" #include "../../../a...
182c52ff3ac00c3703d0cbeb8ed5d06fa0441079
c24e10c3efc2984d8a9ac1d6cddd30dcc78ee4cc
Minichota/Ouji-board
/src/animation/animation.hpp
C++
hpp
426
no_license
#ifndef ANIMATION_HPP #define ANIMATION_HPP #include <SDL2/SDL.h> #include <vector> #include "vectors.hpp" class Animation { public: Animation(Ivec pos, long long duration, SDL_Texture* texture); ~Animation(); virtual void render() = 0; static void global_render(); void set_pos(Ivec pos); protected: stat...
9f552ef135aaa1cd9cfec9b672d56323d1e6f45d
09232848caece329bf00693febc8b58e9769e86a
swbrenneis/libjson
/Variant.cc
C++
cc
2,925
permissive
#include "Variant.h" #include "NullVariant.h" #include "ObjectVariant.h" #include "ArrayVariant.h" #include "StringVariant.h" #include "LongVariant.h" #include "BooleanVariant.h" #include "Object.h" #include "Array.h" #include "VariantException.h" namespace json { Variant::Variant() : variant(new NullVariant) { } Va...
c8ebd53a6c508a02e2e7d8edddd8b7093a0281d9
d709f3b54e2e164454bd65e65d6f26724b717f4f
jamesh1999/Code-Breaking
/build-CodeBreakerGUI-Desktop_Qt_5_7_0_MSVC2015_64bit-Release/release/moc_Amsco.cpp
C++
cpp
11,926
no_license
/**************************************************************************** ** Meta object code from reading C++ file 'Amsco.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.0) ** ** WARNING! All changes made in this file will be lost! ***************************************************************...
8ecc46fafb215ea909b928cb49d8a5fc1d8c4793
4c11626a4b41e7a2ec7449dc9312c987171bb909
anmol-drish/SealDemo
/double_product.cpp
C++
cpp
11,998
permissive
#include <bits/stdc++.h> #include "seal/seal.h" #include "examples.h" #include <iostream> #include <fstream> using namespace std; using namespace seal; size_t number_n; // 有效数目个数 const double scale = pow(2.0, 40);// 放大因子 vector<double> get_input(size_t slot_count) { vector<double> input(slot_count, 0ULL); ...
7a8d0f156c2289d325a1082420da6b26a6581335
9ec87d3b4516818301b2ab58ad4f01b067891afe
qfc/ecclesia-machine-management
/ecclesia/magent/redfish/indus/memory_metrics.cc
C++
cc
3,987
permissive
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
c7fa7eedb08fcfc8d15ae1aedb63511161e0dccf
13586e53c3544844986dc267eb9142ae1a613433
metasim/ews
/src/EWS/test/physics/OscillatorTest.cpp
C++
cpp
5,565
permissive
/* Copyright 2010 NVIDIA Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
5cf55cc2bdbf396e1a711614c5b6ea6fa1b1dabc
c14c126e4934025f09ebdeb49ac8adfcc02c6d3b
Lava-Liu/media
/oldstudycode/qt/myself/build-Tankwar_1-Qt_4_8_1-Debug/moc_mainwindow.cpp
C++
cpp
2,372
no_license
/**************************************************************************** ** Meta object code from reading C++ file 'mainwindow.h' ** ** Created: Tue Mar 8 15:25:50 2016 ** by: The Qt Meta Object Compiler version 63 (Qt 4.8.1) ** ** WARNING! All changes made in this file will be lost! *************************...
5bcf4ef3a5b6d74b669e0404f3e73dbfb23dddff
93ae6f7bd02a4b01aae1503fb9dc5d8de8d2bfe2
berber1016/chromium
/ash/display/display_highlight_controller_unittest.cc
C++
cc
6,174
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 "ash/display/display_highlight_controller.h" #include "ash/public/cpp/ash_features.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h"...
8a1cd8551a390856b817366d6c9e0948deecc507
3de3d3891d3dc2bf5cfeeb8fb2f0a7c746aff18c
pelluro/CppRush00
/Entity/Characters/Creatures/Basic.hpp
C++
hpp
992
no_license
#ifndef BASIC_CLASS_H # define BASIC_CLASS_H # include <string> # include <iostream> #include "../../AEntity.class.hpp" #include "../Character.class.hpp" #include "Creature.hpp" #include "../../../Weapons/Gun.hpp" class Basic:public Creature { public: Basic( void ); Basic( Basic const & src ); v...
5a3fc1de4c746055d409dab90c385965ac24ab3c
d04279ab5e325f9410440ec3102516d73d283d57
hirosystems/bitcoin
/src/wallet/wallet.cpp
C++
cpp
184,798
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 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 <wallet/wallet.h> #include <chain.h> #include <consensus/consensus.h> #...
594f5a406b4530a5dfb5e5d581225b998b1e106b
a6fcde70e0773f01c3b47a11dfb0ff5b1d5d510f
junlong-gao/recreations
/code_practise/leetcode/00032.cpp
C++
cpp
760
no_license
class Solution { public: int longestValidParentheses(string s) { vector<int> left; vector<int> dp(s.size() + 1, 0); int ret = 0; for (int i = 0; i < s.size(); ++i) { if (s[i] == '(') { left.push_back(i); dp[i] = 0; } else { ...
300c5c1046d796c9f984fd424e62170c61cf0426
3cce2581dca8e0336e75a0054768919608112980
shunexe/KRS6003_Controller
/KRS6003_Controller/KRS6003_ControllerDlg.cpp
C++
cpp
15,643
no_license
// KRS6003_ControllerDlg.cpp : 実装ファイル // #include "stdafx.h" #include "KRS6003_Controller.h" #include "KRS6003_ControllerDlg.h" #include "afxdialogex.h" #include "CommPort.h" #include "IMUZ.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // アプリケーションのバージョン情報に使われる CAboutDlg ダイアログ class CAboutDlg : public CDialogEx { ...
2e8dc5aa8ff0d9413e894444976c0d86725dbec7
c9b8c88c3488d052b4e89cb03bad28be39b1dee8
walkingeyerobot/wasp
/src/tools/argparser.cc
C++
cc
7,191
permissive
// // Copyright 2019 WebAssembly Community Group participants // // 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...