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
253afc2de1e8651c9c11b46b49e5ee4496a17265
280
cpp
C++
740-delete-and-earn/740-delete-and-earn.cpp
gupabhi100/Leetcode-
a0bb35c57efb17dc2c5105287582b4f680eacf82
[ "MIT" ]
null
null
null
740-delete-and-earn/740-delete-and-earn.cpp
gupabhi100/Leetcode-
a0bb35c57efb17dc2c5105287582b4f680eacf82
[ "MIT" ]
null
null
null
740-delete-and-earn/740-delete-and-earn.cpp
gupabhi100/Leetcode-
a0bb35c57efb17dc2c5105287582b4f680eacf82
[ "MIT" ]
null
null
null
class Solution { public: int deleteAndEarn(vector<int>& nums) { vector<int> freq(100001, 0); vector<int> dp(100001, 0); for (auto i : nums) freq[i]++; dp[1] = freq[1]; for (int i=2; i<100001; i++) dp[i] = max(dp[i-2]+i*freq[i], dp[i-1]); return dp[100000]; } };
18.666667
44
0.575
gupabhi100
253b601c666f5423d5e85b11471ba91d52d87d1a
275
cpp
C++
solutions/231A.cpp
clapmyhands/condeforces
0a030629601c8e55eeccf9d0a0f1b3c163b65485
[ "MIT" ]
null
null
null
solutions/231A.cpp
clapmyhands/condeforces
0a030629601c8e55eeccf9d0a0f1b3c163b65485
[ "MIT" ]
null
null
null
solutions/231A.cpp
clapmyhands/condeforces
0a030629601c8e55eeccf9d0a0f1b3c163b65485
[ "MIT" ]
null
null
null
#include <iostream> int main() { std::ios::sync_with_stdio(false); int n; std::cin >> n; int a,b,c,count=0; while(n--) { std::cin >> a >> b >> c; if((a+b+c)>=2) { count++; } } std::cout << count << std::endl; }
18.333333
37
0.421818
clapmyhands
25412176c36e9d7bf64723913dc8f9eeafe78540
1,389
hpp
C++
packages/monte_carlo/collision/native/src/MonteCarlo_CoherentScatteringDistributionFactory.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/src/MonteCarlo_CoherentScatteringDistributionFactory.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/collision/native/src/MonteCarlo_CoherentScatteringDistributionFactory.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_CoherentScatteringDistributionFactory.hpp //! \author Alex Robinson //! \brief The coherent scattering distribution factory base class decl. //! //-----------------------------------------------------------------...
30.866667
79
0.614831
lkersting
8582cbf27bf422cc9b5070fa5ab4d8011a270e23
25,577
cxx
C++
detection/construct.cxx
kylerky/log-anomaly
93222eeab01b1acd6f1e960f1eb3d7a5d858843c
[ "MIT" ]
null
null
null
detection/construct.cxx
kylerky/log-anomaly
93222eeab01b1acd6f1e960f1eb3d7a5d858843c
[ "MIT" ]
null
null
null
detection/construct.cxx
kylerky/log-anomaly
93222eeab01b1acd6f1e960f1eb3d7a5d858843c
[ "MIT" ]
null
null
null
#include "construct.hxx" int main(int argc, char *argv[]) { using LogAnomaly::GPNet; using LogAnomaly::PorterStemmer::stem; using LogAnomaly::SDJournal; using LogAnomaly::UndirectedGraph; using cereal::BinaryInputArchive; using cereal::BinaryOutputArchive; using infomap::Infomap; using s...
36.801439
80
0.46362
kylerky
8583c6e22ef47140b1e2ff3e088c8453326c855c
11,720
hpp
C++
include/sdl2pp/window.hpp
NathanSWard/sdl2pp
fdf9b009f845957451f16a463c3bb03f890a4d16
[ "Unlicense" ]
null
null
null
include/sdl2pp/window.hpp
NathanSWard/sdl2pp
fdf9b009f845957451f16a463c3bb03f890a4d16
[ "Unlicense" ]
null
null
null
include/sdl2pp/window.hpp
NathanSWard/sdl2pp
fdf9b009f845957451f16a463c3bb03f890a4d16
[ "Unlicense" ]
null
null
null
#pragma once #include <SDL2/SDL.h> #include <SDL2/SDL_syswm.h> #include "enums.hpp" #include "shapes.hpp" #include "surface.hpp" #include "util.hpp" #include <array> #include <cstdint> #include <optional> #include <span> #include <string_view> namespace sdl2 { /** * @brief A wrapper around an SDL_Window structure...
29.59596
135
0.637372
NathanSWard
858697d8ef5141f524e0281e76c052657183edf9
3,783
hpp
C++
cpp/tests/reductions/scan_tests.hpp
Ahsantw/cudf
e099688d5ca7dd20104930485a829881a68c522a
[ "Apache-2.0" ]
239
2018-10-10T09:55:22.000Z
2018-10-28T20:47:23.000Z
cpp/tests/reductions/scan_tests.hpp
Ahsantw/cudf
e099688d5ca7dd20104930485a829881a68c522a
[ "Apache-2.0" ]
25
2018-10-10T14:46:32.000Z
2018-10-28T22:16:14.000Z
cpp/tests/reductions/scan_tests.hpp
Ahsantw/cudf
e099688d5ca7dd20104930485a829881a68c522a
[ "Apache-2.0" ]
19
2018-10-10T12:42:51.000Z
2018-10-26T16:33:22.000Z
/* * Copyright (c) 2021-2022, NVIDIA CORPORATION. * * 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.390909
99
0.666667
Ahsantw
8589c6b3475d6201acddd28a2c98a5662b2a1c77
6,505
cpp
C++
qws/src/gui/QColorDialog.cpp
keera-studios/hsQt
8aa71a585cbec40005354d0ee43bce9794a55a9a
[ "BSD-2-Clause" ]
42
2015-02-16T19:29:16.000Z
2021-07-25T11:09:03.000Z
qws/src/gui/QColorDialog.cpp
keera-studios/hsQt
8aa71a585cbec40005354d0ee43bce9794a55a9a
[ "BSD-2-Clause" ]
1
2017-11-23T12:49:25.000Z
2017-11-23T12:49:25.000Z
qws/src/gui/QColorDialog.cpp
keera-studios/hsQt
8aa71a585cbec40005354d0ee43bce9794a55a9a
[ "BSD-2-Clause" ]
5
2015-10-15T21:25:30.000Z
2017-11-22T13:18:24.000Z
///////////////////////////////////////////////////////////////////////////// // // File : QColorDialog.cpp // Copyright : (c) David Harley 2010 // Project : qtHaskell // Version : 1.1.4 // Modified : 2010-09-02 17:02:04 // // Warning : this file is machine generate...
40.65625
124
0.655496
keera-studios
858a4f4519b745398dee15976fe27c8611c258fb
11,383
hpp
C++
libraries/protocol/include/deip/protocol/config.hpp
DEIPworld/deip-chain
d3fdcfdde179f700156156ea87522a807ec52532
[ "MIT" ]
1
2021-08-16T12:44:43.000Z
2021-08-16T12:44:43.000Z
libraries/protocol/include/deip/protocol/config.hpp
DEIPworld/deip-chain
d3fdcfdde179f700156156ea87522a807ec52532
[ "MIT" ]
null
null
null
libraries/protocol/include/deip/protocol/config.hpp
DEIPworld/deip-chain
d3fdcfdde179f700156156ea87522a807ec52532
[ "MIT" ]
2
2021-08-16T12:44:46.000Z
2021-12-31T17:09:45.000Z
/* * Copyright (c) 2016 Steemit, Inc., and contributors. */ // clang-format off #pragma once #define DAYS_TO_SECONDS(X) (60*60*24*X) #define DEIP_BLOCKCHAIN_VERSION ( version(0, 1, 0) ) #define DEIP_BLOCKCHAIN_HARDFORK_VERSION ( hardfork_version( DEIP_BLOCKCHAIN_VERSION ) ) #...
47.827731
194
0.685672
DEIPworld
858aba422e6642681acbbb3f567b7df240543451
11,080
cpp
C++
video__opengl__opengl_display.cpp
poikilos/golgotha
d3184dea6b061f853423e0666dba23218042e5ba
[ "CC0-1.0" ]
5
2015-12-09T20:37:49.000Z
2021-08-10T08:06:29.000Z
video__opengl__opengl_display.cpp
poikilos/golgotha
d3184dea6b061f853423e0666dba23218042e5ba
[ "CC0-1.0" ]
13
2021-09-20T16:25:30.000Z
2022-03-17T04:59:40.000Z
video__opengl__opengl_display.cpp
poikilos/golgotha
d3184dea6b061f853423e0666dba23218042e5ba
[ "CC0-1.0" ]
5
2016-01-04T22:54:22.000Z
2021-09-20T16:09:03.000Z
/********************************************************************** Golgotha Forever - A portable, free 3D strategy and FPS game. Copyright (C) 1999 Golgotha Forever Developers Sources contained in this distribution were derived from Crack Dot Com's public release of Golgotha which can be ...
22.204409
116
0.647022
poikilos
858f183f0326b3b93e0392b5dc21020719756975
11,572
cpp
C++
common/beerocks/btl/source/broker_client_impl.cpp
SWRT-dev/easymesh
12d902edde77599e074c0535f7256499b08f7494
[ "BSD-3-Clause", "BSD-2-Clause-Patent", "MIT" ]
null
null
null
common/beerocks/btl/source/broker_client_impl.cpp
SWRT-dev/easymesh
12d902edde77599e074c0535f7256499b08f7494
[ "BSD-3-Clause", "BSD-2-Clause-Patent", "MIT" ]
null
null
null
common/beerocks/btl/source/broker_client_impl.cpp
SWRT-dev/easymesh
12d902edde77599e074c0535f7256499b08f7494
[ "BSD-3-Clause", "BSD-2-Clause-Patent", "MIT" ]
null
null
null
/* SPDX-License-Identifier: BSD-2-Clause-Patent * * SPDX-FileCopyrightText: 2020 the prplMesh contributors (see AUTHORS.md) * * This code is subject to the terms of the BSD+Patent license. * See LICENSE file for more details. */ #include <btl/broker_client_impl.h> #include <bcl/beerocks_cmdu_utils.h> #include <...
36.853503
102
0.640944
SWRT-dev
8592485ab097b2ef5b55be60c1d27169108d96bb
68
cpp
C++
src/control/control.cpp
Dreamykass/sf2dboxes
db358a7b84b4947e1d93adc82f22aa349965edca
[ "MIT" ]
null
null
null
src/control/control.cpp
Dreamykass/sf2dboxes
db358a7b84b4947e1d93adc82f22aa349965edca
[ "MIT" ]
null
null
null
src/control/control.cpp
Dreamykass/sf2dboxes
db358a7b84b4947e1d93adc82f22aa349965edca
[ "MIT" ]
null
null
null
#include "control.hpp" Control::Control() {} Control::~Control() {}
17
22
0.661765
Dreamykass
85924ac19abbb0bec4d2afbe86a3eaeaed975a8f
6,538
cpp
C++
Game/Level/StaticObject.cpp
RMDarth/Chewman-Vulkan
7ebd3fb378b78c67844055c5bf1dc51c54a48324
[ "MIT" ]
65
2019-10-22T01:06:07.000Z
2022-03-26T14:41:28.000Z
Game/Level/StaticObject.cpp
heitaoflower/Chewman-Vulkan
dfd4d8b4e58b8a01e5f41f256795ec6e0d2b633e
[ "MIT" ]
9
2019-09-24T15:51:14.000Z
2021-08-19T09:52:03.000Z
Game/Level/StaticObject.cpp
heitaoflower/Chewman-Vulkan
dfd4d8b4e58b8a01e5f41f256795ec6e0d2b633e
[ "MIT" ]
6
2020-01-31T08:51:14.000Z
2021-01-08T05:49:47.000Z
// Chewman Vulkan game // Copyright (c) 2018-2019, Igor Barinov // Licensed under the MIT License #include "StaticObject.h" #include "GameMap.h" #include "GameUtils.h" #include "SVE/Engine.h" #include "SVE/SceneManager.h" #include <glm/gtc/matrix_transform.hpp> #include <Game/Game.h> namespace Chewman { namespace { ...
33.187817
124
0.596666
RMDarth
859684dd686a0f5f8e89deeae650eb9275255a91
279
hpp
C++
Axis/Util/UniqueFile.hpp
hannes-harnisch/Axis
8d57527c855d751ca5267ebcc4ab5d137b4fc51c
[ "MIT" ]
3
2022-02-09T14:59:31.000Z
2022-02-15T21:24:19.000Z
Axis/Util/UniqueFile.hpp
hannes-harnisch/Axis
8d57527c855d751ca5267ebcc4ab5d137b4fc51c
[ "MIT" ]
null
null
null
Axis/Util/UniqueFile.hpp
hannes-harnisch/Axis
8d57527c855d751ca5267ebcc4ab5d137b4fc51c
[ "MIT" ]
null
null
null
#pragma once #include <cstdio> #include <memory> namespace ax { struct FileCloser { void operator()(FILE* file) const { if(file != stdout && file != stderr && file != stdin) std::fclose(file); } }; using UniqueFile = std::unique_ptr<std::FILE, FileCloser>; }
14.684211
59
0.634409
hannes-harnisch
859eed2ff05bb0febf5dccd1eeaa69849df0c39c
170
cpp
C++
chapter 7/exercise /q2.cpp
realme72/beginning
9c6c5abaf675a53f88552dbc7fbf44c6bc94087c
[ "MIT" ]
2
2018-07-01T07:39:44.000Z
2020-05-17T07:26:26.000Z
chapter 7/exercise /q2.cpp
realme72/beginning
9c6c5abaf675a53f88552dbc7fbf44c6bc94087c
[ "MIT" ]
null
null
null
chapter 7/exercise /q2.cpp
realme72/beginning
9c6c5abaf675a53f88552dbc7fbf44c6bc94087c
[ "MIT" ]
null
null
null
#include <stdio.h> int func(int a,int b); int main() { printf("%d\n",func(3,8)); return 0; } int func(int a,int b) { if(a>b) return 1000; return a+func(a+1,b); }
10.625
26
0.582353
realme72
859eee3aac32fe1aa6906db5da3b536a2f615dfc
197
cpp
C++
src/Core/p2/iMemMgr.cpp
stravant/bfbbdecomp
2126be355a6bb8171b850f829c1f2731c8b5de08
[ "OLDAP-2.7" ]
1
2021-01-05T11:28:55.000Z
2021-01-05T11:28:55.000Z
src/Core/p2/iMemMgr.cpp
sonich2401/bfbbdecomp
5f58b62505f8929a72ccf2aa118a1539eb3a5bd6
[ "OLDAP-2.7" ]
null
null
null
src/Core/p2/iMemMgr.cpp
sonich2401/bfbbdecomp
5f58b62505f8929a72ccf2aa118a1539eb3a5bd6
[ "OLDAP-2.7" ]
1
2022-03-30T15:15:08.000Z
2022-03-30T15:15:08.000Z
#include "iMemMgr.h" #include <types.h> // func_800C6360 #pragma GLOBAL_ASM("asm/Core/p2/iMemMgr.s", "iMemInit__Fv") // func_800C646C #pragma GLOBAL_ASM("asm/Core/p2/iMemMgr.s", "iMemExit__Fv")
19.7
59
0.730964
stravant
85a114588cc142f2a662629a0275a4658646a4b6
9,176
cpp
C++
adapter/plugins/faultlogger/interfaces/cpp/innerkits/test/common/moduletest/faultlogger_native_interface_test.cpp
openharmony-gitee-mirror/hiviewdfx_hiview
6843948109242e1446758f34e37c414601431e5c
[ "Apache-2.0" ]
null
null
null
adapter/plugins/faultlogger/interfaces/cpp/innerkits/test/common/moduletest/faultlogger_native_interface_test.cpp
openharmony-gitee-mirror/hiviewdfx_hiview
6843948109242e1446758f34e37c414601431e5c
[ "Apache-2.0" ]
null
null
null
adapter/plugins/faultlogger/interfaces/cpp/innerkits/test/common/moduletest/faultlogger_native_interface_test.cpp
openharmony-gitee-mirror/hiviewdfx_hiview
6843948109242e1446758f34e37c414601431e5c
[ "Apache-2.0" ]
1
2021-09-13T12:06:51.000Z
2021-09-13T12:06:51.000Z
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
34.367041
110
0.67633
openharmony-gitee-mirror
85a12aba0247ffd375be571961b20fbf6448870d
819
hpp
C++
gloom/src/overkill/graphics_internal/VertexArray.hpp
Stektpotet/gloom
fcb6e031d573be029dd829d8e4fc0a97feb22687
[ "MIT" ]
null
null
null
gloom/src/overkill/graphics_internal/VertexArray.hpp
Stektpotet/gloom
fcb6e031d573be029dd829d8e4fc0a97feb22687
[ "MIT" ]
null
null
null
gloom/src/overkill/graphics_internal/VertexArray.hpp
Stektpotet/gloom
fcb6e031d573be029dd829d8e4fc0a97feb22687
[ "MIT" ]
null
null
null
#pragma once #include <vector> #include <unordered_map> #include <set> #include "../gfx.h" #include "VertexLayout.hpp" class VertexArray { public: VertexArray(); inline bool valid() const { return id != 0; } inline GLuint ID() const { return id; } inline void bind() const { GFX_...
21.552632
71
0.614164
Stektpotet
85a19a7ffebb252504016bcc1c0cfc1c8d49c976
318
hh
C++
Engine/spcImgLoader/imgloaderexport.hh
marcellfischbach/SpiceEngine
e25e1e4145b7afaea9179bb8e33e4d184bd407c4
[ "BSD-3-Clause" ]
null
null
null
Engine/spcImgLoader/imgloaderexport.hh
marcellfischbach/SpiceEngine
e25e1e4145b7afaea9179bb8e33e4d184bd407c4
[ "BSD-3-Clause" ]
1
2021-09-09T12:51:56.000Z
2021-09-09T12:51:56.000Z
Engine/spcImgLoader/imgloaderexport.hh
marcellfischbach/SpiceEngine
e25e1e4145b7afaea9179bb8e33e4d184bd407c4
[ "BSD-3-Clause" ]
null
null
null
#pragma once #ifdef SPC_WIN32 #pragma warning( disable : 4530) #pragma warning( disable : 4577) #ifdef SPC_IMGLOADER_EXPORT #define SPC_IMGLOADER_API __declspec(dllexport) #else #define SPC_IMGLOADER_API __declspec(dllimport) #endif #pragma warning( disable : 4251 ) #else #define SPC_IMGLOADER_API #endif
12.230769
47
0.773585
marcellfischbach
85ab6cc2da48ed398ab6b075e5c1322d88e8fb78
494
hpp
C++
ReactNativeFrontend/ios/Pods/boost/boost/parameter/aux_/preprocessor/nullptr.hpp
Harshitha91/Tmdb-react-native-node
e06e3f25a7ee6946ef07a1f524fdf62e48424293
[ "Apache-2.0" ]
12,278
2015-01-29T17:11:33.000Z
2022-03-31T21:12:00.000Z
ReactNativeFrontend/ios/Pods/boost/boost/parameter/aux_/preprocessor/nullptr.hpp
Harshitha91/Tmdb-react-native-node
e06e3f25a7ee6946ef07a1f524fdf62e48424293
[ "Apache-2.0" ]
9,469
2015-01-30T05:33:07.000Z
2022-03-31T16:17:21.000Z
ReactNativeFrontend/ios/Pods/boost/boost/parameter/aux_/preprocessor/nullptr.hpp
Harshitha91/Tmdb-react-native-node
e06e3f25a7ee6946ef07a1f524fdf62e48424293
[ "Apache-2.0" ]
892
2015-01-29T16:26:19.000Z
2022-03-20T07:44:30.000Z
// Copyright Cromwell D. Enage 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 BOOST_PARAMETER_AUX_PREPROCESSOR_NULLPTR_HPP #define BOOST_PARAMETER_AUX_PREPROCESSOR_NULLPTR_HPP #include <boost/con...
26
61
0.815789
Harshitha91
85ac29967d8718259ee6d34a10c91fbf785e75ab
7,923
cpp
C++
lib/lexer/Reader.cpp
federico-terzi/ninx
ff760a481fc6c16ab06fe106c0f2051125f1b9c6
[ "MIT" ]
2
2020-08-18T23:12:52.000Z
2021-11-15T11:29:19.000Z
lib/lexer/Reader.cpp
federico-terzi/ninx
ff760a481fc6c16ab06fe106c0f2051125f1b9c6
[ "MIT" ]
15
2018-12-29T20:33:14.000Z
2019-02-03T15:13:47.000Z
lib/lexer/Reader.cpp
federico-terzi/ninx
ff760a481fc6c16ab06fe106c0f2051125f1b9c6
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2018 Federico Terzi 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...
29.674157
116
0.569229
federico-terzi
85b1b81d117df35d9173d9d95c947baa3da1ed2a
532
hpp
C++
include/hydro/hydro.hpp
shockazoid/HydroLanguage
25071995477406245911989584cb3e6f036229c0
[ "Apache-2.0" ]
null
null
null
include/hydro/hydro.hpp
shockazoid/HydroLanguage
25071995477406245911989584cb3e6f036229c0
[ "Apache-2.0" ]
null
null
null
include/hydro/hydro.hpp
shockazoid/HydroLanguage
25071995477406245911989584cb3e6f036229c0
[ "Apache-2.0" ]
null
null
null
// // __ __ __ // / / / /__ __ ____/ /_____ ____ // / /_/ // / / // __ // ___// __ \ // / __ // /_/ // /_/ // / / /_/ / // /_/ /_/ \__, / \__,_//_/ \____/ // /____/ // // ...
24.181818
50
0.368421
shockazoid
85b5bd3bb8f7baa70835979541b1636f1fefec08
5,663
cpp
C++
Developments/solidity-develop/test/ExecutionFramework.cpp
jansenbarabona/NFT-Game-Development
49bf6593925123f0212dac13badd609be3866561
[ "MIT" ]
null
null
null
Developments/solidity-develop/test/ExecutionFramework.cpp
jansenbarabona/NFT-Game-Development
49bf6593925123f0212dac13badd609be3866561
[ "MIT" ]
null
null
null
Developments/solidity-develop/test/ExecutionFramework.cpp
jansenbarabona/NFT-Game-Development
49bf6593925123f0212dac13badd609be3866561
[ "MIT" ]
null
null
null
/* This file is part of solidity. solidity 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. solidity is distributed in the hope that i...
29.494792
104
0.70475
jansenbarabona
85b6c729067df7094d1065298dd1895670dabb04
3,522
inl
C++
Library/Sources/Stroika/Foundation/IO/Network/HTTP/Cookie.inl
SophistSolutions/Stroika
f4e5d84767903a054fba0a6b9c7c4bd1aaefd105
[ "MIT" ]
28
2015-09-22T21:43:32.000Z
2022-02-28T01:35:01.000Z
Library/Sources/Stroika/Foundation/IO/Network/HTTP/Cookie.inl
SophistSolutions/Stroika
f4e5d84767903a054fba0a6b9c7c4bd1aaefd105
[ "MIT" ]
98
2015-01-22T03:21:27.000Z
2022-03-02T01:47:00.000Z
Library/Sources/Stroika/Foundation/IO/Network/HTTP/Cookie.inl
SophistSolutions/Stroika
f4e5d84767903a054fba0a6b9c7c4bd1aaefd105
[ "MIT" ]
4
2019-02-21T16:45:25.000Z
2022-02-18T13:40:04.000Z
/* * Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved */ #ifndef _Stroika_Foundation_IO_Network_HTTP_Cookie_inl_ #define _Stroika_Foundation_IO_Network_HTTP_Cookie_inl_ 1 /* ******************************************************************************** ***************************** Implementa...
33.865385
115
0.509938
SophistSolutions
85bb7874c6a025a1fc472cdf55a469b4364acf32
5,854
cpp
C++
ProcessingQueues/src/consumer/QueueProcessor.cpp
seancfoley/HPQueues
e1e75d0afc8470e93d2c172c8f687bdc13f85d38
[ "Apache-2.0" ]
7
2016-09-29T02:17:02.000Z
2021-02-19T13:55:56.000Z
ProcessingQueues/src/consumer/QueueProcessor.cpp
seancfoley/HPQueues
e1e75d0afc8470e93d2c172c8f687bdc13f85d38
[ "Apache-2.0" ]
null
null
null
ProcessingQueues/src/consumer/QueueProcessor.cpp
seancfoley/HPQueues
e1e75d0afc8470e93d2c172c8f687bdc13f85d38
[ "Apache-2.0" ]
1
2018-05-23T08:53:52.000Z
2018-05-23T08:53:52.000Z
/* * QueueProcessor.cpp * * Created on: Sep 7, 2010 * Author: sfoley */ #include <cstdio> #include <vector> #include <string> #include <utility> #include "QueueConsumerWorker.h" #include "QueueProcessor.h" using namespace std; namespace hpqueue { QueueProcessor::~QueueProcessor() { terminate(); } bool...
24.391667
126
0.678169
seancfoley
85bca9ce08d3a8a8d75f442430522d43f89be4b3
2,344
cc
C++
sdk/src/utils/FileSystemUtils.cc
OpenInspur/inspur-oss-cpp-sdk
a0932232aaf46aab7c5a2079f72d80cc5d634ba2
[ "Apache-2.0" ]
null
null
null
sdk/src/utils/FileSystemUtils.cc
OpenInspur/inspur-oss-cpp-sdk
a0932232aaf46aab7c5a2079f72d80cc5d634ba2
[ "Apache-2.0" ]
null
null
null
sdk/src/utils/FileSystemUtils.cc
OpenInspur/inspur-oss-cpp-sdk
a0932232aaf46aab7c5a2079f72d80cc5d634ba2
[ "Apache-2.0" ]
null
null
null
#include <string> #include <map> #include <ctime> #include <iostream> #include <inspurcloud/oss/Types.h> #include "FileSystemUtils.h" #include <inspurcloud/oss/Const.h> #ifdef _WIN32 #include <direct.h> #include <io.h> #include <sys/stat.h> #define oss_access(a) ::_access((a), 0) #define oss_mkdir(a) ::_mkdir(a) ...
26.337079
94
0.619881
OpenInspur
85bcdfeb6e41d8c5aa4ca1022377417e965e7ac5
1,524
cpp
C++
gtdynamics/optimizer/EqualityConstraint.cpp
varunagrawal/GTDynamics
1f48112a5ffd273c74c5ce2ddda4166e2fae7dff
[ "BSD-2-Clause" ]
6
2021-08-09T23:43:52.000Z
2021-11-11T16:16:37.000Z
gtdynamics/optimizer/EqualityConstraint.cpp
varunagrawal/GTDynamics
1f48112a5ffd273c74c5ce2ddda4166e2fae7dff
[ "BSD-2-Clause" ]
104
2021-08-03T14:15:28.000Z
2022-03-26T08:18:09.000Z
gtdynamics/optimizer/EqualityConstraint.cpp
varunagrawal/GTDynamics
1f48112a5ffd273c74c5ce2ddda4166e2fae7dff
[ "BSD-2-Clause" ]
4
2021-08-02T17:42:28.000Z
2021-12-24T00:43:17.000Z
/* ---------------------------------------------------------------------------- * GTDynamics Copyright 2020, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * See LICENSE for the license information * -------------------------------------------------------------------------- ...
32.425532
80
0.652887
varunagrawal
85c2bad0effbba401a4515e4912a8c43fc69df8e
1,688
cpp
C++
vui/src/application.cpp
vastamat/vulkan_interface
f4cb382d8943fb11fd24080310a568bffae3ea47
[ "MIT" ]
null
null
null
vui/src/application.cpp
vastamat/vulkan_interface
f4cb382d8943fb11fd24080310a568bffae3ea47
[ "MIT" ]
null
null
null
vui/src/application.cpp
vastamat/vulkan_interface
f4cb382d8943fb11fd24080310a568bffae3ea47
[ "MIT" ]
null
null
null
#include "application.h" #include "graphics.h" #include "window.h" #include "vulkan_renderer.h" #include "timer.h" #include <thread> // Variable Render frame limiter (runs as quick as possible with a set limit) // Must be more than the fixed update, or the sleep will disrupt the fixed timer constexpr int c_MillisPer...
25.19403
81
0.658175
vastamat
85c3c2b342cc694829c633379a016f3c127e789b
5,239
hpp
C++
kernel/brick/inc/dspalg.hpp
Bhaskers-Blu-Org2/Sora
6aa5411db71199e56d5cb24265b01a89f49b40f4
[ "BSD-2-Clause" ]
270
2015-07-17T15:43:43.000Z
2019-04-21T12:13:58.000Z
kernel/brick/inc/dspalg.hpp
JamesLinus/Sora
6aa5411db71199e56d5cb24265b01a89f49b40f4
[ "BSD-2-Clause" ]
null
null
null
kernel/brick/inc/dspalg.hpp
JamesLinus/Sora
6aa5411db71199e56d5cb24265b01a89f49b40f4
[ "BSD-2-Clause" ]
106
2015-07-20T10:40:34.000Z
2019-04-25T10:02:26.000Z
#pragma once #include <tpltrick.h> #include <sequence.h> template<typename T_TYPE, size_t T_SIZE> class CMovingWindow { T_TYPE m_elements[T_SIZE]; int m_index; FINL void _increase_index () { m_index ++; if (m_index>=T_SIZE) m_index = 0; } public: static const size_t size = T_SIZE; CMovi...
21.471311
87
0.590762
Bhaskers-Blu-Org2
85c473286c15f527d69a558648b2b31c15b54cc8
300,816
cpp
C++
HoloLens/MyBuild/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs124.cpp
gianluca-m/SeeingTemperature
743e10e75ce0aeaea580c022f24cbe3605c029c2
[ "Apache-2.0" ]
1
2022-01-17T10:26:15.000Z
2022-01-17T10:26:15.000Z
HoloLens/MyBuild/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs124.cpp
gianluca-m/SeeingTemperature
743e10e75ce0aeaea580c022f24cbe3605c029c2
[ "Apache-2.0" ]
null
null
null
HoloLens/MyBuild/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs124.cpp
gianluca-m/SeeingTemperature
743e10e75ce0aeaea580c022f24cbe3605c029c2
[ "Apache-2.0" ]
null
null
null
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <limits> #include "vm/CachedCCWBase.h" #include "utils/New.h" // System.Collections.Generic.Dictionary`2<System.Xml.IDtdEntityInfo,System.Xml.IDtdEntityInfo> struct Dictionary_2_t7E4F75E23B...
45.975241
342
0.82721
gianluca-m
85ca0aab118f2a78bf25023241c16507e0001e59
6,607
cc
C++
src/detective.cc
nih-at/ckmame
6315a1e14532f0eb1c64a27c3fb1657f4cb5e39f
[ "BSD-3-Clause" ]
8
2018-01-17T21:21:24.000Z
2020-10-19T18:30:45.000Z
src/detective.cc
nih-at/ckmame
6315a1e14532f0eb1c64a27c3fb1657f4cb5e39f
[ "BSD-3-Clause" ]
2
2018-12-11T06:12:35.000Z
2021-06-20T09:28:44.000Z
src/detective.cc
nih-at/ckmame
6315a1e14532f0eb1c64a27c3fb1657f4cb5e39f
[ "BSD-3-Clause" ]
2
2018-09-18T23:45:22.000Z
2020-02-27T18:32:47.000Z
/* detective.c -- list files from zip archive with headers skipped Copyright (C) 2007-2014 Dieter Baron and Thomas Klausner This file is part of ckmame, a program to check rom sets for MAME. The authors can be contacted at <ckmame@nih.at> Redistribution and use in source and binary forms, with or without ...
29.627803
175
0.621462
nih-at
85cd0fffdb5c190e90de919909c21a6af928ad9e
7,023
cpp
C++
src/main.cpp
megatron0000/optimal-packing
e4953f863974ae2b2b0486ad6e493af0e03189bb
[ "MIT" ]
null
null
null
src/main.cpp
megatron0000/optimal-packing
e4953f863974ae2b2b0486ad6e493af0e03189bb
[ "MIT" ]
null
null
null
src/main.cpp
megatron0000/optimal-packing
e4953f863974ae2b2b0486ad6e493af0e03189bb
[ "MIT" ]
null
null
null
#include <assert.h> #include <iostream> #include "basedefs.h" #include "graph-algo.h" #include "opp.h" typedef std::string String; String ToString(int t) { return std::to_string(t); } // String ToString(const long& t) { return std::to_string(t); } // String ToString(const long long& t) { return std::to_string(t); } /...
29.885106
77
0.540795
megatron0000
85ce995fd726e30eea6ed78df7b1fdaa5b661d23
7,856
cpp
C++
Src/webbase/WebKitSensorConnector.cpp
ericblade/luna-sysmgr
82d5d7ced4ba21d3802eb2c8ae063236b6562331
[ "Apache-2.0" ]
3
2018-11-16T14:51:17.000Z
2019-11-21T10:55:24.000Z
Src/webbase/WebKitSensorConnector.cpp
penk/luna-sysmgr
60c7056a734cdb55a718507f3a739839c9d74edf
[ "Apache-2.0" ]
1
2021-02-20T13:12:15.000Z
2021-02-20T13:12:15.000Z
Src/webbase/WebKitSensorConnector.cpp
ericblade/luna-sysmgr
82d5d7ced4ba21d3802eb2c8ae063236b6562331
[ "Apache-2.0" ]
null
null
null
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * 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 * * Unl...
25.26045
171
0.627164
ericblade
85d177c7bb4562eb1f71ddb822cbcb779524907c
2,312
hpp
C++
server/shared/filesystem.hpp
LiamTyler/fanfiction-helper
cbf1417f8f8b5e70b349122fd1d2729d0c0cc785
[ "MIT" ]
null
null
null
server/shared/filesystem.hpp
LiamTyler/fanfiction-helper
cbf1417f8f8b5e70b349122fd1d2729d0c0cc785
[ "MIT" ]
null
null
null
server/shared/filesystem.hpp
LiamTyler/fanfiction-helper
cbf1417f8f8b5e70b349122fd1d2729d0c0cc785
[ "MIT" ]
null
null
null
#pragma once #include <filesystem> #include <string> std::string BackToForwardSlashes( std::string str ); // parent directory must exist. // i.e: for /dir1/dir2, dir1 must be created first, then another call to create dir2 void CreateDirectory( const std::string& dir ); // returns false if there was an error. If ov...
37.901639
136
0.724048
LiamTyler
85d1d784836aaa3bf0322e6259af755d0f6bf41e
5,762
cpp
C++
test/memory_kinds.cpp
AnandEmbold/upcxx_1
84fbc758ed8b1034964151eb60ca7dc79a7a9f03
[ "BSD-3-Clause-LBNL" ]
null
null
null
test/memory_kinds.cpp
AnandEmbold/upcxx_1
84fbc758ed8b1034964151eb60ca7dc79a7a9f03
[ "BSD-3-Clause-LBNL" ]
null
null
null
test/memory_kinds.cpp
AnandEmbold/upcxx_1
84fbc758ed8b1034964151eb60ca7dc79a7a9f03
[ "BSD-3-Clause-LBNL" ]
1
2021-06-10T11:14:25.000Z
2021-06-10T11:14:25.000Z
#include <stddef.h> #include <type_traits> #include <iostream> #include <cassert> #include <functional> #include <vector> #include <upcxx/upcxx.hpp> #include "util.hpp" using namespace upcxx; volatile bool cuda_enabled; upcxx::cuda_device *gpu_device; upcxx::device_allocator<upcxx::cuda_device> *gpu_alloc; std::vec...
29.854922
73
0.650989
AnandEmbold
85d590cc95c6a775ca79b04ba27809cabe7e2aed
2,687
cc
C++
fountain/control/Joystick.cc
fountainment/fountain-engine-improved
5ca46d089cf26bb200374c46a69d4dc927d94f0d
[ "MIT" ]
null
null
null
fountain/control/Joystick.cc
fountainment/fountain-engine-improved
5ca46d089cf26bb200374c46a69d4dc927d94f0d
[ "MIT" ]
null
null
null
fountain/control/Joystick.cc
fountainment/fountain-engine-improved
5ca46d089cf26bb200374c46a69d4dc927d94f0d
[ "MIT" ]
null
null
null
#include "control/Joystick.h" #include <GLFW/glfw3.h> #include "base/basedef.h" using fei::Joystick; Joystick::Joystick() : _id(-1), _type(Type::DEFAULT), _axesCount(0), _buttonCount(0), _accuracy(0.3f) { clearData(); } void Joystick::init() { clearData(); if (usable()) { const char* name = glfwGetJoys...
16.79375
88
0.642724
fountainment
85d67506cfdcf85dcc9a8a6dec3be654b96bd84f
821
cpp
C++
kernel/gdt/gdt.cpp
Andrej123456789/LockOS
5b95088146ec9c64a575ac099f6d09ccc0fe935b
[ "MIT" ]
25
2021-11-23T12:29:18.000Z
2022-02-28T17:32:21.000Z
kernel/gdt/gdt.cpp
ringwormGO-organization/ringOS
5b95088146ec9c64a575ac099f6d09ccc0fe935b
[ "MIT" ]
25
2021-11-18T09:08:52.000Z
2022-03-18T12:01:37.000Z
kernel/gdt/gdt.cpp
Andrej123456789/ringOS
46848843c41396e7e5c5cb82b5f0f784b3c8ffc9
[ "MIT" ]
4
2021-12-05T14:59:13.000Z
2022-01-22T13:24:16.000Z
#include "gdt.hpp" void create_descriptor() { uint32_t base; uint32_t limit; uint16_t flag; uint64_t descriptor; // Create the high 32 bit segment descriptor = limit & 0x000F0000; // set limit bits 19:16 descriptor |= (flag << 8) & 0x00F0FF00; // set type, p, dpl, s, g, ...
31.576923
101
0.571255
Andrej123456789
85e3050699b0d283afe20e2c292a925f493b6341
9,816
hpp
C++
src/unit_cell/atom_symmetry_class.hpp
simonpp/SIRIUS
f4b5c4810af2a3ea1e67992d65750535227da84b
[ "BSD-2-Clause" ]
1
2019-05-10T08:48:55.000Z
2019-05-10T08:48:55.000Z
src/unit_cell/atom_symmetry_class.hpp
simonpintarelli/SIRIUS
f4b5c4810af2a3ea1e67992d65750535227da84b
[ "BSD-2-Clause" ]
null
null
null
src/unit_cell/atom_symmetry_class.hpp
simonpintarelli/SIRIUS
f4b5c4810af2a3ea1e67992d65750535227da84b
[ "BSD-2-Clause" ]
null
null
null
// Copyright (c) 2013-2016 Anton Kozhevnikov, Thomas Schulthess // 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, ...
32.39604
117
0.687653
simonpp
85e4e7a1af47cb3868fc4915c8817bfeb154ba15
39,760
cpp
C++
ortc/services/cpp/services_DHKeyDomain.cpp
ortclib/ortclib-services-cpp
f770d97044b1ffbff04b61fa1488eedc8ddc66e4
[ "BSD-2-Clause" ]
2
2016-10-12T09:16:32.000Z
2016-10-13T03:49:47.000Z
ortc/services/cpp/services_DHKeyDomain.cpp
ortclib/ortclib-services-cpp
f770d97044b1ffbff04b61fa1488eedc8ddc66e4
[ "BSD-2-Clause" ]
2
2017-11-24T09:18:45.000Z
2017-11-24T09:20:53.000Z
ortc/services/cpp/services_DHKeyDomain.cpp
ortclib/ortclib-services-cpp
f770d97044b1ffbff04b61fa1488eedc8ddc66e4
[ "BSD-2-Clause" ]
null
null
null
/* Copyright (c) 2014, Hookflash Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
45.44
224
0.617329
ortclib
85e775ca102104c226b60ec5f0442c1e88b31b1d
820
cpp
C++
iceoryx_utils/source/cxx/helplets.cpp
surendra210/iceoryx
f964c2435f65585784b2d77af0ce39f88670fb36
[ "Apache-2.0" ]
null
null
null
iceoryx_utils/source/cxx/helplets.cpp
surendra210/iceoryx
f964c2435f65585784b2d77af0ce39f88670fb36
[ "Apache-2.0" ]
null
null
null
iceoryx_utils/source/cxx/helplets.cpp
surendra210/iceoryx
f964c2435f65585784b2d77af0ce39f88670fb36
[ "Apache-2.0" ]
1
2020-04-06T04:56:24.000Z
2020-04-06T04:56:24.000Z
#include "iceoryx_utils/cxx/helplets.hpp" namespace iox { namespace cxx { void* alignedAlloc(const uint64_t alignment, const uint64_t size) noexcept { // -1 == since the max alignment addition is alignment - 1 otherwise the // memory is already aligned and we have to do nothing uint64_t memory = reinterpre...
26.451613
95
0.678049
surendra210
85ead77ea53a923e8bf2340f8691d7658f844f7c
479
cc
C++
unit_tests/test_hash_table.cc
maihd/riku
daca9172f4ee0e303060796e86859247e4306dcc
[ "Unlicense" ]
2
2019-03-22T05:01:03.000Z
2020-05-07T11:26:03.000Z
unit_tests/test_hash_table.cc
maihd/riku
daca9172f4ee0e303060796e86859247e4306dcc
[ "Unlicense" ]
null
null
null
unit_tests/test_hash_table.cc
maihd/riku
daca9172f4ee0e303060796e86859247e4306dcc
[ "Unlicense" ]
null
null
null
// Copyright (c) 2019, MaiHD. All right reversed. // License: Unlicensed #include <riku/hash_table.h> #include "./unit_test.h" TEST_CASE("HashTable", "[hash_table]") { HashTable<int> hash_table; REQUIRE(hash_table.set(10, 10)); REQUIRE(hash_table.set(11, 10)); REQUIRE(hash_table.set(12, 10)); REQ...
23.95
49
0.655532
maihd
85ebaa4c261ad54cec0a1296aaf639d66420b070
709
cc
C++
kythe/cxx/indexer/cxx/testdata/function/function_operator_overload_enable_if.cc
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
1,168
2015-01-27T10:19:25.000Z
2018-10-30T15:07:11.000Z
kythe/cxx/indexer/cxx/testdata/function/function_operator_overload_enable_if.cc
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
2,811
2015-01-29T16:19:04.000Z
2018-11-01T19:48:06.000Z
kythe/cxx/indexer/cxx/testdata/function/function_operator_overload_enable_if.cc
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
165
2015-01-27T19:06:27.000Z
2018-10-30T17:31:10.000Z
// Checks whether function templates are given unique names. // The well-formedness checks will fail on redundant or conflicting entries. template <bool B, class T = void> struct enable_if {}; template <class T> struct enable_if<true, T> { using type = T; }; template <typename T1, typename T2> class same_type { stat...
29.541667
76
0.712271
wcalandro
85f0e3e31321fec20279aacebb3e16236f0f6ec9
1,297
cpp
C++
ServerExample/PlayerAction.cpp
alwayssmile11a1/MultiplayerGameServer
cd4227ecc5fe1b44d427bcbd76c050a8130d2200
[ "MIT" ]
null
null
null
ServerExample/PlayerAction.cpp
alwayssmile11a1/MultiplayerGameServer
cd4227ecc5fe1b44d427bcbd76c050a8130d2200
[ "MIT" ]
null
null
null
ServerExample/PlayerAction.cpp
alwayssmile11a1/MultiplayerGameServer
cd4227ecc5fe1b44d427bcbd76c050a8130d2200
[ "MIT" ]
null
null
null
#include "PlayerAction.h" PlayerAction::PlayerAction() { mTimeStamp = 0.0f; mVelocity.Set(0,0); mDeltaTime = 0.0f; mIsShooting = false; } PlayerAction::PlayerAction(float timeStamp, float deltaTime, const Vector2 &velocity, bool isShooting) { mTimeStamp = timeStamp; mDeltaTime = deltaTime; mVelocity = velocity...
20.265625
118
0.758674
alwayssmile11a1
85f19483070af937ed75b8f665717cf6aee2daab
932
hpp
C++
tmpl/stack5assign.hpp
angusoutlook/OOProgrammingInCpp
42c66b2652d4814e4f8b31d060189bd853cce416
[ "FSFAP" ]
null
null
null
tmpl/stack5assign.hpp
angusoutlook/OOProgrammingInCpp
42c66b2652d4814e4f8b31d060189bd853cce416
[ "FSFAP" ]
null
null
null
tmpl/stack5assign.hpp
angusoutlook/OOProgrammingInCpp
42c66b2652d4814e4f8b31d060189bd853cce416
[ "FSFAP" ]
null
null
null
/* The following code example is taken from the book * "Object-Oriented Programming in C++" * by Nicolai M. Josuttis, Wiley, 2002 * * (C) Copyright Nicolai M. Josuttis 2002. * Permission to copy, use, modify, sell and distribute this software * is granted provided this copyright notice appears in all copies. * T...
33.285714
75
0.633047
angusoutlook
85f817c640d1d8ffefc8eceef637c85ec48697db
1,771
cpp
C++
gp/core/GameEngine.cpp
kymani37299/GraphicsPlayground
f39eac719d7473d2c99255c7a600d52507921728
[ "MIT" ]
null
null
null
gp/core/GameEngine.cpp
kymani37299/GraphicsPlayground
f39eac719d7473d2c99255c7a600d52507921728
[ "MIT" ]
null
null
null
gp/core/GameEngine.cpp
kymani37299/GraphicsPlayground
f39eac719d7473d2c99255c7a600d52507921728
[ "MIT" ]
null
null
null
#include "GameEngine.h" #include <chrono> #include "Common.h" #include "core/Window.h" #include "core/Renderer.h" #include "core/Controller.h" #include "core/Loading.h" #include "gfx/GfxDevice.h" namespace GP { LoadingThread* g_LoadingThread; PoisonPillTask* PoisonPillTask::s_Instance = nullptr; GameEngine::Game...
18.642105
76
0.689441
kymani37299
c803a5fbdef106b5d5e4328258d52d493bcdd90a
532
cpp
C++
tests/filesystem/get_umask.cpp
sugawaray/filemanager
3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1
[ "MIT" ]
null
null
null
tests/filesystem/get_umask.cpp
sugawaray/filemanager
3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1
[ "MIT" ]
null
null
null
tests/filesystem/get_umask.cpp
sugawaray/filemanager
3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1
[ "MIT" ]
null
null
null
#include <sys/types.h> #include <sys/stat.h> #include <filesystem.h> #include "get_umask.h" using fs::get_umask; START_TEST(should_get_umask) { mode_t m(get_umask()); mode_t expected(umask(0)); fail_unless(m == expected, "value 1"); umask(expected); get_umask(); m = get_umask(); fail_unless(m == expected, "va...
16.121212
45
0.699248
sugawaray
659fab3988ab51597ab3392e29f2e90b410c6056
990
cpp
C++
luogu/problems/P3174.cpp
songhn233/ACM_Steps
6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe
[ "CC0-1.0" ]
1
2020-08-10T21:40:21.000Z
2020-08-10T21:40:21.000Z
luogu/problems/P3174.cpp
songhn233/Algorithm-Packages
56d6f3c2467c175ab8a19b82bdfb25fc881e2206
[ "CC0-1.0" ]
null
null
null
luogu/problems/P3174.cpp
songhn233/Algorithm-Packages
56d6f3c2467c175ab8a19b82bdfb25fc881e2206
[ "CC0-1.0" ]
null
null
null
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn=600050; int n,m; int f[maxn]; int head[maxn],num,ans; struct node{ int v,nex; }e[maxn]; inline int read() { int x=0,t=1;char ch=getchar(); while(ch>'9'||ch<'0'){if(ch=='-')t=-1;ch=getchar();} while(ch>='0'&...
16.229508
65
0.566667
songhn233
65a13df43d8d533377a19e7161cf7c863297a1a2
956
cpp
C++
src/Nodes/Trigger/ResetTrigger.cpp
potrepka/DSP
0ffe314196efcd016cdb4ffff27ada0f326e50c3
[ "MIT" ]
1
2020-11-17T20:29:45.000Z
2020-11-17T20:29:45.000Z
src/Nodes/Trigger/ResetTrigger.cpp
nspotrepka/DSP
0ffe314196efcd016cdb4ffff27ada0f326e50c3
[ "MIT" ]
null
null
null
src/Nodes/Trigger/ResetTrigger.cpp
nspotrepka/DSP
0ffe314196efcd016cdb4ffff27ada0f326e50c3
[ "MIT" ]
null
null
null
#include "ResetTrigger.h" dsp::ResetTrigger::ResetTrigger() : Producer(Type::BOOLEAN) {} void dsp::ResetTrigger::reset() { lock(); for (size_t channel = 0; channel < getNumOutputChannels(); ++channel) { state[channel] = true; } unlock(); } void dsp::ResetTrigger::reset(size_t channel...
25.837838
79
0.605649
potrepka
65a35fb0c81c713e3d60d55ea9498a8101d1503b
1,044
cpp
C++
Mathematics/Number Theory/GCD and or LCM/LCM Cardinality.cpp
satvik007/uva
72a763f7ed46a34abfcf23891300d68581adeb44
[ "MIT" ]
3
2017-08-12T06:09:39.000Z
2018-09-16T02:31:27.000Z
Mathematics/Number Theory/GCD and or LCM/LCM Cardinality.cpp
satvik007/uva
72a763f7ed46a34abfcf23891300d68581adeb44
[ "MIT" ]
null
null
null
Mathematics/Number Theory/GCD and or LCM/LCM Cardinality.cpp
satvik007/uva
72a763f7ed46a34abfcf23891300d68581adeb44
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef long ll; typedef vector <int> vi; typedef pair <int, int> ii; int sieveSize; vi primes; bitset<1000010> bs; void sieve(int size) { sieveSize = size + 1; bs.set(); bs[0] = bs[1] = 0; for(ll i = 2; i<=sieveSize; i++)if(bs[i]) { primes.push_ba...
22.695652
58
0.458812
satvik007
65a5ef306f512be3086ea9ece0189b3c2a0ace63
4,258
cpp
C++
src/Clients/cliutils/CsvStringParse.cpp
natronkeltner/openpegasus
e64f383c1ed37826041fc63e83b4e65fc1c679ae
[ "ICU", "Unlicense", "OpenSSL", "MIT" ]
1
2021-11-12T21:28:50.000Z
2021-11-12T21:28:50.000Z
src/Clients/cliutils/CsvStringParse.cpp
natronkeltner/openpegasus
e64f383c1ed37826041fc63e83b4e65fc1c679ae
[ "ICU", "Unlicense", "OpenSSL", "MIT" ]
39
2021-01-18T19:28:41.000Z
2022-03-27T20:55:36.000Z
src/Clients/cliutils/CsvStringParse.cpp
natronkeltner/openpegasus
e64f383c1ed37826041fc63e83b4e65fc1c679ae
[ "ICU", "Unlicense", "OpenSSL", "MIT" ]
4
2021-07-09T12:52:33.000Z
2021-12-21T15:05:59.000Z
//%LICENSE//////////////////////////////////////////////////////////////// //// //// Licensed to The Open Group (TOG) under one or more contributor license //// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with //// this work for additional information regarding copyright ownership. //// Each contri...
35.190083
79
0.511743
natronkeltner
65a60c1e7871a26a1b12748387f5dce3eec8f220
956
cpp
C++
c++/leetcode/0463-Island_Perimeter-E.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
1
2020-03-02T10:56:22.000Z
2020-03-02T10:56:22.000Z
c++/leetcode/0463-Island_Perimeter-E.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
c++/leetcode/0463-Island_Perimeter-E.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
// 463 Island Perimeter // https://leetcode.com/problems/island-perimeter // version: 1; create time: 2020-02-08 15:48:08; class Solution { public: int islandPerimeter(vector<vector<int>>& grid) { int perimeter = 0; for (int i = 0; i < grid.size(); ++i) { for (int j = 0; j < grid[0].siz...
34.142857
92
0.365063
levendlee
65a733433c0e7f437e72975fca0ce5767a723e03
3,391
cpp
C++
src/plugins/dbusmanager/tasks.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
1
2017-01-12T07:05:45.000Z
2017-01-12T07:05:45.000Z
src/plugins/dbusmanager/tasks.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
src/plugins/dbusmanager/tasks.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 Georg Rudoy * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organiz...
33.91
78
0.688293
MellonQ
65aa362ec6d9b7d97a8d5eb1893a58dc4d2a3ddd
894
cpp
C++
arti_base_control/test/test_wheel.cpp
ARTI-Robots/base_control
858edf33452ee6058b77299dc0e32ea7d7028778
[ "BSD-2-Clause" ]
null
null
null
arti_base_control/test/test_wheel.cpp
ARTI-Robots/base_control
858edf33452ee6058b77299dc0e32ea7d7028778
[ "BSD-2-Clause" ]
null
null
null
arti_base_control/test/test_wheel.cpp
ARTI-Robots/base_control
858edf33452ee6058b77299dc0e32ea7d7028778
[ "BSD-2-Clause" ]
null
null
null
// // Created by abuchegger on 08.07.18. // #include <gtest/gtest.h> #include <cmath> #include <memory> #include <arti_base_control/steering.h> #include <arti_base_control/wheel.h> TEST(WheelTest, SimpleFrontWheelTest) { const arti_base_control::Wheel wheel(1.0, 0.0, 0.0, 0.5, std::make_shared<arti_base_control::Ide...
35.76
125
0.695749
ARTI-Robots
65acad13067b8ba75d80e2e38ed286736746ad85
840
cpp
C++
lib/test/AddressTest.cpp
glbwsk/oop
7856a909bfdd197dc13c0f6945ef9c6e00aaa889
[ "MIT" ]
1
2020-07-02T17:16:29.000Z
2020-07-02T17:16:29.000Z
lib/test/AddressTest.cpp
glbwsk/oop
7856a909bfdd197dc13c0f6945ef9c6e00aaa889
[ "MIT" ]
null
null
null
lib/test/AddressTest.cpp
glbwsk/oop
7856a909bfdd197dc13c0f6945ef9c6e00aaa889
[ "MIT" ]
1
2021-05-28T13:13:19.000Z
2021-05-28T13:13:19.000Z
#include <boost/test/unit_test.hpp> #include "Address.hpp" /* Unit tests for Adress.hpp */ /* correct */ BOOST_AUTO_TEST_SUITE( AddressSuiteCorrect ) BOOST_AUTO_TEST_CASE( ctor_default ) { Address newAddress1; BOOST_CHECK_EQUAL( newAddress1.getStreet(), "null" ); BOOST_CHECK_EQUAL( newAddress...
28.965517
63
0.695238
glbwsk
65ae6c5928069b9f022474693ccc4a22aa50ce64
16,520
cpp
C++
liballofw/src/opengl.cpp
donghaoren/AllofwModule
4367327cda0605aad53469294ed8751f8befbdc3
[ "Unlicense" ]
3
2016-05-04T23:23:48.000Z
2021-08-03T21:48:07.000Z
liballofw/src/opengl.cpp
donghaoren/AllofwModule
4367327cda0605aad53469294ed8751f8befbdc3
[ "Unlicense" ]
null
null
null
liballofw/src/opengl.cpp
donghaoren/AllofwModule
4367327cda0605aad53469294ed8751f8befbdc3
[ "Unlicense" ]
2
2016-01-31T04:06:51.000Z
2016-09-30T16:38:36.000Z
#include "allofw/opengl.h" #include "allofw/opengl_utils.h" #include "allofw/logger.h" // #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> #include <stdlib.h> #include <stdio.h> #include <map> ALLOFW_NS_BEGIN namespace { bool glfw_initialized = false; void glfw_error_callback(int error, const char* descrip...
39.427208
109
0.6454
donghaoren
65b8c7552696f73eb27709cb992cb8a9b62e9dbb
1,701
cpp
C++
C++/Project Euler 8 (C++)/main.cpp
Zeeraa/ProjectEuler
b156bc1abf3ea18c2cd361bf3bb98610a8cb4ab6
[ "MIT" ]
null
null
null
C++/Project Euler 8 (C++)/main.cpp
Zeeraa/ProjectEuler
b156bc1abf3ea18c2cd361bf3bb98610a8cb4ab6
[ "MIT" ]
null
null
null
C++/Project Euler 8 (C++)/main.cpp
Zeeraa/ProjectEuler
b156bc1abf3ea18c2cd361bf3bb98610a8cb4ab6
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <sstream> #include "big_number.cpp" #define adjacentDigits 13 int main() { const std::string theNumber = "73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747...
44.763158
1,037
0.78836
Zeeraa
65ba532623a98e716c8ce95cf76051547c15c3f7
4,982
cpp
C++
src/bt-luaengine/app-src/render/ObjRenderer.cpp
puretekniq/batterytech
cc831b2835b7bf4826948831f0274e3d80921339
[ "MIT", "BSD-3-Clause-Clear", "Zlib", "BSD-3-Clause" ]
10
2015-04-07T22:23:31.000Z
2016-03-06T11:48:32.000Z
src/bt-luaengine/app-src/render/ObjRenderer.cpp
robdoesstuff/batterytech
cc831b2835b7bf4826948831f0274e3d80921339
[ "MIT", "BSD-3-Clause-Clear", "Zlib", "BSD-3-Clause" ]
3
2015-05-17T10:45:48.000Z
2016-07-29T18:34:53.000Z
src/bt-luaengine/app-src/render/ObjRenderer.cpp
puretekniq/batterytech
cc831b2835b7bf4826948831f0274e3d80921339
[ "MIT", "BSD-3-Clause-Clear", "Zlib", "BSD-3-Clause" ]
4
2015-05-03T03:00:48.000Z
2016-03-03T12:49:01.000Z
/* * BatteryTech * Copyright (c) 2010 Battery Powered Games LLC. * * This code is a component of BatteryTech and is subject to the 'BatteryTech * End User License Agreement'. Among other important provisions, this * license prohibits the distribution of source code to anyone other than * authorized parti...
44.882883
137
0.742071
puretekniq
65ba7bd9b3e2f7083f5f5fc2ffa8c9d9f3c1a275
1,258
cc
C++
examples/boil/test/test.cc
BvB93/noodles
7547471baa18a11b8020c017388a7e208d194ef4
[ "Apache-2.0" ]
22
2016-07-26T20:42:08.000Z
2022-02-08T16:04:25.000Z
examples/boil/test/test.cc
BvB93/noodles
7547471baa18a11b8020c017388a7e208d194ef4
[ "Apache-2.0" ]
71
2015-12-24T18:44:32.000Z
2022-02-11T11:31:08.000Z
examples/boil/test/test.cc
BvB93/noodles
7547471baa18a11b8020c017388a7e208d194ef4
[ "Apache-2.0" ]
8
2016-12-22T10:14:28.000Z
2020-06-05T21:01:51.000Z
#include "test.hh" #include <iostream> #include <sstream> int __assert_fail(std::string const &expr, std::string const &file, int lineno) { std::ostringstream oss; oss << file << ":" << lineno << ": Assertion failed: " << expr; throw oss.str(); return 0; } std::unique_ptr<std::map<std::string, Test co...
20.290323
79
0.605723
BvB93
65bc96015615bc4e8c669184bd1bb2b8efb0839d
2,237
cpp
C++
src/pd/dm300.cpp
mtribiere/Pixel-dungeon-CPP
ed930aaeefd1f08eed73ced928acae6e1fe34fa4
[ "MIT" ]
null
null
null
src/pd/dm300.cpp
mtribiere/Pixel-dungeon-CPP
ed930aaeefd1f08eed73ced928acae6e1fe34fa4
[ "MIT" ]
null
null
null
src/pd/dm300.cpp
mtribiere/Pixel-dungeon-CPP
ed930aaeefd1f08eed73ced928acae6e1fe34fa4
[ "MIT" ]
null
null
null
#include "dm300.h" #include "mobsprite.h" #include "dungeon.h" #include "statistics.h" #include "terrain.h" #include "glog.h" #include "cellemitter.h" #include "speck.h" #include "gamescene.h" #include "hero.h" CharSprite* DM300::Sprite() { return new DM300Sprite(); } Mob* DM300::CreateDM300() { r...
20.153153
74
0.604828
mtribiere
65bd940bbd64b4f755f072f81cda4a3162a34761
1,008
cpp
C++
test/base/main.cpp
Mirmik/g2
9810fa7aef5c984c96b79f90383fcab5e65d8d65
[ "MIT" ]
null
null
null
test/base/main.cpp
Mirmik/g2
9810fa7aef5c984c96b79f90383fcab5e65d8d65
[ "MIT" ]
null
null
null
test/base/main.cpp
Mirmik/g2
9810fa7aef5c984c96b79f90383fcab5e65d8d65
[ "MIT" ]
null
null
null
#include <gxx/print.h> #include <g1/tower.h> #include <g1/gates/udpgate.h> #include <g1/indexes.h> #include <g2/core.h> //#include <g2/channel/spam.h> //#include <g2/channel/test.h> #include <g2/channel/echo.h> #include <gxx/util/gaddr.h> #include <thread> #include <chrono> void g1_incoming(g1::packet* pack) { swi...
20.571429
66
0.677579
Mirmik
65c032947e5b7b1d5f83422f0cb5447ea31973ed
9,203
cpp
C++
tests/Main.cpp
marmakoide/saucats
4b735c3be87c71067e8b4eb968872850bb2d8545
[ "MIT" ]
1
2020-12-29T20:28:24.000Z
2020-12-29T20:28:24.000Z
tests/Main.cpp
marmakoide/saucats
4b735c3be87c71067e8b4eb968872850bb2d8545
[ "MIT" ]
null
null
null
tests/Main.cpp
marmakoide/saucats
4b735c3be87c71067e8b4eb968872850bb2d8545
[ "MIT" ]
null
null
null
#include <minunit.h> #include <saucats/Geometry> #include <saucats/Macros> #include <saucats/Render> #include <saucats/SDF> #include <saucats/utils/ArrayT.h> #include <random> #include <iostream> using namespace std; using namespace saucats; // --- Utilities ------------------------------------------------------...
29.59164
130
0.697707
marmakoide
65c26c6ad13ae0f857f00a12f63a7d30d468337c
1,356
cpp
C++
Contributions/majority element n%3.cpp
sattwik21/Hacktoberfest2021-1
74c8edd54f9c967c0f301f74dec31526dffa8222
[ "MIT" ]
215
2021-10-01T08:18:16.000Z
2022-03-29T04:12:03.000Z
Contributions/majority element n%3.cpp
sattwik21/Hacktoberfest2021-1
74c8edd54f9c967c0f301f74dec31526dffa8222
[ "MIT" ]
51
2021-10-01T08:16:42.000Z
2021-10-31T13:51:51.000Z
Contributions/majority element n%3.cpp
sattwik21/Hacktoberfest2021-1
74c8edd54f9c967c0f301f74dec31526dffa8222
[ "MIT" ]
807
2021-10-01T08:11:45.000Z
2021-11-21T18:57:09.000Z
// Majority element >n/3 // nums = [1 2 3 3 1 2 1 1 3 3] // ans = [2,3] #include <iostream> #include <vector> using namespace std; vector<int> majorityElements (vector<int>& nums) { int n = nums.size(); int n1 = -1, n2 = -1; int c1 = 0, c2 = 0; for (int i=0; i<n; i++) { if ...
18.833333
49
0.381268
sattwik21
65c6c290347b74ee5c793d221cf5b1185a7ff330
4,131
hpp
C++
lib/include/drivers/spi/detail/write_dma.hpp
niclasberg/asfw
f836de1c0d6350541e3253863dedab6a3eb81df7
[ "MIT" ]
null
null
null
lib/include/drivers/spi/detail/write_dma.hpp
niclasberg/asfw
f836de1c0d6350541e3253863dedab6a3eb81df7
[ "MIT" ]
null
null
null
lib/include/drivers/spi/detail/write_dma.hpp
niclasberg/asfw
f836de1c0d6350541e3253863dedab6a3eb81df7
[ "MIT" ]
null
null
null
#pragma once #include "async/receiver.hpp" #include "async/sender.hpp" #include "async/scheduler.hpp" #include "drivers/dma/dma_concepts.hpp" #include "drivers/dma/dma_signal.hpp" #include "../spi_error.hpp" #include <array> #include "delegate.hpp" #include "reg/bit_is_set.hpp" namespace drivers::spi::detail { te...
30.6
119
0.567417
niclasberg
65cc1feeba9da9203c3d9f35aeca46d8f72c56e8
2,437
cpp
C++
DesignPatern/src/Behavioral/Visitor/file_visitor.cpp
behnamasadi/design_pattern
461d5bf75f5528ef9f01102299c0387b623d0d7c
[ "BSD-3-Clause" ]
3
2019-07-20T06:22:32.000Z
2020-05-31T07:49:06.000Z
DesignPatern/src/Behavioral/Visitor/file_visitor.cpp
behnamasadi/design_pattern
461d5bf75f5528ef9f01102299c0387b623d0d7c
[ "BSD-3-Clause" ]
null
null
null
DesignPatern/src/Behavioral/Visitor/file_visitor.cpp
behnamasadi/design_pattern
461d5bf75f5528ef9f01102299c0387b623d0d7c
[ "BSD-3-Clause" ]
1
2020-05-31T02:00:08.000Z
2020-05-31T02:00:08.000Z
#include <iostream> #include <vector> class AbstractDispatcher; // Forward declare AbstractDispatcher class File { // Parent class for the elements (ArchivedFile, SplitFile and // ExtractedFile) public: // This function accepts an object of any class derived from // AbstractDispatcher and must be...
27.077778
75
0.704555
behnamasadi
65d338d6ab14ae8801e0e50658e11f0462e1f430
176
cpp
C++
sources/main.cpp
LemuriiL/Lab8HTTP-Part2
858a86294f2edbf38c45f6d5b8335d49ef18ea89
[ "MIT" ]
null
null
null
sources/main.cpp
LemuriiL/Lab8HTTP-Part2
858a86294f2edbf38c45f6d5b8335d49ef18ea89
[ "MIT" ]
null
null
null
sources/main.cpp
LemuriiL/Lab8HTTP-Part2
858a86294f2edbf38c45f6d5b8335d49ef18ea89
[ "MIT" ]
null
null
null
// Copyright 2021 LemuriiL <nice.duble@mail.ru> #include <Client.hpp> int main(int argc, [[maybe_unused]] char **argv) { Client A(argc, argv); return A.clientRequest(); }
22
50
0.6875
LemuriiL
65d3aa693e0daffe591e9922242d491dd88ce439
47
cpp
C++
tutorials/cplusplus.com#1.0#1/otherlanguagefeatures/preprocessordirectives/define_undef/source9.cpp
officialrafsan/CppDroid
5fb2cc7750fea53b1ea6ff47b5094da6e95e9224
[ "MIT" ]
null
null
null
tutorials/cplusplus.com#1.0#1/otherlanguagefeatures/preprocessordirectives/define_undef/source9.cpp
officialrafsan/CppDroid
5fb2cc7750fea53b1ea6ff47b5094da6e95e9224
[ "MIT" ]
null
null
null
tutorials/cplusplus.com#1.0#1/otherlanguagefeatures/preprocessordirectives/define_undef/source9.cpp
officialrafsan/CppDroid
5fb2cc7750fea53b1ea6ff47b5094da6e95e9224
[ "MIT" ]
null
null
null
#define glue(a,b) a ## b glue(c,out) << "test";
23.5
24
0.553191
officialrafsan
65d3ecd2b237f86a9adf71bf77e0deddfacf5e22
4,523
cpp
C++
devkitPro/examples/nds/Graphics/3D/nehe/lesson11/source/nehe11.cpp
TheMindVirus/codemii
33822905b99aa816eb346f8572a9f4906094352c
[ "MIT" ]
null
null
null
devkitPro/examples/nds/Graphics/3D/nehe/lesson11/source/nehe11.cpp
TheMindVirus/codemii
33822905b99aa816eb346f8572a9f4906094352c
[ "MIT" ]
null
null
null
devkitPro/examples/nds/Graphics/3D/nehe/lesson11/source/nehe11.cpp
TheMindVirus/codemii
33822905b99aa816eb346f8572a9f4906094352c
[ "MIT" ]
null
null
null
/**************************************** * NDS NeHe Lesson 11 * * Author: Dovoto * ****************************************/ // include your ndslib #include <nds.h> #include <malloc.h> #include <stdio.h> //needed to load pcx files #include <nds/arm9/image.h> #include <nds/arm9/trig_lut.h> #include...
21.745192
102
0.618174
TheMindVirus
65d41b74fb202447f45e4e7d4f8b06628d4c7734
4,546
cpp
C++
lmeditor/src/app/states/gui.cpp
Lawrencemm/LM-Engine
9c5e59e64e2a5a24c347538fa49046ab5a88d1f5
[ "MIT" ]
40
2020-03-13T06:12:11.000Z
2022-01-16T21:05:34.000Z
lmeditor/src/app/states/gui.cpp
Lawrencemm/LM-Engine
9c5e59e64e2a5a24c347538fa49046ab5a88d1f5
[ "MIT" ]
31
2020-02-09T06:25:12.000Z
2021-12-31T04:37:08.000Z
lmeditor/src/app/states/gui.cpp
Lawrencemm/LM-Engine
9c5e59e64e2a5a24c347538fa49046ab5a88d1f5
[ "MIT" ]
2
2020-03-13T06:12:12.000Z
2020-11-21T15:41:17.000Z
#include "../app.h" #include <lmeditor/model/selection.h> #include <lmlib/variant_visitor.h> #include <lmng/name.h> #include <lmtk/char_field.h> namespace lmeditor { bool editor_app::gui_state::handle( editor_app &app, lmtk::input_event const &input_event) { if ( input_event >> lm::variant_visitor{...
31.79021
80
0.481082
Lawrencemm
65dd99af9cfd4a51ce7538639e44547cb1d1ff16
9,100
cc
C++
src/router/inputoutputqueued/Router.cc
hkustliqi/SuperSim
7cff887d485b784c99b37b78a7adaedb4fde8da6
[ "Apache-2.0" ]
null
null
null
src/router/inputoutputqueued/Router.cc
hkustliqi/SuperSim
7cff887d485b784c99b37b78a7adaedb4fde8da6
[ "Apache-2.0" ]
null
null
null
src/router/inputoutputqueued/Router.cc
hkustliqi/SuperSim
7cff887d485b784c99b37b78a7adaedb4fde8da6
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 a...
36.25498
79
0.705934
hkustliqi
65de98f78a21794106a94efe619f9eb38e4b70ef
4,575
hpp
C++
src/elx_conv_wino_trans_weights.hpp
weizix/Deep-learning-math-kernel-research
383db01893d81872e2129a8c060dbe61934910d8
[ "Apache-2.0" ]
33
2019-06-13T00:45:58.000Z
2021-12-15T08:17:21.000Z
src/elx_conv_wino_trans_weights.hpp
uyongw/Deep-learning-math-kernel-research
6d65b8f2df7ab6d6db8f02066dae8bc59691ae58
[ "Apache-2.0" ]
2
2019-09-19T04:31:05.000Z
2019-10-21T10:16:00.000Z
src/elx_conv_wino_trans_weights.hpp
uyongw/Deep-learning-math-kernel-research
6d65b8f2df7ab6d6db8f02066dae8bc59691ae58
[ "Apache-2.0" ]
25
2019-08-30T05:39:36.000Z
2022-03-17T04:32:14.000Z
#pragma once #include "euler.hpp" #include "el_def.hpp" #include "el_utils.hpp" #include "elx_conv.hpp" #include "kernel/elk_conv_wino.hpp" #include "kernel/elk_conv_wino_2x2_3x3_weights.hxx" #include "kernel/elk_conv_wino_3x3_3x3_weights.hxx" #include "kernel/elk_conv_wino_4x4_3x3_weights.hxx" #include "kernel/elk_c...
32.21831
82
0.738798
weizix
65deaa11ff9f18bed58c8a1da8da4bd74dfcd015
462
hpp
C++
shapes/Thing.hpp
PabloMorenoUm/Projekt
ebd5b4bfbd5da0e86ade850ce0cd701e8eff2e83
[ "MIT" ]
null
null
null
shapes/Thing.hpp
PabloMorenoUm/Projekt
ebd5b4bfbd5da0e86ade850ce0cd701e8eff2e83
[ "MIT" ]
9
2021-06-30T14:58:40.000Z
2021-08-22T22:36:31.000Z
shapes/Thing.hpp
PabloMorenoUm/Projekt
ebd5b4bfbd5da0e86ade850ce0cd701e8eff2e83
[ "MIT" ]
null
null
null
// // Created by Pablo Moreno Um on 22.07.21. // #ifndef PROJEKT_THING_HPP #define PROJEKT_THING_HPP #include "Basic.hpp" class Thing: public Basic { protected: sf::Vector2f m_Position; void setPosition(const float& posX, const float& posY); public: Thing(); Thing(const float &posX, const float &posY...
20.086957
77
0.701299
PabloMorenoUm
65e0f132d440653004fb638835fbf0c754352b36
482
hpp
C++
game/opengl/utils.hpp
cassiersg/elec-2103
f0152c81e8d808a1ab62c78e9324fb99b341638a
[ "Apache-2.0" ]
null
null
null
game/opengl/utils.hpp
cassiersg/elec-2103
f0152c81e8d808a1ab62c78e9324fb99b341638a
[ "Apache-2.0" ]
null
null
null
game/opengl/utils.hpp
cassiersg/elec-2103
f0152c81e8d808a1ab62c78e9324fb99b341638a
[ "Apache-2.0" ]
null
null
null
#ifndef _H_UTILS_H_373267 #define _H_UTILS_H_373267 #include <stdlib.h> void export_bmp_py(unsigned int* img, size_t img_len, char *fname); void export_bmp(char *fname, int width, int height, unsigned char* img); void export_raw(char *fname, int width, int height, unsigned char* img); unsigned int uint_min(unsigned i...
34.428571
75
0.767635
cassiersg
65ebcf03b15d0b9a4a8e3199da0aab79e039dfb2
1,443
cpp
C++
src/hybrid_a_star_planner.cpp
JialiangHan/path_planner
2a995f6527872e6bd0e3fe6c9a6e0e2744a2de29
[ "BSD-3-Clause" ]
null
null
null
src/hybrid_a_star_planner.cpp
JialiangHan/path_planner
2a995f6527872e6bd0e3fe6c9a6e0e2744a2de29
[ "BSD-3-Clause" ]
null
null
null
src/hybrid_a_star_planner.cpp
JialiangHan/path_planner
2a995f6527872e6bd0e3fe6c9a6e0e2744a2de29
[ "BSD-3-Clause" ]
null
null
null
#include <pluginlib/class_list_macros.h> #include "hybrid_a_star_planner.h" // register this planner as a BaseGlobalPlanner plugin PLUGINLIB_EXPORT_CLASS(HybridAStar::HybridAStarPlanner, nav_core::BaseGlobalPlanner) using namespace std; // Default Constructor namespace HybridAStar { HybridAStarPlanner::HybridAS...
30.0625
165
0.656272
JialiangHan
65ef1b7788fdb9915b2b22718e100afcb738eff3
1,812
cpp
C++
src/technique/main.cpp
ref2401/cg
4654377f94fe54945c33156911ca25e807c96236
[ "MIT" ]
2
2019-04-02T14:19:01.000Z
2021-05-27T13:42:20.000Z
src/technique/main.cpp
ref2401/cg
4654377f94fe54945c33156911ca25e807c96236
[ "MIT" ]
4
2016-11-05T14:17:14.000Z
2017-03-30T15:03:37.000Z
src/technique/main.cpp
ref2401/cg
4654377f94fe54945c33156911ca25e807c96236
[ "MIT" ]
null
null
null
#include <memory> #include <sstream> #include <utility> #include <windows.h> #include "cg/base/base.h" #include "cg/base/math.h" #include "cg/sys/app.h" #include "technique/deferred_lighting/deferred_lighting.h" #include "technique/fur_simulation/fur_simulation_opengl.h" #include "technique/parallax_occlusion_...
30.711864
99
0.6766
ref2401
65f84ea98358c166790090ef82943551625efb91
1,457
cpp
C++
src/pizza_delivery.cpp
ltowarek/pizza-delivery
674d2e8fb671abc466c9a6a16e2fd79a6205cf20
[ "MIT" ]
null
null
null
src/pizza_delivery.cpp
ltowarek/pizza-delivery
674d2e8fb671abc466c9a6a16e2fd79a6205cf20
[ "MIT" ]
null
null
null
src/pizza_delivery.cpp
ltowarek/pizza-delivery
674d2e8fb671abc466c9a6a16e2fd79a6205cf20
[ "MIT" ]
null
null
null
#include "pizza_delivery.h" int pizzadelivery::PizzaDelivery::TotalDeliveryCost(const int size_x, const int size_y, const std::vector<int> &grid) const { auto output = int{0}; for (int y = 0; y < size_y; ++y) {...
34.690476
89
0.444749
ltowarek
65fbb8353198c1b629133c0a8fa8bf1cdff9f68a
710
cpp
C++
hihocoder/sheild.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
5
2016-10-29T09:28:11.000Z
2019-10-19T23:02:48.000Z
hihocoder/sheild.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
null
null
null
hihocoder/sheild.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
null
null
null
/* Time Limit:10000ms Case Time Limit:1000ms Memory Limit:256MB Description 小Ho的虚拟城市正在遭受小Hi的攻击,小Hi用来攻击小Ho城市的武器是一艘歼星舰,这艘歼星舰会以T(T为大于0的整数)个单位时间的间隔向小Ho的城市轰击。歼星舰总共有N枚炮弹,其中第i枚会造成Ai点伤害值。 幸好小Ho的城市有K层护盾,每层护盾可以抵挡M点伤害。当某次轰击使得伤害值达或超过M时,该层护盾就会被击碎;该次轰击溢出的伤害不会作用于下一层护盾;下一次轰击将由下一层护盾承受。 同时,受损但尚未被击碎护盾会以每单位时间减少1点伤害值的速度修复自己,直到伤害值降为0。这就意味...
17.75
103
0.829577
qiaotian
5a0204add9076f9a0f4e4aa29fb039ed9ca099d8
2,157
cpp
C++
src/dHRU_interface_to_R.cpp
petrmaca/dHRUM
5ef85f199ed5a926035d01fec264303bbbef27ac
[ "MIT" ]
null
null
null
src/dHRU_interface_to_R.cpp
petrmaca/dHRUM
5ef85f199ed5a926035d01fec264303bbbef27ac
[ "MIT" ]
6
2021-08-19T07:31:05.000Z
2021-09-16T19:32:53.000Z
src/dHRU_interface_to_R.cpp
petrmaca/dHRUM
5ef85f199ed5a926035d01fec264303bbbef27ac
[ "MIT" ]
null
null
null
#include <Rcpp.h> #include "dHRUM.h" //' Initialization of dHRU pointer to a dHRUM //' //' Creates pointer instance of dHRUM for the catchment. //' initializes a dimension of dHRUM controled by the number of single Hru, areas of all single Hrus, //' and ID's of all single Hrus. //' //' @param dimdHru a single \code{nu...
41.480769
113
0.675012
petrmaca
5a02c1cdb8d55c7f08d701b6d0869ada1e2ecec8
784
cpp
C++
src/Strategy.cpp
maxvu/bjsim4
944811eafdbe6a088d9190e92f6108c28ba7b972
[ "MIT" ]
null
null
null
src/Strategy.cpp
maxvu/bjsim4
944811eafdbe6a088d9190e92f6108c28ba7b972
[ "MIT" ]
null
null
null
src/Strategy.cpp
maxvu/bjsim4
944811eafdbe6a088d9190e92f6108c28ba7b972
[ "MIT" ]
null
null
null
#include "Strategy.hpp" #include "Seat.hpp" #include "Hand.hpp" #include <string> namespace bjsim4 { double DealerStrategy::decideInsurance ( const Seat & seat ) { return 0.0; } double DealerStrategy::decideBet ( const Seat & seat ) { return 0.0; } double DealerStrategy::decideSidebet ( const S...
17.818182
49
0.645408
maxvu
5a06b3b2e6a811a4af51a46ee206619fc49c21c1
21,235
hpp
C++
src/Ystring/Utf/Utf16WChars.hpp
wvffle/Ystring
a1ee9da1e433a2e74e432da6834638d547265126
[ "BSD-2-Clause" ]
null
null
null
src/Ystring/Utf/Utf16WChars.hpp
wvffle/Ystring
a1ee9da1e433a2e74e432da6834638d547265126
[ "BSD-2-Clause" ]
1
2021-02-28T12:46:55.000Z
2021-03-03T20:58:14.000Z
src/Ystring/Utf/Utf16WChars.hpp
wvffle/Ystring
a1ee9da1e433a2e74e432da6834638d547265126
[ "BSD-2-Clause" ]
1
2021-02-28T13:02:43.000Z
2021-02-28T13:02:43.000Z
//**************************************************************************** // Copyright © 2015 Jan Erik Breimo. All rights reserved. // Created by Jan Erik Breimo on 2015-07-30 // // This file is distributed under the Simplified BSD License. // License text is included with the source distribution. //**************...
60.498575
78
0.652837
wvffle
5a088c016ddc845e55272b377d69dedf2132b048
552
cpp
C++
Examples/main.cpp
mpartio/MXADataModel
cfab4b41bca5c71d0ab16fb4f3ed3097093f0a57
[ "BSD-3-Clause" ]
null
null
null
Examples/main.cpp
mpartio/MXADataModel
cfab4b41bca5c71d0ab16fb4f3ed3097093f0a57
[ "BSD-3-Clause" ]
null
null
null
Examples/main.cpp
mpartio/MXADataModel
cfab4b41bca5c71d0ab16fb4f3ed3097093f0a57
[ "BSD-3-Clause" ]
1
2020-08-26T07:08:26.000Z
2020-08-26T07:08:26.000Z
/////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2006, Shawn Nicholson // All rights reserved. // BSD License: http://www.opensource.org/licenses/bsd-license.html // // This code was written under United States Air Force Contract number // ...
22.08
79
0.442029
mpartio
5a0a154003aa0708028043afe8b398252241bc52
4,034
cpp
C++
src/ped-hi-main.cpp
yp/Heu-MCHC
30c4a5e189c7ab67d82357d2c8a98833a556345a
[ "BSD-3-Clause" ]
1
2020-06-30T04:39:34.000Z
2020-06-30T04:39:34.000Z
src/ped-hi-main.cpp
yp/Heu-MCHC
30c4a5e189c7ab67d82357d2c8a98833a556345a
[ "BSD-3-Clause" ]
null
null
null
src/ped-hi-main.cpp
yp/Heu-MCHC
30c4a5e189c7ab67d82357d2c8a98833a556345a
[ "BSD-3-Clause" ]
null
null
null
/** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 Yuri PIROLA * * Distributed under the terms of the GNU General Public License (GPL) * * * T...
28.20979
98
0.658651
yp
5a0af5da6763ec46d135ba38bdeefe44148cd1b6
59,121
cpp
C++
morph.cpp
1Hyena/atomorph
bea16cbf810d153072d3c2d7632341e6ead3632e
[ "MIT" ]
2
2019-11-26T04:46:27.000Z
2020-12-24T06:04:31.000Z
morph.cpp
1Hyena/atomorph
bea16cbf810d153072d3c2d7632341e6ead3632e
[ "MIT" ]
1
2018-08-20T23:35:21.000Z
2018-08-21T07:50:55.000Z
morph.cpp
1Hyena/atomorph
bea16cbf810d153072d3c2d7632341e6ead3632e
[ "MIT" ]
null
null
null
/* * See Copyright Notice in atomorph.h */ #include "atomorph.h" namespace am { morph::morph() { std::default_random_engine e(0); e1 = e; } morph::~morph() { clear(); } void morph::clear() { while (!frames.empty()) { frame f = frames.begin()->second; while (!f.blobs.empty()...
37.560991
132
0.457266
1Hyena
5a0e557795694871014b66568bf27061727b462e
1,981
cpp
C++
mr.Sadman/Classes/GameAct/Objects/Physical/Explosion.cpp
1pkg/dump
0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b
[ "MIT" ]
null
null
null
mr.Sadman/Classes/GameAct/Objects/Physical/Explosion.cpp
1pkg/dump
0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b
[ "MIT" ]
3
2020-12-11T10:01:27.000Z
2022-02-13T22:12:05.000Z
mr.Sadman/Classes/GameAct/Objects/Tech/Explosion.cpp
1pkg/dump
0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b
[ "MIT" ]
null
null
null
#include "Explosion.hpp" #include "Game/Levels/Chunk.hpp" namespace Objects { namespace Tech { Explosion::Explosion() : Stream( Direction::Empty ) { } void Explosion::initialize() { Stream::initialize(); _particle->setStartColor( cocos2d::Color4F::RED ); _particle->setEndColor( cocos2d::Col...
22.770115
99
0.639071
1pkg
5a0f4c35866219242e694614390440b7b6d7b308
97
cpp
C++
src/helloworld_cli/lib.cpp
qrealka/OTUS_CPP
900f793c2cc148932213b0f12fc54834254f2b33
[ "BSL-1.0" ]
1
2022-02-24T15:21:23.000Z
2022-02-24T15:21:23.000Z
src/helloworld_cli/lib.cpp
qrealka/OTUS_CPP
900f793c2cc148932213b0f12fc54834254f2b33
[ "BSL-1.0" ]
null
null
null
src/helloworld_cli/lib.cpp
qrealka/OTUS_CPP
900f793c2cc148932213b0f12fc54834254f2b33
[ "BSL-1.0" ]
null
null
null
#include "lib.h" #include "version.h" unsigned version() { return PROJECT_VERSION_PATCH; }
10.777778
33
0.701031
qrealka
5a0f6807ed770b49aebc512c1dcd4808228537bb
1,591
cc
C++
PTA/PAT_A/Cpp11/A1014_AC.cc
StrayDragon/OJ-Solutions
b31b11c01507544aded2302923da080b39cf2ba8
[ "MIT" ]
1
2019-05-13T10:09:55.000Z
2019-05-13T10:09:55.000Z
PTA/PAT_A/Cpp11/A1014_AC.cc
StrayDragon/OJ-Solutions
b31b11c01507544aded2302923da080b39cf2ba8
[ "MIT" ]
null
null
null
PTA/PAT_A/Cpp11/A1014_AC.cc
StrayDragon/OJ-Solutions
b31b11c01507544aded2302923da080b39cf2ba8
[ "MIT" ]
null
null
null
// --- // id : A1014 // title : Waiting in Line // difficulty : Hard // score : 30 // tag : TODO // keyword : TODO // status : AC // from : PAT (Advanced Level) Practice // --- #include <algorithm> #include <iostream> #include <queue> using namespace std; #define START_TIME 480...
23.057971
78
0.548712
StrayDragon
5a131bdaca85bb9c307ae23f1cc9a27c5adc7973
2,228
cpp
C++
src/lua/functions/core/libs/result_functions.cpp
Waclaw-I/BagnoOTS
dbeb04322698ecdb795eba196872815b36ca134f
[ "MIT" ]
null
null
null
src/lua/functions/core/libs/result_functions.cpp
Waclaw-I/BagnoOTS
dbeb04322698ecdb795eba196872815b36ca134f
[ "MIT" ]
null
null
null
src/lua/functions/core/libs/result_functions.cpp
Waclaw-I/BagnoOTS
dbeb04322698ecdb795eba196872815b36ca134f
[ "MIT" ]
null
null
null
/** * Canary - A free and open-source MMORPG server emulator * Copyright (C) 2021 OpenTibiaBR <opentibiabr@outlook.com> * * 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 o...
28.935065
81
0.72711
Waclaw-I
5a13282259899c9df6f4b6007e53d2d08adae39a
1,629
hpp
C++
cppcache/src/EvictionThread.hpp
austxcodemonkey/geode-native
a816ac99cbbac557629686cb2542fdc74d464338
[ "Apache-2.0" ]
null
null
null
cppcache/src/EvictionThread.hpp
austxcodemonkey/geode-native
a816ac99cbbac557629686cb2542fdc74d464338
[ "Apache-2.0" ]
1
2021-02-23T12:27:00.000Z
2021-02-23T12:27:00.000Z
cppcache/src/EvictionThread.hpp
isabella232/geode-native
0d9a99d5e0632de62df17921950cf3f6640efb33
[ "Apache-2.0" ]
null
null
null
/* * 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 ...
26.274194
75
0.750153
austxcodemonkey
5a1667fe6fe1ae6f5aeb07f962d0fbd12e26b77e
857
cpp
C++
GameEngine/GameEngine/src/graphics/filter/FilterArray.cpp
SamCooksley/GameEngine
3c32eba545428c8aa3227abcb815d8d799ab92d9
[ "Apache-2.0" ]
null
null
null
GameEngine/GameEngine/src/graphics/filter/FilterArray.cpp
SamCooksley/GameEngine
3c32eba545428c8aa3227abcb815d8d799ab92d9
[ "Apache-2.0" ]
null
null
null
GameEngine/GameEngine/src/graphics/filter/FilterArray.cpp
SamCooksley/GameEngine
3c32eba545428c8aa3227abcb815d8d799ab92d9
[ "Apache-2.0" ]
null
null
null
#include "stdafx.h" #include "FilterArray.h" #include "..\Graphics.h" namespace engine { namespace graphics { FilterArray::FilterArray(const std::shared_ptr<Shader> & _shader) : Material(_shader), m_srcUnit(0) { setTexture<Texture2DArray>("src", nullptr); getTextureUnit("src", &m_srcUnit); } ...
20.902439
71
0.64294
SamCooksley
5a1e304de7ecbb3081354986afb9a5311c5ce016
659
cpp
C++
bin/baltik/share/self_test/basic_erreur_valgrind/src/Testeur2.cpp
cea-trust-platform/trust-code
c4f42d8f8602a8cc5e0ead0e29dbf0be8ac52f72
[ "BSD-3-Clause" ]
12
2021-06-30T18:50:38.000Z
2022-03-23T09:03:16.000Z
bin/baltik/share/self_test/basic_erreur_valgrind/src/Testeur2.cpp
pledac/trust-code
46ab5c5da3f674185f53423090f526a38ecdbad1
[ "BSD-3-Clause" ]
null
null
null
bin/baltik/share/self_test/basic_erreur_valgrind/src/Testeur2.cpp
pledac/trust-code
46ab5c5da3f674185f53423090f526a38ecdbad1
[ "BSD-3-Clause" ]
2
2021-10-04T09:19:39.000Z
2021-12-15T14:21:04.000Z
////////////////////////////////////////////////////////////////////////////// // // File: Testeur2.cpp // ////////////////////////////////////////////////////////////////////////////// #include <Testeur2.h> Implemente_instanciable(Testeur2,"Testeur2",Interprete); // printOn et readOn Sortie& Testeur2::pri...
19.969697
92
0.500759
cea-trust-platform
5a200bd60c68ec8dff80dfa1e7b369dd0000ed43
366
cpp
C++
Problem Set Volumes/Volume 1/146 - ID Codes.cpp
Md-Shamim-Ahmmed/UVA-Online-Judge-Problems-Solution
2334edb153a134aebb883b57d8b4faf0cb859331
[ "MIT" ]
null
null
null
Problem Set Volumes/Volume 1/146 - ID Codes.cpp
Md-Shamim-Ahmmed/UVA-Online-Judge-Problems-Solution
2334edb153a134aebb883b57d8b4faf0cb859331
[ "MIT" ]
null
null
null
Problem Set Volumes/Volume 1/146 - ID Codes.cpp
Md-Shamim-Ahmmed/UVA-Online-Judge-Problems-Solution
2334edb153a134aebb883b57d8b4faf0cb859331
[ "MIT" ]
null
null
null
#include <iostream> #include <cmath> #include <iomanip> #include <algorithm> using namespace std; bool ans (string& s) { if(next_permutation(s.begin(), s.end())) return true; else return false; } int main() { string str; while (cin >> str && str !="#") { if (ans(str)) cout << str << endl; else co...
14.076923
41
0.601093
Md-Shamim-Ahmmed
5a23cca0ad1422c9a5b3c3516c6af534eab25b4c
488
cpp
C++
cpp14faqs/code/c++14/plus.cpp
ancientscience/ancientscience.github.io
2c8e3c6a8017164fd86fabaaa3343257cea54405
[ "MIT" ]
null
null
null
cpp14faqs/code/c++14/plus.cpp
ancientscience/ancientscience.github.io
2c8e3c6a8017164fd86fabaaa3343257cea54405
[ "MIT" ]
null
null
null
cpp14faqs/code/c++14/plus.cpp
ancientscience/ancientscience.github.io
2c8e3c6a8017164fd86fabaaa3343257cea54405
[ "MIT" ]
null
null
null
#include <algorithm> #include <iostream> #include <iterator> #include <ostream> #include <set> #include <string> #include <vector> int main() { std::vector<const char *> v {"3", "2", "1"}; std::set<std::string, std::greater<>> s {"a", "aaa", "aa"}; std::vector<std::string> dest; std::transform(v.be...
19.52
63
0.557377
ancientscience
5a23d113720bf4bb11f6658ad9a1c9beab7269f0
7,784
cpp
C++
apps/BlockDef/blockObDot.cpp
assignonward/aosuite
243771d237970fe1175aaabc7d8d22f691076b6b
[ "MIT" ]
null
null
null
apps/BlockDef/blockObDot.cpp
assignonward/aosuite
243771d237970fe1175aaabc7d8d22f691076b6b
[ "MIT" ]
null
null
null
apps/BlockDef/blockObDot.cpp
assignonward/aosuite
243771d237970fe1175aaabc7d8d22f691076b6b
[ "MIT" ]
1
2018-08-11T20:39:07.000Z
2018-08-11T20:39:07.000Z
/* MIT License * * Copyright (c) 2021 Assign Onward * * 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, modif...
40.123711
125
0.609198
assignonward
5a24536e92d8242570152468d7b05bdf02afabca
259
cpp
C++
codechef/socks1.cpp
zshashz/CS50-
79067df0df1da02d716591a29f3b8670618c962d
[ "MIT" ]
4
2021-01-11T13:05:33.000Z
2022-02-02T18:17:53.000Z
codechef/socks1.cpp
zshashz/CS50-
79067df0df1da02d716591a29f3b8670618c962d
[ "MIT" ]
null
null
null
codechef/socks1.cpp
zshashz/CS50-
79067df0df1da02d716591a29f3b8670618c962d
[ "MIT" ]
1
2021-10-03T12:46:20.000Z
2021-10-03T12:46:20.000Z
#include <iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a==b || a==c) { cout<<"YES"; } else if(b==c || b==a) { cout<<"YES"; } else cout<<"NO"; return 0; }
11.772727
25
0.378378
zshashz
5a25f2ebed44139167fd87cf14474d33f873a798
1,571
cpp
C++
src/rt/api_input.cpp
Thecontrarian/Rosebud
29f57a4acace2b75c00d83099e678582257cc72e
[ "MIT" ]
null
null
null
src/rt/api_input.cpp
Thecontrarian/Rosebud
29f57a4acace2b75c00d83099e678582257cc72e
[ "MIT" ]
1
2016-12-27T02:32:55.000Z
2016-12-27T02:38:41.000Z
src/rt/api_input.cpp
Thecontrarian/Rosebud
29f57a4acace2b75c00d83099e678582257cc72e
[ "MIT" ]
null
null
null
#include "rose.h" rose_api_error rose_rt_base::mouse(int16_t* x, int16_t* y) { int16_t* pointer = (int16_t*) pointer_positions.begin; *x = pointer[20]; *y = pointer[21]; return ROSE_API_ERR_NONE; } rose_api_error rose_rt_base::btn(uint8_t idx, bool* res) { *res = rose_get_bit(btn_states.begin, idx...
30.803922
68
0.705283
Thecontrarian
5a262eb94b2591e0cafb718ae825727767c2bdf0
1,963
cpp
C++
test/vector/multi_indexer.cpp
BryanFlynt/xstd
4c11f614b828a93e20cb35903c179cfd52fef47e
[ "Apache-2.0" ]
null
null
null
test/vector/multi_indexer.cpp
BryanFlynt/xstd
4c11f614b828a93e20cb35903c179cfd52fef47e
[ "Apache-2.0" ]
null
null
null
test/vector/multi_indexer.cpp
BryanFlynt/xstd
4c11f614b828a93e20cb35903c179cfd52fef47e
[ "Apache-2.0" ]
null
null
null
/** * \file multi_indexer.cpp * \author Bryan Flynt * \date Jan 18, 2021 * \copyright Copyright (C) 2021 Bryan Flynt - All Rights Reserved */ #include "catch.hpp" #include "xstd/detail/vector/multi_indexer.hpp" #include <iostream> TEST_CASE("MultiIndexer", "[default]") { using namespace xst...
19.058252
67
0.537952
BryanFlynt
5a264934b35655724a893142fe948447957b98b2
1,807
cpp
C++
src/cage/controller.cpp
pancpp/cage
3a4eb5e3b6d40e6dee8e61bf984c83bf336e5999
[ "BSL-1.0" ]
null
null
null
src/cage/controller.cpp
pancpp/cage
3a4eb5e3b6d40e6dee8e61bf984c83bf336e5999
[ "BSL-1.0" ]
null
null
null
src/cage/controller.cpp
pancpp/cage
3a4eb5e3b6d40e6dee8e61bf984c83bf336e5999
[ "BSL-1.0" ]
null
null
null
/** * COPYRIGHT (C) 2020 Leyuan Pan ALL RIGHTS RESERVED. * * @brief HTTP and WEBSOCKET controller. * @author Leyuan Pan * @date Oct 04, 2020 */ #include "cage/controller.hpp" namespace cage { void Controller::RegisterRouter(RouterPtr p_router) { router_vec_.push_back(std::move(p_router)); } Controller::HttpV...
24.418919
76
0.6342
pancpp
5a2977a9c42ccbdb70e1ca35f439046c475c7952
2,120
hpp
C++
src/detail/ReadConfig.hpp
epicbrownie/Epic
c54159616b899bb24c6d59325d582e73f2803ab6
[ "MIT" ]
null
null
null
src/detail/ReadConfig.hpp
epicbrownie/Epic
c54159616b899bb24c6d59325d582e73f2803ab6
[ "MIT" ]
29
2016-08-01T14:50:12.000Z
2017-12-17T20:28:27.000Z
src/detail/ReadConfig.hpp
epicbrownie/Epic
c54159616b899bb24c6d59325d582e73f2803ab6
[ "MIT" ]
null
null
null
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2016 Ronnie Brohn (EpicBrownie) // // Distributed under The MIT License (MIT). // (See accompanying file License.txt or copy at // https://opensource.org/licens...
28.648649
90
0.546698
epicbrownie
5a2ab2a6037cea62f284c7da3a12e1f51dc124af
5,613
cpp
C++
src/tool/main.cpp
kosua20/calco
0d4d03859703184dde606d34a8512f772c17a4b0
[ "MIT" ]
null
null
null
src/tool/main.cpp
kosua20/calco
0d4d03859703184dde606d34a8512f772c17a4b0
[ "MIT" ]
null
null
null
src/tool/main.cpp
kosua20/calco
0d4d03859703184dde606d34a8512f772c17a4b0
[ "MIT" ]
null
null
null
#include "core/Common.hpp" #include "core/Strings.hpp" #include "core/Settings.hpp" #include "core/Calculator.hpp" #include "core/system/TextUtilities.hpp" #include <iostream> bool queryLineFromCIN(char* buffer, int size) { // Wait for some input. int lenRead = 0; buffer[0] = '\0'; // Read everything there is. T...
30.672131
91
0.555852
kosua20
5a2d74cd33cf865f27bbb51c260d8d8bb2bb349a
7,103
cpp
C++
ivb-3-14/Korotkov-D.A/lab.02.11.cpp
bykovskyy/2014
474c6eb940978d4f323ef4dc2eac8e0360f19612
[ "BSD-2-Clause" ]
null
null
null
ivb-3-14/Korotkov-D.A/lab.02.11.cpp
bykovskyy/2014
474c6eb940978d4f323ef4dc2eac8e0360f19612
[ "BSD-2-Clause" ]
null
null
null
ivb-3-14/Korotkov-D.A/lab.02.11.cpp
bykovskyy/2014
474c6eb940978d4f323ef4dc2eac8e0360f19612
[ "BSD-2-Clause" ]
null
null
null
/**Коротков Даниил*/ /**Задание 11*/ #pragma warning(disable : 4996) #include <cstdio> #include <cstdlib> #include <cstring> static double ** __loadMatrix( const char * const szFileName, int * piRows, int * piCols); static void __destroyMatrix(double **pMatrix, int rows, int cols); static int __exception...
27.214559
79
0.420245
bykovskyy
5a2dc1041fea245f0df2fa5b0fa35a25b2e397f3
1,121
cpp
C++
DataStructure/CS/4_1_vector.cpp
Leon-Francis/NCEPU-CS-COURSES
65a186c9f5dc88fef4eb3fd7a550500c0d27b38c
[ "Apache-2.0" ]
1
2021-03-31T03:04:52.000Z
2021-03-31T03:04:52.000Z
DataStructure/CS/4_1_vector.cpp
Leon-Francis/NCEPU-CS-COURSES
65a186c9f5dc88fef4eb3fd7a550500c0d27b38c
[ "Apache-2.0" ]
null
null
null
DataStructure/CS/4_1_vector.cpp
Leon-Francis/NCEPU-CS-COURSES
65a186c9f5dc88fef4eb3fd7a550500c0d27b38c
[ "Apache-2.0" ]
1
2021-09-03T13:33:51.000Z
2021-09-03T13:33:51.000Z
#include<iostream> #include<vector> using namespace std; int main() { int numberA,numberB; cin>>numberA>>numberB; int number=numberA+numberB; vector <vector<int>> a; a.resize(number,vector<int>(3)); for(int i=0;i<numberA;i++){ for(int j=0;j<3;j++){ cin>>a[i][j]; } ...
20.759259
46
0.4157
Leon-Francis
5a2fc9ce78df9f238aadae0cd56fb31fc97b0daa
2,023
hpp
C++
Engine/Code/Engine/Math/IntVec2.hpp
sam830917/TenNenDemon
a5f60007b73cccc6af8675c7f3dec597008dfdb4
[ "MIT" ]
null
null
null
Engine/Code/Engine/Math/IntVec2.hpp
sam830917/TenNenDemon
a5f60007b73cccc6af8675c7f3dec597008dfdb4
[ "MIT" ]
null
null
null
Engine/Code/Engine/Math/IntVec2.hpp
sam830917/TenNenDemon
a5f60007b73cccc6af8675c7f3dec597008dfdb4
[ "MIT" ]
null
null
null
#pragma once struct IntVec2 { public: int x = 0; int y = 0; static const IntVec2 ZERO; static const IntVec2 ONE; public: // Construction/Destruction ~IntVec2() = default; IntVec2() = default; IntVec2( const IntVec2& copyFrom ); explicit IntVec2( int initialX, int initialY ); // Accessors (const methods) ...
38.903846
96
0.67474
sam830917