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
109
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
48.5k
⌀
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
957740122974a786e3020327b0f5a08edf6bb599
5,903
cpp
C++
src/graph_test.cpp
bonewell/libspfclient
a23201d020cd42db698c42661bb21e2c85a1dafe
[ "MIT" ]
null
null
null
src/graph_test.cpp
bonewell/libspfclient
a23201d020cd42db698c42661bb21e2c85a1dafe
[ "MIT" ]
4
2020-04-07T19:00:57.000Z
2020-05-31T16:56:33.000Z
src/graph_test.cpp
bonewell/libspfclient
a23201d020cd42db698c42661bb21e2c85a1dafe
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include <gmock/gmock.h> #include "mock_rpc.h" #include "spf/graph.h" using ::testing::_; using ::testing::Eq; using ::testing::ContainerEq; using ::testing::Return; using namespace spf; TEST(Graph, AddVertex) { MockRpc mock; Graph g{mock}; EXPECT_CALL(mock, invoke(R"({"action":"AddV...
23.332016
82
0.607657
bonewell
957ee648e041682af6879add232d28d27c5d166a
1,000
cpp
C++
yumemi_recruit/test.cpp
syohex/cpp-study
598c2afbe77c6d4ba88f549d3e99f97b5bf81acb
[ "MIT" ]
null
null
null
yumemi_recruit/test.cpp
syohex/cpp-study
598c2afbe77c6d4ba88f549d3e99f97b5bf81acb
[ "MIT" ]
null
null
null
yumemi_recruit/test.cpp
syohex/cpp-study
598c2afbe77c6d4ba88f549d3e99f97b5bf81acb
[ "MIT" ]
null
null
null
#include <cassert> #include <vector> #include "ranking.h" int main() { { std::vector<Rank> ranking; auto ret = CalculateRanking("./data/all_first.csv", 1, ranking); assert(ret == RankingError::kOk); assert(ranking.size() == 13); } { std::vector<Rank> ranking; ...
30.30303
72
0.555
syohex
95817fd09dd1a4939d782dcee7b0c22b5eadc02e
1,603
cpp
C++
RPC-2018/Fecha-2/I-Import Spaghetti.cpp
isanchez-aguilar/burrOS
69fa4a055e094259cd7bc8d3e5cbd350ab3ca223
[ "MIT" ]
null
null
null
RPC-2018/Fecha-2/I-Import Spaghetti.cpp
isanchez-aguilar/burrOS
69fa4a055e094259cd7bc8d3e5cbd350ab3ca223
[ "MIT" ]
null
null
null
RPC-2018/Fecha-2/I-Import Spaghetti.cpp
isanchez-aguilar/burrOS
69fa4a055e094259cd7bc8d3e5cbd350ab3ca223
[ "MIT" ]
1
2018-03-11T03:55:46.000Z
2018-03-11T03:55:46.000Z
/* * User: oozmas * Problem: RPC 2nd Activity I-Import Spaghetti */ #include <bits/stdc++.h> #define MAX 1e9 using namespace std; int cnt = 0; vector<string> p; map<int, string> nm; map<string, int> id; vector< vector<int> > parent(500, vector<int>(500)); void path(int i, int j) { if (parent[i][j] != i) path...
14.185841
52
0.479726
isanchez-aguilar
958439b25673ee01c34ac0d6e9fe182d1f1708fd
252
cc
C++
test/test_trie.cc
stiger104/Joker
d03df6b8cabb96dddb00624c7bc93e5ea2b01f66
[ "MIT" ]
null
null
null
test/test_trie.cc
stiger104/Joker
d03df6b8cabb96dddb00624c7bc93e5ea2b01f66
[ "MIT" ]
null
null
null
test/test_trie.cc
stiger104/Joker
d03df6b8cabb96dddb00624c7bc93e5ea2b01f66
[ "MIT" ]
null
null
null
// // Created by zhuangxk on 5/19/16. // #include "../src/trie.h" #include "gtest/gtest.h" Trie trie; TEST(Trie, main) { trie.insert("hello"); trie.insert("helloworld"); trie.insert("he"); EXPECT_EQ(1, trie.startsWith("he")); }
12
40
0.595238
stiger104
958723f46b2ff6c3c25a8f3c084ea49179164c91
389
hpp
C++
Include/FishEngine/Render/Graphics.hpp
yushroom/FishEngine_-Experiment
81e4c06f20f6b94dc561b358f8a11a092678aeeb
[ "MIT" ]
1
2018-12-20T02:38:44.000Z
2018-12-20T02:38:44.000Z
Include/FishEngine/Render/Graphics.hpp
yushroom/FishEngine_-Experiment
81e4c06f20f6b94dc561b358f8a11a092678aeeb
[ "MIT" ]
null
null
null
Include/FishEngine/Render/Graphics.hpp
yushroom/FishEngine_-Experiment
81e4c06f20f6b94dc561b358f8a11a092678aeeb
[ "MIT" ]
1
2018-10-25T19:40:22.000Z
2018-10-25T19:40:22.000Z
#pragma once namespace FishEngine { class Mesh; class Material; class Matrix4x4; class Camera; class Light; class Graphics { public: static void DrawMesh(Mesh* mesh, Material* material, int subMeshIndex = -1); static void DrawMesh(Mesh* mesh, Material* material, int subMeshIndex, Camera* camera, const Ma...
18.52381
125
0.719794
yushroom
9589bb6f14582789a7b4b9ee137c1dd05ba0a76f
35,887
cpp
C++
no_cache/src/internal_shard.cpp
cerww/cpp_discord_cuteness
3989b9e3fdcceb6823fb5df935ef38e3f7cb350e
[ "MIT" ]
4
2020-05-19T10:13:11.000Z
2020-07-10T11:00:21.000Z
no_cache/src/internal_shard.cpp
cerww/cpp_discord_cuteness
3989b9e3fdcceb6823fb5df935ef38e3f7cb350e
[ "MIT" ]
null
null
null
no_cache/src/internal_shard.cpp
cerww/cpp_discord_cuteness
3989b9e3fdcceb6823fb5df935ef38e3f7cb350e
[ "MIT" ]
null
null
null
#include "internal_shard.h" #include "client.h" #include "voice_channel.h" #include "dm_channel.h" #include "init_shard.h" #include "voice_connect_impl.h" #include "../common/executor_binder.h" #include "unavailable_guild.h" #include "presence_update.h" #include "events.h" #include <concepts> //#include <boost/beast/> ...
33.2595
166
0.717446
cerww
958ad92cca60746a5b466640c465f2612f4acb48
1,034
cc
C++
src/scc/driver/standalone.cc
origamicomet/scc
2dc87e84289a1c5d1dd3f7159568c4472b4c977b
[ "CC0-1.0" ]
5
2017-08-05T13:02:55.000Z
2022-02-12T03:02:44.000Z
src/scc/driver/standalone.cc
origamicomet/scc
2dc87e84289a1c5d1dd3f7159568c4472b4c977b
[ "CC0-1.0" ]
null
null
null
src/scc/driver/standalone.cc
origamicomet/scc
2dc87e84289a1c5d1dd3f7159568c4472b4c977b
[ "CC0-1.0" ]
null
null
null
//===-- scc/driver/standalone.cc ------------------------*- mode: C++11 -*-===// // // _____ _____ _____ // | __| | | // |__ | --| --| // |_____|_____|_____| // // ...
24.619048
80
0.48646
origamicomet
958fc3c093f3e34447a34a29d877f463737ee61a
62
cpp
C++
doc/figures.cpp
Xbeas/jitana
fc33976cf6f4cbb91263a06bae32e9ad07fc5551
[ "0BSD" ]
31
2017-04-21T03:25:46.000Z
2022-02-20T20:59:23.000Z
doc/figures.cpp
Xbeas/jitana
fc33976cf6f4cbb91263a06bae32e9ad07fc5551
[ "0BSD" ]
3
2020-12-21T09:02:06.000Z
2021-03-16T10:37:38.000Z
doc/figures.cpp
Xbeas/jitana
fc33976cf6f4cbb91263a06bae32e9ad07fc5551
[ "0BSD" ]
9
2017-06-06T19:30:43.000Z
2021-05-19T19:50:03.000Z
/// @page figures Figures /// @dotfile design.dot The design.
20.666667
35
0.693548
Xbeas
d2e62d9ef2a4df7ed8884c6a24302f6563be7d6b
8,088
hpp
C++
Neon Client/SDK/FN_BP_Hex_PARENT_parameters.hpp
Neon-FN/Neon-Client
9f6f62943db896021cc6bf48265169e710fa92d3
[ "BSD-3-Clause" ]
null
null
null
Neon Client/SDK/FN_BP_Hex_PARENT_parameters.hpp
Neon-FN/Neon-Client
9f6f62943db896021cc6bf48265169e710fa92d3
[ "BSD-3-Clause" ]
null
null
null
Neon Client/SDK/FN_BP_Hex_PARENT_parameters.hpp
Neon-FN/Neon-Client
9f6f62943db896021cc6bf48265169e710fa92d3
[ "BSD-3-Clause" ]
null
null
null
#pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------------------------- // Function BP_Hex_PARENT...
39.647059
163
0.59137
Neon-FN
d2ee55761df3452540e90858569ebf7d529a0812
1,848
hpp
C++
include/Pomdog/Signals/Signal.hpp
ValtoForks/pomdog
73798ae5f4a4c3b9b1e1e96239187c4b842c93b2
[ "MIT" ]
null
null
null
include/Pomdog/Signals/Signal.hpp
ValtoForks/pomdog
73798ae5f4a4c3b9b1e1e96239187c4b842c93b2
[ "MIT" ]
null
null
null
include/Pomdog/Signals/Signal.hpp
ValtoForks/pomdog
73798ae5f4a4c3b9b1e1e96239187c4b842c93b2
[ "MIT" ]
null
null
null
// Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license. #pragma once #include "Pomdog/Basic/Export.hpp" #include "Pomdog/Signals/Connection.hpp" #include "Pomdog/Signals/detail/SignalBody.hpp" #include <functional> #include <memory> #include <utility> namespace Pomdog { template <typename... Argumen...
24.972973
71
0.695346
ValtoForks
d2f0dc52af1a6e750f1dd619a68210303c4483d7
423
hpp
C++
src/CodeLine.hpp
natiiix/rush
bd7e5d8bba696ca6dbea24ac6c7a2597ba4b51da
[ "MIT" ]
2
2018-04-28T14:50:56.000Z
2018-05-14T17:39:22.000Z
src/CodeLine.hpp
natiiix/rush
bd7e5d8bba696ca6dbea24ac6c7a2597ba4b51da
[ "MIT" ]
null
null
null
src/CodeLine.hpp
natiiix/rush
bd7e5d8bba696ca6dbea24ac6c7a2597ba4b51da
[ "MIT" ]
null
null
null
#pragma once #include <string> struct CodeLine { public: CodeLine(const std::string origin, const int number, const std::string code, const int indentation); // Source file const std::string origin; // Line number in source file const int number; // Code on the line (without leading and trailing whitespa...
22.263158
102
0.728132
natiiix
d2f3c9845b739c0a24fbbb36f442cd034d779f14
372
hpp
C++
pythran/pythonic/operator_/irshift.hpp
artas360/pythran
66dad52d52be71693043e9a7d7578cfb9cb3d1da
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/operator_/irshift.hpp
artas360/pythran
66dad52d52be71693043e9a7d7578cfb9cb3d1da
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/operator_/irshift.hpp
artas360/pythran
66dad52d52be71693043e9a7d7578cfb9cb3d1da
[ "BSD-3-Clause" ]
null
null
null
#ifndef PYTHONIC_OPERATOR_IRSHIFT_HPP #define PYTHONIC_OPERATOR_IRSHIFT_HPP #include "pythonic/include/operator_/irshift.hpp" #include "pythonic/utils/proxy.hpp" namespace pythonic { namespace operator_ { template <class A, class B> A irshift(A a, B const &b) { return a >>= b; } PROX...
14.88
49
0.693548
artas360
d2f59cdb8b1d7f29493b05ad0b08b67dbf0b0a19
3,972
cpp
C++
src/pwn++/disasm.cpp
hugsy/pwn--
9ce6993b61bdb83cd5cac1eeb90f9b7953a7c099
[ "MIT" ]
64
2020-11-10T07:49:03.000Z
2022-03-12T17:16:55.000Z
src/pwn++/disasm.cpp
hugsy/pwn--
9ce6993b61bdb83cd5cac1eeb90f9b7953a7c099
[ "MIT" ]
3
2021-07-14T03:48:37.000Z
2021-11-29T18:00:12.000Z
src/pwn++/disasm.cpp
hugsy/pwn--
9ce6993b61bdb83cd5cac1eeb90f9b7953a7c099
[ "MIT" ]
2
2020-11-10T09:45:15.000Z
2021-04-21T12:23:44.000Z
#include "disasm.hpp" #ifndef PWN_NO_DISASSEMBLER #include <capstone/capstone.h> using namespace pwn::log; #define CS_DEFAULT_BASE_ADDRESS 0x40000 #if defined(_MSC_VER) #pragma warning(disable: 26812 ) // because of cs_arch & cs_mode, TODO: fix #endif // // todos: // - move csh to globals // namespace pwn::disa...
24.518519
148
0.53852
hugsy
96011c2c7ab57a7b21e77aa044ce2c730b999b33
534
cpp
C++
AtCoder/wupc2nd/b/main.cpp
H-Tatsuhiro/Com_Pro-Cpp
fd79f7821a76b11f4a6f83bbb26a034db577a877
[ "MIT" ]
null
null
null
AtCoder/wupc2nd/b/main.cpp
H-Tatsuhiro/Com_Pro-Cpp
fd79f7821a76b11f4a6f83bbb26a034db577a877
[ "MIT" ]
1
2021-10-19T08:47:23.000Z
2022-03-07T05:23:56.000Z
AtCoder/wupc2nd/b/main.cpp
H-Tatsuhiro/Com_Pro-Cpp
fd79f7821a76b11f4a6f83bbb26a034db577a877
[ "MIT" ]
null
null
null
#include <iostream> #include <cmath> #include <algorithm> #include <vector> using namespace std; template<class T> inline void chmin(T& a, T b) {if (a > b) a = b;} int main() { int n; string s; cin >> n >> s; vector<int> dp(n, 10e6); dp[0] = 0; for (int i = 0; i < n; i++) { for (int j = 1; j <= ...
25.428571
66
0.428839
H-Tatsuhiro
9608b8db0113b501101e6ca1831a8fe498e2f202
1,347
cpp
C++
src/utils/i2c_helper.cpp
JonLevin25/soviet_silvester
f75bd1d0f99c53c78dff120a54ae84b17325db5f
[ "MIT" ]
null
null
null
src/utils/i2c_helper.cpp
JonLevin25/soviet_silvester
f75bd1d0f99c53c78dff120a54ae84b17325db5f
[ "MIT" ]
null
null
null
src/utils/i2c_helper.cpp
JonLevin25/soviet_silvester
f75bd1d0f99c53c78dff120a54ae84b17325db5f
[ "MIT" ]
null
null
null
#include "i2c_helper.h" #include "Wire.h" #include "common.h" void (*ReceiveCallback)(uint16_t value); void _receiveInternal(int len); void wire_setup(bool is_master, int slave_addr) { if (is_master) { Wire.begin(); } else { Wire.begin(slave_addr); } } void wire_sendMsg(uint16...
20.104478
88
0.628062
JonLevin25
960b787260567fd4676816c7d08790cf59ca5b48
2,027
cpp
C++
source/extract/extractPathData.cpp
guard3/g3DTZ
7f0fe646a3e02a688151e21b4c74b09c8c4d6d82
[ "MIT" ]
11
2020-01-12T16:03:13.000Z
2021-11-14T17:19:51.000Z
source/extract/extractPathData.cpp
guard3/g3DTZ
7f0fe646a3e02a688151e21b4c74b09c8c4d6d82
[ "MIT" ]
1
2020-12-18T21:37:23.000Z
2020-12-27T16:20:57.000Z
source/extract/extractPathData.cpp
guard3/g3DTZ
7f0fe646a3e02a688151e21b4c74b09c8c4d6d82
[ "MIT" ]
5
2020-05-30T05:34:00.000Z
2021-12-05T18:54:11.000Z
#include "Extract.h" #include "Train.h" #include "Ferry.h" #include "Plane.h" #include "Utils.h" #include "FileSystem.h" #include <fstream> bool ExtractPathData() { #ifdef LCS if (!CFileSystem::CreateAndChangeFolder("paths")) { ErrorBoxCannotCreateFolder("paths"); return false; } #endif /* Open flight.dat */ ...
23.298851
93
0.617662
guard3
960c52eb5a5ad3a8da6ed1f2ee58da20c4458447
705
cpp
C++
Libraries/Math/Vector4.cpp
xycsoscyx/gekengine
cb9c933c6646169c0af9c7e49be444ff6f97835d
[ "MIT" ]
1
2019-04-22T00:10:49.000Z
2019-04-22T00:10:49.000Z
Libraries/Math/Vector4.cpp
xycsoscyx/gekengine
cb9c933c6646169c0af9c7e49be444ff6f97835d
[ "MIT" ]
null
null
null
Libraries/Math/Vector4.cpp
xycsoscyx/gekengine
cb9c933c6646169c0af9c7e49be444ff6f97835d
[ "MIT" ]
2
2017-10-16T15:40:55.000Z
2019-04-22T00:10:50.000Z
#include "GEK/Math/Vector4.hpp" namespace Gek { namespace Math { template <> const Float4 Float4::Zero(0.0f, 0.0f, 0.0f, 0.0f); template <> const Float4 Float4::One(1.0f, 1.0f, 1.0f, 1.0f); template <> const Float4 Float4::Black(0.0f, 0.0f, 0.0f, 0.0f); ...
22.03125
59
0.51773
xycsoscyx
960f7b0fa20c6ae39966c3dd44098c895b20b1e2
12,909
cpp
C++
src/generated/CPACSRotorBladeAttachment.cpp
Mk-arc/tigl
45ace0b17008e2beab3286babe310a817fcd6578
[ "Apache-2.0" ]
171
2015-04-13T11:24:34.000Z
2022-03-26T00:56:38.000Z
src/generated/CPACSRotorBladeAttachment.cpp
Mk-arc/tigl
45ace0b17008e2beab3286babe310a817fcd6578
[ "Apache-2.0" ]
620
2015-01-20T08:34:36.000Z
2022-03-30T11:05:33.000Z
src/generated/CPACSRotorBladeAttachment.cpp
Mk-arc/tigl
45ace0b17008e2beab3286babe310a817fcd6578
[ "Apache-2.0" ]
56
2015-02-09T13:33:56.000Z
2022-03-19T04:52:51.000Z
// Copyright (c) 2020 RISC Software GmbH // // This file was generated by CPACSGen from CPACS XML Schema (c) German Aerospace Center (DLR/SC). // Do not edit, all changes are lost when files are re-generated. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in com...
34.608579
144
0.611279
Mk-arc
9614eca9ab12ba047c1420807e0caca0c58c17c8
2,035
cpp
C++
src/cDataPoint.cpp
JamesBremner/KMeans
00cb3ed4ed4aae3b45398797fa24fad12ac13391
[ "MIT" ]
null
null
null
src/cDataPoint.cpp
JamesBremner/KMeans
00cb3ed4ed4aae3b45398797fa24fad12ac13391
[ "MIT" ]
null
null
null
src/cDataPoint.cpp
JamesBremner/KMeans
00cb3ed4ed4aae3b45398797fa24fad12ac13391
[ "MIT" ]
null
null
null
#define PYTHAGORUS #include <vector> #include <numeric> #include "cDataPoint.h" using namespace std; cDataPoint cDataPoint::operator + ( cDataPoint b ) { cDataPoint r( myDim ); std::transform( d.begin(), d.end(), b.d.begin(), r.d.begin(), []( double a, double b) ...
20.555556
74
0.521867
JamesBremner
961ac9d46a83c7daf8455f6b6ee393dd1f013ebb
7,675
cc
C++
src/xurl/main.cc
pjsaksa/x0
96b69e5a54b006e3d929b9934c2708f7967371bb
[ "MIT" ]
24
2016-07-10T08:05:11.000Z
2021-11-16T10:53:48.000Z
src/xurl/main.cc
pjsaksa/x0
96b69e5a54b006e3d929b9934c2708f7967371bb
[ "MIT" ]
14
2015-04-12T10:45:26.000Z
2016-06-28T22:27:50.000Z
src/xurl/main.cc
pjsaksa/x0
96b69e5a54b006e3d929b9934c2708f7967371bb
[ "MIT" ]
4
2016-10-05T17:51:38.000Z
2020-04-20T07:45:23.000Z
// This file is part of the "x0" project, http://github.com/christianparpart/x0> // (c) 2009-2018 Christian Parpart <christian@parpart.family> // // Licensed under the MIT License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of // the License at: http://op...
28.113553
103
0.643388
pjsaksa
961c9e30e46b92210edf2bdfa18d746763879a07
993
hpp
C++
boost/time_series/traits/storage_category.hpp
ericniebler/time_series
4040119366cc21f25c7734bb355e4a647296a96d
[ "BSL-1.0" ]
11
2015-02-21T11:23:44.000Z
2021-08-15T03:39:29.000Z
boost/time_series/traits/storage_category.hpp
ericniebler/time_series
4040119366cc21f25c7734bb355e4a647296a96d
[ "BSL-1.0" ]
null
null
null
boost/time_series/traits/storage_category.hpp
ericniebler/time_series
4040119366cc21f25c7734bb355e4a647296a96d
[ "BSL-1.0" ]
3
2015-05-09T02:25:42.000Z
2019-11-02T13:39:29.000Z
/////////////////////////////////////////////////////////////////////////////// /// \file storage_category.hpp /// Given a concrete storage type, fetch its associated storage tag // // Copyright 2006 Eric Niebler. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1...
26.131579
80
0.644512
ericniebler
961db8aca0b8dd7991ff08d40589ad1c36d95ba3
2,668
cc
C++
squid/squid3-3.3.8.spaceify/test-suite/debug.cc
spaceify/spaceify
4296d6c93cad32bb735cefc9b8157570f18ffee4
[ "MIT" ]
4
2015-01-20T15:25:34.000Z
2017-12-20T06:47:42.000Z
squid/squid3-3.3.8.spaceify/test-suite/debug.cc
spaceify/spaceify
4296d6c93cad32bb735cefc9b8157570f18ffee4
[ "MIT" ]
4
2015-05-15T09:32:55.000Z
2016-02-18T13:43:31.000Z
squid/squid3-3.3.8.spaceify/test-suite/debug.cc
spaceify/spaceify
4296d6c93cad32bb735cefc9b8157570f18ffee4
[ "MIT" ]
null
null
null
/* * DEBUG: section 19 Store Memory Primitives * AUTHOR: Robert Collins * * SQUID Web Proxy Cache http://www.squid-cache.org/ * ---------------------------------------------------------- * * Squid is the result of efforts by numerous individuals from * the Internet community; see the CONTRIBUTORS...
29.644444
93
0.676912
spaceify
9624e47d3884fa98995e16448842b83cfbf002a1
1,284
cpp
C++
p59_Spiral_Matrix_II/p59.cpp
Song1996/Leetcode
ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb
[ "MIT" ]
null
null
null
p59_Spiral_Matrix_II/p59.cpp
Song1996/Leetcode
ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb
[ "MIT" ]
null
null
null
p59_Spiral_Matrix_II/p59.cpp
Song1996/Leetcode
ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb
[ "MIT" ]
null
null
null
#include <memory> #include <vector> #include <map> #include <string> #include <assert.h> #include <algorithm> using namespace std; class Solution { public: vector<vector<int> > generateMatrix(int n) { vector<vector<int> > ans; for(int i = 0; i < n; i++){ vector<int> t(n,-1); ...
29.181818
83
0.507788
Song1996
962b807c23f1c0dcba9e38d5c484db8f2ed7c8c1
3,300
cpp
C++
src/csv_small/csv_small.cpp
fuzzuf/fuzz_toys
e2952a17f54653e4ff8a9d1d3f96e6b46d70e8bb
[ "MIT" ]
1
2021-12-29T02:48:00.000Z
2021-12-29T02:48:00.000Z
src/csv_small/csv_small.cpp
fuzzuf/fuzz_toys
e2952a17f54653e4ff8a9d1d3f96e6b46d70e8bb
[ "MIT" ]
null
null
null
src/csv_small/csv_small.cpp
fuzzuf/fuzz_toys
e2952a17f54653e4ff8a9d1d3f96e6b46d70e8bb
[ "MIT" ]
1
2022-01-03T07:22:15.000Z
2022-01-03T07:22:15.000Z
// SPDX-License-Identifier: MIT // Copyright 2021 Ricerca Security, Inc. #include <cstdint> #include <vector> #include <iterator> #include <iostream> #include <string> #include <algorithm> #include <stdexcept> #include <tuple> using csv_record_t = std::vector< std::string >; using csv_t = std::vector< csv_record_t >;...
34.020619
98
0.629697
fuzzuf
962c6882fea216549bb401db12975323f4890989
168
hpp
C++
src/autograph/glm_pixel_types.hpp
ennis/autograph
4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d
[ "MIT" ]
null
null
null
src/autograph/glm_pixel_types.hpp
ennis/autograph
4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d
[ "MIT" ]
null
null
null
src/autograph/glm_pixel_types.hpp
ennis/autograph
4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d
[ "MIT" ]
null
null
null
#ifndef GLM_PIXEL_TYPES_HPP #define GLM_PIXEL_TYPES_HPP #include <glm/glm.hpp> #include "pixel_format.hpp" namespace ag { // TODO } #endif // !GLM_PIXEL_TYPES_HPP
12.923077
30
0.755952
ennis
962caa3aec774485d7adaa04c9cd8aa7d9a66d2c
1,608
hpp
C++
engine/effects/include/ModifyStatisticsEffect.hpp
prolog/shadow-of-the-wyrm
a1312c3e9bb74473f73c4e7639e8bd537f10b488
[ "MIT" ]
60
2019-08-21T04:08:41.000Z
2022-03-10T13:48:04.000Z
engine/effects/include/ModifyStatisticsEffect.hpp
prolog/shadow-of-the-wyrm
a1312c3e9bb74473f73c4e7639e8bd537f10b488
[ "MIT" ]
3
2021-03-18T15:11:14.000Z
2021-10-20T12:13:07.000Z
engine/effects/include/ModifyStatisticsEffect.hpp
prolog/shadow-of-the-wyrm
a1312c3e9bb74473f73c4e7639e8bd537f10b488
[ "MIT" ]
8
2019-11-16T06:29:05.000Z
2022-01-23T17:33:43.000Z
#pragma once #include "Effect.hpp" #include "Modifier.hpp" enum struct ModifyStatisticsDuration { MODIFY_STATISTICS_DURATION_PRESET = 0, MODIFY_STATISTICS_DURATION_CALCULATE = 1 }; class ModifyStatisticsEffect : public Effect { public: virtual std::string get_effect_identification_message(std::shared_ptr<Cr...
37.395349
166
0.780473
prolog
963062eb16be1c8ce92aa0cdcd59cf9a3a302cef
482
cpp
C++
codeforces/contests/round/672-div2/a.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
4
2020-10-05T19:24:10.000Z
2021-07-15T00:45:43.000Z
codeforces/contests/round/672-div2/a.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
codeforces/contests/round/672-div2/a.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
#include <cpplib/stdinc.hpp> int32_t main(){ desync(); int t; cin >> t; while(t--){ int n; cin >> n; vii vals; for(int i=0; i<n; ++i){ int x; cin >> x; vals.eb(x, i); } sort(all(vals)); vi arr(n); for(...
17.851852
60
0.377593
tysm
96318ac073987c3762033ccb03d68793921c741f
394
cpp
C++
code/TrainArrival.cpp
eskottova/MaturaProject
77e5dd61bc2860ebdc40a197d397f527eda3bda5
[ "OML" ]
1
2020-11-06T20:58:24.000Z
2020-11-06T20:58:24.000Z
code/TrainArrival.cpp
eskottova/MaturaProject
77e5dd61bc2860ebdc40a197d397f527eda3bda5
[ "OML" ]
null
null
null
code/TrainArrival.cpp
eskottova/MaturaProject
77e5dd61bc2860ebdc40a197d397f527eda3bda5
[ "OML" ]
null
null
null
#include "TrainArrival.hpp" Solution::TrainArrival::TrainArrival(Solution* sol, int time, Train* train, Station* station) { this->sol = sol; this->time = time; this->train = train; this->station = station; this->priority = 0; } bool Solution::TrainArrival::run() { this->train->set_station(this...
23.176471
93
0.664975
eskottova
9634cf5f239f1a7693ae31d218b09ba973526ca2
282
cpp
C++
binarysearch.io/easy/Narcissistic-number.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
18
2020-08-27T05:27:50.000Z
2022-03-08T02:56:48.000Z
binarysearch.io/easy/Narcissistic-number.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
null
null
null
binarysearch.io/easy/Narcissistic-number.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
1
2020-10-13T05:23:58.000Z
2020-10-13T05:23:58.000Z
#include "solution.hpp" using namespace std; class Solution { public: bool solve(int n) { int d=n>0?(int)log10((double)n)+1:1; int ans=0, num=n; while(n){ ans+=pow(n%10,d); n/=10; } return ans==num; } };
16.588235
44
0.468085
wingkwong
963bbffe69af8ea32ba3dc7f6b350d028d123fd4
5,384
cpp
C++
src/app/pccclient.cpp
Alexyali/PCC-Uspace
30c2cfe1e276646aae03751b9df91889afea42dd
[ "BSD-3-Clause" ]
98
2018-04-10T22:14:45.000Z
2022-03-11T07:02:18.000Z
src/app/pccclient.cpp
Alexyali/PCC-Uspace
30c2cfe1e276646aae03751b9df91889afea42dd
[ "BSD-3-Clause" ]
22
2018-04-10T13:53:33.000Z
2021-10-11T05:40:18.000Z
src/app/pccclient.cpp
Alexyali/PCC-Uspace
30c2cfe1e276646aae03751b9df91889afea42dd
[ "BSD-3-Clause" ]
57
2018-05-18T14:30:23.000Z
2022-03-20T14:05:07.000Z
#include "../core/udt.h" #include <iostream> #include <signal.h> #ifndef WIN32 #include <cstdlib> #include <cstring> #include <netdb.h> #include <unistd.h> #else #include <winsock2.h> #include <ws2tcpip.h> #include <wspiapi.h> #endif using namespace std; #ifndef WIN32 void* monitor(void*); #else DWORD WINAPI monito...
24.252252
79
0.58841
Alexyali
963dd2ec775062256534e4470e3028e67f4b82fb
819
cpp
C++
solved-lightOj/1005.cpp
Maruf-Tuhin/Online_Judge
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
1
2019-03-31T05:47:30.000Z
2019-03-31T05:47:30.000Z
solved-lightOj/1005.cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
solved-lightOj/1005.cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
#include <stdio.h> #include <string.h> #include <algorithm> using namespace std; long long fact[35]; main() { int i,n,mx,mn,k,t,T; long long sum; fact[0]=1; for(i=1; i<=30; i++) { fact[i]=fact[i-1]*i; } sum=0; scanf("%d",&T); for(t=1; t<=T; t++) { sum=0; ...
17.0625
44
0.334554
Maruf-Tuhin
9646070fcc51537b487142bbb3cd046068b14caf
1,246
cpp
C++
source/magma/light-controllers/point-light-controller.cpp
Breush/lava
1b1b1f0785300b93b4a9f35fca4490502fea6552
[ "MIT" ]
15
2018-02-26T08:20:03.000Z
2022-03-06T03:25:46.000Z
source/magma/light-controllers/point-light-controller.cpp
Breush/lava
1b1b1f0785300b93b4a9f35fca4490502fea6552
[ "MIT" ]
32
2018-02-26T08:26:38.000Z
2020-09-12T17:09:38.000Z
source/magma/light-controllers/point-light-controller.cpp
Breush/lava
1b1b1f0785300b93b4a9f35fca4490502fea6552
[ "MIT" ]
null
null
null
#include <lava/magma/light-controllers/point-light-controller.hpp> #include <lava/magma/light.hpp> using namespace lava::magma; void PointLightController::bind(Light& light) { m_light = &light; // Force UBO update default values. auto& ubo = m_light->ubo(); ubo.type = static_cast<uint32_t>(LightType...
27.688889
71
0.698234
Breush
964ce5a1d8670c5d8f13a7ca44d1e029893d6a1c
23
cpp
C++
base/Windows/singx86/precomp.cpp
sphinxlogic/Singularity-RDK-2.0
2968c3b920a5383f7360e3e489aa772f964a7c42
[ "MIT" ]
null
null
null
base/Windows/singx86/precomp.cpp
sphinxlogic/Singularity-RDK-2.0
2968c3b920a5383f7360e3e489aa772f964a7c42
[ "MIT" ]
null
null
null
base/Windows/singx86/precomp.cpp
sphinxlogic/Singularity-RDK-2.0
2968c3b920a5383f7360e3e489aa772f964a7c42
[ "MIT" ]
null
null
null
#include "singx86.h"
11.5
22
0.652174
sphinxlogic
964d728f48652640c73d7c32beef1b77ce1eec4e
903
hpp
C++
include/TagFile.hpp
lpraz/tiger
b56f2fb3833cd24a9f99de0d454dd25ca794f299
[ "MIT" ]
null
null
null
include/TagFile.hpp
lpraz/tiger
b56f2fb3833cd24a9f99de0d454dd25ca794f299
[ "MIT" ]
null
null
null
include/TagFile.hpp
lpraz/tiger
b56f2fb3833cd24a9f99de0d454dd25ca794f299
[ "MIT" ]
null
null
null
/** * @file * author lpraz * * @section DESCRIPTION * Header file for the TagFile class. */ #ifndef TAGFILE_HPP #define TAGFILE_HPP // Stdlib includes #include <fstream> #include <string> #include <unordered_map> #include <vector> namespace Tiger { /** * Represents, and provides access to, tiger's tag...
22.02439
72
0.568106
lpraz
9652b7a6ff68a6e6f440f15052414cd7910a5932
10,243
cpp
C++
Chapter11/scratchpad.cpp
trantrongquy/Hands-On-System-Programming-with-CPP
c29f464c4df79f0d5a55a61f02a2558be74a329c
[ "MIT" ]
88
2018-07-20T17:38:40.000Z
2022-03-16T15:00:20.000Z
Chapter11/scratchpad.cpp
trantrongquy/Hands-On-System-Programming-with-CPP
c29f464c4df79f0d5a55a61f02a2558be74a329c
[ "MIT" ]
1
2020-01-01T08:12:24.000Z
2020-01-01T08:12:24.000Z
Chapter11/scratchpad.cpp
trantrongquy/Hands-On-System-Programming-with-CPP
c29f464c4df79f0d5a55a61f02a2558be74a329c
[ "MIT" ]
46
2019-01-27T15:19:45.000Z
2022-03-04T13:21:23.000Z
// // Copyright (C) 2018 Rian Quinn <rianquinn@gmail.com> // // 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, m...
18.323792
81
0.564776
trantrongquy
96559ccb364778fca550241e6fd8640c84f2f4e7
339
cc
C++
leetcode/remove-duplicates-from-sorted-array-ii.cc
Waywrong/leetcode-solution
55115aeab4040f5ff84bdce6ffcfe4a98f879616
[ "MIT" ]
null
null
null
leetcode/remove-duplicates-from-sorted-array-ii.cc
Waywrong/leetcode-solution
55115aeab4040f5ff84bdce6ffcfe4a98f879616
[ "MIT" ]
null
null
null
leetcode/remove-duplicates-from-sorted-array-ii.cc
Waywrong/leetcode-solution
55115aeab4040f5ff84bdce6ffcfe4a98f879616
[ "MIT" ]
null
null
null
// Remove Duplicates from Sorted Array II class Solution { public: int removeDuplicates(vector<int>& nums) { if (nums.size() < 3) return nums.size(); int res = 2; for (int i=2; i<nums.size(); i++) if (nums[i] != nums[res-2]) nums[res ++] = nums[i]; r...
26.076923
51
0.501475
Waywrong
965839996ac0a15314ad338778889306508917c5
799
cpp
C++
C++/LeetCode/0064.cpp
Nimesh-Srivastava/DSA
db33aa138f0df8ab6015d2e8ec3ddde1c6838848
[ "MIT" ]
4
2021-08-28T19:16:50.000Z
2022-03-04T19:46:31.000Z
C++/LeetCode/0064.cpp
Nimesh-Srivastava/DSA
db33aa138f0df8ab6015d2e8ec3ddde1c6838848
[ "MIT" ]
8
2021-10-29T19:10:51.000Z
2021-11-03T12:38:00.000Z
C++/LeetCode/0064.cpp
Nimesh-Srivastava/DSA
db33aa138f0df8ab6015d2e8ec3ddde1c6838848
[ "MIT" ]
4
2021-09-06T05:53:07.000Z
2021-12-24T10:31:40.000Z
class Solution { public: int minPathSum(vector<vector<int>>& grid) { int row = grid.size(); int col = grid[0].size(); vector<vector<int>> dp(row, vector<int>(col, 0)); for(int i = 0; i < row; i++){ for(int j = 0; j < col; j++){ ...
27.551724
76
0.305382
Nimesh-Srivastava
965d9a6bf93ab6056fdfdef9b6439480a7ad1472
4,987
cpp
C++
cpp/test/counters/CounterTest.cpp
yukonfb/profilo
baf0ef6e4c140f5b1cdf110b90698f9e8ca7c375
[ "Apache-2.0" ]
null
null
null
cpp/test/counters/CounterTest.cpp
yukonfb/profilo
baf0ef6e4c140f5b1cdf110b90698f9e8ca7c375
[ "Apache-2.0" ]
null
null
null
cpp/test/counters/CounterTest.cpp
yukonfb/profilo
baf0ef6e4c140f5b1cdf110b90698f9e8ca7c375
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2004-present, Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
28.016854
75
0.722278
yukonfb
965fff031c981f9671d0d3af785583b50662e8d9
946
hpp
C++
libs/core/render/include/bksge/core/render/gl/detail/primitive_topology.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
4
2018-06-10T13:35:32.000Z
2021-06-03T14:27:41.000Z
libs/core/render/include/bksge/core/render/gl/detail/primitive_topology.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
566
2017-01-31T05:36:09.000Z
2022-02-09T05:04:37.000Z
libs/core/render/include/bksge/core/render/gl/detail/primitive_topology.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
1
2018-07-05T04:40:53.000Z
2018-07-05T04:40:53.000Z
/** * @file primitive_topology.hpp * * @brief PrimitiveTopology クラスの定義 * * @author myoukaku */ #ifndef BKSGE_CORE_RENDER_GL_DETAIL_PRIMITIVE_TOPOLOGY_HPP #define BKSGE_CORE_RENDER_GL_DETAIL_PRIMITIVE_TOPOLOGY_HPP #include <bksge/core/render/fwd/primitive_topology_fwd.hpp> #include <bksge/core/rende...
18.92
74
0.741015
myoukaku
96687eee874273b28afda7452f3b3524e12d269c
5,327
cpp
C++
src/opt/gundam.cpp
Luberry/passinglink
5f6c337818812b7dd6baad73f7fc0009cc26a5e5
[ "MIT" ]
76
2020-03-09T20:30:59.000Z
2022-03-29T13:39:47.000Z
src/opt/gundam.cpp
Project-Alpaca/passinglink
f259466d2e8aafca6c8511df3b1259156954e907
[ "MIT" ]
24
2020-08-08T23:07:12.000Z
2022-03-31T20:38:07.000Z
src/opt/gundam.cpp
Project-Alpaca/passinglink
f259466d2e8aafca6c8511df3b1259156954e907
[ "MIT" ]
18
2020-07-31T01:23:44.000Z
2022-03-23T01:14:45.000Z
#include "opt/gundam.h" #include <shell/shell.h> #include "input/queue.h" #if defined(CONFIG_PASSINGLINK_BT) #include <bluetooth/bluetooth.h> #include <bluetooth/gatt.h> #include "bt/bt.h" #endif #include <logging/log.h> #define LOG_LEVEL LOG_LEVEL_INF LOG_MODULE_REGISTER(gundam); #if defined(CONFIG_PASSINGLINK_O...
26.502488
98
0.65046
Luberry
9668c17b458731e039b2f1251155f48cf884dcf5
2,040
cpp
C++
src/lcao_wavefunction/lcao_wavefunction__gf_overlap_factor.cpp
violador/catalyst
40d5c1dd04269a0764a9804711354a474bc43c15
[ "Unlicense" ]
null
null
null
src/lcao_wavefunction/lcao_wavefunction__gf_overlap_factor.cpp
violador/catalyst
40d5c1dd04269a0764a9804711354a474bc43c15
[ "Unlicense" ]
null
null
null
src/lcao_wavefunction/lcao_wavefunction__gf_overlap_factor.cpp
violador/catalyst
40d5c1dd04269a0764a9804711354a474bc43c15
[ "Unlicense" ]
null
null
null
// ../src/lcao_wavefunction/lcao_wavefunction__gf_overlap_factor.cpp ------------------- // // // File author: Humberto Jr. // // Date: 10/2013 // // Description: Given two or three unormalized GF exponents, alpha and beta, centered // at atom A and atom B, respectively; or alpha, beta and gamma, centere...
41.632653
93
0.560784
violador
9669850843ce05dc79504459c295642a94b1821a
3,676
cpp
C++
src/lib/top_level/semifields/semifield_flag_orbit_node.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
15
2016-10-27T15:18:28.000Z
2022-02-09T11:13:07.000Z
src/lib/top_level/semifields/semifield_flag_orbit_node.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
4
2019-12-09T11:49:11.000Z
2020-07-30T17:34:45.000Z
src/lib/top_level/semifields/semifield_flag_orbit_node.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
15
2016-06-10T20:05:30.000Z
2020-12-18T04:59:19.000Z
/* * semifield_flag_orbit_node.cpp * * Created on: Apr 17, 2019 * Author: betten */ #include "orbiter.h" using namespace std; namespace orbiter { namespace top_level { semifield_flag_orbit_node::semifield_flag_orbit_node() { downstep_primary_orbit = 0; downstep_secondary_orbit = 0; pt_local = 0; ...
23.414013
80
0.711915
abetten
966b498192a76bcce81cf2ab5c577dd1bbb8372d
8,247
cpp
C++
src/ivorium_graphics/Elements/Image.cpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
3
2021-02-26T02:59:09.000Z
2022-02-08T16:44:21.000Z
src/ivorium_graphics/Elements/Image.cpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
null
null
null
src/ivorium_graphics/Elements/Image.cpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
null
null
null
#include "Image.hpp" #include "../Defs.hpp" namespace iv { Image::Image( Instance * inst ) : Elem( inst ), SlotChild( this ), TranslucentElem( this ), cm( inst, this, "Image", ClientMarker::Status() ), attr_filename( &this->cm, "/ivorium_graphics/empty.png" ), shading( &this->cm ), textur...
27.955932
188
0.594883
ivorne
966d2deb9c74807018858614ea6a231d246b5c1b
2,059
cpp
C++
00-Keypoint_in_WangDao/Chapter_02-List/01-LinkList/00-Basic_LinkList/00-LinkList_Basic_Operation/03-LinkList_Merge/00-LinkList_Merge.cpp
ysl970629/kaoyan_data_structure
d0a469bf0e9e7040de21eca38dc19961aa7e9a53
[ "MIT" ]
2
2021-03-24T03:29:16.000Z
2022-03-29T16:34:30.000Z
00-Keypoint_in_WangDao/Chapter_02-List/01-LinkList/00-Basic_LinkList/00-LinkList_Basic_Operation/03-LinkList_Merge/00-LinkList_Merge.cpp
ysl2/kaoyan-data-structure
d0a469bf0e9e7040de21eca38dc19961aa7e9a53
[ "MIT" ]
null
null
null
00-Keypoint_in_WangDao/Chapter_02-List/01-LinkList/00-Basic_LinkList/00-LinkList_Basic_Operation/03-LinkList_Merge/00-LinkList_Merge.cpp
ysl2/kaoyan-data-structure
d0a469bf0e9e7040de21eca38dc19961aa7e9a53
[ "MIT" ]
null
null
null
#include <cstdlib> #include <iostream> typedef int ElemType; typedef struct LinkNode { ElemType data; struct LinkNode *next; } LinkNode, *LinkList; void outPut(LinkList L) { LinkNode *p = L->next; while (p != NULL) { std::cout << p->data << " "; p = p->next; } std::cout << std:...
20.79798
64
0.478388
ysl970629
966daf453c54569fbcb3ddde71f005e916051547
2,221
hpp
C++
ql/experimental/math/mersennetwister_multithreaded.hpp
universe1987/QuantLib
bbb0145aff285853755b9f6ed013f53a41163acb
[ "BSD-3-Clause" ]
4
2016-03-28T15:05:23.000Z
2020-02-17T23:05:57.000Z
ql/experimental/math/mersennetwister_multithreaded.hpp
universe1987/QuantLib
bbb0145aff285853755b9f6ed013f53a41163acb
[ "BSD-3-Clause" ]
1
2015-02-02T20:32:43.000Z
2015-02-02T20:32:43.000Z
ql/experimental/math/mersennetwister_multithreaded.hpp
pcaspers/quantlib
bbb0145aff285853755b9f6ed013f53a41163acb
[ "BSD-3-Clause" ]
10
2015-01-26T14:50:24.000Z
2015-10-23T07:41:30.000Z
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2015 Peter Caspers This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/o...
37.016667
79
0.772625
universe1987
967c25a79ba911480e420fce42afd2c1e68c7452
1,321
cpp
C++
field/field_base.cpp
085astatine/2Ddiffusion
31d1b82f0ac7854072a1b07aa10f48654968792d
[ "MIT" ]
null
null
null
field/field_base.cpp
085astatine/2Ddiffusion
31d1b82f0ac7854072a1b07aa10f48654968792d
[ "MIT" ]
null
null
null
field/field_base.cpp
085astatine/2Ddiffusion
31d1b82f0ac7854072a1b07aa10f48654968792d
[ "MIT" ]
null
null
null
#include "./field_base.h" namespace field{ // constructor FieldBase::FieldBase( const std::shared_ptr<std::vector<double>>& xPointer, const std::shared_ptr<std::vector<double>>& yPointer, const std::shared_ptr<Eigen::MatrixXd>& zPointer) : x_ptr_(xPointer), y_ptr_(yPoi...
24.462963
65
0.660863
085astatine
967ee230ef9cd7c1ee66d6c61b2ac70933f8fd33
1,347
cpp
C++
Code/Lecture_05/critical.cpp
Alexhuyi/cme213-spring-2021
3cc49d369f1041c0cf4f960cb6efa28c04acdf60
[ "MIT" ]
20
2021-03-26T18:27:47.000Z
2022-03-30T03:00:14.000Z
Code/Lecture_05/critical.cpp
rishucoding/cme213-spring-2021
8758831af9f74c939f2f1170e30dbf72ede8859a
[ "MIT" ]
null
null
null
Code/Lecture_05/critical.cpp
rishucoding/cme213-spring-2021
8758831af9f74c939f2f1170e30dbf72ede8859a
[ "MIT" ]
15
2021-04-02T07:50:41.000Z
2022-03-23T12:45:02.000Z
#include <cstdio> #include <cassert> #include <set> #include <cmath> #include <iostream> #include <fstream> using namespace std; bool is_prime_test(int n) { if (n <= 3) return n > 1; else if ((n % 2 == 0) || (n % 3 == 0)) return false; for (int i = 5; i * i <= n; i += 6) if ((n % ...
21.046875
74
0.495917
Alexhuyi
967f1f0cbe97dee25652a6124bb6b327574c0fc0
3,210
cpp
C++
src/db/db.cpp
divad-nhok/obsidian_fork
e5bee2b706f78249564f06c88a18be086b17c895
[ "MIT" ]
7
2015-01-04T13:50:24.000Z
2022-01-22T01:03:57.000Z
src/db/db.cpp
divad-nhok/obsidian_fork
e5bee2b706f78249564f06c88a18be086b17c895
[ "MIT" ]
1
2018-08-16T00:46:58.000Z
2018-08-16T00:46:58.000Z
src/db/db.cpp
divad-nhok/obsidian_fork
e5bee2b706f78249564f06c88a18be086b17c895
[ "MIT" ]
9
2016-08-31T05:42:00.000Z
2022-01-21T21:37:47.000Z
//! //! Contains implementation of the database structure used for persistent //! storage of the MCMC data. //! //! \file db/db.cpp //! \author Lachlan McCalman //! \date 2014 //! \license Affero General Public License version 3 or later //! \copyright (c) 2014, NICTA //! #include <glog/logging.h> #include "db/db.hpp...
27.435897
114
0.601558
divad-nhok
967f5d15614308935e488d97348ad0654d69c653
1,157
cpp
C++
Assignment 2/server/mainwindow.cpp
chendante/Computer-Networking-Assignments
a97b7067e8fce840fd9e368a12e71ab5eb528ead
[ "Apache-2.0" ]
1
2021-06-16T03:12:33.000Z
2021-06-16T03:12:33.000Z
Assignment 2/server/mainwindow.cpp
chendante/Computer-Networking-Assignments
a97b7067e8fce840fd9e368a12e71ab5eb528ead
[ "Apache-2.0" ]
null
null
null
Assignment 2/server/mainwindow.cpp
chendante/Computer-Networking-Assignments
a97b7067e8fce840fd9e368a12e71ab5eb528ead
[ "Apache-2.0" ]
null
null
null
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QByteArray> #include <QDataStream> #include <QDateTime> #include <QString> #include <QDebug> #include <QJsonObject> #include <QJsonArray> #include <QJsonDocument> #include <QJsonValue> #include <QTcpSocket> #include <QThread> #include "mytcpsocket.h" MainWin...
21.425926
80
0.694036
chendante
968ecd4a39dda38cb8e30871ccc2a5de55a6b5ef
1,875
cpp
C++
code/cpp/RemoveDuplicatesFromSortedArray/RemoveDuplicatesFromSortedArrayTest.cpp
ganquan/leetcode
80d8b4c01c8841e51f677e7a4698c43575afa6d2
[ "Apache-2.0" ]
null
null
null
code/cpp/RemoveDuplicatesFromSortedArray/RemoveDuplicatesFromSortedArrayTest.cpp
ganquan/leetcode
80d8b4c01c8841e51f677e7a4698c43575afa6d2
[ "Apache-2.0" ]
null
null
null
code/cpp/RemoveDuplicatesFromSortedArray/RemoveDuplicatesFromSortedArrayTest.cpp
ganquan/leetcode
80d8b4c01c8841e51f677e7a4698c43575afa6d2
[ "Apache-2.0" ]
null
null
null
#include <gmock/gmock.h> #include <gtest/gtest.h> #include <vector> #include "RemoveDuplicatesFromSortedArray.cpp" using namespace std; // Constraints: // 1 <= nums.length <= 3 * 104 // -100 <= nums[i] <= 100 // nums is sorted in non-decreasing order. class RemoveDuplicatesFromSortedArrayTest : public ::testing::...
22.321429
68
0.613867
ganquan
968ff951bee9ad40431cde2b9a5e2b7fd4d3a12d
14,364
cpp
C++
GameAI.cpp
ButchDean/AntiVirusGame2
51b6cd45a5fea3ddd194769ab8fa4b4f8b1b69b3
[ "BSD-3-Clause" ]
1
2017-09-26T06:26:17.000Z
2017-09-26T06:26:17.000Z
GameAI.cpp
ButchDean/AntiVirusGame2
51b6cd45a5fea3ddd194769ab8fa4b4f8b1b69b3
[ "BSD-3-Clause" ]
null
null
null
GameAI.cpp
ButchDean/AntiVirusGame2
51b6cd45a5fea3ddd194769ab8fa4b4f8b1b69b3
[ "BSD-3-Clause" ]
null
null
null
/*!\file GameAI.cpp * \brief Function to handle NPC behaviour. * \author Dean N. Butcher * \version 2.1 * \date August 2004 */ #include <windows.h> #include <math.h> #include "GameAI.h" #include "FramerateSync.h" /*! The rate at which chains gravitate toward each other or power-ups. */ const float G...
33.797647
165
0.693261
ButchDean
f7b90e74ae714b91fbb72ded989144477802a0ec
4,270
cpp
C++
src/cpp/node.cpp
DDRDmakar/LSCL
f43e3792c11ba65bf404046cc37be418671bffea
[ "Apache-2.0" ]
null
null
null
src/cpp/node.cpp
DDRDmakar/LSCL
f43e3792c11ba65bf404046cc37be418671bffea
[ "Apache-2.0" ]
2
2019-08-29T09:40:52.000Z
2019-10-06T12:30:32.000Z
src/cpp/node.cpp
DDRDmakar/LSCL
f43e3792c11ba65bf404046cc37be418671bffea
[ "Apache-2.0" ]
null
null
null
/* * * Copyright 2019 Nikita Makarevich * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
26.358025
154
0.651522
DDRDmakar
f7bc320399eb46c65c3db519dcc6b512b443c670
311
cpp
C++
extras2/Shapes/main.cpp
stefanaciudin/CommandDefense
cae223bf72019b2098764664be5de2f052d57d6c
[ "MIT" ]
null
null
null
extras2/Shapes/main.cpp
stefanaciudin/CommandDefense
cae223bf72019b2098764664be5de2f052d57d6c
[ "MIT" ]
null
null
null
extras2/Shapes/main.cpp
stefanaciudin/CommandDefense
cae223bf72019b2098764664be5de2f052d57d6c
[ "MIT" ]
null
null
null
#include "Cerc.h" #include "Dreptunghi.h" #include "DreptunghiRotit.h" #include "Forma.h" #include "Forme.h" #include "Oval.h" int main() { Forme f; Cerc c; c.set(10, 10, 100); Oval o; o.set(20, 20, 50, 100); DreptunghiRotit p; p.set(5, 5, 2, 10, 30); f.Add(&c); f.Add(&o); f.Add(&p); f.Paint(); }
14.809524
28
0.598071
stefanaciudin
f7c1ebe78f268fb936659b3d041358f8ce820276
14,899
cpp
C++
template.cpp
Powerman1254/Game
f48be9fc0eb592b310002d6e6d0edc7d05ebe8a2
[ "Unlicense" ]
null
null
null
template.cpp
Powerman1254/Game
f48be9fc0eb592b310002d6e6d0edc7d05ebe8a2
[ "Unlicense" ]
null
null
null
template.cpp
Powerman1254/Game
f48be9fc0eb592b310002d6e6d0edc7d05ebe8a2
[ "Unlicense" ]
null
null
null
// Template, BUAS version https://www.buas.nl/games // IGAD/BUAS(NHTV)/UU - Jacco Bikker - 2006-2020 // Note: // this version of the template uses SDL2 for all frame buffer interaction // see: https://www.libsdl.org #ifdef _MSC_VER #pragma warning (disable : 4530) // complaint about exception handler #pragma...
32.817181
140
0.642258
Powerman1254
f7c33633c8923207367aaa2f7db77e9c101734c2
1,011
cpp
C++
test/optional/bind.cpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
13
2015-02-21T18:35:14.000Z
2019-12-29T14:08:29.000Z
test/optional/bind.cpp
cpreh/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
5
2016-08-27T07:35:47.000Z
2019-04-21T10:55:34.000Z
test/optional/bind.cpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
8
2015-01-10T09:22:37.000Z
2019-12-01T08:31:12.000Z
// Copyright Carl Philipp Reh 2009 - 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <fcppt/catch/begin.hpp> #include <fcppt/catch/end.hpp> #include <fcppt/optional/bind.hpp> ...
31.59375
87
0.69634
freundlich
f7c33e57fa0224e12969cac480d12e4f320435bf
6,361
cc
C++
tensorflow/core/tpu/kernels/xla/segment_reduction_ops.cc
Dynmi/tensorflow
74f953df1b3a3e2f32ffdd0065322a0aa9df53e2
[ "Apache-2.0" ]
1
2020-10-21T08:14:38.000Z
2020-10-21T08:14:38.000Z
tensorflow/core/tpu/kernels/xla/segment_reduction_ops.cc
Dynmi/tensorflow
74f953df1b3a3e2f32ffdd0065322a0aa9df53e2
[ "Apache-2.0" ]
3
2021-08-25T16:13:38.000Z
2022-02-10T02:04:06.000Z
tensorflow/core/tpu/kernels/xla/segment_reduction_ops.cc
Dynmi/tensorflow
74f953df1b3a3e2f32ffdd0065322a0aa9df53e2
[ "Apache-2.0" ]
null
null
null
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
43.568493
80
0.669549
Dynmi
f7d5f7f3b94b9ba05563c949a2d79a0f3c46b745
1,024
cpp
C++
oop-rubook/cp3/3-7.cpp
lymven-io/OOP
dd4f8487c15b4b58c7d24b0f7c0f0ad90b9ee54a
[ "MIT" ]
null
null
null
oop-rubook/cp3/3-7.cpp
lymven-io/OOP
dd4f8487c15b4b58c7d24b0f7c0f0ad90b9ee54a
[ "MIT" ]
null
null
null
oop-rubook/cp3/3-7.cpp
lymven-io/OOP
dd4f8487c15b4b58c7d24b0f7c0f0ad90b9ee54a
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; class A { int row, col; int **a; public: A() { a = 0; row = col = 0; } A(int r, int c); ~A(); void set(); void show(); }; A::A(int r, int c) { row = r; col = c; a = new int *[row];...
17.964912
70
0.337891
lymven-io
f7e59177fa61a301bc2dce220226205c0a2ec2a0
356
cpp
C++
src/eexception/eexcp.cpp
PowerAngelXD/EytionLang
fb270724b6336d4fc947496cfe702da52b64047f
[ "MIT" ]
6
2021-10-17T07:10:23.000Z
2022-01-16T05:05:05.000Z
src/eexception/eexcp.cpp
PowerAngelXD/EytionLang
fb270724b6336d4fc947496cfe702da52b64047f
[ "MIT" ]
null
null
null
src/eexception/eexcp.cpp
PowerAngelXD/EytionLang
fb270724b6336d4fc947496cfe702da52b64047f
[ "MIT" ]
null
null
null
#include "eexcp.h" using namespace eexcp; EyparseError::EyparseError(string title, string content, int line ,int col){ message = (string)("EytionError {" + title + "}: " + content + "\nline: " + to_string(line) + "\ncol: " + to_string(col)); } EyparseError::~EyparseError() throw() {} const char* EyparseError::w...
27.384615
126
0.660112
PowerAngelXD
f7e8f4131dec4b37267f3d500aa6b53c515cda73
1,793
cpp
C++
Inheritance/Inheritance.cpp
rastabrandy02/Programming2
8dba0e75c01dc884df09f19bcacf1140ca9ca501
[ "MIT" ]
null
null
null
Inheritance/Inheritance.cpp
rastabrandy02/Programming2
8dba0e75c01dc884df09f19bcacf1140ca9ca501
[ "MIT" ]
null
null
null
Inheritance/Inheritance.cpp
rastabrandy02/Programming2
8dba0e75c01dc884df09f19bcacf1140ca9ca501
[ "MIT" ]
1
2021-02-22T08:43:48.000Z
2021-02-22T08:43:48.000Z
#include <iostream> using namespace std; class Building { protected: string name; public: Building() {}; Building(string name) { this->name = name; } string GetName() { return name; } ~Building() {}; }; class Warehouse : public Building { private: int wood; int rocks; int wheat; public: Warehouse(...
16.757009
62
0.587284
rastabrandy02
f7eb0cab88c4315bf00c753eb4e27b86c477cf51
295
hpp
C++
src/3d/private/gltf.hpp
kochol/ari2
ca185191531acc1954cd4acfec2137e32fdb5c2d
[ "MIT" ]
81
2018-12-11T20:48:41.000Z
2022-03-18T22:24:11.000Z
src/3d/private/gltf.hpp
kochol/ari2
ca185191531acc1954cd4acfec2137e32fdb5c2d
[ "MIT" ]
7
2020-04-19T11:50:39.000Z
2021-11-12T16:08:53.000Z
src/3d/private/gltf.hpp
kochol/ari2
ca185191531acc1954cd4acfec2137e32fdb5c2d
[ "MIT" ]
4
2019-04-24T11:51:29.000Z
2021-03-10T05:26:33.000Z
#pragma once #include "core/string/String.hpp" #include <functional> #include "en/ComponentHandle.hpp" #include "3d/Node3D.hpp" namespace ari::en { void LoadGltfScene(const core::String& _path, std::function<void(core::Array<ComponentHandle<Node3D>>)> OnModel); } // namespace ari::en
24.583333
117
0.728814
kochol
f7ef973d849fb5ebc567f36ec2c246873cada16d
1,361
hpp
C++
libraries/chain/include/graphene/chain/protocol/greatrace_parameters.hpp
finteh/crowdwiz-core
d0d2b5e2294c74da5b7304fd76ddab9cc87c18e5
[ "MIT" ]
8
2020-11-29T20:19:52.000Z
2021-11-02T21:01:41.000Z
libraries/chain/include/graphene/chain/protocol/greatrace_parameters.hpp
finteh/crowdwiz-core
d0d2b5e2294c74da5b7304fd76ddab9cc87c18e5
[ "MIT" ]
5
2021-03-06T10:58:34.000Z
2021-08-07T09:51:09.000Z
libraries/chain/include/graphene/chain/protocol/greatrace_parameters.hpp
finteh/crowdwiz-core
d0d2b5e2294c74da5b7304fd76ddab9cc87c18e5
[ "MIT" ]
5
2020-10-22T17:01:27.000Z
2022-02-02T12:53:47.000Z
#pragma once #include <graphene/chain/protocol/base.hpp> #include <graphene/chain/protocol/types.hpp> namespace graphene { namespace chain { struct greatrace_chain_parameters { uint32_t vote_duration = (24*60*60); uint8_t min_team_status = 4; share_type min_team_volume = 0; share_type min_gr_bet...
23.465517
75
0.700955
finteh
f7fa7934a0f3e34c508e7aa19326aeaadf2bdafe
4,723
cpp
C++
test/function/functions_test.cpp
phisiart/peloton
c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc
[ "Apache-2.0" ]
1
2017-04-17T15:19:36.000Z
2017-04-17T15:19:36.000Z
test/function/functions_test.cpp
phisiart/peloton
c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc
[ "Apache-2.0" ]
5
2017-04-23T17:16:14.000Z
2017-04-25T03:14:16.000Z
test/function/functions_test.cpp
phisiart/peloton-p3
c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc
[ "Apache-2.0" ]
null
null
null
//===----------------------------------------------------------------------===// // // Peloton // // functions_test.cpp // // Identification: test/function/functions_test.cpp // // Copyright (c) 2015-2017, Carnegie Mellon University Database Group // //===----------------------------------------...
35.780303
80
0.688545
phisiart
f7fc3344cc6a11d68e99912d77da7c59118f4d1a
1,060
cc
C++
02_ArrayPointer/PointerFunctions.cc
pataya235/UdemyCpp_Template-main
46583e2d252005eaba3a8a6f04b112454722e315
[ "MIT" ]
null
null
null
02_ArrayPointer/PointerFunctions.cc
pataya235/UdemyCpp_Template-main
46583e2d252005eaba3a8a6f04b112454722e315
[ "MIT" ]
null
null
null
02_ArrayPointer/PointerFunctions.cc
pataya235/UdemyCpp_Template-main
46583e2d252005eaba3a8a6f04b112454722e315
[ "MIT" ]
null
null
null
#include <iostream> using std::cin; using std::cout; using std::endl; //Call by Value (local copy) void f(int *p_function) { cout << "(F): p_function = " << p_function << endl; cout << "(F): &p_function = " << &p_function << endl; //Other adress as p_number } //Call by Reference (ab Übergabe von Argumenten > ...
19.272727
84
0.566038
pataya235
f7fd68aa525880face4a8f077500d30963e1fc46
456
cpp
C++
ViAn/GUI/DrawingItems/lineitem.cpp
NFCSKL/NFC-ViAn
ce04b78b4c9695374d71198f57d4236a5cad1525
[ "MIT" ]
1
2019-12-08T03:53:03.000Z
2019-12-08T03:53:03.000Z
ViAn/GUI/DrawingItems/lineitem.cpp
NFCSKL/NFC-ViAn
ce04b78b4c9695374d71198f57d4236a5cad1525
[ "MIT" ]
182
2018-02-08T11:03:26.000Z
2019-06-27T15:27:47.000Z
ViAn/GUI/DrawingItems/lineitem.cpp
NFCSKL/NFC-ViAn
ce04b78b4c9695374d71198f57d4236a5cad1525
[ "MIT" ]
null
null
null
#include "lineitem.h" LineItem::LineItem(Line* line) : ShapeItem(LINE_ITEM) { m_line = line; setFlags(flags() | Qt::ItemIsDragEnabled); setText(0, line->get_name()); const QIcon line_icon(":/Icons/line.png"); setIcon(0, line_icon); map = QPixmap(16,16); update_shape_color(); update_sho...
20.727273
55
0.651316
NFCSKL
7904824af205e1bfc436f0b933814d959fcbde9e
110
cpp
C++
AnimationProgramming/AnimationProgramming/AnimationProgramming.cpp
maxbrundev/OpenGL-Skeletal-Animation
4a0981dc222d4195663b180eaa5a4288aab7477c
[ "MIT" ]
null
null
null
AnimationProgramming/AnimationProgramming/AnimationProgramming.cpp
maxbrundev/OpenGL-Skeletal-Animation
4a0981dc222d4195663b180eaa5a4288aab7477c
[ "MIT" ]
null
null
null
AnimationProgramming/AnimationProgramming/AnimationProgramming.cpp
maxbrundev/OpenGL-Skeletal-Animation
4a0981dc222d4195663b180eaa5a4288aab7477c
[ "MIT" ]
null
null
null
#include "CSimulation.h" int main() { CSimulation simulation; Run(&simulation, 1400, 800); return 0; }
12.222222
29
0.672727
maxbrundev
79088f2cc4556cb5994df5d525a416b19d17a8ca
68
cpp
C++
accumulate.cpp
Abodi-Massarweh/itertools-cfar-a
464b54f7c18c3687a7f729b2f1811901edcdaf55
[ "MIT" ]
null
null
null
accumulate.cpp
Abodi-Massarweh/itertools-cfar-a
464b54f7c18c3687a7f729b2f1811901edcdaf55
[ "MIT" ]
null
null
null
accumulate.cpp
Abodi-Massarweh/itertools-cfar-a
464b54f7c18c3687a7f729b2f1811901edcdaf55
[ "MIT" ]
null
null
null
// // Created by abodi on 13/06/2020. // #include "accumulate.hpp"
11.333333
34
0.647059
Abodi-Massarweh
790e9571bb0395b770d873e2c3afff6fc57787f1
917
hpp
C++
lab/tmp_test.hpp
sabel83/metaparse_tutorial
819fddf6bf06736861adbeabeb30967f56b7e8d0
[ "BSL-1.0" ]
24
2015-07-14T01:56:03.000Z
2021-09-16T07:48:46.000Z
lab/tmp_test.hpp
sabel83/metaparse_tutorial
819fddf6bf06736861adbeabeb30967f56b7e8d0
[ "BSL-1.0" ]
1
2017-10-01T12:31:25.000Z
2017-10-04T12:16:47.000Z
lab/tmp_test.hpp
sabel83/metaparse_tutorial
819fddf6bf06736861adbeabeb30967f56b7e8d0
[ "BSL-1.0" ]
2
2017-08-22T20:31:11.000Z
2019-02-23T07:32:29.000Z
#ifndef TMP_TEST_HPP #define TMP_TEST_HPP // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/type_traits/is_same.hpp> #include <i...
21.325581
78
0.672846
sabel83
7910a61296b73c3d4877c1667ee4463a409d4363
642
hpp
C++
include/system/ActionCreator.hpp
thebartekbanach/simple-aqua-controller
338331072155b9f98fb07b6a1e31e6d3c1f650fa
[ "MIT" ]
1
2019-11-18T13:22:57.000Z
2019-11-18T13:22:57.000Z
include/system/ActionCreator.hpp
thebartekbanach/simple-aqua-controller
338331072155b9f98fb07b6a1e31e6d3c1f650fa
[ "MIT" ]
null
null
null
include/system/ActionCreator.hpp
thebartekbanach/simple-aqua-controller
338331072155b9f98fb07b6a1e31e6d3c1f650fa
[ "MIT" ]
null
null
null
#pragma once #include <RtcDS1302.h> #include <LiquidCrystal_PCF8574.h> #include "../control/joystick/JoystickActions.hpp" class ActionCreator { public: virtual ~ActionCreator() {}; virtual void setup(LiquidCrystal_PCF8574* lcd) = 0; virtual ActionCreator* update(const RtcDateTime &time, ...
24.692308
98
0.674455
thebartekbanach
79175dc9d7605437a47bddccdbd0c9609900bdba
1,991
hpp
C++
include/ui/List.hpp
charanyaarvind/StratifyAPI
adfd1bc8354489378d53c6acd77ebedad5790b4f
[ "BSD-3-Clause" ]
null
null
null
include/ui/List.hpp
charanyaarvind/StratifyAPI
adfd1bc8354489378d53c6acd77ebedad5790b4f
[ "BSD-3-Clause" ]
null
null
null
include/ui/List.hpp
charanyaarvind/StratifyAPI
adfd1bc8354489378d53c6acd77ebedad5790b4f
[ "BSD-3-Clause" ]
null
null
null
/* Copyright 2014-2016 Tyler Gilbert, Inc; All Rights Reserved * */ #ifndef UI_LIST_HPP_ #define UI_LIST_HPP_ #include "../draw/Animation.hpp" #include "../chrono/Timer.hpp" #include "LinkedElement.hpp" #include "ListAttr.hpp" namespace ui { /*! \brief List Class * \ingroup list * \details The List class makes...
28.042254
106
0.741838
charanyaarvind
792572a03a875982d5a124af4aa5b18aed4043bb
5,716
cpp
C++
UI-Qt/QXMenuBar.cpp
frinkr/FontViewer
69b5706e557ecd33515c5c8d6ba8fc1d6f06e0c0
[ "MIT" ]
2
2019-05-08T06:31:34.000Z
2020-08-30T00:35:09.000Z
UI-Qt/QXMenuBar.cpp
frinkr/FontViewer
69b5706e557ecd33515c5c8d6ba8fc1d6f06e0c0
[ "MIT" ]
1
2018-05-07T09:29:02.000Z
2018-05-07T09:29:02.000Z
UI-Qt/QXMenuBar.cpp
frinkr/FontViewer
69b5706e557ecd33515c5c8d6ba8fc1d6f06e0c0
[ "MIT" ]
2
2018-09-10T07:16:28.000Z
2022-01-07T06:41:01.000Z
#include "QXMenuBar.h" #include "QXApplication.h" #include "QXDocumentWindowManager.h" QXMenuBar::QXMenuBar(QWidget * parent) : QMenuBar(parent) { menuFile = addMenu(tr("&File")); { actionOpen = menuFile->addAction(tr("&Open"), []() { QXDocumentWindowManager::instance()->showFontListWindow(...
37.854305
119
0.595346
frinkr
7928cfd3ae9e6ddb440f6599fd9b7e1c41689000
6,985
cpp
C++
cppbind/header.cpp
findstr/zproto
be310b698b993a9018e64c56aabb000da836df97
[ "MIT" ]
8
2017-06-02T12:12:10.000Z
2020-09-19T11:25:51.000Z
cppbind/header.cpp
findstr/zproto
be310b698b993a9018e64c56aabb000da836df97
[ "MIT" ]
null
null
null
cppbind/header.cpp
findstr/zproto
be310b698b993a9018e64c56aabb000da836df97
[ "MIT" ]
6
2016-01-09T14:23:13.000Z
2020-11-17T07:23:55.000Z
#include <assert.h> #include <vector> #include <string> #include <sstream> #include <unordered_set> #include "zproto.hpp" #include "header.h" static std::unordered_set<struct zproto_struct *> protocol; static std::unordered_set<struct zproto_struct *> defined; struct prototype_args { int level; std::vector<std::st...
23.439597
84
0.646528
findstr
79309ab3a8919e190dd911fefe0cf0ad5a19b2f1
552
hpp
C++
include/warbler/ast/expression/prefix.hpp
ikehirzel/c-spiel
44a465ae40b04145046979d30c14ec8266dc463f
[ "MIT" ]
null
null
null
include/warbler/ast/expression/prefix.hpp
ikehirzel/c-spiel
44a465ae40b04145046979d30c14ec8266dc463f
[ "MIT" ]
null
null
null
include/warbler/ast/expression/prefix.hpp
ikehirzel/c-spiel
44a465ae40b04145046979d30c14ec8266dc463f
[ "MIT" ]
null
null
null
#ifndef WARBLER_AST_EXPRESSION_PREFIX_HPP #define WARBLER_AST_EXPRESSION_PREFIX_HPP // local headers #include <warbler/token.hpp> #include <warbler/result.hpp> namespace warbler { enum PrefixType { PREFIX_INCREMENT, PREFIX_DECREMENT, PREFIX_REFERENCE, PREFIX_DEREFERENCE }; class Prefix { private: Pr...
15.333333
69
0.755435
ikehirzel
a6adbd50af976d369de4071ac5f3116ceac6eb5d
1,123
cpp
C++
OpenGLSolution/BRDF/Source/Graphics/Core/PixarAttenuation.cpp
AlfonsoLRz/BRDFMeasurements
1c83db1dcd0e42d75422dec31486bfbf70df9112
[ "MIT" ]
14
2021-08-23T04:59:21.000Z
2022-03-25T10:34:55.000Z
OpenGLSolution/BRDF/Source/Graphics/Core/PixarAttenuation.cpp
AlfonsoLRz/BRDFMeasurements
1c83db1dcd0e42d75422dec31486bfbf70df9112
[ "MIT" ]
null
null
null
OpenGLSolution/BRDF/Source/Graphics/Core/PixarAttenuation.cpp
AlfonsoLRz/BRDFMeasurements
1c83db1dcd0e42d75422dec31486bfbf70df9112
[ "MIT" ]
6
2021-08-05T17:10:10.000Z
2022-03-31T17:26:47.000Z
#include "stdafx.h" #include "PixarAttenuation.h" void PixarAttenuation::applyAttenuation(Light* light, RenderingShader* shader) { auto coefficients = light->getKCoefficients(); shader->setSubroutineUniform(GL_FRAGMENT_SHADER, "attenuationUniform", "pixarAttenuation"); shader->setUniform("fMax", light->getMaxAttF...
36.225806
93
0.756011
AlfonsoLRz
a6aec947e605ca7a3ef20347bf11bec46a335d1b
2,536
cpp
C++
src/Engine/Utils/Ini/INIReader.cpp
avraal/Projector
bb234f03ccf34ed829a130c664b7adad400653f4
[ "Zlib" ]
null
null
null
src/Engine/Utils/Ini/INIReader.cpp
avraal/Projector
bb234f03ccf34ed829a130c664b7adad400653f4
[ "Zlib" ]
null
null
null
src/Engine/Utils/Ini/INIReader.cpp
avraal/Projector
bb234f03ccf34ed829a130c664b7adad400653f4
[ "Zlib" ]
null
null
null
#include <algorithm> #include "INIReader.hpp" #include "ini.hpp" INIReader::INIReader(const std::string &fileName) { _error = ini_parse(fileName.c_str(), ValueHandler, this); } int INIReader::ParseError() const { return _error; } std::string INIReader::Get(const std::string &section, const std::string &name, co...
33.368421
118
0.645505
avraal
a6b7528d1d624725d1b3d1789a538101c7498502
809
hpp
C++
src/Game.hpp
Ghabriel/ecs-arkanoid
af005bc89ce535616c7a006c7c76b2a414c90901
[ "Apache-2.0" ]
1
2019-07-12T04:54:44.000Z
2019-07-12T04:54:44.000Z
src/Game.hpp
Ghabriel/ecs-arkanoid
af005bc89ce535616c7a006c7c76b2a414c90901
[ "Apache-2.0" ]
null
null
null
src/Game.hpp
Ghabriel/ecs-arkanoid
af005bc89ce535616c7a006c7c76b2a414c90901
[ "Apache-2.0" ]
null
null
null
#pragma once #include <memory> #include <SFML/Graphics.hpp> #include "engine-glue/ecs.hpp" #include "engine/state-management/StateMachine.hpp" #include "states/RunningState.hpp" #include "states/WaitingState.hpp" class Game { public: void init(float width, float height) { stateMachine.registerState("wait...
26.966667
99
0.703337
Ghabriel
a6b9bf47555c24aaf2eb266a7d9b26cf60c64e68
1,536
cpp
C++
example/simple_benchmark.cpp
RoadAR/benchmark
00f9bd742953b12128ca2c565fb41aca5cd1f97f
[ "Apache-2.0" ]
5
2022-02-12T13:38:42.000Z
2022-02-28T16:54:27.000Z
example/simple_benchmark.cpp
RoadAR/benchmark
00f9bd742953b12128ca2c565fb41aca5cd1f97f
[ "Apache-2.0" ]
null
null
null
example/simple_benchmark.cpp
RoadAR/benchmark
00f9bd742953b12128ca2c565fb41aca5cd1f97f
[ "Apache-2.0" ]
null
null
null
// // Created by Alexander Graschenkov on 11.02.2022. // #include <iostream> #include <chrono> #include <thread> #include <roadar/benchmark.hpp> //using namespace roadar; inline void sleep_ms(long long val) { std::this_thread::sleep_for(std::chrono::milliseconds(val)); } void algorithm1() { R_BENCHMARK_SCOPED_...
21.942857
72
0.636719
RoadAR
a6c6f0b107e7834958ced169a9c43456fe628137
447
cpp
C++
04_cpp_fundamentals_2/code/01_file_io.cpp
estimand/intro-to-cpp
adab5eddc9ee66e4da940a4cb80249569749d53c
[ "CC-BY-4.0" ]
null
null
null
04_cpp_fundamentals_2/code/01_file_io.cpp
estimand/intro-to-cpp
adab5eddc9ee66e4da940a4cb80249569749d53c
[ "CC-BY-4.0" ]
null
null
null
04_cpp_fundamentals_2/code/01_file_io.cpp
estimand/intro-to-cpp
adab5eddc9ee66e4da940a4cb80249569749d53c
[ "CC-BY-4.0" ]
3
2017-12-13T10:07:06.000Z
2021-02-07T07:36:31.000Z
#include <fstream> #include <iostream> using namespace std; int main() { ifstream input("01_input.txt"); // Default mode: ios::in if (!input) { cerr << "Unable to open input file" << endl; return 1; } ofstream output("01_output.txt"); // Default mode: ios::out | ios::trunc int n;...
15.964286
76
0.541387
estimand
a6cda9e87e5522a59a5fb87d743c0f3515b3934b
3,821
cpp
C++
plugins/FCNPC-master/src/CPlayerManager.cpp
vmgeremias/sampserver
3117254be340c9f92211246986146626822a4db6
[ "BSD-3-Clause" ]
null
null
null
plugins/FCNPC-master/src/CPlayerManager.cpp
vmgeremias/sampserver
3117254be340c9f92211246986146626822a4db6
[ "BSD-3-Clause" ]
null
null
null
plugins/FCNPC-master/src/CPlayerManager.cpp
vmgeremias/sampserver
3117254be340c9f92211246986146626822a4db6
[ "BSD-3-Clause" ]
null
null
null
/* ========================================= FCNPC - Fully Controllable NPC ---------------------- - File: PlayerManager.cpp - Author(s): OrMisicL =========================================*/ #include "Main.hpp" extern CServer *pServer; bool bCreated = false; CPlayerManager::CPlayerManager() { for...
22.476471
141
0.695891
vmgeremias
a6d859b202e2158b4649c227de8bf56a845b5c13
2,781
cpp
C++
LeetCode/587. Erect the Fence.cpp
anubhawbhalotia/Competitive-Programming
32d7003abf9af4999b3dfa78fe1df9022ebbf50b
[ "MIT" ]
null
null
null
LeetCode/587. Erect the Fence.cpp
anubhawbhalotia/Competitive-Programming
32d7003abf9af4999b3dfa78fe1df9022ebbf50b
[ "MIT" ]
null
null
null
LeetCode/587. Erect the Fence.cpp
anubhawbhalotia/Competitive-Programming
32d7003abf9af4999b3dfa78fe1df9022ebbf50b
[ "MIT" ]
1
2020-05-20T18:36:31.000Z
2020-05-20T18:36:31.000Z
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ll> vl; typedef pair<int,int> pi; typedef pair<ll,ll> pl; typedef set<int> si; typedef set<ll> sl; typedef multiset<int> msi; typedef multiset<ll> msl; #define fi first #define se second #d...
27.264706
92
0.460985
anubhawbhalotia
a6dc6404df3ed219eb9d63cb59d8a9726db57fb5
250
cpp
C++
ch0104/ch0104_10.cpp
sun1218/openjudge
07e44235fc6ac68bf8e8125577dcd008b08d59ec
[ "MIT" ]
null
null
null
ch0104/ch0104_10.cpp
sun1218/openjudge
07e44235fc6ac68bf8e8125577dcd008b08d59ec
[ "MIT" ]
null
null
null
ch0104/ch0104_10.cpp
sun1218/openjudge
07e44235fc6ac68bf8e8125577dcd008b08d59ec
[ "MIT" ]
1
2021-05-16T13:36:06.000Z
2021-05-16T13:36:06.000Z
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main(void) { int n1,n2; scanf("%d%d",&n1,&n2); if (n1<60&&n2<60){ printf("0"); } else if (n1<60||n2<60){ printf("1"); } else{ printf("0"); } return 0; }
12.5
24
0.568
sun1218
a6e29a77798707fc75b8bbab75be7b63e1884ef3
9,451
hpp
C++
Include/Injector/Mathematics/Matrix3.hpp
InjectorGames/Inject
09e74a83c287b81fd8272c10d6bae2b1aa785c0e
[ "BSD-3-Clause" ]
2
2019-12-10T16:26:58.000Z
2020-04-17T11:47:42.000Z
Include/Injector/Mathematics/Matrix3.hpp
InjectorGames/Inject
09e74a83c287b81fd8272c10d6bae2b1aa785c0e
[ "BSD-3-Clause" ]
28
2020-08-17T12:39:50.000Z
2020-11-16T20:42:50.000Z
Include/Injector/Mathematics/Matrix3.hpp
InjectorGames/InjectorEngine
09e74a83c287b81fd8272c10d6bae2b1aa785c0e
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include "Injector/Mathematics/Matrix2.hpp" #include "Injector/Mathematics/Vector3.hpp" namespace Injector { template<class T = float> struct Matrix3 final { T m00, m01, m02; T m10, m11, m12; T m20, m21, m22; Matrix3() noexcept : m00(static_cast<T>(1)), m01(static_cast<T>(0)), m02(s...
23.22113
59
0.60438
InjectorGames
a6eb7c3696c885d67b2af4dc6ec1e72b67f269fa
11,912
cpp
C++
libs/RplidarConnector.cpp
badpaybad/rplidaropencv
5a8d98280c3ac29f1a140982d769884d6d1fb85f
[ "MIT" ]
null
null
null
libs/RplidarConnector.cpp
badpaybad/rplidaropencv
5a8d98280c3ac29f1a140982d769884d6d1fb85f
[ "MIT" ]
null
null
null
libs/RplidarConnector.cpp
badpaybad/rplidaropencv
5a8d98280c3ac29f1a140982d769884d6d1fb85f
[ "MIT" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <string> #include <iostream> #include "rplidar.h" //RPLIDAR standard sdk, all-in-one header #include <math.h> #include <cmath> #include <chrono> #include <ctime> #include <thread> #include <mutex> #include <functional> #include "common.h" #include "...
33.55493
169
0.465329
badpaybad
a6f205dbb1a696ba8603aa9a223c22b3a3061fa2
841
hpp
C++
SDK/ARKSurvivalEvolved_BossArenaManager_Spider_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
10
2020-02-17T19:08:46.000Z
2021-07-31T11:07:19.000Z
SDK/ARKSurvivalEvolved_BossArenaManager_Spider_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
9
2020-02-17T18:15:41.000Z
2021-06-06T19:17:34.000Z
SDK/ARKSurvivalEvolved_BossArenaManager_Spider_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
3
2020-07-22T17:42:07.000Z
2021-06-19T17:16:13.000Z
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_BossArenaManager_Spider_structs.hpp" namespace sdk { //--------------------------------------------------------------------------- //Classes //-------------------------------------------------...
21.025
116
0.649227
2bite
a6f294997cf2f989f8396cca5e188dd28b103eca
1,392
cpp
C++
FRBDK/BitmapFontGenerator/source/ac_image.cpp
patridge/FlatRedBall
01e0212afeb977a10244796494dcaf9c800a3770
[ "MIT" ]
110
2016-01-14T14:46:16.000Z
2022-03-27T19:00:48.000Z
FRBDK/BitmapFontGenerator/source/ac_image.cpp
patridge/FlatRedBall
01e0212afeb977a10244796494dcaf9c800a3770
[ "MIT" ]
471
2016-08-21T14:48:15.000Z
2022-03-31T20:22:50.000Z
FRBDK/BitmapFontGenerator/source/ac_image.cpp
patridge/FlatRedBall
01e0212afeb977a10244796494dcaf9c800a3770
[ "MIT" ]
33
2016-01-25T23:30:03.000Z
2022-02-18T07:24:45.000Z
#include <string.h> #include "ac_image.h" #define FAIL(r) {returnCode = (r); goto cleanup;} cImage::cImage() { pixels = 0; width = 0; height = 0; isTopDown = true; } cImage::cImage(int width, int height) { pixels = new PIXEL[width*height]; if( pixels ) { this->width = width; this->height = height; } el...
17.4
91
0.614224
patridge
a6f6d9b79a25c99a4c4b87626b72b1145617a24b
914
hpp
C++
cc/vision/tag.hpp
PEQUI-VSSS/VSSS-EMC
0c2b61e308f754ca91df52e46ba48828168223df
[ "MIT" ]
9
2017-07-18T12:37:09.000Z
2018-05-01T14:41:48.000Z
cc/vision/tag.hpp
PEQUI-MEC/VSSS-EMC
0c2b61e308f754ca91df52e46ba48828168223df
[ "MIT" ]
31
2018-07-31T13:10:01.000Z
2022-03-26T16:00:25.000Z
cc/vision/tag.hpp
PEQUI-MEC/VSSS-EMC
0c2b61e308f754ca91df52e46ba48828168223df
[ "MIT" ]
2
2017-10-01T16:09:20.000Z
2018-05-01T17:39:59.000Z
#ifndef TAG_HPP_ #define TAG_HPP_ #include "opencv2/opencv.hpp" #include <iostream> #include <vector> #define ROBOT_RADIUS 17 // valor encontrado empiricamente (quanto menor, mais próximos os robôs podem ficar sem dar errado) class Tag { public: cv::Point position; cv::Point frontPoint; cv::Point rearPoint; ...
22.85
123
0.683807
PEQUI-VSSS
a6fdf19c225b356e9478ea73bd99e394adfeda17
129
cpp
C++
boards/px4/sitl/src/spi.cpp
Diksha-agg/Firmware_val
1efc1ba06997d19df3ed9bd927cfb24401b0fe03
[ "BSD-3-Clause" ]
null
null
null
boards/px4/sitl/src/spi.cpp
Diksha-agg/Firmware_val
1efc1ba06997d19df3ed9bd927cfb24401b0fe03
[ "BSD-3-Clause" ]
null
null
null
boards/px4/sitl/src/spi.cpp
Diksha-agg/Firmware_val
1efc1ba06997d19df3ed9bd927cfb24401b0fe03
[ "BSD-3-Clause" ]
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:de102294106dac5ca236ec401b7442ac5cb6d82b5e3606dd25025633a2416c22 size 1875
32.25
75
0.883721
Diksha-agg
4706b0bb91bf80a66bae7d29d377f67e219977ea
734
hpp
C++
Server/common/SharedMemoryQueue.hpp
grasmanek94/PT34-2016NJ
7888976b0810a89f3d564498614b15ab0baca096
[ "MIT" ]
null
null
null
Server/common/SharedMemoryQueue.hpp
grasmanek94/PT34-2016NJ
7888976b0810a89f3d564498614b15ab0baca096
[ "MIT" ]
null
null
null
Server/common/SharedMemoryQueue.hpp
grasmanek94/PT34-2016NJ
7888976b0810a89f3d564498614b15ab0baca096
[ "MIT" ]
null
null
null
#ifndef IPCQUEUE_H #define IPCQUEUE_H #include <semaphore.h> #include <string> #include "SharedMemoryQueueMessage.hpp" #include "RawQueue.hpp" class SharedMemoryQueue { private: RawQueue* queue_shared_memory; sem_t* queue_operation_semaphore; sem_t* memory_prepare_semaphore; int shm_fd; std::string queue_name; ...
19.315789
50
0.777929
grasmanek94
470d5d5efb557d2bcc3423201f8146f9c9fc5584
9,120
hpp
C++
med/set.hpp
Denis-G-P/med
eca046fd49e4bb12135a0263e4d4a59ed45bfb7f
[ "MIT" ]
null
null
null
med/set.hpp
Denis-G-P/med
eca046fd49e4bb12135a0263e4d4a59ed45bfb7f
[ "MIT" ]
null
null
null
med/set.hpp
Denis-G-P/med
eca046fd49e4bb12135a0263e4d4a59ed45bfb7f
[ "MIT" ]
null
null
null
/** @file set IE container - tagged elements in any order @copyright Denis Priyomov 2016-2017 Distributed under the MIT License (See accompanying file LICENSE or visit https://github.com/cppden/med) */ #pragma once #include "config.hpp" #include "exception.hpp" #include "optional.hpp" #include "container.hpp" #inclu...
30
129
0.672259
Denis-G-P
4715c714b632932e1e01975935371c49b88838c1
10,782
cpp
C++
unittests/performance.tests.cpp
attcs/Octree
67cbb925bee3609ae18a977ad7162e38efefad00
[ "MIT" ]
4
2022-01-22T09:34:44.000Z
2022-02-13T12:18:33.000Z
unittests/performance.tests.cpp
attcs/Octree
67cbb925bee3609ae18a977ad7162e38efefad00
[ "MIT" ]
null
null
null
unittests/performance.tests.cpp
attcs/Octree
67cbb925bee3609ae18a977ad7162e38efefad00
[ "MIT" ]
null
null
null
#include "pch.h" using namespace OrthoTree; #ifdef _M_X64 namespace PerformaceTest { #ifdef _DEBUG autoce N1M = 1000; #else autoce N1M = 1000000; #endif // _DEBUG autoce rMax = 8.0; template<size_t nDim> static constexpr BoundingBoxND<nDim> CreateBox(PointND<nDim> const& pt, double size) { using A...
29.378747
120
0.634205
attcs
4715e18a2e95bf27a067cf2b8c4419a052924d00
4,924
cpp
C++
Engine/src/Platform/GraphicsAPI/DirectX/dxBuffers.cpp
Light3039/Light
cc4fc0293164ca48efdc833d0054d3ff8e60b65d
[ "Apache-2.0" ]
23
2021-05-23T10:13:55.000Z
2022-03-24T14:49:30.000Z
Engine/src/Platform/GraphicsAPI/DirectX/dxBuffers.cpp
Light3039/Light
cc4fc0293164ca48efdc833d0054d3ff8e60b65d
[ "Apache-2.0" ]
1
2021-09-07T12:26:33.000Z
2021-09-27T19:06:00.000Z
Engine/src/Platform/GraphicsAPI/DirectX/dxBuffers.cpp
Light3039/Light
cc4fc0293164ca48efdc833d0054d3ff8e60b65d
[ "Apache-2.0" ]
3
2021-05-30T17:31:47.000Z
2021-09-20T06:42:39.000Z
#include "dxBuffers.h" #include "dxSharedContext.h" namespace Light { //======================================== CONSTANT_BUFFER ========================================// dxConstantBuffer::dxConstantBuffer(ConstantBufferIndex index, unsigned int size, Ref<dxSharedContext> sharedContext) : m_Context(sharedContext...
28.964706
125
0.623071
Light3039
4717979c7beff3864ffdc112727ef20b9a2a89a1
600
hpp
C++
src/libtgcat/cache.hpp
artkulak/telegram_categorization_2
4362b9575899443ed538288a52b0bf6da6b9964b
[ "Unlicense" ]
null
null
null
src/libtgcat/cache.hpp
artkulak/telegram_categorization_2
4362b9575899443ed538288a52b0bf6da6b9964b
[ "Unlicense" ]
null
null
null
src/libtgcat/cache.hpp
artkulak/telegram_categorization_2
4362b9575899443ed538288a52b0bf6da6b9964b
[ "Unlicense" ]
null
null
null
#ifndef CACHE_HPP #define CACHE_HPP #include <string> class Cache final { public: void set(const std::string &data, const std::string &code) noexcept { set_data(data); set_code(code); } void set_data(const std::string &data) noexcept { _data = data; } void set_code(const std::string &code) noexcept ...
20
69
0.668333
artkulak
471ba86c789da3f7b571fc0d0afaeea732b6a02c
505
cpp
C++
sort-colors/sort-colors.cpp
arpitkekri/My-Leetcode-Solution-In-CPP
345f1c53c627fce33ee84672c5d3661863367040
[ "MIT" ]
4
2021-06-21T04:32:12.000Z
2021-11-02T04:20:36.000Z
sort-colors/sort-colors.cpp
arpitkekri/My-Leetcode-Solution-In-CPP
345f1c53c627fce33ee84672c5d3661863367040
[ "MIT" ]
null
null
null
sort-colors/sort-colors.cpp
arpitkekri/My-Leetcode-Solution-In-CPP
345f1c53c627fce33ee84672c5d3661863367040
[ "MIT" ]
2
2021-08-19T11:27:18.000Z
2021-09-26T14:51:30.000Z
class Solution { public: void sortColors(vector<int>& nums) { int n = nums.size(); int ptr0 = -1, ptr2 = n; for(int i = 0; i < n; i++) { if(nums[i] == 0 && ptr0 < i) { ptr0++; swap(nums[i], nums[ptr0]); i--; } ...
25.25
47
0.332673
arpitkekri
471d6cd413d69e50d26862a9b49a01954b83b5b4
1,492
hpp
C++
src/CGData.hpp
zabookey/Kokkos-HPCG
7ca081e51a275c4fb6b21e8871788e88e8715dbc
[ "BSD-3-Clause" ]
5
2015-07-10T16:35:08.000Z
2021-09-13T03:29:37.000Z
src/CGData.hpp
zabookey/Kokkos-HPCG
7ca081e51a275c4fb6b21e8871788e88e8715dbc
[ "BSD-3-Clause" ]
null
null
null
src/CGData.hpp
zabookey/Kokkos-HPCG
7ca081e51a275c4fb6b21e8871788e88e8715dbc
[ "BSD-3-Clause" ]
null
null
null
//@HEADER // *************************************************** // // Kokkos HPCG: Refactored code to replace most/all // allocated arrays with views. // // // // // // *************************************************** //@HEADER /*! @file CGData.hpp HPCG data structure */ #ifndef CGDATA_HPP #define CGDATA...
22.606061
115
0.668231
zabookey
471d896e837084e6c713e3447978fd538b5fe7cd
10,516
hpp
C++
include/async/result.hpp
Dennisbonke/libasync
017d9e6eae1ceb8725834c37d0fb9fb2591801dc
[ "MIT" ]
null
null
null
include/async/result.hpp
Dennisbonke/libasync
017d9e6eae1ceb8725834c37d0fb9fb2591801dc
[ "MIT" ]
null
null
null
include/async/result.hpp
Dennisbonke/libasync
017d9e6eae1ceb8725834c37d0fb9fb2591801dc
[ "MIT" ]
null
null
null
#ifndef ASYNC_RESULT_HPP #define ASYNC_RESULT_HPP #include <atomic> #include <type_traits> #include <utility> #include <async/basic.hpp> namespace async { // ---------------------------------------------------------------------------- // Basic result<T> class implementation. // -------------------------------------...
19.992395
79
0.627425
Dennisbonke
471e53a1cf60a08083b61f6aac28fcf9c768d92c
7,190
cpp
C++
src/Module.cpp
szellmann/fakeOwl
f938504b9dbb218aa0aad0b47513cebd79e47e13
[ "MIT" ]
4
2021-05-01T20:53:27.000Z
2021-05-05T00:35:55.000Z
src/Module.cpp
szellmann/fakeOwl
f938504b9dbb218aa0aad0b47513cebd79e47e13
[ "MIT" ]
null
null
null
src/Module.cpp
szellmann/fakeOwl
f938504b9dbb218aa0aad0b47513cebd79e47e13
[ "MIT" ]
null
null
null
#include <dlfcn.h> #include "Bounds.h" #include "ClosestHit.h" #include "Intersect.h" #include "Logging.h" #include "Miss.h" #include "Module.h" #include "RayGen.h" namespace fake { Module::Module(const char* lib) { FAKE_LOG_DBG << "Creating module from library: " << lib; handle = dlopen(lib, ...
35.95
115
0.538248
szellmann
4724154aa62de09d998b90046699355132942ce8
1,310
cpp
C++
codeforces/B - Gluttony/Wrong answer on test 8.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
codeforces/B - Gluttony/Wrong answer on test 8.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
codeforces/B - Gluttony/Wrong answer on test 8.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: Apr/18/2020 19:15 * solution_verdict: Wrong answer on test 8 language: GNU C++14 * run...
37.428571
111
0.449618
kzvd4729
472b11fbe5d2f94009f83029054a8e83a57b0f96
2,041
cpp
C++
arch/platform/platform-i386.cpp
IGR2014/kernale
a8b43cf7d89c3d92b14ffdb88683023048f4bf78
[ "MIT" ]
4
2019-08-09T09:20:40.000Z
2021-09-10T00:59:30.000Z
arch/platform/platform-i386.cpp
IGR2014/kernale
a8b43cf7d89c3d92b14ffdb88683023048f4bf78
[ "MIT" ]
12
2017-10-24T14:22:46.000Z
2020-07-17T16:20:39.000Z
arch/platform/platform-i386.cpp
IGR2014/kernale
a8b43cf7d89c3d92b14ffdb88683023048f4bf78
[ "MIT" ]
1
2019-08-01T07:49:36.000Z
2019-08-01T07:49:36.000Z
//////////////////////////////////////////////////////////////// // // Platform description for x86 // // File: platform-i386.cpp // Date: 24 Sep 2021 // // Copyright (c) 2017 - 2021, Igor Baklykov // All rights reserved. // // #include <platform.hpp> #include <arch/i386/types.hpp> #include <arch/i38...
19.815534
74
0.623224
IGR2014
473269a99351cb3e6124658ab463885ad3b16bd5
1,378
hpp
C++
lib/PDB.hpp
atfrank/PCASA
cbb71ac4c1e822e731d854c364621dc80008e1b8
[ "MIT" ]
3
2017-04-17T15:38:16.000Z
2019-07-26T12:15:19.000Z
lib/PDB.hpp
atfrank/PCASA
cbb71ac4c1e822e731d854c364621dc80008e1b8
[ "MIT" ]
1
2019-09-23T13:44:55.000Z
2019-09-24T04:05:17.000Z
lib/PDB.hpp
atfrank/PCASA
cbb71ac4c1e822e731d854c364621dc80008e1b8
[ "MIT" ]
null
null
null
//Sean M. Law //Aaron T. Frank /* This file is part of MoleTools. MoleTools 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 of the License, or (at your option) any later version. MoleTools ...
29.319149
154
0.74238
atfrank
47397e57a48af795a9c36effcd51cb1d8327828c
3,910
cpp
C++
areashot.cpp
yushuiqiang/ChatRoomClient
a39ce6af4434950a96dad2a2aaaec43a0422728b
[ "MIT" ]
null
null
null
areashot.cpp
yushuiqiang/ChatRoomClient
a39ce6af4434950a96dad2a2aaaec43a0422728b
[ "MIT" ]
null
null
null
areashot.cpp
yushuiqiang/ChatRoomClient
a39ce6af4434950a96dad2a2aaaec43a0422728b
[ "MIT" ]
1
2020-04-29T18:05:34.000Z
2020-04-29T18:05:34.000Z
#include "areashot.h" #include "ui_areashot.h" areashot::areashot(QWidget *parent) : QWidget(parent), ui(new Ui::areashot) { ui->setupUi(this); this->setWindowFlags(Qt::FramelessWindowHint); //取得屏幕大小,初始化 cutScreen cutScreen = new myScreen(QApplication::desktop()->size()); resize(cutSc...
27.342657
132
0.558568
yushuiqiang
474290984179c1266a1f6ab5dc90f268beb25e07
2,216
cpp
C++
Client/localPlayerCam.cpp
WuskieFTW1113/IV-MP-T4
ec4f193c90d23e07e6200dcb061ec8773be6bedc
[ "MIT" ]
2
2021-07-18T17:37:32.000Z
2021-08-04T12:33:51.000Z
Client/localPlayerCam.cpp
VittorioC97/IV-MP-T4
ec4f193c90d23e07e6200dcb061ec8773be6bedc
[ "MIT" ]
1
2022-02-22T03:26:50.000Z
2022-02-22T03:26:50.000Z
Client/localPlayerCam.cpp
WuskieFTW1113/IV-MP-T4
ec4f193c90d23e07e6200dcb061ec8773be6bedc
[ "MIT" ]
5
2021-06-17T06:41:00.000Z
2022-02-17T09:37:40.000Z
#include "players.h" #include "easylogging++.h" #include "cameraMemory.h" void cameraMemory::getTarget(float ax, float az, float &x, float &y, float &z, float range) { /* //c = (float)(Scripting::Sqrt((float)2.8 * 2.0) * (range * 0.15) * 3); float c = range * 1.0647f; //LINFO << c << " : " << (float)(Scripting::S...
24.351648
112
0.556408
WuskieFTW1113