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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ccc2130cec5daa2604d7251f6d2550b5d5aa8c8a | 1,261 | cpp | C++ | src/sort/heapsort.cpp | mattlisle/algorithms-cpp | bb9fb7e04ac0b05249c0c59537a270774db94ce0 | [
"MIT"
] | null | null | null | src/sort/heapsort.cpp | mattlisle/algorithms-cpp | bb9fb7e04ac0b05249c0c59537a270774db94ce0 | [
"MIT"
] | null | null | null | src/sort/heapsort.cpp | mattlisle/algorithms-cpp | bb9fb7e04ac0b05249c0c59537a270774db94ce0 | [
"MIT"
] | null | null | null | #include "sort.hpp"
#include <vector>
using namespace std;
namespace sort {
namespace {
auto parent_idx(size_t idx) -> size_t { return (idx - 1) / 2; }
auto left_idx(size_t idx) -> size_t { return 2 * idx + 1; }
auto right_idx(size_t idx) -> size_t { return 2 * idx + 2; }
void emplace_heap_elem(vector<int>* sourc... | 25.22 | 75 | 0.620143 | mattlisle |
ccc2976f60a15def188ef4940dee3ed644efa4f3 | 3,915 | cpp | C++ | src/KeyJoy_Node.cpp | dgitz/icarus_rover_rc | 2ec789d7757715d71fc6ec4ce90e15fdc8053f3e | [
"MIT"
] | null | null | null | src/KeyJoy_Node.cpp | dgitz/icarus_rover_rc | 2ec789d7757715d71fc6ec4ce90e15fdc8053f3e | [
"MIT"
] | null | null | null | src/KeyJoy_Node.cpp | dgitz/icarus_rover_rc | 2ec789d7757715d71fc6ec4ce90e15fdc8053f3e | [
"MIT"
] | null | null | null | /* Author: David Gitz
Date: 7-March-2016
Purpose: Converts ros keyboard topic to joystick topic.
Usage: See Launch_UserControl.launch
*/
//Includes all the headers necessary to use the most common public pieces of the ROS system.
#include <ros/ros.h>
//Include some useful constants for image encoding. Refer t... | 25.756579 | 167 | 0.605109 | dgitz |
ccc3477508aed318dfc850a1f6c6b5433861a48d | 1,572 | hpp | C++ | Strategy/Duck/RubberDuck.hpp | dambatbul/DesignPatterns | 9aae245f7f5d1fb3e1ab2528c53ae2abc095437f | [
"BSD-3-Clause"
] | null | null | null | Strategy/Duck/RubberDuck.hpp | dambatbul/DesignPatterns | 9aae245f7f5d1fb3e1ab2528c53ae2abc095437f | [
"BSD-3-Clause"
] | null | null | null | Strategy/Duck/RubberDuck.hpp | dambatbul/DesignPatterns | 9aae245f7f5d1fb3e1ab2528c53ae2abc095437f | [
"BSD-3-Clause"
] | null | null | null | /*
* =====================================================================================
*
* Filename: RubberDuck.hpp
*
* Description: head first ch1 example - Duck model(Strategy Pattern)
*
* Version: 0.1
* Created: 2015년 10월 14일 22시 39분 54초
* Revision: none
* Compil... | 28.071429 | 90 | 0.400763 | dambatbul |
cccb1b5a373f039c0c771116dbdb605a6ef8bd46 | 1,180 | cpp | C++ | Source/Storm-Packager/include/CleanTask.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | 3 | 2021-11-27T04:56:12.000Z | 2022-02-14T04:02:10.000Z | Source/Storm-Packager/include/CleanTask.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | null | null | null | Source/Storm-Packager/include/CleanTask.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | null | null | null | #include "CleanTask.h"
#include "ConfigManager.h"
#include "PackagerHelper.h"
std::string_view StormPackager::CleanTask::getName() const
{
return "Cleaner";
}
std::string StormPackager::CleanTask::prepare()
{
std::string result;
const StormPackager::ConfigManager &configMgr = StormPackager::ConfigManager::ins... | 22.692308 | 90 | 0.720339 | SunlayGGX |
ccd0e33bd8a9a63de6eeae6f23b7cb7f78f13fc3 | 4,399 | cpp | C++ | ares/ms/vdp/background.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/ms/vdp/background.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/ms/vdp/background.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | auto VDP::Background::setup(n9 voffset) -> void {
if(!self.displayEnable()) return;
latch.nameTableAddress = io.nameTableAddress;
latch.hscroll = io.hscroll;
latch.vscroll = io.vscroll;
}
auto VDP::Background::run(n8 hoffset, n9 voffset) -> void {
output = {};
if(!self.displayEnable()) return;
switch(sel... | 33.325758 | 94 | 0.675381 | CasualPokePlayer |
ccd26c1dce1fcd871b16279991edb5f5920f7549 | 5,094 | cpp | C++ | USB Application2/Dll_USB_2/dllmain.cpp | abaelen/Arduino-Isochronous-USB | ff65cfcac11d617d310a70fdae59cd406724ed83 | [
"MIT"
] | 1 | 2021-03-16T01:52:58.000Z | 2021-03-16T01:52:58.000Z | USB Application2/Dll_USB_2/dllmain.cpp | abaelen/Arduino-Isochronous-USB | ff65cfcac11d617d310a70fdae59cd406724ed83 | [
"MIT"
] | null | null | null | USB Application2/Dll_USB_2/dllmain.cpp | abaelen/Arduino-Isochronous-USB | ff65cfcac11d617d310a70fdae59cd406724ed83 | [
"MIT"
] | 2 | 2021-04-30T21:58:45.000Z | 2021-11-28T01:50:14.000Z | // dllmain.cpp : Defines the entry point for the DLL application.
#include "pch.h"
#include "USB.h"
#include <vector>
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
cas... | 38.590909 | 231 | 0.727719 | abaelen |
ccd4779032edc95413732dc11098337387991fdc | 3,600 | cc | C++ | net/socket/tcp_socket.cc | kay1ess/allin-server | 3be3a53ebd092ad645df4ba8b86f1f548585c6cc | [
"Apache-2.0"
] | null | null | null | net/socket/tcp_socket.cc | kay1ess/allin-server | 3be3a53ebd092ad645df4ba8b86f1f548585c6cc | [
"Apache-2.0"
] | null | null | null | net/socket/tcp_socket.cc | kay1ess/allin-server | 3be3a53ebd092ad645df4ba8b86f1f548585c6cc | [
"Apache-2.0"
] | null | null | null | /*
* @Author: likai
* @Date: 2022-01-14 19:19:46
* @Last Modified by: likai
* @Last Modified time: 2022-01-25 15:57:34
* @Description: ""
*/
#include "socket/tcp_socket.h"
#include <unistd.h>
#include <fcntl.h>
namespace net {
TCPSocket::TCPSocket() {
type_ = TCP_SOCKET;
fd_ = socket(AF_INET, SOCK_STRE... | 24.657534 | 75 | 0.566944 | kay1ess |
ccdbae880f3c2592fe22aa9769333914427d250e | 636 | hpp | C++ | pomdog/experimental/magicavoxel/vox_model_exporter.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 163 | 2015-03-16T08:42:32.000Z | 2022-01-11T21:40:22.000Z | pomdog/experimental/magicavoxel/vox_model_exporter.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 17 | 2015-04-12T20:57:50.000Z | 2020-10-10T10:51:45.000Z | pomdog/experimental/magicavoxel/vox_model_exporter.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 21 | 2015-04-12T20:45:11.000Z | 2022-01-14T20:50:16.000Z | // Copyright mogemimi. Distributed under the MIT license.
#pragma once
#include "pomdog/basic/conditional_compilation.hpp"
#include "pomdog/basic/export.hpp"
#include "pomdog/utility/errors.hpp"
POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_BEGIN
#include <string>
POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADER... | 27.652174 | 68 | 0.81761 | mogemimi |
ef993fcecaa64d83f55f475c3694534e128caf8a | 3,559 | hpp | C++ | src/IRHandler.hpp | luis-rr/OpenCat | ac5e32abf4861c069be38ad5a9e5c629d4db753f | [
"MIT"
] | null | null | null | src/IRHandler.hpp | luis-rr/OpenCat | ac5e32abf4861c069be38ad5a9e5c629d4db753f | [
"MIT"
] | null | null | null | src/IRHandler.hpp | luis-rr/OpenCat | ac5e32abf4861c069be38ad5a9e5c629d4db753f | [
"MIT"
] | null | null | null | #include <IRremote.h>
// abbreviation //gait/posture/function names
#define K00 "d" // rest and shutdown all servos
#define K01 "F" // forward
#define K02 "g" // turn off gyro feedback to boost speed
#define K10 "L" // left
#define K11 "balance" // neutral stand up posture
#define K12 "R" // right
#defin... | 25.978102 | 78 | 0.571509 | luis-rr |
ef99db031cfff3e49ac99826cfbde0e4d11243d9 | 483 | cpp | C++ | test/util/frame_checking_example.cpp | wavelab/wave_geometry | aabcad44a490fc6393b35e63db9ad8908cf46dec | [
"MIT"
] | 112 | 2018-05-07T00:57:57.000Z | 2022-03-30T12:14:07.000Z | test/util/frame_checking_example.cpp | wavelab/wave_geometry | aabcad44a490fc6393b35e63db9ad8908cf46dec | [
"MIT"
] | 9 | 2018-08-02T20:10:49.000Z | 2022-02-16T17:45:29.000Z | test/util/frame_checking_example.cpp | wavelab/wave_geometry | aabcad44a490fc6393b35e63db9ad8908cf46dec | [
"MIT"
] | 13 | 2018-05-27T01:08:24.000Z | 2022-03-22T13:46:31.000Z | #include "wave/geometry/geometry.hpp"
int main() {
struct BodyFrame;
struct CameraFrame;
struct WorldFrame;
wave::RotationMFd<WorldFrame, BodyFrame> r1;
wave::RotationMFd<CameraFrame, BodyFrame> r2;
// Let's get the rotation between World and Camera (maybe)
// wave::RotationMFd<WorldFrame... | 30.1875 | 83 | 0.681159 | wavelab |
efa144079eb7309cc41f1844b461f7e819986f32 | 1,707 | hpp | C++ | software/source/tasks/task_leds.hpp | salkinium/calirona | a25ec42240358d0a2da9c1706d54783703fac343 | [
"BSD-2-Clause"
] | null | null | null | software/source/tasks/task_leds.hpp | salkinium/calirona | a25ec42240358d0a2da9c1706d54783703fac343 | [
"BSD-2-Clause"
] | null | null | null | software/source/tasks/task_leds.hpp | salkinium/calirona | a25ec42240358d0a2da9c1706d54783703fac343 | [
"BSD-2-Clause"
] | null | null | null | // coding: utf-8
#ifndef TASK_LEDS_HPP
#define TASK_LEDS_HPP
#include <xpcc/processing/periodic_timer.hpp>
#include "hardware.hpp"
namespace task
{
class Leds
{
public:
Leds()
: isBusy(false), isHeadphoneError(false), isMechanicalError(false)
{
}
void inline
initialize()
{
LED_Busy1::setOutput(xpcc::Gpio::... | 15.518182 | 67 | 0.696544 | salkinium |
efa181fe69c9a2b48e89707dfa79fbc55d52237b | 211 | cpp | C++ | Compiler/compilererror.cpp | beldmitr/i4004 | f090bc91acbf88be119d72a80301cdcf57a8c159 | [
"MIT"
] | 7 | 2017-04-07T01:17:26.000Z | 2021-11-02T06:08:45.000Z | Compiler/compilererror.cpp | beldmitr/i4004 | f090bc91acbf88be119d72a80301cdcf57a8c159 | [
"MIT"
] | null | null | null | Compiler/compilererror.cpp | beldmitr/i4004 | f090bc91acbf88be119d72a80301cdcf57a8c159 | [
"MIT"
] | 1 | 2018-12-13T10:47:08.000Z | 2018-12-13T10:47:08.000Z | #include "compilererror.h"
CompilerError::CompilerError(unsigned int row, const std::string& message)
{
const_cast<unsigned int&>(this->row) = row;
const_cast<std::string&>(this->message) = message;
}
| 23.444444 | 74 | 0.7109 | beldmitr |
efa25af89065151261ee752098953192f4a31a02 | 985 | cpp | C++ | source/rectangle.cpp | antoniakk/programmiersprachen-aufgabenblatt-2 | adcd0d5e00e40b5d857df4209492610f3ea226b3 | [
"MIT"
] | null | null | null | source/rectangle.cpp | antoniakk/programmiersprachen-aufgabenblatt-2 | adcd0d5e00e40b5d857df4209492610f3ea226b3 | [
"MIT"
] | null | null | null | source/rectangle.cpp | antoniakk/programmiersprachen-aufgabenblatt-2 | adcd0d5e00e40b5d857df4209492610f3ea226b3 | [
"MIT"
] | null | null | null | #include "rectangle.hpp"
Rectangle::Rectangle() : min_{0.0, 0.0}, max_{100.0, 100.0}, color_{} {};
Rectangle::Rectangle(Vec2 const& min, Vec2 const& max, Color const& color) : min_{min}, max_{max}, color_{color} {};
float Rectangle::circumfrence() const {
return 2*((abs(max_.y - min_.y)+abs((max_.x) - (min_... | 39.4 | 117 | 0.639594 | antoniakk |
efa51bde50cd099ba65ed62e1294083f103fd503 | 3,742 | hpp | C++ | Coin.hpp | jancarlsson/kapital | 90f232e85b0f7b259eb56adf16f47c519be47ed8 | [
"MIT"
] | 4 | 2015-07-07T19:20:29.000Z | 2017-12-02T12:56:47.000Z | Coin.hpp | jancarlsson/kapital | 90f232e85b0f7b259eb56adf16f47c519be47ed8 | [
"MIT"
] | null | null | null | Coin.hpp | jancarlsson/kapital | 90f232e85b0f7b259eb56adf16f47c519be47ed8 | [
"MIT"
] | 4 | 2017-07-18T23:08:52.000Z | 2019-07-23T20:30:35.000Z | #ifndef _KAPITAL_COIN_HPP_
#define _KAPITAL_COIN_HPP_
#include <cstdint>
#include <istream>
#include <ostream>
#include <vector>
#include <snarkfront.hpp>
#include <kapital/AddressKey.hpp>
#include <kapital/HashFunctions.hpp>
namespace kapital {
/////////////////////////////////////////////////////////////////////... | 25.806897 | 80 | 0.596472 | jancarlsson |
efb46c2b7b1ed6153c79cd0a08925d1d9c9e30b0 | 3,342 | cpp | C++ | directfire_github/trunk/gameui/battle.net/sys/spellintropage.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | 1 | 2015-08-12T04:05:33.000Z | 2015-08-12T04:05:33.000Z | directfire_github/trunk/gameui/battle.net/sys/spellintropage.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | null | null | null | directfire_github/trunk/gameui/battle.net/sys/spellintropage.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | null | null | null | #include "spellintropage.h"
#include "gamecore/resource/resourcemgr.h"
SpellIntroPage::SpellIntroPage()
{
m_scroll = 0;
}
SpellIntroPage::~SpellIntroPage()
{
}
void SpellIntroPage::moveInItem()
{
BasSysPage::moveInItem();
}
void SpellIntroPage::moveOutItem()
{
BasSysPage::moveOutItem();
}
void SpellIntro... | 33.757576 | 130 | 0.658887 | zhwsh00 |
efbacafa33087140fee639bcbf225073d62199f8 | 311 | hpp | C++ | addons/modules/modules/addAction/prep.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 1 | 2020-06-07T00:45:49.000Z | 2020-06-07T00:45:49.000Z | addons/modules/modules/addAction/prep.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 27 | 2020-05-24T11:09:56.000Z | 2020-05-25T12:28:10.000Z | addons/modules/modules/addAction/prep.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 2 | 2020-05-31T08:52:45.000Z | 2021-04-16T23:16:37.000Z |
PREP_MODULE(addAction,execActionLocal);
PREP_MODULE(addAction,execActionProgressLocal);
PREP_MODULE(addAction,handleActionExecuted);
PREP_MODULE(addAction,isActionOwner);
PREP_MODULE(addAction,module);
PREP_MODULE(addAction,moduleExec);
PREP_MODULE(addAction,moduleExecLocal);
PREP_MODULE(addAction,validate);
| 31.1 | 47 | 0.868167 | Krzyciu |
efbbac95b76395e81d856f30e02d6b304ebb52d9 | 461 | cpp | C++ | ContaCorrente.cpp | marcospatton/Avancando-com-C-plus-plus-Enum-templates-e-mais-recursos | 080cf98887e8c6a5c594b0f5b4f63024273ca47f | [
"MIT"
] | null | null | null | ContaCorrente.cpp | marcospatton/Avancando-com-C-plus-plus-Enum-templates-e-mais-recursos | 080cf98887e8c6a5c594b0f5b4f63024273ca47f | [
"MIT"
] | 1 | 2021-12-30T16:12:17.000Z | 2021-12-31T02:02:52.000Z | ContaCorrente.cpp | marcospatton/Avancando-com-C-plus-plus-Enum-templates-e-mais-recursos | 080cf98887e8c6a5c594b0f5b4f63024273ca47f | [
"MIT"
] | null | null | null | #include "ContaCorrente.hpp"
#include <iostream>
ContaCorrente::ContaCorrente(std::string numero, Titular titular): Conta(numero, titular)
{
}
void ContaCorrente::transferePara(Conta& destino, float valor)
{
auto resultado = sacar(valor);
if (resultado.index() == 1) {
destino.depositar(valor);
... | 23.05 | 89 | 0.707158 | marcospatton |
efbc77f18d2bcd1098b166e05fd43487bb4c2566 | 2,958 | cpp | C++ | src/ChatManager.cpp | Raymonf/OpenFusion | 243d3d623aac1e02d3b3e318f2383e22d33649af | [
"MIT"
] | null | null | null | src/ChatManager.cpp | Raymonf/OpenFusion | 243d3d623aac1e02d3b3e318f2383e22d33649af | [
"MIT"
] | null | null | null | src/ChatManager.cpp | Raymonf/OpenFusion | 243d3d623aac1e02d3b3e318f2383e22d33649af | [
"MIT"
] | null | null | null | #include "CNShardServer.hpp"
#include "CNStructs.hpp"
#include "ChatManager.hpp"
#include "PlayerManager.hpp"
void ChatManager::init() {
REGISTER_SHARD_PACKET(P_CL2FE_REQ_SEND_FREECHAT_MESSAGE, chatHandler);
REGISTER_SHARD_PACKET(P_CL2FE_REQ_PC_AVATAR_EMOTES_CHAT, emoteHandler);
}
void ChatManager::chatHandle... | 51 | 173 | 0.759973 | Raymonf |
efbcfa2a73a209a198237bce3901c24642794da6 | 3,278 | cpp | C++ | GRAPHS/EASY/COVID19 - EASY.cpp | shresth12-jain/HacktoberFest2021 | 43bd5d99668c104f89f3efef5313e4ddadd9931a | [
"Apache-2.0"
] | 11 | 2021-10-01T06:53:31.000Z | 2022-02-05T20:36:20.000Z | GRAPHS/EASY/COVID19 - EASY.cpp | shresth12-jain/HacktoberFest2021 | 43bd5d99668c104f89f3efef5313e4ddadd9931a | [
"Apache-2.0"
] | 37 | 2021-10-01T06:54:01.000Z | 2021-10-20T18:02:31.000Z | GRAPHS/EASY/COVID19 - EASY.cpp | shresth12-jain/HacktoberFest2021 | 43bd5d99668c104f89f3efef5313e4ddadd9931a | [
"Apache-2.0"
] | 110 | 2021-10-01T06:51:28.000Z | 2021-10-31T18:00:55.000Z | /*COVID19
Easy Accuracy: 68.87% Submissions: 908 Points: 2
Given the N*M binary matrix, 1 represents the healthy person, and 0 represents a patient affected by a coronavirus. The task is to check the minimum time required for all persons to get affected. A patient at [i, j] cell affects a person at cell [i, j-1], ... | 25.022901 | 302 | 0.461257 | shresth12-jain |
efbdda743ea2b9d9225a23718e2d23b020ec1407 | 2,227 | cpp | C++ | practice/235-lowest-common-ancestor-of-a-binary-search-tree/LeetCode_235_0144.cpp | manajay/algorithm-list | 828b0baed25a743fdb010427f873b29af9587951 | [
"MIT"
] | null | null | null | practice/235-lowest-common-ancestor-of-a-binary-search-tree/LeetCode_235_0144.cpp | manajay/algorithm-list | 828b0baed25a743fdb010427f873b29af9587951 | [
"MIT"
] | null | null | null | practice/235-lowest-common-ancestor-of-a-binary-search-tree/LeetCode_235_0144.cpp | manajay/algorithm-list | 828b0baed25a743fdb010427f873b29af9587951 | [
"MIT"
] | null | null | null | /**
给定一个二叉搜索树, 找到该树中两个指定节点的最近公共祖先。
百度百科中最近公共祖先的定义为:“对于有根树 T 的两个结点 p、q,最近公共祖先表示为一个结点 x,满足 x 是 p、q 的祖先且 x 的深度尽可能大(一个节点也可以是它自己的祖先)。”
例如,给定如下二叉搜索树: root = [6,2,8,0,4,7,9,null,null,3,5]
示例 1:
输入: root = [6,2,8,0,4,7,9,null,null,3,5], p = 2, q = 8
输出: 6
解释: 节点 2 和节点 8 的最近公共祖先是 6。
示例 2:
输入: root = [6,2,8,0,4,7,9,n... | 21.621359 | 94 | 0.533453 | manajay |
efcd23037c829711734cc835a991905248a61ddb | 2,943 | hpp | C++ | fprime-sphinx-drivers/SPIDriverGeneric/test/ut/Tester.hpp | fprime-community/fprime-sphinx-drivers | ce9efa8564b0eeee46b75bdee79a41a4d0dfd65b | [
"Apache-2.0"
] | 1 | 2021-02-22T12:34:25.000Z | 2021-02-22T12:34:25.000Z | fprime-sphinx-drivers/SPIDriverGeneric/test/ut/Tester.hpp | fprime-community/fprime-sphinx-drivers | ce9efa8564b0eeee46b75bdee79a41a4d0dfd65b | [
"Apache-2.0"
] | 2 | 2021-08-11T17:14:54.000Z | 2021-09-09T22:31:19.000Z | fprime-sphinx-drivers/SPIDriverGeneric/test/ut/Tester.hpp | fprime-community/fprime-sphinx-drivers | ce9efa8564b0eeee46b75bdee79a41a4d0dfd65b | [
"Apache-2.0"
] | 1 | 2021-05-19T02:04:10.000Z | 2021-05-19T02:04:10.000Z | // ======================================================================
// \title SPIDriverGeneric/test/ut/Tester.hpp
// \author bsoudry
// \brief hpp file for SPIDriverGeneric test harness implementation class
//
// \copyright
// Copyright 2009-2015, by the California Institute of Technology.
// ALL RIGHTS RESERVE... | 28.028571 | 83 | 0.447842 | fprime-community |
efd0597666b4a5f6b5547aa365bb15eb4c148396 | 5,793 | hpp | C++ | include/noarr/pipelines/HardwareManager.hpp | ParaCoToUl/noarr-pipelines | 138f69065e40403a41b95103262b39f2e04dcab8 | [
"MIT"
] | null | null | null | include/noarr/pipelines/HardwareManager.hpp | ParaCoToUl/noarr-pipelines | 138f69065e40403a41b95103262b39f2e04dcab8 | [
"MIT"
] | null | null | null | include/noarr/pipelines/HardwareManager.hpp | ParaCoToUl/noarr-pipelines | 138f69065e40403a41b95103262b39f2e04dcab8 | [
"MIT"
] | null | null | null | #ifndef NOARR_PIPELINES_HARDWARE_MANAGER_HPP
#define NOARR_PIPELINES_HARDWARE_MANAGER_HPP
#include <memory>
#include <cassert>
#include <vector>
#include <map>
#include <functional>
#include <iostream>
#include "noarr/pipelines/Device.hpp"
#include "noarr/pipelines/Buffer.hpp"
#include "noarr/pipelines/MemoryAllocato... | 27.585714 | 85 | 0.617815 | ParaCoToUl |
efd6b61dc7ac44cc423b2a902ddce3facd3b07e9 | 3,229 | cpp | C++ | .LHP/.Lop11/.HSG/.T.Minh/Week 9/GPSF/GPSF/GPSF.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.HSG/.T.Minh/Week 9/GPSF/GPSF/GPSF.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.HSG/.T.Minh/Week 9/GPSF/GPSF/GPSF.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <cstring>
#define maxN 501
#define minA -99999999
#define cost(x, y) ((x) != (y) ? (maxa)(-1) : (maxa)2)
typedef long maxn, maxa;
maxn na, nb, mxa[maxN][maxN], mxb[maxN][maxN], fina, finb;
std::string a, b, resa, resb;
maxa f[maxN]... | 30.462264 | 133 | 0.470115 | sxweetlollipop2912 |
efd7a593ea132985ed5be5d133c2939c3395a054 | 19,557 | hh | C++ | include/click/nameinfo.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | include/click/nameinfo.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | include/click/nameinfo.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | // -*- c-basic-offset: 4; related-file-name: "../../lib/nameinfo.cc" -*-
#ifndef CLICK_NAMEINFO_HH
#define CLICK_NAMEINFO_HH
#include <click/args.hh>
#include <click/straccum.hh>
CLICK_DECLS
class Element;
class NameDB;
class ErrorHandler;
class NameInfo { public:
/** @brief Construct a NameInfo element.
*
... | 36.969754 | 102 | 0.684154 | MacWR |
efd827a27d7de1a4aabbaf54698c263ce1ff733c | 1,298 | cpp | C++ | server/Common/Packets/GCBoxItemList.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Common/Packets/GCBoxItemList.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Common/Packets/GCBoxItemList.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
#include "GCBoxItemList.h"
using namespace Packets;
BOOL GCBoxItemList::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read((CHAR*)&m_ItemBoxID,sizeof(ObjID_t));
iStream.Read((CHAR*)(&m_ItemNumber), sizeof(BYTE));
iStream.Read((CHAR*)(&m_ItemBoxType),siz... | 26.489796 | 84 | 0.617103 | viticm |
efd96a26edb3c0315e8d28081febd59935d735c6 | 2,110 | hpp | C++ | lib/sparse-bench/src/cpu/BenchmarkUtils.hpp | paul-g/spark | 9e561d7a575c6a984660ba4afc476a0a7aa5264d | [
"MIT"
] | 20 | 2015-12-02T22:31:37.000Z | 2022-03-31T05:18:04.000Z | lib/sparse-bench/src/cpu/BenchmarkUtils.hpp | caskorg/cask | 9e561d7a575c6a984660ba4afc476a0a7aa5264d | [
"MIT"
] | 15 | 2018-02-02T10:07:08.000Z | 2018-02-02T10:07:09.000Z | lib/sparse-bench/src/cpu/BenchmarkUtils.hpp | caskorg/cask | 9e561d7a575c6a984660ba4afc476a0a7aa5264d | [
"MIT"
] | 4 | 2016-07-02T09:36:33.000Z | 2021-04-19T17:44:55.000Z | #ifndef SPARSEBENCH_BENCHMARKUTILS_HPP
#define SPARSEBENCH_BENCHMARKUTILS_HPP
#include <stdexcept>
#include <sstream>
#include <iostream>
#include <vector>
#include <cmath>
#include <fstream>
namespace sparsebench {
namespace benchmarkutils {
void checkFileExists(std::string file) {
std::ifstream f{file};
if (!f... | 25.421687 | 84 | 0.640758 | paul-g |
efdde7bed3fec1d4a5cf43d9d6e7be54a4662808 | 880 | cpp | C++ | Day 18/A. Shuffle Hashing.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | 4 | 2019-12-12T19:59:50.000Z | 2020-01-20T15:44:44.000Z | Day 18/A. Shuffle Hashing.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | null | null | null | Day 18/A. Shuffle Hashing.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | null | null | null | // Question Link ---> http://codeforces.com/contest/1278/problem/A
// Educational Codeforces Round 78 (Rated for Div. 2)
// Day #18 #Contest 3
#include <iostream>
#include <unordered_map>
#include <vector>
using namespace std;
int main(void) {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
... | 24.444444 | 80 | 0.515909 | shtanriverdi |
efde45ce10a40fd97905ed75cfe5151458fb4455 | 1,201 | hpp | C++ | mi/functional/minmax.hpp | tmichi/xendocast | 482c7e668423c11b1cc0f6e2fa98bd3b582536a8 | [
"MIT"
] | null | null | null | mi/functional/minmax.hpp | tmichi/xendocast | 482c7e668423c11b1cc0f6e2fa98bd3b582536a8 | [
"MIT"
] | 1 | 2017-06-14T04:32:12.000Z | 2017-06-14T04:32:12.000Z | mi/functional/minmax.hpp | tmichi/xendocast | 482c7e668423c11b1cc0f6e2fa98bd3b582536a8 | [
"MIT"
] | null | null | null | /**
* @file minmax.hpp
* @author Takashi Michikawa <michi@den.rcast.u-tokyo.ac.jp>
*/
#ifndef __MI_FUNCTIONAL_MINMAX_HPP__
#define __MI_FUNCTIONAL_MINMAX_HPP__ 1
#include <functional>
#include <utility>
namespace mi
{
template<typename T>
class minmax : public std::unary_function<T, std:... | 34.314286 | 91 | 0.442132 | tmichi |
efde7110977a86b293a5cd6e5681d9739d9aff00 | 2,556 | hpp | C++ | INCLUDE/Vcl/idsntp.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | 1 | 2022-01-13T01:03:55.000Z | 2022-01-13T01:03:55.000Z | INCLUDE/Vcl/idsntp.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | INCLUDE/Vcl/idsntp.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | // Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'IdSNTP.pas' rev: 6.00
#ifndef IdSNTPHPP
#define IdSNTPHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <IdComponent.... | 25.818182 | 79 | 0.649061 | earthsiege2 |
efdef98dbdb93630b13d6e6b9c2633375a97b07a | 632 | hpp | C++ | OpenCV-Test/detect_cascade.hpp | AndriyBas/diploma2016 | 60b3d1034b229be1bdaf58be247847df2c13e6d7 | [
"MIT"
] | null | null | null | OpenCV-Test/detect_cascade.hpp | AndriyBas/diploma2016 | 60b3d1034b229be1bdaf58be247847df2c13e6d7 | [
"MIT"
] | null | null | null | OpenCV-Test/detect_cascade.hpp | AndriyBas/diploma2016 | 60b3d1034b229be1bdaf58be247847df2c13e6d7 | [
"MIT"
] | null | null | null | //
// detect_cascade.hpp
// OpenCV-Test
//
// Created by Andriy Bas on 5/29/16.
// Copyright © 2016 Andriy Bas. All rights reserved.
//
#ifndef detect_cascade_hpp
#define detect_cascade_hpp
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
#include "detector.hp... | 17.555556 | 53 | 0.696203 | AndriyBas |
efe0220428f6227351806e063f7a9927f7a6a4bd | 12,813 | cpp | C++ | SDK/ARKSurvivalEvolved_Baryonyx_Character_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Baryonyx_Character_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Baryonyx_Character_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Baryonyx_Character_BP_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//------------------------------------------------------------... | 35.493075 | 214 | 0.731679 | 2bite |
efe0e12b479da21c52836c93629a5efa8fef1b68 | 1,407 | cpp | C++ | net/packethandler.cpp | dllexport/libtunosocks | 6ffba81bf7e105ab92a1f09893856f8526d45978 | [
"MIT"
] | 1 | 2020-07-06T02:51:20.000Z | 2020-07-06T02:51:20.000Z | net/packethandler.cpp | dllexport/libtunosocks | 6ffba81bf7e105ab92a1f09893856f8526d45978 | [
"MIT"
] | 1 | 2021-08-06T11:22:33.000Z | 2021-08-08T09:17:16.000Z | net/packethandler.cpp | dllexport/libtunosocks | 6ffba81bf7e105ab92a1f09893856f8526d45978 | [
"MIT"
] | 2 | 2020-07-06T02:51:30.000Z | 2021-08-06T11:04:17.000Z | #include "packethandler.h"
#include "lwiphelper.h"
#include "filter/udp_filter.h"
#include <lwip/sockets.h>
#include <lwip/ip4.h>
#include <iostream>
#include "udp/udphandler.h"
const int PROTO_TCP = 6;
const int PROTO_UDP = 17;
const int PROTO_ICMP = 1;
void PacketHandler::Input(void* packet, uint64_t size)
{
#i... | 20.691176 | 62 | 0.643213 | dllexport |
efe12691c965cb1abb71efe65af3b171ad9eeae3 | 3,763 | cpp | C++ | src/cmd/cmdget.cpp | pirobtumen/Remember | 5d218d9c0e353ff1df7695486c794288f1ba0a96 | [
"MIT"
] | null | null | null | src/cmd/cmdget.cpp | pirobtumen/Remember | 5d218d9c0e353ff1df7695486c794288f1ba0a96 | [
"MIT"
] | null | null | null | src/cmd/cmdget.cpp | pirobtumen/Remember | 5d218d9c0e353ff1df7695486c794288f1ba0a96 | [
"MIT"
] | null | null | null | // -----------------------------------------------------------------------------
//
// MIT License
//
// Copyright (c) 2016 Alberto Sola
//
// 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 ... | 29.865079 | 97 | 0.513154 | pirobtumen |
efeab3902b56717f0ab5e210968a7e0a0fcdcc6f | 4,450 | cc | C++ | msg/Messenger.cc | liucxer/ceph-msg | 2e5c18c0c72253b283bfd3d0576033c0b515ce55 | [
"Apache-2.0"
] | null | null | null | msg/Messenger.cc | liucxer/ceph-msg | 2e5c18c0c72253b283bfd3d0576033c0b515ce55 | [
"Apache-2.0"
] | null | null | null | msg/Messenger.cc | liucxer/ceph-msg | 2e5c18c0c72253b283bfd3d0576033c0b515ce55 | [
"Apache-2.0"
] | null | null | null | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include <netdb.h>
#include "include/types.h"
#include "include/random.h"
#include "Messenger.h"
#include "msg/simple/SimpleMessenger.h"
#include "msg/async/AsyncMessenger.h"
#ifdef HAVE_XIO
#include "msg/xio/XioMessen... | 26.646707 | 142 | 0.673933 | liucxer |
efeeacb2c305b970cff402cccdd90313d772ccee | 387 | cpp | C++ | matu144.cpp | NewtonVan/Fxxk_Y0u_m47u | d303c7f13c074b5462ac8390a9ff94e546099fac | [
"MIT"
] | 1 | 2020-09-26T16:47:16.000Z | 2020-09-26T16:47:16.000Z | matu144.cpp | NewtonVan/Fxxk_Y0u_m47u | d303c7f13c074b5462ac8390a9ff94e546099fac | [
"MIT"
] | null | null | null | matu144.cpp | NewtonVan/Fxxk_Y0u_m47u | d303c7f13c074b5462ac8390a9ff94e546099fac | [
"MIT"
] | 1 | 2020-09-26T16:47:40.000Z | 2020-09-26T16:47:40.000Z | #include <iostream>
#include <cstdio>
using std::cin;
using std::cout;
using std::endl;
int main()
{
int width= 0;
cin>>width;
if (0==width%2 || width< 1 || width >80){
cout<<"error"<<endl;
}
else{
for (int i= 0; 2*i< width; ++i){
for (int j= 0; j< i; ++j){
cout<<' ';
}
for (int j= 0; j< width-2... | 12.9 | 42 | 0.498708 | NewtonVan |
eff6e48e5691e512938560bf0be0227e1252a6e4 | 1,931 | cpp | C++ | src/TemporalFrequencyWidget.cpp | scribblemaniac/OUnit | f8a6e966b850a2c877660e24da51d7da0d4e97f6 | [
"MIT"
] | null | null | null | src/TemporalFrequencyWidget.cpp | scribblemaniac/OUnit | f8a6e966b850a2c877660e24da51d7da0d4e97f6 | [
"MIT"
] | null | null | null | src/TemporalFrequencyWidget.cpp | scribblemaniac/OUnit | f8a6e966b850a2c877660e24da51d7da0d4e97f6 | [
"MIT"
] | null | null | null | #include "TemporalFrequencyWidget.h"
#include "ui_TemporalFrequencyWidget.h"
#include <QDebug>
#include "ConversionUtilities.h"
TemporalFrequencyWidget::TemporalFrequencyWidget(QApplication *app, QWidget *parent) :
QWidget(parent),
ui(new Ui::TemporalFrequencyWidget),
m_app(app)
{
ui->setupUi(this);
... | 37.862745 | 145 | 0.733299 | scribblemaniac |
eff8ff7599feefe8524bff005dff84ad873b288e | 671 | hpp | C++ | Game/GUI/GUILabel.hpp | Mateusz00/Space-Invasion | a5c2b501454377f7496db91abbdebcb97ab3c814 | [
"BSD-2-Clause"
] | null | null | null | Game/GUI/GUILabel.hpp | Mateusz00/Space-Invasion | a5c2b501454377f7496db91abbdebcb97ab3c814 | [
"BSD-2-Clause"
] | 1 | 2018-11-18T14:48:56.000Z | 2018-11-26T19:21:07.000Z | Game/GUI/GUILabel.hpp | Mateusz00/2D-Fighter-Jet-Game | a5c2b501454377f7496db91abbdebcb97ab3c814 | [
"BSD-2-Clause"
] | null | null | null | #ifndef GUILABEL_HPP
#define GUILABEL_HPP
#include "GUIObject.hpp"
#include "../ResourcesID.hpp"
#include <SFML/Graphics/Text.hpp>
class GUILabel : public GUIObject
{
public:
GUILabel(const std::string&, const FontHolder&);
void setText(const std::string&... | 27.958333 | 80 | 0.593145 | Mateusz00 |
56039914aaacc6b6256d8ed75c785c194058345a | 1,502 | hpp | C++ | ultra/network/stream_packet.hpp | badryasuo/UltraDark | c9f60e3a754b051db33c29129f943807c6010b9e | [
"MIT"
] | null | null | null | ultra/network/stream_packet.hpp | badryasuo/UltraDark | c9f60e3a754b051db33c29129f943807c6010b9e | [
"MIT"
] | null | null | null | ultra/network/stream_packet.hpp | badryasuo/UltraDark | c9f60e3a754b051db33c29129f943807c6010b9e | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <time.h>
#include <thread>
#include "defines.h"
#include "Encryption.hpp"
#include "../ro_string.hpp"
namespace u
{
/*- -----------------*/
/*- TCP stream_packet Class-*/
/*- -----------------*/
struct stream_packet
{
int size;
stream_packet() : bytes(""), size(0)
{}
... | 24.225806 | 90 | 0.646471 | badryasuo |
560501d69b75a594a1fc601731a1fef37c233249 | 6,265 | hpp | C++ | third-party/Empirical/include/emp/web/init.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/include/emp/web/init.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/include/emp/web/init.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | /**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2015-2018.
*
* @file init.hpp
* @brief Define Initialize() and other functions to set up Empirical to build Emscripten proj... | 29.00463 | 104 | 0.648843 | koellingh |
56052fc0e88c08da5a3a0ab3a226e526ec88d9af | 1,012 | hpp | C++ | boost/tti/detail/dptmf.hpp | smart-make/boost | 46509a094f8a844eefd5bb8a0030b739a04d79e1 | [
"BSL-1.0"
] | 1 | 2018-12-15T19:55:56.000Z | 2018-12-15T19:55:56.000Z | boost/tti/detail/dptmf.hpp | smart-make/boost | 46509a094f8a844eefd5bb8a0030b739a04d79e1 | [
"BSL-1.0"
] | null | null | null | boost/tti/detail/dptmf.hpp | smart-make/boost | 46509a094f8a844eefd5bb8a0030b739a04d79e1 | [
"BSL-1.0"
] | null | null | null |
// (C) Copyright Edward Diener 2011,2012
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#if !defined(BOOST_TTI_DETAIL_PTMF_HPP)
#define BOOST_TTI_DETAIL_PTMF_HPP
#include ... | 21.531915 | 81 | 0.58498 | smart-make |
560a0d213236e2e5874888fd7f8bf5127b5b33fa | 2,165 | cpp | C++ | LeetCode/ThousandOne/0407-trap_rain_water.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0407-trap_rain_water.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0407-trap_rain_water.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 407. 接雨水 II
给定一个 m x n 的矩阵,其中的值均为正整数,代表二维高度图每个单元的高度,请计算图中形状最多能接多少体积的雨水。
说明:
m 和 n 都是小于 110 的整数。每一个单位的高度都大于 0 且小于 20000。
示例:
给出如下 3x6 的高度图:
[
[1,4,3,1,3,2],
[3,2,1,3,2,4],
[2,3,3,2,3,1]
]
返回 4。
*/
// https://leetcode.com/problems/trapping-rain-water-ii/discuss/89495/How-to-get-the-solu... | 20.046296 | 148 | 0.549192 | Ginkgo-Biloba |
560a622453fb4d8e9320e7764488426c351ab274 | 762 | cpp | C++ | Fudl/easy/solved/Next growing number.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 1 | 2022-03-16T08:56:31.000Z | 2022-03-16T08:56:31.000Z | Fudl/easy/solved/Next growing number.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 2 | 2022-03-17T11:27:14.000Z | 2022-03-18T07:41:00.000Z | Fudl/easy/solved/Next growing number.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 6 | 2022-03-13T19:56:11.000Z | 2022-03-17T12:08:22.000Z | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
int main()
{
unsigned long long num;
cin >> num;
num++;
string n = to_string(num);
int p... | 18.585366 | 59 | 0.524934 | AhmedMostafa7474 |
5617c92726412a5ecf7848e388795223ac20acc7 | 743 | hpp | C++ | src/rendering/mesh.hpp | Thanduriel/func-renderer | 99582272d8e34cb6e2f6bc9735c8eba5076bb29c | [
"MIT"
] | 1 | 2019-01-27T17:54:45.000Z | 2019-01-27T17:54:45.000Z | src/rendering/mesh.hpp | Thanduriel/func-renderer | 99582272d8e34cb6e2f6bc9735c8eba5076bb29c | [
"MIT"
] | null | null | null | src/rendering/mesh.hpp | Thanduriel/func-renderer | 99582272d8e34cb6e2f6bc9735c8eba5076bb29c | [
"MIT"
] | null | null | null | #pragma once
#include "vertexbuffer.hpp"
namespace Graphic{
class Mesh
{
public:
Mesh();
const VertexBuffer<>& GetVertices() const { return m_vertices; }
const VertexBuffer<>& GetNormals() const { return m_normals; }
const VertexBuffer<uint32_t, GL_ELEMENT_ARRAY_BUFFER>& GetIndices() const { return m_ind... | 22.515152 | 97 | 0.736205 | Thanduriel |
561c419aeaaefcc75f5505d396a5f2cdf789c182 | 4,363 | hpp | C++ | nearest_centroid_classifier.hpp | clustifier/kaggle-lshtc | 18350ff36350c401efea0338bd31819d039808fa | [
"MIT"
] | 35 | 2015-01-02T09:09:40.000Z | 2019-12-27T10:17:28.000Z | nearest_centroid_classifier.hpp | nagadomi/kaggle-lshtc | 18350ff36350c401efea0338bd31819d039808fa | [
"MIT"
] | null | null | null | nearest_centroid_classifier.hpp | nagadomi/kaggle-lshtc | 18350ff36350c401efea0338bd31819d039808fa | [
"MIT"
] | 24 | 2015-01-02T09:10:34.000Z | 2021-05-23T04:26:38.000Z | #ifndef NEAREST_CENTROID_CLASSIFIER_HPP
#define NEAREST_CENTROID_CLASSIFIER_HPP
#include "util.hpp"
#include "inverted_index.hpp"
class NearestCentroidClassifier
{
private:
std::vector<fv_t> m_centroids;
std::vector<int> m_centroid_labels;
InvertedIndex m_inverted_index;
static void
vector_sum(fv_t &sum,
... | 23.583784 | 73 | 0.613569 | clustifier |
56235b42e92e62b2c824ef5db29b60893f325edb | 79,076 | cpp | C++ | Source/SystemQOR/MSWindows/WinQAPI/src/Kernel/kProcessThread.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQAPI/src/Kernel/kProcessThread.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQAPI/src/Kernel/kProcessThread.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //kProcessThread.cpp
// Copyright Querysoft Limited 2013
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit the ... | 38.743753 | 341 | 0.631481 | mfaithfull |
56265ff78e926a840bede08994dc0891c27e500e | 3,394 | cpp | C++ | scene.cpp | HeckMina/CGI | 976dfe064ec8021ef615354c46ca93637c56b8c6 | [
"MIT"
] | 2 | 2021-07-06T01:01:55.000Z | 2021-07-07T01:30:31.000Z | scene.cpp | HeckMina/CGI | 976dfe064ec8021ef615354c46ca93637c56b8c6 | [
"MIT"
] | null | null | null | scene.cpp | HeckMina/CGI | 976dfe064ec8021ef615354c46ca93637c56b8c6 | [
"MIT"
] | 1 | 2021-03-31T05:36:27.000Z | 2021-03-31T05:36:27.000Z | #include "scene.h"
#include "ggl.h"
#include "utils.h"
#include "shader.h"
#include "ShaderPipeline.h"
#include "Material.h"
#include "model.h"
#include "SceneNode.h"
#include "framebufferobject.h"
#include "fullscreenquad.h"
#include "TextureCubeMap.h"
#include "InputUniform.h"
#include <thread>
using namespace Alice;... | 33.60396 | 157 | 0.769888 | HeckMina |
562ae6dbcbdc1213cf9c8ed90992413ad2618ff6 | 473 | cc | C++ | March/20220328/practice/02.cc | RecklessTeikon/MyCPPJourney | 0f11b810703f487cdbaf7a19e1ed6f999340a66a | [
"MIT"
] | 1 | 2022-03-28T15:59:22.000Z | 2022-03-28T15:59:22.000Z | March/20220328/practice/02.cc | RecklessTeikon/MyCPPJourney | 0f11b810703f487cdbaf7a19e1ed6f999340a66a | [
"MIT"
] | null | null | null | March/20220328/practice/02.cc | RecklessTeikon/MyCPPJourney | 0f11b810703f487cdbaf7a19e1ed6f999340a66a | [
"MIT"
] | null | null | null | #include <iostream>
using std::cout;
using std::endl;
void f2(int &x, int &y)
{
int z = x;
x = y;
y = z;
}
void f3(int *x, int *y)
{
int z = *x;
*x = *y;
*y = z;
}
int main()
{
int x, y;
x = 10; y = 26;
cout << "x, y = " << x << ", " << y << endl;
f2(x, y);
cout << "x, y = " << x << ", " << y << e... | 13.911765 | 45 | 0.365751 | RecklessTeikon |
562f573891ea07c72278d94baa205050279984d0 | 12,091 | cpp | C++ | source/Bezier.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | source/Bezier.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | source/Bezier.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | #include "StdAfx.h"
#include "Bezier.h"
/*-----------------------------------------------------------------------------------------------*/
BezierCurve2D::BezierCurve2D(std::vector< Ogre::Vector2 > pPoints, double pError, int pSubdivision)
: mSubdivision(pSubdivision),
mPoints(pPoints)
{
fitCubic(0, pPoints.s... | 29.634804 | 99 | 0.510297 | Osumi-Akari |
563477cefa788b8323ae2b4dbbdd66a70b70bb77 | 90 | cpp | C++ | XI/recursivitate/info.mcip.ro/197.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | XI/recursivitate/info.mcip.ro/197.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | XI/recursivitate/info.mcip.ro/197.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | #197. [2010-02-28 - 23:22:52]
Sa se calculeze recursiv suma primelor n patrate perfecte.
| 30 | 59 | 0.733333 | rlodina99 |
56381cfd635865967ba3d1c4596e929350e18ae5 | 1,862 | hpp | C++ | tau/TauEngine/include/texture/NullTexture.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | tau/TauEngine/include/texture/NullTexture.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | tau/TauEngine/include/texture/NullTexture.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | #pragma once
#include "Texture.hpp"
class TAU_DLL NullTexture final : public ITexture
{
DEFAULT_CONSTRUCT_PU(NullTexture);
DEFAULT_DESTRUCT(NullTexture);
TEXTURE_IMPL(NullTexture);
public:
[[nodiscard]] ETexture::Format dataFormat() const noexcept override { return static_cast<ETexture::Format>(0); }
... | 30.032258 | 119 | 0.731472 | hyfloac |
563f4c3b021a63b25af6520c4961cb5e53482894 | 8,487 | hpp | C++ | Nacro/SDK/FN_LegacyRatingWidget_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_LegacyRatingWidget_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_LegacyRatingWidget_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// WidgetBlueprintGeneratedClass LegacyRatingWidget... | 104.777778 | 644 | 0.60575 | Milxnor |
5640746e8722acdc65f6bddc246365bfe7db9a9f | 475 | cpp | C++ | GradientDescent/GradientDescent/UnaryOperation.cpp | skostrov/GradientDescent | aed56fa9d1452252f76e8841227283372f2e761d | [
"MIT"
] | null | null | null | GradientDescent/GradientDescent/UnaryOperation.cpp | skostrov/GradientDescent | aed56fa9d1452252f76e8841227283372f2e761d | [
"MIT"
] | null | null | null | GradientDescent/GradientDescent/UnaryOperation.cpp | skostrov/GradientDescent | aed56fa9d1452252f76e8841227283372f2e761d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "UnaryOperation.h"
UnaryOperation::UnaryOperation(const string& name_, AbstractOperation* operand_) :
AbstractOperation(name_),
operand(operand_)
{
}
UnaryOperation::~UnaryOperation()
{
}
OperationPriority UnaryOperation::GetPriority() const
{
return OperationPriority::HIGH;
}
double ... | 16.37931 | 82 | 0.766316 | skostrov |
564138bfdc400ea41af453df1757d3e57c983fe4 | 103,801 | cc | C++ | test/aarch64/test-disasm-morello-c64-aarch64.cc | capablevms/VIXL | 769c8e46a09bb077e9a2148b86a2093addce8233 | [
"BSD-3-Clause"
] | null | null | null | test/aarch64/test-disasm-morello-c64-aarch64.cc | capablevms/VIXL | 769c8e46a09bb077e9a2148b86a2093addce8233 | [
"BSD-3-Clause"
] | null | null | null | test/aarch64/test-disasm-morello-c64-aarch64.cc | capablevms/VIXL | 769c8e46a09bb077e9a2148b86a2093addce8233 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2020, VIXL authors
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions ... | 41.687149 | 80 | 0.60117 | capablevms |
56464054c5a2a8ec94faac8484921f56cff92f5f | 153 | cpp | C++ | test/shared/class.cpp | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 5 | 2019-10-17T15:52:38.000Z | 2021-08-10T18:57:32.000Z | test/shared/class.cpp | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | null | null | null | test/shared/class.cpp | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 1 | 2021-01-31T20:37:42.000Z | 2021-01-31T20:37:42.000Z | #include "datas/reflector.hpp"
struct SimpleStruct {
uint32 field0;
uint32 field1;
};
REFLECT(CLASS(SimpleStruct), MEMBER(field0), MEMBER(field1))
| 17 | 60 | 0.745098 | PredatorCZ |
5646ff388563153ca3d87ad144efdcd5eb8e7d15 | 2,323 | cpp | C++ | 3. Red/1 Week/8. Deque/deque.cpp | freeraisor/yandexcplusplus | 9708fdb6cd7e039672ebc2e77f131fbc7a765750 | [
"MIT"
] | 14 | 2019-08-29T12:34:07.000Z | 2022-03-09T13:31:18.000Z | 3. Red/1 Week/8. Deque/deque.cpp | freeraisor/yandexcplusplus | 9708fdb6cd7e039672ebc2e77f131fbc7a765750 | [
"MIT"
] | null | null | null | 3. Red/1 Week/8. Deque/deque.cpp | freeraisor/yandexcplusplus | 9708fdb6cd7e039672ebc2e77f131fbc7a765750 | [
"MIT"
] | 8 | 2020-09-10T11:40:03.000Z | 2022-03-24T00:34:38.000Z | //
// Created by ilya on 27.09.2019.
//
#include <vector>
#include <stdexcept>
#include <iostream>
#include <sstream>
#define LOG(name) \
//std::cerr << #name << std::endl
template <typename T>
class Deque {
public:
Deque() = default;
bool Empty() const {
LOG(empty);
return front_.empty() && back_.empty... | 16.475177 | 48 | 0.519587 | freeraisor |
8722f4049c4041e0e63d11533b0c0cd6d3f6602f | 10,558 | cpp | C++ | GenerateTypedPropertyEnums.cpp | ChristophHaag/steamvr-plugin-loader | 72ed904b1c0fa03f7d5b1e872e883fa511d700a4 | [
"Apache-2.0"
] | null | null | null | GenerateTypedPropertyEnums.cpp | ChristophHaag/steamvr-plugin-loader | 72ed904b1c0fa03f7d5b1e872e883fa511d700a4 | [
"Apache-2.0"
] | null | null | null | GenerateTypedPropertyEnums.cpp | ChristophHaag/steamvr-plugin-loader | 72ed904b1c0fa03f7d5b1e872e883fa511d700a4 | [
"Apache-2.0"
] | null | null | null | /** @file
@brief Implementation
@date 2016
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2016 Razer, 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 Lic... | 33.201258 | 120 | 0.615836 | ChristophHaag |
8728cc211da420fe04d229bf285637f73ab7ce87 | 1,386 | cpp | C++ | 1742/5586185_AC_2032MS_19816K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 1742/5586185_AC_2032MS_19816K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 1742/5586185_AC_2032MS_19816K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #include<cstdio>
#include<algorithm>
using namespace std;
const int COIN_CLASS_NUM_MAX=100,PRICE_RANGE_MAX=100000;
short remain[COIN_CLASS_NUM_MAX][PRICE_RANGE_MAX+1];
bool pay[PRICE_RANGE_MAX+1];
struct Coin{
int value,num;
};
Coin coins[COIN_CLASS_NUM_MAX];
bool CoinCompare(const Coin& left,const C... | 27.176471 | 73 | 0.65368 | vandreas19 |
872bbb6294723baaac3e078c7416ba11e0d3793b | 911 | cpp | C++ | restresponse.cpp | mholyoak/SampleWeatherReport | 0947f865efeff93fcee8abc88d307809a3ab5055 | [
"MIT"
] | null | null | null | restresponse.cpp | mholyoak/SampleWeatherReport | 0947f865efeff93fcee8abc88d307809a3ab5055 | [
"MIT"
] | null | null | null | restresponse.cpp | mholyoak/SampleWeatherReport | 0947f865efeff93fcee8abc88d307809a3ab5055 | [
"MIT"
] | null | null | null | #include "restresponse.h"
CRestResponse::CRestResponse()
{
}
CRestResponse::CRestResponse(bool success, int code, std::string body) :
_success(success),
_code(code),
_stringBody(body)
{
}
CRestResponse::CRestResponse(bool success, int code, BinaryData body) :
_success(success),
_code(code),
... | 14.934426 | 72 | 0.706915 | mholyoak |
8730baa767df6df918a8e5903197b5220ca84cc8 | 1,929 | cpp | C++ | Code/GUI/Memo.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | Code/GUI/Memo.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | Code/GUI/Memo.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include "Memo.h"
//---------------------------------------------------------------------------
namespace bcl {
//---------------------------------------------------------------------------
CMemo::CMemo() : CComponent()
{
readOnly =... | 30.619048 | 252 | 0.378434 | BomjSoft |
87325b081c7667402448db6529bcae25e6ddd34c | 7,724 | cpp | C++ | Source/Scripting/bsfScript/Generated/BsScriptCD6Joint.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 1,745 | 2018-03-16T02:10:28.000Z | 2022-03-26T17:34:21.000Z | Source/Scripting/bsfScript/Generated/BsScriptCD6Joint.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 395 | 2018-03-16T10:18:20.000Z | 2021-08-04T16:52:08.000Z | Source/Scripting/bsfScript/Generated/BsScriptCD6Joint.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 267 | 2018-03-17T19:32:54.000Z | 2022-02-17T16:55:50.000Z | //********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsScriptCD6Joint.generated.h"
#include "BsMonoMethod.h"
#inc... | 40.229167 | 134 | 0.789617 | bsf2dev |
8735d28c035eaf68c2f63e7e196b2bfb9f9502ec | 875 | cpp | C++ | FindMDL.cpp | ReeceJones/csgomeme | 5c9ffc9372232912e98080359fbca47350fa493f | [
"Unlicense"
] | null | null | null | FindMDL.cpp | ReeceJones/csgomeme | 5c9ffc9372232912e98080359fbca47350fa493f | [
"Unlicense"
] | null | null | null | FindMDL.cpp | ReeceJones/csgomeme | 5c9ffc9372232912e98080359fbca47350fa493f | [
"Unlicense"
] | null | null | null | #include "Hooks.h"
#include "Interfaces.h"
#include "Definitions.h"
#include "Settings.h"
#include "Features.h"
FindMDLFn FindMDL_Original;
MDLHandle_t __fastcall Hooks::FindMDL_Hooked(void* ecx, void* edx, const char* pMDLRelativePath)
{
//if (strstr(pMDLRelativePath, "v_knife_default_ct.mdl")
// || strstr(pMDLRela... | 36.458333 | 98 | 0.770286 | ReeceJones |
873dec0ac6c2a9eda481ac2d9d51e58a1329a44a | 7,595 | cpp | C++ | src/mains/main7.cpp | KSaunders98/simpleEngine | d2bb6f77606dba04c4289125ca3799cc725cb60f | [
"MIT"
] | 1 | 2022-02-17T03:25:14.000Z | 2022-02-17T03:25:14.000Z | src/mains/main7.cpp | KSaunders98/simpleEngine | d2bb6f77606dba04c4289125ca3799cc725cb60f | [
"MIT"
] | null | null | null | src/mains/main7.cpp | KSaunders98/simpleEngine | d2bb6f77606dba04c4289125ca3799cc725cb60f | [
"MIT"
] | null | null | null | #include <chrono>
#include <condition_variable>
#include <mutex>
#include <thread>
#include "mains/mains.hpp"
using std::size_t;
using namespace Render3D;
using namespace Math3D;
void main7() {
Window window(WIDTH, HEIGHT, "Render during resize (by multithreading and callback)");
Context3D* context = window... | 46.310976 | 141 | 0.633706 | KSaunders98 |
873fae10520db248eedb186f9ad27f739239b5da | 3,358 | cpp | C++ | view-transaction/main.cpp | jambolo/Equity | e9f142aec8c5292406b32633fd714c26cf7fd6cd | [
"MIT"
] | null | null | null | view-transaction/main.cpp | jambolo/Equity | e9f142aec8c5292406b32633fd714c26cf7fd6cd | [
"MIT"
] | null | null | null | view-transaction/main.cpp | jambolo/Equity | e9f142aec8c5292406b32633fd714c26cf7fd6cd | [
"MIT"
] | null | null | null | //
// main.cpp
// Equity
//
// Created by John Bolton on 10/16/15.
//
//
#include "equity/Script.h"
#include "equity/Transaction.h"
#include "p2p/Serialize.h"
#include "utility/Utility.h"
#include <cstdio>
#include <memory>
#include <vector>
using namespace Equity;
static void syntax(int argc, char ** argv);
in... | 40.95122 | 449 | 0.691483 | jambolo |
8749d632bde4167bea14c76e6f80d9a68ef58d32 | 740 | cpp | C++ | zad1.cpp | trt5/practika | ea2a1577fce97c98db83f517d8d815566b30dd7f | [
"Unlicense"
] | null | null | null | zad1.cpp | trt5/practika | ea2a1577fce97c98db83f517d8d815566b30dd7f | [
"Unlicense"
] | null | null | null | zad1.cpp | trt5/practika | ea2a1577fce97c98db83f517d8d815566b30dd7f | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main() {
double a, b, c, D, x1, x2;
cout << "Roots of the equation: \n";
cin >> a >> b >> c;
if (a == 0) {
x1 = -(c / b);
cout << "x1 = x2 = " << x1 << "\n";
}
else {
D = pow(b, 2) - 4 * a * c... | 23.870968 | 48 | 0.287838 | trt5 |
874da5a74f54504445850355ea706cc805145276 | 74 | cpp | C++ | src/examples/11_module/01_ref_pointers/main.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-C0779752 | 884607c753f72e0390a7ea3c374137ce1debd6b3 | [
"MIT"
] | 2 | 2022-01-26T01:12:05.000Z | 2022-02-12T04:25:51.000Z | src/examples/11_module/01_ref_pointers/main.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-C0779752 | 884607c753f72e0390a7ea3c374137ce1debd6b3 | [
"MIT"
] | 2 | 2021-09-25T03:34:05.000Z | 2021-10-02T03:30:43.000Z | src/examples/11_module/01_ref_pointers/main.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-C0779752 | 884607c753f72e0390a7ea3c374137ce1debd6b3 | [
"MIT"
] | 3 | 2020-09-10T03:02:48.000Z | 2020-12-09T13:23:10.000Z | #include "ref_pointers.h"
#include<iostream>
int main()
{
return 0;
} | 9.25 | 25 | 0.662162 | acc-cosc-1337-spring-2020-hl |
8753f08789377e8d3235416a009692618ef686e6 | 1,534 | cpp | C++ | src/cpp/2016-11-18/__Coding 20 Longest Increasing subsequence.cpp | spurscoder/forTest | 2ab069d6740f9d7636c6988a5a0bd3825518335d | [
"MIT"
] | null | null | null | src/cpp/2016-11-18/__Coding 20 Longest Increasing subsequence.cpp | spurscoder/forTest | 2ab069d6740f9d7636c6988a5a0bd3825518335d | [
"MIT"
] | 1 | 2018-10-24T05:48:27.000Z | 2018-10-24T05:52:14.000Z | src/cpp/2016-11-18/__Coding 20 Longest Increasing subsequence.cpp | spurscoder/forTest | 2ab069d6740f9d7636c6988a5a0bd3825518335d | [
"MIT"
] | null | null | null | /*
问题描述:最长上升子序列
给定一个整数序列,找到最长上升子序列(LIS),返回LIS的长度。
最长上升子序列的定义:
最长上升子序列问题是在一个无序的给定序列中找到一个尽可能长的
由低到高排列的子序列,这种子序列不一定是连续的或者唯一的。
挑战 :
要求时间复杂度为O(n^2) 或者 O(nlogn)
标签 :
二分法 LintCode 版权所有 动态规划
思路:
如何把这个问题分解成子问题呢?经过分析,发现 “求以ak(k=1, 2, 3…N)为终点的最长上升子序列的
长度”是个好的子问题――这里把一个上升子序列中最右边的那个数,称为该子序列的“终点”。虽然这个
子问题和原问题形式上并不完全一样,但是只要这N个子问题... | 23.96875 | 66 | 0.616688 | spurscoder |
87562cb4238493db4d590c4ec28c1e0f2795efe2 | 6,478 | cpp | C++ | lib/fields/cjson_class_field.cpp | bouviervj/cjson | abc96451f02f1b6fc7dfa0b21cd459593c0b9e1e | [
"Apache-2.0"
] | 4 | 2015-10-28T17:12:43.000Z | 2018-09-11T14:45:11.000Z | lib/fields/cjson_class_field.cpp | bouviervj/cjson | abc96451f02f1b6fc7dfa0b21cd459593c0b9e1e | [
"Apache-2.0"
] | null | null | null | lib/fields/cjson_class_field.cpp | bouviervj/cjson | abc96451f02f1b6fc7dfa0b21cd459593c0b9e1e | [
"Apache-2.0"
] | 2 | 2016-10-21T12:36:56.000Z | 2020-08-13T11:07:27.000Z | /*
* Copyright 2013 BOUVIER-VOLAILLE Julien
*
* 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.04329 | 115 | 0.60142 | bouviervj |
875763dbcf35f5b4793ac596400d7594ededfba6 | 1,614 | hpp | C++ | library/include/lvgl/MessageBox.hpp | StratifyLabs/LvglAPI | c869d5b38ad3aa148fa0801d12271f2d9a6043c5 | [
"MIT"
] | 1 | 2022-01-03T19:16:58.000Z | 2022-01-03T19:16:58.000Z | library/include/lvgl/MessageBox.hpp | StratifyLabs/LvglAPI | c869d5b38ad3aa148fa0801d12271f2d9a6043c5 | [
"MIT"
] | null | null | null | library/include/lvgl/MessageBox.hpp | StratifyLabs/LvglAPI | c869d5b38ad3aa148fa0801d12271f2d9a6043c5 | [
"MIT"
] | null | null | null | #ifndef LVGLAPI_LVGL_MESSAGEBOX_HPP
#define LVGLAPI_LVGL_MESSAGEBOX_HPP
#include "Button.hpp"
#include "ButtonMatrix.hpp"
#include "Label.hpp"
#if defined MessageBox
#undef MessageBox
#endif
namespace lvgl {
class MessageBox : public ObjectAccess<MessageBox> {
public:
struct Construct {
Construct &set_button... | 27.827586 | 93 | 0.724287 | StratifyLabs |
8757ab5381e936617ed3e73c6be0c4a7cc548fe7 | 499 | cc | C++ | kmp-search/prefixfunction.cc | dkodar20/String-Matching-using-Fast-Fourier-Transform | 52c3d092bf9fe59993cf32064678f677957f246a | [
"MIT"
] | 1 | 2021-07-27T11:55:52.000Z | 2021-07-27T11:55:52.000Z | kmp-search/prefixfunction.cc | dkodar20/String-Matching-using-Fast-Fourier-Transform | 52c3d092bf9fe59993cf32064678f677957f246a | [
"MIT"
] | null | null | null | kmp-search/prefixfunction.cc | dkodar20/String-Matching-using-Fast-Fourier-Transform | 52c3d092bf9fe59993cf32064678f677957f246a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
namespace PrefixFunction {
auto __pf = [](string &s, vector<int>& pi) -> void {
int n = (int)s.length();
pi.assign((unsigned)n, 0);
for(int i = 1; i < n; i++){
int j = pi[i-1];
while(j > 0 and s... | 21.695652 | 60 | 0.346693 | dkodar20 |
8759186d3f3b6f27ebf6da35633d8ca6909843b1 | 1,151 | cpp | C++ | Mistiq/src/Graphics/Shaders/Shader.cpp | SGAoo7/Mistiq | 05feb006366bc2ad15b1752f38bbe45f6967cc8c | [
"Apache-2.0"
] | 1 | 2020-10-05T15:36:31.000Z | 2020-10-05T15:36:31.000Z | Mistiq/src/Graphics/Shaders/Shader.cpp | SGAoo7/Mistiq | 05feb006366bc2ad15b1752f38bbe45f6967cc8c | [
"Apache-2.0"
] | null | null | null | Mistiq/src/Graphics/Shaders/Shader.cpp | SGAoo7/Mistiq | 05feb006366bc2ad15b1752f38bbe45f6967cc8c | [
"Apache-2.0"
] | 1 | 2020-10-05T15:36:15.000Z | 2020-10-05T15:36:15.000Z | #include "Mstqpch.h"
#include "Shader.h"
#include "include/glad/glad.h"
Mistiq::Shader::Shader(const char* a_Path, ESHADER_TYPE a_Type) : m_Type(a_Type)
{
std::string code;
std::ifstream shaderFile;
shaderFile.exceptions(std::ifstream::failbit | std::ifstream::badbit);
try
{
shaderFile.open(a_Path);
std::str... | 21.314815 | 80 | 0.719374 | SGAoo7 |
87595e0c8bda92fe36ce7464910075bb98cf5bb9 | 18,437 | cpp | C++ | src/Context.cpp | pizthewiz/Cinder-Pipeline | 2125bf034cd7160eeb1d00ec849ea59adabb9eed | [
"MIT"
] | 17 | 2015-04-29T22:24:19.000Z | 2018-12-06T13:18:06.000Z | src/Context.cpp | pizthewiz/Cinder-Pipeline | 2125bf034cd7160eeb1d00ec849ea59adabb9eed | [
"MIT"
] | null | null | null | src/Context.cpp | pizthewiz/Cinder-Pipeline | 2125bf034cd7160eeb1d00ec849ea59adabb9eed | [
"MIT"
] | 1 | 2021-12-22T12:05:16.000Z | 2021-12-22T12:05:16.000Z | //
// Context.cpp
// Cinder-Pipeline
//
// Created by Jean-Pierre Mouilleseaux on 19 Apr 2014.
// Copyright 2014-2015 Chorded Constructions. All rights reserved.
//
#include "Context.h"
#include "SourceNode.h"
#include "EffectorNode.h"
#include "cinder/Utilities.h"
#include "cinder/Json.h"
#include "cinder/Log.h"
... | 42.777262 | 171 | 0.648479 | pizthewiz |
875e66673f2b5c1e40347f2db8eb3eebb48c2a8f | 2,265 | cpp | C++ | aml-vm/src/vm/compiler/lexer/first_pass/dec_number.cpp | gear-lang/gear-vm-cpp | 89a36dcd6cacef27dd7c7fd72763e11b8eb948bd | [
"MIT"
] | null | null | null | aml-vm/src/vm/compiler/lexer/first_pass/dec_number.cpp | gear-lang/gear-vm-cpp | 89a36dcd6cacef27dd7c7fd72763e11b8eb948bd | [
"MIT"
] | 1 | 2015-09-07T22:56:07.000Z | 2015-09-12T23:41:13.000Z | aml-vm/src/vm/compiler/lexer/first_pass/dec_number.cpp | gear-lang/gear-vm-cpp | 89a36dcd6cacef27dd7c7fd72763e11b8eb948bd | [
"MIT"
] | null | null | null | #include "../lexer.hpp"
namespace AVM {
Lexer::
FirstPassDecimalNumberState::FirstPassDecimalNumberState(RawLexicalToken rawToken)
: FirstPassState(rawToken) {};
void
Lexer::
FirstPassDecimalNumberState::handle(AVM::Lexer::FirstPassMachine &machine, UChar32 inputChar) {
UChar32 const &lastChar = rawToken.... | 26.647059 | 97 | 0.664901 | gear-lang |
8765699d8583ce31529d58ec3f744529a7545725 | 4,137 | cpp | C++ | src/Codecs/TemplateRegistry.cpp | divyang4481/quickfast | 339c78e96a1f63b74c139afa1a3c9a07afff7b5f | [
"BSD-3-Clause"
] | 198 | 2015-04-26T08:06:18.000Z | 2022-03-13T01:31:50.000Z | src/Codecs/TemplateRegistry.cpp | divyang4481/quickfast | 339c78e96a1f63b74c139afa1a3c9a07afff7b5f | [
"BSD-3-Clause"
] | 15 | 2015-07-07T19:47:08.000Z | 2022-02-04T05:56:51.000Z | src/Codecs/TemplateRegistry.cpp | divyang4481/quickfast | 339c78e96a1f63b74c139afa1a3c9a07afff7b5f | [
"BSD-3-Clause"
] | 96 | 2015-04-24T15:19:43.000Z | 2022-03-28T13:15:11.000Z | // Copyright (c) 2009, Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#include <Common/QuickFASTPch.h>
#include "TemplateRegistry.h"
#include <Codecs/Template.h>
#include <Codecs/DictionaryIndexer.h>
using namespace ::QuickFAST;
using namespace ::QuickFAST::Codecs... | 22.856354 | 104 | 0.676819 | divyang4481 |
87664bc86d17a960ca6c1a13f1d7a57b078acfc9 | 423 | hpp | C++ | src/bork/parse.hpp | NaerJeis/bork | 27fa5e7d4b2fc6e797d46c8266d8736277cd2886 | [
"MIT"
] | null | null | null | src/bork/parse.hpp | NaerJeis/bork | 27fa5e7d4b2fc6e797d46c8266d8736277cd2886 | [
"MIT"
] | null | null | null | src/bork/parse.hpp | NaerJeis/bork | 27fa5e7d4b2fc6e797d46c8266d8736277cd2886 | [
"MIT"
] | null | null | null | /***************************************************************************************************
* *
***************************************************************************************************/
#ifndef _BORK_... | 42.3 | 101 | 0.184397 | NaerJeis |
8766a316d834084a15d81ad95d8ebf567f2aa73f | 262 | cpp | C++ | 39 using continue statement.cpp | pujanmahat/c-oop-programme | 8f48bf409e27dbf9c03c8b3cb0a7a7dcdbc0ee46 | [
"Apache-2.0"
] | null | null | null | 39 using continue statement.cpp | pujanmahat/c-oop-programme | 8f48bf409e27dbf9c03c8b3cb0a7a7dcdbc0ee46 | [
"Apache-2.0"
] | null | null | null | 39 using continue statement.cpp | pujanmahat/c-oop-programme | 8f48bf409e27dbf9c03c8b3cb0a7a7dcdbc0ee46 | [
"Apache-2.0"
] | null | null | null | //wap to display the number from 200 to 400 except 207 usin continue statemetn in c++ programming
#include<iostream>
using namespace std;
int main()
{
int i;
for(i=200;i<=400;i++)
{
if (i==207)
{
continue;
}
cout<<i<<"\t";
}
}
| 14.555556 | 98 | 0.580153 | pujanmahat |
876a551beff3391ea8ed076552a3a9f36e37e2f4 | 4,892 | cpp | C++ | io/DirectoryInputStreamArchive.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 3 | 2019-04-20T10:16:36.000Z | 2021-03-21T19:51:38.000Z | io/DirectoryInputStreamArchive.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | null | null | null | io/DirectoryInputStreamArchive.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 2 | 2020-04-18T20:04:24.000Z | 2021-09-19T05:07:41.000Z | #include "DirectoryInputStreamArchive.h"
#include <io/File.h>
#include <io/FileInputStream.h>
#include <io/FileNotFoundException.h>
#include <lang/Array.h>
#include <lang/Debug.h>
#include "config.h"
//-----------------------------------------------------------------------------
using namespace lang;
//-... | 21.086207 | 99 | 0.593827 | Andrewich |
876cfa131dc8c18353813208dc3f611c83e51abe | 5,322 | cpp | C++ | srcdll/ftdi.cpp | HPC-Factor/232usb | aaf0e43e20e7e7ea9d5f8b0a2c0ba37bcf0d1567 | [
"BSD-3-Clause"
] | null | null | null | srcdll/ftdi.cpp | HPC-Factor/232usb | aaf0e43e20e7e7ea9d5f8b0a2c0ba37bcf0d1567 | [
"BSD-3-Clause"
] | null | null | null | srcdll/ftdi.cpp | HPC-Factor/232usb | aaf0e43e20e7e7ea9d5f8b0a2c0ba37bcf0d1567 | [
"BSD-3-Clause"
] | null | null | null | // 232usb Copyright (c) 03-04,06 Zoroyoshi, Japan
// See source.txt for detail
#include <windows.h>
#include "usbdi.h"
#include "common.h"
#include "file.h"
#include "device.h"
#include "ftdi.h"
int ftdi_extension::
recvdata(BYTE* src, DWORD len)
{
//ftdi: every packet(64bytes) have two status header b... | 28.612903 | 91 | 0.684705 | HPC-Factor |
8773cf166155df0f1409b68e3de6be5f5f16d04a | 1,088 | cc | C++ | src/fsm2/serial.cc | chenxuhao/gardenia | 01e8601a9ae76c3b58aa91f1c8c88203a6fe11d1 | [
"Intel",
"MIT"
] | 23 | 2017-08-16T15:14:25.000Z | 2022-01-05T06:41:08.000Z | mining/fsm2/serial.cc | chenxuhao/gardinia | 5894df11cf47f8839945edadff43dc79e260216d | [
"MIT"
] | 2 | 2020-12-14T04:51:01.000Z | 2022-02-02T20:57:28.000Z | mining/fsm2/serial.cc | chenxuhao/gardinia | 5894df11cf47f8839945edadff43dc79e260216d | [
"MIT"
] | 5 | 2019-01-22T02:09:06.000Z | 2020-04-02T12:05:42.000Z | // Copyright 2016, National University of Defense Technology
// Authors: Xuhao Chen <cxh@illinois.edu>
#include "fsm.h"
#include <timer.h>
#include <types.hpp>
#include <graph_types.hpp>
#include "miner.h"
#define FSM_VARIANT "serial"
void FSMSolver(const Graph &graph, int minsup, size_t &total) {
printf("Launching S... | 36.266667 | 105 | 0.671875 | chenxuhao |
8775eb0c5318e119aae0cf058ceb6c40666eb5f0 | 333 | cpp | C++ | emitter.cpp | privet56/qRabbifier | 4289016f9ba40658ad444580818292456574ffb5 | [
"Apache-2.0"
] | 10 | 2016-04-15T15:31:08.000Z | 2019-10-02T01:19:48.000Z | emitter.cpp | privet56/qRabbifier | 4289016f9ba40658ad444580818292456574ffb5 | [
"Apache-2.0"
] | null | null | null | emitter.cpp | privet56/qRabbifier | 4289016f9ba40658ad444580818292456574ffb5 | [
"Apache-2.0"
] | 5 | 2016-04-15T15:31:10.000Z | 2022-02-22T02:00:06.000Z | #include "emitter.h"
emitter::emitter(QObject* pLogTarget, QObject *parent) : QObject(parent)
{
connect(this,SIGNAL(log(QString,logger::LogLevel)),pLogTarget,SLOT(log(QString,logger::LogLevel)));
}
void emitter::emitlog(QString s, logger::LogLevel level, QObject* pLogTarget)
{
Q_UNUSED(pLogTarget)
emit log... | 27.75 | 103 | 0.732733 | privet56 |
877713aa2627033a2cab30753f80feef89d70bd9 | 117 | hh | C++ | src/rich-log/message.hh | project-arcana/rich-logging | 23998c8c0a2aa008dbc4dd218f3c730a5ab3058a | [
"MIT"
] | 1 | 2020-12-09T13:54:48.000Z | 2020-12-09T13:54:48.000Z | src/rich-log/message.hh | project-arcana/rich-logging | 23998c8c0a2aa008dbc4dd218f3c730a5ab3058a | [
"MIT"
] | 2 | 2020-04-03T21:00:25.000Z | 2021-03-25T14:25:05.000Z | src/rich-log/message.hh | project-arcana/rich-logging | 23998c8c0a2aa008dbc4dd218f3c730a5ab3058a | [
"MIT"
] | null | null | null | #pragma once
#include <rich-log/fwd.hh>
namespace rlog
{
struct message
{
rlog::location const* location;
};
}
| 9.75 | 35 | 0.683761 | project-arcana |
877b7b8681baf414367c859e8c2e0439fc5cdef8 | 5,579 | cpp | C++ | src/grep.cpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | src/grep.cpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | src/grep.cpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | #include "grep.hpp"
#include "config.hpp"
#include "dialog.hpp"
#include "filesystem.hpp"
#include "project_build.hpp"
#include "terminal.hpp"
#include "utility.hpp"
Grep::Grep(const boost::filesystem::path &path, const std::string &pattern, bool case_sensitive, bool extended_regex) {
if(path.empty())
return;
... | 28.464286 | 156 | 0.586306 | jlangvand |
877f1723c0d14a29decf0dc64e9c613a41f75e73 | 797 | cpp | C++ | Libraries/RobsJuceModules/rosic/filters/rosic_BiquadBase.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Libraries/RobsJuceModules/rosic/filters/rosic_BiquadBase.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Libraries/RobsJuceModules/rosic/filters/rosic_BiquadBase.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | //#include "rosic_BiquadBase.h"
//using namespace rosic;
//-------------------------------------------------------------------------------------------------
// construction/destruction:
BiquadBase::BiquadBase()
{
initializeCoefficients();
}
BiquadBase::~BiquadBase()
{
}
//---------------------------... | 20.973684 | 102 | 0.415307 | RobinSchmidt |
87857273beb4ed6e219d8f058407d48944f8e98f | 493 | cpp | C++ | baekjoon/10950.cpp | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/10950.cpp | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/10950.cpp | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | /*
10950 : A+B - 3
URL : https://www.acmicpc.net/problem/10950
Input :
5
1 1
2 3
3 4
9 8
5 2
Output :
2
5
7
17
7
*/
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int N;
... | 12.02439 | 47 | 0.365112 | GihwanKim |
87882e34bbb1f68b4f8f6ad3537ef5ba4f6fb527 | 224 | cpp | C++ | tests/math.cpp | cenomla/oak-engine | e0b559497cddc69d5ed840a65e092dab263e24d1 | [
"MIT"
] | 3 | 2016-09-12T22:30:10.000Z | 2017-04-20T06:16:24.000Z | tests/math.cpp | cenomla/oakengine | e0b559497cddc69d5ed840a65e092dab263e24d1 | [
"MIT"
] | null | null | null | tests/math.cpp | cenomla/oakengine | e0b559497cddc69d5ed840a65e092dab263e24d1 | [
"MIT"
] | null | null | null | #include <oakengine.h>
#include <math/mat.h>
int main(int argc, char **argv) {
oak::math::Mat4 mat{ 2 };
oak::math::Vec4 vec{ 2 };
auto r = mat * vec;
if (r != oak::math::Vec4{ 4 }) {
return -1;
}
return 0;
}
| 11.789474 | 33 | 0.553571 | cenomla |
8788661d10ba31ea255bdbfd0aaa0ab6b8a1bcb3 | 3,872 | cpp | C++ | Week2/heap/heap.cpp | aakash-sahu/compsci-cs400 | eee279bde822784ba18c6f632f31a3e20ff13741 | [
"MIT"
] | null | null | null | Week2/heap/heap.cpp | aakash-sahu/compsci-cs400 | eee279bde822784ba18c6f632f31a3e20ff13741 | [
"MIT"
] | null | null | null | Week2/heap/heap.cpp | aakash-sahu/compsci-cs400 | eee279bde822784ba18c6f632f31a3e20ff13741 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Cube.h"
using uiuc::Cube;
int main() {
// heap has to assigned by new operator
int *numPtr = new int;
std::cout << "*numptr: " << *numPtr << std::endl; // when dereferenced pointer is printed, it can return any random number
std::cout << "numptr: " << numPtr << std::... | 39.917526 | 162 | 0.573089 | aakash-sahu |
8789167f13ece3323c9814e4c8ad682a2fa879d6 | 1,673 | hpp | C++ | src/Common/Profiler.hpp | nickwn/Stratum | 3d99193199ef4e20aca9f9203a36f34e225cd896 | [
"MIT"
] | null | null | null | src/Common/Profiler.hpp | nickwn/Stratum | 3d99193199ef4e20aca9f9203a36f34e225cd896 | [
"MIT"
] | null | null | null | src/Common/Profiler.hpp | nickwn/Stratum | 3d99193199ef4e20aca9f9203a36f34e225cd896 | [
"MIT"
] | null | null | null | #pragma once
#include "common.hpp"
namespace stm {
struct ProfilerSample {
ProfilerSample* mParent;
list<unique_ptr<ProfilerSample>> mChildren;
chrono::high_resolution_clock::time_point mStartTime;
chrono::nanoseconds mDuration;
Vector4f mColor;
string mLabel;
};
class Profiler {
private:
STRATUM_API static ... | 30.418182 | 107 | 0.759115 | nickwn |
879aaa9b4605eef551fb06ce3dcf254a176754f6 | 3,070 | cpp | C++ | codeforces/F - The Number of Subpermutations/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/F - The Number of Subpermutations/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/F - The Number of Subpermutations/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jul/14/2020 22:48
* solution_verdict: Accepted language: GNU C++17
* run... | 27.657658 | 111 | 0.485016 | kzvd4729 |
879c0fe0d105e64e6c80733892fe3b2d81a71b0d | 8,045 | cpp | C++ | Qt/4/01_smarthome/01_smarthome/mainwindow.cpp | alientek-openedv/Embedded-Qt-Tutorial | 3c75142235b4d39c22e1ad56a5bd92d08c1a0d42 | [
"MIT"
] | 1 | 2022-02-21T03:19:36.000Z | 2022-02-21T03:19:36.000Z | Qt/4/01_smarthome/01_smarthome/mainwindow.cpp | alientek-openedv/Embedded-Qt-Tutorial | 3c75142235b4d39c22e1ad56a5bd92d08c1a0d42 | [
"MIT"
] | null | null | null | Qt/4/01_smarthome/01_smarthome/mainwindow.cpp | alientek-openedv/Embedded-Qt-Tutorial | 3c75142235b4d39c22e1ad56a5bd92d08c1a0d42 | [
"MIT"
] | 1 | 2021-10-19T04:03:56.000Z | 2021-10-19T04:03:56.000Z | /******************************************************************
Copyright © Deng Zhimao Co., Ltd. 1990-2021. All rights reserved.
* @projectName 01_smarthome
* @brief mainwindow.cpp
* @author Deng Zhimao
* @email 1252699831@qq.com
* @net www.openedv.com
* @date 2021-05-26... | 31.798419 | 68 | 0.590677 | alientek-openedv |
879cad3008564d5850747b22ea5e92478083a174 | 93 | hpp | C++ | tests/src/utility/ClassInstanceMethod.hpp | Ybalrid/jet-live | 14b909b00b98399d7e046cd8b7500a3fdfe0a0b1 | [
"MIT"
] | 325 | 2019-01-05T12:40:46.000Z | 2022-03-26T09:06:40.000Z | tests/src/utility/ClassInstanceMethod.hpp | Ybalrid/jet-live | 14b909b00b98399d7e046cd8b7500a3fdfe0a0b1 | [
"MIT"
] | 23 | 2019-01-05T19:43:47.000Z | 2022-01-10T20:11:06.000Z | tests/src/utility/ClassInstanceMethod.hpp | Ybalrid/jet-live | 14b909b00b98399d7e046cd8b7500a3fdfe0a0b1 | [
"MIT"
] | 29 | 2019-01-05T18:49:08.000Z | 2022-03-20T19:14:30.000Z |
#pragma once
class ClassInstanceMethod
{
public:
int computeResult(int v1, int v2);
};
| 10.333333 | 38 | 0.709677 | Ybalrid |
879dbd52d4434ff3e2c2200391de606dbbc18273 | 5,351 | cpp | C++ | src/cpp/uniform.cpp | dlitvak98/webgl-raub | 3456f387c2598fc4c8280724030ca4676b469be9 | [
"MIT"
] | 62 | 2018-06-03T13:54:54.000Z | 2022-03-11T08:27:36.000Z | src/cpp/uniform.cpp | dlitvak98/webgl-raub | 3456f387c2598fc4c8280724030ca4676b469be9 | [
"MIT"
] | 14 | 2018-10-18T21:34:32.000Z | 2022-02-06T03:34:10.000Z | src/cpp/uniform.cpp | dlitvak98/webgl-raub | 3456f387c2598fc4c8280724030ca4676b469be9 | [
"MIT"
] | 8 | 2018-08-22T03:35:51.000Z | 2022-02-04T00:34:06.000Z | #include "webgl.hpp"
using namespace std;
namespace webgl {
JS_METHOD(getActiveUniform) { NAPI_ENV;
REQ_INT32_ARG(0, program);
REQ_INT32_ARG(1, index);
char name[1024];
GLsizei length = 0;
GLenum type;
GLsizei size;
glGetActiveUniform(program, index, 1024, &length, &size, &type, name);
Napi::Array a... | 15.600583 | 71 | 0.683237 | dlitvak98 |
87a2ef0a609e0e297d0543cab7c9e0049da9b7ba | 1,409 | cpp | C++ | ianlmk/cs161b/algorithms/bubbleSortArray.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | null | null | null | ianlmk/cs161b/algorithms/bubbleSortArray.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | 1 | 2022-03-25T18:34:47.000Z | 2022-03-25T18:35:23.000Z | ianlmk/cs161b/algorithms/bubbleSortArray.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <chrono>
#include <thread>
#define MAX 100
using namespace std;
int main(){
using namespace std::this_thread; // sleep_for, sleep_until
using namespace std::chrono; // nanoseconds, system_clock, seconds
int n;
int arr[MAX] = { };
srand(time(0));
cout << ... | 22.015625 | 71 | 0.528034 | ianlmk |
87a5f73fef10d407a0d2259d842885912ad30720 | 86 | cpp | C++ | Daxa/src/Application.cpp | Ipotrick/Daxa | 07f3f9717f43b32cbe60761602fc16b3a2789b5a | [
"MIT"
] | 3 | 2021-03-24T21:26:59.000Z | 2021-12-28T01:54:17.000Z | Daxa/src/Application.cpp | Ipotrick/Daxa | 07f3f9717f43b32cbe60761602fc16b3a2789b5a | [
"MIT"
] | 1 | 2021-12-10T01:08:15.000Z | 2021-12-15T23:38:33.000Z | Daxa/src/Application.cpp | Ipotrick/Daxa | 07f3f9717f43b32cbe60761602fc16b3a2789b5a | [
"MIT"
] | 1 | 2022-02-18T16:07:19.000Z | 2022-02-18T16:07:19.000Z | #include "Application.hpp"
#include <iostream>
#include <iomanip>
namespace daxa {
}
| 12.285714 | 26 | 0.732558 | Ipotrick |
87a9f0b9b598b3a203b8d65ae918600bd96163ce | 998 | cpp | C++ | Data_Structures/C++/Heapsort_rsathya4802.cpp | manasa-rajeshwari/DS_with_hacktoberfest | 1b09203b2e85a9b95e2cf4b17c5650ef78d33be7 | [
"Apache-2.0"
] | 16 | 2019-09-30T18:33:03.000Z | 2020-11-16T10:29:51.000Z | Data_Structures/C++/Heapsort_rsathya4802.cpp | manasa-rajeshwari/DS_with_hacktoberfest | 1b09203b2e85a9b95e2cf4b17c5650ef78d33be7 | [
"Apache-2.0"
] | 43 | 2019-09-30T13:37:57.000Z | 2020-10-30T06:13:20.000Z | Data_Structures/C++/Heapsort_rsathya4802.cpp | manasa-rajeshwari/DS_with_hacktoberfest | 1b09203b2e85a9b95e2cf4b17c5650ef78d33be7 | [
"Apache-2.0"
] | 142 | 2019-09-30T16:47:07.000Z | 2021-10-30T16:29:17.000Z | // LANGUAGE: c++
// ENV: gcc
// AUTHOR: Sathyanarayanan R
// GITHUB: https://github.com/rsathya4802
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
void swap(ll a[],ll x,ll y)
{
ll temp=a[x];
a[x]=a[y];
a[y]=temp... | 17.508772 | 41 | 0.497996 | manasa-rajeshwari |
87ab7838b8408e2a52b1c0afe24a28a238042ae8 | 4,382 | hpp | C++ | cslibs_ndt/include/cslibs_ndt/common/weighted_occupancy_distribution.hpp | doge-of-the-day/cslibs_ndt | f326d05d5bde9750ad595790849eb2ac9a747123 | [
"BSD-3-Clause"
] | 36 | 2018-10-17T07:00:23.000Z | 2021-12-22T15:41:50.000Z | cslibs_ndt/include/cslibs_ndt/common/weighted_occupancy_distribution.hpp | doge-of-the-day/cslibs_ndt | f326d05d5bde9750ad595790849eb2ac9a747123 | [
"BSD-3-Clause"
] | 4 | 2018-10-04T14:16:28.000Z | 2020-11-26T10:03:14.000Z | cslibs_ndt/include/cslibs_ndt/common/weighted_occupancy_distribution.hpp | doge-of-the-day/cslibs_ndt | f326d05d5bde9750ad595790849eb2ac9a747123 | [
"BSD-3-Clause"
] | 18 | 2018-07-15T14:39:56.000Z | 2021-05-05T11:12:51.000Z | #ifndef CSLIBS_NDT_COMMON_WEIGHTED_OCCUPANCY_DISTRIBUTION_HPP
#define CSLIBS_NDT_COMMON_WEIGHTED_OCCUPANCY_DISTRIBUTION_HPP
#include <mutex>
#include <cslibs_math/statistics/weighted_distribution.hpp>
#include <cslibs_math/statistics/stable_weighted_distribution.hpp>
#include <cslibs_gridmaps/utility/inverse_model.hp... | 29.213333 | 106 | 0.641716 | doge-of-the-day |
87abc35abd6c12c3114f6d2caa091e340435d388 | 1,835 | cpp | C++ | src/tests/SparseLattice/sparse_lattice_functions.cpp | extragoya/LibNT | 60372bf4e3c5d6665185358c4756da4fe547f093 | [
"BSD-3-Clause"
] | 1 | 2021-04-26T05:11:32.000Z | 2021-04-26T05:11:32.000Z | src/tests/SparseLattice/sparse_lattice_functions.cpp | extragoya/LibNT | 60372bf4e3c5d6665185358c4756da4fe547f093 | [
"BSD-3-Clause"
] | null | null | null | src/tests/SparseLattice/sparse_lattice_functions.cpp | extragoya/LibNT | 60372bf4e3c5d6665185358c4756da4fe547f093 | [
"BSD-3-Clause"
] | 1 | 2017-09-21T15:38:23.000Z | 2017-09-21T15:38:23.000Z | #define BOOST_TEST_MODULE SparseLatticeFunctionTests
#include "SparseLattice.h"
#include "DenseLattice.h"
#include "MIAConfig.h"
#ifdef MIA_USE_HEADER_ONLY_TESTS
#include <boost/test/included/unit_test.hpp>
#else
#include <boost/test/unit_test.hpp>
#endif
//#include <boost/timer/timer.hpp>
template<ty... | 24.797297 | 126 | 0.67139 | extragoya |
87b47917495c6de525022d7520b8e0066d33592f | 158 | cpp | C++ | thirdparty/apriltag/tests/test.cpp | catid/xrcap | d3c5900c44861e618fd28b4256387725646b85c7 | [
"BSD-3-Clause"
] | 62 | 2019-12-21T23:48:28.000Z | 2021-11-25T14:29:28.000Z | thirdparty/apriltag/tests/test.cpp | catid/xrcap | d3c5900c44861e618fd28b4256387725646b85c7 | [
"BSD-3-Clause"
] | 5 | 2020-01-06T19:55:41.000Z | 2020-06-19T23:13:24.000Z | thirdparty/apriltag/tests/test.cpp | catid/xrcap | d3c5900c44861e618fd28b4256387725646b85c7 | [
"BSD-3-Clause"
] | 10 | 2019-12-22T15:53:10.000Z | 2021-07-18T09:12:06.000Z | #include <apriltag.h>
int main()
{
apriltag_detector_t *detector = apriltag_detector_create();
apriltag_detector_destroy(detector);
return 0;
}
| 15.8 | 63 | 0.721519 | catid |
87b4796e38fd9cc6081aa124a4eb9ef755825a25 | 3,678 | cpp | C++ | components/scream/src/physics/shoc/tests/shoc_energy_threshold_fixer_tests.cpp | ambrad/scream | 52da60f65e870b8a3994bdbf4a6022fdcac7cab5 | [
"BSD-3-Clause"
] | 22 | 2018-12-12T17:44:55.000Z | 2022-03-11T03:47:38.000Z | components/scream/src/physics/shoc/tests/shoc_energy_threshold_fixer_tests.cpp | ambrad/scream | 52da60f65e870b8a3994bdbf4a6022fdcac7cab5 | [
"BSD-3-Clause"
] | 1,440 | 2018-07-10T16:49:55.000Z | 2022-03-31T22:41:25.000Z | components/scream/src/physics/shoc/tests/shoc_energy_threshold_fixer_tests.cpp | ambrad/scream | 52da60f65e870b8a3994bdbf4a6022fdcac7cab5 | [
"BSD-3-Clause"
] | 24 | 2018-11-12T15:43:53.000Z | 2022-03-30T18:10:52.000Z | #include "catch2/catch.hpp"
#include "shoc_unit_tests_common.hpp"
#include "physics/shoc/shoc_functions.hpp"
#include "physics/shoc/shoc_functions_f90.hpp"
#include "physics/share/physics_constants.hpp"
#include "share/scream_types.hpp"
#include "ekat/ekat_pack.hpp"
#include "ekat/util/ekat_arch.hpp"
#include "ekat/... | 26.271429 | 115 | 0.636759 | ambrad |
87b58e981229b712d5631df4c94d8263897e23d3 | 604 | cpp | C++ | vendor/detours/tests/test_image_api.cpp | Scaless/corn-cob | f8e2169c1c0882fba6047628e87e05e71fd4a676 | [
"MIT"
] | 1 | 2021-11-09T13:31:07.000Z | 2021-11-09T13:31:07.000Z | vendor/detours/tests/test_image_api.cpp | Scaless/corn-cob | f8e2169c1c0882fba6047628e87e05e71fd4a676 | [
"MIT"
] | null | null | null | vendor/detours/tests/test_image_api.cpp | Scaless/corn-cob | f8e2169c1c0882fba6047628e87e05e71fd4a676 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// Unit Tests for Detours Image API (test_image_api.cpp of unittests.exe)
//
// Microsoft Research Detours Package
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
#include "catch.hpp"
#include "windows.h"
#include "... | 27.454545 | 78 | 0.592715 | Scaless |
87bfa6a825f3d18164b52663e29ae20904385c25 | 8,204 | cpp | C++ | math/volume.cpp | Kahemp/C-Plus-Plus | 638babd61a998d67d9d68be0e67ece2255265d7f | [
"MIT"
] | 5 | 2022-01-01T04:32:12.000Z | 2022-01-01T05:14:44.000Z | math/volume.cpp | Kahemp/C-Plus-Plus | 638babd61a998d67d9d68be0e67ece2255265d7f | [
"MIT"
] | 1 | 2020-06-30T00:37:59.000Z | 2020-06-30T00:38:38.000Z | math/volume.cpp | Kahemp/C-Plus-Plus | 638babd61a998d67d9d68be0e67ece2255265d7f | [
"MIT"
] | 1 | 2022-03-10T11:13:20.000Z | 2022-03-10T11:13:20.000Z | /**
* @file
* @brief Implmentations for the [volume](https://en.wikipedia.org/wiki/Volume)
* of various 3D shapes.
* @details The volume of a 3D shape is the amount of 3D space that the shape
* takes up. All shapes have a formula to get the volume of any given shape.
* These implementations support multiple retur... | 34.32636 | 79 | 0.646148 | Kahemp |
87c2fe561531cf2ff69403be99aecc1dc5a381e9 | 527 | cpp | C++ | firmware/robot2015/src-ctrl/modules/control/RobotModel.cpp | JNeiger/robocup-firmware | c1bfd4ba24070eaa4e012fdc88aa468aafcc2e4e | [
"Apache-2.0"
] | null | null | null | firmware/robot2015/src-ctrl/modules/control/RobotModel.cpp | JNeiger/robocup-firmware | c1bfd4ba24070eaa4e012fdc88aa468aafcc2e4e | [
"Apache-2.0"
] | null | null | null | firmware/robot2015/src-ctrl/modules/control/RobotModel.cpp | JNeiger/robocup-firmware | c1bfd4ba24070eaa4e012fdc88aa468aafcc2e4e | [
"Apache-2.0"
] | null | null | null | #include "RobotModel.hpp"
const RobotModel RobotModel2015 = []() {
RobotModel model;
model.WheelRadius = 0.02856;
// note: wheels are numbered clockwise, starting with the top-right
// TODO(ashaw596): Check angles.
model.WheelAngles = {
DegreesToRadians(38), DegreesToRadians(315), DegreesTo... | 26.35 | 75 | 0.671727 | JNeiger |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.