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
ca1dc39169be0acd00184789f7cf26ece253b349
a4361720a050628e9930e6eecfb4517b39fa05fc
gopeshh/drake
/drake/solvers/qpSpline/splineGeneration.cpp
C++
cpp
6,890
permissive
#include "drake/solvers/qpSpline/splineGeneration.h" #include <Eigen/Dense> #include <iostream> #include <sstream> #include <numeric> #include <stdexcept> #include "drake/common/drake_assert.h" using Eigen::Dynamic; using Eigen::MatrixBase; using Eigen::MatrixXd; using Eigen::Ref; using Eigen::VectorXd; using std::e...
9a0b8b1c9f306ca34a5356212af548c7cdf397db
0f71077cdb4e0077fe1d555ec5ba6d2dae61f325
Tanavya/Competitive-Programming
/GraphTheory/Implementation/DetectingCyclesDirectedGraph.cpp
C++
cpp
2,863
no_license
#include <iostream> #include <vector> #include <algorithm> #include <climits> #include <stdio.h> #include <queue> #include <set> #include <list> #include <cmath> #include <assert.h> #include <bitset> #include <cstring> #include <map> #include <iomanip> //cout << setprecision(node) << fixed << num #include <stack> #incl...
e187a1f4888e997607e4ad6ce958dbbc33a97bb3
ca074d3237af70c93366769e678f09104d3464d8
marcoskwkm/code
/Contests/Maratona Mineira/2016/C/c.cpp
C++
cpp
703
no_license
#include <bits/stdc++.h> using namespace std; #define debug(args...) fprintf(stderr,args) typedef long long lint; typedef pair<int, int> pii; typedef pair<lint, lint> pll; const int INF = 0x3f3f3f3f; const lint LINF = 0x3f3f3f3f3f3f3f3fll; const int MAXN = 1010; string v[MAXN][2]; int main() { int n, m; sc...
4ccaaaeb1ffa94fc8e39cf52faa919dd78c1ea97
b1cfffe12570514003e212bdae7966a980ddcf00
ECS-251-W2020/chromium
/base/win/event_trace_controller_unittest.cc
C++
cc
7,284
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Unit tests for event trace controller. #include <objbase.h> #include <initguid.h> // NOLINT - has to be last #include "base/files/file_path.h...
f827572a495ea53e11800a3f28239655472f04dd
363df54319b8d806865f46059e8ac64cdb0ce3fd
SathvikaKomalla/loki-network
/llarp/router.cpp
C++
cpp
27,080
permissive
#include "router.hpp" #include <llarp/proto.h> #include <llarp/iwp.hpp> #include <llarp/link_message.hpp> #include <llarp/link/utp.hpp> #include "buffer.hpp" #include "encode.hpp" #include "llarp/net.hpp" #include "logger.hpp" #include "str.hpp" #include <fstream> namespace llarp { void router_iter_config(llarp_...
fdefd93c4a2055644fea87b2cb73061962e6c7b6
4d2150786e955c2fed1ff61a04bc9a1c99283095
apurvjain9999/DSA
/home/tower.cpp
C++
cpp
4,956
permissive
#include<stdio.h> #include<math.h> struct tower1 { int data1; struct tower1 *link1; } struct tower1 *top1 = NULL, *temp1 = NULL, *t1 = NULL; struct tower2 { int data2; struct tower2 *link2; } struct *top2 = NULL, *temp2 = NULL, *t2 = NULL; struct tower3 { int data3; struct tower3 *link3; } struc...
07e2eb0b5e6c991b80c1d1bb9dfa4eaa8913be6e
fb66f3537a8bc04445232a1f770c18850f6816f3
gamestart/jenkins-test
/src/common/applogger.cpp
C++
cpp
1,778
no_license
/**************************************************************************** * @file applogger.cpp * @brief 应用程序日志 * @author xiaoyu.liu * @email xiaoyu.liu@smartmore.com * @version * @date 2021-01-08 * Copyright (c) 2021 SmartMore All rights reserved. ************************************...
87009cb61cc79b991a2a98e55a6a9889481cb9ef
43520f20be57df5ada0f2c66c53f0010922fa0a3
lijuni/allCPPTest
/2018/test0403/test_file01.cpp
C++
cpp
465
no_license
//P285 fstream #include<iostream> #include<fstream> #include<string> #include<vector> using namespace std; int main() { ifstream in1("readme1.txt"); ifstream in2; in2.open("readme2.txt"); vector<string> vs; if(in1) { string s; while(getline(in1,s)) cout<<s<<endl; } else { cout<<"OPEN FILE1 FAIL!"...
a67d9d49ee8d1568455db3f167a152f7fcb80e36
d90ae8cc749eb1ccfe30a05d8570e8caf2c5b15a
xtblock/chromium
/chrome/browser/chromeos/policy/external_data_handlers/user_avatar_image_external_data_handler.cc
C++
cc
2,164
permissive
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/policy/external_data_handlers/user_avatar_image_external_data_handler.h" #include <utility> #include "chrome/browser/a...
ae1176cc6f0c5c9b6ff1cf4dcb710003caca3c4a
abdac0e07368caf079c1cb6d76df046576fb1479
paulyc/IncludeOS
/src/plugins/syslogd.cpp
C++
cpp
1,182
permissive
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2017 IncludeOS AS, Oslo, Norway // // 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:/...
6b208e918c1410c96405d368c80657392a60ad01
d51f3b98f67ba2c79fa7213fccf0794f04f36c42
MegEngine/MegEngine
/dnn/src/fallback/elemwise/gi_impl/ternary/algo.cpp
C++
cpp
28,145
permissive
/** * \file dnn/src/fallback/elemwise/gi_impl/ternary/algo.cpp */ #include "src/fallback/elemwise/gi_impl/ternary/algo.h" #include "src/fallback/elemwise_helper/elemwise_op.h" #include "src/common/utils.h" #include "src/naive/handle.h" #include "midout.h" MIDOUT_DECL(megdnn_fallback_elemwise_ternary) using names...
8ac21db20ad6b4cff7f9135121834ef87d594a28
aedba488febab3e146ea7a4850d6395808890e2b
liyi6/QtCustomControllers
/QtCustomControllers/CustomShadowEffect.cpp
C++
cpp
2,272
no_license
#include "CustomShadowEffect.h" CustomShadowEffect::CustomShadowEffect(QObject *parent) : QGraphicsEffect(parent), _distance(4.0f), _blurRadius(10.0f), _color(0, 0, 0, 80) { } QT_BEGIN_NAMESPACE extern Q_WIDGETS_EXPORT void qt_blurImage(QPainter *p, QImage &blurImage, qreal radius, bool quality, boo...
cdb16f478377a8e8ed7ee1e47491b2f624dc6921
1f1718b0fc14c8b1f116fc063bd21c074c1474bf
tongxingwy/chromium-1
/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
C++
cc
8,827
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 "base/bind.h" #include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/memory/ref_counted.h" #include "base/memor...
d39e94ee755bb31cd56d19567a5859eaeff501f3
30253a94cc1d33b6a78b4c705bedd014f983888a
tidewise/drivers-comms_protobuf
/src/Protocol.hpp
C++
hpp
5,680
permissive
#ifndef COMMS_PROTOBUF_PROTOCOL_HPP #define COMMS_PROTOBUF_PROTOCOL_HPP #include <cstdint> #include <array> namespace comms_protobuf { struct DecryptionFailed : std::runtime_error { using std::runtime_error::runtime_error; }; struct EncryptionFailed : std::runtime_error { using std::runtim...
e98142d67327c426a7121f467b332fe92e72fa4b
301912888da720ed94553466c6a550d2712ef390
vdm113/wxWidgets-ICC-patch
/src/xrc/xh_bmpcbox.cpp
C++
cpp
3,468
no_license
/* token_VDM_prologue */ #if defined(__INTEL_COMPILER) && defined(_MSC_VER) && !defined(VDM_MACRO_PRAGMA_IVDEP) # define VDM_MACRO_PRAGMA_IVDEP __pragma(ivdep) __pragma(swp) __pragma(unroll) __pragma(prefetch) # define VDM_MACRO_PRAGMA_NO_IVDEP /* NOP */ #elif !defined(VDM_MACRO_PRAGMA_IVDEP) # define VDM_MACRO_P...
d7cd085da4eb46758fdbbf727760319c8fb211c9
7f3026a0567a41d99a58a55794be14f59915d214
ShiverZm/MFC
/ListBox/MinaListBoxDemo/MinaListBoxDemo.cpp
C++
cpp
2,115
no_license
// MinaListBoxDemo.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "MinaListBoxDemo.h" #include "MinaListBoxDemoDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////...
362d86db690c4ff523d0f7e6035c4f526e732666
a7487220d22af55b0f63bcdc61ba9f0d06f45aca
KHJcode/chromium
/chromecast/browser/cast_content_browser_client_receiver_bindings.cc
C++
cc
8,950
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. // This file exposes services from the cast browser to child processes. #include "chromecast/browser/cast_content_browser_client.h" #include <memory> #...
ca0d93c6dd2adc840938e6afd2ad03b0f89a0490
bc5e72411bc88839abea79308af6e15034d010d9
andres-fernandez-fuks/taller_wolfenstein3D
/include/common/yaml-cpp/test/integration/handler_spec_test.cpp
C++
cpp
67,342
permissive
#include "handler_test.h" #include "specexamples.h" // IWYU pragma: keep #include "yaml-cpp/yaml.h" // IWYU pragma: keep #include "gmock/gmock.h" #include "gtest/gtest.h" using ::testing::_; #define EXPECT_THROW_PARSER_EXCEPTION(statement, message) \ ASSERT_THROW(statement, ParserException); \ t...
ac7e2280a6e837376edbd7922d0d0a69c84dd697
1f5edd0bb0e6c5460cf63333d4f9b46ce67d8945
CyberSys/qnxpkgsrcmirror
/vendor/HEAD/pkgsrc/net/libtorrent/patches/patch-src_torrent_download_choke__group.cc
C++
cc
1,537
no_license
$NetBSD: patch-src_torrent_download_choke__group.cc,v 1.3 2013/09/18 16:32:05 joerg Exp $ --- src/torrent/download/choke_group.cc.orig 2012-03-20 16:33:27.000000000 +0000 +++ src/torrent/download/choke_group.cc @@ -37,7 +37,15 @@ #include "config.h" #include <algorithm> +#if __cplusplus >= 201103L +#include <funct...
78eaf5996d353efed57d066bb448a31a07e44118
120e4881ac6af7a3365abaa26ddff59dd13edb6f
fsmos/lumina-debian
/libLumina/LuminaSingleApplication.cpp
C++
cpp
4,412
permissive
//=========================================== // Lumina-DE source code // Copyright (c) 2014, Ken Moore // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== #include "LuminaSingleApplication.h" #include <QDir> #include <QFile> #include <Q...
3384991e0877b67dcb03c6a3f3b0477bee01d9a1
066ea967b52657ffea3072e87c1f6557b9c8db30
Drizshko/openvino
/ngraph/test/backend/cosh.in.cpp
C++
cpp
2,021
permissive
//***************************************************************************** // Copyright 2017-2021 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
188e6d5e4699ac5d9d532168bde2f69fc9fa5c0d
a23729611febaba1248f9b473388721885bde599
LumaPictures/usd-arnold
/lib/pxr/usd/usdAi/aiProceduralNode.cpp
C++
cpp
5,281
permissive
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
00f20416d48fed544e32fea7d66abba3efd199b1
d9ec1a11ed80c149a13d544310233d4bea1c29ba
amelim/BeagleBoardUAV
/cpp/serial/ASIOSerialPort.cpp
C++
cpp
3,697
no_license
/* * ASIOSerialPort.cpp * * Created on: Nov 8, 2012 * Author: Matthew Barulic */ #include "ASIOSerialPort.h" #include <iostream> ASIOSerialPort::ASIOSerialPort(std::string port_name, size_t baud) : port(ioservice, port_name) { if( !port.is_open() ) { std::cerr << "Failed to open serial port: " << p...
229eda590b12d944f41b3076b507202d2456371e
eda48a80f5685afd6cf596f712734324310ca9d4
Danny2036/MobileRobotics
/Path_Services/src/my_path_client.cpp
C++
cpp
3,618
no_license
//path_client: // illustrates how to send a request to the path_service service #include <ros/ros.h> #include <Path_Services/PathSrv.h> // this message type is defined in the current package #include <iostream> #include <string> #include <nav_msgs/Path.h> #include <geometry_msgs/Pose.h> #include <geometry_msgs/PoseSta...
24e60ad042b780bd73dd96f07504adfbb3afe170
cfa16dd56d9039d54d683baf59620c752bbcfa04
i2som/qstudemo
/widget.cpp
C++
cpp
5,286
no_license
#include "widget.h" #include "ui_widget.h" #include <QMessageBox> #include <QDebug> #include <QSqlError> #include <QColorDialog> #include <QListWidget> QSqlQuery query; QSqlDatabase db; QSqlQueryModel *model; Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget) { ui->setup...
824438acd2ae810db4cd9ea52420b7377b009410
cf96c7cac4582d13af838e3ca7137d8dc9c4e813
Natuproject/Natu
/src/qt/transactiondesc.cpp
C++
cpp
14,977
permissive
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 NATU Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license....
d189c4467b6b08b28497cf1439ee38a6dea4665b
cb2917292e05e5a934befcd56aac8b7d085ca4ea
andrislusis/fmdemod
/main.cc
C++
cc
1,428
no_license
//;tail -n +1 $0|c++ -xc++ -&&./a.out|aplay -r48 -c2 -fFLOAT #include <complex> #define X x[c] using namespace std; int main() { const float P = M_PI, T = 2 * P, q(24e4), g(19e3 / q * T), A = exp(-360 / q), B = exp(-1674 / q), C = A + B, D = A * B, E = 1 + D - C; const int m = 256, n = m * 64, d = q / 48e3; compl...
059cc8eec9e2c77d13741979e4d7de5986ea12fe
356d8d0da67284d04fd702047b1e7a882069eaca
Wsj090936/Data-Structure
/图/马踏棋盘算法.cpp
C++
cpp
2,652
no_license
#include<stdio.h> #include<time.h> #define X 8 #define Y 8 int chess[X][Y];//表示一个8*8的棋盘 //找到基于x,y下一个可以走日字的位置 int nextxy(int *x,int *y,int count) { switch(count) { case 0: if(*x+2<=X-1&&*y-1>=0&&chess[*x+2][*y-1]==0)//这里是为了判断下一步是否满足走日字的条件 { *x=*x+2; *y=*y-1; return 1; } break; case...
2793cba95d82681742a61aa0ee8c75798cff521c
39c288266f2b9f8fdedbdf5e51a3d036fc644284
g-megane/BulletSimulation
/BulletSimulation/Main.cpp
C++
cpp
1,509
no_license
#include <memory> #include <sstream> #include <locale> #include "Lib\Window\Window.h" #include "Lib\Common\Time.h" using namespace Lib; const float FPS = 60.0f; int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow) { UNREFERENCED_PARAMETER(hInst...
da3301da0eba50f76daea63cf2acf4e9628b1fa4
bb57a07f259cfb5e81536233f469b4f0272e0d68
wcysai/CodeLibrary
/Contests/2019-2020 Russia Team Open, High School Programming Contest (VKOSHP 19)/A.cpp
C++
cpp
495
no_license
#include<bits/stdc++.h> #define MAXN 100005 #define INF 1000000000 #define MOD 1000000007 #define F first #define S second using namespace std; typedef long long ll; typedef pair<int,int> P; int n,a[MAXN],mini; int main() { scanf("%d",&n); mini=INF; int sum=0; for(int i=1;i<=n;i++) { scanf("...
a470f115f82a8f0c919500267c1e81beb3fe2f09
87996d04ea6984a28b6652d11ac0c3f0089d0ec0
henrytsui000/online-judge
/codeforces/CF_edu_93/pD.cpp
C++
cpp
2,334
no_license
#include <bits/stdc++.h> #pragma GCC optimize("unroll-loops,no-stack-protector") using namespace std; using ll = long long; using ld = long double; using pii = pair<int,int>; using pll = pair<ll,ll>; using pdd = pair<ld,ld>; #define IOS ios_base::sync_with_stdio(0); cin.tie(0) #define endl '\n' #define all(a) a.begin()...
1fee64b89b0cb932068e22aaeef880f83bc06902
83ce0b932dd3eeccb5e27a79f8ac22f50a4db6df
quangkhatran/CPP_Course
/PolymorphismChallenge/Account.cpp
C++
cpp
421
no_license
#include "Account.h" Account::Account(std::string name, double balance) : name{name}, balance{balance} { } /* bool Account::deposit(double amount) { if (amount < 0) return false; else { balance += amount; return true; } } bool Account::withdraw(double amount) { if (balanc...
16e22bbfcfa63acb3e3a520ee0dddcecd0642388
835062d149a8c211919441e6a8fe4d7f1e5c1564
jinyjeny/bgfx
/examples/common/bounds.cpp
C++
cpp
44,123
permissive
/* * Copyright 2011-2021 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ #include <bx/rng.h> #include <bx/math.h> #include "bounds.h" using namespace bx; Vec3 getCenter(const Aabb& _aabb) { return mul(add(_aabb.min, _aabb.max), 0.5f); } Vec3 getExtent...
7149878cbaf9880b4d3507867d3f83ab01e5e4f7
ebac2cc4e728d3638f98e3cf899c409595babcd3
zacSuo/vejoe
/OpencvDemo/OpencvDemo/RecognizeColor.cpp
C++
cpp
3,018
no_license
#include "stdafx.h" #include "RecognizeColor.h" #define MIN_RECOG_RECT_AREA 300 #define MAX_RECOG_RECT_AREA 1500 #define MIN_RECOG_RECT_WH_RATIO -1 #define MAX_RECOG_RECT_WH_RATIO -1 RecognizeColor::RecognizeColor(void) { } RecognizeColor::~RecognizeColor(void) { } Mat RecognizeColor::...
0df55775d90bfa74363d266108611c84f77f3fc8
a8b23ff76ead19f2be93251206341ed8e971ac73
Donny3000/SensorCape
/CapeInterface/src/cape-utility/src/main.cpp
C++
cpp
1,308
no_license
#include <iostream> #include "mpu9150.h" #include "SignalHandler.h" using namespace std; Sensors::MPU9150 imu( 1 ); #define G 9.80665 #define A_GAIN (1 / 4096.0) //#define A_GAIN 6.103515625e-05 #define IMUPI_G_GAIN 0.030487804878049 #define IMUPI_M_GAIN 0.3001221001221001 int main() { ...
ae0a55b771bf11805e8b1d97bfb17aa48706e96a
85e54b2b8800e2ae66701267268fb0212faea3e5
ecarrara/aaed
/src/generate_set.cpp
C++
cpp
1,624
no_license
#include "testset.hpp" #include <fstream> #include <string> /** * ./generate_set <output_filepath> <n> <f> <ascendente> <aleatório> * * Parâmetros: * char* output_filepath - caminho do arquivo de testes * size_t n - número de elementos no arranjo * float f - percentual de elementos em ordem (1.0 arran...
7b3f6366454762a3b3bf4a8dfe8d93e1e0ae4a77
b557e992cb83418cbbc9ec4dba8e96bbecda4285
cosunae/gridtools
/unit_tests/stencil_composition/structured_grids/test_positional_when_debug.cpp
C++
cpp
1,782
permissive
/* * GridTools * * Copyright (c) 2014-2019, ETH Zurich * All rights reserved. * * Please, refer to the LICENSE file in the root directory. * SPDX-License-Identifier: BSD-3-Clause */ /* * test_computation.cpp * * Created on: Mar 9, 2015 * Author: carlosos */ #ifdef NDEBUG #undef NDEBUG #define __WAS_...
1c6f86b1fcd6b8bbfa4319503b10e5bf9eabae48
137ad5bce34ce736278f9625f05b0fe27cf39229
sciyen/AirHocketRobot
/OpenCVtest/OpenCV_Test1/SerialPort.cpp
C++
cpp
1,993
no_license
#include "SerialPort.h" SerialPort::SerialPort(char *portName) { this->connected = false; this->handler = CreateFileA(static_cast<LPCSTR>(portName), GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (this->handler == INVALID_HANDLE_VALUE) { if (GetLastError() == E...
aecbd6e1a9f77e9be1f6c75d59be1c018f25d90d
3ab72627551c83e5df1822a964805cf3c939b4b5
novaquark/aws-sdk-cpp
/aws-cpp-sdk-application-insights/source/model/Problem.cpp
C++
cpp
4,953
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...
55eda74d6f0db7d5ef6c8937b6e1c3a2c1cec701
e817937d14f45f8f399025fe38723ee90330911c
hss5747/HashShare-Core
/src/masternode-sync.cpp
C++
cpp
14,389
permissive
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 The PIVX developers // Copyright (c) 2019 The HashShareCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // clang-format off #include "m...
3fde9a81e1759b5b9bfcfe1555911cbba5b48681
d53eb8f846b0557e89e3e512755453b7b68d452a
newman93/Nauka
/egzamin_B2.cpp
C++
cpp
2,855
no_license
/* Autor: Adrian Kowalski */ #include <iostream> #include <string> #include <list> #include <algorithm> using namespace std; class Towar { private: string nazwa; string kategoria; double cena; string kod; public: Towar(string _n, string _k, double _c, string _ko) : nazwa(_n), kategoria(_k), cen...
bf0f25e3fd1500139156ff62c56546d3866a11a6
555e80fc758e3897396e5e8c71f0faf0462fdc89
alexcvc/opendnp3
/cpp/tests/unit/utils/CopyableBuffer.cpp
C++
cpp
2,545
permissive
/* * Copyright 2013-2022 Step Function I/O, LLC * * Licensed to Green Energy Corp (www.greenenergycorp.com) and Step Function I/O * LLC (https://stepfunc.io) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownershi...
da15cca761bb35217d56927631fa82d35927007a
4183a51d5a32dc50c034d72bc7c85f5a547e5e8b
fcccode/interview-1
/cpp/opengl_game/0.2.0/parrots/openorion.cpp
C++
cpp
16,059
no_license
#include "stdafx.h" #include "config.h" #include "misc.h" #include "font.h" #include "texture.h" #include "draw.h" #include "game.h" #include "gui.h" #include "data.h" #include "interpret.h" #include "openorion.h" #include "..\oorion\oorion.h" #pragma comment(lib, "oorion.lib") extern const int menu_length; exte...
7e9dd52d6a066bcb5b6811eff5cb9360de897000
e6206520abba9f361a6548bb13157c740055a401
kdtran15/Plastic-Contamination-Notes
/Src/cutils.cpp
C++
cpp
4,802
no_license
#include "cutils.h" cUtils::cUtils(QObject *parent) : QObject(parent) { } /* int cUtils::SizeType_toInt(size_type data) { if (data > std::numeric_limits<int>::max()) throw std::exception("Invalid cast."); int n = static_cast<int>(data); return n; } */ int cUtils::SizeT_toInt(size_t data) { ...
1d25a605dd9607d650e07c43404fab00fda767a5
6d4ce191e2e41ffcd791715b79915ed50b5e0934
chromium/chromium
/third_party/blink/renderer/core/editing/element_inner_text.cc
C++
cc
18,760
permissive
// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/dom/element.h" #include <algorithm> #include "third_party/blink/renderer/core/display_lock/display_lock_utilities.h" #include "third...
a505a9065bb29b6e0d975c3b8b04f5f1af72d962
e29f78d58ab95d6c6d6f09120d06d6d6363690c4
mighty82/magicmirror
/main.cpp
C++
cpp
1,829
permissive
/* This file is part of MythClock. MythClock 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. MythClock is distributed...
2bd3f5a9c59105e6c355823776c505714720555f
b3c84ab415402876f2f25cb0837830bb795d5915
daash1228/CP-Problems
/RotateArray.cpp
C++
cpp
1,169
no_license
/*Given an array, rotate the array to the right by k steps, where k is non-negative. Follow up: Try to come up as many solutions as you can, there are at least 3 different ways to solve this problem. Could you do it in-place with O(1) extra space? Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [...
03dd07436fc6c822f10526446af67ff207bb7a0e
d87140bb6f517a909120f32f8ac8ea73959b1488
MahiAlJawad/Competitive-Programming
/Codeforces/CF 349B.cpp
C++
cpp
3,533
no_license
/****************************************************************************************************************************** *** "In the name of Allah(swt), the most gracious, most merciful. Allah(swt) blesses with knowledge to whom he wants." *** *** Author : Mahi Al Jawad ...
81a2105d163430f9e7ad4bb0ccbaa22fb8d282d7
2e980e5823cd2d56b4b2450f15176fbffda25757
AlbertSid/fuchsia
/src/modular/bin/sessionmgr/agent_runner/agent_context_impl.cc
C++
cc
14,229
permissive
// Copyright 2017 The Fuchsia 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 "src/modular/bin/sessionmgr/agent_runner/agent_context_impl.h" #include <fuchsia/modular/cpp/fidl.h> #include <memory> #include "src/modular/bi...
96bd8246a55b6feed6b89c2e9d25a7729f1dba14
bc69e0a64b58d13514c309141736dd4031e0b778
zhangxuran11/ZToolsDemo
/main.cpp
C++
cpp
697
no_license
#include<cstdio> #include<QApplication> #include<QMainWindow> #include"ztools.h" #include<QDebug> #include<QTextCodec> static void func(void* pdata) { qDebug("i = %d.",(*(int*)pdata)++); ZTools::singleShot(1000,func,pdata); } int main(int argc , char* argv[]) { QApplication app(argc,argv); QMainWindow w...
cc8b947859778458582621b4ead5397391067c6d
199c9bd2ba2cf39dbc416b5e2a2954444253beda
TruhlarT/star-soft
/StRoot/StEvent/StTriggerData.cxx
C++
cxx
18,558
no_license
/*************************************************************************** * * $Id: StTriggerData.cxx,v 2.32 2018/06/06 18:03:59 ullrich Exp $ * * Author: Akio Ogawa, Feb 2003 *************************************************************************** * * Description: * **************************************...
a6b2159586e5a45b1cdcbcefd1247b7ff6dd231e
19f4f1f7d82606044daf928aa1ad46c08c01d0f5
tpurtell/android-cpp-sdk
/android-cpp-sdk/platforms/android-7/org/apache/http/impl/cookie/DateParseException.hpp
C++
hpp
4,213
permissive
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: org.apache.http.impl.cookie.DateParseException ================================================================================*/ #ifndef...
986d410a7add31d64471f3134f569efd420eb19d
ec6fdb4abe70e927ed3a96e31cccf3b2a8c3eadd
atatomir/work
/_infoarena/---.Consecutive/main.cpp
C++
cpp
1,758
no_license
#include <iostream> #include <cstdio> #include <cstring> #include <vector> #include <algorithm> #include <cmath> using namespace std; #define mp make_pair #define pb push_back #define ll long long #define limit 100000 ll t, ti; ll n, N, i, j, cnt; bool ciur[limit + 10]; vector<ll> pr; vector< pair<ll, ll> > divs;...
49b20d785d4bbf7fc8cc612b38cd458926aea54d
e61add908b8dfddac7c54072e2765d82392beae9
StefanRvO/libmsr145
/libmsr145/sources/libmsr145_base.cpp
C++
cpp
8,442
permissive
/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <stefan@stefanrvo.dk> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can...
de968a7f149836423e855bfcd1c078ebdf8c09f5
cda035178f4c704e2dd5dcee1b7e162aa63ab0fe
echowsy/opengl_songho
/glWinSimple/src/ControllerGL.cpp
C++
cpp
6,626
no_license
/////////////////////////////////////////////////////////////////////////////// // ControllerGL.cpp // ================ // Derived Controller class for OpenGL window // It is the controller of OpenGL rendering window. It initializes DC and RC, // when WM_CREATE called, then, start new thread for OpenGL rendering loop. ...
b2dc3593cd6c880d7b65e11838e483037fd8b5c1
22e5fd18318dcd8a6bc3c8c6dfe4e85c4373a9da
zj4775/cprojects
/sort.cpp
C++
cpp
9,125
no_license
#include<stdio.h> #include <string.h> void exchange(int _array[],int pre,int post){ int t=_array[pre]; _array[pre]=_array[post]; _array[post]=t; } /************************************************************************/ /* 快速排序 O nlogn 稳定 ...
0bb9dfaf25f19b51f82d793a533b6b58d468d1f0
1627caf4870baac2075ccd7ed75b028892bb1408
coding-mates/Algorithm_v2
/윤정현/14888.cpp
C++
cpp
921
no_license
#include <iostream> #define MAX 11 + 1 #define INF 1000000000 using namespace std; int n, mx = -1 * INF, mn = INF; int num[MAX], oper[5]; void calculate(int plus, int minus, int multi, int div, int sum, int idx) { if (idx == n) { mx = max(mx, sum); mn = min(mn, sum); return; } if ...
c480929c0b8115de57f739c5a402a4be3c1a6f34
84cd34366ee558667069a8f9c69fa9855a3d5710
calum-chamberlain/pylith
/unittests/libtests/bc/TestBoundaryMesh.cc
C++
cc
6,201
permissive
// -*- C++ -*- // // ---------------------------------------------------------------------- // // Brad T. Aagaard, U.S. Geological Survey // Charles A. Williams, GNS Science // Matthew G. Knepley, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://...
e5966e3e1c0bd9d09c7d5bf224cd983abcf891c7
799de58e299e0221ce4e64efe636e952cdbd2c06
fengjixuchui/Push
/OvRender/source/d3d11/D3D11Renderer.cpp
C++
cpp
14,218
permissive
#include <Windows.h> #include <D3D11.h> #include <D3DX11async.h> #include <slgdi.h> #include <stdio.h> typedef struct _D3DLOCKED_RECT { INT Pitch; void* pBits; } D3DLOCKED_RECT; #include "d3d11font.h" #include "shaders.h" #define SAFE_RELEASE(x) if (x) { x->Release(); x = 0; } ...
ec5d48d826ab3037935b44f1b123301be483fcf6
793f1aeac20bffab34133edc7adaf2cf3de48c6f
SmartPidgeonStudio/ProjectPidgeon
/Source/ProjectPidgeon/ProjectPidgeonGameMode.cpp
C++
cpp
494
no_license
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "ProjectPidgeon.h" #include "ProjectPidgeonGameMode.h" #include "ProjectPidgeonCharacter.h" AProjectPidgeonGameMode::AProjectPidgeonGameMode() { // set default pawn class to our Blueprinted character static ConstructorHelpers::FClassFinder<APawn>...
cf87dd6e18dff8bba522a9d70c0e06b9345bae32
168d6052dc6c1df6649a2e264a9471aee0ff53ad
Mayank-J0shi/Leetcode-Algorithm-1-StudyPlan
/Search Insert Position.cpp
C++
cpp
386
permissive
class Solution { public: int searchInsert(vector<int>& nums, int target) { int l=0,r=nums.size()-1; while(l<=r){ int mid=l+(r-l)/2; if(nums[mid]==target){ return mid; }else if(nums[mid]<target){ l=mid+1; }else{ ...
31aed9c61cd8726c08baa1a1c73defd0fadc5936
9a3f6e884250d3a6ec211589a0023b5d1d236444
YanivFais/thesis_msc_dist_alg
/cygwin/omnetpp-4.1/src/envir/sectionbasedconfig.cc
C++
cc
50,561
no_license
//========================================================================== // SECTIONBASEDCONFIG.CC - part of // OMNeT++/OMNEST // Discrete System Simulation in C++ // // Author: Andras Varga // //========================================================================== /*----------...
fbd3098ae27b6de3004ed91456348f669477ce92
94d089d44ff70d4370d6b77f723323b08adecf38
yu1741588584/X-CTRL
/Transmitters/X-CTRL PRO M12/Software/X-CTRL/GUI/Page/Page_HandshakeAuto.cpp
C++
cpp
3,137
permissive
#include "Basic/FileGroup.h" #include "GUI/DisplayPrivate.h" #include "Communication/ComPrivate.h" /*被选中的选项*/ static int16_t ItemSelect = 0; /*可选选项最大个数*/ static uint8_t ItemSelect_MAX = 0; /** * @brief 页面初始化事件 * @param 无 * @retval 无 */ static void Setup() { Com_SetEnable(false);//遥控关闭 ItemSelect_MA...
5ba8f08152c5d6f5a2cb148d8d69b95c9623679a
565da1f5217e3737fc2a2f297971bece945ceda5
DaniilPros/LabBPE
/BPE2/BPE2/TextEdit/App.xaml.cpp
C++
cpp
3,868
no_license
// // App.xaml.cpp // Implementation of the App class. // #include "pch.h" #include "MainPage.xaml.h" using namespace TextEdit; using namespace Platform; using namespace Windows::ApplicationModel; using namespace Windows::ApplicationModel::Activation; using namespace Windows::Foundation; using namespace Windows::Fo...
bc85d47fe9557cb676bdff1930af2df16754efe3
613d00b51f3c36b6fdce9ef3c533fdbde1190254
lukeulrich/alignshop-qt
/src/app/gui/Services/Tasks/defunct/_TestTaskTreeFunctions/TestTaskTreeFunctions.cpp
C++
cpp
7,314
no_license
/**************************************************************************** ** ** Copyright (C) 2011 Agile Genomics, LLC ** All rights reserved. ** Author: Luke Ulrich ** ****************************************************************************/ #include <QtTest/QtTest> #include <QtCore/QScopedPointer> #include ...
36594d57d9047865625dc8d647c5e0e71c8ceb2f
75b8f17b87f4a06f90836df994b2dd676fe68ecf
jjzhang166/WinNT5_src_20201004
/NT/inetsrv/query/h/parse.hxx
C++
hxx
708
no_license
//+--------------------------------------------------------------------------- // // Copyright (C) 1991, Microsoft Corporation. // // File: Parse.hxx // // Contents: Converts restrictions into expressions // // History: 09-Sep-91 KyleP Created // //---------------------------------------...
f3622eb59a8842c99a6a849418f83ad266a5df2c
d48186496340b965b7a26f943040b0c59e0647f5
drivestudy/HaoZip
/src/src/compress/lz/RCAdcDecoderInfo.cpp
C++
cpp
2,210
no_license
/******************************************************************************** * 版权所有(C)2008,2009,2010,好压软件工作室,保留所有权利。 * ******************************************************************************** * 作者 : HaoZip * * 版本 : 1....
7fada276c6cd3a87819c2d2ef0c5fb855bad4785
3d2bdc309167cb15867bcba380d6d5fd0316d816
NurenDurdanaAbha/Nuren
/Online Judge/URI/1149 Summing Consecutive Integers.cpp
C++
cpp
240
no_license
#include<iostream> using namespace std; int main() { int a,n,i,sum=0; cin>>a; cin>>n; while(n<=0) cin>>n; for(i=1; i<=n; i++) { sum+=a; a++; } cout<<sum<<endl; return 0; }
ae06f194cf32e1075126cc748e110c79fc7cb09e
3e49a300d07936b4940e9dfb44b763153d165f2b
bluebellzhy/chromium
/chrome/installer/util/copy_tree_work_item.cc
C++
cc
5,192
permissive
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/installer/util/copy_tree_work_item.h" #include <shlwapi.h> #include "base/file_util.h" #include "chrome/installer/util/logging_...
0fb69fc9aa4bd7a2b66f5bd57e132072f762dbc8
2a1f6d4e7aaf0adf63ae0d715003d9e49c28d69f
Cookie-Pizza/Algorithm-study
/Astar.cpp
C++
cpp
8,947
no_license
#include <iostream> #include <queue> #include <vector> #include <math.h> #define NUMBEROFNODE 17 #define INF 1000000.0 #define A 'A'-65 #define B 'B'-65 #define C 'C'-65 #define D 'D'-65 #define E 'E'-65 #...
f9564e72f555ab5f585ca5fa7dfed83e001b7e82
8f43c15838dbe62a36f04c8dcb2da595ebdf1332
wuqunyong/APie
/server/db_proxy_server/service_init.cpp
C++
cpp
521
no_license
#include "service_init.h" #include "apie.h" #include "logic/dbproxy_mgr.h" namespace APie { std::tuple<uint32_t, std::string> initHook() { return DBProxyMgrSingleton::get().init(); } std::tuple<uint32_t, std::string> startHook() { return DBProxyMgrSingleton::get().start(); } std::tuple<uint32_t, std::string> rea...
84051a14603cb70515527707e60edab027455e7b
97b3fc59433cf5a043de8f5d5fbd7bb11237ea60
Fire-Head/VCWaterEx
/VCWaterRE/Tweak.cpp
C++
cpp
11,219
no_license
#include "Tweak.h" #include <stdint.h> #include "debugmenu_public.h" #include "Errors.h" #include "utils.h" void CTweakVars::Add(CTweakVar *var) { m_TweakList.push_back(var); } void CTweakVars::Reset() { for(auto i = m_TweakList.begin(); i != m_TweakList.end(); ++i) (*i)->Reset(); } void CTweakVars::ReadINI(CIni...
5c813e35fb1240569cc9b986e6059170442fa7d5
95489cc38189f559583fa9032dd634a019c588be
litao1009/SimpleRoom
/externals/OCCTLib/inc/StepFEA_ConstantSurface3dElementCoordinateSystem.hxx
C++
hxx
2,190
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. #ifndef _StepFEA_ConstantSurface3dElementCoordinate...
ba223ef0dab9f85b621f6d974fa243ecfaa91226
0e6f886878b8c80575494ead9e85664b8761c2cb
vkf63516/Proj_refactor_monolithic_file
/utils/utils.cpp
C++
cpp
442
no_license
/* * utils.cpp * * Created on: Sep 22, 2020 * Author: Vishal */ #include "../includes/utils.h" #include <vector> using namespace std; void sortData(const SORT_ORDER &mySortOrder, vector<process> &myProcesses){ } process getNext(vector<process> &myProcesses){ process p; return p; } int getSize(vector<process> &...
12a6c06bddd5c781b0ba6e041bd77ae90830b015
c847f17ff329c83454410ada8839486b0f140861
amey04/CloudSimulation
/RotatingEarth_Final/main.cpp
C++
cpp
3,562
no_license
#include <windows.h> #include <iostream> #include <stdlib.h> #include <gl\glut.h> //#include "stdafx.h" #include "imageloader.h" #include "generateNoise.h" #include "generateNoise3D.h" using namespace std; void handleKeypress(unsigned char key, int x, int y) { switch (key) { case 27: //Escape key exit(0); } }...
7e78680a90d9beaccf8f62e5b85e34c05188a4d0
3a884850050888cd2fc77e0361356c6c487f4790
sjsjsj1246/Algorithm_study
/baekjoon/4597_패리티.cpp
C++
cpp
1,138
no_license
#include <iostream> #include <cstring> #include <algorithm> #include <functional> #include <vector> #include <set> #include <stack> #include <queue> #include <map> #include <random> #include <cmath> #include <string> #include <ctime> using namespace std; typedef signed long long LL; #define FOR(x,to) for(int x=0;x<(to...
99121abcd347a2264bf88475cc0cbfbfb55b2be6
630de6fa767be09a464577e3a035e8f6589ea913
Domicnt/Pong
/Collision.cpp
C++
cpp
1,148
no_license
#include "Common.h" void Collision::BallvsEdge(Ball ball) { //reset collision variables BallvsEdges[0] = false; BallvsEdges[1] = false; BallvsEdges[2] = false; BallvsEdges[3] = false; if (ball.posY - ball.radius <= 0) { //colliding with the top BallvsEdges[1] = true; } else if (ball.posY + ball.radius >= S...
2c4c601c2f01930acd57992585cb9fca5b63bcce
c43dbe15bc1bb1a801e9a2a2692d4b879e92262e
Victor-Y-Fadeev/qreal
/qrgui/mainWindow/qrealApplication.cpp
C++
cpp
3,492
permissive
/* Copyright 2007-2015 QReal Research Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
73fb954025450017c0ab35fbe8bef2427a9fdb6c
45a6b6cb3ed9bccd4977556f5df3aba971dc3897
calderpg/sdf_tools
/src/sdf_tools_tutorial.cpp
C++
cpp
8,872
permissive
#include <ros/ros.h> #include <arc_utilities/voxel_grid.hpp> #include <arc_utilities/pretty_print.hpp> #include "sdf_tools/collision_map.hpp" #include "sdf_tools/CollisionMap.h" #include "sdf_tools/sdf.hpp" #include "sdf_tools/SDF.h" int main(int argc, char** argv) { // Make a ROS node, which we'll use to publish ...
93589abff75ab203672c3234ae046ada884dc66c
cf359600377e835adc9bf08ba6886a410360f3c3
xeon2007/LightSDK
/Source/Branch/MediaUIFramework/Src/Src/AnimatedGifView.cpp
C++
cpp
13,182
no_license
/*! * @file AnimatedGifView.cpp * * @brief This file AnimatedGifView class. * * Copyright (C) 2010, Toshiba Corporation. * * @author Li Hong * @date 2010/12/31 */ #include "AnimatedGifView.h" #include "D2DUtility.h" UINT_PTR AnimatedGifView::s_uTimerID = 0x1000; AnimatedGifView::TimerIDGifViewMap ...
8ccc5a7ea9520686a242f0948ae04f2c287c9c01
c47cb2e30b9a238ce6dde7505ca24c97b50dae2a
WhiZTiM/coliru
/Archive2/75/d8f6d5952fc908/main.cpp
C++
cpp
664
no_license
#include <boost/property_tree/xml_parser.hpp> #include <boost/iostreams/device/file_descriptor.hpp> #include <boost/iostreams/stream.hpp> #include <boost/filesystem.hpp> #include <iostream> #include <fstream> namespace pt = boost::property_tree; namespace io = boost::iostreams; namespace fs = boost::filesystem; int m...
b944bb11cffcc7932ebbfa35bfbf8df3b3226e44
5091a7af86390db7ee56c75fcd1f9ddbb08532f9
SREERAGI18/chromium
/components/metrics/serialization/serialization_utils.cc
C++
cc
9,116
permissive
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/metrics/serialization/serialization_utils.h" #include <errno.h> #include <stdint.h> #include <sys/file.h> #include <utility> #incl...
16564a412ded3e04ec6028abf3220138b7d18ae7
bab42784d552e5b86b139e0923f551942b5089b6
bbd666/shaked_walker
/Walking_Humanoid_Shaked/System/Camera.cpp
C++
cpp
4,705
permissive
/* * Copyright(c) < 1999 - 2019 > <Dave Gravel, Free Tutorial - Newton Dynamics and more.> * * This software is provided 'as-is', without any express or implied * warranty.In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this...
2874a87fda1dd5047d779efa9c39ddc886ce7f5e
583c92d3145d9bd77959089ca49a329081bce45c
CrazyThink/EverydayCording
/13day/source.cpp
C++
cpp
1,319
no_license
#define _CRT_SECURE_NO_WARNINGS //scanf 오류 제거 #include <stdio.h> int x[4] = {1, 1, 1, 0}; int y[4] = {-1, 0, 1, 1}; int go[19][19]; int win; int X, Y; int count; int main(){ freopen("sample.txt", "r", stdin); for(int i = 0; i < 19; i++) for(int j = 0; j < 19; j++) scanf("%d", &go[i][j]); for(int i = 0; i ...
93bab616e7c060756060fe731004fe0d9611b330
18600c4944c46311b058d85cc7ae620afe75b522
ExitStatus/WeatherStationSlave
/TFTeSPIDisplay.cpp
C++
cpp
5,470
no_license
#include "TFTeSPIDisplay.h" TFTeSPIDisplay::TFTeSPIDisplay() { tft = new TFT_eSPI(); tft->setSwapBytes(true); _width = 128; _height = 160; _capy = 104; _cx = _width / 2; _cy = _height / 2; } TFTeSPIDisplay::~TFTeSPIDisplay() { delete tft; } void TFTeSPIDisplay::Display() { // Not needed for ST773...
1c933b8450e6f7a2b758e4a06ba93bb618cb0068
7750afe3850d1f611680307a4f094e06ae71083c
guitartsword/Proyecto-OAR
/build-OAR-Desktop_Qt_5_5_1_clang_64bit-Debug/moc_dialogcampo.cpp
C++
cpp
3,367
no_license
/**************************************************************************** ** Meta object code from reading C++ file 'dialogcampo.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1) ** ** WARNING! All changes made in this file will be lost! *********************************************************...
240b3d708979c92ae839f3cbfa63166d7a7faf85
6a6909bd222c794880b16846747c938a272fb69b
jeffoverflow/milvus
/internal/core/src/segcore/segment_c.cpp
C++
cpp
11,787
permissive
// Copyright (C) 2019-2020 Zilliz. 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 l...
342f247384f04150f1febd5692f9a8ebb46896aa
3c97b248a40035ae025acedd45e6c4a408399e9a
jhr2267/multicore_primes
/sprp-search/primesieve/primesieve/PreSieve.hpp
C++
hpp
1,697
no_license
/// /// @file PreSieve.hpp /// /// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PRESIEVE_HPP #define PRESIEVE_HPP #include "config.hpp" #include <stdint.h> namespace primesieve { /// ...
72ffa0f7cf03792528aa48f88807e9eed7418ae1
7a40b7bb3d0886399ee9900bf896e61c5eccb85a
whyhhr/homework2
/Intermediate/Build/Win64/Netshoot/Inc/Engine/MaterialExpressionDistanceCullFade.gen.cpp
C++
cpp
3,867
no_license
// Copyright Epic Games, Inc. All Rights Reserved. /*=========================================================================== Generated code exported from UnrealHeaderTool. DO NOT modify this manually! Edit the corresponding .h files instead! ========================================================================...
8ad96c72a72d91fb3a9550f1a295c4c7e85ac6d7
0dc40d27d368d34b8218bf17da3a30a6088d9d0b
gangbanlau/mango
/include/mango/math/vector512_int8x64.hpp
C++
hpp
3,856
permissive
/* MANGO Multimedia Development Platform Copyright (C) 2012-2019 Twilight Finland 3D Oy Ltd. All rights reserved. */ #pragma once #include "vector.hpp" namespace mango { template <> struct Vector<s8, 64> { using VectorType = simd::s8x64; using ScalarType = s8; enum { Vecto...
18b3299f919e51947854bab3da710b65a0fba56c
b397eaffe5e5b9fb476efa682ff9ba6812b7c2b7
IsraMekki/tiramisu_code_generator
/cmake-build-debug/programs_tiling/function14251/function14251_schedule_16/function14251_schedule_16_wrapper.cpp
C++
cpp
1,410
no_license
#include "Halide.h" #include "function14251_schedule_16_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, 64); Halide::Buffer<int32_t> buf01(6...
a996df3b18c75dd63b3e3324620d6eec36484144
09d9029be6c08c67e1348d7cab5877220598b4d3
starcraftman/boostEx
/progOpts/prog_opts3.cpp
C++
cpp
5,413
permissive
/** * Filesystem lib from boost. * See http://www.boost.org/doc/libs/1_56_0/libs/filesystem/doc/tutorial.html */ /********************* Header Files ***********************/ /* C++ Headers */ #include <iostream> /* Input/output objects. */ //#include <fstream> /* File operations. */ //#include <sstream> /* String st...
bfdbd9f8b06c16a6ee7b8c59b63dc7e710d0ec34
ee2092fd4a802953e55bc5b757f1cea7b7b56357
Lan-ce-lot/overflow
/洛谷/题单/新手动态规划合集/开心的金明.cpp
C++
cpp
1,639
no_license
/************************************************************************* > FileName: > Author: Lance > Mail: lancelot_hcs@qq.com > Date: 9102.1.8 > Description: ************************************************************************/ //#include <bits/stdc++.h> //#pragma comment(linker, "/STA...
5025be63e5d16986f5b329a5c05be3544b7f797d
d0b8d2e24526134a9f9a6bea6887089c985e9eb5
zhullyb/monyhar
/monyhar/components/security_state/content/content_utils.cc
C++
cc
22,529
permissive
// Copyright 2016 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/security_state/content/content_utils.h" #include <memory> #include <string> #include <utility> #include <vector> #include "base/str...
073014759eca9fd0c7c71a0f474d1f04f869bd4b
ae83c4b83cd494aedcb263b06c015e91de08ab0c
Aand1/cornell-urban-challenge
/Common/time/car_timestamp_sender.cpp
C++
cpp
3,032
no_license
#include "car_timestamp_sender.h" #include "car_timestamp_sync.h" #ifdef __cplusplus_cli #pragma unmanaged #endif #pragma comment( lib, "winmm.lib" ) #define PORT 131 #pragma pack(1) struct sync_packet { unsigned char bullstuff; unsigned short secs; unsigned short ticks; }; #pragma pack() c...
24e12487814de96fbca0003e858c41f56aa4b794
d4f56f759a1c7b514ac1844b5e4d612b948ca34d
orichalque/l3
/TP_archi/TP3.cpp
C++
cpp
2,780
no_license
#include<iostream> #include<algorithm> #include <cmath> #include<vector> #include <stdint.h> using namespace std; bool adecroissant(double i, double j); bool acroissant(double i, double j); bool croissant(double i, double j); bool decroissant(double i, double j); const uint32_t szT = 31; const double T[szT] = { 9...
4c060e850c63ddf5ece161cd101b9c7b45dc15c9
a4b171e9f33775d35cc1fc31eee726111817917f
star114/snupl-0-compiler
/5.Code.Generation/snuplc/src/test_parser.cpp
C++
cpp
3,449
no_license
//------------------------------------------------------------------------------ /// @brief SNUPL parser test /// @author Bernhard Egger <bernhard@csap.snu.ac.kr> /// @section changelog Change Log /// 2012/09/14 Bernhard Egger created /// /// @section license_section License /// Copyright (c) 2012, Bernhard Egger /// A...
fc216fe6b08dc705384ecfdbc3d0642ef73e6140
d39823a726126124b7940913872a4e5ffc09a449
Bitcoin-ABC/bitcoin-abc
/src/qt/qrimagewidget.cpp
C++
cpp
4,381
permissive
// Copyright (c) 2011-2018 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 <qt/qrimagewidget.h> #include <qt/guiutil.h> #include <QApplication> #include <QClipboard> #include <QDrag> #inclu...
7bfa34d93e864967b09c515e95de367fde5be3a6
c1ac1f1eeb6688ed78681f78817fed0a17dff219
jadsonnobre245/Tarefas_Estrutura_de_Dados_I
/Tarefas/ListaDupla-encd.cpp
C++
cpp
8,933
no_license
#include <stdio.h> #include <stdlib.h> //ESTRUTURA DO NÓ DA LISTA struct Node{ int num; struct Node *prox; struct Node *ant; }; typedef struct Node node; int tam,elem; //DECLARAÇÃO DAS FUNÇÕES DA LISTA void inicia(node *LISTA); int menu(void); void opcao(node *LISTA, int op); node *criaNo(); ...
ef5a736648bc5bc254e883d4a7d39687fcc91f2c
4d18ee30162fd8f79f3a3a5068f858621569b68a
ankuagar/CPlusPlus
/expression-tree/Composite_Multiply_Node.cpp
C++
cpp
719
no_license
/* -*- C++ -*- */ #ifndef _MULTIPLY_NODE_CPP_ #define _MULTIPLY_NODE_CPP_ #include <iostream> #include "Component_Node.h" #include "Composite_Binary_Node.h" #include "Composite_Multiply_Node.h" #include "Visitor.h" // Ctor Composite_Multiply_Node::Composite_Multiply_Node (Component_Node * left, ...