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
6f22935c4c20e10f8b157950b53ab8f7ff48dca1
3af76e4770c323d0ca58e57da5cbe1477d5a9d61
FaisalAhmedBijoy/Competitive-programming
/Algorithm exercise/2_linear_search_to_find_element.cpp
C++
cpp
466
no_license
// Write a program that can perform linear search (Specific element). #include<iostream> #include<bits/stdc++.h> using namespace std; int main() { int element; int numbers[10] ={0,1,2,3,4,5,6,7,8,9}; cout<<"Enter the element need to search"<<endl; cin>>element; for (int i=0;i<10;i++) { ...
80ad219d5d55b72174cb6972348699f83ddd1e0a
808ce5ac6ed27c13a70fc95dbe4ba212a45c1ffa
joelday/papyrus-debug-server
/dependencies/f4se/src/f4se/CommonLibF4/src/RE/Scaleform/GFx/Movie.cpp
C++
cpp
5,825
permissive
#include "RE/Scaleform/GFx/Movie.h" #include "RE/Scaleform/GFx/ASMovieRootBase.h" #include "RE/Scaleform/GFx/MovieDef.h" #include "RE/Scaleform/GFx/Value.h" namespace RE { namespace Scaleform { namespace GFx { float Movie::GetRenderPixelScale() { return 20.0; } UInt32 Movie::GetFrameCount() c...
ca32f70f4a5b53f6b7071e4eca56141ac3ff917e
540ea32b9d6109eefac94313264db1a82e8753f7
abhash-er/temp
/Dense.cpp
C++
cpp
2,887
no_license
#include "Dense.h" #include <cmath> #include "xtensor/xrandom.hpp" #include "xtensor/xadapt.hpp" #include "xtensor-blas/xlinalg.hpp" Dense::Dense(){ input_shape = {128,128}; n_units = 64; isTrainable = true; } Dense::Dense(int units, std::vector<int> shape){ input_shape = shape; n_units = units;...
102a63230ce5b11801dad0c4147036b98f7d873f
fd2a573b5c3f755d725ff5313494acf751894fe4
gitter-badger/Kvasir-1
/Lib/Chip/CM4/Freescale/MK50D7/UART1.hpp
C++
hpp
46,754
permissive
#pragma once #include "Register/Utility.hpp" namespace Kvasir { //Serial Communication Interface namespace Uart1Bdh{ ///<UART Baud Rate Registers:High using Addr = Register::Address<0x4006b000,0xffffff20,0,unsigned char>; ///UART Baud Rate Bits constexpr Register::FieldLocation<Addr,Regi...
62ffe375a70831fdab9c6a464f881c46324d120c
e41b3a0f767397cf450031f3bda7b24e6a64d8a0
sheride/axion_pheno
/optimization/pta_maa_optimization/tight_analyses/analysis_tight_pta150_maa200/Build/SampleAnalyzer/User/Analyzer/user.cpp
C++
cpp
8,742
permissive
#include "SampleAnalyzer/User/Analyzer/user.h" using namespace MA5; bool user::Initialize(const MA5::Configuration& cfg, const std::map<std::string,std::string>& parameters) { // Initializing PhysicsService for MC PHYSICS->mcConfig().Reset(); // definition of the multiparticle "hadronic" ...
877725a01a0832f02e55c5e73e8b63f4ca6c3430
2f99703bed3be7d6ff9e762c51573af6ac359331
casharp/GapsSims
/loop.cc
C++
cc
3,154
no_license
#include "gaps_detector.h" int loop() { string directory = "~/Documents/GapsSims/LoopOutput/"; //array of charge collected on each strip int size = 8; double values[size]; ofstream myfile; myfile.open ("charge.txt", std::fstream::in | std::fstream::out | std::fstream::app); //loop...
09dea528151b061968d09750a05f6df8561a3708
f42299c90520d2f937735a8780f8d4d875acfe5b
viniltc/PatientTable
/PatientTable/mainwindow.cpp
C++
cpp
4,666
no_license
#include "mainwindow.h" #include "ui_mainwindow.h" //#include "patientdata.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); // Setup table ui->tableWidget->setColumnCount(4); ui->tableWidget->setHorizontalHeaderLabels(QStringList...
ce8933598a458a4c3ca88e301c5b157716dece2a
9b1911c62da5c0f45f00777241b60c85dbdfc85a
alankuo04/UVa
/11344/11344.cpp
C++
cpp
939
no_license
#include<iostream> #include<string> using namespace std; int main(){ int N, n, num; cin>>N; for(int i=0;i<N;i++){ string M; cin>>M; int count = 0; cin>>n; for(int j=0;j<n;j++){ cin>>num; int temp = int(M[0])-int('0'); if(int(M.leng...
4660efae9809d337c849ddd5a379e6994570e2cd
342d340361f72da7a59f4031f4588ec76fa1399e
lexxmark/qt-items
/src/core/ControllerKeyboard.cpp
C++
cpp
2,390
permissive
/* Copyright (c) 2008-1015 Alex Zhondin <qtinuum.team@gmail.com> 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...
68bdef021e66550db589060484d191bdbac49690
c2924d910f474763908b53b27648869af0a25502
parohy/esp2866-receiver
/src/main.cpp
C++
cpp
694
no_license
#include <ESP8266WiFi.h> #include "DeviceResponse.h" #include "LightControls.h" #include "ConnectionHandler.h" WiFiServer server(80); LightControls lightControls(LED_BUILTIN); ConnectionHandler connectionHandler; void handleType(WiFiClient client, int type) { printHeader(client); lightControls.handleType(type); ...
7a0694eb253b2f1a2f64a8a22e69f185d6e01306
b0514524f72591f6cb502911031b7bfa8a3afa07
dinfuehr/WebKit
/Tools/TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp
C++
cpp
31,312
no_license
/* * Copyright (C) 2012 Igalia S.L. * Copyright (C) 2017 Endless Mobile, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your opti...
912f6d4146f5d1b742cf796084b450fb6d337eef
848b220cd14a8b84b413d2dcd137a7d36b4181ae
cseharshit/Cpp_Revision
/61.Class_and_object.cpp
C++
cpp
225
permissive
#include <iostream> using namespace std; class Bicycle { int gear; public: void braking() { cout<< "Brakes are working"; } }; int main() { int i; Bicycle b1; b1.braking(); return 0; }
e84965171aee1f06f740ec8ae387a482ddf47f63
06fa485e332d36a96c655fe5f4d68bb598933f80
Pwootage/urde
/Runtime/World/CScriptWater.hpp
C++
hpp
2,888
permissive
#ifndef __URDE_CSCRIPTWATER_HPP__ #define __URDE_CSCRIPTWATER_HPP__ #include "CScriptTrigger.hpp" #include "CFluidPlaneCPU.hpp" namespace urde { class CDamageInfo; class CFluidUVMotion; class CScriptWater : public CScriptTrigger { private: static const float kSplashScales[6]; u32 x150_ = 0; std::unique_p...
578981b383b375a4db905bd0c3dd8bd8bf0b85f0
81a7fe22f0ce4afaa7022aa5068a6def5936753d
vlexz/gurps_combat_helper
/src/xmlparser.cpp
C++
cpp
1,272
no_license
#include <QDebug> #include <QStack> #include "xmlparser.h" XmlParser::XmlParser() { } Stanza XmlParser::parse(QIODevice *device) { Stanza res; // Stanza *currentStanza = & res; QStack<Stanza *> parseStack; QXmlStreamReader reader(device); while (!reader.atEnd()) { reader.readNext(); ...
217e482c1317f1dd82b8d56681491b007b818363
5972ae0ddcdc346e078aa2092b3a86f8a1f4774e
Crasader/Fighter
/Classes/Util.cpp
C++
cpp
2,269
no_license
// // Util.cpp // Fighter // // Created by cyj on 3/22/14. // // #include "Util.h" USING_NS_CC; Util *Util::_util = nullptr; Size Util::getWinsize(){ Size visibleSize = Director::getInstance()->getVisibleSize(); return visibleSize; } Point Util::getCenterPos(){ Size visibleSize = Director::getInstan...
a744a7b56a5272755bfdb40c58a61185fcd2d5f1
54424e38b090415c914e39eb696909bf134179f2
no-go/RobugSworms
/src/sim.cpp
C++
cpp
1,160
permissive
#include <cstdlib> // atoi #include <cstdio> #include <vector> #include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/fl_draw.H> #include <FL/Fl_Box.H> #include <FL/Fl_Image.H> #include <FL/names.h> using namespace std; #include "World.h" //---------------------------------- #define SIM_SPEED 0.02 #define RANDOM...
0dca049c3d5d9eecad3007ab516770dba167b340
e2c23f06373eded4aedf441b483f5af31b188f4e
Zaidtech/Learning-Cpp
/Cpp College Assignments/Polish_assignment/CODE.cpp
C++
cpp
2,405
no_license
#include <iostream> #include <algorithm> #include <string.h> #include <cctype> using namespace std; // making a node class class Node { public: int data; Node* next; }; // making a Stack class class Stack { private: Node* top; public: // making a pop operation void Pop() { Node* temp;...
faa4cbd16f5be63ee7170b2b26ca19cf6cd52c01
7bfbb48efea8b4c40d879d50b3518b58a376114f
ZZbitmap/chromium
/third_party/blink/renderer/platform/peerconnection/rtc_video_encoder_factory.cc
C++
cc
9,327
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 "third_party/blink/renderer/platform/peerconnection/rtc_video_encoder_factory.h" #include <memory> #include "base/strings/string_util.h" #inclu...
452cee3de53490299fe1af194a2dd8009dcf04fe
98afe059f8f539f2d565b88e1e5c7212a1c2b6d4
nikolaszimmermann/WebKitIgalia
/Source/WebKitLegacy/win/FullscreenVideoController.cpp
C++
cpp
25,416
permissive
/* * Copyright (C) 2010, 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
fa1c6c6d6b7033511b5644fd1936852b4907dfc4
089933f19e8d0c7533fcfa7f04fc20dd9e390c4f
wouterboomsma/quickstep
/external/boost_1_60_0/qsboost/mpl/aux_/preprocessed/bcc_pre590/modulus.hpp
C++
hpp
2,320
permissive
// Copyright Aleksey Gurtovoy 2000-2004 // // 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) // // *Preprocessed* version of the main "modulus.hpp" header // -- DO NOT modify by hand! namespace qsboost { names...
3e48d3c4500f2921af40b0adc8dd6e9ae0f82afe
6934cfaa9d1163ef356637dc31525f6a1d410d99
jrr/tom7misc
/nand/board/iface/piface.cc
C++
cc
4,286
no_license
// Interface from raspberry pi (the one soldered onto // the pi header) to the META FPU. // // Expected output is like this: // // [000] [000] -> 110 | 010 | 110 // [000] [001] -> 110 | 010 | 110 // [000] [010] -> 110 | 010 | 110 // [000] [011] -> 110 | 010 | 110 // [001] [000] -> 110 | 010 | 110 // [001] [001] -> 110 ...
1c53bc7a3137e1ab769e56dbe3d6f414c254d2d8
504a6a3140a1b528fe1c0351da1d622184e65832
takashikumagai/amorphous
/framework/amorphous/Script/PyModule_Graphics.cpp
C++
cpp
16,194
no_license
#include "PyModule_Graphics.hpp" #include "../Graphics/MeshObjectHandle.hpp" #include "../Graphics/ShaderHandle.hpp" #include "../Graphics/Shader/ShaderTechniqueHandle.hpp" #include "../Graphics/Shader/ShaderVariableLoader.hpp" #include "../Graphics/LensFlare.hpp" #include "../Support/Log/DefaultLog.hpp" #include <boos...
dfa88300e7755b2acda754dbdfc75b614def61db
9380e19bee62f9a132ba9e9abfa55d87a8808480
zenparsing/node-chakracore
/deps/chakrashim/core/lib/Backend/Func.cpp
C++
cpp
64,740
permissive
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
ff8bd8c7c4a3d16222a023903e49b7b488b4189d
b985ac3db06841c218c48dc4ab5b8132d376b084
Shubham-Gaddi/Competitive_Coding_Solutions
/HackerRank/Solve C++/Other Concepts/C++ Variadics.cpp
C++
cpp
350
no_license
#include <array> #include <bitset> // Enter your code for reversed_binary_value<bool...>() template <bool ...digits> int reversed_binary_value(){ std::array<bool, sizeof...(digits)> ar{digits...}; std::bitset<sizeof...(digits)> bs; for(std::size_t i = 0; i < ar.size(); ++i) { bs[i] = ar[i]; }...
2c990dfee5718043ccf970c36c27bb5dad1f93ad
4577f5901cdf362cfd14133f316195dba7deafad
lumeng16/NVIDIAproject
/CUDAstudy/01Square.cpp
C++
cpp
1,287
no_license
#include <stdio.h> //See the course from 32 video //__global__ is a definition specifier for c and it means that this code is GPU kernel __global__ void square(float *d_out, float *d_in){ int idx = threadIdx.x; float f = d_in[idx]; d_out[idx] = f * f; } int main(int argc, char ** argv) { const int AR...
4f0c4a4824729c5895aae066aeea3b5192715e3b
04893286343bbb559888497973421abbdc41dfa7
masterace007/codeforces_harwest
/codeforces/1244/B.cpp
C++
cpp
1,261
no_license
#include "bits/stdc++.h" #define endl '\n' #define pb push_back #define mod 1000000007 #define int int64_t #define hii cout<<"yes\n"; #define all(x) x.begin(),x.end() #define deb(x) cout<<#x<<" : "<<x<<"\n"; #define FASTIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0...
033cd9370e44c0bb3463a0b710973d1634388a2b
57d9b1a7f7147aace0d117377c844fea21be3a78
TurdlePoff/OpenGLEngineREPO
/OpenGLEngine/OpenGLEngine/Star.cpp
C++
cpp
1,965
no_license
#pragma once /**************************************************** * Bachelor of Software Engineering * Media Design School * Auckland * New Zealand * * (c) 2005 - 2018 Media Design School * * File Name : "Star.cpp" * Description : Terrain Declaration file * Author : Vivian Ngo * Mail : vivian.ngo7572@mediadesign.sc...
283173c13d6623352718ad8ebee0fc3e0bc6db6c
69717b9465f1166bd40ff98480e8632318408fad
yuki12/krkrz
/src/core/environ/win32/WindowFormUnit.cpp
C++
cpp
56,984
permissive
#include "tjsCommHead.h" #define DIRECTDRAW_VERSION 0x0300 #include <ddraw.h> #include <dbt.h> // for WM_DEVICECHANGE #include <algorithm> #include "WindowFormUnit.h" #include "WindowImpl.h" #include "EventIntf.h" #include "ComplexRect.h" #include "LayerBitmapIntf.h" #include "tjsArray.h" #include "S...
045adad4ff7025c9b966d2a3018f8f2072492b6e
f5657b3ab832d923bb9f0790198bc516ccc73bd5
JakeConnors376W/simdjson
/src/parsedjsoniterator.cpp
C++
cpp
8,433
permissive
#include "simdjson/parsedjson.h" #include "simdjson/common_defs.h" ParsedJson::iterator::iterator(ParsedJson &pj_) : pj(pj_), depth(0), location(0), tape_length(0), depthindex(nullptr) { if(pj.isValid()) { depthindex = new scopeindex_t[pj.depthcapacity]; if(depthindex == nullptr) { retu...
691017dcfdf874853dcf9056db33d18bd6e1add0
3f6c2df7b739d7ce9ec39463f30136da99debb56
Antoine68/it45-recherche-tabou
/include/Formation.hpp
C++
hpp
829
no_license
// // Define guards #ifndef FORMATION_H #define FORMATION_H #include <stdio.h> #include <iostream> #include <fstream> #include <string.h> #include "Centre.hpp" class Formation { public: Formation(int id, int competance, int specialite, int jour, int heureDebut, int heureFin, int centre); virtual ...
a55fb113c16b8d53b174c677fc7ac740a8835390
9fefee1a1f1c0656656691e0a671d92bac58cc98
wildbytes/Cing
/cing/src/graphics/GraphicsUserAPI.cpp
C++
cpp
58,445
permissive
/* This source file is part of the Cing project For the latest info, see http://www.cing.cc This source file is part of the Cing project For the latest info, see http://www.cing.cc License: MIT License (http://www.opensource.org/licenses/mit-license.php) Copyright (c) 2006- Julio Obelleiro, Jorge Cano...
8da1c78b79869166b9f1f105209632020ae18be1
47eecf58b1e6e64617f45f8a7fb56aa655c907d7
akira103150146/Miku
/oglt_skeleton_material.cpp
C++
cpp
5,739
no_license
#include "oglt_skeleton_material.h" #include "oglt_irenderable.h" #include "oglt_resource.h" using namespace oglt; SkeletonMaterial::SkeletonMaterial() { enableAmbient = false; enableDiffuse = false; enableSpecular = false; enableEmissive = false; enableTransparencyFactor = false; enableShininessFactor = false...
4ab59326db1602b67ce93cd9e4ea4631baf91833
bc0a293ad5db543d13b57d1126d719291ba74774
huimingli/NetSerialHelper
/NetProject.cpp
C++
cpp
2,180
no_license
// NetProject.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "NetProject.h" #include "NetProjectDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// ...
f0ff0d6642a1fe4f3ac46d377ae936d3aa69211e
24cebc96b650b12d823c94a08e4926677fc29421
Mounika-Boyapalli/ncrwork
/C++ Assignment/C++ Assignment 5/Power_Exp/power.cpp
C++
cpp
626
no_license
#include<iostream> using namespace std; class pwr { double base; double exp; double val; public: pwr() { base = 0; exp = 0; val = -1; } int getVal() { return val; } pwr(double b, double e) { int i; base = b; exp = e; val = 1; for (i = exp; i > 0; i--) val = val * base; ...
cd238c5d61dfa64d361361d2df7f0c457e7579f6
c052fd4a7d17ac871eb2b02c8fb55f076a994522
geobeans/svs
/gdal/src/ogr/ogrsf_frmts/dxf/ogrdxfblockswriterlayer.cpp
C++
cpp
5,838
no_license
/****************************************************************************** * $Id: ogrdxfwriterlayer.cpp 20670 2010-09-22 00:21:17Z warmerdam $ * * Project: DXF Translator * Purpose: Implements OGRDXFBlocksWriterLayer used for capturing block * definitions for writing to a DXF file. * Author: F...
cb541b5a3357dc1c694d168ea9e47e5b12d762c1
a36078e7f513fdba71eaa2a66f3fbd1c7c078857
Cola20150301/chain33-qt
/src/functionui/notificator.cpp
C++
cpp
10,527
no_license
#include "notificator.h" #include <QMetaType> #include <QVariant> #include <QIcon> #include <QApplication> #include <QStyle> #include <QByteArray> #include <QSystemTrayIcon> #include <QMessageBox> #include <QTemporaryFile> #include <QImageWriter> #ifdef USE_DBUS #include <QtDBus/QtDBus> #include <stdint.h> #endif #inc...
c31698e271a66bdb263f923de874f8f4f46f40c5
0b06744e5699dc801b251111bb54cc4bc9fd0535
Herikc2/adjacency-graph-gui
/src/cpdatashow.cpp
C++
cpp
2,939
permissive
#include "cpdatashow.h" #include "ui_cpdatashow.h" #include <QGridLayout> #include <QLabel> #include <QTableWidget> CPDataShow::CPDataShow(QWidget *parent) : QMainWindow(parent), ui(new Ui::CPDataShow) { ui->setupUi(this); setGeometry(geometry().x(), geometry().y(), 100, 100); } CPDataShow::~CPDataSh...
2b339e85adcf50a9aec9c099d0e93b150aa44d0c
4a73fbce5e779a8504d64233b1cfb0f4dc808303
shamatar/eth_pairings_cpp
/eth_pairings/little-big-int.cpp
C++
cpp
16,357
no_license
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2015 Connor Manning * * 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 S...
e0c6ba2aa0df60badd7116591497bfae047190d6
45214b35cfec1e56bef7c037212f6d2f5ea2e1cc
cvsuser-chromium/third_party_WebKit
/Source/testing/runner/MockWebRTCDataChannelHandler.cpp
C++
cpp
4,046
no_license
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
317fccb1e3eb0e01f43b2e78e3a021e770364971
65c6559f40a34d0adef257664c69e7924ee65467
RockWorldBi/RockWorldBi
/src/qt/guiutil.cpp
C++
cpp
13,338
permissive
#include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "util.h" #include "init.h" #include <QString> #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #include <QUrl> #include <QTextDocument> // For Qt::escape #include ...
0b9365eba3cb66b7fa4e650bd8bad5c5a1179c04
05c2cace4884a1ab39d8f5c83fa2ec6402c9a8e5
Autumin/fuchsia
/src/connectivity/bluetooth/core/bt-host/gap/peer_cache.cc
C++
cc
13,019
permissive
// Copyright 2017 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "peer_cache.h" #include <fbl/function.h> #include <zircon/assert.h> #include "lib/async/default.h" #include "src/connectivity/bluetooth/core/bt-...
f28bc552f2e5af028a7d9de301950434502c1553
3e39f9dea9e3eb7758ab627ac857f16784324a07
sylvietrewhella/cave-escape
/C/CaveEscape/src/cave_escape_9.cpp
C++
cpp
6,549
no_license
#include <stdio.h> #include <stdlib.h> #include "SwinGame.h" #define GRAVITY 0.08 #define MAX_SPEED 5 #define JUMP_RECOVERY_BOOST 2 #define FOREGROUND_FOREROOF_POLE_SCROLL_SPEED -2 #define BACKGROUND_SCROLL_SPEED -1 #define NUM_POLES 4 typedef struct pole_data { bool score_limiter; sprite up_pole, down_pole; } po...
0ee6ad3f224c1c592c49465464304fe04c630ace
71d3812acf430a91cc017cc428ec15bc37ec3df0
blackberry/Boost
/boost/date_time/date_clock_device.hpp
C++
hpp
2,253
permissive
#ifndef DATE_CLOCK_DEVICE_HPP___ #define DATE_CLOCK_DEVICE_HPP___ /* Copyright (c) 2002,2003,2005 CrystalClear Software, Inc. * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) * Aut...
ddf96cea36a438c89508a3944a180a8578abb246
58e4449d44798d1371d2537026eafccd7574b04c
PetulaDiemke/ownProject
/src/hallowelt.cc
C++
cc
296
no_license
#include<iostream> #include<string> using namespace std; int main(int argc, char** argv){ enum languages {german, english, french}; std::string greetings[3] = {"Hallo Welt!", "Hello world!", "Salut monde!"}; languages lang = french; std::cout << greetings[lang] << std::endl; return 0; }
53f05b99a05f9dcf8b1499173d7087b0250b6720
3fdd17326beb5f3e2bf1d0cd83f0606816332365
renormalizing/Algorithm-Implementation
/leet-code/canJump/main.cpp
C++
cpp
837
no_license
#include <iostream> #include <vector> using namespace std; // dp is too slow!!! //class Solution { //public: // bool canJump(vector<int>& nums) { // if(nums.size() == 1) // return true; // bool dp[nums.size()]; // dp[nums.size() - 2] = nums[nums.size() - 2] >= 1; // for(int i = nums.size() - 3; i >= 0; i--){ // ...
f2c09d8143f9d2bdf0aa60488c7fd3f182131b40
748dd8ebf93481e22239c52113739eacd9b77da1
franklingg/LearningWithDirli
/cpp/doisMaioresGastosEmpresa.cpp
C++
cpp
455
no_license
#include <iostream> #include <locale.h> #include <string> #include <vector> #include <sstream> using namespace std; int main(){ setlocale(LC_ALL, ""); int maior=-1, maior2=-1; string line; getline(cin, line); istringstream stream(line); for(int value; stream >> value; ){ if(value > maior){ maior2 = ma...
7542212ece99fc6c598af36aa01b882630921648
53440c169fb2871c14480fc57577c93b9f98adcb
bholt/clang-annos
/lib/AST/CommentLexer.cpp
C++
cpp
23,881
permissive
#include "clang/AST/CommentLexer.h" #include "clang/AST/CommentCommandTraits.h" #include "clang/Basic/ConvertUTF.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/Support/ErrorHandling.h" namespace clang { namespace comments { void Token::dump(const Lexer &L, const SourceManager &SM) const { llvm::errs() << "com...
52009c82e0e5b80f17623f489e523b9f84cee083
58de4f964e9f249fafe6073dc00dd9b51fa32ce7
git-Charlie/ARK-SDK
/SDK/ARKSurvivalEvolved_PrimalItemConsumable_Egg_Arthro_Fertilized_parameters.hpp
C++
hpp
854
permissive
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_PrimalItemConsumable_Egg_Arthro_Fertilized_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //---------------------------...
42c0d12fe74cb144aa6eb1ba5a99f53a26ee4d71
dbbbadb86e4458dd2b3d0e81c88642811ebdb496
YevhenRezohlazov/Mogren
/Framework/Graphics/Texture.cpp
C++
cpp
1,515
no_license
#include "Texture.h" #include "NativeInterface/NativeTexture.h" #include <Mogren/Framework/Common/ImplementationProvider.h> #include <Mogren/Framework/Graphics/NativeInterface/NativeGraphicsInterface.h> namespace Graphics { Texture::Texture(std::unique_ptr<NativeTexture> nativeTexture) : mNativeTe...
25a6542b114ff6dbe627d1cbf5213d682a47a6c1
4a417582ff4f047810e7199728f2b59e7db08ca3
wyrover/andy-im
/IM/IM_Client - newduilib/MainUI/Emotion.cpp
C++
cpp
4,589
no_license
#include "../stdafx.h" #include <windows.h> #if !defined(UNDER_CE) #include <shellapi.h> #endif #include "win_impl_base.h" #include "Emotion.h" #include "chat_dialog.h" #include "Emotionlist.h" #include "../AndyLib/Andylib.h" const TCHAR* const kTabName = _T("tabs"); const TCHAR* const kVLayoutList=_T("e...
bc3d7ceec1606365fa27820a0e62aa3849ed7895
cdfe0aae6841b9a52db08fd2240bcfa4d5f3608e
Targoman/QHttp
/src/private/qhttpclientresponse_private.hpp
C++
hpp
1,380
permissive
/** private imeplementation. * https://github.com/azadkuh/qhttp * * @author amir zamani * @version 2.0.0 * @date 2014-07-11 */ #ifndef QHTTPCLIENT_RESPONSE_PRIVATE_HPP #define QHTTPCLIENT_RESPONSE_PRIVATE_HPP /////////////////////////////////////////////////////////////////////////////// #include "httpreader.h...
cf3a9463ff077cdd6b459971b5d9f5743e7699a8
72086e5ae46d8c81d5819eb6681f1ed3f9e9eb69
chinyakao/algorithm
/HW5 Singly_connected_problem/HW5 singly_connected_problem.cpp
C++
cpp
1,260
no_license
#include<stdlib.h> #include<stdio.h> bool ans = true; struct node { int color; node *parent; node **adjacent; int adjacent_cnt; }; void DFS(node *nodes, node* v) { //cnt++; v->color = 1; for (int i = 0; i < v->adjacent_cnt; i++) { if (v->adjacent[i]->color == 0) { v->adjacent[i]->parent = v; DFS(nod...
9f38cdc01bbad6571b75792193be0b8aa75b8d4e
56f3a022bd9232e53cc70601d2de5478e99b8e13
juliannehong/algorithm-and-datastructure
/dynamic-programming/n_queens.cpp
C++
cpp
1,118
no_license
// https://www.hackerearth.com/practice/basic-programming/recursion/recursion-and-backtracking/tutorial/ #include <iostream> #include <vector> using namespace std; bool is_valid(const vector<vector<int>>& board, int r, int c){ const int N = board.size(); for (int i = 0; i < N; ++i) if (board[r][i] == 1) ...
506505edbf30dee8753e77ee96b04e9cc199b51e
9f2f10346ccd9df8aea32e2dff614a0992c19abe
plusminus34/Interactive_thin_shells_Bachelor_thesis
/OptimizationLib/src/MomentumBasedGradientFunctionMinimizer.cpp
C++
cpp
1,197
no_license
#include <OptimizationLib/MomentumBasedGradientFunctionMinimizer.h> #include <OptimizationLib/ObjectiveFunction.h> void MomentumBasedGradientFunctionMinimizer::computeSearchDirection(ObjectiveFunction *function, const dVector& p, dVector& dp) { dVector grad; function->addGradientTo(grad, p); if (dpLast.size() != p....
8b678cdf49c388c28d6832f628292a10c7fc71fc
d27add503fe486336ee3927550fc1bf3307a9bd7
fstqwq/BZOJ
/BZOJ3211.cpp
C++
cpp
1,992
no_license
/* Never stop fighting for what you believe in. */ #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <ctime> #include <cstdlib> #include <algorithm> #include <queue> #include <string> using namespace std; int ch=0; inline void read(int &a) { while (ch<'0' || ch>'9') ch=get...
259356234a7029077702be76c76d3fe9eef61df2
6dfa5412ec1e23f2858938cc17d177c53e1fcf57
martenjacobs/esp-dimmer
/src/config.hpp
C++
hpp
2,936
permissive
#ifndef __CONFIG_INCLUDED__ #define __CONFIG_INCLUDED__ #include <constants.hpp> // WiFi connection information #define wifi_ssid "<SSID>" #define wifi_password "<KEY>" #define wifi_wait_sec 10 // Information used to start up an AP when connecting to WiFi fails, // so you can push firmware through OTA #define ap_ssi...
882c0dfefa52d0c7aef9e8cd4dab9dcac4ee67e1
7b8fb793e96894050d91cdf4d46e195ce1cbc1bd
cosmicray001/academic
/problem_solving/CodeForces/271A/10672869_AC_30ms_8kB.cpp
C++
cpp
500
no_license
#include <bits/stdc++.h> using namespace std; int main(void) { int y, n[4]; scanf("%d", &y); y++; for(int i = y; ; i++){ int temp = i; for(int c = 3; temp > 0; temp /= 10, c--){ n[c] = temp % 10; } //for(int t = 0; t < 4; t++) printf("%d\n", n[t]); i...
9359ffb667fbe9f2ee9187c78a3b5000f3a5df69
927e308aebeccb571180f24aca4c565205453c3c
icyleaf/omim
/generator/generator_tests/check_mwms.cpp
C++
cpp
1,972
permissive
#include "testing/testing.hpp" #include "map/feature_vec_model.hpp" #include "indexer/data_header.hpp" #include "indexer/interval_index.hpp" #include "platform/local_country_file.hpp" #include "platform/local_country_file_utils.hpp" #include "platform/platform.hpp" #include "base/logging.hpp" UNIT_TEST(CheckMWM_L...
38b02a412588e6b7553054c123f61b7ed4ce9a14
1ee93c26aff836d567fd69b67117b1e87014ce6f
marioviti/PatchMatch
/extras/pybind_example/basic/example.cpp
C++
cpp
365
permissive
#include <pybind11/pybind11.h> namespace py = pybind11; int add(int i, int j) { return i+j; } PYBIND11_MODULE(example, m) { m.doc() = "pybind11 example plugin"; m.def("add", &add, "A function which adds two numbers"); } /* c++ -O3 -Wall -shared -std=c++11 -fPIC `python3 -m pybind11 --includes` example.cpp -o e...
88729e944f6af4288c5a4629e1a8774620bfdd8a
e500afa503ba1137d45be43189a7d7ff9f6dda6a
andrewburnheimer/chromium
/services/network/tcp_socket_unittest.cc
C++
cc
60,149
permissive
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdint.h> #include <utility> #include <vector> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/location.h" #include "base...
2013f9574bcf6621de96a938b93fdb5b9e45a584
7836411864e351437123e67ffc49a0109da39722
sureyeaah/Competitive
/hackerrank/Travel-in-HackerLand.cpp
C++
cpp
2,251
no_license
#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; #define DEBUG(x) cout << '>' << #x << ':' << x << endl; #define FOR0(i,n) for(int i=0, _##i=(n); i<_##i; ++i) #define FOR(i,l,r) for(int i=(l), _##i=(r); i<_##i; ++i) #define FORD(i,l,r) for(int i=(r), _##i=(l); --i>=_##i; ) #define repi(i,a)...
3b9b9eb85100af98e33aa9c49150dc0b30cebee3
1e0fd53505bc429a07bc4f2abc982c4d8c1a4fa9
SJTUGuofei/drake
/systems/analysis/test/simulator_config_functions_test.cc
C++
cc
4,049
permissive
#include "drake/systems/analysis/simulator_config_functions.h" #include <gtest/gtest.h> #include "drake/common/nice_type_name.h" #include "drake/common/test_utilities/expect_no_throw.h" #include "drake/common/yaml/yaml_read_archive.h" #include "drake/common/yaml/yaml_write_archive.h" #include "drake/systems/analysis/...
765c3f8c5c6488e166e7fd540f71c7e849bfbed9
70f526149a9ebc3ff8c26af6470fb4648a4650e5
g1587613421/gjl_study_C
/ConsoleApplication1/mainclass1.cpp
C++
cpp
390
no_license
#include "string" #include <iostream> #include "myClass1.h" using namespace std; int main() { myClass1 *myc = new myClass1(); //cout << myc->name;//无法访问,name是私有的 cout << myc->getCount(); cout <<"\n"<<"第"<< myc->getCount()<<"次修改\n"; cout << (new innerclass)->lookout()<<"\n"; //访问静态变量 cout << "\n" << "第" << myc...
bfd959d60cdc30529f9c71503ef06eabc9ac296c
7cda20f94d83978508a791df40cddc8dab0b8b16
CamiloHwarts/programacion_computadores
/Laboratorio6/Actividad4.cpp
C++
cpp
1,169
no_license
#include <stdio.h> int destino; int edad; int main(){ //pedir edad printf("Ingrese su edad\n"); scanf("%d", &edad); //pedir destino printf("Ingrese su destino\n"); scanf("%d", &destino); //revisar tabla if (edad < 15){ if ( destino == 1){ printf("El valor a pagar por...
faa3d959d9d09d75bfae722ddfed47822ea9c4ad
a60f477313bf8242e4d0350c6ee55af9b2d5daba
yoshipaulbrophy/google-api-cpp-client
/service_apis/youtube/google/youtube_api/content_rating.cc
C++
cc
1,827
permissive
// 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 writing, software // distributed unde...
e4041b4faab89fde73be5650c6ecd98227ea691a
9588651659ec428e73582618d471a4ff2882953f
xpac27/TinyWorld
/lib/tests/src/utils/test_Signal.cpp
C++
cpp
2,088
no_license
#include "catch.hpp" #include "../../src/utils/Signal.hpp" class SignalFixture { protected: int getCalls() const { return calls; } void fireSignal() { signal.fire(1); } void addCallback() { signal.addCallback(this, &SignalFixture::callback); } private: void callback(int v) { calls = calls + v; } ...
36bef902f68bfeef37fb6291dbf7f5ce9449b5c8
5ddb83f0dac22eb4e464c80d0ba58139c221621b
zhh2005757/slambook2_in_Docker
/slambook2/3rdparty/opencv-3.3.0/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_registration.cpp
C++
cpp
7,838
permissive
// C++ #include <iostream> // OpenCV #include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/calib3d.hpp> #include <opencv2/features2d.hpp> // PnP Tutorial #include "Mesh.h" #include "Model.h" #include "PnPProblem.h" #include "RobustMatcher.h" #include "ModelRegistration.h" #include "Utils.h" usin...
f5fd9ce279f3c953c07ec79daddb3b7150c411d3
28a1b8f47c3051f9ab108083166eba606ca66357
cleardo/cleardo-editor-for-php
/DLin/beta/v1.00/buffer/slr_queue.cc
C++
cc
906
no_license
#include "common.h" #include "production.h" #include "slr_queue.h" Status InitQueue(LinkQueue &Q) { Q.front = Q.rear = (QueuePtr)malloc(sizeof(QNode)); if(!Q.front) exit(OVERFLOW); Q.front->next = NULL; return OK; } Status EnQueue(LinkQueue &Q, QElemType e) { QueuePtr p; p = (QueuePtr)malloc(sizeof(...
7656aa0752638c9b9580cd93e149dfcffc0e9e19
0e25d1f958d080f4100109e04815c1ae03fb7756
niello/deusexmachina
/DEM/RPG/src/SI/SIDialogueManager.cpp
C++
cpp
2,681
permissive
#include <Scripting/ScriptServer.h> extern "C" { #include <lua.h> #include <lauxlib.h> #include <lualib.h> }; #include <Dlg/DialogueManager.h> // Script Interface for the Dialogue system namespace SI { int CDlgMgr_GetDialogueState(lua_State* l) { //args: dlg ID //ret: state as int int ArgCount = lua_gettop(l...
aa2840f7593cb2d8b614321dac59a20ba10f7305
6ed7436a1c1e60a183ce25200bd5833ee973ef13
mirzaei-ce/core-civilbit
/src/init.cpp
C++
cpp
84,387
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/civilbit-config.h" #endif #include "...
d1008dbdbe21d5b12a0e1e8124fab19933f81a94
cb2356aa5c43849f21c7cd3b17b2515a34c43a22
ALEHACKsp/RoCo-SDK
/SDK/RoCo_SettingsInfo_BindMoveRight_functions.cpp
C++
cpp
364
no_license
// Rogue Company (0.60) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "RoCo_SettingsInfo_BindMoveRight_classes.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- }...
430b2e35abfde5a1eb784ee757d0640c03fc275b
29a3f6e52144372b4f0f7fd987ca316889dbe5aa
SiChiTong/ComponentRepository
/ComponentRobotinoConveyerBeltServerOpcuaCPXECECC1PN/smartsoft/src-gen/SignalErrorTaskObserverInterface.hh
C++
hh
887
no_license
//-------------------------------------------------------------------------- // Code generated by the SmartSoft MDSD Toolchain // The SmartSoft Toolchain has been developed by: // // Service Robotics Research Center // University of Applied Sciences Ulm // Prittwitzstr. 10 // 89075 Ulm (Germany) // // Information abo...
b4a91b941802cf09fa36a6ccfc9861774a2bcbf5
8fda545d344778c50e06caa9af45d5117cd09c9e
g31pranjal/algorithms-practise
/sp-CPRMT.cpp
C++
cpp
858
no_license
#include <cstdio> #include <cstring> #include <algorithm> #include <iostream> using namespace std; int main() { char a[1000], b[1000], rslt[1000]; memset(a, '\0', sizeof a); memset(b, '\0', sizeof b); memset(rslt, '\0', sizeof rslt); int ap, bp, rp, alen, blen; while(true) { if(scanf("%s", a) == EOF) br...
cf343c8d6295c3f5421a3d380c1f99b64bfbf7ee
0bc53beabf64038db50e7a305d55ba3844b8e98c
GouravShDev/CodeChefQues
/Easy/YourNameisMine.cpp
C++
cpp
739
no_license
// Problem Code : NAME2 // url : https://www.codechef.com/problems/NAME2 #include<bits/stdc++.h> using namespace std; #define sync_off ios::sync_with_stdio(0);cin.tie(0); #define ll long long int int main(){ sync_off; int tc; string man, woman; cin>>tc; while(tc--){ cin>>man>>woman; if(man.leng...
b59c47ce9013687a3f06ea2a6926e910bb7d3179
c335e87a628eb814b3fb1baff386c05819b06211
sharif-hossain/uri-online-judge
/uri1983/main.cpp
C++
cpp
492
no_license
#include <iostream> using namespace std; int main() { int n ; cin >> n; int reg[n], large; double note[n], max = 0.0; for(int i = 1; i <= n; i++) { cin >> reg[i] >> note[i]; if(note[i] > max) { max = note[i]; large = reg[i]; ...
b92bd952a2693cc63548521bcdb6daebc3463399
1c15bff72f15428674b51eb968ff84f5b8f394d4
hoangpq/skia
/src/core/SkThreadedBMPDevice.cpp
C++
cpp
9,325
permissive
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkThreadedBMPDevice.h" #include "SkPath.h" #include "SkSpecialImage.h" #include "SkTaskGroup.h" #include "SkVertices.h" // Calling init(j, k) would initialize the ...
06867619323a85d4c98cb6bc5d4328e29da42386
32546b4b3b6321c17c3a1110ca98573be32ae7bc
sk8erpunk/LeetCode-Solutions
/Merge Intervals.cpp
C++
cpp
1,464
no_license
/* Given a collection of intervals, merge all overlapping intervals. Example 1: Input: [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15,18]] Explanation: Since intervals [1,3] and [2,6] overlaps, merge them into [1,6]. Example 2: Input: [[1,4],[4,5]] Output: [[1,5]] Explanation: Intervals [1,4] and [4,5] are co...
6b4d3482083d532ac405b70cc8a2eb225d7edc5c
1aabf79d2cffd06dd8239cc5a92df75466467633
Meng-Gen/UVa
/UVa/acm_10055.cc
C++
cc
276
no_license
#include <iostream> int main(int argc, char* argv[]) { long long hashmat; long long opponent; while (std::cin >> hashmat >> opponent) { long long diff = (hashmat < opponent) ? opponent - hashmat : hashmat - opponent; std::cout << diff << std::endl; } return 0; }
d599e6cead1e8b177fa5f1c4570d4519a15c1be9
b1d7cf194af1f092d7b0a9b5c789cb972268a1ce
aries-yang/v8
/test/common/wasm/wasm-module-runner.cc
C++
cc
7,970
permissive
// Copyright 2016 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 "test/common/wasm/wasm-module-runner.h" #include "src/handles.h" #include "src/isolate.h" #include "src/objects-inl.h" #include "src/objects.h...
98f1e23e2fb8df4ea81bc0874bc1808ba0c376c3
29c86dbe49ed227f241e68d83037e7eec5bcb7b7
JavierLiu/LeetCode
/src/112-Path Sum.cpp
C++
cpp
1,744
permissive
// Source : https://oj.leetcode.com/problems/path-sum/ // Author : Javier Liu // Date : 2015-03-08 /********************************************************************************** * * Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path e...
0be7b44f7a345ab00b55ef6da740c3d78744bdf1
39d0187ecc379a48219b0c4bea3e545ff6b9da2d
Spritutu/AdamoIDE
/source/Ide2/DockListErrors.cpp
C++
cpp
3,687
no_license
// DockLangView.cpp: implementation of the CDockLangView class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "mainframe.h" #include "ListViewErrorsCustomColor.h" #include "AdamoListErrors.h" #include "DockListErrors.h" #ifdef _DEBUG #define new DEBUG_NEW #unde...
ac00a058fff078476e984576a8020c24e630fa97
b65b7f04e6b0db28cf972c1f72bcb01ca691ea42
okutane/miranda
/miranda/plugins/tabsrmm/src/generic_msghandlers.cpp
C++
cpp
88,047
no_license
/* * astyle --force-indent=tab=4 --brackets=linux --indent-switches * --pad=oper --one-line=keep-blocks --unpad=paren * * Miranda IM: the free IM client for Microsoft* Windows* * * Copyright 2000-2017 Miranda ICQ/IM project, * all portions of this codebase are copyrighted to the people * listed in c...
eae5b6842ad82c7ccbfedac784cffe2e7f84d053
2e7d85ffae25e56d3330b6670f446006159cb900
Xelvair/AuriolRadar
/ScenarioFolder.cpp
C++
cpp
817
no_license
#include "ScenarioFolder.hpp" #include "Windows.h" using namespace std::string_literals; std::vector<std::string> ScenarioFolder::getScenarioList(){ std::vector<std::string> scenario_list; WIN32_FIND_DATA fd; HANDLE hFind = ::FindFirstFile("./scenarios/*.scenario", &fd); if(hFind != INVALID_HANDLE_VALUE){ ...
f4ea3bf7a14eeb02b60c5cfa955517d377661cb5
41b938f40c4ab31cb810cc57ec682d6820ec9c9d
AhmedEzzatG/competitiveProgramming
/DPproblems/48-SymbolExpressionEvaluation.cpp
C++
cpp
1,658
no_license
#include <bits/stdc++.h> #include <unordered_map> #include <unordered_set> using namespace std; #define endl "\n" #define oo 0x3f3f3f3fLL #define OO (oo*oo) #define sz(s) (int)(s.size()) #define RT(s) return cout<<s,0 #define all(v) v.begin(),v.end() #define allr(s) s.rbegin(),s.rend() #define clr(v,val) memset(v,val,s...
f82fe8bb646d3a3425888fc88478f615a6f95c26
68dc863fba95607b025e2920553543e40a781121
sakait0ru/PikakuruTower
/pikakuruTower/GameSources/TitleStage.cpp
C++
cpp
16,927
no_license
#include "stdafx.h" #include "Project.h" namespace basecross { //-------------------------------------------------------------------------------------- // タイトルの画像とゲームスタートの画像 //-------------------------------------------------------------------------------------- TitleAnimeSprite::TitleAnimeSprite(const shared_ptr<...
7a65c894b77beae515c59b785bbe9a0d068da0c7
53e769523deb7262b5987220848f596dd26ee00d
ioarun/arduino-BLEPeripheral
/BLEConstantCharacteristic.cpp
C++
cpp
906
permissive
#include "BLEConstantCharacteristic.h" BLEConstantCharacteristic::BLEConstantCharacteristic(const char* uuid, const unsigned char value[], unsigned char length) : BLEFixedLengthCharacteristic(uuid, BLERead, (unsigned char)0) { this->_valueLength = this->_valueSize = length; this->_value = (unsigned char*)value; ...
cf90ff43d98af77fcaae790908e015ec6ac5e1c5
8ab15c5ffb3ddcfc3476e14c33153ce77601100a
anandhere8/practice
/Contest/Codeforces/cf/contest/1459/f/f.cpp
C++
cpp
256
no_license
#include<bits/stdc++.h> #define int long long using namespace std; void test_case(){ } int32_t main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int tt = 1; cin >> tt; while(tt--){ test_case(); cout << endl; } return 0; }
6a11a40dc0ff0a31747d8f2c9555a86728244600
d97b1648bbc0a2364f216ee03171f4f81d199a3a
guillaume-renaud/Bricks-Braker
/brique2.cpp
C++
cpp
529
no_license
#include <allegro.h> #include <iostream> using namespace std; #include "brique.h" #include "brique2.h" brique2::brique2(float abs, float ord, float pl , float ph /*, int couleurExterieure, int couleurInterieure*/) : brique(abs,ord,pl,ph/*, int couleurExterieure, int couleurInterieure*/) { compteur = 1; ...
cd854071dd40309dfa519e6d4c1cc55f70ecaaf1
3b625f36339478607ca07c095521ef47dad99230
rodrigoalvarez/camarasheterogeneas
/Proyectos/intrinsicCalibrator/main.cpp
C++
cpp
20,635
no_license
#include <iostream> #include <sstream> #include <time.h> #include <stdio.h> #include <opencv2/core/core.hpp> //#include <opencv2/core/utility.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/calib3d/calib3d.hpp> //#include <opencv2/imgcodecs.hpp> //#include <opencv2/videoio.hpp> #include <opencv2/highgui/...
96ff20480f856125a5d13dcfa3719bc387096f2d
0ef607b1a5bd31130fa378ed3d22967feb982765
AchintyaAshok/Code-Practice
/Arrays & Strings/checkForPermutation.cpp
C++
cpp
1,193
no_license
/* Given two strings, write a method to decide if one is a permutation of the other */ #include <string> bool is_permutation(string& first, string& second){ // Simplest method of doing this, we just count the number of occurences of each character // in the first string, then check the second for the same number of ...
bf244729a3b5dc84399f16302ab1f679aade28bd
03852f5aae08e394fc98701399770f73578763e7
crackfoo/but
/src/test/cuckoocache_tests.cpp
C++
cpp
14,646
permissive
// Copyright (c) 2012-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/test/unit_test.hpp> #include "cuckoocache.h" #include "script/sigcache.h" #include "test/test_but.h" #include ...
0a42871ace719204474eb946e3d55abd77ad25bb
42f68b09cdea11688e4cf3b90caef16b13eb3bb6
ALEHACKsp/batleye-pasted-fixed
/leo7fn-selling-a-paste/imgui/imgui_draw.cpp
C++
cpp
123,970
permissive
/* leo7fn is selling a pasted cheat (batleye) here is proof kek leo7fn saying its not even pasted retard here is his src cracked Visual#9999 */ // dear imgui, v1.54 WIP // (drawing and font code) // Contains implementation for // - Default styles // - ImDrawList // - ImDrawData // - ImFontAtlas // - ImFont // - Defau...
c1ba251893cfd6eb6eaf5811c7969f3c35f593aa
c15e9b632a43583d1dd4d465dd251d8e36fb5dff
cea56/chromium
/gpu/command_buffer/service/service_transfer_cache.cc
C++
cc
13,522
permissive
// Copyright (c) 2017 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 "gpu/command_buffer/service/service_transfer_cache.h" #include <inttypes.h> #include <utility> #include "base/bind.h" #include "base/strin...
c6b61b81833289d7188581ca634cfcb06d5d3142
a8cf59b326d81f934f992162ff438c431d5821a0
senier-archive/android_platform_art
/runtime/instrumentation.cc
C++
cc
52,763
permissive
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
a5e5e9c657be62fc1aac1b722484f02aa4a98543
b222f28684ebe06f831b6368b808ad40a322b87d
luoyuming/search
/jieba/include/limonp/LocalVector.hpp
C++
hpp
2,859
no_license
#ifndef LIMONP_LOCAL_VECTOR_HPP #define LIMONP_LOCAL_VECTOR_HPP #include <iostream> #include <stdlib.h> #include <assert.h> #include <string.h> namespace limonp { using namespace std; /* * LocalVector<T> : T must be primitive type (char , int, size_t), if T is struct or class, LocalVector<T> may be dangerous.. * Lo...
aecbe6de484b66c132f2ba37109956eaadae6ac7
bb37c5d444661ea8ae6d081e221b30d67651298d
ygtysr/openthread
/src/core/thread/panid_query_server.hpp
C++
hpp
3,243
permissive
/* * Copyright (c) 2016, The OpenThread Authors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice, this ...
96993318ea1d496395a0b07e2da211a12da5cd9b
811edfaa8e4116b8fd8c1ce02671c1c25fb81c62
canerdogan/hiphop-php
/src/util/capability.cpp
C++
cpp
3,854
permissive
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) | +---------...
3084072813f5d79ba3394ee84f370b31d51c5ec3
6184b1b472933488e589baef23331005386db056
Slicer/BRAINSTools
/BRAINSCommonLib/itkScalarImagePortionToHistogramGenerator.hxx
C++
hxx
4,868
no_license
/*========================================================================= * * Copyright SINAPSE: Scalable Informatics for Neuroscience, Processing and Software Engineering * The University of Iowa * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file excep...
104e319a130f9d444ee649faf07af94468b28129
dd48d8dbff0189a0fdeff21a0a67356bfe55994f
bmsrangel/spotify_speedcoding
/windows/runner/main.cpp
C++
cpp
1,229
no_license
#include <flutter/dart_project.h> #include <flutter/flutter_view_controller.h> #include <windows.h> #include "flutter_window.h" #include "run_loop.h" #include "utils.h" int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, _In_ wchar_t *command_line, _In_ int show_command) { ...
377a383e635fade7e8b7a9070165444d0206a84e
4ad33e2c7783422950cf9a28a334e9e2cbf25711
charan96/sfe-randomize
/print_funcs.cpp
C++
cpp
1,241
no_license
#include "constants.h" #include "print_funcs.h" void print_dataframe(dataframe df) { for (int i=0; i<df.size(); i++) { std::vector<double> feats = df[i].second; std::cout << df[i].first; for (int j=0; j<df[i].second.size(); j++) printf(",%0.15f", df[i].second.at(j)); printf("\n"); } } void print_vec...