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
bddb2cfc0f6ab531a898cd3871f38c5cbcf84f62
2d34f022d04a9a39d3b81728bee0669fca2f8cf9
Csineneo/Vivaldi
/chromium/components/webdata_services/web_data_service_wrapper.cc
C++
cc
10,648
permissive
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/webdata_services/web_data_service_wrapper.h" #include <memory> #include "base/bind.h" #include "base/callback.h" #include "base/fea...
e2ec66802a34cce97191ba6fb52da23779a4e4ee
cfb1ededbabac9ef857b1cfead37a18b0438b7f2
jdrouhard/toolbox
/test/compile_time_string_test.cpp
C++
cpp
392
permissive
#include "compile_time_string.h" #include <iostream> int main() { constexpr auto s = jd::literal("testing"); constexpr auto s2 = s + jd::literal(" a thing!"); std::cout << s.c_str() << ": " << s.size() << std::endl; std::cout << s2.c_str() << ": " << s2.size() << std::endl; static_assert(s == "t...
5271d391112649bfcb487738dabee26685b22ca3
4917983c0b293fe17046a38cef81d456ecd2d83f
aogaki/PolarimeterTest
/Simulation/src/GBSPhysicsList.cpp
C++
cpp
1,170
no_license
#include <G4EmPenelopePhysics.hh> #include <G4EmExtraPhysics.hh> #include <G4DecayPhysics.hh> #include <G4RadioactiveDecayPhysics.hh> #include <G4HadronElasticPhysicsHP.hh> #include <G4HadronPhysicsShielding.hh> #include <G4StoppingPhysics.hh> #include <G4IonQMDPhysics.hh> #include <G4IonElasticPhysics.hh> #include <G4...
7a2638c5e8eae93176ab4787d30804350a1b6d54
dc4c7e9e7dce6cec4fa8d17520999eda0fe9e4f7
skydeveloper9/td
/tdnet/td/net/SslStream.cpp
C++
cpp
17,016
permissive
// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2020 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "td/net/SslStream.h" #if !TD_EMSCRIPTEN #include "t...
4fbe22a0ffdbe4e536fca5f176af81e01cdb61e7
09bc859c4ef05c41bcefee3e87a33c2718a172f9
lintcoder/leetcode
/src/112.cpp
C++
cpp
643
no_license
bool hasPathSum(TreeNode* root, int sum) { if (root == NULL) return false; return dohasPathSum(root, 0, sum); } bool dohasPathSum(TreeNode* node, int subsum, int sum) { int val = node->val; TreeNode* lnode = node->left; TreeNode* rnode = node->right; ...
dd7378e745340cdb4cc31142fab4a2aa91b9e0b7
98627b49d944d3419f6d971097c417e93927d557
treestreamymw/nrn
/src/nrnpython/nrnpy_p2h.cpp
C++
cpp
28,413
permissive
#include <../../nrnconf.h> #include <stdio.h> #include <InterViews/resource.h> #include <nrnoc2iv.h> #include <classreg.h> #include <nrnpython.h> #include <hoccontext.h> #include "nrnpy_utils.h" extern "C" { #include "parse.h" extern void hoc_nopop(); extern void hoc_pop_defer(); extern Object* hoc_new_object(Symbol*...
2d34e4309c423a5b35c1528447ef6a15cc3dd00c
83dd196f20e198eb8a487e3352713e8a930aacfe
Baltoli/llvm
/lib/Transforms/Scalar/LoopRerollPass.cpp
C++
cpp
63,525
permissive
//===- LoopReroll.cpp - Loop rerolling pass -------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
6a134ecfac35c22195b025d8f1b47873fb2b06ec
df2881c3a74e18b916358ad3dd6714c93e5b639e
XinweiHsu/FastCAE_Ubuntu20
/Code/Gmsh/GmshModule.cpp
C++
cpp
3,485
permissive
#include "GmshModule.h" #include "python/PyAgent.h" #include "mainWindow/mainWindow.h" #include "mainWindow/SubWindowManager.h" #include "DialogSurfaceMesh.h" #include "DialogSolidMesh.h" #include "GmshPy.h" #include "GmshThread.h" #include "moduleBase/processBar.h" #include "GmshThreadManager.h" #include "Di...
08b9ce3dd53f698aafa1b9ed4d0fb83f29edb472
783c4bb6572d119f57e1b72428e77e9d3004ba2f
segafan/nulldcsme
/nulldc/plugins/ImgReader/mds.cpp
C++
cpp
7,719
no_license
#include "cdi.h" #include "mds_reader.h" #include "common.h" SessionInfo mds_ses; TocInfo mds_toc; DiscType mds_Disctype=CdRom; struct file_TrackInfo { u32 FAD; u32 Offset; u32 SectorSize; }; file_TrackInfo mds_Track[101]; FILE* fp_mdf=0; u8 mds_SecTemp[5120]; u32 mds_TrackCount; u32 mds_Re...
8679b543dcdbc3ca99affcc1bd6b7ec676614a2f
0eb5ec6f343ab7ef689178ede0145576d11abb1f
Japroriple/chromium
/chrome/browser/sync/glue/data_type_controller.cc
C++
cc
991
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" #include "chrome/browser/sync/glue/data_type_controller.h" #include "sync/uti...
650152ad6237c309971f63a44b53b789251ef3e5
f8af9a4d9fd136d326cfa999aa85983e122ba9d5
HongJungWan/KSA
/Module05. 영상처리/Wavelet_Transform/Class/WaveletTransformView.cpp
C++
cpp
3,786
no_license
 // WaveletTransformView.cpp: CWaveletTransformView 클래스의 구현 // #include "pch.h" #include "framework.h" // SHARED_HANDLERS는 미리 보기, 축소판 그림 및 검색 필터 처리기를 구현하는 ATL 프로젝트에서 정의할 수 있으며 // 해당 프로젝트와 문서 코드를 공유하도록 해 줍니다. #ifndef SHARED_HANDLERS #include "WaveletTransform.h" #endif #include "WaveletTransformDoc.h" #include "Wavel...
df81920b540ebfd484785a80c218cb273b34d9d9
6aa5e029e6d23a941efa8acc386439ca39bc9c9c
taogashi/kitti_reader
/src/KittiReader.cpp
C++
cpp
6,864
no_license
#include "kitti_reader/KittiReader.h" #include <iomanip> #include <sstream> #include <fstream> #include <string> #include <chrono> KittiReader::KittiReader(): kitti_file_id_len_(6), finished_(false), frame_index_(0), is_cloud_read_(false), is_image_read_(false), is_calib_read_(false), is_pose_read_(false) { } ...
e006faa39c701e2737c0b1847aa1ddc105179ba6
64c7a5915eff6ef68f6377a999dc4e896ca6272e
mokerjoke/boost-svn
/boost/geometry/algorithms/area.hpp
C++
hpp
7,436
permissive
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library // (ge...
fd0893b807050124c66ce96fc5c281357a4b4699
4f6c680879706f4597c5e7233b386d5c6aa661f7
ytsmash/AtCoder-Problems
/ABC214/B.cpp
C++
cpp
646
no_license
/** * author: ytsmash * created: 14.08.2021 21:05:10 **/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(x) x.begin(), x.end() const long double EPS = 1e-10; const long long INF = 1e18; const long double PI = acos(-1.0L); using ...
60404b8f4f02628e68ae52c8fb24493bd7061b74
869d8a0e48c8cfc400e336bda6cb916421fe0532
kociap/Discordpp
/source/main.cpp
C++
cpp
433
permissive
#include <QApplication> //#define _SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING // Doesn't silence STL4009 warnings caused by dependencies #include "discord/auth.hpp" #include "driftuistyle.hpp" #include "loginwindow.hpp" #include "mainwindow.hpp" int main(int argc, char* argv[]) { QApplication app{argc, argv}...
9c8a5cb368cf0d85dd47d50d78693a496635fe46
940cff9f5183f1051abade05a7b404c479df0b4a
louisheery/msc-cs
/cpp/mailpunk/UI.cpp
C++
cpp
4,709
no_license
#include "UI.hpp" using namespace std; using namespace finalcut; void UI::refreshMailList() { auto oldMailDialog = mailDialog; mailDialog = new FDialog(app); app->setMainWidget(mailDialog); app->setActiveWindow(mailDialog); if(oldMailDialog) oldMailDialog->close(); mailDialog->setText("INBOX"); mailDialog->z...
0f5e4381af349a520853298f59b00ac62674d942
affe1164daedb03278933b558ed550484c0ee202
Changcumt/algorithm-demo-cpp
/learncpp/demo.cpp
C++
cpp
233
no_license
// // demo.cpp // learncpp // // Created by 常庆林 on 2018/5/1. // Copyright © 2018年 常庆林. All rights reserved. // #include <iostream> #include <string> using namespace std; void tt(){ cout<<"啊啊啊"<<endl; }
263d073260fc6444bdaab6354c7ec1407ebac3fd
7b7c15c23dde7eb26ad9be4445984f95ef1edd43
2023PHOENIX/CP
/CodeForces_CodeChef/Day 3/B_Suffix_Structures.cpp
C++
cpp
1,210
no_license
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define inf 1e9 #define INF 1e18 #define mod 10000007 #define MOD 1000000000 int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string a, b; cin >> a >> b; int hash_a[26] = {0}; int hash_b[26] = {0}; for (a...
dcf005ce1e033b1ba96cae4adff7759032b3edb7
034c4d6c614b805816c5115b694688098c53a6c5
XUWeijiang/ChmBrowser
/ChmCore/lzx.cpp
C++
cpp
32,626
no_license
/* $Id: lzx.c,v 1.5 2002/10/09 01:16:33 jedwin Exp $ */ /*************************************************************************** * lzx.c - LZX decompression routines * * ------------------- * * ...
3c3e56daac1279961516f6a7bb439a89af50a4a5
4eabc7f59b5401f89173817eb5db4b68d6ba738e
ujtakk/fixednets
/src/function/activation.cpp
C++
cpp
1,785
permissive
#ifdef _ACTV_HPP_ #include <cmath> #include <limits> template <typename T> void relu(Mat3D<T>& output, Mat3D<T>& input) { const int n_in = input.size(); const int in_h = input[0].size(); const int in_w = input[0][0].size(); #ifdef _OPENMP #pragma omp parallel for #endif for (int n = 0; n < n_in; ++n) ...
178d9a4411dd30a87c471a7278a7fbce0e7edc38
5c4e41d7d1b93ff0a0e954dafa72bc8fa985e47b
mlbrock/MlbDev
/SockLibX/recvfrom.cpp
C++
cpp
2,481
permissive
/* *********************************************************************** */ /* *********************************************************************** */ /* Network Programming Support Library (NPSL) Source Module */ /* *********************************************************************** */ /* File Name ...
552e01897403c51f09e89bbc4db3f3ada7ec833c
7381233a273abb77f288003e828b68a260b472e6
jckelley/regex-engine
/re2-2225f94df8ec/Gabe/re2benchmarker.cpp
C++
cpp
3,647
no_license
#include <iostream> #include <re2/re2.h> #include <vector> #include <fstream> /*clock_gettime*/ #include <time.h> /*timespec*/ #include <sys/time.h> /*String functions*/ #include <string.h> using namespace std; //ms long getDiff(timeval start, timeval stop) { return 1000 * (stop.tv_sec - start.tv_sec) + stop.tv_usec...
0968a831f2e5647ae4a63297195a19846edf1715
8c95d3da0a707ed3efc79a7bc9ae86a277ed4e5d
asd0012/ITSA
/ITSA/MM31.cpp
C++
cpp
327
no_license
#include<stdio.h> #include<iostream> using namespace std; int main() { int t; long long i,sum,num; //freopen("input.txt","r",stdin); cin>>t; while(t--) { cin>>num; sum=1; for(i=2;i<=num;i++) sum*=i; cout<<sum<<endl; } return ...
146b414243bae88fb51a32b9b25f4c10c0e1933b
10751c89f9a4eae7d7b171aa796a9b988e72cd7f
wkevin/OpenCV3-Intro-Book-Src
/OpenCV2-examples/2-bonus-src/17.【跟踪分割视频中运动的物体】segment_objects/视频跟踪分割运动中的物体/17_segment_objects.cpp
C++
cpp
3,956
no_license
//--------------------------------------【程序说明】------------------------------------------- // 程序说明:《OpenCV3编程入门》OpenCV2版书本附赠示例程序17 // 程序描述:跟踪分割运动中的物体 // 测试所用操作系统: Windows 7 64bit // 测试所用IDE版本:Visual Studio 2010 // 测试所用OpenCV版本: 2.4.9 // 2014年11月 Revised by @浅墨_毛星云 //-----------------------------------------------...
37c14f6914d4d6cfaaa7897c5b57c69e7bd287d2
2651755f144039cb7c0e2329b652cd4ab1364060
felixwqp/Hash-Table-Dictionary
/main.cpp
C++
cpp
957
no_license
/*main.cpp*/ #include <iostream> #include <cstdlib> #include <string> #include <fstream> #include "header.h" using namespace std; int main () { //Main int choice; //variable for switch case interface Hash hashObj; //Hash class object, creates table and reads in file info hashObj.printTable (); //Prints ta...
e8937ae6a7261b78419bc4d51fd9ad8f75396056
a033b986b4b5ada3d421d9b1cc499de15f5a0c5d
AriadneFP/ariadne
/llvm-2.7/lib/Transforms/Ariadne/FunctionCall.cpp
C++
cpp
17,034
permissive
/* * FunctionCall.cpp * * Created on: Feb 15, 2011 * Author: thanh * * Inject function call in main function of a module. */ #include "llvm/Pass.h" #include "llvm/Function.h" #include "llvm/Module.h" #include "llvm/DerivedTypes.h" #include "llvm/Instructions.h" #include "llvm/Support/raw_ostream.h" #include "llv...
22481a91ed3faaab05057ea745814eac4b2a8534
632e7db25b58927ddee5d7d13f12cded0fff8b19
adityai/europa
/src/PLASMA/Utils/base/PSEntity.hh
C++
hh
616
no_license
#ifndef PSENTITY_H_ #define PSENTITY_H_ #include <string> namespace EUROPA { typedef int PSEntityKey; class PSEntity { public: virtual ~PSEntity() {} virtual PSEntityKey getEntityKey() const = 0; virtual const std::string& getEntityName() const = 0; virtual const std::string& getEntityType() const = 0; v...
2b0399711109ea58d7b1f45a7cefa730d0bd152c
7416bd44811a25f7e1204d86e6cfb35d311fa3bf
khiav223577/log-analysis
/RubyInterpreter.cpp
C++
cpp
2,627
no_license
#ifndef ___RubyInterpreter_cpp__ #define ___RubyInterpreter_cpp__ #ifndef _WIN32 //Fix redefinition timeval in linux #define RUBY_MISSING_H 1 #endif #include <ruby.h> #define rb_hash(HASH, STRING) rb_hash_aref(HASH, rb_symbol(STRING)) #define rb_const(NAME) rb_const_get(rb_cObject, rb_intern(NAME)) #define rb_sy...
2aa21f447206805434734605a639076483736c59
a369d84a77e1a061e0794aab47898e4115272ced
Meaha7/DSA-Marathon
/Trees/shortest_Dist_between_2_nodes.cpp
C++
cpp
2,228
no_license
#include<iostream> #include<queue> using namespace std; class Node { public: int data; Node* lchild; Node* rchild; Node(int d=0) { this->data=d; this->lchild=NULL; this->rchild=NULL; } }; Node* create_tree(No...
32f05fbb19f003217388d71746d2e2b7541bbebe
f2945241c1aa2e7a0d13b84e9fbeb713f714ba64
quan-dao/ECN-COVIS
/ecn_calib-master/main/posecomputation.cpp
C++
cpp
1,986
permissive
#include <visp/vpHomogeneousMatrix.h> #include <visp/vpPoint.h> #include <visp/vpSubColVector.h> #include <visp/vpSubMatrix.h> #include <visp/vpFeaturePoint.h> #include <visp/vpFeatureBuilder.h> #include <visp/vpExponentialMap.h> #include <visp/vpAdaptiveGain.h> #include <visp/vpIoTools.h> #include <fstream> #include...
0e4d93ac32e90d3d50096b9aa8184049bbf7f7f8
217d1833c4c65a36c292afdb3f2a27e0efa2ccea
mc-imperial/sctbench
/benchmarks/safestack/relacy/slab_allocator.hpp
C++
hpp
4,102
permissive
/* Relacy Race Detector * Copyright (c) 2008-2010, Dmitry S. Vyukov * All rights reserved. * This software is provided AS-IS with no warranty, either express or implied. * This software is distributed under a license and may not be copied, * modified or distributed except as expressly authorized under t...
d2b2d2ad5bda17c457f2ede239960aa3c0ff935c
d9bfaeb1af6882ec8bcba93a66e2125ababd279a
yashparmar15/Cpp-Codes
/Unique_Morse_Code_Words.cpp
C++
cpp
1,707
no_license
// International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-", "b" maps to "-...", "c" maps to "-.-.", and so on. // For convenience, the full table for the 26 letters of the English alphabet is given below: // [".-","-...","-.-.",...
fcf53c187788dba582149170f5f6bcb4e7394599
c077b2ece9163c72ce2d4e5c53d93e1ca457dfd5
XifeiNi/chromium
/chrome/browser/chromeos/login/lock/screen_locker.cc
C++
cc
33,731
permissive
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/login/lock/screen_locker.h" #include "ash/public/cpp/ash_switches.h" #include "ash/public/cpp/login_screen.h" #include ...
f98af5b3b3737e4d1f74a85e84932643cbd48dff
90b0e77e95066f164b95e9595ec7f47e616a1b2e
blockspacer/nodenative
/test/Future/finally_test.cpp
C++
cpp
14,245
permissive
#include "native/native.hpp" #include "gtest/gtest.h" #include <thread> TEST(FutureFinallyTest, FromAsyncResolved) { bool calledAsync = false; bool calledFinally = false; bool calledFinallyThen = false; std::thread::id mainThreadId = std::this_thread::get_id(); std::shared_ptr<native::Loop> currLoop = nati...
d0917654679d05495e064d8fcd17c5da24e65b44
f6578951e946adeae363039d20c03cb808fa9685
svarvel/browser-android-tabs
/content/browser/background_fetch/background_fetch_scheduler.cc
C++
cc
13,213
permissive
// Copyright 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 "content/browser/background_fetch/background_fetch_scheduler.h" #include "base/guid.h" #include "base/stl_util.h" #include "content/browser/back...
1d4bd7bf736cc83900317375eabdbf5f21d8b2e4
ad6b4e2bdfe3409b123f84ed4b2f6229bd0e3543
lulyon/poj-archive
/emperorlu/2159/3026081_WA.cc
C++
cc
592
permissive
#include<iostream> #include<string> using namespace std; char a[110],b[110]; int ac[27],bc[27]; int main() { int i; while(cin>>a>>b) { memset(ac,0,sizeof(ac)); memset(bc,0,sizeof(bc)); for(i=0;a[i];i++) ac[a[i]-'A']++; for(i=0;b[i];i++) ...
d12b8b144e7e02ad34fd6204a765902d6836ede8
8afc7b8d45d7fc7d2caf1d6b643e258a8c463ba6
darkberg/bigassm
/src/opcodes.hpp
C++
hpp
320
no_license
#pragma once #include "assembler.hpp" #include "rv32i_instr.hpp" #include <functional> using Instruction = riscv::rv32i_instruction; using InstructionList = std::vector<Instruction>; struct Opcode { std::function<InstructionList(Assembler&)> handler; }; struct Opcodes { static Token opcode(const std::string&); };
340c56417d3aab4c28410bfa9ef9c7a9d7fa509e
f108f29b884fc48e3327f7c034cf52487c82bd01
vanptate/schoollab01
/test1/main.cpp
C++
cpp
3,416
no_license
/* Patrick Tate 1411-004 Rock Paper Scissors Game Lab Partner: Paul */ #include <iostream> using namespace std; int main() { //variables to holder R/P/S for each user and the choice to continue or end the game char user1Choice, user2Choice, playAgain; //making sure the program runs at least onc...
5399618c65a5adc883cfa5660cc860faa0d42632
a0e357d6d8ec9664e806a2da923e6d0c38c076a9
DohwanKim/baaarkingdog-algorithm
/0x08-9012/0x08-9012/main.cpp
C++
cpp
654
no_license
#include <iostream> #include <stack> using namespace std; int main(int argc, const char * argv[]) { ios::sync_with_stdio(0);cin.tie(0); int T; cin >> T; for (int i=0; i<T; i++) { stack<char> s; string eachInput; cin >> eachInput; bool check = true; ...
c2ff8434e4dfa126a7df90259f10400bc91f47f6
90d0dbe02dc013a4057ca799756accf870863a65
smart-pubgc/PUBGC-COIN
/src/qt/askpassphrasedialog.cpp
C++
cpp
10,375
permissive
// Copyright (c) 2011-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. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "askpassphrasedialog.h" #include "ui_askpassph...
8f0576d65b79bc233863e18a88f8619ceb769418
f175528f0f82ce3b91360dc374f457af70185128
mandrei28/Teme-CP
/tema2-master/ii3.cpp
C++
cpp
565
no_license
//Write a program that computes the solutions of a 2-nd degree equation aX^2 + b^X + c =0. //The a, b, c coefficients are real numbers and are known. #include<iostream> #include<math.h> using namespace std; int main() { int a,b,c,delta; cout << "a="; cin >> a; cout << "b="; cin >> b; cout...
f09773c4248999b43e44af561de85b1a950bf2a3
92a19c191f432d49f3ee3bc2ce51cd34fa312f7d
RDTCREW/SoT-SDK
/SDK/SoT_BP_LotS_reward030_functions.cpp
C++
cpp
802
no_license
// SeaOfThieves (1.6.4) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- // Function BP_LotS_reward030.BP_L...
62d88fe9bc2597e3ecbb9513b84004341c0a724b
a5eb1877607a2c7ecac8be81df6261862d11899f
JoeKuzko/software_systems
/buffer.cpp
C++
cpp
11,865
no_license
//--------------------------------------------------------------------------- /// @file buffer.cpp /// @brief The file that drives the program essentially, reads in file and makes proper calls to pack/unpack /// @author Evan Burdick, Joseph Kuzko,& Matthew Xiong //-------------------------------------------------------...
0afed70b2f57b33e537cbdbe96220db4116089f9
974e006afcd5c293bd434c30ba151d7939b3994b
AtomicOrbital/CppSource
/xaunhiphanlientruoc.cpp
C++
cpp
506
no_license
#include<bits/stdc++.h> #define FORT(i,a,b) for(int i=a;i<b;i++) #define FORD(i,a,b) for(int i=a;i>b;i--) #define mp make_pair #define F first #define S second using namespace std; int main() { int T=1; cin>>T; FORT(t,0,T) { string s; cin>>s; int vt=-1; FORD(i,s.length()-1,-1) { if (s[i]=='1') { ...
947119a773c4bd375c8ff9f9dfde941a122fdb78
2ef1c883ef145b468160c2fcb1936746f0c6ba97
gabrielrussoc/competitive-programming
/uva/11987.cpp
C++
cpp
1,256
no_license
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 100004; ll uf[2*N], wf[2*N], sf[2*N]; int n, m; ll find(int i){ if(uf[i] == i) return i; return uf[i] = find(uf[i]); } void join (int i, int j){ i = find(i); j = find(j); if (i == j) return; if (wf[i] > wf[j]) swap(...
2d4536ea72427093f7b5cb691b5b989779286148
a147ac4a45aa28029a92f3ac91e5a436bfe5bbf0
CHL198011/BGv1.cedarpoint
/The-Programmer/WhitelistMenu/dialogs/whitelist_menu.hpp
C++
hpp
4,679
no_license
/* Author: Maxence Lyon Altis DEV: https://altisdev.com/user/maxence-lyon Teamspeak 3: ts.the-programmer.com Web site: www.the-programmer.com Steam: « Une Vache Sur CS – Maxence », please leave a message on my profile who says the exact reason before adding me. Terms of use: - This file is...
dc952b283c1888a592062ad3d88dfad1a2c90493
6f2811c648f8b8e04c1834535fecab6a785ac465
WhiZTiM/coliru
/Archive/307b93201b980157be8221e54229785c-f674c1a6d04c632b71a62362c0ccfc51/main.cpp
C++
cpp
866
no_license
#include <algorithm> // std::swap #include <iostream> class Foo { public: Foo() : x_(new int(5)) { std::cout << "Foo::Foo(): x points to " << x_ << std::endl; } Foo(const Foo& rhs) : x_(new int(*rhs.x_)) { std::cout << "Foo::Foo(const& Foo): x points to " << x_ << std::endl; } /* ...
cb75540299045e6ac8382244f81dfd7f55c7d03f
ffdd09994c1784ab9d9aaea265d352028d7c4222
variablemayank/competetive-programming-codes
/HelloWorld.cpp
C++
cpp
361
no_license
#include<iostream> using namespace std; long long solve(long long n,long long k) { long long result =1; if(k>n/2) { k= n-k; } for(int i=0;i<k;i++) { result*= n; result/= (i+1); n--; } return result; } int main() { int t; scanf("%d",&t); while(t--) { long long n,k; scanf("%lld%lld",&n,&k); pr...
6ef76e5ff0886da4ad367319851db31022b63a43
d51ad2e32ee384fe7d65ddfb4153b10334092b63
StanfordVL/franka-panda-iprl
/src/main.cc
C++
cc
3,669
permissive
/** * main.cc * * Copyright 2018. All Rights Reserved. * Stanford IPRL * * Created: December 19, 2018 * Authors: Toki Migimatsu */ #include <exception> // std::runtime_error #include <iostream> // std::cout, std::cerr #include <memory> // std::shared_ptr #include <csignal> // std::signal, std::si...
78e55bc641993690a619096812efd2633ccc72e5
3f388f97f717bd46ce6b6721fb0fbce2e71c92eb
Steven-Sakurai/Archlinux-Backup
/Cpp/test-cmake/main2.cc
C++
cc
749
no_license
#include <boost/smart_ptr/shared_ptr.hpp> #include <iostream> #include <memory> class A{}; class classA { boost::shared_ptr<int> ptA; public: classA(boost::shared_ptr<int> p) : ptA(p) {} void setValue(int n) { *ptA = n; } }; class classB { boost::shared_ptr<int> ptB; public: classB(boost::shared_ptr<int> p) ...
6a659d523452091a6e0b5b0e2983663931520771
105f7e4789273226afc637c565174a7a877c6bc1
YukiWorkshop/libevdevPlus
/InputEvent.hpp
C++
hpp
1,389
permissive
/* This file is part of libevdevPlus. Copyright (C) 2018-2021 Reimu NotMoe <reimu@sudomaker.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;...
4a081bdf732d3cd8cef3931be4af2e369f034b63
3b35faf1cdc5a744955ee76bba3080176c8091ed
vinay918/CSCE-310
/Homework 2/csce310homeWork02part01.cpp
C++
cpp
421
no_license
#include <vector> #include "csce310homeWork02part01.h" #include <cmath> #include <iostream> #include <map> using namespace std; bool sumToN( vector<int> number , int value ){ std::map<int,int> table; for(int i=0;i<number.size();i++){ if(table.find(value-number[i])!=table.end()){ return tru...
3961c04b5d4b8667b401b261b7633732a8ee2e2e
52cd50c08fb6bcf0b84fe8025d7e3fb7af0740c9
22hemantgupta/Codechef
/geo.cpp
C++
cpp
516
no_license
#include<iostream> #include<algorithm> #include<math.h> using namespace std; int main() { int T; cin>>T; while(T--) { long int s=0; int n; cin>>n; long int a[n+1],b[n+1]; for(int i=0;i<n;i++) { cin>>a[i]; } for(int i=0;i<n;i++) ...
6ec55e71659b5a2c4b94e53203ed9fe8d5555acf
bfcfdb6b37cb7739759ae4317e92964a50b6b239
nustxujun/simplerenderer
/RendererComplement/source/Renderer.cpp
C++
cpp
10,238
no_license
#include "Renderer.h" #include "DefaultPipeline.h" #include "SwapChain.h" #include "PaintingMethod.h" #include "VertexBufferManager.h" #include "IndexBufferManager.h" #include "TextureManager.h" #include "FrameBuffer.h" #include "CommandLine.h" namespace RCP { Renderer::Renderer(): mIsInitialized(fals...
7d9f44261f6b2a001248a7c355d3745f04eaeffa
2f8fbf6abafc37a4c58f328a275eb322a4d5cb5d
kovarex/BhaalBot
/src/PropertyTree.hpp
C++
hpp
11,739
no_license
#pragma once #include <string> #include <cstdint> #include <type_traits> #include <limits> #include <utility> #include <stdexcept> #include <vector> #include <ImmutableString.hpp> #include <vector> #pragma pack(push, 1) class PropertyTree { public: using iterator = std::vector<PropertyTree>::iterator; using const_...
65f971c8da1f10e34ed213b24290d0c2723e7386
ad30656621b0ee6df71c5d010983310d24b60e05
lmussio/3DManipulator
/camera.cpp
C++
cpp
2,391
permissive
#include "camera.h" #include <cmath> #include <QVector3D> #include <GL/glu.h> Camera::Camera(){ x = 0.0; y = 0.0; z = 0.0; centerx = 0; centery = 0; centerz = 0; angle = 0.0; anglev = 0.0; fovy = 1.0; radius = 100.0; Camera::updatePosition(); } void Camera::setCenter(float cx...
10be9f851032ea69367c66ba4fa256e0729c5bae
3930c8d603aa195e1f790f72f4a0e406f5b007e4
VB6Hobbyst7/miniGraphics
/Common/Compositor.hpp
C++
hpp
2,636
permissive
// miniGraphics is distributed under the OSI-approved BSD 3-clause License. // See LICENSE.txt for details. // // Copyright (c) 2017 // National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under // the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains // certain rights in this softwa...
5466e17ce69cc07ec9dd9bfc88adb37cf8d792f4
bae74154841d652f22f3d8cd8f78fc520fcba9dd
jtemblador/Spring_CSC5_JoseTemblador
/Homework/M1_Prob1_Size_of_Shapes/main.cpp
C++
cpp
3,090
no_license
/* * File: main.cpp * Author: YOUR NAME HERE * Created on January DATE AND TIME HERE * Purpose: Cross one-side or the other */ //System Libraries Here #include <iostream> using namespace std; //User Libraries Here //Global Constants Only, No Global Variables //Like PI, e, Gravity, or conversions //Function...
e0a7a401a72fa049b875d01d2f30b2a58982380a
08c18107e68daa3fbf5ab8c19cef79a900a97b40
LalaChen/SDEngine
/UnitTest/Common/UnitTest_FeatureDeveloping/Code/SampleDrawObjects.cpp
C++
cpp
12,238
permissive
//#define SD_VR_MODE #include "SDEngine.h" #include "HUDComponent.h" #include "ScreenRayComponent.h" #include "SampleDrawObjects.h" using namespace SDE::Math; using namespace SDE::Basic; using namespace SDE::Graphics; using namespace SDE::GUI; SampleDrawObjects::SampleDrawObjects(const ObjectName &i_scene_name) : Sc...
5d6edb0c59907fbac874a93d3a5466ded725de76
ef8b7fd5758bc0fcc663cb437804bbc5dd41d8a6
cntysoft/luoxi
/src/libs/lxservicelib/zhuchao/shop_db_upgrader_wrapper.cpp
C++
cpp
14,253
no_license
#include <QProcess> #include <QFileInfo> #include <QJSEngine> #include <QJSValue> #include <QFile> #include <QSqlQuery> #include <QRegularExpression> #include <QRegularExpressionMatch> #include <QScopedPointer> #include "shop_db_upgrader.h" #include "lxlib/global/const.h" #include "lxlib/kernel/stddir.h" #include "c...
c6b3ac69ee3b1e2f7ff3dc8b05b2354ba242a086
bbddc9daa104e17477b127378ef4b9902ca60e07
mariajuliagrin/Bundle-Adjustment-Metaheuristicas
/src/benchmarkFactory.cc
C++
cc
1,552
no_license
// benchmarkFactory.cc // // Author: // Ahmad Dajani <eng.adajani@gmail.com> // // Copyright (c) 2020 Ahmad Dajani // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either...
77ed92eb91c9008bb3342cdebcdc3e22dcfbc2a8
cdbe0d15337b0c80e02db17c3aa9a197d4ca7712
eviskum/MFAQS-notes
/libs/NotesCPP201/include/LNSTOELE.HPP
C++
hpp
1,015
no_license
//=========================================================================== // // Module: LNSTOELE.HPP // // Description: // // Class library definition for LNStorageElement and LNStorageElementBody. // //=========================================================================== // // Copyright (c) 1998 Lotus Deve...
bc5eb74864c4e9544cd1eccf011d760274907732
10e4cc0f505fa518b8c041dffab5ebe79231987d
TanJay/openthread
/src/core/common/trickle_timer.hpp
C++
hpp
6,520
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 ...
02673e2577cb647cf41e4067f99d9281935c1d5c
caea0cac78985459ed6b2575796b80696b12b70e
kniefliu/WindowsSamples
/third_party/skia_m84/demo/skwin_app/win/Window_win.cpp
C++
cpp
12,902
permissive
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/gpu/vk/GrVkVulkan.h" #include "demo/skwin_app/win/Window_win.h" #include <tchar.h> #include <windows.h> #include <windowsx.h> #include "src/core/SkUtils.h" #in...
b74ca2b3bd4d04c1c36cae2f50cf32aa03897b93
c371e539f331f392f9dc490b04f0f94e36f58319
singhsanket143/CppCompetitiveRepository
/CB/LPU/Session9/KadaneMaximumSumSubarray.cpp
C++
cpp
454
no_license
#include <iostream> using namespace std; int kadane(int *arr, int n) { int curr_sum = 0; int global_max = INT_MIN; for(int i=0;i<n;i++) { curr_sum+=arr[i]; if(curr_sum < 0) { curr_sum=0; } if(curr_sum > global_max) { global_max = curr_sum; } } return global_max; } int main(int argc, char const *...
d886302724d4c55b278279d608d1ddd60f09d181
753cd0e97ab2514bd42a20971a6b5080a5c34861
Hugozys/linux-shell
/findProgram.cpp
C++
cpp
3,364
no_license
#include "myShell.h" string cstr2str(const char * cstr){ //transfer cstring to string object stringstream ss; ss<<cstr; string ans = ss.str(); return ans; } char * myProgram::relative2Absolute(const char *dir){ //change relative path to absolute path char *resolved = NULL; if ((resolved = realpath(dir,...
a0a1069124f6009d323a3e200ade0fa21fe5ad6a
4838ad571d6c4e9942c6498a2f210c264e7cbc56
betallcoffee/TTPlayer
/TTMedia/process/TTProgram.cpp
C++
cpp
4,758
permissive
// // TTProgram.cpp // TTPlayerExample // // Created by liang on 16/8/17. // Copyright © 2017年 tina. All rights reserved. // #include "easylogging++.h" #include "TTProgram.hpp" using namespace TT; const static GLint kInvalid = 0; Program::Program() : _prog(kInvalid), _vertShader(kInvalid), _fragShader(kInvalid...
4e6c076c9e076183dab29ef8653fb2aba23cf45a
f34c742b0b548117e431e06761dcda78e5b1bfe6
wangxiang5/DYM
/Cmd_src/MapSvrFileAct无cass/DlgImportContour.cpp
C++
cpp
2,885
no_license
// DlgImportContour.cpp : 实现文件 // #include "stdafx.h" #include "MapSvrFileAct.h" #include "DlgImportContour.h" #include "afxdialogex.h" // CDlgImportContour 对话框 IMPLEMENT_DYNAMIC(CDlgImportContour, CDialogEx) CDlgImportContour::CDlgImportContour(CWnd* pParent /*=NULL*/) : CDialogEx(CDlgImportContour::IDD, pParent...
83f833fda91903120a186e251836131a91f39b1b
c0c3906002ec52f8faa6332c570af391bde8cdd3
NickZt/caffe-android-opencl-fp16
/include/caffe/layers/crop_layer.hpp
C++
hpp
2,565
permissive
#ifndef CAFFE_CROP_LAYER_HPP_ #define CAFFE_CROP_LAYER_HPP_ #include <utility> #include <vector> #include "caffe/blob.hpp" #include "caffe/layer.hpp" #include "caffe/proto/caffe.pb.h" namespace caffe { /** * @brief Takes a Blob and crop it, to the shape specified by the second input * Blob, across all dimensions...
319205ee9fec94404a0af4f5a2d0cfe6f9206a34
677af6991ca106fcd3ab78c32dde4b4561c90a58
mettasri/algorithms
/ctci/recursions/numPathsInGridWithBlocks.cpp
C++
cpp
1,213
no_license
#include <iostream> #include <vector> using namespace std; int numPathsInGrid(vector<vector<bool> > &mat, int r, int c) { if(0 == mat[r - 1][c - 1]) return 0; if(1 == r && 1 == c) return 1; int lc = (r > 1) ? numPathsInGrid(mat, r - 1, c) : 0; int rc = (c > 1) ? numPathsInGrid(mat, r, c - 1) : 0; ...
30bfa41ecf5147de8bd7665b0903615b361ead30
e75418641e9a80d238d35bd8e76ab27ad0b16867
ksaveljev/UVa-online-judge
/993.cpp
C++
cpp
574
no_license
#include <iostream> #include <vector> using namespace std; int main (void) { int n, a; vector<int> result; cin >> a; while (a--) { cin >> n; if (n == 1) { cout << 1 << endl; continue; } result.clear(); for (int i = 9; i >= 2; i--) { while (n % i == 0) { res...
fb50599aa569629749f28274228946e0af075f27
46a48d3d3396631f78b6ad2d6a1c5e99816476e3
khookh/OpenAW
/ProjetAW/units/LandVehicles/tank.cpp
C++
cpp
394
no_license
#include "tank.h" #include <iostream> Tank::Tank(int xi, int yi, Player* owner) { this->owner = owner; health = 10; damage = 1; disp = 1; id = 5; // used for view x = xi; y = yi; canMove = false; canAttack = false; movementPoints = 6; // can be found here => http://awbw.amarriner.com/unit...
ca57a4ee6177ee9a30ad37613c0ce68736a31594
b4aceb4654d29c2f35e00d7829965122601dc651
huangguojun/mydtk
/Libs/dtkFonts/dtkFontSourceSansPro.cpp
C++
cpp
1,449
no_license
// Version: $Id$ // // // Commentary: // // // Change Log: // // // Code: #include "dtkFontSourceSansPro.h" dtkFontSourceSansPro *dtkFontSourceSansPro::instance(void) { if (!s_instance) s_instance = new dtkFontSourceSansPro; return s_instance; } dtkFontSourceSansPro::dtkFontSourceSansPro(QObject ...
77034b192d8de70f87a7d78dcf8e9ca03d2e5022
6400d8df964bc11f2f5b384e31d4d1fe7768168e
Sab3RR/full_backup
/algo/src/ObjectsFromLaser.cpp
C++
cpp
8,255
no_license
// // Created by sab3r on 02.04.20. // #include "ObjectsFromLaser.h" ObjectsFromLaser::ObjectsFromLaser(ros::NodeHandle *n) { subL = n->subscribe("scan", 1, &ObjectsFromLaser::AddObjects, this); vis_pub = n->advertise<visualization_msgs::MarkerArray>( "visualization_marker", 0 ); } bool ObjectsFromLaser::h...
113ef7c500200a1aa199737c6afca02fcfcbf277
b0d7b16f4e97348d48cf9bb03c49692a2a090444
Anian-skye/KTVYueer
/dialogsinger.cpp
C++
cpp
1,236
no_license
#include "dialogsinger.h" #include "ui_dialogsinger.h" dialogSinger::dialogSinger(QWidget *parent) : QDialog(parent), ui(new Ui::dialogSinger) { ui->setupUi(this); ui->songListTab->setColumnWidth(0,429); ui->songListTab->setColumnWidth(1,100); sflag=0; } dialogSinger::~dialogSinger() { d...
a552a5688b9848b003628ffb52730a998aaab942
9e79f0e024b32ad7c5622aa8bfe0ce2d209fb38e
Ralender/path_tracer
/RT_SYCL/rectangle.hpp
C++
hpp
3,792
permissive
#ifndef RECT_HPP #define RECT_HPP #include "material.hpp" #include "ray.hpp" #include "rtweekend.hpp" #include "texture.hpp" #include "vec.hpp" /** The Following classes implement: - https://raytracing.github.io/books/RayTracingTheNextWeek.html#rectanglesandlights/creatingrectangleobjectsa */ class xy_rect { p...
d175560d83e16a9b37ad305cbdb02195f7f0cb1c
92e0d4c8faca5bd7c1f4112c320364f53adea7ac
Orpheon/enigma-dev
/ENIGMAsystem/SHELL/Audio_Systems/FMODAudio/FMOD_main.cpp
C++
cpp
112,195
no_license
/********************************************************* Created by: icuurd12b42 (icuurd12b42@yahoo.ca) www.coolflamesproductions.com This code is free to use, as long as you give credit you must abide by the FMOD licence agreement located here http://www.fmod.org/ to use the fmodex dll. And take note of t...
de87a4bd8de8f11d9ee7e682d8873d057b330ad7
2aa77d1c3340a9abf428a180139ebec68b42a2e7
Samsung/Castanets
/chrome/browser/download/download_browsertest.cc
C++
cc
182,625
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/download/download_browsertest.h" #include <stdint.h> #include <memory> #include <set> #include <sstream> #include <string> ...
bd34f305688dc97897eb0b5b5b12284b538967df
d29fa0d5c366f125c77770a7c948195755bbbf37
adarshakanel/OperatingSystem
/A3/original/pi-calc/calcpi.cpp
C++
cpp
3,550
no_license
//==================================================================== //Adarsha Kanel // 30049820 //refrence useD: https://repl.it/@emmynex2007/A3-interval-Calc#main.cpp // Anisha tut: https://d2l.ucalgary.ca/d2l/le/content/327860/viewContent/4323218/View // https://d2l.ucalgary.ca/d2l/le/content/327860/viewContent...
58e9e634a093ebed61ebae71cd1cc5a9a842be4a
953b44e02f8807c4de0b8983b75a0b3a4bbec335
Renanvt/Curso_de_C_e_CPlusPlus
/POO_3.cpp
C++
cpp
797
permissive
#include <iostream> #include "get_set.h" using namespace std; int main(){ Veiculo *v1 = new Veiculo(1); Veiculo *v2 = new Veiculo(2); Veiculo *v3 = new Veiculo(3); v1->setLigado(1); v2->setLigado(1); v3->setLigado(1); cout << v1->getVelMax() << endl; cout << v2->getVelMax() << endl; ...
5a143e8c900ce6f6ca74754af92d61c8d191ba1a
09d99e8ef5046bc9a081448ac2bc8970d8eed3ce
i-saint/scribble
/if_exists_this.cpp
C++
cpp
763
permissive
#include <cstdio> #define PrintMemfnOfNot()\ __if_exists(this) { printf("memfun\n"); }\ __if_not_exists(this) { printf("not memfun\n"); } class Hoge { public: Hoge() { printf("Hoge::Hoge(): "); PrintMemfnOfNot(); } }; int main(int argc, char *argv[]) { ...
9218ae486e344e06d6486cc9184b295bc54c459e
bcb0c90343142bf9aca0d718bf60ff82cbe1d628
matthieu637/ddrl
/agent/cmaes/src/test/Adacrobot.cpp
C++
cpp
473
permissive
#include "bib/Assert.hpp" #include "arch/Simulator.hpp" #include "arch/Example.hpp" #include "AdvancedAcrobotEnv.hpp" #include "CMAESAg.hpp" int main(int argc, char **argv) { FLAGS_minloglevel = 2; google::InitGoogleLogging(argv[0]); google::InstallFailureSignalHandler(); // arch::Simulator<AdvancedAcrobotEnv,...
084f8304a027a3d38fcf5858ce34a9662ec4a406
9f679de9ec97350d56e0c1f46889e23244e5943f
peppyguy/legate.core
/src/core/mapping/base_mapper.cc
C++
cc
61,067
permissive
/* Copyright 2021 NVIDIA 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
c8b22d7ef3af4dbbec9633142a39bae6e3f9d1d5
640535b40e1b59ada23171b5b43cba4a6d95de52
cookerwang/mod_pagespeed
/net/instaweb/rewriter/critical_css_filter.cc
C++
cc
17,760
permissive
/* * Copyright 2013 Google Inc. * * 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...
10c247986f345c6d55a372be97a234beec868416
24baa5699f55a36f3d32d70dd91e59a040e31a0d
wangkuiyi/paddle-mobile
/src/operators/kernel/arm/conv_kernel.cpp
C++
cpp
6,270
no_license
/* Copyright (c) 2016 Baidu, Inc. All Rights Reserved. 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 rights to use, copy, modify, merge, publ...
c3f3a13a64c7679044d88d0d19dc7e2f4ad80a6a
2537746c5eb5ad008e3999891cdfdd3c76d0da1d
Buttars/SCUM-SDK
/SDK/SCUM_Bear_Pow_One_Hand_classes.hpp
C++
hpp
683
no_license
#pragma once // SCUM (0.1.17) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SCUM_Bear_Pow_One_Hand_structs.hpp" namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // Bl...
1be9333a0530987c90aa33f1a724fd69231bb128
2b6df3f527acfed787a17456ae6b8ec3b5702be1
bkahlert/seqan-research
/raw/workshop12/workshop2012-data-20120906/sources/j3dlv0pk16e145g4/135/sandbox/my_sandbox/apps/bowtie_app/bowtie_app.cpp
C++
cpp
2,615
permissive
// ========================================================================== // mini_bowtie // ========================================================================== // Copyright (c) 2006-2012, Knut Reinert, FU Berlin // All rights reserved. #include <iostream> #include <seqan/basi...
e353c52a8901ea9204a928039022e8c438904d53
8062e97adb0dea21a70446a42acfaabe549fcbeb
matthiasdiener/mpich
/mpid/nt_server/winmpd/MPDFileTransfer/FileDropTarget.cpp
C++
cpp
9,222
permissive
// FileDropTarget.cpp: implementation of the CFileDropTarget class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "MPDFileTransfer.h" #include "FileDropTarget.h" #include "MPDFileTransferDlg.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #d...
940778ff8c02feea5ab5122196531a9c600eec7c
7f78621ad0a06047025839968a84e13d52b1d90c
synety-jdebp/nosh
/source/get-mount.cpp
C++
cpp
4,214
permissive
/* COPYING ****************************************************************** For copyright and licensing terms, see the file named COPYING. // ************************************************************************** */ #include <vector> #include <iostream> #include <string> #include <cstdlib> #include <cstring> #in...
5593c054b0e2ab75745a7bafd5fab5c8572d7b44
b99dd07f5c53aaccf457858b96f61104f4cd6fd8
rafan/vespa
/document/src/tests/weightedsetfieldvaluetest.cpp
C++
cpp
11,176
permissive
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/document/fieldvalue/fieldvalues.h> #include <vespa/document/datatype/weightedsetdatatype.h> #include <vespa/document/serialization/vespadocumentdeserializer.h> #include <vespa/vdstestl...
ee09652543d3071977f1e498950e419335ae12f8
89da2974b70b8787a7c79cf781c96bdb2e68687a
simi48/Ef-If_Jassen
/android_test/tensorflow-master/tensorflow/lite/kernels/bidirectional_sequence_lstm_test.cc
C++
cc
154,288
permissive
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
f610a0529a5300c302ef5b1954658596292e8599
d3dbd282f598f32d9ca6db2a75c8d3ded047b713
xjsh2017/vicente2018
/source/src/XJBrowser/ViewFaultSheet.cpp
C++
cpp
5,098
no_license
// ViewFaultSheet.cpp : implementation file // #include "stdafx.h" #include "xjbrowser.h" #include "ViewFaultSheet.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CViewFau...
8bc4e17cb9ef7047cdf52eb88c70ee465079803f
95bb21b6811d9975a5fa65f0bb7a8a68b85f16b0
Normaidian/pertool
/group.cpp
C++
cpp
2,026
no_license
#include <iostream> #include <fstream> #include <cstdlib> #include <string> #include "group.h" using namespace std; Group Group::searching(string line){ Group g; if(line.find("hgroup.")!=string::npos){ line = line.substr(line.find("hgroup."),line.size()); g.offset = line.substr(line.find("0x"...
1f38ca54e2eb9405db8b8df71e8c6942edf2e734
409dba4a6aed20dd4ffc5bb3f08f92416c2030fb
giftnuss/libftl
/ftl/Exception.hpp
C++
hpp
2,372
no_license
/* * Exception.hpp -- exception generators * * Copyright (c) 2007-2011, Frank Mertens * * See ../COPYING for the license. */ #ifndef FTL_EXCEPTION_HPP #define FTL_EXCEPTION_HPP #include <exception> #include <errno.h> // EBUSY, errno namespace ftl { typedef std::exception AnyException; typedef std::exception St...
6e055f30754ae56826a8d4f1af782fd8c790359d
42c855d4633ac25970a914d736ee30ea8458fea9
alexandraback/datacollection
/solutions_5658282861527040_1/C++/Murphy/B2.cpp
C++
cpp
1,435
no_license
#include <cstdio> #include <cstdlib> #include <cstring> #include <string> #include <vector> #include <cmath> #include <algorithm> #include <cassert> #include <set> #include <map> #include <queue> #include <iostream> #include <fstream> using namespace std; #define pb push_back #define REP(i,n) for(int i=...
6f53ed4dd0caff5bd0defcbf94225a50394c5eec
548e9bf351a6a8e6520b2cf23cfd0e879eba2e13
xiaofei2ivan/skia
/docs/examples/Matrix_067.cpp
C++
cpp
609
permissive
// Copyright 2019 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "fiddle/examples.h" // HASH=3aa2603225dff72ac53dd359f897f494 REG_FIDDLE(Matrix_067, 256, 256, false, 3) { void draw(SkCanvas* canvas) { SkMatrix matrix; SkPoint bitmapBound...
fc5153c9a023956fcb7b2111c3e5bb1ef0d889e1
9b0d5c97c9772908da23e83a2e621b044a8f09c8
gnoliyil/fuchsia
/build/bazel/examples/hello_sdk/hello_test.cc
C++
cc
478
permissive
// Copyright 2022 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 <assert.h> #include <iostream> // Demonstrate some basic assertions. int main() { std::cout << "Example stdout." << std::endl; // Expect tw...
0d8bcdf5881f56cba69dca1813011098e4f336b8
99c0988e5695bb2bbaaf8d33956273a13f5883e4
tackman/node-mecab-async
/mecab.cc
C++
cc
7,278
no_license
#include <string> #include <vector> #include <memory> #include <boost/tokenizer.hpp> #include <mecab.h> #include <node.h> using namespace std; using namespace v8; using namespace node; class MeCab_parser; static uv_mutex_t m; // 非同期処理でやり取りするデータ struct MeCab_baton { string str; str...
f54235e271d46eb5fe594597616882fbe3745623
e2730d59163145deea73200f296ebdbb16061b9a
VitaliyTalyh/Rade
/Source/RStatusLib/RStatusMgrComponent.cpp
C++
cpp
7,899
permissive
// Copyright 2015-2023 Vagen Ayrapetyan #include "RStatusMgrComponent.h" #include "RUtilLib/RLog.h" #include "RUtilLib/RCheck.h" #include "RSaveLib/RSaveMgr.h" #include "Net/UnrealNetwork.h" #include "Engine/DamageEvents.h" //============================================================================= // ...
e3afe2b2ef505267f8d8db77eca81e9a40ebbc93
03c954492fd07cbc27d1932fd448935fddaa5f0c
kasinitsyn/keygen
/keygen.cpp
C++
cpp
785
no_license
#include <iostream> #include <cstdio> #include <string> using namespace std; int generate_key(string input) { int input_size = input.length(); int base = 1010; for (int i = 0; i < input_size; i++) { base = base + (int) (char) input[i]; } return base + 1010; } int main() { strin...