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
1bb5bfb12a867344ef2d034b5630000a6f82c90b
222596df141ad6c2995f37ca18f459a0e518d363
IAmAnubhavSaini/cryptoAlgorithm-nt5src
/Source/XPSP1/NT/windows/core/cslpk/cstest/usptest.hxx
C++
hxx
1,313
no_license
//// USPTEST.HXX // // // // Copyright(c) 1997 - 1999. Microsoft Corporation. // BOOL visualDisplay(HDC hdc, PWCH pwcText, PINT piStyle, int iTextLen); //// TEXTDISP.C // // BOOL dispPaint(HDC hdc, PRECT prc); BOOL dispInvalidate(HWND hWnd, int iPos); //// TEXTEDIT.C // // void editClear...
6bc55275a37a81af1cd4ccfe3dcc0a9b7e3a068b
1daed592576943feb995bb3ccad71c966c959264
MaoZeDongXiJinping/xray-2212
/xr_3da/xrGame/ui/UIButton.cpp
C++
cpp
8,486
no_license
// UIButton.cpp: класс нажимаемой кнопки // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "UIButton.h" #include "../HUDManager.h" #define PUSH_OFFSET_RIGHT 2 #define PUSH_OFFSET_DOWN 3 ////////////////////////////////////////////////////////////////////// // Co...
82e9ee8600ceccf0a12af05fc3a5a5f4fbaaf48e
adbac02442bc7d7c490d13e09f9f7ff1fcc394ac
DKarz/Multiplicator-Cpp
/number.cpp
C++
cpp
4,843
no_license
#include <algorithm> #include "number.h" #include <iostream> #include <math.h> #include <random> #include <ctime> typedef Number::String String; void Number::print() { String str = _strRepresent; reverse(str.begin(), str.end()); String pr; for (Ull i = 0; i < str.size(); ++i) { ...
aa6e6fc037cc17333333a43a61f4dc84a78cce0d
0dd9ca195a3eb583b5f8a13d059a33fbd0bf7332
AtomicOrbital/CppSource
/P146SUMG.cpp
C++
cpp
611
no_license
#include<iostream> #include<string> #include<vector> #include<math.h> using namespace std; int main() { int r,c,a,b; char f[505][505]={}; cin>>r>>c>>a>>b; int vti=1,vtj=1; for(int i=1;i<=r;i++) { vtj=1; for(int j=1;j<=c;j++) { char c; ...
54274a38f4807c34bfc05f076f23c5041f8dde77
fa14fb2c5da63b831b73827e577c8a0b0a449e57
rhemon/problem-solving
/uva/vol 102/src/10267 - Graphical Editor.cpp
C++
cpp
3,929
no_license
// // 10267 - Graphical Editor // // Created by Ridhwanul Haque on 09/03/2018 // #include <iostream> #include <sstream> using namespace std; string canvas; int canvas_row, canvas_col; void init(int r, int c) { if (r <= 0 || c <= 0) return; canvas = ""; canvas_row = r; canvas_col = c; for (int i ...
34e24d1b91c65d5a66e38950ce579e8df14a1a31
611ddf3efd024156ea4c05c1776e229385471c09
pwisbey/dali-adaptor
/adaptors/wayland/clipboard/clipboard-impl-wl.cpp
C++
cpp
2,671
permissive
/* * Copyright (c) 2015 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
1d6052dc6d9534c6e6c44b794d3d96c4ebe62882
328d6f793a9f6cda5dd6013f207fad8bc872fbea
ChristopherAbram/SmartPeak
/src/smartpeak/source/core/SequenceSegmentProcessor.cpp
C++
cpp
49,080
permissive
// -------------------------------------------------------------------------- // SmartPeak -- Fast and Accurate CE-, GC- and LC-MS(/MS) Data Processing // -------------------------------------------------------------------------- // Copyright The SmartPeak Team -- Novo Nordisk Foundation // Center for Biosustainabil...
103406c630338a7e3f9b462d66e5ea1a2a6c02e3
c4e11751d1defdc877b8ab89d1755ad41c5bf1ce
froody/swift
/lib/AST/Verifier.cpp
C++
cpp
94,404
permissive
//===--- Verifier.cpp - AST Invariant Verification ------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
7c3fa0a63696ba3967f4c5785488f0c47e381a34
2c0bf35207ced40c601406228fe6f097645aab6a
prem-chand/Cassie_Controller_AngularMomentum
/CustomCodes/utils/funcs/KinDyn200511_221619/kin/mex/T_LeftKneeJoint_mex.hh
C++
hh
835
no_license
/* * Automatically Generated from Mathematica. * Mon 11 May 2020 22:19:26 GMT-04:00 */ #ifndef T_LEFTKNEEJOINT_MEX_HH #define T_LEFTKNEEJOINT_MEX_HH #ifdef MATLAB_MEX_FILE // No need for external definitions #else // MATLAB_MEX_FILE #include "math2mat.hpp" #include "mdefs.hpp" namespace SymExpression { void ...
adbe658365e4b5a2876634d4ed6f12d44bdbc779
a090b3f58e2d2b3e75a43e1acf43ceca0510f2c0
lxnt/dfhack
/plugins/stockpiles.cpp
C++
cpp
2,959
permissive
#include "Core.h" #include "Console.h" #include "Export.h" #include "PluginManager.h" #include "DataDefs.h" #include "df/world.h" #include "df/ui.h" #include "df/building_stockpilest.h" #include "df/selection_rect.h" #include "df/viewscreen_dwarfmodest.h" using std::vector; using std::string; using std::endl; using n...
9a23d3eef5f7a6864e741c6dbbd3d0706fece41e
bf8e493fa7626824a509a2fd930f894563bbbd26
green-fox-academy/ImreCsete
/final_exam/exam_code_examples/code_examples/temp_logger_Utility.cpp
C++
cpp
1,260
no_license
#include "Utility.h" #include <iostream> #include <string> #include <windows.h> #include <sstream> #include <iomanip> #include <ctime> #include "Temperature.h" using namespace std; stream_input parseString(string line) { int temperature; istringstream exampleStream(line); tm parsedDateTime; exampleStream >> ...
7bbd2fd2aee74eb560658b9ee7d1927688ca38fe
3de7ade7283cdf32a111e0198150710ee86f29b2
xuluna/NuRaft
/tests/unit/asio_service_test.cxx
C++
cxx
32,535
permissive
/************************************************************************ Copyright 2017-2019 eBay Inc. Author/Developer(s): Jung-Sang Ahn 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 https:...
1308a0f25cbcf5308d1025e7288e8850ed3184cf
175d38e0cdbbd3d01921ce9f1d36608188deff20
lee-jeong-geun/ps
/jmbook/LUNCHBOX.cpp
C++
cpp
811
no_license
#include <cstdio> #include <iostream> #include <algorithm> using namespace std; typedef struct _data { int M; int E; }Data; Data lunchBox[10005]; int N, result; bool comp(Data t, Data u) { return t.E > u.E; } int main() { int T; scanf("%d", &T); for(int testcase = 0; testcase < T; testcase++) ...
741ac523a9a51824a86c45dce6ceb9830b7bf33f
07f0d865266129437d5d99dfa73b91a19df9218a
kogotto/timers
/timerreciver.cpp
C++
cpp
1,042
no_license
#include "timerreciver.h" #include <QPainter> #include <iostream> using namespace std; #include <QTime> struct TTimeMesurer { explicit TTimeMesurer(const QString & message): message(message) { cerr << " " << message.toStdString() << " begins" << endl; timer.start(); } ~TTimeMesur...
6065cbbec8a19af738b77425339dd0398dd1a0e2
92661f589e05296638cd6da2760f4b143a1f383f
UniStuttgart-VISUS/OcclusionCulling
/CPUT/CPUTOSServicesWin.cpp
C++
cpp
16,552
permissive
//////////////////////////////////////////////////////////////////////////////// // Copyright 2017 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at // // http://www.apac...
06fdeb257bd1b4855bcc5de44346bfd9435c3ed5
a9f6f717e0f41220c5dd5b766465a2f2b35a0aaf
kanogadhiya/Journal
/j9.cpp
C++
cpp
2,019
no_license
#include<iostream> #include<string.h> using namespace std; int ch; class time12 { public: int hour,minute,choice; char type[2]; void get_data() { s: cout<<"How you Enter time..??\n\n\tPress 1 to Enter time in 12 format";//12to24 cout<<"\n\tPress 2 to Enter ti...
7c51b92ac33c6def9919683f751d17557c30f344
28f591345ae2796d1b3a45e40784025d79e1e748
sensarliar/zfcs_filesystem
/usr/bin/qtopia/examples/linguist/trollprint/mainwindow.cpp
C++
cpp
3,278
no_license
/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/ ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of...
139b7b45c79f890a9127f1c1356b2ed3fcc4f578
d65fa3672d65c368cae6ea04ab425d4753de0f2f
ahmed-agiza/OpenPhySyn
/external/cpp-taskflow/taskflow/core/spmc_queue.hpp
C++
hpp
6,721
permissive
// 2019/05/15 - created by Tsung-Wei Huang // - isolated from the original workstealing executor #pragma once #include <atomic> #include <vector> #include <optional> namespace tf { /** @class: WorkStealingQueue @tparam T data type @brief Lock-free unbounded single-producer multiple-consumer queue. This class im...
867aac6ba9ccaa6f96375b45d19fdcdb5fe49953
2fce6a7b72161037c343bc890c63347c6c732d7c
Feng-Ye520/hhvm
/hphp/runtime/base/execution-context.cpp
C++
cpp
70,468
permissive
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
303335735347002e55502bbfcb633f92f82167f9
8a16cd8be039fae78e8ec3e31bd75ce9e57153ec
NeoniteDev/Osmium
/Osmium/SDK/FN_TracerGeneric_Athena_Cannon_Child_classes.hpp
C++
hpp
730
no_license
#pragma once // Fortnite (4.5-CL-4159770) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass TracerGeneric...
43dae5fb2b2a47a7f760b39e919ccb6adc80bdaf
a71280304e8cd70dce46e9b965c8b62082d2ac94
silvrwolfboy/google-cloud-cpp
/google/cloud/bigtable/async_list_app_profiles_test.cc
C++
cc
12,044
permissive
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
1ccdd0521c8af84f4d48160d5e827ed2a80d4e57
c348fa712d0761da9a53cdf36995fb5c2e6e4efe
Xobtik/ImpossibleRescue
/Classes/GamerCamp/GameSpecific/ShadowTutorial/CShadowTutorial.cpp
C++
cpp
2,220
no_license
#include "CShadowTutorial.h" #include "GamerCamp/GCCocosInterface/IGCGameLayer.h" #include "GamerCamp/GCCocosInterface/GCCocosHelpers.h" ////////////////////////////////////////////////////////////////////////// // Constructor and Destructor ////////////////////////////////////////////////////////////////////////// CS...
963f3b3cc2a8590eee5b83175def1778c23a9b5b
5932f9f217a574f714aea9f14ffda2f02c2c52ca
JennyPoulton/Peptidoglycan
/Lattice Model/Lattice Model/Glycan.cpp
C++
cpp
396
no_license
#include <cmath> #include "Glycan.h" using namespace std; Glycan::Glycan() { number_bonds_created = 0; return; } int Glycan::Return_Number_Bonds() { return number_bonds_created; } void Glycan::Add_Bond() { number_bonds_created++; return; } void Glycan::Set_Bonds(int bonds) { number_bonds_created = bonds; ret...
53df978c3523f52de05bff98f53bed9d27c54c5c
90b16c757d3cf82793611f1c6826a9dfab98e126
CatherineMeng/hls_sandbox
/invert/invert.cc
C++
cc
1,372
permissive
#include <stdlib.h> #include <stdio.h> #define MAX_ADJ 32 void invert(int numPar, int chldPerPar, int numChld, int* parToChld, int* chldToPar, int* chldDeg) { #pragma HLS INTERFACE m_axi port=parToChld bundle=gmem offset=slave #pragma HLS INTERFACE m_axi port=chldToPar bundle=gmem1 offs...
704c904ead3e0ed160a3b40862cdd28be551d47d
2c3f98bc6e067b76a0ced94ac65f6c75dcb224af
wallydz/chromium-1
/net/quic/quic_config_test.cc
C++
cc
8,562
permissive
// Copyright (c) 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 "net/quic/quic_config.h" #include "net/quic/crypto/crypto_handshake_message.h" #include "net/quic/crypto/crypto_protocol.h" #include "net/qu...
2288c4c8cf960f86824cc6c5325c605962170d1b
72b8a1e24cfb777211c8f92125055996e96df187
FairyHao/DataStructue
/6-59.cpp
C++
cpp
2,149
no_license
#include <iostream> using namespace std; #define STACK_INIT_SIZE 10 typedef int Status; #define ERROR 0 #define OK 1 #define INFEASIBLE 2 typedef struct CSNode { char data; struct CSNode *firstchild, *nextsibling; }CSNode, *CSTree; int i = 0; CSTree createCStree(char s[]) { char ch = s[i++]; if (ch == ' ') { r...
6b1468bd2da0536921ba1ce1b8e1dadfff1e1442
56e5290cf0f6870b31ca6c894791b7e00e62acdc
opentoonz/opentoonz
/toonz/sources/toonzlib/sceneproperties.cpp
C++
cpp
36,216
permissive
#include "toonz/sceneproperties.h" // TnzLib includes #include "toonz/cleanupparameters.h" #include "toonz/tcenterlinevectorizer.h" #include "toonz/captureparameters.h" #include "toonz/tcamera.h" #include "toonz/tstageobjecttree.h" #include "toonz/txshleveltypes.h" #include "toonz/preferences.h" #include "cleanuppal...
6ff0f856d3ebf162a94a565e4e7b69325bdf0af8
ddba70e961f1a0e460cc856c733e24f4f731dd7b
fantasydr/nwn2dev
/Granny2Lib/GR2Format.cpp
C++
cpp
26,652
no_license
/********************************************************************** *< FILE: GR2Format.h DESCRIPTION: GR2 File Format CREATED BY: tazpn (Theo) HISTORY: *> Copyright (c) 2006, All Rights Reserved. **********************************************************************/ #include "Precomp.h" #include "...
d5df3255c93b15bf33bb4ea4c5abfcde1e43a94f
75e0f80c0ac520f3b589552bdcdcf763c41c727c
Centimo/Meta_lib
/Stateful_meta_container/meta_list.hpp
C++
hpp
2,391
no_license
// author: Filip Roséen <filip.roseen@gmail.com> // source: http://b.atch.se/posts/constexpr-meta-container #ifndef ATCH_META_LIST_HPP #define ATCH_META_LIST_HPP #include <cstddef> #include "type_list.hpp" #include "Meta_counter.hpp" namespace atch { namespace { template<class Tag> struct meta_list { using...
feaa3d5773c43309b3642d1a843553a1e7424aaf
17e7e330aad52d54591d4b2d7891b6e9eb67d46f
Sangrem/Yandex_academy_Cpp
/1.4_various-types/5.cpp
C++
cpp
245
no_license
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if ((a >= b) && (a >= c)){ cout << a;} else if (b >= c){ cout << b;} else{ cout << c;} return 0; }
7e6572bd3b43371435df386ea7bf48afe5d71c24
276adc4d56d79a0762dca9ba2b8b6a261feaa191
ric2b/Vivaldi-browser
/chromium/chrome/browser/speech/tts_ash.cc
C++
cc
8,117
permissive
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/speech/tts_ash.h" #include <memory> #include <utility> #include <vector> #include "base/bind.h" #include "base/memory/weak_ptr.h" #include "base/notr...
c4905fd0640823ce70ffe527d5a420247f50cc35
17a873273268fdf4a70762bd3640e90e40b13631
albertbregonia/library-management-system
/classes/Copy.cpp
C++
cpp
3,425
permissive
#include "Copy.h" #include <iostream> #include "Database.h" //Constructors Copy::Copy() : id(-2), book(NULL), borrower("none"), reservers(vector<string>()), available(true), reserveDates(vector<long>()), start(0), end(0) {} Copy::Copy(int id, Book* book, string borrower, vector<string> reservers, bool availab...
b3ce2ea424425ab751eda50acbd24b76ada7f3be
51ccdc0cce1a1e63d528f2bd1e926750154965c3
prathamesh60/Coding-questions-for-placements
/Trees/Binary Tree To DLL/solution.cpp
C++
cpp
895
no_license
/*This is a function problem.You only need to complete the function given below*/ /* Structure for tree and linked list struct Node { int data; struct Node* left; struct Node* right; Node(int x){ data = x; left = right = NULL; } }; */ // This function should convert a given Bin...
4634fa9925c43efa3886e2e19f4806e60e2bf0d8
a961fc0398b89f655749125cd84cac7c00ccf261
gbiebuyc/stuff
/piscine_cpp/d05/ex01/Bureaucrat.hpp
C++
hpp
2,225
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Bureaucrat.hpp :+: :+: :+: ...
d988831b075702dc5e7653aea5f5f69354934f54
59835881b9477161b616a7fdcfff03b32be4f226
mathstuf/vxl
/contrib/brl/bbas/bpgl/acal/acal_match_graph.cxx
C++
cxx
27,592
no_license
#include <iostream> #include <fstream> #include <sstream> #include <cmath> #include <algorithm> #include <set> #include <vul/vul_file.h> #include "acal_match_graph.h" acal_match_graph::acal_match_graph( // cam id i cam id j matches (i, j) std::map<size_t, std::map<size_t, std::vector<a...
3c3c33f7e99cd3b6bcda31050d389defeb7b27ca
74da1861a26286de1f36759bc957fa2f5ccce649
liukangkanglkk99/SoftwareRenderer
/sr/Rect.hpp
C++
hpp
6,620
permissive
// // SoftwareRenderer // #ifndef RECT_H #define RECT_H #include "Vector.hpp" #include "Size2.hpp" namespace sr { class Rect final { public: Vector2F position; Size2 size; Rect() { } Rect(float width, float height): size(width, height) ...
b8d3b37e70ea88ee29e3c4b0feede9c93d71ef38
572d8d65ef793e1e3ace722f14b97f26b68c198b
WangGarrison/chatserver
/src/server/chatservice.cpp
C++
cpp
12,129
no_license
#include "chatservice.hpp" #include "public.hpp" #include <muduo/base/Logging.h> #include <vector> using namespace std; using namespace muduo; // 获取单例对象的接口函数 ChatService *ChatService::instance() { static ChatService service; return &service; } // 注册消息以及对应的Handler回调操作 ChatService::ChatService() { //登录回调添加到...
b63a858509ee461d6bde1bb7f24d5b58ff20736c
4e6dff41fa367ef204007cfe6f417d9fb08007b5
tiankonguse/leetcode-solutions
/problemset-new/001/00119-pascals-triangle-ii/tiankonguse-loop.cpp
C++
cpp
1,260
no_license
/************************************************************************* > File Name: pascals-triangle-ii.cpp > Author: tiankonguse > Mail: i@tiankonguse.com > Created Time: Sat May 25 23:31:49 2019 > link: https://leetcode.com/problems/pascals-triangle-ii > No: 119. Pascal's Triangle II...
9963bf6a63aa2cf07eababb024ed8284154a145f
393b94f554fef885f7f70689bf07bd86dae7fb0e
byam/algorithms
/atcoder/typical90/033-Not-Too-Bright.cpp
C++
cpp
3,487
no_license
#include <bits/stdc++.h> #include <iostream> #include <map> #include <queue> #include <set> #include <vector> //#include <atcoder/all> // using namespace atcoder; using namespace std; // func #define rep(i, first, last) for (int i = (first); i < (last); i++) #define rrep(i, last, first) for (int i = (last); i >= (fi...
38639ea807ab3cc37e5bde772fcc59ce1202af96
6206cf205191bd9f7037e5ac8b1840c96ce51cfc
jmari016/rShell
/src/OutputRedirect2.hpp
C++
hpp
395
no_license
#ifndef __OUTPUTREDIRECT2_HPP__ #define __OUTPUTREDIRECT2_HPP__ #include "rShell.hpp" #include <string> #include <iostream> class OutputRedirect2 : public rShell { public: OutputRedirect2() : rShell() {} OutputRedirect2(rShell* lhs, string fileName) : rShell() {this->lhs = lhs; this->fileName = fileName;} ...
6d69de1ad27f57b20f4c8d7df74b978a241319f6
dd3944d60dc707141569196813dcd4d452397abd
Isen-j/diagnosis_demo
/《Qt+Creator快速入门》代码/《Qt Creator快速入门》代码/src/04/4-1/myLayout/main.cpp
C++
cpp
256
no_license
#include <QtGui/QApplication> #include "mywidget.h" #include <QTextCodec> int main(int argc, char *argv[]) { QApplication a(argc, argv); QTextCodec::setCodecForTr(QTextCodec::codecForLocale()); MyWidget w; w.show(); return a.exec(); }
caea2dfb2ae2a432b20fcf64bcdd5248887c6b1a
5acba1156d6723d65660747eb73866f9d0fec504
RussellWu728/Algorithm_Homework
/作业2—Dijkstra/Dijkstra.cpp
C++
cpp
2,928
no_license
// Dijkstra.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> using namespace std; int** Creat(int s,int e) { int** num = (int**)malloc(sizeof(int*) * s); for (int i=0; i < s; i++) { num[i] = (int*)malloc(sizeof(int) * s); } for (int i = 0; i < s; i++) { for (i...
20f57a2af6dec16e4cb38265995ffc63965d11ad
d1f6ca7948b2886437fe2f7f79cb993984899fa3
osyo-manga/Sprout
/sprout/algorithm/fit/remove_if.hpp
C++
hpp
1,446
permissive
#ifndef SPROUT_ALGORITHM_FIT_REMOVE_IF_HPP #define SPROUT_ALGORITHM_FIT_REMOVE_IF_HPP #include <sprout/config.hpp> #include <sprout/container/traits.hpp> #include <sprout/container/functions.hpp> #include <sprout/algorithm/count_if.hpp> #include <sprout/algorithm/fixed/remove_if.hpp> #include <sprout/algorithm...
59f57edefb43cd2f1a9c8a3fcc14a236e00bfc47
eec6b8e0189bab85dcb83276f240b9d94f5ca584
ups100/MBI
/code/view/src/mainwindow.cpp
C++
cpp
1,676
no_license
#include "mainwindow.h" #include "ui_mainwindow.h" #include "resultwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), m_alg(NULL), ui(new Ui::MainWindow) { ui->setupUi(this); connect(&seqInView, SIGNAL(done_signal()), this, SLOT(on_sequenceProvided())); } MainWindow::~MainWindow(...
6ed24ac1534bbce23bc29c7f4f6d5b1f38345d4e
98f0b7a4f9e4e5429f6276e1f93f1d8dcce68413
RoboTeamTwente/roboteam_tactics
/src/skills/Kick.cpp
C++
cpp
6,201
no_license
#include "roboteam_tactics/treegen/LeafRegister.h" #include "ros/ros.h" #include "roboteam_utils/LastWorld.h" #include "roboteam_utils/Math.h" #include "roboteam_utils/world_analysis.h" #include "roboteam_tactics/Parts.h" #include "roboteam_tactics/skills/Kick.h" #include "roboteam_msgs/World.h" #include "roboteam_ms...
fbc88559d2e87c93ee7ba132684a791f6508d2c2
4cd47ed397dd2bb612e5fdb0bd90d8832b15c129
jnmartin84/java_grinder
/generator/MSP430.cxx
C++
cxx
56,193
no_license
/** * Java Grinder * Author: Michael Kohn * Email: mike@mikekohn.net * Web: http://www.mikekohn.net/ * License: GPLv3 * * Copyright 2014-2021 by Michael Kohn * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include "generator/MSP430X.h" // ABI is: // r4 top of sta...
b456ff8c366d4e04521fb26e2e9b1e34a05d3aef
3e6e683ac828769030334bf775a770ac4f0199d4
huichen/hiphop-php
/src/runtime/base/file/socket.cpp
C++
cpp
4,518
permissive
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) | +---------...
b96b02bc1d7419fe27f5cc007b26913850f2aaa9
712601651cf82e6a216d724139808eef25e24d56
genericx64/ZOS
/src/Zenith/Utils/VideoRep.CC
C++
cc
1,400
permissive
public I64 VideoRep(Bool full=TRUE) {//List available VBE modes as indicated by the BIOS. Show current mode; I64 i, mode_count = 0; CVBEModeShort *mode; if(full) { "\nVBE Version %X.%X\n\n", sys_vbe_info.version.u8[1], sys_vbe_info.version.u8[0]; "$$PURPLE$$Manufacturer $$FG$$: $$BLACK$$%s$$FG$$\n", sys_v...
1bfb59e1ed48db3ab8af96b7245d89cfc797edf1
99cccc1e1c88b3b2159f249c4c3103a3b0f115fa
fuaq/Paddle-Lite
/lite/api/paddle_api_test.cc
C++
cc
5,912
permissive
// Copyright (c) 2019 PaddlePaddle 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...
f95ee8eb4567eca97f278b0b7d6da592759f33d5
6b109396c34658fe4ed705431a37f7a84ee3099d
longstl/mus12
/_Library/_Include/boost/preprocessor/dec.hpp
C++
hpp
920
no_license
# /* ************************************************************************** # * * # * (C) Copyright Paul Mensonides 2002. # * Distributed under the Boost Software License, Version 1.0. (See # * accompanying file LICENSE_1_0.txt...
7d39533f2eb2c9bd8a5e1a8d65492f3c9f74b1a9
1ae0443bb8b9a19e6faba199397ada8343f8a87b
y11en/qqrobot
/mypcqqplg/mypcqq_dlport_raw.cpp
C++
cpp
23,887
no_license
#include "mypcqq_dlport_raw.h" /// \brief 根据提交的QQ号计算得到页面操作用参数Bkn或G_tk` char * Api_GetGtk_Bkn(char * 响应的QQ) { return ((char * (__stdcall *)(char * 响应的QQ))_dll__funs[0])(响应的QQ); } /// \brief 根据提交的QQ号计算得到页面操作用参数长Bkn或长G_tk` char * Api_GetBkn32(char * 响应的QQ) { return ((char * (__stdcall *)(char * 响应的QQ))_dll__funs[1])(响...
279320d49eac78b858a3a8f0d43a67903a602a1f
2ec257b8c5cd212f170744d195f5cf728f32e20c
Volentix/volentix_contracts
/vdexgateway/vdexgateway.cpp
C++
cpp
10,512
permissive
#include "vdexgateway.hpp" #include "../vdexdposvote/vdexdposvote.hpp" void vdexgateway::regaccount(name account) { require_auth(account); assign_addresses(account); } void vdexgateway::assign_addresses(name account) { auto iter = currencies.begin(); while (iter != currencies.end()) { if (iter->is_active) { ...
7290a71100c233c0b12c7366868864dc9f5ce519
9d9763b18083c9598301d702f2bfe5d1a9ec65e6
kangkoilxu/SmartThermometer
/protocol.cpp
C++
cpp
58,544
no_license
/**********************************Copyright (c)********************************** ** 版权所有 (C), 2015-2020, 涂鸦科技 ** ** http://www.tuya.com ** *********************************************************************************/ /** * @file protocol.c * @author 涂鸦综合协议开...
3a051e695f50646aa7f696a3a81dce4f880e2acb
4b2a3b3becbf1964ef6e4fb3f0c9cb5be6c7ca45
Alexzerntev/C-Cpp-Projects
/Project/project_3/clustering/cluster_insert.hpp
C++
hpp
8,299
no_license
#ifndef CLUSTER_INSERT_HPP #define CLUSTER_INSERT_HPP #include <string> #include <iostream> #include <vector> #include <algorithm> #include "./cluster.hpp" #include "./cluster_helpers.hpp" #include "../common/random_generator.hpp" #include "../common/metrics.hpp" #include "../common/enums.hpp" #include "../common/argu...
8ae460ea30b4a109609fb4fc068faadba61131a5
21caabcb62471592fddfd2d8b25b3b234a86092a
sfpgmr/sfmf2
/sfmf2/source/output_agent.cpp
C++
cpp
10,641
no_license
/* ============================================================================== This file is part of the async Copyright 2005-10 by Satoshi Fujiwara. async can be redistributed and/or modified under the terms of the GNU General Public License, as published by the Free Software Foundation; either version 2 of the L...
861ba35f3e3f90d6b60e7c85ebd9a5be769187da
f26bd0118ed3e5befa9166f5aacf2d95254a436a
judewang/paicoin
/src/wallet/test/vote_tests.cpp
C++
cpp
48,066
permissive
// // Copyright (c) 2017-2020 Project PAI Foundation // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // #include "wallet/test/wallet_stake_test_fixture.h" #include <boost/test/unit_test.hpp> #include "validation.h" #include "...
fa5eeac9968a95a13425de56101fdf122c0bcf77
9f46e630d3d4d9c210f55089a291c62521d33efa
dhivyadharshin/pytorch
/torch/csrc/distributed/c10d/reducer.hpp
C++
hpp
25,978
permissive
#pragma once #include <atomic> #include <memory> #include <mutex> #include <tuple> #include <unordered_map> #include <vector> #include <ATen/core/ivalue_inl.h> #include <c10/macros/Macros.h> #include <c10/util/intrusive_ptr.h> #include <c10d/ProcessGroup.hpp> #include <c10d/Utils.hpp> #include <c10d/comm.hpp> #includ...
ca58709d92bdd40a5883d6da40714eb2e67df978
9f6ee90b66bb6f8ea4e65cfe7849ca257f30039e
jtlap/nt2
/modules/core/base/unit/bitwise/scalar/rror.cpp
C++
cpp
1,889
permissive
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
ac401c3c98d26490aad500098c6e22c092cb876e
19f0614de2ede9538f51fac322bdfb77a24b8e7f
JulienDaoust/ZeldaPinball
/Sources/DLL/Arbre/Visiteurs/VisiteurLireXML.cpp
C++
cpp
5,208
no_license
////////////////////////////////////////////////////////////////////////////// /// @file FacadeModele.h /// @author Loic Sauvageau /// @date 2014-11-01 /// @version 1.0 /// /// @addtogroup inf2990 INF2990 /// @{ ////////////////////////////////////////////////////////////////////////////// #include "VisiteurLireXML.h"...
4b9348a501ae46d9acf832173161d7143836ae57
c14414919478accf1632b17a31f24bad0d7755fd
hanke-pison/AT_campus
/arduino/rear_wheel/HP_Brake.cpp
C++
cpp
4,029
no_license
#include "HP_Brake.h" namespace HP { void Brake::begin() { pinMode(_pin, OUTPUT); digitalWrite(_pin, LOW); TCCR2A = _BV(COM2A0) | _BV(COM2B1) | _BV(WGM20); TCCR2B = _BV(WGM22) | _BV(CS22)| _BV(CS21)| _BV(CS20); // OCR2A = _output_ocr_max; OCR2B = 4; } void Brake::end() { ...
64924a9bac59a645100a63fff6a78a6f7df2a1b5
5e76058e277ec5ac754ffc7a17ffcc8e695c4613
Plourde-Research-Lab/xictools
/wrspice/src/fte/linear.cc
C++
cc
6,919
permissive
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
ba4a6ca92f346e0b770f472b58185c624eb54a99
768b2c66e87e9bb442defce1f2acca6a71699e3a
GeorgyZhou/Leetcode-Problem
/lc475.cpp
C++
cpp
587
no_license
class Solution { public: int findRadius(vector<int>& houses, vector<int>& heaters) { if (heaters.size() == 0) return 0; sort(houses.begin(), houses.end(), less<int>()); sort(heaters.begin(), heaters.end(), less<int>()); int index = 0, radius = 0; for (int i = 0; i < houses.si...
4d0d1ffba6ca12af222889457e4ae59cc2b94d32
697b7e60cd7d63fa5b082cf591e4dcfe8fa53716
xkmld419/learning
/src/src_pay/ActiveAllocateBalance.cpp
C++
cpp
28,115
no_license
#include "ActiveAllocateBalance.h" #include "AllocateBalanceSql.h" #include "errorcode.h" #include "ABMException.h" #include "LogV2.h" #include "PublicConndb.h" #include "errorcode_pay.h" static vector<ReqPlatformSvc *> g_vReqPlatformSvc; static vector<ReqPlatformSvc *>::iterator g_itr1; sta...
9fdae6b0a611cd5a0b249071582d4b50976dba88
c62a7a0febc0a4999f3949dc781667eb32cd3de0
jutyy/Fast-RTPS
/src/cpp/fastdds/topic/DataWriter.cpp
C++
cpp
3,371
permissive
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
7ed0c8331f17d4101628581101faaeb675e5a83d
7844e2883739d2c89e5e872f861e38d092a3f97c
Treeeater/chrome_bindings
/V8Attr.cpp
C++
cpp
7,471
no_license
/* This file is part of the WebKit open source project. This file has been generated by generate-bindings.pl. DO NOT MODIFY! 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...
7d987312548aa40ad87a2045e625785a53d592f8
6d7e2125802cc7c1c9ea9ed6519f2332a3dd9a98
jonuts/newsbeuter
/src/itemlist_formaction.cpp
C++
cpp
32,224
permissive
#include <controller.h> #include <itemlist_formaction.h> #include <view.h> #include <config.h> #include <logger.h> #include <exceptions.h> #include <utils.h> #include <formatstring.h> #include <listformatter.h> #include <cassert> #include <sstream> #include <langinfo.h> #define FILTER_UNREAD_ITEMS "unread != \"no\""...
29c780a83a0cb5dd3ab0ac7925ca73cfbe41d288
b2ec5edf2fce1e9a4003f261df1c380f7b1192d4
benelot/SillyTanks
/legacy/lord-of-fire-and-ice-read-only/src/vector.hpp
C++
hpp
5,325
no_license
/** * vector.hpp * * Author : Balz Caflisch, Nico Colic, Jan Meier, Henry Raymond, Fatih Erol * Date : 07.05.2011 * * All rights reserved. */ #ifndef GRAPHICSLAB_VECTOR_HPP #define GRAPHICSLAB_VECTOR_HPP // Includes #include "defs.hpp" #include "exception.hpp" GRAPHICSLAB_NAMESPACE_BEGIN /** * Vec...
a310b760b3bc13d39aa6543a96d69b5ec9c7c8ac
21ab546fb7dbabe36bad0fc8d58a7ae6ec9d09cc
j10kay/HowUFlix
/Movie.cpp
C++
cpp
1,077
no_license
#include <iostream> #include <string> #include <vector> #include <iomanip> using namespace std; #include "Video.h" #include "Movie.h" Movie::Movie() {//constructor //initializing //using video's number = 0; } Movie::Movie(string Name, string Type) {//contructor VideoName = Name; VideoType = Type; } void Movie::...
48f8f076436092404bd66d8452e27a4f1fe8a318
e7cea7a3d0672139a736b5d1887cd3cbb39d0124
zhaonaiy/MaxDB_GPL_Releases
/7.6.00.32/V76_00_32/MaxDB_ORG/sys/src/SAPDB/XML/IndexingDeclarationLib/XMLIDMLib_HtmlTemplate_DocClass_Show.cpp
C++
cpp
21,460
no_license
/**************************************************************************** module : XMLIDMLib_HtmlTemplate_DocClass_Show.cpp ------------------------------------------------------------------------- responsible : Daniel Kirmse special area: description : last changed: 2001-07-13 9:26 see ...
dc3617ae88795e9556ff1912e89edb1fd211d0c1
5ca3807c2b5377a3b81b3eafe3d1d1caf4568f85
ccdxc/logSurvey
/data/crawl/git/new_hunk_1421.cpp
C++
cpp
936
no_license
} } } cleanup_and_return: string_list_clear(&a_by_dst, 0); string_list_clear(&b_by_dst, 0); return clean_merge; } static struct object_id *stage_oid(const struct object_id *oid, unsigned mode) { return (is_null_oid(oid) || mode == 0) ? NULL: (struct object_id *)oid; } static int read_oid_strbuf(struct merg...
83629210b5e49f9423ce3af769a49ead68b2c7cb
2cbb66d8229f6957a7d551c57a6438884dfda251
fathat/game-src
/src/shared/GL/Types.cpp
C++
cpp
8,359
no_license
#include <fstream.h> #include "types.h" #include <stdio.h> #include <stdarg.h> std::string GetRelativeDirectory( char* WorkingDirectory, char* In ) { //Find out where the dir is relative to this int CommonDirLength=0; int si=0; char* file = In; char* commondir = WorkingDirectory; bool NotCom...
c1463f66ab2f6c2e966da387ad861f75c735e624
7f730475a0ec0f2885ec398d6c7292a632329935
KilianWernerVisualize/TaskMergeTrees
/code/src/DataManager.cpp
C++
cpp
18,389
permissive
#include "DataManager.h" #include "Log.h" #include <boost/algorithm/string/predicate.hpp> #include <glm/glm.hpp> #include <vtkImageData.h> #include <vtkXMLImageDataReader.h> #include <vtkPointData.h> /** * @brief Base class for regular grids. */ class RegularGridManager : public DataManager { public: virtual ...
d6e839509353c96e3c62dbd48c0802bb887e7084
5577430f61c6f4c7d1dafd9ffc468536c1c4baec
devjsc/ledger
/libs/ledger/tests/chain/fake_block_packer.cpp
C++
cpp
1,711
permissive
//------------------------------------------------------------------------------ // // Copyright 2018-2019 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 // // ...
326f04d57c48d639b8a90b234549bfc2db0e7f73
eddda8e1853e2af405d259403759e093196963c7
cea56/chromium
/content/browser/service_worker/service_worker_client_utils.cc
C++
cc
29,300
permissive
// Copyright 2015 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/service_worker/service_worker_client_utils.h" #include <algorithm> #include <memory> #include <tuple> #include <utility> #incl...
892ff3b7d055310a5a0a15e16dc7e59c285e1ea3
1a479f471f50b9a714c8c7708f37ab6634e57617
skvl/TermOx
/demos/game_of_life/files_box.hpp
C++
hpp
1,973
permissive
#ifndef TERMOX_DEMOS_GAME_OF_LIFE_FILES_BOX_HPP #define TERMOX_DEMOS_GAME_OF_LIFE_FILES_BOX_HPP #include <string> #include <signals_light/signal.hpp> #include <termox/painter/color.hpp> #include <termox/widget/layouts/vertical.hpp> #include <termox/widget/pipe.hpp> #include <termox/widget/widgets/confirm_button.hpp> ...
e1611c6e3ebada4be780bb76ac2f004959d3348f
68db3a8ed40bc1e3cf8d8d45f19c5daa11119a1f
christophrico/Oregon-State-CS
/Intro-To-CS-II/project3/main.cpp
C++
cpp
952
no_license
/* Name: Christopher Rico OSU ID: 933239746 Date: 8/6/17 Assignment: CS 162 - Project 3 Description: client code for fantasy game program. Creates fantasyGame object, asks user if they would like to play or exit, and hands off gameplay to fantasyGame compile with ...
6700e9f8a11b65c6a97a8c7e03bf70a57fedfbd9
1db5d7c20b54157a9267e5272210cfd445ce6be8
matt-attack/GWEN
/gwen/src/inputhandler.cpp
C++
cpp
12,140
permissive
/* GWEN Copyright (c) 2010 Facepunch Studios See license in Gwen.h */ #include "Gwen/InputHandler.h" #include "Gwen/Controls/Base.h" #include "Gwen/DragAndDrop.h" #include "Gwen/Hook.h" #include "Gwen/Platform.h" #include "Gwen/ToolTip.h" #define DOUBLE_CLICK_SPEED 0.5f #define MAX_MOUSE_BUTTONS 5 using namespac...
2419aeed9b62dbf62c3b2766cf78594f16d575e5
b827647b15316f3efd3cfc4aeb5886153eb03fea
Logomorph/Chorus-OGL
/ChorusOGL/Game/main.cpp
C++
cpp
1,462
permissive
#include "stuff.h" int main(int argc, char *argv[]) { Debug::Init(); Debug::RedirectConsole(); Debug::ShouldLog(true); //_putenv("SDL_VIDEO_WINDOW_POS=center"); //_putenv("SDL_VIDEO_CENTERED=1"); chApp = new ChorusApp("Ludum Dare prep",SCREEN_WIDTH,SCREEN_HEIGHT,FULLSCREEN); chApp->bubble(); //Stea...
c859a876e3301c9e629a7a13e8449fa1170743d2
7d1c8182e33a7f4582b00951308577e2cd0acb8b
styanddty/ComputeLibrary
/src/runtime/CL/functions/CLL2NormalizeLayer.cpp
C++
cpp
3,371
permissive
/* * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * ri...
90b8e19a057837aabf866ae05f9e9553063cea72
7f87497792407f9c7273dc241fd651ee8c3ff16c
Segs/SegsEngine
/plugins/formats/resource/importers/bitmap/resource_importer_bitmask.cpp
C++
cpp
5,199
permissive
/*************************************************************************/ /* resource_importer_bitmask.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
4be321129860a8440b5cf968b3bccae39695efe2
31b07b824e217a2f43faadcc388c772c67e8bd64
baldurk/renderdoc
/util/test/demos/vk/vk_structured_buffer_nested.cpp
C++
cpp
11,358
permissive
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2019-2023 Baldur Karlsson * * 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...
c06acb46f9c8f9758dd2749a8a81001cff055772
493979c4012cd1e1520a2d1e3454280b7a9b725c
ZhengzhenZhang/SuperPost
/PostFile/DlgDeal.cpp
C++
cpp
4,568
no_license
// DlgDeal.cpp : 实现文件 // #include "stdafx.h" #include "PostFile.h" #include "DlgDeal.h" #include "afxdialogex.h" // CDlgDeal 对话框 IMPLEMENT_DYNAMIC(CDlgDeal, CDialogEx) CDlgDeal::CDlgDeal(CWnd* pParent /*=NULL*/) : CDialogEx(CDlgDeal::IDD, pParent) , m_nRadio(0) { m_bPrgcing = false; } CDlgDeal::~CDlgDeal() { }...
c507c565ad3ba5a6ef70fdaeebffe5c38829b71d
f6ba1a6dd4942e693395046e6fa1c9d435730f80
ykoh42/CPP-Modules
/Module 04/ex01/RadScorpion.cpp
C++
cpp
571
no_license
#include "RadScorpion.hpp" RadScorpion::RadScorpion(void) : Enemy(80, "RadScorpion") { std::cout << "* click click click *" << std::endl; } RadScorpion::RadScorpion(const RadScorpion& other) : Enemy(other) { *this = other; std::cout << "* click click click *" << std::endl; } RadScorpion::~RadScorpion(void) { s...
56228148a62db8fdaf0ed49b4a7b75f77306de61
4efe00b6dc88e866fbfd40333318c253650db656
karunmatharu/Android-4.4-Pay-by-Data
/external/skia/gm/copyTo4444.cpp
C++
cpp
1,492
permissive
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" #include "SkImageDecoder.h" #include "SkOSFile.h" namespace skiagm { /** * Test copying an image from 8888 to 4444. */ class CopyTo4...
66648807e1ffd0a26230bd7ef8409699daf1fe9f
0f4aa3b16c338371faa0b245cf24aaddeb5802bc
luqmanarifin/cp
/SnackDown Online Pre-elimination round A 2017/sntemple.cpp
C++
cpp
742
no_license
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; int a[N], n, h[N]; long long pre(int n) { return 1LL * n * (n + 1) / 2; } int main() { int t; scanf("%d", &t); while (t--) { scanf("%d", &n); long long sum = 0; for (int i = 1; i <= n; i++) { scanf("%d", a + i); su...
c485c160b32c27183c433135d8ccf7e133948ffb
10b5c410b8d26e21f6345202b58742f9f5c16aa5
Len3d/appleseed
/src/appleseed.studio/mainwindow/project/texturecollectionitem.cpp
C++
cpp
3,953
permissive
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2012 Francois Beaune, Jupiter Jazz Limited // // Permission is hereby granted, free of charge, to any person obtaining ...
5dbb539eaaed2e2ffb161528689e0fb8d7adb987
c20bcc7d129ef98f4ed07c7ac3c5682d919d069d
feldspath/procedural_solar_system
/src/noises.hpp
C++
hpp
487
no_license
#pragma once #include "third_party/src/simplexnoise/simplexnoise1234.hpp" #include "vcl/vcl.hpp" struct perlin_noise_parameters { float persistency = 0.35f; float frequency_gain = 2.0f; int octave = 6; float center[3] = { 0.0f, 0.0f, 0.0f }; }; bool displayPerlinNoiseGui(perlin_noise_parameters& parameters); f...
9bcef13de0b711ac834f56780d3a4cde031079de
b729400414183854d80ff9c15f921e0c6bf21230
cubetrain/CubeTrain
/contracts/libc++/upstream/test/std/numerics/complex.number/complex.value.ops/abs.pass.cpp
C++
cpp
1,405
permissive
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------...
4fbc5b818481e7d64cc9388c55fa01529f3c5cb1
4b3590c597bca3af21795ce208425727fb34549f
y44k0v/LightGBM
/src/io/metadata.cpp
C++
cpp
18,265
permissive
#include <LightGBM/dataset.h> #include <LightGBM/utils/common.h> #include <vector> #include <string> namespace LightGBM { Metadata::Metadata() { num_weights_ = 0; num_init_score_ = 0; num_data_ = 0; num_queries_ = 0; weight_load_from_file_ = false; query_load_from_file_ = false; init_score_load_from_f...
38651e7a5d9eeabeead8212da690ad8ac5b4ef60
b0e0300db430d5d30ee6a928fc9561903c3f07ac
QPC-database/aws-sdk-cpp
/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp
C++
cpp
68,877
permissive
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/core/utils/Outcome.h> #include <aws/core/auth/AWSAuthSigner.h> #include <aws/core/client/CoreErrors.h> #include <aws/core/client/RetryStrategy.h> #include <aws/core/http/HttpClient.h> #i...
7b2ad062999f49c769637b8b838e6d026fc50035
21c343ecf2946760c8229b2f49a48e6e58b73a8f
mare023/OOP2
/FullName.cpp
C++
cpp
709
no_license
#include "FullName.h" using namespace std; /* @TODO: Complete the FullName class definition: - add implementation for constructor with parameters - add implementation for operator == - add implementation for get methods */ FullName::FullName() { } FullName::FullName(std::string n, std::string s) { this->name = n; ...
a1d5a647db6135731e507a4ba431ac9208689548
e7723ab3b6ea83c1865f068876322589dad99519
binbin6363/planABC
/code/server/dbp/trunk/src/mysql_msg.cpp
C++
cpp
13,556
no_license
/** * @filedesc: * mysql_msg.h, handle mysql msg * @author: * bbwang * @date: * 2015/11/4 21:52:59 * @modify: * **/ #include "mysql_msg.h" #include "adv_protocol.pb.h" #include "string_util.h" #include "md5.h" #include "constants.h" #include "log.h" #include <sstream> #include <mysql/mysql.h> using namesp...
1491e12a30f15a4539c1f9f74ce50e9949de47c5
dd1f7be1ce80e1863da2fdd7ed342193bea74bce
mknguyen105/Hex-Board-Game
/main.cpp
C++
cpp
1,806
no_license
#include "HexBoard.hpp" using namespace std; int main() { //test 1, red wins int n = 5; HexBoard boardA = HexBoard(n); boardA.markCellAt(0,0, HexBoard::Color::Red); boardA.markCellAt(0,0, HexBoard::Color::Blue); boardA.markCellAt(1,0, HexBoard::Color::Red); boardA.markCellAt(0,...
8a93d1d38794282df1ade78c4955e8126eda3780
a5eabf58d92fca6513b291636160f7f3b9cd193e
SergioHdzReyes/skift-cpp
/sources/test/TestStream.cpp
C++
cpp
762
permissive
#include <cassert> #include "TestFileStream.h" #include <libsystem/Format.h> #include <libsystem/Stdio.h> libsystem::Stream *libsystem::stdin; libsystem::Stream *libsystem::stdout; libsystem::Stream *libsystem::stderr; libsystem::Stream *libsystem::stdlog; int main(int argc, char const *argv[]) { libsystem::stdi...
256969e73ece365a13bebff8ce71f78dcf42a589
aa7c82c3d299af11dd7a78834745046a10954995
mikehelmick/teaching
/uc/computerScience2/spring2014/materials/labs/lab05/main.cpp
C++
cpp
1,805
permissive
#include <iostream> #include <iomanip> #include <fstream> #include <string> #include <sstream> #include <cmath> using namespace std; #include <Scores.h> string getStars(const Scores &s, int min, int max) { int num = s.countScoresInRange(min, max); int numStars = round(num / (float) s.getSize() * 100 / 5); st...
c35cafa2128cb132ee3bda91400668ab88f84f2c
6d9df14b5c480a2ca550453e0945df6f9547bda2
aliosmanulusoy/Probabilistic-Volumetric-3D-Reconstruction
/contrib/brl/bseg/boxm2/ocl/tests/test_weighted_em.cxx
C++
cxx
6,566
no_license
//: // \file // \author Andy Miller // \date 26-Oct-2010 #include <iostream> #include <ios> #include <string> #include <vector> #include <map> #include <algorithm> #include <cmath> #include <testlib/testlib_test.h> #include <testlib/testlib_root_dir.h> #include <vcl_where_root_dir.h> #include <bocl/bocl_manager.h> #inc...
3af5192f4af7ce9c71c0cfb5e06aacd22c09991f
0a0d187fe6d43b8ecccb3fffd4d6987e1fae6956
zxth93/leetcode
/392. Is Subsequence.cpp
C++
cpp
556
no_license
// // 392. Is Subsequence.cpp // leetcode // // Created by R Z on 2017/11/14. // Copyright © 2017年 R Z. All rights reserved. // #include <stdio.h> #include <string> using std:: string; class Solution { public: bool isSubsequence(string s, string t) { if(s.size()==0) return true; int indexT=0, ...
9988eed55f6d2227b47974ccab60ca2c6e10142f
ec3fd98f3aab0d5ca0964d32020cab97550b9eb2
jimmyhuang007/Text-based-Tetris
/src/ABlock.cc
C++
cc
3,158
no_license
#include <iostream> #include <sstream> #include <string> #include <fstream> #include <iomanip> #include <utility> #include <stdexcept> #include <vector> #include <memory> #include "ABlock.h" using namespace std; vector<Coordinate> AbstractBlock::getCoords() { return coords; } void AbstractBlock::setCoords(vector<Co...
c28a9d2b307e2dadd97311a16e5e5b93c922cd70
d540b58beb02432bc627e0acd5312753b8b76abf
gabrieljones/blinks-hexxagon-ai
/game_map_download.cpp
C++
cpp
2,868
permissive
#include "game_map_download.h" #include <blinklib.h> #include <string.h> #include "blink_state.h" #include "game_map.h" #include "game_state.h" #define GAME_MAP_DOWNLOAD_STATE_RECEIVE_METADATA 0 #define GAME_MAP_DOWNLOAD_STATE_DOWNLOAD 1 #define GAME_MAP_DOWNLOAD_METADATA_SIZE 3 #define MESSAGE_MAP_DOWNLOAD 6 // ...
4b12cfac20c9a4c5132ec1cd2fe7d55f47907380
de28a13e412dd937607c53a4baf449c62ad6fad5
andreabduque/padmec-amr
/src/tools/OilProductionManagement.cpp
C++
cpp
1,511
no_license
/* * OilProductionManagement.cpp * * Created on: 14/01/2009 * Author: rogerio */ #include "OilProductionManagement.h" namespace PRS{ OilProductionManagement::OilProductionManagement(){} OilProductionManagement::OilProductionManagement(string path, double iov,double TotalInjectionFlowRate, bool restart)...