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
a133581ac98213b9f8651439ee0c9a25968be084
1c676cc067b0204398b325c1c127816f9db51404
stephan-razin/alfa-task
/main.cpp
C++
cpp
1,059
no_license
#include <iostream> #include <fstream> #include "readData.h" #include "PathFinder.h" #include "PathFinderTester.h" #include "readDataTester.h" int main(int argc, char const *argv[]) { if(argc < 3 || !argv || !argv[1] || !argv[2]) { std::cout << "invalid args" << std::endl; std::cout << "s...
481d7a58ce79d66627225dc335e4341417943512
4c5bfadc902c5d4689e1db6220efafed973c2538
Keypekss/TankGame
/TankGame/Source/TankGame/Private/TankPlayerController.cpp
C++
cpp
2,402
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "TankPlayerController.h" #include "Tank.h" void ATankPlayerController::BeginPlay() { Super::BeginPlay(); auto ControlledTank = GetControlledTank(); if(!ControlledTank){ UE_LOG(LogTemp, Warning, TEXT("PlayContr...
92bae532f0661a66bf3c43b255b06efdbf445a07
71c2a0b7ddde38943edecaea003970b0f6f5efc2
vslavik/poedit
/deps/boost/libs/multiprecision/test/test_fpclassify.cpp
C++
cpp
18,772
permissive
// Copyright John Maddock 2006. // Copyright Paul A. Bristow 2007 // 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) #ifdef _MSC_VER # define _SCL_SECURE_NO_WARNINGS #endif #i...
c9a5aa1b5f408ba6197093827ac21c453f2b256d
f0f8afc76695b8e07579bbae6320e8f3c8cc06c0
AdBusterIO/swift-boring-ssl
/Sources/CBoringSSL/ssl/tls13_client.cc
C++
cc
36,427
permissive
/* Copyright (c) 2016, Google Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
3e4942d1e5b219bcc195cf68335ef32a0627ae09
89c75b808e00246d21d481be499a94f2eb994540
RiccardoAgatea/Tutorato-Programmazione-2018-19
/16-05-19/Es1-14-05-19.cpp
C++
cpp
2,652
no_license
/** PRE = root è un albero ben formato e non nullo */ int cercaFoglia(nodo *root, int key, nodo *&t) { if (!root->left && !root->right) { // root ha solo un nodo (equivale a dire che siamo // in una foglia) if (root->info == key) { // c'è una corrispondenza t = root; return 0; } else { /...
def6c04fffe9ec73859498f743d35d47dea23190
67d66af30f35f125a6358f0283161c185b5b4d83
rwalkerlewis/pylith
/unittests/libtests/meshio/TestDataWriterVTK.cc
C++
cc
2,564
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://...
e11ec5adc9e4f4a471e7f5d45c1f4c2e474e2052
58e3b43fe4be65c4ec1dd8e95c39f25847d46da7
HH-LFY/HH
/CPP/01 背包水题.cpp
C++
cpp
554
no_license
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int maxx=500+10; int a[100000+100]; int w[maxx],v[maxx]; int n,m; int main( ) { cin>>n>>m; for(int i = 1;i <= n; i++) { scanf("%d%d",&w[i],&v[i]); } for(int i = 0;i <=...
9ee4aa3ae1ad5fb907e6166451e9888e8b0a813c
49a08c2ab0c6f782dba70a9f33f09965f67ab329
findepi/multiplexer
/src/azouk/xrelease.cc
C++
cc
913
no_license
// // Azouk Libraries -- Libraries and goodies created for www.azouk.com. // Copyright (C) 2008-2009 Azouk Network Ltd. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of ...
ea739927dfc1ece972e8c6f580b3e81614cdd923
f5b06fbde19b5d49604d58fdb3dcfa73dc3e895d
JuanBesa/ledger
/libs/ml/tests/unit/serializers/graph.cpp
C++
cpp
21,288
permissive
//------------------------------------------------------------------------------ // // Copyright 2018-2020 Fetch.AI 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 // // ...
e484ac2ae568b93903297c65c1236c7c1cf51661
de3710fb2c4f2bad366e5f1286d410a16ab394c1
geekonion/LIEF
/api/python/src/PE/objects/pySection.cpp
C++
cpp
5,731
permissive
/* Copyright 2017 - 2023 R. Thomas * Copyright 2017 - 2023 Quarkslab * * 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 req...
77c82d7d6b5d7a5f4b40c06516021ac298663172
4230cfbf5b7a19a52da37b7775e9210eb21a67db
zanzo420/Medieval-Dynasty-SDK
/0.6.0.3/External/SDK/UI_QuestTracker_GoalSlot_Build_functions.cpp
C++
cpp
3,422
no_license
// Name: Medieval Dynasty, Version: 0.6.0.3 #include "../pch.h" /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Functions //---------------------------------------...
c1fb63d0a79a11c49479f665ead496a4726e6ae5
1b527693a4b8e71be8867c095fa68e94c04c053e
digicornio/glate
/src/translationdownloader.cpp
C++
cpp
2,042
permissive
#include <QStandardPaths> #include "translationdownloader.h" #include "utils.h" /* Class used to download audio translation of given text */ TranslationDownloader::TranslationDownloader(QObject *parent, QList<QUrl> urls, QString translationUUID) : QObject(parent) { //init download dir currentDownloadDir = uti...
548cdab926b324eff97693c1421e4260f64cec8e
e65e3318ca5d644ed84e6f12bd20a3100c9113fb
kgram007/Competitive-Programming
/UVa-Online-Judge/UVA403_Postscript.cpp
C++
cpp
10,200
no_license
//******************************************************************************** // Author : Ramsundar K G - kgram007@gmail.com // Online judge : UVa Online Judge // Problem ID/title : 403 - Postscript //******************************************************************************** #define __cplusplu...
70572aad376f729c5e1cc6cd70cb030bed90562d
b6c67f7097e36f2a648e87a54e5f32183ff6ccef
Capri2014/math
/stan/math/fwd/mat/fun/mdivide_left_ldlt.hpp
C++
hpp
1,318
permissive
#ifndef STAN_MATH_FWD_MAT_FUN_MDIVIDE_LEFT_LDLT_HPP #define STAN_MATH_FWD_MAT_FUN_MDIVIDE_LEFT_LDLT_HPP #include <stan/math/prim/mat/fun/Eigen.hpp> #include <stan/math/prim/mat/fun/LDLT_factor.hpp> #include <stan/math/prim/mat/err/check_multiplicable.hpp> #include <stan/math/prim/mat/fun/mdivide_left_ldlt.hpp> #includ...
518dcfa57c3c37da53467d402a7c2978bf07590f
1c45b26314d2a3728d95feb2d977fa67d1b3eb3a
KKisly/build_px4fmu-v2_default
/topics_sources/offboard_control_mode.cpp
C++
cpp
3,830
no_license
/**************************************************************************** * * Copyright (C) 2013-2016 PX4 Development Team. 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. Red...
4428b5e6ae980ddf00ac7041db5fba2f33099904
9cdcc77525f63ac34b93cec85c2576e571fa2eea
Araggik/MPI
/Mpi.cpp
C++
cpp
5,014
no_license
#include <iostream> #include "mpi.h" #include <iomanip> using namespace std; //Task 6 void My_scatter(void *sendbuf, int sendcount, MPI_Datatype sendtype, void* recvbuf, int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm) { int rank,size; MPI_Comm_size(comm, &size); MPI_Comm_rank(comm, &rank...
af7eabda147641df9c13761978358deca497271e
1a2f4cf3ebe761c90c050ce93d372a7e5901c693
idvr/sdkpub
/opencv/cv/src/cvkalman.cpp
C++
cpp
10,822
permissive
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, i...
5e3f62234aa1d030ee829f5776c81666c9b8338b
f4b3a0b86abae2cc1edff6aacf9b25d77ab3bfa2
yangzhengxing/luxrender
/luxrays/src/slg/engines/rtpathocl/rtpathocl.cpp
C++
cpp
7,251
permissive
/*************************************************************************** * Copyright 1998-2015 by authors (see AUTHORS.txt) * * * * This file is part of LuxRender. * * ...
24a16bca5cad31969c3716c5906679097a19375b
31b152b6a98b454ceb503724f51a9e4fba30db5d
opentreasury/upscale.bank
/src/UpscaleCoinProtocol/CryptoNoteProtocolHandler.cpp
C++
cpp
28,123
no_license
// Copyright (c) 2011-2016 The UpscaleCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "UpscaleCoinProtocolHandler.h" #include <future> #include <boost/scope_exit.hpp> #include <boost/uuid/uuid_io.hp...
006c589009900e930e1157882111608d63f20b86
559091baf73a7b038872ef2cae61b9a5a3dab3c0
kamaroyl/data-structures-2421
/hw4/src/main.cpp
C++
cpp
1,537
no_license
#include "MyVector.h" #include <iostream> #include <string> /****************************************** * Example main - shows usage of MyVector * * Ben Straub 830276423 * * * ******************************************/ using namespace HW4; std::string b2s(b...
5164b3515c74c64e9b4c873ff3d4e7fca68a8f4b
b1a1cb94541fecdd18265c4c92bd6a920e8d3c28
SSSirius/niel641_ComFormCode_18
/ParameterGalaxy/src/Params.cpp
C++
cpp
266
no_license
#include "Params.hpp" Params param; void Params::setup() { ini_z = 20.; colb= 150.; colr= 255.; colg= 255.; speed= 4.; dis = 1.5; zdiff = 0.6; xydiff = 50.; dens = 200.; ew=6; eh=8; size=80.; degree=9.; }
4197eb6195feeb7a1b89ef447910aa827da48b88
a17a87dda179c3ead2aadded4691716674ba710f
ccdxc/logSurvey
/data/crawl/git/old_hunk_4458.cpp
C++
cpp
270
no_license
git commit -m "Add submodule sub" ' test_expect_success 'status clean' ' git status >output && grep "nothing to commit" output ' test_expect_success 'commit --dry-run -a clean' ' test_must_fail git commit --dry-run -a >output && grep "nothing to commit" output '
26bbb0461faee557ee1fbd27f68b089f6a05bca8
b9f7f0ddd7d935a9a38ef7f0db59abb0e8c65650
Numkovich/vbacklight
/vbacklight.cpp
C++
cpp
10,000
no_license
/* * Copyright © 2014 Alexander Romashev * vbacklight is for of xbacklight for tuning backlight with tui using ncurses * with vim-like bindings * Copyright © 2007 Keith Packard * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, ...
387866cc539feb09052453fd2bb388b63274d972
aa02087f62e760961053012aef8c2a608af9be05
ProLing1994/openvino
/inference-engine/src/legacy_api/src/net_pass.cpp
C++
cpp
53,969
permissive
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "net_pass.h" #include <algorithm> #include <memory> #include <set> #include <string> #include <tuple> #include <unordered_map> #include <unordered_set> #include <utility> #include <map> #include <vector> #include "blob_fa...
e9713cd1e412b68a26ed73d006f4f800e3f8bda8
321c9f12bd49b7e2517db03973722ab84e2358b1
muskanmahajan37/cloud-spanner-emulator
/backend/transaction/read_write_transaction.cc
C++
cc
14,091
permissive
// // Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
41aac12439c7e0ee48c56add4b642d2ab5512cbc
a01162c333a85e56ef0ef1fbd86ee05ae100ad28
Nov11/lintcode
/Maximum Product Subarray .cpp
C++
cpp
923
no_license
class Solution { public: /* * @param nums: An array of integers * @return: An integer */ int maxProduct(vector<int> nums) { // write your code here int len = nums.size(); vector<int> dpMax(len); vector<int> dpMin(len); dpMax[0] = nums[0]; dpMin[0] =...
42fe5471386e38173cb0cfe810ab38d02daccf1e
88aba2944c956a19def4b34b315782b21b523f6a
dmarlowe69/irqHack64
/Browser_original/IRQHack64/StringPrint.cpp
C++
cpp
421
no_license
#include "StringPrint.h" #if ARDUINO >= 100 size_t StringPrint::write(uint8_t c) { #else void StringPrint::write(uint8_t c) { #endif if (index<127) { value[index] = c; value[index+1] = 0x00; index++; } #if ARDUINO >= 100 return 1; #endif } void StringPrint::ResetIndex(void) { ...
4e943846303c56480cc2eb51506032c44aed99fc
4f040f537aa1789a437b2e420e6563c435a62827
Mostafa161114/object_oriented_program
/Chapter_6/overloading_plus_using_member_function_2.cpp
C++
cpp
531
no_license
#include<iostream> using namespace std; class coord { int x, y; public: coord() { x=0; y=0; } coord(int a, int b) { x=a; y=b; } void show() { cout<<x<<" "<<y<<endl; } coord operator+(int i) { co...
6e92d1759b837a6624f153431d01d87a967f022b
0635665f207b7e421179c8b5b72e9dcf662fb996
hiteshkansal/Karumanchi
/ch5/p3.cpp
C++
cpp
1,467
no_license
#include<iostream> #include<queue> using namespace std; queue <int> q1,q2; void psh(int v) { if(q1.empty() && q2.empty()) q1.push(v); else if(q1.empty()) q2.push(v); else q1.push(v); } int pops() { int i,n; if(q1.empty() && q2.empty()) { cout<<"Under flow"<<e...
5e00093dfc7af864b96220bc7c7f57334f97ff3e
0a7bb83c94863b8e99f20113478d73bf68513a1b
jbeirer/cmssw
/RecoLocalFastTime/FTLCommonAlgos/plugins/MTDUncalibRecHitAlgo.cc
C++
cc
3,090
permissive
#include "RecoLocalFastTime/FTLCommonAlgos/interface/MTDUncalibratedRecHitAlgoBase.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" class MTDUncalibRecHitAlgo : public MTDUncalibratedRecHitAlgoBase { public: /// Constructor MTDUncalibRecHitAlgo( const edm::ParameterSet& conf, ...
3a888e7616998f850037a8cbf15657299df8e67e
0780aebfa81c87841c9f7c03dc3127754ca335a1
jucramirezay/juegoNaves
/main.cpp
C++
cpp
2,699
no_license
#include "coordenadas.h" #include "asteroide.h" #include "bala.h" #include <stdlib.h> #include <list> using namespace std; int main(){ bool gameOver = false; int puntos = 0; ocultarCursor(); pintarLimites(); Nave n(37, 30, 3, 3); n.pintar(); n.pintarCorazones(); list<Aster...
df90a427ca23ed123d1d9b0e9e7bc43a2e8beb82
02941142fad3e14ca9346e96a58e55badca02296
huxian123/mindspore
/mindspore/lite/src/ops/split.cc
C++
cc
4,534
permissive
/** * Copyright 2019-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 applicabl...
96ef3b1ce3c24a107e9e048bc20bf57e01c0b85f
16447fd53e49b9ada8e1b87c9677a3381615cf2e
xforever1313/sethcommon
/Common/SCSV/test/SCSVParserTest.cpp
C++
cpp
9,137
permissive
// Copyright Seth Hendrick 2014. // 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 <CppUTest/TestHarness.h> // Workaround for libstdc++ bug (put sstream here before #define) // ht...
2e52f35c8adb35413b8e0935e68a938930f423de
38ba73b029e10a3124482035d82f950ed4533d0a
dulvqingyun/trt_projects
/RetinaNet_quant/retinanet_int8.cpp
C++
cpp
21,238
no_license
#include "retinanet.h" #include "../utils/pre_process.h" #include "../utils/calibrator.hpp" #include "../utils/post_process.h" #include <string> namespace LGT { bool RetinaNet::build() { auto builder = SampleUniquePtr<nvinfer1::IBuilder>(nvinfer1::createInferBuilder(sample::gLogger.getTRTLogger())); if (!buil...
bcc7da998ec579067c619e2aca4bd26c216c3f23
dbbfe8911d509361017a3b2685da0a2866294715
JPenuchot/eve
/include/eve/function/diff/gamma_p.hpp
C++
hpp
436
permissive
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #pr...
1ce2333b3d7f9e1f9d64acdfbfb015d333124d2d
88577565d40ac9027521cc42ac61ccb18734762d
SunghanKim/chromium
/chromium/content/renderer/renderer_main.cc
C++
cc
9,699
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 "base/base_switches.h" #include "base/command_line.h" #include "base/debug/debugger.h" #include "base/debug/stack_trace.h" #include "base/deb...
84e74518692026f688032d90cc41f9e7e1d3cffb
7500444a65733af71604cb46c3d3c26945386fb9
Drone-Banks/ACM
/CodeForces/#/#396 Div.2/C.cpp
C++
cpp
2,311
no_license
/************************************************************************* > File Name: test.cpp > Author: Akira > Mail: qaq.febr2.qaq@gmail.com ************************************************************************/ //#pragma comment(linker, "/STACK:102400000,102400000") #include<bits/stdc++.h> typedef long long ...
22d1d329f2df7ed6b9078b88e019fba25701bd20
99089145a95711c96647404271398db89e533917
qh96/aws-doc-sdk-examples
/cpp/example_code/sqs/long_polling_on_message_receipt.cpp
C++
cpp
3,840
permissive
//snippet-sourcedescription:[long_polling_on_message_receipt.cpp demonstrates how to retrieve messages from an Amazon SQS queue using long-poll support.] //snippet-keyword:[C++] //snippet-keyword:[Code Sample] //snippet-keyword:[Amazon Simple Queue Service] //snippet-service:[sqs] //snippet-sourcetype:[full-exa...
cce832195cac4c6cba2c3ec49e68164dc36451ff
0e7a895367b5c6af1d167b954e888fda85956058
skyend/hazelcast-cpp-client
/examples/distributed-map/mixed-map/portable-polymorphic/main.cpp
C++
cpp
3,160
permissive
/* * Copyright (c) 2008-2018, Hazelcast, Inc. 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 ...
83d695da54470f180a78c302d05e401baeac2257
865a9b0a904c16a06db97943c79b2cec6cb61dfb
daniel-perry/SimpleITK
/Code/BasicFilters/src/sitkStatisticsImageFilter.cxx
C++
cxx
3,595
permissive
#include "sitkStatisticsImageFilter.h" #include "itkStatisticsImageFilter.h" namespace itk { namespace simple { //---------------------------------------------------------------------------- // Functional interface itk::simple::MeasurementMap Statistics ( const Image& image ) { StatisticsImageFilter filter;...
3f778f51b327008fa15fb8ffd6f16f03a8d33ed4
94cef339ca434abb38abd380239f0b5c40d63967
calmackenzie/VG1819
/_Project/ResolutionController.cpp
C++
cpp
2,853
no_license
#include "ResolutionController.h" #include "settings_menu\PlayerPrefs.h" #include <Windows.h> #include <iostream> #define WINDOW_ASPECT_RATIO (1080.0f/1920.0f) ResolutionController::ResolutionController() : m_textBox(nullptr) { } ResolutionController::~ResolutionController() { } void ResolutionController::star...
174d39106f4e605161bb58853b02f8060375242b
736788a028b99caeec34c17e3830030c0cc1e050
zjj6029/chromium
/services/image_annotation/annotator_unittest.cc
C++
cc
85,998
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 "services/image_annotation/annotator.h" #include <cstring> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/json/json_reade...
01b7c00f9ed9fb6ccac9fe463db231da49ab29ad
6dbbdc0854d819581072e89925be9a5c8e35ffd1
akinayturan/programing-C-plus-plus-examples
/ek227/43.soru.cpp
C++
cpp
994
no_license
#include <iostream> #include <time.h> #include <conio.h> #include <d_random.h> template <typename T> void SecmeliSiralama(T arr[],T boy) { T EKDEindeksi; T i,j,temp; for(i=0;i<boy-1;i++) { EKDEindeksi=i; for(j=i+1;j<boy;j++) if(arr[EKDEindeksi]>arr[j]) EK...
23500fe3a6f3caf636201b0e8f4f16b0bbfe42c3
bbfcaefc92f0fd8900d0ae1bb3a76c4fa7102f95
xyfigo/gtl
/gdb/kernel/core/src/geometry/versatilevertex3fvisitorimpl.cpp
C++
cpp
3,494
no_license
#include "internal_versatilevertex3fvisitorimpl.h" begin_gtl_namespace begin_gdb_namespace float & VersatileVertex3fVisitorImpl::x(long i) { return (((VersatileVertex3f*)(*_vertexlist)) + i)->x; } float & VersatileVertex3fVisitorImpl::y(long i){ return (((VersatileVertex3f*)(*_vertexlist)) + i)->y; } float & Vers...
778909adfeb7d352d18690cefeeecf3169ce2053
fbb7cbe11752c4eae40320e226b2c69f0a0bb8bc
UNH-Robotics/motionPlanning
/samplers/refactored/atempts/atemptsdijkstra.hpp
C++
hpp
3,576
no_license
/** * \file atemtpsdijkstra.hpp * * compute pareto frontier trade-off curve for every vetex * * \author Tianyi Gu * \date 09 / 12 / 2017 */ #pragma once #include "abstractvertexOps.hpp" namespace ompl { namespace base { namespace refactored { namespace atempts { template <class Vertex, class Edge> clas...
cce1fe9ffd8a09712b87de2c693dba98b8d36745
56ac08d3705bbcafb6ff1b8102296d2391dfcfe2
YuhBoyMatty/hpphack
/hpp-loader-16ce1663c74d/rename_me/rename_me/includes/imgui/imgui_draw.cpp
C++
cpp
163,707
no_license
// dear imgui, v1.70 WIP // (drawing and font code) /* Index of this file: // [SECTION] STB libraries implementation // [SECTION] Style functions // [SECTION] ImDrawList // [SECTION] ImDrawData // [SECTION] Helpers ShadeVertsXXX functions // [SECTION] ImFontConfig // [SECTION] ImFontAtlas // [SECTION] ImFontAtlas gl...
9c9e2d9ff2ba5d20f857da025f31e8e8406bcc90
2c74ae731f30c11d373436336c51bbee80434e6e
indranil2507/cpp
/Recursion/sortedArrayr.cpp
C++
cpp
301
no_license
#include <iostream> using namespace std; bool sorted(int arr[], int n) { if (n == 1) { return 1; } bool restArray = sorted(arr + 1, n - 1); return (arr[0] && restArray); } int main() { int arr[] = {1, 2, 6, 4, 5}; cout << sorted(arr, 5) << endl; return 0; }
0987fd41917f6726563c63a90f1341935b237f1c
7203625f247a0c8be3a7844c0d2d180b86d6b88f
lvbaocheng/CC
/platform/ivr/src/node_jsonget.cpp
C++
cpp
7,167
permissive
/* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * CC/LICENSE * * Unless required by applicable law or agreed to in wri...
d23aa524c8e9d268d3e7b953823bd08cfe3d6cdb
3e57ef85ca56849924a900bbab366d26eebdbac3
jjzhang166/WinNT5_src_20201004
/NT/com/rpc/runtime/mtrt/eventwrp.cxx
C++
cxx
2,570
no_license
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1998 - 1999 // // File: eventwrp.cxx // //-------------------------------------------------------------------------- /* ------------------------------------...
ce2af406be1bedaab838011949b6335eeafec036
4fabe4086e89684b962d78fd013893636dfb84dc
adminy/vanilla-server
/game/src/questlua_party.cpp
C++
cpp
9,849
no_license
#include "stdafx.h" #include <sstream> #include "desc.h" #include "party.h" #include "char.h" #include "questlua.h" #include "questmanager.h" #include "packet.h" #undef sys_err #define sys_err(fmt, args...) quest::CQuestManager::instance().QuestError(__FUNCTION__, __LINE__, fmt, ##args) namespace quest { using name...
0178020313aca140cf36b0d76d9053607af81f22
8e1d5fdcb91fb2ef0b0e98861763fc0e64b66ad2
dosscargon/DX9SpaceShip
/source/main.cpp
C++
cpp
1,229
no_license
#include "Window.h" #include "DirectX.h" #include "SceneManager.h" #include "GameScene.h" #include "Input.h" #include "Sound.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { int width = 640; int height = 480; if (!Window::CreateGameWindow(TEXT("DirectX9"), 0, 0,...
cbcbdcfc54fccebb38f71203c0b9a71cc5c221e9
6221bfb65f2fdb57856812b4d0dc0f03d07295d3
kvitnat/HashTable
/main.cpp
C++
cpp
3,918
no_license
#include <fstream> #include <vector> #include <chrono> #include "checker/VectorChecker.h" #include "checker/TreeChecker.h" #include "checker/HashChecker.h" #include "checker/MyHashChecker.h" #include "checker/TrieChecker.h" #include "classes/Trie.h" using namespace std::chrono; const int N = 5; void checkingTexts(Ch...
9ef7fff0b84edec62e57a533d6b01c25d6da17e8
88797741fa7ea41f73e384ecbdf50736df43e9ec
terrorizer1980/runtime
/src/coreclr/src/gc/unix/events.cpp
C++
cpp
8,553
permissive
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <cstdint> #include <cstddef> #include <cassert> #include <memory> #include <mutex> #include <pthread.h> #include <errno.h> #include "config.gc.h" #include "common.h" #inclu...
e4464a11b48ab45c9db771c544f74f774ef773fc
faccc43b8f1e227fee777030403abb4505b77b90
BlitW0/cp-codes
/codeforces/900C.cpp
C++
cpp
648
no_license
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back #define mp make_pair #define pll pair <ll, ll> const ll MAXN = 1e5 + 7, MOD = 1e9 + 7; ll cnt[MAXN]; int main() { ios_base :: sync_with_stdio(false); cin.tie(0), cout.tie(0); ll n, x; cin >> n; ll ...
b52dcbe9b3375afe27c8e2796041c25b3adf6c12
199f9e3d2a8de01f9348fd6473e7c83fb2495aba
DARMA-tasking/vt
/src/vt/event/event_id.cc
C++
cc
3,353
permissive
/* //@HEADER // ***************************************************************************** // // event_id.cc // DARMA/vt => Virtual Transport // // Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contr...
52c400ccda22b42c9e943638d7668b2d0df11a07
7bd2d3f0ca394c6c062e4c023e967d9f7c86a0ad
dkrdharmesh/SPOJ-Solutions
/ACPC11B.cpp
C++
cpp
1,418
no_license
#include<stdio.h> #include<algorithm> #include<math.h> using namespace std; int a[1005]; int b[1005]; int close; int bsearch(int,int,int); int main() { int t,n,i,m,ans,temp; scanf("%d",&t); while(t--) { scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&a[i]); ...
c3e51bfc8d97bfe1db1ce1092aec45eda492e89a
9e3399017aed179f4d79adb82979143b0020ec94
basiliscos/cpp-rotor
/tests/020-two-supervisors.cpp
C++
cpp
15,694
permissive
// // Copyright (c) 2019-2022 Ivan Baidakou (basiliscos) (the dot dmol at gmail dot com) // // Distributed under the MIT Software License // #include "catch.hpp" #include "rotor.hpp" #include "supervisor_test.h" #include "access.h" namespace r = rotor; namespace rt = r::test; static size_t destroyed = 0; struct my_...
a10a5b2ac7aad22d4f0299865da245857c0cdfcd
50732a068edba767ad62fa4702935ff8da1dce84
jiang95-dev/LeetCode
/Algorithms/C++/T1455_Days_Make_Bouquets.cpp
C++
cpp
666
no_license
class Solution { public: int minDays(vector<int>& bloomDay, int m, int k) { int n = bloomDay.size(); if(n < m * k) return -1; int lo = 0, hi = 1e9; while(lo < hi){ int mid = (hi + lo) / 2, flower = 0, bouquet = 0; for(int i = 0; i < n; i++){ if...
46b86f83920c44942066279c4e9e35e5161ba9e6
a0f32d33d5bb865d308058a1351dde5f0237baf3
algohispano/Miscelanea
/UPC/Contests/Minimum Spanning Tree Contest/Solution Codes/B.cpp
C++
cpp
1,451
no_license
#include<bits/stdc++.h> using namespace::std; const int N = 10000+5; const int M = 100000+5; int n, m; int minedge[N]; long long D[N]; vector<int> G[N]; vector<int> L[N]; vector<int> C[N]; void addEdge(int a, int b, int l, int c){ G[a].emplace_back(b); L[a].emplace_back(l); C[a].emplace_back(c); } long long Prim...
4f7fd314e9f646cd0e18908d9c9858b35878fadb
ea58a68542af258ad0a9eb50dd0bbb0e5665f6d0
rauls/newscaster
/include/xercesc/validators/common/Grammar.hpp
C++
hpp
8,251
no_license
/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software Foundation. 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 c...
76d7b70e1e961ac2ed247700d5f5ed3de8a4eae3
9f3aa107e5e9f3e646c50d3a673119c7e57554d5
zjyuan/tensorrt_demo
/common/utils.cpp
C++
cpp
7,346
no_license
#include "utils.h" using namespace cv; void ImgPreprocess(cv::Mat &input, int re_width, int re_height, float *data_unifrom, const float3 mean, float normalize, const float3 stdDev, const float scale) { int line_offset; int offset_g; int offset_b; unsigned char *line = NULL; float *unifrom_dat...
d049ca57b202d38abb34238e7db6aaf5c3ac6f8f
be8510d3eb4c7d64503d3f983e97634feed5445a
yaobaiwei/libvineyard
/src/client/client_base.cc
C++
cc
10,069
permissive
/** Copyright 2020 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 applicable law or agreed to in w...
0620d226e14e468c0e7802221d40a5b6ec01f497
bbe1be019012f43008ddafb8dea8b60da875da1d
MarryMilkman/anteniti_client_server
/src/controllers/notification_tools/Event.cpp
C++
cpp
1,599
no_license
#include "controllers/notification_tools/Event.hpp" #include "controllers/info_tools/ConnectedDeviceInfo.hpp" #include "Parser.hpp" Event::Event() { } Event::Event(std::string str_event) { { std::vector<std::string> list_str_param = Parser::custom_split(str_event, " "); if (list_str_param.size() == 6) { thi...
b99e6de09b8081c1904e702b2f01974a4df35889
f9f062a78575783e180f4e759fd1dc89a2ded89f
rhinton/tce
/tce/src/codesign/Proxim/ProximCDCmd.cc
C++
cc
2,762
permissive
/* Copyright (c) 2002-2009 Tampere University of Technology. This file is part of TTA-Based Codesign Environment (TCE). Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without...
0355c28f99581f27a436bcb9fb14ba0cad1bcc31
c28a27c6dd80b1b3cf2bc2fe76eb721ffcdcba7a
MykolaSolyanko/actor-zeta
/examples/communication/main.cpp
C++
cpp
3,463
no_license
#include <cassert> #include <map> #include <vector> #include <unordered_set> #include <actor-zeta/core.hpp> using actor_zeta::basic_async_actor ; using actor_zeta::abstract_executor; using actor_zeta::context; using actor_zeta::supervisor; using actor_zeta::join; using actor_zeta::link; using actor_zeta::message; ...
c27c04fddb19135f4faf695dfc4c596415ca5256
9d34f5d38e378ee35ef0d160697327dc7c42ee0e
davidbrazuna/1516SOEE
/Uthreads/TestJoin/TestJoin.cpp
C++
cpp
730
no_license
5// TestJoin.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "../Include/UThread.h" VOID Thread1(UT_ARGUMENT arg) { printf("Thread %p start!\n", UtSelf()); for (int i = 0; i < 1000; ++i) { putchar('T'); UtYield(); } printf("Thread %p end!\n", UtSelf()); } VO...
c37b054ae2dea0587e210c61716d6d009b3b34cc
31b1e64c9c10450f4cc1f3c3155a2e9126c591b6
z-iz/42_CPP_Piscine
/module08/ex02/MutantStack.hpp
C++
hpp
1,868
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* MutantStack.hpp :+: :+: :+: ...
328eec3d07efbd7751a3902dcdfbbe3178ef3cfe
770b55838d7ac4816d6a26060e30883004f069e3
elgamar/cobalt-clone
/src/starboard/shared/nouser/user_get_property.cc
C++
cc
2,215
permissive
// Copyright 2016 The Cobalt Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
214a633555bb5ff68c72dadfc4ace8580a42f626
e4e2e839d0099a6829899ee37e872dc72270291d
shas9/codehub
/Atcoder/Beginner Contest/Round 174/C.cpp
C++
cpp
1,174
no_license
#include <bits/stdc++.h> using namespace std; #define ll long long ll check(ll n) { ll ret = 0; while(n) { if(n % 10 != 7) return 0; n /= 10; ret++; } return ret; } int main() { ll num, sz = 0; ll gun = 0; cin >> num; ll lastd = num % 10; ///cout << las...
ff877012888f969000218635287427c6fb1a3af1
df243367ec41e7b100e492666076eeb308db7ea4
umbcdavincilab/pathBubbles
/PathBubbles1.0_1/others/GeneratedFiles/Release/moc_ArrowGen.cpp
C++
cpp
3,136
no_license
/**************************************************************************** ** Meta object code from reading C++ file 'ArrowGen.h' ** ** Created: Mon Nov 5 12:52:57 2012 ** by: The Qt Meta Object Compiler version 63 (Qt 4.8.3) ** ** WARNING! All changes made in this file will be lost! ***************************...
20330c8b19b57a7f7474b3e991b2983363dc1fde
951c8e9e2a9e68f67110e08ad0d3246dd5049a34
oriongod/freeorion
/FreeOrion/client/human/HumanClientApp.cpp
C++
cpp
44,560
no_license
#ifdef FREEORION_WIN32 #include <GL/glew.h> #endif #ifdef HAVE_CONFIG_H # include <config.h> #endif #include "HumanClientApp.h" #include "HumanClientFSM.h" #include "../../UI/CUIControls.h" #include "../../UI/CUIStyle.h" #include "../../UI/MapWnd.h" #include "../../UI/IntroScreen.h" #include "../../UI/GalaxySetupWnd....
e33fdf9d04be998ab26ce13f2a1cbe1b3a709542
f3bc26369934a89e2ceab381bead2d3ca4f1e5a7
henfredemars/Fork-Lang
/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
C++
cpp
65,051
permissive
//===-- TwoAddressInstructionPass.cpp - Two-Address instruction pass ------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
c52f2bcd9247bdfd60340f601adcad50ec645444
eade8ab18eca88087b9cbfdebd2915fc27833074
MorSunChen/opencv_contrib
/modules/face/test/test_facemark_lbf.cpp
C++
cpp
5,563
permissive
/* By downloading, copying, installing or using the software you agree to this license. If you do not agree to this license, do not download, install, copy or use the software. License Agreement For Open Source Computer Vision Library (3-clause BSD License...
8288668e4d9d1dc362b46605037c4b94c7b45e0d
0c6b070f888c647b9e605e849487913892efdc3c
janderkkotlarski/raylib_test_1
/Fog/main.cpp
C++
cpp
5,733
no_license
#include "raylib.h" #include "raymath.h" #define RLIGHTS_IMPLEMENTATION #include "rlights.h" #if defined(PLATFORM_DESKTOP) #define GLSL_VERSION 330 #else // PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB #define GLSL_VERSION 100 #endif int main(void) { // Initialization //-----...
e5026b9c977f6c99d1dab652bd47990d064eef30
3303d32883f738100ff44c62e3bdf0450f429ee4
YarivCol/ArduPiTank
/ArduTank/src/main.cpp
C++
cpp
801
no_license
#include <Wire.h> #include <Arduino.h> #include "messages/command_handler/command_handler.h" CommandHandler command_handler = CommandHandler(); void setup() { Serial.begin(115200); command_handler.init(); } void loop() { //Serial.readBytes(3, size_t length) //bb.send(test, 2); /* delay(1000); leftMotor->...
368b7f56f8081d1685d4b6729d769dcc50987e98
8f97862b4cf97b33be5b1a1a48f71fb8538d348c
GiovannyLeon/helloworld
/helloworld.cpp
C++
cpp
300
no_license
#include <iostream> #include <vector> #include <string> using namespace std; int main() { vector<string> msg {"Hello", "C++", "World", "from", "VS Code", "and the C++ extension!", "giovanny leon"}; for (const string& word : msg) { cout << word << " "; } cout << endl; }
94fae4be8a5d8272f23a302169ddc340a22450a4
e16be140e325c0ed5408283285848727e3a1428c
rzr/chromium-crosswalk
/remoting/codec/video_decoder_vpx.cc
C++
cc
12,723
permissive
// Copyright 2013 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 "remoting/codec/video_decoder_vpx.h" #include <math.h> #include <algorithm> #include "base/logging.h" #include "media/base/media.h" #include "...
cd1c494a945a3c599f320632babc3058d74d7acc
959e4eacd4813cefc9c7358c06e6bbdc155eb713
work2544/lab11workza
/lab11_1.cpp
C++
cpp
358
no_license
#include<iostream> using namespace std; int fibonacci(int x); int main(){ cout << fibonacci(50); return 0; } int fibonacci(int x) { if(x==0) { return 0; } else if(x==1) { return 1; } else if(x>1) { return fibonacci(x-1)+fibonacci(x-2); } else ...
5e607d099baa1514e3df0f7a425283fd1daf8d3e
851b87b91cd2a6804ed0a14f30124f2325a488da
farhanch67/C_plusplus_basic_programs
/51 weight conversion.cpp
C++
cpp
593
no_license
#include<iostream> using namespace std; int main() { double a,b,r; cout<<"Enter the weight in kg ="; cin>>a; cout<<"Enter the conversion type number: \n1=(Grams)\n2=(mililgrams)\n3=(grains)\n4=(pounds)\n="; cin>>b; if(b==1) { r=1000*a; cout<<"Weight in grams ="<<r; } if(b==2) { r=10000*b...
7bf7392e9db77302c5c67747c1b4020beb7c90fb
339bf3d407844ec1b96ce9afeda4f2e63bc60320
AdrianRiedl/duckdb
/src/include/duckdb/execution/index/art/node48.hpp
C++
hpp
1,158
permissive
//===----------------------------------------------------------------------===// // DuckDB // // execution/index/art/node48.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "node.hpp" namespace duckdb { class Node48 : public Node...
d3b19dd0582dd7af30640dd06a571167b84acc59
9d4960d75307ad70ee06b796e7ec51a99afe2209
makeairim/cppnow2015
/pair_test.cpp
C++
cpp
2,457
no_license
#include <utility> #include <tuple> #include <iostream> #include <unordered_map> #include <string> template<typename B, typename C> struct forNArgsImpl; template<std::size_t N, typename TF, typename... Ts> void forNArgs(TF mFn, Ts... mXs) { static_assert(sizeof...(Ts) % N == 0, "Wrong number of arguments"); forNAr...
00232fd93dde000f2949ed06e0344d8575bff6a4
075c215d82d6a6719bd013a56594d41e186367fd
freebsd/freebsd-ports
/biology/abyss/files/patch-Common_city.cc
C++
cc
355
permissive
--- Common/city.cc.orig 2022-05-11 22:23:32 UTC +++ Common/city.cc @@ -70,6 +70,10 @@ static uint32 UNALIGNED_LOAD32(const char *p) { #define bswap_32(x) bswap32(x) #define bswap_64(x) bswap64(x) +#elif defined(__FreeBSD__) +#include <sys/endian.h> +#define bswap_32(x) bswap32(x) +#define bswap_64(x) bswap64(x) #e...
481c22e8ac81dd2bbb547944e38976695839641d
7d0f2035a9c1e18caf9a349f39e957ad3d2d4028
LesikYura/Piscine_CPP
/day_04/ex00/Sorcerer.hpp
C++
hpp
533
no_license
#ifndef SORCERER_HPP #define SORCERER_HPP #include <iostream> #include "Victim.hpp" class Sorcerer { private: std::string _name; std::string _title; Sorcerer(); public: Sorcerer(std::string name, std::string title); Sorcerer(Sorcerer const &src); Sorcerer &operator=(Sorcerer const &src); ~Sorcerer(); v...
ee069a7f5127853eec745e8e43f5b5629ae1c8bb
2516e6d71082418a924e3eae616751e43c157812
Vaa3D/vaa3d_tools
/released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/ext/boost/geometry/index/parameters.hpp
C++
hpp
9,661
permissive
// Boost.Geometry Index // // R-tree algorithms parameters // // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland. // // Use, modification and distribution is 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 B...
66eda5c8ad97d8b62ef88224734b92af41b0a182
9bb87037e5cd3e7935756e20336e73a10cea4e57
loveyacper/ananas
/net/Acceptor.cc
C++
cc
4,006
permissive
#include <errno.h> #include <cassert> #include "EventLoop.h" #include "Application.h" #include "Connection.h" #include "Acceptor.h" #include "AnanasDebug.h" namespace ananas { namespace internal { const int Acceptor::kListenQueue = 1024; Acceptor::Acceptor(EventLoop* loop) : localSock_(kInvalid), localPort...
a180a1682b9798033ee1993f01e62ff1d27091c7
2fc8936e1b72fc94139ff0b44f5d8b535de756e5
mwierzbicki/leetcode-solutions
/287-find-the-duplicate-number/find-the-duplicate-number.cpp
C++
cpp
910
no_license
// // Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate number, find the duplicate one. // // // // Note: // // You must not modify the array (assume the array is read only). //...
7e1e79f34790a6f24efd9a399fafe0c1219780cd
d368af6b171502e761c86e2afcc5549e66898e28
ttzztztz/leetcodeAlgorithms
/排序/1244. Design A Leaderboard.cpp
C++
cpp
1,388
no_license
class Leaderboard { public: vector<pair<int, int>> scoreList; Leaderboard() {} void addScore(int playerId, int score) { bool find = false; int i = 0; for (i = 0; i < scoreList.size(); i++) { pair<int, int>& s = scoreList[i]; if (s.first == playerI...
391b865a56eb2cec641d640599ea73742187a6cc
b0e005419eb96f2496edd0602a6b9fe87156342c
Pi03k/cpp-dp
/Creational/FactoryMethod.TheoryCode/main.cpp
C++
cpp
2,113
no_license
#include <cstdlib> #include <iostream> #include <string> #include <unordered_map> #include <vector> #include <list> #include "factory.hpp" using namespace std; namespace Canonical { class Service { shared_ptr<LoggerCreator> creator_; public: Service(shared_ptr<LoggerCreator> creator) ...
728cdca7f2540cf39ceb00b94df33c277e8de957
01f7ec8e4a6bbebea0be13f3a07766448a79cd9b
LefterisDs/SoftDev_of_InfoSystems_Projects
/Project_2/sortingAlg/tablesort.cpp
C++
cpp
2,681
no_license
/* File: tablesort.cpp */ #include <bits/stdc++.h> #include <bitset> #include <climits> #include <cstdlib> #include <ctime> #include <iostream> #include <random> #include "../searchingAlg/binarySearch.hpp" #include "../sortingAlg/quicksort.hpp" #include "../utils/utils.hpp" using namespace std; void SimpleSortRec(M...
5959d46f836c47b3acd8bcb8ce725e08a0a632a8
026682b67e1e657c367f0a779151221db7d68114
FerasYounis/C-
/Assignment1/slist.cpp
C++
cpp
463
no_license
/* * slist.cpp * * Created on: Feb 3, 2017 * Author: fyounis */ #include "slist.h" #include <list> namespace std { slist::slist(size_t LIST_SIZE) { Student *array[LIST_SIZE]; } slist::slist(const slist & stud) { Student *array[stud.LIST_SIZE]; } void slist::addtoend(Student *items, numItems) { fo...
f38c0a6d41a24ca7e379cd16a4dd58777fed7069
eb45228328ea07d464f91f6583c220df9ca40bba
it-artspace/Nika
/algorithms/spanTree.hpp
C++
hpp
4,073
no_license
//211 - Kikteva Veronika //Zadacha 1 #ifndef spanTree_hpp #define spanTree_hpp #include "../Objects/point.h" #include <vector> #include <cstring> #include <algorithm> #include "../functional/utils.hpp" #include <set> #include "algorithmsControl.h" class TreeFactory: public Algorithm{ std::set<const Point*> graph...
0e9e378a4f1688a2346078f10226c5d0a9bb8e65
6e7776486e76423286ea673d4b8b284e5f461184
mozy/mordor
/mordor/tests/config.cpp
C++
cpp
9,426
permissive
// Copyright (c) 2011 - Mozy, Inc. #include "mordor/config.h" #include "mordor/test/test.h" #ifdef HAVE_CONFIG_H #include "autoconfig.h" #endif #ifdef HAVE_LIBYAML #include "mordor/yaml.h" #endif using namespace Mordor; using namespace Mordor::Test; static ConfigVar<int>::ptr g_testVar1 = Config::lookup( "conf...
a2b9fe0bade8a67b640024f5117c921b0ef71191
919b2331a2c241bc56a114d12c5e36af902b4e0f
zenwong/tagu
/FFMpeg.hpp
C++
hpp
1,269
no_license
#ifndef FFMPEG_HPP #define FFMPEG_HPP #include <QDirIterator> #include <QElapsedTimer> #include <QSqlDatabase> #include <QSqlQuery> #include <QCryptographicHash> #include "Settings.hpp" #include "Config.hpp" #include "Utils.hpp" extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <l...
e602a0181936abbbccf8526362379c49b5593082
ecfa368464248ee5080c2bc938a8fe72eed052d2
beamiter/ddp-actuator-solver
/src/romeo_actuator/mainTorque.cpp
C++
cpp
2,332
no_license
#include <iostream> #include <fstream> #include <ddp-actuator-solver/ddpsolver.hh> #include "ddp-actuator-solver/romeo_actuator/romeotorqueactuator.hh" #include "ddp-actuator-solver/romeo_actuator/costfunctionromeoactuator.hh" #include <time.h> #include <sys/time.h> using namespace std; using namespace Eigen; int m...
d942202ba00c26df80b825ea2a3148627fbf6b70
22adc9c86bf864572aeeb0e0ef692fd8501048f7
perivar/CAndCppInVSCodeTemplate
/include/VST3_SDK/vstgui4/vstgui/standalone/examples/minesweeper/source/model.cpp
C++
cpp
6,813
permissive
// This file is part of VSTGUI. It is subject to the license terms // in the LICENSE file found in the top-level directory of this // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE #include "model.h" #include <random> #include <cassert> // PIN 06.04.2020 - added <algorithm> to include for_each #i...
460642c304d59cef2e85bc7e30eb58fe7f78c094
687e69b08e772acd5d63a7e9042a147f7cb43dba
RolphWoggom/shr.tar
/Simpsons Hit&Run/game/libs/pure3d/pddi/ps2/ps2perfcounter.cpp
C++
cpp
3,753
no_license
//============================================================================= // Copyright (c) 2002 Radical Games Ltd. All rights reserved. //============================================================================= #include <pddi/ps2/ps2perfcounter.hpp> #ifdef PS2_ENABLE_PROFILER #include <pddi/...
24aae1b1808cd43aedf0b2272afb69f3e234c327
ebbeb071828c655af12a7107e6f83e19fca2acbd
stevia0829/cpppractice
/剑指offer/剑指 Offer 12. 矩阵中的路径/剑指 Offer 12. 矩阵中的路径/exist.cpp
C++
cpp
1,043
no_license
#include<iostream> #include<vector> #include<string> using namespace std; class Solution { public: bool exist(vector<vector<char>>& board, string word) { for (int i = 0; i < board.size(); i++) { for (int j = 0; j < board[0].size(); j++) { if (dfs(board, word, i, j, 0)) return true; } } return f...
c71a72deafb8c8f703738be9a7c35e1a7fe9ad03
82ede1fd81495f5213790e2df567b7edf09aaf4b
YoshidaChihiro/metroydLike
/3DSample/3DSample/CSVReader.cpp
C++
cpp
1,325
permissive
#include "CSVReader.h" #include <fstream> #include"StringHelper.h" std::shared_ptr<Framework::CSVData> Framework::CSVReader::GetMatrixByFile(std::string fileName, std::string filePath) { std::ifstream ifs(filePath+fileName); std::string source = std::string(std::istreambuf_iterator<char>(ifs), std::istreambuf_ite...
1b05a7cfbd4fa805c87903c430343f7292a1cd32
b69f44609ab29ea909bc9ac91f49861ea360d801
aslanbakirov/LogDevice
/logdevice/server/main.cpp
C++
cpp
14,429
permissive
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <fcntl.h> #include <initializer_list> #include <iostream> #include <memory> #i...
2600103bda234a4098398d35d9d6881b6ebb5518
d265d767edd10c9e7e66ec75fb8616bfb32638c9
jeeeez/chromium
/content/browser/webui/shared_resources_data_source.cc
C++
cc
14,903
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 "content/browser/webui/shared_resources_data_source.h" #include <stddef.h> #include <string> #include "base/check_op.h" #include "base/feat...