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
710177208160d19d1477b0e860f01099f9a8c371
24fad9d5edc29385e683562ae1f5e24f22044873
brunolauze/openpegasus-providers
/src/Providers/UNIXProviders/AuthorizedPrivilege/UNIX_AuthorizedPrivilege_TRU64.hxx
C++
hxx
1,823
permissive
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
c3600dcf496bc1880056909e48bedecaaf2575ed
3a7060d84709a15dca7d97a7b3152994ca03b7aa
ardacoskunses/pal
/src/core/hw/gfxip/rpm/g_rpmGfxPipelineInit.cpp
C++
cpp
136,420
permissive
/* *********************************************************************************************************************** * * Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated ...
46834b77c3f51cf4c6018b9eebf304863c2c964e
c3525d0adceffac25cbf1f006648847892195030
egenender/tp-taller-1
/TP/src/gui/model/ManejadorCambiaEstado.cpp
C++
cpp
319
no_license
#include "ManejadorCambiaEstado.h" #include "../../controller/ManejadorEstados.h" ManejadorCambiaEstado::ManejadorCambiaEstado(int state) { estadoCambio = state; } ManejadorCambiaEstado::~ManejadorCambiaEstado() { } void ManejadorCambiaEstado::manejarClic(){ ManejadorEstados::setearEstadoActual(estadoCambio); }
8deebfc02bf7960045375ed6de156102b1e87a23
955b63a157267fe7a59a65f472e4c0614243a94e
xugongming38/Genius
/Genius/win32/Classes/demoscene3.cpp
C++
cpp
9,303
no_license
#include"demoscene3.h" #define NUM 13 // 烟花种类数量宏定义 /***** 结构定义区 **********/ // 烟花结构 struct FIRE { int r; // 当前爆炸半径 int max_r; // 爆炸中心距离边缘最大半径 int x, y; // 爆炸中心在窗口的坐标 int cen_x, cen_y; // 爆炸中心相对图片左上角的坐标 int width, height; // 图片的宽高 int xy[240][240]; // 储存图片像素点 bool show; // 是否绽放 bool draw; ...
ab9372ca57129720c56e263be9fd6ff112e1f1e7
c9be1a1ea9da45af29e4f1e231e9b3b7d78e136d
butani0727/teisyutu
/main03.cpp
C++
cpp
5,793
no_license
#include "include\GL\glew.h" #include "include\GLFW\glfw3.h" #include "glm\glm.hpp" #include "glm\gtx\transform.hpp" #pragma comment(lib, "OpenGL32.lib") #pragma comment (lib,"lib/Release/Win32/glew32.lib") #pragma comment (lib,"lib/Release/Win32/glew32s.lib") #pragma comment (lib,"lib-vc2015/glfw3.lib") #pr...
a1ffd94b1f6ffdf489bae7bb55714d47dbd87441
e78d458f0af5aa44f8f49fb6fff1aa05cc79e6c7
xtblock/chromium
/chrome/browser/ash/sync/split_settings_sync_field_trial.cc
C++
cc
5,537
permissive
// Copyright 2020 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/ash/sync/split_settings_sync_field_trial.h" #include "ash/constants/ash_features.h" #include "base/feature_list.h" #include "bas...
7aa2def5522d7bcfdd35f527f5620cd474dbfb5b
6159a14e5382799d059076c6484c73ae9718d232
scrat98/OOP
/lab4_FactorisationAlgorithms/src/core/Factorizer.hpp
C++
hpp
910
no_license
#pragma once #include <memory> #include <cstdint> #include <map> #include <queue> #include <core/FactorizationAlgorithm.hpp> class Factorizer { public: explicit Factorizer() = delete; explicit Factorizer(const AlgorithmSupplier& supplier) : algorithm(supplier()){} std::map<uint64_t, uint64_t> getPrimeFactors(u...
4d14294a4b2cba07b80e9a72a93cac696a8af583
8a57aca40ce2b4aa4193bfcdf7217180bc1d29bf
hansx7/LeetCode
/3_Longest_Substring_Without_Repeating_Characters.cpp
C++
cpp
499
no_license
#include<bits/stdc++.h> using namespace std; int lengthOfLongestSubstring(string s) { int a[200]; int max_length = 0; for (int i = 0; i < s.length(); i++){ memset(a, 0, sizeof(a)); int l = 0; for (int j = i; j < s.length(); j++){ if (a[int(s[j])] == 0){ a[int(s[j])] = 1; l++; } el...
b0b9c8b1317a2fc0b5671eb3004212e305637a08
2445cd77ec420c68ea3af237d330132301605d3a
perryrob/oxcart
/src/trivial_log.cpp
C++
cpp
668
permissive
/******************************************************************************** Copyright (c) 2017 Bob Perry / asw204k_AT_yahoo.com All rights reserved. Please see license in the project root directory fro more details */ #include "trivial_log.h" void init_log() { logging::core::get()->set_filter ( ...
c391b56bc48ac8238446a355874131d1d514386b
19b34340ee96b41c7be03d3f186df786974110ab
SameerSawla/AssignmentsFall2014
/Data Structures/HomeWorks/hw2/WorkingCopy/hw2.cpp
C++
cpp
1,540
no_license
#include <iostream> #include <string> #include <vector> #include <fstream> #include <sstream> #include <algorithm> #include <iomanip> #include <cstdlib> #include "helper.h" using namespace std; int main(int argc,char* argv[]) { //Checking for proper number of arguments if(argc!=3) { std::cerr<<"Invalid number ...
82d75ff765b198ab658f975cd581605d830fe092
c1fc7eed3787b1ee26426465739e851397c6e93e
xiejinglan/curly.hpp
/untests/doctest/doctest.hpp
C++
hpp
262
permissive
#pragma once #include "doctest.h" #define STATIC_REQUIRE(...)\ static_assert(__VA_ARGS__, #__VA_ARGS__);\ REQUIRE(__VA_ARGS__); #define STATIC_REQUIRE_FALSE(...)\ static_assert(!(__VA_ARGS__), "!(" #__VA_ARGS__ ")");\ REQUIRE(!(__VA_ARGS__));
5b3c97985b585d6f4fc4ab7a5898751b5acdeb16
1351e20baeb1ac10cc78aaf97517c8f2b83b6343
mohammadfatemieh/OpenIMU-MiniLogger
/ConfigAPP/mainwindow.cpp
C++
cpp
12,188
no_license
#include "mainwindow.h" #include <QFile> #include <QDir> #include <QDirIterator> #include <QMessageBox> #include <QTextStream> #include <QtDebug> #include <QList> #include <QIntValidator> #include <QFileDialog> #include <QJsonDocument> #include <QJsonObject> #include <QNetworkReply> #include <QNetworkRequest> #include...
b11e0a91fa50e8aa4cf1d73cd248cee88f32c3f2
77447e7a31face27163c5da3fd49ba5fea378561
IsraMekki/tiramisu_code_generator
/cmake-build-debug/programs_tiling/function14186/function14186_schedule_21/function14186_schedule_21_wrapper.cpp
C++
cpp
1,079
no_license
#include "Halide.h" #include "function14186_schedule_21_wrapper.h" #include "tiramisu/utils.h" #include <cstdlib> #include <iostream> #include <time.h> #include <fstream> #include <chrono> #define MAX_RAND 200 int main(int, char **){ Halide::Buffer<int32_t> buf00(128, 64); Halide::Buffer<int32_t> buf01(...
c2e8d9d665b890e857f91ae43729284abf05ec5a
a2047e5a12175522e1d4696af89d58a9bd603b08
ggaier/android_platform_tools_base
/profiler/native/utils/filesystem_notifier.mac.cc
C++
cc
1,644
no_license
/* * Copyright (C) 2016 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...
2ab67e8d5bd71bba74488fb5ce0a0e3ea3fcd6dc
b45810868d06f40ba657dbc327adb1fb08343162
Edwin19890707/ACM
/ACM-ICPC/2011 NEERC Northern D - Dice.cpp
C++
cpp
1,761
no_license
#include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <climits> #include <ctime> #include <cctype> #include <algorithm> #include <string> #include <vector> #include <map> #include <set> #include <queue> #include <deque> #include <stack> #include <list> #include <functiona...
a9fb40af171b4e6e3eca2c52b5a5150749413434
1221942219b5ade370d2c0bfae3bce61a62d2e25
MolecularMatters/psd_sdk
/src/Psd/PsdSyncFileReader.cpp
C++
cpp
2,142
permissive
// Copyright 2011-2020, Molecular Matters GmbH <office@molecular-matters.com> // See LICENSE.txt for licensing details (2-clause BSD License: https://opensource.org/licenses/BSD-2-Clause) #include "PsdPch.h" #include "PsdSyncFileReader.h" #include "PsdFile.h" PSD_NAMESPACE_BEGIN // ---------------------...
a1b0d49ec2a69647ef5d0241df154c938a24d8cf
488dc4fab19223ee2190b5bfcecf4413b30d3879
corvaxx/mediasoup
/worker/src/RTC/RtpStream.cpp
C++
cpp
9,364
permissive
#define MS_CLASS "RTC::RtpStream" // #define MS_LOG_DEV_LEVEL 3 #include "RTC/RtpStream.hpp" #include "Logger.hpp" #include "RTC/SeqManager.hpp" namespace RTC { /* Static. */ static constexpr uint16_t MaxDropout{ 3000 }; static constexpr uint16_t MaxMisorder{ 1500 }; static constexpr uint32_t RtpSeqMod{ 1 << 16 ...
2d0df75f797de663c1b34860633fb9606848bf86
d505f8b2ffbb7f0c339f5ca41f08fe613fca03c9
zeph1912/milkomeda_chromium
/chrome/browser/extensions/api/cast_streaming/performance_test.cc
C++
cc
29,715
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 <stddef.h> #include <stdint.h> #include <algorithm> #include <cmath> #include <iterator> #include <map> #include <vector> #include "base/comman...
580eabd139600150d0e552747aaa02a6ef1b5e24
fdb0f246a9834b72ef369c4e3bb61220d38a6bb8
t4tuan00/PankkitomaattiWalmis
/Pankkitomaatti/SQLDLL/sqldll.cpp
C++
cpp
4,654
no_license
#include "sqldll.h" SQLDLL::SQLDLL() { } void SQLDLL::yhteys() { QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL"); db.setHostName("mysli.oamk.fi"); db.setDatabaseName("opisk_t4kial00"); db.setUserName("t4kial00"); db.setPassword("uKwfgYPEX2sct3Qw"); db.open(); } void SQLDLL::nosta20(Q...
4c7f2101c82d23e78912bcf9e892e57117a21116
c8a8c564a4300a8ba106977c91ad1bb008646f38
tridibsamanta/Codeforces_Solutions
/1315C.cpp
C++
cpp
2,843
no_license
/* ~ Author : @tridib_2003 */ #pragma GCC optimize("O3") // #pragma GCC optimize("Ofast") // #pragma GCC target("avx,avx2,fma") #include<bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; typedef tree<int, null_type, less<int>, rb_tree_tag, ...
e2a4f857984e5b1fe06911ac9aeaa060dcc097f6
ae201d13a8a9ff14acbc34cfedd67f2fb97c93c4
jeffmm/simcore
/src/species_base.cpp
C++
cpp
8,164
permissive
#include "simcore/species_base.hpp" SpeciesBase::SpeciesBase(unsigned long seed) : rng_(seed) {} void SpeciesBase::SetSID(species_id sid) { sid_ = sid; } /* Static functions*/ void SpeciesBase::SetParams(system_parameters *params) { params_ = params; } void SpeciesBase::SetSpace(space_struct *space) { space_ = space...
9f7a025b8b1184a23f19a694770f0448b2cc1ad2
a1a30f6a1f559cfcfd751039015a219c5a4e294c
zieglerm/pwsafe
/src/ui/Windows/SysColStatic.cpp
C++
cpp
2,828
permissive
/* * Copyright (c) 2003-2018 Rony Shapiro <ronys@pwsafe.org>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ /// \file SysColStatic...
5792660ab7824bfe4ce7683c571de1a2964bf203
506c00e5613723f3da3e178cf9f6b273882ace94
ericniebler/range-v3
/test/algorithm/find_end.cpp
C++
cpp
21,893
permissive
// Range v3 library // // Copyright Eric Niebler 2014-present // // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.com/ericniebler/range-v3 ...
befb6519cfe2dbea5e9b58f0c081e528c616eef7
a0ce4dbd2fd99744c70b1cbb0261c6d56b19479e
zhengfish/wtl-examples
/src/mfc_draw_examples/cpphtmlstatic_demo/PageColors.cpp
C++
cpp
4,266
no_license
// PageColors.cpp : implementation file // #include "stdafx.h" #include "CPPHtmlStatic_demo.h" #include "CPPHtmlStatic_demoDlg.h" #include "PageColors.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////...
97cf3bcfde0fb0a71bb3fea2dec807af59ca362f
5c69300e02aaf6c08b15d4a83f94038605e661f7
ShieldCoin/SHIELD
/src/qt/openuridialog.cpp
C++
cpp
1,304
permissive
// Copyright (c) 2009-2017 The Bitcoin Core developers // Copyright (c) 2018-2018 The SHIELD Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/openuridialog.h> #include <qt/forms/ui_openuridialog.h> #...
e8de34a63d2038a84a2f1c30a64affdfd1b50602
c53af65112e069fe110467149da70a0bba56b6b3
zslwyuan/LLVM-9-for-Light-HLS
/LLVM_src/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/decrement.pass.cpp
C++
cpp
1,439
permissive
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
36ca49e1146f54c9f285feb454c5b1b6029c055a
c48e4b4a112d540a77d841e797d5af98c2ae0c32
rishabhworking/colombo
/src/crypto/sha1.cpp
C++
cpp
8,971
permissive
// Copyright (c) 2014-2018 The Bitcoin Core developers // Copyright (c) 2017 The Raven Core developers // Copyright (c) 2018 The Rito Core developers // Copyright (c) 2019 The Colombo Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/license...
306538cbd3a48b899deac771b708ee8adb4a65b5
be17bc5893c8f09aad03a8ec5614b5b6e6b308b5
coder-KO/SmartWatch
/Arduino/SmartWatch/BatteryOverlay.cpp
C++
cpp
2,141
no_license
#include "Module.h" /* ################################################################################### * Battery Overlay ################################################################################### */ // Set to occupy row 0, column 114 onwards - implemented to consume 7 columns - 1 start, 1 end, 5 level...
0ee8079c065fd94fc45e79f0b8c63799e29aca87
831619da372e64aa69c55d1b845dc8ed957708ba
justlucdewit/derpcounter
/main.cpp
C++
cpp
1,782
no_license
#include <fstream> #include <iostream> #include <vector> #include <string> int main(int argc, char** argv) { if (argc > 1 && strcmp(argv[1], "add") == 0){ std::ofstream derpData("derps.data", std::ios::app); std::ifstream derpDataIn("derps.data"); int derps = std::count(std::istreambuf_iter...
18bd77b976beacbbd4edbf2f5830ad9b19948aa9
a189e2a10b339e7f24e22f71b47920a20bca6c60
savleproj/savle-source
/src/rpcdump.cpp
C++
cpp
11,263
permissive
// Copyright (c) 2009-2012 Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <iostream> #include <fstream> #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_interface.h" #in...
8617586835aa513554f7b63a1a4264cd422cc5c5
5e0809f450f5d818520be6b6102b3fe46db2a279
henricj/wxWidgets
/samples/shaped/shaped.cpp
C++
cpp
16,676
no_license
///////////////////////////////////////////////////////////////////////////// // Name: shaped.cpp // Purpose: Shaped Window sample // Author: Robin Dunn // Modified by: // Created: 28-Mar-2003 // Copyright: (c) Robin Dunn // Licence: wxWindows licence //////////////////////////////////////////...
d9285f3e53bb3fba3ac5abcb52a6617ac26653e6
97c9ca4585afcaa8fc7abd0dfd83b4144d847d4c
danposch/itec-ndn
/extensions/fw/safstatisticmeasure.cc
C++
cc
10,069
no_license
#include "safstatisticmeasure.h" using namespace nfd; using namespace nfd::fw; NS_LOG_COMPONENT_DEFINE("SAFStatisticMeasure"); SAFStatisticMeasure::SAFStatisticMeasure(std::vector<int> faces) { this->type = MeasureType::UNKOWN; this->faces = faces; // initalize for(int layer=0; layer < (int)ParameterConfigu...
915dbcfd8b21f339fe66edd008568ca4d8d2e49e
5af467a5fc87b99c305785038f60e914e2b6c38a
hputterm/Projects
/Othello/player.hpp
C++
hpp
848
no_license
#ifndef __PLAYER_H__ #define __PLAYER_H__ #define MINIMAX_DEPTH 7 #include <iostream> #include "common.hpp" #include "board.hpp" using namespace std; class Player { public: Player(Side side); ~Player(); Move *doMove(Move *opponentsMove, int msLeft); int two_ply_minimax(vector<Move*> possible_...
6410e305721806c056369f2479aab8b521dde8f1
35f124e64e28fa7b9b8e5de6fd7b54b56086c0ea
t-weathers/introductory_computer_science
/second_term/property_tycoon_game/owner.cpp
C++
cpp
29,859
no_license
#include <string> #include "owner.h" #include "house.h" #include "aptcomplex.h" #include "businesscomplex.h" #include "property.h" #include <cstdlib> #include <ctime> #include <cmath> #include <iostream> //#include "main.cpp" using namespace std; /**************************************** function name:is_int Descri...
420d40e7e54c91784766bb0f040ad680ad82a0db
922415e67b356170d9e271c689c5703954a60c5a
SVRTK/MITK
/Modules/SegmentationUI/Qmitk/QmitkAdaptiveRegionGrowingToolGUI.cpp
C++
cpp
34,332
permissive
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
463dd6f9c1e15b556a9523732aa32088c3ea4387
7d2e37d3e0f34ee0c950715697f4171da1720a02
TwentyFiveSeven/CS-Study
/Algorithm/DP(DynamicProgramming)/풍선터트리기.cpp
C++
cpp
423
no_license
#include <string> #include <vector> #include <iostream> using namespace std; int solution(vector<int> a) { int size = a.size(); int answer = 2, l = 0, r = size-1; for(int i=1;i<size-1;i++){ if(a[i] < a[l]){ answer++; l = i; } if(a[size-1-i] < a[r]){ ...
adbc5b65ad3c7f3cf5c6d0811c5973b049f3db31
b5edc1dda533b0c8d7c0b94b93078f787058c554
xiegegege/Paddle
/paddle/fluid/operators/spectral_op.cc
C++
cc
34,056
permissive
// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
cc2c88430d20c6219caee57f0c6176b90a058927
9749ba9df6772d431e25512c6fafe04b0353feb8
niuxu18/logTracker-old
/second/download/git/gumtree/git_patch_hunk_543.cpp
C++
cpp
5,405
no_license
else if (c >= 'A' && c <='F') { val = c - 'A' + 10; c -= 'A' - 'a'; } else return -1; - hex_pfx[i] = c; + ds->hex_pfx[i] = c; if (!(i & 1)) val <<= 4; - bin_pfx[i >> 1] |= val; + ds->bin_pfx[i >> 1] |= val; } + + ds->len = len; + ds->hex_pfx[len] = '\0'; + prepare_alt_odb(); + return 0...
864bcbaaa9e0006645c5a7751aae1450e5630687
4f76e5e186154dacbd667405f5e935063b342a15
Noura2000/B---Growing-Mushrooms-solution
/main.cpp
C++
cpp
603
no_license
#include <iostream> #include<map> #include<iomanip> using namespace std; int main() { multimap<double,int,greater<double>>mp; double calc1 , calc2, n, t1, t2, k, a, b; cin >> n >> t1 >> t2 >> k; for (int i = 0; i < n; i++) { cin >> a >> b; calc1 = b*t1-b *t1* k /100 + a * t2; calc2 = a*t1...
28f9668804979a6ee4dffb61054001c66d928a7b
e04025915fc826b66cf21505e817c28d70768585
leonoronhas/cs124
/project100.cpp
C++
cpp
5,137
no_license
/*********************************************************************** * Program: * Project 10, Mad Lib * Brother Cook, CS124 * Author: * Leonardo Santos * Summary: * Enter a brief description of your program here! Please note that if * you do not take the time to fill out this block, YOU WILL LOSE P...
ca005c1abb361bbd0b1ebb6bfac59ed019b0cd40
47b0157ed27f0efe6568ddadb9f49d2e528f7784
channyHuang/leetcodeOJ
/1047.cpp
C++
cpp
396
no_license
class Solution { public: string removeDuplicates(string S) { int len = S.length(); string res; stack<char> st; for (int i = 0; i < len; i++) { if (st.empty()) st.push(S[i]); else if (st.top() == S[i]) st.pop(); else st.push(S[i]); } len = st.size(); res.resize(len); while (!st.e...
2d477efe2f1cf6047b48d8306f1ec76c1714a54b
dada61c51231ffd0b6299252854adf0402541f89
cash2one/FxLib
/Net/connection.cpp
C++
cpp
5,190
no_license
#include "connection.h" #include "mytcpsock.h" #include "myudpsock.h" #include "sockmgr.h" #include<string.h> FxConnection::FxConnection(): m_poSock(NULL), m_poSession(NULL), m_eSockType(SOCKTYPE_NONE) { Reset(); } FxConnection::~FxConnection() { } void FxConnection::Reset() { m_dwID = 0...
9ae151713c2c316465c5439b11bb2baca56b7e7e
1401bfebb085949eb6e967fa78fc307523ab04cc
luuvish/libvio
/src/codec/h264/framebuf/memalloc.cc
C++
cc
3,917
permissive
#include "global.h" #include "memalloc.h" void no_mem_exit(const char *where) { error(100, "Could not allocate memory: %s", where); } static inline void* mem_malloc(size_t nitems) { void *d; if ((d = malloc(nitems)) == NULL) { no_mem_exit("malloc failed.\n"); return NULL; } retur...
f9468bca2c2e708bd97d16c35f4a4fa18c86f760
e316a50b4ceff3b318f471b31b2f470cb6f8b2a8
Du0ngkylan/C-Cpp
/TKDGTT/Tuan 4/BT4.Nhom9/code/Bai 3/quay lui/SO49.CPP
C++
cpp
630
no_license
#include<stdio.h> #include<stdlib.h> #include<conio.h> #include<iostream.h> #include<math.h> int s=0; int n; int kt; int status; void SinhChuSo(int i) { if (i==(n+1)) {} else for (int a=1; a<=3; a++){ s=s*10+a; if (s%49 ==0) { cout<<"So nho nhat thoa man la "<<s; kt=1; ...
16f1786eed37b80d80b88be8d15d811d6546e7db
db2824b0f246f0f237e2f11a25e0df40b77415e1
taku-xhift/labo
/c++/MetaPrograming/UniqueNumber.cpp
C++
cpp
481
permissive
#include <iostream> struct UniqueNumber { template<class type_t> static unsigned int number() { static unsigned int n(count()); return n; }; private: static unsigned int count() { static unsigned int c(0); return c++; }; }; int main() { static const unsigned int zero = UniqueNumber::number<u...
333b69a8834a11037cc3c9673096c3a8dafc3491
e401d9e12c94db76903c49aa05986eea2470bb90
eurogroep/ROS_driver
/pf_driver/src/pf/pf_interface.cpp
C++
cpp
9,210
permissive
#include <algorithm> #include <memory> #include <string> #include <utility> #include "pf_driver/pf/pf_interface.h" #include "pf_driver/ros/scan_publisher.h" bool PFInterface::init() { // This is the first time ROS communicates with the device auto opi = protocol_interface_->get_protocol_info(); if (opi.isError)...
4bcde0fd2e49d887552c1668f60cc7d41f1b5d68
407afc6a32eb9762ab5a88c498c14330934898f4
samsgood0310/til
/others/atcoder/ABC121/C/main.cpp
C++
cpp
1,217
permissive
/// @file #include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <vector> namespace { bool run(std::istream& is, std::ostream& os); } // unnamed namespace /// @brief エントリポイント #ifdef _TEST static int run() #else int main() #endif { try { if (run(std::cin, std::cout) == false) { ...
cfbef2bf19927c7fd04594686db955dde4e7bb27
e6672fde4b77703b240835e63aa96c329ab2b9e0
niuxu18/logTracker-old
/second/download/httpd/gumtree/httpd_old_hunk_3818.cpp
C++
cpp
499
no_license
for (n = 0; n < sk_X509_NAME_num(sk); n++) { X509_NAME *name = sk_X509_NAME_value(sk, n); ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(02209) "CA certificate: %s", SSL_X509_NAME_to_string(ptemp, name, 0)); /* * note that SSL_load_c...
e923f47688b8ebbef2da0a3d981c3ef9208436c8
93c299deebda5759de9970de38c0f1b563e6d850
loveyacper/ananas
/examples/redis_client_future_lite/main.cc
C++
cc
3,412
permissive
#include <iostream> #include <unistd.h> #include "RedisContext.h" #include "net/EventLoop.h" #include "net/Application.h" void GetAndSetName(const std::shared_ptr<RedisContext>& ctx) { // set name first, then get name. ctx->Set("name", "bertyoung").Then( [ctx](const std::pair<ResponseType, std::string>& ...
2085e9ae93a980c3e9b1428e8f061ab81c1c4da7
328aa125a7fef2eca7cd2b1a89957ac2d1a9e379
WeiHaocheng/leveldb-1
/client.cpp
C++
cpp
1,144
permissive
#include <iostream> #include <string> #include <assert.h> #include "leveldb/db.h" using namespace std; int main(void) { leveldb::DB *db; leveldb::Options options; options.create_if_missing = true; // open leveldb::Status status = leveldb::DB::Open(options,"/tmp/testdb", &db); assert(status.ok()); ...
271865ae4fdf0de2d9bed937e9df136301059f0c
0556f45b0cf66bb4a73fe77c3720bdbc4a349515
ConnectionMaster/godot
/core/io/pck_packer.cpp
C++
cpp
8,389
permissive
/*************************************************************************/ /* pck_packer.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
2e6bf03a1e6dc3b37ab0420bf42e923164b014e3
39a77cb7a230de8e6ba2b404916833f0358ec41b
rzr/chromium-crosswalk
/content/browser/child_process_launcher.cc
C++
cc
20,929
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/child_process_launcher.h" #include <utility> // For std::pair. #include "base/bind.h" #include "base/command_line.h" #inc...
9059c64c46f256e13e03d0c3697599ef51977682
0c2ea14cf91627d1015f66cabe3adb5d393fea2a
krusagiz/SDL-OpenGL-Game-Framework
/src/Scene/Model/ModelManager.cpp
C++
cpp
566
permissive
#include "ModelManager.hpp" #include "../../ui/UiManager.hpp" ModelManager::ModelManager(float initialModelScale) : camera(initialModelScale) { modelTick = 0; } ModelManager::~ModelManager() {} uint32_t ModelManager::getModelTick() const { return modelTick; } void ModelManager::updateOneTick() {} v...
9d37ccbbabfeb1e8a5084b8a01441be15e6a3205
692c75d891a3a05a978ef0799a0b56cec65ca2d3
Agilitis/cpphomework
/NagyHF2/FantasyFilm.cpp
C++
cpp
360
no_license
#include "FantasyFilm.h" FantasyFilm::FantasyFilm() { } FantasyFilm::FantasyFilm(String title, int price, int length, int rating, int year, String genre, int id) { this->rentingPrice = price; this->id = id; this->title = title; this->length = length; this->genre = genre; this->rating = rating; this->year = y...
edd8141d6ee424bd6adbd7bc5b1d20d609f89bb1
ca255d83f68cde4b324d4417578a907f661d3572
ngzHappy/nvtest
/novelviewcore/widget/NovelWidget.hpp
C++
hpp
1,640
no_license
/*NovelWidget hpp*/ #if !defined(____PRAGMA_ONCE_HPP_NOVELWIDGET_0___HPP_0x00_) #define ____PRAGMA_ONCE_HPP_NOVELWIDGET_0___HPP_0x00_() 1 #include <QtWidgets/qwidget.h> #include <memory> #include <cstddef> #include <cstdint> #include <utility> #include <type_traits> #include "../novelviewcore_global.hpp" /*zone_nam...
efbccea436e40882531ab3aefaeaac16ef6c9cf3
a6f4b7ffaa0dc49dbac9eb276e85602bea0fb596
victor-timoshin/SWAY-GameFramework
/SceneGraph/Src/SceneComponent.cpp
C++
cpp
1,338
permissive
#include "../Inc/SceneComponent.h" #include "../../SDK/SceneGraph/SceneNodeBase.h" namespace Scene { /// <summary>Конструктор класса.</summary> SceneComponent::SceneComponent(void) : _attachedSceneNode(nullptr) { } void SceneComponent::Notify(ISceneNodeBase* sceneNode) { _attachedSceneNode = sceneNode; } ...
10f17ed4820fa4a89fc2cecf26d5e2ce778834a1
7623cfca14c21b88fc74c1bc1f1542da4119983f
bitbouncer/bb-monitor
/libraries/bb_monitor_utils/grpc_utils.cpp
C++
cpp
5,926
permissive
#include "grpc_utils.h" #include <boost/algorithm/string.hpp> void bb_set_channel_args(grpc::ChannelArguments& channelArgs){ channelArgs.SetInt(GRPC_ARG_HTTP2_BDP_PROBE, 1); channelArgs.SetInt(GRPC_ARG_KEEPALIVE_TIME_MS, 20000); channelArgs.SetInt(GRPC_ARG_KEEPALIVE_TIMEOUT_MS, 20000); channelArgs.SetInt(GRPC...
9080372ff3803c8a5ac43a1b6d0f4fd4dafb09dc
ce6f3e75e634c4a5ecf8d14942ce41c3a9ad931b
wojiushimogui/leetCode
/threeSumClosest_1.cpp
C++
cpp
1,201
no_license
#include<stdio.h> #include<stdlib.h> #include<math.h> int cmp(const void *a,const void *b){ return ( (*((int *)a))- (*((int *)b))); } int threeSumClosest(int* nums, int numsSize, int target) { if(nums==NULL||numsSize<3){//有效性检查 return 0; } //先对nums进行排序,然后借助于在sorted array 中求2Sum的方法进行求解 int min...
4a2b5f27c8f3d8be530b27d60a20792b0d59a834
8dc786ca57325600744409c7cc38c9bd3dab50e5
butshuti/dns-sift
/src/dns/flow_track.cpp
C++
cpp
4,263
no_license
#include <math.h> #include <map> #include <climits> #include <iostream> #include "flow_track.h" static int DEFAULT_AVG_WIN_SIZE = 50; static int INT_SCALE_MULTIPLE = 1;//00; MovingAverage::MovingAverage() { init(DEFAULT_AVG_WIN_SIZE); } MovingAverage::MovingAverage(int windowSize) { init(windowSize); } MovingAve...
da6564b0136aca0ad8ef13b204c5fe8d8cae87fe
8d187082150fecb754b79c9bccdaf4c0ef2ffc9d
halfx/OGRE_practice_project_magic_tower
/programs/final/source/sound.cpp
C++
cpp
3,915
no_license
/* * Copyright (c) 2006, Creative Labs Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided * that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this list of c...
921f9f5e581d3dd4464aa8c0697c5c8220ce5d18
ea489e6f73ffd3c84fe4714b2b4308f6a05062f8
abhijpes/eventing
/v8_consumer/src/parse_deployment.cc
C++
cc
1,428
permissive
// Copyright (c) 2017 Couchbase, 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 in w...
177ef52ca46695afebe1e49819879b7023a69b21
954af4d3c6ca881c1a010b05bdf18243588dd386
tado/NIME16
/Membranes16/src/ImageSynth.cpp
C++
cpp
4,698
no_license
#include "ImageSynth.h" ImageSynth::ImageSynth(ofImage image, ofVec3f _pos, float _freqRatio){ freqRatio = _freqRatio; pressed = false; for (int i = 0; i < filterSize; i++) { synth[i] = new ofxSCSynth("simpleSine"); //synth[i]->set("freq", powf(freqRatio, i) + 80); synth[i...
985d3e1072a750fea028d3c3704024ba13277f12
c6374477322f8e77139670c69ae6961909ad2f05
SwagSoftware/Kisak-Strike
/materialsystem/stdshaders/shadow.cpp
C++
cpp
6,815
permissive
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $Header: $ // $NoKeywords: $ //=============================================================================// #include "BaseVSShader.h" #include "shadow_ps20.inc" #include "shadow_ps20b.inc" #include "shad...
5c293ab30b34d806853b47f208cfd19475a1bbde
d65b975e26a456309ceb4d4f85edf53bfe79b97d
peter9378/algorithm_study
/190903boj/3197.cpp
C++
cpp
3,363
no_license
/** * BOJ * No.3197 백조의 호수 * @author peter9378 * @date 2019.09.01 */ #include <iostream> #include <algorithm> #include <string> #include <vector> #include <queue> using namespace std; int R, C; string arr[1505]; vector<pair<int, int>> swan; vector<pair<int, int>> melt; int direction_x[] = { 0, 1, 0, -1 }; int dire...
001a83be42a31b183c183ae8f126edcee4713f21
b2d7bd6ddfd7cd5b1ae8a87e6ba9aec8aa287429
CyFI-Lab-Public/RetroScope
/external/chromium_org/ui/views/examples/scroll_view_example.cc
C++
cc
3,751
permissive
// Copyright (c) 2011 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 "ui/views/examples/scroll_view_example.h" #include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" #include "...
3da673b14b4c9ebc092fb59ee0cf697d58bb99a4
81601bd288807d3ea3e0228c8581ec42f6923a91
victor-armegioiu/Algo-stuff
/10912.cpp
C++
cpp
601
no_license
#include <bits/stdc++.h> using namespace std; int L, S; int dp[27][27][352]; string print_format = "Case %d: %d\n"; int ways(int len, int sum, int curr, string sol) { if (len == 0) return sum == 0 ? 1 : 0; if (sum < 0 || curr > 26 || len > 26 || sum > 351) return 0; int &ans = dp[len][curr][sum]; if (ans !...
86e2c87fdbf056e3841d0d009b4027e52f260553
9db6c546d67baa7d8f0c970074cf17e2b247581c
miracleke/learncpp
/dengcha.cpp
C++
cpp
480
no_license
#include<iostream> #include<cmath> using namespace std; int main(){ int a, b, c; int long long d; cout <<"Input the first term a, the last term b and the number of terms n of the arithmetic sequence, and find the sum of the terms of the arithmetic sequence.\n"; cin >> a >> b >> c; if(a<0 || b>p...
712f90d8be978a9a8e12b4c1cc73599c222f1c9d
c337d1280a689cef58a2601392decd4e03041666
kks227/BOJ
/14400/14425.cpp
C++
cpp
344
no_license
#include <iostream> #include <string> #include <unordered_set> using namespace std; int main(){ int N, M, result = 0; cin >> N >> M; unordered_set<string> S; for(int i=0; i<N; i++){ string W; cin >> W; S.insert(W); } for(int i=0; i<M; i++){ string W; cin >> W; if(S.find(W) != S.end()) result++; } c...
15ea6538ecd7493a3e37f0b87071f5ef7a84c1e7
ced806dde9a14e7f74b3ac1b9e838d79ed01f252
junmin-zhu/blink
/Source/modules/webaudio/AudioContext.cpp
C++
cpp
35,054
permissive
/* * Copyright (C) 2010, Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
51d93defaed48ec04957e99bdf02d5116301295b
0b020afb7888a1417f48eec8a4bb791a11593a9d
hakuno/envoy
/test/extensions/quic_listeners/quiche/envoy_quic_alarm_test.cc
C++
cc
8,036
permissive
#include "extensions/quic_listeners/quiche/envoy_quic_alarm.h" #include "extensions/quic_listeners/quiche/envoy_quic_alarm_factory.h" #include "extensions/quic_listeners/quiche/platform/envoy_quic_clock.h" #include "test/test_common/simulated_time_system.h" #include "test/test_common/utility.h" #include "gmock/gmock....
46b6379fd3fdadcf37f31ee3ae7ac139a34970be
02e23dc5e714c76e8b416c095fd1dc4dd6b90398
zachsmith100/zlang_apml_proto
/zlang_compiler/zlang_compiler/Compiler.cpp
C++
cpp
3,463
no_license
// Project ////////// #include "Common.h" #include "node.h" #include "SyntaxTreeProcessor.h" // Flex & Bison staff ////////// #include "yacc.tab.h" extern node* getroot(); extern void setParseFile(FILE* fl); extern int isParsingSuccessed(); extern char* getLexErrorText(); extern int getLexErrorLine(); extern char* get...
91a7ace519216831d9c9fd6625125457ab06016a
d9a43f3126cfc72be554239883b5bc221019f0c2
aerotsmith/imgproc
/findRegion.cpp
C++
cpp
3,995
no_license
//------------------------------------------------------------------------- // Developer: Tom Smith // Date: 5/7/2018 // // findRegion() method // Finds the region of a flood fill in a given image at x,y. Tolerance is // calculated using color distance between hsv values. // Returns bitmap of fill region //-----------...
5f7d7103b83fa5193029399b68a0481b6707bd65
e6453dbedd110af569b508beb05d64387be34fc3
zoeSanders/tetris_cpp
/grid.cpp
C++
cpp
2,321
no_license
#include "grid.h" #include <ncurses.h> #include <unistd.h> void init_grid(grid *grd) { grd->score = 0; int i, j; for(i = 0; i < HEIGHT; i++) { for( j = 0; j < WIDTH; j++) { grd->game[i][j] = 0; } } } void render_grid(grid *grd) { int i, j; for( i = 0; i <= HEIGHT; i++) { for( j...
77cdf0de7bda41a4edd69ee45ad5d464f0f8c285
0c53e43227260da5d30cd71946ab6fcf29a70df1
karagozmerve/Goruntuislemefinal
/Merve_Karagöz_171307039_Soru5.cpp
C++
cpp
1,231
no_license
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> #include "opencv2/imgproc.hpp" #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui_c.h> #include<opencv2/opencv.hpp> #include <iostream> using namespace cv; using namespace std; #include <vector> using namespace cv;...
8210af9ad3fc859e9b21b705b5ce2d8062d762f8
43e876c43405c59d2ebc23c1901115ac171c629b
muhammadaly/visual_slam
/src/Utilities/PCLUtilities.cpp
C++
cpp
2,745
no_license
#include "Utilities/PCLUtilities.h" visual_slam::PCLUtilities::PCLUtilities() { } void visual_slam::PCLUtilities::getKeypointsAndDescriptors(std::vector<cv::DMatch> matches, std::vector<cv::KeyPoint> previousKeypoints, std::vector<cv::KeyPoint> currentKeypoints, ...
70c68b564cd8e7b0b9c9e4621b71caf672063cd6
3bd9f8dc13a34156b27cd91b75e83eb2180c715a
destiny06/bicyclade
/src/server/game/GameController.cpp
C++
cpp
359
no_license
#include "GameController.hpp" void GameController::startGame(playerMapType* playerMap) { this->playersMap = playerMap; // assigning random fixed colours playerMapType::iterator it = playerMap->begin(); it->second->colour = Colour::BLACK; it++; it->second->colour = Colour::BLUE; it++; ...
39df677a6bcda741904d16e3af800f2bb94ae1c5
da2033912376e36169515091a97eded218fe5b33
wilbown/hifi
/tools/vhacd-util/src/VHACDUtil.cpp
C++
cpp
17,520
permissive
// // VHACDUtil.cpp // tools/vhacd/src // // Created by Virendra Singh on 2/20/15. // Copyright 2015 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "VHACDUtil.h" #include <unordered_...
d70838512af5011d634a04d49a4532adc941de2a
ed83b5e9e2060e530e6181dd586cc96f80634734
zowhair/chromium
/chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc
C++
cc
88,132
permissive
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" #include <stddef.h> #include "ash/public/cpp/shelf_item_delegate.h" #include "ash...
87731716ef75f2c2a25f8a0ceaa02eebe24ef785
d62b096af2219a3d597ee3145e8b9ac9c5117387
jenting/3d-watermark-lsd
/MeshRenderer.cpp
C++
cpp
50,605
permissive
#include "stdafx.h" #include "MeshRenderer.h" //#include "MeshPartition.h" //using namespace MR; FacetPainter* MeshRenderer::getSelectedFacetPainter() { return m_selectedFacetPainter; } EdgePainter* MeshRenderer::getSelectedEdgePainter() { assert(m_selectedEdgePainter>=0 && m_selectedEdgePainter<m_e...
2832f79e210446986c8a1e5b02d717ccabb8900b
1f194facdb29b980502a5f7c06ef38cd2fe5e30e
new1746/cw-tg-generator
/grid8.cpp
C++
cpp
1,871
no_license
#include <iostream> #include <cstdlib> #include <cstring> typedef char text[11]; using namespace std; int grid8(int numt, text buffer[]) { int teamsN[14] = {0,1,-1,-1,2,3,-1,-1,4,5,-1,-1,6,7}, winner = -1; int key; for(int i =0; i<14; i++) { if(teamsN[i]!=-1) cout<<i<<") "<<buffer[teamsN[i]]<<endl; else {...
dfa0ac632ba830570936dbda6712a668952cd2fb
0ab3086de3cc50ac51b742062b27fb1412fff2b7
JLodge99/EvergladesUI
/EvergladesUI/EvergladesUIMain.cpp
C++
cpp
37,635
no_license
/*************************************************************** * Name: EvergladesUIMain.cpp * Purpose: Code for Application Frame * Author: () * Created: 2020-11-26 * Copyright: () * License: **************************************************************/ #include "EvergladesUIMain.h" #include "...
c2245f3c11a30f89deb83c9b8d43425842e506da
6340378685f4077c3775fd2d0e19294a35cc5723
eugene-bogorodsk/Rao_C-_book
/Chapter_25/hw_25_1/src/hw_25_1.cpp
C++
cpp
860
no_license
//============================================================================ // Name : hw_25_1.cpp // Author : // Version : // Copyright : Your copyright notice // Description : combining a set of bits //============================================================================ #include <iostrea...
9dba7ecbf4ad38b01cb2590246ce609154cbf979
0eb61278f7a2ba271dc7618694dbe6ee97ebd169
andreytr4intel/cm-compiler
/test/CMFE/compiler_options/cm_B_slash.cpp
C++
cpp
984
permissive
/*========================== begin_copyright_notice ============================ Copyright (C) 2015-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ // The Finalizer should not be called as we haven't specified a target // The /QXcm...
3394b73b4a4bbe034b203456e5859d104677244f
7650dc61497b1608180eb0e5d0026df655abbd48
abhinandanmishra1/Mycodes-Algorithms
/Number_Theory/Finding_the_Kth_Prime.cpp
C++
cpp
1,838
no_license
/** *!! Abhimanyu Bano !! *!!कर्म करो फल की चिंता मत करो !! * @Author : Abhinandan Mishra * **/ #include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define ll long long #define pb push_back #define ppb pop_back #define pf push_front #define pp...
53c3499f279f3142bab5b839d8cc1c3618249b41
aa2b5b1b294eea1093b78d21d5ddd814f839561a
azartheen/leetcode
/problems/easy/1399-count-largest-group.cpp
C++
cpp
1,135
permissive
/* Count Largest Group Given an integer n. Each number from 1 to n is grouped according to the sum of its digits. Return how many groups have the largest size. Example 1: Input: n = 13 Output: 4 Explanation: There are 9 groups in total, they are grouped according sum of its digits of numbers from 1 to 13: [1,10...
b1e1ae5727d97157cdcd3065abbfab6bcc3a4188
6ba754b5f043e48019ce0070e457b8ef88cba571
vivianng30/rainer-fabian-gui
/FabianHFO/InterfaceI2C.cpp
C++
cpp
91,243
no_license
// InterfaceI2C.cpp : implementation file // #include "stdafx.h" //#include "FabianHFO.h" #include "InterfaceI2C.h" #include "MVModel.h" #include "TlsFile.h" //#include "config.h" extern CEvent g_eventI2Cdata; extern CEvent g_eventI2Cdone; /*- Brief Description ------------------------------------------...
e3879c72d2d25e42b340541e5389ed32c71283e9
2e52a0e4cff148c27598e094716941847bc1af28
xtblock/chromium
/tools/traffic_annotation/auditor/auditor_result.cc
C++
cc
9,562
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 <algorithm> #include "tools/traffic_annotation/auditor/auditor_result.h" #include "base/check_op.h" #include "base/notreached.h" #include "base...
3da954f4189c086393255f9d76d1d9365a87bb09
748765160ec92b634476b9a79a096511dcf83ec9
jwstover/lsp
/src/corrimg.cpp
C++
cpp
3,928
no_license
// // Created by Jake Stover on 5/9/18. // #include <teem/nrrd.h> #include "corrimg.h" #include "util.h" void setup_corrimg(CLI::App &app) { auto opt = std::make_shared<corrimgOptions>(); auto sub = app.add_subcommand("corrimg", "Construct image to be used for cross correlation."); sub->add_option("-i, --inpu...
3f149882dc2edacfd21922581599d1ae50aa81a2
e59d9931c70362afa4849a91938cfbb52dea6aae
shphrd/bitcoin-sv
/src/test/mempool_tests.cpp
C++
cpp
33,405
permissive
// Copyright (c) 2011-2016 The Bitcoin Core developers // Copyright (c) 2020 Bitcoin Association // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "config.h" #include "mining/journal_change_set.h" #include "policy/policy....
ba06147bc1d576ad5638f4e71233f06cd0d9dce0
3d0f84c07a29b6ec1155e00e1daf22c7e138df1e
jjzhang166/MTConnectGadgets
/MTConnectConformance/MTConnectConformance/MainFrm.cpp
C++
cpp
6,630
no_license
// MainFrm.cpp : implmentation of the CMainFrame class // ///////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include "aboutdlg.h" #include "MTConnectConformanceView.h" #include "MainFrm.h" #pragma comment( lib, "msxml2.lib" ) #import <msxml6.dll> ...
11ae416cd0856165c5483adcd7dccc04582eb146
0db2fef5dd39f7a15111034fc83bc50645b7fce3
kamrann/workbase
/code/neuroevo/webinterface/rtp_interface/systems/elevator/rtp_elevator_system.cpp
C++
cpp
21,751
no_license
// rtp_elevator_system.cpp #include "rtp_elevator_system.h" #include "../rtp_system_agents_data.h" #include "../rtp_controller.h" #include "rtp_dumb_elevator_controller.h" #include "../../rtp_evolvable_controller.h" #include "../../rtp_composite_observer.h" #include "../../rtp_resultant_objective.h" #include "../../rt...
ef439d5187b82250ddb79accf7d8365d896e6d86
b8bbe78f3f78cf46d08a445f8ac7860381f2a216
manleviet/TP-Nhan-dang
/lvman_htnhan_tp4/code source/CreateVocabulaire/stemming.cpp
C++
cpp
11,633
no_license
#include "stemming.h" #include <stdlib.h> /* for malloc, free */ #include <string.h> /* for memcmp, memmove */ /* You will probably want to move the following declarations to a central header file. */ struct stemmer; extern struct stemmer * create_stemmer(void); extern void free_stemmer(struct stemmer * z); e...
3e95eb5e2977bdb59ca8194d962c0aed92e517c1
09672b4cab9f08f67b8107a2ce537872f117ecf0
florinpapa/homework
/year_3/EGC/Tema3EGC_Papa_Florin_334CA/lab_mesh_loader.hpp
C++
hpp
11,523
no_license
//Papa Florin, 334CA #pragma once #include "dependente\glew\glew.h" #include "dependente\glm\glm.hpp" #include "dependente\glm\gtc\type_ptr.hpp" #include "dependente\glm\gtc\matrix_transform.hpp" #include <fstream> #include <iostream> #include <string> #include <vector> #include <sstream> namespace lab{ struct Vert...
3b587c67c4b1e8ea83f24135a3595f558f63d7f8
8b38fce91e23e8ceae39c44732633760b73139d8
2bite/ARK-SDK
/SDK/ARKSurvivalEvolved_PrimalItem_RecipeNote_Kibble_PachyRhino_functions.cpp
C++
cpp
1,258
permissive
// ARKSurvivalEvolved (332.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_PrimalItem_RecipeNote_Kibble_PachyRhino_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //------------------------------------------...
534be64df67101aacdb300406f3ed908d92b31cf
767fff549347d6e10850f2998291e0bd324fbb13
huqi/YinHomework
/SIM/SIM/SIM_Supplier.cpp
C++
cpp
1,375
no_license
#include <iostream> #include "SIM_Supplier.h" using namespace std; SIM_Supplier::SIM_Supplier(void) { order = 0; part = 0; container_empty = 0; container_filled = 0; } SIM_Supplier::~SIM_Supplier(void) { } void SIM_Supplier::increase_part(void) { part++; } void SIM_Supplier::increase_container_filled(void) {...
21ff8ff157e1a0e1da88b9e48608d4190e07b54f
5f10df2df8b352ee760ae18cdffa69b331a47856
CarterTsai/clasp
/src/gctools/gctoolsPackage.cc
C++
cc
25,426
no_license
#include <boost/mpl/list.hpp> #ifdef USE_MPS extern "C" { #include "mps/code/mpscamc.h" }; #endif #include <stdint.h> #include "core/foundation.h" #include "core/object.h" #include "core/lisp.h" #include "core/builtInClass.h" #include "core/fileSystem.h" #include "core/environment.h" #include "core/standardClass.h" ...
6d5d9f77b3445fd7001b4bc43447cf4d57b5be82
e7512606627404e6fa0171413e0881373b9f8279
duyanning/shutters
/shutters/StatusBar.cpp
C++
cpp
675
no_license
#include "wincpp.hpp" #include "StatusBar.hpp" #include "nurserWindow.hpp" #include "winHelpers.hpp" #define new new(_NORMAL_BLOCK, __FILE__, __LINE__) using namespace Shutters; StatusBar::StatusBar() { using namespace ShuttersImpl; INITCOMMONCONTROLSEX initCtrls; initCtrls.dwSize = sizeof initCtrls; initCtrls....
e23f846e3a90864b07ee3e9569253884586abca4
c80663877597395c93b449ec8264cb78105d2a34
app/tradeequip
/src/lib/cmdparser.cpp
C++
cpp
9,306
no_license
/**************************************************************************** ** $Id: cmdparser.cpp,v 1.6 2006/07/04 06:07:07 red75 Exp $ ** ** Trade equipment common portable library project ** ** Copyright (C) 1999-2006 Leader InfoTech. All rights reserved. ** ** This file is part of the Library of the Ananas ** aut...
0266753e738b3bbbec5cf64ff5e25c08f127e83e
8d8f58bb8049c51b5c23da2e1c00858d3a7e67f4
trngaje/EmulationStation
/es-app/src/scrapers/Scraper.cpp
C++
cpp
11,440
permissive
#include "scrapers/Scraper.h" #include "FileData.h" #include "GamesDBJSONScraper.h" #include "ScreenScraper.h" #include "Log.h" #include "Settings.h" #include "SystemData.h" #include <FreeImage.h> #include <fstream> #include "utils/FileSystemUtil.h" #include "utils/StringUtil.h" // batocera const std::map<std::string...
1b9cdf84f8c871cb103d0e2bcac0bee3602c71a9
12ae3bec3fd27d9ae10ea3e82d991269ced03717
DeepWolf413/additional-native-data
/rdr2/0x404514D231DB27A0.cpp
C++
cpp
225
no_license
// generic_show_mc.ysc @ L3296 void func_93(int iParam0, bool bParam1) { if (bLocal_15) { WEAPON::_0x404514D231DB27A0(Global_35, *iParam0); bLocal_15 = false; if (bParam1) { *iParam0 = 0; } } }