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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec39f17a85dc61d2d0fa28b8f65c2f1f8e4872a9 | 562 | cpp | C++ | source/tastefulserver/source/core/Task.cpp | scheibel/tastefulserver | 69364fe5a1e2fb836ce471231f317d45154fc58f | [
"MIT"
] | 2 | 2015-07-07T16:54:32.000Z | 2021-04-13T08:32:59.000Z | source/tastefulserver/source/core/Task.cpp | scheibel/tasteful-server | 69364fe5a1e2fb836ce471231f317d45154fc58f | [
"MIT"
] | 1 | 2015-02-19T12:02:07.000Z | 2015-02-19T12:02:07.000Z | source/tastefulserver/source/core/Task.cpp | scheibel/tastefulserver | 69364fe5a1e2fb836ce471231f317d45154fc58f | [
"MIT"
] | 6 | 2015-07-08T00:23:43.000Z | 2020-02-06T16:12:53.000Z | #include <tastefulserver/Task.h>
namespace tastefulserver {
void Task::startUp()
{
}
void Task::finish()
{
emit(finished(this));
}
void TaskThread::addTask(Task * task)
{
task->moveToThread(this);
m_tasks.insert(task);
startTask(task);
}
void TaskThread::endTask(Task * task)
{
m_tasks.remove(ta... | 16.529412 | 69 | 0.683274 | scheibel |
ec3b6037d66f1a72a093b06ea9002725846fcce4 | 1,250 | cpp | C++ | codeforces/C - Ramesses and Corner Inversion/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Ramesses and Corner Inversion/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Ramesses and Corner Inversion/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Apr/12/2019 23:21
* solution_verdict: Accepted language: GNU C++14
* run... | 31.25 | 111 | 0.3792 | kzvd4729 |
ec40bc5276e594a7aafe5cff9a27c4dee2ab97c9 | 473 | hpp | C++ | src/client/bot.hpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | 1 | 2020-06-10T07:44:43.000Z | 2020-06-10T07:44:43.000Z | src/client/bot.hpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | null | null | null | src/client/bot.hpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | null | null | null | #pragma once
#include "context.hpp"
#include "world.fwd.h"
#include <vector>
class Bot {
public:
virtual void set_mouse_pos(World &world __attribute__((unused)),
Context &ctx __attribute__((unused))){};
virtual ~Bot(){};
};
class Goblin : public Bot {
public:
void set_mouse_pos(Worl... | 22.52381 | 69 | 0.672304 | sathwikmatsa |
ec424debd9e2f1ed80a1df585f471c8c925275fe | 10,860 | cpp | C++ | mmap_stress.cpp | paulhuggett/extalloc | 5cf69cc7f0b56287bdec95ce7ff6655f3f54677f | [
"MIT"
] | null | null | null | mmap_stress.cpp | paulhuggett/extalloc | 5cf69cc7f0b56287bdec95ce7ff6655f3f54677f | [
"MIT"
] | null | null | null | mmap_stress.cpp | paulhuggett/extalloc | 5cf69cc7f0b56287bdec95ce7ff6655f3f54677f | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <random>
#include <system_error>
#include <fcntl.h>
#ifdef _WIN32
# include <io.h>
#else
# include <unistd.h>
# include <sys/mman.h>
#endif
#include <sys/stat.h>
#include "allocator.hp... | 34.258675 | 100 | 0.528085 | paulhuggett |
ec42fd24e585f0fa5fce0985d0b23ea16561dd6c | 2,003 | hpp | C++ | sources/Component/Sound/SoundComponent.hpp | EternalRat/Bomberman | d4d0c6dea61f7de1e71c6f182a6bf27407092356 | [
"MIT"
] | 6 | 2021-05-27T13:31:37.000Z | 2021-11-21T17:35:08.000Z | sources/Component/Sound/SoundComponent.hpp | EternalRat/Bomberman | d4d0c6dea61f7de1e71c6f182a6bf27407092356 | [
"MIT"
] | 174 | 2021-05-12T14:10:04.000Z | 2021-06-26T11:29:39.000Z | sources/Component/Sound/SoundComponent.hpp | EternalRat/Bomberman | d4d0c6dea61f7de1e71c6f182a6bf27407092356 | [
"MIT"
] | 2 | 2021-05-27T13:28:46.000Z | 2021-06-21T12:25:27.000Z | //
// Created by Tom Augier on 05/06/2021
//
#pragma once
#include "Component/Component.hpp"
#include <map>
#include "Audio/Sound.hpp"
namespace BBM
{
//! @brief A basic Sound component
class SoundComponent : public WAL::Component
{
public:
//! @brief All sounds of the player
enum SoundIndex {
IDLE,
J... | 22.761364 | 70 | 0.66001 | EternalRat |
ec4b5e1944af372a7a57379a4c620b9763c95cb5 | 1,392 | cc | C++ | tests/events/eventdispatcher_test.cc | studease/libstud | f5a1099a3ac3a008816aa99fbae0daacd295f646 | [
"BSD-3-Clause"
] | null | null | null | tests/events/eventdispatcher_test.cc | studease/libstud | f5a1099a3ac3a008816aa99fbae0daacd295f646 | [
"BSD-3-Clause"
] | null | null | null | tests/events/eventdispatcher_test.cc | studease/libstud | f5a1099a3ac3a008816aa99fbae0daacd295f646 | [
"BSD-3-Clause"
] | null | null | null | #include "dummyeventdispatcher.h"
#include "../../src/events/event.h"
#include <gtest/gtest.h>
static int n = 0;
std::shared_ptr<EventListener> listener1;
std::shared_ptr<EventListener> listener2;
std::shared_ptr<EventListener> listener3;
void onEvent(std::shared_ptr<IEvent> e)
{
n++;
}
void onComplete(std::sha... | 27.294118 | 60 | 0.718391 | studease |
ec56110f00988996ca0c2c5471638d0d34aab0c5 | 543 | cpp | C++ | Semester Exams/Exam_05/Task_02/main.cpp | sdvelev/Data-Structures-and-Algorithms | 286c29dc550bae1936869cf2c3a2c57c1242c60b | [
"MIT"
] | null | null | null | Semester Exams/Exam_05/Task_02/main.cpp | sdvelev/Data-Structures-and-Algorithms | 286c29dc550bae1936869cf2c3a2c57c1242c60b | [
"MIT"
] | null | null | null | Semester Exams/Exam_05/Task_02/main.cpp | sdvelev/Data-Structures-and-Algorithms | 286c29dc550bae1936869cf2c3a2c57c1242c60b | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include<bits/stdc++.h>
#include <algorithm>
using namespace std;
unordered_map<int, int> collection;
int main() {
int numberOfElements;
cin >> numberOfElements;
int num;
for(int i = 0; i < numberOfElements; i++){
ci... | 17.516129 | 46 | 0.546961 | sdvelev |
ec569e82fa22b29392a4311f96e2bab64947e0a3 | 704 | hpp | C++ | library/ATF/_BUDDY_DB_BASEInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_BUDDY_DB_BASEInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_BUDDY_DB_BASEInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_BUDDY_DB_BASE.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _BUDDY_DB_BASEInit2_ptr = void (WINAPIV*)(struct _BUDDY_DB_BASE*);
usin... | 39.111111 | 136 | 0.757102 | lemkova |
ec5e1494178023bf2ebf381de4e460e22a485cf2 | 295,320 | cc | C++ | src/babel-serializer/detail/std_image.cc | juliusnehring/babel-serializer | d0f57941fd8a7f8790e3e4a45fbbcc87324bee61 | [
"MIT"
] | null | null | null | src/babel-serializer/detail/std_image.cc | juliusnehring/babel-serializer | d0f57941fd8a7f8790e3e4a45fbbcc87324bee61 | [
"MIT"
] | 3 | 2020-11-17T15:04:37.000Z | 2022-03-31T13:35:56.000Z | src/babel-serializer/detail/std_image.cc | juliusnehring/babel-serializer | d0f57941fd8a7f8790e3e4a45fbbcc87324bee61 | [
"MIT"
] | 1 | 2020-09-28T19:08:52.000Z | 2020-09-28T19:08:52.000Z | #include "stb_image.hh"
#if defined(BABEL_STBI_ONLY_JPEG) || defined(BABEL_STBI_ONLY_PNG) || defined(BABEL_STBI_ONLY_BMP) || defined(BABEL_STBI_ONLY_TGA) \
|| defined(BABEL_STBI_ONLY_GIF) || defined(BABEL_STBI_ONLY_PSD) || defined(BABEL_STBI_ONLY_HDR) || defined(BABEL_STBI_ONLY_PIC) \
|| defined(BABEL_STBI_O... | 34.629456 | 170 | 0.539842 | juliusnehring |
ec60684e6a3569059891274de8b495d48d43cd5c | 154,276 | cpp | C++ | CLRProfiler/profilerOBJ/ProfilerCallback.cpp | MicrosoftCodePlex/clrprofiler | fbf68266a36278f61554d94e9312afe00ad4f6ad | [
"MIT"
] | 63 | 2017-05-03T10:58:33.000Z | 2019-05-10T13:04:38.000Z | CLRProfiler/profilerOBJ/ProfilerCallback.cpp | lucaspimentel/clrprofiler | 52b0a1a264e3cfffd572d337385ec3cd5dbd768c | [
"MIT"
] | 3 | 2017-07-10T09:21:58.000Z | 2019-02-11T03:33:27.000Z | CLRProfiler/profilerOBJ/ProfilerCallback.cpp | lucaspimentel/clrprofiler | 52b0a1a264e3cfffd572d337385ec3cd5dbd768c | [
"MIT"
] | 27 | 2017-05-02T23:28:59.000Z | 2019-04-02T10:32:00.000Z | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/****************************************************************************************
* File:
* ProfilerCallBack.cpp
*
* Description:
* Implements ICorProfilerCallback. Logs every event of interest to a file on disc.
... | 26.39001 | 150 | 0.43629 | MicrosoftCodePlex |
ec6647917e16586f501f627c4b68fa397cc37fb2 | 4,001 | cpp | C++ | Source/ComponentTransform.cpp | AlbertVVila/Engine | adbd5e7b7afc28f230006d1b61f00aa85fa559c4 | [
"MIT"
] | 4 | 2019-02-08T23:08:36.000Z | 2019-11-09T21:25:15.000Z | Source/ComponentTransform.cpp | AlbertVVila/Engine | adbd5e7b7afc28f230006d1b61f00aa85fa559c4 | [
"MIT"
] | 2 | 2019-02-05T13:49:47.000Z | 2019-05-27T16:25:46.000Z | Source/ComponentTransform.cpp | AlbertVVila/Engine | adbd5e7b7afc28f230006d1b61f00aa85fa559c4 | [
"MIT"
] | 2 | 2019-01-16T21:21:20.000Z | 2019-01-27T22:54:33.000Z | #include "ComponentTransform.h"
#include "GameObject.h"
#include "imgui.h"
#include "imgui_internal.h"
#include "Math/MathFunc.h"
#include "JSON.h"
ComponentTransform::ComponentTransform(GameObject* gameobject, const float4x4 &transform) : Component(gameobject, ComponentType::Transform)
{
AddTransform(transform);
... | 25.163522 | 139 | 0.740315 | AlbertVVila |
ec6737a8ac3d0587808f92926fa0615a5fcdeab6 | 747 | cpp | C++ | Project Code Framework/Actions/CircuitValid.cpp | EslamAsHhraf/Logic-Circuit-Simulator | 4640a50ce8676793a8cc6bbeae9f5f866d886bb0 | [
"MIT"
] | null | null | null | Project Code Framework/Actions/CircuitValid.cpp | EslamAsHhraf/Logic-Circuit-Simulator | 4640a50ce8676793a8cc6bbeae9f5f866d886bb0 | [
"MIT"
] | null | null | null | Project Code Framework/Actions/CircuitValid.cpp | EslamAsHhraf/Logic-Circuit-Simulator | 4640a50ce8676793a8cc6bbeae9f5f866d886bb0 | [
"MIT"
] | null | null | null | #include "CircuitValid.h"
CircuitValid::CircuitValid(ApplicationManager* pApp):Action(pApp)
{
}
CircuitValid::~CircuitValid(void)
{
}
void CircuitValid::ReadActionParameters()
{
//Get a Pointer to the Input / Output Interfaces
Output* pOut = pManager->GetOutput();
Input* pIn = pManager->GetInput();
//Print Acti... | 18.675 | 77 | 0.725569 | EslamAsHhraf |
ec687bd146c692e216515e60aa4600b68ef88b16 | 746 | hpp | C++ | src/widgets/SequenceEditor.hpp | stoneface86/trackerboy | 68cbb4c56ec4bbccfd1fe172a57451bdaba91561 | [
"MIT"
] | 60 | 2019-11-30T00:30:33.000Z | 2022-03-26T03:44:53.000Z | src/widgets/SequenceEditor.hpp | stoneface86/trackerboy | 68cbb4c56ec4bbccfd1fe172a57451bdaba91561 | [
"MIT"
] | 8 | 2019-12-16T07:55:54.000Z | 2022-03-09T21:01:02.000Z | src/widgets/SequenceEditor.hpp | stoneface86/trackerboy | 68cbb4c56ec4bbccfd1fe172a57451bdaba91561 | [
"MIT"
] | 3 | 2021-08-06T07:17:15.000Z | 2022-03-08T03:39:06.000Z |
#pragma once
#include "core/Module.hpp"
#include "core/model/graph/SequenceModel.hpp"
#include "widgets/GraphEdit.hpp"
#include "trackerboy/data/Instrument.hpp"
#include <QLineEdit>
#include <QWidget>
class SequenceEditor : public QWidget {
Q_OBJECT
public:
SequenceEditor(
Module &mod,
s... | 15.87234 | 59 | 0.697051 | stoneface86 |
ec6bbbb16a1758cf81bba28d195d6ee67d267978 | 8,966 | cpp | C++ | systems/walls.cpp | piotrplaza/MouseSpaceShooter | 9aed0c16889b6ce70e725c165bf28307201e81d1 | [
"MIT"
] | null | null | null | systems/walls.cpp | piotrplaza/MouseSpaceShooter | 9aed0c16889b6ce70e725c165bf28307201e81d1 | [
"MIT"
] | null | null | null | systems/walls.cpp | piotrplaza/MouseSpaceShooter | 9aed0c16889b6ce70e725c165bf28307201e81d1 | [
"MIT"
] | 1 | 2020-06-16T10:32:06.000Z | 2020-06-16T10:32:06.000Z | #include "walls.hpp"
#include <GL/glew.h>
#include <Box2D/Box2D.h>
#include <ogl/oglProxy.hpp>
#include <ogl/buffersHelpers.hpp>
#include <ogl/renderingHelpers.hpp>
#include <ogl/shaders/basic.hpp>
#include <ogl/shaders/sceneCoordTextured.hpp>
#include <ogl/shaders/textured.hpp>
#include <globals.hpp>
#include <c... | 37.20332 | 120 | 0.781396 | piotrplaza |
ec74bcd7939e076d4fa5dc6f5bc7cb54424fede1 | 3,486 | cpp | C++ | third_party/libigl/include/igl/jet.cpp | chefmramos85/monster-mash | 239a41f6f178ca83c4be638331e32f23606b0381 | [
"Apache-2.0"
] | 1,125 | 2021-02-01T09:51:56.000Z | 2022-03-31T01:50:40.000Z | third_party/libigl/include/igl/jet.cpp | ryan-cranfill/monster-mash | c1b906d996885f8a4011bdf7558e62e968e1e914 | [
"Apache-2.0"
] | 19 | 2021-02-01T12:36:30.000Z | 2022-03-19T14:02:50.000Z | third_party/libigl/include/igl/jet.cpp | ryan-cranfill/monster-mash | c1b906d996885f8a4011bdf7558e62e968e1e914 | [
"Apache-2.0"
] | 148 | 2021-02-13T10:54:31.000Z | 2022-03-28T11:55:20.000Z | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://... | 59.084746 | 261 | 0.65175 | chefmramos85 |
ec75b9793ebd6acf5dcbb4bcd43cd69170412921 | 1,119 | cpp | C++ | 3D Graphics - Final/3D Graphics - Final/Button.cpp | ferp132/OpenGL | 2d5387915f3bf80b44b7c078dd9d6bdbb1c69f6f | [
"MIT"
] | null | null | null | 3D Graphics - Final/3D Graphics - Final/Button.cpp | ferp132/OpenGL | 2d5387915f3bf80b44b7c078dd9d6bdbb1c69f6f | [
"MIT"
] | null | null | null | 3D Graphics - Final/3D Graphics - Final/Button.cpp | ferp132/OpenGL | 2d5387915f3bf80b44b7c078dd9d6bdbb1c69f6f | [
"MIT"
] | null | null | null | #include "Button.h"
#include "InputManager.h"
#include "GameManager.h"
Button::Button(glm::vec2 initPosition, glm::vec2 initScale, std::string initText, std::string initFont, glm::vec3 initTextColour)
{
textlab.Init(initText, initFont, initPosition, initTextColour, initScale.x);
Position = initPosition;
Scale = ini... | 18.966102 | 129 | 0.69437 | ferp132 |
3f4714cf31b5ff024928044229770d51fa413166 | 997 | hpp | C++ | include/vpp/util/file.hpp | nyorain/vpp | ccffafa0b59baa633df779274d7743f169d61c06 | [
"BSL-1.0"
] | 308 | 2016-02-23T11:59:20.000Z | 2022-03-14T18:40:24.000Z | include/vpp/util/file.hpp | nyorain/vpp | ccffafa0b59baa633df779274d7743f169d61c06 | [
"BSL-1.0"
] | 11 | 2017-01-21T17:33:13.000Z | 2020-08-17T10:33:42.000Z | include/vpp/util/file.hpp | nyorain/vpp | ccffafa0b59baa633df779274d7743f169d61c06 | [
"BSL-1.0"
] | 11 | 2016-02-23T10:35:08.000Z | 2021-12-18T16:15:39.000Z | // Copyright (c) 2016-2020 Jan Kelling
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#pragma once
#include <vpp/config.hpp> // VPP_API
#include <vpp/util/span.hpp> // nytl::Span
#include <vector> // std::vector
#include <... | 36.925926 | 84 | 0.735206 | nyorain |
3f50124c1638fb45cb62f3b654a297cc80d71ab2 | 11,022 | cpp | C++ | OOP/FMI Book/FMI Book/System.cpp | mitaka00/Sofia-University | 46e7153e9302428bbe14beec5a353f7a378ba912 | [
"MIT"
] | 3 | 2020-02-22T17:22:08.000Z | 2020-07-08T12:05:48.000Z | OOP/FMI Book/FMI Book/System.cpp | mitaka00/Sofia-University | 46e7153e9302428bbe14beec5a353f7a378ba912 | [
"MIT"
] | null | null | null | OOP/FMI Book/FMI Book/System.cpp | mitaka00/Sofia-University | 46e7153e9302428bbe14beec5a353f7a378ba912 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include "System.h"
using std::string;
using std::vector;
using std::cout;
using std::cin;
System::System()
{
users.push_back(new Admin("Admin"));
cout << "Admin created\n";
}
System& System::i()
{
static System instance;
ret... | 24.065502 | 133 | 0.593631 | mitaka00 |
3f52422f6d07c6bee2618fb0790cea983fc95943 | 674,212 | cpp | C++ | AR_Motive/Test_APK_acceleratore_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/Unity.Timeline1.cpp | simofilipp/ARMotive_PJ | 334d7a3decfcdd2c39c3ea5b1073aee7c39a027f | [
"Unlicense"
] | null | null | null | AR_Motive/Test_APK_acceleratore_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/Unity.Timeline1.cpp | simofilipp/ARMotive_PJ | 334d7a3decfcdd2c39c3ea5b1073aee7c39a027f | [
"Unlicense"
] | null | null | null | AR_Motive/Test_APK_acceleratore_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/Unity.Timeline1.cpp | simofilipp/ARMotive_PJ | 334d7a3decfcdd2c39c3ea5b1073aee7c39a027f | [
"Unlicense"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
template <typename T1, typename T2>
struct VirtualActionInvoker2
{
typedef void (*Action)(void*, T1, T2, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, ... | 53.390244 | 555 | 0.849912 | simofilipp |
3f578b0f3cbafac005fc40aaa7e647fd273a4bc9 | 573 | cpp | C++ | DP/118. Pascal's Triangle.cpp | YuPeize/LeetCode- | b01d00f28e1eedcb04aee9eca984685bd9d52791 | [
"MIT"
] | 2 | 2019-10-28T06:40:09.000Z | 2022-03-09T10:50:06.000Z | DP/118. Pascal's Triangle.cpp | sumiya-NJU/LeetCode | 8e6065e160da3db423a51aaf3ae53b2023068d05 | [
"MIT"
] | null | null | null | DP/118. Pascal's Triangle.cpp | sumiya-NJU/LeetCode | 8e6065e160da3db423a51aaf3ae53b2023068d05 | [
"MIT"
] | 1 | 2018-12-09T13:46:06.000Z | 2018-12-09T13:46:06.000Z | /*
author: ypz
*/
class Solution {
public:
vector<vector<int>> generate(int numRows) {
vector<vector<int>> ans;
if(numRows == 0) return ans;
for(int i = 0; i < numRows; i++) {
vector<int> temp(i + 1, 0);
temp[0] = 1;
temp[i] = 1;
if(i > 1) {
... | 22.92 | 58 | 0.371728 | YuPeize |
3f591781b8f4951a73695781588674f9248e1442 | 9,965 | hpp | C++ | libfeel/include/feel/Feel.hpp | KevinBalz/feel | ab46e103012e72be74bb3091711323653d203fbd | [
"MIT"
] | null | null | null | libfeel/include/feel/Feel.hpp | KevinBalz/feel | ab46e103012e72be74bb3091711323653d203fbd | [
"MIT"
] | null | null | null | libfeel/include/feel/Feel.hpp | KevinBalz/feel | ab46e103012e72be74bb3091711323653d203fbd | [
"MIT"
] | null | null | null | #pragma once
#include "feel/Device.hpp"
#include "feel/Finger.hpp"
#include "feel/IncomingMessage.hpp"
#include "feel/FeelStatus.hpp"
#include "feel/CalibrationData.hpp"
#include <iomanip>
#include <map>
#include <array>
#include <cassert>
#include <functional>
#include <algorithm>
#include <cmath>
#include <string>
#i... | 34.842657 | 134 | 0.532865 | KevinBalz |
3f5a0c1f41bcb45769c9db25be8cb7818cdd6716 | 2,592 | hpp | C++ | csrc/debug_data.hpp | esromneb/BehaviorTreeFlatBuffer | 350125665b5915f062b4edd1ddfcb1f665ddd237 | [
"MIT"
] | 1 | 2021-04-16T10:59:59.000Z | 2021-04-16T10:59:59.000Z | csrc/debug_data.hpp | esromneb/BehaviorTreeFlatBuffer | 350125665b5915f062b4edd1ddfcb1f665ddd237 | [
"MIT"
] | null | null | null | csrc/debug_data.hpp | esromneb/BehaviorTreeFlatBuffer | 350125665b5915f062b4edd1ddfcb1f665ddd237 | [
"MIT"
] | null | null | null | // This is a .hpp file that defines a few static vars used for testing
// This is not a normal .hpp file that can be included anywhere
#ifdef INCLUDE_TEST_CODE_FUNCTIONS
static const char* xml_text = R"(
<root main_tree_to_execute = "MainTree">
<!--------------------------------------->
<BehaviorTree ID="Door... | 30.494118 | 70 | 0.479552 | esromneb |
3f5b208cd1559cff67592ff29d288788a05525ed | 21,119 | cpp | C++ | NoDict/NoDictView.cpp | stefanalexandrov/NoDict | 471ad9e09361965b74bc6d99ad9a21dc782ddce2 | [
"BSD-3-Clause"
] | 1 | 2020-02-05T09:02:11.000Z | 2020-02-05T09:02:11.000Z | NoDict/NoDictView.cpp | stefanalexandrov/NoDict | 471ad9e09361965b74bc6d99ad9a21dc782ddce2 | [
"BSD-3-Clause"
] | null | null | null | NoDict/NoDictView.cpp | stefanalexandrov/NoDict | 471ad9e09361965b74bc6d99ad9a21dc782ddce2 | [
"BSD-3-Clause"
] | null | null | null |
// NoDictView.cpp : implementation of the CNoDictView class
//
#include "stdafx.h"
// SHARED_HANDLERS can be defined in an ATL project implementing preview, thumbnail
// and search filter handlers and allows sharing of document code with that project.
#ifndef SHARED_HANDLERS
#include "NoDict.h"
#endif
#include "NoDi... | 31.194978 | 94 | 0.71992 | stefanalexandrov |
3f5bb5533c29304f21894c498b422067785b48b0 | 10,204 | cpp | C++ | ue4/Source/NaNRPG/World/Generation/NaDungeonGenerator.cpp | mekamarimo7777/NaNRPG | 7f039319e0a40bf8df6ad449f5f8539d2be6a2c4 | [
"MIT"
] | null | null | null | ue4/Source/NaNRPG/World/Generation/NaDungeonGenerator.cpp | mekamarimo7777/NaNRPG | 7f039319e0a40bf8df6ad449f5f8539d2be6a2c4 | [
"MIT"
] | null | null | null | ue4/Source/NaNRPG/World/Generation/NaDungeonGenerator.cpp | mekamarimo7777/NaNRPG | 7f039319e0a40bf8df6ad449f5f8539d2be6a2c4 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "NaNRPG.h"
#include "NaDungeonGenerator.h"
#include "NaTrianglation.h"
#include "World/NaChunk.h"
//! 部屋接続ワーク
struct FRoomConnect
{
//! 開始
int32 Src;
//! 終了
int32 Dest;
//! 距離二乗
int32 Dist2;
FRoomConnect(){}
FRoomConne... | 19.39924 | 136 | 0.525676 | mekamarimo7777 |
3f5c0fd53f9df7808e6d61aaf3e861661c96edbc | 395 | cpp | C++ | Examples/To do/Image synthesis/RayTracer2010Cpp/RayTracer2010Cpp/timer.cpp | dotnuttx/Alter-Native | 9282c7d48a4baae1ea6fd9b102bc6f55ba0e6e95 | [
"MIT"
] | 119 | 2015-01-09T14:02:17.000Z | 2022-03-09T14:24:21.000Z | Examples/To do/Image synthesis/RayTracer2010Cpp/RayTracer2010Cpp/timer.cpp | dotnuttx/Alter-Native | 9282c7d48a4baae1ea6fd9b102bc6f55ba0e6e95 | [
"MIT"
] | 12 | 2016-01-15T11:33:32.000Z | 2021-06-08T04:57:07.000Z | Examples/To do/Image synthesis/RayTracer2010Cpp/RayTracer2010Cpp/timer.cpp | dotnuttx/Alter-Native | 9282c7d48a4baae1ea6fd9b102bc6f55ba0e6e95 | [
"MIT"
] | 43 | 2015-01-14T10:59:51.000Z | 2022-01-10T23:46:06.000Z | #include "timer.h"
#ifdef WIN32
#include <windows.h>
double get_time()
{
LARGE_INTEGER t, f;
QueryPerformanceCounter(&t);
QueryPerformanceFrequency(&f);
return double(t.QuadPart)/double(f.QuadPart);
}
#else
#include <sys/time.h>
#include <sys/resource.h>
double get_time()
{
struct timeval t;
struct timezone ... | 14.107143 | 46 | 0.711392 | dotnuttx |
3f6656894a104bdbe1ee2a86f6538737a7af7aeb | 5,210 | cpp | C++ | City/graph.cpp | khy69/my_datastructure | 80350e6c04828749a9e8c8939adef4d390c3fb9c | [
"MIT"
] | 1 | 2020-09-29T23:21:08.000Z | 2020-09-29T23:21:08.000Z | City/graph.cpp | khy69/my_datastructure | 80350e6c04828749a9e8c8939adef4d390c3fb9c | [
"MIT"
] | null | null | null | City/graph.cpp | khy69/my_datastructure | 80350e6c04828749a9e8c8939adef4d390c3fb9c | [
"MIT"
] | null | null | null | #include "graph.h"
#include <fstream>
#include <iostream>
#include <QCoreApplication>
#include <QString>
#include <string>
Graph::Graph(int sz)
{
maxVertices=sz;
numVertices=0;
numEdges=0;
int i=0;
int j=0;
VerticesList=new int[maxVertices];
// directly to matrix
Edge=(int **)new int *[ma... | 19.440299 | 70 | 0.434549 | khy69 |
3f6a30f98f5a1bb0a8d0abea65b759384b90a866 | 199 | cpp | C++ | POO 2 - Survival Game/MovementUp.cpp | xaddee/Survival-Game | 633beb24f93e313a0764521625c1d45d64875ba9 | [
"MIT"
] | 1 | 2018-12-13T19:31:29.000Z | 2018-12-13T19:31:29.000Z | POO 2 - Survival Game/MovementUp.cpp | xaddee/Survival-Game | 633beb24f93e313a0764521625c1d45d64875ba9 | [
"MIT"
] | null | null | null | POO 2 - Survival Game/MovementUp.cpp | xaddee/Survival-Game | 633beb24f93e313a0764521625c1d45d64875ba9 | [
"MIT"
] | null | null | null | #include "MovementUp.h"
MovementUp::MovementUp()
{
}
MovementUp::~MovementUp()
{
}
void MovementUp::powerUp(Agent* pick_uper)
{
pick_uper->increaseMovement(1);
pick_uper->increaseVision(1);
} | 11.055556 | 42 | 0.718593 | xaddee |
3f6e0b0d1150efa0a64b797cd2e799d6baaf2d09 | 1,193 | cpp | C++ | leetcode/dfs/delete_node_bst.cpp | codingpotato/algorithm-cpp | 793dc9e141000f48ea19c77ef0047923a7667358 | [
"MIT"
] | null | null | null | leetcode/dfs/delete_node_bst.cpp | codingpotato/algorithm-cpp | 793dc9e141000f48ea19c77ef0047923a7667358 | [
"MIT"
] | null | null | null | leetcode/dfs/delete_node_bst.cpp | codingpotato/algorithm-cpp | 793dc9e141000f48ea19c77ef0047923a7667358 | [
"MIT"
] | null | null | null | #include <doctest/doctest.h>
#include "tree.h"
// 450. Delete Node in a BST
class Solution {
public:
TreeNode* deleteNode(TreeNode* root, int key) {
if (!root) return nullptr;
if (root->val > key) {
root->left = deleteNode(root->left, key);
} else if (root->val < key) {
root->right = delete... | 23.86 | 56 | 0.57083 | codingpotato |
3f702cd15cb8fdea37d48c068a4dc19db9986ba0 | 1,407 | hh | C++ | construct/BBoxCalculator.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | construct/BBoxCalculator.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | construct/BBoxCalculator.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | //---------------------------------*-C++-*-----------------------------------//
/*!
* \file construct/BBoxCalculator.hh
* \brief BBoxCalculator class declaration
* \note Copyright (c) 2021 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
//-----------------------------------------------------------------------... | 27.588235 | 79 | 0.501066 | celeritas-project |
3f7b35cefbe1f511def5526029fe6ee9a9f5f9c4 | 2,600 | cpp | C++ | aws-cpp-sdk-gamelift/source/model/LocationAttributes.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-gamelift/source/model/LocationAttributes.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-gamelift/source/model/LocationAttributes.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/gamelift/model/LocationAttributes.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
n... | 26.262626 | 139 | 0.768462 | perfectrecall |
3f7bdf36bf60a9fa3364d9c1ccfabd75426e49de | 5,659 | cpp | C++ | src/connect/DbParameters.cpp | Ascent-Group/visual-db | 4cd074fb64fac2def74bb5005fc0d46caa0e96f7 | [
"BSD-3-Clause"
] | 1 | 2015-06-25T18:12:50.000Z | 2015-06-25T18:12:50.000Z | src/connect/DbParameters.cpp | Ascent-Group/visual-db | 4cd074fb64fac2def74bb5005fc0d46caa0e96f7 | [
"BSD-3-Clause"
] | null | null | null | src/connect/DbParameters.cpp | Ascent-Group/visual-db | 4cd074fb64fac2def74bb5005fc0d46caa0e96f7 | [
"BSD-3-Clause"
] | null | null | null | /*-
* Copyright (c) 2009, Ascent Group.
* 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 o... | 28.014851 | 105 | 0.707369 | Ascent-Group |
3f7d6a692830b759e311956388eba16fb742bb09 | 10,226 | cpp | C++ | seism-master/src/measures/mex_eval_segm.cpp | nikola3794/edge-evaluation-PASCAL-MT-tmp | d3bc7164608a20eb6351c1d41219213927ae6239 | [
"MIT"
] | null | null | null | seism-master/src/measures/mex_eval_segm.cpp | nikola3794/edge-evaluation-PASCAL-MT-tmp | d3bc7164608a20eb6351c1d41219213927ae6239 | [
"MIT"
] | null | null | null | seism-master/src/measures/mex_eval_segm.cpp | nikola3794/edge-evaluation-PASCAL-MT-tmp | d3bc7164608a20eb6351c1d41219213927ae6239 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------------------
// Copyright (C)
// Universitat Politecnica de Catalunya BarcelonaTech (UPC) - Spain
//
// Jordi Pont-Tuset <jordi.pont@upc.edu>
// June 2013
// ------------------------------------------------------------------------
// Code available ... | 33.418301 | 89 | 0.453941 | nikola3794 |
3f945825694984a3255b6995d332b67cb7e172a7 | 457 | cc | C++ | leetcode/cpp/valid_parentheses.cc | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | leetcode/cpp/valid_parentheses.cc | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | leetcode/cpp/valid_parentheses.cc | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
bool isValid(string s) {
stack<char> ss;
for (int i = 0; i < s.length(); i++) {
if (s[i] == '(' || s[i] == '{' || s[i] == '[') {
ss.push(s[i]);
} else {
if (ss.empty()) {
return false;
} else {
if (ss.top() == '(' && s[i] == ')' ||
ss.top() == '{' && s[i] ... | 18.28 | 51 | 0.36105 | haonancool |
3f95326b84f2183ae2157f700aa16e933472b58e | 2,428 | hh | C++ | src/kinetics/LinearExternalSource.i.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/kinetics/LinearExternalSource.i.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/kinetics/LinearExternalSource.i.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/**
* @file LinearExternalSource.i.hh
* @brief LinearExternalSource.i
* @author Jeremy Roberts
* @date Nov 16, 2012
*/
//---------------------------------------------------------------------------//
#ifndef detran_LINEAREXTER... | 28.564706 | 79 | 0.466227 | RLReed |
3f95c63317ca2a78f66887aec0bede9cf539929d | 1,925 | cpp | C++ | libs/Allocation/AllocatorRegistry.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | libs/Allocation/AllocatorRegistry.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | libs/Allocation/AllocatorRegistry.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "AllocatorRegistry.h"
#include "core_allocate/HeapAllocator.h"
#include "core/ptr/default_creator.h"
#include "core/meta/LazyInitSingleton.h"
namespace RF::alloc {
///////////////////////////////////////////////////////////////////////////////
AllocatorRegistry::AllocatorRegistry()
: ... | 28.731343 | 125 | 0.677922 | max-delta |
3f9661a8ef011ad984d3cafa305b33822c0f39ce | 21,487 | cpp | C++ | acmlab2.cpp | KozakNazar/srcacmlab2 | 8db82517075c4b29b0d3b36f6d8578851fe3ee9d | [
"MIT"
] | null | null | null | acmlab2.cpp | KozakNazar/srcacmlab2 | 8db82517075c4b29b0d3b36f6d8578851fe3ee9d | [
"MIT"
] | null | null | null | acmlab2.cpp | KozakNazar/srcacmlab2 | 8db82517075c4b29b0d3b36f6d8578851fe3ee9d | [
"MIT"
] | 2 | 2020-03-16T13:42:53.000Z | 2022-02-20T02:25:28.000Z | #define _CRT_SECURE_NO_WARNINGS // for using fopen in VS
#define WIN32_LEAN_AND_MEAN
// don't forget to use compilation key for Linux: -lm
/****************************************************************************************************
* N.Kozak // Lviv'2018 // ACM // An example of displaying the functions of com... | 24.726122 | 129 | 0.656118 | KozakNazar |
3f97d58cd760c17712cb00a109aef80df7894198 | 3,080 | cpp | C++ | backtracking/hard/140.WordBreakIi.cpp | XiaotaoGuo/Leetcode-Solution-In-Cpp | 8e01e35c742a7afb0c8cdd228a6a5e564375434e | [
"Apache-2.0"
] | null | null | null | backtracking/hard/140.WordBreakIi.cpp | XiaotaoGuo/Leetcode-Solution-In-Cpp | 8e01e35c742a7afb0c8cdd228a6a5e564375434e | [
"Apache-2.0"
] | null | null | null | backtracking/hard/140.WordBreakIi.cpp | XiaotaoGuo/Leetcode-Solution-In-Cpp | 8e01e35c742a7afb0c8cdd228a6a5e564375434e | [
"Apache-2.0"
] | null | null | null | /*
* @lc app=leetcode id=140 lang=cpp
*
* [140] Word Break II
*
* https://leetcode.com/problems/word-break-ii/description/
*
* algorithms
* Hard (33.14%)
* Likes: 2696
* Dislikes: 427
* Total Accepted: 287.6K
* Total Submissions: 847.3K
* Testcase Example: '"catsanddog"\n["cat","cats","and","sand","... | 24.444444 | 78 | 0.537013 | XiaotaoGuo |
3f9968ebd8e334eb1e83469711302aef6f5b2092 | 789 | cpp | C++ | src/Location/NMEA0183/SentenceInfo.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 16 | 2015-03-26T02:32:43.000Z | 2021-10-18T16:34:31.000Z | src/Location/NMEA0183/SentenceInfo.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 7 | 2019-02-21T06:07:09.000Z | 2022-01-01T10:00:50.000Z | src/Location/NMEA0183/SentenceInfo.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 6 | 2019-05-07T09:21:15.000Z | 2021-09-01T06:36:24.000Z | //
// RemotePhotoTool - remote camera control software
// Copyright (C) 2006-2018 Michael Fink
//
/// \file NMEA0183/SentenceInfo.cpp NMEA 0183 sentence info
//
#include "stdafx.h"
#include "SentenceInfo.hpp"
using NMEA0183::SentenceInfo;
void SentenceInfo::ParseFields(LPCTSTR fields)
{
unsigned int offset = 0;
... | 25.451613 | 98 | 0.685678 | vividos |
3fa39e83e2a263e2bb8aba3f334baf45e20e6fcf | 215 | cpp | C++ | src/load_and_print.cpp | nilsalex/tensor-algebra | e878cb528dea7e17225f9a27c75e978d5a5aa216 | [
"MIT"
] | null | null | null | src/load_and_print.cpp | nilsalex/tensor-algebra | e878cb528dea7e17225f9a27c75e978d5a5aa216 | [
"MIT"
] | 1 | 2018-01-25T12:17:54.000Z | 2018-01-25T12:17:54.000Z | src/load_and_print.cpp | nilsalex/tensor-algebra | e878cb528dea7e17225f9a27c75e978d5a5aa216 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include "Expression.h"
int main () {
Expression expr;
expr.LoadFromFile("simplified_area_kinetic.prs");
std::cout << expr.GetLatexString() << std::endl;
return 0;
}
| 17.916667 | 51 | 0.693023 | nilsalex |
3fa4b78a65678554f36299d6e0d95e0704b1d51d | 1,470 | hpp | C++ | include/tao/algorithm/sorting/min_max_sort.hpp | tao-cpp/algorithm | 156655aed1c522a3386cb82fb4aa2b3a302ee7e8 | [
"MIT"
] | 2 | 2017-01-13T09:20:58.000Z | 2019-06-28T15:27:13.000Z | include/tao/algorithm/sorting/min_max_sort.hpp | tao-cpp/algorithm | 156655aed1c522a3386cb82fb4aa2b3a302ee7e8 | [
"MIT"
] | null | null | null | include/tao/algorithm/sorting/min_max_sort.hpp | tao-cpp/algorithm | 156655aed1c522a3386cb82fb4aa2b3a302ee7e8 | [
"MIT"
] | 2 | 2017-05-31T12:05:26.000Z | 2019-10-13T22:36:32.000Z | //! \file tao/algorithm/sorting/min_max_sort.hpp
// Tao.Algorithm
//
// Copyright (c) 2016-2021 Fernando Pelliccioni.
//
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// C++ Standard used: C++17
#ifndef TAO_ALGORITHM_SORTING_... | 26.25 | 82 | 0.685034 | tao-cpp |
3fac4382cc893c4e374d7d187af798aa1593bb4d | 258 | hpp | C++ | Cloud.hpp | Dmcdominic/15-466-f20-game6 | a8f9eb3033e3e6a06b8c66f8fff84500defe72f6 | [
"CC-BY-4.0"
] | null | null | null | Cloud.hpp | Dmcdominic/15-466-f20-game6 | a8f9eb3033e3e6a06b8c66f8fff84500defe72f6 | [
"CC-BY-4.0"
] | 56 | 2020-10-29T15:08:34.000Z | 2020-12-05T02:53:04.000Z | Cloud.hpp | Dmcdominic/15-466-f20-game6 | a8f9eb3033e3e6a06b8c66f8fff84500defe72f6 | [
"CC-BY-4.0"
] | null | null | null | #pragma once
#include "Grid.hpp"
#include "Scene.hpp"
#include "ModelLoader.hpp"
struct Cloud : SkyObj {
// Constructor
Cloud(Scene* scene);
// Methods
void load_models(Scene* scene) override;
Cloud* clone_lightweight(Cell* new_cell) override;
}; | 17.2 | 52 | 0.717054 | Dmcdominic |
3fbf77af187fafda07f4328f5b7d8a2d6cbe7dcc | 3,214 | hpp | C++ | include/TaxiAgency.hpp | Karunika/Taxi_Agency_OODB | 6016f386eb70c6b35a0cde293df631d11c3098e7 | [
"MIT"
] | 5 | 2021-05-21T14:23:35.000Z | 2021-11-14T20:09:19.000Z | include/TaxiAgency.hpp | Karunika/Taxi_Agency_OODB | 6016f386eb70c6b35a0cde293df631d11c3098e7 | [
"MIT"
] | null | null | null | include/TaxiAgency.hpp | Karunika/Taxi_Agency_OODB | 6016f386eb70c6b35a0cde293df631d11c3098e7 | [
"MIT"
] | 1 | 2021-06-14T16:19:12.000Z | 2021-06-14T16:19:12.000Z | #pragma once
#include <iostream>
#include <vector>
#include <list>
#include <unordered_map>
#include "../dep/rang.hpp"
#include "./Taxi.hpp"
#include "./Driver.hpp"
#include "./Customer.hpp"
#include "./Shift.hpp"
using namespace std;
class Customer;
template <typename T>
struct IndexInstance{
int index;
... | 32.14 | 113 | 0.68046 | Karunika |
3fc2fc586cf441da2cdac79d3d98296dde52a714 | 731 | cpp | C++ | AIEphys/src/PhsysicsObject.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | AIEphys/src/PhsysicsObject.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | AIEphys/src/PhsysicsObject.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | #include "PhysicsObject.h"
PhysicsObject::PhysicsObject()
{
m_Gravity = 0.0f;
m_TimeStep = 0.0f;
m_ObjectType = SHAPE_UNDEFINED;
}
PhysicsObject::~PhysicsObject()
{
}
void PhysicsObject::Update(float a_delta)
{
}
void PhysicsObject::Debug()
{
}
void PhysicsObject::ResetPosition()
{
}
float PhysicsObject... | 11.421875 | 57 | 0.73461 | squeenie |
3fc356b412b7496e937dcd2f2167e89f2715543d | 7,903 | cpp | C++ | Classes/Scenes/AltScene.cpp | FrSanchez/snake | 4e2260d0784cd90ddf28a9f209b0d00da3cf66d0 | [
"MIT"
] | null | null | null | Classes/Scenes/AltScene.cpp | FrSanchez/snake | 4e2260d0784cd90ddf28a9f209b0d00da3cf66d0 | [
"MIT"
] | null | null | null | Classes/Scenes/AltScene.cpp | FrSanchez/snake | 4e2260d0784cd90ddf28a9f209b0d00da3cf66d0 | [
"MIT"
] | null | null | null | //
// AltScene.cpp
// snake-mobile
//
// Created by Francisco Sanchez on 3/15/21.
//
#include "AltScene.h"
#include "SceneMenu.h"
#include "audio/include/AudioEngine.h"
#include "GameElements/TimerSprite.h"
#include "UI/LostModalBox.h"
#include "UI/PauseButton.h"
USING_NS_CC;
using namespace ui;
using namespace ex... | 29.822642 | 165 | 0.611287 | FrSanchez |
3fcbbc3d86d0d4ab185916d8bdbc7bfb9099cd9a | 3,604 | cpp | C++ | main.cpp | TobiasOnoufriou/Asteroids | e9e80da9d35b4d2b6e065e3a77f3b368d2e17a14 | [
"MIT"
] | null | null | null | main.cpp | TobiasOnoufriou/Asteroids | e9e80da9d35b4d2b6e065e3a77f3b368d2e17a14 | [
"MIT"
] | null | null | null | main.cpp | TobiasOnoufriou/Asteroids | e9e80da9d35b4d2b6e065e3a77f3b368d2e17a14 | [
"MIT"
] | null | null | null | #include <iostream>
#include <Asteroid.hpp>
#include <Starfield.h>
#include <SFML\Graphics.hpp>
#include <Score.h>
#include <Player.hpp>
#include <Bullet.hpp>
#include <vector>
int main() {
const int aSize = 5;
bool isDead = false;
sf::RenderWindow *window = new sf::RenderWindow(sf::VideoMode(WINDOW_W... | 28.377953 | 254 | 0.621254 | TobiasOnoufriou |
3fcc99e803e8cb72ce282c46185517acb7bb6fe8 | 3,604 | hpp | C++ | src/eyelib/window/calib_widget.hpp | lucas137/eyelib | e88eaea6dd2c2e4b365d178f67869a3cd47751a5 | [
"MIT"
] | null | null | null | src/eyelib/window/calib_widget.hpp | lucas137/eyelib | e88eaea6dd2c2e4b365d178f67869a3cd47751a5 | [
"MIT"
] | null | null | null | src/eyelib/window/calib_widget.hpp | lucas137/eyelib | e88eaea6dd2c2e4b365d178f67869a3cd47751a5 | [
"MIT"
] | null | null | null | //===========================================================================//
/* MIT License
Copyright (c) 2019 Nathan Lucas
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 rest... | 34 | 80 | 0.571032 | lucas137 |
3fd0906356bce6f7993315f536a6700e9e71be84 | 423 | cpp | C++ | Codeforces Round #776 (Div. 3)/A.cpp | frederickpek/codeforces | 04d6801583ea5901df6bf63fc6f0c092b9b02136 | [
"MIT"
] | null | null | null | Codeforces Round #776 (Div. 3)/A.cpp | frederickpek/codeforces | 04d6801583ea5901df6bf63fc6f0c092b9b02136 | [
"MIT"
] | null | null | null | Codeforces Round #776 (Div. 3)/A.cpp | frederickpek/codeforces | 04d6801583ea5901df6bf63fc6f0c092b9b02136 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
void solve() {
string s; string c;
cin >> s >> c;
int pos = -1;
while (1) {
pos = s.find(c, pos+1);
if (pos == -1) break;
if (pos%2 == 0) {
cout << "YES" << endl;
return;
}
}
cout << "NO" << endl;
}
int ... | 13.645161 | 45 | 0.503546 | frederickpek |
3fd1294371c981e04aba7cb69a11d26d69ef221d | 680 | cpp | C++ | chemstab-lib/main.cpp | newdoug/chemstab | 0ac32d579fbcec1e2f6dccef41433a79e2e5f41a | [
"Apache-2.0"
] | null | null | null | chemstab-lib/main.cpp | newdoug/chemstab | 0ac32d579fbcec1e2f6dccef41433a79e2e5f41a | [
"Apache-2.0"
] | null | null | null | chemstab-lib/main.cpp | newdoug/chemstab | 0ac32d579fbcec1e2f6dccef41433a79e2e5f41a | [
"Apache-2.0"
] | null | null | null |
#include "chem/Chemical.hpp"
#include "chem/Compound.hpp"
#include <iostream>
using namespace chemicals::elements;
int main()
{
// Chemical<12, 6, 6> chem(names::CARBON_STR);
// Chemical<12, 6, 6> chem2("carbon");
// chem2.name = std::string("changed");
// constexpr Chemical<ans::HYDROGEN, 1, 1, static_cas... | 34 | 132 | 0.648529 | newdoug |
3fd1ed9560f6918ae632834cfcdd5955885ed275 | 2,676 | cpp | C++ | src/ServiceLocator.cpp | bigplayszn/nCine | 43f5fe8e82e9daa21e4d1feea9ca41ed4cce7454 | [
"MIT"
] | 675 | 2019-05-28T19:00:55.000Z | 2022-03-31T16:44:28.000Z | src/ServiceLocator.cpp | bigplayszn/nCine | 43f5fe8e82e9daa21e4d1feea9ca41ed4cce7454 | [
"MIT"
] | 13 | 2020-03-29T06:46:32.000Z | 2022-01-29T03:19:30.000Z | src/ServiceLocator.cpp | bigplayszn/nCine | 43f5fe8e82e9daa21e4d1feea9ca41ed4cce7454 | [
"MIT"
] | 53 | 2019-06-02T03:04:10.000Z | 2022-03-11T06:17:50.000Z | #include "common_macros.h"
namespace ncine {
ServiceLocator &theServiceLocator()
{
static ServiceLocator instance;
return instance;
}
///////////////////////////////////////////////////////////
// CONSTRUCTORS AND DESTRUCTOR
///////////////////////////////////////////////////////////
ServiceLocator::ServiceLocato... | 24.777778 | 94 | 0.723094 | bigplayszn |
3fd2d1eac56c3e12ceb2ba81521c2148ef1cbf74 | 4,360 | hpp | C++ | libraries/app/include/graphene/app/network_broadcast_api.hpp | InsurChain/insur-core | c1743f1ced41b82cd7632016639230dfd1669704 | [
"MIT"
] | 8 | 2018-03-30T02:05:03.000Z | 2021-01-07T10:55:16.000Z | libraries/app/include/graphene/app/network_broadcast_api.hpp | InsurChain/insur-core | c1743f1ced41b82cd7632016639230dfd1669704 | [
"MIT"
] | 1 | 2021-05-10T02:48:10.000Z | 2021-05-10T02:48:10.000Z | libraries/app/include/graphene/app/network_broadcast_api.hpp | InsurChain/insur-core | c1743f1ced41b82cd7632016639230dfd1669704 | [
"MIT"
] | 3 | 2018-03-30T03:45:57.000Z | 2019-05-23T17:05:08.000Z | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the... | 40 | 128 | 0.691514 | InsurChain |
3fd65e52666e13174dbb784a6867d8461ebd7043 | 626 | cpp | C++ | primenumber.cpp | SamuelJ22/LearnCPP | cba764722a4ac3a30489e2205d74f4c410b47038 | [
"Apache-2.0"
] | null | null | null | primenumber.cpp | SamuelJ22/LearnCPP | cba764722a4ac3a30489e2205d74f4c410b47038 | [
"Apache-2.0"
] | null | null | null | primenumber.cpp | SamuelJ22/LearnCPP | cba764722a4ac3a30489e2205d74f4c410b47038 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int i, j, total, arr[100], k;
cout << "Enter size of array " << endl;
cin >> total;
cout << "Enter " << total << " number of array elements" << endl;
for (i = 0; i < total; i++)
{
cin >> arr[i];
}
cout << "The prime numbers f... | 18.969697 | 69 | 0.372204 | SamuelJ22 |
3fd71a398859b365f36c22a6728df17b7ceff66b | 303 | cpp | C++ | platform-io/lib/zeromq/testsuite/src/ZeroMQProtocolTest.cpp | darvik80/rover-cpp | 8da7b7f07efe7096843ae17536603277f55debea | [
"Apache-2.0"
] | 2 | 2020-01-13T07:32:50.000Z | 2020-03-03T14:32:25.000Z | platform-io/lib/zeromq/testsuite/src/ZeroMQProtocolTest.cpp | darvik80/rover-cpp | 8da7b7f07efe7096843ae17536603277f55debea | [
"Apache-2.0"
] | 16 | 2019-06-16T05:51:02.000Z | 2020-02-03T01:59:23.000Z | platform-io/lib/zeromq/testsuite/src/ZeroMQProtocolTest.cpp | darvik80/rover-cpp | 8da7b7f07efe7096843ae17536603277f55debea | [
"Apache-2.0"
] | 1 | 2020-03-03T14:32:27.000Z | 2020-03-03T14:32:27.000Z | //
// Created by Ivan Kishchenko on 2019-06-16.
//
#include "ZeroMQProtocolTest.h"
#include "zeromq/ZeroMQProtocol.h"
BOOST_FIXTURE_TEST_SUITE(ZeroMQProtocolTest, ZeroMQProtocolFixture)
BOOST_AUTO_TEST_CASE(testEncodeGreeting) {
ZeroMQEncoder encoder;
}
BOOST_AUTO_TEST_SUITE_END()
| 18.9375 | 67 | 0.768977 | darvik80 |
3fd7415d963642f71d7781e966e00ab1c2d43fca | 57,217 | cpp | C++ | operators.cpp | ntan15/scratch_wadge | 0657069749b9507062c1f7e875c6545076fb85c8 | [
"Unlicense"
] | null | null | null | operators.cpp | ntan15/scratch_wadge | 0657069749b9507062c1f7e875c6545076fb85c8 | [
"Unlicense"
] | null | null | null | operators.cpp | ntan15/scratch_wadge | 0657069749b9507062c1f7e875c6545076fb85c8 | [
"Unlicense"
] | null | null | null | #include "operators.h"
#include "node_data.h"
#include <cmath>
#include <cstdint>
#include <iostream>
using namespace std;
// ================== test eigen ================
void test_eigen()
{
Eigen::MatrixXd m(2, 2);
m(0, 0) = 3;
m(1, 0) = 2.5;
m(0, 1) = -1;
m(1, 1) = m(1, 0) + m(0, 1);
cout << "in oper... | 24.337303 | 103 | 0.507279 | ntan15 |
3fd85646c9cdb72dc2c168f86ad43170d3dc48ad | 786 | cpp | C++ | LayZ/src/graphics/buffers/indexBuffer.cpp | AliKhudiyev/LayZ-Renderer-Engine | 8e8943295f6f80a05c1ba2b7c7c1b3e51779a272 | [
"MIT"
] | 11 | 2020-06-25T20:52:56.000Z | 2021-04-27T05:37:22.000Z | LayZ/src/graphics/buffers/indexBuffer.cpp | AliKhudiyev/LayZ-Renderer-Engine | 8e8943295f6f80a05c1ba2b7c7c1b3e51779a272 | [
"MIT"
] | 3 | 2020-06-29T14:21:52.000Z | 2020-07-06T17:41:45.000Z | LayZ/src/graphics/buffers/indexBuffer.cpp | AliKhudiyev/LayZ-Renderer-Engine | 8e8943295f6f80a05c1ba2b7c7c1b3e51779a272 | [
"MIT"
] | 2 | 2020-07-09T22:07:14.000Z | 2021-02-05T22:04:57.000Z | #include "graphics/buffers/indexBuffer.h"
namespace lyz { namespace graphics {
IndexBuffer::IndexBuffer(GLvoid * data, GLsizei size)
{
LYZ_CALL(glGenBuffers(1, &m_ID));
LYZ_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_ID));
LYZ_CALL(glBufferData(GL_ELEMENT_ARRAY_BUFFER, size, data, GL_STATIC_DRAW));
}
Ind... | 23.818182 | 78 | 0.749364 | AliKhudiyev |
3fdb892fae520596e6e7777a9389fb1b727b9cca | 2,111 | cpp | C++ | GCJ/2021/1A/prime.cpp | syedakainat3/youtube | 9e6860786b3f7b57add7cb4a0d44c551f88b8248 | [
"MIT"
] | 2,605 | 2019-02-05T16:03:10.000Z | 2022-03-31T15:17:10.000Z | GCJ/2021/1A/prime.cpp | MohaiminulEraj/youtube | 9e6860786b3f7b57add7cb4a0d44c551f88b8248 | [
"MIT"
] | 11 | 2019-10-21T14:40:15.000Z | 2021-11-07T21:57:26.000Z | GCJ/2021/1A/prime.cpp | MohaiminulEraj/youtube | 9e6860786b3f7b57add7cb4a0d44c551f88b8248 | [
"MIT"
] | 586 | 2019-03-24T18:39:57.000Z | 2022-03-26T12:22:17.000Z | #include <bits/stdc++.h>
using namespace std;
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename \
enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; };
sim > rge<c> range(c i, c j) { return rge<c>{i, j}; }
s... | 21.323232 | 95 | 0.482236 | syedakainat3 |
3fe822879d6db99bf315409620a8df4fef15ac72 | 1,295 | hpp | C++ | src/ai/ai_gui.hpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/ai/ai_gui.hpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/ai/ai_gui.hpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 35.972222 | 185 | 0.772201 | trademarks |
3fe8f4f0271c6e05b50905af1e7a5ff926ece494 | 176 | cpp | C++ | test/compiling-test/dont-compile-stopwatch-copy.cpp | Bosswestfalen/stopwatch | 32780e9a599caa17c5d7597bc7da51244c2352c6 | [
"MIT"
] | null | null | null | test/compiling-test/dont-compile-stopwatch-copy.cpp | Bosswestfalen/stopwatch | 32780e9a599caa17c5d7597bc7da51244c2352c6 | [
"MIT"
] | null | null | null | test/compiling-test/dont-compile-stopwatch-copy.cpp | Bosswestfalen/stopwatch | 32780e9a599caa17c5d7597bc7da51244c2352c6 | [
"MIT"
] | null | null | null | #include "bosswestfalen/stopwatch.hpp"
#include <utility>
int main()
{
unsigned i{0};
bosswestfalen::stopwatch a{i};
bosswestfalen::stopwatch b{std::move(a)};
}
| 14.666667 | 45 | 0.670455 | Bosswestfalen |
684ce78501367d2539c1eaeba7cf63311e16afa2 | 56,705 | cpp | C++ | IQ-TREE/pda/pdnetwork.cpp | joshlvmh/iqtree_arm_neon | 7bc67d3449428b0b683fb7359c8945da218f5775 | [
"MIT"
] | 1 | 2020-11-04T23:02:03.000Z | 2020-11-04T23:02:03.000Z | IQ-TREE/pda/pdnetwork.cpp | joshlvmh/iqtree_arm_neon | 7bc67d3449428b0b683fb7359c8945da218f5775 | [
"MIT"
] | 4 | 2020-10-20T07:37:46.000Z | 2022-01-11T14:31:32.000Z | IQ-TREE/pda/pdnetwork.cpp | joshlvmh/iqtree_arm_neon | 7bc67d3449428b0b683fb7359c8945da218f5775 | [
"MIT"
] | 1 | 2020-10-13T08:50:06.000Z | 2020-10-13T08:50:06.000Z | /***************************************************************************
* Copyright (C) 2006 by BUI Quang Minh, Steffen Klaere, Arndt von Haeseler *
* minh.bui@univie.ac.at *
* *
* This program is free software; you can redistrib... | 28.857506 | 142 | 0.62938 | joshlvmh |
6857a951700fe68e7357e0a00cbbf81863220698 | 10,993 | cpp | C++ | src/euler.cpp | xtwang1996/DG_Euler_2D | 1218ef7af9a85db48c84386e0fc396d09286be33 | [
"MIT"
] | null | null | null | src/euler.cpp | xtwang1996/DG_Euler_2D | 1218ef7af9a85db48c84386e0fc396d09286be33 | [
"MIT"
] | null | null | null | src/euler.cpp | xtwang1996/DG_Euler_2D | 1218ef7af9a85db48c84386e0fc396d09286be33 | [
"MIT"
] | null | null | null | #include "../include/euler.h"
namespace ublas = boost::numeric::ublas;
namespace euler{
ublas::matrix<double> CalcAnalyticalFlux(ublas::vector<double> state, double gamma)
{
/*
The function caculating the analytical flux from the state vector
for 2D euler equations
*/
... | 45.238683 | 157 | 0.470845 | xtwang1996 |
685a4924557103b41974e65510e3b0a24f0eda28 | 8,347 | cpp | C++ | CESystem/EntityCreator.cpp | infaldez/CESystem | 7b2f562f0e6f2511fcb4d834a9cc76816bce0ed3 | [
"Unlicense"
] | null | null | null | CESystem/EntityCreator.cpp | infaldez/CESystem | 7b2f562f0e6f2511fcb4d834a9cc76816bce0ed3 | [
"Unlicense"
] | null | null | null | CESystem/EntityCreator.cpp | infaldez/CESystem | 7b2f562f0e6f2511fcb4d834a9cc76816bce0ed3 | [
"Unlicense"
] | null | null | null | #include "EntityCreator.h"
#include "componentMouseInput.h"
#include "componentDamage.h"
#include "ComponentEvent.h"
#include "Events.h"
#include "ComponentHealth.h"
#include "ComponentAnimation.h"
#include "ComponentInventory.h"
#define TILE_SIZE 32
#define TILESET "completeSet.png"
namespace entitycreator
{
sf::V... | 45.36413 | 176 | 0.751767 | infaldez |
685bf7a3d60831867d78914da51ba920e223b930 | 6,699 | cpp | C++ | glutil/Test/font_test.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | 2 | 2020-09-13T20:38:14.000Z | 2020-09-13T20:38:23.000Z | glutil/Test/font_test.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | 1 | 2021-01-10T13:39:51.000Z | 2021-01-12T10:50:56.000Z | glutil/Test/font_test.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | null | null | null |
#include <string>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <glload/gl_3_3.hpp>
#include <glload/gl_load.hpp>
#include <GL/glfw.h>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>... | 25.184211 | 106 | 0.693686 | Morozov-5F |
685f97952a9ee441ff6742bf0f862e89916dd142 | 40 | hpp | C++ | src/pch/all-gtk.hpp | sakhnik/neovim-sdl2 | eb4e8375a5d756fee3fe619cc273b68362f8989e | [
"MIT"
] | 21 | 2021-05-02T00:03:14.000Z | 2022-03-28T23:25:40.000Z | src/pch/all-gtk.hpp | sakhnik/nvim-ui | 3c51f22d875de1f9127294ef8e0f838e766f66ea | [
"MIT"
] | 18 | 2021-04-22T04:03:34.000Z | 2022-02-05T21:17:25.000Z | src/pch/all-gtk.hpp | sakhnik/neovim-sdl2 | eb4e8375a5d756fee3fe619cc273b68362f8989e | [
"MIT"
] | null | null | null | #include "all.hpp"
#include <gtk/gtk.h>
| 13.333333 | 20 | 0.675 | sakhnik |
686051eee18a37e21ae6909a75924212683935b8 | 15,602 | cpp | C++ | Pokitto/POKITTO_HW/HWSound.cpp | pokitto/PokittoCore | 13e9145185863cdb2e7d9fc709d935c4537bd4dd | [
"Unlicense"
] | 3 | 2018-05-05T12:34:50.000Z | 2021-08-24T00:18:02.000Z | Pokitto/POKITTO_HW/HWSound.cpp | pokitto/PokittoCore | 13e9145185863cdb2e7d9fc709d935c4537bd4dd | [
"Unlicense"
] | null | null | null | Pokitto/POKITTO_HW/HWSound.cpp | pokitto/PokittoCore | 13e9145185863cdb2e7d9fc709d935c4537bd4dd | [
"Unlicense"
] | null | null | null | /**************************************************************************/
/*!
@file HWSound.cpp
@author Jonne Valola
@section LICENSE
Software License Agreement (BSD License)
Copyright (c) 2016, Jonne Valola
All rights reserved.
Redistribution and use in source and binary forms,... | 30.354086 | 121 | 0.611973 | pokitto |
6860d78f18d10c9d6f50135c83801984b9432ede | 325,276 | cpp | C++ | src/plugProjectMorimuraU/plantsMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectMorimuraU/plantsMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectMorimuraU/plantsMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
/*
Generated from dpostproc
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_80490F18
lbl_80490F18:
.4byte 0x835E8393
.4byte 0x837C837C
.4byte 0x837D836C
.4byte 0x815B8357
.4byte 0x83830000
.global lbl_80490F2C
lbl_80490F2C:
... | 30.732804 | 80 | 0.705281 | projectPiki |
6861085ffd7ac2898507bf9009d6fc89fb2e553e | 2,494 | cpp | C++ | Kamek/src/SD/sd.cpp | N-I-N-0/NSMBWii-Mod | 56e45eeb3696f7dfa75dca13fdc2a384c8baa5fe | [
"MIT"
] | null | null | null | Kamek/src/SD/sd.cpp | N-I-N-0/NSMBWii-Mod | 56e45eeb3696f7dfa75dca13fdc2a384c8baa5fe | [
"MIT"
] | null | null | null | Kamek/src/SD/sd.cpp | N-I-N-0/NSMBWii-Mod | 56e45eeb3696f7dfa75dca13fdc2a384c8baa5fe | [
"MIT"
] | null | null | null | #include "game.h"
#include "SD/sd.h"
extern int IOS_Open(char*, int);
extern void IOS_Close(int);
extern void IOS_ioctl(int, int, void*, size_t, void*, size_t, int);
extern void IOS_ioctlv(int, int,int,int, void*);
typedef struct _ioctlv
{
void *data;
u32 len;
} ioctlv;
u32 SD_BLOCK_POS = 0;
void SDSeek(u32 new_cloc... | 25.44898 | 120 | 0.647955 | N-I-N-0 |
686126bf4b127e8908c4b3ce9e1049815b6c9372 | 15,275 | cpp | C++ | src/lego_mqtt.cpp | fvanroie/PUp-TrainController | ab1b7c70f8e817d3bc99191b16ee5914c8aab003 | [
"MIT"
] | 2 | 2021-03-01T14:43:48.000Z | 2021-07-18T22:58:55.000Z | src/lego_mqtt.cpp | fvanroie/PUp-TrainController | ab1b7c70f8e817d3bc99191b16ee5914c8aab003 | [
"MIT"
] | null | null | null | src/lego_mqtt.cpp | fvanroie/PUp-TrainController | ab1b7c70f8e817d3bc99191b16ee5914c8aab003 | [
"MIT"
] | null | null | null | #include "lego_conf.h"
#if LEGO_USE_MQTT > 0
#include <Arduino.h>
#include "ArduinoLog.h"
#include "PubSubClient.h"
#include "tinyxml2.h" // tiny xml 2 library
using namespace tinyxml2;
#include "lego_mqtt.h"
#include "lego_ble.h"
#if defined(ARDUINO_ARCH_ESP32)
#include <Wifi.h>
WiFiClient mqttNetworkClient;
#elif... | 33.645374 | 120 | 0.610016 | fvanroie |
686a75d51bc8668db50794cafc558a88973da609 | 6,123 | cpp | C++ | oauth/src/authorize.cpp | zina1995/Twitter-API-C-Library | 87b29c63b89be6feb05adbe05ebed0213aa67f9b | [
"MIT"
] | null | null | null | oauth/src/authorize.cpp | zina1995/Twitter-API-C-Library | 87b29c63b89be6feb05adbe05ebed0213aa67f9b | [
"MIT"
] | null | null | null | oauth/src/authorize.cpp | zina1995/Twitter-API-C-Library | 87b29c63b89be6feb05adbe05ebed0213aa67f9b | [
"MIT"
] | null | null | null | #include <oauth/authorize.hpp>
#include <algorithm>
#include <cctype>
#include <ctime>
#include <iterator>
#include <sstream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include <openssl/hmac.h>
#include <openssl/rand.h>
#include <boost/algorithm/string.hpp>
#include <networklib/d... | 34.988571 | 80 | 0.582394 | zina1995 |
6875fa65957a59817a17e4ae108ddeabf2365a92 | 2,239 | cpp | C++ | SparCraft/source/Common.cpp | kant2002/ualbertabot | b4c75be8bf023f289f2e58e49ad600a9bda38fcd | [
"MIT"
] | 2 | 2017-07-06T18:27:41.000Z | 2018-03-14T06:19:43.000Z | SparCraft/source/Common.cpp | kant2002/ualbertabot | b4c75be8bf023f289f2e58e49ad600a9bda38fcd | [
"MIT"
] | 18 | 2017-10-29T20:37:47.000Z | 2019-08-25T16:01:28.000Z | SparCraft/source/Common.cpp | kant2002/ualbertabot | b4c75be8bf023f289f2e58e49ad600a9bda38fcd | [
"MIT"
] | 1 | 2017-09-13T07:02:23.000Z | 2017-09-13T07:02:23.000Z | #include "Common.h"
namespace SparCraft
{
namespace System
{
bool UnitTypeSupported(const BWAPI::UnitType & type)
{
if (type == BWAPI::UnitTypes::None || type == BWAPI::UnitTypes::Unknown)
{
return false;
}
if (type.getRace() == B... | 29.460526 | 115 | 0.463153 | kant2002 |
687a01565cd2bd624769c2563eb0f9c51f881bb2 | 289 | hpp | C++ | src/server/database.hpp | RomankoMikhail/brainiest-server | 250edf248f440320c372b02b65d861a74a478352 | [
"MIT"
] | null | null | null | src/server/database.hpp | RomankoMikhail/brainiest-server | 250edf248f440320c372b02b65d861a74a478352 | [
"MIT"
] | null | null | null | src/server/database.hpp | RomankoMikhail/brainiest-server | 250edf248f440320c372b02b65d861a74a478352 | [
"MIT"
] | null | null | null | #ifndef DATABASE_HPP
#define DATABASE_HPP
#include <QString>
#include <QtSql>
class Database
{
public:
Database();
~Database();
QSqlError init(const QString &filename = "");
QSqlDatabase database() const;
private:
QSqlDatabase mDatabase;
};
#endif // DATABASE_HPP
| 13.761905 | 49 | 0.692042 | RomankoMikhail |
687c476adbb95c5ddda1683465f760296de21b6a | 1,147 | cpp | C++ | src/Assets/OpenGlTextureLoader.cpp | Lackym/ecs-platformer | 97551d31c626b6c3c540bc3cf98ffeb41604f019 | [
"MIT"
] | 3 | 2021-08-04T15:23:55.000Z | 2021-11-26T00:09:11.000Z | src/Assets/OpenGlTextureLoader.cpp | Lackym/ecs-platformer | 97551d31c626b6c3c540bc3cf98ffeb41604f019 | [
"MIT"
] | null | null | null | src/Assets/OpenGlTextureLoader.cpp | Lackym/ecs-platformer | 97551d31c626b6c3c540bc3cf98ffeb41604f019 | [
"MIT"
] | null | null | null | #include "OpenGlTextureLoader.h"
OpenGlTextureLoader::OpenGlTextureLoader()
{
}
Texture OpenGlTextureLoader::LoadTexture(const std::vector<unsigned char>& data) const
{
int x, y, n;
stbi_set_flip_vertically_on_load(true);
auto bitmap = stbi_load_from_memory(data.data(), data.size(), &x, &y, &n, 0);
... | 29.410256 | 92 | 0.727114 | Lackym |
68886576d1f4197f2b31093e9daefb9a3b3c847d | 1,879 | cpp | C++ | source/LayerNameWindow.cpp | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 2 | 2020-10-05T14:18:09.000Z | 2021-08-05T02:56:43.000Z | source/LayerNameWindow.cpp | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 26 | 2017-01-10T19:54:10.000Z | 2020-12-17T07:28:57.000Z | source/LayerNameWindow.cpp | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 5 | 2017-12-14T18:46:08.000Z | 2020-12-13T18:22:34.000Z | #include "LayerNameWindow.h"
#include "Colors.h"
#include <Button.h>
#include "Settings.h"
LayerNameWindow::LayerNameWindow (const char *_name)
: BWindow (BRect (100, 100, 260, 170), "", B_MODAL_WINDOW, B_NOT_RESIZABLE)
{
wait_sem = create_sem (0, "wait_sem");
BRect bgFrame, cancelFrame, okFrame, textFrame;
bgFrame... | 24.723684 | 127 | 0.664715 | thaflo |
68891305d079648af3471320631d89361365f83d | 946 | cpp | C++ | Source/HoverGame/Components/ActorActivationComponent.cpp | vblanco20-1/HoverGame | aa49f2b9c3472b804592d8d7fe4a298cb1e2c76e | [
"MIT"
] | 13 | 2018-10-10T11:11:28.000Z | 2020-09-29T07:46:57.000Z | Source/HoverGame/Components/ActorActivationComponent.cpp | vblanco20-1/HoverGame | aa49f2b9c3472b804592d8d7fe4a298cb1e2c76e | [
"MIT"
] | 1 | 2018-11-27T21:36:51.000Z | 2018-11-27T21:42:53.000Z | Source/HoverGame/Components/ActorActivationComponent.cpp | vblanco20-1/HoverGame | aa49f2b9c3472b804592d8d7fe4a298cb1e2c76e | [
"MIT"
] | 8 | 2018-10-10T09:33:14.000Z | 2022-01-13T04:52:44.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "ActorActivationComponent.h"
#include "Game/HoverGameStatics.h"
#include "Game/ActivationSystem.h"
// Sets default values for this component's properties
UActorActivationComponent::UActorActivationComponent()
{
// Set ... | 26.277778 | 122 | 0.744186 | vblanco20-1 |
688e7b38adfb78b79b4ed5b5f83988e0c8cad21e | 2,697 | cc | C++ | modules/colors/plugin/PiiColorChannelSplitter.cc | topiolli/into | f0a47736f5c93dd32e89e7aad34152ae1afc5583 | [
"BSD-3-Clause"
] | 14 | 2015-01-19T22:14:18.000Z | 2020-04-13T23:27:20.000Z | modules/colors/plugin/PiiColorChannelSplitter.cc | topiolli/into | f0a47736f5c93dd32e89e7aad34152ae1afc5583 | [
"BSD-3-Clause"
] | null | null | null | modules/colors/plugin/PiiColorChannelSplitter.cc | topiolli/into | f0a47736f5c93dd32e89e7aad34152ae1afc5583 | [
"BSD-3-Clause"
] | 14 | 2015-01-16T05:43:15.000Z | 2019-01-29T07:57:11.000Z | /* This file is part of Into.
* Copyright (C) Intopii 2013.
* All rights reserved.
*
* Licensees holding a commercial Into license may use this file in
* accordance with the commercial license agreement. Please see
* LICENSE.commercial for commercial licensing terms.
*
* Alternatively, this file may be used und... | 26.184466 | 103 | 0.667408 | topiolli |
689318ea7feb5c57e9c714d04a7763e778eac5c4 | 4,742 | cpp | C++ | protobuf_plugins/src/csharp/csharp_generator.cpp | apkbox/closetrpc | 3d5ed8f0b0439eb9ca25aa45763b7a5711d815bc | [
"BSD-3-Clause"
] | null | null | null | protobuf_plugins/src/csharp/csharp_generator.cpp | apkbox/closetrpc | 3d5ed8f0b0439eb9ca25aa45763b7a5711d815bc | [
"BSD-3-Clause"
] | null | null | null | protobuf_plugins/src/csharp/csharp_generator.cpp | apkbox/closetrpc | 3d5ed8f0b0439eb9ca25aa45763b7a5711d815bc | [
"BSD-3-Clause"
] | null | null | null | #include "csharp/csharp_generator.h"
#include <string>
#include <vector>
#include "google/protobuf/empty.pb.h"
#include "google/protobuf/io/printer.h"
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
#include "closetrpc_types.pb.h"
#include "common/generator_utils.h"
namespace {
// TODO(jtattermusch): ca... | 30.203822 | 79 | 0.623155 | apkbox |
68934283102861dd8ac0276ac9a1c7f2ec116308 | 16,416 | cpp | C++ | src/t/math/real.cpp | lolengine/lolengine | d1a0443e69de96611d739d4c374633c5371e6e81 | [
"WTFPL"
] | 4 | 2015-02-14T21:14:25.000Z | 2021-12-12T15:45:44.000Z | src/t/math/real.cpp | lolengine/lolengine | d1a0443e69de96611d739d4c374633c5371e6e81 | [
"WTFPL"
] | 3 | 2015-02-14T20:56:26.000Z | 2015-02-16T08:50:54.000Z | src/t/math/real.cpp | lolengine/lolengine | d1a0443e69de96611d739d4c374633c5371e6e81 | [
"WTFPL"
] | 1 | 2021-10-06T16:01:03.000Z | 2021-10-06T16:01:03.000Z | //
// Lol Engine — Unit tests
//
// Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
//
// Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the terms of the Do What the Fuck You Want
// to Public License,... | 33.230769 | 79 | 0.56518 | lolengine |
68935e27f4a066a30654a8b803fafc4a3fbb8b03 | 2,240 | cpp | C++ | src/adiar/zdd/complement.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | src/adiar/zdd/complement.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | src/adiar/zdd/complement.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | #include <adiar/zdd.h>
#include <adiar/zdd/zdd_policy.h>
#include <adiar/data.h>
#include <adiar/internal/build.h>
#include <adiar/internal/intercut.h>
namespace adiar
{
class zdd_complement_policy : public zdd_policy
{
public:
static constexpr bool may_skip = false;
static constexpr bool cut_true_sin... | 29.866667 | 98 | 0.670982 | logsem |
6897966a63fcc871f45ede6ed658f9aab466ffe0 | 162 | cpp | C++ | luogu_3954/luogu_3954.cpp | skyfackr/luogu_personal_cppcode | b59af9839745d65091e6c01cddf53e5bb6fb274a | [
"BSD-3-Clause"
] | null | null | null | luogu_3954/luogu_3954.cpp | skyfackr/luogu_personal_cppcode | b59af9839745d65091e6c01cddf53e5bb6fb274a | [
"BSD-3-Clause"
] | null | null | null | luogu_3954/luogu_3954.cpp | skyfackr/luogu_personal_cppcode | b59af9839745d65091e6c01cddf53e5bb6fb274a | [
"BSD-3-Clause"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
double a,b,c,d;
int main()
{
cin>>a>>b>>c;
d=a*0.2+b*0.3+c*0.5;
cout<<d<<endl;
return 0;
//test
} | 14.727273 | 24 | 0.530864 | skyfackr |
689a9a1179fee70a75054917b4f7b79840d24d91 | 345 | cpp | C++ | src/providers/twitch/PubsubActions.cpp | boralv/chatterino2 | 770b9f263b947b7fc1b293bcd29878463e97d534 | [
"MIT"
] | 1,145 | 2019-05-18T22:51:52.000Z | 2022-03-31T22:12:39.000Z | src/providers/twitch/PubsubActions.cpp | boralv/chatterino2 | 770b9f263b947b7fc1b293bcd29878463e97d534 | [
"MIT"
] | 2,034 | 2019-05-18T22:28:54.000Z | 2022-03-31T22:24:21.000Z | src/providers/twitch/PubsubActions.cpp | boralv/chatterino2 | 770b9f263b947b7fc1b293bcd29878463e97d534 | [
"MIT"
] | 397 | 2019-05-18T22:45:51.000Z | 2022-03-31T22:12:39.000Z | #include "providers/twitch/PubsubActions.hpp"
#include "providers/twitch/PubsubHelpers.hpp"
namespace chatterino {
PubSubAction::PubSubAction(const rapidjson::Value &data, const QString &_roomID)
: timestamp(std::chrono::steady_clock::now())
, roomID(_roomID)
{
getCreatedByUser(data, this->source);
}
} ... | 23 | 80 | 0.742029 | boralv |
689d56fa6f189600d30c77d57031477e691ee101 | 5,090 | hpp | C++ | include/serenity/http/policies/url.hpp | lenonk/serenity | 39939ac01a9a0855a04cfc5cdf1f17014c9d1c11 | [
"MIT"
] | 1 | 2020-04-25T03:32:55.000Z | 2020-04-25T03:32:55.000Z | include/serenity/http/policies/url.hpp | lenonk/serenity | 39939ac01a9a0855a04cfc5cdf1f17014c9d1c11 | [
"MIT"
] | 9 | 2015-02-27T08:43:10.000Z | 2020-07-24T13:39:41.000Z | include/serenity/http/policies/url.hpp | lenonk/serenity | 39939ac01a9a0855a04cfc5cdf1f17014c9d1c11 | [
"MIT"
] | 2 | 2016-04-09T02:40:48.000Z | 2020-07-09T18:38:51.000Z | #ifndef SERENITY_HTTP_POLICIES_URL_HPP__
#define SERENITY_HTTP_POLICIES_URL_HPP__
#include <tuple>
#include <type_traits>
#include <string>
#include <iostream>
#include "helpers.hpp"
namespace serenity { namespace http { namespace policies {
namespace url {
template <typename... Types>
struct po... | 33.933333 | 102 | 0.535953 | lenonk |
68a00368c52704c17b8eb3ae48bd822dd6770a7e | 4,213 | cpp | C++ | src/ai/api/ai_station.cpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/ai/api/ai_station.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/ai/api/ai_station.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 34.818182 | 185 | 0.732257 | trademarks |
68a2d055f3837fc35bfbaa8ad4ad4fd43762b16f | 4,377 | cc | C++ | src/entities/logic.cc | ans-hub/wumpus_game | 01d3edbcbba3bb47d5247ff451399fd44c36a3f7 | [
"MIT"
] | 11 | 2017-12-19T15:02:59.000Z | 2021-06-03T14:38:33.000Z | src/entities/logic.cc | ans-hub/wumpus_game | 01d3edbcbba3bb47d5247ff451399fd44c36a3f7 | [
"MIT"
] | 1 | 2021-06-07T02:28:33.000Z | 2021-06-07T02:28:33.000Z | src/entities/logic.cc | ans-hub/wumpus_game | 01d3edbcbba3bb47d5247ff451399fd44c36a3f7 | [
"MIT"
] | 1 | 2020-11-10T20:20:56.000Z | 2020-11-10T20:20:56.000Z | // Package: wumpus_game (v0.9)
// Description: https://github.com/ans-hub/wumpus_game
// Author: Anton Novoselov, 2017
// File: main game logic (aka `model` in MVC-meaning)
#include "logic.h"
namespace wumpus_game {
Logic::Logic()
: level_{}
, player_turn_{true}
, game_over_cause_{Subject::EMPTY}
, curr_leve... | 22.106061 | 76 | 0.662783 | ans-hub |
68a5e09e342c49485656eb524d2a388f28e5c5a8 | 483 | cpp | C++ | codefestival_2015_qualA_c.cpp | hakatashi/procon | 254d0df4365b815c88e71cb3b4adb4c4bd7ea263 | [
"MIT"
] | 2 | 2019-06-28T04:54:47.000Z | 2020-02-25T08:39:19.000Z | codefestival_2015_qualA_c.cpp | hakatashi/procon | 254d0df4365b815c88e71cb3b4adb4c4bd7ea263 | [
"MIT"
] | null | null | null | codefestival_2015_qualA_c.cpp | hakatashi/procon | 254d0df4365b815c88e71cb3b4adb4c4bd7ea263 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
int N, T, A[100000], B[100000], diff[100000], Asum = 0;
cin >> N >> T;
for (int i = 0; i < N; i++) {
cin >> A[i] >> B[i];
diff[i] = A[i] - B[i];
Asum += A[i];
}
sort(diff, diff + N);
for (int i = 0; i <= N; ... | 14.205882 | 56 | 0.459627 | hakatashi |
68ac9d52cdda2e5fbaa572f8e190f1c0860bd789 | 2,021 | cpp | C++ | frameworks/qt/modules/canvas/dmzQtCanvasScene.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | 2 | 2015-11-05T03:03:43.000Z | 2017-05-15T12:55:39.000Z | frameworks/qt/modules/canvas/dmzQtCanvasScene.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | null | null | null | frameworks/qt/modules/canvas/dmzQtCanvasScene.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | null | null | null | #include "dmzQtCanvasScene.h"
//#include <math.h>
#include <QtGui/QtGui>
#include <QtCore/QMimeData>
#include <qdb.h>
dmz::QtCanvasScene::QtCanvasScene (QObject *parent) :
QGraphicsScene (parent),
_drawGrid (true) {
}
dmz::QtCanvasScene::~QtCanvasScene () {
}
void
dmz::QtCanvasScene::enableGrid (co... | 18.88785 | 76 | 0.616032 | dmzgroup |
68ade0f6338b4f5315f8cfafbae10c3df39640c7 | 8,618 | cpp | C++ | tools/rpkg/src/relational.cpp | hannes/duckdb | 4a24d71edecc7c0018eb3860d2e104cfe90462b6 | [
"MIT"
] | null | null | null | tools/rpkg/src/relational.cpp | hannes/duckdb | 4a24d71edecc7c0018eb3860d2e104cfe90462b6 | [
"MIT"
] | null | null | null | tools/rpkg/src/relational.cpp | hannes/duckdb | 4a24d71edecc7c0018eb3860d2e104cfe90462b6 | [
"MIT"
] | null | null | null | #include "cpp11.hpp"
#include "duckdb.hpp"
#include "typesr.hpp"
#include "rapi.hpp"
#include "R_ext/Random.h"
#include "duckdb/parser/expression/columnref_expression.hpp"
#include "duckdb/parser/expression/constant_expression.hpp"
#include "duckdb/parser/expression/function_expression.hpp"
#include "duckdb/parser/ex... | 33.274131 | 117 | 0.729055 | hannes |
68b3302e3a5a783839131d1552cada3b8617566d | 277 | cpp | C++ | network/Win32Socket.cpp | szk/reprize | a827aa0247f7954f9f36ae573f97db1397645bf5 | [
"BSD-2-Clause"
] | null | null | null | network/Win32Socket.cpp | szk/reprize | a827aa0247f7954f9f36ae573f97db1397645bf5 | [
"BSD-2-Clause"
] | null | null | null | network/Win32Socket.cpp | szk/reprize | a827aa0247f7954f9f36ae573f97db1397645bf5 | [
"BSD-2-Clause"
] | 1 | 2019-03-11T20:58:41.000Z | 2019-03-11T20:58:41.000Z | #include "Common.hpp"
#include "Win32Socket.hpp"
using namespace reprize;
using namespace net;
Win32Socket::Win32Socket(void)
: Socket()
{
}
Win32Socket::~Win32Socket(void)
{
}
const bool Win32Socket::open(const char *hostname, const char *port)
{
return false;
}
| 13.190476 | 68 | 0.714801 | szk |
68b94b55d7febf47116e150909fc42ac52de07ba | 2,204 | cpp | C++ | Engine/src/World/WI3DStreamableNode.cpp | razzorflame/advancedgdk | 06445f8c7fd6c045bc252276b97da491dc69f12e | [
"MIT"
] | 3 | 2018-04-21T12:56:03.000Z | 2018-05-15T18:12:23.000Z | Engine/src/World/WI3DStreamableNode.cpp | PoetaKodu/advancedgdk | 06445f8c7fd6c045bc252276b97da491dc69f12e | [
"MIT"
] | null | null | null | Engine/src/World/WI3DStreamableNode.cpp | PoetaKodu/advancedgdk | 06445f8c7fd6c045bc252276b97da491dc69f12e | [
"MIT"
] | 3 | 2018-07-01T20:09:50.000Z | 2019-03-17T03:23:40.000Z | #include SAMPCPP_PCH
// The header of this class:
#include <SAMPCpp/World/WI3DStreamableNode.hpp>
namespace samp_cpp
{
//////////////////////////////////////////////////////////////////////////////////////////
IWI3DStreamableNode::IWI3DStreamableNode()
:
m_worldMode{ VisibilityMode::Everywhere },
m_interiorMode{ ... | 32.895522 | 93 | 0.547187 | razzorflame |
68c1d599f6ea17c9f90a86169aa0bb2a04beb9f6 | 487 | hpp | C++ | modbus_rtu_slave/include/vla/transmission_daemon_queue.hpp | victorlaskurain/unaibot | d3a59eb49b2a582dee824b8ea3f8d46521445cab | [
"MIT"
] | null | null | null | modbus_rtu_slave/include/vla/transmission_daemon_queue.hpp | victorlaskurain/unaibot | d3a59eb49b2a582dee824b8ea3f8d46521445cab | [
"MIT"
] | null | null | null | modbus_rtu_slave/include/vla/transmission_daemon_queue.hpp | victorlaskurain/unaibot | d3a59eb49b2a582dee824b8ea3f8d46521445cab | [
"MIT"
] | null | null | null | #ifndef VLA_MODBUS_RTU_SLAVE_TRANSMISSION_DAEMON_QUEUE
#define VLA_MODBUS_RTU_SLAVE_TRANSMISSION_DAEMON_QUEUE
#include <vla/tagged_union_queue.hpp>
#include <vla/timeout_msg.hpp>
#include <vla/buffer_msg.hpp>
#include <stdint.h>
namespace vla {
using input_msg_t = uint8_t;
using transmission_msg_t ... | 27.055556 | 96 | 0.792608 | victorlaskurain |
68c812c6474c5bb347189af324d45a6efd1441fd | 72,252 | cpp | C++ | TMM-HM01B0/src/HM01B0.cpp | KurtE/TMM-HB01B0-Camera | a01035b95759174773641e7374222d36adc4c487 | [
"MIT"
] | 4 | 2021-04-09T20:22:00.000Z | 2021-04-23T08:58:09.000Z | TMM-HM01B0/src/HM01B0.cpp | KurtE/TMM-HB01B0-Camera | a01035b95759174773641e7374222d36adc4c487 | [
"MIT"
] | 5 | 2021-04-09T22:07:09.000Z | 2021-07-26T12:31:43.000Z | TMM-HM01B0/src/HM01B0.cpp | KurtE/TMM-HB01B0-Camera | a01035b95759174773641e7374222d36adc4c487 | [
"MIT"
] | 6 | 2021-04-08T20:34:16.000Z | 2021-04-21T21:25:17.000Z | /*
* This file is part of the OpenMV project.
*
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
*
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* HM01B0 driver.
*/
/*
* Parts of this... | 34.129428 | 316 | 0.593644 | KurtE |
68c8299ad2a3b83c3d8aa6a5f58b1c134998b552 | 4,172 | cpp | C++ | src/projection/projection.cpp | WeiqunZhang/incflo | d72eb6e3c387704d06ceee686596337e5e9711d3 | [
"BSD-3-Clause"
] | null | null | null | src/projection/projection.cpp | WeiqunZhang/incflo | d72eb6e3c387704d06ceee686596337e5e9711d3 | [
"BSD-3-Clause"
] | null | null | null | src/projection/projection.cpp | WeiqunZhang/incflo | d72eb6e3c387704d06ceee686596337e5e9711d3 | [
"BSD-3-Clause"
] | null | null | null | #include <AMReX_BC_TYPES.H>
#include <AMReX_Box.H>
#include <incflo.H>
#include <mac_F.H>
#include <projection_F.H>
//
// Computes the following decomposition:
//
// u + dt grad(phi) / ro = u*, where div(u) = 0
//
// where u* is a non-div-free velocity field, stored
// by components in u, v, and w. The resulti... | 32.59375 | 106 | 0.540988 | WeiqunZhang |
68ca3146ba2fcee9f609b0d6b8af32b7a5c8bb80 | 770 | cpp | C++ | CalFp11/count_letters.cpp | GuilhermeJSilva/CAL-TP | 5e9dac1c56370a82d16f1633f03ec6302d81652d | [
"MIT"
] | null | null | null | CalFp11/count_letters.cpp | GuilhermeJSilva/CAL-TP | 5e9dac1c56370a82d16f1633f03ec6302d81652d | [
"MIT"
] | null | null | null | CalFp11/count_letters.cpp | GuilhermeJSilva/CAL-TP | 5e9dac1c56370a82d16f1633f03ec6302d81652d | [
"MIT"
] | null | null | null | #include <map>
#include <set>
#include <stdio.h>
using namespace std;
int main(int argc, char const *argv[]) {
std::map<char, int> map;
char value;
while (scanf("%c", &value) == 1) {
if (value != '\n')
map[value]++;
}
int n = 0;
set<pair<int, char>> ordered;
for (auto i = map.begin(); i != map... | 24.83871 | 72 | 0.548052 | GuilhermeJSilva |
68cd7afeeb26a58daf678238ba85a5f201d9c5b2 | 497 | cpp | C++ | 程序设计与方法实践/4. 食堂调查.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 63 | 2021-01-10T02:32:17.000Z | 2022-03-30T04:08:38.000Z | 程序设计与方法实践/4. 食堂调查.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 2 | 2021-06-09T05:38:58.000Z | 2021-12-14T13:53:54.000Z | 程序设计与方法实践/4. 食堂调查.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 20 | 2021-01-12T11:49:36.000Z | 2022-03-26T11:04:58.000Z | #include<stdio.h>
#include<string.h>
#define MAX 1000500
int max = 0, min = MAX;
long long n, i;
long long s, t; //s<t;
long long time[MAX] = { 0 };
int main()
{
long long maxstu = 0;
scanf("%lld", &n);
for (i = 0; i < n; i++)
{
scanf("%lld%lld", &s, &t);
time[s]++;
time[t + 1]--;
if (t > max)
max = t;... | 16.566667 | 29 | 0.496982 | xiabee |
68cd8265ebb9bcbbb2a8997b1c3f338e4fee319f | 744 | hpp | C++ | src/Time_handler.hpp | Andrew-Y-Xia/Bitboard-Chess | 364524530fc08f288c3c7043f61c8914549f2c47 | [
"MIT"
] | null | null | null | src/Time_handler.hpp | Andrew-Y-Xia/Bitboard-Chess | 364524530fc08f288c3c7043f61c8914549f2c47 | [
"MIT"
] | null | null | null | src/Time_handler.hpp | Andrew-Y-Xia/Bitboard-Chess | 364524530fc08f288c3c7043f61c8914549f2c47 | [
"MIT"
] | null | null | null | //
// Created by Andy on 8/18/21.
//
#ifndef BITBOARD_CHESS_TIME_HANDLER_HPP
#define BITBOARD_CHESS_TIME_HANDLER_HPP
#include "depend.hpp"
#include "Thread.hpp"
enum TimerType {
constant_time,
inf,
};
class TimeHandler {
private:
std::chrono::time_point<std::chrono::steady_clock, std::chrono::duration<... | 18.6 | 131 | 0.698925 | Andrew-Y-Xia |
68cee5ef0a8300baa2eb8b0133ce23110d0c9ca9 | 2,040 | hh | C++ | libs/quadwild/libs/CoMISo/NSolver/NewtonSolver.hh | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | 29 | 2019-11-27T00:43:07.000Z | 2020-02-25T14:35:54.000Z | libs/quadwild/libs/CoMISo/NSolver/NewtonSolver.hh | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | 1 | 2018-11-14T23:14:58.000Z | 2018-11-14T23:14:58.000Z | libs/quadwild/libs/CoMISo/NSolver/NewtonSolver.hh | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | 4 | 2019-11-27T05:19:03.000Z | 2020-03-23T22:49:53.000Z | //=============================================================================
//
// CLASS NewtonSolver
//
//=============================================================================
#ifndef COMISO_NEWTONSOLVER_HH
#define COMISO_NEWTONSOLVER_HH
//== COMPILE-TIME PACKAGE REQUIREMENTS ===========================... | 25.185185 | 95 | 0.466667 | Pentacode-IAFA |
68d550717ea904f937ccb919d94adc93d9bd2fd3 | 2,586 | cpp | C++ | apps/core_test/math_compare.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | apps/core_test/math_compare.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | apps/core_test/math_compare.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "core_math/math_compare.h"
namespace RF::math {
///////////////////////////////////////////////////////////////////////////////
TEST( MathCompare, Basic )
{
static_assert( Equals<float>( 0.f, 0.f ), "Zero equality failure" );
static_assert( Equals<float>( 0.f, -0.f ), "Signed zero fai... | 56.217391 | 118 | 0.656613 | max-delta |
68d650440cd4ec56431673084e7821a23d79c35a | 671 | hpp | C++ | ass4/department.hpp | starcraft66/COEN243-Fall-2019-Assignments | 66caa4d6bf0f960218c86288e1c17bdae16b22b1 | [
"BSD-3-Clause"
] | 2 | 2021-07-24T15:01:50.000Z | 2022-01-17T21:49:09.000Z | ass4/department.hpp | starcraft66/COEN243-Fall-2019-Assignments | 66caa4d6bf0f960218c86288e1c17bdae16b22b1 | [
"BSD-3-Clause"
] | null | null | null | ass4/department.hpp | starcraft66/COEN243-Fall-2019-Assignments | 66caa4d6bf0f960218c86288e1c17bdae16b22b1 | [
"BSD-3-Clause"
] | null | null | null | #include <string>
#include <vector>
#include "employee.hpp"
class Department
{
std::string id_number_, name_, history_;
std::vector<Employee> employees_;
public:
Department(std::string id_number, std::string name, std::string history);
std::string GetIdNumber();
std::string GetName();
void SetNa... | 30.5 | 77 | 0.706408 | starcraft66 |
68dd7fd64e05c69161a333600d7355d746bd1ee0 | 4,520 | cpp | C++ | phog/dsl/branched_cond_test.cpp | xaviergeorge/ModelsPHOG | ca8c85d04974a748dece24a5194f45b38ea8bf23 | [
"Apache-2.0"
] | 5 | 2018-07-18T15:57:00.000Z | 2020-11-23T18:52:58.000Z | phog/dsl/branched_cond_test.cpp | xaviergeorge/ModelsPHOG | ca8c85d04974a748dece24a5194f45b38ea8bf23 | [
"Apache-2.0"
] | 6 | 2019-01-18T18:01:09.000Z | 2020-01-23T08:37:31.000Z | phog/dsl/branched_cond_test.cpp | xaviergeorge/ModelsPHOG | ca8c85d04974a748dece24a5194f45b38ea8bf23 | [
"Apache-2.0"
] | 2 | 2019-09-11T12:15:04.000Z | 2020-03-03T09:15:46.000Z | /*
Copyright 2015 Software Reliability Lab, ETH Zurich
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 applicabl... | 33.731343 | 151 | 0.701549 | xaviergeorge |
68df74c5fa8d8ab0564376bfccda2647d415a7cc | 12,234 | cpp | C++ | tools/rcomp.cpp | mschwartz/creative-engine | a4e072d2e1273a8057d48b1b6a53591fea516fe6 | [
"MIT"
] | null | null | null | tools/rcomp.cpp | mschwartz/creative-engine | a4e072d2e1273a8057d48b1b6a53591fea516fe6 | [
"MIT"
] | null | null | null | tools/rcomp.cpp | mschwartz/creative-engine | a4e072d2e1273a8057d48b1b6a53591fea516fe6 | [
"MIT"
] | null | null | null | /** @file
* \brief Resource compiler for game engine.
*
* Reads in PNG files and generates a packed resource file along with a
* Resources.h file. The Resources.h file contains #defines for each resource,
* which are ultimately indexes into an array of BBitmaps in the game engine.
*
* TODO:
* Support song data... | 28.319444 | 85 | 0.572666 | mschwartz |
68e4d52d749774864c2c85bf4c6b01c44553c3d8 | 483 | hpp | C++ | libraries/protocol/include/graphene/protocol/block.hpp | VIZ-World/viz-core | 634825fcfff9e392a26789f8e23c4cfab2952b71 | [
"MIT"
] | 7 | 2018-03-21T12:56:32.000Z | 2018-04-02T16:06:24.000Z | libraries/protocol/include/graphene/protocol/block.hpp | VIZ-World/viz-core | 634825fcfff9e392a26789f8e23c4cfab2952b71 | [
"MIT"
] | 18 | 2018-03-21T13:29:46.000Z | 2018-05-18T10:56:43.000Z | libraries/protocol/include/graphene/protocol/block.hpp | VIZ-World/VIZ.Core | 634825fcfff9e392a26789f8e23c4cfab2952b71 | [
"MIT"
] | 9 | 2018-10-17T19:02:40.000Z | 2019-02-14T10:35:00.000Z | #pragma once
#include <graphene/protocol/block_header.hpp>
#include <graphene/protocol/transaction.hpp>
namespace graphene {
namespace protocol {
struct signed_block : public signed_block_header {
checksum_type calculate_merkle_root() const;
vector <signed_transaction> transactio... | 25.421053 | 115 | 0.716356 | VIZ-World |
68f40048e23e817833645d5d3d48be2e186ea708 | 1,841 | cpp | C++ | Chapter07/serverTCP.cpp | trantrongquy/C-System-Programming-Cookbook | 2df8795d8f88de10e38297606ac2fa9993d6dab4 | [
"MIT"
] | 36 | 2020-03-23T21:10:14.000Z | 2022-01-22T20:22:30.000Z | Chapter07/serverTCP.cpp | trantrongquy/C-System-Programming-Cookbook | 2df8795d8f88de10e38297606ac2fa9993d6dab4 | [
"MIT"
] | 2 | 2020-02-28T13:14:44.000Z | 2021-06-17T07:55:34.000Z | Chapter07/serverTCP.cpp | trantrongquy/C-System-Programming-Cookbook | 2df8795d8f88de10e38297606ac2fa9993d6dab4 | [
"MIT"
] | 22 | 2020-02-21T08:00:06.000Z | 2022-02-09T11:05:13.000Z | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <iostream>
#include <arpa/inet.h>
constexpr unsigned int SERVER_PORT = 50544;
constexpr unsigned int MAX_BUFFER = 128;
constexpr unsigned int MSG_REPLY_LENGTH ... | 28.765625 | 87 | 0.60239 | trantrongquy |
19009efc60e323b2e4ecdac7419cb5c62cf03180 | 291 | cpp | C++ | PolyEngine/Editor/Src/GlobalEventFilter.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 65 | 2017-04-04T20:33:44.000Z | 2019-12-02T23:06:58.000Z | PolyEngine/Editor/Src/GlobalEventFilter.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 46 | 2017-04-21T12:26:38.000Z | 2019-12-15T05:31:47.000Z | PolyEngine/Editor/Src/GlobalEventFilter.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 51 | 2017-04-12T10:53:32.000Z | 2019-11-20T13:05:54.000Z | #include <PolyEditorPCH.hpp>
bool GlobalEventFilter::eventFilter(QObject* watched, QEvent* event)
{
UNUSED(watched);
gApp->DockMgr->ProcessEvent(event);
gApp->CommandMgr->ProcessEvent(event);
return false; // you should return false when you want qt to forward this event to receiver
}
| 29.1 | 92 | 0.769759 | PiotrMoscicki |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.