hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
109
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
48.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
87085895cb191348e82723de9723bbb5b86a0994
772
cpp
C++
DXR_SoftShadows_Project/BeLuEngine/src/Renderer/GPUMemory/ConstantBufferView.cpp
jocke1995/DXR_SoftShadows
00cb6b1cf560899a010c9e8504578d55e113c22c
[ "MIT" ]
null
null
null
DXR_SoftShadows_Project/BeLuEngine/src/Renderer/GPUMemory/ConstantBufferView.cpp
jocke1995/DXR_SoftShadows
00cb6b1cf560899a010c9e8504578d55e113c22c
[ "MIT" ]
null
null
null
DXR_SoftShadows_Project/BeLuEngine/src/Renderer/GPUMemory/ConstantBufferView.cpp
jocke1995/DXR_SoftShadows
00cb6b1cf560899a010c9e8504578d55e113c22c
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "ConstantBufferView.h" #include "../DescriptorHeap.h" #include "Resource.h" ConstantBufferView::ConstantBufferView( ID3D12Device5* device, DescriptorHeap* descriptorHeap_CBV_UAV_SRV, D3D12_CONSTANT_BUFFER_VIEW_DESC* cbvDesc, Resource* resource) :Descriptor(descriptorHeap_CBV_UAV_SRV,...
25.733333
99
0.831606
jocke1995
870e7477630a85b62a31193583f5af064fcc80ac
13,202
cpp
C++
framework/sound/sdlraw_backend.cpp
trevortomesh/OpenApoc
53cd163889fbfd21a9c128183427dad4255ac1a3
[ "MIT" ]
1
2019-11-19T11:41:36.000Z
2019-11-19T11:41:36.000Z
framework/sound/sdlraw_backend.cpp
trevortomesh/OpenApoc
53cd163889fbfd21a9c128183427dad4255ac1a3
[ "MIT" ]
null
null
null
framework/sound/sdlraw_backend.cpp
trevortomesh/OpenApoc
53cd163889fbfd21a9c128183427dad4255ac1a3
[ "MIT" ]
null
null
null
#include "framework/framework.h" #include "framework/logger.h" #include "framework/sound_interface.h" #include "framework/trace.h" #include "library/sp.h" #include "library/vec.h" #include <SDL.h> #include <SDL_audio.h> #include <algorithm> #include <functional> #include <list> #include <mutex> #include <queue> #includ...
29.46875
100
0.683836
trevortomesh
870ecf05eaf41e7576e193b3c68d01d5acdd8e3e
917
cpp
C++
Game/Scripts/DroneProducer.cpp
JohnHonkanen/ProjectM
881171ad749e8fe7db6188ee9486239a37256569
[ "Unlicense" ]
null
null
null
Game/Scripts/DroneProducer.cpp
JohnHonkanen/ProjectM
881171ad749e8fe7db6188ee9486239a37256569
[ "Unlicense" ]
null
null
null
Game/Scripts/DroneProducer.cpp
JohnHonkanen/ProjectM
881171ad749e8fe7db6188ee9486239a37256569
[ "Unlicense" ]
null
null
null
#include "DroneProducer.h" #include "Hub.h" #include "core\GameObject.h" #include "Structure.h" #include "components\MeshRenderer.h" #include "Drone.h" #include "core\GameEngine.h" #include "Structure.h" DroneProducer * DroneProducer::Create(GameObject * gameObject, Hub * hub, Structure *structure) { DroneProducer * ...
18.714286
95
0.704471
JohnHonkanen
8715551c83f492161e6b83013f6dd67dded89f94
1,234
cpp
C++
holdem/test/LYHoldemTable_tests.cpp
caiqingfeng/libpoker
a2c60884fc5c8e31455fb39e432c49e0df55956b
[ "Apache-2.0" ]
1
2021-04-20T06:22:30.000Z
2021-04-20T06:22:30.000Z
holdem/test/LYHoldemTable_tests.cpp
caiqingfeng/libpoker
a2c60884fc5c8e31455fb39e432c49e0df55956b
[ "Apache-2.0" ]
null
null
null
holdem/test/LYHoldemTable_tests.cpp
caiqingfeng/libpoker
a2c60884fc5c8e31455fb39e432c49e0df55956b
[ "Apache-2.0" ]
2
2020-10-29T08:21:22.000Z
2020-12-02T06:40:18.000Z
/* * LYHoldemTable_tests.cpp * * Created on: 2013-7-6 * Author: caiqingfeng */ #include "src/LYHoldemTable.h" //#include "common/src/my_log.h" #include <gtest/gtest.h> #include <string> using std::string; class LYHoldemTable_tests : public ::testing::Test { protected: void SetUp() { table = ...
21.275862
105
0.67342
caiqingfeng
8717b3d5a02bbcecd9eacbf1a4435db7cff0fd22
2,548
cpp
C++
source/Camera/Basic/CaptureHDRCompleteSettings/CaptureHDRCompleteSettings.cpp
ZachZheng0316/Cpp_Sample_For_Zivid_Camera
f448e5a206bc755813727b319eae43dfe1504e6d
[ "BSD-3-Clause" ]
null
null
null
source/Camera/Basic/CaptureHDRCompleteSettings/CaptureHDRCompleteSettings.cpp
ZachZheng0316/Cpp_Sample_For_Zivid_Camera
f448e5a206bc755813727b319eae43dfe1504e6d
[ "BSD-3-Clause" ]
null
null
null
source/Camera/Basic/CaptureHDRCompleteSettings/CaptureHDRCompleteSettings.cpp
ZachZheng0316/Cpp_Sample_For_Zivid_Camera
f448e5a206bc755813727b319eae43dfe1504e6d
[ "BSD-3-Clause" ]
null
null
null
/* This example shows how to acquire an HDR image from the Zivid camera with fully configured settings for each frame. In general, taking an HDR image is a lot simpler than this as the default settings work for most scenes. The purpose of this example is to demonstrate how to configure all the settings. */ #include <Z...
41.770492
106
0.597724
ZachZheng0316
87183b9ffffb352ef58a489d3b67aae944e4443a
2,824
hpp
C++
src/core/SLSRelay.hpp
rstular/srt-live-server
968d29b7bd4d81b0b6cbe702ebf6bbc164b6a22c
[ "MIT" ]
4
2021-12-17T07:58:48.000Z
2022-02-04T17:35:37.000Z
src/core/SLSRelay.hpp
rstular/srt-live-server
968d29b7bd4d81b0b6cbe702ebf6bbc164b6a22c
[ "MIT" ]
null
null
null
src/core/SLSRelay.hpp
rstular/srt-live-server
968d29b7bd4d81b0b6cbe702ebf6bbc164b6a22c
[ "MIT" ]
1
2021-12-15T21:56:57.000Z
2021-12-15T21:56:57.000Z
/** * The MIT License (MIT) * * Copyright (c) 2019-2020 Edward.Wu * * 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 * ...
30.695652
132
0.721317
rstular
8719ebf2149fcd2b8653e586d33758dda030246f
6,791
hpp
C++
include/VROSC/NoteBoardStringAnimator.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
null
null
null
include/VROSC/NoteBoardStringAnimator.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
null
null
null
include/VROSC/NoteBoardStringAnimator.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
1
2022-03-30T21:07:35.000Z
2022-03-30T21:07:35.000Z
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: VROSC.NoteBoardNoteAnimator #includ...
51.06015
217
0.742306
v0idp
871a0dd6767d5a3db317a66fe98cc2c38009f496
16,751
cpp
C++
Code/Engine/Foundation/Reflection/Implementation/RTTI.cpp
jakrams/ezEngine
2308f9d708f829b1716f54d3f79bbd262bb86132
[ "MIT" ]
null
null
null
Code/Engine/Foundation/Reflection/Implementation/RTTI.cpp
jakrams/ezEngine
2308f9d708f829b1716f54d3f79bbd262bb86132
[ "MIT" ]
null
null
null
Code/Engine/Foundation/Reflection/Implementation/RTTI.cpp
jakrams/ezEngine
2308f9d708f829b1716f54d3f79bbd262bb86132
[ "MIT" ]
null
null
null
#include <Foundation/FoundationPCH.h> #include <Foundation/Reflection/Implementation/AbstractProperty.h> #include <Foundation/Reflection/Implementation/MessageHandler.h> #include <Foundation/Communication/Message.h> #include <Foundation/Configuration/Startup.h> #include <Foundation/Containers/HashTable.h> struct ezT...
30.567518
150
0.69566
jakrams
26b41ed0fe571c9b09b89ce25dd3683a6270874f
904
hpp
C++
include/unstructured/UniformRestriction.hpp
JieyangChen7/MGARD
acec8facae1e2767a3adff2bb3c30f3477e69bdb
[ "Apache-2.0" ]
null
null
null
include/unstructured/UniformRestriction.hpp
JieyangChen7/MGARD
acec8facae1e2767a3adff2bb3c30f3477e69bdb
[ "Apache-2.0" ]
null
null
null
include/unstructured/UniformRestriction.hpp
JieyangChen7/MGARD
acec8facae1e2767a3adff2bb3c30f3477e69bdb
[ "Apache-2.0" ]
null
null
null
#ifndef UNIFORMRESTRICTION_HPP #define UNIFORMRESTRICTION_HPP //!\file //!\brief Restriction for piecewise linears on mesh hierarchies produced by //! uniform refinement. #include "unstructured/LinearOperator.hpp" #include "unstructured/MeshLevel.hpp" namespace mgard { //! Restriction operator between two `MeshLevel...
25.111111
75
0.719027
JieyangChen7
26ba772110ba9055d9d9638d6b147adcf812377f
241
cpp
C++
src/Main.cpp
kjfarrell/GameTemplate
1b1d5ccab7ed27a517c61f542b3b270fc4c3d2b9
[ "MIT" ]
null
null
null
src/Main.cpp
kjfarrell/GameTemplate
1b1d5ccab7ed27a517c61f542b3b270fc4c3d2b9
[ "MIT" ]
null
null
null
src/Main.cpp
kjfarrell/GameTemplate
1b1d5ccab7ed27a517c61f542b3b270fc4c3d2b9
[ "MIT" ]
null
null
null
#include <SDL.h> #include "Game.hpp" int main(int argc, char *argv[]) try { Game game(SDL_Rect{0, 0, 640, 480}, "Hello World"); game.run(); return 0; } catch (const std::exception &e) { std::cerr << e.what() << std::endl; return 1; }
15.0625
52
0.609959
kjfarrell
26bc3379137486d790d2b740b5b969e21279f00c
2,085
cc
C++
src/loan/src/loanholiday.cc
fadi-alkhoury/fisim
08d91973251c94b8ac60b1889b41ffa3ace0d8ad
[ "MIT" ]
null
null
null
src/loan/src/loanholiday.cc
fadi-alkhoury/fisim
08d91973251c94b8ac60b1889b41ffa3ace0d8ad
[ "MIT" ]
null
null
null
src/loan/src/loanholiday.cc
fadi-alkhoury/fisim
08d91973251c94b8ac60b1889b41ffa3ace0d8ad
[ "MIT" ]
null
null
null
#include "loanholiday.h" #include <cassert> namespace fisim { namespace loan { LoanHoliday::LoanHoliday(std::unique_ptr<Params> pParams) : _pParams{std::move(pParams)} { assert(_pParams->nMonthsPerYear <= _pParams->nMonthsTermRemaining); assert(_pParams->nMonthsYearRemaining <= _pParams->nMonthsPerYear); ...
29.785714
95
0.736691
fadi-alkhoury
26bd7ac5c581fa42e970802bb996786db959d02f
17,528
cpp
C++
src/tradelayer/register.cpp
sinetek/litecoin18
5ad8201bf04389ff77355c32f561e4c99807a5ed
[ "MIT" ]
null
null
null
src/tradelayer/register.cpp
sinetek/litecoin18
5ad8201bf04389ff77355c32f561e4c99807a5ed
[ "MIT" ]
null
null
null
src/tradelayer/register.cpp
sinetek/litecoin18
5ad8201bf04389ff77355c32f561e4c99807a5ed
[ "MIT" ]
null
null
null
#include <tradelayer/register.h> #include <tradelayer/ce.h> #include <tradelayer/log.h> #include <tradelayer/tradelayer.h> #include <tradelayer/uint256_extensions.h> #include <tradelayer/externfns.h> #include <stdint.h> #include <map> using namespace mastercore; RecursiveMutex cs_register; // list of all amounts fo...
28.971901
167
0.629507
sinetek
26c03f164b07a31162bbc87b9249ff2efaaf6fe3
6,658
cpp
C++
infrastructure/jerryscript/gui/in_js_gui_gauge_cpp.cpp
simapetr/uart_terminal
ae27ff8f3d9446842f07dce478a8e695f4ca8445
[ "Apache-2.0" ]
null
null
null
infrastructure/jerryscript/gui/in_js_gui_gauge_cpp.cpp
simapetr/uart_terminal
ae27ff8f3d9446842f07dce478a8e695f4ca8445
[ "Apache-2.0" ]
30
2018-08-04T07:41:41.000Z
2021-12-16T19:43:58.000Z
infrastructure/jerryscript/gui/in_js_gui_gauge_cpp.cpp
simapetr/uart_terminal
ae27ff8f3d9446842f07dce478a8e695f4ca8445
[ "Apache-2.0" ]
null
null
null
/** **************************************************************************** * @file in_js_gui_gauge_cpp.cpp * @author Ing. Petr Simek * @version V1.0 * @date 10.09.2018 * @brief GUI window gauge component **************************************************************************** * @atten...
26.109804
229
0.542655
simapetr
26c6e0341d26e894cc19dd05132a012d321167dd
1,358
cpp
C++
leetcode/odd-even-linked-list/OddEvenList.cpp
giwankim/algo
8dd1cf8aed6e89db54e753c7ce5821019628c47f
[ "MIT" ]
null
null
null
leetcode/odd-even-linked-list/OddEvenList.cpp
giwankim/algo
8dd1cf8aed6e89db54e753c7ce5821019628c47f
[ "MIT" ]
null
null
null
leetcode/odd-even-linked-list/OddEvenList.cpp
giwankim/algo
8dd1cf8aed6e89db54e753c7ce5821019628c47f
[ "MIT" ]
null
null
null
#include "bits/stdc++.h" using namespace std; struct ListNode { int val; ListNode *next; ListNode() : val(0), next(nullptr) {} ListNode(int x) : val(x), next(nullptr) {} ListNode(int x, ListNode *_next) : val(x), next(_next) {} }; ListNode *oddEvenList(ListNode *head) { if (head == nullptr || ...
23.016949
71
0.527982
giwankim
26ca2884fa91e1d1126a157abb99e384463d8456
2,797
hpp
C++
include/boost/geometry/extensions/generic_robust_predicates/strategies/cartesian/detail/semi_static_filter.hpp
BoostGSoC20/geometry
5b63bdc9086829c4c00bf9f5e23c664430acdd48
[ "BSL-1.0" ]
5
2020-05-15T20:30:38.000Z
2022-01-31T08:14:05.000Z
include/boost/geometry/extensions/generic_robust_predicates/strategies/cartesian/detail/semi_static_filter.hpp
Srutip04/geometry
5b63bdc9086829c4c00bf9f5e23c664430acdd48
[ "BSL-1.0" ]
null
null
null
include/boost/geometry/extensions/generic_robust_predicates/strategies/cartesian/detail/semi_static_filter.hpp
Srutip04/geometry
5b63bdc9086829c4c00bf9f5e23c664430acdd48
[ "BSL-1.0" ]
4
2020-12-03T13:22:49.000Z
2022-03-31T10:43:59.000Z
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2020 Tinko Bartels, Berlin, Germany. // Contributed and/or modified by Tinko Bartels, // as part of Google Summer of Code 2020 program. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompa...
30.402174
112
0.684305
BoostGSoC20
26cbdd5df4cd734813395b8a074c2e9a9d48bd0b
2,312
cpp
C++
BLAXED/PredictionSystem.cpp
prismatical/BX-CSGO
24b2cadefdc40cb8d3fca0aab08ec54241518958
[ "MIT" ]
19
2018-03-04T08:04:29.000Z
2022-01-27T11:28:36.000Z
BLAXED/PredictionSystem.cpp
prismatical/BX-CSGO
24b2cadefdc40cb8d3fca0aab08ec54241518958
[ "MIT" ]
1
2019-12-27T15:43:41.000Z
2020-05-18T19:16:42.000Z
BLAXED/PredictionSystem.cpp
prismatical/BX-CSGO
24b2cadefdc40cb8d3fca0aab08ec54241518958
[ "MIT" ]
9
2019-03-30T22:39:25.000Z
2021-08-13T19:27:27.000Z
#include "SDK.h" #include "Global.h" #include "PredictionSystem.h" #include "Prediction.h" int* predictionRandomSeed = NULL; CBaseEntity* predictionPlayer = NULL; CPredictionSystem *predictionSystem = new CPredictionSystem(); void CPredictionSystem::Init() { predictionRandomSeed = *(int**)(Mem::FindPattern(xorstr("cli...
38.533333
151
0.741782
prismatical
26cf6d5dd312a2b67dae6ef94ac3fdf62db9a886
431
hpp
C++
Kernel/include/platform/x86_64/page_map_level_four_entry.hpp
foxostro/FlapjackOS
34bd2cc9b0983b917a089efe2055ca8f78d56d9a
[ "BSD-2-Clause" ]
null
null
null
Kernel/include/platform/x86_64/page_map_level_four_entry.hpp
foxostro/FlapjackOS
34bd2cc9b0983b917a089efe2055ca8f78d56d9a
[ "BSD-2-Clause" ]
null
null
null
Kernel/include/platform/x86_64/page_map_level_four_entry.hpp
foxostro/FlapjackOS
34bd2cc9b0983b917a089efe2055ca8f78d56d9a
[ "BSD-2-Clause" ]
null
null
null
#ifndef FLAPJACKOS_KERNEPLATFORMSUPPORT_INCLUDE_PLATFORM_X86_64_PAGE_MAP_LEVEL_FOUR_ENTRY_HPP #define FLAPJACKOS_KERNEPLATFORMSUPPORT_INCLUDE_PLATFORM_X86_64_PAGE_MAP_LEVEL_FOUR_ENTRY_HPP #include "generic_page_directory_entry.hpp" namespace x86_64 { using PageMapLevelFourEntry = GenericPageDirectoryEntry; } // nam...
33.153846
95
0.907193
foxostro
26cfdf39cf2c228b65d8181c725b082a0262af1e
1,334
hpp
C++
src/util/gemm_thread.hpp
devinamatthews/tensor
7d979b6624071879383377611cb2fa483b6a3104
[ "BSD-3-Clause" ]
86
2016-05-30T16:08:24.000Z
2022-03-30T22:57:35.000Z
src/util/gemm_thread.hpp
devinamatthews/tensor
7d979b6624071879383377611cb2fa483b6a3104
[ "BSD-3-Clause" ]
41
2017-02-02T22:28:17.000Z
2022-02-22T16:51:14.000Z
src/util/gemm_thread.hpp
devinamatthews/tensor
7d979b6624071879383377611cb2fa483b6a3104
[ "BSD-3-Clause" ]
26
2016-05-30T16:08:33.000Z
2021-12-29T03:02:30.000Z
#ifndef _TBLIS_GEMM_THREAD_HPP_ #define _TBLIS_GEMM_THREAD_HPP_ #include "basic_types.h" #include "env.hpp" namespace tblis { struct gemm_thread_config { gemm_thread_config(int jc_nt_, int ic_nt_, int jr_nt_, int ir_nt_) : jc_nt(jc_nt_), ic_nt(ic_nt_), jr_nt(jr_nt_), ir_nt(ir_nt_) {} int jc_nt = 1; ...
21.516129
70
0.591454
devinamatthews
26d281adbd629b10db03444834d3271921aecb89
623
hpp
C++
src/tests/testconnection.hpp
silverqx/TinyOrmPlayground
3b0f039978927c3993b5f0e434f1438d1e2d272e
[ "MIT" ]
null
null
null
src/tests/testconnection.hpp
silverqx/TinyOrmPlayground
3b0f039978927c3993b5f0e434f1438d1e2d272e
[ "MIT" ]
null
null
null
src/tests/testconnection.hpp
silverqx/TinyOrmPlayground
3b0f039978927c3993b5f0e434f1438d1e2d272e
[ "MIT" ]
null
null
null
#pragma once #ifndef TINYPLAY_TESTS_TESTCONNECTION_HPP #define TINYPLAY_TESTS_TESTCONNECTION_HPP #include "tests/test.hpp" namespace TinyPlay::Tests { /*! Test TinyORM's Database Connections. */ class TestConnection final : public Test { Q_DISABLE_COPY(TestConnection) /*! Inherit constru...
21.482759
51
0.670947
silverqx
26e6c22313633014500e27fa5b383979ece60532
901
cpp
C++
test/unit-tests/message-box/mb_button_order_test.cpp
Creeperface01/centurion
e3b674c11849367a18c2d976ce94071108e1590d
[ "MIT" ]
14
2020-05-17T21:38:03.000Z
2020-11-21T00:16:25.000Z
test/unit-tests/message-box/mb_button_order_test.cpp
Creeperface01/centurion
e3b674c11849367a18c2d976ce94071108e1590d
[ "MIT" ]
70
2020-04-26T17:08:52.000Z
2020-11-21T17:34:03.000Z
test/unit-tests/message-box/mb_button_order_test.cpp
Creeperface01/centurion
e3b674c11849367a18c2d976ce94071108e1590d
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include <iostream> // cout #include "centurion/message_box.hpp" #if SDL_VERSION_ATLEAST(2, 0, 12) TEST(MessageBoxButtonOrder, Values) { ASSERT_EQ(SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT, to_underlying(cen::message_box_button_order::left_to_right)); ASSERT_EQ(SDL_MESSAGEBOX_BU...
32.178571
93
0.756937
Creeperface01
26e948faa03434c5606ee1350f84aea62bdbec33
8,030
cpp
C++
src/bvar/latency_recorder.cpp
coxin12/brpc
3d9a6ec81b74c875464fab1a6ab2ebf6081cadaa
[ "Apache-2.0" ]
1
2021-04-07T04:31:00.000Z
2021-04-07T04:31:00.000Z
src/bvar/latency_recorder.cpp
jamestang81/brpc
f2fa4f7b6c45d153d4d2dce6624763c701c05f43
[ "Apache-2.0" ]
null
null
null
src/bvar/latency_recorder.cpp
jamestang81/brpc
f2fa4f7b6c45d153d4d2dce6624763c701c05f43
[ "Apache-2.0" ]
1
2021-03-25T17:39:45.000Z
2021-03-25T17:39:45.000Z
// Copyright (c) 2014 Baidu, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
32.510121
94
0.639103
coxin12
26ea2acec257ce1880feff86f8f964efa2643aae
5,838
cpp
C++
src/gesprite.cpp
Keshizin/tcc-bpmge
66fedd8e92bec06b5c91d9883771eb02b4479d2f
[ "MIT" ]
1
2020-11-23T11:34:41.000Z
2020-11-23T11:34:41.000Z
src/gesprite.cpp
Keshizin/tcc-bpmge
66fedd8e92bec06b5c91d9883771eb02b4479d2f
[ "MIT" ]
null
null
null
src/gesprite.cpp
Keshizin/tcc-bpmge
66fedd8e92bec06b5c91d9883771eb02b4479d2f
[ "MIT" ]
null
null
null
/* Game Engine Sprite This file is part of the BPM Game Engine. Copyright (C) 2020 Fabio Takeshi Ishikawa 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 with...
19.924915
80
0.701268
Keshizin
26ef2dc8bedace6528b12cb084a2b08f9a32d880
8,268
cpp
C++
modules/discretedata/connectivity/structuredgrid.cpp
onc/inviwo
f343018cdf5f360ee3e59f65f0eb76f07118067a
[ "BSD-2-Clause" ]
null
null
null
modules/discretedata/connectivity/structuredgrid.cpp
onc/inviwo
f343018cdf5f360ee3e59f65f0eb76f07118067a
[ "BSD-2-Clause" ]
null
null
null
modules/discretedata/connectivity/structuredgrid.cpp
onc/inviwo
f343018cdf5f360ee3e59f65f0eb76f07118067a
[ "BSD-2-Clause" ]
1
2020-07-17T10:27:57.000Z
2020-07-17T10:27:57.000Z
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2012-2018 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
37.581818
100
0.622037
onc
26ef6d1c5a5dd788e5e02883fe3524316d1d52f2
765
cpp
C++
ConsoleApplication1/ConsoleApplication1/WpfApplication2.Settings.cpp
AndrFran/CodeInstrumentation
e58ab6d4a6dd5e70d00b5915820af5b0cd9dc33c
[ "MIT" ]
null
null
null
ConsoleApplication1/ConsoleApplication1/WpfApplication2.Settings.cpp
AndrFran/CodeInstrumentation
e58ab6d4a6dd5e70d00b5915820af5b0cd9dc33c
[ "MIT" ]
null
null
null
ConsoleApplication1/ConsoleApplication1/WpfApplication2.Settings.cpp
AndrFran/CodeInstrumentation
e58ab6d4a6dd5e70d00b5915820af5b0cd9dc33c
[ "MIT" ]
null
null
null
#include "WpfApplication2.Settings.h" #include "Presenter.h" namespace WpfApplication2 { Settings::Settings() { InitializeComponent(); } void Settings::button_Click(std::any sender, RoutedEventArgs *e) { Microsoft::Win32::OpenFileDialog *openFileDialog = new Microsoft::Win32::OpenFileDialog(); if (openFi...
21.857143
92
0.734641
AndrFran
26f135cbec83a128dd78ca80cacb7721b9ff249a
1,182
hpp
C++
deps/tinympl/tinympl/right_fold.hpp
gtaisbetterthanfn/modloader
18f85c2766d4e052a452c7b1d8f5860a6daac24b
[ "MIT" ]
186
2015-01-18T05:46:11.000Z
2022-03-22T10:03:44.000Z
deps/tinympl/tinympl/right_fold.hpp
AlisonMDL/modloader
18f85c2766d4e052a452c7b1d8f5860a6daac24b
[ "MIT" ]
82
2015-01-14T01:02:04.000Z
2022-03-20T23:55:59.000Z
deps/tinympl/tinympl/right_fold.hpp
AlisonMDL/modloader
18f85c2766d4e052a452c7b1d8f5860a6daac24b
[ "MIT" ]
34
2015-01-07T11:17:00.000Z
2022-02-28T00:16:20.000Z
// Copyright (C) 2013, Ennio Barbaro. // // Use, modification, and distribution is subject to 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) // // See http://sbabbi.github.io/tinympl for documentation. // // You are welcome to conta...
29.55
74
0.718274
gtaisbetterthanfn
26f495781c83fc9fe298636e7b6acff2746b6f06
9,843
cpp
C++
src/space_invaders.cpp
zf3/raylib-games-wasm
40fa2e20ea00de03cf5281c36d3f802e01c273c6
[ "Apache-2.0" ]
3
2021-09-24T22:28:12.000Z
2022-01-31T01:16:50.000Z
src/space_invaders.cpp
greenpig/raylib-games-wasm
40fa2e20ea00de03cf5281c36d3f802e01c273c6
[ "Apache-2.0" ]
null
null
null
src/space_invaders.cpp
greenpig/raylib-games-wasm
40fa2e20ea00de03cf5281c36d3f802e01c273c6
[ "Apache-2.0" ]
1
2021-11-21T13:11:04.000Z
2021-11-21T13:11:04.000Z
#include "../include/raylib-cpp.hpp" #include "raylib.h" #include <algorithm> #include <array> namespace { const int SCREEN_WIDTH = 1200; const int SCREEN_HEIGHT = 700; const int NUM_BULLETS = 50; const int NUM_MAX_ENEMIES = 50; const int FIRST_WAVE_ENEMIES = 15; const int SECOND_WAVE_ENEMIES = 30; const int THIRD_W...
23.604317
120
0.574317
zf3
26f4ec6cdde9ae5adf14c5917f90bffdb067a455
1,013
cpp
C++
roomedit/owl-6.43/source/ocf/BOCOLE/oledll.cpp
marcelkauf/Meridian59-101
a83e2779e39bc529dc61dc02db091db7db29734c
[ "FSFAP" ]
214
2015-01-02T23:36:42.000Z
2022-03-30T01:41:41.000Z
roomedit/owl-6.43/source/ocf/BOCOLE/oledll.cpp
marcelkauf/Meridian59-101
a83e2779e39bc529dc61dc02db091db7db29734c
[ "FSFAP" ]
100
2015-01-01T13:51:57.000Z
2022-03-28T15:49:36.000Z
roomedit/owl-6.43/source/ocf/BOCOLE/oledll.cpp
marcelkauf/Meridian59-101
a83e2779e39bc529dc61dc02db091db7db29734c
[ "FSFAP" ]
85
2015-01-08T16:09:04.000Z
2022-02-22T05:24:56.000Z
//---------------------------------------------------------------------------- // ObjectComponents // Copyright (c) 1991, 1996 by Borland International, All Rights Reserved // // $Revision: 1.2 $ // // OleDLL.cpp -- DLL entry/exit points for BOLE.DLL //-------------------------------------------------------------------...
20.26
79
0.566634
marcelkauf
26f9efb3f168f44b1f169bd23c6ab55d1c06e83d
710
cpp
C++
algorithms/longest-palindromic-substring.cpp
jlygit/leetcode-oj
66718f709b31ef0e7e091638d95418a5543019b4
[ "Apache-2.0" ]
1
2016-08-10T11:17:16.000Z
2016-08-10T11:17:16.000Z
algorithms/longest-palindromic-substring.cpp
jlygit/leetcode-oj
66718f709b31ef0e7e091638d95418a5543019b4
[ "Apache-2.0" ]
null
null
null
algorithms/longest-palindromic-substring.cpp
jlygit/leetcode-oj
66718f709b31ef0e7e091638d95418a5543019b4
[ "Apache-2.0" ]
null
null
null
class Solution { public: string longestPalindrome(string s) { if(s.size()<2) return s; string result(""); int index=0,max=-1,t; while(index<s.size()){ t=1; while(index-t>=0&&index+t-1<s.size()&&s[index-t]==s[index+t-1]) ++t; //找出所有回文 ...
35.5
95
0.43662
jlygit
26faf779f06609ecee0a43ad322bb08d04c710b8
1,543
cpp
C++
code/engine/xrRenderDX9/dx9r_constants_cache.cpp
InNoHurryToCode/xray-162
fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e
[ "Apache-2.0" ]
58
2016-11-20T19:14:35.000Z
2021-12-27T21:03:35.000Z
code/engine/xrRenderDX9/dx9r_constants_cache.cpp
InNoHurryToCode/xray-162
fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e
[ "Apache-2.0" ]
59
2016-09-10T10:44:20.000Z
2018-09-03T19:07:30.000Z
code/engine/xrRenderDX9/dx9r_constants_cache.cpp
InNoHurryToCode/xray-162
fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e
[ "Apache-2.0" ]
39
2017-02-05T13:35:37.000Z
2022-03-14T11:00:12.000Z
#include "stdafx.h" #pragma hdrstop #include "xrRenderCommon/r_constants_cache.h" void R_constants::flush_cache() { if (a_pixel.b_dirty) { // fp R_constant_array::t_f& F = a_pixel.c_f; { if (F.r_lo() <= 32) //. hack { u32 count = F.r_hi() - F.r_lo();...
33.543478
100
0.416721
InNoHurryToCode
26fd5305cfa53c91d0d1121376db0d51c807b975
1,849
cpp
C++
nsgen.cpp
aritalab/SRHE
38161f1e62edc72a6d0afa638d057579f7005095
[ "Apache-2.0" ]
null
null
null
nsgen.cpp
aritalab/SRHE
38161f1e62edc72a6d0afa638d057579f7005095
[ "Apache-2.0" ]
null
null
null
nsgen.cpp
aritalab/SRHE
38161f1e62edc72a6d0afa638d057579f7005095
[ "Apache-2.0" ]
null
null
null
#include "nsgen.h" void noise::hamming (vec_ZZ& s, long dim) { sample_hwt(s, hwt, dim); } void noise::gaussian (vec_ZZ& e, long dim) { double f[dim]; sample_gaussian(f, sigma, dim); e.SetLength(dim); for (long i = 0; i < dim; ++i) e[i] = conv<ZZ>(round(f[i])); } ostream& operator<< (ostream& s, cons...
23.405063
75
0.583018
aritalab
26fe20849775deee2ad523d9b2e9254c3f462aa3
298
cc
C++
Daily_Problem/2101/Middle/210110_Summary_Ranges/method1/test.cc
sheriby/DandAInLeetCode
dd7f5029aa0c297ea82bb20f882b524789f35c96
[ "MIT" ]
1
2020-02-07T12:25:56.000Z
2020-02-07T12:25:56.000Z
Daily_Problem/2101/Middle/210110_Summary_Ranges/method1/test.cc
sheriby/DandAInLeetCode
dd7f5029aa0c297ea82bb20f882b524789f35c96
[ "MIT" ]
null
null
null
Daily_Problem/2101/Middle/210110_Summary_Ranges/method1/test.cc
sheriby/DandAInLeetCode
dd7f5029aa0c297ea82bb20f882b524789f35c96
[ "MIT" ]
null
null
null
#include <iostream> #include "solution.cc" void test() { Solution s; vector<int> v{-1, 0, 1, 2, 3, 5, 6, 8}; vector<string> result = s.summaryRanges(v); for (auto&& val : result) { std::cout << "val: " << val << std::endl; } } int main() { test(); return 0; }
17.529412
49
0.516779
sheriby
26fe23616c87a18c30c2b408c9508c4be836496d
272
hpp
C++
test/fixture/fixture_bool.hpp
engineer-legion/json
7ef33477720e7c801e5636fae6f34d7fbf55bcf0
[ "BSL-1.0" ]
null
null
null
test/fixture/fixture_bool.hpp
engineer-legion/json
7ef33477720e7c801e5636fae6f34d7fbf55bcf0
[ "BSL-1.0" ]
null
null
null
test/fixture/fixture_bool.hpp
engineer-legion/json
7ef33477720e7c801e5636fae6f34d7fbf55bcf0
[ "BSL-1.0" ]
null
null
null
/* * fixture_bool.hpp * * Created on: 31.01.2015 * Author: mike_gresens */ #pragma once #include "fixture_base.hpp" namespace json { namespace fixture { struct fixture_bool : fixture_base { static const entry_t _true; static const entry_t _false; }; } }
11.826087
34
0.691176
engineer-legion
f8011029fd6ab9008b4bce7ea428cdeb8a3b01e0
16,214
cpp
C++
libs/Graphics/src/Graphics.cpp
gugenstudio/Xcomp
b8c572ec618fa157c4ed07845b87d0ced21b2dd5
[ "MIT" ]
1
2022-02-18T11:55:57.000Z
2022-02-18T11:55:57.000Z
libs/Graphics/src/Graphics.cpp
gugenstudio/xComp
b8c572ec618fa157c4ed07845b87d0ced21b2dd5
[ "MIT" ]
null
null
null
libs/Graphics/src/Graphics.cpp
gugenstudio/xComp
b8c572ec618fa157c4ed07845b87d0ced21b2dd5
[ "MIT" ]
null
null
null
//================================================================== /// Graphics.cpp /// /// Created by Davide Pasca - 2018/02/14 /// See the file "license.txt" that comes with this project for /// copyright info. //================================================================== #ifdef ENABLE_OPENGL # include "GL/...
25.695721
105
0.49704
gugenstudio
f8020c087b17bef8fd70c4c141bcf8ab88187372
4,761
cpp
C++
codes/deeplearning/dnn/ops/proposal_encode.cpp
sarvai/proposals
578c0094db52594cd85acb843df82fe3c19db46d
[ "Apache-2.0" ]
null
null
null
codes/deeplearning/dnn/ops/proposal_encode.cpp
sarvai/proposals
578c0094db52594cd85acb843df82fe3c19db46d
[ "Apache-2.0" ]
null
null
null
codes/deeplearning/dnn/ops/proposal_encode.cpp
sarvai/proposals
578c0094db52594cd85acb843df82fe3c19db46d
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <cmath> #include <cfloat> #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/shape_inference.h" #ifdef GOOGLE_CUDA #define DEVICE_ DEVICE_GPU #include "proposal_encode_op_gpu.hpp" // Should use GPU #else #define D...
35.796992
97
0.634741
sarvai
f802ad4af42c5c0ce6bed2149de85aa7d190018e
737
cpp
C++
atcoder/abc/abc104/d/main.cpp
yu3mars/proconVsGcc
d6dbb7d16457f3cc6010ae66606e1982d77159f3
[ "MIT" ]
null
null
null
atcoder/abc/abc104/d/main.cpp
yu3mars/proconVsGcc
d6dbb7d16457f3cc6010ae66606e1982d77159f3
[ "MIT" ]
null
null
null
atcoder/abc/abc104/d/main.cpp
yu3mars/proconVsGcc
d6dbb7d16457f3cc6010ae66606e1982d77159f3
[ "MIT" ]
null
null
null
#include "bits/stdc++.h" using namespace std; typedef long long ll; ll dp[100010][4]; int main() { string s; cin >> s; dp[0][0] = 1; int n = s.length(); int mod = 1e9 + 7; for (int i = 0; i < n; i++) { for (int j = 0; j < 4; j++) { dp[i + 1][j] = dp[i][j]; } if (s[i] == 'A') { dp[i + 1][1] += dp...
15.354167
32
0.374491
yu3mars
f808c818fc3e3655062b0ff9c07413b69dd9fb3a
1,715
cpp
C++
src/file_handler.cpp
sheltongabe/cpp_ai
96378d5c6d098fd4cd73a2f6aa1f7dc698543624
[ "MIT" ]
null
null
null
src/file_handler.cpp
sheltongabe/cpp_ai
96378d5c6d098fd4cd73a2f6aa1f7dc698543624
[ "MIT" ]
1
2019-02-21T22:54:19.000Z
2019-02-22T00:58:39.000Z
src/file_handler.cpp
sheltongabe/cpp_ai
96378d5c6d098fd4cd73a2f6aa1f7dc698543624
[ "MIT" ]
null
null
null
/** * @file file_handler.cpp * @brief Implement the methods defined in FileHandler * * @author Gabriel Shelton sheltongabe * @date 02-05-2019 * @version 0.1 */ #include <fstream> #include <sstream> #include <exception> #include <iostream> #include "file_handler.h" // // readFile (const std::string&) -> std...
22.272727
89
0.65481
sheltongabe
f80aa1a23ecbeef8893ffad4dc4a9a8437c3016a
12,469
cpp
C++
Source/T3DCHAP01/blackbox.cpp
dumpinfo/WinMasterGame
59d300ec77c46fec2a821b4cfa095af0c21e434c
[ "Unlicense" ]
null
null
null
Source/T3DCHAP01/blackbox.cpp
dumpinfo/WinMasterGame
59d300ec77c46fec2a821b4cfa095af0c21e434c
[ "Unlicense" ]
null
null
null
Source/T3DCHAP01/blackbox.cpp
dumpinfo/WinMasterGame
59d300ec77c46fec2a821b4cfa095af0c21e434c
[ "Unlicense" ]
null
null
null
// BLACKBOX.CPP - Game Engine // INCLUDES /////////////////////////////////////////////////// #define WIN32_LEAN_AND_MEAN // make sure all macros are included #include <windows.h> // include important windows stuff #include <windowsx.h> #include <mmsystem.h> #include <iostream.h> // i...
30.636364
93
0.597803
dumpinfo
f80d817c1122dbd7ef12d024e4b7f63f01ceb81f
4,866
cpp
C++
src/TmpTest6.cpp
sometao/HelloCpp
0ab71237dfef36a07bd3f7ed51b5732ac4132413
[ "MIT" ]
null
null
null
src/TmpTest6.cpp
sometao/HelloCpp
0ab71237dfef36a07bd3f7ed51b5732ac4132413
[ "MIT" ]
null
null
null
src/TmpTest6.cpp
sometao/HelloCpp
0ab71237dfef36a07bd3f7ed51b5732ac4132413
[ "MIT" ]
null
null
null
#include <atomic> #include <fstream> #include <functional> #include <iostream> #include <list> #include <memory> #include <regex> #include <sstream> #include <string> #include <unordered_map> #include <vector> #include "EasyWay.h" #include "stdafx.h" namespace { // // using namespace tmp_test6; // // void foo1() { /...
16.83737
85
0.495479
sometao
f80e046e468406d43e2ed50c8e27fa40d92fc963
1,328
hpp
C++
src/sound/RBASoundMakerTable.hpp
NaohiroNISHIGUCHI/RBA
ac86e4ffa643b8050b25161c951bb43f4e36235a
[ "Apache-2.0" ]
2
2020-07-17T11:13:48.000Z
2020-07-30T09:37:08.000Z
src/sound/RBASoundMakerTable.hpp
NaohiroNISHIGUCHI/RBA
ac86e4ffa643b8050b25161c951bb43f4e36235a
[ "Apache-2.0" ]
null
null
null
src/sound/RBASoundMakerTable.hpp
NaohiroNISHIGUCHI/RBA
ac86e4ffa643b8050b25161c951bb43f4e36235a
[ "Apache-2.0" ]
3
2020-06-25T07:19:19.000Z
2020-06-26T13:06:13.000Z
/** * Copyright (c) 2019 DENSO 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 la...
28.869565
78
0.766566
NaohiroNISHIGUCHI
f813133e62ecb8a68ef04452111c6f0261bbdfd6
7,389
cpp
C++
dev/src/host_core/runtimeTraceFile.cpp
FateForWindows/recompiler
a3f4ef5b0482c879826f97132eed9cd9273f8a59
[ "MIT" ]
1,473
2017-06-27T19:25:41.000Z
2022-03-30T03:18:35.000Z
dev/src/host_core/runtimeTraceFile.cpp
Grima04/recompiler
29c71bc26092c45508866bd7e7a0bd8a6160a898
[ "MIT" ]
20
2017-07-27T22:21:24.000Z
2021-05-13T15:23:00.000Z
dev/src/host_core/runtimeTraceFile.cpp
Grima04/recompiler
29c71bc26092c45508866bd7e7a0bd8a6160a898
[ "MIT" ]
113
2017-08-09T20:41:53.000Z
2022-03-08T03:58:12.000Z
#include "build.h" #include "runtimeTraceFile.h" #include "runtimeTraceWriter.h" #include "runtimeCPU.h" #include "../recompiler_core/traceCommon.h" #include "../xenon_launcher/xenonUtils.h" namespace runtime { ///--- TraceFile::TraceFile(const runtime::RegisterBankInfo& bankInfo, std::unique_ptr<std::ofstream>& o...
24.878788
142
0.692245
FateForWindows
f81834589d0386710481647bcb2e4cae5a63a2bf
4,713
cpp
C++
src/IME/ui/renderers/ScrollablePanelRenderer.cpp
KwenaMashamaite/IME
c31a5cdacdc6cb30d3a4e1f4b317e0addd2e6107
[ "MIT" ]
9
2021-01-11T10:43:58.000Z
2022-02-17T10:09:10.000Z
src/IME/ui/renderers/ScrollablePanelRenderer.cpp
KwenaMashamaite/IME
c31a5cdacdc6cb30d3a4e1f4b317e0addd2e6107
[ "MIT" ]
null
null
null
src/IME/ui/renderers/ScrollablePanelRenderer.cpp
KwenaMashamaite/IME
c31a5cdacdc6cb30d3a4e1f4b317e0addd2e6107
[ "MIT" ]
5
2021-03-07T00:32:08.000Z
2022-02-17T10:15:16.000Z
//////////////////////////////////////////////////////////////////////////////// // IME - Infinite Motion Engine // // Copyright (c) 2020-2021 Kwena Mashamaite (kwena.mashamaite1@gmail.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentatio...
39.940678
91
0.706344
KwenaMashamaite
f82751365432275793b9ecfdd0bb28c49a9acba5
1,173
hpp
C++
include/MemeGraphics/Model.hpp
Gurman8r/CppSandbox
a0f1cf0ade69ecaba4d167c0611a620914155e53
[ "MIT" ]
null
null
null
include/MemeGraphics/Model.hpp
Gurman8r/CppSandbox
a0f1cf0ade69ecaba4d167c0611a620914155e53
[ "MIT" ]
null
null
null
include/MemeGraphics/Model.hpp
Gurman8r/CppSandbox
a0f1cf0ade69ecaba4d167c0611a620914155e53
[ "MIT" ]
null
null
null
#ifndef _ML_MODEL_HPP_ #define _ML_MODEL_HPP_ #include <MemeGraphics/IDrawable.hpp> #include <MemeGraphics/Mesh.hpp> #include <MemeGraphics/BufferLayout.hpp> #include <MemeGraphics/VertexArray.hpp> #include <MemeGraphics/VertexBuffer.hpp> #include <MemeGraphics/IndexBuffer.hpp> namespace ml { /* * * * * * * * * * * ...
24.4375
84
0.690537
Gurman8r
f829a98d40dc8d56d862f4c2cf628506c6f8b081
2,229
hpp
C++
src/algorithm/copy.hpp
yDMhaven/pinocchio
fabed17d5ad0dc1c8d251c64cfa656a0215469a5
[ "BSD-2-Clause-FreeBSD" ]
1
2020-04-07T07:23:34.000Z
2020-04-07T07:23:34.000Z
src/algorithm/copy.hpp
longwoo/pinocchio
66bb1bc08669497a0da3d303841e88f68b7434bb
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/algorithm/copy.hpp
longwoo/pinocchio
66bb1bc08669497a0da3d303841e88f68b7434bb
[ "BSD-2-Clause-FreeBSD" ]
1
2020-02-25T13:34:37.000Z
2020-02-25T13:34:37.000Z
// // Copyright (c) 2016-2018 CNRS // #ifndef __pinocchio_copy_hpp__ #define __pinocchio_copy_hpp__ #include "pinocchio/multibody/model.hpp" #include "pinocchio/multibody/data.hpp" #include "pinocchio/algorithm/check.hpp" namespace pinocchio { /// /// \brief Copy part of the data from <orig> to <dest>. Templat...
30.958333
91
0.637506
yDMhaven
f82ffa1ead7371f4c7a7d060ec4d2e255d690e2d
1,198
cpp
C++
raygame/Agent2.cpp
WillMon23/AIDecisionMakingExercise
b2acdf5ad5a39c080815cb2b26c7fd440fb9ba6e
[ "MIT" ]
null
null
null
raygame/Agent2.cpp
WillMon23/AIDecisionMakingExercise
b2acdf5ad5a39c080815cb2b26c7fd440fb9ba6e
[ "MIT" ]
null
null
null
raygame/Agent2.cpp
WillMon23/AIDecisionMakingExercise
b2acdf5ad5a39c080815cb2b26c7fd440fb9ba6e
[ "MIT" ]
null
null
null
#include "Agent2.h" #include "SpriteComponent.h" #include "GameManager.h" #include "Goal.h" #include "StateMachine_PLS_Component.h" #include "MoveComponent.h" #include "Seek_PLS_Component.h" #include "Wander_PLS_Component.h" Agent2::Agent2(float x, float y, const char* name, float maxForce, float maxSpeed, float healt...
23.490196
148
0.752087
WillMon23
f83222f54f51185a13a2efaaaf486682a58b003a
630
hpp
C++
include/zzbgames/core/ExceptionBuilder.hpp
ZZBGames/games
8da707b0beb38aa4308dde1ce70ebe38fd82003a
[ "MIT" ]
null
null
null
include/zzbgames/core/ExceptionBuilder.hpp
ZZBGames/games
8da707b0beb38aa4308dde1ce70ebe38fd82003a
[ "MIT" ]
null
null
null
include/zzbgames/core/ExceptionBuilder.hpp
ZZBGames/games
8da707b0beb38aa4308dde1ce70ebe38fd82003a
[ "MIT" ]
null
null
null
// // Created by mathbagu on 01/04/16. // #ifndef ZZBGAMES_EXCEPTIONBUILDER_HPP #define ZZBGAMES_EXCEPTIONBUILDER_HPP #include <ios> #include <stdexcept> #include <string> namespace zzbgames { namespace ExceptionBuilder { template<typename T> std::invalid_argument invalidArgumentException(const std::string& messag...
20.322581
120
0.78254
ZZBGames
f8393808d7110acad2f1c44617cdb2bf1ab22b3c
756
cpp
C++
House_Robber.cpp
De-Fau-Lt/Solutions
2539f815ab5c77769b3e3cc00fe0e7a7ec940ad5
[ "MIT" ]
null
null
null
House_Robber.cpp
De-Fau-Lt/Solutions
2539f815ab5c77769b3e3cc00fe0e7a7ec940ad5
[ "MIT" ]
null
null
null
House_Robber.cpp
De-Fau-Lt/Solutions
2539f815ab5c77769b3e3cc00fe0e7a7ec940ad5
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; class Solution { public: int rob(vector<int>& nums) { if(nums.empty()) return 0; if(nums.size()==1) return nums[0]; if(nums.size()==2) return max(nums[0],nums[1]); int dp[nums.size()+1]; ...
21.6
58
0.425926
De-Fau-Lt
f83c296ced4c2b90cc69e8492b32a096212e95c4
3,756
cpp
C++
examples/geneva/01_GSimpleOptimizer/GSimpleOptimizer.cpp
denisbertini/geneva
eff76fc489001512022d1a20c5561623d73efc32
[ "Apache-2.0", "BSD-3-Clause" ]
4
2020-05-20T07:23:19.000Z
2021-09-12T23:12:21.000Z
examples/geneva/01_GSimpleOptimizer/GSimpleOptimizer.cpp
denisbertini/geneva
eff76fc489001512022d1a20c5561623d73efc32
[ "Apache-2.0", "BSD-3-Clause" ]
10
2020-05-05T13:24:08.000Z
2021-07-27T13:23:17.000Z
examples/geneva/01_GSimpleOptimizer/GSimpleOptimizer.cpp
denisbertini/geneva
eff76fc489001512022d1a20c5561623d73efc32
[ "Apache-2.0", "BSD-3-Clause" ]
7
2020-04-09T10:33:11.000Z
2021-09-08T12:24:55.000Z
/** * @file GSimpleOptimizer.cpp */ /******************************************************************************** * * This file is part of the Geneva library collection. The following license * applies to this file: * * ------------------------------------------------------------------------------ * Licens...
39.957447
104
0.617412
denisbertini
f83f301485f993a5fa712964580b38fdc812c495
319
cpp
C++
GolmanSachs/7.cpp
aabhas-sao/6Companies30Days
0c07f62b05e18c36fc5262cd51c251b8a6301a2f
[ "MIT" ]
null
null
null
GolmanSachs/7.cpp
aabhas-sao/6Companies30Days
0c07f62b05e18c36fc5262cd51c251b8a6301a2f
[ "MIT" ]
null
null
null
GolmanSachs/7.cpp
aabhas-sao/6Companies30Days
0c07f62b05e18c36fc5262cd51c251b8a6301a2f
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; class Solution { public: int findPosition(int N, int M, int K) { int s = M % N; if (s == 0) s = N; K = K % N; if (K == 0) K = N; int diff = K - 1; s += diff; s %= N; if (s == 0) { s = N; } return s; } }; int main() {}
13.291667
41
0.426332
aabhas-sao
f84376d523a97073188c0786108d3cdc07bfffdf
4,649
cpp
C++
CoreLib/cpp/revMatirx44.cpp
YIMonge/Rev
db3b71a27659a2652bdd50069a881702b3ae059e
[ "MIT" ]
null
null
null
CoreLib/cpp/revMatirx44.cpp
YIMonge/Rev
db3b71a27659a2652bdd50069a881702b3ae059e
[ "MIT" ]
null
null
null
CoreLib/cpp/revMatirx44.cpp
YIMonge/Rev
db3b71a27659a2652bdd50069a881702b3ae059e
[ "MIT" ]
null
null
null
#include "revMatrix44.h" const revMatrix44 revMatrix44::IDENTITY = revMatrix44(); revMatrix44::revMatrix44() { CreateIdentity(); } revMatrix44::revMatrix44( float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m4...
19.131687
112
0.54786
YIMonge
f8450368f5b1f9dbd4e4a4a52326e3702de89432
6,776
cpp
C++
ra/src/context.cpp
alexbibov/ra_framework
3466b05b523ef921eea020e44a91751012ecd612
[ "BSD-3-Clause" ]
2
2018-01-22T13:58:55.000Z
2018-02-26T09:48:53.000Z
ra/src/context.cpp
alexbibov/rt_framework
3466b05b523ef921eea020e44a91751012ecd612
[ "BSD-3-Clause" ]
null
null
null
ra/src/context.cpp
alexbibov/rt_framework
3466b05b523ef921eea020e44a91751012ecd612
[ "BSD-3-Clause" ]
1
2020-05-09T15:38:15.000Z
2020-05-09T15:38:15.000Z
#include <fstream> #define STB_IMAGE_IMPLEMENTATION #include "stb/stb_image.h" #include "context.h" #include "texture2d.h" #include "exception.h" #include "ray_payloads.h" #include "util/optional.h" #include "util/misc.h" using namespace ra; namespace { std::string getPathAnchor(std::string const& path) { if ...
29.081545
133
0.658501
alexbibov
f846469487ed2f5b9a287d089d2e8882a0038c98
22,001
cpp
C++
samples/Hello/third-party/fuzzylite/fuzzylite/src/imex/FisImporter.cpp
okocsis/ios-cmake
ca61d83725bc5b1a755928f4592badbd9a8b37f4
[ "BSD-3-Clause" ]
null
null
null
samples/Hello/third-party/fuzzylite/fuzzylite/src/imex/FisImporter.cpp
okocsis/ios-cmake
ca61d83725bc5b1a755928f4592badbd9a8b37f4
[ "BSD-3-Clause" ]
null
null
null
samples/Hello/third-party/fuzzylite/fuzzylite/src/imex/FisImporter.cpp
okocsis/ios-cmake
ca61d83725bc5b1a755928f4592badbd9a8b37f4
[ "BSD-3-Clause" ]
null
null
null
/* fuzzylite (R), a fuzzy logic control library in C++. Copyright (C) 2010-2017 FuzzyLite Limited. All rights reserved. Author: Juan Rada-Vilela, Ph.D. <jcrada@fuzzylite.com> This file is part of fuzzylite. fuzzylite is free software: you can redistribute it and/or modify it under the terms of the FuzzyLite Lic...
45.362887
95
0.523885
okocsis
f846cf33896be56cd620071c2ac493bfbc48bb52
601
cpp
C++
PAT/PAT-B/CPP/1013.数素数.cpp
hao14293/2021-Postgraduate-408
70e1c40e6bcf0c5afe4a4638a7c168069d9c8319
[ "MIT" ]
950
2020-02-21T02:39:18.000Z
2022-03-31T07:27:36.000Z
PAT/PAT-B/CPP/1013.数素数.cpp
RestmeF/2021-Postgraduate-408
70e1c40e6bcf0c5afe4a4638a7c168069d9c8319
[ "MIT" ]
6
2020-04-03T13:08:47.000Z
2022-03-07T08:54:56.000Z
PAT/PAT-B/CPP/1013.数素数.cpp
RestmeF/2021-Postgraduate-408
70e1c40e6bcf0c5afe4a4638a7c168069d9c8319
[ "MIT" ]
131
2020-02-22T15:35:59.000Z
2022-03-21T04:23:57.000Z
#include <iostream> #include <vector> using namespace std; bool isprime(int a) { for (int i = 2; i * i <= a; i++) if(a % i == 0) return false; return true; } int main() { int M, N, num = 2, cnt = 0; cin >> M >> N; vector<int> v; while (cnt < N) { if (isprime(num)) { c...
20.724138
43
0.409318
hao14293
f84fdd64ecf20d8187f3598f875bbe9c2cd98eb6
592
cpp
C++
solutions/1296/josephus.cpp
buptlxb/hihoCoder
1995bdfda29d4dab98c002870ef0bc138bc37ce7
[ "Apache-2.0" ]
44
2016-05-11T06:41:14.000Z
2021-12-20T13:45:41.000Z
solutions/1296/josephus.cpp
buptlxb/hihoCoder
1995bdfda29d4dab98c002870ef0bc138bc37ce7
[ "Apache-2.0" ]
null
null
null
solutions/1296/josephus.cpp
buptlxb/hihoCoder
1995bdfda29d4dab98c002870ef0bc138bc37ce7
[ "Apache-2.0" ]
10
2016-06-25T08:55:20.000Z
2018-07-06T05:52:53.000Z
#include <iostream> using namespace std; int josephus(int n, int k) { if (n == 1) return 0; int ret = 0; if (n < k) { for (int i = 2; i <= n; ++i) { ret = (ret + k) % i; } return ret; } ret = josephus(n - n/k, k); if (ret < n % k) ret = ret -...
16.914286
52
0.380068
buptlxb
f85389509629cedfd31a59b5a85cccb062d1005c
11,315
cpp
C++
trasysmappedfile.cpp
shawneeshaw/tsysfile
356afa90f64387fbf80a3421957e1d9a5f63c5b3
[ "MIT" ]
null
null
null
trasysmappedfile.cpp
shawneeshaw/tsysfile
356afa90f64387fbf80a3421957e1d9a5f63c5b3
[ "MIT" ]
null
null
null
trasysmappedfile.cpp
shawneeshaw/tsysfile
356afa90f64387fbf80a3421957e1d9a5f63c5b3
[ "MIT" ]
null
null
null
#include <stdlib.h> #include <string.h> #include <ctype.h> #include "trasysfile.h" ////////////////////////////////////////////////////////////////////////// size_t tsysMappedFile::pageAligned(size_t size) { size_t pages = size / this->getPageSize(); if(size % this->getPageSize()) ++pages; return pages * thi...
22.720884
114
0.588246
shawneeshaw
f85a6a1ad74ce396f6ac58aa09e07c8492edc829
140,114
cc
C++
src/device_trezor/trezor/messages/messages-common.pb.cc
staroy/gyro
3cc048af5605cf4aad50812733cebe1e0232c2f9
[ "MIT" ]
null
null
null
src/device_trezor/trezor/messages/messages-common.pb.cc
staroy/gyro
3cc048af5605cf4aad50812733cebe1e0232c2f9
[ "MIT" ]
null
null
null
src/device_trezor/trezor/messages/messages-common.pb.cc
staroy/gyro
3cc048af5605cf4aad50812733cebe1e0232c2f9
[ "MIT" ]
null
null
null
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: messages-common.proto #include "messages-common.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/wire_format_lite_i...
39.094308
223
0.73381
staroy
f85e08df1b9beccd4396e4cc265894f4a41cb17a
2,004
cpp
C++
Foundation/src/SplitterChannel.cpp
AppAnywhere/agent-sdk
c5495c4a1d892f2d3bca5b82a7436db7d8adff71
[ "BSL-1.0" ]
null
null
null
Foundation/src/SplitterChannel.cpp
AppAnywhere/agent-sdk
c5495c4a1d892f2d3bca5b82a7436db7d8adff71
[ "BSL-1.0" ]
null
null
null
Foundation/src/SplitterChannel.cpp
AppAnywhere/agent-sdk
c5495c4a1d892f2d3bca5b82a7436db7d8adff71
[ "BSL-1.0" ]
null
null
null
// // SplitterChannel.cpp // // $Id: //poco/1.7/Foundation/src/SplitterChannel.cpp#1 $ // // Library: Foundation // Package: Logging // Module: SplitterChannel // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "Poco/S...
17.275862
104
0.68513
AppAnywhere
f861569ea9d1f2f1f3d5eda0321702751c0f3155
3,755
cpp
C++
CODEJAM/2014/ROUND1A/a.cpp
henviso/contests
aa8a5ce9ed4524e6c3130ee73af7640e5a86954c
[ "Apache-2.0" ]
null
null
null
CODEJAM/2014/ROUND1A/a.cpp
henviso/contests
aa8a5ce9ed4524e6c3130ee73af7640e5a86954c
[ "Apache-2.0" ]
null
null
null
CODEJAM/2014/ROUND1A/a.cpp
henviso/contests
aa8a5ce9ed4524e6c3130ee73af7640e5a86954c
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <cstdio> #include <string> #include <cstring> #include <cstdlib> #include <stack> #include <algorithm> #include <cctype> #include <vector> #include <queue> #include <tr1/unordered_map> #include <cmath> #include <map> #include <bitset> #include <set> using namespace std; typedef long long ll...
23.03681
84
0.516911
henviso
d37a3bacdc80ecf754c3ea18a0199835aa278b39
11,839
hpp
C++
include/UnityEngine/Terrain.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
include/UnityEngine/Terrain.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
include/UnityEngine/Terrain.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: UnityEngine.Behaviour #include "Uni...
54.059361
240
0.743475
RedBrumbler
d37c9d445695f77200a1d290f39927e08f777da6
874
cpp
C++
Sorting-and-Order-Statistics/Heapsort.cpp
Fresher001/Competitive-Programming-2
e1e953bb1d4ade46cc670b2d0432f68504538ed2
[ "MIT" ]
86
2016-10-18T23:30:36.000Z
2022-01-09T21:57:34.000Z
Sorting-and-Order-Statistics/Heapsort.cpp
Fresher001/Competitive-Programming-2
e1e953bb1d4ade46cc670b2d0432f68504538ed2
[ "MIT" ]
1
2018-04-13T09:38:36.000Z
2018-04-13T09:38:36.000Z
Sorting-and-Order-Statistics/Heapsort.cpp
Fresher001/Competitive-Programming-2
e1e953bb1d4ade46cc670b2d0432f68504538ed2
[ "MIT" ]
39
2017-03-02T07:25:40.000Z
2020-12-14T12:13:50.000Z
#include <bits/stdc++.h> using namespace std; void max_heapify(int H[], int N, int i) { int l, r, largest; bool changed; do { changed = false; l = 2 * i; r = 2 * i + 1; if (l <= N && H[l] > H[i]) largest = l; else largest = i; ...
15.333333
40
0.406178
Fresher001
d3808e57b052840bdc567d85928f21f089f94f8a
34,222
cpp
C++
src/terminal/SDLTerminal.cpp
mseyne/craftos2
1e36191ea40864499b54760fe92764fba871eb37
[ "MIT" ]
null
null
null
src/terminal/SDLTerminal.cpp
mseyne/craftos2
1e36191ea40864499b54760fe92764fba871eb37
[ "MIT" ]
null
null
null
src/terminal/SDLTerminal.cpp
mseyne/craftos2
1e36191ea40864499b54760fe92764fba871eb37
[ "MIT" ]
null
null
null
/* * terminal/SDLTerminal.cpp * CraftOS-PC 2 * * This file implements the SDLTerminal class. * * This code is licensed under the MIT license. * Copyright (c) 2019-2021 JackMacWindows. */ #include <sstream> #include <configuration.hpp> #include "RawTerminal.hpp" #include "SDLTerminal.hpp" #include "../gif.hpp...
45.327152
303
0.58176
mseyne
d383301dc0791ce36d59cadbf08f60b6efb215e8
1,523
cpp
C++
Solutions.cpp/2563/r3_drones.cpp
TianTcl/KU01-challenge
5a0069840e26d9a8cf8fa592679341154fcb3a15
[ "MIT" ]
2
2021-10-30T06:27:48.000Z
2021-10-30T08:14:50.000Z
Solutions.cpp/2563/r3_drones.cpp
TianTcl/KU01-challenge
5a0069840e26d9a8cf8fa592679341154fcb3a15
[ "MIT" ]
null
null
null
Solutions.cpp/2563/r3_drones.cpp
TianTcl/KU01-challenge
5a0069840e26d9a8cf8fa592679341154fcb3a15
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define ll long long #define pi pair<int,int> #define pii pair<pi,pi> #define pl pair<ll,ll> #define st first #define nd second using namespace std; typedef double db; const int MX=1e9+7; const int LM=INT_MAX; const int TM=1e7+2; const int TT=1e3+2; void setALL(void) { ios_b...
21.152778
46
0.465529
TianTcl
d38caab20c7ae2bd261f0e631d15a6ef43faeb0a
337
hpp
C++
unit_test/batched/dense/Test_Batched_SerialAxpy_Real.hpp
e10harvey/kokkos-kernels
99f822320368aeafecdfee3eb50be4c94614b2ec
[ "BSD-3-Clause" ]
null
null
null
unit_test/batched/dense/Test_Batched_SerialAxpy_Real.hpp
e10harvey/kokkos-kernels
99f822320368aeafecdfee3eb50be4c94614b2ec
[ "BSD-3-Clause" ]
7
2020-05-04T16:43:08.000Z
2022-01-13T16:31:17.000Z
unit_test/batched/dense/Test_Batched_SerialAxpy_Real.hpp
e10harvey/kokkos-kernels
99f822320368aeafecdfee3eb50be4c94614b2ec
[ "BSD-3-Clause" ]
null
null
null
#if defined(KOKKOSKERNELS_INST_FLOAT) TEST_F( TestCategory, batched_scalar_serial_axpy_nt_float_float ) { test_batched_axpy<TestExecSpace,float,float>(); } #endif #if defined(KOKKOSKERNELS_INST_DOUBLE) TEST_F( TestCategory, batched_scalar_serial_axpy_nt_double_double ) { test_batched_axpy<TestExecSpace,double,dou...
25.923077
69
0.827893
e10harvey
d38d829d5f1a3dc449fcea286c8ff990c05eef3d
2,070
ipp
C++
include/External/stlib/packages/numerical/optimization/Bracket.ipp
bxl295/m4extreme
2a4a20ebb5b4e971698f7c981de140d31a5e550c
[ "BSD-3-Clause" ]
null
null
null
include/External/stlib/packages/numerical/optimization/Bracket.ipp
bxl295/m4extreme
2a4a20ebb5b4e971698f7c981de140d31a5e550c
[ "BSD-3-Clause" ]
null
null
null
include/External/stlib/packages/numerical/optimization/Bracket.ipp
bxl295/m4extreme
2a4a20ebb5b4e971698f7c981de140d31a5e550c
[ "BSD-3-Clause" ]
null
null
null
// -*- C++ -*- #if !defined(__numerical_optimization_Bracket_ipp__) #error This file is an implementation detail of the class Bracket. #endif namespace numerical { template<class _Function> inline void Bracket<_Function>:: bracket(const double a, const double b) { const double Gold = 1.618034, GLim...
26.538462
76
0.394203
bxl295
d39510e88655323be868e3540bf0ec9ddeaea802
1,678
cpp
C++
util/fail_point_service.cpp
RedBeard0531/mongo_utils
402c2023df7d67609ce9da8e405bf13cdd270e20
[ "Apache-2.0" ]
1
2018-03-14T21:48:43.000Z
2018-03-14T21:48:43.000Z
util/fail_point_service.cpp
RedBeard0531/mongo_utils
402c2023df7d67609ce9da8e405bf13cdd270e20
[ "Apache-2.0" ]
null
null
null
util/fail_point_service.cpp
RedBeard0531/mongo_utils
402c2023df7d67609ce9da8e405bf13cdd270e20
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2012 10gen Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
29.964286
95
0.752682
RedBeard0531
d3986d777dd9216a55ed0d9422c9209bf4fb1c52
22,617
cc
C++
util/symbolize/addr2line_inlinestack.cc
sfc-gh-zyang/autofdo
73b2bdf5154d67918fdab8748a98049c82e05b1f
[ "Apache-2.0" ]
344
2015-01-07T02:10:34.000Z
2022-03-28T07:04:44.000Z
util/symbolize/addr2line_inlinestack.cc
sfc-gh-zyang/autofdo
73b2bdf5154d67918fdab8748a98049c82e05b1f
[ "Apache-2.0" ]
90
2015-04-21T11:14:03.000Z
2022-03-28T22:36:20.000Z
util/symbolize/addr2line_inlinestack.cc
sfc-gh-zyang/autofdo
73b2bdf5154d67918fdab8748a98049c82e05b1f
[ "Apache-2.0" ]
90
2015-03-16T06:09:29.000Z
2022-03-28T21:54:28.000Z
// Copyright 2014 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...
33.506667
79
0.646195
sfc-gh-zyang
d3a130e7b575aff373cab83dbead996fb012d602
4,606
cc
C++
src/base/Compress.cc
wfrest/wfrest
5aa8c3ab5ad749ef8e9b93c8aa32d8c475062dde
[ "Apache-2.0" ]
312
2021-12-05T15:17:27.000Z
2022-03-30T10:53:01.000Z
src/base/Compress.cc
chanchann/wfrest
5aa8c3ab5ad749ef8e9b93c8aa32d8c475062dde
[ "Apache-2.0" ]
15
2021-12-14T16:01:15.000Z
2022-03-15T04:27:47.000Z
src/base/Compress.cc
wfrest/wfrest
5aa8c3ab5ad749ef8e9b93c8aa32d8c475062dde
[ "Apache-2.0" ]
46
2021-12-06T08:08:45.000Z
2022-03-01T06:26:38.000Z
#include <cassert> #include "Compress.h" #include "ErrorCode.h" namespace wfrest { const char* compress_method_to_str(const Compress& compress_method) { switch (compress_method) { case Compress::GZIP: return "gzip"; default: return "unsupport compression"; } } } //...
27.416667
79
0.487408
wfrest
d3a4c5e78f66de73020da4ac0e963f53da8b3cce
1,245
cpp
C++
plugins/z3_utils/python/python_bindings.cpp
emsec/HAL
608e801896e1b5254b28ce0f29d4d898b81b0f77
[ "MIT" ]
407
2019-04-26T10:45:52.000Z
2022-03-31T15:52:30.000Z
plugins/z3_utils/python/python_bindings.cpp
emsec/HAL
608e801896e1b5254b28ce0f29d4d898b81b0f77
[ "MIT" ]
219
2019-04-29T16:42:01.000Z
2022-03-11T22:57:41.000Z
plugins/z3_utils/python/python_bindings.cpp
emsec/HAL
608e801896e1b5254b28ce0f29d4d898b81b0f77
[ "MIT" ]
53
2019-05-02T21:23:35.000Z
2022-03-11T19:46:05.000Z
#include "pybind11/operators.h" #include "pybind11/pybind11.h" #include "pybind11/stl.h" #include "pybind11/stl_bind.h" #include "hal_core/python_bindings/python_bindings.h" #include "plugin_z3_utils.h" namespace py = pybind11; namespace hal { // the name in PYBIND11_MODULE/PYBIND11_PLUGIN *MUST* match the file...
31.923077
124
0.68996
emsec
d3a5e9306c3e0c4077a5305d3ce9efc2c98cc701
15,372
cpp
C++
eval.cpp
nireo/lups
effd2f54a07a22d592167b7f612ddee798dfca57
[ "MIT" ]
null
null
null
eval.cpp
nireo/lups
effd2f54a07a22d592167b7f612ddee798dfca57
[ "MIT" ]
null
null
null
eval.cpp
nireo/lups
effd2f54a07a22d592167b7f612ddee798dfca57
[ "MIT" ]
null
null
null
#include "eval.h" #include "ast.h" #include "object.h" #include <iostream> #include <stdexcept> // TODO: start using unique pointers for more safety namespace object_constant { Null *null = new Null(); Boolean *TRUE_OBJ = new Boolean(true); Boolean *FALSE_OBJ = new Boolean(false); } // namespace object_constant bool...
27.499106
80
0.663869
nireo
d3b21bed34c2dedd324268e6cc7a8d81a5008703
6,206
cpp
C++
ucode-update/Interpret.cpp
kbu1564/UcodeMiniC
dbb4d34d63c1fd440098eadb86c7bd193521f36c
[ "MIT" ]
3
2016-03-24T08:13:16.000Z
2019-05-14T16:21:42.000Z
ucode-update/Interpret.cpp
kbu1564/UcodeMiniC
dbb4d34d63c1fd440098eadb86c7bd193521f36c
[ "MIT" ]
null
null
null
ucode-update/Interpret.cpp
kbu1564/UcodeMiniC
dbb4d34d63c1fd440098eadb86c7bd193521f36c
[ "MIT" ]
null
null
null
#include "Ucodei.h" #include "Label.h" #include "UcodeiStack.h" #include "ArithmeticLogicUnit.h" #include "Interpret.h" Interpret::Interpret() : sysStack(STACKSIZE), memStack(STACKSIZE), callStack(STACKSIZE) { arBase = 4; tcycle = 0; exeCount = 0 ; } int Interpret::findAddr(int n) { int temp; if (!instrB...
26.408511
86
0.523848
kbu1564
d3b278df18b1f9c2bd5a48cf13ec84bebfa52dde
4,145
cc
C++
ads-df/FileService.cc
lairofthegoldinblair/trecul
41953c22f18f76e5add7a35a13775f70459fcd96
[ "BSD-3-Clause" ]
7
2015-04-24T13:24:22.000Z
2020-01-17T05:47:43.000Z
ads-df/FileService.cc
lairofthegoldinblair/trecul
41953c22f18f76e5add7a35a13775f70459fcd96
[ "BSD-3-Clause" ]
null
null
null
ads-df/FileService.cc
lairofthegoldinblair/trecul
41953c22f18f76e5add7a35a13775f70459fcd96
[ "BSD-3-Clause" ]
4
2015-12-24T16:29:58.000Z
2022-02-04T19:30:18.000Z
#include <boost/thread/mutex.hpp> #include "FileService.hh" #include "AsynchronousFileSystem.hh" #include "RuntimeProcess.hh" #include "RecordParser.hh" //typedef AsynchronousFileSystem<hdfs_file_traits> AsyncFileSystem; typedef AsynchronousFileSystem<stdio_file_traits> AsyncFileSystem; class FileServiceFile { priva...
23.418079
121
0.692159
lairofthegoldinblair
d3b454ea05e9aa9c9e3744aae65b3b8605c1bd3b
8,756
hpp
C++
include/codegen/include/UnityEngine/ProBuilder/Poly2Tri/FixedArray3_1.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/UnityEngine/ProBuilder/Poly2Tri/FixedArray3_1.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/UnityEngine/ProBuilder/Poly2Tri/FixedArray3_1.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:23 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes // Including type: System.ValueType #include "System/ValueType.hpp" // Including type: System.Collections.G...
51.505882
326
0.711398
Futuremappermydud
d3bab5fccc7a5f92e6aeda4f9f3e1b14b42372d6
964
cc
C++
Codeforces/133 Division 2/Problem C/C.cc
VastoLorde95/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
170
2017-07-25T14:47:29.000Z
2022-01-26T19:16:31.000Z
Codeforces/133 Division 2/Problem C/C.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
null
null
null
Codeforces/133 Division 2/Problem C/C.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
55
2017-07-28T06:17:33.000Z
2021-10-31T03:06:22.000Z
#include<cstdio> #include<iostream> #include<cmath> #include<algorithm> #include<cstring> #include<map> #include<set> #include<vector> #include<utility> #include<queue> #include<stack> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi first #define...
19.28
72
0.587137
VastoLorde95
d3bd3276ff0230bee31617f30588c222fea250cd
9,956
cpp
C++
codeforces/a_mafia.cpp
BasharKernel/A2OJ_Problems
fa6c4fa5dbb0c50f1051edee01ebc37b5ddd5eb8
[ "MIT" ]
1
2018-06-30T08:50:46.000Z
2018-06-30T08:50:46.000Z
codeforces/a_mafia.cpp
BasharKernel/A2OJ_Problems
fa6c4fa5dbb0c50f1051edee01ebc37b5ddd5eb8
[ "MIT" ]
null
null
null
codeforces/a_mafia.cpp
BasharKernel/A2OJ_Problems
fa6c4fa5dbb0c50f1051edee01ebc37b5ddd5eb8
[ "MIT" ]
1
2018-07-05T21:35:55.000Z
2018-07-05T21:35:55.000Z
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef ll ptype; #define REMOVE_REDUNDANT // content of DSU reference class dsu{ public: vector<int> sets; void init(int n) { sets.resize(n); for(int i=0;i<n;i++) { sets[i] = -1; } } ...
26.98103
101
0.553033
BasharKernel
d3c115a19777f2a3221a488ba4f8e633e0966d66
627
hpp
C++
demos/glyph_paint/populated_glyph_stack.hpp
jktjkt/CPPurses
652d702258db8fab55ae945f7bb38e0b7c29521b
[ "MIT" ]
null
null
null
demos/glyph_paint/populated_glyph_stack.hpp
jktjkt/CPPurses
652d702258db8fab55ae945f7bb38e0b7c29521b
[ "MIT" ]
null
null
null
demos/glyph_paint/populated_glyph_stack.hpp
jktjkt/CPPurses
652d702258db8fab55ae945f7bb38e0b7c29521b
[ "MIT" ]
null
null
null
#ifndef DEMOS_GLYPH_PAINT_POPULATED_GLYPH_STACK_HPP #define DEMOS_GLYPH_PAINT_POPULATED_GLYPH_STACK_HPP #include <cppurses/cppurses.hpp> #include <signals/slot.hpp> #include <functional> #include <vector> using namespace cppurses; namespace demos { namespace glyph_paint { class Populated_glyph_stack : public Cycle...
23.222222
79
0.779904
jktjkt
d3c356b818fac4bbaf7c68519a3b4ebcb5a2d3e7
228
cpp
C++
simulator_src/main.cpp
tonyfloatersu/simulator
78dc09c6a704a7e9e0ffd3ad7f33f7b71971a773
[ "MIT" ]
1
2020-10-28T15:15:03.000Z
2020-10-28T15:15:03.000Z
simulator_src/main.cpp
SJTU-ECTL/simulator
78dc09c6a704a7e9e0ffd3ad7f33f7b71971a773
[ "MIT" ]
null
null
null
simulator_src/main.cpp
SJTU-ECTL/simulator
78dc09c6a704a7e9e0ffd3ad7f33f7b71971a773
[ "MIT" ]
null
null
null
#include <iostream> #include "simulator_interface.h" int main() { auto var = simulator("./data/benchmark/C17.blif", "./data/benchmark/C17_del.blif", 100000); return 0; }
25.333333
57
0.535088
tonyfloatersu
d3c488283d0a8a787a0c3a8d47ed3f24636b0002
5,826
cpp
C++
src/solver.cpp
ckendrick/asgard
ed4fc90d240466e9ca0473071e8f64f84ad14462
[ "MIT" ]
null
null
null
src/solver.cpp
ckendrick/asgard
ed4fc90d240466e9ca0473071e8f64f84ad14462
[ "MIT" ]
null
null
null
src/solver.cpp
ckendrick/asgard
ed4fc90d240466e9ca0473071e8f64f84ad14462
[ "MIT" ]
null
null
null
#include "solver.hpp" #include "fast_math.hpp" namespace solver { // simple, node-local test version template<typename P> P simple_gmres(fk::matrix<P> const &A, fk::vector<P> &x, fk::vector<P> const &b, fk::matrix<P> const &M, int const restart, int const max_iter, P const tolerance) { ...
32.730337
80
0.523687
ckendrick
d3d1647cd8ba8d1e57fba1a81e22ad958c5f0d24
499
cpp
C++
dotnet/bindings/CLRAdapter/src/MasterAdapter.cpp
Aditya23456/Something
a6e1937228fba865c0bbc9205b998c92bd700ed7
[ "Apache-2.0" ]
1
2022-03-29T03:58:06.000Z
2022-03-29T03:58:06.000Z
dotnet/bindings/CLRAdapter/src/MasterAdapter.cpp
Aditya23456/Dnp3-with-group0
a6e1937228fba865c0bbc9205b998c92bd700ed7
[ "Apache-2.0" ]
null
null
null
dotnet/bindings/CLRAdapter/src/MasterAdapter.cpp
Aditya23456/Dnp3-with-group0
a6e1937228fba865c0bbc9205b998c92bd700ed7
[ "Apache-2.0" ]
null
null
null
#include "MasterAdapter.h" #include "Conversions.h" using namespace Automatak::DNP3::Interface; namespace Automatak { namespace DNP3 { namespace Adapter { MasterAdapter::MasterAdapter(asiodnp3::IMaster* master) : MasterOperationsAdapter(master), m_master(master) {} void MasterAdapter::Enable() { ...
14.257143
110
0.661323
Aditya23456
d3d4c6a65488f6438aeef5c81493ed4a787e0b6e
620
cpp
C++
myodd/html/TokenBold.cpp
FFMG/myoddweb.piger
6c5e9dff6ab8e2e02d6990c1959450f087acf371
[ "MIT" ]
18
2016-03-04T15:44:24.000Z
2021-12-31T11:06:25.000Z
myodd/html/TokenBold.cpp
FFMG/myoddweb.piger
6c5e9dff6ab8e2e02d6990c1959450f087acf371
[ "MIT" ]
49
2016-02-29T17:59:52.000Z
2019-05-05T04:59:26.000Z
myodd/html/TokenBold.cpp
FFMG/myoddweb.piger
6c5e9dff6ab8e2e02d6990c1959450f087acf371
[ "MIT" ]
2
2016-07-30T10:17:12.000Z
2016-08-11T20:31:46.000Z
#include "TokenBold.h" #include "../string/string.h" TokenBold::TokenBold() : Token() { } TokenBold::~TokenBold() { } // if this is the token we are looking for. bool TokenBold::OnIsToken(const MYODD_CHAR* lpString, __int64 nLen ) const { if( nLen == 1 ) { return (_tcsnicmp(lpString , _T("b"), 1 ) ==0); ...
16.315789
74
0.635484
FFMG
d3dc89fbfca769f2d78a691359ecf593da179479
4,010
cpp
C++
thirdparty/demo/glut/light/glut_light.cpp
fox000002/ulib-win
628c4a0b8193d1ad771aa85598776ff42a45f913
[ "Apache-2.0" ]
4
2016-09-07T07:02:52.000Z
2019-06-22T08:55:53.000Z
thirdparty/demo/glut/light/glut_light.cpp
fox000002/ulib-win
628c4a0b8193d1ad771aa85598776ff42a45f913
[ "Apache-2.0" ]
null
null
null
thirdparty/demo/glut/light/glut_light.cpp
fox000002/ulib-win
628c4a0b8193d1ad771aa85598776ff42a45f913
[ "Apache-2.0" ]
3
2019-06-22T16:00:39.000Z
2022-03-09T13:46:27.000Z
/* Light1.c This programs draws a simple Solar system that animates constantly */ #include <math.h> #include <stdlib.h> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> static void init() { // Initialization routine GLfloat mat_specular[] = {1.0, 1.0, 1.0, 1.0}; ...
44.065934
90
0.608728
fox000002
d3dd0d0edbb9f93dfec3cd510b8a881e799d9d93
1,856
hh
C++
Modules/Graphics/Core/Sources/Methane/Graphics/Metal/ShaderMT.hh
navono/MethaneKit
5cf55dcbbc23392f5c06b178570c7c32b6368ca7
[ "Apache-2.0" ]
528
2019-03-10T20:21:29.000Z
2022-03-30T20:25:21.000Z
Modules/Graphics/Core/Sources/Methane/Graphics/Metal/ShaderMT.hh
navono/MethaneKit
5cf55dcbbc23392f5c06b178570c7c32b6368ca7
[ "Apache-2.0" ]
78
2019-03-12T19:28:32.000Z
2022-03-06T14:15:44.000Z
Modules/Graphics/Core/Sources/Methane/Graphics/Metal/ShaderMT.hh
navono/MethaneKit
5cf55dcbbc23392f5c06b178570c7c32b6368ca7
[ "Apache-2.0" ]
19
2019-03-17T19:02:45.000Z
2022-01-07T17:16:17.000Z
/****************************************************************************** Copyright 2019-2020 Evgeny Gorodetskiy 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/lic...
32.561404
112
0.661638
navono
d3e478db88babc095c51169fc55884e276f9b525
1,805
hpp
C++
src/blackhole/attribute.hpp
bioothod/blackhole
2bd242e6027f20019e60b600f50a9e25127db640
[ "MIT" ]
1
2015-01-12T05:23:28.000Z
2015-01-12T05:23:28.000Z
src/blackhole/attribute.hpp
bioothod/blackhole
2bd242e6027f20019e60b600f50a9e25127db640
[ "MIT" ]
null
null
null
src/blackhole/attribute.hpp
bioothod/blackhole
2bd242e6027f20019e60b600f50a9e25127db640
[ "MIT" ]
null
null
null
#pragma once #include <ctime> #include <initializer_list> #include <utility> #include "blackhole/attribute/name.hpp" #include "blackhole/attribute/scope.hpp" #include "blackhole/attribute/set.hpp" #include "blackhole/attribute/view.hpp" #include "blackhole/attribute/traits.hpp" #include "blackhole/attribute/value.hpp...
25.785714
86
0.72687
bioothod
d3e4833ccee8f02ccfdeeae3a2623e07841150b5
3,004
hpp
C++
src/terark/zbs/zip_reorder_map.hpp
rockeet/terark-zip
3235373d04b7cf5d584259111b3a057c45cc1708
[ "BSD-3-Clause" ]
11
2021-11-19T04:57:42.000Z
2022-03-27T12:44:17.000Z
src/terark/zbs/zip_reorder_map.hpp
rockeet/terark-zip
3235373d04b7cf5d584259111b3a057c45cc1708
[ "BSD-3-Clause" ]
null
null
null
src/terark/zbs/zip_reorder_map.hpp
rockeet/terark-zip
3235373d04b7cf5d584259111b3a057c45cc1708
[ "BSD-3-Clause" ]
1
2022-02-17T10:17:01.000Z
2022-02-17T10:17:01.000Z
#pragma once #include <terark/io/DataOutput.hpp> #include <terark/io/StreamBuffer.hpp> #include <terark/io/FileStream.hpp> #include <terark/io/var_int_inline.hpp> #include <terark/util/mmap.hpp> namespace terark { class TERARK_DLL_EXPORT ZReorderMap { private: terark::MmapWholeFile file_; const byte_t *pos_ ...
26.821429
88
0.534953
rockeet
d3eebbca3ee647c4ed1664036763ccd0e1d2281c
2,099
hpp
C++
_thirdparty/include/boost/process/detail/posix/pipe_out.hpp
joerghall/sourcesfs
29ed9675b18f16d869116ed5e5d5343241aa5335
[ "MIT" ]
1
2017-07-27T19:32:29.000Z
2017-07-27T19:32:29.000Z
_thirdparty/include/boost/process/detail/posix/pipe_out.hpp
joerghall/sourcesfs
29ed9675b18f16d869116ed5e5d5343241aa5335
[ "MIT" ]
null
null
null
_thirdparty/include/boost/process/detail/posix/pipe_out.hpp
joerghall/sourcesfs
29ed9675b18f16d869116ed5e5d5343241aa5335
[ "MIT" ]
null
null
null
// Copyright (c) 2006, 2007 Julio M. Merino Vidal // Copyright (c) 2008 Ilya Sokolov, Boris Schaeling // Copyright (c) 2009 Boris Schaeling // Copyright (c) 2010 Felipe Tanus, Boris Schaeling // Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling // Copyright (c) 2016 Klemens D. Morgenstern // // Distributed un...
30.867647
97
0.673654
joerghall
d3ef67abddfdc4b86bbd9d31eb41ad095e54188e
7,115
cpp
C++
core/src/cluster/mpi/MpiProvider.cpp
voei/megamol
569b7b58c1f9bc5405b79549b86f84009329f668
[ "BSD-3-Clause" ]
2
2020-10-16T10:15:37.000Z
2021-01-21T13:06:00.000Z
core/src/cluster/mpi/MpiProvider.cpp
voei/megamol
569b7b58c1f9bc5405b79549b86f84009329f668
[ "BSD-3-Clause" ]
null
null
null
core/src/cluster/mpi/MpiProvider.cpp
voei/megamol
569b7b58c1f9bc5405b79549b86f84009329f668
[ "BSD-3-Clause" ]
1
2021-01-28T01:19:54.000Z
2021-01-28T01:19:54.000Z
/* * MpiProvider.cpp * * Copyright (C) 2014 Visualisierungsinstitut der Universität Stuttgart. * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "mmcore/cluster/mpi/MpiProvider.h" #ifndef WIN32 #include <cstdio> #include <cstdlib> #endif /* !_WIN32 */ #include "mmcore/param/IntParam.h" #include "mmcor...
28.234127
132
0.628531
voei
d3f21556e1ac1faf7278346749ac508c9284c3bd
877
cpp
C++
implementation/src/traditional_gkr/bc_clogc.cpp
niconiconi/Libra
d8b4bebd70c1b0681fdecb66fbadeccb3f9d926e
[ "Apache-2.0" ]
28
2020-01-05T12:05:57.000Z
2021-11-23T16:18:40.000Z
implementation/src/traditional_gkr/bc_clogc.cpp
niconiconi/Libra
d8b4bebd70c1b0681fdecb66fbadeccb3f9d926e
[ "Apache-2.0" ]
1
2020-08-10T17:15:38.000Z
2020-08-11T16:14:46.000Z
implementation/src/traditional_gkr/bc_clogc.cpp
niconiconi/Libra
d8b4bebd70c1b0681fdecb66fbadeccb3f9d926e
[ "Apache-2.0" ]
13
2020-01-31T05:53:37.000Z
2021-08-02T14:05:43.000Z
#include <cstdio> #include "traditional_gkr/verifier_bc_clogc.h" #include "traditional_gkr/prover_bc_clogc.h" #include "linear_gkr/prime_field.h" verifier v; prover p; int input_size; int n_copy, log_n_copy; void run_verifications(const char *path) { bool final_result = true; double total_time = 0; v.set_blocks(n_...
21.925
104
0.730901
niconiconi
d3f4500eab41aa03faeb3ffc35889ab46663ddfc
2,811
cpp
C++
source/game/Texture.cpp
nicolasjinchereau/pizza-quest
5b9d15ea78f4d7cbb97b3e89efe858025aea8c95
[ "MIT" ]
null
null
null
source/game/Texture.cpp
nicolasjinchereau/pizza-quest
5b9d15ea78f4d7cbb97b3e89efe858025aea8c95
[ "MIT" ]
null
null
null
source/game/Texture.cpp
nicolasjinchereau/pizza-quest
5b9d15ea78f4d7cbb97b3e89efe858025aea8c95
[ "MIT" ]
null
null
null
/*--------------------------------------------------------------------------------------------- * Copyright (c) Nicolas Jinchereau. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------------...
19.253425
127
0.67556
nicolasjinchereau
d3f4ef11eda4c283a2f7238cfb7276bf62c09194
2,348
cpp
C++
libs/math/tests/math/all_tests/gtest/spline_tests.cpp
devjsc/ledger-1
2aa68e05b9f9c10a9971fc8ddf4848695511af3c
[ "Apache-2.0" ]
3
2019-07-11T08:49:27.000Z
2021-09-07T16:49:15.000Z
libs/math/tests/math/all_tests/gtest/spline_tests.cpp
devjsc/ledger-1
2aa68e05b9f9c10a9971fc8ddf4848695511af3c
[ "Apache-2.0" ]
null
null
null
libs/math/tests/math/all_tests/gtest/spline_tests.cpp
devjsc/ledger-1
2aa68e05b9f9c10a9971fc8ddf4848695511af3c
[ "Apache-2.0" ]
2
2019-07-13T12:45:22.000Z
2021-03-12T08:48:57.000Z
//------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // 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 // // ...
30.102564
80
0.570273
devjsc
d3f57bbeb0d22ea6a345474804cd68d647f988ac
6,608
cpp
C++
code/scripting/api/objs/texture.cpp
trgswe/fs2open.github.com
a159eba0cebca911ad14a118412fddfe5be8e9f8
[ "Unlicense" ]
307
2015-04-10T13:27:32.000Z
2022-03-21T03:30:38.000Z
code/scripting/api/objs/texture.cpp
trgswe/fs2open.github.com
a159eba0cebca911ad14a118412fddfe5be8e9f8
[ "Unlicense" ]
2,231
2015-04-27T10:47:35.000Z
2022-03-31T19:22:37.000Z
code/scripting/api/objs/texture.cpp
trgswe/fs2open.github.com
a159eba0cebca911ad14a118412fddfe5be8e9f8
[ "Unlicense" ]
282
2015-01-05T12:16:57.000Z
2022-03-28T04:45:11.000Z
// // #include "texture.h" #include "bmpman/bmpman.h" #define BMPMAN_INTERNAL #include "bmpman/bm_internal.h" namespace scripting { namespace api { texture_h::texture_h() = default; texture_h::texture_h(int bm) : handle(bm) {} texture_h::~texture_h() { if (!isValid()) { // There is nothing to release return; ...
26.861789
174
0.688408
trgswe
108d05ce1efc487ed3f8e765e1c4e432c76214ff
5,243
cpp
C++
vcl/opengl/texture/texture_gpu/texture_gpu.cpp
louismlb/INF443
14c2b2ac984d3da732f6aa02c8a2c0e24a0e5bb9
[ "MIT" ]
1
2021-08-23T22:59:12.000Z
2021-08-23T22:59:12.000Z
vcl/opengl/texture/texture_gpu/texture_gpu.cpp
louismlb/INF443
14c2b2ac984d3da732f6aa02c8a2c0e24a0e5bb9
[ "MIT" ]
null
null
null
vcl/opengl/texture/texture_gpu/texture_gpu.cpp
louismlb/INF443
14c2b2ac984d3da732f6aa02c8a2c0e24a0e5bb9
[ "MIT" ]
1
2021-08-23T23:00:19.000Z
2021-08-23T23:00:19.000Z
#include "texture_gpu.hpp" #define STB_IMAGE_IMPLEMENTATION #include <third_party/stb/stb_image.h> namespace vcl { //GLuint create_texture_gpu(const image& im) //{ // return create_texture_gpu(im.data, im.width, im.height); //} GLuint create_texture_gpu(std::vector<unsigned char> const& data, GLsizei width, GLsi...
34.721854
135
0.718673
louismlb
109345716152116e8c9914269ef25f26c4535ba7
23,571
cpp
C++
games/lunpan/cserverlogicframe.cpp
FLynnGame/moleserver
d79e84f4afc4017c983deb4d6bfe0f5851eccedd
[ "Apache-2.0" ]
37
2020-05-15T08:29:39.000Z
2022-03-21T05:18:35.000Z
games/lunpan/cserverlogicframe.cpp
FLynnGame/moleserver
d79e84f4afc4017c983deb4d6bfe0f5851eccedd
[ "Apache-2.0" ]
null
null
null
games/lunpan/cserverlogicframe.cpp
FLynnGame/moleserver
d79e84f4afc4017c983deb4d6bfe0f5851eccedd
[ "Apache-2.0" ]
23
2020-07-06T08:55:07.000Z
2022-03-31T06:38:31.000Z
#include "cserverlogicframe.h" #include <sstream> static bool m_gamisrunning = false; int64 m_minzhuangmoney = 0; /// 构造函数 CServerLogicFrame::CServerLogicFrame():m_g_GameRoom(NULL),m_GameState(STATE_NULL) { m_timegamestart = m_timexiazhu = m_timekaipai = m_timejiesuan = 0; m_maxtotaljettons=m_maxpeoplejettons...
29.353674
132
0.648042
FLynnGame
109422eaf1863de604f4e8d27ba6f1566f31303e
808
cpp
C++
Math/Geometry/Pick theorem.cpp
PauliusGasiukevicius/Algorithms-and-Data-Structures
11d8e47f8db6a744e4e50065e8fe0c44ca4f0ea2
[ "MIT" ]
2
2017-11-23T09:36:10.000Z
2018-08-01T12:10:45.000Z
Math/Geometry/Pick theorem.cpp
PauliusGasiukevicius/Algorithms-and-Data-Structures
11d8e47f8db6a744e4e50065e8fe0c44ca4f0ea2
[ "MIT" ]
null
null
null
Math/Geometry/Pick theorem.cpp
PauliusGasiukevicius/Algorithms-and-Data-Structures
11d8e47f8db6a744e4e50065e8fe0c44ca4f0ea2
[ "MIT" ]
2
2018-08-01T12:11:15.000Z
2018-12-21T07:43:09.000Z
ld cross(ld x1, ld y1, ld x2, ld y2){return x1*y2-x2*y1;} ld polygonArea(vector<pair<ll,ll>>&A) { ld ats = 0.0; for(int i=2; i<A.size(); i++) ats+=cross(A[i].first-A[0].first,A[i].second-A[0].second,A[i-1].first-A[0].first,A[i-1].second-A[0].second); return fabs(ats/2); } ll boundary(vector<pair<l...
24.484848
116
0.514851
PauliusGasiukevicius
10a6eb2c6ab08da867ee34fd71689f25a73ff167
1,276
cpp
C++
src/model/VertexTextureModel.cpp
sophia-x/OpenGLWrapper
5d5fe10e617b81934cc4945a990878f845c49f20
[ "MIT" ]
null
null
null
src/model/VertexTextureModel.cpp
sophia-x/OpenGLWrapper
5d5fe10e617b81934cc4945a990878f845c49f20
[ "MIT" ]
null
null
null
src/model/VertexTextureModel.cpp
sophia-x/OpenGLWrapper
5d5fe10e617b81934cc4945a990878f845c49f20
[ "MIT" ]
null
null
null
#include "VertexTextureModel.hpp" void VertexTextureModel::update(double delta) {} void VertexTextureModel::pre_draw() { glEnableVertexAttribArray(0); glBindBuffer(GL_ARRAY_BUFFER, vertex_buffer); glVertexAttribPointer( 0, // attribute 3, // size GL_FLOAT, ...
26.040816
65
0.604232
sophia-x
10aaebdf2f17d41b9b0fd9ab41b157f736c87975
2,353
cpp
C++
Lib-Engine/src/sfz/audio/AudioEngine.cpp
PetorSFZ/sfz_tech
0d4027ad2c2bb444b83e78f009b649478cb97a73
[ "Zlib" ]
2
2020-09-04T16:52:47.000Z
2021-04-21T18:30:25.000Z
Lib-Engine/src/sfz/audio/AudioEngine.cpp
PetorSFZ/sfz_tech
0d4027ad2c2bb444b83e78f009b649478cb97a73
[ "Zlib" ]
null
null
null
Lib-Engine/src/sfz/audio/AudioEngine.cpp
PetorSFZ/sfz_tech
0d4027ad2c2bb444b83e78f009b649478cb97a73
[ "Zlib" ]
null
null
null
// Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se) // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for ...
27.045977
99
0.643009
PetorSFZ
10ad047a2d094569fc92ea56262df70c9ec8f02c
1,129
cpp
C++
src/tracks/timetrack/ui/TimeTrackUI.cpp
Evropa1/audacity
3be57fce49d293bd64cb0904b3883c885503ab2e
[ "CC-BY-3.0" ]
21
2015-08-02T20:43:37.000Z
2022-02-06T04:19:16.000Z
src/tracks/timetrack/ui/TimeTrackUI.cpp
Evropa1/audacity
3be57fce49d293bd64cb0904b3883c885503ab2e
[ "CC-BY-3.0" ]
null
null
null
src/tracks/timetrack/ui/TimeTrackUI.cpp
Evropa1/audacity
3be57fce49d293bd64cb0904b3883c885503ab2e
[ "CC-BY-3.0" ]
3
2016-05-15T05:35:57.000Z
2018-09-21T20:50:11.000Z
/********************************************************************** Audacity: A Digital Audio Editor TimeTrackUI.cpp Paul Licameli split from TrackPanel.cpp **********************************************************************/ #include "../../../TimeTrack.h" #include "TimeTrackControls.h" #include "TimeTrack...
26.880952
81
0.632418
Evropa1
10bac7e1dbe1d1525b030d9f5ff768ae136a1ecb
1,416
cpp
C++
Hacker Blocks/Merge K sorted Arrays.cpp
akashmodak97/Competitive-Coding-and-Interview-Problems
a34fcb50378cf4bf4e5fd34e910eb68a1c05c066
[ "MIT" ]
51
2020-02-24T11:14:00.000Z
2022-03-24T09:32:18.000Z
Hacker Blocks/Merge K sorted Arrays.cpp
akashmodak97/Competitive-Coding-and-Interview-Problems
a34fcb50378cf4bf4e5fd34e910eb68a1c05c066
[ "MIT" ]
3
2020-10-02T08:16:09.000Z
2021-04-17T16:32:38.000Z
Hacker Blocks/Merge K sorted Arrays.cpp
akashmodak97/Competitive-Coding-and-Interview-Problems
a34fcb50378cf4bf4e5fd34e910eb68a1c05c066
[ "MIT" ]
18
2020-04-24T15:33:36.000Z
2022-03-24T09:32:20.000Z
/* Hacker Blocks */ /* Title - Merge K sorted Arrays */ /* Created By - Akash Modak */ /* Date - 31/01/2021 */ // Given K sorted arrays each with N elements merge them and output the sorted array // Input Format // First line contains 2 space separated integers K and N. // Next lines contain K*N space separated inte...
21.454545
97
0.618644
akashmodak97
10cf982cd162cba098477ff137641e82ac802709
2,630
cc
C++
CaloMC/src/ShowerStepUtil.cc
bonventre/Offline
77db9d6368f27ab9401c690c2c2a4257ade6c231
[ "Apache-2.0" ]
1
2021-06-25T00:00:12.000Z
2021-06-25T00:00:12.000Z
CaloMC/src/ShowerStepUtil.cc
bonventre/Offline
77db9d6368f27ab9401c690c2c2a4257ade6c231
[ "Apache-2.0" ]
1
2019-11-22T14:45:51.000Z
2019-11-22T14:50:03.000Z
CaloMC/src/ShowerStepUtil.cc
bonventre/Offline
77db9d6368f27ab9401c690c2c2a4257ade6c231
[ "Apache-2.0" ]
2
2019-10-14T17:46:58.000Z
2020-03-30T21:05:15.000Z
#include "CaloMC/inc/ShowerStepUtil.hh" #include "CLHEP/Vector/ThreeVector.h" #include "CLHEP/Matrix/SymMatrix.h" #include <vector> #include <iostream> #include <algorithm> namespace mu2e { void ShowerStepUtil::init(int i, double time, double momentum, const CLHEP::Hep3Vector& posIn) { t0_...
27.978723
148
0.4327
bonventre
10d233bc06ef3b3cb3adc7c5e291aae8dd0002e9
5,498
cpp
C++
examples/dbcrypt/CryptKeyHolder.cpp
aafemt/firebird
6f5617524996a8ef6eb721cc782d7fa3513b7d3b
[ "Condor-1.1" ]
null
null
null
examples/dbcrypt/CryptKeyHolder.cpp
aafemt/firebird
6f5617524996a8ef6eb721cc782d7fa3513b7d3b
[ "Condor-1.1" ]
null
null
null
examples/dbcrypt/CryptKeyHolder.cpp
aafemt/firebird
6f5617524996a8ef6eb721cc782d7fa3513b7d3b
[ "Condor-1.1" ]
null
null
null
/* * PROGRAM: Firebird samples. * MODULE: CryptKeyHolder.cpp * DESCRIPTION: Sample of how key holder may be written. * * The contents of this file are subject to the Initial * Developer's Public License Version 1.0 (the "License"); * you may not use this file except in compliance with the * License. You ...
19.992727
96
0.700255
aafemt
10d358dc545a3ebfa81036f3e6f7449ee84245be
919
cpp
C++
Atcoder/ABC183_D.cpp
edwinsun98/Competitive-Programming-Solutions
67d79a2193e6912a644d27b9a399ba02a60766b7
[ "MIT" ]
null
null
null
Atcoder/ABC183_D.cpp
edwinsun98/Competitive-Programming-Solutions
67d79a2193e6912a644d27b9a399ba02a60766b7
[ "MIT" ]
null
null
null
Atcoder/ABC183_D.cpp
edwinsun98/Competitive-Programming-Solutions
67d79a2193e6912a644d27b9a399ba02a60766b7
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define p push #define f first #define s second #define all(vec) begin(vec), end(vec) #define pii pair<int,int> #define pli pair<ll,int> #define pil pair<int,ll> #define pll pair<ll,ll> #define ft front() #define bk b...
21.372093
53
0.54407
edwinsun98
10d476a01a8a6209a3619f169b43de7c8ca88be2
1,467
cpp
C++
BkZOOLib/bkzoo/command/helper/SearchWordHelper.cpp
yoichibeer/BkZOO
3ec97b6d34d0815063ca9d829e452771327101ff
[ "MIT" ]
null
null
null
BkZOOLib/bkzoo/command/helper/SearchWordHelper.cpp
yoichibeer/BkZOO
3ec97b6d34d0815063ca9d829e452771327101ff
[ "MIT" ]
null
null
null
BkZOOLib/bkzoo/command/helper/SearchWordHelper.cpp
yoichibeer/BkZOO
3ec97b6d34d0815063ca9d829e452771327101ff
[ "MIT" ]
null
null
null
/* * BkZOO! * * Copyright 2011-2017 yoichibeer. * Released under the MIT license. */ #include "SearchWordHelper.h" #include "bkzoo_string.h" #include <sstream> #include <regex> #include "for_debug/detect_memory_leak.h" namespace bkzoo { namespace command { namespace helper { ...
24.45
122
0.457396
yoichibeer
10d802db84b6063db93660db9a1e8cf62662a12f
7,931
cpp
C++
SigkSens/src/sensors/ads1115/ads1115.cpp
ba58smith/SigkSens
4105f5ff4e26b3ccd426e7d236a1c3b50318c265
[ "Apache-2.0" ]
42
2018-01-20T21:48:17.000Z
2021-11-23T22:59:48.000Z
SigkSens/src/sensors/ads1115/ads1115.cpp
ba58smith/SigkSens
4105f5ff4e26b3ccd426e7d236a1c3b50318c265
[ "Apache-2.0" ]
58
2018-02-18T19:02:47.000Z
2021-05-12T12:20:43.000Z
SigkSens/src/sensors/ads1115/ads1115.cpp
ba58smith/SigkSens
4105f5ff4e26b3ccd426e7d236a1c3b50318c265
[ "Apache-2.0" ]
13
2018-01-21T20:52:04.000Z
2021-02-20T21:54:06.000Z
#include <ReactESP.h> #include <Adafruit_ADS1015.h> #include "../../../config.h" #include "ads1115.h" #define SMOOTHING_GAIN 0.2 Adafruit_ADS1115 ads; ADSSensorInfo::ADSSensorInfo(String addr) { strcpy(address, addr.c_str()); signalKPath[0] = ""; signalKPath[1] = ""; signalKPath[2] = ""; signalKPath[3] =...
31.101961
119
0.581137
ba58smith