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
75b544e3a2c3d2f80ed169ba84fd7dc31a2295c4
fe040c866809378b97d8fe88f3789ce6df0d0091
Anecoz/br
/br/Tmx/TmxImageLayer.cpp
C++
cpp
2,911
no_license
//----------------------------------------------------------------------------- // Copyright (c) 2010-2014, Tamir Atias // 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...
dc18166892264b8a1780b60582ade73ec5c898f4
dc4242a838a199af85ef11a57e7d907913cac907
201851019-iiitv/75_leetcode_curated_problem
/prblm53.cpp
C++
cpp
535
no_license
class Solution { public: // Dynamic programming Time Complexity=O(N)and space O(N). int maxSubArray(vector<int>& nums) { int n=nums.size(); int maxsum[n]; maxsum[0]=nums[0]; int k; int res=maxsum[0]; for(int i=1;i<n;i++) { k=nu...
7caeffef4294ebda81b7bdbaf881fc89b67e043e
7d1b85ae4bcfbe67092fcf4c91d5c56c28ce1859
multifacet/ASAP
/src/mem/abstract_mem.hh
C++
hh
10,815
permissive
/* * Copyright (c) 2012, 2019 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the...
5648d6b548db55a23fc2400e827cc205a9ebfd44
3cef224b90438ea6443c2b7157956fe40167b44b
shh2000/P0
/Lexer.cpp
C++
cpp
7,890
no_license
// // Created by 王梓沐 on 2019/9/27. // #include <fstream> #include <cstring> #include <cstdio> #include <iostream> #include "Lexer.h" using namespace std; std::string word::to_string() { return type_string[type_] + " " + str_value_; } word::word(int line, word_type type, const std::string& str_value, bool valid ...
153dea9d9842e6ec5df8c26c0344336a1319db8a
ba8f3dd51b66bf3068c671dd61602474ffa893b5
je-pu-pu/blue-sky
/source/core/graphics/BgSpriteLayer.cpp
C++
cpp
754
no_license
#include "BgSpriteLayer.h" #include <core/math.h> #include <game/Texture.h> namespace core { BgSpriteLayer::BgSpriteLayer( const char_t* name, const Texture* texture ) : name_( name ) , texture_( texture ) , src_rect_( 0, 0, texture->get_width(), texture->get_height() ) , dst_rect_( 0, 0, texture->get_...
4c1e4be44a991842bc1a835a210718da4e462f7b
bcd8d4c985b60356ad88d68ec4450f7872090167
brettatoms/robopanic
/src/old/Entity.cpp
C++
cpp
5,422
no_license
// Entity.cpp: implementation of the Entity class. // ////////////////////////////////////////////////////////////////////// #include "Entity.h" #include "SceneCoordinate.h" #include "debug.h" //#include "Action.h" #include "BmpLoader.h" #include "BoundingBox.h" #include "sound.h" extern LPDirectDraw lpDi...
2d6b4f9b9ebf375c232c49aff23c2c657a89ec9c
8baa5907e55b53cfb83beb70cfc83ce0b653de35
julienlopez/Crafter2D
/Crafter2Dlib/worldelement.hpp
C++
hpp
562
no_license
#ifndef WORLDELEMENT_HPP #define WORLDELEMENT_HPP #include <QtGlobal> #include <QDataStream> #include "position.hpp" class WorldElement { public: quint64 id() const; Position position() const; virtual void setPosition(const Position& p); virtual void serialize(QDataStream& out) const; static Wo...
16a14e7d0236fb0346af657db53db437de4af4d2
1a38ee9024ebecc00f231df073872efca612a330
punk-off/snowShip
/octoberBlock/Plugins/Wwise/Intermediate/Build/Win64/UE4/Inc/AkAudio/AkAndroidInitializationSettings.gen.cpp
C++
cpp
22,937
no_license
// Copyright Epic Games, Inc. All Rights Reserved. /*=========================================================================== Generated code exported from UnrealHeaderTool. DO NOT modify this manually! Edit the corresponding .h files instead! ========================================================================...
85d3cbd63139f6d5adcbdecba0bebbf952d4f9d5
4bf138354d69eb20fa47cfbd3581a396cc83fe0e
rosoareslv/SED99
/c++/godot/2017/12/editor_file_dialog.cpp
C++
cpp
50,386
permissive
/*************************************************************************/ /* editor_file_dialog.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
afb265f3c041f7abbec7b5d4b9fa0ea50673d917
97cd225a38fc888195e818197d3744f8e69fd25e
huynguy97/IP-Week11
/main.668094145442034952.cpp
C++
cpp
5,574
no_license
#include <cassert> #include <iostream> using namespace std; // // long double power(double x, unsigned int n) { assert(true); /* ...
76f8b4b4d1504896a8b43b239f9bc70c8e27f67f
7220db4829def87cfff1f4e517cd6b1a1d7ca479
theisen1337/Design_Tilemap_Game
/app_main_loading.cpp
C++
cpp
2,543
no_license
#include "app_main_loading.h" #include <SFML/Window/Event.hpp> #include <SFML/Window/Keyboard.hpp> #include <iostream> #include "globals.h" #include <thread> #include <chrono> app_main_loading::app_main_loading() : state_thread(&app_main_loading::thread_loading, this) { } app_main_loading::~app_ma...
9ff7976ad83a8aa36a525b234960ae73d1609a3e
b775275a007229db2c813b4365f921959e47ea99
metux/chromium-suckless
/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
C++
cpp
8,717
permissive
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "modules/bluetooth/Bluetooth.h" #include "bindings/core/v8/CallbackPromiseAdapter.h" #include "bindings/core/v8/ScriptPromise.h" #include "bindi...
8a9ecc2c1d89992f56b84acb59b36ace097ca64b
baf03fdc4eb7052b95d9bde224237ab1a1977206
theyup12/C-Project
/Word_frequency/main.cpp
C++
cpp
3,775
no_license
#include <iostream> #include <string> #include <cmath> // abs() #include "WordFrequency.h" using std::string; using std::cout; using std::endl; // Global static variables static int testCount = 0; //static const int testTotal = 7; static const string GREEN = "\033[32m"; static const string RED = "\033[31m"; static...
2b2c6f6d0d341958d79ce56d0116800560c66c37
672116f436e73d57e277fb0b00f4a0e67c1c659e
aliyun/aliyun-openapi-cpp-sdk
/ens/src/model/RevokeSecurityGroupEgressRequest.cc
C++
cc
2,986
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 by...
bb26697a0892c17485df391af923176697a62c0a
03df2f3f000ac9ee90aae19ce80de5118addcdc2
leleluv1122/Algorithm
/_BAEKJOON_/_BAEKJOON_/11286_절댓값+힙.cpp
C++
cpp
506
no_license
#include <iostream> #include <queue> #include <algorithm> #define endl "\n" using namespace std; void init() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); } int main() { init(); int N; cin >> N; priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq; while (N--) { int x...
6df59baaaceba9773926b14eabce451fc7487f08
ac66e6aa5925f337b9992308b59812cfeaf6cc92
eriser/SEQ-Euclid
/src/SEQEuclid.cpp
C++
cpp
14,324
permissive
// Todo make smaller lookup table // context menu stuff #include <string> #include <memory> //Change to suit wherever you place this //#include "Fundamental.hpp" #include "dsp/digital.hpp" #include "erBitData.h" #define BG_IMAGE_FILE assetPlugin(plugin, "res/SEQEuclid.png") #define FONT_FILE assetPlugin(plugi...
dcacec52ed34c24d3c1cf8bb148325939e4dc615
ed67f9076a10f3e6ed91297fac1af0a88c585694
mipek/detourdecon
/src/asmjit/base/operand.cpp
C++
cpp
823
permissive
// [AsmJit] // Complete x86/x64 JIT and Remote Assembler for C++. // // [License] // Zlib - See LICENSE.md file in the package. // [Export] #define ASMJIT_EXPORTS // [Dependencies - AsmJit] #include "../base/globals.h" // [Api-Begin] #include "../apibegin.h" namespace asmjit { // ==================================...
7f5bf882a3f6a746c1771faae5bf686773a9a273
a85fe4c6e57691c4925ad9ce6c20a7f165eb4dbf
intel/llvm-test-suite
/SYCL/Reduction/reduction_nd_lambda.cpp
C++
cpp
1,416
permissive
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out // RUN: %ACC_RUN_PLACEHOLDER %t.out // // Inconsistently fails on HIP AMD, HIP Nvidia. // UNSUPPORTED: hip_amd || hip_nvidia // This test performs basic checks of parallel_for(nd_ran...
6a6b6fd19fe5dd1c5857f51667e97da3c9b1908c
24e080f453fdfc5331a20c671f073e036eb9b9d1
pythseq/octopus
/src/core/tools/bam_realigner.cpp
C++
cpp
15,848
permissive
// Copyright (c) 2017 Daniel Cooke // Use of this source code is governed by the MIT license that can be found in the LICENSE file. #include "bam_realigner.hpp" #include <deque> #include <iterator> #include <algorithm> #include <utility> #include <thread> #include <cassert> #include "basics/genomic_region.hpp" #incl...
5126bc1f67a9cbc36731f1bece9f30affddbdcbc
6b56add1c6485c0f4ee3cd6aaaf2ed39eaa665c3
seedjyh/IFComicDownloader
/src/IFOperator/JavascriptTool.cpp
C++
cpp
5,544
no_license
// // File name : JavascriptTool.cpp // // Code by : Yonghang Jiang(seedjyh@gmail.com) // // Project name : IFComicDownloader // // Create datetime: 2016-01-01 17:25:50 // // Tested or implemented header #include "JavascriptTool.h" // C system headers // ... // C++ system headers #include <sstr...
dac49be093b0241b81dd7aea331e38581546824a
e5f2580daa6c72b3981a955174d3a1ea4504d89f
zoloypzuo/Sandbox
/src/ogre3d/src/OgreRenderTexture.cpp
C++
cpp
3,162
permissive
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2013 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
7ce7e3f86b91f63356265070ec93c8f0ae87c233
b6f1ca903c6a89669ff882107afc9830692b2e65
ashevchuk/proxy
/proxy/source/ts/TSMuxer.cpp
C++
cpp
10,559
no_license
#include "TSMuxer.h" #include "TSStream.h" ////////////////////////////////////////////////////////////////////////// TS_STREAM * alloc_ts(const TS_OPTION & option) { TS_STREAM * ts = new TS_STREAM; memset(ts, 0x0, sizeof(TS_STREAM)); int pid = 0x0100; ts->version = 0; ts->bit_rate = option.bit_...
9651ffac203a7a728e146bfb2d3fb2ddb0564647
cf6d16f38cad6efb7b46b5cc4de27f6a8d998427
PADME-Experiment/padme-fw
/PadmeReco/SAC/include/SACCalibration.hh
C++
hh
719
no_license
// -------------------------------------------------------------- // History: // // Created by Stefania Spagnolo (stefania.spagnolo@le.infn.it) 2019-03-14 // // -------------------------------------------------------------- #ifndef SACCalibration_H #define SACCalibration_H #include "PadmeVCalibration.hh" #include <vec...
617aa9f52f3753940015c981285cab68318e6d88
f404191e2457ebbbb1e44b0c53452c70199ae0e9
MarioMiranda98/Curso-Cpp
/12° Bloque/CorrespondenciaArreglosPunteros.cpp
C++
cpp
575
no_license
//Correspondencia entre arreglos y punteros #include <iostream> #include <conio.h> using namespace std; int main() { int numeros[] = {1, 2, 3, 4, 5}; int *ptrNumeros = NULL; //ptrNumeros = &numeros[0]; ptrNumeros = numeros; //La ñera cout << "La noob" << endl; for(int i = 0; i < 5; i +=...
70a08c352036f750a710d3c054a37c656d8a9ef4
716bd4be538e831d56c38f391f6a5a180dd09b13
Inuyashaaaaa/IntroductionToAlgorithmicContests
/Chapter 7-Brute force/$ 7.7-2.cpp
C++
cpp
2,097
no_license
#include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn = 6; double max_room,room; int num_node; struct node { double w; double left; double right; node(double c = 0,double a = 0,double b = 0):w(c),left(a),right(b){} }Node[1<<maxn];//1<<maxn足够,因为这是一棵有maxn层的完全树,而我们要求...
57354a279889513b4949e33b961d0f86d477023e
d8e9d04a5d152cf6b655a8d98b0a513e9ba96d85
kc9qin/Offline
/Validation/inc/TValHistE.hh
C++
hh
1,269
permissive
#ifndef Validation_TValHistE_hh #define Validation_TValHistE_hh #include "Offline/Validation/inc/TValHist.hh" #include "TEfficiency.h" #include "TString.h" class TValHistE: public TValHist { public: TValHistE(TEfficiency* Hist1=0, TEfficiency* Hist2=0) { Clear(); fEff1 = Hist1; fEff2 = Hist2; } ...
75407620fd093679fc0dd93d8034553d672066f8
f5ba16764781f96a1ec9ba40969b22a759406841
benson31/lbann
/src/callbacks/compute_model_size.cpp
C++
cpp
3,771
permissive
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (B. Van Essen, et al.) listed in // the CONTRIBUTORS file. <lbann-dev@l...
41cb54c0a4a33b789ed224155f08f6fd6168c6fb
59a6ce7822cd4659988f492d7107d18c7aa7baf8
ChanakyaVishal/Boat_Game
/src/triforce.cpp
C++
cpp
1,920
no_license
#include "triforce.h" #include "main.h" Triforce::Triforce(float x,float y,float z){ this->position = glm::vec3(x, y, z); this->rotation = 5; GLfloat cube[] = { 0.5f, 0.0f, 0.0f, 0.0f,1.0f, 0.0f, -0.5f, 0.0f, 0.0f, 0.5f, 0.0f, 0.4f, ...
ef47dffaf53de569784354bd8748f4b639482653
f1c12f7bc8503a55c5b6b1899ce1bd5a7fc59109
NoGameNoLife00/LeetcodeSolution
/Solution/7.整数反转.cpp
C++
cpp
1,210
no_license
/* * @lc app=leetcode.cn id=7 lang=cpp * * [7] 整数反转 * * https://leetcode-cn.com/problems/reverse-integer/description/ * * algorithms * Easy (31.48%) * Total Accepted: 82.4K * Total Submissions: 261.1K * Testcase Example: '123' * * 给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。 * * 示例 1: * * 输入: 123 * 输出: ...
44f65dd7007fa54ce545f553cf6695ce76f15835
2d312a908612c3fa4cd7253e3493301d2cb0caba
abhishekudupa/kinara
/test/exprs/SimpTests.cpp
C++
cpp
5,477
no_license
// SimpTests.cpp --- // // Filename: SimpTests.cpp // Author: Abhishek Udupa // Created: Wed Jan 14 18:43:28 2015 (-0500) // // // Copyright (c) 2013, Abhishek Udupa, University of Pennsylvania // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitte...
982fab2a00ab5267baba45fac0434531808c2afd
5b0eb64b59540e233671e4deb3ec94f2f7c88f75
onexmaster/cp
/1066_c.cpp
C++
cpp
1,620
permissive
// Created by Tanuj Jain #include<bits/stdc++.h> #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define pb push_back #define mp make_pair typedef long long ll; typedef pair<int,int> pii; template<class T> using oset=tree<T, null_typ...
9f407ca806514061504d8785ebb74eab36228ae1
b170b01f0a78152126152180621a86f492f0af0d
pse-parkview/ginkgo
/include/ginkgo/core/multigrid/multigrid_level.hpp
C++
hpp
5,766
permissive
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2021, the Ginkgo authors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source co...
b2bf7472bc01e011b8e9bffb163a7d586be5b6c3
dcc86fdd005768ba949c8fd6c143f15a58a54c78
Wolfyy4/aristois-public
/dependencies/interfaces/interfaces.hpp
C++
hpp
2,517
no_license
#pragma once #include <windows.h> #include <cstdint> #include <string> #include <stdexcept> #include <d3dx9.h> #include "i_base_client_dll.hpp" #include "i_client_entity_list.hpp" #include "iv_engine_client.hpp" #include "i_client_state.hpp" #include "i_panel.hpp" #include "i_surface.hpp" #include "i_global_vars_base....
41097c6a1521c1e82df6147d9f6a652877cc5d88
c210334e69f548dc44b1a2cb4819be454fdac244
tingold/qgis-oauth-cxxplugin
/oauth2/qgsauthoauth2edit.cpp
C++
cpp
33,383
no_license
/*************************************************************************** begin : July 13, 2016 copyright : (C) 2016 by Monsanto Company, USA author : Larry Shaffer, Boundless Spatial email : lshaffer at boundlessgeo dot com ********************...
84a65cd4113d0c06ffec974a50a2515954def84b
9709849eed3bb1118e7cf7a4afe41274e8d127ac
notyourneighbour/1000base
/1000base/EntryPoint.cpp
C++
cpp
904
no_license
#include "Main.h" // I`ll update this base when i have free time. void Initialize() { while (!(g_Globals->CSGOWindow = FindWindowA("Valve001", NULL))) // Get CSGO window handle into global vars Sleep(200); Hooks::oldWindowProc = (WNDPROC)SetWindowLongPtr(g_Globals->CSGOWindow, GWL_WNDPROC, (LONG_PTR)Hooks::WndPr...
23bf643f5104ba8e39acf1e6caa3f87646ffca75
e8173c5225d694e72c69dafbe52b5d700bf9e430
kyx0r/FA_Patcher
/boost_lib/boost/msm/back/favor_compile_time.hpp
C++
hpp
12,258
permissive
// Copyright 2008 Christophe Henry // henry UNDERSCORE christophe AT hotmail DOT com // This is an extended version of the state machine available in the boost::mpl library // Distributed under the same license as the original. // Copyright for the original version: // Copyright 2005 David Abrahams and Aleksey Gurtovoy...
4798f168c283bde2ad6eca739d83bd2dd9c8cbf5
64bec3762e70f3c8cd121ca5ca205fc992e5cbf1
thsgytjr/leetcode
/topics/Array/[849] maximum_distance_to_closest_person.cpp
C++
cpp
1,168
no_license
/* In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. There is at least one empty seat, and at least one person sitting. Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized. Return that maximum distance to clo...
be595d81173454b21d7014a2d91b1e6f775b1e2b
8ea00ebff0bc916d266d79a30a31659acb98dc3e
danielpr2000/portafolio_00365918
/PORTAFOLIO_00365918/clases/ACTIVIDAD 4 puntos 1 y 2.cpp
C++
cpp
784
no_license
include <iostream> using namespace std; struct pais_America{ string nombre; string capital; float habitantes; //habitantes en millones } pais1, pais2, pais3, pais4, pais5; struct pais_Europa{ string nombre; string capital; float habitantes; } pais1, pais2, pais3, pais4, pais5; s...
74af54ccc936d34cd5a8ccfc0a2c93bb17f4d55a
035e5c1fc863fa41030f6f84b98d83d79d1a052e
Jose-Luis/ttx
/ext_libs/include/SFML/Graphics/Font.hpp
C++
hpp
16,368
no_license
//////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library // Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages a...
f84c3a936238b0bcf203e38472b90314fb15996f
1631996b54740633fb1998aafe84f2c08f4a70e7
ksekimoto/llvm-project
/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
C++
cpp
137,476
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 // //===---------------------------...
f514f293977f85af878c637b78782987aaa3abcf
93040e41d75675a8544bbd429c1e1b492d0f1993
jaemin2682/BAEKJOON_ONLINE_JUDGE
/2577.cpp
C++
cpp
378
permissive
#include <iostream> #include <string> #include <cmath> #include <algorithm> #include <vector> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int res = a * b * c; string str = to_string(res); int arr[11] = { 0, }; for (int i = 0; i < str.size(); i++) { arr[str[i]-'0']++; } for (int i = 0; ...
c4be0a3088dce27adb84bc67a70ae70a869fea34
25f28f40abfce9facc6279cd5e83fd162b0ee9de
tundra/neutrino
/tests/c/test_alloc.cc
C++
cc
3,837
permissive
//- Copyright 2013 the Neutrino authors (see AUTHORS). //- Licensed under the Apache License, Version 2.0 (see LICENSE). #include "test.hh" BEGIN_C_INCLUDES #include "alloc.h" #include "value-inl.h" END_C_INCLUDES TEST(alloc, heap_string) { CREATE_RUNTIME(); utf8_t chars = new_c_string("Hut!"); value_t str = ...
faa21ab09d289f86ed3b8b167cf680aef00d575b
f2599c2d6b5b12e5ba4a2e56dd7cc9c752edbef6
calinteodorescu/modern.CPP.library.for.DirectX.programming
/Samples/CreateBitmapFromWicBitmap.cpp
C++
cpp
3,148
permissive
// This sample demonstrates how to load an embedded resource (created with // MakeResource.cpp) as a bitmap so that it can be rendered with Direct2D. // This technique works perfectly well with desktop, Windows Store, // and Windows Phone apps. #ifndef UNICODE #define UNICODE #endif #include "..\dx.h" #pragma comme...
eb29ef2cc1946ac6683a9be7c060f6e420c2b2f0
1efccd7a1a65cdd8d58f7a5666202ad80ab76473
XuanZhu-sr/G4reference
/advanced/gammaknife/gammaknife.cc
C++
cc
5,244
no_license
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
1cf54369c31381d4867164caa2249e35459df435
869381ab00dd5c5dbb3df7efd71cfdd82c87edc9
wydddddd/TripleDoggy
/tools/clang/tools/extra/clang-tidy/modernize/UseNoexceptCheck.cpp
C++
cpp
4,303
permissive
//===--- UseNoexceptCheck.cpp - clang-tidy---------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
f6cf0df26fd2dc7488e4803d79141ff4f8bdebdf
c685156375888b6c3bfd0f5f3d8c6f14f13bbd83
pengyang486868/CppProbs
/CppLesson.Prob797/CppLesson.Prob797.cpp
C++
cpp
3,629
no_license
#include "pch.h" using namespace std; // -------------------------------------------- // 省略头部 以下从using namespace std;之后开始 // -------------------------------------------- // 原有的 应该是2的n次方 int mi(int n) { int ans = 1; for (int i = 0; i < n; i++) ans *= 2; return ans; } // 将一个数origin按base进制写成字符串 // 比如origin=6 bas...
98535535642e5a175ada508a4bd7811761535a26
602f4ea1e7cfdf1b28ca7abd890dfc63ad0a94f4
alexmrqt/gr-lazyviterbi
/lib/viterbi_volk_state_impl.cc
C++
cc
9,049
no_license
/* -*- c++ -*- */ /* * Copyright 2019 Alexandre Marquet. * * This 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 3, or (at your option) * any later version. * * This software is distrib...
8dd24327cd4c01ea1cc7622cc2d97920989a73fc
647fc6e8e9f0c1eb3418c81191260dc676f860bf
skyellen/robwork-mirror
/RobWorkSim/src/rwsim/rwphysics/RWBodyPool.cpp
C++
cpp
944
permissive
/* * RWBodyPool.cpp * * Created on: Jun 8, 2009 * Author: jimali */ #include "RWBodyPool.hpp" using namespace rwsim::simulator; RWBodyPool::RWBodyPool(int nrBodies):_bodies(nrBodies){ // add all bodes to the free list for(int i=nrBodies-1;i>=0;i--){ _bodies[i] = new RWBody(i); _freeBodyIDs.push(i); ...
169297e1487fbaf5f2bf43c186884915dd7a5b2b
fa63516a0d016024b5be826aaa4d9a085cd28fdb
qh997/CppLearning
/PPPUcpp/Chapter09_Chrono.cpp
C++
cpp
2,386
no_license
#include "Chapter09_Chrono.h" namespace Chrono { Date::Date(int yy, Month mm, int dd) : y(yy), m(mm), d(dd) { if (!is_date(y, m, d)) throw Invalid(); } Date &default_date() { static Date dd(2001, Date::jan, 1); return dd; } Date::Date() ...
c75a5e8618985b75803f45a3d8e5633d04249f09
45818695aa52a5673fc40e5ca398e5aa810e286c
Robinatp/Compile-Tensorflow-C--without-Bazel
/tensorflow_detection_cpp/src/object_detection.cpp
C++
cpp
5,976
no_license
#include"object_detection.h" // Helper Functions: High Level Status MatToTensorOfUint8_1(Mat input , const int input_height, const int input_width, const float input_mean, const float input_std, tensorflow::Tensor &out_tensors) { // resize resize(input, input, Size(input_height, input_width)); // color conver...
3cdab973ea4588a6422cd0099651ac8d077277b6
010e972e05a8906ea4fbdaaa76590a59bcd66d7e
ryabtsevvv/document-recognizer
/model/document_recognizer_model.cpp
C++
cpp
479
no_license
#include <opencv2/opencv.hpp> #include "document_recognizer_model.hpp" bool DocumentRecognizerModel::loadImage(const QString &fileName) { bool result(false); if( !fileName.isEmpty() ) { cv::Mat image = cv::imread( fileName.toStdString().c_str() ); if( !image.empty() ) { currentPage_.setImage(image)...
80cad854d449083f6683fe4093c4d5a963689c56
999cc7c55a07ecc437041628b64638002af54bb1
shivanshu1086/DSA
/Arrays/array-arrangement/sort_orderwise.cpp
C++
cpp
721
no_license
#include <iostream> #include<string> #include<cmath> #include<vector> using namespace std; bool comp(int a, int b) { // swap not needed if((a > 0 && b > 0) || (a < 0 && b < 0) || (a > 0 && b < 0 )) return false; // swap needed if(a < 0 && b > 0) return true; // swap not needed if((a == 0 &&...
f706182fdb19c976af2e482f1bd63f0f2302d35c
f6afc329eb8e50286fd3addb4915adc998c65ced
thngkaiyuan/chromium
/third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp
C++
cpp
1,790
permissive
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "bindings/core/v8/V8PagePopupControllerBinding.h" #include "bindings/core/v8/V8Binding.h" #include "bindings/core/v8/V8Window.h" #include "core/...
180412ef1fbc06be338215453327d98a830b2ad4
12f26671c083311af375a6eb3a42a9ec875bdc76
jemisa/chandler-1
/internal/wx/src/mac/corefoundation/utilsexc_cf.cpp
C++
cpp
4,227
no_license
///////////////////////////////////////////////////////////////////////////// // Name: src/mac/corefoundation/utilsexec_cf.cpp // Purpose: Execution-related utilities for Darwin // Author: David Elliott, Ryan Norton (wxMacExecute) // Modified by: Stefan Csomor (added necessary wxT for unicode builds) //...
db6556a2ee1fa593c7f217f9ddc843abdf966b37
27b3187b774ce6633363735e2d4c758b0b0206e5
jfmherokiller/TheOuterWorldsSdkDump
/Indi/SDK/Indi_Spell_PerkEffect_Stonebreaker_2_functions.cpp
C++
cpp
366
no_license
// TheOuterWorlds SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "Indi_Spell_PerkEffect_Stonebreaker_2_parameters.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- ...
4c033f51dd02f548b8a870998f5cda72458475b7
016f115c4d6c21139e19dfdc01f8e294d04412d5
banoris/epicode
/cpp/search-rotated-sorted-array.cc
C++
cc
3,007
permissive
// Copyright (c) 2013 Elements of Programming Interviews. All rights reserved. #include <algorithm> #include <cassert> #include <iostream> #include <random> #include <string> #include <unordered_set> #include <vector> using std::cout; using std::default_random_engine; using std::endl; using std::random_device; using ...
aeaa7714d0ec9d52b520eb72dcf16785cd22bee0
dbce2d99f1f6554a918600894588429dd1f84f1c
WuyangPeng/Engine
/Assist/Code/Toolset/CoreTools/ExportTest/CoreTools/Module/ScriptTestExportMacro.cpp
C++
cpp
761
permissive
/// Copyright (c) 2010-2023 /// Threading Core Render Engine /// /// 作者:彭武阳,彭晔恩,彭晔泽 /// 联系作者:94458936@qq.com /// /// 标准:std:c++20 /// 版本:0.9.1.2 (2023/07/31 10:21) #include "Script/ScriptExport.h" #include "ScriptTestExportMacro.h" #include "CoreTools/Helper/ClassInvariant/ScriptClassInvariantMacro.h" #include "Tools...
5db86d55dc55563b392f4dce86e0ea6a432aae3a
7e78346b9fcb17e09cd73c0d561d0e3bf8ba4596
fanzcsoft/windows_embedded_compact_2013_2015M09
/windows_embedded_compact_2013_2015M09/WINCE800/private/test/BaseOS/pqoal/cetk/kitl/code/tuxkitl.cpp
C++
cpp
16,271
no_license
// // Copyright (c) Microsoft Corporation. All rights reserved. // // // Use of this source code is subject to the terms of the Microsoft shared // source or premium shared source license agreement under which you licensed // this source code. If you did not accept the terms of the license agreement, // you are...
a0a84c61eef7faf915fc41b2737adb363a8b87c9
def5d571f0e39a4af38d7e13bef6b33101f44b6d
SupunPerera1994/Arduino_Robot
/CollisionAvoidance.cpp
C++
cpp
1,980
no_license
// // // #include "CollisionAvoidance.h" CollisionAvoidance::CollisionAvoidance(int trigPin, int echoPin, int maxDistance, Propulsion* propulsion) : sonar(trigPin, echoPin, maxDistance), flagVeryClose(false), flagClose(false), propulsion(propulsion), timer(FREQ) {//trigPin and echoPin can be the same } void Coll...
89da3dbfe9d153392926442746cee9432713041c
b2268f4b9492c9d792935dbdaaea2b1753c2157b
GithubAtBob/vtsServer
/vtsServer/request/hgTurnCircleHandler.cpp
C++
cpp
2,325
no_license
#include "StdAfx.h" #include "hgTurnCircleHandler.h" #include "message/hgTurnCircle.pb.h" #include "db/DBTurnCircleHandler.h" #include "timer/hgChannelTimerHandler.h" #include "frame/vtsServer.h" #include "timer/hgTurnCircleTimerHandler.h" #include "Managers/hgTargetManager.h" #include "Managers/hgAlarmManager.h" #i...
bf33187dde8f531449c1ca9e51681953bc9d6a28
2e9a3a26838a44939ef10144f3e4cacff46628c7
couchbaselabs/couchbase-rs
/couchbase-sys/libcouchbase/src/analytics/analytics_handle.hh
C++
hh
7,086
permissive
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2016-2021 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 * * ...
47c638caa916d3ae37b14cbd1f7b817e015cb0d9
5ead5007703e638137de79d62fee9da74980c978
caiwaifung/algo
/acm/finals/2010-harbin/000295.cpp
C++
cpp
5,821
no_license
#include <cstdio> #include <iostream> #include <algorithm> #include <map> #include <cmath> #include <vector> #include <cstring> #include <iomanip> #include <cassert> #define FORE(e,x) for(__typeof(x.begin()) e=x.begin();e!=x.end();++e) using namespace std; #define pb push_back typedef double R; #define TASK "channel...
2d41246128769b9394dc4d8d13d831490c730730
c6708df88d647d30022cd8852e4b488580e83631
humbert0u0/leetcoderepo
/116. Populating Next Right Pointers in Each Node/solution.cpp
C++
cpp
665
no_license
/** * Definition for binary tree with next pointer. * struct TreeLinkNode { * int val; * TreeLinkNode *left, *right, *next; * TreeLinkNode(int x) : val(x), left(NULL), right(NULL), next(NULL) {} * }; */ class Solution { public: void connect(TreeLinkNode *root) { if(!root) return; queue<Tre...
37adccc730c579634ea9e69f9f137f61b7388370
81029db658a5d8c3100c5e262580671fde3a0438
yujincheng08/spaceship
/src/spaceship.cpp
C++
cpp
14,175
no_license
#include "spaceship.h" #include "controller.h" #include <Qt3DRender/QAttribute> #include <Qt3DRender/QBuffer> #include <QtDebug> #include <QtMath> #include <limits> SpaceShip::SpaceShip(Scene *parent, Controller *root) : Component(parent) { this->root = root; initMaterials(); textureImage->setSource(Q...
5e6350da05f88f493072c5a870a1197a6db473cb
d0dd9ba28c83907cb6df4fc01a00692dd372dab3
chiragjindal/Competitive-programming
/Spoj/main/OPC3ASHORT.cpp
C++
cpp
927
no_license
#include<stdio.h> #define mod 1000000007 typedef unsigned long long ll; class m { public: ll a,b,c,d; m() { a=b=c=1; d=0; } m mul(m a,m b) { m o; o.a=((a.a*b.a)+(a.b*b.c)); o.b=((a.a*b.b)+(a.b*b.d)); o.c=((a.c*b.a)+(a.d*b.c)); o.d=((a.c*b.b)+(a.d*b.d)); return o; } m exp(m o,ll...
30d586948a27f58825b1baab5a8a8243139f19f8
a72ecbd7fcb9844caf3314c65bcd3165267b9e27
ElectroTD/Matrix
/src/Parameter/Device/MXPT/V150.cpp
C++
cpp
1,487
permissive
#include "../../DeviceSelector.h" void loadConfigMXPTV150() { device_config = 150; device_name = "Matrix Prototype V1.5"; //LED led_pin = PC7; powercord_pin = PA8; led_color_correction = 0xC0FFD8; //KeyPad keypad_type = 1; keyPins[0] = PB12; keyPins[1] = PB13; keyPins[2] = PC6; keyPins[3] ...
992f92a817d579aed8b6b3b820344a1948f34523
65e0d8b28b7543201a4231d6cddc923e7d3ae0c5
digital-nomad-cheng/study
/cpp/udacity_cpp/02_foundations/04_writing_larger_programs/function_order_in_a_simple_file.cpp
C++
cpp
575
no_license
/* Function Order in a Single File In the following code example, the functions are out of order, and the code will not compile. Try to fix this by rearranging the functions to be in the correct order. */ #include <iostream> using std::cout; /* In a single file, you must define the function before you use it. */ ...
17124a780f102f69ead4fa34fec5a8b67eda1f0b
b5f5d9ee023c717c0726018ea66d4a72ea792ee9
Yousefjb/Sentro
/Divert.Net/Divert.Net/src/DivertICMPHeader.hpp
C++
hpp
3,630
no_license
/* * The MIT License (MIT) * * Copyright (c) 2015 Jesse Nicholson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
10048383f2852b55d316cbcc483b7e3dc8cbce14
75f8e44a45cb744549dca1ce937e086071def470
fluxer/copperspice
/src/gui/kernel/qsessionmanager_qpa.cpp
C++
cpp
3,463
no_license
/*********************************************************************** * * Copyright (c) 2012-2015 Barbara Geller * Copyright (c) 2012-2015 Ansel Sermersheim * Copyright (c) 2012-2014 Digia Plc and/or its subsidiary(-ies). * Copyright (c) 2008-2012 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved....
b314147c53635bd8f38b895de647fcd399596103
6ae7b08ac1e4edb09308fa0d338b7607fa532c94
codeAligned/cpp_primer_solution
/ch12/ex12_14.cpp
C++
cpp
551
no_license
#include "headers.h" class Connection { public: Connection(string dst) { cout << "Connection to " << dst << " created!" << endl; } }; Connection connect(string dst) { Connection &c = *(new Connection(dst)); cout << "Connection to " << dst << " conncted!" << endl; return c; } void end_c...
2558c37388ff21ef54632ebdf6d60a1a1fd9ff66
203c985c945fef462240b7dececfbae119737790
MartinAparicioPons/Competitive-Programming
/UVA/WheresTheMarble.cpp
C++
cpp
1,644
permissive
#include <cstdio> #include <cctype> #include <vector> #include <set> #include <queue> #include <map> #include <stack> #include <iostream> #include <algorithm> #include <iterator> #include <string> #include <cstring> #include <sstream> #include <cstdlib> #include <locale> #define scd(x) scanf("%d", &x) #define scc(x) sc...
1596de157321f59b694d13b42b2923567b53bc81
4345206f12113cacc4d5ecb4212e69c93e268d86
lbryio/lbrycrd-dependencies
/boost_1_59_0/boost/log/utility/formatting_ostream.hpp
C++
hpp
34,967
permissive
/* * Copyright Andrey Semashev 2007 - 2015. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ /*! * \file formatting_ostream.hpp * \author Andrey Semashev * \date 11.07.2012 * * T...
c4e82b5ac14a0adaae58189eae635cf631fc0638
f0dfb91028c7ceb19988013c1b8e0437379fe2ca
sigrond/strzelanie_do_kaczek
/Shotgun.cpp
C++
cpp
3,305
no_license
/** \file Shotgun.cpp * \author Tomasz Jakubczyk * \brief Plik z implementacjami metod klasy Shotgun * */ #include "Shotgun.hpp" #include "openBMP.hpp" Shotgun::Shotgun(const std::string& Directory, const std::string& ShotgunFilename) { fileName=Directory+ShotgunFilename; } void Shotgun::load() { Image* im...
91609139fbe598f8f38219c9787ba25862770bd5
ca625149ea3944783ad995076cb33c9995520bf3
llucifer97/Algorithms-Datastructure
/advanced datastructure/segmentTree/range_max_query.cpp
C++
cpp
2,293
no_license
// CPP code for range maximum query and updates #include <bits/stdc++.h> using namespace std; int getMax(int* st,int ss, int se, int l,int r, int node) { // Check for erroneous input values // if (l < 0 || r > n - 1 || l > r) // { // printf("Invalid Input"); // return -1; // } if (l <= ss && r >=...
61c454f82e258fe0a27ac8eff378fe1e1d862df4
31743a5369bdfcfeb534a971208ebd8793425504
bmellish/delete_testing
/main.cpp
C++
cpp
2,478
permissive
#include <iostream> #include <vector> #include <chrono> #include <iomanip> #include <list> #include "LinkedList.h" using namespace std; void Vector_Delete(int num_items) { int i = 0; vector <int> numbers; //Populate std vec w/ 10,000 entries for (i = 0; i < num_items; i++){ numbers.push_back...
b4fb21c32e7986344e586b7cc66a3bcff75f290a
5a4d94e4c2f47bf88634e1b5f0803180b22a06c4
pauladams8/chromium
/components/viz/service/display_embedder/skia_output_device_gl.cc
C++
cc
19,085
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 "components/viz/service/display_embedder/skia_output_device_gl.h" #include <tuple> #include <utility> #include "base/callback_helpers.h" #inclu...
f83228894099a1e1e777ac6931f840e45f176d85
bbed72e720a0cdb375d3d1f2aec2a0a3ef263e77
mitchgalea/pipe_sim
/src/point.cpp
C++
cpp
463
no_license
#include "pipe_sim/point.h" Point::Point() {} Point::Point(double rssi, double distance, double variance) :rssi_(rssi), distance_(distance), variance_(variance) {} double Point::getRSSI() const {return rssi_;} double Point::getDistance() const {return distance_;} double Point::getVariance() const {return variance...
7551f543b2abbc175f3b8b6fe48cc24a2535581f
1cd53d3fa087f14200b9e9165299af6ba043fb75
lamyj/odil
/src/odil/registry_0046.cpp
C++
cpp
19,931
permissive
/************************************************************************* * odil - Copyright (C) Universite de Strasbourg * Distributed under the terms of the CeCILL-B license, as published by * the CEA-CNRS-INRIA. Refer to the LICENSE file or to * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html * for...
a058035002faadbc64131f0e6988099f893f6a12
ec7af7b9c5210ab29f550b1ae7bd789596605d94
robin-rpr/angle
/src/libANGLE/renderer/gl/StateManagerGL.cpp
C++
cpp
78,440
permissive
// // Copyright (c) 2015 The ANGLE 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. // // StateManagerGL.h: Defines a class for caching applied OpenGL state #include "libANGLE/renderer/gl/StateManagerGL.h" #include <string.h...
26f2c5ffaac89a36d08f91c1a3868f858fbcc205
ee598e366d839f020438e0c35eaee3471b738529
EO-Zanzo/SeaOfThieves-Hack
/SDK/SoT_BP_hair_col_blond_04_over_Desc_functions.cpp
C++
cpp
372
no_license
// Sea of Thieves (1.2.6) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_BP_hair_col_blond_04_over_Desc_parameters.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //----------------------------------------------------------------------...
507bd924922c95694880127cfb37904fdb603526
de7d9f30c7c9f3f224a9ea79704be0fa40954f01
dlu7/cpsc350assign5
/Person.cpp
C++
cpp
322
no_license
#include <iostream> #include "Person.h" using namespace std; Person::Person() { //empty } Person::~Person() { //empty } void Person::setID(int i) { ID = i; } int Person::getID() { return ID; } string Person::getName() { return name; } string Person::getLevel() { return level; ...
cbb187674f2fa4ba47d72ce81661a8f808f7db76
a6f172ca950eccb5a58822e78bdbc753fa09ce61
sapientacoin/sapientacoin
/src/rpcrawtransaction.cpp
C++
cpp
21,126
permissive
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include "base58.h" #include "bitcoinrpc.h" #inclu...
6492ea320f5ae93cfa77a208b884f51d018a6efd
1f3f4f08a62e339fad2b370d401f819ea4c2cea0
t3ran13/golos
/plugins/operation_dump/operation_dump_plugin.cpp
C++
cpp
6,132
permissive
#include <golos/plugins/operation_dump/operation_dump_plugin.hpp> #include <golos/plugins/operation_dump/operation_dump_container.hpp> #include <golos/plugins/operation_dump/operation_dump_visitor.hpp> #include <golos/plugins/chain/plugin.hpp> #include <appbase/application.hpp> namespace golos { namespace plugins { na...
68136fa7c1527289bdea7264b88b0a08392ee081
2cfa15a69caf4f7ca24b1136bff482d7615a4fd9
iamgreggors/UE_BuildingEscape
/Source/Building_Escape/Vanisher.cpp
C++
cpp
672
no_license
// Copyright Greg is Cool 2020 #include "Vanisher.h" // Sets default values for this component's properties UVanisher::UVanisher() { // Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features // off to improve performance if you don't need them. Primar...
6d555101778793d35ac27896beccf24e1ed97fd0
28ac7cad04ecd236aa6ba396409494c0064026e9
jakecrim/IoT-Geo-Lock
/src/transmission.cpp
C++
cpp
3,491
no_license
#include "transmission.h" #include "Servo.h" /* WiFi Initialization Variables*/ //Creating a WiFi Client instance WiFiClient client; // Setup MQTT For Adafruit IO Adafruit_MQTT_Client mqtt(&client, AIO_SERVER, AIO_SERVER_PORT, AIO_USERNAME, AIO_KEY); // Subscribe information, named after the feed in AiO we will be lis...
c11d6b589fa1da8e88170cfab1ba8a08fe899c4e
e99bb391980ccbb4623640abaf43d02c9c806952
KoSukeWork/BabeLua
/Source/Decoda/libs/wxWidgets/src/generic/aboutdlgg.cpp
C++
cpp
7,976
permissive
/////////////////////////////////////////////////////////////////////////////// // Name: src/generic/aboutdlgg.cpp // Purpose: implements wxGenericAboutBox() function // Author: Vadim Zeitlin // Created: 2006-10-08 // RCS-ID: $Id: aboutdlgg.cpp 58761 2009-02-08 14:55:44Z VZ $ // Copyright: (c...
bf1166f0c7e069a47528c3d1d08dee126262b0d9
4c1190671aef463e7c58c1910beaf471ee847969
wipo-shift/STM32_FFBJoystick
/FFBJoystick/Src/QEncoder.cpp
C++
cpp
5,484
no_license
/* * QEncoder.cpp * * Created on: Feb 15, 2021 * Author: billy */ #include "QEncoder.h" #include "FFBConfig.h" #include "FFBMain.h" extern FFBConfig config; TIM_HandleTypeDef *htim_X; TIM_HandleTypeDef *htim_Y; volatile int32_t pos_X __attribute__((section("ccmram"))); // Extra position counter for overfl...
34902f0dd3fec40bc104c0dfdf7eab514d43b3f5
00e922d628200fde00c67c6ca7232b6f56d2924c
xbhoneybee/ACM_ICPC
/poj/1087.cpp
C++
cpp
4,519
no_license
//#include <bits/stdc++.h> #include<cstdio> #include<cstdlib> #include<cstring> #include<string> #include<iostream> #include<algorithm> #include<queue> #include<cmath> #include<stack> #include<set> #include<vector> #include<map> #include<sstream> #define ll long long #define LL long long #define iosfalse ios::sync_with...
4aa53c0df3b9a2b2a7ef95e8338504e2ca7178a3
3aa8d11587a333f0a54c5f1ce56d61f428c64d62
huhaoo/code
/luogu/3809.cpp
C++
cpp
1,626
no_license
/*************************************************************** File name: 3809.cpp Author: huhao Create time: Thu 11 Jul 2019 08:20:51 PM CST ***************************************************************/ #include<stdio.h> #include<string.h> #include<math.h> #include<algorithm> using namespace std; #define fr(i,...
e23e8876f5ef3ff382d9cee052ad1a0800961384
b217d0b4c6c7e8aea03a4cba07591b7d5ec54698
energia/cc3200-core
/libraries/Servo/Servo.cpp
C++
cpp
6,785
no_license
/* Servo.cpp - Interrupt driven Servo library for the CC3200 using 16 bit timers Copyright (c) 2009 Michael Margolis. All right reserved. 2014: Modified by Robert Wessels for the CC3200 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Lic...
b473d75c818995161af991d7b89d63b69a3a4e71
99ac11e04ca5d446ccdc21867651059a29ff48aa
logsniper/ACM-code
/ZOJ Accepted/1425-Crossed Matchings.cpp
C++
cpp
1,198
no_license
#include<cstdio> #include<cstring> #define MAX (1<<30) int dp[100][100]; int prev[2][100][100];//prev[0][i][j]表示第一行下标0-i中值为j的最后一个位置 int n,m; int line[2][100]; void initialize(){ scanf("%d%d",&n,&m); for(int i=0;i<n;++i){ scanf("%d",&line[0][i]); for(int j=0;j<100;++j){ if(i==0) prev[0][i][j] = -1; else pr...
61817c5248638cb771f841f0256ecf2fb9f0c620
24623382a67522c8d5633fcb88a9445a519901c2
shangaoren/yggdrasil
/kernel/Task.cpp
C++
cpp
4,023
permissive
/*MIT License Copyright (c) 2018 Florian GERARD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
80e9da1681b8a4f07019112f701db10d9e85a054
263d570c5e21e5f43f458778748878b6f0c989a7
meg768/twitter-display
/downloads/led_demo/sw/picture_beagle.cpp
C++
cpp
1,807
no_license
#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <sys/time.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <signal.h> #include <memory.h> #include "gammalut.h" //PRE R...
1cfc7390139d854aedbf1e3f161209632e9c1c9a
cafd1561f0a5f1974866e2950e7477adfb545d1b
fengbingchun/PyTorch_Test
/src/onnxruntime/onnxruntime/core/providers/tvm/tvm_execution_provider.cc
C++
cc
21,230
permissive
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <fstream> #include <map> #include "core/framework/execution_provider.h" #include "core/framework/tensorprotoutils.h" #include "core/framework/kernel_registry.h" #include "core/framework/compute_capability.h" #incl...
c0b9fb6828799aa7e61f9cd67e1198c7cd7a153e
640d8bc31cece55545c8b5b17a25bd97e98c2e96
JakeRuss/readxl
/src/XlsWorkBook.cpp
C++
cpp
701
no_license
#include <Rcpp.h> #include "XlsWorkBook.h" #include "XlsWorkSheet.h" using namespace Rcpp; XlsWorkSheet XlsWorkBook::sheet(int i) { return XlsWorkSheet(*this, i); } XlsWorkSheet XlsWorkBook::sheet(std::string name) { for (int i = 0; i < nSheets(); ++i) { std::string this_name((char*) pWB_->sheets.sheet[i].name...
f8ad0f1d67117eff82c4a7db21a0a1f5d96578fe
8ba1991c786f8721af13a174eacab21acf6f9a19
DarkCodez/TCF-SDK
/SDK/TCF_WmfMediaFactory_classes.hpp
C++
hpp
1,851
no_license
#pragma once // The Cycle Frontier (1.X) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "TCF_WmfMediaFactory_structs.hpp" namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------...
89c2b377b440a2a9e865c781b05199275ed42e02
b65e2d52afbac1c0c0227fbd5577f951f9a942f1
whyhhr/homework2
/Intermediate/Build/Win64/Netshoot/Inc/Engine/MaterialExpressionReflectionVectorWS.gen.cpp
C++
cpp
7,912
no_license
// Copyright Epic Games, Inc. All Rights Reserved. /*=========================================================================== Generated code exported from UnrealHeaderTool. DO NOT modify this manually! Edit the corresponding .h files instead! ========================================================================...
f386fbfafcd1c1428649211cadc111ce83f6cce6
d28d0dc3f145650158586eb70cce1f83c5215eee
chromium/chromium
/extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.cc
C++
cc
3,421
permissive
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.h" #include "base/functional/bind.h" #include "content/public/browser/render_frame_host.h" #include ...
27ad85cd5e2f893346095349c79543b38ca49af3
408d47dd83dc31866b63905cad9fa9f1d414f942
novaquark/aws-sdk-cpp
/aws-cpp-sdk-appconfig/source/model/GetDeploymentStrategyResult.cpp
C++
cpp
2,699
permissive
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
89124f691a345c9a2b6950c6478a2b7cdfa433f3
b1545d587b8f2efa6fe245cabfc86723313db46d
socratesone/vespa
/searchlib/src/vespa/searchlib/tensor/hnsw_graph.cpp
C++
cpp
3,585
permissive
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "hnsw_graph.h" #include "hnsw_index.h" #include <vespa/vespalib/datastore/array_store.hpp> #include <vespa/vespalib/util/rcuvector.hpp> namespace search::tensor { HnswGraph::HnswGraph() : node_...