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
94e54302f4796e47bbe108c8b94946015f77aaa4
1d8d9fd32733752e186cb6457972b4d50cf864d3
Oozwding/helloworld
/HDOJ/HDOJ2087/2087.cpp
C++
cpp
980
no_license
/** * Filename:HDOJ 2087 * Date :2016/4/11 * @Author :zwding * Describe:KMP 简单应用 */ /** 16837556 2016-04-11 10:00:26 Accepted 2087 0MS 1600K 1022 B G++ zwding */ #include <iostream> #include <string> using namespace std; int nextn[1001]; //构建nextn表 void build_nextn(const string& P){ int t = nextn[0] = ...
1a2d28f776cd02dbfbdec37b12b37f2224ef7326
087d57754a93a189ca958b41b114484c013f7b10
xiaoshang09/SmartGree
/GeomBasicAlgom/geomBasicAlgom.cpp
C++
cpp
17,673
no_license
#include "geomBasicAlgom.h" int istLN(const MyLine3D& line, const MyPlane3D& plane, MyPoint3D& pnt) { float x0 = line.x; float y0 = line.y; float z0 = line.z; float vx = line.vx; float vy = line.vy; float vz = line.vz; float A = plane.A; float B = plane.B; float C = plane.C; float D = plane.D; float delta ...
a0f2e8ae4a544ec4899cd56c5aec96e8b7eb034a
fca95f534e80781ba4d0eb0f345ef7615a0ff793
jbcoe/CppSandbox
/UnpackTuples/UnpackTuples.cpp
C++
cpp
2,248
permissive
// std::tuple unpacking using a std::tuple indexer // // Adapted from: http://loungecpp.wikidot.com/tips-and-tricks%3aindices // // std::tuple<A,B,C> result = // std::tuple<A,B,C>(f(get<0>(x), f(get<1>(x), f(get<2>(x)); // // Is replaced with // // std::tuple<Args...> result = std::tuple<Args...>(f(get<Indices>(x))......
fdf2e8a0a26682f5d3ed881ba94aeddc4f8ea1f9
3b8afbbca8b67d73842e37283c6ba8c4ed42cc15
Pezz89/FrameLib
/FrameLib_Objects/Spatial/FrameLib_CoordinateSystem.cpp
C++
cpp
3,586
permissive
#include "FrameLib_CoordinateSystem.h" #include <cmath> // Constructor FrameLib_CoordinateSystem::FrameLib_CoordinateSystem(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy) : FrameLib_Processor(context, proxy, &sParamInfo, 1, 1) { mParameters.addEnum(kMode, "mod...
20326fe5c6972df9078f1c611d9c5ff5a0f48e15
e5d2eee331002eaa66cf745b942b17c24257aa46
chaomengnan/aliyun-openapi-cpp-sdk
/emr/src/model/ResizeClusterWithHostPoolResult.cc
C++
cc
2,023
permissive
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
84f4c1698f12fb0aa12dec9eee0664fb75dc3c1e
d8d137fd0f2bc59db82c14d8b48b248932ed145f
dyg540/chromium
/components/search_engines/search_host_to_urls_map_unittest.cc
C++
cc
3,224
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/search_engines/search_host_to_urls_map.h" #include <stddef.h> #include <memory> #include "base/macros.h" #include "components/sear...
de84109e969db8a03d5a00c1fb424ffb6ef4a982
2652da4b00d25e68715025ce88cc4309ee252050
uvbs/FullSource
/Source/Source/Common/SO3World/Src/KDoodadFile.cpp
C++
cpp
6,952
permissive
////////////////////////////////////////////////////////////////////////////////////// // // FileName : KDoodadFile.cpp // Version : 1.0 // Creater : Zhao Chunfeng // Date : 2008-05-28 15:11:19 // Comment : Dooodad file // ///////////////////////////////////////////////////////////...
2b0b64749d8521d1d8396cd19c8acbdbb2ca6c2c
cd05a1bf549425a523794c259755a3e690e54aee
feixingqizhizao/navigation_packages
/vox_nav-foxy/src/vox_nav_planning/include/vox_nav_planning/plugins/se3_planner_utils.hpp
C++
hpp
3,604
permissive
// Copyright (c) 2020 Fetullah Atas, Norwegian University of Life Sciences // // 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 // // Unles...
4de0cfa99b7b9f2a7519c3473996fd3022609065
c939f0980cc4bf5b400fa9f2b2b4403b9e9ac96d
BioGearsEngine/core
/projects/biogears/libBiogears/src/io/cdm/PatientNutrition.cpp
C++
cpp
1,849
permissive
#include "PatientNutrition.h" #include "Property.h" #include <biogears/cdm/properties/SEScalarMass.h> #include <biogears/cdm/properties/SEScalarMassPerTime.h> #include <biogears/cdm/properties/SEScalarVolume.h> #include <biogears/cdm/patient/SENutrition.h> namespace biogears { namespace io { //class SENutrition ...
fdf9ec7775947c3f22a5b657bd8356e72f80d181
54398ef3bbc4f85b88346e8ec44c8f4659c08db9
hyller/GladiatorLibrary
/Visual C++ Example/第9章 打印、帮助、调试与发布/实例208——为对话框控件添加ToolTip提示框/DlgToolTip/DlgToolTipDlg.cpp
C++
cpp
5,033
permissive
// DlgToolTipDlg.cpp : implementation file // #include "stdafx.h" #include "DlgToolTip.h" #include "DlgToolTipDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAboutDlg...
0d73aa043c7c7746b6219e17669bf2e06243c5fb
104a949b79031e3e566301d0401c64ff2fc6e1f8
KernelPanic-OpenSource/Win2K3_NT_inetcore
/mshtml/src/core/include/sizeuv.hxx
C++
hxx
5,213
no_license
//+--------------------------------------------------------------------------- // // Microsoft Internet Explorer // Copyright (C) Microsoft Corporation, 1999 // // File: sizeuv.hxx // // Contents: An extent, logical units. // //---------------------------------------------------------------------------- #i...
9dca10427b1d3d3f2cb199e32fce65e1f644ac2b
608033ad94dbaf36350032e23ffc6c6da5b6a62b
romesdev/algoritmos
/Árvores/Max-Heap/heap_impl.cpp
C++
cpp
3,767
no_license
#include <iostream> #include "heap.h" //definições #define PAI(i) (i / 2) #define ESQ(i) (2 * i) #define DIR(i) ((2 * i) + 1) using namespace std; // Constructores MaxHeap::MaxHeap(){ //vázio } MaxHeap::MaxHeap(int n){ //A = (int*)malloc(sizeof(int)*10); length = n; heapSize = 0; ...
9927c0d624d50cf164aa5b158b1cc8ea89a30e05
0ee3735ef0894c72c0822a6ffbc172724bf01343
shivamgupta16614/codeforces
/1214C.cpp
C++
cpp
551
no_license
#include <iostream> #include <map> #include <vector> #include <stack> using namespace std; int main(){ int n; cin>>n; if(n%2!=0){cout<<"No";return 0;} vector <char > v; map <char,int> m; char x; for(int i=0;i<n;i++){ cin>>x; v.push_back(x); m[x]++; } if(m['(']!=m[')']){ cout<<"No";re...
e2d2e208ce82f02eb1333876e6039fcdf45996d0
d2afcb9c0179076c1a572ca3f31a30e89a1c85cf
sbuzonas/hhvm
/third-party/thrift/src/thrift/conformance/cpp2/Protocol.cpp
C++
cpp
2,362
permissive
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
b3529a127c00c4d213c68c2bf585b0272a5fc86a
831d03bf925713657b4396881e8c713a9f5eeab8
tima-overlays/tima
/examples/working/dist2mean/dist2mean.cc
C++
cc
19,877
no_license
#include "inet/applications/tima/automata.h" #include "inet/applications/tima/tima.h" #include "inet/applications/tima/mailbox.h" #include "dist2mean.h" #include <cstring> namespace dist2mean { //int //get_msg_id_from_name(const char* name) //{ // if (!strcmp(name, "broadcast")) // return MESSAGES_ID::broadcast_MS...
6c0cb4d95730af9f3ec72ed1f3b05e804e22ed7b
82adc08da652ed5bfb896ba078eab5ff521203aa
lunixoid/dart
/dart/io/FileInfoC3D.cpp
C++
cpp
2,901
permissive
/* * Copyright (c) 2011-2017, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/master/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, w...
5c1f829c4c5af45d2fed4f2734896a64518b6771
cebb3cd026241ff231c312b62628291d07bf7e31
Samsung/Castanets
/services/tracing/perfetto/privacy_filtering_check.cc
C++
cc
3,606
permissive
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "services/tracing/perfetto/privacy_filtering_check.h" #include <sstream> #include "base/logging.h" #include "services/tracing/perfetto/privacy_...
a5b5a2b512edd51342a5335b33f1eac8c2fa3313
5be4ec21190a1046980d60934cab49fa73fd84ed
FelixWang95/weiyiwork
/edgeextract/movingleastsquare.cpp
C++
cpp
7,369
no_license
#include "movingleastsquare.h" MovingLeastSquare::MovingLeastSquare() { max_x=0; min_x=0; } //将m行N列数组转换为m行N列的矩阵 _Matrix Trans_Matrix(float p[][N],int m) { _Matrix C(m,N); C.init_matrix(); for(int i=0;i<C.m;i++) for(int j=0;j<C.n;j++) { C.write(i,j,p[i][j]); } ...
83bf6e60a2356cf890124edb820aefbc6fd5fec9
bbb2e1e5bf36963e93adbe8f637b255b91acf133
SunatP/ITCS381_Multimedia
/Lab Teacher Worapan/scratch.cpp
C++
cpp
3,825
no_license
#include<stdio.h> // Standard io #include<opencv2/core/core.hpp> #include<opencv2/highgui/highgui.hpp> #include "opencv2/imgproc/imgproc.hpp" #include <iostream> // for output #include <cmath> // Calculate mathmatic #include<fstream> // Write file output #include <windows.h> // Add this header for waiting output before...
5e898ef4ca2a1dae4e888733933a3b73feb42ca7
a22df1d193cd5a3c7f4a1041e0d42ba468af0072
viscenter/educe
/Seg3D/src/Dataflow/Resources/PortParser.cc
C++
cc
2,842
permissive
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2004 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
5e9ce8891b8be77338ade74a643a2ae99c5e02ac
f2ac3d95dd1e744d0f610edf4ee8cbc42547521d
william31212/uva
/uva1612/uva1612.cpp
C++
cpp
1,875
no_license
#include <bits/stdc++.h> using namespace std; #define PROBLEM "uva1612" #define TESTC "" #define USE_CPPIO() ios_base::sync_with_stdio(0); cin.tie(0) typedef pair<int, double> P; #define F first #define S second #define INF 0x3f3f3f3f #define MP make_pair #define PB push_back struct node { int arr[8]; }vec[20000];...
a8b32e28f3a52537ab8c5e800947c08ebca3f0b3
650209f94e04d38cdb7523be5343be8ed54a2083
CU-0xff/juliet-cpp
/000/070/085/CWE122_Heap_Based_Buffer_Overflow__cpp_dest_wchar_t_cat_32.cpp
C++
cpp
3,365
no_license
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_dest_wchar_t_cat_32.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_dest.label.xml Template File: sources-sink-32.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate using new...
dcab5ed27d8e54f14da18275d1095c424f2e47b7
3393108901cdcfdc9f42278393629bd1dceca5b1
degarashi/revenant
/src/effect/parse/glx_output.cpp
C++
cpp
5,854
permissive
#include "../parse.hpp" #include "../tuple_seq.hpp" #include "../../debug.hpp" #include <boost/format.hpp> namespace rev { namespace parse { namespace { const static char* c_shType[] = { "VertexShader", "GeometryShader", "FragmentShader" }; } // (prec) type name の順に出力 std::ostream& operator ...
f85a3e32ebc6baf9fb1f7475f6659bf99feee093
12ecbde5258cf6c735b147aad1482bebcaa35031
GIRU-GIRU/Mordhau-Unofficial-SDK
/GeneratedPlaceholders/Mordhau/MordhauStats.cpp
C++
cpp
3,273
no_license
#include "MordhauStats.h" void UMordhauStats::UpdateUserAvgRate(const struct FStatAvgRate& Stat, const struct FSteamID& SteamID, float CountThisSession, float SessionLength, ECallResult* CallResult) { } void UMordhauStats::UpdateAvgRate(const struct FStatAvgRate& Stat, float CountThisSession, float SessionLength, ECa...
d52423de0ff1f1d1b8bbe972d20762adc242ffa7
37436e089b19f5b8edcca69e9aee6b75c086f190
azazelgrigori/Rockola
/menurock.cpp
C++
cpp
3,240
no_license
#include <iostream> #include <stdlib.h> #include "nodoalbum.h" #include "listaalbum.h" #include "File.h" using namespace std; int main() { Nodoalbum *Cabeza = NULL; Nodoalbum *aux = NULL; Listaalbum *Albumes = new Listaalbum(); Albumes->Set_cabeza(Cabeza); Files file(Cabeza); Nodoalbum *Nuevo; int opt...
38ac78b9f2a6aa8d28bf86382399432b02fb3a44
33eb1542fb9c35edf85153f5d6f50cf7316c6c80
RodrigoHolztrattner/Peon
/Peon/Peon.cpp
C++
cpp
6,168
permissive
//////////////////////////////////////////////////////////////////////////////// // Filename: PeonJob.h //////////////////////////////////////////////////////////////////////////////// #pragma once ////////////// // INCLUDES // ////////////// #include "Peon.h" ///////////// // DEFINES // ///////////// //////////////...
585e24f3af840bab46dbee7807192fbc3d2484a1
d1f23840e304a81951028f63ccef4add17df5f1d
RomTok/disco-light
/src/mmsgui/3d/mms3dtorus.cpp
C++
cpp
2,996
no_license
/*************************************************************************** * Copyright (C) 2005-2007 Stefan Schwarzer, Jens Schneider, * * Matthias Hardt, Guido Madaus * * * * Copyrig...
a35609508cf54cd2d58de54182e80d712091eae2
30304d4f370a951ce54b6f24c40b50f90b9af79c
npnet/MyCode
/plutommi/MtkApp/sdk/casesrc/avk_pluto_timer.cpp
C++
cpp
25,945
no_license
/***************************************************************************** * Copyright Statement: * -------------------- * This software is protected by Copyright and the information contained * herein is confidential. The software may not be copied and the information * contained herein may not be used or dis...
f0f58fff3e2382444eb6965515242d5e1bdce75d
40b5d34dbd2c9634f30b7e8b2dbd9ac81bc99aa6
sufyansh/cpp-basic-coding
/Saving_Account.cpp
C++
cpp
592
no_license
#include "Saving_Account.h" #include<iostream> #include<vector> #include"Account.h" #include"Checking_Account.h" #include<string> Saving_Account::Saving_Account(std::string name , double balance , double int_rate ) :Account{name, balance},int_rate{int_rate} { } bool Saving_Account :: deposit (double amount ...
9b6bf597244f919b5d47b6c6db7aa3b82acaa6d8
6fa55d1d4de8f773eaf24f5c459ec6c6c6828593
piller-imre/exprail-fltk
/test/Grammar_test.cpp
C++
cpp
5,067
permissive
#include "Grammar.h" #include <gtest/gtest.h> TEST(Grammar_test, EmptyGrammar) { Grammar grammar; std::vector<std::string> expressionOrder = grammar.getExpressionOrder(); ASSERT_EQ(expressionOrder.size(), 0); } TEST(Grammar_test, SingleExpressionGrammar) { Grammar grammar; grammar.addExpression("...
e9b4910f6c8102947f90c0f80523ece7a17eed2e
ab2f1607e20bafe202be2d8c955e4db453899bfe
Leomaz445/LeetCode
/Problems/Easy/9.cpp
C++
cpp
1,268
no_license
/* Maximum Number of Words You Can Type-quesion 1935 - easy level There is a malfunctioning keyboard where some letter keys do not work. All other keys on the keyboard work properly. Given a string text of words separated by a single space (no leading or trailing spaces) and a string brokenLetters of all distinct lette...
4f40022f8234baf69a6c5fed75d8a2ae47ea9b19
5f00ef71c50ab93c9ab6c9a8052169a8bba16829
mttw2820/BaekJoon_cpp
/15000-/15656.cpp
C++
cpp
833
no_license
//BaekJoon_15656 //N과 M (7) /* * 제한 시간 : 1s * 정답 비율 : 79.409% */ #include <iostream> using namespace std; #include <vector> #include <algorithm> void rec_seq(vector<int>, vector<int>, int); void print_seq(vector<int>); int main() { int n, m, temp; vector<int> nums; vector<int> seq; cin >> n >> m; for (int i =...
216ac675cb0d2240e36c85413bf54402c9a1038b
82d3675429f19767afcb636ac04bbd75491e4ed3
bitcoin-cash-pos/bitcoin-abc
/src/wallet/rpcwallet.cpp
C++
cpp
180,191
permissive
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <amount.h> #include <chain.h> #include <chainparams.h> // for GetConsensus. #...
2899517c58883395151464bcf4eb160ce511fad1
6204ab0e88fe1113bbea522843108b1e6d14ba43
FBorowiec/advanced_cpp
/modern_cpp_examples/advanced_examples/exercise_7.cpp
C++
cpp
2,633
no_license
#include <algorithm> #include <array> #include <cassert> #include <deque> #include <iostream> #include <list> #include <map> #include <numeric> #include <set> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> namespace exercise_7 { template <typename T> class Team { public: Team...
cfd747c5db4352369fd4de476a7791436e93dd7b
8b558520f63f2c7be6046573c6e59d8e6ce6152e
Mentos-/Mordhau_SDK
/SDK/Mordhau_BP_LegsWearable_parameters.hpp
C++
hpp
509
no_license
#pragma once // Mordhau (Dumped by Hinnie) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------------------------- ...
1812fba014c7fdd490ade5c8beed04b4574d42e7
d3b787e5a3eff786d143531c6e6df9bed19d4586
HLoveMe/v8
/src/compiler/backend/instruction-selector.cc
C++
cc
128,350
permissive
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/compiler/backend/instruction-selector.h" #include <limits> #include "src/base/iterator.h" #include "src/codegen/assembler-inl.h" #includ...
c5a48d5cf1e53f7580017511f853bacbd4a5c448
70970bed266e9b4097d2209b5ea265ca50615f33
6VV/NewTeachingBox
/TeachingBox/ButtonGroup.cpp
C++
cpp
1,045
no_license
#include "stdafx.h" #include "ButtonGroup.h" #include "Button.h" #include "TeachingBoxContext.h" ButtonGroup::ButtonGroup(QList<QPushButton*>& btnlist, QPushButton* parentButton) :QWidget(parentButton) , m_btnList(btnlist) , m_parentButton(parentButton) { Init(); } ButtonGroup::~ButtonGroup() { } void ButtonG...
d534debb93d866cc1b97bda12bc4c6d422a67f1b
fe8ab13775ade50559cc4660d19d2eeeddb50903
Crypto-Currency/litebar
/src/qt/walletmodel.cpp
C++
cpp
13,506
permissive
#include "walletmodel.h" #include "guiconstants.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include "transactiontablemodel.h" #include "ui_interface.h" #include "wallet.h" #include "walletdb.h" // for BackupWallet #include "base58.h" #include <QSet> #include <QTimer> WalletModel::WalletModel(CWallet...
ded05567e4c6d944708d7b012a653e31b6eb5c2e
e1ec3cb1d67b31864ef59f49fc7aa00276756e69
xydinesh/DLB4VC
/src/DimacsGraphBuilder.cpp
C++
cpp
1,472
no_license
#include "DimacsBuilder.h" #include <iostream> #include <fstream> #include <sstream> using namespace dlb; DimacsBuilder::DimacsBuilder(void) { } DimacsBuilder::DimacsBuilder(const char *f) : Builder(f) { } DimacsBuilder::~DimacsBuilder(void) { } void DimacsBuilder::split(const string &s, vector<int> &v) { string...
64a419738d5c37e381b29582dd7ceaf50080c261
009fdce65cb4a726d08cab335439378b109ea1cb
jjzhang166/BOSS_ExternalLibs
/BOSS/EmcRecGeoSvc/EmcRecGeoSvc.cxx
C++
cxx
3,614
no_license
#include "GaudiKernel/Kernel.h" #include "GaudiKernel/IInterface.h" #include "GaudiKernel/StatusCode.h" //#include "GaudiKernel/ISvcFactory.h" //#include "GaudiKernel/SvcFactory.h" #include "GaudiKernel/MsgStream.h" #include "GaudiKernel/PropertyMgr.h" #include "EmcRecGeoSvc/EmcRecGeoSvc.h" #include "EmcRecGeoSvc/Emc...
c264af1aafba1db51b3ea0321d6cd0505a175df1
7d1aaa05b12c7e2fc3cced63089c85dbe643bd54
bookitman/patentcoin
/src/qt/rpcconsole.cpp
C++
cpp
49,913
permissive
// Copyright (c) 2011-2020 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/patentcoin-config.h> #endif #include <qt/rpcconsole.h> #include <qt/forms/ui_deb...
b9ef96e920497fd9f503f1ce0c690ddf15127fcb
da92dc7ff7ed0ff3ddd2011378b41cb386981b8d
OpenImageDenoise/mkl-dnn
/src/cpu/x64/jit_brgemm_conv.hpp
C++
hpp
7,412
permissive
/******************************************************************************* * Copyright 2021 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.apache.o...
b3fd2fb3905aac27d2e7bf267f7376e1996aec48
2ed23f5f54199172e268c83f397a120cb488e7d3
ThePhD/llvm-project
/llvm/lib/DebugInfo/PDB/Native/NativeTypeUDT.cpp
C++
cpp
7,110
permissive
//===- NativeTypeUDT.cpp - info about class/struct type ---------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
9537274a827ac6739034920ba54f54dec28cc015
f3886c1935b0a444caf05be1c3c37914e527c6a6
yongxu/mvslam
/final_project/FrameAnalyzer.cpp
C++
cpp
1,464
no_license
#include "FrameAnalyzer.h" #include <math.h> FrameAnalyzer::FrameAnalyzer() { int nfeatures = 500; float scaleFactor = 1.2f; int nlevels = 8; int edgeThreshold = 31; int firstLevel = 0; int WTA_K = 2; int scoreType = ORB::HARRIS_SCORE; int patchSize = 31; int fastThreshold = 20; feature = ORB::create( nfe...
cf2c6784a8c72c71feff488b7cbf036ec215d603
1947d85459a10553bdaa079603b93e1b3a2710a1
nickdoherty81/android_frameworks_av
/media/libstagefright/Utils.cpp
C++
cpp
70,399
permissive
/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
6d380613c6dc1d0824ce1b673a3eb8f247de168f
7aa7e03fb1635de862da7d41018de8f87de61de8
kokoye2007/omim
/drape_frontend/arrow3d.cpp
C++
cpp
9,251
permissive
#include "drape_frontend/arrow3d.hpp" #include "drape_frontend/color_constants.hpp" #include "drape_frontend/visual_params.hpp" #include "shaders/program_manager.hpp" #include "drape/glconstants.hpp" #include "drape/glextensions_list.hpp" #include "drape/glfunctions.hpp" #include "drape/glsl_func.hpp" #include "drap...
c4e3b22944049842f1f7fe95dc1766fe261462c4
9a8a3a966025f313c2b17b4f2fd6ea77a38a162b
febiosoftware/FEBio
/FEBioFluid/FEFluidSolutes.cpp
C++
cpp
18,432
permissive
/*This file is part of the FEBio source code and is licensed under the MIT license listed below. See Copyright-FEBio.txt for details. Copyright (c) 2021 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any person obtaining a...
62b2961717f4545da8c67d491a3738abed836a59
dc30d5dda11720cc3dc002b98ca013cb31123484
Slifer64/GravComp
/src/robots/kuka/lwr4p/FRILibrary/src/FastResearchInterfaceLibrary/SetRobotStatusData.cpp
C++
cpp
4,693
no_license
// ---------------------- Doxygen info ---------------------- //! \file SetRobotStatusData.cpp //! //! \brief //! Implementation file for several methods of the class FastResearchInterface for //! setting robot status data by the user application of this class //! //! \details //! The class FastResearchInterfa...
27c83e29255882f5c5807850b321b62acfa89519
27f6d64ebc39042d84d8debd0e2a65994df37bef
AlexandrFiner/PSTU_certification
/src/2_6.cpp
C++
cpp
551
no_license
#include <iostream> using namespace std; /* * Принцип работы расписан в задаче 2_4 */ int main() { int n; cout << "Введите N" << endl; cin >> n; string s; for(int i = 0; i < n; i++) { s.append(i, ' '); // Добавили пробелы s.append(n-i, '*'); // Добавили звездочку ...
b451b06b09be314caea4c546bd7c8f434595f437
529cbd22e61dc2468c53336e4f0adfc48bd17ab1
SamCZ/Hydra
/Hydra/Hydra/Render/UI/UIRenderer.cpp
C++
cpp
7,625
no_license
#include "Hydra/Render/UI/UIRenderer.h" #include "NanoVG/nanovg.h" #include "Hydra/Core/File.h" UIRenderer::UIRenderer() : _Context(nullptr) { } UIRenderer::~UIRenderer() { } void UIRenderer::Create() { if (_Context == nullptr) { _Context = CreateContext(0); nvgCreateFont(_Context, "Font", "Assets/Fonts/ari...
7f7a8543d4566f076d62c742f6cd198e73768e60
d1d0e00ba54617a94b22dc318b48616e9c6539af
tolotos-rgu/mergerfs
/src/policy_eplfs.cpp
C++
cpp
3,776
permissive
/* Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" ...
5297a89e678104871eb775efe664e6b1426f5150
59f7380b5172f66f9667baf99e803a24608addcb
Tim-Wang95/CIE_ex7_AddConstructorAndOperator
/library/test/DoubleVector_test.cpp
C++
cpp
5,657
no_license
// This tells catch to define a main function in this file #define CATCH_CONFIG_MAIN #include "catch.hpp" #include "DoubleVector.hpp" /* * Note, that the following is not tested: * - data is deleted in the destructor * - the right text is printed to the console * - the user input is done correctly * -...
191ea520d77d3101ed0fff3b4100aeeb876605da
b05af2021ff791f770fd8c2bc8c17bf9fbe3452f
ecmwf/atlas
/src/atlas/interpolation/method/PointIndex3.cc
C++
cc
2,358
permissive
/* * (C) Copyright 2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
8e0769648d5d2d3d3531f44ef966f0c258705801
92353a9c9af5da000a09fe252048a7d70602b41f
bansalshaleen/C-
/CODEFORCES/1426/1426D.cpp
C++
cpp
1,891
no_license
#include <bits/stdc++.h> #include <numeric> #include <iomanip> using namespace std; typedef long long int ll; typedef unsigned long long int sll; typedef long double ld; #define A 100000000ll #define B 998244353ll #define FAST ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define pb push_back #define mxe(v) *ma...
8b69af88bb817597c7faf4d91e77178f813aa5bb
64a025aca6926418e0f7e3c3fa189d29ddc88d01
siwei1234/cpp
/eraseOverlapIntervals/eraseOverlapIntervals/test.cpp
C++
cpp
809
no_license
#define _CRT_SECURE_NO_WARNINGS 1 #include<iostream> #include<vector> #include<algorithm> using namespace std; class Solution { public: struct cmp { bool operator()(const vector<int>& a, const vector<int>& b) { return a[0] < b[0]; } }; int eraseOverlapIntervals(vector<vector<int>>& intervals) { if (...
c66dbe2a36863249e638a0c12def8e81a542f713
7e5e9cfe7f4a1445ab31ed45d86982bacb5057cd
d310n/CyberEngineTweaks
/src/reverse/SingletonReference.cpp
C++
cpp
545
permissive
#include <stdafx.h> #include "SingletonReference.h" SingletonReference::SingletonReference(const TiltedPhoques::Lockable<sol::state, std::recursive_mutex>::Ref& aView, RED4ext::IRTTIType* apClass) : ClassType(aView, apClass) { } SingletonReference::~SingletonReference() = d...
287fc20f0c0dc0f402bd97635359009ff5bc9e7c
1b599bbda9bfff0be9c7ff50ece77ad3cfc3b311
JuHyeon-Lee/BOJ
/1000-9999/2442.cpp
C++
cpp
286
no_license
#include <iostream> using namespace std; int main(){ int N; scanf("%d", &N); for(int i=1; i<=N; i++){ for(int j=0; j<N-i; j++){ printf(" "); } for(int j=0; j<i; j++){ printf("*"); } for(int j=0; j<i-1; j++){ printf("*"); } printf("\n"); } return 0; }
7816475313438e127fc9a3dbf8e01399ec23eb62
995f53c95047057ee9fd1cebed49dd90e9e41dd4
alrobles/ProgramacionCientifica-UV
/Unidad 1- Arquitectura, Ensamblador y Compiladores/3-Cpp_By_Example/Unidad4_2.cpp
C++
cpp
813
permissive
#include <iostream> #include <vector> #include <cmath> using namespace std; int main() { // El vector es una estructura que contiene datos en una lista. vector<double> miLista; // Aqui se crea un vector con elementos double. miLista.push_back(5.2); miLista.push_back(39.0); miLista.push_back(98.38); // Añadimos 3...
af84931b47f42f3a5e5199c54303cb17b20dd14b
db6598201350efac13788eac630881dd605a62b5
blockmir/ddd
/src/rpcdump.cpp
C++
cpp
20,044
permissive
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The DONATE developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bip38.h" #include "init....
3654ac41c8c0b1ca8bd91744a679e2c324d3a84c
2c4ddcd0ea73c07ffc83582dfeebeb4a5bfa190d
hypercube33/chromium
/services/preferences/public/cpp/pref_service_factory.cc
C++
cc
7,260
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 "services/preferences/public/cpp/pref_service_factory.h" #include <memory> #include <utility> #include "base/bind.h" #include "base/callback_he...
b80fea58eb3fa48c5e7031422b4e477bf2d01d9a
17b9a210a345946df127c0e4f01f5e268e765393
bagobor/TinyLS
/loom/script/serialize/lsTypeReader.cpp
C++
cpp
8,629
no_license
/* * =========================================================================== * Loom SDK * Copyright 2011, 2012, 2013 * The Game Engine Company, 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 o...
0762822865df6d3ba68f2a9c3a8239ff66b657e9
000c8e033af6c1a22b4e3ee7651f7815e6626b63
wangwshuai/t2h
/src/common/services_manager.cpp
C++
cpp
2,786
no_license
#include "services_manager.hpp" namespace common { services_manager::services_manager() : services_() { } services_manager::~services_manager() { boost::lock_guard<boost::mutex> guard(lock_); } bool services_manager::registrate(base_service_ptr service) { boost::lock_guard<boost::mutex> guard(lock_); if (serv...
2117beea0be83b975762c0ed61f5310730795541
c40372e89b1ba771f02dccde7545fb985813a339
mfow/uoa-political-science
/VotingSimulator/VotingSimulator/CSVReader.cpp
C++
cpp
1,662
no_license
#pragma once #include "stdafx.h" #include "CSVReader.h" String readSingle(wifstream &in) { vector<String>* line = readCSVLine(in); String result; // Check file header. if (line->size() >= 1) { result = line->front(); } else { result = L""; } delete line; return result; } map<String, String>* getHead...
5ec4ab84b3679d70eb70021464fadecbe70421d8
9ba083382c303bab3f35da9c5a35a1ad8659c398
markpp/computer_vision_samples
/cpp/pcl_projects/supervoxel_segmentation_playground/src/Graphics.hpp
C++
hpp
532
no_license
/*--------- INCLUDES------------*/ #include <stdio.h> #include <iostream> #include <boost/thread/thread.hpp> #include <pcl/visualization/pcl_visualizer.h> #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> class Graphics { public: Graphics(); boost::shared_ptr<pcl::visualization::PCLVisualizer>...
cd8bfa6006192ad08361e5cbc54dbdc362f1cf67
4b9de65463e3aecc8ddf116063755e9bffa7ed07
RainCT/hector_navigation
/hector_exploration_planner/src/hector_exploration_base_global_planner_plugin.cpp
C++
cpp
2,901
no_license
//================================================================================================= // Copyright (c) 2012, Mark Sollweck, Stefan Kohlbrecher, TU Darmstadt // All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the follo...
19989da9747838c5e3163e06437e88bdf3f5838b
322d08dd95638b87fb90775cd7cd19484f3380c5
Bluemi/visualizer
/src/shape/ShapeType.hpp
C++
hpp
408
no_license
#ifndef __SHAPETYPE_CLASS__ #define __SHAPETYPE_CLASS__ #include "ShapeSpecification.hpp" namespace visualizer { enum class ShapeType { CUBE, SPHERE }; bool operator==(const ShapeType& shape_type, const ShapeSpecification& shape_spec); bool operator==(const ShapeSpecification& shape_spec, const ShapeType& sh...
7d504b2b1575ee6dadc55f9de6939081d597ffd8
ed32c35d472b9d635272f2c03ce50a106061e02d
anthonykrose/Run2Alignment
/Alignment/MuonAlignmentAlgorithms/src/MuonResidualsFromTrack.cc
C++
cc
39,653
no_license
/* * $Id: MuonResidualsFromTrack.cc,v 1.5 2011/10/12 23:40:24 khotilov Exp $ */ #include "Alignment/MuonAlignmentAlgorithms/interface/MuonResidualsFromTrack.h" #include "DataFormats/TrackReco/interface/Track.h" #include "DataFormats/TrackReco/interface/TrackFwd.h" #include "Alignment/MuonAlignmentAlgorithms/interf...
fc23ee065fc7deb1f0a74c2df371d1dc98bb252c
7b4bd18b6226df93ec5a730c27a8ef5fde3afcdd
4l3dx/DBOGLOBAL
/DboClient/Client/Parser/JudgeDump.cpp
C++
cpp
8,767
no_license
#include "precomp_dboclient.h" #include "JudgeDump.h" // core #include "NtlDebug.h" // shared #include "NtlPacketUG.h" #include "NtlPacketGU.h" #include "NtlPacketUtil.h" // simulation #include "NtlSLDef.h" #include "NtlSLGlobal.h" #include "NtlSob.h" #include "NtlSobAvatar.h" #include "NtlSobManager.h" #include "Nt...
fa9b1bf914a9b587ed0614c8d4cae40cd2b24f32
107b2bdd5f9402706ef5526c5d74b2a9a6edb0cb
littlebirdicy/Av_to_Bv
/av_to_bv.cpp
C++
cpp
5,775
no_license
#include <iostream> #include <cstdlib> #include <cstring> using namespace std; //函数声明 int get_size(char *str); //返回该非空字符串的最后一位index void help(); //显示帮助 void av_to_bv(); //av号转bv void bv_to_av(); //bv号转av //全局变量 const string to_bv = "fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7...
bd0cb5dfb816348aff2548657d2e4eea9f108166
4e8726b41d6a48f0df67b8bd2d73a2189c2050aa
KennSon16/CPSC-131
/EPP Part 2/part2.cpp
C++
cpp
1,037
no_license
#include <iostream> #include <string> #include "Hitboxes.h" using namespace std; int main() { { // Test with first text file Hitboxes hb(string("apex.txt")); if (hb.smallestCharacter() == "Wraith") cout << "smallestCharacter: PASSED" << endl; else cout << "smallestCharacter: Resu...
99960f2a84abf39e408e8bbb9e6eca2eca7df14a
af70957ce0ddbf36a27cb2a3ad9291f782d4d803
hedgepigdaniel/video-annotator
/opencv/OpenClTest.cpp
C++
cpp
12,623
no_license
#include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/core/core.hpp> #include <opencv2/core/ocl.hpp> #include <iostream> using namespace cv; using namespace std; string imagePath="/usr/share/opencv4/samples/data/lena.jpg"; int TestOpenCL(int nbTest); int main(int argc, cha...
82267387548643ff8daef54ab641e0d9aff62f62
45585116f30885bc0ecec7070b52979688cc7937
szu-lab/CoreMop
/src/server/scripts/Pandaria/ThroneOfThunder/boss_durumu.cpp
C++
cpp
58,840
no_license
#include "throne_of_thunder.hpp" // 137674 enum ScriptTexts { SAY_AGGRO = 0, SAY_BERSERK = 1, SAY_DEATH = 2, SAY_INTRO = 3, SAY_KILL = 4, SAY_WIPE = 5, SAY_DESINTEGRATION_BEAM = 6, SAY_COLORBIND ...
a4f4c9703af0b977e8e057c3550a55f82f0b5aa0
7431ea6fcf67cb7017cd63c8bd9a93e1f2c66bc6
Yang-Shawn/leetcode
/leetcode/Leetcode35.cpp
C++
cpp
431
no_license
#include <iostream> #include <vector> using namespace std; int searchInsert(vector<int>& nums, int target) { int res = 0; for (int i = 0; i < nums.size(); i++) { if (nums[i] < target) { res = i+1; } else { break; } } return res; } //int main() { // int tar = 0; // int num[] = {1,3,5,6}; // vector<int>...
f9088019c0b44f0f6532bf66885616adb5112170
1c9473887187e6d8f44cdcf9e4916f20e5b4100f
dma-homebrew/ORCA-C
/Tests/Conformance/C25.0.17.CC
C++
cc
1,210
no_license
/* Conformance Test 25.0.17: Verification of code generation for ROR instr */ #define DP 0x02 /* define 1, 2, & 3 byte addresses */ #define ABS 0x800 #define LONG 0x123456 #include <stdio.h> main () { int i = 0; asm { brl Test Code: ...
03e9ad731edb0f4d8eccaa87fb02455d6018cc0f
afc2ac4fc772f6c8badfc3d903bdb39be6cd3465
Gillis/hadrontherapy
/src/HadrontherapyGeometryMessenger.cc
C++
cc
3,338
no_license
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
987f0e83725e3460ab93873b1b546ca2a77657e9
c598025b5e8f3ff72656ff370068bb0ff3a80f2a
priyanshu-max/tensorflow
/tensorflow/compiler/xla/service/gpu/convolution_folding.cc
C++
cc
19,637
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...
9fe0370aa093eb9d52a4a3f85992fe37602a537c
5f464f9f8adcfcf9aa3a73099c945a5ead296087
dothe/proview
/wb/lib/wb/gtk/wb_bckwnav_gtk.cpp
C++
cpp
2,611
no_license
/** * Proview Open Source Process Control. * Copyright (C) 2005-2016 SSAB EMEA AB. * * This file is part of Proview. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version...
27361309c465877a4570a127274c9198fb745dd6
9a33c243cf60c70be3c67ffd44b6faa8372653db
Fabreu97/Snake
/Field.cpp
C++
cpp
2,357
no_license
#include "Field.h" Field::Field(const float block_size, const unsigned int x, const unsigned int y, const float spacing): field(), bs(x,y) { ent::Segment* wall1 = new ent::Segment(); ent::Segment* wall2 = new ent::Segment(); ent::Segment* wall3 = new ent::Segment(); ent::Segment* wall4 = new en...
a4022ce18b2ad4c8f6ddeaf07cfe2a481f7c5533
70d856bd2c739854eb26ae27fc4126b355306027
PretzelSmoothie/project-euler
/p7.cpp
C++
cpp
1,252
no_license
/* By listing the first six prime numbers:2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st prime number? */ #include <iostream> #include <cmath> using std::cout; using std::endl; bool isPrime(long long n); int main(){ const long N = 10001; long primeCounter = 0, primeN...
981ab79e1dbb2b46af4fa5d857c209d833690aff
f3a3d112349caef646b3051442492526aed3a1c2
masters-info-nantes/DaddyWhereIsMyHorse
/imageclickable.cpp
C++
cpp
1,794
permissive
#include "imageclickable.h" #include <iostream> ImageClickable::ImageClickable(std::string nouveau_path_image_film, QWidget *parent):QLabel(parent) { path_image_film = nouveau_path_image_film; path_dessin = ""; QPixmap image_film_temp(nouveau_path_image_film.c_str()); image_film_temp = image_film_temp.s...
a4ff6668ad1cd7a8d79444860b8b80c756fb9eee
2e1768667d21f6728d352c2e9e431162d7918823
wzh1998/ACM-ICPC
/ACM/BJUT_OJ_1077.cpp
C++
cpp
1,272
no_license
// // BJUT_OJ_1077.cpp // ACM // // Created by 王子豪 on 2018/3/8. // Copyright © 2018年 王子豪. All rights reserved. // #include <iostream> #include <cstdlib> #include <algorithm> #include <cstring> #include <cstdio> #include <queue> #include <vector> using namespace std; int main(void){ int T; int C0[100][100...
a1c5560df5677adbd5f49352d9b6fda4b7963822
c28cbdc134b3d963352367ca3209e3c8e6923f30
NotAPenguin0/-DISCONTINUED-SaturnEngine
/GLFinal/metafuncs.hpp
C++
hpp
1,142
no_license
#ifndef MVG_META_FUNCS_HPP_ #define MVG_META_FUNCS_HPP_ #include <type_traits> namespace mvg { namespace detail { template<typename T> struct is_same_wrapper { template<typename U> struct is_same : public std::is_same<T, U> { }; }; } //namespace detail template<template<typename> typename F> struct metafunc ...
9f2da8404076959ff78d02a795f2edef81984ccc
73bcb274242f5173364cff58b6a341ed5f3c27a9
Jelskipro/KMIAD3
/AllergieZone/src/textBlock.cpp
C++
cpp
1,299
no_license
#include "textBlock.h" textBlock::textBlock() { } void textBlock::setup(string textContent, string textZone, string textCategory, ofTrueTypeFont blockFont) { text = textContent; zone = textZone; category = textCategory; itemFont = blockFont; //Kijk in welke zone deze tekstblock moet komen en zet de waarde. i...
b8a31527585ebffc15b2a7e2c84e78da25c019e9
14cc8011a727a5ed4d82209ba2b83b1aaa096ab1
alokpathy/PuLP-ogb
/xtrapulp/0.2/main.cpp
C++
cpp
9,624
no_license
/* //@HEADER // ***************************************************************************** // // XtraPuLP: Xtreme-Scale Graph Partitioning using Label Propagation // Copyright (2016) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government r...
2af3306ece938c4d158884fa3b461e9d2093aad7
e763959f5e110f50a9bc29a0e1a76e62dbba1f12
zlocker/QtBookCode
/Qt5.9C++/QT5.9Samp/chap15Multimedia/samp15_3Recorder/release/moc_mainwindow.cpp
C++
cpp
5,797
no_license
/**************************************************************************** ** Meta object code from reading C++ file 'mainwindow.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.8.0) ** ** WARNING! All changes made in this file will be lost! **********************************************************...
4b3d83989115354f36cf55321b2a0f7d87095fcb
cda52676d29ab83f570d33cf4cc6e32d65f44f07
JustinZhou/PSS
/purenessscopeserver/purenessscopeserver/PurenessScopeServer/Reactor/ConnectClient.cpp
C++
cpp
16,452
no_license
#include "ConnectClient.h" #include "ClientReConnectManager.h" CConnectClient::CConnectClient(void) { m_pCurrMessage = NULL; m_nIOCount = 1; m_nServerID = 0; m_u4SendSize = 0; m_u4SendCount = 0; m_u4RecvSize = 0; m_u4RecvCount = 0; m_u4Cos...
d9bd84a6fd32022d7a240f89b84d89bad25326fa
a72300d997d4ef6ba7e7eb9440e445c6cd75b19c
Ten2016/Data-Structure
/Queue/SqQueue/Def.cpp
C++
cpp
911
permissive
#include "Def.h" void Init(SqCirQueue &SCQ,int max){ SCQ.elem = new Elem[max]; SCQ.max=max; SCQ.front=0; SCQ.rear=0; } int EnQueue(SqCirQueue &SCQ,Elem x){ if(SCQ.front==(SCQ.rear+1)%SCQ.max) return 0; SCQ.elem[SCQ.rear]=x; SCQ.rear=(SCQ.rear+1)%SCQ.max; return 1; } int DeQueue(SqCirQueue &SCQ,Elem &x){ if(...
c52ccf23f2215611e749af720ade78781b779c35
343c3a987ca4692c2f43f9dcfc9b838438b2ba89
kimhansyel/Escape-Meteorites
/Escape Meteorites/운석피하기_1/main.cpp
C++
cpp
26,887
no_license
#include<stdio.h> #include<stdlib.h> #include<time.h> #include<gl\glut.h> #include<gl\GL.h> #include<gl\GLU.h> #pragma warning(disable:4996) static GLint game_state = 2; // 0 = 게임오버, 1 = 게임시작, 2 = 메인, 3 = 난이도선택 static GLint level = 0; // 0 = 이지, 1 = 노멀, 2 = 하드, 3 = 헬 static GLint draw = 1; stati...
036e8e70e17a1a1ea7fc8472ba1e2b536dd31c8d
9dc25b529714a7c4639627f2e204582f3852db97
1vanK/MarkdownViewer
/application/application.cpp
C++
cpp
2,105
no_license
#include "application.h" #include "client.h" #include "utils.h" // CEF #include <include/wrapper/cef_helpers.h> // cmark-gfm #include <../extensions/cmark-gfm-core-extensions.h> #include <registry.h> Application::Application() { // При взаимодействии с файловой системой будут использоваться строки UTF-8 set...
7cfc4c948fafc1c1dcf0e53446f0628e45a4e514
0e47d341ae9dc498d030efd3bcd309a6b887b7f0
metrumresearchgroup/Torsten
/cmdstan/stan/lib/stan_math/test/unit/math/prim/fun/ub_transform_test.cpp
C++
cpp
6,890
permissive
#include <stan/math/prim.hpp> #include <test/unit/util.hpp> #include <gtest/gtest.h> #include <limits> TEST(prob_transform, ub_constrain) { double x = -1.0; double ub = 2.0; double ubi = stan::math::INFTY; { double result = stan::math::ub_constrain(x, ub); double resulti = stan::math::ub_constrain(x, ...
a62a5f11798008dc820b88ea585b20b3eaa8d7ef
bbeff417eef8f4e154eabbfca9c39e8898da73ea
hideoussquid/aureus-12-bitcore
/src/compat/strnlen.cpp
C++
cpp
510
permissive
// Copyright (c) 2009-2014 The Aureus 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/aureus-config.h" #endif #include <cstring> #if HAVE_DECL_STRNLEN == 0 size_t str...
788e128414bf4a36e23c0f0daa93cac9b20a806d
a0e5e98db56f2998bdce5e4510f8ce8b1778c9e5
mhcchang/SDK_2.6.0_FRDM-K64F
/middleware/multicore/erpc/erpc_c/setup/erpc_setup_dspi_slave.cpp
C++
cpp
1,006
permissive
/* * Copyright (c) 2014-2016, Freescale Semiconductor, Inc. * Copyright 2016 NXP * All rights reserved. * * * SPDX-License-Identifier: BSD-3-Clause */ #include "erpc_dspi_slave_transport.h" #include "erpc_manually_constructed.h" #include "erpc_transport_setup.h" using namespace erpc; //////////...
2b6acedee9079ae7402f341281827cd7eb9830ca
ee8f85448f6475806d1260e551e4ebce985f8152
HildarTheDorf/vfighter
/Renderer.hpp
C++
hpp
1,803
no_license
#pragma once #define GLM_FORCE_DEPTH_ZERO_TO_ONE #define GLM_FORCE_LEFT_HANDED #define VK_USE_PLATFORM_XCB_KHR #include "Mesh.hpp" #include "RendererBase.hpp" #include <glm/gtc/quaternion.hpp> struct Scene { glm::vec3 cameraLocation; glm::vec3 modelLocation; glm::quat modelRotation; }; enum class Rende...
dc73f0e2601217c7163ab04710362b952a740609
2b783a85263b42c2ccfe15c4bf2c66d0523c219a
ivanhernandez13/llvm-project
/mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
C++
cpp
37,732
permissive
//===- Fusion.cpp - Implementation of linalg Fusion -----------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
c251116e35905f32f86cb4a1134b340b852937f8
fbc467f9d06de845dd1c0dfc65fd78700de3290a
PeachZ90-xx/xcode
/C++/test/test/main.cpp
C++
cpp
562
no_license
// // main.cpp // test // // Created by Alan Trevino De Arcos on 8/23/14. // Copyright (c) 2014 Alan Trevino. All rights reserved. // #include <iostream> #include <string> using namespace std; int main(int argc, const char * argv[]) { //Declares string name; // insert code here... cout << "H...
3ea7df88256414095cd4b41a0c4941497009303a
4b60d65e88a6c2aa3a8c0bc681832bd34b730d0a
JLMPL/EvilMonkeys
/wait/Thats serious/Tower/Game/Actor.hpp
C++
hpp
1,327
no_license
#pragma once #include "Entity.hpp" #include "Decoration.hpp" #include "Render/3D/AnimatedMeshInstance.hpp" class World; struct LedgeData { vec3 pos; vec3 normal; float height = 0.f; }; struct Actor { using Ptr = std::unique_ptr<Actor>; Actor(); void init(World* world); void initAnimMesh...
6249d7660e02839e6eff9af96b2f5c47969b1d60
2e450a5c1ae2f41bccc825a636bd2453468ea157
jcebidanes/maratonas
/dama.cpp
C++
cpp
530
no_license
#include <iostream> #include <cstdlib> using namespace std; // https://br.spoj.com/problems/DAMA/ int main() { int x1, x2, y1, y2; cin >> x1 >> y1 >> x2 >> y2; while( (x1+x2+y1+y2) != 0){ int dx = abs(x1-x2); int dy = abs(y1-y2); if(x1 == x2 && y1 == y2){ cou...
ebda67ac4c70e07ba7dfa60ab2deeba4ab12e8c1
4473530463a32328532f3dbcacd29cf890514f44
roussukke/Yorozuya
/library/ATF/LPHW_PROFILE_INFOA.hpp
C++
hpp
278
permissive
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <tagHW_PROFILE_INFOA.hpp> START_ATF_NAMESPACE typedef tagHW_PROFILE_INFOA *LPHW_PROFILE_INFOA; END_ATF_NAMESPACE
0b61b163834f0f0c33bee29048cf5cf5290f8510
47b7491be61cadd47b1c20aa5dc61f987db1e992
JO43425/OpenWorld_UE
/Source/OpenWorld/BTDecorator_IsDead.cpp
C++
cpp
615
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "BTDecorator_IsDead.h" #include "OWAIController.h" #include "OWCharacter.h" #include "BehaviorTree/BlackboardComponent.h" UBTDecorator_IsDead::UBTDecorator_IsDead() { } bool UBTDecorator_IsDead::CalculateRawConditionValue(UBehav...
5956786d415fb00a2c40b2330044ff11e6cbfe6b
8401e2893139c37d5d22dd69dfb83633637c2f22
niuxu18/logTracker-old
/second/download/rsync/gumtree/rsync_repos_function_600_rsync-3.0.9.cpp
C++
cpp
426
no_license
local unsigned syncsearch(have, buf, len) unsigned FAR *have; unsigned char FAR *buf; unsigned len; { unsigned got; unsigned next; got = *have; next = 0; while (next < len && got < 4) { if ((int)(buf[next]) == (got < 2 ? 0 : 0xff)) got++; else if (buf[next]) ...