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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47ff551ec09420ee8053006331580da25b193e9d | 16,895 | cpp | C++ | libmp2t/tspmt.cpp | jimcavoy/mp2tp | 54f8ef1b1373974b9a931a6a60fde29be8430c96 | [
"MIT"
] | null | null | null | libmp2t/tspmt.cpp | jimcavoy/mp2tp | 54f8ef1b1373974b9a931a6a60fde29be8430c96 | [
"MIT"
] | null | null | null | libmp2t/tspmt.cpp | jimcavoy/mp2tp | 54f8ef1b1373974b9a931a6a60fde29be8430c96 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "tspmt.h"
#include <algorithm>
#include <iterator>
#ifndef WIN32
#include <memory.h>
#include <arpa/inet.h>
#endif
#ifdef _DEBUG
#define new DEBUG_CLIENTBLOCK
#endif
using namespace std;
const UINT16 PMT_SECTION_LEN = 0x03FF;
const BYTE PMT_VERSION_NO = 0x3E;
const U... | 25.141369 | 122 | 0.663451 | jimcavoy |
9a1364f9b341a28f31af4e046a8557291dbe22a3 | 349 | hpp | C++ | utils/ulog_cat/include/ulog_decoder.hpp | llllVIIII/ulog | fd611d2e33b837aaef9686320181352b2e4d0de2 | [
"MIT"
] | null | null | null | utils/ulog_cat/include/ulog_decoder.hpp | llllVIIII/ulog | fd611d2e33b837aaef9686320181352b2e4d0de2 | [
"MIT"
] | null | null | null | utils/ulog_cat/include/ulog_decoder.hpp | llllVIIII/ulog | fd611d2e33b837aaef9686320181352b2e4d0de2 | [
"MIT"
] | null | null | null | #ifndef _ULOG_DECODER_HPP_
#define _ULOG_DECODER_HPP_
#include <cstddef>
#include <cstdint>
#include "ulog_message.hpp"
#include <deque>
class ulog_decoder
{
private:
ulog_message _message;
public:
ulog_message& message(void);
int decode(std::deque<std::uint8_t>& data);
int decode(std::uint8_t* data, ... | 18.368421 | 53 | 0.730659 | llllVIIII |
9a1c4253aaed2a6a15acca05d1a655961c741509 | 46,796 | cpp | C++ | SpatialGDK/Source/SpatialGDK/Private/Interop/SpatialSender.cpp | eddyrainy/UnrealGDK | eb86c58d23d55e74b584b91c2d35702ba08448be | [
"MIT"
] | null | null | null | SpatialGDK/Source/SpatialGDK/Private/Interop/SpatialSender.cpp | eddyrainy/UnrealGDK | eb86c58d23d55e74b584b91c2d35702ba08448be | [
"MIT"
] | null | null | null | SpatialGDK/Source/SpatialGDK/Private/Interop/SpatialSender.cpp | eddyrainy/UnrealGDK | eb86c58d23d55e74b584b91c2d35702ba08448be | [
"MIT"
] | null | null | null | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "Interop/SpatialSender.h"
#include "GameFramework/PlayerController.h"
#include "GameFramework/PlayerState.h"
#include "Engine/Engine.h"
#include "EngineClasses/SpatialActorChannel.h"
#include "EngineClasses/SpatialNetConnection.h"
#include "EngineC... | 40.065068 | 220 | 0.800581 | eddyrainy |
9a1d5373d2cbdd5a1a9132f89b0cda2509ae730f | 590 | cpp | C++ | src/ivorium_graphics/Text/Font.cpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | 3 | 2021-02-26T02:59:09.000Z | 2022-02-08T16:44:21.000Z | src/ivorium_graphics/Text/Font.cpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | src/ivorium_graphics/Text/Font.cpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | #include "Font.hpp"
namespace iv
{
Font::Font( Instance * inst ) :
cm( inst, this, "Font" ),
inst( inst )
{
}
Instance * Font::instance() const
{
return this->inst;
}
Font::Info const & Font::GetInfo() const
{
return this->_info;
}
Font::Variant const & Font::SelectVariant( unsigned font_size ) con... | 15.945946 | 69 | 0.632203 | ivorne |
9a1e9de067daaca21977d3b8f66be26db37edc9f | 4,932 | cpp | C++ | examples/vector_add_tmp_sycl_serial.cpp | nazavode/meetupcpp-may-2019 | a5c1f12ac61302c3d3f20e4a38544e2c8ac29f28 | [
"Unlicense"
] | 1 | 2019-07-25T11:56:50.000Z | 2019-07-25T11:56:50.000Z | examples/vector_add_tmp_sycl_serial.cpp | nazavode/meetupcpp-may-2019 | a5c1f12ac61302c3d3f20e4a38544e2c8ac29f28 | [
"Unlicense"
] | null | null | null | examples/vector_add_tmp_sycl_serial.cpp | nazavode/meetupcpp-may-2019 | a5c1f12ac61302c3d3f20e4a38544e2c8ac29f28 | [
"Unlicense"
] | null | null | null | #if defined(TRISYCL_OPENCL) && defined(__APPLE__)
// TODO: OpenCL header on macOSX shows some weird macro explosion
// during the expansion of the CL_DEPRECATED decorator macro that
// should be investigated further. Just elide it for now.
#define CL_SILENCE_DEPRECATION 1
#endif
#include <CL/sycl.hpp>
#include <algorit... | 39.142857 | 88 | 0.600162 | nazavode |
9a204fff0c7666394d12c618ed5593e0bf37bb54 | 7,115 | cpp | C++ | 3D Engine/PanelConfig.cpp | botttos/PalmGine | 5335b00e8100a14c86280a9d6fdbef9728480bf0 | [
"Apache-2.0"
] | null | null | null | 3D Engine/PanelConfig.cpp | botttos/PalmGine | 5335b00e8100a14c86280a9d6fdbef9728480bf0 | [
"Apache-2.0"
] | null | null | null | 3D Engine/PanelConfig.cpp | botttos/PalmGine | 5335b00e8100a14c86280a9d6fdbef9728480bf0 | [
"Apache-2.0"
] | 3 | 2019-10-26T12:51:27.000Z | 2021-01-10T22:01:38.000Z | #include "Application.h"
#include "Globals.h"
#include "PanelConfig.h"
#include "ModuleHardware.h"
#include "ModuleCamera3D.h"
#include "Light.h"
#include "ModuleRenderer3D.h"
#include "MathGeoLib/MathGeoLib.h"
#include "mmgr/mmgr.h"
#include "CompCamera.h"
#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR)/sizeof(*_ARR)... | 34.877451 | 154 | 0.671539 | botttos |
9a2e763f9bf064fdf515600a7dff0846e72d4085 | 1,524 | cpp | C++ | src/marketdata/bid.cpp | Phantim97/cbpro-cpp | 44428f1f9aea1c84307a9bfd3d86e95ae36cc332 | [
"Apache-2.0"
] | 18 | 2021-02-25T01:38:25.000Z | 2022-01-27T19:08:23.000Z | src/marketdata/bid.cpp | Phantim97/cbpro-cpp | 44428f1f9aea1c84307a9bfd3d86e95ae36cc332 | [
"Apache-2.0"
] | null | null | null | src/marketdata/bid.cpp | Phantim97/cbpro-cpp | 44428f1f9aea1c84307a9bfd3d86e95ae36cc332 | [
"Apache-2.0"
] | 4 | 2021-04-02T21:34:37.000Z | 2021-09-09T06:25:02.000Z | //
// Created by Bradley Bottomlee on 2/11/21.
//
#include <cbpro++/marketdata/bid.h>
#include <utility>
namespace responses {
bidLevel1_2::bidLevel1_2(std::string price, std::string size, std::string numOrders) : price(std::move(price)),
... | 33.866667 | 136 | 0.42126 | Phantim97 |
9a3012e5abbb1e9857af75f6b0ee40eb637227d2 | 433 | cpp | C++ | Tut 16 Call by Value and Call by Reference/Call by Reference Variable.cpp | anuragpathak0/C-Plus-Plus | 5e79e3c354b3544f385c77dfbc3fb0a9cef04f64 | [
"MIT"
] | null | null | null | Tut 16 Call by Value and Call by Reference/Call by Reference Variable.cpp | anuragpathak0/C-Plus-Plus | 5e79e3c354b3544f385c77dfbc3fb0a9cef04f64 | [
"MIT"
] | null | null | null | Tut 16 Call by Value and Call by Reference/Call by Reference Variable.cpp | anuragpathak0/C-Plus-Plus | 5e79e3c354b3544f385c77dfbc3fb0a9cef04f64 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void increment(int& a,int& b){
a=a+6;
b=b+6;
} //that swap model also works and C++ feature only not available in C
int main()
{
int num1,num2;
cin>>num1>>num2;
cout<<"The value of num1 was "<<num1<<" and the value of num2 was "<<num2<<endl;
increme... | 25.470588 | 84 | 0.618938 | anuragpathak0 |
9a3863755360d8db4842db982b74aa64ff2ef3c9 | 8,741 | cpp | C++ | src/animation/state_machine_instance.cpp | na2axl/rive-cpp | 052ecfe7982c23cadeb43bb9bc97b9b33570eb08 | [
"MIT"
] | null | null | null | src/animation/state_machine_instance.cpp | na2axl/rive-cpp | 052ecfe7982c23cadeb43bb9bc97b9b33570eb08 | [
"MIT"
] | null | null | null | src/animation/state_machine_instance.cpp | na2axl/rive-cpp | 052ecfe7982c23cadeb43bb9bc97b9b33570eb08 | [
"MIT"
] | null | null | null | #include "animation/state_machine_instance.hpp"
#include "animation/state_machine_input.hpp"
#include "animation/state_machine_bool.hpp"
#include "animation/state_machine_number.hpp"
#include "animation/state_machine_trigger.hpp"
#include "animation/state_machine_input_instance.hpp"
#include "animation/state_machine.hp... | 24.76204 | 74 | 0.64901 | na2axl |
9a429282892da2ad98961ceb0d14c43d8b898c99 | 5,091 | cpp | C++ | source/PgfPlotsAxis.cpp | ksmith0/root2tikz | b87f464a988ec8629c8adb9d0fdcb15c990a9b07 | [
"MIT"
] | null | null | null | source/PgfPlotsAxis.cpp | ksmith0/root2tikz | b87f464a988ec8629c8adb9d0fdcb15c990a9b07 | [
"MIT"
] | null | null | null | source/PgfPlotsAxis.cpp | ksmith0/root2tikz | b87f464a988ec8629c8adb9d0fdcb15c990a9b07 | [
"MIT"
] | null | null | null | #include "PgfPlotsAxis.hpp"
PgfPlotsAxis::PgfPlotsAxis(const std::string &options)
: legend_(nullptr)
{
options_.Add(options);
}
void PgfPlotsAxis::SetLegend(PgfPlotsLegend *legend) {
legend_ = legend;
}
/** Add a plot to this axis.
*
* \param[in] plot The plot to be added.
*/
void PgfPlotsAxis::AddPlot(PgfPlo... | 25.455 | 93 | 0.6209 | ksmith0 |
9a45222ac17187a3e5c5dbf12d2a7409f3495711 | 1,770 | hpp | C++ | SDK/ARKSurvivalEvolved_PortableRope_Ladder_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_PortableRope_Ladder_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_PortableRope_Ladder_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PortableRope_Ladder_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//--------------------------------------------------... | 32.181818 | 173 | 0.654237 | 2bite |
9a46d552415e92ce7f42964159225ff4586d0ddd | 119 | cpp | C++ | Source/UMenu/Private/MenuGI.cpp | robcog-iai/UMenu | e260417ff66070ff2d31c1bab4433c22d045c48e | [
"BSD-3-Clause"
] | 1 | 2019-02-13T02:22:33.000Z | 2019-02-13T02:22:33.000Z | Source/UMenu/Private/MenuGI.cpp | jobunk/UMenu | 58a5cf5ad5388152687f2a2fe4a42a59ad24299e | [
"BSD-3-Clause"
] | null | null | null | Source/UMenu/Private/MenuGI.cpp | jobunk/UMenu | 58a5cf5ad5388152687f2a2fe4a42a59ad24299e | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017, Institute for Artificial Intelligence - University of Bremen
#include "MenuGI.h"
#include "UMenu.h" | 29.75 | 79 | 0.773109 | robcog-iai |
9a46e88d08e051913da80f325e819f77841e29ab | 8,671 | cpp | C++ | src/main.cpp | Mischa-Alff/VkVoxels | 81c18e4df4a9cf57f7adb37925379850f88bcc61 | [
"MIT"
] | 1 | 2020-07-10T03:18:32.000Z | 2020-07-10T03:18:32.000Z | src/main.cpp | Mischa-Alff/VkVoxels | 81c18e4df4a9cf57f7adb37925379850f88bcc61 | [
"MIT"
] | null | null | null | src/main.cpp | Mischa-Alff/VkVoxels | 81c18e4df4a9cf57f7adb37925379850f88bcc61 | [
"MIT"
] | null | null | null | #include <vulkan/vulkan.h>
#include <GLFW/glfw3.h>
#include <vector>
#include <iostream>
#include "debug/pretty_print.hpp"
#include "utils/demangle.hpp"
constexpr std::size_t QUEUE_COUNT = 8;
int main()
{
if ( ! glfwInit()) {
std::cout << "Failed to initialize GLFW!" << std::endl;
return -1;
}
glfwSetErrorC... | 32.114815 | 95 | 0.701073 | Mischa-Alff |
9a51d07d6e7cde34cf52eda5b20608df439592d5 | 3,513 | inl | C++ | OsiInterface/GameDefinitions/EngineHooks.inl | LuxenBZH/ositools | e23e51039b8b32c944186aad16b64a7f0f610d5c | [
"MIT"
] | 192 | 2019-12-30T23:42:48.000Z | 2022-03-28T04:43:47.000Z | OsiInterface/GameDefinitions/EngineHooks.inl | LuxenBZH/ositools | e23e51039b8b32c944186aad16b64a7f0f610d5c | [
"MIT"
] | 74 | 2020-01-13T21:46:09.000Z | 2022-03-19T14:53:40.000Z | OsiInterface/GameDefinitions/EngineHooks.inl | LuxenBZH/ositools | e23e51039b8b32c944186aad16b64a7f0f610d5c | [
"MIT"
] | 30 | 2019-10-24T23:26:38.000Z | 2022-03-26T22:11:25.000Z | HOOK_DEFN(esv__Status__GetEnterChanceHook, esv__Status__GetEnterChance, esv::Status::GetEnterChanceProc, WrappableFunction)
HOOK_DEFN(esv__StatusHit__Enter, esv__StatusHit__Enter, esv::Status::EnterProc, PreHookableFunction)
HOOK_DEFN(esv__StatusHit__Setup, esv__StatusHit__Setup, esv::StatusHit::SetupProc, PreHookableF... | 103.323529 | 158 | 0.905779 | LuxenBZH |
9a5254c2ea9524088cbe73cc1cea7f6a2f46a359 | 247 | cpp | C++ | tests/src/string_replace.cpp | scaryrawr/mtl | eea8e9c6662b613dc5098a2cb442a7b1522bf8f0 | [
"MIT"
] | null | null | null | tests/src/string_replace.cpp | scaryrawr/mtl | eea8e9c6662b613dc5098a2cb442a7b1522bf8f0 | [
"MIT"
] | null | null | null | tests/src/string_replace.cpp | scaryrawr/mtl | eea8e9c6662b613dc5098a2cb442a7b1522bf8f0 | [
"MIT"
] | null | null | null | #include <mtl/string.hpp>
#include <gtest/gtest.h>
TEST(StringReplace, EscapePath)
{
std::wstring path{L"/home/user/not a real dir"};
mtl::string::replace_all(path, L" ", L"\\ ");
ASSERT_EQ(path, L"/home/user/not\\ a\\ real\\ dir");
} | 27.444444 | 56 | 0.635628 | scaryrawr |
9a55e929c4b4b44b9308a068d09425f52c1cf049 | 9,415 | cpp | C++ | tests/rpc.test.cpp | jharmer95/rpc.hpp | 8cba8ff7b63b28546d58bcf828ab93a9df03744e | [
"BSD-3-Clause"
] | 1 | 2019-11-15T21:05:18.000Z | 2019-11-15T21:05:18.000Z | tests/rpc.test.cpp | jharmer95/rpc.hpp | 8cba8ff7b63b28546d58bcf828ab93a9df03744e | [
"BSD-3-Clause"
] | 47 | 2019-11-15T20:58:44.000Z | 2022-03-30T13:19:24.000Z | tests/rpc.test.cpp | jharmer95/rpc.hpp | 8cba8ff7b63b28546d58bcf828ab93a9df03744e | [
"BSD-3-Clause"
] | null | null | null | ///@file rpc.test.cpp
///@author Jackson Harmer (jharmer95@gmail.com)
///@brief Unit test source file for rpc.hpp
///
///@copyright
///BSD 3-Clause License
///
///Copyright (c) 2020-2021, Jackson Harmer
///All rights reserved.
///
///Redistribution and use in source and binary forms, with or without
///modification, ar... | 27.772861 | 99 | 0.690919 | jharmer95 |
9a581a73301dfe9c831bfc036a94be60f835c38c | 1,138 | cpp | C++ | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/9.Queue(Linked List)/main(14).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/9.Queue(Linked List)/main(14).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/9.Queue(Linked List)/main(14).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | #include "quetype.cpp"
#include <iostream>
using namespace std;
int main()
{
QueType<int> q;
if(q.IsEmpty())
cout<<"Queue is Empty."<<endl;
else
cout<<"Queue is not Empty."<<endl;
cout<<endl;
int i, temp;
cout<<"Enter four items: "<<endl;
for(i=0; i<4; i++)
{
c... | 17.242424 | 42 | 0.465729 | diptu |
9a585526ab1cfba5a62a861222076f77c87850b3 | 3,185 | cpp | C++ | examples/glfw/src/example_3_cursor_picking.cpp | filipwasil/fillwave | 65f5eeebf8ca4a8ce2d25293874b051c2a4c0550 | [
"MIT"
] | 27 | 2015-09-26T23:29:48.000Z | 2021-03-06T08:54:46.000Z | examples/glfw/src/example_3_cursor_picking.cpp | filipwasil/fillwave | 65f5eeebf8ca4a8ce2d25293874b051c2a4c0550 | [
"MIT"
] | 83 | 2015-09-28T22:20:16.000Z | 2018-05-16T13:25:28.000Z | examples/glfw/src/example_3_cursor_picking.cpp | filipwasil/fillwave | 65f5eeebf8ca4a8ce2d25293874b051c2a4c0550 | [
"MIT"
] | 8 | 2015-11-03T22:29:29.000Z | 2018-11-17T08:49:07.000Z | #include "example_3_cursor_picking.h"
using namespace flw;
using namespace flw::flf;
using namespace flw::flc;
using namespace flw::flc;
PickableModel::PickableModel(std::string name,
flw::ps<flw::flf::Text> text,
flw::Engine* engine,
glm::vec3 initialPosition)
: flw::flf::Model(engine
, ProgramLoader(eng... | 33.882979 | 98 | 0.617582 | filipwasil |
9a5ff065d4c2d177fa6dd0f88725a2745c758d55 | 3,180 | cpp | C++ | LongestIncreasingSubsequence.cpp | SomRawat/Hacktoberfest2021-DSA | a23800b0fe05d4dcfdf36c0ac19f2133d7a1f40b | [
"MIT"
] | null | null | null | LongestIncreasingSubsequence.cpp | SomRawat/Hacktoberfest2021-DSA | a23800b0fe05d4dcfdf36c0ac19f2133d7a1f40b | [
"MIT"
] | null | null | null | LongestIncreasingSubsequence.cpp | SomRawat/Hacktoberfest2021-DSA | a23800b0fe05d4dcfdf36c0ac19f2133d7a1f40b | [
"MIT"
] | null | null | null | // Longest Increasing Subsequence Problem
/* Problem Statement:
The Longest Increasing Subsequence problems is to find a subsequence of a given sequence,
in which the subsequence's elements are in a sorted order, lowest to highest,
the resulting subsequence should be as long as possible. Here the subsequence is not... | 28.141593 | 119 | 0.618553 | SomRawat |
9a60ec1354894b0afec0802d3d4984a68fe3db05 | 185 | cpp | C++ | Sources/CObject.cpp | jpez1432/Legacy-Monster-Freestyle-Racing | bc370736643531d1bf310bd45453cd98036b58a4 | [
"Info-ZIP"
] | null | null | null | Sources/CObject.cpp | jpez1432/Legacy-Monster-Freestyle-Racing | bc370736643531d1bf310bd45453cd98036b58a4 | [
"Info-ZIP"
] | null | null | null | Sources/CObject.cpp | jpez1432/Legacy-Monster-Freestyle-Racing | bc370736643531d1bf310bd45453cd98036b58a4 | [
"Info-ZIP"
] | null | null | null |
// Include
#include "CObject.h" // Object Class Header File
// Constructor
CObject::CObject( )
{
}
// Destructor
CObject::~CObject( )
{
}
| 9.25 | 68 | 0.497297 | jpez1432 |
9a61d20e06bea100e3c347781a70c9bc5fe69ff6 | 1,304 | hpp | C++ | YYSloth/include/fs/pathiter.hpp | notYuriy/yayaos | 4df7b015cb6e572797dd40a5d2891cf24abcb4d1 | [
"MIT"
] | 12 | 2020-04-13T12:38:54.000Z | 2021-08-31T07:03:14.000Z | YYSloth/include/fs/pathiter.hpp | YayOrg/YayOS | 4df7b015cb6e572797dd40a5d2891cf24abcb4d1 | [
"MIT"
] | null | null | null | YYSloth/include/fs/pathiter.hpp | YayOrg/YayOS | 4df7b015cb6e572797dd40a5d2891cf24abcb4d1 | [
"MIT"
] | 1 | 2020-07-18T12:11:37.000Z | 2020-07-18T12:11:37.000Z | #ifndef __PATH_ITER_HPP_INCLUDED__
#define __PATH_ITER_HPP_INCLUDED__
#include <utils.hpp>
namespace fs {
constexpr char PATH_SEPARATOR = '\\';
class PathIterator {
char *m_pathcopy;
uint64_t m_pos, m_endPos, m_basenamePos;
public:
INLINE PathIterator(const char *path) {
... | 28.977778 | 79 | 0.511503 | notYuriy |
9a682c9b864b604df1e6e11abe496287dbba4950 | 959 | cpp | C++ | apps/novrt/win32/regval.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | apps/novrt/win32/regval.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | apps/novrt/win32/regval.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #include "regval.hpp"
#if defined(_WIN32)
namespace novrt::win32 {
RegStrVal::RegStrVal(std::string val) : m_valid{true}, m_val{std::move(val)} {}
RegStrVal::RegStrVal(WinErr errCode) : m_valid{false}, m_errCode{errCode} {}
RegStrVal::~RegStrVal() noexcept {
if (m_valid) {
m_val.~basic_string();
}
}
RegStr... | 20.404255 | 79 | 0.594369 | BastianBlokland |
9a6876be2e882ca2ba01bb7f610bc2fc9792a2c8 | 1,995 | cpp | C++ | project/Ex3_Cpp_Pointers/Snake.cpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | null | null | null | project/Ex3_Cpp_Pointers/Snake.cpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | null | null | null | project/Ex3_Cpp_Pointers/Snake.cpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | null | null | null | #include "Snake.hpp"
#include "SnakeBody.hpp"
Snake::Snake() {
}
// This is called every time the snake should move.
void Snake::move(){
int currentHeadPosX = snakeHead->x;
int currentHeadPosY = snakeHead->y;
snakeHead->moveTo(currentHeadPosX+this->moveX, currentHeadPosY+this->moveY);
}
// This is call... | 30.227273 | 98 | 0.657644 | mhooITU |
9a698264067bd9cc42cf478f6a9fd30e3d6bec01 | 792 | hpp | C++ | util/include/util/final_action.hpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | util/include/util/final_action.hpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | util/include/util/final_action.hpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | #pragma once
#include <utility>
namespace util {
template <class F>
class final_action
{
public:
explicit final_action(F f) noexcept
: f_(std::move(f)), invoke_(true) {}
final_action(final_action&& other) noexcept
: f_(std::move(other.f_)),
invoke_(other.invoke_)
{
other.invoke... | 16.851064 | 58 | 0.636364 | akowalew |
9a71caa96db41cb83b5bb95e4c5a8e2be8acf8e9 | 1,792 | cpp | C++ | CsWeapon/Source/CsWp/Public/Data/CsLibrary_Data_Weapon.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsWeapon/Source/CsWp/Public/Data/CsLibrary_Data_Weapon.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsWeapon/Source/CsWp/Public/Data/CsLibrary_Data_Weapon.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "Data/CsLibrary_Data_Weapon.h"
// Library
#include "Projectile/Data/CsLibrary_Data_ProjectileWeapon.h"
#include "Trace/Data/CsLibrary_Data_TraceWeapon.h"
namespace NCsWeapon
{
namespace NData
{
#define DataType NCsWeapon::NData::IData
... | 35.84 | 129 | 0.776228 | closedsum |
9a7f954d6ec61b0388f73ed20db9d2d531046641 | 567 | hpp | C++ | libs/renderer/include/sge/renderer/index/any/view_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/include/sge/renderer/index/any/view_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/index/any/view_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_RENDERER_INDEX_ANY_VIEW_FWD_HPP_INCLUDED
#define SGE_RENDERER_INDEX_ANY_VIEW_FWD_HPP_IN... | 28.35 | 87 | 0.756614 | cpreh |
9a8260f6005968bd6e6649305eb945ea6c461ec7 | 8,267 | hpp | C++ | gpu/hala_gpu_ilu.hpp | LIBHALA/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T16:21:42.000Z | 2021-02-25T16:21:42.000Z | gpu/hala_gpu_ilu.hpp | mkstoyanov/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 9 | 2020-09-03T23:31:22.000Z | 2020-10-21T23:40:11.000Z | gpu/hala_gpu_ilu.hpp | mkstoyanov/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 2 | 2020-03-03T17:39:37.000Z | 2020-11-05T16:01:28.000Z | #ifndef __HALA_GPU_SPARSE_ILU_HPP
#define __HALA_GPU_SPARSE_ILU_HPP
/*
* Code Author: Miroslav Stoyanov
*
* Copyright (C) 2018 Miroslav Stoyanov
*
* This file is part of
* Hardware Accelerated Linear Algebra (HALA)
*
*/
/*!
* \internal
* \file hala_cuda_ilu.hpp
* \brief HALA wrappers to cuSparse methods.
... | 41.335 | 170 | 0.656828 | LIBHALA |
9a85a61465e4c78916e904320d1cea068a5e6cca | 3,952 | cpp | C++ | tests/unit/backend/generic/GenericMemoryManagerTest.cpp | athenaforai/athena | 20381d9069fac901666fe5296cdb443c8969bf4a | [
"MIT"
] | null | null | null | tests/unit/backend/generic/GenericMemoryManagerTest.cpp | athenaforai/athena | 20381d9069fac901666fe5296cdb443c8969bf4a | [
"MIT"
] | null | null | null | tests/unit/backend/generic/GenericMemoryManagerTest.cpp | athenaforai/athena | 20381d9069fac901666fe5296cdb443c8969bf4a | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 Athena. All rights reserved.
* https://athenaproject.ml
*
* Licensed under MIT license.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | 27.255172 | 89 | 0.561235 | athenaforai |
893b6fac3573233654ee18c0e0356453a1267157 | 5,460 | cpp | C++ | hphp/runtime/vm/litstr-repo-proxy.cpp | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/vm/litstr-repo-proxy.cpp | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/vm/litstr-repo-proxy.cpp | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 32.694611 | 78 | 0.590476 | Raulkumar |
893eef5ce180969ebf491ab20a1fb39def25169b | 931 | cpp | C++ | .LHP/He11/.T.Van/W1/TABLE/TABLE/TABLE.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/He11/.T.Van/W1/TABLE/TABLE/TABLE.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/He11/.T.Van/W1/TABLE/TABLE/TABLE.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <cstdio>
#define maxN 2001
typedef int maxn;
typedef long long maxa;
maxn m, n;
maxa R, a[maxN][maxN], t[maxN][maxN], t1[maxN][maxN], t2[maxN][maxN];
void Prepare() {
std::cin >> m >> n >> R;
for (maxn j = 0; j < n; j++) std::cin >> a[0][j];
}
void Process() {
... | 20.688889 | 74 | 0.466165 | sxweetlollipop2912 |
89422d64f6f300ca4b8cc615634cd06e431a97e6 | 1,069 | cpp | C++ | book/section10_heap/priority_queue.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | book/section10_heap/priority_queue.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | book/section10_heap/priority_queue.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
#define MAX 2000000
#define INFTY (1 << 30)
int H, A[MAX + 1];
void maxHeapify(int i) {
int l, r, largest;
l = 2 * i;
r = 2 * i + 1;
// 左の子、自分、右の子で値が最大のノードを選ぶ
if (l <= H && A[l] > A[i])
largest = l;
else
largest = i;
... | 15.720588 | 47 | 0.487371 | Takumi1122 |
89429fad2691b9b9170764e80fa4cd5152205e76 | 2,593 | hpp | C++ | include/walker.hpp | shivamakhauri04/Roomba_robot_vacuum_cleaner | dc759dd8696924b0fd19cb141a04e874ba80836e | [
"MIT"
] | 2 | 2020-05-28T14:15:15.000Z | 2020-11-25T09:04:32.000Z | include/walker.hpp | shivamakhauri04/Roomba_robot_vacuum_cleaner | dc759dd8696924b0fd19cb141a04e874ba80836e | [
"MIT"
] | null | null | null | include/walker.hpp | shivamakhauri04/Roomba_robot_vacuum_cleaner | dc759dd8696924b0fd19cb141a04e874ba80836e | [
"MIT"
] | 1 | 2020-11-25T09:04:35.000Z | 2020-11-25T09:04:35.000Z |
/**
Copyright [MIT] 2019 Shivam Akhauri
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distri... | 31.621951 | 80 | 0.73737 | shivamakhauri04 |
894626722941eb5a1e511f88778733007461d644 | 946 | cc | C++ | src/rt_client_server/transport.cc | matthewjmiller1/rpc-transport-tests | 7c81470c89aeed48e8c98bc283bfd2b858215e87 | [
"MIT"
] | null | null | null | src/rt_client_server/transport.cc | matthewjmiller1/rpc-transport-tests | 7c81470c89aeed48e8c98bc283bfd2b858215e87 | [
"MIT"
] | null | null | null | src/rt_client_server/transport.cc | matthewjmiller1/rpc-transport-tests | 7c81470c89aeed48e8c98bc283bfd2b858215e87 | [
"MIT"
] | null | null | null | /* First, so it stays self-compiling */
#include "transport.hpp"
#include <sstream>
#include <iostream>
#include <iomanip>
namespace rt {
RcvFn Server::_rcvFn = nullptr;
const uint8_t *
DataBuf::cStrToAddr(const char *cStr)
{
return reinterpret_cast<const uint8_t *>(cStr);
}
std::string
DataBuf::bytesToHex(con... | 16.892857 | 67 | 0.646934 | matthewjmiller1 |
89467a71041ba039062c71b3b6d1efc1ad4d292d | 1,701 | hxx | C++ | include/moneta/pp/detail/add_parentheses.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 2 | 2015-10-09T12:11:54.000Z | 2016-01-20T15:34:33.000Z | include/moneta/pp/detail/add_parentheses.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 5 | 2015-07-04T20:31:32.000Z | 2015-07-04T20:44:58.000Z | include/moneta/pp/detail/add_parentheses.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | null | null | null | // [===========================================================================]
// [ M o n e t a ]
// [---------------------------------------------------------------------------]
// [ ... | 58.655172 | 90 | 0.491476 | madera |
894fcfcbfa8010870599ad08d4c88ba6cf43fe53 | 844 | cpp | C++ | BAEKJOON/no2798.cpp | minjujuu/Algorithm | 3787b57b818db9ef9b9f96bd430f57c95bbbe86d | [
"MIT"
] | null | null | null | BAEKJOON/no2798.cpp | minjujuu/Algorithm | 3787b57b818db9ef9b9f96bd430f57c95bbbe86d | [
"MIT"
] | null | null | null | BAEKJOON/no2798.cpp | minjujuu/Algorithm | 3787b57b818db9ef9b9f96bd430f57c95bbbe86d | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
using namespace std;
#define MAX 100
int main()
{
int n = 0;
int m = 0;
cin>>n>>m;
// int valOnCard[MAX];
int * valOnCard = new int[n];
for(int i=0; i<n; i++)
{
cin>>valOnCard[i];
}
int n1, n2, n3;
int ans = valOnCard[0] + valO... | 17.583333 | 60 | 0.390995 | minjujuu |
8952cc0a5213a51c4934983b829bca203bcec209 | 8,539 | cpp | C++ | SRC/Material/Hadamard/Hadamard.cpp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | SRC/Material/Hadamard/Hadamard.cpp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | SRC/Material/Hadamard/Hadamard.cpp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // Hadamard.cpp: implementation of the Hadamard class.
// Copyright (c) 2017-2018 Extreme Computation Technology and Solutions, LLC
// All rights reserved
// see file License.txt for license details
//////////////////////////////////////////////////////////////////////
#include <math.h>
#include <cassert>
#incl... | 23.588398 | 77 | 0.472772 | bxl295 |
89537effbc299c7a1d6ae10b4edd866c5474ebfd | 2,516 | cc | C++ | src/windows/libraries/advapi32/functions/CryptHashData.cc | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | src/windows/libraries/advapi32/functions/CryptHashData.cc | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | src/windows/libraries/advapi32/functions/CryptHashData.cc | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 Assured Information Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 32.675325 | 88 | 0.694356 | srpape |
895684da41d8cfea267d1805f1af4e939450b7f2 | 1,547 | cpp | C++ | OJ/CF1354B/CF-13548B-f.cpp | bayusamudra5502/PustakaCpp | ac67e47374740b4923dd135d67f4bf987d4010b4 | [
"MIT"
] | null | null | null | OJ/CF1354B/CF-13548B-f.cpp | bayusamudra5502/PustakaCpp | ac67e47374740b4923dd135d67f4bf987d4010b4 | [
"MIT"
] | null | null | null | OJ/CF1354B/CF-13548B-f.cpp | bayusamudra5502/PustakaCpp | ac67e47374740b4923dd135d67f4bf987d4010b4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// ? Link : https://codeforces.com/problemset/problem/1354/B
const int INF = 999'999;
int db[4][200'050];
bool ada(int l, int r){
return (db[1][r] - db[1][l-1] > 0) &&
(db[2][r] - db[2][l-1] > 0) &&
(db[3][r] - db[3][l-1] > 0);
}
int pendek(int l, int... | 19.833333 | 60 | 0.38203 | bayusamudra5502 |
895a7b50060a9248d0b90c47d443fab9ea547a0c | 76 | hpp | C++ | include/doge/entity.hpp | cjdb/doge | 421e1dce86df0eb73a6907408e93d0982adf057d | [
"Apache-2.0"
] | 6 | 2017-10-13T23:01:29.000Z | 2019-07-05T16:04:51.000Z | include/doge/entity.hpp | cjdb/doge | 421e1dce86df0eb73a6907408e93d0982adf057d | [
"Apache-2.0"
] | 46 | 2018-02-05T21:54:11.000Z | 2018-03-12T10:00:08.000Z | include/doge/entity.hpp | cjdb/doge | 421e1dce86df0eb73a6907408e93d0982adf057d | [
"Apache-2.0"
] | 3 | 2018-02-07T14:15:51.000Z | 2018-03-01T11:40:54.000Z | #include "doge/entity/camera.hpp"
#include "doge/entity/light_source.hpp"
| 25.333333 | 40 | 0.763158 | cjdb |
896dbe62e52c7fb84649123276cc87be1000b460 | 2,714 | cpp | C++ | src/MemePhysics/Physics.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | src/MemePhysics/Physics.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | src/MemePhysics/Physics.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | #include <MemePhysics/Physics.hpp>
#include <MemePhysics/Rigidbody.hpp>
#include <MemePhysics/Collider.hpp>
#include <MemePhysics/Particle.hpp>
#include <MemeCore/Debug.hpp>
#define ML_GRAVITY -9.80665f
namespace ml
{
/* * * * * * * * * * * * * * * * * * * * */
const vec3 Physics::Gravity(0.0f, ML_GRAVITY, 0.0f);
... | 21.370079 | 86 | 0.519528 | Gurman8r |
896e107a79f1ee3ba7f4a1defddefae790cab320 | 14,601 | cpp | C++ | main.cpp | oselin/diitpahomework1 | b9a61fbd19fb54f860ffd0ede363d39857a3dc2c | [
"MIT"
] | null | null | null | main.cpp | oselin/diitpahomework1 | b9a61fbd19fb54f860ffd0ede363d39857a3dc2c | [
"MIT"
] | 31 | 2021-04-09T16:51:46.000Z | 2021-07-09T11:10:33.000Z | main.cpp | oselin/diitpahomework1 | b9a61fbd19fb54f860ffd0ede363d39857a3dc2c | [
"MIT"
] | 6 | 2021-04-16T18:55:09.000Z | 2021-05-05T14:14:15.000Z | #include <iostream>
#include <string>
#include "car_trailer.h"
#include "machine_car_trailer.h"
#include <fstream>
#include <streambuf>
#include <sstream>
#include <unordered_map>
using namespace std;
//UI supporting functions-------------------------
string questions[] = {"SVG width: ", "SVG height: ","Car lenght:... | 27.240672 | 169 | 0.488871 | oselin |
896f194074e2538b735053086f93adb91e42d1c9 | 1,049 | cpp | C++ | CLRS/Math/ANumberAfteraDoubleReversal.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | CLRS/Math/ANumberAfteraDoubleReversal.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | CLRS/Math/ANumberAfteraDoubleReversal.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | /*
Reversing an integer means to reverse all its digits.
For example, reversing 2021 gives 1202. Reversing 12300 gives 321 as the leading zeros are not retained.
Given an integer num, reverse num to get reversed1, then reverse reversed1 to get reversed2. Return true if reversed2 equals num. Otherwise return false.
... | 25.585366 | 153 | 0.696854 | ComputerProgrammerStorager |
89731ff38e9767ae99e1755b25c187f64f39211f | 732 | cpp | C++ | tools/clang/test/CodeGenCXX/microsoft-abi-constructors.cpp | nettrino/IntFlow | 0400aef5da2c154268d8b020e393c950435395b3 | [
"Unlicense"
] | 16 | 2015-09-08T08:49:11.000Z | 2019-07-20T14:46:20.000Z | src/llvm/tools/clang/test/CodeGenCXX/microsoft-abi-constructors.cpp | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2019-02-10T08:27:48.000Z | 2019-02-10T08:27:48.000Z | src/llvm/tools/clang/test/CodeGenCXX/microsoft-abi-constructors.cpp | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 7 | 2016-05-26T17:31:46.000Z | 2020-11-04T06:39:23.000Z | // RUN: %clang_cc1 -emit-llvm %s -o - -cxx-abi microsoft -triple=i386-pc-win32 | FileCheck %s
class A {
public:
A() { }
~A() { }
};
void no_contstructor_destructor_infinite_recursion() {
A a;
// CHECK: define linkonce_odr x86_thiscallcc %class.A* @"\01??0A@@QAE@XZ"(%class.A* %this)
// CHECK: [[THI... | 29.28 | 95 | 0.594262 | nettrino |
8978cf4dddbbc0f9a093a3219dfabd3a53fe474b | 1,359 | cpp | C++ | source/sprites/JointPose.cpp | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | source/sprites/JointPose.cpp | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | source/sprites/JointPose.cpp | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | #include "sprite2/JointPose.h"
#include <SM_Calc.h>
namespace s2
{
JointPose::JointPose()
: rot(0)
, scale(1, 1)
{
}
JointPose::JointPose(const sm::vec2& trans, float rot, const sm::vec2& scale)
: trans(trans)
, rot(rot)
, scale(scale)
{
}
JointPose JointPose::operator - () const
{
JointPose inv;
inv.trans ... | 21.234375 | 81 | 0.67844 | xzrunner |
897efa7f311878d5914921cc582200230627a991 | 216 | cpp | C++ | planner/src/planner/node.cpp | Benned-H/SLAM-ROS | e943b03b9215684f339fae87d88e540e50aef286 | [
"MIT"
] | 1 | 2021-07-27T00:10:01.000Z | 2021-07-27T00:10:01.000Z | planner/src/planner/node.cpp | Benned-H/SLAM-ROS | e943b03b9215684f339fae87d88e540e50aef286 | [
"MIT"
] | null | null | null | planner/src/planner/node.cpp | Benned-H/SLAM-ROS | e943b03b9215684f339fae87d88e540e50aef286 | [
"MIT"
] | 1 | 2020-09-12T18:47:31.000Z | 2020-09-12T18:47:31.000Z | // Author: Benned Hedegaard
#include "planner/node.h"
Node::Node( const int& xArg, const int& yArg ) {
x = xArg;
y = yArg;
g = 0.0;
f = 0.0;
prev = nullptr;
}
Node::~Node() {} // Deconstructor
| 15.428571 | 48 | 0.555556 | Benned-H |
8980012d7dd19894d5fd793cc8283696581007de | 1,612 | cpp | C++ | src/ripple/ledger/impl/CachedSLEs.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 5 | 2019-01-23T04:36:03.000Z | 2020-02-04T07:10:39.000Z | src/ripple/ledger/impl/CachedSLEs.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | null | null | null | src/ripple/ledger/impl/CachedSLEs.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 2 | 2019-05-14T07:26:59.000Z | 2020-06-15T07:25:01.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//————————————————————————————————————————————————————————————————————————————————————————————————————————————————
/*
... | 22.704225 | 114 | 0.521092 | yinchengtsinghua |
898120caa2d197cf2e2aa26c9ed8a37798a90c7f | 2,667 | cpp | C++ | moai/src/uslscore/USByteStream.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/uslscore/USByteStream.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/uslscore/USByteStream.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | // Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved.
// http://getmoai.com
#include "pch.h"
#include <uslscore/USFileSys.h>
#include <uslscore/USDirectoryItr.h>
#include <uslscore/USByteStream.h>
#include <stdio.h>
//================================================================//
// USByteStream
//... | 24.245455 | 75 | 0.416948 | jjimenezg93 |
8983ef284578603e742c038f882f6080e13671fd | 637 | hxx | C++ | include/nifty/python/graph/opt/multicut/multicut_objective.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | 38 | 2016-06-29T07:42:50.000Z | 2021-12-09T09:25:25.000Z | include/nifty/python/graph/opt/multicut/multicut_objective.hxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 62 | 2016-07-27T16:07:53.000Z | 2022-03-30T17:24:36.000Z | include/nifty/python/graph/opt/multicut/multicut_objective.hxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 20 | 2016-01-25T21:21:52.000Z | 2021-12-09T09:25:16.000Z | #pragma once
#include "nifty/graph/opt/multicut/multicut_objective.hxx"
#include "nifty/python/graph/graph_name.hxx"
namespace nifty{
namespace graph{
namespace opt{
namespace multicut{
template<class OBJECTIVE>
struct MulticutObjectiveName;
template<class GRAPH>
using PyDefaultMulticutObjective = ... | 21.233333 | 79 | 0.709576 | konopczynski |
8985e083235e58dd33fcea60d5bf0d55b18c50cc | 92 | hpp | C++ | src/components/Velocity.hpp | Ghabriel/ecs-pong | dde705134afd218812e1ac529519d92d8e965acd | [
"Apache-2.0"
] | null | null | null | src/components/Velocity.hpp | Ghabriel/ecs-pong | dde705134afd218812e1ac529519d92d8e965acd | [
"Apache-2.0"
] | null | null | null | src/components/Velocity.hpp | Ghabriel/ecs-pong | dde705134afd218812e1ac529519d92d8e965acd | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../engine/shapes/Point.hpp"
struct Velocity {
Vector value;
};
| 11.5 | 37 | 0.673913 | Ghabriel |
898ab5e9a00f33f96b6cad8ad0b6bbf4636aab95 | 3,156 | cpp | C++ | src/character.cpp | CS126SP20/final-project-swee4 | 50c443c95516bdfbb6b83825998ce68033282f35 | [
"MIT"
] | null | null | null | src/character.cpp | CS126SP20/final-project-swee4 | 50c443c95516bdfbb6b83825998ce68033282f35 | [
"MIT"
] | null | null | null | src/character.cpp | CS126SP20/final-project-swee4 | 50c443c95516bdfbb6b83825998ce68033282f35 | [
"MIT"
] | null | null | null | // Copyright (c) 2020 [Sue Wee]. All rights reserved.
#include <mylibrary/character.h>
namespace mylibrary {
Character::Character() {
current_x_tile = 1;
current_y_tile = 1;
tile_length = 64;
current_image = cinder::ciAnimatedGif::create( ci::app::loadAsset("beemo/beemo right.gif"));
orientation ... | 23.552239 | 124 | 0.676489 | CS126SP20 |
898da3024485b292a5ced75dc855494ae278bbdc | 1,584 | cpp | C++ | JobduInCPlusPlus/1460 Oil Deposit.cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | 16 | 2017-04-17T03:52:51.000Z | 2021-01-21T07:56:50.000Z | JobduInCPlusPlus/1460 Oil Deposit.cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | null | null | null | JobduInCPlusPlus/1460 Oil Deposit.cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | 7 | 2017-04-17T03:52:52.000Z | 2019-09-26T08:41:08.000Z | //
// 1460 Oil Deposit.cpp
// Jobdu
//
// Created by PengFei_Zheng on 23/04/2017.
// Copyright © 2017 PengFei_Zheng. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <string.h>
#include <cmath>
#define MAX_SIZE 101
using namespace std;
char plot[MAX_SIZE][MAX_SIZE];
bo... | 24 | 64 | 0.424874 | zpfbuaa |
89908a7a758aa04ea9fc449faac072ce768363cb | 7,699 | cpp | C++ | tests/Basic/ArrayView/main.cpp | CASH2-js/cash2 | 17d5582ec41149567fcad12ba58c392fab502097 | [
"BSD-3-Clause"
] | null | null | null | tests/Basic/ArrayView/main.cpp | CASH2-js/cash2 | 17d5582ec41149567fcad12ba58c392fab502097 | [
"BSD-3-Clause"
] | null | null | null | tests/Basic/ArrayView/main.cpp | CASH2-js/cash2 | 17d5582ec41149567fcad12ba58c392fab502097 | [
"BSD-3-Clause"
] | 1 | 2020-05-13T19:39:58.000Z | 2020-05-13T19:39:58.000Z | // Copyright (c) 2018-2020 The Cash2 developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <Common/ArrayView.h>
#include <gtest/gtest.h>
/*
MyNotes
class ArrayView
public
ArrayView()
ArrayView()
ArrayV... | 17.418552 | 71 | 0.615405 | CASH2-js |
899a658cf3b567dc9c5ec395f2a36badd5a78e0e | 550 | cpp | C++ | typehints/mytype.cpp | liff-engineer/pybind11-examples | 735623ee641069266f2de4c4e5ce0b6df4b5751e | [
"MIT"
] | 3 | 2020-12-30T07:49:43.000Z | 2022-01-23T14:39:32.000Z | typehints/mytype.cpp | liff-engineer/pybind11-examples | 735623ee641069266f2de4c4e5ce0b6df4b5751e | [
"MIT"
] | null | null | null | typehints/mytype.cpp | liff-engineer/pybind11-examples | 735623ee641069266f2de4c4e5ce0b6df4b5751e | [
"MIT"
] | null | null | null | #include <pybind11\pybind11.h>
namespace py = pybind11;
enum Kind
{
Dog = 0,
Cat
};
struct Pet
{
Pet(const std::string &name, Kind type) : name(name), type(type) {}
std::string name;
Kind type;
};
PYBIND11_MODULE(mytype, m)
{
py::class_<Pet> pet(m, "Pet");
pet.def(py::init<const std::s... | 17.741935 | 71 | 0.563636 | liff-engineer |
89a1d015bb8eb8beae9918f2dc343251cb09b845 | 672 | cpp | C++ | src/Roomba.cpp | Schoonology/alfred | 96874d5efaacd2f338c48e6b3cdc5d13565750e0 | [
"MIT"
] | null | null | null | src/Roomba.cpp | Schoonology/alfred | 96874d5efaacd2f338c48e6b3cdc5d13565750e0 | [
"MIT"
] | null | null | null | src/Roomba.cpp | Schoonology/alfred | 96874d5efaacd2f338c48e6b3cdc5d13565750e0 | [
"MIT"
] | null | null | null | #include "Particle.h"
#include "Roomba.h"
#define BRC_PIN D0
#define BAUD_RATE 115200
void Roomba::begin() {
pinMode(BRC_PIN, OUTPUT);
Serial1.begin(BAUD_RATE);
sleep();
}
void Roomba::send(unsigned char byte) {
Serial1.write(byte);
}
void Roomba::wake() {
digitalWrite(BRC_PIN, HIGH);
delay(100);
... | 13.44 | 39 | 0.639881 | Schoonology |
89a81c46aa2fb92f6671807c6429d14909e3ee53 | 47,808 | cc | C++ | cc/virus/name-parse.cc | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | cc/virus/name-parse.cc | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | cc/virus/name-parse.cc | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | #include <array>
#include <vector>
#include <cctype>
#include <algorithm>
#include "ext/lexy.hh"
#include "ext/date.hh"
#include "ext/from_chars.hh"
#include "utils/log.hh"
#include "utils/string.hh"
#include "utils/messages.hh"
#include "virus/name-parse.hh"
#include "locdb/v3/locdb.hh"
// ==========================... | 49.696466 | 240 | 0.547461 | skepner |
89b2e365a1f42bc08e1b3a5d669ef0804fbc08cb | 399 | cpp | C++ | GetOnToC++/Step_1/Practice_Problems/S1_PP4.cpp | NarayanMahadevan/MakeTechEz | 9e47733889ab2170835f60d5b3c38ed7aac6d85b | [
"Apache-2.0"
] | null | null | null | GetOnToC++/Step_1/Practice_Problems/S1_PP4.cpp | NarayanMahadevan/MakeTechEz | 9e47733889ab2170835f60d5b3c38ed7aac6d85b | [
"Apache-2.0"
] | null | null | null | GetOnToC++/Step_1/Practice_Problems/S1_PP4.cpp | NarayanMahadevan/MakeTechEz | 9e47733889ab2170835f60d5b3c38ed7aac6d85b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
double const pi = 3.14159;
int main(){
int radius;
cout << "Please enter a number" << endl;
cin >> radius;
int diameter = radius*2;
int circumference = diameter*pi;
int area = pi*radius*radius;
cout << "The diameter is " << diameter << endl
<< "The circumgerence is ... | 22.166667 | 55 | 0.639098 | NarayanMahadevan |
89ba08ced58856eae4de8967a551d2037a100485 | 132 | hpp | C++ | assistant/fan.hpp | mddigaetano/AccessibleHomeAutomation | 1798402e6a8a7826a0e368d58bf171e756320c4b | [
"MIT"
] | null | null | null | assistant/fan.hpp | mddigaetano/AccessibleHomeAutomation | 1798402e6a8a7826a0e368d58bf171e756320c4b | [
"MIT"
] | null | null | null | assistant/fan.hpp | mddigaetano/AccessibleHomeAutomation | 1798402e6a8a7826a0e368d58bf171e756320c4b | [
"MIT"
] | null | null | null | #ifndef FAN
#define FAN
#define PIN_FAN1 A1
#define PIN_FAN2 A0
#endif
void fan(const char * message);
const int rpm = 200;
| 14.666667 | 31 | 0.69697 | mddigaetano |
89c4deb24405a4b304db582033b1e844710a107f | 6,781 | cpp | C++ | src/core/sbc_client.cpp | SavaLione/SBC | e3634a59aef1340fc19a8db6dfdba2d9c099d69f | [
"BSD-3-Clause"
] | null | null | null | src/core/sbc_client.cpp | SavaLione/SBC | e3634a59aef1340fc19a8db6dfdba2d9c099d69f | [
"BSD-3-Clause"
] | null | null | null | src/core/sbc_client.cpp | SavaLione/SBC | e3634a59aef1340fc19a8db6dfdba2d9c099d69f | [
"BSD-3-Clause"
] | 1 | 2020-12-09T11:22:45.000Z | 2020-12-09T11:22:45.000Z | /*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2020, Savely Pototsky (SavaLione)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must ... | 32.444976 | 112 | 0.553016 | SavaLione |
89c58d6a7eab21822bb6aaf48a8938e81e3db3c9 | 3,229 | cpp | C++ | src/gui/timer_settings_dialog.cpp | hhhHanqing/bias | ac409978ac0bfc6bc4cf8570bf7ce7509e81a219 | [
"Apache-2.0"
] | 5 | 2020-07-23T18:59:08.000Z | 2021-12-14T02:56:12.000Z | src/gui/timer_settings_dialog.cpp | hhhHanqing/bias | ac409978ac0bfc6bc4cf8570bf7ce7509e81a219 | [
"Apache-2.0"
] | 4 | 2020-08-30T13:55:22.000Z | 2022-03-24T21:14:15.000Z | src/gui/timer_settings_dialog.cpp | hhhHanqing/bias | ac409978ac0bfc6bc4cf8570bf7ce7509e81a219 | [
"Apache-2.0"
] | 3 | 2020-10-04T17:53:15.000Z | 2022-02-24T05:55:53.000Z | #include "timer_settings_dialog.hpp"
#include <iostream>
namespace bias
{
TimerSettingsDialog::TimerSettingsDialog(unsigned long duration, QWidget *parent)
: QDialog(parent)
{
setupUi(this);
initialize(duration);
connectWidgets();
}
void TimerSetting... | 26.467213 | 87 | 0.531744 | hhhHanqing |
89cc6eb49722e4f105116c6dd82e5c86eb712301 | 288 | cpp | C++ | Consumers/GpLogConsumerFactory.cpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | Consumers/GpLogConsumerFactory.cpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | Consumers/GpLogConsumerFactory.cpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | #include "GpLogConsumerFactory.hpp"
namespace GPlatform {
GpLogConsumerFactory::GpLogConsumerFactory (GpByteSerializer::SP aFormatter) noexcept:
iFormatter(std::move(aFormatter))
{
}
GpLogConsumerFactory::~GpLogConsumerFactory (void) noexcept
{
}
}//namespace GPlatform
| 19.2 | 87 | 0.767361 | aofitserov |
89dd01be2a1c0658bdb6a9bead1f843fc374a4ba | 946 | cpp | C++ | src/tdme/utils/StringTokenizer.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/utils/StringTokenizer.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/utils/StringTokenizer.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | #include <string>
#include <vector>
#include <tdme/utils/StringTokenizer.h>
using std::string;
using tdme::utils::StringTokenizer;
StringTokenizer::StringTokenizer() {
}
void StringTokenizer::tokenize(const string& str, const string& delimiters)
{
idx = 0;
elements.clear();
string token;
for (int i = 0; i < st... | 18.192308 | 75 | 0.651163 | mahula |
89e331d1c69035fd6efdbebbd5eb11dcab18b7b4 | 468 | hpp | C++ | nrf52-remote-display/src/states/start.hpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 4 | 2016-12-10T13:20:52.000Z | 2019-10-25T19:47:44.000Z | nrf52-remote-display/src/states/start.hpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | null | null | null | nrf52-remote-display/src/states/start.hpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 1 | 2019-05-03T17:31:38.000Z | 2019-05-03T17:31:38.000Z | #pragma once
#include <nrf_log.h>
#include <peer_manager.h>
#include "common.hpp"
using namespace fsm;
namespace states {
struct idle;
struct connectable;
struct start : Base {
virtual void enter(Context &context) {
NRF_LOG_INFO("Start");
}
void transition(Control &control, Context &context... | 17.333333 | 57 | 0.617521 | chacal |
89e4f4741310e29ce7ed73c6da614f050d9f50e4 | 1,069 | hpp | C++ | src/com/Rect.hpp | awwdev/rts | 705a45e654ec48ebcfc9cfe5cef348025b11bccc | [
"MIT"
] | 6 | 2021-02-02T04:26:32.000Z | 2022-01-11T19:00:33.000Z | src/com/Rect.hpp | awwdev/rts | 705a45e654ec48ebcfc9cfe5cef348025b11bccc | [
"MIT"
] | 1 | 2021-07-21T15:21:28.000Z | 2021-07-21T15:21:28.000Z | src/com/Rect.hpp | awwdev/rts | 705a45e654ec48ebcfc9cfe5cef348025b11bccc | [
"MIT"
] | 1 | 2021-12-27T16:03:45.000Z | 2021-12-27T16:03:45.000Z | #pragma once
#include <iostream>
#include "com/Vec.hpp"
///////////////////////////////////////////////////////////
namespace rts::com {
///////////////////////////////////////////////////////////
template<typename T>
struct Rect
{
com::Vec2<T> pos;
com::Vec2<T> size;
auto GetPos2() const { return pos... | 23.23913 | 90 | 0.418148 | awwdev |
89e8a89f65198073381894550b841960d5489148 | 20,722 | hpp | C++ | mathematica/mathematica_body.hpp | R-T-B/Principia | 77931337c891bc3b314ca867ff8c2efd04f8e89e | [
"MIT"
] | null | null | null | mathematica/mathematica_body.hpp | R-T-B/Principia | 77931337c891bc3b314ca867ff8c2efd04f8e89e | [
"MIT"
] | null | null | null | mathematica/mathematica_body.hpp | R-T-B/Principia | 77931337c891bc3b314ca867ff8c2efd04f8e89e | [
"MIT"
] | null | null | null |
#pragma once
#include "mathematica/mathematica.hpp"
#include <cmath>
#include <limits>
#include <map>
#include <sstream>
#include <string>
#include <tuple>
#include <vector>
#include "base/mod.hpp"
#include "base/not_constructible.hpp"
#include "base/traits.hpp"
#include "quantities/si.hpp"
namespace principia {
... | 35.913345 | 80 | 0.629235 | R-T-B |
89eb5b80ef421ef0aca21bf6bcbbaa34e2810f1a | 4,189 | cpp | C++ | src/sbbs3/con_hi.cpp | jonny290/synchronet | 012a39d00a3160a593ef5923fdc1ee95e0497083 | [
"Artistic-2.0"
] | 1 | 2017-07-18T03:56:48.000Z | 2017-07-18T03:56:48.000Z | src/sbbs3/con_hi.cpp | jonny290/synchronet | 012a39d00a3160a593ef5923fdc1ee95e0497083 | [
"Artistic-2.0"
] | null | null | null | src/sbbs3/con_hi.cpp | jonny290/synchronet | 012a39d00a3160a593ef5923fdc1ee95e0497083 | [
"Artistic-2.0"
] | null | null | null | /* con_hi.cpp */
/* Synchronet hi-level console routines */
/* $Id: con_hi.cpp,v 1.21 2011/10/19 08:20:16 deuce Exp $ */
/****************************************************************************
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/p... | 32.984252 | 90 | 0.573407 | jonny290 |
8854d2e5c450b2001d480e027b6fa140ef6dcc24 | 4,248 | cpp | C++ | perplexity-sycl/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 58 | 2020-08-06T18:53:44.000Z | 2021-10-01T07:59:46.000Z | perplexity-sycl/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 2 | 2020-12-04T12:35:02.000Z | 2021-03-04T22:49:25.000Z | perplexity-sycl/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 13 | 2020-08-19T13:44:18.000Z | 2021-09-08T04:25:34.000Z | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 28.897959 | 101 | 0.5758 | BeauJoh |
8856ca65a97b058a8bc0530ea0eed43081dbe5b9 | 996 | cpp | C++ | 1091-shortest-path-in-binary-matrix/1091-shortest-path-in-binary-matrix.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | 1091-shortest-path-in-binary-matrix/1091-shortest-path-in-binary-matrix.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | 1091-shortest-path-in-binary-matrix/1091-shortest-path-in-binary-matrix.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | class Solution {
public:
int shortestPathBinaryMatrix(vector<vector<int>>& grid) {
if(grid[0][0]==1){
return -1;
}
queue<pair<int,int>> q;
q.push({0,0});
int dir[8][2]={{-1,0},{0,-1},{0,1},{1,0},{-1,-1},{1,1},{-1,1},{1,-1}};
int cnt=0;
while(!q.emp... | 31.125 | 91 | 0.340361 | sahib-pratap-singh |
885de2ae5f77cfb95bebef8e8b6d3a7f624e00ed | 7,524 | cpp | C++ | src/Scene.cpp | Stibius/RayTracer | d71e6de6d5607cf705db56c095e9381ad26c62d0 | [
"Unlicense"
] | null | null | null | src/Scene.cpp | Stibius/RayTracer | d71e6de6d5607cf705db56c095e9381ad26c62d0 | [
"Unlicense"
] | null | null | null | src/Scene.cpp | Stibius/RayTracer | d71e6de6d5607cf705db56c095e9381ad26c62d0 | [
"Unlicense"
] | null | null | null | #include "Scene.h"
void Scene::changeMaterialInShape(ComponentShape* shape, const Material* oldMaterial, const Material* newMaterial)
{
if (shape == nullptr)
{
return;
}
if (shape->getMaterial() == oldMaterial)
{
shape->setMaterial(newMaterial);
}
changeMaterialInShape(shape->getLeftChild(), oldMaterial, ... | 19.242967 | 116 | 0.680622 | Stibius |
8861cfa1cfff4540eb6101b35f56b16ed24b2c9d | 5,164 | cpp | C++ | src/InlineSimpleFunction.cpp | tnkhanh/llvm-normalizer | 6054c187155115592ad232eedc48e0cdbc27177a | [
"Apache-2.0"
] | null | null | null | src/InlineSimpleFunction.cpp | tnkhanh/llvm-normalizer | 6054c187155115592ad232eedc48e0cdbc27177a | [
"Apache-2.0"
] | null | null | null | src/InlineSimpleFunction.cpp | tnkhanh/llvm-normalizer | 6054c187155115592ad232eedc48e0cdbc27177a | [
"Apache-2.0"
] | null | null | null | /********************************************************************
* This file is part of the tool Normalizer of the project Discover.
*
* Copyright (c) 2020-2021 Singapore Blockchain Innovation Programme.
* All rights reserved.
*******************************************************************/
#include "Inl... | 27.036649 | 80 | 0.561387 | tnkhanh |
8869cb5847a87dea5774b9b7d6c086081034ddbd | 6,929 | cpp | C++ | ImageAnalysisKit/IABufferAnalysis.cpp | rmenke/ImageAnalysisKit | fc3ec39a09033c0486b65c220f97d1f87cf934e3 | [
"MIT"
] | null | null | null | ImageAnalysisKit/IABufferAnalysis.cpp | rmenke/ImageAnalysisKit | fc3ec39a09033c0486b65c220f97d1f87cf934e3 | [
"MIT"
] | null | null | null | ImageAnalysisKit/IABufferAnalysis.cpp | rmenke/ImageAnalysisKit | fc3ec39a09033c0486b65c220f97d1f87cf934e3 | [
"MIT"
] | null | null | null | //
// IABufferAnalysis.cpp
// ImageAnalysisKit
//
// Created by Rob Menke on 4/18/19.
// Copyright © 2019 Rob Menke. All rights reserved.
//
#include "IABufferAnalysis.h"
#include "IAScoreboard.hpp"
#include "IAPolyline.hpp"
#include "IAPostprocess.hpp"
#include "cf_util.hpp"
#include <simd/simd.h>
#include <ar... | 33.635922 | 134 | 0.625343 | rmenke |
886a383ff08513bc38205bf58a52e858c638a2fa | 3,171 | cpp | C++ | mainwindow.cpp | JJendryka/Photomultiplier | 034dff549842439d86a2f6c01346e27a16908e42 | [
"MIT"
] | null | null | null | mainwindow.cpp | JJendryka/Photomultiplier | 034dff549842439d86a2f6c01346e27a16908e42 | [
"MIT"
] | null | null | null | mainwindow.cpp | JJendryka/Photomultiplier | 034dff549842439d86a2f6c01346e27a16908e42 | [
"MIT"
] | 1 | 2020-10-13T07:43:44.000Z | 2020-10-13T07:43:44.000Z | #include <QtCharts>
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
, serial(this)
{
ui->setupUi(this);
createMenu();
createDocks();
createPlot();
fileMenu->addAction("Save", measurementDock, &... | 29.635514 | 104 | 0.713655 | JJendryka |
886fb1410ae032f16b35d2d86a8f4a39cdd0cbfc | 3,774 | cpp | C++ | dbms/src/Flash/Coprocessor/UnaryDAGResponseWriter.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/Flash/Coprocessor/UnaryDAGResponseWriter.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/Flash/Coprocessor/UnaryDAGResponseWriter.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 11 | 2022-03-25T09:15:36.000Z | 2022-03-25T09:45:07.000Z | // Copyright 2022 PingCAP, Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 33.39823 | 115 | 0.700848 | solotzg |
887abc9528d673ee875dd36a9e2882b8deeb841e | 332 | cpp | C++ | sword_Offer/Project1PrintFromTopToBottom/21_PrintFromTopToBottom.cpp | bastamon/CodingInterviewChinese2 | 625c3907c6c5fe36d5cc1f2f91d8e062c90c932e | [
"BSD-3-Clause"
] | null | null | null | sword_Offer/Project1PrintFromTopToBottom/21_PrintFromTopToBottom.cpp | bastamon/CodingInterviewChinese2 | 625c3907c6c5fe36d5cc1f2f91d8e062c90c932e | [
"BSD-3-Clause"
] | null | null | null | sword_Offer/Project1PrintFromTopToBottom/21_PrintFromTopToBottom.cpp | bastamon/CodingInterviewChinese2 | 625c3907c6c5fe36d5cc1f2f91d8e062c90c932e | [
"BSD-3-Clause"
] | 1 | 2021-04-12T03:06:44.000Z | 2021-04-12T03:06:44.000Z | #include<stack>
#include<vector>
#include<iostream>
#include<cstdio>
#include<cstdlib>
struct TreeNode {
int val;
struct TreeNode *left;
struct TreeNode *right;
TreeNode(int x) :
val(x), left(NULL), right(NULL) {
}
};
using namespace std;
class Solution {
public:
vector<int> PrintFromTopToBottom(TreeNode* ro... | 15.090909 | 51 | 0.704819 | bastamon |
887b55a10685bb9d5e79c23a55771e2f3c1bb420 | 1,763 | hpp | C++ | include/pathfinding/Path.hpp | AIS1002-OOP/Pathfinding | 026d8f3cef101de38abfc8430509e9dab5e66a17 | [
"MIT"
] | null | null | null | include/pathfinding/Path.hpp | AIS1002-OOP/Pathfinding | 026d8f3cef101de38abfc8430509e9dab5e66a17 | [
"MIT"
] | null | null | null | include/pathfinding/Path.hpp | AIS1002-OOP/Pathfinding | 026d8f3cef101de38abfc8430509e9dab5e66a17 | [
"MIT"
] | null | null | null |
#ifndef PATHFINDING_PATH_HPP
#define PATHFINDING_PATH_HPP
#include "Coordinate.hpp"
#include <ostream>
#include <stdexcept>
#include <string>
#include <vector>
#include <algorithm>
/**
* A path determined by some path finding algorithm. A series of steps from
* the starting location to the target location. This i... | 23.197368 | 86 | 0.62734 | AIS1002-OOP |
887c701940fcd8635ada37c77d4f76091bdebc0c | 1,890 | cpp | C++ | src/RESTAPI_file.cpp | sdechi/wlan-cloud-ucentralgw | fc7933f8919d50c493d7da0c2cb7e415bce2df43 | [
"BSD-3-Clause"
] | null | null | null | src/RESTAPI_file.cpp | sdechi/wlan-cloud-ucentralgw | fc7933f8919d50c493d7da0c2cb7e415bce2df43 | [
"BSD-3-Clause"
] | null | null | null | src/RESTAPI_file.cpp | sdechi/wlan-cloud-ucentralgw | fc7933f8919d50c493d7da0c2cb7e415bce2df43 | [
"BSD-3-Clause"
] | null | null | null | //
// License type: BSD 3-Clause License
// License copy: https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/blob/master/LICENSE
//
// Created by Stephane Bourque on 2021-03-04.
// Arilia Wireless Inc.
//
#include "RESTAPI_file.h"
#include "uFileUploader.h"
#include "uStorageService.h"
#include "Poco/File.h... | 28.208955 | 112 | 0.643386 | sdechi |
887ed24bac1acad2186f103a53f76f1acabbd16c | 1,652 | cpp | C++ | OOPS/Dynamic_Initialize_Object.cpp | SusheelThapa/Code-With-C-Plus-Plus | 8fdf86bf5a8420f8cd2e5d8afb8e1aebc376f136 | [
"MIT"
] | null | null | null | OOPS/Dynamic_Initialize_Object.cpp | SusheelThapa/Code-With-C-Plus-Plus | 8fdf86bf5a8420f8cd2e5d8afb8e1aebc376f136 | [
"MIT"
] | null | null | null | OOPS/Dynamic_Initialize_Object.cpp | SusheelThapa/Code-With-C-Plus-Plus | 8fdf86bf5a8420f8cd2e5d8afb8e1aebc376f136 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class BankDeposit
{
float principal;
int time_of_years;
float rate;
float return_value;
public:
//For dynamic inializeing of Object we need default constructor
BankDeposit(void) {}
//When R is in fraction number
BankDeposit(float p, int t, flo... | 19.666667 | 67 | 0.504237 | SusheelThapa |
88881c92ade79cbf6a7af6bc29bb28f3bc4df018 | 2,159 | cpp | C++ | field/phaser/phaser.cpp | maasijam/DaisyExamples | d982852292c16ccd6884f5f1313223c4bd66daeb | [
"MIT"
] | 180 | 2020-05-28T01:34:57.000Z | 2022-03-29T17:50:27.000Z | field/phaser/phaser.cpp | maasijam/DaisyExamples | d982852292c16ccd6884f5f1313223c4bd66daeb | [
"MIT"
] | 132 | 2020-05-28T02:49:28.000Z | 2022-03-04T16:30:46.000Z | field/phaser/phaser.cpp | maasijam/DaisyExamples | d982852292c16ccd6884f5f1313223c4bd66daeb | [
"MIT"
] | 107 | 2020-06-03T03:22:49.000Z | 2022-02-28T15:46:47.000Z | #include "daisy_field.h"
#include "daisysp.h"
using namespace daisy;
using namespace daisysp;
DaisyField hw;
Phaser phaser;
bool effectOn;
float wet;
float freqtarget, freq;
float lfotarget, lfo;
int numstages;
void Controls()
{
hw.ProcessAllControls();
wet = hw.knob[0].Process();
numstages = ... | 22.489583 | 74 | 0.551644 | maasijam |
88885119a004f48aa2e64c01006b74e6db77caf9 | 559 | cpp | C++ | Math/AngleParam.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | null | null | null | Math/AngleParam.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | null | null | null | Math/AngleParam.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | 1 | 2022-02-03T08:09:03.000Z | 2022-02-03T08:09:03.000Z | #include "AngleParam.h"
#include "Param.h"
#include <cassert>
using namespace Crystal::Math;
template<typename T>
AngleParam<T>::AngleParam() :
param(0)
{}
template<typename T>
AngleParam<T>::AngleParam(T param)
{
assert(isValid());
}
template<typename T>
Param<T> AngleParam<T>::toParam() cons... | 16.441176 | 48 | 0.645796 | PremiumGraphicsCodes |
889af0bc539bd9bed5bb976aea65321857c2c78e | 3,272 | cpp | C++ | Rise/src/Platform/OpenGL/OpenGLVertexArray.cpp | Super-Shadow/Rise | 38f0cfd1d63365958c6ff8252598ce871525c885 | [
"Apache-2.0"
] | null | null | null | Rise/src/Platform/OpenGL/OpenGLVertexArray.cpp | Super-Shadow/Rise | 38f0cfd1d63365958c6ff8252598ce871525c885 | [
"Apache-2.0"
] | null | null | null | Rise/src/Platform/OpenGL/OpenGLVertexArray.cpp | Super-Shadow/Rise | 38f0cfd1d63365958c6ff8252598ce871525c885 | [
"Apache-2.0"
] | null | null | null | #include "rspch.h"
#include "OpenGLVertexArray.h"
#include <glad/glad.h>
namespace Rise
{
static GLenum ShaderDataTypeToOpenGLBaseType(const ShaderDataType type)
{
switch (type)
{
case ShaderDataType::Float:
case ShaderDataType::Float2:
case ShaderDataType::Float3:
case ShaderDataType::Float4:
ca... | 28.955752 | 268 | 0.731968 | Super-Shadow |
889d26b7ffffc07c4f05f575e9bee915bd180ba6 | 12,003 | cpp | C++ | examples/Plugins/ARAPluginDemo/Source/MusicalContextView.cpp | thecargocultnz/juce6_SR_NVCN2 | 50f332fefdc811c50fe6c174e6f4049416719b80 | [
"ISC"
] | 33 | 2018-09-07T09:08:10.000Z | 2022-02-07T17:59:41.000Z | examples/Plugins/ARAPluginDemo/Source/MusicalContextView.cpp | thecargocultnz/juce6_SR_NVCN2 | 50f332fefdc811c50fe6c174e6f4049416719b80 | [
"ISC"
] | 5 | 2016-04-13T04:00:01.000Z | 2021-06-30T13:33:56.000Z | examples/Plugins/ARAPluginDemo/Source/MusicalContextView.cpp | thecargocultnz/juce6_SR_NVCN2 | 50f332fefdc811c50fe6c174e6f4049416719b80 | [
"ISC"
] | 4 | 2015-07-28T04:31:10.000Z | 2021-02-26T03:40:29.000Z | #include "MusicalContextView.h"
#include "DocumentView.h"
#include "ARA_Library/Utilities/ARAPitchInterpretation.h"
#include "ARA_Library/Utilities/ARATimelineConversion.h"
//==============================================================================
MusicalContextView::MusicalContextView (DocumentView& doc... | 46.165385 | 163 | 0.663917 | thecargocultnz |
889d7aea3af2c8f9d640d68ebcfe95b5c7e56565 | 765 | cpp | C++ | DreamDaq/codeBackup/DreamDaq.101104/forMichele.cpp | ivivarel/DREMTubes | ac768990b4c5e2c23d986284ed10189f31796b38 | [
"MIT"
] | 3 | 2021-07-22T12:17:48.000Z | 2021-07-27T07:22:54.000Z | DreamDaq/codeBackup/DreamDaq.101104/forMichele.cpp | ivivarel/DREMTubes | ac768990b4c5e2c23d986284ed10189f31796b38 | [
"MIT"
] | 38 | 2021-07-14T15:41:04.000Z | 2022-03-29T14:18:20.000Z | DreamDaq/codeBackup/DreamDaq.101104/forMichele.cpp | ivivarel/DREMTubes | ac768990b4c5e2c23d986284ed10189f31796b38 | [
"MIT"
] | 7 | 2021-07-21T12:00:33.000Z | 2021-11-13T10:45:30.000Z | #include "eventX742.h"
CAEN_DGTZ_EventInfo_t eventInfo;
CAEN_DGTZ_V1742_GROUP_t * g0, * g1;
uint32_t * ig0, * ig1;
CAEN_DGTZ_V1742_EVENT_t * EventV1742 = newEventV1742();
g0 = &(EventV1742->Group[0]);
g1 = &(EventV1742->Group[1]);
buf[0] --> 4 event info
GetEventInfo ( buf, &eventInfo);
cout << " Ev... | 29.423077 | 65 | 0.652288 | ivivarel |
889df75aab6b25364aa6a1bdf801a6c0e263cef8 | 30,782 | cpp | C++ | tests/Basic/Currency/main.cpp | CASH2-js/cash2 | 17d5582ec41149567fcad12ba58c392fab502097 | [
"BSD-3-Clause"
] | null | null | null | tests/Basic/Currency/main.cpp | CASH2-js/cash2 | 17d5582ec41149567fcad12ba58c392fab502097 | [
"BSD-3-Clause"
] | null | null | null | tests/Basic/Currency/main.cpp | CASH2-js/cash2 | 17d5582ec41149567fcad12ba58c392fab502097 | [
"BSD-3-Clause"
] | 1 | 2020-05-13T19:39:58.000Z | 2020-05-13T19:39:58.000Z | // Copyright (c) 2018-2020 The Cash2 developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "gtest/gtest.h"
#include "helperFunctions.h"
#include "CryptoNoteCore/Currency.h"
#include "CryptoNoteCore/CryptoNoteBa... | 27.264836 | 180 | 0.774674 | CASH2-js |
88a307ff2cda7d1aa5f7435ac9df1b8a68ed743c | 2,152 | cpp | C++ | ProjectEuler+/euler-0346.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0346.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0346.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | 1 | 2021-05-28T11:14:34.000Z | 2021-05-28T11:14:34.000Z | // ////////////////////////////////////////////////////////
// # Title
// Strong Repunits
//
// # URL
// https://projecteuler.net/problem=346
// http://euler.stephan-brumme.com/346/
//
// # Problem
// The number 7 is special, because 7 is 111 written in base 2, and 11 written in base 6
// (i.e. `7_10` = `11_6` = `111_... | 30.309859 | 111 | 0.611059 | sarvekash |
88a4d42d211de76cbf2177badb28ca517d9eb873 | 5,557 | cpp | C++ | provant_simulator_plugins/provant_simulator_plugins/src/pose_sensor/pose_sensor.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | provant_simulator_plugins/provant_simulator_plugins/src/pose_sensor/pose_sensor.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | provant_simulator_plugins/provant_simulator_plugins/src/pose_sensor/pose_sensor.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | /*
* This file is part of the ProVANT simulator project.
* Licensed under the terms of the MIT open source license. More details at
* https: //github.com/Guiraffo/ProVANT-Simulator/blob/master/LICENSE.md
*/
/**
* @file pose_sensor.cpp
* @brief This file contains the implementation of the PoseSensorPlugin class.
... | 28.942708 | 119 | 0.627137 | Guiraffo |
88a5501dbdb86ce11e6f350da24217d369c3d497 | 511 | cpp | C++ | SPOJ/Week 3/Army Strength/army.cpp | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | SPOJ/Week 3/Army Strength/army.cpp | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | SPOJ/Week 3/Army Strength/army.cpp | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int NG, NM;
cin>>NG>>NM;
int G[NG], M[NM];
int i = 0, j;
while(i < NG){
cin>>G[i];
i++;
}
i = 0;
while(i < NM){
cin>>M[i];
i++;
}
sort(G, G + NG);
sort(M, M + NM);
i = 0, j = 0;
wh... | 13.447368 | 31 | 0.455969 | VastoLorde95 |
88aa226b6171e59ca99d0147fa128bde90df0a5d | 153 | cpp | C++ | src/variant.cpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | src/variant.cpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | src/variant.cpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | //Copyright (c) 2004 Kurt Stutsman. All rights reserved.
#include "variant.hpp"
#include "type_registry.hpp"
namespace Moove {
} //namespace Moove
| 15.3 | 56 | 0.72549 | mujido |
88b0a33a3882e8b67aaf689d50f5915db3f14d11 | 25,997 | cpp | C++ | Runtime/World/CActor.cpp | RetroView/RetroCommon | a413a010b50a53ebc6b0c726203181fc179d3370 | [
"MIT"
] | 267 | 2016-03-10T21:59:16.000Z | 2021-03-28T18:21:03.000Z | Runtime/World/CActor.cpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 129 | 2016-03-12T10:17:32.000Z | 2021-04-05T20:45:19.000Z | Runtime/World/CActor.cpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 31 | 2016-03-20T00:20:11.000Z | 2021-03-10T21:14:11.000Z | #include "Runtime/World/CActor.hpp"
#include "Runtime/CSimplePool.hpp"
#include "Runtime/CStateManager.hpp"
#include "Runtime/CTimeProvider.hpp"
#include "Runtime/GameGlobalObjects.hpp"
#include "Runtime/Audio/CSfxManager.hpp"
#include "Runtime/Camera/CGameCamera.hpp"
#include "Runtime/Character/CActorLights.hpp"
#inc... | 36.106944 | 120 | 0.705735 | RetroView |
88b4c402103432eb0c7599acc39b7efa99d8f563 | 1,377 | hpp | C++ | toys/rtcrf/src/featuretemplate.hpp | NweZinOo/cnf | 6f5774486d8751bf7885d03882a1e39881f041b0 | [
"BSD-3-Clause"
] | null | null | null | toys/rtcrf/src/featuretemplate.hpp | NweZinOo/cnf | 6f5774486d8751bf7885d03882a1e39881f041b0 | [
"BSD-3-Clause"
] | null | null | null | toys/rtcrf/src/featuretemplate.hpp | NweZinOo/cnf | 6f5774486d8751bf7885d03882a1e39881f041b0 | [
"BSD-3-Clause"
] | 1 | 2016-05-26T21:28:14.000Z | 2016-05-26T21:28:14.000Z | # ifndef __FEATURE_TMPL__
# define __FEATURE_TMPL__
# include <cstdio>
# include <cstdlib>
# include <string>
# include <vector>
# include <fstream>
# include "ftmpllexer.hpp"
# include "featuretemplate.tab.hpp"
# include "sequence.h"
struct realfeature_
{
std::string key;
unsigned int ngram; // unigram:1 bigra... | 22.57377 | 96 | 0.618736 | NweZinOo |
88bb122bd71a796e4982f65e4446793395124b14 | 6,076 | cpp | C++ | src/psvrconfigtool/App.cpp | opendata26/PSVRTracker | dfd13e9ed0daa312ae71ce2a077209c4994659ab | [
"MIT"
] | 33 | 2017-12-02T23:30:36.000Z | 2022-03-10T11:28:43.000Z | src/psvrconfigtool/App.cpp | opendata26/PSVRTracker | dfd13e9ed0daa312ae71ce2a077209c4994659ab | [
"MIT"
] | 18 | 2018-08-25T01:47:41.000Z | 2020-10-25T18:11:15.000Z | src/psvrconfigtool/App.cpp | opendata26/PSVRTracker | dfd13e9ed0daa312ae71ce2a077209c4994659ab | [
"MIT"
] | 10 | 2017-12-24T14:57:13.000Z | 2022-01-14T12:54:39.000Z | //-- includes -----
#include "App.h"
#include "AppStage.h"
#include "AssetManager.h"
#include "Renderer.h"
#include "Logger.h"
//-- public methods -----
App::App()
: m_renderer(new Renderer())
, m_assetManager(new AssetManager())
, m_cameraType(_cameraNone)
, m_camera(NULL)
, m_orbitCamera(m_render... | 22.094545 | 122 | 0.570935 | opendata26 |
88c0a0337d71bd0afeb61555760a9c68a684d768 | 1,168 | cpp | C++ | SPOJ/PT07Y-Is_it_a_tree.cpp | ShambhaviSudarsan/SPOJ-Solutions | e5b29052c331a87bd9f41f8c88ad68f1194394fd | [
"MIT"
] | null | null | null | SPOJ/PT07Y-Is_it_a_tree.cpp | ShambhaviSudarsan/SPOJ-Solutions | e5b29052c331a87bd9f41f8c88ad68f1194394fd | [
"MIT"
] | null | null | null | SPOJ/PT07Y-Is_it_a_tree.cpp | ShambhaviSudarsan/SPOJ-Solutions | e5b29052c331a87bd9f41f8c88ad68f1194394fd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define f(i,a,b) for(ll i=a;i<b;i++)
#define fi(i,a,b) for(ll i=a-1;i>=b;i--)
#define endl '\n'
#define spc " "
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define sz(a) (int)((a).size())
#define len(a) (int)(a.length())
#define CC... | 17.969231 | 46 | 0.530822 | ShambhaviSudarsan |
88c9ccd217462a74fe3f2512add2b3ef27dec5a0 | 3,494 | cpp | C++ | src/log/logger.cpp | blacksungrass/http_server | 817ec695ffc99f84a4d1531a47c5a0945edcd4f6 | [
"MIT"
] | null | null | null | src/log/logger.cpp | blacksungrass/http_server | 817ec695ffc99f84a4d1531a47c5a0945edcd4f6 | [
"MIT"
] | null | null | null | src/log/logger.cpp | blacksungrass/http_server | 817ec695ffc99f84a4d1531a47c5a0945edcd4f6 | [
"MIT"
] | null | null | null | //
// Created by blacksungrass on 2021/12/19.
//
#include "logger.h"
#include <unistd.h>
#include <sys/time.h>
#include <sstream>
#include <fcntl.h>
#include <exception>
#include <cstdarg>
#include <iostream>
#include <cstring>
using namespace std;
const size_t logger::MAX_RECORD_PER_FILE = 20000;
const size_t logger... | 27.511811 | 101 | 0.600458 | blacksungrass |
88cb8930293f6863e0914093edc63e43146a876a | 629 | cpp | C++ | snippets/cpp/VS_Snippets_Winforms/Classic DataGridTableStyle.ReadOnly Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 834 | 2017-06-24T10:40:36.000Z | 2022-03-31T19:48:51.000Z | snippets/cpp/VS_Snippets_Winforms/Classic DataGridTableStyle.ReadOnly Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 7,042 | 2017-06-23T22:34:47.000Z | 2022-03-31T23:05:23.000Z | snippets/cpp/VS_Snippets_Winforms/Classic DataGridTableStyle.ReadOnly Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 1,640 | 2017-06-23T22:31:39.000Z | 2022-03-31T02:45:37.000Z | #using <System.Xml.dll>
#using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.Data.dll>
using namespace System;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Windows::Forms;
using namespace System::ComponentModel;
public ref class For... | 20.966667 | 75 | 0.701113 | BohdanMosiyuk |
88cbedbb019e2998217b05ec46897e90a4f9445d | 773 | cpp | C++ | src/tcp/Server.Connection.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 10 | 2019-02-21T06:21:48.000Z | 2022-02-22T08:01:24.000Z | src/tcp/Server.Connection.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 2 | 2018-02-04T20:16:46.000Z | 2018-02-04T20:19:00.000Z | src/tcp/Server.Connection.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 10 | 2018-10-15T10:17:00.000Z | 2022-02-17T02:28:51.000Z | //
// Created by Good_Pudge.
//
#include <ohf/tcp/Server.hpp>
namespace ohf {
namespace tcp {
Server::Connection::Connection(tcp::Socket *socket, const InetAddress &address, Uint16 port) :
mSocket(socket),
mAddress(address),
mPort(port)
{}
S... | 22.085714 | 102 | 0.518758 | Good-Pudge |
88cec1becd91b2125330d1cfc90b4c336ecc9c29 | 46 | hpp | C++ | src/boost_range_algorithm_ext_iota.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_range_algorithm_ext_iota.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_range_algorithm_ext_iota.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/range/algorithm_ext/iota.hpp>
| 23 | 45 | 0.804348 | miathedev |
88d0afcd360e749f120bad00ac8101795ceb2937 | 510 | cpp | C++ | Userland/Libraries/LibC/sys/prctl.cpp | densogiaichned/serenity | 99c0b895fed02949b528437d6b450d85befde7a5 | [
"BSD-2-Clause"
] | 2 | 2022-02-16T02:12:38.000Z | 2022-02-20T18:40:41.000Z | Userland/Libraries/LibC/sys/prctl.cpp | densogiaichned/serenity | 99c0b895fed02949b528437d6b450d85befde7a5 | [
"BSD-2-Clause"
] | null | null | null | Userland/Libraries/LibC/sys/prctl.cpp | densogiaichned/serenity | 99c0b895fed02949b528437d6b450d85befde7a5 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <sys/prctl.h>
#include <syscall.h>
extern "C" {
int prctl(int option, ...)
{
va_list args;
va_start(args, option);
uintptr_t a... | 17.586207 | 59 | 0.64902 | densogiaichned |
88d29883feb3c4a4784884e3a8409343d4c5a6e8 | 1,002 | cpp | C++ | Easy/sort-colors.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | 1 | 2021-11-21T16:04:59.000Z | 2021-11-21T16:04:59.000Z | Easy/sort-colors.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | null | null | null | Easy/sort-colors.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | null | null | null | class Solution {
public:
vector <int> v;
int hoares_left_partition(int low, int high){
int i = low, j = high + 1, pivot = v[low];
while (i < j){
do{
i = i + 1;
}while (i <= high && v[i] <= pivot);
do{
j = j - 1;
... | 26.368421 | 53 | 0.367265 | AnanyaDas162 |
88d2e5b2a3df502aa4b38dce89a87ab7a17d362d | 817 | cpp | C++ | Game/main.cpp | ArtiomTr/Game | f3978d220c29a8773728c536867b8a8f8cf91493 | [
"MIT"
] | null | null | null | Game/main.cpp | ArtiomTr/Game | f3978d220c29a8773728c536867b8a8f8cf91493 | [
"MIT"
] | null | null | null | Game/main.cpp | ArtiomTr/Game | f3978d220c29a8773728c536867b8a8f8cf91493 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
//#include <SFML/Graphics.hpp>
#include "Tpp_Game.h"
#include "Test_Entity.h"
using namespace tp;
using namespace std;
int main() {
GameConfiguration configuration =
GameConfiguration(Rect<int>(800, 600), "Game");
Game g(configuration);
vector<IEntityController*> controll... | 22.081081 | 62 | 0.695226 | ArtiomTr |
88d5be5220df5f5fa07ca25a9f18a3067a30d23a | 1,993 | cpp | C++ | src/PluginHDF5/HDF5/Attribute.cpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | src/PluginHDF5/HDF5/Attribute.cpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | src/PluginHDF5/HDF5/Attribute.cpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2010-2012 Steffen Kieß
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, ... | 39.078431 | 83 | 0.715504 | voxie-viewer |
88d657162ece4388515ad8c8375bc83a34d3ccf6 | 4,564 | cpp | C++ | BinaryTreeClassUse_Basic.cpp | soumyaagr427/Cpp_Programs | 0a7d9bf986d4f2044834320908b6c7354e680ef6 | [
"Apache-2.0"
] | null | null | null | BinaryTreeClassUse_Basic.cpp | soumyaagr427/Cpp_Programs | 0a7d9bf986d4f2044834320908b6c7354e680ef6 | [
"Apache-2.0"
] | null | null | null | BinaryTreeClassUse_Basic.cpp | soumyaagr427/Cpp_Programs | 0a7d9bf986d4f2044834320908b6c7354e680ef6 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
#include"BTNodeClass.cpp"
#include<queue>
void printTreeProper(BinaryTreeNode<int>* root)
{
if(root==NULL) return;
cout<<root->data<<":";
if(root->left)
cout<<"L"<<root->left->data<<" ";
if(root->right)
{
cout<<"R"<<root->rig... | 21.42723 | 132 | 0.561788 | soumyaagr427 |
88dbda957c74f579f31401971010dc4952785c7c | 8,956 | cpp | C++ | SourceCode/src/Graphics/Manager/Vulkan/VulkanManager.cpp | LalaChen/SDEngine | ae5931308ae8b02f4237a1e26ef8448f773f9b7a | [
"MIT"
] | null | null | null | SourceCode/src/Graphics/Manager/Vulkan/VulkanManager.cpp | LalaChen/SDEngine | ae5931308ae8b02f4237a1e26ef8448f773f9b7a | [
"MIT"
] | null | null | null | SourceCode/src/Graphics/Manager/Vulkan/VulkanManager.cpp | LalaChen/SDEngine | ae5931308ae8b02f4237a1e26ef8448f773f9b7a | [
"MIT"
] | null | null | null | /*============== SD Engine License ==============
MIT License
Copyright (c) 2019 Kuan-Chih, Chen
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... | 33.29368 | 275 | 0.709692 | LalaChen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.