hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
2390ce9b12915def58828d146a76a85e540b6710
136,156
cc
C++
firmware/src/shared/Menu.cc
togetherPeter/Sailfish-G3Firmware3
af5ffb1648825e03563c3c488c4d45685b957960
[ "AAL" ]
null
null
null
firmware/src/shared/Menu.cc
togetherPeter/Sailfish-G3Firmware3
af5ffb1648825e03563c3c488c4d45685b957960
[ "AAL" ]
null
null
null
firmware/src/shared/Menu.cc
togetherPeter/Sailfish-G3Firmware3
af5ffb1648825e03563c3c488c4d45685b957960
[ "AAL" ]
null
null
null
// Future things that could be consolidated into 1 to save code space when required: // // Combined lcd.clear() and lcd.setCursor(0, 0) -> lcd.clearHomeCursor(): savings 184 bytes // lcd.setCursor(0, r) --> lcd.setRow(r): savings 162 bytes // // ValueSetScreen // BuzzerSetRepeatsMode // ABPCopiesSetScreen #include "Co...
28.864957
153
0.699448
togetherPeter
23930b18119937fc7644d72e096d087022e91ab1
864
cpp
C++
src/gfxtk/Buffer.cpp
NostalgicGhoul/gfxtk
6662d6d1b285e20806ecfef3cdcb620d6605e478
[ "BSD-2-Clause" ]
null
null
null
src/gfxtk/Buffer.cpp
NostalgicGhoul/gfxtk
6662d6d1b285e20806ecfef3cdcb620d6605e478
[ "BSD-2-Clause" ]
null
null
null
src/gfxtk/Buffer.cpp
NostalgicGhoul/gfxtk
6662d6d1b285e20806ecfef3cdcb620d6605e478
[ "BSD-2-Clause" ]
null
null
null
#include "Buffer.hpp" #ifdef GFXTK_GRAPHICS_BACKEND_VULKAN #include <gfxtk/backend/vulkan/Buffer.hpp> #elif GFXTK_GRAPHICS_BACKEND_METAL #include <gfxtk/backend/metal/Buffer.hpp> #else #error target OS is not supported by any existing graphics backend! #endif gfxtk::Buffer gfxtk::Buffer::create( std::shared_p...
27
95
0.726852
NostalgicGhoul
2393d38d4a5a137d14b49a994ed5ea0b6f9fe7fa
2,091
hpp
C++
obs-studio/UI/window-basic-main-outputs.hpp
noelemahcz/libobspp
029472b973e5a1985f883242f249848385df83a3
[ "MIT" ]
null
null
null
obs-studio/UI/window-basic-main-outputs.hpp
noelemahcz/libobspp
029472b973e5a1985f883242f249848385df83a3
[ "MIT" ]
null
null
null
obs-studio/UI/window-basic-main-outputs.hpp
noelemahcz/libobspp
029472b973e5a1985f883242f249848385df83a3
[ "MIT" ]
null
null
null
#pragma once #include <string> class OBSBasic; struct BasicOutputHandler { OBSOutputAutoRelease fileOutput; OBSOutputAutoRelease streamOutput; OBSOutputAutoRelease replayBuffer; OBSOutputAutoRelease virtualCam; bool streamingActive = false; bool recordingActive = false; bool delayActive = false; bool replayB...
28.256757
68
0.780966
noelemahcz
239529e3a0656005ba014a4ca0e76a86b1b2136a
646
cpp
C++
mrJudge/problems/countfishes (197)/countfishes.cpp
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
1
2022-02-21T15:43:01.000Z
2022-02-21T15:43:01.000Z
mrJudge/problems/countfishes (197)/countfishes.cpp
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
mrJudge/problems/countfishes (197)/countfishes.cpp
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int tc, inf=1000001; cin >> tc; vector<int> isprime(inf, 1), prefix(inf); for (int i = 2; i*i < inf; i++) { if (isprime[i]) { for (int j = i*i; j < inf; j+= i) { i...
21.533333
48
0.410217
object-oriented-human
239935d93d4706e23409398c03caf909a98d3cea
879
cpp
C++
atcoder/abc147c.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
1
2020-04-04T14:56:12.000Z
2020-04-04T14:56:12.000Z
atcoder/abc147c.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
atcoder/abc147c.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; void solve() { int n; cin >> n; vector<vector<pair<int,int>>> g(n); for (int i = 0; i < n; i++) { int m; cin >> m; for (int _ = 0; _ < m; _++) { int x, y; cin >> x >> y; x--; g[i].emplace_back(x,...
20.44186
52
0.366325
sogapalag
2399e24ba2dbf07647952ce82ee88f98e7b1095d
6,547
cpp
C++
src/structs.cpp
Algorithms-and-Data-Structures-2021/classwork-02-cpp-basics-demo
dccf30fd03a7ed4e8e68f85c395f786a643ea3db
[ "MIT" ]
null
null
null
src/structs.cpp
Algorithms-and-Data-Structures-2021/classwork-02-cpp-basics-demo
dccf30fd03a7ed4e8e68f85c395f786a643ea3db
[ "MIT" ]
null
null
null
src/structs.cpp
Algorithms-and-Data-Structures-2021/classwork-02-cpp-basics-demo
dccf30fd03a7ed4e8e68f85c395f786a643ea3db
[ "MIT" ]
3
2021-03-10T06:20:27.000Z
2021-03-17T05:53:36.000Z
#include <iostream> // cout // Подключаем свой заголовочный файл - // целью заголовочных файлов является удобное хранение набора объявлений // для их последующего использования в других программах. // поиск заголовочного файла осуществляется в папках проекта (а не в системных директориях) #include "structs.hpp" // ...
31.781553
113
0.685352
Algorithms-and-Data-Structures-2021
239da9ca7eca15f56272f96c2085795d5c53472d
308
cpp
C++
cpp/other/terminal_input.cpp
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
cpp/other/terminal_input.cpp
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
cpp/other/terminal_input.cpp
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
#include <string> #include <sstream> #include <iostream> using namespace std; int main(){ string mystr; float price; cout << "enter price :" << endl; getline(cin,mystr); //cin.getline(mystr); stringstream (mystr) >> price; cout << "the price is:" << price << endl; return 0; }
22
45
0.607143
danyfang
239dfe62dd54c7c176526a8d355e463822fe0611
32,683
cpp
C++
sam/sam2016.cpp
leandrohga/cs4298_MacNCheese
89e6b381341c5b647c98a0d84af6f71c57a4e147
[ "Apache-2.0" ]
null
null
null
sam/sam2016.cpp
leandrohga/cs4298_MacNCheese
89e6b381341c5b647c98a0d84af6f71c57a4e147
[ "Apache-2.0" ]
null
null
null
sam/sam2016.cpp
leandrohga/cs4298_MacNCheese
89e6b381341c5b647c98a0d84af6f71c57a4e147
[ "Apache-2.0" ]
null
null
null
/* ____________________________________________________________________________ S A M 2 0 0 7 An Assembler for the MACC2 Virtual Computer James L. Richards Last Update: August 28, 2007 Last Update: January 2...
17.165441
79
0.504207
leandrohga
23a16754db0186edec4777a29ab424dbede84267
40,226
cpp
C++
multimedia/directx/dmusic/dmscript/dmscript.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
multimedia/directx/dmusic/dmscript/dmscript.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
multimedia/directx/dmusic/dmscript/dmscript.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
// // Copyright (c) 1999-2001 Microsoft Corporation. All rights reserved. // // Implementation of CDirectMusicScript. // #include "stdinc.h" #include "dll.h" #include "dmscript.h" #include "oleaut.h" #include "globaldisp.h" #include "activescript.h" #include "sourcetext.h" //////////////////////////////...
34.6179
186
0.621861
npocmaka
23a3eef99bb03be101e5c678edd9f254ac18b11c
617
cpp
C++
Coraza.cpp
ErickMartinez2/Lab7P3_ErickMartinez
b6f045979bd3b09e9b89f2bd97c51d031db0978b
[ "MIT" ]
null
null
null
Coraza.cpp
ErickMartinez2/Lab7P3_ErickMartinez
b6f045979bd3b09e9b89f2bd97c51d031db0978b
[ "MIT" ]
null
null
null
Coraza.cpp
ErickMartinez2/Lab7P3_ErickMartinez
b6f045979bd3b09e9b89f2bd97c51d031db0978b
[ "MIT" ]
null
null
null
#include "Coraza.h" Coraza::Coraza() { } Coraza::Coraza(int pdureza, int pcantidad) { dureza = pdureza; cantidad = pcantidad;; } Coraza::Coraza(string pnombre, string pciudad, int pedad, int pdureza, int pcantidad): Soldado(pnombre, pciudad, pedad) { dureza = pdureza; cantidad = pcantidad; } int Coraza::getDur...
15.04878
121
0.701783
ErickMartinez2
23a4241af81aa23c0da2f9375699cb1983670347
1,153
cpp
C++
src/RuleTimer.cpp
d3wy/pool-controller
182d8c67638abf56d8e5126103b5995006c06b42
[ "MIT" ]
12
2020-03-04T18:43:43.000Z
2022-01-30T22:59:27.000Z
src/RuleTimer.cpp
d3wy/pool-controller
182d8c67638abf56d8e5126103b5995006c06b42
[ "MIT" ]
17
2019-05-20T20:22:09.000Z
2022-01-11T16:55:26.000Z
src/RuleTimer.cpp
d3wy/pool-controller
182d8c67638abf56d8e5126103b5995006c06b42
[ "MIT" ]
6
2020-06-05T18:17:13.000Z
2022-03-19T20:13:58.000Z
#include "RuleTimer.hpp" /** * */ RuleTimer::RuleTimer(RelayModuleNode* solarRelay, RelayModuleNode* poolRelay) { _solarRelay = solarRelay; _poolRelay = poolRelay; } /** * */ void RuleTimer::loop() { Homie.getLogger() << cIndent << F("§ RuleTimer: loop") << endl; _poolRelay->setSwitch(checkPoolPumpTi...
20.589286
79
0.626193
d3wy
23ae7e5ac53ac779985446beb4d8c74dbbeccd09
572
cpp
C++
Source/Musa/GameObject/DemoGameObjects/OrbitingObject.cpp
frobro98/Musa
6e7dcd5d828ca123ce8f43d531948a6486428a3d
[ "MIT" ]
null
null
null
Source/Musa/GameObject/DemoGameObjects/OrbitingObject.cpp
frobro98/Musa
6e7dcd5d828ca123ce8f43d531948a6486428a3d
[ "MIT" ]
null
null
null
Source/Musa/GameObject/DemoGameObjects/OrbitingObject.cpp
frobro98/Musa
6e7dcd5d828ca123ce8f43d531948a6486428a3d
[ "MIT" ]
null
null
null
#include "OrbitingObject.hpp" #include "Math/Matrix4.hpp" #include "Math/Quat.hpp" OrbitingObject::OrbitingObject(const Vector4& orbitAxis, const Vector4& orbitPos) : axis(orbitAxis), orbitLocation(orbitPos) { } void OrbitingObject::Update(float /*tick*/) { // constexpr float angleOffsetDeg = .005f; // Matrix4 tr...
23.833333
81
0.713287
frobro98
23b0372f4e2172c56569014cd64d3ee64537cd34
3,343
cpp
C++
Classes/transitScene.cpp
alchemz/Campuspedia
0d686a346f67e0f54087fc307ef5fc65d334b935
[ "MIT" ]
1
2015-03-21T17:55:17.000Z
2015-03-21T17:55:17.000Z
Classes/transitScene.cpp
alchemz/Campuspedia
0d686a346f67e0f54087fc307ef5fc65d334b935
[ "MIT" ]
null
null
null
Classes/transitScene.cpp
alchemz/Campuspedia
0d686a346f67e0f54087fc307ef5fc65d334b935
[ "MIT" ]
null
null
null
#include "TransitScene.h" using namespace cocos2d::ui; USING_NS_CC; Scene* Transit::createScene() { // 'scene' is an autorelease object auto scene = Scene::create(); // 'layer' is an autorelease object auto layer = Transit::create(); // add layer as a child to scene scene->addChild(l...
29.069565
111
0.548908
alchemz
23b6267156ba30d4212a91e8925ca4c296c927a0
5,285
hpp
C++
packages/monte_carlo/estimator/native/src/MonteCarlo_CellPulseHeightEstimator.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/estimator/native/src/MonteCarlo_CellPulseHeightEstimator.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/estimator/native/src/MonteCarlo_CellPulseHeightEstimator.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_CellPulseHeightEstimator.hpp //! \author Alex Robinson //! \brief Cell pulse height estimator class declaration //! //---------------------------------------------------------------------------// #ifndef FACEMC_...
35.233333
101
0.693661
lkersting
23b6b5a280f6b6b9fc6621a21ebcdf8dd9977483
5,206
cpp
C++
src/formats/RareSnesInstr.cpp
ValleyBell/vgmtrans
fc7ad99857450d3a943d8201a05331837e5db938
[ "Zlib" ]
2
2021-01-18T05:47:48.000Z
2022-03-15T18:27:41.000Z
src/formats/RareSnesInstr.cpp
ValleyBell/vgmtrans
fc7ad99857450d3a943d8201a05331837e5db938
[ "Zlib" ]
null
null
null
src/formats/RareSnesInstr.cpp
ValleyBell/vgmtrans
fc7ad99857450d3a943d8201a05331837e5db938
[ "Zlib" ]
null
null
null
#include "stdafx.h" #include "RareSnesInstr.h" #include "Format.h" #include "SNESDSP.h" #include "RareSnesFormat.h" // **************** // RareSnesInstrSet // **************** RareSnesInstrSet::RareSnesInstrSet(RawFile* file, uint32_t offset, uint32_t spcDirAddr, const std::wstring & name) : VGMInstrSet(RareSnesForm...
22.634783
205
0.684595
ValleyBell
23b8430bc6dc45bb0fa1a18df8d033da62315651
6,716
cpp
C++
src/model.cpp
akitsu-sanae/phylan
bf949de7b5a91dfd965c3fcc4868b76b4b577375
[ "BSL-1.0" ]
null
null
null
src/model.cpp
akitsu-sanae/phylan
bf949de7b5a91dfd965c3fcc4868b76b4b577375
[ "BSL-1.0" ]
null
null
null
src/model.cpp
akitsu-sanae/phylan
bf949de7b5a91dfd965c3fcc4868b76b4b577375
[ "BSL-1.0" ]
null
null
null
/*============================================================================ Copyright (C) 2016 akitsu sanae https://github.com/akitsu-sanae/phylan Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) ===============================...
33.247525
95
0.544818
akitsu-sanae
23bacc4836a2719609c6d5f7e06370e32f250472
3,953
cpp
C++
test/fence_counting.cpp
mdsudara/percy
b593922b98c9c20fe0a3e4726e50401e54b9cb09
[ "MIT" ]
14
2018-03-10T21:50:20.000Z
2021-11-22T04:09:09.000Z
test/fence_counting.cpp
mdsudara/percy
b593922b98c9c20fe0a3e4726e50401e54b9cb09
[ "MIT" ]
3
2018-06-12T15:17:22.000Z
2019-06-20T12:00:45.000Z
test/fence_counting.cpp
mdsudara/percy
b593922b98c9c20fe0a3e4726e50401e54b9cb09
[ "MIT" ]
12
2018-03-10T17:02:07.000Z
2022-01-09T16:04:56.000Z
#include <percy/percy.hpp> #include <cassert> #include <cstdio> #include <vector> using namespace percy; using std::vector; /******************************************************************************* Counts and prints all fences up to and including F_5 and ensures that the number is correct. ***********...
31.125984
86
0.510751
mdsudara
23bcd21af6406c7041ba801dab6dcc72689b9dd5
2,240
hpp
C++
src/base/include/structs.hpp
N4G170/generic
29c8be184b1420b811e2a3db087f9bd6b76ed8bf
[ "MIT" ]
null
null
null
src/base/include/structs.hpp
N4G170/generic
29c8be184b1420b811e2a3db087f9bd6b76ed8bf
[ "MIT" ]
null
null
null
src/base/include/structs.hpp
N4G170/generic
29c8be184b1420b811e2a3db087f9bd6b76ed8bf
[ "MIT" ]
null
null
null
#ifndef STRUCTS_HPP #define STRUCTS_HPP #include <type_traits> #include <string> #include "vector3.hpp" #include "enums.hpp" #include "SDL.h" template<typename T> struct Bounds { //check if we initialize the vector with the right values static_assert(std::is_integral<T>::value || std::is_floating_point<T>::va...
42.264151
149
0.658036
N4G170
23bf3d4e2e7fccc5f011f98b95a9fa02783391b3
1,604
cpp
C++
src/type.cpp
robey/nolove
d83e5ba34e5e53dbef066f4da2f22c6cc2d0572c
[ "Apache-2.0" ]
1
2015-11-05T12:17:23.000Z
2015-11-05T12:17:23.000Z
src/type.cpp
robey/nolove
d83e5ba34e5e53dbef066f4da2f22c6cc2d0572c
[ "Apache-2.0" ]
null
null
null
src/type.cpp
robey/nolove
d83e5ba34e5e53dbef066f4da2f22c6cc2d0572c
[ "Apache-2.0" ]
null
null
null
#include "llvm/Support/raw_ostream.h" #include "type.h" using namespace v8; // ----- LType NodeProto<LType> LType::proto("Type"); void LType::init() { proto.addMethod("isDoubleType", &LType::isDoubleType); proto.addMethod("isFunctionType", &LType::isFunctionType); proto.addMethod("toString", &LType::toString)...
28.140351
69
0.714464
robey
23bf978e1a5d09fea9cb909b5ec53ef5d141c86e
1,564
cpp
C++
gui/NativeWindow.cpp
razaqq/PotatoAlert
4dfb54a7841ca71d8dbf58620173f2a9fc1886f2
[ "MIT" ]
20
2020-06-16T01:30:29.000Z
2022-03-08T14:54:30.000Z
gui/NativeWindow.cpp
razaqq/PotatoAlert
4dfb54a7841ca71d8dbf58620173f2a9fc1886f2
[ "MIT" ]
26
2019-07-15T10:49:47.000Z
2022-02-16T19:25:48.000Z
gui/NativeWindow.cpp
razaqq/PotatoAlert
4dfb54a7841ca71d8dbf58620173f2a9fc1886f2
[ "MIT" ]
5
2020-06-16T01:31:03.000Z
2022-01-22T19:43:48.000Z
// Copyright 2020 <github.com/razaqq> #include <QWidget> #include <QVBoxLayout> #include <QMainWindow> #include <QWindow> #include "NativeWindow.hpp" #include "TitleBar.hpp" #include "Config.hpp" #include "FramelessWindowsManager.hpp" using PotatoAlert::NativeWindow; NativeWindow::NativeWindow(QMainWindow* mainWin...
26.508475
97
0.734655
razaqq
23c3004cf0c9368068db9a38c09ea79a4e2a8414
1,558
cpp
C++
basic/tree/print_all_ancestors.cpp
sanjosh/smallprogs
8acf7a357080b9154b55565be7c7667db0d4049b
[ "Apache-2.0" ]
7
2017-02-28T06:33:43.000Z
2021-12-17T04:58:19.000Z
basic/tree/print_all_ancestors.cpp
sanjosh/smallprogs
8acf7a357080b9154b55565be7c7667db0d4049b
[ "Apache-2.0" ]
null
null
null
basic/tree/print_all_ancestors.cpp
sanjosh/smallprogs
8acf7a357080b9154b55565be7c7667db0d4049b
[ "Apache-2.0" ]
3
2017-02-28T06:33:30.000Z
2021-02-25T09:42:31.000Z
/* http://en.wikipedia.org/wiki/Level_ancestor_problem Given a Binary Tree and a key, write a function that prints all the ancestors of the key in the given binary tree. For example, if the given tree is following Binary Tree and key is 7, then your function should print 4, 2 and 1. 1 / ...
17.120879
114
0.560334
sanjosh
23c9ace5e859445761efa5495bdc621173051908
20,355
cpp
C++
src/client/vhsm_admin/vhsm_admin.cpp
OSLL/vhsm
a06820919438f11be25df05978dcb679615f5b0b
[ "MIT" ]
8
2015-09-27T01:31:25.000Z
2020-10-29T17:05:12.000Z
src/client/vhsm_admin/vhsm_admin.cpp
OSLL/vhsm
a06820919438f11be25df05978dcb679615f5b0b
[ "MIT" ]
null
null
null
src/client/vhsm_admin/vhsm_admin.cpp
OSLL/vhsm
a06820919438f11be25df05978dcb679615f5b0b
[ "MIT" ]
2
2015-05-20T18:54:14.000Z
2021-11-04T19:40:18.000Z
#include <iostream> #include <fstream> #include <cstring> #include <cstdlib> #include <ctime> #include "vhsm_api_prototype/common.h" #include "vhsm_api_prototype/key_mgmt.h" #include "vhsm_api_prototype/mac.h" #include "vhsm_api_prototype/digest.h" #define BUF_SIZE 4096 #define BUF_TIME_SIZE 256 #define HEL...
34.794872
128
0.552837
OSLL
23cb33ca493b6d2d59fc46ba0968a4adb2718e58
1,922
cpp
C++
584 Bowling.cpp
zihadboss/UVA-Solutions
020fdcb09da79dc0a0411b04026ce3617c09cd27
[ "Apache-2.0" ]
86
2016-01-20T11:36:50.000Z
2022-03-06T19:43:14.000Z
584 Bowling.cpp
Mehedishihab/UVA-Solutions
474fe3d9d9ba574b97fd40ca5abb22ada95654a1
[ "Apache-2.0" ]
null
null
null
584 Bowling.cpp
Mehedishihab/UVA-Solutions
474fe3d9d9ba574b97fd40ca5abb22ada95654a1
[ "Apache-2.0" ]
113
2015-12-04T06:40:57.000Z
2022-02-11T02:14:28.000Z
#include <cstdio> int handle(char current, char previous, char twoPrevious, bool addOwnScore) { int baseScore(0); int score = 0; if (current == 'X') { baseScore = 10; } else if (current == '/') { baseScore = 10 - (previous - '0'); } else { ...
22.091954
78
0.426639
zihadboss
23cd22431b7eedfa78296fb3cadd0a30e4363843
1,071
cpp
C++
dynamic_progrmmaing/coursera_primitive_calculator.cpp
BackAged/100_days_of_problem_solving
2e24efad6d46804c4b31f415dbd69d7b80703a4f
[ "Apache-2.0" ]
3
2020-06-15T10:39:34.000Z
2021-01-17T14:03:37.000Z
dynamic_progrmmaing/coursera_primitive_calculator.cpp
BackAged/100_days_of_problem_solving
2e24efad6d46804c4b31f415dbd69d7b80703a4f
[ "Apache-2.0" ]
null
null
null
dynamic_progrmmaing/coursera_primitive_calculator.cpp
BackAged/100_days_of_problem_solving
2e24efad6d46804c4b31f415dbd69d7b80703a4f
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> using namespace std; int choice[1000000]; int visited[1000000]; int optimal_sequence(int n) { visited[0] = 0; visited[1] = 0; for (int i = 2; i <= n; i++) { int ans = INT32_MAX; int t1 = 1 + visited[i - 1]; if (t1 < ans) { ...
18.789474
40
0.46592
BackAged
23d0fb391b788e8e2f6eee11162b4c14efde0691
4,155
cpp
C++
kernel/system_tree/system_tree_root.cpp
martin-hughes/project_azalea
28aa0183cde350073cf0167df3f51435ea409c8b
[ "MIT" ]
13
2017-12-20T00:02:38.000Z
2022-01-07T11:18:36.000Z
kernel/system_tree/system_tree_root.cpp
martin-hughes/project_azalea
28aa0183cde350073cf0167df3f51435ea409c8b
[ "MIT" ]
21
2016-09-21T16:50:39.000Z
2020-04-12T12:58:19.000Z
kernel/system_tree/system_tree_root.cpp
martin-hughes/project_azalea
28aa0183cde350073cf0167df3f51435ea409c8b
[ "MIT" ]
6
2017-12-20T00:02:27.000Z
2019-03-21T16:28:24.000Z
/// @file /// @brief Implement `system_tree_root`, which handles the very root of the System Tree. #include "klib/klib.h" #include "system_tree/system_tree_root.h" uint32_t system_tree_root::number_of_instances = 0; system_tree_root::system_tree_root() { KL_TRC_ENTRY; ASSERT(system_tree_root::number_of_instance...
24.156977
119
0.681829
martin-hughes
23d20a928719cc1b369db802f3439e83766f11f7
608
cpp
C++
cpp_models/libsrc/RLLib/visualization/RLLibViz/Framebuffer.cpp
akangasr/sdirl
b8b2bf34fea1b1f0c2f9961a9ad9c1ad34396f5b
[ "MIT" ]
null
null
null
cpp_models/libsrc/RLLib/visualization/RLLibViz/Framebuffer.cpp
akangasr/sdirl
b8b2bf34fea1b1f0c2f9961a9ad9c1ad34396f5b
[ "MIT" ]
null
null
null
cpp_models/libsrc/RLLib/visualization/RLLibViz/Framebuffer.cpp
akangasr/sdirl
b8b2bf34fea1b1f0c2f9961a9ad9c1ad34396f5b
[ "MIT" ]
null
null
null
/* * Framebuffer.cpp * * Created on: Oct 12, 2013 * Author: sam */ #include "Framebuffer.h" #include <cassert> using namespace RLLibViz; Framebuffer::Framebuffer() { } Framebuffer::~Framebuffer() { } void Framebuffer::draw(QPainter& painter) { if (points.empty() || points.size() < 1) return; QP...
13.511111
42
0.626645
akangasr
23d438cc7f53933fdb5f6abb578da26c5bf0b5ec
10,552
cpp
C++
src/modules/dvb/dvb.cpp
ivanmurashko/kalinka
58a3f774c414dfc408aa06f560dde455c2271c6b
[ "MIT" ]
null
null
null
src/modules/dvb/dvb.cpp
ivanmurashko/kalinka
58a3f774c414dfc408aa06f560dde455c2271c6b
[ "MIT" ]
null
null
null
src/modules/dvb/dvb.cpp
ivanmurashko/kalinka
58a3f774c414dfc408aa06f560dde455c2271c6b
[ "MIT" ]
null
null
null
/** @file dvb.cpp @brief This file is part of Kalinka mediaserver. @author ipp <[email protected]> Copyright (c) 2007-2012 Kalinka Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
27.479167
74
0.574204
ivanmurashko
23deb62f8d3ee6616e5b5fe1e3f59b55af069ade
2,464
cpp
C++
src/Base/DoubleSpinBox.cpp
roto5296/choreonoid
ffe12df8db71e32aea18833afb80dffc42c373d0
[ "MIT" ]
66
2020-03-11T14:06:01.000Z
2022-03-23T23:18:27.000Z
src/Base/DoubleSpinBox.cpp
roto5296/choreonoid
ffe12df8db71e32aea18833afb80dffc42c373d0
[ "MIT" ]
12
2020-07-23T06:13:11.000Z
2022-01-13T14:25:01.000Z
src/Base/DoubleSpinBox.cpp
roto5296/choreonoid
ffe12df8db71e32aea18833afb80dffc42c373d0
[ "MIT" ]
18
2020-07-17T15:57:54.000Z
2022-03-29T13:18:59.000Z
#include "DoubleSpinBox.h" #include <QKeyEvent> using namespace cnoid; DoubleSpinBox::DoubleSpinBox(QWidget* parent) : QDoubleSpinBox(parent) { setKeyboardTracking(false); isSettingValueInternally = false; isUndoRedoKeyInputEnabled_ = false; valueChangedByLastUserInput = false; } void DoubleSpi...
22.814815
86
0.676948
roto5296
23e60ab5fbae97a04f5642bcb8bc617f26084126
51
cpp
C++
src/LoginInfo.cpp
NoSuchBoyException/QT-PureMVC
cc84e68ddc2666941af6970a4fab364ab74f5190
[ "Apache-2.0" ]
40
2016-06-20T12:22:42.000Z
2022-03-10T03:20:00.000Z
src/LoginInfo.cpp
NoSuchBoyException/PureMVC_QT
cc84e68ddc2666941af6970a4fab364ab74f5190
[ "Apache-2.0" ]
null
null
null
src/LoginInfo.cpp
NoSuchBoyException/PureMVC_QT
cc84e68ddc2666941af6970a4fab364ab74f5190
[ "Apache-2.0" ]
24
2017-01-03T13:18:04.000Z
2022-03-20T01:24:41.000Z
#include "LoginInfo.h" LoginInfo::LoginInfo() { }
8.5
22
0.686275
NoSuchBoyException
23ea38bae9e49e20a987deab48c375b42aa64b46
7,474
cpp
C++
src/bin/balanceHandler.cpp
D7ry/valhallaCombat
07929d29a48401c2878a1ed5993b7bba14743c6f
[ "MIT" ]
1
2022-01-19T07:13:48.000Z
2022-01-19T07:13:48.000Z
src/bin/balanceHandler.cpp
D7ry/valhallaCombat
07929d29a48401c2878a1ed5993b7bba14743c6f
[ "MIT" ]
null
null
null
src/bin/balanceHandler.cpp
D7ry/valhallaCombat
07929d29a48401c2878a1ed5993b7bba14743c6f
[ "MIT" ]
1
2022-01-19T07:13:52.000Z
2022-01-19T07:13:52.000Z
#include "include/balanceHandler.h" #include "include/reactionHandler.h" #include "include/offsets.h" #include "include/Utils.h" inline const float balanceRegenTime = 6;//time it takes for balance to regen, in seconds. void balanceHandler::update() { //DEBUG("update"); /*if (garbageCollectionQueued) { collectGarba...
32.637555
150
0.737624
D7ry
23eae08214ee1ecabf369ec840d1dcb03d36ba1e
1,138
cpp
C++
pbr/Mesh.cpp
chuxu1793/pbr-1
c77d9bcc2c19637ab79382cbef3fc0e2a31b6560
[ "MIT" ]
51
2016-04-03T20:37:57.000Z
2022-03-31T00:38:11.000Z
pbr/Mesh.cpp
chuxu1793/pbr-1
c77d9bcc2c19637ab79382cbef3fc0e2a31b6560
[ "MIT" ]
2
2016-11-14T21:14:10.000Z
2016-11-16T15:01:47.000Z
pbr/Mesh.cpp
chuxu1793/pbr-1
c77d9bcc2c19637ab79382cbef3fc0e2a31b6560
[ "MIT" ]
9
2016-06-02T03:46:23.000Z
2020-10-16T23:30:16.000Z
#include "Mesh.h" #include <glbinding/gl/gl.h> void Mesh::draw() { glBindVertexArray(m_VAO); glDrawElements(GL_TRIANGLES, m_IndicesCount * 3, GL_UNSIGNED_INT, nullptr); glBindVertexArray(0); } void Mesh::initialize(const std::vector<Vertex>& vertices, const std::vector<Triangle>& indices) { m_IndicesCount = indi...
31.611111
107
0.748682
chuxu1793
23eb4c38cc7c876ace8bc06e105f134921e3f8b7
1,130
cpp
C++
src/CursATE/Curses/Field/detail/resizePadded.cpp
qiagen/LogATE
aa43595c89bf3bcaa302d8406e5ad789efc0e035
[ "BSD-2-Clause" ]
null
null
null
src/CursATE/Curses/Field/detail/resizePadded.cpp
qiagen/LogATE
aa43595c89bf3bcaa302d8406e5ad789efc0e035
[ "BSD-2-Clause" ]
null
null
null
src/CursATE/Curses/Field/detail/resizePadded.cpp
qiagen/LogATE
aa43595c89bf3bcaa302d8406e5ad789efc0e035
[ "BSD-2-Clause" ]
3
2021-01-12T18:52:49.000Z
2021-01-19T17:48:50.000Z
#include "CursATE/Curses/Field/detail/resizePadded.hpp" #include <But/assert.hpp> namespace CursATE::Curses::Field::detail { VisibleSize resizePaddedVisibleSize(std::string const& in, size_t maxSize, size_t selectedElement) { if( in.size() <= maxSize ) return {0, selectedElement, in.size()}; if( selectedEleme...
29.736842
118
0.685841
qiagen
6710cae5db7291a10684008a748246fc5eeec215
1,483
cpp
C++
Pearly/src/Pearly/Math/Math.cpp
JumpyLionnn/Pearly
2dce5f54144980cecd998a325422e56bff6c4c83
[ "Apache-2.0" ]
null
null
null
Pearly/src/Pearly/Math/Math.cpp
JumpyLionnn/Pearly
2dce5f54144980cecd998a325422e56bff6c4c83
[ "Apache-2.0" ]
null
null
null
Pearly/src/Pearly/Math/Math.cpp
JumpyLionnn/Pearly
2dce5f54144980cecd998a325422e56bff6c4c83
[ "Apache-2.0" ]
null
null
null
#include "prpch.h" #include "Math.h" namespace Pearly { bool Math::DecomposeTransform(const glm::mat4& transform, glm::vec3& position, float& rotation, glm::vec2& scale) { glm::mat4 localMatrix(transform); // Normalize the matrix. if (glm::epsilonEqual(localMatrix[3][3], static_cast<float>(0), glm::epsilon<fl...
32.23913
114
0.646662
JumpyLionnn
6711ec4603bd0025df95902abfec0d44315c7bae
2,149
cc
C++
device/device_rom.cc
CompaqDisc/zippy
e8c3b67ea59adbbdf9881e1bc34f0eab0eab6abe
[ "MIT" ]
null
null
null
device/device_rom.cc
CompaqDisc/zippy
e8c3b67ea59adbbdf9881e1bc34f0eab0eab6abe
[ "MIT" ]
null
null
null
device/device_rom.cc
CompaqDisc/zippy
e8c3b67ea59adbbdf9881e1bc34f0eab0eab6abe
[ "MIT" ]
null
null
null
#include "device_rom.h" #include <iostream> #include <fstream> #include <string> #include <cerrno> DeviceROM::DeviceROM(uint16_t address_start, size_t region_length) { address_start_ = address_start; region_length_ = region_length; buffer_contents_ = (uint8_t*) malloc(region_length_ * sizeof(uint8_t)); } DeviceR...
23.615385
83
0.676128
CompaqDisc
671579f43f756cf8cdfde950e4ef720c4f5b80c4
1,197
cpp
C++
cxx/test/test_binheap.cpp
EQt/graphidx
9716488cf29f6235072fc920fa1a473bf88e954f
[ "MIT" ]
4
2020-04-03T15:18:30.000Z
2022-01-06T15:22:48.000Z
cxx/test/test_binheap.cpp
EQt/graphidx
9716488cf29f6235072fc920fa1a473bf88e954f
[ "MIT" ]
null
null
null
cxx/test/test_binheap.cpp
EQt/graphidx
9716488cf29f6235072fc920fa1a473bf88e954f
[ "MIT" ]
null
null
null
#include <doctest/doctest.h> #include <graphidx/heap/binheap.hpp> #include <graphidx/heap/quadheap.hpp> TEST_CASE_TEMPLATE_DEFINE("heap basic", Heap, test_heap_basics) { constexpr size_t N = 6; Heap h(N); REQUIRE(h.empty()); REQUIRE_EQ(h.size(), 0); for (size_t i = 0; i < N; i++) { REQUIR...
22.166667
80
0.578112
EQt
671afcda2345039279bc47492c4f1a66cbd14d83
328
cpp
C++
Zerojudge/d111.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
9
2017-10-08T16:22:03.000Z
2021-08-20T09:32:17.000Z
Zerojudge/d111.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
null
null
null
Zerojudge/d111.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
2
2018-01-15T16:35:44.000Z
2019-03-21T18:30:04.000Z
#include <iostream> #include <vector> #include <cmath> using namespace std; int main() { long long int n; while(cin >> n) { if(n==0)break; long long int t=sqrt(n); if(t*t==n) cout<<"yes"<<endl; else cout<<"no"<<endl; } retur...
15.619048
33
0.45122
w181496
671b8a4c8d8a666826e1265b4102ce0f9a0e1f3b
2,268
hpp
C++
include/P2P.hpp
Sygmei/IsenCoin
91668cf056704da950a6c1f55e7a5b573b685ca7
[ "MIT" ]
7
2018-05-31T14:16:48.000Z
2022-02-24T18:54:06.000Z
include/P2P.hpp
Sygmei/IsenCoin
91668cf056704da950a6c1f55e7a5b573b685ca7
[ "MIT" ]
null
null
null
include/P2P.hpp
Sygmei/IsenCoin
91668cf056704da950a6c1f55e7a5b573b685ca7
[ "MIT" ]
null
null
null
#pragma once #include <Logger.hpp> #include <functional> #include <optional> #include <msgpack11/msgpack11.hpp> #include <tacopie/network/tcp_socket.hpp> #include "base58/base58.hpp" namespace tacopie { int init(); void close(); } namespace ic::p2p { namespace mp = msgpack11; std::string msgpack_ty...
36
95
0.679894
Sygmei
671c60ceccc5a70d03b40fce21ce4617c071e989
1,420
cpp
C++
compiler/angkor/src/ADT/tensor/LexicalLayout.cpp
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
255
2020-05-22T07:45:29.000Z
2022-03-29T23:58:22.000Z
compiler/angkor/src/ADT/tensor/LexicalLayout.cpp
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
5,102
2020-05-22T07:48:33.000Z
2022-03-31T23:43:39.000Z
compiler/angkor/src/ADT/tensor/LexicalLayout.cpp
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
120
2020-05-22T07:51:08.000Z
2022-02-16T19:08:05.000Z
/* * Copyright (c) 2018 Samsung Electronics Co., Ltd. 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...
23.278689
75
0.705634
periannath
671ca6f6fe06b1edc73fc3aaed7937d9f7a7399a
543
cpp
C++
TAO/tao/Storable_Factory.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
36
2015-01-10T07:27:33.000Z
2022-03-07T03:32:08.000Z
TAO/tao/Storable_Factory.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
2
2018-08-13T07:30:51.000Z
2019-02-25T03:04:31.000Z
TAO/tao/Storable_Factory.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
38
2015-01-08T14:12:06.000Z
2022-01-19T08:33:00.000Z
// -*- C++ -*- //============================================================================= /** * @file Storable_Factory.cpp * * $Id: Storable_Factory.cpp 96760 2013-02-05 21:11:03Z stanleyk $ * * @author Byron Harris <[email protected]> */ //=================================================================...
20.884615
79
0.510129
cflowe
671fb22bf156d02ccdb16b73138f40f99f753d9b
1,042
cpp
C++
course1/laba4/L_pairosochetatie_max_weight/main.cpp
flydzen/ITMO_algo
ea251dca0fddb0d4d212377c6785cdc3667ece89
[ "MIT" ]
null
null
null
course1/laba4/L_pairosochetatie_max_weight/main.cpp
flydzen/ITMO_algo
ea251dca0fddb0d4d212377c6785cdc3667ece89
[ "MIT" ]
null
null
null
course1/laba4/L_pairosochetatie_max_weight/main.cpp
flydzen/ITMO_algo
ea251dca0fddb0d4d212377c6785cdc3667ece89
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <fstream> using namespace std; vector<vector<pair<int, int>>> ss; vector<long long> a; vector<long long> b; vector<long long> c; void discrete_finger_simulation(int i, int from) { for (pair<int, int> p : ss[i]) { if (p.first == from) continue; ...
24.809524
69
0.52975
flydzen
6720bd6af8045487c67d1df89445c5c7e2a4de00
819
cpp
C++
elf/strlen/jni/test_strlen.cpp
martinkro/doc-2017
6c8121b72786b7a2563a00dad78e481186643cd7
[ "MIT" ]
null
null
null
elf/strlen/jni/test_strlen.cpp
martinkro/doc-2017
6c8121b72786b7a2563a00dad78e481186643cd7
[ "MIT" ]
null
null
null
elf/strlen/jni/test_strlen.cpp
martinkro/doc-2017
6c8121b72786b7a2563a00dad78e481186643cd7
[ "MIT" ]
null
null
null
#include <jni.h> #include <string.h> #include <stdio.h> typedef int (*strlen_fun)(const char *); strlen_fun global_strlen1 = (strlen_fun)strlen; strlen_fun global_strlen2 = (strlen_fun)strlen; #define SHOW(x) printf("%s is %d", #x, x) jint Java_com_example_allhookinone_HookUtils_elfhook(JNIEnv* env,jobject...
25.59375
79
0.637363
martinkro
67218a76893c678f78f19e84b5a049d78bc74795
6,944
cc
C++
physicalrobots/player/examples/libplayerc++/goto.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
physicalrobots/player/examples/libplayerc++/goto.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
physicalrobots/player/examples/libplayerc++/goto.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2005, Brad Kratochvil, Toby Collett, Brian Gerkey, Andrew Howard, ... 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 copyrigh...
25.068592
83
0.618952
parasol-ppl
67230243b18fae2b57fa419b50760d3f68cd775c
1,943
cpp
C++
base/crts/crtw32/misc/dbgdel.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/crts/crtw32/misc/dbgdel.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/crts/crtw32/misc/dbgdel.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*** *dbgnew.cpp - defines C++ scalar delete routine, debug version * * Copyright (c) 1995-2001, Microsoft Corporation. All rights reserved. * *Purpose: * Defines C++ scalar delete() routine. * *Revision History: * 12-28-95 JWM Split from dbgnew.cpp for granularity. * 05-22-98 JWM...
26.616438
81
0.519815
npocmaka
6725b0780abb7d9c0419b517fcf07d347c0c3a45
1,771
hpp
C++
asteria/src/reference.hpp
MaskRay/asteria
56a9251f5bb80b92e5aff25eac145f8cd2495096
[ "BSD-3-Clause" ]
null
null
null
asteria/src/reference.hpp
MaskRay/asteria
56a9251f5bb80b92e5aff25eac145f8cd2495096
[ "BSD-3-Clause" ]
null
null
null
asteria/src/reference.hpp
MaskRay/asteria
56a9251f5bb80b92e5aff25eac145f8cd2495096
[ "BSD-3-Clause" ]
null
null
null
// This file is part of Asteria. // Copyleft 2018, LH_Mouse. All wrongs reserved. #ifndef ASTERIA_REFERENCE_HPP_ #define ASTERIA_REFERENCE_HPP_ #include "fwd.hpp" #include "reference_root.hpp" #include "reference_modifier.hpp" namespace Asteria { class Reference { private: Reference_root m_root; Vector<...
26.432836
132
0.671937
MaskRay
672705ff65970239683ce82be68db76924118ba7
1,160
cpp
C++
search_algorithms/coding_problems/search_sorted_rotated.cpp
sky-lynx/Algorithms
95592a73dcd1dc04be7df3ce3157e63230fac27b
[ "MIT" ]
null
null
null
search_algorithms/coding_problems/search_sorted_rotated.cpp
sky-lynx/Algorithms
95592a73dcd1dc04be7df3ce3157e63230fac27b
[ "MIT" ]
null
null
null
search_algorithms/coding_problems/search_sorted_rotated.cpp
sky-lynx/Algorithms
95592a73dcd1dc04be7df3ce3157e63230fac27b
[ "MIT" ]
null
null
null
// searches an element in an array which is sorted and then rotated #include <iostream> using namespace std; int binary_search(int* arr, int l, int r, int key) { int m; while(l != r) { m = (l + r) / 2; if(arr[m] == key) return m; else if(arr[m] > key) r = m - 1; else l = m + 1...
17.575758
67
0.551724
sky-lynx
672b1c0d09b5b2ffa2f2bddaf4536ef544fc227b
2,516
cpp
C++
kernel/main.cpp
ethan4984/rock
751b9af1009b622bedf384c1f80970b333c436c3
[ "BSD-2-Clause" ]
207
2020-05-27T21:57:28.000Z
2022-02-26T15:17:27.000Z
kernel/main.cpp
ethan4984/crepOS
751b9af1009b622bedf384c1f80970b333c436c3
[ "BSD-2-Clause" ]
3
2020-07-26T18:14:05.000Z
2020-12-09T05:32:07.000Z
kernel/main.cpp
ethan4984/rock
751b9af1009b622bedf384c1f80970b333c436c3
[ "BSD-2-Clause" ]
17
2020-07-05T19:08:48.000Z
2021-10-13T12:30:13.000Z
#include <mm/vmm.hpp> #include <mm/pmm.hpp> #include <mm/slab.hpp> #include <int/idt.hpp> #include <int/gdt.hpp> #include <int/apic.hpp> #include <fs/dev.hpp> #include <fs/vfs.hpp> #include <fs/fd.hpp> #include <drivers/hpet.hpp> #include <drivers/tty.hpp> #include <drivers/pci.hpp> #include <sched/smp.hpp> #includ...
22.666667
82
0.589825
ethan4984
6731e47e88a5f57bc5899ec39faf39129f015d54
154
cpp
C++
fastbuild-v1.02/Code/Tools/FBuild/FBuildTest/Data/TestObject/SourceMapping/File.cpp
jj4jj/TurboBuildUE4
497f0944c8d04d70e3656a34c145d21f431366a5
[ "MIT" ]
11
2020-08-28T02:11:22.000Z
2021-09-11T11:29:53.000Z
fastbuild-v1.02/Code/Tools/FBuild/FBuildTest/Data/TestObject/SourceMapping/File.cpp
jj4jj/TurboBuildUE4
497f0944c8d04d70e3656a34c145d21f431366a5
[ "MIT" ]
1
2020-11-23T13:35:00.000Z
2020-11-23T13:35:00.000Z
fastbuild-v1.02/Code/Tools/FBuild/FBuildTest/Data/TestObject/SourceMapping/File.cpp
jj4jj/TurboBuildUE4
497f0944c8d04d70e3656a34c145d21f431366a5
[ "MIT" ]
5
2020-10-22T11:16:11.000Z
2021-04-01T10:20:09.000Z
const char * Function() { // .obj file will contain filename, surrounded by these tokens return "FILE_MACRO_START(" __FILE__ ")FILE_MACRO_END"; }
25.666667
66
0.714286
jj4jj
6734e3cce0853a205bac21e8fbc28cf2dd7466a9
4,588
hpp
C++
src/core/NEON/kernels/arm_gemm/gemm_implementation.hpp
elenita1221/ComputeLibrary
3d2d44ef55ab6b08afda8be48301ce3c55c7bc67
[ "MIT" ]
2
2020-07-25T20:27:14.000Z
2021-08-22T17:20:59.000Z
src/core/NEON/kernels/arm_gemm/gemm_implementation.hpp
elenita1221/ComputeLibrary
3d2d44ef55ab6b08afda8be48301ce3c55c7bc67
[ "MIT" ]
null
null
null
src/core/NEON/kernels/arm_gemm/gemm_implementation.hpp
elenita1221/ComputeLibrary
3d2d44ef55ab6b08afda8be48301ce3c55c7bc67
[ "MIT" ]
1
2021-08-22T17:09:09.000Z
2021-08-22T17:09:09.000Z
/* * Copyright (c) 2018 ARM Limited. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights ...
34.757576
108
0.700523
elenita1221
6736e6775cf4db401229a62885c84877683c0d0b
2,498
cpp
C++
Jan-3/src/ofApp.cpp
Lywa/Genuary
865ef0515eb986a175c565faa1fa56529a70f599
[ "MIT" ]
1
2022-01-06T09:34:03.000Z
2022-01-06T09:34:03.000Z
Jan-3/src/ofApp.cpp
Lywa/Genuary
865ef0515eb986a175c565faa1fa56529a70f599
[ "MIT" ]
null
null
null
Jan-3/src/ofApp.cpp
Lywa/Genuary
865ef0515eb986a175c565faa1fa56529a70f599
[ "MIT" ]
1
2022-01-06T09:34:04.000Z
2022-01-06T09:34:04.000Z
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ smileys.load("images/face_tiny.png"); smileysIcon.load("images/smileys_q.png"); smileysIcon.setImageType(OF_IMAGE_GRAYSCALE); } //-------------------------------------------------------------- vo...
23.790476
64
0.367894
Lywa
6737d72ca34672087a62f5cb6b3721a688c9b01d
798
cc
C++
P1945.cc
daily-boj/kiwiyou
ceca96ddfee95708871af67d1682048e0bed0257
[ "Unlicense" ]
6
2020-04-08T09:04:57.000Z
2021-11-16T07:30:24.000Z
P1945.cc
daily-boj/kiwiyou
ceca96ddfee95708871af67d1682048e0bed0257
[ "Unlicense" ]
null
null
null
P1945.cc
daily-boj/kiwiyou
ceca96ddfee95708871af67d1682048e0bed0257
[ "Unlicense" ]
2
2020-04-16T05:32:06.000Z
2020-05-28T13:40:56.000Z
#include <bits/stdc++.h> using namespace std; struct Frac { long long u, d; bool operator<(const Frac& x) const { return u * x.d < d * x.u; } }; int main() { cin.tie(0)->sync_with_stdio(0); int n; cin >> n; vector<pair<Frac, bool>> segs; segs.reserve(n * 2); for (int i = 0; i...
26.6
67
0.518797
daily-boj
673d4e691c78287353086652ae0a2ba79d09840e
2,247
cpp
C++
src/animation_widget.cpp
CourrierGui/plotcpp
00b5a94e4c9804cbc441a0bcede67f70cef08a0c
[ "MIT" ]
null
null
null
src/animation_widget.cpp
CourrierGui/plotcpp
00b5a94e4c9804cbc441a0bcede67f70cef08a0c
[ "MIT" ]
null
null
null
src/animation_widget.cpp
CourrierGui/plotcpp
00b5a94e4c9804cbc441a0bcede67f70cef08a0c
[ "MIT" ]
null
null
null
#include <animation_widget.hpp> #include <plotwidget.hpp> #include <iostream> #include <QElapsedTimer> #include <QTimer> namespace pcpp { AnimationWidget::AnimationWidget( int rows, int cols, QWidget* parent) : _plot{rows, cols, parent}, _actions{}, _continue{true}, _qtime{new QElapsedTimer} { ...
25.827586
78
0.503783
CourrierGui
673f96702ef633f29305647846c1175b933abcae
7,963
cpp
C++
cpp/opendnp3/src/opendnp3/master/Master.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
null
null
null
cpp/opendnp3/src/opendnp3/master/Master.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
null
null
null
cpp/opendnp3/src/opendnp3/master/Master.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
3
2016-07-13T18:54:13.000Z
2021-04-12T13:30:39.000Z
/** * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or * more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Green Energy Corp licenses this file to you under the Apache License, * Version 2.0 (the "Li...
27.364261
188
0.771317
tarm
67441b108ccb6440a5e7333e0263e018224a5db1
6,086
cpp
C++
Sankore-3.1/src/domain/UBGraphicsEllipseItem.cpp
eaglezzb/rsdc
cce881f6542ff206bf286cf798c8ec8da3b51d50
[ "MIT" ]
null
null
null
Sankore-3.1/src/domain/UBGraphicsEllipseItem.cpp
eaglezzb/rsdc
cce881f6542ff206bf286cf798c8ec8da3b51d50
[ "MIT" ]
null
null
null
Sankore-3.1/src/domain/UBGraphicsEllipseItem.cpp
eaglezzb/rsdc
cce881f6542ff206bf286cf798c8ec8da3b51d50
[ "MIT" ]
null
null
null
/* * Copyright (C) 2010-2013 Groupement d'Intérêt Public pour l'Education Numérique en Afrique (GIP ENA) * * This file is part of Open-Sankoré. * * Open-Sankoré 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 Found...
25.464435
119
0.651002
eaglezzb
674773b616afc8e7d9f9b0fb29de3211aa0096cc
19,627
cpp
C++
TransferLogManager.cpp
agomez0207/wdt
d85fd11b14ae835e88cfffe970284fcf42866b18
[ "BSD-3-Clause" ]
1
2020-07-19T21:21:11.000Z
2020-07-19T21:21:11.000Z
TransferLogManager.cpp
agomez0207/wdt
d85fd11b14ae835e88cfffe970284fcf42866b18
[ "BSD-3-Clause" ]
null
null
null
TransferLogManager.cpp
agomez0207/wdt
d85fd11b14ae835e88cfffe970284fcf42866b18
[ "BSD-3-Clause" ]
null
null
null
/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "T...
32.657238
80
0.590972
agomez0207
6747f49a6dc5ecbcf0091a7a9277dedd1823e63a
929
cpp
C++
platforms/gfg/0097_diagonal_traversal_of_binary_tree.cpp
idfumg/algorithms
06f85c5a1d07a965df44219b5a6bf0d43a129256
[ "MIT" ]
2
2020-09-17T09:04:00.000Z
2020-11-20T19:43:18.000Z
platforms/gfg/0097_diagonal_traversal_of_binary_tree.cpp
idfumg/algorithms
06f85c5a1d07a965df44219b5a6bf0d43a129256
[ "MIT" ]
null
null
null
platforms/gfg/0097_diagonal_traversal_of_binary_tree.cpp
idfumg/algorithms
06f85c5a1d07a965df44219b5a6bf0d43a129256
[ "MIT" ]
null
null
null
#include "../../template.hpp" ostream& operator<<(ostream& os, Node* root) { print_inorder(root); return os; } void preorder(Node* root, map<int, vi>& tab, int diagonal) { if (not root) return; tab[diagonal].push_back(root->value); preorder(root->left, tab, diagonal + 1); preorder(root->right, tab, di...
24.447368
80
0.595264
idfumg
6748cabbd113ed004698fdb04af485f3e4f6acf6
2,186
cpp
C++
src/status.cpp
Nakeib/RonClient
9e816c580ec2a6f1b15fdefd8e15ad62647ca29f
[ "MIT" ]
11
2020-11-07T19:35:24.000Z
2021-08-19T12:25:27.000Z
src/status.cpp
Nakeib/RonClient
9e816c580ec2a6f1b15fdefd8e15ad62647ca29f
[ "MIT" ]
null
null
null
src/status.cpp
Nakeib/RonClient
9e816c580ec2a6f1b15fdefd8e15ad62647ca29f
[ "MIT" ]
5
2020-11-06T20:52:11.000Z
2021-02-25T11:02:31.000Z
/* -------------------------------------------------------------------------- */ /* ------------- RonClient --- Oficial client for RonOTS servers ------------ */ /* -------------------------------------------------------------------------- */ #include "status.h" #include "allocator.h" #include "icons.h" #include "win...
23.505376
80
0.618939
Nakeib
674a7eb21be0415058f79fdae32ac00ef058376d
1,664
hpp
C++
Router/Data/Route_Stop_Data.hpp
kravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
2
2018-04-27T11:07:02.000Z
2020-04-24T06:53:21.000Z
Router/Data/Route_Stop_Data.hpp
idkravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
null
null
null
Router/Data/Route_Stop_Data.hpp
idkravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
null
null
null
//********************************************************* // Route_Stop_Data.hpp - transit route stop data classes //********************************************************* #ifndef ROUTE_STOP_DATA_HPP #define ROUTE_STOP_DATA_HPP #include "Data_Array.hpp" //--------------------------------------------------------...
30.814815
100
0.497596
kravitz
674cc6352b2fd0e6c122e527457aa0a2f14c39da
138
hpp
C++
externals/numeric_bindings/libs/numeric/bindings/tools/templates/driver/stev.hpp
ljktest/siconos
85b60e62beca46e6bf06bfbd65670089e86607c7
[ "Apache-2.0" ]
137
2015-06-16T15:55:28.000Z
2022-03-26T06:01:59.000Z
externals/numeric_bindings/libs/numeric/bindings/tools/templates/driver/stev.hpp
ljktest/siconos
85b60e62beca46e6bf06bfbd65670089e86607c7
[ "Apache-2.0" ]
381
2015-09-22T15:31:08.000Z
2022-02-14T09:05:23.000Z
externals/numeric_bindings/libs/numeric/bindings/tools/templates/driver/stev.hpp
ljktest/siconos
85b60e62beca46e6bf06bfbd65670089e86607c7
[ "Apache-2.0" ]
30
2015-08-06T22:57:51.000Z
2022-03-02T20:30:20.000Z
$TEMPLATE[stev.real.min_size_work.args] N $TEMPLATE[stev.real.min_size_work] return std::max< $INTEGER_TYPE >( 1, 2*n-2 ); $TEMPLATE[end]
23
45
0.73913
ljktest
6750116edd11d113a2610814ba8adbaca4bcf5b5
4,518
cpp
C++
src/main.cpp
scaryrawr/tofi
15b3757c4d492d5bbc7f57aef94f582549d2bef3
[ "MIT" ]
1
2020-08-03T18:57:01.000Z
2020-08-03T18:57:01.000Z
src/main.cpp
scaryrawr/tofi
15b3757c4d492d5bbc7f57aef94f582549d2bef3
[ "MIT" ]
1
2021-03-07T21:32:10.000Z
2021-03-08T13:56:10.000Z
src/main.cpp
scaryrawr/tofi
15b3757c4d492d5bbc7f57aef94f582549d2bef3
[ "MIT" ]
null
null
null
#include <TofiConfig.h> #include "tofi.h" #include "modes/dmenu.h" #ifdef GIOMM_FOUND #include "modes/drun.h" #endif #ifdef I3IPC_FOUND #include "modes/i3wm.h" #endif #ifdef GTKMM_FOUND #include "modes/recent.h" #endif #include "modes/run.h" #include "modes/script.h" #include <getopt.h> #include <ftxui/component/s...
22.366337
155
0.634794
scaryrawr
67510af1134b5530b703475985ce9f9b695fc754
3,147
cpp
C++
SceneServer/SSBattleMgr/SSProfileStatics.cpp
tsymiar/----
90e21cbfe7b3bc730c998e9f5ef87aa3581e357a
[ "Unlicense" ]
6
2019-07-15T23:55:15.000Z
2020-09-07T15:07:54.000Z
SceneServer/SSBattleMgr/SSProfileStatics.cpp
j1527156/BattleServer
68c9146bf35e93dfd5a175b46e9761ee3c7c0d04
[ "Unlicense" ]
null
null
null
SceneServer/SSBattleMgr/SSProfileStatics.cpp
j1527156/BattleServer
68c9146bf35e93dfd5a175b46e9761ee3c7c0d04
[ "Unlicense" ]
7
2019-07-15T23:55:24.000Z
2021-08-10T07:49:05.000Z
#include "StdAfx.h" #include "SSProfileStatics.h" #include <iostream> #include <fstream> #include "SSWorkThreadMgr.h" #include <iomanip> namespace SceneServer{ CSSProfileStatics::CSSProfileStatics(void):m_LastMsgShow(0) { } CSSProfileStatics::~CSSProfileStatics(void) { } void CSSProfileStatics::Begin(StaticsType ...
24.779528
148
0.71306
tsymiar
675e2a110fefc2b8916753461909761463c1ded6
1,108
cpp
C++
Graph/Dijkstra.cpp
XitizVerma/Data-Structures-and-Algorithms-Advanced
610225eeb7e0b4ade229ec86355901ad1ca38784
[ "MIT" ]
1
2020-08-27T06:59:52.000Z
2020-08-27T06:59:52.000Z
Graph/Dijkstra.cpp
XitizVerma/Data-Structures-and-Algorithms-Advanced
610225eeb7e0b4ade229ec86355901ad1ca38784
[ "MIT" ]
null
null
null
Graph/Dijkstra.cpp
XitizVerma/Data-Structures-and-Algorithms-Advanced
610225eeb7e0b4ade229ec86355901ad1ca38784
[ "MIT" ]
null
null
null
//author : Avishkar A. Hande #include<bits/stdc++.h> #define ll long long using namespace std; const int maxS = 1e5+10; vector<pair<ll, ll>> adj[maxS]; // represents adjacency list to store weight and destination node as a pair vector<ll> dist(maxS, 1e9); // distance array initialised assuming 1e9 as infinity void ...
25.767442
107
0.635379
XitizVerma
67635a72614c96245d14753a30f9db84a551520f
2,788
cpp
C++
src/robotican_demos_upgrade/src/depth_to_base_foot.cpp
aosbgu/ROSPlan-ExperimentPDDL
09de0ba980362606dd1269c6689cb59d6f8776c6
[ "MIT" ]
null
null
null
src/robotican_demos_upgrade/src/depth_to_base_foot.cpp
aosbgu/ROSPlan-ExperimentPDDL
09de0ba980362606dd1269c6689cb59d6f8776c6
[ "MIT" ]
null
null
null
src/robotican_demos_upgrade/src/depth_to_base_foot.cpp
aosbgu/ROSPlan-ExperimentPDDL
09de0ba980362606dd1269c6689cb59d6f8776c6
[ "MIT" ]
null
null
null
#include "ros/ros.h" #include "tf/message_filter.h" #include "message_filters/subscriber.h" #include <ar_track_alvar_msgs/AlvarMarkers.h> tf::TransformListener *listener_ptr; int object_id = 1; ros::Publisher object_pub; ros::Publisher object_pub1; void obj_msgCallback(const boost::shared_ptr<const geometry_msgs:...
30.637363
145
0.707317
aosbgu
676c451ada470463a8f272b17b02d6618daac4cb
29,791
cpp
C++
fitp/pan/link_layer/link.cpp
BeeeOn/fitplib
71f8ab7ca2a35d97a9f56a9c8aac3b25fde0cb9f
[ "BSD-3-Clause" ]
null
null
null
fitp/pan/link_layer/link.cpp
BeeeOn/fitplib
71f8ab7ca2a35d97a9f56a9c8aac3b25fde0cb9f
[ "BSD-3-Clause" ]
null
null
null
fitp/pan/link_layer/link.cpp
BeeeOn/fitplib
71f8ab7ca2a35d97a9f56a9c8aac3b25fde0cb9f
[ "BSD-3-Clause" ]
null
null
null
/** * @file link.cc */ #include "common/phy_layer/phy.h" #include "pan/link_layer/link.h" #include <stdio.h> #include "common/log/log.h" /*! bit mask of data transfer from coordinator to end device */ #define LINK_COORD_TO_ED 0x20 /*! bit mask of data transfer from end device to coordinator */ #define LINK_ED_TO_...
34.007991
132
0.669934
BeeeOn
677683951ea683a30b3a06aa27a6d6031be6b75e
77,473
cpp
C++
source/game/gamesys/SysCvar.cpp
JasonHutton/QWTA
7f42dc70eb230cf69a8048fc98d647a486e752f1
[ "MIT" ]
2
2021-05-02T18:37:48.000Z
2021-07-18T16:18:14.000Z
source/game/gamesys/SysCvar.cpp
JasonHutton/QWTA
7f42dc70eb230cf69a8048fc98d647a486e752f1
[ "MIT" ]
null
null
null
source/game/gamesys/SysCvar.cpp
JasonHutton/QWTA
7f42dc70eb230cf69a8048fc98d647a486e752f1
[ "MIT" ]
null
null
null
// Copyright (C) 2007 Id Software, Inc. // #include "../precompiled.h" #pragma hdrstop #if defined( _DEBUG ) && !defined( ID_REDIRECT_NEWDELETE ) #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #include "../../framework/BuildVersion.h" #include "../../framework/BuildDef...
116.325826
337
0.722832
JasonHutton
677f46fc06e7d13606731f6f380c3030e3e2c04e
4,986
cpp
C++
Server/GameServer/SealHandler.cpp
APistole/KnightOnline
80268e2fa971389a3e94c430966a7943c2631dbf
[ "MIT" ]
191
2016-03-05T16:44:15.000Z
2022-03-09T00:52:31.000Z
Server/GameServer/SealHandler.cpp
APistole/KnightOnline
80268e2fa971389a3e94c430966a7943c2631dbf
[ "MIT" ]
128
2016-08-31T04:09:06.000Z
2022-01-14T13:42:56.000Z
Server/GameServer/SealHandler.cpp
APistole/KnightOnline
80268e2fa971389a3e94c430966a7943c2631dbf
[ "MIT" ]
165
2016-03-05T16:43:59.000Z
2022-01-22T00:52:25.000Z
#include "stdafx.h" using std::string; #define ITEM_SEAL_PRICE 1000000 enum { SEAL_TYPE_SEAL = 1, SEAL_TYPE_UNSEAL = 2, SEAL_TYPE_KROWAZ = 3 }; enum SealErrorCodes { SealErrorNone = 0, // no error, success! SealErrorFailed = 2, // "Seal Failed." SealErrorNeedCoins = 3, // "Not enough coins." SealErrorI...
27.546961
98
0.676093
APistole
677f4c58a0957dd00800731a89c97b4a7d44ce20
13,771
cpp
C++
vs2017/screenshot/GeneratedFiles/moc_FullScreenWidget.cpp
cheechang/cppcc
0292e9a9b27e0579970c83b4f6a75dcdae1558bf
[ "MIT" ]
null
null
null
vs2017/screenshot/GeneratedFiles/moc_FullScreenWidget.cpp
cheechang/cppcc
0292e9a9b27e0579970c83b4f6a75dcdae1558bf
[ "MIT" ]
null
null
null
vs2017/screenshot/GeneratedFiles/moc_FullScreenWidget.cpp
cheechang/cppcc
0292e9a9b27e0579970c83b4f6a75dcdae1558bf
[ "MIT" ]
null
null
null
/**************************************************************************** ** Meta object code from reading C++ file 'FullScreenWidget.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.1) ** ** WARNING! All changes made in this file will be lost! ***************************************************...
38.90113
239
0.609469
cheechang
67800f90ec79ad1afddbd9c4cf721fc8a405b323
752
hpp
C++
src/math/mat2.hpp
simonfxr/gl
11705f718d27657fc76243d59a251f49c0a41486
[ "MIT" ]
null
null
null
src/math/mat2.hpp
simonfxr/gl
11705f718d27657fc76243d59a251f49c0a41486
[ "MIT" ]
null
null
null
src/math/mat2.hpp
simonfxr/gl
11705f718d27657fc76243d59a251f49c0a41486
[ "MIT" ]
null
null
null
#ifndef MATH_MAT2_HPP #define MATH_MAT2_HPP #include "math/genmat.hpp" namespace math { using mat2_t = genmat<real, 2>; constexpr mat2_t mat2() { return mat2_t::identity(); } constexpr mat2_t mat2(real x) { return mat2_t::fill(x); } template<typename T> constexpr mat2_t mat2(const genmat<T, 2> &A) { r...
13.925926
58
0.62367
simonfxr
6783defb9c837966b097ecad6ae9876a83d5ce20
43,237
hpp
C++
task-movement/Koala/container/assoctab.hpp
miloszc/task-movement
26b40595b590b0fcc3c226fbe8576faa3b5c1244
[ "MIT" ]
null
null
null
task-movement/Koala/container/assoctab.hpp
miloszc/task-movement
26b40595b590b0fcc3c226fbe8576faa3b5c1244
[ "MIT" ]
19
2019-02-15T09:04:22.000Z
2020-06-23T21:42:29.000Z
task-movement/Koala/container/assoctab.hpp
miloszc/task-movement
26b40595b590b0fcc3c226fbe8576faa3b5c1244
[ "MIT" ]
1
2019-05-04T16:12:25.000Z
2019-05-04T16:12:25.000Z
// AssocTabConstInterface template< class K, class V > V AssocTabConstInterface< std::map< K,V > >::operator[]( K arg ) const { koalaAssert( !Privates::ZeroAssocKey<K>::isZero(arg),ContExcOutpass ); typename std::map< K,V >::const_iterator i; i = cont.find( arg ); if (i == cont.end()) return V(); else return i->...
35.009717
164
0.660568
miloszc
6787d8c779a3ba6a702a7af7db4f78c9d5b97891
8,821
cxx
C++
Hybrid/Testing/Cxx/TestKWEGPUArrayCalculator.cxx
wuzhuobin/vtkEdge
ed13af68a72cec79e3645f7e842d6074592abfa2
[ "BSD-3-Clause" ]
1
2021-01-09T16:06:14.000Z
2021-01-09T16:06:14.000Z
Hybrid/Testing/Cxx/TestKWEGPUArrayCalculator.cxx
wuzhuobin/vtkEdge
ed13af68a72cec79e3645f7e842d6074592abfa2
[ "BSD-3-Clause" ]
null
null
null
Hybrid/Testing/Cxx/TestKWEGPUArrayCalculator.cxx
wuzhuobin/vtkEdge
ed13af68a72cec79e3645f7e842d6074592abfa2
[ "BSD-3-Clause" ]
null
null
null
//============================================================================= // This file is part of VTKEdge. See vtkedge.org for more information. // // Copyright (c) 2010 Kitware, Inc. // // VTKEdge may be used under the terms of the BSD License // Please see the file Copyright.txt in the root directory of...
33.796935
117
0.677247
wuzhuobin
6787f8c55a86572359a8d1c112817aa47613cec8
4,365
hpp
C++
src/items/SpatialItem.hpp
maltewi/envire-envire_core
549b64ed30ba8afc4d91ae67b216a78b40cee016
[ "BSD-2-Clause" ]
9
2017-05-13T12:33:46.000Z
2021-01-27T18:50:40.000Z
src/items/SpatialItem.hpp
maltewi/envire-envire_core
549b64ed30ba8afc4d91ae67b216a78b40cee016
[ "BSD-2-Clause" ]
37
2016-02-11T17:34:41.000Z
2021-10-04T10:14:18.000Z
src/items/SpatialItem.hpp
maltewi/envire-envire_core
549b64ed30ba8afc4d91ae67b216a78b40cee016
[ "BSD-2-Clause" ]
11
2016-07-11T14:49:34.000Z
2021-06-04T08:23:39.000Z
// // Copyright (c) 2015, Deutsches Forschungszentrum für Künstliche Intelligenz GmbH. // 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 ab...
31.630435
104
0.666208
maltewi
678bb6abe6ce6d9516ab5d5f4f07267b9aa57239
3,817
cpp
C++
released_plugins/v3d_plugins/hierachical_labeling/hier_label_func.cpp
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
1
2021-12-27T19:14:03.000Z
2021-12-27T19:14:03.000Z
released_plugins/v3d_plugins/hierachical_labeling/hier_label_func.cpp
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
1
2016-12-03T05:33:13.000Z
2016-12-03T05:33:13.000Z
released_plugins/v3d_plugins/hierachical_labeling/hier_label_func.cpp
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
null
null
null
/* hier_label_func.cpp * This plugin heirachically segments the input neuron tree and label the nodes as features in eswc file. * 2012-05-04 : by Yinan Wan */ #include <v3d_interface.h> #include "v3d_message.h" #include "hier_label_func.h" #include "hierachical_labeling.h" #include "customary_structs/vaa3d_neuronto...
27.861314
165
0.703432
zzhmark
678cf958b2fa6c02ad42f430b91df752c6f7a2c8
1,061
cpp
C++
tau/TauEngine/src/dx/dxgi/DXGI11GraphicsDisplay.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
1
2020-04-22T04:07:01.000Z
2020-04-22T04:07:01.000Z
tau/TauEngine/src/dx/dxgi/DXGI11GraphicsDisplay.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
null
null
null
tau/TauEngine/src/dx/dxgi/DXGI11GraphicsDisplay.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
null
null
null
#include "dx/dxgi/DXGI11GraphicsDisplay.hpp" #ifdef _WIN32 NullableRef<DXGI11GraphicsDisplay> DXGI11GraphicsDisplay::build(IDXGIOutput* const dxgiOutput) noexcept { UINT numDisplayModes; HRESULT res = dxgiOutput->GetDisplayModeList(DXGI_FORMAT_R8G8B8A8_UNORM, DXGI_ENUM_MODES_INTERLACED, &numDisplayModes,...
35.366667
134
0.737983
hyfloac
6790d2017a223d244fde06f4fd43c86abecc4182
1,419
hpp
C++
deeplab/code/include/caffe/layers/graphcut_layer.hpp
dmitrii-marin/adm-seg
e730b79bcd2b30cee66efac0ce961090c2cd4e62
[ "MIT" ]
10
2019-05-28T22:00:08.000Z
2021-11-27T04:00:11.000Z
deeplab/code/include/caffe/layers/graphcut_layer.hpp
dmitrii-marin/adm-seg
e730b79bcd2b30cee66efac0ce961090c2cd4e62
[ "MIT" ]
2
2019-09-10T09:47:13.000Z
2019-10-26T02:58:03.000Z
deeplab/code/include/caffe/layers/graphcut_layer.hpp
dmitrii-marin/adm-seg
e730b79bcd2b30cee66efac0ce961090c2cd4e62
[ "MIT" ]
2
2019-12-26T01:58:20.000Z
2020-03-11T02:22:08.000Z
#ifndef CAFFE_GRAPHCUT_LAYER_HPP_ #define CAFFE_GRAPHCUT_LAYER_HPP_ #include <vector> #include "caffe/blob.hpp" #include "caffe/layer.hpp" #include "caffe/proto/caffe.pb.h" #include "caffe/filterrgbxy.hpp" #include "gco-v3.0/GCoptimization.h" #include <cstddef> namespace caffe{ template <typename Dtype> class Gr...
26.277778
98
0.711769
dmitrii-marin
09649f973e8094042707dd1d686a901ca1295560
6,729
cpp
C++
Cores/FCEU/FCEU/drivers/win/keyboard.cpp
werminghoff/Provenance
de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2
[ "BSD-3-Clause" ]
3,459
2015-01-07T14:07:09.000Z
2022-03-25T03:51:10.000Z
Cores/FCEU/FCEU/drivers/win/keyboard.cpp
werminghoff/Provenance
de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2
[ "BSD-3-Clause" ]
1,046
2018-03-24T17:56:16.000Z
2022-03-23T08:13:09.000Z
Cores/FCEU/FCEU/drivers/win/keyboard.cpp
werminghoff/Provenance
de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2
[ "BSD-3-Clause" ]
549
2015-01-07T14:07:15.000Z
2022-01-07T16:13:05.000Z
/* FCE Ultra - NES/Famicom Emulator * * Copyright notice for this file: * Copyright (C) 2002 Xodnizel * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, o...
29.384279
344
0.696983
werminghoff
0965c5446ac766b60de9408cc4e71f3c7dc6ced4
8,639
cc
C++
instrument.cc
eryjus/instrumentation
82c6e211b4b263c0beece904b615a8817681f6ac
[ "Beerware" ]
null
null
null
instrument.cc
eryjus/instrumentation
82c6e211b4b263c0beece904b615a8817681f6ac
[ "Beerware" ]
null
null
null
instrument.cc
eryjus/instrumentation
82c6e211b4b263c0beece904b615a8817681f6ac
[ "Beerware" ]
null
null
null
//=================================================================================================================== // // instrument.cc -- Bochs instrumentation for CenuryOS // ///////////////////////////////////////////////////////////////////////// // $Id: instrument.cc 12655 2015-02-19 20:23:08Z sshwarts $ //////...
31.878229
130
0.573793
eryjus
09661d776586905743293e00b25c523c21f0b200
3,792
cpp
C++
RTIDPRR/Source/Graphics/Core/Buffer.cpp
brunosegiu/RTIDPRR
d7daef7611899db4e23ba6a2b5a91135c57e0871
[ "MIT" ]
3
2020-12-06T02:22:48.000Z
2021-06-24T13:52:10.000Z
RTIDPRR/Source/Graphics/Core/Buffer.cpp
brunosegiu/RTIDPRR
d7daef7611899db4e23ba6a2b5a91135c57e0871
[ "MIT" ]
null
null
null
RTIDPRR/Source/Graphics/Core/Buffer.cpp
brunosegiu/RTIDPRR
d7daef7611899db4e23ba6a2b5a91135c57e0871
[ "MIT" ]
1
2021-10-13T10:36:36.000Z
2021-10-13T10:36:36.000Z
#include "Buffer.h" #include "Command.h" #include "Context.h" #include "DeviceMemory.h" using namespace RTIDPRR::Graphics; Buffer::Buffer(const vk::DeviceSize& size, const vk::BufferUsageFlags& usage, const vk::MemoryPropertyFlags& memoryProperties) : mSize(size) { const Device& device = Contex...
36.461538
79
0.726002
brunosegiu
096a3969d7f748663f63ee71124263026f3bfee6
513
cpp
C++
codeshef/CIN011.cpp
sonuKumar03/data-structure-and-algorithm
d1fd3cad494cbcc91ce7ff37ec611752369b50b6
[ "MIT" ]
null
null
null
codeshef/CIN011.cpp
sonuKumar03/data-structure-and-algorithm
d1fd3cad494cbcc91ce7ff37ec611752369b50b6
[ "MIT" ]
null
null
null
codeshef/CIN011.cpp
sonuKumar03/data-structure-and-algorithm
d1fd3cad494cbcc91ce7ff37ec611752369b50b6
[ "MIT" ]
null
null
null
#include<iostream> #include<queue> #include<vector> #include<algorithm> #include<fstream> #include<climits> #include<math.h> using namespace std; typedef long long ll ; void solve(){ ll n ; cin>>n; ll *roses = new ll[n]; for(int i =0;i<n;i++){ cin>>roses[i]; } ll happiness = -1; for(int i =0;i<n;i++)...
14.25
33
0.569201
sonuKumar03
096f6455e70034e7bad0407873ba591b77351925
18,237
cpp
C++
PersistentStore/SqliteStore.cpp
MFransen69/rdkservices
ce13efeb95779bc04c20e69be5fe86fd8565a6c6
[ "BSD-2-Clause" ]
null
null
null
PersistentStore/SqliteStore.cpp
MFransen69/rdkservices
ce13efeb95779bc04c20e69be5fe86fd8565a6c6
[ "BSD-2-Clause" ]
null
null
null
PersistentStore/SqliteStore.cpp
MFransen69/rdkservices
ce13efeb95779bc04c20e69be5fe86fd8565a6c6
[ "BSD-2-Clause" ]
null
null
null
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2022 RDK Management * * 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 cop...
25.119835
109
0.551132
MFransen69
09705a8a905f583738cbc53fc70fa2e3c0205846
136
cpp
C++
test/llvm_test_code/linear_constant/call_10.cpp
janniclas/phasar
324302ae96795e6f0a065c14d4f7756b1addc2a4
[ "MIT" ]
1
2022-02-15T07:56:29.000Z
2022-02-15T07:56:29.000Z
test/llvm_test_code/linear_constant/call_10.cpp
fabianbs96/phasar
5b8acd046d8676f72ce0eb85ca20fdb0724de444
[ "MIT" ]
null
null
null
test/llvm_test_code/linear_constant/call_10.cpp
fabianbs96/phasar
5b8acd046d8676f72ce0eb85ca20fdb0724de444
[ "MIT" ]
null
null
null
void bar(int b) {} void foo(int a) { // clang-format off bar(a); } // clang-format on int main() { int i; foo(2); return 0; }
11.333333
37
0.551471
janniclas
097198218d7ba6feaff553a04757aefc9ada1651
5,030
cc
C++
topside/qgc/src/AutoPilotPlugins/AutoPilotPluginManager.cc
slicht-uri/Sandshark-Beta-Lab-
6cff36b227b49b776d13187c307e648d2a52bdae
[ "MIT" ]
null
null
null
topside/qgc/src/AutoPilotPlugins/AutoPilotPluginManager.cc
slicht-uri/Sandshark-Beta-Lab-
6cff36b227b49b776d13187c307e648d2a52bdae
[ "MIT" ]
null
null
null
topside/qgc/src/AutoPilotPlugins/AutoPilotPluginManager.cc
slicht-uri/Sandshark-Beta-Lab-
6cff36b227b49b776d13187c307e648d2a52bdae
[ "MIT" ]
1
2019-10-18T06:25:14.000Z
2019-10-18T06:25:14.000Z
/*===================================================================== QGroundControl Open Source Ground Control Station (c) 2009 - 2014 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> This file is part of the QGROUNDCONTROL project QGROUNDCONTROL is free software: you can redistribute it and/or mod...
35.174825
162
0.712326
slicht-uri
0973942ad6b4dc43319155d9cb62b01f3c1675d2
4,551
cpp
C++
Source/BlackWolf.Lupus.Core/Cookie.cpp
chronos38/lupus-core
ea5196b1b8663999f0a6fcfb5ee3dc5c01d48f32
[ "MIT" ]
null
null
null
Source/BlackWolf.Lupus.Core/Cookie.cpp
chronos38/lupus-core
ea5196b1b8663999f0a6fcfb5ee3dc5c01d48f32
[ "MIT" ]
null
null
null
Source/BlackWolf.Lupus.Core/Cookie.cpp
chronos38/lupus-core
ea5196b1b8663999f0a6fcfb5ee3dc5c01d48f32
[ "MIT" ]
1
2020-10-03T05:05:03.000Z
2020-10-03T05:05:03.000Z
/** * Copyright (C) 2014 David Wolf <[email protected]> * * This file is part of Lupus. * 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 th...
28.267081
80
0.513733
chronos38
0973f6e50c45617b6a11bd2d0a2cf3d767047959
2,811
cpp
C++
Actions/AddCircAction.cpp
OmarKimo/PaintForKids
21e41401e40d64880679f53efa4bf92fec06e783
[ "MIT" ]
2
2022-01-19T20:39:14.000Z
2022-01-20T08:41:45.000Z
Actions/AddCircAction.cpp
OmarKimo/PaintForKids
21e41401e40d64880679f53efa4bf92fec06e783
[ "MIT" ]
null
null
null
Actions/AddCircAction.cpp
OmarKimo/PaintForKids
21e41401e40d64880679f53efa4bf92fec06e783
[ "MIT" ]
null
null
null
#include "AddCircAction.h" #include "..\Figures\CCircle.h" #include "..\ApplicationManager.h" #include "..\GUI\input.h" #include "..\GUI\Output.h" AddCircAction::AddCircAction(ApplicationManager * pApp):Action(pApp) {} void AddCircAction::ReadActionParameters() { //Get a Pointer to the Input / Output Interfaces ...
30.225806
162
0.67556
OmarKimo
0975c8e52cf2a7a3ea23ce38e36b92ffcf6843b4
517
cc
C++
gearbox/t/core/config_file.t.cc
coryb/gearbox
88027f2f101c2d1fab16093928963052b9d3294d
[ "Artistic-1.0-Perl", "BSD-3-Clause" ]
3
2015-06-26T15:37:40.000Z
2016-05-22T07:42:39.000Z
gearbox/t/core/config_file.t.cc
coryb/gearbox
88027f2f101c2d1fab16093928963052b9d3294d
[ "Artistic-1.0-Perl", "BSD-3-Clause" ]
null
null
null
gearbox/t/core/config_file.t.cc
coryb/gearbox
88027f2f101c2d1fab16093928963052b9d3294d
[ "Artistic-1.0-Perl", "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2012, Yahoo! Inc. All rights reserved. // Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. #include <tap/trivial.h> #include <gearbox/core/ConfigFile.h> using namespace Gearbox; int main() { chdir(TESTDIR); TEST_START(5); ConfigFile cfg("cfg/2...
21.541667
94
0.617021
coryb
097678ae1ef604a6f07542e23a230b58a61679e4
3,944
cpp
C++
Drivers/GranularJet/dec13_A254_Hi0075_RC06_MU05.cpp
gustavo-castillo-bautista/Mercury
eeb402ccec8e487652229d4595c46ec84f6aefbb
[ "BSD-3-Clause" ]
null
null
null
Drivers/GranularJet/dec13_A254_Hi0075_RC06_MU05.cpp
gustavo-castillo-bautista/Mercury
eeb402ccec8e487652229d4595c46ec84f6aefbb
[ "BSD-3-Clause" ]
null
null
null
Drivers/GranularJet/dec13_A254_Hi0075_RC06_MU05.cpp
gustavo-castillo-bautista/Mercury
eeb402ccec8e487652229d4595c46ec84f6aefbb
[ "BSD-3-Clause" ]
null
null
null
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
40.659794
149
0.761663
gustavo-castillo-bautista
097d29910f58bf15984a871e201ddf64e159f4b3
3,105
cpp
C++
tests/mapping/Map2DTest.cpp
jonahbardos/PY2020
af4f61b86ae5013e58faf4842bf20863b3de3957
[ "Apache-2.0" ]
11
2019-10-03T01:17:16.000Z
2020-10-25T02:38:32.000Z
tests/mapping/Map2DTest.cpp
jonahbardos/PY2020
af4f61b86ae5013e58faf4842bf20863b3de3957
[ "Apache-2.0" ]
53
2019-10-03T02:11:04.000Z
2021-06-05T03:11:55.000Z
tests/mapping/Map2DTest.cpp
jonahbardos/PY2020
af4f61b86ae5013e58faf4842bf20863b3de3957
[ "Apache-2.0" ]
3
2019-09-20T04:09:29.000Z
2020-08-18T22:25:20.000Z
#define CATCH_CONFIG_MAIN #include "mapping/Map2D.h" #include <iostream> #include <cmath> #include <chrono> #include <ctime> #include <thread> constexpr int test_iterations = 100; constexpr int vertex_count = 1000; constexpr int sparsity_factor = 2; #include <catch2/catch.hpp> namespace Mapping { ...
29.571429
98
0.554267
jonahbardos
09807f83c5fd4e83dddd8cef01b63649a688bc23
1,520
cpp
C++
attacker/SSL/sslPublic.cpp
satadriver/attacker
24e4434d8a836e040e48df195f2ca8919ab52609
[ "Apache-2.0" ]
null
null
null
attacker/SSL/sslPublic.cpp
satadriver/attacker
24e4434d8a836e040e48df195f2ca8919ab52609
[ "Apache-2.0" ]
null
null
null
attacker/SSL/sslPublic.cpp
satadriver/attacker
24e4434d8a836e040e48df195f2ca8919ab52609
[ "Apache-2.0" ]
1
2022-03-20T03:21:00.000Z
2022-03-20T03:21:00.000Z
#include "sslPublic.h" #include "../attacker.h" #include "../FileOper.h" #include <vector> #include <iostream> #include <string> using namespace std; WORKERCONTROL gWorkControl; vector <string> gHostAttackList; char G_USERNAME[64]; SSLPublic::SSLPublic(vector<string>list) { if (mInstance) { return; } mInst...
19.74026
63
0.651316
satadriver
09817f55dee6853da4cc8fcc42feaf934082197f
119
cpp
C++
src/IModel.cpp
soraphis/Boids-MPI
87ce64b6bfa5f8f9dba94a641046979621e7a71c
[ "MIT" ]
null
null
null
src/IModel.cpp
soraphis/Boids-MPI
87ce64b6bfa5f8f9dba94a641046979621e7a71c
[ "MIT" ]
1
2017-05-30T14:59:29.000Z
2017-05-30T14:59:29.000Z
src/IModel.cpp
soraphis/Boids-MPI
87ce64b6bfa5f8f9dba94a641046979621e7a71c
[ "MIT" ]
null
null
null
/* * IModel.cpp * * Created on: 29.06.2014 * Author: oliver */ #include "IModel.h" IModel::~IModel(){ }
8.5
26
0.537815
soraphis
098189c807f15834fdc770132fb6df986d492496
203,441
cpp
C++
ds/ds/src/util/ldp/ldpdoc.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
ds/ds/src/util/ldp/ldpdoc.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
ds/ds/src/util/ldp/ldpdoc.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1996 - 1999 // // File: ldpdoc.cpp // //-------------------------------------------------------------------------- /****************************************...
30.68029
145
0.435571
npocmaka
098225952388ba074e560ffa576c15afc2ebe0c4
2,258
cpp
C++
TestApps/Rosetta/BNN/Sources/utils/DataIO.cpp
stephenneuendorffer/hls_tuner
fa7de78f0e2bb4b8f9f2e0a0368ed071b379c875
[ "MIT" ]
1
2021-02-21T12:13:09.000Z
2021-02-21T12:13:09.000Z
TestApps/Rosetta/BNN/Sources/utils/DataIO.cpp
stephenneuendorffer/hls_tuner
fa7de78f0e2bb4b8f9f2e0a0368ed071b379c875
[ "MIT" ]
null
null
null
TestApps/Rosetta/BNN/Sources/utils/DataIO.cpp
stephenneuendorffer/hls_tuner
fa7de78f0e2bb4b8f9f2e0a0368ed071b379c875
[ "MIT" ]
1
2019-09-10T16:45:27.000Z
2019-09-10T16:45:27.000Z
#include "DataIO.h" #ifdef RUN_STANDALONE #include <ff.h> #endif Cifar10TestInputs::Cifar10TestInputs(const std::string & filename, unsigned n) : m_size(n*CHANNELS*ROWS*COLS) { #ifdef RUN_STANDALONE data = new float[m_size]; DB_PRINT(2, "Opening data file %s\n", filename.c_str()); FIL File; if (f_open(&Fil...
23.520833
78
0.641718
stephenneuendorffer
0982fc2f50f944be4581a3e21cd40ce1d769102d
1,273
cpp
C++
src/trade_book/TradeBook.cpp
karelhala-cz/BitstampTax
361b94a8acf233082badc21da256b4089aad2188
[ "MIT" ]
null
null
null
src/trade_book/TradeBook.cpp
karelhala-cz/BitstampTax
361b94a8acf233082badc21da256b4089aad2188
[ "MIT" ]
null
null
null
src/trade_book/TradeBook.cpp
karelhala-cz/BitstampTax
361b94a8acf233082badc21da256b4089aad2188
[ "MIT" ]
null
null
null
//********************************************************************************************************************* // Author: Karel Hala, [email protected] // Copyright: (c) 2021-2022 Karel Hala // License: MIT //***********************************************************************************************...
23.574074
119
0.586803
karelhala-cz
09839fb928a67e869b7b8cf5c6a1129430fd171f
796
cpp
C++
src/gamelib/utils/LifetimeTracker.cpp
mall0c/GameLib
df4116b53c39be7b178dd87f7eb0fe32a94d00d3
[ "MIT" ]
1
2020-02-17T09:53:36.000Z
2020-02-17T09:53:36.000Z
src/gamelib/utils/LifetimeTracker.cpp
mall0c/GameLib
df4116b53c39be7b178dd87f7eb0fe32a94d00d3
[ "MIT" ]
null
null
null
src/gamelib/utils/LifetimeTracker.cpp
mall0c/GameLib
df4116b53c39be7b178dd87f7eb0fe32a94d00d3
[ "MIT" ]
null
null
null
#include "gamelib/utils/LifetimeTracker.hpp" namespace gamelib { SlotMapShort<void*> LifetimeTrackerManager::_data; LifetimeTrackerManager::LifetimeTrackerManager() { } auto LifetimeTrackerManager::add(void* ptr) -> LifetimeHandle { auto h = _data.acquire(); _data[h] = ptr; ...
22.742857
84
0.628141
mall0c
0988cb9ad208ef6d58ccf6001e8cd49c540a41e6
2,410
cpp
C++
VoDTCPServer/VoDTCPServerView.cpp
ckaraca/VoD
415590649053eb560ef094768bec210c4c0fe19f
[ "MIT" ]
3
2021-11-26T21:26:32.000Z
2022-01-09T20:54:49.000Z
VoDTCPServer/VoDTCPServerView.cpp
ckaraca/VoD
415590649053eb560ef094768bec210c4c0fe19f
[ "MIT" ]
null
null
null
VoDTCPServer/VoDTCPServerView.cpp
ckaraca/VoD
415590649053eb560ef094768bec210c4c0fe19f
[ "MIT" ]
null
null
null
// VoDTCPServerView.cpp : implementation of the CVoDTCPServerView class // #include "stdafx.h" #include "VoDTCPServer.h" #include "VoDTCPServerDoc.h" #include "VoDTCPServerView.h" #ifdef _DEBUG #define new DEBUG_NEW #endif #define WSA_VERSION MAKEWORD(2,0) extern TCHAR ServerPathName[]; extern TCHAR ServerPath[];...
21.327434
87
0.755602
ckaraca
09899356e00cbb258e99c61dd65dd32b225df382
2,492
cpp
C++
plugins/builtin.cpp
iotbzh/DEPRECATED_afb-signal-composer
ee50d58c38e4a8f2dafd40b6cdf3aa6c7612e866
[ "Apache-2.0" ]
null
null
null
plugins/builtin.cpp
iotbzh/DEPRECATED_afb-signal-composer
ee50d58c38e4a8f2dafd40b6cdf3aa6c7612e866
[ "Apache-2.0" ]
null
null
null
plugins/builtin.cpp
iotbzh/DEPRECATED_afb-signal-composer
ee50d58c38e4a8f2dafd40b6cdf3aa6c7612e866
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2016 "IoT.bzh" * Author Romain Forlot <[email protected]> * * 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 * *...
27.688889
104
0.725522
iotbzh
0995a4bfc97cf2bc46e173bd52b113ce0b119b86
2,190
cpp
C++
src/libs/utilities/testharness/play.cpp
suggitpe/RPMS
7a12da0128f79b8b0339fd7146105ba955079b8c
[ "Apache-2.0" ]
null
null
null
src/libs/utilities/testharness/play.cpp
suggitpe/RPMS
7a12da0128f79b8b0339fd7146105ba955079b8c
[ "Apache-2.0" ]
null
null
null
src/libs/utilities/testharness/play.cpp
suggitpe/RPMS
7a12da0128f79b8b0339fd7146105ba955079b8c
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> #include <sys/resource.h> #include <sys/time.h> #include <unistd.h> #include <iostream> void print_cpu_time() { struct rusage usage; getrusage (RUSAGE_SELF, &usage); printf ("CPU time: %ld.%06ld sec user, %ld.%06ld sec system\n", usage.ru_utime.tv_sec, usage.ru_utime.tv_usec, ...
66.363636
256
0.574886
suggitpe
0998a6a1c67e59ff7263fff32514f9b73af3fa9b
1,583
cpp
C++
modules/cudaimgproc/samples/connected_components.cpp
pccvlab/opencv_contrib
f6a39c5d01a7b2d2bb223a2a67beb9736fce7d93
[ "Apache-2.0" ]
null
null
null
modules/cudaimgproc/samples/connected_components.cpp
pccvlab/opencv_contrib
f6a39c5d01a7b2d2bb223a2a67beb9736fce7d93
[ "Apache-2.0" ]
null
null
null
modules/cudaimgproc/samples/connected_components.cpp
pccvlab/opencv_contrib
f6a39c5d01a7b2d2bb223a2a67beb9736fce7d93
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <opencv2/core/utility.hpp> #include "opencv2/imgproc.hpp" #include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.hpp" #include "opencv2/cudaimgproc.hpp" using namespace cv; using namespace std; using namespace cv::cuda; void colorLabels(const Mat1i& labels, Mat3b& colors) { colo...
26.830508
121
0.655085
pccvlab
099a548581f12d5b5a3a2a36c45dd14ccf4a8336
176
cpp
C++
src/world/health.cpp
louiz/batajelo
4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e
[ "BSL-1.0", "BSD-2-Clause", "Zlib", "MIT" ]
7
2015-01-28T09:17:08.000Z
2020-04-21T13:51:16.000Z
src/world/health.cpp
louiz/batajelo
4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e
[ "BSL-1.0", "BSD-2-Clause", "Zlib", "MIT" ]
null
null
null
src/world/health.cpp
louiz/batajelo
4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e
[ "BSL-1.0", "BSD-2-Clause", "Zlib", "MIT" ]
1
2020-07-11T09:20:25.000Z
2020-07-11T09:20:25.000Z
#include <world/health.hpp> const ComponentType Health::component_type; Health::Health(const Quantity::type max): Quantity(max) { } void Health::tick(Entity*, World*) { }
13.538462
43
0.721591
louiz
099a85de008229877140cca914f025843039871f
372
cpp
C++
05_bits/digits_demo.cpp
anton0xf/stepik_cpp
fe87fff8523bc62c92b13dc8c0908b6d984aec43
[ "MIT" ]
null
null
null
05_bits/digits_demo.cpp
anton0xf/stepik_cpp
fe87fff8523bc62c92b13dc8c0908b6d984aec43
[ "MIT" ]
null
null
null
05_bits/digits_demo.cpp
anton0xf/stepik_cpp
fe87fff8523bc62c92b13dc8c0908b6d984aec43
[ "MIT" ]
null
null
null
#include <stdio.h> #include "digits.hpp" int main() { init_digits(); printf("values: \n"); for (int i=0; i < VALUES_COUNT; i++) { if (values[i] == UNUSED) continue; printf("%c -> %lld\n", (char)i, values[i]); } printf("digits: "); for (int i=0; i < DIGITS_COUNT; i++) { p...
21.882353
51
0.491935
anton0xf
099fbb7c121449c95fb9f56489000d921c612477
814
hpp
C++
Kuplung/kuplung/utilities/consumption/WindowsCPUUsage.hpp
supudo/Kuplung
f0e11934fde0675fa531e6dc263bedcc20a5ea1a
[ "Unlicense" ]
14
2017-02-17T17:12:40.000Z
2021-12-22T01:55:06.000Z
Kuplung/kuplung/utilities/consumption/WindowsCPUUsage.hpp
supudo/Kuplung
f0e11934fde0675fa531e6dc263bedcc20a5ea1a
[ "Unlicense" ]
null
null
null
Kuplung/kuplung/utilities/consumption/WindowsCPUUsage.hpp
supudo/Kuplung
f0e11934fde0675fa531e6dc263bedcc20a5ea1a
[ "Unlicense" ]
1
2019-10-15T08:10:10.000Z
2019-10-15T08:10:10.000Z
// // WindowsCPUUsage.hpp // Kuplung // // Created by Sergey Petrov on 12/16/15. // Copyright © 2015 supudo.net. All rights reserved. // #ifndef WindowsCPUUsage_hpp #define WindowsCPUUsage_hpp namespace KuplungApp { namespace Utilities { namespace Consumption { #include <windows.h> class WindowsCPUUsage { publi...
18.930233
68
0.739558
supudo
09a0d8fbc646e7ed4bca93c50809b96655e90b06
787
cpp
C++
assingment/32.cpp
aditya1k2/CPP-SEM-2-KIIT
1afceeb39458201b6dafe33422d7de8e613d96de
[ "MIT" ]
null
null
null
assingment/32.cpp
aditya1k2/CPP-SEM-2-KIIT
1afceeb39458201b6dafe33422d7de8e613d96de
[ "MIT" ]
null
null
null
assingment/32.cpp
aditya1k2/CPP-SEM-2-KIIT
1afceeb39458201b6dafe33422d7de8e613d96de
[ "MIT" ]
null
null
null
/* Name:- Aditya Kumar Gupta Roll No.:- 1706291 Sec:- B-19 Ques No.:-32 */ #include<iostream> #include<stdio.h> using namespace std; int main() { char str[100],pat[20],new_str[100],rep_pat[50]; int i=0,j=0,k,n=0,copy_loop=0, rep_index=0; cout<<"Enter the string:\n"; gets(str); cout<<"\nEnter the pattern: "; ...
18.738095
48
0.556544
aditya1k2
09a191ad3902e2287e28eccae3b07851957fe736
2,035
cpp
C++
cpp/HeapStack/HeapStack_v1/main.cpp
ArboreusSystems/arboreus_examples
17d39e18f4b2511c19f97d4e6c07ec9d7087fae8
[ "BSD-3-Clause" ]
17
2019-02-19T21:29:22.000Z
2022-01-29T11:03:45.000Z
cpp/HeapStack/HeapStack_v1/main.cpp
MbohBless/arboreus_examples
97f0e25182bbc4b5ffab37c6157514332002aeee
[ "BSD-3-Clause" ]
null
null
null
cpp/HeapStack/HeapStack_v1/main.cpp
MbohBless/arboreus_examples
97f0e25182bbc4b5ffab37c6157514332002aeee
[ "BSD-3-Clause" ]
9
2021-02-21T05:32:23.000Z
2022-02-26T07:51:52.000Z
/* ------------------------------------------------------------------- * @doc * @notice Template file wizards/projects/plaincpp/main.cpp * * @copyright Arboreus (http://arboreus.systems) * @author Alexandr Kirilov (http://alexandr.kirilov.me) * @created 19/07/2020 at 13:12:12 * */// ------------------------...
26.776316
70
0.648649
ArboreusSystems