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
4682626c87d73f5bc710e3e78ddd9eac1e055167
33266bf1e14836625d73b2dccf99a8fe57f7bd26
Maxwe11/Graphics
/OGLGraphic/mainwidget.cpp
C++
cpp
1,780
no_license
#include <QResizeEvent> #include "mainwidget.h" #include "ui_mainwidget.h" MainWidget::MainWidget(QWidget* parent) : QWidget(parent) , ui(new Ui::MainWidget) { this->ui->setupUi(this); this->ui->LEdit->init(0, 450, 160); this->ui->HEdit->init(0, 350, 170); this->ui->R1Edit->init(0,...
edebd27294e0c7f74e82a2165f9f592ab010090c
737ae464b5dac1cd0bdd769717230a2e797f79d1
InsightSoftwareConsortium/ITKNeuralNetworks
/include/itkRBFBackPropagationLearningFunction.hxx
C++
hxx
3,428
permissive
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
72e7310558c749ca55ab8249f16c66088f5bece4
899bb4798a44e851c848aa0bb2d78a44416b33b4
UlisesGascon/node
/deps/v8/src/common/ptr-compr.cc
C++
cc
536
permissive
// Copyright 2022 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/common/ptr-compr.h" namespace v8::internal { #ifdef V8_COMPRESS_POINTERS_IN_SHARED_CAGE uintptr_t V8HeapCompressionScheme::base_ = kNul...
1ff4c55be6fc2f53d00cf36525ed660526859535
e8fd90167ff8b8ed19c13665018824769e352b3f
pkestene/SummerSchool2016
/miniapp/openacc/cxx/operators.cpp
C++
cpp
4,506
no_license
//****************************************** // operators.cpp // based on min-app code written by Oliver Fuhrer, MeteoSwiss // modified by Ben Cumming, CSCS // OpenACC implementation by Vasileios Karakasis, CSCS // ***************************************** // Description: Contains simple operators which can be used on...
20fb467a39d3ab7dd68f9d514d44fb6a1e4184c2
8a15ee6b41e91fbfa789e59f7d9d097016a620c1
CoolChaoD/bookcase
/C++语言程序设计/01_string容器的构造函数cpp.cpp
C++
cpp
348
no_license
#include <iostream> #include <string> using namespace std; //string 的构造函数 void test01() { string s1; //默认构造 const char* str = "hello world"; string s2(str); cout << "s2:" << s2 << endl; string s3(s2); cout << "s3:" << s3 << endl; string s4(10, 'a'); cout << "s4:" << s4 << endl; } int main() { test01(); r...
8c138818393310046f2c3995952458a54fcc98ae
e3848fa30d0ad42e7879dd5004c9a6ea2c7da262
malizadehq/open4speed
/jni/open4speed.cpp
C++
cpp
27,314
no_license
//---------------------------------------------------------------------------------------- /** * \file open4speed.cpp * \author Vonasek Lubos * \date 2013/04/20 * \brief Runable part of project. */ //---------------------------------------------------------------------------------------- #incl...
9c588b3a74199b5c1fb1ae4583987fd3ca8a4696
c1b7117732502e2e74a017f8f97a92f1f0464495
Elsyrian/acmudec
/uva/10071.cpp
C++
cpp
448
no_license
/************************************************************************************************************************* * 10071 * * * Classification: * * Author: * Javier Gonzalez Nova <javigonzalez@udec.cl> * * Description: * * */ #include <iostream> /*cin, cout*/ using namespace std;...
a8a12ffe616e23228a5e8262ed9a87e51bfb8e10
3b95f11e7e43a7393e41f6ae99471479dc50cc80
dingshiyu/aliyun-openapi-cpp-sdk
/outboundbot/src/model/DescribeDsReportsResult.cc
C++
cc
2,047
permissive
/* * Copyright 2009-2017 Alibaba Cloud 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...
6877cd346f3a60937909e499dcaa9ff01b32561f
3e1de8d572d5e9f23e7fca3025351cf0bb7393c7
bbrito/pedsim_ros
/pedsim_simulator/src/waypointplanner/groupwaypointplanner.cpp
C++
cpp
3,048
permissive
/** * Copyright 2014 Social Robotics Lab, University of Freiburg * * 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 condi...
f2238f6a74f2a2d5aef89f108a51f8cc0111dc4a
cb36aacea346763219c47e1e3af26e05008b1b25
PVIII/stream
/libstream/transform.hpp
C++
hpp
5,335
permissive
/*! * @author Patrick Wang-Freninger <github@freninger.at> * @copyright MIT * @date 2019 * @link github.com/PVIII/stream */ #ifndef LIBSTREAM_TRANSFORM_HPP_ #define LIBSTREAM_TRANSFORM_HPP_ #include <liboutput_view/transform.hpp> #include <libstream/callback.hpp> #include <libstream/concepts/pipe.hp...
e7924fd8bb560a6f89a45513550631ee1328b04c
24ac061d2e23e6c3d030cdfc46c1e3ba91f559c0
yyatsuo/atcoder
/abc140/d.cpp
C++
cpp
622
no_license
#include <bits/stdc++.h> #define INF INT_MAX #define ll long long #define ull unsigned long long #define rep(i,n) for(ll i=0; i<n; ++i) #define FOR(i, s, e) for(ll i=s; i<e; ++i) #define MOD 1000000007 using namespace std; template<class T> inline bool chmin(T& a, T b) { if(a>b) {a=b; return true;} return false;} temp...
4f55b0ffea8673b1e75826c16978af337044ea99
d9292946f8a6c7e97264d5a4532a5f66b3d64b85
xuguangyun/map_update_client
/cartographer/location/laser_option.cc
C++
cc
5,701
no_license
#include "cartographer/location/laser_option.h" #include "cartographer/common/configuration_file_resolver.h" namespace cartographer { namespace location { cartographer::mapping::scan_matching::proto::FastCorrelativeScanMatcherOptions2D CreateFastCorrelativeScanMatcherTestOptions2D( cartographer::common::LuaParame...
e326ca98e041653a9abf0b36114895e3f7e45a4c
519d3a50555dd298b77ec0db7deb56f9d3a7fcda
tzuryby/ironbee
/clipp/parse_modifier.hpp
C++
hpp
2,568
permissive
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You under ...
a86332aa375de16ace900cff73e8c9db16f7ca13
a98c02ea73e9f76576da1c161620d8bf434c14f2
thomas-moulard/urbi-debian
/src/ast/try.hh
C++
hh
2,573
no_license
/* * Copyright (C) 2007-2010, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ // Generated, do not edit b...
31720c12edf29c8d8086c21ad318e5f377d0c7e4
4198c2421e3078f0298f361378af7bc00a8e7792
allenji/StoppedHSCP
/Analysis/src/RunHistograms.cc
C++
cc
4,239
no_license
#include "StoppedHSCP/Analysis/interface/RunHistograms.h" #include "StoppedHSCP/Ntuples/interface/Constants.h" #include "StoppedHSCP/Analysis/interface/BadRuns.h" #include "TMath.h" #include <sstream> #include <iostream> RunHistograms::RunHistograms(TFile* file, Cuts* cuts, LhcFills* fills) : cuts_(cuts), fills...
f84fa18f5d4901c017c8bd08cf41d093b34043b0
753b0f0ee3b5291076e7095ba2d1cdc009e0c35c
dbuskariol-org/chromium
/chrome/browser/ui/app_list/search/search_result_ranker/search_ranking_event_logger_unittest.cc
C++
cc
14,204
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/ui/app_list/search/search_result_ranker/search_ranking_event_logger.h" #include <map> #include <memory> #include <utility> #inc...
33ec14bb65f850f95d9ee9e78031a1e208ca7adb
61b970b9dfd9ab9b315334ca38b5f680f6bd82be
Forest1995/cplusplus
/datastructure/test_data_structure.cpp
C++
cpp
1,249
no_license
#include "Stack.h" #include <string> #include <iostream> #include "hashmap.h" #include "queue.h" using namespace std; int main() { Stack<int> stack; stack.push(5); stack.push(8); stack.push(2); stack.push(9); cout << stack.peek() << endl; cout << stack.pop() << endl; ...
33d15650efdab6f2bd592fb41956c23a58adfe84
13c655b8cce5e73c5498bb1f59ceb6833099f2ea
AluminumKen/hl2sb-src
/src/game/server/hl2/npc_alyx_episodic.cpp
C++
cpp
112,877
no_license
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: Alyx, the female sidekick and love interest that's taking the world by storm! // // Try the new Alyx Brite toothpaste! // Alyx lederhosen! // // FIXME: need a better comment block // //===============...
15bf589c9f79194e529ddd4419c8dcf05ddc5349
034729e7c024ffc02c27505c19b5654506b11876
arttnba3/ICTFE
/src/libs/pybind/tests/test_numpy_dtypes.cpp
C++
cpp
17,555
permissive
/* tests/test_numpy_dtypes.cpp -- Structured and compound NumPy dtypes Copyright (c) 2016 Ivan Smirnov All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "pybind11_tests.h" #include <pybind11/numpy.h> #ifdef __GNUC__ #define PYB...
c4fe82076da89a1942392b9182cd269b98587cab
5bc6e331ca5d72138c604e5fc61487425a88e5e7
google/or-tools
/ortools/sat/disjunctive.cc
C++
cc
58,417
permissive
// Copyright 2010-2022 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 in...
d4d4231c5556d3d71e481f9971cf0823970018e5
258d66b95555b51798f96fde4df92578ae10aa2e
xclusive43/C___plusplus_programs
/area1.cpp
C++
cpp
757
no_license
#include<iostream> #include<stdio.h> using namespace std; class rectangle { public: int len, bed; int area() { return (len*bed); } char display() { cout<<"**********area of rectangle***********"; } char displays() { cout<<"%%%%%%%%%%%% SIMPLE INTEREST OF PRT %...
f9dc9e1a3e1ff7f1ab10d12314ab15219bbcfeda
2c7aa7ab4af1a04b782250cb176587638cd64e07
Hemul997/Hemul997
/OOP/Lab_3/TVSet/Task1.cpp
C++
cpp
447
no_license
// Task1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "RemoteControl.h" #include "TVSet.h" using namespace std; void main() { CTVSet tv; CRemoteControl remoteControl(tv, cin, cout); while (!cin.eof() && ! cin.fail()) { cout << "> "; if (!remoteControl.HandleCom...
bbe54c976e50406ed62d13aed01f74a3758749cd
3f5249ba7520816c4fc018ee5e44af88fbf57595
ngc92/SpaTacS
/UI/gfx/ShotFx.cpp
C++
cpp
1,256
permissive
// // Created by erik on 9/21/16. // #include "ShotFx.h" #include <irrlicht/IVideoDriver.h> #include <iostream> using namespace irr; void scene::ShotFx::render() { video::SMaterial mat; mat.Lighting = false; SceneManager->getVideoDriver()->setMaterial(mat); SceneManager->getVideoDriver()->setTransfor...
b9e58d9d9c286043d1daff0633e3b38c00c1e6ac
3f6c7fcef4e9e8144d6ee485202fc29ef5915f16
nathdilla/dice_cst210
/dice/Die.hpp
C++
hpp
432
no_license
// // Die.hpp // dice // // Created by Nathan Dilla on 9/24/21. // #ifndef Die_hpp #define Die_hpp #include <stdio.h> class Die { private: int sides; //number of sides on the die int n; //value of the roll public: Die(); //def constructor Die(int); //constructor defining num of sides void roll...
feb1db64a9a84c021fbede14267ee545570c29de
a269a6e329b47e0d320895d4826dc49631141b87
faetos/QTCoin
/src/test/allocator_tests.cpp
C++
cpp
6,965
permissive
// Copyright (c) 2012-2013 The Bitcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "util.h" #include "support/allocators/zeroafterfree.h" #include "test/test_quirkyturtcoin.h" #include <boost/t...
c47cc989eedeacfb126f06fedcbf818ab352b5ce
69ae5fb28184aa847d27a291fddf5005f115f2c8
mkp0/CP
/CodeForce/D - Min Cost String.cpp
C++
cpp
1,098
no_license
#include <bits/stdc++.h> #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define ll long long #define pi (3.141592653589) #define all(x) (x).begin(), (x).end() #define vi vector<int> #define vll vector<long long> #define pii pair<int, int> #define pll pair<long long, long long> #define pb push_back #defi...
d521451264465f124f19abf5a9315e107c4f2a86
59e6dc08ba65043f2dd63d828610805aa77c676b
timblechmann/nt2
/modules/boost/simd/constant/include/boost/simd/toolbox/constant/constants/eleven.hpp
C++
hpp
1,762
permissive
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
bce10b5c5d4eb71192c775701a125842749cc996
1ed1a8960a4eb857521bad672aa6abe37415ee84
akalinow/RMM
/netheatflux.cpp
C++
cpp
3,585
no_license
/* * *************************************************************************** * * Copyright (C) by Monika Kalinowska * * * mkalinow@igf.edu.pl * * * * ...
c9ebd016b5bf59a030ac80ce7ae6115a51c938f1
0a82673aa4b8eceb10461630b398d459f3b901df
gussmith23/tvm
/src/te/schedule/message_passing.cc
C++
cc
22,157
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
4dbb64cac739cbcfc63e22a6cf79f672e51661ba
5f93378de5729346bdb079bca8546064e05ed044
zizilala/projects_etest
/AM35x_BSP/SRC/APP/DOCMD/appli.cpp
C++
cpp
3,158
no_license
// All rights reserved ADENEO EMBEDDED 2010 /* ================================================================================ * Texas Instruments OMAP(TM) Platform Software * (c) Copyright Texas Instruments, Incorporated. All Rights Reserved. * * Use of this software is controlled by the terms and conditi...
7c81535f1abd2c53ebb6b27aa41a2c9dad9af67f
6ffeb7f7b843bb0d141e129fb2f10a46351277fa
novo1985/Leetcode
/Medium/81. Search in Rotated Sorted Array II/SearchinRotatedSortedArrayII.cpp
C++
cpp
1,393
no_license
#include <iostream> #include <vector> //#include <algorithm> //#include <unordered_map> using namespace std; /* Follow up for "Search in Rotated Sorted Array": * What if duplicates are allowed? Would this affect the run-time complexity? How and why? * Suppose an array sorted in ascending order is rotated at some piv...
7f8c738308bf57736f7c824f681f8a45e692b5f6
d14da7a66dd02e35bfaf9b03580cabd6be70bf31
zoumson/CommandLineWithOpenCVBoostGNU
/src/opencv/opencv.cpp
C++
cpp
2,238
permissive
#include<opencv2/core.hpp> #include<opencv2/highgui.hpp> #include<opencv2/imgproc.hpp> #include <opencv2/imgproc/types_c.h> #include <stdio.h> #include <stdlib.h> enum ParamterOption { START, MIDDLE, END }; int main(int argc, char const *argv[]) { cv::String keys = "{f first |11.5 | Firs...
3b2da3a47a0475d226bde44d1e0e1da534312e40
3544162fade9db7a294b2ea94d80d8bb36a42eb7
Taokotenl/opticks
/cfg4/C4PhotonCollector.cc
C++
cc
4,191
permissive
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
2e79caea19b33203748c59ad44a978690e8b54b5
9eb2d0ee92a4b6f9e00f9e2b2a38d9ea078b4dd1
mat007/xeumeuleu
/src/libraries/xeumeuleu/streams/detail/output_base.hpp
C++
hpp
3,662
permissive
/* * Copyright (c) 2009, Mathieu Champlon * 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 cop...
965ddd28160ba9c79a0831649e4f4c1c711a2946
19f02d08169b0a921cc5148c4877bffb4931e9cf
zanzo420/SoT-Python-Offset-Finder
/SDK/BP_FishingFish_SplashTail_03_Colour_01_Ruby_functions.cpp
C++
cpp
1,266
no_license
// Name: SoT, Version: 2.2.1.1 #include "../pch.h" /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Functions //----------------------------------------------------...
0c6dfb2d6b9f8e827cb67e5eeeaa620cfd734afe
029e350b340e5305ca88e36028ecf263d9067ca9
DcmTruman/my_acm_training
/POJ/3069/15367612_AC_47ms_268kB.cpp
C++
cpp
466
no_license
#include<iostream> #include<string.h> #include<algorithm> #define clr(x) memset(x,0,sizeof(x)) using namespace std; int r,n; int aa[1005]; int main(){ while(cin>>r>>n){ if(r == -1 && n == -1)break; clr(aa); for(int i = 0;i < n ; i++)cin>>aa[i]; sort(aa,aa+n); int i = 0; int ans = 0; while(i<n){ in...
7ff321a712946f1c77b13d1f4f9e715e925e005f
7e0b9e1094bb44da633bedf443cf076860988562
weseethrough/DeadCode
/workspace3/IrrlichtTest/jni/app-android.cpp
C++
cpp
7,785
no_license
// Copyright (C) 2002-2009 Laurent Mallet & Maxime Biais // This file is part of the "Irrlicht Android Port". // For conditions of distribution and use, see copyright notice in irrlicht.h #include <jni.h> #include <sys/time.h> #include <time.h> #include <android/log.h> #include <stdint.h> #include <android-receiver.h> ...
76fa5513b2d6473b665f4986f51c9879079f6bbf
1665e71c4c62e7d212d1557e65146f4e96a1a992
starkgate/ImageFusionNeuralNetwork
/vtk_data_generator/renderer/bh_tsne/tsne.cpp
C++
cpp
26,946
no_license
/* * * Copyright (c) 2014, Laurens van der Maaten (Delft University of Technology) * 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 ...
0d042584c47a8a0068da8fec4c41fceadab40204
13bf95e49aba15c2c142db392a01961ddbe4cda5
damsil99/Proyecto-Final
/street_of_war/personajes.cpp
C++
cpp
5,917
no_license
#include "personajes.h" using namespace std; personajes::personajes(QGraphicsItem* carr):QGraphicsPixmapItem(carr) //personajes::personajes() { /*pictureA.push_back(QPixmap(":/ken.1.0.png")); pictureA.push_back(QPixmap(":/ken.2.0.png")); pictureA.push_back(QPixmap(":/ken.3.0.png")); pict...
4617a83b9dfbc82fad9bb1eabd4c47cf43737209
0f593f462137392e4f240b4092689e06ee2b8226
fthaler/gtbench
/include/gtbench/numerics/diffusion.hpp
C++
hpp
705
permissive
/* * gtbench * * Copyright (c) 2014-2022, ETH Zurich * All rights reserved. * * Please, refer to the LICENSE file in the root directory. * SPDX-License-Identifier: BSD-3-Clause */ #pragma once #include <functional> #include "./computation.hpp" namespace gtbench { namespace numerics { namespace diffusion { s...
3fc92d43353e316768ee64924a35251f520c87df
ccae9f986e07aadd11c5c0c5e8020f6f3e0d2d50
talatynnikA/matproga
/Лабораторная работа № 4/lab4_2/lab4_2/MultiMatrix.cpp
C++
cpp
1,330
no_license
#include "stdafx.h" #include <memory.h> #include "MultiMatrix.h" #define INFINITY 0x7fffffff #define NINFINITY 0x80000000 int OptimalM(int i, int j, int n, const int c[], int *s) { #define OPTIMALM_S(x1,x2) (s[(x1-1)*n+x2-1]) int o =INFINITY, bo = INFINITY; if (i<j) { for (int k = i; k<j;k++) { ...
c71d5970271340d39b7911c68481f3f2cb0474d0
a1a18395ffdc7f7fdc4795f5a3ea529752191ed2
jjzhang166/WinNT5_src_20201004
/NT/windows/appcompat/shims/general/globalmemorystatuslie.cpp
C++
cpp
1,051
no_license
/*++ Copyright (c) 2000 Microsoft Corporation Module Name: GlobalMemoryStatusLie.cpp Abstract: Lies about the amount of swap space returned from the GlobalMemoryStatus API so app will think it has a huge swap space like it did on win98. Notes: This is a general purpose shi...
224a4668c38dccdd5eaf9dbf196c9053ee81206f
ab412d3689a6b0ec9592600983d081f9c9b978f7
Selano90/ins_positioning
/src/pid.cpp
C++
cpp
2,326
no_license
#include "node_pid.h" #include "ins_positioning/InsPos.h" #define SUBSCRIBER_BUFFER_SIZE 1 // Size of buffer for subscriber. #define PUBLISHER_BUFFER_SIZE 1000 // Size of buffer for publisher. #define TOLERANCE 0.01 // Distance from the target distance, at which the distance will be considered as achieved. #define ...
5367502968ca9bb6e66449ba1e85d8d6d390b934
2683a1cdc979c1754f4a682b37c64c7e9d96e5b2
DuyDn1305/Compatitive-programing
/Misc/bunker.cpp
C++
cpp
1,123
no_license
#include <bits/stdc++.h> #define fto(i, a, b) for (int i = a; i <= b; ++i) #define fto(i, a, b) for (int i = a; i <= b; ++i) #define fdto(i, a, b) for (int i = a; i >= b; --i) #define ff first #define ss second #define pii pair<int, int> #define pb push_back #define mp make_pair #define ll long long #define oo 100000...
64e8030d2fb7f3333359799114f437ddf32a434c
d3ac4d64839311f79dbac16ae95c62295e4a7d98
bennyk/benny-ffmpeg-player
/MyFFmpegPlayer/libraries/MyFFmpegLibrary/jni/convert.cpp
C++
cpp
2,615
no_license
#include <convert.h> #include <libyuv.h> #include <libyuv/convert_from.h> #include <libyuv/scale.h> int __I420ToARGB(const uint8* src_y, int src_stride_y, const uint8* src_u, int src_stride_u, const uint8* src_v, int src_stride_v, uint8* dst_argb, int dst_stride_argb, int width, int height) { return lib...
b07f3db53fbaa8b0bd25dd95e3ed6f1c06af61d3
36bd9182030ab7aab0fe6e0a11f6abac283ae15b
ssarassars/TinderForPets
/ClientManageStore.cpp
C++
cpp
2,024
no_license
#include "ClientManageStore.h" #include "ui_ClientManageStore.h" ClientManageStore::ClientManageStore(QWidget *parent, Control *cntrl) : QWidget(parent), ui(new Ui::ClientManageStore) { ui->setupUi(this); this->cntrl = cntrl; this->sideBarClient = new SidebarClient(NULL); sideBarClient->show();...
e11a43588b83e33798ee5197857a78d867c79edf
929a0372cd99c5df586a8ae366a1e8ba5db81de9
Di0n/3DGraphics
/3DGraphics_Opdrachten/Week3/Main.cpp
C++
cpp
5,379
no_license
#include <GL/freeglut.h> #include <cstdio> #define _USE_MATH_DEFINES #include <cmath> #include <vector> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" float lastFrameTime = 0; int width, height; struct Camera { float posX = 0; float posY = -4; float rotX = 0; float rotY = 0; } camera...
33f6545c050512c98a896ea0a22c3c76f9253986
8b4ca6d60408e9aee10c9d7679ce9101a5993e49
pastillilabs/sonar
/service/src/main.cpp
C++
cpp
783
permissive
#include "server.h" #include <QCoreApplication> #include <QDebug> #include <QDir> #include <QSysInfo> #include <QVersionNumber> #include <stdlib.h> int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); const QVersionNumber productVersion{QVersionNumber::fromString(QSysInfo::productVersion())};...
f7ed9676d5a95dcc029dbc6277c6dcb177111120
033d8543678f25b7e4d0931cbaaafcd834690f29
open-dis/open-dis-cpp
/src/dis7/ActionResponsePdu.cpp
C++
cpp
7,153
permissive
#include <dis7/ActionResponsePdu.h> using namespace DIS; ActionResponsePdu::ActionResponsePdu() : SimulationManagementFamilyPdu(), _originatingID(), _receivingID(), _requestID(0), _requestStatus(0), _numberOfFixedDatumRecords(0), _numberOfVariableDatumRecords(0) { setPduType( 17 ); } Acti...
e4b524d9e91366be991f6a0047d09e314687ef10
9194415988d71cb75c498a93d7f1089231984698
caogenwang/tencentcloud-sdk-cpp
/gaap/src/v20180529/model/CreateProxyRequest.cpp
C++
cpp
9,713
permissive
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
ebcb9bb0ee8ffed19eeca1746af0467ce992c576
8ba5a0e6bcda3264da7b62bad39f7218e7d44e21
khloukrada/MyDictionary
/MyDictionary/adddic.cpp
C++
cpp
11,628
no_license
#include <iostream> #include "time_chrono.h" #include <fstream> #include <string.h> #include <cctype> #include <conio.h> #include <cstdlib>//for exit #include "error_open.h" #include "color.h" #include "hash.h" #include "about.h" using namespace std; bool found;//результат знаходження слова //the result of finding the ...
8b017206a0bde5c98149f01484680bcaf5ed74ee
e1b0d58b566c7209a6149add98faf284719a7c52
etsuhiro/avs
/iona/AvsComponent.cpp
C++
cpp
472
no_license
#include "AvsComponent.h" #include "avs.h" struct AvsComponent::Impl { avs::ScriptEngine scriptEngine; }; void AvsComponent::Init(HWND hwnd) { } void AvsComponent::Update() { avs::RunningStatus stat = pImpl->scriptEngine.Run(16.f); } void AvsComponent::Final() { } AvsComponent::AvsComponent() { pImpl = new Im...
dd4bc07648808b4b01ad65d938676d385d32d8fd
f576dcc10270bb2a3312869be5d43651c2c3a36e
wanggan768q/GameWork
/Client/cocos2dx-2.1beta3-x-2.1.1/HSBalloon/proj.win32/Base/HSGameCache.cpp
C++
cpp
12,100
permissive
#include "HSGameCache.h" #include "PropInfoData.pb.h" HSGameCache::HSGameCache(void) { m_pUseBufferPropData = NULL; string fullFilePath = CCFileUtils::sharedFileUtils()->fullPathForFilename("Data/PropInfo.data"); HSFileData data(fullFilePath.c_str(),"rb"); m_pPropInfoData = message::PropInfoData::...
9a96023d7afaf0687021c7d6d6ba1e2cefd84714
cc52c3043385dfae9fcd1f42a4b3867fbd259590
sg47/algorithm
/src/benchmark_helper.cpp
C++
cpp
1,597
permissive
#if HAVE_CONFIG_H #include <config.h> #endif #include <sched.h> //sched_setscheduler #include <errno.h> #include <stdexcept> #include "benchmark_helper.h" namespace slib { void linux_fifo_scheduler() { /* Use FIFO scheduler to limit OS interference. Program must be run as root, and this works only for Linux ...
73ba00de9a9f799c9eb57e931ff2e19ecb4a56af
853f829be55f243e9d6b27116e918dc64a922d19
qicosmos/cinatra
/include/cinatra/ylt/coro_io/io_context_pool.hpp
C++
hpp
7,201
permissive
/* * Copyright (c) 2023, Alibaba Group Holding Limited; * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
da2bd22a4924cfa94fee3d4350011bda7e426e44
7290c9a20c77feedf3ca340081319e5b8b6c40f8
ordinary-developer/lin_education
/books/techno/cpp/__intermediate/effective_modern_cpp_s_meyers/code/ch_3-MOVING_TO_MODERN_C++/item_11-prefer_deleted_functions_to_private_undefined_ones/case_2-deleted_functions_with_templates-1/main.cpp
C++
cpp
332
permissive
template <typename T> void processPointer(T* ptr); template <> void processPointer<void>(void*) = delete; template <> void processPointer<char>(char*) = delete; template <> void processPointer<const void>(const void*) = delete; template <> void processPointer<const char>(const char*) = delete; int m...
e3efa0bb8c0c8d1aba505b89e301e3f65b190a22
699b2a4fcb4d37259aa7b26bd48a0cbc28e53512
FilipHesse/Sensors
/src/PinManager.cpp
C++
cpp
523
no_license
#include "PinManager.h" #include "easylogging++.h" PinManager::PinManager() : pinMap_{{e_PinNames::ROTARY_ENCODER_CLK,5},{e_PinNames::ROTARY_ENCODER_DT,4},{e_PinNames::ROTARY_ENCODER_BUTTON,1}} { //ctor } PinManager::~PinManager() { //dtor } unsigned int PinManager::GetPinNumber(e_PinNames pinName) const { ...
8ff78c09f333395fc8791ce1673bc73ed8f91384
802141286a2a571b4469984c033767aa76a84830
thewrath/SpaceShooter
/src/MiniMapPointer.cpp
C++
cpp
268
no_license
/** * @file MiniMapPointer.cpp * @date 24-Jul-2020 */ #include "MiniMapPointer.h" void MiniMapPointer::OnCreate() { orxConfig_SetBool("IsObject", orxTRUE); } void MiniMapPointer::OnDelete() { } void MiniMapPointer::Update(const orxCLOCK_INFO& _rstInfo) { }
91a70135bfc8aede0de7e8733f8a9eadb64f342b
7a6b4e2540e62a19f2513658ba803ff25c99f271
yongjianmu/leetcode
/src/35_Search_Insert_Position/sol.cpp
C++
cpp
929
no_license
#include <iostream> #include <vector> using namespace std; class Solution { public: int searchInsert(vector<int>& nums, int target) { int len = nums.size(); if(0 == len) { return 0; } int left = 0; int right = len - 1; int mid = 0; ...
9a89dead5d4008a8c75473ebfe249909275ab807
d84a5c9b2cf12e661be6488c0dd624e16e7dba7e
faudinot/Neural_Network
/sources/testneuron.cpp
C++
cpp
2,359
no_license
#include "testneuron.h" /* #include <iostream> #include <vector> #include <memory> #include "neuron.h" #include "input.h" // Aggregation Function #include "distancecalculation.h" #include "weightsum.h" // Activation Function #include "heavyside.h" #include "sigmoid.h" TestNeuron::TestNeuron() { } int TestNeuron::...
046784f7bd2d34b1169a089837b2fd6fc677639f
24ca027693df18dcfb7d95ada02ec97b13f22769
jixhua/QQmlQuickBook
/sstd_utility/windows_boost/boost/gil/image_view_factory.hpp
C++
hpp
25,498
no_license
/* Copyright 2005-2007 Adobe Systems Incorporated Use, modification and distribution are subject to 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). See http://opensource.adobe.com/gil for most recent version incl...
d87f76a5c3b0cf99012b25ade9ff8b3ca09489c7
d6a94b0fd585a334ee72c1eb0266dba8667867bc
GryfenCrypto/gryfencoin
/src/checkpoints.cpp
C++
cpp
17,835
permissive
// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints.h" #include "t...
c738861bc5f211ccb6d20e970eff8f94b838fcd2
d8f1fd19453a88abc3ad666cabf2a28cc41dc8b2
snbarko/cpp_test_programs
/test_template.cpp
C++
cpp
353
no_license
#include <iostream> #include <stdio.h> template <class myType> myType GetMax(myType a, myType b) { return (a > b ? a : b); } int main () { // int x = 11 ,y = 10, k; double x = 11.2 ,y = 11.1, k; // k = GetMax <int>(x, y); k = GetMax <double>(x, y); // printf("Max is %d\n", k); printf("M...
ae86914b993b24a53d1ba4613e482a957fba47a6
bef6ad294742056af50085b18390ffad615a2380
K5680/GameEngine
/IApplication.cpp
C++
cpp
2,640
no_license
#include "IApplication.h" IApplication::IApplication() { } IApplication::~IApplication() { } bool IApplication::Create() { m_Window = MakeWindow(1024, 720, L"GAME-ENGINE"); if (m_Window) { ::SetWindowLongPtr(m_Window, 0, (LONG)this); return true; } else { return false; } } bool IApplication::OnEven...
db764562610bd30d562610bb13d09d5644453c6b
681e6d6322f7b83619f592e60d9bed31e02ad831
antiomiae/pixel
/pixel/demos/golf/golf.cpp
C++
cpp
1,204
no_license
#include <pixel/pixel.h> #include <pixel/level.h> #include "src/golf.h" using namespace std; using namespace pixel; using namespace pixel::graphics; using namespace pixel::input; void start(int argc, char** argv) { glm::ivec2 virtual_window_size = glm::vec2{320, 240}; glm::ivec2 actual_window_size = virtual...
c200ef446ca1132f43f10889391c9bf569bd6618
b0b203a6375597c1137bd66a4218c6bdde6725ae
arnab000/Problem-Solving
/codeforces/1335/A.cpp
C++
cpp
350
no_license
#include<bits/stdc++.h> using namespace std; int main() { long long test; cin>>test; while(test--) { long long n; cin>>n; if(n%2==0) { long long ans=n/2; cout<<ans-1<<endl; } else { long long ans=n/2; cout<<an...
25843dab695e697cf3a36143651e7981888f522d
165fcd46b2e4e51f12fe6d8934d2a850351eaac3
DavidMC10/Week1
/AdditionalChallenge2/Main.cpp
C++
cpp
949
no_license
#include <iostream> #include <string> using namespace std; int main() { int number{ 0 }; int num1, num2, num3, num4, num5; cout << "Enter a five-digit integer: "; // prompt cin >> number; // read integer from user num1 = number / 10000; cout << num1 << " "; //Use the '%' modulus operator to get the remai...
00bbbfcb0ef3c4329673ee0cd3020efd71236a7d
6e05380c7d453a5ca0b17326fed9f294145cb42d
iOSPrincekin/Compiler_Front_InCPP
/lexer/Num.cpp
C++
cpp
205
no_license
// // Created by LEE on 4/12/20. // #include "Num.h" #include "Tag.h" Num::Num(int v):Token(Tag::NUM) { value = v; } string Num::toString() { std::string s = std::to_string(value); return s; }
853ea9709f44dde3f8b300edde9d0b79ed228ffe
3b233c894471268f71d68c8cb65c92563da40b09
remievraere/Bomberman
/Map.cpp
C++
cpp
61,173
no_license
// Started by Simon Bulcke // Last update by Remi Evraere // #include "Map.hh" Map::Map(int x, int y, int density_cube, int density_bcube, int nb_player, int nb_ia, std::string fpname, std::string spname, std::string cube, std::string box, std::string bcube, std::string ground) { int i; int j; int l...
3e69257e187106e0fff138d9d31cb90ae1c41f7e
283d113fee0fa1756933d9741ceb33ddaf6fe95f
fchevrey/piscine_cpp
/d05/ex02/includes/Bureaucrat.hpp
C++
hpp
2,049
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Bureaucrat.hpp :+: :+: :+: ...
d838a54d69b7d172131cc21f50def7c675f9a1e7
155dece328bbb9713269f6c0df136f2ffc64d74d
joelyfontana/SortAssignment
/sorting.cpp
C++
cpp
4,351
no_license
/*Joely Fontana Student ID : 2313535 Data Structures Section 1 Assignment 6 - Sort*/ #include <iostream> #include "sorting.h" #include <vector> using namespace std; //BUBBLE SORT void sorting::bubbleSort(double bubbleArray[], int size) { //cout << "Bubble sort" << endl; for (int i = 0; i < size; ++i) { //cout ...
fda47a15e23690aabd1e669025b14961a403640d
4ebe0be8903e5bf35c82bb80d5a9bcf4557452cf
mgh3326/browser-android-tabs
/chrome/browser/ui/browser.cc
C++
cc
109,390
permissive
// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/browser.h" #include <stddef.h> #include <algorithm> #include <memory> #include <string> #include <utility> #include "base/b...
694adf48f77bcf34ec48cee5bd3a226f861ddccf
f2989c48f6aee44b879e4bf4011841438eb20cf5
Joejiong/mindspore
/mindspore/lite/java/native/runtime/model.cpp
C++
cpp
1,793
permissive
/** * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
5e9ee67c52b1bad9009ec2bb4e6bd37c71fe23ea
9ced95a95521c2164a342c89455c55584b7de397
matthewReff/Kattis-Problems
/code/slatkisi.cpp
C++
cpp
808
permissive
#define _USE_MATH_DEFINES #include <iostream> #include <stdio.h> #include <cmath> #include <iomanip> #include <vector> #include <string> #include <algorithm> #include <unordered_set> #include <ctype.h> #include <queue> #include <map> #include <set> #include <unordered_set> typedef long long ll; typedef unsigned long l...
59037219e15ffccabe88e60bfda76a1a16cb5564
5040ab2f8bd9fdc5967c3d6f30017c7db9536335
netconstructor/pgadmin3
/pgadmin/dd/dditems/handles/ddRemoveTableButtonHandle.cpp
C++
cpp
2,694
permissive
////////////////////////////////////////////////////////////////////////// // // pgAdmin III - PostgreSQL Tools // // Copyright (C) 2002 - 2011, The pgAdmin Development Team // This software is released under the PostgreSQL Licence // // ddRemoveTableButtonHandle.cpp - A handle for a table figure that allow to delete i...
900c08853c75c235d01600284bb7452e447a89e4
e3ae1acee0cd056ddd51f32e4c5fe91e4e1c626f
https-github-com-evo938/td
/tdutils/td/utils/Slice.cpp
C++
cpp
707
permissive
// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2020 // // 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) // #include "td/utils/Slice.h" #if TD_HAVE_OPENSSL #include <op...
9e14d0ba1a489f4f70321f753e24044993e9e34c
0a5ba594e0076cc968c585a3223aeb79dd8f5c8d
ZabelinK/OpenCV_cuda_lab
/smoothing.cpp
C++
cpp
1,219
no_license
#include "smoothing.h" #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/objdetect/objdetect.hpp" #include <opencv2/cudaarithm.hpp> #include <iostream> BlureFace::BlureFace(const std::__cxx11::string &name, const std::shared_ptr<cv::cuda::G...
b533979199c1b3d404529e20083fdf111ddacedc
47d785844d39136da3774cb341e596dc9c3ac7b6
pepero/algo
/hackerrank/solvemefirst.cc
C++
cc
322
no_license
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int solveMeFirst(int a, int b) { // Hint: Type return a+b; below return a+b; } int main() { int num1, num2; int sum; cin>>num1>>num2; sum = solveMeFirst(num1,num2); cout<<sum; return 0; ...
d69da3571375f50b0e3376e0d9dfa1de91b721de
06e72bce1684b811f9f76aeed41b83b1f7a76203
SketchUp/sketchup-ruby-debugger
/ThirdParty/include/boost/math/special_functions/ulp.hpp
C++
hpp
3,324
permissive
// (C) Copyright John Maddock 2015. // Use, modification and distribution are subject to 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) #ifndef BOOST_MATH_SPECIAL_ULP_HPP #define BOOST_MATH_SPECIAL_ULP_HPP #ifdef _MSC_VER #pra...
81ac0c33fd8bac4d8c3b69a4b6e8b2bcd7647eb6
609b28400267a7577a4b1facf597c2500d50ef0b
WindowsKernel/sdk71examples
/security/cryptoapi/signhash/SignHash.cpp
C++
cpp
18,205
no_license
/*++ THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. Copyright (C) Microsoft Corporation. All rights reserved. */ #define UNICODE #define ...
1307d0dbe5a568f27b3b7d642d3e0e5868ffa367
ede6c32665be349e418ed92dbdcd0dedf53c017c
marromlam/lhcb-software
/LHCb/Phys/LoKiCore/src/DecayDescriptor.cpp
C++
cpp
5,797
no_license
// $Id$ // ============================================================================ // Include files // ============================================================================ // LoKi // ============================================================================ #include "LoKi/DecayDescriptor.h" // =========...
ac82bfb74d2e1c09c13cf8f2c3f272498ca5bd54
f23eaec8a49d9afdb9907a416a6d16d3b88e4a59
MarceloGra/Criptoreal
/src/test/ratecheck_tests.cpp
C++
cpp
2,913
permissive
// Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2017-2018 The Criptoreal Core developers #include "governance.h" #include "test/test_criptoreal.h" #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(ratecheck_tests, BasicTestingSetup) BOOST_AUTO_TEST_CASE(ratecheck_test) { CRateCh...
9bd6496adbc0f4f332d2916fff64b70ba4d128ec
deb1d62251a3058e7d2c6fee900921bc17b7ab53
scchy/My_Learn
/course_cpp_ternsorrt/course4_oop/1.class_declare.cpp
C++
cpp
450
no_license
#include <iostream> #include <vector> #include <string> using namespace std; class Account { // 属性 string name {"None"}; double balance {0.0}; // 方法 bool deposit(double amt); bool withdraw(double amt); }; int main(){ Account j_a; Account a_a; Account acs [] {j_a, a_a}; vector<...
1e820507ccf8b4dc3eac54dc38655ff608c60754
17d1b513464082b1921280ccd251d8a73eb6e8bc
TheVOCofE/GAME253-Assignment2
/SampleSDLProject-master/SampleCore/Engine.cpp
C++
cpp
1,831
no_license
#include "stdafx.h" #include "Engine.h" #include <iostream> #include "SystemManager.h" #include "SceneManager.h" #include <stdio.h> namespace core { Engine::Engine(scene::Scene* _mainScene, scene::Scene* _secondScene) : mainScene(_mainScene), secondScene(_secondScene) { isRunning = false; managers.push_back...
a4fdc57b65f427f3d1c876d3521c3333a59a3baf
5bed032d8a3073f3ca1a7e43175381f43d056d7d
mehedi-shafi/CPU-Scheduler
/fcfs-sjf-menu.cpp
C++
cpp
6,104
no_license
#include <iostream> #include <bits/stdc++.h> using namespace std; //Suggested to run in Linux running system. It will run in all CPP compiler only error will be shown as // ERROR: system("clear"); is not defined. change the lines into system("cls"); for windows dont know for mac //utility function to get average from...
25986c128c249fbf51c65aa92994f922a8718d03
c7c56ff87b3a6ef57cf4a4f00f6359d7a8ab637a
ly774508966/gloveTrack
/src/include/spdlog/details/format.cc
C++
cc
46,671
permissive
/* Formatting library for C++ Copyright (c) 2012 - 2015, Victor Zverovich 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,...
513595983bd03c99315318789f9e98982d2862e3
4f1636c89ba9135a2ea4e105485dc3a78af47536
lwcM/leetcode_solution
/0033-search-in-rotated-sorted-array.cpp
C++
cpp
781
permissive
static const auto __=[]{ ios::sync_with_stdio(false); cin.tie(nullptr); return nullptr; }(); class Solution { public: int search(vector<int>& nums, int target) { if(nums.size() == 0) return -1; int l=0, r=nums.size(); while(l < r) { int m=(l+r)/2; if(nums[...
58d525093eefdc1a9fcfdcfeb0707a5f8a3d910e
5a8d6bc0d78636c9b7d25c308dc9153e9d5c75ac
ldivrala/Basic-Opencv
/day5/histogram_matches/HistrogramMatches.cpp
C++
cpp
2,624
no_license
#include <opencv2/imgcodecs.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #include <iostream> using namespace cv; using namespace std; const char* keys = "{help h| | Print help message}" "{@input1 | | Path to image 1}" "{@input2 | | Path to image 2}" "{@input3 | | Path to image 3...
81943193f109226ff027758076083be1229bfa5b
979f19c1a10205d858047a4ddcad97c2546ec047
kuncao/duckdb
/src/planner/expression/bound_aggregate_expression.cpp
C++
cpp
1,871
permissive
#include "planner/expression/bound_aggregate_expression.hpp" #include "catalog/catalog_entry/aggregate_function_catalog_entry.hpp" using namespace duckdb; using namespace std; BoundAggregateExpression::BoundAggregateExpression(TypeId return_type, AggregateFunctionCatalogEntry *bound_aggregate, ...
4a45ff2fe910acafd0ba6487e3d2b19d1ed1b8d0
2b7e37b54626ccb91b4e45d51fdb3767a80112e0
pitrouA/CPlusPlus
/Parallelisme/Exemple Baptiste/maitre.cpp
C++
cpp
1,810
no_license
#include <mpi.h> #include <iostream> using namespace std; int main(int argc, char**argv){ int nmasters, pid; MPI_Comm intercom; MPI_Comm intracom; MPI_Init (&argc,&argv); MPI_Comm_size(MPI_COMM_WORLD,&nmasters); MPI_Comm_rank(MPI_COMM_WORLD,&pid); // le code des maîtres int n = atoi(argv[1]); int ns...
8169d77f96d354bee501a0c1aa8744ab40e5f142
3ae83f6a21055fa733982be685b8b9b44cd9ad45
SeppPenner/arrow
/cpp/src/arrow/column-benchmark.cc
C++
cc
2,071
permissive
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
194e1184a80de27279b2ab368229ca3e5ccb57d0
4c39d16b647217e10713b5d88650a9f1606bc930
adsl2387/PhysicalBasedRenderring
/PixelShader.cpp
C++
cpp
224
no_license
#include "StdAfx.h" #include "PixelShader.h" PixelShader::PixelShader(void) { } PixelShader::~PixelShader(void) { } void* PixelShader::GetShader() const { return NULL; } void PixelShader::SetShader(void* shader) { }
a7a98757094fd4cdf07c2bf4cabf010228ec9c4b
50bbe32f05b11b1def6a2b8bd1c74d2987511481
dnr2/maratona
/UVa/960 - Gaussian Primes.cpp
C++
cpp
1,597
no_license
//http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=901 //#tag math matematica //#tag primes primos primo //#tag complexos números complexos //#sol os números citados na questão são os primos gaussianos (gaussian primes) // para que um número complexo (a +b*i) seja primo ele...
d40da1a565d0748cb70cb13344f8a448caa74361
faaf71140fd49bb93241c87adea17d99a8f0e08e
RolandTaverner/ctp2
/ctp2_code/robotcom/Top/CityTreeQueue.cpp
C++
cpp
3,772
no_license
#include "ctp/c3.h" #include "user-robotcom/shared/globals.h" #include "user-robotcom/outcom/ic3GameState.h" #include "aimain.h" #include "robotcom/Top/CityTreeQueue.h" #include "robotcom/backdoor/FlatPtr.h" #include "civarchive.h" #include "robotcom/Top/CityTree.h" #include "robotcom/Top/CityVertex.h" #include "robot...
a3b49d50923de95d3571cd516ec87aa76b28f55c
e1ce450a6d2884c6c89833f7d214e93ad9c8e494
cran/CNull
/src/CNull.cpp
C++
cpp
6,795
no_license
//////////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2017, Constantinos Tsirogiannis. Email: tsirogiannis.c@gmail.com // // // // This file is part of CNull. ...
ba95f1c31f87b6ff9727ce50d8a8f8575aedeb43
841e089bc578aff64ca80912b7bfcad7116bf037
eran505/track_racing
/headers/util/saver.hpp
C++
hpp
2,723
no_license
// // Created by ERANHER on 22.7.2020. // #ifndef TRACK_RACING_SAVER_HPP #define TRACK_RACING_SAVER_HPP #include <utility> #include "csvfile.hpp" template<typename H> class Saver{ string split=";"; u_int32_t counter=0; string file_path; u_int ctr_indx = 0; u_int32_t MAX_buffer=-1; vector<H> ...
9023c7504c2722cbc0f56ab3877dea71245e9ba0
a0f12a52f4f133cd7ba7bfe86cd7d82ee865d596
Vizionnation/chromenohistory
/sandbox/win/src/handle_closer_agent.cc
C++
cc
8,438
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "sandbox/win/src/handle_closer_agent.h" #include <limits.h> #include <stddef.h> #include "base/logging.h" #include "base/win/static_constan...
b305b76c167137a9236dfee0dd0536f789d73da9
922974e8d69c650eb3939616cdc6c321cec3388a
alecguilin/LeetCode
/Linked List/ReverseLL.cpp
C++
cpp
1,315
no_license
#include<iostream> using namespace std; // Definition for singly-linked list. struct ListNode { int val; ListNode *next; ListNode() : val(0), next(nullptr) {} ListNode(int x) : val(x), next(nullptr) {} ListNode(int x, ListNode *next) : val(x), next(next) {} }; class Solution { public: ListNode...
af82d0389bde4d9e4bb2d93ea894828ce034a200
18232f9bfc82da697c4bdcdcd45b032624f0f8b4
qtg2015sclt/PAT
/pat-al/1043.cpp
C++
cpp
1,251
no_license
/** * pat-al-1043 * 2017-02-13 * Cpp version * Author: fengLian_s */ #include<stdio.h> #include<vector> using namespace std; vector<int> pre; vector<int> post; int isMirror; void getPost(int root, int tail) { //printf("root = %d, tail = %d\n", root, tail); if(root > tail) return; int i = root+1,...
b1c34eed5f8b4096baf30cc4e74457645ad36b7e
56cf3bccf0ed12108d396bc950b9701286183845
MushtaqShahriyarRafee/Basic-Programming-Codes
/Online Judge Problem solution/Equidistant String.cpp
C++
cpp
719
no_license
#include<bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int x=0, n=s.size(); if(s==t) { cout << s << endl; return 0; } for(int i=0; i<n; i++) { if(s[i]!=t[i]) x++; } if(x%2==1) cout << "impossible" << end...