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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fae8b2b58a2c05196fa9ba165c49b97727ac87b6 | 2,443 | cpp | C++ | WinFelix/VideoSink.cpp | 42Bastian/Felix | 3c0b31a245a7c73bae97ad39a378edcdde1e386d | [
"MIT"
] | 19 | 2021-10-31T20:57:14.000Z | 2022-03-22T11:48:56.000Z | WinFelix/VideoSink.cpp | 42Bastian/Felix | 3c0b31a245a7c73bae97ad39a378edcdde1e386d | [
"MIT"
] | 99 | 2021-10-29T20:31:09.000Z | 2022-02-09T12:24:03.000Z | WinFelix/VideoSink.cpp | 42Bastian/Felix | 3c0b31a245a7c73bae97ad39a378edcdde1e386d | [
"MIT"
] | 3 | 2021-11-05T15:14:41.000Z | 2021-12-11T14:16:11.000Z | #include "pch.hpp"
#include "VideoSink.hpp"
#include "ScreenRenderingBuffer.hpp"
void VideoSink::newFrame( uint64_t tick, uint8_t hbackup )
{
mFrameTicks = tick - mBeginTick;
mBeginTick = tick;
if ( mActiveFrame )
{
std::scoped_lock<std::mutex> lock( mQueueMutex );
if ( mFinishedFrames.size(... | 22.209091 | 123 | 0.567335 | 42Bastian |
faeadb77fe1738c2f7ee331fb4d58e3afdbbeac5 | 41,438 | cpp | C++ | Sources/Extras/CoreMediaIO/DeviceAbstractionLayer/Devices/Sample/Assistant/Client/CMIO_DPA_Sample_ClientExtras.cpp | nnanhthu/QuickomVC | 6d4641336dd5d515238c94feb8f6a025fc8d181b | [
"MIT"
] | 170 | 2018-11-28T10:20:54.000Z | 2022-03-29T01:54:43.000Z | Sources/Extras/CoreMediaIO/DeviceAbstractionLayer/Devices/Sample/Assistant/Client/CMIO_DPA_Sample_ClientExtras.cpp | nnanhthu/QuickcomVirtualCamera | 4eba93196549a9ad8ee63fb5a741586098e9ca5b | [
"MIT"
] | 19 | 2018-12-03T15:06:54.000Z | 2022-02-11T00:02:59.000Z | Sources/Extras/CoreMediaIO/DeviceAbstractionLayer/Devices/Sample/Assistant/Client/CMIO_DPA_Sample_ClientExtras.cpp | nnanhthu/QuickcomVirtualCamera | 4eba93196549a9ad8ee63fb5a741586098e9ca5b | [
"MIT"
] | 25 | 2018-11-29T02:15:09.000Z | 2021-12-28T20:56:35.000Z | /*
File: CMIO_DPA_Sample_ClientExtras.cpp
Abstract: Extra utility functions used by clients of the SampleAssistant.
Version: 1.2
*/
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------... | 75.616788 | 271 | 0.496597 | nnanhthu |
faece0d70caa7594560ef8d1a2acf2c0bcadcd6a | 4,923 | cpp | C++ | hard/problem_solving/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | hard/problem_solving/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | hard/problem_solving/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// edge
struct E {
int from;
int to;
int cap;
int rev;
};
struct MaxFlow {
vector<vector<int>> adj; // node id -> adjacent edge id
int e_id = 0; // edge id
vector<E> es; // edges
int source; // source nod... | 29.836364 | 80 | 0.436319 | exbibyte |
faee2918d182b59612ff75ed161ac484036d64b4 | 1,119 | hpp | C++ | Siv3D/include/Siv3D/Asset.hpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/include/Siv3D/Asset.hpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 32 | 2021-10-09T10:04:11.000Z | 2022-02-25T06:10:13.000Z | Siv3D/include/Siv3D/Asset.hpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Common.hpp"
# include... | 16.455882 | 54 | 0.605004 | tas9n |
faf4006c03e1abd441ecc74af2acafaa84da0345 | 750 | hpp | C++ | src/simulation/craftstate.hpp | kghose/groho | 7f1eefe3f1c691464bc84d12c7759ac4a16c05ca | [
"MIT"
] | 11 | 2018-05-21T06:45:34.000Z | 2020-09-14T12:43:34.000Z | src/simulation/craftstate.hpp | kghose/groho | 7f1eefe3f1c691464bc84d12c7759ac4a16c05ca | [
"MIT"
] | 40 | 2017-11-14T02:03:51.000Z | 2020-07-17T00:35:33.000Z | src/simulation/craftstate.hpp | kghose/groho | 7f1eefe3f1c691464bc84d12c7759ac4a16c05ca | [
"MIT"
] | 2 | 2019-10-24T17:45:48.000Z | 2021-10-11T18:08:02.000Z | /*
This file is part of Groho, a simulator for inter-planetary travel and warfare.
Copyright (c) 2020 by Kaushik Ghose. Some rights reserved, see LICENSE
*/
#pragma once
#include <unordered_map>
#include "naifbody.hpp"
#include "v3d.hpp"
namespace groho {
class CraftState {
public:
CraftState() {}
CraftSta... | 20.27027 | 79 | 0.638667 | kghose |
faf70d67513ff62d50eb3da9bd02881595c54801 | 3,145 | cpp | C++ | src/pwmfan.cpp | lbussy/bee-snuggler | b7f59b0c5f5c4e69c90e37512b6250fe5965e706 | [
"MIT"
] | null | null | null | src/pwmfan.cpp | lbussy/bee-snuggler | b7f59b0c5f5c4e69c90e37512b6250fe5965e706 | [
"MIT"
] | null | null | null | src/pwmfan.cpp | lbussy/bee-snuggler | b7f59b0c5f5c4e69c90e37512b6250fe5965e706 | [
"MIT"
] | null | null | null | /* Copyright (C) 2021 Lee C. Bussy (@LBussy)
This file is part of Lee Bussy's Bee Snuggler (bee-snuggler).
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 l... | 27.112069 | 91 | 0.677266 | lbussy |
fafe94503e0dc807367dc63605e6d4771aa2b1a5 | 97 | cpp | C++ | Snakeware/features/ragebot/aimbot/ragebot-rec0de.cpp | d3dx9tex/InsightCSGO | 6c218e243e165ec2d171db8bf5f006f00c4a95c8 | [
"Apache-2.0"
] | null | null | null | Snakeware/features/ragebot/aimbot/ragebot-rec0de.cpp | d3dx9tex/InsightCSGO | 6c218e243e165ec2d171db8bf5f006f00c4a95c8 | [
"Apache-2.0"
] | null | null | null | Snakeware/features/ragebot/aimbot/ragebot-rec0de.cpp | d3dx9tex/InsightCSGO | 6c218e243e165ec2d171db8bf5f006f00c4a95c8 | [
"Apache-2.0"
] | 2 | 2021-06-29T14:28:21.000Z | 2022-01-31T16:45:42.000Z | #include "ragebot-rec0de.h"
#include "../../../options.hpp"
#include "../../../helpers/math.hpp"
| 24.25 | 36 | 0.608247 | d3dx9tex |
4f007b59fc765a2ef7f018698131067e39db4eea | 939 | cpp | C++ | dfs/floodFill.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | 20 | 2022-01-04T19:36:14.000Z | 2022-03-21T15:35:09.000Z | dfs/floodFill.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | null | null | null | dfs/floodFill.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | null | null | null | // Leetcode - Floodfill
void dfs(vector<vector<int>> &image, int i, int j, int current, int row, int column, int nc)
{
if (i < 0 || i >= row || j < 0 || j >= column || image[i][j] != current)
{
return;
}
if (image[i][j] == current)
{
image[i][j] = nc;
}
dfs(image, i, j + 1,... | 25.378378 | 92 | 0.483493 | Gooner1886 |
4f0614587e431b8b5007d599a63b1acff3771349 | 118 | cpp | C++ | bronze/5/24218.cpp | darkapplepower/baekjoon | 4148e8e205f33c07570e52fef123f9a73014fbdb | [
"WTFPL"
] | 1 | 2022-03-06T03:51:06.000Z | 2022-03-06T03:51:06.000Z | bronze/5/24218.cpp | darkapplepower/baekjoon | 4148e8e205f33c07570e52fef123f9a73014fbdb | [
"WTFPL"
] | null | null | null | bronze/5/24218.cpp | darkapplepower/baekjoon | 4148e8e205f33c07570e52fef123f9a73014fbdb | [
"WTFPL"
] | null | null | null | #include <iostream>
int main(){
std::cout<<"A0000000000000000000000000000000\n70000000000000000000000000000000";
} | 29.5 | 84 | 0.79661 | darkapplepower |
4f0bed850cdcd923d973c1d5c21a6cd4ad3ef239 | 5,085 | hpp | C++ | ReactNativeFrontend/ios/Pods/boost/boost/log/detail/sink_init_helpers.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/log/detail/sink_init_helpers.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/log/detail/sink_init_helpers.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | /*
* Copyright Andrey Semashev 2007 - 2015.
* 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)
*/
/*!
* \file sink_init_helpers.hpp
* \author Andrey Semashev
* \date 14.03.2009
*
* \b... | 30.63253 | 115 | 0.756342 | Harshitha91 |
4f0d4e462599efae8d2e198788f8c9fc6c457f6a | 2,019 | cpp | C++ | labs/lab4/solution/regression.test.cpp | battibass/pf2021 | 7d370d26a53588c3168b57614e34e0dda70f5bbf | [
"CC-BY-4.0"
] | 7 | 2021-10-20T08:43:46.000Z | 2022-03-26T14:18:19.000Z | labs/lab4/solution/regression.test.cpp | battibass/pf2021 | 7d370d26a53588c3168b57614e34e0dda70f5bbf | [
"CC-BY-4.0"
] | null | null | null | labs/lab4/solution/regression.test.cpp | battibass/pf2021 | 7d370d26a53588c3168b57614e34e0dda70f5bbf | [
"CC-BY-4.0"
] | 10 | 2021-10-01T13:49:56.000Z | 2022-03-29T10:28:06.000Z | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "regression.hpp"
#include "doctest.h"
TEST_CASE("Testing Point operators") {
Point p{0., 1.};
Point p_same = p;
Point p_diff{1., 1.};
SUBCASE("Operator == on identical points") { CHECK(p == p_same); }
SUBCASE("Operator == on different points") { CHECK_FA... | 24.035714 | 74 | 0.580981 | battibass |
4f1455760ec86b77092367ad530239ccd72f75e9 | 6,029 | cpp | C++ | gameplay/src/lua/lua_AbsoluteLayout.cpp | liuenbao/NBRenderSystem | 27170a7201382f38328fa374cc944ef797821809 | [
"Apache-2.0",
"Unlicense"
] | null | null | null | gameplay/src/lua/lua_AbsoluteLayout.cpp | liuenbao/NBRenderSystem | 27170a7201382f38328fa374cc944ef797821809 | [
"Apache-2.0",
"Unlicense"
] | null | null | null | gameplay/src/lua/lua_AbsoluteLayout.cpp | liuenbao/NBRenderSystem | 27170a7201382f38328fa374cc944ef797821809 | [
"Apache-2.0",
"Unlicense"
] | null | null | null | #ifdef MODULE_SCRIPT_ENABLED
// Autogenerated by gameplay-luagen
#include "Base.h"
#include "ScriptController.h"
#include "lua_AbsoluteLayout.h"
#include "AbsoluteLayout.h"
#include "Base.h"
#include "Container.h"
#include "Control.h"
#include "Game.h"
#include "Layout.h"
#include "Ref.h"
namespace gameplay
{
void l... | 27.912037 | 138 | 0.571239 | liuenbao |
4f1483eecf9e8ee178f97c43ae9ebb92521f9ec6 | 38 | hpp | C++ | addons/Player/XEH_PREP.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/Player/XEH_PREP.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/Player/XEH_PREP.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | PREP(ConfigPlayer);
PREP(setupPlayer); | 19 | 19 | 0.815789 | Task-Force-Dagger |
4f17ea30ce46cef4859b141d0290e23353ba2145 | 2,185 | cpp | C++ | BookCode/chapters/09lazzariniBOOKexamples/ifd.cpp | mike-normal13/Audio_programming_book_code | 3d318787d379f232a4edc113b6f7190201084674 | [
"MIT"
] | 9 | 2018-10-03T19:57:47.000Z | 2022-01-08T14:37:24.000Z | BookCode/chapters/09lazzariniBOOKexamples/ifd.cpp | mike-normal13/Audio_programming_book_code | 3d318787d379f232a4edc113b6f7190201084674 | [
"MIT"
] | null | null | null | BookCode/chapters/09lazzariniBOOKexamples/ifd.cpp | mike-normal13/Audio_programming_book_code | 3d318787d379f232a4edc113b6f7190201084674 | [
"MIT"
] | 8 | 2017-11-20T07:52:01.000Z | 2022-03-29T02:59:10.000Z | /////////////////////////////////////////////
// Spectral processing examples
//
// (c) V Lazzarini, 2005
//////////////////////////////////////////////
//////////////////////////////////////////////
// ifd function
//////////////////////////////////////////////
#include "fourier.h"
#include "spec.h"
in... | 26.011905 | 73 | 0.523112 | mike-normal13 |
4f186fbe17534c265ff55cda47d0a82e2ee24f86 | 3,394 | cpp | C++ | LeetCode/Main.cpp | xautshuanglong/AlgorithmPractice | 22adf0ac95b22bb8b3ad89df3d9758fd03db2302 | [
"MIT"
] | null | null | null | LeetCode/Main.cpp | xautshuanglong/AlgorithmPractice | 22adf0ac95b22bb8b3ad89df3d9758fd03db2302 | [
"MIT"
] | null | null | null | LeetCode/Main.cpp | xautshuanglong/AlgorithmPractice | 22adf0ac95b22bb8b3ad89df3d9758fd03db2302 | [
"MIT"
] | null | null | null | // LeetCode.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "SwordOffer_010_I_Fibonacci.h"
#include "SwordOffer_010_II_FrogJumpStairs.h"
#include "SwordOffer_042_MaxSubArray.h"
#include "LC0004_MedianOfTwoSortedArrays.h"
#include "LC0005_LongestPalindromicSubstring.h"... | 42.962025 | 135 | 0.714496 | xautshuanglong |
4f1ad04004a09acceaf320a3ec9b6dfdf526de35 | 3,022 | cc | C++ | src/SIPSTERAudioDevInfo.cc | MattWei/sipster | ef2382728fdc3a4c22930517f6ea82dea7960182 | [
"MIT"
] | null | null | null | src/SIPSTERAudioDevInfo.cc | MattWei/sipster | ef2382728fdc3a4c22930517f6ea82dea7960182 | [
"MIT"
] | null | null | null | src/SIPSTERAudioDevInfo.cc | MattWei/sipster | ef2382728fdc3a4c22930517f6ea82dea7960182 | [
"MIT"
] | 1 | 2020-03-04T22:20:56.000Z | 2020-03-04T22:20:56.000Z | #include "SIPSTERAudioDevInfo.h"
#include "common.h"
#include <iostream>
Nan::Persistent<FunctionTemplate> SIPSTERAudioDevInfo_constructor;
SIPSTERAudioDevInfo::SIPSTERAudioDevInfo() : audioDev(NULL) {}
SIPSTERAudioDevInfo::~SIPSTERAudioDevInfo() {
}
NAN_METHOD(SIPSTERAudioDevInfo::New) {
Nan::HandleScope scope;
... | 28.242991 | 89 | 0.67505 | MattWei |
b7b98d121dd928e12e5ba8fc4d8a3490f89c67bd | 671 | hpp | C++ | PD_Filter/Fixed_PD/v_tests.hpp | TheHolyJoker/Comparing-Filters | 2c65a4bb2b788b5f0ecbaea33962e26c0c0b0301 | [
"Apache-2.0"
] | 7 | 2021-01-04T12:26:45.000Z | 2022-02-07T18:41:04.000Z | PD_Filter/Fixed_PD/v_tests.hpp | TheHolyJoker/Comparing_Filters | 2e8ac44163847a09beaa72e4f399291907a96891 | [
"Apache-2.0"
] | 1 | 2021-03-15T03:21:30.000Z | 2021-09-08T15:06:22.000Z | PD_Filter/Fixed_PD/v_tests.hpp | TheHolyJoker/Comparing-Filters | 2c65a4bb2b788b5f0ecbaea33962e26c0c0b0301 | [
"Apache-2.0"
] | 1 | 2021-07-06T08:38:42.000Z | 2021-07-06T08:38:42.000Z | #ifndef FILTERS_Wrap_Fixed_pd_TESTS_HPP
#define FILTERS_Wrap_Fixed_pd_TESTS_HPP
#include "Wrap_Fixed_pd.hpp"
namespace fpd_tests {
// using namespace Wrap_Fixed_pd;
auto insert_find_single(int64_t quot, uint8_t rem, Wrap_Fixed_pd::packed_fpd *pd) -> bool;
auto insert_find_single_with_capacity(i... | 24.851852 | 108 | 0.734724 | TheHolyJoker |
b7b9a79b937e30bc439fd5c93124d8047b90716c | 454 | cpp | C++ | unit_tests/utf_init.cpp | BurningEnlightenment/utf8cpp | 7923e3721be401ead9fdc84dbd6c7367e49a3ab1 | [
"BSL-1.0"
] | 2 | 2015-08-07T09:01:09.000Z | 2016-10-27T05:32:46.000Z | unit_tests/utf_init.cpp | BurningEnlightenment/UTF8XX | 7923e3721be401ead9fdc84dbd6c7367e49a3ab1 | [
"BSL-1.0"
] | null | null | null | unit_tests/utf_init.cpp | BurningEnlightenment/UTF8XX | 7923e3721be401ead9fdc84dbd6c7367e49a3ab1 | [
"BSL-1.0"
] | null | null | null | // Copyright 2015 Henrik Steffen Gaßmann
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file ../LICENSE or http://www.boost.org/LICENSE_1_0.txt)
////////////////////////////////////////////////////////////////////////////////
#include <boost/test/unit_test.hpp>
using namespace b... | 30.266667 | 80 | 0.599119 | BurningEnlightenment |
b7bc625cc64a47d6dd23d23334deea47f34d49c3 | 503 | hpp | C++ | shared/sdk/TEntityRef.hpp | praydog/GlacierGenny | 158b4f3baa6ae513e8cc1c824afba856887b7c58 | [
"MIT"
] | 6 | 2021-02-14T05:52:03.000Z | 2021-12-22T18:08:10.000Z | shared/sdk/TEntityRef.hpp | praydog/GlacierGenny | 158b4f3baa6ae513e8cc1c824afba856887b7c58 | [
"MIT"
] | null | null | null | shared/sdk/TEntityRef.hpp | praydog/GlacierGenny | 158b4f3baa6ae513e8cc1c824afba856887b7c58 | [
"MIT"
] | 2 | 2021-05-06T00:32:27.000Z | 2021-10-07T01:13:12.000Z | #pragma once
namespace sdk {
template <typename T> class TEntityRef {
public:
struct sdk::ZEntityImpl_Inner* base; // subtract by 8 to get the top level class object...?
T* ptr; // base + offset to inheritance base (e.g. class Foo : public T, where the base of T is what ptr is pointing to)
template <typen... | 27.944444 | 124 | 0.61829 | praydog |
b7bd3d05f331efbd9f9700777357f041460e76de | 3,405 | cpp | C++ | libgpos/server/src/unittest/gpos/sync/CAutoSpinlockTest.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 28 | 2016-01-29T08:27:42.000Z | 2021-03-11T01:42:33.000Z | libgpos/server/src/unittest/gpos/sync/CAutoSpinlockTest.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 22 | 2016-02-01T16:31:50.000Z | 2017-07-13T13:25:53.000Z | libgpos/server/src/unittest/gpos/sync/CAutoSpinlockTest.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 23 | 2016-01-28T03:19:24.000Z | 2021-05-28T07:32:51.000Z | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2008 Greenplum, Inc.
//
// @filename:
// CAutoSpinlockTest.cpp
//
// @doc:
// Tests for CAutoSpinlock
//---------------------------------------------------------------------------
#include "gpos/base.... | 20.389222 | 77 | 0.52511 | khannaekta |
b7be969c3d7f0b1e30fdda84e5c0653c31d4a219 | 2,323 | cpp | C++ | KamelI2C.cpp | carlobrok/I2C_Pi | fbc1c483dcf883f9e9038a016f1eb36601a12a23 | [
"MIT"
] | 2 | 2020-04-30T13:18:45.000Z | 2021-06-06T19:13:13.000Z | KamelI2C.cpp | carlobrok/I2C_Pi | fbc1c483dcf883f9e9038a016f1eb36601a12a23 | [
"MIT"
] | null | null | null | KamelI2C.cpp | carlobrok/I2C_Pi | fbc1c483dcf883f9e9038a016f1eb36601a12a23 | [
"MIT"
] | null | null | null | #include "KamelI2C.h"
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <cstdint>
// returns a file descriptor of the opened I2C device
int kamelI2Copen(int devId) {
const char *device ;
int fd;
//device = "/dev/i2c-0"; // Older Raspberry Pi models
device = "/dev/i2c-1"; // Raspberry ... | 30.565789 | 119 | 0.721911 | carlobrok |
b7c14e3f75fad5780350eb8c642caf3afa59f913 | 95 | cpp | C++ | CPlusPlus-Class/04 - Classroom - Class - static/Monster.cpp | StudioAlbert/SAE921-GRP4100-CPlusPlus-Class | f90b82ab625d5d59201be5240fd02141badeae76 | [
"MIT"
] | null | null | null | CPlusPlus-Class/04 - Classroom - Class - static/Monster.cpp | StudioAlbert/SAE921-GRP4100-CPlusPlus-Class | f90b82ab625d5d59201be5240fd02141badeae76 | [
"MIT"
] | null | null | null | CPlusPlus-Class/04 - Classroom - Class - static/Monster.cpp | StudioAlbert/SAE921-GRP4100-CPlusPlus-Class | f90b82ab625d5d59201be5240fd02141badeae76 | [
"MIT"
] | null | null | null | #include "Monster.h"
int Monster::MonsterCount = 0;
Monster::Monster()
{
MonsterCount++;
}
| 9.5 | 30 | 0.673684 | StudioAlbert |
b7c56e2ea8d1b18f224a84fbbcea47fdcd57482f | 243 | hpp | C++ | cpuemu/common/bus/bus_mode.hpp | deqyra/cpuemu | b30d39e01ef03a165169d53397d117a2550c650e | [
"MIT"
] | 2 | 2021-04-23T13:40:45.000Z | 2022-03-28T13:59:30.000Z | cpuemu/common/bus/bus_mode.hpp | deqyra/cpuemu | b30d39e01ef03a165169d53397d117a2550c650e | [
"MIT"
] | null | null | null | cpuemu/common/bus/bus_mode.hpp | deqyra/cpuemu | b30d39e01ef03a165169d53397d117a2550c650e | [
"MIT"
] | null | null | null | #ifndef CPUEMU__COMMON__BUS__BUS_MODE_HPP
#define CPUEMU__COMMON__BUS__BUS_MODE_HPP
namespace emu
{
enum class BusMode
{
In = 0x1,
Out = 0x2,
InOut = In|Out
};
}//namespace cpuemu
#endif//CPUEMU__COMMON__BUS__BUS_MODE_HPP | 14.294118 | 41 | 0.740741 | deqyra |
b7c8727f511689f7707ee0d789e981b8a8c198e3 | 36,141 | cpp | C++ | SoftRender/Data_structure.cpp | LEEZHEHUI/QT-SoftRender | 4321356bc51c564ac911e32f4927ce7f3fe5b7ae | [
"MIT"
] | 1 | 2019-05-05T15:44:56.000Z | 2019-05-05T15:44:56.000Z | SoftRender/Data_structure.cpp | LEEZHEHUI/QT-SoftRender | 4321356bc51c564ac911e32f4927ce7f3fe5b7ae | [
"MIT"
] | null | null | null | SoftRender/Data_structure.cpp | LEEZHEHUI/QT-SoftRender | 4321356bc51c564ac911e32f4927ce7f3fe5b7ae | [
"MIT"
] | null | null | null | #include "Data_structure.h"
#include "CPARSERV1.h"
namespace zyk
{
FILE* fp_error=NULL;
void Camera::init(float width,float height)
{
aspect_ratio=width/height;
viewport_width=width;
viewport_height=height;
fov=45.0f;
near_clip_z=0.1f;
far_clip_z=1000.0f;
view_dist=near_clip_z;
backup_target=target=... | 28.345882 | 125 | 0.622064 | LEEZHEHUI |
b7cd440590634bde28a72b54a2a07c17c93e10ce | 23,376 | cpp | C++ | src/bounce/dynamics/world.cpp | irlanrobson/bounce | 1cf7f40fff528bff8514a50e786ea58e86d53a54 | [
"Zlib"
] | 368 | 2016-12-18T21:19:18.000Z | 2022-03-10T19:13:04.000Z | src/bounce/dynamics/world.cpp | irlanrobson/bounce | 1cf7f40fff528bff8514a50e786ea58e86d53a54 | [
"Zlib"
] | 104 | 2016-12-19T20:44:53.000Z | 2022-03-12T21:31:14.000Z | src/bounce/dynamics/world.cpp | irlanrobson/bounce | 1cf7f40fff528bff8514a50e786ea58e86d53a54 | [
"Zlib"
] | 34 | 2017-02-12T23:50:56.000Z | 2021-12-17T04:33:41.000Z | /*
* Copyright (c) 2016-2019 Irlan Robson
*
* 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 any purpose,
* including commercia... | 23.376 | 125 | 0.682324 | irlanrobson |
b7cd52ec9daa8eefbff58b0fa8c64d6e19eaee56 | 2,664 | cpp | C++ | src/ImageByteMap.cpp | ExpLife0011/gtirb | e9b90133295b15cfae8960d57dafda548913e8f9 | [
"MIT"
] | 1 | 2019-04-09T11:06:34.000Z | 2019-04-09T11:06:34.000Z | src/ImageByteMap.cpp | ExpLife0011/gtirb | e9b90133295b15cfae8960d57dafda548913e8f9 | [
"MIT"
] | null | null | null | src/ImageByteMap.cpp | ExpLife0011/gtirb | e9b90133295b15cfae8960d57dafda548913e8f9 | [
"MIT"
] | null | null | null | //===- ImageByteMap.cpp -----------------------------------------*- C++ -*-===//
//
// Copyright (C) 2018 GrammaTech, Inc.
//
// This code is licensed under the MIT license. See the LICENSE file in the
// project root for license terms.
//
// This project is sponsored by the Office of Naval Research, One Liberty
//... | 33.3 | 80 | 0.652402 | ExpLife0011 |
b7d164bcd0cd5f63fb033ee384eb297c9a9b7a9b | 8,585 | cpp | C++ | Test/Siv3DTest_Timer.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Test/Siv3DTest_Timer.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | null | null | null | Test/Siv3DTest_Timer.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include "Siv3DTest.hpp"
TEST_CASE("Timer 1"... | 25.780781 | 82 | 0.588468 | tas9n |
b7d6890f8142267c94c6b2d6d32f866de69134fb | 836 | cpp | C++ | TowerDefense/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/E_GlassMaskTypes__pf1973725292.cpp | Samuel-Rubin621/CS498 | ab045b5bd888e0a0a61faccc11ed8f8a56e8219e | [
"CC0-1.0"
] | null | null | null | TowerDefense/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/E_GlassMaskTypes__pf1973725292.cpp | Samuel-Rubin621/CS498 | ab045b5bd888e0a0a61faccc11ed8f8a56e8219e | [
"CC0-1.0"
] | null | null | null | TowerDefense/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/E_GlassMaskTypes__pf1973725292.cpp | Samuel-Rubin621/CS498 | ab045b5bd888e0a0a61faccc11ed8f8a56e8219e | [
"CC0-1.0"
] | null | null | null | #include "NativizedAssets.h"
#include "E_GlassMaskTypes__pf1973725292.h"
FText E__E_GlassMaskTypes__pf__GetUserFriendlyName(int32 InValue)
{
FText Text;
const auto EnumValue = static_cast<E__E_GlassMaskTypes__pf>(InValue);
switch(EnumValue)
{
case E__E_GlassMaskTypes__pf::NewEnumerator0: FTextStringHelper::ReadFr... | 52.25 | 208 | 0.802632 | Samuel-Rubin621 |
b7de615e2a37d7e25e72f89144bed18e073b978a | 1,792 | hpp | C++ | src/sip-0x/TransportLayerTCP.hpp | zanfire/sip-0x | de38b3ff782d2a63b69d7f785e2bd9ce7674abd5 | [
"Apache-2.0"
] | 1 | 2021-06-03T15:56:32.000Z | 2021-06-03T15:56:32.000Z | src/sip-0x/TransportLayerTCP.hpp | zanfire/sip-0x | de38b3ff782d2a63b69d7f785e2bd9ce7674abd5 | [
"Apache-2.0"
] | 1 | 2015-08-05T05:51:49.000Z | 2015-08-05T05:51:49.000Z | src/sip-0x/TransportLayerTCP.hpp | zanfire/sip-0x | de38b3ff782d2a63b69d7f785e2bd9ce7674abd5 | [
"Apache-2.0"
] | null | null | null | #if !defined(SIP0X_LOGIC_TRANSPORTLAYERTCP_HPP__)
#define SIP0X_LOGIC_TRANSPORTLAYERTCP_HPP__
#include "TransportLayer.hpp"
#include "utils/ConnectionManager.hpp"
#include "utils/asio_header.hpp"
#include "utils/ThreadedObject.hpp"
#include "listeners/ConnectionListener.hpp"
#include <string>
#include <memory>
#incl... | 33.185185 | 147 | 0.71317 | zanfire |
b7e0302805c23cc580dfe2ff9f44b55fd5be5a25 | 245 | hpp | C++ | source/ctrl_render.hpp | llGuy/avitool | 7956930e3d377c073bd7da13cdcad700ea237ddb | [
"MIT"
] | 1 | 2021-01-23T15:56:35.000Z | 2021-01-23T15:56:35.000Z | source/ctrl_render.hpp | llGuy/avitool | 7956930e3d377c073bd7da13cdcad700ea237ddb | [
"MIT"
] | null | null | null | source/ctrl_render.hpp | llGuy/avitool | 7956930e3d377c073bd7da13cdcad700ea237ddb | [
"MIT"
] | null | null | null | #pragma once
#include <imgui.h>
namespace ctrl {
void init_controller_display();
void log(const char *str);
void begin_cmd(const char *cmd, bool should_print = 1);
void end_cmd(bool should_print = 1);
void render_and_tick(ImGuiID master);
}
| 17.5 | 55 | 0.75102 | llGuy |
b7e16ad0ade4b5102543a36992a3865836c6fc39 | 852 | cc | C++ | ThirdParty/webrtc/src/net/cert/internal/verify_name_match_unittest.cc | JokeJoe8806/licode-windows | 2bfdaf6e87669df2b9960da50c6800bc3621b80b | [
"MIT"
] | 8 | 2018-12-27T14:57:13.000Z | 2021-04-07T07:03:15.000Z | ThirdParty/webrtc/src/net/cert/internal/verify_name_match_unittest.cc | JokeJoe8806/licode-windows | 2bfdaf6e87669df2b9960da50c6800bc3621b80b | [
"MIT"
] | 1 | 2019-03-13T01:35:03.000Z | 2020-10-08T04:13:04.000Z | ThirdParty/webrtc/src/net/cert/internal/verify_name_match_unittest.cc | JokeJoe8806/licode-windows | 2bfdaf6e87669df2b9960da50c6800bc3621b80b | [
"MIT"
] | 9 | 2018-12-28T11:45:12.000Z | 2021-05-11T02:15:31.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/cert/internal/verify_name_match.h"
#include "net/der/input.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
TEST(VerifyN... | 35.5 | 73 | 0.67723 | JokeJoe8806 |
b7e38fa107662e7eb68d7bcb61f337512b4afeff | 5,329 | cpp | C++ | tests/src/experimental/mt/tests_Channel.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | 1 | 2021-07-16T14:19:50.000Z | 2021-07-16T14:19:50.000Z | tests/src/experimental/mt/tests_Channel.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | 1 | 2018-06-05T11:03:30.000Z | 2018-06-05T11:03:30.000Z | tests/src/experimental/mt/tests_Channel.cpp | tum-ei-rcs/mart-common | 6f8f18ac23401eb294d96db490fbdf78bf9b316c | [
"MIT"
] | null | null | null | #include <mart-common/experimental/mt/Channel.h>
#include <catch2/catch.hpp>
#include <future>
#include <iostream>
#include <mart-common/ranges.h>
#include <string>
#include <thread>
TEST_CASE( "mt_channel_clear_empties_buffer", "[channel]" )
{
mart::experimental::mt::Channel<int> ch;
ch.send( 5 );
ch.send( 10 )... | 26.778894 | 75 | 0.442672 | Mike-Bal |
b7e527dbac0a088334254c3a918de4756b9f51bd | 52,215 | cc | C++ | xic/src/gtkxic/gtkrule.cc | bernardventer/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 3 | 2020-01-26T14:18:52.000Z | 2020-12-09T20:07:22.000Z | xic/src/gtkxic/gtkrule.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | null | null | null | xic/src/gtkxic/gtkrule.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 2 | 2020-01-26T14:19:02.000Z | 2021-08-14T16:33:28.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 32.512453 | 79 | 0.52167 | bernardventer |
b7e6d05afb3c4a5423c37f01d89238e2047df926 | 1,557 | cpp | C++ | sim/simulation_test.cpp | juugcatm/kalman_filter | c879ca4693005cd9d53fb7866b34396daa77f661 | [
"MIT"
] | null | null | null | sim/simulation_test.cpp | juugcatm/kalman_filter | c879ca4693005cd9d53fb7866b34396daa77f661 | [
"MIT"
] | null | null | null | sim/simulation_test.cpp | juugcatm/kalman_filter | c879ca4693005cd9d53fb7866b34396daa77f661 | [
"MIT"
] | null | null | null | #include "sim/simulation.h"
#include "glog/logging.h"
#include "gtest/gtest.h"
#include "sim/event.h"
#include "sim/time.h"
namespace kalman {
class TestScenario : public Scenario<TestScenario> {
public:
void increment() { counter_++; }
const int& counter() const { return counter_ }
private:
... | 26.844828 | 76 | 0.662171 | juugcatm |
b7e6e9083232636bbf8f5aad08d68a880c75efed | 2,266 | cpp | C++ | Development/Core/ydwar3/warcraft3/jass/global_variable.cpp | yefq/YDWE | cb0fd16a931a38d3faa8fe55da1c31b90f1a92a7 | [
"Apache-2.0"
] | 1 | 2019-06-25T14:05:28.000Z | 2019-06-25T14:05:28.000Z | Development/Core/ydwar3/warcraft3/jass/global_variable.cpp | yefq/YDWE | cb0fd16a931a38d3faa8fe55da1c31b90f1a92a7 | [
"Apache-2.0"
] | null | null | null | Development/Core/ydwar3/warcraft3/jass/global_variable.cpp | yefq/YDWE | cb0fd16a931a38d3faa8fe55da1c31b90f1a92a7 | [
"Apache-2.0"
] | null | null | null | #include <warcraft3/jass/global_variable.h>
#include <cassert>
namespace warcraft3::jass {
global_variable::global_variable(const char* name)
: ptr_(get_jass_vm()->global_table->find(name))
{ }
global_variable::global_variable(hashtable::variable_node* ptr)
: ptr_(ptr)
{ }
hashtable::variable_... | 20.053097 | 77 | 0.663725 | yefq |
b7f176ffee0b567d797a4cfdde0461f2d320da50 | 13,736 | cpp | C++ | ext/stub/java/lang/Math-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/java/lang/Math-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/java/lang/Math-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <java/lang/Math.hpp>
extern void unimplemented_(const char16_t* name);
java::lang::Math::Math(const ::default_init_tag&)
: super(*static_cast< ::default_init_tag* >(0))
{
clinit();
}
bool& java::lang::Ma... | 23.560892 | 97 | 0.640434 | pebble2015 |
b7f21721a08478d91e068e462d14a050fd192f58 | 412 | cpp | C++ | GPUPerfStudio/Server/Common/StreamLog.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | 1 | 2017-03-25T02:09:15.000Z | 2017-03-25T02:09:15.000Z | GPUPerfStudio/Server/Common/StreamLog.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | null | null | null | GPUPerfStudio/Server/Common/StreamLog.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | 3 | 2017-03-15T03:35:13.000Z | 2022-02-23T06:29:02.000Z | //==============================================================================
// Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief TODO add documentation
//==============================================================================
#in... | 34.333333 | 80 | 0.43932 | davidlee80 |
b7f5acbc4d71e5055f5cabde5ac5602df9bacbfc | 3,720 | hh | C++ | src/nbt/utils.hh | kofuk/pixel-terrain | f39e2a0120aab5a11311f57cfd1ab46efa65fddd | [
"MIT"
] | 2 | 2020-10-16T08:46:45.000Z | 2020-11-04T02:19:19.000Z | src/nbt/utils.hh | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | src/nbt/utils.hh | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#ifndef UTILS_HH
#define UTILS_HH
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstring>
#include <filesystem>
#include <memory>
#include <utility>
#include <vector>
namespace pixel_terrain::nbt::utils {
static inline void swap_chars(std::uint8_t *a, std::uint... | 33.214286 | 80 | 0.619355 | kofuk |
b7fa4fc786f11bc1f9de5f61b6129124797dace2 | 2,141 | cpp | C++ | transport/src/congestion.cpp | pretty-wise/rush | 38239bf724440cd045219b2f3b7d164430c22ab0 | [
"BSD-2-Clause"
] | null | null | null | transport/src/congestion.cpp | pretty-wise/rush | 38239bf724440cd045219b2f3b7d164430c22ab0 | [
"BSD-2-Clause"
] | null | null | null | transport/src/congestion.cpp | pretty-wise/rush | 38239bf724440cd045219b2f3b7d164430c22ab0 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copywrite 2014-2015 Krzysztof Stasik. All rights reserved.
*/
#include "congestion.h"
#include "congestion_buckets.h"
namespace Rush {
CongestionInfo::CongestionInfo(u16 _m_mtu, rush_time_t _m_min_interval,
rush_time_t _m_max_interval,
rush_time_t _... | 32.439394 | 79 | 0.714152 | pretty-wise |
b7fa7fafc2c49cdef53777a50d097bb5fffd0d19 | 1,099 | cpp | C++ | docs/csBase/Coding/Linux_OS_MsgQ_Rcv.cpp | shangguankui/blog | 314875336737fe545d51d2ac7b421e17215675e3 | [
"MIT"
] | null | null | null | docs/csBase/Coding/Linux_OS_MsgQ_Rcv.cpp | shangguankui/blog | 314875336737fe545d51d2ac7b421e17215675e3 | [
"MIT"
] | 2 | 2021-07-08T19:09:39.000Z | 2021-07-10T20:18:58.000Z | docs/csBase/Coding/Linux_OS_MsgQ_Rcv.cpp | shangguankui/blog | 314875336737fe545d51d2ac7b421e17215675e3 | [
"MIT"
] | 3 | 2019-08-29T06:08:42.000Z | 2021-07-07T20:00:34.000Z | /*
* @Author: xuezaigds@gmail.com
* @Last Modified time: 2016-08-31 21:35:25
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/msg.h>
struct msg_st
{
long int msg_type;
char text[BUFSIZ];
};
int main()
{
int running = 1;
int msgid = -1;
struct msg_s... | 20.735849 | 69 | 0.549591 | shangguankui |
b7fc7022837b6e93bf201bd8f7a5e995da1f4c2a | 270 | hpp | C++ | TurbulentArena/AIObserver.hpp | doodlemeat/Turbulent-Arena | 9030f291693e670f7751e23538e649cc24dc929f | [
"MIT"
] | 2 | 2017-02-03T04:30:29.000Z | 2017-03-27T19:33:38.000Z | TurbulentArena/AIObserver.hpp | doodlemeat/Turbulent-Arena | 9030f291693e670f7751e23538e649cc24dc929f | [
"MIT"
] | null | null | null | TurbulentArena/AIObserver.hpp | doodlemeat/Turbulent-Arena | 9030f291693e670f7751e23538e649cc24dc929f | [
"MIT"
] | null | null | null | //AIObserver.hpp
/*The class who will listen to changes from subject will inherit from this class*/
#pragma once
namespace bjoernligan
{
namespace ai
{
class AIObserver
{
public:
~AIObserver() {};
virtual void OnNotify(/*add parameters*/) = 0;
};
}
} | 15 | 82 | 0.677778 | doodlemeat |
b7feb9ab8a0ef0d984113f03380702aad2acae82 | 825 | cpp | C++ | Remove Duplicates characters.cpp | Apoorv0001/HackerBlogs-Practice-Questions | 52c95f9d0ade3f38596821c979604c0aa23c78cb | [
"MIT"
] | null | null | null | Remove Duplicates characters.cpp | Apoorv0001/HackerBlogs-Practice-Questions | 52c95f9d0ade3f38596821c979604c0aa23c78cb | [
"MIT"
] | null | null | null | Remove Duplicates characters.cpp | Apoorv0001/HackerBlogs-Practice-Questions | 52c95f9d0ade3f38596821c979604c0aa23c78cb | [
"MIT"
] | null | null | null | /*
Take as input str, a string. Write a recursive function which returns a new string in which all duplicate consecutive characters are reduced to a single char. E.g. for “hello” return “helo”. Print the value returned.
Input Format
Enter the string
Constraints
None
Output Format
Display the resulting string
Sample... | 17.553191 | 216 | 0.608485 | Apoorv0001 |
b7feffd71ba0b3fc0f10d0edd702ad700b3cb837 | 480 | cpp | C++ | tools/WebcamReportTool/DirectShowUtils.cpp | szlatkow/PowerToys | e62df46c6181551e80b7ce2cf85f03beccbfadf2 | [
"MIT"
] | 76,518 | 2019-05-06T22:50:10.000Z | 2022-03-31T22:20:54.000Z | tools/WebcamReportTool/DirectShowUtils.cpp | Nakatai-0322/PowerToys | 1f64c1cf837ca958ad14dc3eb7887f36220a1ef9 | [
"MIT"
] | 15,530 | 2019-05-07T01:10:24.000Z | 2022-03-31T23:48:46.000Z | tools/WebcamReportTool/DirectShowUtils.cpp | Nakatai-0322/PowerToys | 1f64c1cf837ca958ad14dc3eb7887f36220a1ef9 | [
"MIT"
] | 5,184 | 2019-05-06T23:32:32.000Z | 2022-03-31T15:43:25.000Z | #include "DirectShowUtils.h"
void FreeMediaTypeHelper(AM_MEDIA_TYPE& mt)
{
if (mt.cbFormat != 0)
{
CoTaskMemFree(mt.pbFormat);
mt.cbFormat = 0;
mt.pbFormat = nullptr;
}
if (mt.pUnk != nullptr)
{
mt.pUnk->Release();
mt.pUnk = nullptr;
}
}
void DeleteMedia... | 17.777778 | 51 | 0.58125 | szlatkow |
b7ff1e9a8afc51f91fadf08384898ad74dfef9b3 | 2,918 | cpp | C++ | src/Server/Systems/bombSystem.cpp | semper24/R-Type | b91184d656ffcec39b0a43e7a42c1a1ecd236c9b | [
"MIT"
] | null | null | null | src/Server/Systems/bombSystem.cpp | semper24/R-Type | b91184d656ffcec39b0a43e7a42c1a1ecd236c9b | [
"MIT"
] | null | null | null | src/Server/Systems/bombSystem.cpp | semper24/R-Type | b91184d656ffcec39b0a43e7a42c1a1ecd236c9b | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** B-CPP-501-NAN-5-1-rtype-arthur.bertaud
** File description:
** bombSystem.cpp
*/
#include "bombSystem.hpp"
#include "ECSEngine.hpp"
#include "Bomb.hpp"
#include <iostream>
ECS::bombSystem::bombSystem() : ECS::ASystem()
{
}
void ECS::bombSystem::update(const float dt, ECS::ECSEngine& en... | 36.024691 | 129 | 0.652502 | semper24 |
4d004dda793d5fc0b05ed9123ee14c3f32f1d0e8 | 10,636 | cpp | C++ | source/Analysis/ParallelLoops/Analysers.cpp | czen/open-ops | b1ab8da354c4aecc0fe76a562395f5861bffc207 | [
"BSD-3-Clause"
] | 23 | 2017-08-01T14:29:48.000Z | 2019-10-09T22:27:38.000Z | source/Analysis/ParallelLoops/Analysers.cpp | czen/open-ops | b1ab8da354c4aecc0fe76a562395f5861bffc207 | [
"BSD-3-Clause"
] | 2 | 2017-08-06T08:34:18.000Z | 2017-08-08T16:27:38.000Z | source/Analysis/ParallelLoops/Analysers.cpp | czen/open-ops | b1ab8da354c4aecc0fe76a562395f5861bffc207 | [
"BSD-3-Clause"
] | 2 | 2017-08-08T12:25:06.000Z | 2019-09-16T15:18:18.000Z | #include "Analysers.h"
#include "Shared/Checks.h"
#include "Analysis/ExpressionOrder.h"
#include "Privatization.h"
namespace OPS
{
namespace Analysis
{
namespace ParallelLoops
{
bool contains(const StatementBase& parent, const StatementBase& child)
{
const StatementBase* node = &child;
while(node)
{
if (node->g... | 32.230303 | 142 | 0.742196 | czen |
4d09965c41155afc2b329be1ad0f7c1c190ae106 | 1,207 | cpp | C++ | leetcode/437.path-sum-iii.cpp | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | leetcode/437.path-sum-iii.cpp | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | leetcode/437.path-sum-iii.cpp | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=437 lang=cpp
*
* [437] Path Sum III
*/
// @lc code=start
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr)... | 25.680851 | 97 | 0.537697 | math715 |
4d1271d4c5a706f9ddd014efa531425eab34e4c6 | 2,337 | cpp | C++ | Game.cpp | crkian/SDL-Project | 7f43e55648e95abf0a8357651bae2ce3995af6b7 | [
"libtiff",
"Libpng",
"BSD-3-Clause"
] | null | null | null | Game.cpp | crkian/SDL-Project | 7f43e55648e95abf0a8357651bae2ce3995af6b7 | [
"libtiff",
"Libpng",
"BSD-3-Clause"
] | null | null | null | Game.cpp | crkian/SDL-Project | 7f43e55648e95abf0a8357651bae2ce3995af6b7 | [
"libtiff",
"Libpng",
"BSD-3-Clause"
] | null | null | null | #include "Game.h"
#include "GameState.h"
#include <iostream>
#include <time.h>
Game::Game()
{
window = NULL;
renderer=NULL;
screen_width=640;
screen_height=640;
old_time=0;
quit=false;
}
bool Game::Init(GameState* state)
{
/* Calls and starts SDL, system could fail so need failsafes*/
if(SDL_Init(SDL_INIT... | 18.696 | 119 | 0.684211 | crkian |
4d12c8226ae9371860a577a0dcf91bc8d98ee5f5 | 15,116 | cc | C++ | ACAP_linux/3rd/CoMISo/NSolver/DOCloudJob.cc | shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 216 | 2018-09-09T11:53:56.000Z | 2022-03-19T13:41:35.000Z | ACAP_linux/3rd/CoMISo/NSolver/DOCloudJob.cc | gaolinorange/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 13 | 2018-10-23T08:29:09.000Z | 2021-09-08T06:45:34.000Z | ACAP_linux/3rd/CoMISo/NSolver/DOCloudJob.cc | shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 41 | 2018-09-13T08:50:41.000Z | 2022-02-23T00:33:54.000Z | // (C) Copyright 2015 by Autodesk, Inc.
//=============================================================================
//
// namespace COMISO::DOcloud IMPLEMENTATION
//
//=============================================================================
#include "DOCloudJob.hh"
#if COMISO_DOCLOUD_AVAILABLE
#include "DOC... | 27.837937 | 90 | 0.658508 | shubhMaheshwari |
4d17bf5d3f62240bb892935235064c95af697181 | 4,387 | cpp | C++ | tests/webview.tests.cpp | saucer/saucer | c17e412210eacec3276aebd405363e8864ed8edf | [
"MIT"
] | 3 | 2022-02-28T17:16:37.000Z | 2022-03-16T17:13:29.000Z | tests/webview.tests.cpp | saucer/saucer | c17e412210eacec3276aebd405363e8864ed8edf | [
"MIT"
] | 1 | 2022-02-26T21:45:19.000Z | 2022-03-31T14:49:40.000Z | tests/webview.tests.cpp | saucer/saucer | c17e412210eacec3276aebd405363e8864ed8edf | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <webview.hpp>
#include <future>
#include <thread>
class test_webview : public saucer::webview
{
};
const unsigned char test_html[97] = {0x3c, 0x21, 0x44, 0x4f, 0x43, 0x54, 0x59, 0x50, 0x45, 0x20, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0x0a, 0x3c, 0x73, 0x63, 0x72,
... | 41.386792 | 166 | 0.573513 | saucer |
4d1bcab7cba581ac5e9d08ab06c84f4addbf8c2c | 15,483 | cxx | C++ | MITK/Modules/CoreApp/niftkBaseApplication.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | MITK/Modules/CoreApp/niftkBaseApplication.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | MITK/Modules/CoreApp/niftkBaseApplication.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 43.985795 | 135 | 0.643803 | NifTK |
4d1fe7c13184022c5c602e9117e4868f267928a9 | 295 | hpp | C++ | test/generate/Aliases.hpp | zhangxiao6776/kludge | 17a561f4b15399edd8175c883f8410a1b23c4d90 | [
"BSD-3-Clause"
] | null | null | null | test/generate/Aliases.hpp | zhangxiao6776/kludge | 17a561f4b15399edd8175c883f8410a1b23c4d90 | [
"BSD-3-Clause"
] | null | null | null | test/generate/Aliases.hpp | zhangxiao6776/kludge | 17a561f4b15399edd8175c883f8410a1b23c4d90 | [
"BSD-3-Clause"
] | 2 | 2017-12-01T20:44:14.000Z | 2021-08-21T21:47:04.000Z | //
// Copyright (c) 2010-2016, Fabric Software Inc. All rights reserved.
//
#pragma once
typedef unsigned AliasType;
inline AliasType ReturnAliasValue() { return 63; }
void TakeAliasType(AliasType a) {}
void TakeAliasTypeRef(AliasType &a) {}
void TakeAliasTypeConstRef(AliasType const &a) {}
| 22.692308 | 69 | 0.752542 | zhangxiao6776 |
4d21e920e341cc68ae9ded0d140ef6d6034502b9 | 1,031 | cpp | C++ | src/Pass/Passes/HoistShmemNodes.cpp | schwarzschild-radius/spmdfy | 9b5543e3446347277f15b9fe2aee3c7f8311bc78 | [
"MIT"
] | 6 | 2019-07-26T12:37:32.000Z | 2021-03-13T06:18:07.000Z | src/Pass/Passes/HoistShmemNodes.cpp | schwarzschild-radius/spmdfy | 9b5543e3446347277f15b9fe2aee3c7f8311bc78 | [
"MIT"
] | 6 | 2019-06-19T06:04:01.000Z | 2019-08-23T11:12:31.000Z | src/Pass/Passes/HoistShmemNodes.cpp | schwarzschild-radius/spmdfy | 9b5543e3446347277f15b9fe2aee3c7f8311bc78 | [
"MIT"
] | 1 | 2020-05-28T06:43:12.000Z | 2020-05-28T06:43:12.000Z | #include <spmdfy/Pass/Passes/HoistShmemNodes.hpp>
namespace spmdfy {
namespace pass {
#define CASTAS(TYPE, NODE) dynamic_cast<TYPE>(NODE)
auto getISPCGridNode(cfg::KernelFuncNode *kernel){
return kernel->getNext();
}
bool hoistShmemNodes(SpmdTUTy &spmd_tu, clang::ASTContext &ast_context,
W... | 30.323529 | 100 | 0.608147 | schwarzschild-radius |
4d26b77b34bb76228dcd7c83d2d4720e78d3db05 | 2,859 | cpp | C++ | wxSpot/SettingsDialog.cpp | las3rlars/wxSpot | 33f168eb70bfe4f360acfde5bfe598bf65c896d4 | [
"MIT"
] | 2 | 2015-09-09T12:24:58.000Z | 2015-11-28T11:52:07.000Z | wxSpot/SettingsDialog.cpp | las3rlars/wxSpot | 33f168eb70bfe4f360acfde5bfe598bf65c896d4 | [
"MIT"
] | 3 | 2015-12-20T13:15:08.000Z | 2016-06-20T06:22:41.000Z | wxSpot/SettingsDialog.cpp | las3rlars/wxSpot | 33f168eb70bfe4f360acfde5bfe598bf65c896d4 | [
"MIT"
] | null | null | null | #include "SettingsDialog.h"
#include <wx/statline.h>
#include <wx/filepicker.h>
#include "MainFrame.h"
#include "SoundManager.h"
#include <wx/config.h>
SettingsDialog::SettingsDialog(SoundManager *soundManager) : wxDialog(nullptr, wxID_ANY, "Settings", wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxSTAY... | 34.445783 | 179 | 0.741518 | las3rlars |
4d291658dae278c5c543d840a802024da26e3326 | 825 | hpp | C++ | graphblas/backend/cuda/kernels/scatter.hpp | BenBrock/graphblast | c4909e115740e94ab65458a7e1177cbc76b1828d | [
"Apache-2.0"
] | null | null | null | graphblas/backend/cuda/kernels/scatter.hpp | BenBrock/graphblast | c4909e115740e94ab65458a7e1177cbc76b1828d | [
"Apache-2.0"
] | null | null | null | graphblas/backend/cuda/kernels/scatter.hpp | BenBrock/graphblast | c4909e115740e94ab65458a7e1177cbc76b1828d | [
"Apache-2.0"
] | 1 | 2020-09-14T04:22:10.000Z | 2020-09-14T04:22:10.000Z | #ifndef GRAPHBLAS_BACKEND_CUDA_KERNELS_SCATTER_HPP_
#define GRAPHBLAS_BACKEND_CUDA_KERNELS_SCATTER_HPP_
namespace graphblas {
namespace backend {
// no mask vector variant for both sparse and dense
template <typename W, typename U, typename T>
__global__ void scatterKernel(W* w_val,
... | 33 | 56 | 0.598788 | BenBrock |
4d2ef2275ca4020e9f129cbe41fec3d0f312aba8 | 4,886 | hxx | C++ | src/basecase/util-temp.hxx | algoparc/GPU-MMS | 59b6eb3001b7ad752163a6a7a9ec7390a9588f5f | [
"Apache-2.0"
] | null | null | null | src/basecase/util-temp.hxx | algoparc/GPU-MMS | 59b6eb3001b7ad752163a6a7a9ec7390a9588f5f | [
"Apache-2.0"
] | null | null | null | src/basecase/util-temp.hxx | algoparc/GPU-MMS | 59b6eb3001b7ad752163a6a7a9ec7390a9588f5f | [
"Apache-2.0"
] | 2 | 2021-07-27T19:04:43.000Z | 2021-08-04T16:41:58.000Z | /*
* (C) Copyright 2016-2018 Ben Karsin, Nodari Sitchinava
*
* 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... | 23.04717 | 78 | 0.56754 | algoparc |
2ec82765c8291bd6aafae69e47093cb7c3e6394f | 1,078 | hpp | C++ | fmaimage/include/image/ImageCollectionClass.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | fmaimage/include/image/ImageCollectionClass.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | fmaimage/include/image/ImageCollectionClass.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #ifndef __FMA_IMAGE_IMAGECOLLECTIONCLASS_H__
#define __FMA_IMAGE_IMAGECOLLECTIONCLASS_H__
#include "./ImageCollection.hpp"
#include <fma/types/Class.hpp>
#include <fma/types/RootModule.hpp>
#include <fma/types/InternalValue.hpp>
#include <fma/interpret/Result.hpp>
#include <fma/interpret/BaseContext.hpp>
namespace FM... | 30.8 | 129 | 0.800557 | BenjaminSchulte |
2ecb22c082160d3276d1b5ec5a66436efdd888c7 | 5,223 | cpp | C++ | cpp/data-structure/big-int.cpp | luckylat/luckYrat_library | c77bd6ac070db8c929c3d7419eaa73805793108c | [
"CC0-1.0"
] | null | null | null | cpp/data-structure/big-int.cpp | luckylat/luckYrat_library | c77bd6ac070db8c929c3d7419eaa73805793108c | [
"CC0-1.0"
] | 4 | 2021-10-16T10:47:13.000Z | 2021-11-17T06:34:09.000Z | cpp/data-structure/big-int.cpp | luckylat/luckYrat_library | c77bd6ac070db8c929c3d7419eaa73805793108c | [
"CC0-1.0"
] | null | null | null | struct BigInt{
string val;
BigInt():val("0"){}
BigInt(string s){
if(s == "0"){
val = "0";
return;
}
bool firstdigit = false;
for(int i = 0; s.size() > i; i++){
if('0' <= s[i] && s[i] <= '9'){
if(!firstdigit && s[i] == '0')continue;
firstdigit = true;
val.p... | 27.489474 | 101 | 0.44687 | luckylat |
2ece283313a056b91b335b9ac38746f4fc712824 | 24,252 | cpp | C++ | aclc/src/lexer.cpp | williamgarland/accele | f6e659300307f9d53b50ed08840456c4934894ba | [
"MIT"
] | null | null | null | aclc/src/lexer.cpp | williamgarland/accele | f6e659300307f9d53b50ed08840456c4934894ba | [
"MIT"
] | null | null | null | aclc/src/lexer.cpp | williamgarland/accele | f6e659300307f9d53b50ed08840456c4934894ba | [
"MIT"
] | null | null | null | #include "lexer.hpp"
#include "diagnoser.hpp"
#include "exceptions.hpp"
namespace {
using namespace acl;
Map<TokenType, String> TOKEN_TYPE_STRINGS = {
{TokenType::PUBLIC, "public"},
{TokenType::PRIVATE, "private"},
{TokenType::PROTECTED, "protected"},
{TokenType::INTERNAL, "internal"},
{TokenType::STATIC, "stati... | 29.50365 | 77 | 0.643741 | williamgarland |
2ed03e103787293cea37ed388cc125f033ffe581 | 9,778 | cpp | C++ | arataga/startup_manager/a_manager.cpp | Stiffstream/arataga | b6e1720dd2df055949847425f12bb1af56edbe83 | [
"MIT",
"Newsletr",
"BSL-1.0",
"BSD-3-Clause"
] | 14 | 2021-01-08T15:43:37.000Z | 2021-11-06T19:30:15.000Z | arataga/startup_manager/a_manager.cpp | Stiffstream/arataga | b6e1720dd2df055949847425f12bb1af56edbe83 | [
"MIT",
"Newsletr",
"BSL-1.0",
"BSD-3-Clause"
] | 5 | 2021-03-07T06:51:33.000Z | 2021-07-01T09:54:30.000Z | arataga/startup_manager/a_manager.cpp | Stiffstream/arataga | b6e1720dd2df055949847425f12bb1af56edbe83 | [
"MIT",
"Newsletr",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /*!
* @file
* @brief Agent that starts all main agents in the right sequence.
*/
#include <arataga/startup_manager/a_manager.hpp>
#include <arataga/stats_collector/introduce_stats_collector.hpp>
#include <arataga/stats_collector/msg_get_stats.hpp>
#include <arataga/user_list_processor/pub.hpp>
#include <arataga/co... | 25.007673 | 74 | 0.731233 | Stiffstream |
2ed0f6a0254a364282c15e75ce36c4d009b9c846 | 3,715 | cpp | C++ | apps/wail/SharedCode/Twitter/TwitterSearchTermQueue.cpp | eraly5555/Hub | e890f841f16988c642cf6390fa31c3c5ae82773d | [
"MIT"
] | 2 | 2015-12-01T16:33:43.000Z | 2016-04-07T03:43:32.000Z | apps/wail/SharedCode/Twitter/TwitterSearchTermQueue.cpp | eraly5555/Hub | e890f841f16988c642cf6390fa31c3c5ae82773d | [
"MIT"
] | null | null | null | apps/wail/SharedCode/Twitter/TwitterSearchTermQueue.cpp | eraly5555/Hub | e890f841f16988c642cf6390fa31c3c5ae82773d | [
"MIT"
] | 3 | 2020-02-17T14:36:18.000Z | 2021-08-09T12:02:59.000Z | #include "TwitterSearchTermQueue.h"
namespace roxlu {
TwitterSearchTermQueue::TwitterSearchTermQueue()
:filepath()
{
}
TwitterSearchTermQueue::~TwitterSearchTermQueue() {
save();
vector<TwitterSearchTerm*>::iterator it = terms.begin();
while(it != terms.end()) {
delete (*it);
it = terms.erase(it);
}
}
void... | 23.36478 | 126 | 0.669717 | eraly5555 |
2ed987710ae45100ef6c4920b3d42617fa6d0d6a | 1,458 | cc | C++ | projects/assigment4/code/engine/shader/ShaderProgram.cc | Blinningjr/opengl-lab-env | dc041a6d502bf543f25271cd47dd7c5698eb33a1 | [
"MIT"
] | 1 | 2020-11-17T15:19:22.000Z | 2020-11-17T15:19:22.000Z | projects/assigment4/code/engine/shader/ShaderProgram.cc | Blinningjr/opengl-lab-env | dc041a6d502bf543f25271cd47dd7c5698eb33a1 | [
"MIT"
] | null | null | null | projects/assigment4/code/engine/shader/ShaderProgram.cc | Blinningjr/opengl-lab-env | dc041a6d502bf543f25271cd47dd7c5698eb33a1 | [
"MIT"
] | null | null | null | #include "ShaderProgram.h"
namespace Graphics3D {
// Class: ShaderProgram
// ● Implement a class ShaderProgram that takes multiple shader resources, and links them into a GL Shader program handle.
// ● Implement a method within your class that activates the GL shader program (via glUseProgram).
// ● ... | 27 | 127 | 0.64952 | Blinningjr |
2edd31e5d47854184a919aba38aa5f4fb68cd456 | 1,403 | cpp | C++ | src/Beatmaps/LocalBeatmapLevel.cpp | EnderdracheLP/MultiplayerCore.Quest | fd680fe8eb4dffdd3459059b9058002c3ed24749 | [
"MIT"
] | null | null | null | src/Beatmaps/LocalBeatmapLevel.cpp | EnderdracheLP/MultiplayerCore.Quest | fd680fe8eb4dffdd3459059b9058002c3ed24749 | [
"MIT"
] | null | null | null | src/Beatmaps/LocalBeatmapLevel.cpp | EnderdracheLP/MultiplayerCore.Quest | fd680fe8eb4dffdd3459059b9058002c3ed24749 | [
"MIT"
] | 1 | 2022-03-22T11:36:32.000Z | 2022-03-22T11:36:32.000Z | #include "Beatmaps/LocalBeatmapLevel.hpp"
#include "custom-types/shared/register.hpp"
#include "GlobalNamespace/VarIntExtensions.hpp"
#include "songloader/shared/API.hpp"
DEFINE_TYPE(MultiplayerCore::Beatmaps, LocalBeatmapLevel);
namespace MultiplayerCore::Beatmaps {
void LocalBeatmapLevel::New(StringW hash, GlobalN... | 26.471698 | 154 | 0.781183 | EnderdracheLP |
2edeadc2a745a674b4bf3c5e63e1fc3cf6b573ff | 498 | cpp | C++ | NodeContentWidget.cpp | Battledrake/QtNodeGraph | 132cb73e73d3aa4d9874b2b023686cab2f7cbd2e | [
"MIT"
] | null | null | null | NodeContentWidget.cpp | Battledrake/QtNodeGraph | 132cb73e73d3aa4d9874b2b023686cab2f7cbd2e | [
"MIT"
] | null | null | null | NodeContentWidget.cpp | Battledrake/QtNodeGraph | 132cb73e73d3aa4d9874b2b023686cab2f7cbd2e | [
"MIT"
] | 1 | 2021-04-13T22:41:15.000Z | 2021-04-13T22:41:15.000Z | #include "NodeContentWidget.h"
#include <QVBoxLayout>
#include <QLabel>
#include <QTextEdit>
NodeContentWidget::NodeContentWidget(QWidget* parent)
: QWidget(parent)
{
InitUI();
}
void NodeContentWidget::InitUI() {
QVBoxLayout* pLayout = new QVBoxLayout();
pLayout->setContentsMargins(0, 0, 0, 0);
... | 22.636364 | 64 | 0.704819 | Battledrake |
2edf11f9a8dd968326986790676d5484b939e96c | 1,659 | cpp | C++ | src/p2p/Node.cpp | danhil/Chord | 3e6f7a3c6506e52dbbe26d412e51d65dafbe7cca | [
"MIT"
] | null | null | null | src/p2p/Node.cpp | danhil/Chord | 3e6f7a3c6506e52dbbe26d412e51d65dafbe7cca | [
"MIT"
] | 1 | 2017-01-31T08:46:55.000Z | 2017-02-06T07:54:06.000Z | src/p2p/Node.cpp | danhil/Chord | 3e6f7a3c6506e52dbbe26d412e51d65dafbe7cca | [
"MIT"
] | null | null | null | #include "Node.h"
#include "Request.h"
#include <stdio.h>
#include <stdlib.h>
#include "DebugUtil.h"
Node::Node(const std::string &nodeIp_i, uint32_t nodeId_i, uint32_t nodePort_i)
: nodeIP_m(nodeIp_i)
, nodeID_m(nodeId_i)
, nodePort_m(nodePort_i)
, debug(Debug::GetDebugger())
{
char nidBuffer[255];
sprintf(nidBuff... | 23.7 | 79 | 0.666667 | danhil |
2ee111861c48181fc671103678c1a0da0d2b8629 | 1,986 | cpp | C++ | cpp-html2ytlinks.cpp | penguin2233/cpp-html2ytlinks | 55ce2663d70232b796a1c94db5aa030d2b81e66a | [
"BSD-3-Clause"
] | null | null | null | cpp-html2ytlinks.cpp | penguin2233/cpp-html2ytlinks | 55ce2663d70232b796a1c94db5aa030d2b81e66a | [
"BSD-3-Clause"
] | null | null | null | cpp-html2ytlinks.cpp | penguin2233/cpp-html2ytlinks | 55ce2663d70232b796a1c94db5aa030d2b81e66a | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <string>
#include <thread>
#include <fstream>
#include <filesystem>
#include <vector>
#include <regex>
// Copyright (c) 2022 https://penguin2233.gq, no warranty is provided
std::vector<std::string> searchResults;
void searchF(std::string fileName, std::string searchTerm) {
... | 27.205479 | 104 | 0.616314 | penguin2233 |
2ee1de89d813876d31ad31b84a7841c7662671e6 | 19,786 | hpp | C++ | libraries/wallet/wallet_api_impl.hpp | hammadsherwani/bitshares-core | bd40332a3b9c25ca0acbe55e212f6959e5734fec | [
"MIT"
] | 127 | 2020-09-12T11:14:40.000Z | 2022-03-31T19:36:25.000Z | libraries/wallet/wallet_api_impl.hpp | hammadsherwani/bitshares-core | bd40332a3b9c25ca0acbe55e212f6959e5734fec | [
"MIT"
] | 2 | 2020-05-07T14:35:28.000Z | 2020-05-07T14:37:30.000Z | libraries/wallet/wallet_api_impl.hpp | hammadsherwani/bitshares-core | bd40332a3b9c25ca0acbe55e212f6959e5734fec | [
"MIT"
] | 52 | 2020-09-13T00:37:29.000Z | 2022-03-23T00:58:56.000Z | /*
* Copyright (c) 2017 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the... | 39.971717 | 116 | 0.741686 | hammadsherwani |
2ee8bea5015eb5bca469af28defc05c316d9b422 | 1,300 | cpp | C++ | src/NeoRing.cpp | kigster/neo-ring | ffe33dfb5fb3b0a7b711de0d34bec6bde73e3ce7 | [
"MIT"
] | null | null | null | src/NeoRing.cpp | kigster/neo-ring | ffe33dfb5fb3b0a7b711de0d34bec6bde73e3ce7 | [
"MIT"
] | null | null | null | src/NeoRing.cpp | kigster/neo-ring | ffe33dfb5fb3b0a7b711de0d34bec6bde73e3ce7 | [
"MIT"
] | null | null | null | // Simple NeoPixel test. Lights just a few pixels at a time so a
// 1m strip can safely be powered from Arduino 5V pin. Arduino
// may nonetheless hiccup when LEDs are first connected and not
// accept code. So upload code first, unplug USB, connect pixels
// to GND FIRST, then +5V and digital pin 6, then re-plug US... | 29.545455 | 65 | 0.736154 | kigster |
2ef81e63dd8106a8db97c95b356090605d0cce54 | 5,959 | cpp | C++ | core/settings.cpp | Feqzz/qZoom-Client | ac68be4a10a1db66dcf276ee881d5fa093e5f718 | [
"MIT"
] | 3 | 2020-08-24T09:03:35.000Z | 2020-11-18T17:28:24.000Z | core/settings.cpp | Stykk-Gruppen/qZoom-Client | ac68be4a10a1db66dcf276ee881d5fa093e5f718 | [
"MIT"
] | 1 | 2020-08-24T13:59:24.000Z | 2020-08-24T13:59:24.000Z | core/settings.cpp | Feqzz/qZoom-Client | ac68be4a10a1db66dcf276ee881d5fa093e5f718 | [
"MIT"
] | 1 | 2021-09-27T15:33:25.000Z | 2021-09-27T15:33:25.000Z | #include "settings.h"
/**
* @brief Settings::Settings
*/
Settings::Settings()
{
loadSettings();
}
/**
* Open the JSON file, read it and set all the class members.
*/
void Settings::loadSettings()
{
QFile file(mSettingsFile);
if (QFileInfo::exists(mSettingsFile))
{
file.open(QIODevice::ReadWr... | 22.152416 | 99 | 0.677966 | Feqzz |
2ef8c8dab57d78685bde6c58d26cd79a96cf262c | 794 | cpp | C++ | Problems/String/reverseSubstringsBetweenEachParentheses.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | Problems/String/reverseSubstringsBetweenEachParentheses.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | Problems/String/reverseSubstringsBetweenEachParentheses.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
string reverseParentheses(string s)
{
stack<char> st;
string t;
for (char c : s)
{
if (c == '(')
st.push(c);
else if (c == ')')
{
t = "";
while (st.top() != '(')
{
... | 18.045455 | 42 | 0.369018 | vishwajeet-hogale |
2efc1d9ab45463149267a7c501d5891851ecb7f9 | 1,338 | hh | C++ | include/zrtp/hello.hh | dkozinski/uvgRTP | c74d6a75a7c226cec919ab2639d13f6a770d069c | [
"BSD-2-Clause"
] | null | null | null | include/zrtp/hello.hh | dkozinski/uvgRTP | c74d6a75a7c226cec919ab2639d13f6a770d069c | [
"BSD-2-Clause"
] | null | null | null | include/zrtp/hello.hh | dkozinski/uvgRTP | c74d6a75a7c226cec919ab2639d13f6a770d069c | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "frame.hh"
#include "socket.hh"
#include "util.hh"
#include "zrtp/defines.hh"
#include "zrtp/zrtp_receiver.hh"
namespace uvg_rtp {
typedef struct capabilities zrtp_capab_t;
typedef struct zrtp_session zrtp_session_t;
namespace zrtp_msg {
PACK(struct zrtp_hello {
... | 23.068966 | 102 | 0.509716 | dkozinski |
2efc8d9e0a36e1ad3a25fe806d78a7545672d14f | 9,258 | cpp | C++ | Engine/source/ts/assimp/assimpAppMesh.cpp | Pecon/Torque3D-1 | 81777348c8ab2fa49cbc534315294c3bee7ae3aa | [
"MIT"
] | 417 | 2020-06-01T15:55:15.000Z | 2022-03-31T12:50:51.000Z | Engine/source/ts/assimp/assimpAppMesh.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 186 | 2020-06-02T19:12:39.000Z | 2022-02-15T02:22:27.000Z | Engine/source/ts/assimp/assimpAppMesh.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 84 | 2020-06-01T15:54:44.000Z | 2022-03-24T13:52:59.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 32.946619 | 124 | 0.632426 | Pecon |
2c026414ef77fd51c2c8f9d01975d273620963cf | 10,171 | cpp | C++ | test/unit/core/algorithm/detail/algorithm_executor_blocking_test.cpp | wiepvandertoorn/seqan3 | c84a1ad0548fb722015b59c7001faa73015887aa | [
"CC-BY-4.0",
"CC0-1.0"
] | 1 | 2020-09-28T06:49:14.000Z | 2020-09-28T06:49:14.000Z | test/unit/core/algorithm/detail/algorithm_executor_blocking_test.cpp | wiepvandertoorn/seqan3 | c84a1ad0548fb722015b59c7001faa73015887aa | [
"CC-BY-4.0",
"CC0-1.0"
] | null | null | null | test/unit/core/algorithm/detail/algorithm_executor_blocking_test.cpp | wiepvandertoorn/seqan3 | c84a1ad0548fb722015b59c7001faa73015887aa | [
"CC-BY-4.0",
"CC0-1.0"
] | null | null | null | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... | 46.231818 | 111 | 0.617638 | wiepvandertoorn |
2c0ab149865291be4dd21a4482eda2ed4fc27dff | 2,786 | cpp | C++ | src/Client/RankCheck/NetworkLogReader.cpp | AlexWayfer/RankCheck | cf3005a2ba6f66bd66f27e0e42ca6b0ccb907014 | [
"Unlicense",
"MIT"
] | 10 | 2018-02-12T16:14:07.000Z | 2022-03-19T15:08:29.000Z | src/Client/RankCheck/NetworkLogReader.cpp | AlexWayfer/RankCheck | cf3005a2ba6f66bd66f27e0e42ca6b0ccb907014 | [
"Unlicense",
"MIT"
] | 11 | 2018-02-08T16:46:49.000Z | 2022-02-03T20:48:12.000Z | src/Client/RankCheck/NetworkLogReader.cpp | AlexWayfer/RankCheck | cf3005a2ba6f66bd66f27e0e42ca6b0ccb907014 | [
"Unlicense",
"MIT"
] | 3 | 2018-02-12T22:08:55.000Z | 2021-06-24T16:29:17.000Z | #include <Client/RankCheck/LeagueReader.hpp>
#include <Client/RankCheck/NetworkLogReader.hpp>
#include <Shared/Utils/DebugLog.hpp>
#include <Shared/Utils/Filesystem/DirectoryObserver.hpp>
#include <Shared/Utils/StrNumCon.hpp>
#include <Shared/Utils/Utilities.hpp>
#include <cstddef>
#include <utility>
NetworkLogReader:... | 21.937008 | 111 | 0.714286 | AlexWayfer |
2c0c6a497a8db23aa7615e388d6bb192f16aa9b4 | 1,090 | cpp | C++ | verifications/misc/seg_decomp.test.cpp | Pachicobue/AlgoLib | 346f2208e9e93ef3c7e03c1b3ad525bc08be6d2e | [
"Unlicense"
] | 4 | 2018-04-01T18:41:16.000Z | 2019-08-11T11:45:47.000Z | verifications/misc/seg_decomp.test.cpp | pachicobue/algolib | 8acbce5c49cdfada7d187e7acab25a5c6a2f7fc5 | [
"Unlicense"
] | null | null | null | verifications/misc/seg_decomp.test.cpp | pachicobue/algolib | 8acbce5c49cdfada7d187e7acab25a5c6a2f7fc5 | [
"Unlicense"
] | 1 | 2018-04-08T11:38:22.000Z | 2018-04-08T11:38:22.000Z | #define PROBLEM \
"https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_A"
#include "../../src/misc/seg_decomp.hpp"
void Test()
{
const int N = 6;
SegDecomp segs(N);
assert(segs[1] == std::make_pair(0, 8));
assert(segs[2] == std::make_pair(0, 4));
assert(segs[3] == std::make_pair(4, ... | 32.058824 | 72 | 0.562385 | Pachicobue |
2c0f84fd724344e790162ba17799327ec15053de | 2,082 | cpp | C++ | src/main.cpp | sphamil/enrico | 7a346c14d113c0068382fdd5ae82f6c7d253c9eb | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | sphamil/enrico | 7a346c14d113c0068382fdd5ae82f6c7d253c9eb | [
"BSD-3-Clause"
] | 1 | 2019-12-11T16:51:18.000Z | 2019-12-11T16:51:18.000Z | src/main.cpp | sphamil/enrico | 7a346c14d113c0068382fdd5ae82f6c7d253c9eb | [
"BSD-3-Clause"
] | null | null | null | #include <stdexcept>
#include "pugixml.hpp"
#include <mpi.h>
#include "enrico/message_passing.h"
#include "enrico/openmc_heat_driver.h"
#include "enrico/openmc_nek_driver.h"
int main(int argc, char* argv[])
{
// Initialize MPI
MPI_Init(&argc, &argv);
// Define enums for selecting drivers
enum class Transpor... | 27.038961 | 83 | 0.6878 | sphamil |
2c13ff8b49b73b1bbb8b9dac5da9ca3910dbe70c | 2,559 | cpp | C++ | cpp/src/cylon/ops/execution/execution.cpp | Sandeepa1995/cylon | a42d04ad9a65b20c84a15d649f9d849f18676183 | [
"Apache-2.0"
] | 5 | 2021-01-06T04:28:16.000Z | 2021-11-24T01:27:21.000Z | cpp/src/cylon/ops/execution/execution.cpp | Sandeepa1995/cylon | a42d04ad9a65b20c84a15d649f9d849f18676183 | [
"Apache-2.0"
] | 1 | 2020-09-24T16:35:27.000Z | 2020-09-24T16:35:27.000Z | cpp/src/cylon/ops/execution/execution.cpp | vibhatha/cylon | 3f2c5b08935a4332b820818ca113cb44f7ac5da3 | [
"Apache-2.0"
] | null | null | null | #include "execution.hpp"
#include "ops/api/parallel_op.hpp"
namespace cylon {
bool RoundRobinExecution::IsComplete() {
bool completed = ops[indices[current_index]]->IsComplete();
if (completed) {
indices.erase(indices.begin() + current_index);
} else {
current_index++;
}
if (current_index == indice... | 22.252174 | 69 | 0.623681 | Sandeepa1995 |
2c160f1459a6705bb1c19e7e0d3143eff4356162 | 675 | cpp | C++ | test/unittest/layers/unittest_layers_rnn.cpp | lhs8928/nntrainer | f1c1e9b45043a2239369ebf41fd8e4189ed73c51 | [
"Apache-2.0"
] | null | null | null | test/unittest/layers/unittest_layers_rnn.cpp | lhs8928/nntrainer | f1c1e9b45043a2239369ebf41fd8e4189ed73c51 | [
"Apache-2.0"
] | null | null | null | test/unittest/layers/unittest_layers_rnn.cpp | lhs8928/nntrainer | f1c1e9b45043a2239369ebf41fd8e4189ed73c51 | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2021 Parichay Kapoor <pk.kapoor@samsung.com>
*
* @file unittest_layers_rnn.cpp
* @date 8 July 2021
* @brief RNN Layer Test
* @see https://github.com/nnstreamer/nntrainer
* @author Parichay Kapoor <pk.kapoor@samsung.com>
* @bug No known bugs except for N... | 28.125 | 78 | 0.706667 | lhs8928 |
2c193fbd4612ca0a629e189d5e8ff466fadd6b99 | 12,345 | cpp | C++ | src/kite_control/kiteNMPF.cpp | jowaibel/openkite | 165e4fc8e3e01934a36543be03e34a8cfa5b9926 | [
"MIT"
] | 4 | 2019-05-21T20:40:49.000Z | 2021-01-19T19:28:17.000Z | src/kite_control/kiteNMPF.cpp | jowaibel/openkite | 165e4fc8e3e01934a36543be03e34a8cfa5b9926 | [
"MIT"
] | 1 | 2019-12-04T14:00:12.000Z | 2019-12-04T14:00:12.000Z | src/kite_control/kiteNMPF.cpp | jowaibel/openkite | 165e4fc8e3e01934a36543be03e34a8cfa5b9926 | [
"MIT"
] | 4 | 2019-07-11T09:53:26.000Z | 2020-05-06T13:01:12.000Z |
#include "kiteNMPF.h"
#include "utility"
#include "pseudospectral/chebyshev.hpp"
using namespace casadi;
const DM KiteNMPF::DEFAULT_LBG = -DM::inf(1);
const DM KiteNMPF::DEFAULT_UBG = DM::inf(1);
const DM KiteNMPF::DEFAULT_LBX = -DM::inf(15);
const DM KiteNMPF::DEFAULT_UBX = DM::inf(15);
const DM KiteNMPF::DEFAULT... | 31.412214 | 134 | 0.567112 | jowaibel |
2c28e1f63d8f1062272de2882b8603b1c80d661f | 3,910 | cpp | C++ | src/lib/server/ConnectionFactory.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 1 | 2021-05-21T21:10:09.000Z | 2021-05-21T21:10:09.000Z | src/lib/server/ConnectionFactory.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 12 | 2021-06-12T16:42:30.000Z | 2022-02-01T18:44:42.000Z | src/lib/server/ConnectionFactory.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2018-2021 Grant Erickson
* 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... | 24.285714 | 78 | 0.652685 | gerickson |
2c2ce42e8301eaa774f4f683c78fa03d93b9b772 | 2,020 | cpp | C++ | unittest/unittest1_encode_str.cpp | MFMokbel/Base64CPPLib | 966be0ad548ddc1ba62c92f9d83765b45f36d399 | [
"MIT"
] | null | null | null | unittest/unittest1_encode_str.cpp | MFMokbel/Base64CPPLib | 966be0ad548ddc1ba62c92f9d83765b45f36d399 | [
"MIT"
] | null | null | null | unittest/unittest1_encode_str.cpp | MFMokbel/Base64CPPLib | 966be0ad548ddc1ba62c92f9d83765b45f36d399 | [
"MIT"
] | 1 | 2022-01-27T09:41:13.000Z | 2022-01-27T09:41:13.000Z | #include "stdafx.h"
#include "base64.h"
#include "CppUnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
// all quotes belong to their respective authors
namespace Base64UnitTest
{
TEST_CLASS(UnitTest1_encode_str)
{
public:
Base64 testb64;
// test encode_str that generates zero pa... | 37.407407 | 192 | 0.767327 | MFMokbel |
2c2e4e1852ff46f23841fd02261296089eabb205 | 8,056 | cpp | C++ | tests/observers_tests.cpp | cneben/quickqanava | 13233d39a19b4341d0297fbc3a9bbc21f0258eb3 | [
"BSD-3-Clause"
] | 1 | 2015-07-19T20:41:23.000Z | 2015-07-19T20:41:23.000Z | tests/observers_tests.cpp | cneben/quickqanava | 13233d39a19b4341d0297fbc3a9bbc21f0258eb3 | [
"BSD-3-Clause"
] | null | null | null | tests/observers_tests.cpp | cneben/quickqanava | 13233d39a19b4341d0297fbc3a9bbc21f0258eb3 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2008-2022, Benoit AUTHEMAN All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions a... | 41.958333 | 178 | 0.680238 | cneben |
2c3c001573d2d44ec69ab75467b6ecbca3a9a89b | 732 | hpp | C++ | shoggoth/src/arch/x86/src/Idt.hpp | RobertZ2011/yith | 3522fe6389a36a142e54bfde16d746a67f91abf6 | [
"BSD-3-Clause"
] | null | null | null | shoggoth/src/arch/x86/src/Idt.hpp | RobertZ2011/yith | 3522fe6389a36a142e54bfde16d746a67f91abf6 | [
"BSD-3-Clause"
] | null | null | null | shoggoth/src/arch/x86/src/Idt.hpp | RobertZ2011/yith | 3522fe6389a36a142e54bfde16d746a67f91abf6 | [
"BSD-3-Clause"
] | null | null | null | #ifndef IDT
#define IDT
#include <stdint.h>
#include "Arch.hpp"
namespace x86 {
class Idt {
struct Entry {
uint16_t offsetLow;
uint16_t segment;
uint8_t reserved;
uint8_t type;
uint16_t offsetHigh;
} __attribute__((packed));
sta... | 19.783784 | 70 | 0.54235 | RobertZ2011 |
2c3ccb27e85979bbca3ae9ea503e56e777b851bb | 242 | cpp | C++ | Chapter5/forloop.cpp | leonardoaraujodf/cpp_prog | d8d6bea8fa942faa162f0da8221a034e9173bddb | [
"MIT"
] | null | null | null | Chapter5/forloop.cpp | leonardoaraujodf/cpp_prog | d8d6bea8fa942faa162f0da8221a034e9173bddb | [
"MIT"
] | null | null | null | Chapter5/forloop.cpp | leonardoaraujodf/cpp_prog | d8d6bea8fa942faa162f0da8221a034e9173bddb | [
"MIT"
] | null | null | null | // listing 5.1 - forloop.cpp -- introducing the for loop
#include <iostream>
int main()
{
using namespace std;
int i;
for(i = 0; i < 5; i++)
cout << "C++ knows loops.\n";
cout << "C++ knows when to stop.\n";
return 0;
}
| 20.166667 | 56 | 0.557851 | leonardoaraujodf |
2c3d25ec79417b8b03d29b474692580d3e078903 | 1,973 | cpp | C++ | source/server/modules/similarity/compute_similarity.cpp | racai-ai/ServerFastText | 1216fdaba5e05ef587617ea8ecb7f42727ae3cec | [
"MIT"
] | null | null | null | source/server/modules/similarity/compute_similarity.cpp | racai-ai/ServerFastText | 1216fdaba5e05ef587617ea8ecb7f42727ae3cec | [
"MIT"
] | null | null | null | source/server/modules/similarity/compute_similarity.cpp | racai-ai/ServerFastText | 1216fdaba5e05ef587617ea8ecb7f42727ae3cec | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <string>
#include "module.h"
#include <iostream>
#include <sstream>
#include <queue>
#include "../../fasttext.h"
#include "../../../src/vector.h"
int SIMILARITYCOMPUTE_get_handler(StrMap *args, const unsigned char *data,unsigned long data_sz,Encoding... | 29.893939 | 158 | 0.667005 | racai-ai |
2c3d2a4f9dd654434d19876d7cb559f07bf91b5c | 2,418 | hpp | C++ | include/Nyengine/object/Cube.hpp | NyantasticUwU/nyengine | b6a47d2bfb101366eeda1b318e66f09d37317688 | [
"MIT"
] | 2 | 2021-12-26T05:10:41.000Z | 2022-01-30T19:51:23.000Z | include/Nyengine/object/Cube.hpp | NyantasticUwU/Nyengine | b6a47d2bfb101366eeda1b318e66f09d37317688 | [
"MIT"
] | null | null | null | include/Nyengine/object/Cube.hpp | NyantasticUwU/Nyengine | b6a47d2bfb101366eeda1b318e66f09d37317688 | [
"MIT"
] | null | null | null | #ifndef NYENGINE_OBJECT_CUBE_HPP_INCLUDED
#define NYENGINE_OBJECT_CUBE_HPP_INCLUDED
#include "../geometry/Point.hpp"
#include "../interface/IDrawable.hpp"
#include "../interface/ITransformable.hpp"
#include "../shader/Shader.hpp"
#include "../type/types.hpp"
#include <glm/matrix.hpp>
/// Contains all Nyengine objects.... | 33.123288 | 100 | 0.637717 | NyantasticUwU |
2c3e5a4df666499e0c25950caa3c8422f0a1859e | 1,377 | cpp | C++ | ch6/filters/nonLinearFilter_simple_demo.cpp | icyplayer/OpenCV3Learning | c2d107b6b8895086f499c6be16c2e15521d36799 | [
"MIT"
] | null | null | null | ch6/filters/nonLinearFilter_simple_demo.cpp | icyplayer/OpenCV3Learning | c2d107b6b8895086f499c6be16c2e15521d36799 | [
"MIT"
] | null | null | null | ch6/filters/nonLinearFilter_simple_demo.cpp | icyplayer/OpenCV3Learning | c2d107b6b8895086f499c6be16c2e15521d36799 | [
"MIT"
] | null | null | null | /*
* linearFilter_simple_demo.cpp
*
* Created on: 2017年3月11日
* Author: icyplayer
*/
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main_medianBlur()
{
// Load image
Mat image ... | 18.863014 | 45 | 0.678286 | icyplayer |
2c4000ac65d6e20c945f5590f8abe3387a86abed | 117 | cpp | C++ | ScriptingInterface/scriptprivate.cpp | magiruuvelvet/QAPI-IDE | 7634acfd4a46075abefad0a2d6fded263b5d222d | [
"BSD-3-Clause"
] | 2 | 2019-08-16T16:08:00.000Z | 2019-11-01T00:47:52.000Z | ScriptingInterface/scriptprivate.cpp | magiruuvelvet/QAPI-IDE | 7634acfd4a46075abefad0a2d6fded263b5d222d | [
"BSD-3-Clause"
] | 8 | 2019-07-03T09:02:51.000Z | 2019-07-27T13:01:35.000Z | ScriptingInterface/scriptprivate.cpp | magiruuvelvet/QAPI-IDE | 7634acfd4a46075abefad0a2d6fded263b5d222d | [
"BSD-3-Clause"
] | null | null | null | #include <script/private/scriptprivate.hpp>
ScriptPrivate::ScriptPrivate()
{
}
ScriptPrivate::~ScriptPrivate()
{
}
| 11.7 | 43 | 0.752137 | magiruuvelvet |
2c43022d2e640bcd0fac477ab3719f8c3a12f2bd | 55,646 | cpp | C++ | tests/rtt_ros2_idl_tests/test/test_typekit.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 14 | 2020-06-12T14:48:40.000Z | 2022-03-22T08:57:41.000Z | tests/rtt_ros2_idl_tests/test/test_typekit.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 15 | 2020-06-12T15:57:09.000Z | 2021-09-08T18:26:19.000Z | tests/rtt_ros2_idl_tests/test/test_typekit.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 3 | 2020-12-02T09:11:23.000Z | 2021-11-29T11:06:27.000Z | // Copyright 2020 Intermodalics BVBA
//
// 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... | 42.477863 | 110 | 0.78383 | gborghesan |
2c45c3ac35ace43912170613a86af9fc5fa65c26 | 2,673 | cpp | C++ | Tutorials/EB/LevelSet/Src/make_poly.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Tutorials/EB/LevelSet/Src/make_poly.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Tutorials/EB/LevelSet/Src/make_poly.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <AMReX_PlaneIF.H>
#include <AMReX_AllRegularService.H>
#include <AMReX_TransformIF.H>
#include <AMReX_IntersectionIF.H>
#include <AMReX_ParmParse.H>
#include <make_shapes.H>
using namespace amrex;
std::unique_ptr<BaseIF>
make_poly_geom(int lev, int max_order, std::string field_prefix)
{
// Construct the... | 33.835443 | 87 | 0.594463 | malvarado27 |
2c45e04ded46d0974ffbc832bbc3dff4d12d7c7e | 11,542 | hpp | C++ | src/xalanc/Harness/XalanFileUtility.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 24 | 2015-07-29T22:49:17.000Z | 2022-03-25T10:14:17.000Z | src/xalanc/Harness/XalanFileUtility.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 14 | 2019-05-10T16:25:50.000Z | 2021-11-24T18:04:47.000Z | src/xalanc/Harness/XalanFileUtility.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 28 | 2015-04-20T15:50:51.000Z | 2022-01-26T14:56:55.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you m... | 24.715203 | 79 | 0.595304 | ulisesten |
2c52307631932794b6f9ae09ab2e8a9fa0f95e10 | 1,868 | hpp | C++ | master/core/third/RCF/include/RCF/util/Platform/Platform.hpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:48.000Z | 2019-10-26T21:44:59.000Z | master/core/third/RCF/include/RCF/util/Platform/Platform.hpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | null | null | null | master/core/third/RCF/include/RCF/util/Platform/Platform.hpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:49.000Z | 2018-12-27T03:20:31.000Z |
//*****************************************************************************
// SF - Serialization Framework
// Copyright (c) 2003. All rights reserved.
// Developed by Jarl Lindrud.
// Contact: jlindrud@hotmail.com .
//*****************************************************************************
#ifndef _... | 26.685714 | 100 | 0.664882 | importlib |
2c6681c1d0785f8e7bfb9aafff8bf8ac399869a4 | 99,390 | cpp | C++ | src/subr_others.cpp | paines/ypsilon | 821cf2744efa881478f83093e44cd3a3d4e6c629 | [
"BSD-3-Clause"
] | 25 | 2017-12-17T11:45:51.000Z | 2022-03-28T13:49:35.000Z | src/subr_others.cpp | paines/ypsilon | 821cf2744efa881478f83093e44cd3a3d4e6c629 | [
"BSD-3-Clause"
] | 3 | 2019-04-30T18:28:18.000Z | 2022-03-07T07:22:36.000Z | src/subr_others.cpp | paines/ypsilon | 821cf2744efa881478f83093e44cd3a3d4e6c629 | [
"BSD-3-Clause"
] | 8 | 2015-04-25T13:05:39.000Z | 2020-07-08T18:17:33.000Z | /*
Ypsilon Scheme System
Copyright (c) 2004-2009 Y.FUJITA / LittleWing Company Limited.
See license.txt for terms and conditions of use
*/
#include "core.h"
#include "vm.h"
#include "violation.h"
#include "arith.h"
#include "hash.h"
#include "utf8.h"
#include "port.h"
#include "list.h"
#include "reader.h"
#inclu... | 39.440476 | 169 | 0.546554 | paines |
2c67565e4f419ad4f633a13364a0d78a4ef55dd7 | 6,049 | cpp | C++ | src/optimize_substemmata_table.cpp | jjmccollum/open-cbgm | c231b1fa0b5ff86c0701c0f7f2b389c3a60434f4 | [
"MIT"
] | 21 | 2020-01-17T21:45:28.000Z | 2022-03-29T07:24:45.000Z | src/optimize_substemmata_table.cpp | jjmccollum/open-cbgm | c231b1fa0b5ff86c0701c0f7f2b389c3a60434f4 | [
"MIT"
] | 4 | 2020-03-05T03:33:44.000Z | 2020-10-16T23:29:44.000Z | src/optimize_substemmata_table.cpp | jjmccollum/open-cbgm | c231b1fa0b5ff86c0701c0f7f2b389c3a60434f4 | [
"MIT"
] | 1 | 2020-01-30T16:17:08.000Z | 2020-01-30T16:17:08.000Z | /*
* optimize_substemmata_table.cpp
*
* Created on: Sept 18, 2020
* Author: jjmccollum
*/
#include <iostream>
#include <iomanip>
#include <string>
#include <list>
#include <set>
#include <algorithm>
#include <limits>
#include "roaring.hh"
#include "set_cover_solver.h"
#include "witness.h"
#include "optimiz... | 28.804762 | 156 | 0.646057 | jjmccollum |
ef19d515d982d1a6e28d574e141894beedc0df4c | 2,825 | cpp | C++ | dev/spark/Gem/Code/Utils/Amount.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | 2 | 2020-08-20T03:40:24.000Z | 2021-02-07T20:31:43.000Z | dev/spark/Gem/Code/Utils/Amount.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | null | null | null | dev/spark/Gem/Code/Utils/Amount.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z | #include "spark_precompiled.h"
#include "Amount.h"
#include "Busses/VariableBus.h"
#include <AzCore/Script/ScriptContext.h>
#include <AzCore/Script/ScriptSystemBus.h>
#include <AzCore/Script/ScriptProperty.h>
#include "Utils/Log.h"
#include <AzCore/JSON/document.h>
namespace spark
{
void AmountBehaviorScriptConst... | 24.565217 | 115 | 0.679646 | chrisinajar |
ef1b436decdd76c7a2cdcb710724b93e31ea04fd | 3,274 | hpp | C++ | src/NumericUtils.hpp | frabert/dlsynth | 176d37010038b2f45622ed657a690dff4ad621ce | [
"MIT"
] | 3 | 2019-08-02T16:47:53.000Z | 2020-10-11T17:10:01.000Z | src/NumericUtils.hpp | frabert/dlsynth | 176d37010038b2f45622ed657a690dff4ad621ce | [
"MIT"
] | null | null | null | src/NumericUtils.hpp | frabert/dlsynth | 176d37010038b2f45622ed657a690dff4ad621ce | [
"MIT"
] | null | null | null | #ifndef NUMERICUTILS_HPP
#define NUMERICUTILS_HPP
#include <array>
#include <cmath>
#include <cstdint>
#include <limits>
namespace DLSynth {
struct int24_t {
std::array<std::uint8_t, 3> value;
inline explicit operator int() const {
return ((int)value[0] << 8) | ((int)value[1] << 16) | ((int)value[2] << 24);
... | 28.469565 | 80 | 0.665547 | frabert |
ef1ca204e98383e8ff9f6c8abe4236b3711d6f12 | 2,686 | hpp | C++ | include/occa/mode.hpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | include/occa/mode.hpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | include/occa/mode.hpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | /* The MIT License (MIT)
*
* Copyright (c) 2014-2018 David Medina and Tim Warburton
*
* 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 t... | 29.516484 | 92 | 0.712956 | v-dobrev |
ef1eea13620a08183e38377a43ded467ef1dd05a | 60 | hpp | C++ | addons/shootingrange/functions/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/shootingrange/functions/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/shootingrange/functions/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | #include "\z\tfd\addons\shootingrange\script_component.hpp"
| 30 | 59 | 0.816667 | Task-Force-Dagger |
ef26c1c94a8482ae6d023359f66ca05d43635b56 | 54,337 | cpp | C++ | uieditor/src/DocumentView.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 50 | 2015-06-01T19:23:24.000Z | 2021-12-22T02:14:23.000Z | uieditor/src/DocumentView.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 109 | 2015-07-20T07:43:03.000Z | 2021-01-31T21:52:36.000Z | uieditor/src/DocumentView.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 9 | 2015-07-02T21:36:20.000Z | 2019-10-19T04:18:02.000Z | #include "DocumentView.h"
#include "viewStyles.h"
#include "styles.h"
#include "onut/ActionManager.h"
#include "onut/Input.h"
#include "onut/Files.h"
#include "onut/Settings.h"
#include "onut/SpriteBatch.h"
#include "onut/UIButton.h"
#include "onut/Window.h"
extern OUIControlRef g_pUIScreen;
extern OUIContextRef g_pU... | 39.147695 | 179 | 0.621216 | Daivuk |
ef29a77a582ea9b65b232c095ba9bd3329f8f720 | 4,566 | hpp | C++ | modules/base/include/base/array.hpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 29 | 2016-01-27T09:43:44.000Z | 2020-03-12T04:16:02.000Z | modules/base/include/base/array.hpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 20 | 2016-01-22T15:59:33.000Z | 2016-10-28T10:22:45.000Z | modules/base/include/base/array.hpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 6 | 2016-02-11T14:09:04.000Z | 2018-03-17T00:18:35.000Z | /*
Copyright (c) 2015, Xenomorphales
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following ... | 33.822222 | 130 | 0.724704 | aversiveplusplus |
ef303973f85372bf5b2a003054693773846f4224 | 601 | cpp | C++ | leetcode/minimum-time-to-complete-trips/main.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | leetcode/minimum-time-to-complete-trips/main.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | leetcode/minimum-time-to-complete-trips/main.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | class Solution {
public:
long long minimumTime(vector<int>& time, int totalTrips) {
sort(time.begin(), time.end());
int trips{0};
vector<int> leftForTrip;
for (auto timeLeft: time) {
leftForTrip.push_back(timeLeft);
}
int taken{0};
while (trips < total... | 25.041667 | 62 | 0.464226 | Yash-Singh1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.