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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38cbe78dada4b87d22d9b9884fc22fc01fa6b9fa | 836 | hpp | C++ | engine/include/Serialiser/ISerialiser.hpp | BigETI/NoLifeNoCry | 70ac2498b5e740b2b348771ef9617dea1eed7f9c | [
"MIT"
] | 5 | 2020-11-07T23:38:48.000Z | 2021-12-07T11:03:22.000Z | engine/include/Serialiser/ISerialiser.hpp | BigETI/NoLifeNoCry | 70ac2498b5e740b2b348771ef9617dea1eed7f9c | [
"MIT"
] | null | null | null | engine/include/Serialiser/ISerialiser.hpp | BigETI/NoLifeNoCry | 70ac2498b5e740b2b348771ef9617dea1eed7f9c | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
/// @brief Dirt Machine game engine serialiser namespace
namespace DirtMachine::Serialiser
{
/// @brief Serialiser class
/// @tparam TObject Object type
/// @tparam TInput Input type
/// @tparam TOutput Output type
template <typename TObject, typename TInput, typename TOutput>
cla... | 26.967742 | 71 | 0.729665 | BigETI |
38cfb3fdad95e2d397f445e0860badecf2890851 | 606 | cpp | C++ | mame/src/osd/nitro/nitrostub.cpp | nitrologic/emu | be2c9b72d81c3aea85ad4fd18fa4f731b31f338a | [
"Unlicense"
] | null | null | null | mame/src/osd/nitro/nitrostub.cpp | nitrologic/emu | be2c9b72d81c3aea85ad4fd18fa4f731b31f338a | [
"Unlicense"
] | null | null | null | mame/src/osd/nitro/nitrostub.cpp | nitrologic/emu | be2c9b72d81c3aea85ad4fd18fa4f731b31f338a | [
"Unlicense"
] | null | null | null | #ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <nitro.h>
struct nitroFolder{
HANDLE handle;
WIN32_FIND_DATA raw;
};
int nitroOpenDir(const char *path){
WIN32_FIND_DATA result;
FindFirstFile(path, &result);
return 0;
}
#else
#include <nitro.h>
#include <dirent.h>
... | 13.466667 | 42 | 0.674917 | nitrologic |
38d04fcbbc292092bad9ce83703ef07f599420e4 | 200 | cpp | C++ | UVa Online Judge (UVa)/Volume 115/11597 - Spanning Subtree.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | null | null | null | UVa Online Judge (UVa)/Volume 115/11597 - Spanning Subtree.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | null | null | null | UVa Online Judge (UVa)/Volume 115/11597 - Spanning Subtree.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | 2 | 2018-11-06T19:37:56.000Z | 2018-11-09T19:05:46.000Z | #include <cstdio>
#include <iostream>
using namespace std;
int main()
{
int n, ncase = 0;
while( cin >> n && n )
cout << "Case " << ++ncase << ": " << n/2 << endl;
return 0;
}
| 13.333333 | 58 | 0.49 | sreejonK19 |
38db6d44adf9f0085fde32981499bdffeb63d667 | 2,000 | cpp | C++ | src/motion_handlers/player_motion_handler.cpp | elainedo/RobotSimulation | 67903eca770ac961c2df31150d578a1a21145e0b | [
"MIT"
] | 1 | 2021-03-23T15:54:57.000Z | 2021-03-23T15:54:57.000Z | src/motion_handlers/player_motion_handler.cpp | elainedo/RobotSimulation | 67903eca770ac961c2df31150d578a1a21145e0b | [
"MIT"
] | null | null | null | src/motion_handlers/player_motion_handler.cpp | elainedo/RobotSimulation | 67903eca770ac961c2df31150d578a1a21145e0b | [
"MIT"
] | null | null | null |
#include "player_motion_handler.h"
/*******************************************************************************
* Constructors/Destructor
******************************************************************************/
PlayerMotionHandler::PlayerMotionHandler() :
max_speed_(100),
max_angle_(360) {
}
/*****... | 32.258065 | 80 | 0.451 | elainedo |
38e61e5e079bfc0d12e5b2822cbeec4a316ee50d | 2,189 | cpp | C++ | Thalassa/Motor2D/j1MovingObstacle.cpp | xavimarin35/PlatformerDev | 98565270f5c62c1a47103bb413ef377e124b35ec | [
"MIT"
] | 1 | 2020-07-04T11:04:52.000Z | 2020-07-04T11:04:52.000Z | Thalassa/Motor2D/j1MovingObstacle.cpp | xavimarin35/PlatformerDev | 98565270f5c62c1a47103bb413ef377e124b35ec | [
"MIT"
] | null | null | null | Thalassa/Motor2D/j1MovingObstacle.cpp | xavimarin35/PlatformerDev | 98565270f5c62c1a47103bb413ef377e124b35ec | [
"MIT"
] | 2 | 2019-12-27T12:14:20.000Z | 2020-09-05T16:01:29.000Z | #include "j1App.h"
#include "j1MovingObstacle.h"
#include "j1Textures.h"
#include "j1Render.h"
#include "j1Input.h"
#include "j1Collisions.h"
#include "j1Window.h"
#include "j1Player.h"
#include "j1Audio.h"
#include "j1EntityManager.h"
#include "Brofiler/Brofiler.h"
j1MovingObstacle::j1MovingObstacle(int x, int y, EN... | 22.111111 | 141 | 0.712197 | xavimarin35 |
38e87cd9659b0e307d218c587cb8091f79357964 | 470 | hpp | C++ | Source/Musa/RenderPipeline/DeferredRenderPipeline.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Musa/RenderPipeline/DeferredRenderPipeline.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Musa/RenderPipeline/DeferredRenderPipeline.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | // Copyright 2020, Nathan Blane
#pragma once
#include "Containers/DynamicArray.hpp"
struct View;
struct RenderView;
struct FrameRenderTargets;
class RenderContext;
struct RenderTarget;
namespace DeferredRender
{
void Render(RenderContext& renderContext, const DynamicArray<RenderView*>& views, const FrameRenderTarge... | 23.5 | 126 | 0.814894 | frobro98 |
38eb5b45214fe6a52f57dce4e9f205e1719a558e | 2,499 | cpp | C++ | src/PointwiseFunctions/AnalyticSolutions/Burgers/Step.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 2 | 2021-04-11T04:07:42.000Z | 2021-04-11T05:07:54.000Z | src/PointwiseFunctions/AnalyticSolutions/Burgers/Step.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 4 | 2018-06-04T20:26:40.000Z | 2018-07-27T14:54:55.000Z | src/PointwiseFunctions/AnalyticSolutions/Burgers/Step.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 1 | 2019-01-03T21:47:04.000Z | 2019-01-03T21:47:04.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "PointwiseFunctions/AnalyticSolutions/Burgers/Step.hpp"
#include <pup.h>
#include "DataStructures/DataVector.hpp" // IWYU pragma: keep
#include "DataStructures/Tensor/Tensor.hpp"
#include "Utilities/GenerateInstantiations.hpp"
#include "... | 32.038462 | 80 | 0.660664 | macedo22 |
38eba04c71360f80a10e7d3f234dbbb4f92e7957 | 668 | hh | C++ | src/get_path_for_type.hh | YuryBandarchuk16/hh-apidoc | 996f8a606193fb111929d9e1b48ae772b0d1b12b | [
"MIT"
] | null | null | null | src/get_path_for_type.hh | YuryBandarchuk16/hh-apidoc | 996f8a606193fb111929d9e1b48ae772b0d1b12b | [
"MIT"
] | null | null | null | src/get_path_for_type.hh | YuryBandarchuk16/hh-apidoc | 996f8a606193fb111929d9e1b48ae772b0d1b12b | [
"MIT"
] | null | null | null | <?hh // strict
/*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
namespace Facebook\HHAPIDoc;
/** Get the path for something being used as a type.
*
* Th... | 24.740741 | 67 | 0.681138 | YuryBandarchuk16 |
38ef9f47b023bd7e0e9b01394c4d2c25014409f5 | 2,437 | hpp | C++ | queue.hpp | praktikum-tiunpad-2021/tugas-08a-bagus2705 | dc2f1fb3bb770db859c5c7ff1ce017a4a27ffd67 | [
"MIT"
] | null | null | null | queue.hpp | praktikum-tiunpad-2021/tugas-08a-bagus2705 | dc2f1fb3bb770db859c5c7ff1ce017a4a27ffd67 | [
"MIT"
] | null | null | null | queue.hpp | praktikum-tiunpad-2021/tugas-08a-bagus2705 | dc2f1fb3bb770db859c5c7ff1ce017a4a27ffd67 | [
"MIT"
] | null | null | null | #pragma once
namespace strukdat {
namespace priority_queue {
/**
* @brief Implementasi struct untuk elemen, harus ada isi dan prioritas elemen.
*/
template <typename T>
struct Element {
int data;
int prioritas;
Element * next;
};
template <typename T>
using ElementPtr = Element<T> *;
/**
* @brief implemet... | 19.653226 | 79 | 0.633566 | praktikum-tiunpad-2021 |
38f46ed4a07c21e7f0dee7fc02bbcc8e78615030 | 332 | cpp | C++ | CIELDIST.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | CIELDIST.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | CIELDIST.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int a,b,c;
cin>>a>>b>>c;
if (c>=(a+b))
{
printf("%d\n", c-(a+b));
}
else if (c>=(max(a,b))-min(a,b))
{
printf("0\n");
}
else
{
printf("%d\n", max(a,b) - c - min(a,b) );
}
}
... | 13.28 | 45 | 0.412651 | trehanarsh |
ac03bd0229e1ce1f736407db17dad731fd70187e | 1,117 | cpp | C++ | driver/simple_id_mapper.cpp | lonourney/csci5570 | 5b364406fdec3043bf09f39a00b5be1d831bc806 | [
"Apache-2.0"
] | 29 | 2017-09-19T12:26:21.000Z | 2021-03-13T01:41:13.000Z | driver/simple_id_mapper.cpp | lonourney/csci5570 | 5b364406fdec3043bf09f39a00b5be1d831bc806 | [
"Apache-2.0"
] | 3 | 2017-09-27T07:02:33.000Z | 2018-09-21T06:58:48.000Z | driver/simple_id_mapper.cpp | lonourney/csci5570 | 5b364406fdec3043bf09f39a00b5be1d831bc806 | [
"Apache-2.0"
] | 22 | 2017-09-19T06:51:44.000Z | 2020-06-25T05:54:00.000Z | #include "driver/simple_id_mapper.hpp"
#include <cinttypes>
#include <vector>
#include "base/node.hpp"
namespace csci5570 {
SimpleIdMapper::SimpleIdMapper(Node node, const std::vector<Node>& nodes) {
// TODO
}
uint32_t SimpleIdMapper::GetNodeIdForThread(uint32_t tid) {
// TODO
}
void SimpleIdMapper::Init(int ... | 23.270833 | 85 | 0.777081 | lonourney |
ac05b6b0a7abe94c0e21554c59fbd83d891b2ac5 | 4,771 | cpp | C++ | tests/src/devices/st/stm32f1/adc_test.cpp | onkwon/libabov | 54e54f42666dc3549c10dad905a14867283de294 | [
"MIT"
] | 2 | 2021-04-14T09:22:51.000Z | 2021-04-15T17:27:58.000Z | tests/src/devices/st/stm32f1/adc_test.cpp | onkwon/libabov | 54e54f42666dc3549c10dad905a14867283de294 | [
"MIT"
] | 62 | 2021-03-30T11:38:05.000Z | 2021-06-02T02:20:24.000Z | tests/src/devices/st/stm32f1/adc_test.cpp | onkwon/halmcu | 54e54f42666dc3549c10dad905a14867283de294 | [
"MIT"
] | 1 | 2021-04-10T19:09:04.000Z | 2021-04-10T19:09:04.000Z | #include "CppUTest/TestHarness.h"
#include "CppUTest/TestHarness_c.h"
#include "CppUTestExt/MockSupport.h"
#include <string.h>
#include "halmcu/periph/adc.h"
#include "stm32f1.h"
#include "halmcu/assert.h"
extern "C" {
static ADC_Type adcreg1, adcreg2, adcreg3;
static RCC_Type rcc_reg;
ADC_Type * const ADC1 = &adcre... | 29.269939 | 73 | 0.765039 | onkwon |
f19bb116689124862d1780dcbab047f2cf15398e | 7,842 | cpp | C++ | Cpp/SDK/W_InteractableList_VehicleBay_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 1 | 2020-08-15T08:31:55.000Z | 2020-08-15T08:31:55.000Z | Cpp/SDK/W_InteractableList_VehicleBay_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-15T08:43:56.000Z | 2021-01-15T05:04:48.000Z | Cpp/SDK/W_InteractableList_VehicleBay_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-10T12:05:42.000Z | 2021-02-12T19:56:10.000Z | // Name: S, Version: b
#include "../SDK.h"
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
// ... | 36.138249 | 176 | 0.768426 | MrManiak |
f19cd7c6e5ee1f136efa657c071fd18b35b531fb | 155 | cc | C++ | Engine/Source/Core/LogSystem.cc | SleepyMode/StormEngine | 3e595944adf93a5bf2362b025e8117a81a4316d8 | [
"BSD-3-Clause"
] | null | null | null | Engine/Source/Core/LogSystem.cc | SleepyMode/StormEngine | 3e595944adf93a5bf2362b025e8117a81a4316d8 | [
"BSD-3-Clause"
] | null | null | null | Engine/Source/Core/LogSystem.cc | SleepyMode/StormEngine | 3e595944adf93a5bf2362b025e8117a81a4316d8 | [
"BSD-3-Clause"
] | null | null | null |
#include "Core/LogSystem.h"
void LogSystem::write(std::string message)
{
for (auto listener : LogSystem::listeners)
{
listener->onLog(message);
}
}
| 14.090909 | 43 | 0.696774 | SleepyMode |
f19d6fb76270d335c37ce16e1c7585415c8e508a | 762 | cpp | C++ | engine/maps/tiles/source/HolyTileDamageProcessor.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/maps/tiles/source/HolyTileDamageProcessor.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/maps/tiles/source/HolyTileDamageProcessor.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "HolyTileDamageProcessor.hpp"
#include "TileTextKeys.hpp"
using namespace std;
// Divine powers can curse anything.
bool HolyTileDamageProcessor::affects_item(ItemPtr item)
{
return true;
}
string HolyTileDamageProcessor::get_message_sid() const
{
string message_sid = TileTextKeys::TILE_DAMAGE_HOLY;
r... | 19.05 | 56 | 0.755906 | prolog |
f1a2d2a053057f0d3c527aae085b7420844e8648 | 3,188 | hpp | C++ | mjolnir/forcefield/global/WCAPotential.hpp | ToruNiina/Mjolnir | 44435dd3afc12f5c8ea27a66d7ab282df3e588ff | [
"MIT"
] | 12 | 2017-02-01T08:28:38.000Z | 2018-08-25T15:47:51.000Z | mjolnir/forcefield/global/WCAPotential.hpp | Mjolnir-MD/Mjolnir | 043df4080720837042c6b67a5495ecae198bc2b3 | [
"MIT"
] | 60 | 2019-01-14T08:11:33.000Z | 2021-07-29T08:26:36.000Z | mjolnir/forcefield/global/WCAPotential.hpp | Mjolnir-MD/Mjolnir | 043df4080720837042c6b67a5495ecae198bc2b3 | [
"MIT"
] | 8 | 2019-01-13T11:03:31.000Z | 2021-08-01T11:38:00.000Z | #ifndef MJOLNIR_POTENTIAL_GLOBAL_WCA_POTENTIAL_HPP
#define MJOLNIR_POTENTIAL_GLOBAL_WCA_POTENTIAL_HPP
#include <algorithm>
#include <utility>
#include <cmath>
namespace mjolnir
{
template<typename T> class System;
// Well-known WCA interaction with Lorentz-Berthelot combining rules.
// This class contains sigmas and... | 29.794393 | 96 | 0.675345 | ToruNiina |
f1accc9f81351d8e33601c0b75afd4ccc2bbc21b | 49 | cpp | C++ | test/autogen/smp@algorithm@compare_with.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | test/autogen/smp@algorithm@compare_with.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | test/autogen/smp@algorithm@compare_with.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #include "jln/mp/smp/algorithm/compare_with.hpp"
| 24.5 | 48 | 0.795918 | jonathanpoelen |
f1b8490c8758f877f5c1d11e6dc2ae9c0a5121a8 | 763 | cpp | C++ | 1290-convert-binary-number-in-a-linked-list-to-integer/1290-convert-binary-number-in-a-linked-list-to-integer.cpp | dishanp/LeetCode-World | 6c49c8731dae772fb7bc47f777a4d3b3e01dd70e | [
"MIT"
] | null | null | null | 1290-convert-binary-number-in-a-linked-list-to-integer/1290-convert-binary-number-in-a-linked-list-to-integer.cpp | dishanp/LeetCode-World | 6c49c8731dae772fb7bc47f777a4d3b3e01dd70e | [
"MIT"
] | null | null | null | 1290-convert-binary-number-in-a-linked-list-to-integer/1290-convert-binary-number-in-a-linked-list-to-integer.cpp | dishanp/LeetCode-World | 6c49c8731dae772fb7bc47f777a4d3b3e01dd70e | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* 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) {}
* };
*/
class Solution {
public:
ListNode* rev(ListNod... | 21.194444 | 62 | 0.432503 | dishanp |
f1bcc8fd92e14483dd953024904a70d0147115a1 | 5,355 | cpp | C++ | COMP/WT/Src/CVLCCoder.cpp | hvanruys/PublicDecompWT-2.7.2 | b51650d633654b5397ca08818ef90c9e1057f9b8 | [
"Apache-2.0"
] | null | null | null | COMP/WT/Src/CVLCCoder.cpp | hvanruys/PublicDecompWT-2.7.2 | b51650d633654b5397ca08818ef90c9e1057f9b8 | [
"Apache-2.0"
] | null | null | null | COMP/WT/Src/CVLCCoder.cpp | hvanruys/PublicDecompWT-2.7.2 | b51650d633654b5397ca08818ef90c9e1057f9b8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2011-2019, European Organisation for the Exploitation of Meteorological Satellites (EUMETSAT)
*
* 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/l... | 29.585635 | 107 | 0.605789 | hvanruys |
f1bceb5c1aafd818fd8ada07c0f30fe8c3c1b21f | 3,502 | hpp | C++ | kernel/boost/statistics/detail/kernel/bandwidth_selection/detail/k_fold.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | kernel/boost/statistics/detail/kernel/bandwidth_selection/detail/k_fold.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | kernel/boost/statistics/detail/kernel/bandwidth_selection/detail/k_fold.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////////////
// kernel::bandwidth_selection::detail::cross_validate.hpp //
// //
// (C) Copyright 2009 Erwann Rogard ... | 32.12844 | 95 | 0.515705 | rogard |
f1c37fc8a0cf5aa4b9f59043a949fddb0422ef76 | 1,532 | cpp | C++ | Advanced/AA1012/AA1012/main.cpp | Eric-Ma-C/PAT-Advanced | ea8b46a780a04b46ab35ebd06c4bf19c3a664380 | [
"MIT"
] | null | null | null | Advanced/AA1012/AA1012/main.cpp | Eric-Ma-C/PAT-Advanced | ea8b46a780a04b46ab35ebd06c4bf19c3a664380 | [
"MIT"
] | null | null | null | Advanced/AA1012/AA1012/main.cpp | Eric-Ma-C/PAT-Advanced | ea8b46a780a04b46ab35ebd06c4bf19c3a664380 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
int main(){
int n;
scanf("%d",&n);
getchar();
char c[100][257];
char same[257]={0};
for(int i=0;i<n;i++){
fgets(c[i],257,stdin);
c[i][strlen(c[i])-1]='\0';
//gets_s(c[i]);
}
int t0=strlen(c[0])-1,t1=strlen(c[1])-1;
for(;t... | 16.473118 | 48 | 0.447781 | Eric-Ma-C |
f1cbc1d1654f3a1b0ebed909bd8c6fb57c813151 | 4,582 | hpp | C++ | include/color3.hpp | jvmnielsen/graphics-math | a7ac23dd28dd11747550238bbad6e0b364cf6cff | [
"MIT"
] | 1 | 2020-07-20T15:21:05.000Z | 2020-07-20T15:21:05.000Z | include/color3.hpp | jvmnielsen/graphics-math | a7ac23dd28dd11747550238bbad6e0b364cf6cff | [
"MIT"
] | null | null | null | include/color3.hpp | jvmnielsen/graphics-math | a7ac23dd28dd11747550238bbad6e0b364cf6cff | [
"MIT"
] | null | null | null | #pragma once
#include "util.hpp"
#include <cstdint>
#include <ostream>
#include <algorithm>
namespace gm {
template<typename Type>
class Color3
{
public:
Type r, g, b;
constexpr Color3() : r(0), g(0), b(0) { }
constexpr explicit Color3(Type val) : r(val), g(val), b(val) { }
... | 32.496454 | 97 | 0.502837 | jvmnielsen |
f1ce31b62251e710036763176766a7b7ffeef09a | 2,823 | cpp | C++ | vox.geometry/surface_to_implicit2.cpp | SummerTree/DigitalVox4 | 2eb718abcaccc4cd1dde3b0f28090c197c1905d4 | [
"MIT"
] | 6 | 2022-01-23T04:58:50.000Z | 2022-03-16T06:11:38.000Z | vox.geometry/surface_to_implicit2.cpp | SummerTree/DigitalVox4 | 2eb718abcaccc4cd1dde3b0f28090c197c1905d4 | [
"MIT"
] | null | null | null | vox.geometry/surface_to_implicit2.cpp | SummerTree/DigitalVox4 | 2eb718abcaccc4cd1dde3b0f28090c197c1905d4 | [
"MIT"
] | 1 | 2022-01-20T05:53:59.000Z | 2022-01-20T05:53:59.000Z | // Copyright (c) 2022 Feng Yang
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "surface_to_implicit2.h"
//#include <pch.h>
using namespace vox;
SurfaceToImplicit2::Surf... | 31.021978 | 110 | 0.741056 | SummerTree |
f1ce687f0b0f2b558414911c0eb7aeb982262eb3 | 773 | cpp | C++ | src/System/GlfwTools.cpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | 1 | 2022-02-10T04:41:57.000Z | 2022-02-10T04:41:57.000Z | src/System/GlfwTools.cpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | src/System/GlfwTools.cpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | #include "GlfwTools.hpp"
#include "Core/Debug/Profiler.hpp"
#include <GLFW/glfw3.h>
namespace DrkCraft
{
void init_glfw(void)
{
DRK_PROFILE_FUNCTION();
{
DRK_PROFILE_SCOPE("glfwInit");
auto status = glfwInit();
DRK_ASSERT_CORE(status == GLFW_TRUE, "Failed t... | 23.424242 | 78 | 0.564036 | D3r3k23 |
f1d216f3c4218c0676912ad07241986d0932e5a0 | 942 | cpp | C++ | codes/The String Problem.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/The String Problem.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/The String Problem.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : mehrab.24csedu.001@gmail.com
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
#include<bits/stdc++.h>
#include<algo... | 16.526316 | 48 | 0.343949 | smmehrab |
f1d4d7a53f7ebf772e33204edf2e2cf814664fe8 | 302 | cpp | C++ | tests/api/test_api.cpp | higherorderfunctor/snmp-fetch | c95e9f60d38901c500456dc6f07af343b36b4938 | [
"CC0-1.0"
] | null | null | null | tests/api/test_api.cpp | higherorderfunctor/snmp-fetch | c95e9f60d38901c500456dc6f07af343b36b4938 | [
"CC0-1.0"
] | 32 | 2019-09-19T05:25:07.000Z | 2019-12-05T20:28:17.000Z | tests/api/test_api.cpp | higherorderfunctor/snmp-fetch | c95e9f60d38901c500456dc6f07af343b36b4938 | [
"CC0-1.0"
] | null | null | null | #define CATCH_CONFIG_RUNNER
#include <pybind11/embed.h>
namespace py = pybind11;
#include "catch.hpp"
#include "test_fetch.hpp"
#include "test_utils.hpp"
int main( int argc, char* argv[] ) {
py::scoped_interpreter guard{};
int result = Catch::Session().run( argc, argv );
return result;
}
| 15.894737 | 50 | 0.698675 | higherorderfunctor |
f1d56b57b603cf5f39d5b2d2cfb044318ca6a675 | 859 | cpp | C++ | AmberEngineV01/SwapChain.cpp | MortenHavmoeller/AmberEngine | c17fa07c4737c5f196f0fe3c3b8c56b077be70b3 | [
"MIT"
] | null | null | null | AmberEngineV01/SwapChain.cpp | MortenHavmoeller/AmberEngine | c17fa07c4737c5f196f0fe3c3b8c56b077be70b3 | [
"MIT"
] | null | null | null | AmberEngineV01/SwapChain.cpp | MortenHavmoeller/AmberEngine | c17fa07c4737c5f196f0fe3c3b8c56b077be70b3 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "SwapChain.h"
//SwapChain::SwapChain()
//{
//}
//
//
//SwapChain::~SwapChain()
//{
//}
//
//void SwapChain::create(WindowView* view, Device* device) {
// pWindowView = view;
// pDevice = device;
//}
//
//void SwapChain::cleanup() {
// //for (auto framebuffer : swapChainFramebuffers) {
// ... | 23.861111 | 116 | 0.688009 | MortenHavmoeller |
f1d6a30433503b146f3d0fb572751aa991df842d | 200,682 | inl | C++ | 2d_samples/pmj02_239.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | 1 | 2021-12-10T23:35:04.000Z | 2021-12-10T23:35:04.000Z | 2d_samples/pmj02_239.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | 2d_samples/pmj02_239.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | {std::array<float,2>{0.802370131f, 0.0774969831f},
std::array<float,2>{0.0737312138f, 0.791895688f},
std::array<float,2>{0.658921003f, 0.676377773f},
std::array<float,2>{0.277076811f, 0.31233868f},
std::array<float,2>{0.605151117f, 0.433808684f},
std::array<float,2>{0.412116617f, 0.622748852f},
std::array<float,2>{0.92... | 48.994629 | 52 | 0.73466 | st-ario |
f1d6dd9fc008f906e5a271cef4bbc8726858d2c8 | 3,017 | hpp | C++ | fon9/PkCont.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 21 | 2019-01-29T14:41:46.000Z | 2022-03-11T00:22:56.000Z | fon9/PkCont.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | null | null | null | fon9/PkCont.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 9 | 2019-01-27T14:19:33.000Z | 2022-03-11T06:18:24.000Z | // \file fon9/PkCont.hpp
// \author fonwinz@gmail.com
#ifndef __fon9_PkCont_hpp__
#define __fon9_PkCont_hpp__
#include "fon9/SortedVector.hpp"
#include "fon9/Timer.hpp"
namespace fon9 {
/// \ingroup Misc.
/// 確保收到封包的連續性.
/// - 可能有多個資訊源, 但序號相同.
/// - 即使同一個資訊源封包也可能亂序.
/// - 若封包序號小於期望, 視為重複封包, 拋棄之.
/// - 若封包序號不連續, 則等候一... | 29.291262 | 78 | 0.646006 | fonwin |
f1da7a37ea9b13b8060646318174c4bc8cfdd0bc | 3,101 | cpp | C++ | problems/codejam/2019/1A/pylons/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codejam/2019/1A/pylons/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codejam/2019/1A/pylons/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// *****
struct place_t {
int r, c;
};
bool operator<(place_t lhs, place_t rhs) {
return make_pair(lhs.r, lhs.c) < make_pair(rhs.r, rhs.c);
}
#define MAXN 21
vector<place_t> solutions[MAXN][MAXN];
vector<place_t> sol3x4 = {
{2, 3}, {3, 1}, {2, 4}, {1, 2},... | 23.492424 | 83 | 0.422122 | brunodccarvalho |
f1dd9b17d40d7b2040530b6441ef411cbcee7aa4 | 500 | cpp | C++ | test/homework_test/02_expressions_test/02_expressions_tests.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-theblue-bay | 6754b2a96fc6aa90007c340dd3cc12788b9018bb | [
"MIT"
] | null | null | null | test/homework_test/02_expressions_test/02_expressions_tests.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-theblue-bay | 6754b2a96fc6aa90007c340dd3cc12788b9018bb | [
"MIT"
] | null | null | null | test/homework_test/02_expressions_test/02_expressions_tests.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-theblue-bay | 6754b2a96fc6aa90007c340dd3cc12788b9018bb | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "../src/homework/02_expressions/expressions.h"
TEST_CASE("Verify Test Configuration", "verification")
{
REQUIRE(true == true);
}
TEST_CASE("Test Get Sales Tax")
{
REQUIRE(getSalesTaxAmou... | 25 | 97 | 0.702 | acc-cosc-1337-spring-2022 |
f1de71202ee573d03677e08425fa67f690c4026a | 3,657 | hpp | C++ | bftengine/src/bftengine/CheckpointInfo.hpp | cloudnoize/concord-bft | f87f424dd5b93a4d6946158bf0d476caf559db0a | [
"Apache-2.0"
] | 340 | 2018-08-27T16:30:45.000Z | 2022-03-28T14:31:44.000Z | bftengine/src/bftengine/CheckpointInfo.hpp | cloudnoize/concord-bft | f87f424dd5b93a4d6946158bf0d476caf559db0a | [
"Apache-2.0"
] | 706 | 2018-09-02T17:50:32.000Z | 2022-03-31T13:03:15.000Z | bftengine/src/bftengine/CheckpointInfo.hpp | glevkovich/concord-bft | a1b7b57472f5375230428d16c613a760b33233fa | [
"Apache-2.0"
] | 153 | 2018-08-29T05:37:25.000Z | 2022-03-23T14:08:45.000Z | // Concord
//
// Copyright (c) 2018 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in
// compliance with the Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyright no... | 34.17757 | 120 | 0.737216 | cloudnoize |
f1dfa464f3b41b8c7d97cc58f02ea76fe8491389 | 1,317 | cpp | C++ | Graph Algorithm/Floyd Warshall Algorithm/Floyd Warshall Algorithm.cpp | vector94/Competitive-programming-library | 732edf71889f5770564dfb7ec6a1bf477b1d3ba2 | [
"MIT"
] | null | null | null | Graph Algorithm/Floyd Warshall Algorithm/Floyd Warshall Algorithm.cpp | vector94/Competitive-programming-library | 732edf71889f5770564dfb7ec6a1bf477b1d3ba2 | [
"MIT"
] | null | null | null | Graph Algorithm/Floyd Warshall Algorithm/Floyd Warshall Algorithm.cpp | vector94/Competitive-programming-library | 732edf71889f5770564dfb7ec6a1bf477b1d3ba2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int V = 109;
const int INF = 999999;
int node;
int adjMatrix[V][V];
int dist[V][V];
void floydWarshall()
{
for (int k = 0; k < node; k++){
for (int i = 0; i < node; i++){
for (int j = 0; j < node; j++){
if (dist[i][j] > dist[... | 18.291667 | 58 | 0.34776 | vector94 |
f1e079ca5bebb842cbe51e196c6ebf9144ab7965 | 1,203 | cpp | C++ | test/iterator/indirect_iterator.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | test/iterator/indirect_iterator.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | test/iterator/indirect_iterator.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #include <vector>
#include <test/test.hpp>
#include <test/check_sequence.hpp>
#include <falcon/iterator/indirect_iterator.hpp>
#include <falcon/functional/operators.hpp>
#include "indirect_iterator.hpp"
void indirect_iterator_test()
{
typedef std::vector<int*> container_type;
typedef typename container_type::iterato... | 23.588235 | 100 | 0.640898 | jonathanpoelen |
f1e2990176e5053ad46e3b8f41be532ff3b4d45f | 907 | cpp | C++ | Audio/getAudioData.cpp | Cindytb/Convolution-Reverb-Benchmarks | c4d9c8f91b5f3e16bfd4ad4e67f70d2ff95d9f59 | [
"Apache-2.0"
] | 1 | 2019-12-20T01:28:19.000Z | 2019-12-20T01:28:19.000Z | Audio/getAudioData.cpp | Cindytb/Convolution-Reverb-Benchmarks | c4d9c8f91b5f3e16bfd4ad4e67f70d2ff95d9f59 | [
"Apache-2.0"
] | null | null | null | Audio/getAudioData.cpp | Cindytb/Convolution-Reverb-Benchmarks | c4d9c8f91b5f3e16bfd4ad4e67f70d2ff95d9f59 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <sndfile.h>
int main(int argc, char **argv){
if(argc != 2){
printf("Usage: %s filename.wav\n", argv[0]);
return 1;
}
SF_INFO info;
SNDFILE *sndfile;
memset(&info, 0, sizeof(info));
/*Read input*/
sndfile = sf_open(argv[1], SFM_READ, &inf... | 25.914286 | 54 | 0.578831 | Cindytb |
f1ecc748db9f4ec4f429a7fed751674ce8d1cab2 | 232 | hpp | C++ | Graphics/DearImGUI/Histogram.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | 2 | 2021-06-09T00:38:46.000Z | 2021-09-04T21:55:33.000Z | Graphics/DearImGUI/Histogram.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | null | null | null | Graphics/DearImGUI/Histogram.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | 1 | 2021-08-30T00:46:12.000Z | 2021-08-30T00:46:12.000Z |
#ifndef LANDESSDEVCORE_IMGUI_HISTOGRAM
#define LANDESSDEVCORE_IMGUI_HISTOGRAM
#include "Graphics/DearImGUI/imgui.h"
namespace LD
{
namespace IMGUI
{
class Histogram
{
};
}
}
#endif | 13.647059 | 38 | 0.62931 | jlandess |
f1ef6b03c922618600fa0c555689b2a61197efe9 | 1,043 | cpp | C++ | MoteEmu/src/main.cpp | inferno16/MoteEmu | 7910a6f9ec03e8ecc5a6600055e0eb1a6b1b7b14 | [
"MIT"
] | null | null | null | MoteEmu/src/main.cpp | inferno16/MoteEmu | 7910a6f9ec03e8ecc5a6600055e0eb1a6b1b7b14 | [
"MIT"
] | null | null | null | MoteEmu/src/main.cpp | inferno16/MoteEmu | 7910a6f9ec03e8ecc5a6600055e0eb1a6b1b7b14 | [
"MIT"
] | null | null | null | #include <memory>
#include <stdio.h>
#include "VM.h"
#include "Chip8.h"
#include "test.h"
#ifndef TEST
int main(int argc, char** argv) {
#else
int _main(int argc, char** argv) {
#endif // !TEST
if (argc != 2) {
printf_s("%u arguments passed. Expected: %u.\n", argc, 2);
return 1;
}
Chip8 chip8;
VM vm(&chip8, ... | 25.439024 | 60 | 0.673058 | inferno16 |
f1f30228e892daea4d3759f5b5f054b9910ba41d | 462 | hpp | C++ | kernel/Types/TBCD.hpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | 4 | 2020-08-18T00:11:09.000Z | 2021-04-05T11:16:32.000Z | kernel/Types/TBCD.hpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | 1 | 2020-08-15T20:39:13.000Z | 2020-08-15T20:39:13.000Z | kernel/Types/TBCD.hpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | null | null | null | #ifndef GENUS_TBCD_H
#define GENUS_TBCD_H
#include <Types.hpp>
// useful for scores and other numbers printed on screen
struct TBCD {
TBCD(TUint32 aValue);
TBCD(TBCD &aValue);
TBCD(const char *aValue);
TBCD();
public:
void ToString(char aDest[], TBool aZeroPad = ETrue);
void Add(TBCD &aValue);
voi... | 13.588235 | 56 | 0.683983 | mschwartz |
f1f4c6d9cf76e0166b679e3d32f8612986d5d0ea | 504 | cpp | C++ | systemtrading/main.cpp | minseok127/sTrader | 3d6a5488f6125c82b94847c7128d887894dc9367 | [
"MIT"
] | null | null | null | systemtrading/main.cpp | minseok127/sTrader | 3d6a5488f6125c82b94847c7128d887894dc9367 | [
"MIT"
] | 2 | 2021-12-04T05:20:30.000Z | 2021-12-05T04:36:23.000Z | systemtrading/main.cpp | minseok127/sTrader | 3d6a5488f6125c82b94847c7128d887894dc9367 | [
"MIT"
] | null | null | null | #include "centerboard.h"
#include "controlcenter.h"
#include "trader.h"
#include <QApplication>
using namespace std;
class Bunt : public Trader{
void trade();
};
void Bunt::trade(){
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
CenterBoard w;
ControlCenter* center = new Contro... | 14.4 | 46 | 0.636905 | minseok127 |
f1f82d25afb1d930d89bbcb17809fd5b61600dcd | 839 | cpp | C++ | part-02/1_01_linked-list-cycle.cpp | abhijeetbodas2001/DSA | ff244dea639a4a5c203e21df3efa47ff079f452a | [
"MIT"
] | null | null | null | part-02/1_01_linked-list-cycle.cpp | abhijeetbodas2001/DSA | ff244dea639a4a5c203e21df3efa47ff079f452a | [
"MIT"
] | null | null | null | part-02/1_01_linked-list-cycle.cpp | abhijeetbodas2001/DSA | ff244dea639a4a5c203e21df3efa47ff079f452a | [
"MIT"
] | null | null | null | // Problem: https://leetcode.com/problems/linked-list-cycle/
// O(n) time, O(1) space
// Fast and slow pointers
// Logic -> If there is a loop, the fast and the slow pointers
// will definitely meet.
// https://www.geeksforgeeks.org/how-does-floyds-slow-and-fast-pointers-approach-work/
/**
* Definition for ... | 22.078947 | 87 | 0.563766 | abhijeetbodas2001 |
7b02d1e6eb9977fa59167f718cf8bb3dd04892d2 | 3,325 | cpp | C++ | newton-3.14/applications/tutorialsSDK300/CNewtonTutorials/tutorial_201_PlayerController/main.cpp | execomrt/newton-dynamics | b38363000bed09cf514cdad92013b0c0b4c48f3f | [
"Zlib"
] | 1,031 | 2015-01-02T14:08:47.000Z | 2022-03-29T02:25:27.000Z | newton-3.14/applications/tutorialsSDK300/CNewtonTutorials/tutorial_201_PlayerController/main.cpp | execomrt/newton-dynamics | b38363000bed09cf514cdad92013b0c0b4c48f3f | [
"Zlib"
] | 240 | 2015-01-11T04:27:19.000Z | 2022-03-30T00:35:57.000Z | newton-3.14/applications/tutorialsSDK300/CNewtonTutorials/tutorial_201_PlayerController/main.cpp | execomrt/newton-dynamics | b38363000bed09cf514cdad92013b0c0b4c48f3f | [
"Zlib"
] | 224 | 2015-01-05T06:13:54.000Z | 2022-02-25T14:39:51.000Z | /*
* File: main.cpp
* Author: main
*
* Created on 24 de julio de 2014, 21:17
*/
#include "stdafx.h"
#include <iostream>
#include <dVector.h>
#include <dMatrix.h>
#include <dNewton.h>
#include <dNewtonCollision.h>
#include <dNewtonDynamicBody.h>
#include <dNewtonPlayerManager.h>
//----------------------------... | 29.424779 | 235 | 0.59188 | execomrt |
7b04bc04070b1514b1e465478be409b933ed5df0 | 854 | hpp | C++ | source/zisc/core/zisc/math/unit.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | 2 | 2017-10-18T13:24:11.000Z | 2018-05-15T00:40:52.000Z | source/zisc/core/zisc/math/unit.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | 9 | 2016-09-05T11:07:03.000Z | 2019-07-05T15:31:04.000Z | source/zisc/core/zisc/math/unit.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | null | null | null | /*!
\file unit.hpp
\author Sho Ikeda
\brief No brief description
\details
No detailed description.
\copyright
Copyright (c) 2015-2021 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef ZISC_UNIT_HPP
#define ZISC_UNIT_HPP
// Standa... | 18.170213 | 55 | 0.733021 | byzin |
7b05283377ac7e30ddc1a0b5430a2e0a6a588515 | 1,284 | cc | C++ | moses2/main/logical-reductor.cc | moshelooks/moses | 81568276877f24c2cb1ca5649d44e22fba6f44b2 | [
"Apache-2.0"
] | null | null | null | moses2/main/logical-reductor.cc | moshelooks/moses | 81568276877f24c2cb1ca5649d44e22fba6f44b2 | [
"Apache-2.0"
] | null | null | null | moses2/main/logical-reductor.cc | moshelooks/moses | 81568276877f24c2cb1ca5649d44e22fba6f44b2 | [
"Apache-2.0"
] | null | null | null | /****
Copyright 2005-2007, Moshe Looks and Novamente LLC
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 applica... | 26.75 | 75 | 0.640187 | moshelooks |
7b0826f75ef7fa20c6665210f3ab964cca196dea | 1,350 | cpp | C++ | SVEngine/src/node/SV2DFaceMaskNode.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/node/SV2DFaceMaskNode.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/node/SV2DFaceMaskNode.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | //
// SV2DFaceMaskNode.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SV2DFaceMaskNode.h"
#include "SVCameraNode.h"
#include "SVScene.h"
#include "../app/SVInst.h"
#include "../basesys/SVConfig.h"
#include "../mtl/SVTexMgr.h"
#include "../mtl/SVTextur... | 24.545455 | 62 | 0.713333 | SVEChina |
7b0c11475418494fa9b7a587f50b7824efb72b7f | 4,349 | cpp | C++ | Final/Dataset/B2016_Z3_Z1/student1453.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z3_Z1/student1453.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z3_Z1/student1453.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | /B2016/2017: Zadaća 3, Zadatak 1
//Autotestovi by Enil Pajic (epajic1@etf.unsa.ba)
#include <iostream>
#include <functional>
#include <cmath>
#include <vector>
#include <stdexcept>
double xsinx (double x){return x*x+sin(x);}
double min(double x, double y){
if(x<y) return x;
else return y;
}
d... | 32.699248 | 163 | 0.47988 | Team-PyRated |
7b134d1304fca6ef2bbfc4dc8cf4ddb67ec51438 | 3,878 | cpp | C++ | Netcode/Network/Cookie.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | Netcode/Network/Cookie.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | Netcode/Network/Cookie.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | #include "Cookie.h"
#include <boost/algorithm/string.hpp>
#include <vector>
#include <algorithm>
namespace Netcode::Network {
Cookie::Cookie() : createdAt{}, maxAge{}, name{}, value{}, domain{}, path{}, cookieString{}, secure{}, httpOnly{} { }
const std::string & Cookie::GetName() const {
return name;
... | 28.725926 | 136 | 0.4082 | tyekx |
7b1f9fdf65e5e47230e9f4abeeda352cbaef4a3c | 606 | cpp | C++ | HelicopterSimulator/DirectionAngle.cpp | MikeEckels/HillicopterSimulator | 2ea290356ab713456008f0559dd52328129ac34e | [
"MIT"
] | 1 | 2021-12-07T14:52:30.000Z | 2021-12-07T14:52:30.000Z | HelicopterSimulator/DirectionAngle.cpp | MikeEckels/HillicopterSimulator | 2ea290356ab713456008f0559dd52328129ac34e | [
"MIT"
] | null | null | null | HelicopterSimulator/DirectionAngle.cpp | MikeEckels/HillicopterSimulator | 2ea290356ab713456008f0559dd52328129ac34e | [
"MIT"
] | 1 | 2020-09-15T16:54:00.000Z | 2020-09-15T16:54:00.000Z | #include "DirectionAngle.h"
DirectionAngle::DirectionAngle(double rotation, double x, double y, double z) {
Rotation = rotation;
Direction = Vector3D(x, y, z);
}
DirectionAngle::DirectionAngle(double rotation, Vector3D direction) {
Rotation = rotation;
Direction = direction;
}
String DirectionAngle::ToString() {... | 28.857143 | 79 | 0.722772 | MikeEckels |
7b22b8b834b78daac1a315277173659021264e75 | 28,614 | cpp | C++ | CMySnake/CMySnake_GUI/CMySnake_GUI.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | CMySnake/CMySnake_GUI/CMySnake_GUI.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | CMySnake/CMySnake_GUI/CMySnake_GUI.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | // CMySnake_GUI.cpp : 定义应用程序的入口点。
//
#include "framework.h"
#include "CMySnake_GUI.h"
#include "../../resource/tool.h"
using namespace std;
#define MAX_LOADSTRING 100
#pragma comment(lib, "comctl32.lib")
#pragma comment(linker,"\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.... | 27.045369 | 94 | 0.64458 | shc0743 |
7b29aa97ec10f7f3255f503125174fa70549ab98 | 3,217 | cpp | C++ | csgo-studio-common/tcp_socket.cpp | SweetId/csgo-studio | 627dac811573d8f8bba1bb9a9f69db9061134e31 | [
"MIT"
] | null | null | null | csgo-studio-common/tcp_socket.cpp | SweetId/csgo-studio | 627dac811573d8f8bba1bb9a9f69db9061134e31 | [
"MIT"
] | null | null | null | csgo-studio-common/tcp_socket.cpp | SweetId/csgo-studio | 627dac811573d8f8bba1bb9a9f69db9061134e31 | [
"MIT"
] | null | null | null | #include "tcp_socket.h"
#include <WinSock2.h>
#include <WS2tcpip.h>
TcpSocket::TcpSocket()
{
Reset();
}
TcpSocket::~TcpSocket()
{
closesocket(m_socket);
}
TcpSocket::TcpSocket(TcpSocket&& o)
: m_socket(o.m_socket)
, m_port(o.m_port)
, m_address(o.m_address)
{
o.Reset();
}
TcpSocket& TcpSocket::operator=(TcpS... | 19.49697 | 83 | 0.686665 | SweetId |
7b2d7e132ee7af945d95e40cf5f98db643283fd3 | 9,831 | cpp | C++ | apps/openmw/mwclass/light.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwclass/light.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwclass/light.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null |
#include "light.hpp"
#include <components/esm/loadligh.hpp>
#include <components/esm/lightstate.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/soundmanager.hpp"
#include "../mwbase/windowmanager.hpp"
#include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp"
#in... | 32.127451 | 125 | 0.603601 | Bodillium |
7b30f1a0948d377ba7e9ddd2b6cc657e7de2736f | 1,557 | hh | C++ | aibo_server/external/include/urbi/uproperty.hh | dkotfis/aibo_ros | eec7a9dc21779a289eb3bfa48d66cedd830176d3 | [
"MIT"
] | 3 | 2018-02-06T07:09:18.000Z | 2018-08-21T07:32:58.000Z | aibo_server/external/include/urbi/uproperty.hh | dkotfis/aibo_ros | eec7a9dc21779a289eb3bfa48d66cedd830176d3 | [
"MIT"
] | null | null | null | aibo_server/external/include/urbi/uproperty.hh | dkotfis/aibo_ros | eec7a9dc21779a289eb3bfa48d66cedd830176d3 | [
"MIT"
] | 1 | 2019-09-15T11:47:27.000Z | 2019-09-15T11:47:27.000Z | /// \file urbi/uproperty.hh
// This file is part of UObject Component Architecture
// Copyright (c) 2008 Gostai S.A.S.
//
// Permission to use, copy, modify, and redistribute this software for
// non-commercial use is hereby granted.
//
// This software is provided "as is" without warranty of any kind,
// either expre... | 19.961538 | 72 | 0.65639 | dkotfis |
7b3163a20578c2fed159ded4192be3114852694a | 211 | hpp | C++ | src/module.hpp | voidgloom/hyperfetch-cpp | bc70a60150908a6b3769b72dd57495c7c8b298c0 | [
"MIT"
] | null | null | null | src/module.hpp | voidgloom/hyperfetch-cpp | bc70a60150908a6b3769b72dd57495c7c8b298c0 | [
"MIT"
] | null | null | null | src/module.hpp | voidgloom/hyperfetch-cpp | bc70a60150908a6b3769b72dd57495c7c8b298c0 | [
"MIT"
] | null | null | null | #ifndef MODULE
#define MODULE
#include <string>
#
class HyperfetchModule {
public:
bool noSeperator = false;
std::string content;
std::string prefix;
void print();
void fetch();
};
#endif
| 14.066667 | 29 | 0.654028 | voidgloom |
7b331bb90163dc9c366259071316093c9c25c6e7 | 1,516 | cpp | C++ | Src/SamplerObject.cpp | Remag/GraphicsInversed | 6dff72130891010774c37d1e44080261db3cdb8e | [
"MIT"
] | null | null | null | Src/SamplerObject.cpp | Remag/GraphicsInversed | 6dff72130891010774c37d1e44080261db3cdb8e | [
"MIT"
] | null | null | null | Src/SamplerObject.cpp | Remag/GraphicsInversed | 6dff72130891010774c37d1e44080261db3cdb8e | [
"MIT"
] | null | null | null | #include <common.h>
#pragma hdrstop
#include <SamplerObject.h>
#include <GinGlobals.h>
#include <GlContextManager.h>
namespace Gin {
//////////////////////////////////////////////////////////////////////////
CSamplerOwner::CSamplerOwner() :
samplerId( createSampler() )
{
SetMinFilter( TF_Nearest );
... | 20.767123 | 81 | 0.608839 | Remag |
7b35235e46cc1c5c99bf7a6d6efe676d79df4c19 | 7,138 | cpp | C++ | Game (source code)/Motor2D/j1FadeToBlack.cpp | Needlesslord/GameDev | 58db59e4765bd807b7ba4336716f13aa7f74551a | [
"MIT"
] | 2 | 2019-11-30T10:16:58.000Z | 2020-10-16T12:31:27.000Z | Game (source code)/Motor2D/j1FadeToBlack.cpp | Needlesslord/Platformer_GD | 58db59e4765bd807b7ba4336716f13aa7f74551a | [
"MIT"
] | null | null | null | Game (source code)/Motor2D/j1FadeToBlack.cpp | Needlesslord/Platformer_GD | 58db59e4765bd807b7ba4336716f13aa7f74551a | [
"MIT"
] | null | null | null | //#include <math.h>
//#include "j1App.h"
//#include "j1FadeToBlack.h"
//#include "j1Render.h"
//#include "SDL/include/SDL_render.h"
//#include "SDL/include/SDL_timer.h"
//#include "j1Window.h"
//#include "j1Collisions.h"
//#include "j1Map.h"
//#include "j1Player.h"
//#include "j1Entity.h"
//#include "j1Particles.h"
//#... | 24.613793 | 128 | 0.584758 | Needlesslord |
7b3f320ff413a3b473e024d95ce06fdef793cccc | 2,168 | hxx | C++ | src/cxon/lang/common/allocator.hxx | oknenavin/cxon | 29df5c162baf686dbc3ed5339d88cb61d63d4992 | [
"MIT"
] | 8 | 2019-04-04T20:42:23.000Z | 2021-12-11T17:52:48.000Z | src/cxon/lang/common/allocator.hxx | oknenavin/cxon | 29df5c162baf686dbc3ed5339d88cb61d63d4992 | [
"MIT"
] | 1 | 2021-02-20T18:26:18.000Z | 2021-02-20T18:27:41.000Z | src/cxon/lang/common/allocator.hxx | oknenavin/cxon | 29df5c162baf686dbc3ed5339d88cb61d63d4992 | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2021 oknenavin.
// Licensed under the MIT license. See LICENSE file in the library root for full license information.
//
// SPDX-License-Identifier: MIT
#ifndef CXON_ALLOCATOR_HXX_
#define CXON_ALLOCATOR_HXX_
#include "cxon/utility.hxx"
#include <memory>
namespace cxon {
CXON_PARAMETER(all... | 34.412698 | 101 | 0.519373 | oknenavin |
7b409054dc0289d16fab2f00d1b48083029ed211 | 761 | cc | C++ | leetcode/1530-check-if-a-string-can-break-another-string.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | leetcode/1530-check-if-a-string-can-break-another-string.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | leetcode/1530-check-if-a-string-can-break-another-string.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | class Solution {
public:
bool checkIfCanBreak(string s1, string s2) {
vector<char> s1c(s1.size());
vector<char> s2c(s2.size());
for(int i=0;i<s1.size();i++){
s1c[i]=s1[i];
s2c[i]=s2[i];
}
sort(s1c.begin(),s1c.end());
sort(s2c.begin(),... | 26.241379 | 59 | 0.39159 | Magic07 |
7b46cb9ca826d8305f053848845acc50bdc3c0b6 | 4,920 | cpp | C++ | src/loop.cpp | yrro/DoTe | d3352c3bf800db9a708004270ad9b65fc8303049 | [
"MIT"
] | 16 | 2020-09-29T09:01:53.000Z | 2022-03-30T10:18:11.000Z | src/loop.cpp | yrro/DoTe | d3352c3bf800db9a708004270ad9b65fc8303049 | [
"MIT"
] | 16 | 2018-04-06T22:39:07.000Z | 2022-03-06T21:34:52.000Z | src/loop.cpp | chrisstaite/DoTe | c0f8e13df80e112f27571fec7e3d75499b02719a | [
"MIT"
] | 4 | 2019-10-21T05:31:52.000Z | 2022-01-15T15:13:16.000Z |
#include "loop.h"
#include "log.h"
#include <algorithm>
namespace dote {
void Loop::run()
{
int currentTimeout = timeout();
std::vector<pollfd> fds;
populateFds(fds);
while (fds.size() > 0 &&
poll(&fds.front(), fds.size(), currentTimeout) >= 0)
{
for (const auto& fd : fds)
... | 22.990654 | 91 | 0.552033 | yrro |
0dac2d662a311da880e7e8e5276ff4a5e1eaee7b | 20,776 | cpp | C++ | Fruc.cpp | wjy5446/ImageStitching | ffebd75efe38ce7d2d367d022a6a96fd5248a32f | [
"MIT"
] | 1 | 2018-12-21T22:12:26.000Z | 2018-12-21T22:12:26.000Z | Fruc.cpp | alexvonduar/SportsBroadSystem-TrackingVideo | 60a7141e8ea65523f316c115acb4aa315edf972d | [
"MIT"
] | null | null | null | Fruc.cpp | alexvonduar/SportsBroadSystem-TrackingVideo | 60a7141e8ea65523f316c115acb4aa315edf972d | [
"MIT"
] | 3 | 2018-03-14T02:22:25.000Z | 2021-10-21T01:47:03.000Z | // Fruc.cpp: implementation of the CFruc class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ImageProcessing.h"
#include "Fruc.h"
#include "Image.h"
#include <cmath>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#end... | 25.808696 | 154 | 0.570947 | wjy5446 |
0db38a025b4d960d63e5b3843e6e44f3321984f6 | 5,223 | hpp | C++ | examples/ex8.hpp | s-martin/galib | 2dd82ad2b7e649d7372876afbcde77925f2700ce | [
"BSD-3-Clause"
] | 1 | 2022-02-26T00:24:52.000Z | 2022-02-26T00:24:52.000Z | examples/ex8.hpp | s-martin/galib | 2dd82ad2b7e649d7372876afbcde77925f2700ce | [
"BSD-3-Clause"
] | 2 | 2021-04-14T20:39:39.000Z | 2021-08-25T04:13:40.000Z | examples/ex8.hpp | s-martin/galib | 2dd82ad2b7e649d7372876afbcde77925f2700ce | [
"BSD-3-Clause"
] | 2 | 2021-04-17T22:02:44.000Z | 2022-03-21T21:00:59.000Z | #pragma once
#include <GASStateGA.h>
#include <GAListGenome.hpp>
#include <iostream>
/* ----------------------------------------------------------------------------
Objective function
There is no limit to the size of a list (only the memory you have on your
computer). This objective function tries to build a lis... | 43.165289 | 79 | 0.671836 | s-martin |
0db6daee93a41c7bf32c466ec083b6b29cd95a08 | 19,244 | cpp | C++ | source/editor/PQMapNode.cpp | nicolasjinchereau/pizza-quest | 5b9d15ea78f4d7cbb97b3e89efe858025aea8c95 | [
"MIT"
] | null | null | null | source/editor/PQMapNode.cpp | nicolasjinchereau/pizza-quest | 5b9d15ea78f4d7cbb97b3e89efe858025aea8c95 | [
"MIT"
] | null | null | null | source/editor/PQMapNode.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.
*---------------------------------------------------------------------... | 21.031694 | 130 | 0.655477 | nicolasjinchereau |
0db7f6c968e329e1ed05f6acd1005096f6a7a333 | 1,626 | cpp | C++ | src/Apps/Tools/I2CScanner.cpp | beNative/M5Stack-MultiApp-Advanced | c1352854a2127180d71209dff160a5ddf6aae577 | [
"MIT"
] | 147 | 2018-05-02T01:15:34.000Z | 2022-03-16T06:51:15.000Z | src/Apps/Tools/I2CScanner.cpp | beNative/M5Stack-MultiApp-Advanced | c1352854a2127180d71209dff160a5ddf6aae577 | [
"MIT"
] | 15 | 2018-04-25T08:55:25.000Z | 2020-07-20T06:01:57.000Z | src/Apps/Tools/I2CScanner.cpp | beNative/M5Stack-MultiApp-Advanced | c1352854a2127180d71209dff160a5ddf6aae577 | [
"MIT"
] | 39 | 2018-04-28T23:14:37.000Z | 2022-01-15T10:18:12.000Z | #include "I2CScanner.h"
void I2CScannerClass::Run()
{
M5m.update();
M5m.drawAppMenu(F("I2C SCANNER"), F("ESC"), F("SCAN"), F(""));
while (!M5m.BtnA.wasPressed())
{
if (scanrun == HIGH)
{
scanrun = LOW;
nDevices = 0;
for (address = 1; address < 127; a... | 25.809524 | 99 | 0.359779 | beNative |
0dbb6b549381192207ea49bb6fd950aea9ab470a | 901 | hpp | C++ | ogsr_engine/xrCore/Utils/imdexlib/mpl.hpp | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 247 | 2018-11-02T18:50:55.000Z | 2022-03-15T09:11:43.000Z | ogsr_engine/xrCore/Utils/imdexlib/mpl.hpp | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 193 | 2018-11-02T20:12:44.000Z | 2022-03-07T13:35:17.000Z | ogsr_engine/xrCore/Utils/imdexlib/mpl.hpp | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 106 | 2018-10-26T11:33:01.000Z | 2022-03-19T12:34:20.000Z | #pragma once
#include <type_traits>
namespace imdexlib {
class end_t {};
template <typename Predicate, typename... Ts>
struct find_if;
template <typename Predicate, typename T, typename... Ts>
struct find_if<Predicate, T, Ts...>
{
private:
using result = typename Predicate::template type<T>;
public:
using ... | 18.770833 | 59 | 0.669256 | stepa2 |
0dbca6b77b29c37705d6bdee874d698a02ea5040 | 5,682 | cpp | C++ | src/3rdParty/ogdf-2020/test/src/resources.cpp | MichaelTiernan/qvge | aff978d8592e07e24af4b8bab7c3204a7e7fb3fb | [
"MIT"
] | null | null | null | src/3rdParty/ogdf-2020/test/src/resources.cpp | MichaelTiernan/qvge | aff978d8592e07e24af4b8bab7c3204a7e7fb3fb | [
"MIT"
] | null | null | null | src/3rdParty/ogdf-2020/test/src/resources.cpp | MichaelTiernan/qvge | aff978d8592e07e24af4b8bab7c3204a7e7fb3fb | [
"MIT"
] | null | null | null | /** \file
* \brief Resource file abstraction to be used in tests. Resources
* are compiled into binary format and can be accessed with the
* classes provided by this file.
*
* \author Jöran Schierbaum
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<b... | 32.843931 | 108 | 0.727385 | MichaelTiernan |
0dc713a85dbf4ca234082f998f6220ef15120b4b | 2,808 | cpp | C++ | src/RemotePhotoTool.CameraControl/RemotePhotoTool.CameraControl.SourceDevice.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 16 | 2015-03-26T02:32:43.000Z | 2021-10-18T16:34:31.000Z | src/RemotePhotoTool.CameraControl/RemotePhotoTool.CameraControl.SourceDevice.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 7 | 2019-02-21T06:07:09.000Z | 2022-01-01T10:00:50.000Z | src/RemotePhotoTool.CameraControl/RemotePhotoTool.CameraControl.SourceDevice.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 6 | 2019-05-07T09:21:15.000Z | 2021-09-01T06:36:24.000Z | //
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2016 Michael Fink
//
/// \file RemotePhotoTool.CameraControl.SourceDevice.cpp SourceDevice wrapper class
//
// includes
#include "stdafx.h"
#include "RemotePhotoTool.CameraControl.SourceDevice.hpp"
#include "SourceDevice.hpp"
#include "Remote... | 33.428571 | 127 | 0.7849 | vividos |
0dcf642bbdd1b3df0ea40975ba3f56e9676d907d | 6,820 | cpp | C++ | stack/sapstack/SapRequestHistory.cpp | shrewdlin/BPE | cf29647479b1b8ed53afadaf70557387f4c07e16 | [
"BSD-3-Clause"
] | 1 | 2016-07-12T06:00:37.000Z | 2016-07-12T06:00:37.000Z | stack/sapstack/SapRequestHistory.cpp | shrewdlin/BPE | cf29647479b1b8ed53afadaf70557387f4c07e16 | [
"BSD-3-Clause"
] | null | null | null | stack/sapstack/SapRequestHistory.cpp | shrewdlin/BPE | cf29647479b1b8ed53afadaf70557387f4c07e16 | [
"BSD-3-Clause"
] | 2 | 2016-09-06T07:59:09.000Z | 2020-12-12T03:25:24.000Z | #include "SapRequestHistory.h"
#include <boost/asio.hpp>
#include <time.h>
#include "SapLogHelper.h"
#include "SapAgent.h"
#include "boost/date_time/posix_time/posix_time.hpp"
using namespace boost::posix_time;
namespace sdo{
namespace sap{
unsigned int CSapMsgTimerList::sm_nRequestTimeout=10;
void CSapMsgTimerList::S... | 37.679558 | 280 | 0.683284 | shrewdlin |
0dd1dbc52e557a9d29f3042bb42132f6ea443244 | 35 | cpp | C++ | src/diff_match_patch.cpp | guntersp/diff-match-patch-cpp | 92e554efedf36424161144a9de7a806fbf826128 | [
"Apache-2.0"
] | 1 | 2020-07-25T09:49:53.000Z | 2020-07-25T09:49:53.000Z | src/diff_match_patch.cpp | guntersp/diff-match-patch-cpp | 92e554efedf36424161144a9de7a806fbf826128 | [
"Apache-2.0"
] | null | null | null | src/diff_match_patch.cpp | guntersp/diff-match-patch-cpp | 92e554efedf36424161144a9de7a806fbf826128 | [
"Apache-2.0"
] | null | null | null | #include "dmp/diff_match_patch.h"
| 17.5 | 34 | 0.771429 | guntersp |
0dd30141c4ebbfd1840a375aa19f9e7f9570a9b5 | 7,150 | hpp | C++ | Include/SA/Core/Types/Variadics/Event.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | 1 | 2022-01-20T23:17:18.000Z | 2022-01-20T23:17:18.000Z | Include/SA/Core/Types/Variadics/Event.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | Include/SA/Core/Types/Variadics/Event.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Sapphire's Suite. All Rights Reserved.
#pragma once
#ifndef SAPPHIRE_CORE_EVENT_GUARD
#define SAPPHIRE_CORE_EVENT_GUARD
#include <vector>
#include <SA/Core/Types/Variadics/Function.hpp>
/**
* \file Event.hpp
*
* \brief \b Definition of Sapphire \b Event type.
*
* \ingroup Core_Types
* \{
*/
... | 22.770701 | 90 | 0.638042 | SapphireSuite |
0de9d0609faf98e2f9f588937f4836140dd80f3f | 706 | cpp | C++ | android-31/java/nio/charset/UnsupportedCharsetException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/nio/charset/UnsupportedCharsetException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/nio/charset/UnsupportedCharsetException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../JString.hpp"
#include "./UnsupportedCharsetException.hpp"
namespace java::nio::charset
{
// Fields
// QJniObject forward
UnsupportedCharsetException::UnsupportedCharsetException(QJniObject obj) : java::lang::IllegalArgumentException(obj) {}
// Constructors
UnsupportedCharsetException::Unsup... | 24.344828 | 120 | 0.735127 | YJBeetle |
0deb92b18d54974f6432b7ad07c041d69c487d61 | 11,286 | cc | C++ | gazebo/gui/ModelAlign.cc | yinnglu/gazebo | 3a5618a2a18873141e3cac734a692b778cec4fc0 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-03-04T14:12:55.000Z | 2019-03-04T14:12:55.000Z | gazebo/gui/ModelAlign.cc | yinnglu/gazebo | 3a5618a2a18873141e3cac734a692b778cec4fc0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/gui/ModelAlign.cc | yinnglu/gazebo | 3a5618a2a18873141e3cac734a692b778cec4fc0 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2016-04-25T22:05:09.000Z | 2020-03-08T08:45:12.000Z | /*
* Copyright (C) 2014 Open Source Robotics Foundation
*
* 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 appl... | 30.33871 | 79 | 0.568403 | yinnglu |
0df6dcf579e6433f9bca02765e89c2a4ce5a0d04 | 4,961 | cpp | C++ | backend/fs/PropertyFS.cpp | gicmo/nix | 17a5b90e6c12a22e921c181b79eb2a3db1bf61af | [
"BSD-3-Clause"
] | 53 | 2015-02-10T01:04:34.000Z | 2021-04-24T14:26:04.000Z | backend/fs/PropertyFS.cpp | tapaswenipathak/nix | 4565c2d7b363f27cac88932b35c085ee8fe975a1 | [
"BSD-3-Clause"
] | 262 | 2015-01-09T13:24:21.000Z | 2021-07-02T13:45:31.000Z | backend/fs/PropertyFS.cpp | gicmo/nix | 17a5b90e6c12a22e921c181b79eb2a3db1bf61af | [
"BSD-3-Clause"
] | 34 | 2015-03-27T16:41:14.000Z | 2020-03-27T06:47:59.000Z | // Copyright (c) 2013 - 2015, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "PropertyFS.hpp"
namespace... | 20.331967 | 109 | 0.615803 | gicmo |
0df8441cecdea554896eb0e199319758807efe8d | 278 | cpp | C++ | ShooterMini/ShooterMini/Projectile.cpp | Floneyyang/ShooterGame | 6cc6fdb52ac75a7fce08d0aa1cd997c55e2ac6d3 | [
"MIT"
] | null | null | null | ShooterMini/ShooterMini/Projectile.cpp | Floneyyang/ShooterGame | 6cc6fdb52ac75a7fce08d0aa1cd997c55e2ac6d3 | [
"MIT"
] | null | null | null | ShooterMini/ShooterMini/Projectile.cpp | Floneyyang/ShooterGame | 6cc6fdb52ac75a7fce08d0aa1cd997c55e2ac6d3 | [
"MIT"
] | null | null | null | //
// Projectile.cpp
// ShooterMini
//
// Created by Floney Yang on 1/31/21.
// Copyright © 2021 Floney Yang. All rights reserved.
//
#include "Projectile.hpp"
Projectile::Projectile(){
transform = RectangleShape(Vector2f(50, 5));
}
Projectile::~Projectile(){
}
| 15.444444 | 54 | 0.661871 | Floneyyang |
0dfeaea0f3f6a5feb004061f259a446fe3a0778b | 1,304 | cpp | C++ | clove/components/core/graphics/source/Validation/ValidationCommandBuffer.cpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | 33 | 2020-01-09T04:57:29.000Z | 2021-08-14T08:02:43.000Z | clove/components/core/graphics/source/Validation/ValidationCommandBuffer.cpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | 234 | 2019-10-25T06:04:35.000Z | 2021-08-18T05:47:41.000Z | clove/components/core/graphics/source/Validation/ValidationCommandBuffer.cpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | 4 | 2020-02-11T15:28:42.000Z | 2020-09-07T16:22:58.000Z | #include "Clove/Graphics/Validation/ValidationCommandBuffer.hpp"
#include <Clove/Log/Log.hpp>
namespace clove {
void ValidationCommandBuffer::setAllowBufferReuse(bool canReuse) {
allowReuse = canReuse;
}
void ValidationCommandBuffer::markAsUsed() {
hasBeenUsed = true;
}
bool Vali... | 31.047619 | 219 | 0.721626 | mondoo |
df02f526df22dfc527e6f37a49ace124cb83424d | 29,718 | cpp | C++ | Extern/mssdk_dx7/samples/Multimedia/DPlay/src/DPLaunch/dplaunch.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 1,040 | 2021-07-27T12:12:06.000Z | 2021-08-02T14:24:49.000Z | Extern/mssdk_dx7/samples/Multimedia/DPlay/src/DPLaunch/dplaunch.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 20 | 2021-07-27T12:25:22.000Z | 2021-08-02T12:22:19.000Z | Extern/mssdk_dx7/samples/Multimedia/DPlay/src/DPLaunch/dplaunch.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 71 | 2021-07-27T14:19:49.000Z | 2021-08-02T05:51:52.000Z | //-----------------------------------------------------------------------------
// File: DPLaunch.cpp
//
// Desc: Implementation of a DirectPlay launching utility
//
// Copyright (C) 1996-1999 Microsoft Corporation. All Rights Reserved.
//-----------------------------------------------------------------------------
#d... | 32.092873 | 91 | 0.6454 | Ybalrid |
df063cc8ea2964b4d95f9c7b92681872964b6cf8 | 1,189 | cc | C++ | src/braids/braids.cc | marcelbienvu/MabiluObjects | 16b9bda2bebaba34550748c5a17b92361d6de241 | [
"MIT"
] | null | null | null | src/braids/braids.cc | marcelbienvu/MabiluObjects | 16b9bda2bebaba34550748c5a17b92361d6de241 | [
"MIT"
] | null | null | null | src/braids/braids.cc | marcelbienvu/MabiluObjects | 16b9bda2bebaba34550748c5a17b92361d6de241 | [
"MIT"
] | null | null | null | #include "braids/braids.h"
#define MOD_TRIGGER 0
#define MOD_NOTE 1
#define MOD_TIMBRE 2
#define MOD_COLOR 3
#define MOD_ENGINE 4
Braids::Braids(): AudioStream(5, modulations) {
oscillator.Init();
oscillator.set_pitch(10000);
oscillator.set_shape(braids::MACRO_OSC_SHAPE_TRIPLE_SAW);
oscillato... | 26.422222 | 87 | 0.660219 | marcelbienvu |
df0deef9ecdf87ebb2f1709dbf8059d5a605127d | 954 | cpp | C++ | lib/glucose/rtl/referencedImpl.cpp | tzolkincz/fast-akima-interpolation | 460149b45695c286a9e5911fe10228e35e5225d0 | [
"WTFPL"
] | 2 | 2019-11-07T07:04:44.000Z | 2021-02-27T01:30:07.000Z | lib/glucose/rtl/referencedImpl.cpp | tzolkincz/fast-akima-interpolation | 460149b45695c286a9e5911fe10228e35e5225d0 | [
"WTFPL"
] | null | null | null | lib/glucose/rtl/referencedImpl.cpp | tzolkincz/fast-akima-interpolation | 460149b45695c286a9e5911fe10228e35e5225d0 | [
"WTFPL"
] | 1 | 2016-11-23T02:41:13.000Z | 2016-11-23T02:41:13.000Z | #include "referencedImpl.h"
#include "cfixes.h"
#include <limits>
HRESULT CReferenced::QueryInterface(/*REFIID */ void* riid, void ** ppvObj) {
unused(ppvObj);
unused(riid);
return E_NOTIMPL;
}
ULONG IfaceCalling CReferenced::AddRef() {
#ifndef WIN32
return __sync_add_and_fetch(&mCount... | 19.875 | 79 | 0.686583 | tzolkincz |
df1864065f8a0bdbec0ba2ce423ec62c12730ce4 | 2,071 | cpp | C++ | host/consoleview.cpp | pavelvasev/Xclu | 6cdbb7040c057b3c1107f7a039acf0a72046ed83 | [
"MIT"
] | 2 | 2020-07-17T18:02:55.000Z | 2020-10-25T10:59:55.000Z | host/consoleview.cpp | pavelvasev/Xclu | 6cdbb7040c057b3c1107f7a039acf0a72046ed83 | [
"MIT"
] | 7 | 2021-02-24T05:37:58.000Z | 2022-03-20T04:00:01.000Z | host/consoleview.cpp | pavelvasev/Xclu | 6cdbb7040c057b3c1107f7a039acf0a72046ed83 | [
"MIT"
] | 3 | 2020-07-17T18:03:04.000Z | 2021-07-02T06:17:13.000Z | #include "qt_widgets.h"
#include "consoleview.h"
#include "sdk_cpp.h"
ConsoleView *CONS_VIEW;
//---------------------------------------------------------------------
ConsoleView::ConsoleView(QWidget *parent)
:QWidget(parent)
{
//textEdit_ = new QTextEdit; //- позволяет вставлять картинки и HTML
textAr... | 27.613333 | 101 | 0.557219 | pavelvasev |
df193ad8abecd0c2093d7d0dde4ccd0ebf6a2c9d | 147 | cpp | C++ | src/kernelexception.cpp | f-tischler/RaftLib | 510532d3d54ade15c1f9d67a85f40bf62238b78f | [
"Apache-2.0"
] | 759 | 2016-05-23T22:40:00.000Z | 2022-03-25T09:05:41.000Z | src/kernelexception.cpp | Myicefrog/RaftLib | 5ff105293bc851ed73bdfd8966b15d0cadb45eb0 | [
"Apache-2.0"
] | 111 | 2016-05-24T02:30:14.000Z | 2021-08-16T15:11:53.000Z | src/kernelexception.cpp | Myicefrog/RaftLib | 5ff105293bc851ed73bdfd8966b15d0cadb45eb0 | [
"Apache-2.0"
] | 116 | 2016-05-31T08:03:05.000Z | 2022-03-01T00:54:31.000Z | #include <string>
#include "kernelexception.hpp"
KernelException::KernelException( const std::string message ) : RaftException( message )
{
}
| 14.7 | 89 | 0.741497 | f-tischler |
df1a65c461f37e9950b6b1eaad97304e05967429 | 3,218 | cpp | C++ | MoravaEngine/src/Mono/ConsoleGameLib/RWord.cpp | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | 168 | 2020-07-18T04:20:27.000Z | 2022-03-31T23:39:38.000Z | CppFramework/ConsoleGameLib/src/Implementation/RWord.cpp | Ohjurot/ScriptingGuide | 778803a5e2c020f887556f10f9a5a6a30b8837f0 | [
"Unlicense"
] | 5 | 2020-11-23T12:33:06.000Z | 2022-01-05T15:15:30.000Z | CppFramework/ConsoleGameLib/src/Implementation/RWord.cpp | Ohjurot/ScriptingGuide | 778803a5e2c020f887556f10f9a5a6a30b8837f0 | [
"Unlicense"
] | 8 | 2020-09-07T03:04:18.000Z | 2022-03-25T13:47:16.000Z | #include "RWord.h"
// Instance
CGL_internal::RWord* CGL_internal::RWord::s_ptrInstance = nullptr;
CGL_internal::RWord::~RWord() {
// Free allocators
if (m_textAllocator) free(m_textAllocator);
if (m_arrayAllocator) free(m_arrayAllocator);
}
const char* CGL_internal::RWord::getWord(unsigned int index) {
// Word i... | 20.628205 | 98 | 0.629584 | imgui-works |
b301adc927d8dd2a4fbeaebbdeb1ba05b883cfae | 548 | hpp | C++ | src/volt/gpu/d3d12/routine.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | src/volt/gpu/d3d12/routine.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | src/volt/gpu/d3d12/routine.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | #pragma once
#include <volt/pch.hpp>
#include <volt/gpu/routine.hpp>
namespace volt::gpu::d3d12 {
template<command_types T>
class routine : public gpu::routine<T> {
public:
ID3D12GraphicsCommandList *command_list;
ID3D12CommandAllocator *allocator;
routine(std::shared_ptr<gpu::pool<T>> &&pool);
~routine();
... | 18.266667 | 67 | 0.751825 | voltengine |
b301e7e792f589f2f7b094112f61543114f70e12 | 2,733 | hpp | C++ | src/helics/common/TomlProcessingFunctions.hpp | manoj1511/HELICS | 5b085bb4331f943d3fa98eb40056c3e10a1b882d | [
"BSD-3-Clause"
] | null | null | null | src/helics/common/TomlProcessingFunctions.hpp | manoj1511/HELICS | 5b085bb4331f943d3fa98eb40056c3e10a1b882d | [
"BSD-3-Clause"
] | null | null | null | src/helics/common/TomlProcessingFunctions.hpp | manoj1511/HELICS | 5b085bb4331f943d3fa98eb40056c3e10a1b882d | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2017-2019,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See
the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
/** @file
@details functions related to loading and eval... | 27.887755 | 114 | 0.63154 | manoj1511 |
b305f432bf6c01cf47785419257281ace39d4dc7 | 162 | hh | C++ | src/Titon/Intl/locales/en_CA/locale.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | src/Titon/Intl/locales/en_CA/locale.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | src/Titon/Intl/locales/en_CA/locale.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh
// English (Canadian)
return Map {
'code' => 'en_CA',
'parent' => 'en',
'timezone' => 'Canada/Central',
'title' => 'English (Canadian)',
};
| 16.2 | 36 | 0.518519 | ciklon-z |
b306995e3ac20e240a7579d3cea79f3578d0e338 | 6,086 | hpp | C++ | glfw3_app/common/gl_fw/gllight.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 9 | 2015-09-22T21:36:57.000Z | 2021-04-01T09:16:53.000Z | glfw3_app/common/gl_fw/gllight.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | null | null | null | glfw3_app/common/gl_fw/gllight.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 2 | 2019-02-21T04:22:13.000Z | 2021-03-02T17:24:32.000Z | #pragma once
//=====================================================================//
/*! @file
@brief OpenGL ライト環境管理(ヘッダー)
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/glfw3_app/blob/master/LICENSE
*/... | 25.253112 | 74 | 0.366908 | hirakuni45 |
b308c0e40715d9b8ba2ae98dff58d6bdce72d359 | 7,474 | cpp | C++ | modules/control/src/capturersController.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/control/src/capturersController.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/control/src/capturersController.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null |
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/filesystem.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/log/trivial.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <toffy/capture/capturerFilter.hpp>
#include <toffy/web/capturersController.hpp>
using namespace toffy;... | 34.442396 | 116 | 0.646775 | voxel-dot-at |
b30ee2f30f07325a6f4376a0e790b97f887fae44 | 5,792 | cpp | C++ | src/IS2ODBC.16/DbServer/DbServer.cpp | jimbeveridge/multithreading | b092dde13968f91dfb9b86e3d7e760a50f799a96 | [
"MIT"
] | 2 | 2021-11-23T10:43:45.000Z | 2022-01-03T14:51:32.000Z | src/IS2ODBC.16/DbServer/DbServer.cpp | jimbeveridge/multithreading | b092dde13968f91dfb9b86e3d7e760a50f799a96 | [
"MIT"
] | null | null | null | src/IS2ODBC.16/DbServer/DbServer.cpp | jimbeveridge/multithreading | b092dde13968f91dfb9b86e3d7e760a50f799a96 | [
"MIT"
] | 1 | 2020-10-28T15:11:55.000Z | 2020-10-28T15:11:55.000Z | /*
* DbServer.cpp
*
* Sample code for "Multithreading Applications in Win32"
* This is from Chapter 16.
*
* DbServer is a process outside of the Internet
* Information Server that processes requests from
* Is2odbc in a fashion that will guarantee single-
* threaded access to the JET engine.
*
* This process ... | 24.646809 | 98 | 0.678867 | jimbeveridge |
b3137f6cab97553f54fa80b509346a81576e4619 | 510 | hh | C++ | src/util/refer.hh | lpzun/bssp | e56e991f048adf77b0ef8b4097e962725cc1ac5f | [
"MIT"
] | null | null | null | src/util/refer.hh | lpzun/bssp | e56e991f048adf77b0ef8b4097e962725cc1ac5f | [
"MIT"
] | null | null | null | src/util/refer.hh | lpzun/bssp | e56e991f048adf77b0ef8b4097e962725cc1ac5f | [
"MIT"
] | null | null | null | /**
* @name refs.hh
*
* @date: Jun 21, 2015
* @author: Peizun Liu
*/
#ifndef REFS_HH_
#define REFS_HH_
#include "state.hh"
namespace bssp {
class refer {
public:
refer();
~refer();
static bool OPT_PRINT_ALL;
static bool OPT_PRINT_CMD;
static bool OPT_PRINT_ADJ;
// static bool OPT_INPUT_... | 15 | 40 | 0.652941 | lpzun |
b313cc527cabdb6f3e00ee44040fe1cbdcfe5912 | 1,414 | cpp | C++ | lib/GCOI/MP.cpp | ForeverRainbow/speech-analysis | 1758655b9202c1c17b06049396672bf4eb63f264 | [
"MIT"
] | null | null | null | lib/GCOI/MP.cpp | ForeverRainbow/speech-analysis | 1758655b9202c1c17b06049396672bf4eb63f264 | [
"MIT"
] | null | null | null | lib/GCOI/MP.cpp | ForeverRainbow/speech-analysis | 1758655b9202c1c17b06049396672bf4eb63f264 | [
"MIT"
] | null | null | null | #include "GCOI.h"
#include <iostream>
using namespace Eigen;
rpm::vector<GCOI::GIPair> GCOI::estimate_MultiProduct(const ArrayXd & _x, double fs, int lev)
{
// Resize to a multiple of (2^lev).
int dataLen = (_x.size() / (2 << (lev + 1))) * (2 << (lev + 1));
ArrayXd a = _x.head(dataLen);
ArrayXd p = A... | 23.566667 | 93 | 0.461103 | ForeverRainbow |
b31501a2ec10b7722ccf44cf7254ae73d4f9c814 | 1,904 | cpp | C++ | src/serializer.cpp | Sholex-Team/simple-json | 16e53c5ee500daed46056e86feabca273711d6ac | [
"MIT"
] | 5 | 2021-08-06T12:38:09.000Z | 2021-09-20T12:34:00.000Z | src/serializer.cpp | Sholex-Team/simple-json | 16e53c5ee500daed46056e86feabca273711d6ac | [
"MIT"
] | null | null | null | src/serializer.cpp | Sholex-Team/simple-json | 16e53c5ee500daed46056e86feabca273711d6ac | [
"MIT"
] | null | null | null | #include "serializer.h"
namespace simple_json::serializer {
#pragma region Serializer Functions
std::string dumps(const types::Json & json, const size_t local_indent) {
std::stringstream stream;
serializer(stream, json, local_indent);
return stream.str();
}
void dump(const typ... | 27.2 | 99 | 0.582458 | Sholex-Team |
b316c70cd1774f9f8262c7f088e45fe627a89bb5 | 129 | hpp | C++ | dependencies/glm/gtx/io.hpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/glm/gtx/io.hpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/glm/gtx/io.hpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:ea02c588304792d4495674f3f91aff94a2ada840801280816b012c24144122e4
size 7136
| 32.25 | 75 | 0.883721 | realtehcman |
b31aa9ad50bfeb475b9ac4960206bc966b373000 | 5,366 | cpp | C++ | packages/monte_carlo/collision/electron/test/tstBremsstrahlungElectronScatteringDistributionACEFactoryV14.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/electron/test/tstBremsstrahlungElectronScatteringDistributionACEFactoryV14.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/electron/test/tstBremsstrahlungElectronScatteringDistributionACEFactoryV14.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstBremsstrahlungElectronScatteringDistributionACEFactoryV14.cpp
//! \author Luke Kersting
//! \brief bremsstrahlung scattering distribution ACE factory unit tests
//!
//-----------------------------------------------------... | 41.276923 | 103 | 0.582557 | bam241 |
b31bddb701f0a1697846a6bdacc08f7864532dc3 | 727 | cpp | C++ | src/Model/PlaneBuilder.cpp | Grushenko/GLPress | 29313c40c0dc79f890638042b46484e4ff856d16 | [
"Beerware"
] | 4 | 2017-05-18T18:10:05.000Z | 2017-06-05T10:58:38.000Z | src/Model/PlaneBuilder.cpp | Grushenko/GLPress | 29313c40c0dc79f890638042b46484e4ff856d16 | [
"Beerware"
] | null | null | null | src/Model/PlaneBuilder.cpp | Grushenko/GLPress | 29313c40c0dc79f890638042b46484e4ff856d16 | [
"Beerware"
] | null | null | null | #include "PlaneBuilder.h"
std::shared_ptr<Mesh> PlaneBuilder::build() {
std::vector<Vertex> vertices;
std::vector<GLuint> indices{0, 1, 2, 1, 3, 2};
vertices.emplace_back(glm::vec3(-0.5 * mWidth, -0.5 * mHeight, 0), glm::vec3(0, 0, -1), glm::vec2(mBegin.x, mBegin.y));
vertices.emplace_back(glm::vec3( ... | 48.466667 | 123 | 0.624484 | Grushenko |
b323207bf7957ca5ec8a1338051ae05038b0da88 | 155 | cpp | C++ | c++/test.cpp | seagoj/cs_notes | c4ad98e55eb815e9a6585a99a55064ea77ba4b26 | [
"MIT"
] | null | null | null | c++/test.cpp | seagoj/cs_notes | c4ad98e55eb815e9a6585a99a55064ea77ba4b26 | [
"MIT"
] | null | null | null | c++/test.cpp | seagoj/cs_notes | c4ad98e55eb815e9a6585a99a55064ea77ba4b26 | [
"MIT"
] | null | null | null | #include<iostream>
//#include<stdlib.h>
using namespace std;
int main()
{
int x, y;
cin>>x>>y;
cout<<x<<endl<<y;
return 0;
}
| 12.916667 | 22 | 0.516129 | seagoj |
b326ee600b5adfd3c7216a1debfc9a9e7b0f8188 | 749 | cpp | C++ | util.cpp | as-xjc/scheduler | 9b9851a5f2d74c64bdcee6c583cec77d898887e0 | [
"MIT"
] | 1 | 2019-10-14T13:43:47.000Z | 2019-10-14T13:43:47.000Z | util.cpp | as-xjc/scheduler | 9b9851a5f2d74c64bdcee6c583cec77d898887e0 | [
"MIT"
] | null | null | null | util.cpp | as-xjc/scheduler | 9b9851a5f2d74c64bdcee6c583cec77d898887e0 | [
"MIT"
] | 1 | 2020-10-16T02:26:34.000Z | 2020-10-16T02:26:34.000Z | #include <chrono>
#include <ctime>
#include "util.hpp"
#include "define.hpp"
namespace schedule
{
namespace util
{
uint64_t now_time()
{
std::chrono::system_clock::duration time_since = std::chrono::system_clock::now().time_since_epoch();
return std::chrono::duration_cast<std::chrono::milliseconds>(... | 19.205128 | 109 | 0.680908 | as-xjc |
b3276dfb02a1ead34b6b8995ff83e979ad14f059 | 1,093 | hh | C++ | include/Core/Domains/INonRelational.hh | 0xDouze/abstract_vuln_finder | 6cf24c585e6dceeda8d31c53afb20231252e389e | [
"MIT"
] | 6 | 2019-08-30T01:36:03.000Z | 2019-11-16T19:10:29.000Z | include/Core/Domains/INonRelational.hh | 0xDouze/abstract_vuln_finder | 6cf24c585e6dceeda8d31c53afb20231252e389e | [
"MIT"
] | 4 | 2019-12-17T17:33:24.000Z | 2019-12-20T17:43:19.000Z | include/Core/Domains/INonRelational.hh | 0xDouze/abstract_vuln_finder | 6cf24c585e6dceeda8d31c53afb20231252e389e | [
"MIT"
] | 1 | 2019-08-29T22:02:11.000Z | 2019-08-29T22:02:11.000Z | #pragma once
#include "Func.hh"
#include "Graph.hh"
/// FIX: Add missing const and ref (get_val_from_env)
template <typename AbstractValue, typename Env> class INonRelational {
public:
virtual ~INonRelational(){};
virtual AbstractValue init_abs_val() = 0;
virtual void set_bottom(AbstractValue &val) = 0;
virtua... | 45.541667 | 79 | 0.752059 | 0xDouze |
b32c002236e56b190f8ba0393b7d0ad639c52d10 | 1,224 | cpp | C++ | leetcode/editor/cn/70-climbing-stairs.cpp | xutengx/data-structure | cdc2fa24000377357c4f2d6ece83261ff4213d4c | [
"MIT"
] | null | null | null | leetcode/editor/cn/70-climbing-stairs.cpp | xutengx/data-structure | cdc2fa24000377357c4f2d6ece83261ff4213d4c | [
"MIT"
] | null | null | null | leetcode/editor/cn/70-climbing-stairs.cpp | xutengx/data-structure | cdc2fa24000377357c4f2d6ece83261ff4213d4c | [
"MIT"
] | null | null | null | //假设你正在爬楼梯。需要 n 阶你才能到达楼顶。
//
// 每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢?
//
// 注意:给定 n 是一个正整数。
//
// 示例 1:
//
// 输入: 2
//输出: 2
//解释: 有两种方法可以爬到楼顶。
//1. 1 阶 + 1 阶
//2. 2 阶
//
// 示例 2:
//
// 输入: 3
//输出: 3
//解释: 有三种方法可以爬到楼顶。
//1. 1 阶 + 1 阶 + 1 阶
//2. 1 阶 + 2 阶
//3. 2 阶 + 1 阶
//
// Related Topics 动态规划
// 👍 1642 👎 ... | 18.545455 | 69 | 0.468137 | xutengx |
b32c12c2ee0325c8592133bed615d0ff305a87a5 | 10,239 | cpp | C++ | tests/cli/cli_tests.cpp | totalgames/playchain-core | f543df51d78dafca09c56fbb7b9912ad550a9404 | [
"MIT"
] | 1 | 2019-07-05T14:37:30.000Z | 2019-07-05T14:37:30.000Z | tests/cli/cli_tests.cpp | totalgames/playchain-core | f543df51d78dafca09c56fbb7b9912ad550a9404 | [
"MIT"
] | null | null | null | tests/cli/cli_tests.cpp | totalgames/playchain-core | f543df51d78dafca09c56fbb7b9912ad550a9404 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 Total Games LLC 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 ri... | 42.485477 | 208 | 0.710323 | totalgames |
b32c9455bfee69cf29983c88512c04b17b165f54 | 1,869 | hpp | C++ | kernel/paging.hpp | wkiino/my-mikanos | f7b9d4d15a4fc00cecd7efedc93bf54426dad156 | [
"Apache-2.0"
] | null | null | null | kernel/paging.hpp | wkiino/my-mikanos | f7b9d4d15a4fc00cecd7efedc93bf54426dad156 | [
"Apache-2.0"
] | null | null | null | kernel/paging.hpp | wkiino/my-mikanos | f7b9d4d15a4fc00cecd7efedc93bf54426dad156 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cstddef>
const size_t kPageDirectoryCount = 64;
void SetupIdentityPageTable();
union LinearAddress4Level
{
uint64_t value;
struct
{
uint64_t offset : 12;
uint64_t page : 9;
uint64_t dir : 9;
uint64_t pdp : 9;
uint64_t pml4 : 9;
uint... | 19.46875 | 65 | 0.502408 | wkiino |
b32eec3a9c3cced6654a458f9fa3e91bb3ada7cc | 781 | hpp | C++ | include/geometricks/meta/literals.hpp | mitthy/TCC | 4c48eb11cafd50334c5faef93edc5f03bc7fc171 | [
"MIT"
] | null | null | null | include/geometricks/meta/literals.hpp | mitthy/TCC | 4c48eb11cafd50334c5faef93edc5f03bc7fc171 | [
"MIT"
] | null | null | null | include/geometricks/meta/literals.hpp | mitthy/TCC | 4c48eb11cafd50334c5faef93edc5f03bc7fc171 | [
"MIT"
] | null | null | null | #ifndef GEOMETRICKS_META_LITERAL_HPP
#define GEOMETRICKS_META_LIST_HPP
//C stdlib includes
#include <stddef.h>
namespace geometricks {
namespace meta {
namespace literals {
template< typename T, size_t V >
struct integer_literal {
static constexpr T value = V;
constexpr operator ... | 18.162791 | 69 | 0.608195 | mitthy |
b32f8200bfb869cf216af0c1d92a9ef392953431 | 1,298 | cpp | C++ | src/serializer.cpp | Panzerschrek/PanzerJson | 3e8327143441709451ff132a8692003a211f0528 | [
"BSD-3-Clause"
] | null | null | null | src/serializer.cpp | Panzerschrek/PanzerJson | 3e8327143441709451ff132a8692003a211f0528 | [
"BSD-3-Clause"
] | null | null | null | src/serializer.cpp | Panzerschrek/PanzerJson | 3e8327143441709451ff132a8692003a211f0528 | [
"BSD-3-Clause"
] | null | null | null | #include <cmath>
#include <limits>
#include "../include/PanzerJson/serializer.hpp"
namespace PanzerJson
{
void Serializer::GenNumberValueString( const NumberValue& number_value )
{
if( std::floor( number_value.double_value ) != number_value.double_value )
{
// Has nonzero fractional part - write as double.
Gen... | 24.961538 | 95 | 0.719569 | Panzerschrek |
b32f878b75a9b916c01a8f36aa66ffd76f144ba7 | 9,912 | hpp | C++ | libpldmresponder/pdr.hpp | wangzqbj/pldm | cdfe114ea9f8f9e70624da92e55ff115cb2555e2 | [
"Apache-2.0"
] | null | null | null | libpldmresponder/pdr.hpp | wangzqbj/pldm | cdfe114ea9f8f9e70624da92e55ff115cb2555e2 | [
"Apache-2.0"
] | null | null | null | libpldmresponder/pdr.hpp | wangzqbj/pldm | cdfe114ea9f8f9e70624da92e55ff115cb2555e2 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "effecters.hpp"
#include "utils.hpp"
#include <stdint.h>
#include <filesystem>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <nlohmann/json.hpp>
#include <string>
#include <vector>
#include <xyz/openbmc_project/Common/error.hpp>
#include "libpldm/platform... | 30.311927 | 80 | 0.532587 | wangzqbj |
b32fa70c6008a104e2836fb0a19a15508fed8aeb | 15,888 | cc | C++ | tests/conformance/cases/schema_changes.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 179 | 2020-03-30T20:30:49.000Z | 2022-03-31T04:47:55.000Z | tests/conformance/cases/schema_changes.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 53 | 2020-08-31T15:14:30.000Z | 2022-03-30T21:28:36.000Z | tests/conformance/cases/schema_changes.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 26 | 2020-04-02T04:05:58.000Z | 2022-02-22T12:05:55.000Z | //
// Copyright 2020 Google LLC
//
// 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 to ... | 34.53913 | 85 | 0.669247 | sgorse12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.