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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d15b1074ba6c87946d8d14a2100e696fee3a6348 | 294 | cpp | C++ | test/test-Analyzer_LockedCandidates.cpp | jambolo/Sudoku | 786499bfd6a8c948e91a1cfff7d65d38330b9efb | [
"MIT"
] | 1 | 2021-12-24T07:29:41.000Z | 2021-12-24T07:29:41.000Z | test/test-Analyzer_LockedCandidates.cpp | jambolo/Sudoku | 786499bfd6a8c948e91a1cfff7d65d38330b9efb | [
"MIT"
] | 1 | 2021-12-24T07:45:37.000Z | 2021-12-24T08:40:57.000Z | test/test-Analyzer_LockedCandidates.cpp | jambolo/Sudoku | 786499bfd6a8c948e91a1cfff7d65d38330b9efb | [
"MIT"
] | null | null | null | #include "Analyzer/LockedCandidates.h"
#include <gtest/gtest.h>
TEST(LockedCandidates, DISABLED_LockedCandidates)
{
}
TEST(LockedCandidates, DISABLED_exists)
{
}
int main(int argc, char ** argv)
{
::testing::InitGoogleTest(&argc, argv);
int rv = RUN_ALL_TESTS();
return rv;
}
| 14 | 49 | 0.704082 | jambolo |
d16159ddf927a131b32b868753e0ed0698116d6e | 903 | cpp | C++ | 080_RemoveDuplicatesFromSortedArrayII.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | 080_RemoveDuplicatesFromSortedArrayII.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | 080_RemoveDuplicatesFromSortedArrayII.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | /****************************************************************
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array nums = [1,1,1,2,2,3],
Your function should return length = 5, with the first five elements of nums being 1, 1, 2, 2 and 3.
It doesn't matter... | 33.444444 | 101 | 0.409745 | kun2012 |
d16300ef66e4364be4bbf24581079cd33a91b6a7 | 793 | cpp | C++ | source/ArchLab.cpp | xzrunner/cgaview | 559899f0f9bcb1186e41b4108388ee2c69008966 | [
"MIT"
] | null | null | null | source/ArchLab.cpp | xzrunner/cgaview | 559899f0f9bcb1186e41b4108388ee2c69008966 | [
"MIT"
] | null | null | null | source/ArchLab.cpp | xzrunner/cgaview | 559899f0f9bcb1186e41b4108388ee2c69008966 | [
"MIT"
] | null | null | null | #include "archlab/ArchLab.h"
#include "archlab/PinCallback.h"
#include "archlab/Node.h"
#include <blueprint/NodeBuilder.h>
#include <blueprint/node/Commentary.h>
#include <archgraph/ArchGraph.h>
namespace archlab
{
CU_SINGLETON_DEFINITION(ArchLab);
extern void regist_rttr();
ArchLab::ArchLab()
{
archgraph::ArchG... | 16.87234 | 64 | 0.69483 | xzrunner |
d16821bba6dda4b93696f1adcbfaf6ee8ea6b9d4 | 272 | cpp | C++ | engine/src/awesome/editor/window.cpp | vitodtagliente/AwesomeEngine | eff06dbad1c4a168437f69800629a7e20619051c | [
"MIT"
] | 3 | 2019-08-15T18:57:20.000Z | 2020-01-09T22:19:26.000Z | engine/src/awesome/editor/window.cpp | vitodtagliente/AwesomeEngine | eff06dbad1c4a168437f69800629a7e20619051c | [
"MIT"
] | null | null | null | engine/src/awesome/editor/window.cpp | vitodtagliente/AwesomeEngine | eff06dbad1c4a168437f69800629a7e20619051c | [
"MIT"
] | null | null | null | #include "window.h"
namespace editor
{
std::string Window::getTitle() const
{
return getTypeDescriptor().name;
}
void Window::setFocus(bool focus)
{
if (m_hasFocus != focus)
{
m_hasFocus = focus;
onFocusChange(m_hasFocus);
}
}
REFLECT_IMP(Window)
} | 13.6 | 37 | 0.672794 | vitodtagliente |
d16c86a8cf322fb3cd7c0b217cf19749928ea075 | 4,381 | hpp | C++ | src/file_raw.hpp | liquidum-network/chiapos | 899be669838fbe59307e37be52fdb94ecb1f121f | [
"Apache-2.0"
] | 2 | 2021-07-15T02:32:07.000Z | 2021-07-19T19:43:40.000Z | src/file_raw.hpp | liquidum-network/chiapos | 899be669838fbe59307e37be52fdb94ecb1f121f | [
"Apache-2.0"
] | null | null | null | src/file_raw.hpp | liquidum-network/chiapos | 899be669838fbe59307e37be52fdb94ecb1f121f | [
"Apache-2.0"
] | 1 | 2021-07-14T20:29:32.000Z | 2021-07-14T20:29:32.000Z | #ifndef SRC_CPP_FILE_RAW_HPP_
#define SRC_CPP_FILE_RAW_HPP_
#include <fcntl.h>
#include <fmt/core.h>
#include <sys/stat.h>
#include <unistd.h>
#include <filesystem>
#include "logging.hpp"
#include "logging_helpers.hpp"
#include "storage.hpp"
class FileRaw {
public:
static FileRaw Create(const std::filesystem::p... | 27.904459 | 93 | 0.584341 | liquidum-network |
d16e2fefb99254082c332e8adb0de08f2fc4c416 | 5,066 | hpp | C++ | firmware/library/L2_Utilities/enum.hpp | Jeremy-Chau/SJSU-Dev2 | b3c0b008f9f19a12fe70d319760459b4b2111003 | [
"Apache-2.0"
] | 2 | 2020-07-04T18:19:57.000Z | 2020-07-04T18:20:44.000Z | firmware/library/L2_Utilities/enum.hpp | hangbogu/SJSU-Dev2 | 38c9e993aa869c4b29abed470d7fd8affae0e655 | [
"Apache-2.0"
] | null | null | null | firmware/library/L2_Utilities/enum.hpp | hangbogu/SJSU-Dev2 | 38c9e993aa869c4b29abed470d7fd8affae0e655 | [
"Apache-2.0"
] | 2 | 2018-07-27T20:48:40.000Z | 2018-08-02T21:32:05.000Z | // Enum.hpp includes enhancements to the "enum class" types.
#pragma once
#include <type_traits>
namespace util
{
// Returns the value of the enum class. This should be used in place of
// static_cast<some_numeric_type>(some_variable).
//
// @example
//
// enum class SomeType : uint32_t { kValue1 = 1, kValue2 = ... | 38.378788 | 80 | 0.666601 | Jeremy-Chau |
d16eb6255da80f6b14890dccdf9c75c50c8e2430 | 3,427 | cpp | C++ | Code/WSTrainingTJM/FrmTXTRead/CopyPastMod.m/src/CopyPasteDlg.cpp | msdos41/CATIA_CAA_V5 | bf831f7ecc3c4937b227782ee8bebf7c6675792a | [
"MIT"
] | 5 | 2019-11-14T05:42:38.000Z | 2022-03-12T12:51:46.000Z | Code/WSTrainingTJM/FrmTXTRead/CopyPastMod.m/src/CopyPasteDlg.cpp | msdos41/CATIA_CAA_V5 | bf831f7ecc3c4937b227782ee8bebf7c6675792a | [
"MIT"
] | null | null | null | Code/WSTrainingTJM/FrmTXTRead/CopyPastMod.m/src/CopyPasteDlg.cpp | msdos41/CATIA_CAA_V5 | bf831f7ecc3c4937b227782ee8bebf7c6675792a | [
"MIT"
] | 4 | 2020-01-02T13:48:07.000Z | 2022-01-05T04:23:30.000Z | // COPYRIGHT Dassault Systemes 2018
//===================================================================
//
// CopyPasteDlg.cpp
// The dialog : CopyPasteDlg
//
//===================================================================
//
// Usage notes:
//
//=================================================================... | 33.271845 | 78 | 0.618909 | msdos41 |
d16efddb5721e6fe9a8b58c63e72550a1dead48e | 903 | hpp | C++ | include/mbgl/util/peer.hpp | RobertSasak/mapbox-gl-native | dabf5d0c3a76f9fbe8b866f64f51accf12d1a2a6 | [
"BSL-1.0",
"Apache-2.0"
] | 2 | 2019-04-18T21:25:22.000Z | 2019-04-18T21:25:24.000Z | include/mbgl/util/peer.hpp | RobertSasak/mapbox-gl-native | dabf5d0c3a76f9fbe8b866f64f51accf12d1a2a6 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/mbgl/util/peer.hpp | RobertSasak/mapbox-gl-native | dabf5d0c3a76f9fbe8b866f64f51accf12d1a2a6 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | #pragma once
#include <memory>
#include <type_traits>
#include <utility>
namespace mbgl {
namespace util {
class peer {
public:
peer() noexcept : storage(nullptr, noop_deleter) {}
template <class T>
peer(T&& value) noexcept : storage(new std::decay_t<T>(std::forward<T>(value)), cast_deleter<std::decay_t... | 25.8 | 116 | 0.669989 | RobertSasak |
d16f2e4a6b9b55257c7b2be372e66cbf58f8c2a1 | 352 | inl | C++ | src/Core/Mesh/DCEL/Face.inl | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Core/Mesh/DCEL/Face.inl | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Core/Mesh/DCEL/Face.inl | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | #include <Core/Mesh/DCEL/Face.hpp>
#include <Core/Mesh/DCEL/HalfEdge.hpp>
namespace Ra {
namespace Core {
/// HALFEDGE
inline HalfEdge_ptr Face::HE() const {
return m_he;
}
inline HalfEdge_ptr& Face::HE() {
return m_he;
}
inline void Face::setHE( const HalfEdge_ptr& he ) {
m_he = he;
}
} // na... | 11 | 51 | 0.650568 | nmellado |
d17295593fe5c854f7eaf8f3aeaf63a926d402b5 | 4,076 | inl | C++ | include/gum/vec/vec.inl | johannes-braun/gum | 7f0cd74f0e4f8b6d9ffaf3312d24d0c720f6340a | [
"MIT"
] | null | null | null | include/gum/vec/vec.inl | johannes-braun/gum | 7f0cd74f0e4f8b6d9ffaf3312d24d0c720f6340a | [
"MIT"
] | null | null | null | include/gum/vec/vec.inl | johannes-braun/gum | 7f0cd74f0e4f8b6d9ffaf3312d24d0c720f6340a | [
"MIT"
] | null | null | null | #pragma once
namespace gfx {
inline namespace v1 {
template<typename T, size_t S>
template<std::size_t... Is>
constexpr vec<T, S>::vec(std::index_sequence<Is...>, T&& value) noexcept : detail::vec_components<T, S>{(static_cast<void>(Is), value)...}
{}
template<typename T, size_t S>
template<typename X, size_t D, std:... | 31.114504 | 138 | 0.694553 | johannes-braun |
ab6e952cc54e52f391b08bc6f2354ffcaf3e25b3 | 1,147 | cpp | C++ | c++/NVIDIA/mutex.cpp | praveenpandit/programming | ee07b19d495f363297b5cc80d0b0a51b02cd964d | [
"MIT"
] | null | null | null | c++/NVIDIA/mutex.cpp | praveenpandit/programming | ee07b19d495f363297b5cc80d0b0a51b02cd964d | [
"MIT"
] | null | null | null | c++/NVIDIA/mutex.cpp | praveenpandit/programming | ee07b19d495f363297b5cc80d0b0a51b02cd964d | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
#include <mutex>
#include <condition_variable>
using namespace std;
void func(mutex &mx)
{
{
lock_guard<mutex> lock(mx);
cout << "Inside Thread :: " << this_thread::get_id() << endl;
this_thread::sleep_for(chrono::seconds(4));
}
}
// bool run = tr... | 23.408163 | 73 | 0.580645 | praveenpandit |
ab6f7ff2353ce86689413975f0d1e2a1fea6f50a | 4,120 | cpp | C++ | src/example_all_pointers.cpp | vreverdy/type-utilities | 510b558d30962973b983fd1d67bd8412dabf2fd5 | [
"BSD-3-Clause"
] | 5 | 2018-05-17T01:56:44.000Z | 2021-03-13T11:53:24.000Z | src/example_all_pointers.cpp | vreverdy/type-utilities | 510b558d30962973b983fd1d67bd8412dabf2fd5 | [
"BSD-3-Clause"
] | 2 | 2018-06-02T03:07:36.000Z | 2018-08-03T21:36:53.000Z | src/example_all_pointers.cpp | vreverdy/type-utilities | 510b558d30962973b983fd1d67bd8412dabf2fd5 | [
"BSD-3-Clause"
] | null | null | null | // ========================== EXAMPLE ALL POINTERS ========================== //
// Project: Type Utilities
// Name: example_all_pointers.cpp
// Description: Use cases for [remove/copy/clone]_all_pointers
// Creator: Vincent Reverdy
// Contributor(s): Vincent Reverdy [2018]
// License: ... | 33.495935 | 80 | 0.499272 | vreverdy |
ab7237df493381f35ef1107825da479322bc5814 | 2,646 | hpp | C++ | src/reyes/AddSymbolHelper.hpp | cwbaker/reyes | 76bd5ed7fde8be2c771536a73234e3a12b3cd6f7 | [
"MIT"
] | 9 | 2019-01-10T21:37:24.000Z | 2021-05-26T23:59:05.000Z | src/reyes/AddSymbolHelper.hpp | cwbaker/reyes | 76bd5ed7fde8be2c771536a73234e3a12b3cd6f7 | [
"MIT"
] | null | null | null | src/reyes/AddSymbolHelper.hpp | cwbaker/reyes | 76bd5ed7fde8be2c771536a73234e3a12b3cd6f7 | [
"MIT"
] | 1 | 2018-09-05T01:40:09.000Z | 2018-09-05T01:40:09.000Z | #ifndef REYES_ADDSYMBOLHELPER_HPP_INCLUDED
#define REYES_ADDSYMBOLHELPER_HPP_INCLUDED
#include "ValueType.hpp"
#include "ValueStorage.hpp"
#include <vector>
#include <memory>
namespace reyes
{
class Grid;
class Symbol;
class Value;
class Renderer;
class SymbolTable;
/**
// Syntax helper to provide... | 60.136364 | 325 | 0.741497 | cwbaker |
ab7962bec0dcc9793a9c4f0efce9e4fe650472ac | 780 | cpp | C++ | events/gamepad_button_up_event.cpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null | events/gamepad_button_up_event.cpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null | events/gamepad_button_up_event.cpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null |
/**
*
* gamepad_button_up_event.cpp
*
**/
#include"gamepad_button_up_event.hpp"
#include<sdl.h>
#include<cmath>
namespace aab {
namespace events{
GamepadButtonUpEvent::GamepadButtonUpEvent (InternalEvent internalEvent) : Event (getClassEventType ())
{
SDL_Event * event = static_cast <SDL_Event *>... | 15.6 | 104 | 0.682051 | MrTAB |
ab79f13cc8f1473c2074e26fe6d2ff83e4c33844 | 3,777 | cpp | C++ | QHTML_Static/qhtm/HTMLImage.cpp | karolbe/DSS | 5a834561fbe7345d0be36f41ed8620ebbdb2f222 | [
"BSD-3-Clause"
] | null | null | null | QHTML_Static/qhtm/HTMLImage.cpp | karolbe/DSS | 5a834561fbe7345d0be36f41ed8620ebbdb2f222 | [
"BSD-3-Clause"
] | null | null | null | QHTML_Static/qhtm/HTMLImage.cpp | karolbe/DSS | 5a834561fbe7345d0be36f41ed8620ebbdb2f222 | [
"BSD-3-Clause"
] | 1 | 2020-06-28T19:21:22.000Z | 2020-06-28T19:21:22.000Z | /*----------------------------------------------------------------------
Copyright (c) 1998 Gipsysoft. All Rights Reserved.
Please see the file "licence.txt" for licencing details.
File: HTMLImage.cpp
Owner: russf@gipsysoft.com
Purpose: HTML Image object
----------------------------------------------------------------... | 24.367742 | 159 | 0.664019 | karolbe |
ab87d68707660a170dc7ba065ec3dbc4c2f401e9 | 3,267 | cpp | C++ | src/Particle.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | null | null | null | src/Particle.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | 6 | 2021-10-16T07:10:04.000Z | 2021-12-26T13:23:54.000Z | src/Particle.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | null | null | null | //
// Particle.cpp
// Shapes
//
// Created by Jildert Viet on 18-02-15.
//
//
#include "Particle.h"
Particle::Particle(){
}
Particle::Particle(ofVec3f *destination, bool startAtDest){
this->destination = destination;
if(startAtDest){
loc = ofVec2f(ofRandom(ofGetWindowWidth(... | 24.380597 | 98 | 0.486073 | jildertviet |
ab8ef5dca49c8814be008bec053324bf327883c2 | 7,456 | hpp | C++ | src/vendor/cget/cget/pkg/pqrs-org__cpp-osx-iokit_types/install/include/pqrs/osx/iokit_types/iokit_hid_usage.hpp | fe7/Karabiner-Elements | fdbf3b47d845e5d225c1d33f9b3c696406d404ba | [
"Unlicense"
] | 1 | 2021-11-09T10:28:50.000Z | 2021-11-09T10:28:50.000Z | src/vendor/cget/cget/pkg/pqrs-org__cpp-osx-iokit_types/install/include/pqrs/osx/iokit_types/iokit_hid_usage.hpp | fe7/Karabiner-Elements | fdbf3b47d845e5d225c1d33f9b3c696406d404ba | [
"Unlicense"
] | null | null | null | src/vendor/cget/cget/pkg/pqrs-org__cpp-osx-iokit_types/install/include/pqrs/osx/iokit_types/iokit_hid_usage.hpp | fe7/Karabiner-Elements | fdbf3b47d845e5d225c1d33f9b3c696406d404ba | [
"Unlicense"
] | 2 | 2020-04-27T10:51:37.000Z | 2020-09-09T03:44:04.000Z | #pragma once
// (C) Copyright Takayama Fumihiko 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See http://www.boost.org/LICENSE_1_0.txt)
#include <IOKit/hid/IOHIDUsageTables.h>
#include <functional>
#include <iostream>
#include <type_safe/strong_typedef.hpp>
namespace pqrs {
namespace osx {
... | 64.834783 | 123 | 0.902495 | fe7 |
ab91d189e724481634a22a03835bc6da31021bc4 | 3,513 | hpp | C++ | src/libtego/source/context.hpp | blueprint-freespeech/r2-rebound | 65efe5bcea7c1222d0eef4ce447d3bebfee37779 | [
"BSD-3-Clause"
] | 1 | 2019-06-10T11:05:15.000Z | 2019-06-10T11:05:15.000Z | src/libtego/source/context.hpp | blueprint-freespeech/r2-rebound | 65efe5bcea7c1222d0eef4ce447d3bebfee37779 | [
"BSD-3-Clause"
] | null | null | null | src/libtego/source/context.hpp | blueprint-freespeech/r2-rebound | 65efe5bcea7c1222d0eef4ce447d3bebfee37779 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "signals.hpp"
#include "tor.hpp"
#include "user.hpp"
#include "tor/TorControl.h"
#include "tor/TorManager.h"
#include "core/IdentityManager.h"
//
// Tego Context
//
struct tego_context
{
public:
tego_context();
void start_tor(const tego_tor_launch_config_t* config);
bool get_tor_d... | 38.604396 | 120 | 0.744663 | blueprint-freespeech |
ab91e8a62201f0561c9b0a2184a1d9ce92c13ba7 | 1,136 | hpp | C++ | src/marnav/seatalk/message_11.hpp | ShadowTeolog/marnav | 094dd06a2b9e52591bc9c3879ea4b5cf34a92192 | [
"BSD-4-Clause"
] | null | null | null | src/marnav/seatalk/message_11.hpp | ShadowTeolog/marnav | 094dd06a2b9e52591bc9c3879ea4b5cf34a92192 | [
"BSD-4-Clause"
] | null | null | null | src/marnav/seatalk/message_11.hpp | ShadowTeolog/marnav | 094dd06a2b9e52591bc9c3879ea4b5cf34a92192 | [
"BSD-4-Clause"
] | null | null | null | #ifndef MARNAV__SEATALK__MESSAGE_11__HPP
#define MARNAV__SEATALK__MESSAGE_11__HPP
#include "message.hpp"
namespace marnav
{
namespace seatalk
{
/// @brief Apparent Wind Speed
///
/// @code
/// 11 01 XX 0Y
///
/// Apparent Wind Speed: (XX & 0x7F) + Y/10 Knots
/// Units flag: XX&0x80=0 => Display value in Knots
... | 21.846154 | 72 | 0.704225 | ShadowTeolog |
ab93373ef1a46946f305da66c9395d39ae25cc12 | 381 | cpp | C++ | persona.cpp | equirosa/simulacion-conversacion | 8fc3d3b3612175d3cb5e846e1c05f4129a53c9f5 | [
"BSD-2-Clause"
] | null | null | null | persona.cpp | equirosa/simulacion-conversacion | 8fc3d3b3612175d3cb5e846e1c05f4129a53c9f5 | [
"BSD-2-Clause"
] | null | null | null | persona.cpp | equirosa/simulacion-conversacion | 8fc3d3b3612175d3cb5e846e1c05f4129a53c9f5 | [
"BSD-2-Clause"
] | null | null | null | #include "persona.h"
#include <string>
Persona::Persona(){} //Constructor por default.
Persona::Persona(std::string nombre, std::string nacionalidad, int edad)
{
this->nombre=nombre;
this->nacionalidad=nacionalidad;
this->edad=edad;
}
Persona::saludar(Persona persona)
{
persona.devolverSaludo(nombre)... | 20.052632 | 72 | 0.677165 | equirosa |
ab960e26a1af8dc50e165151594063ddfd971b02 | 12,618 | cpp | C++ | storage/walletdb.cpp | ouyun/FnFnCoreWallet | 3aa61145bc3f524d1dc10ada22e164689a73d794 | [
"MIT"
] | 1 | 2019-12-23T11:56:55.000Z | 2019-12-23T11:56:55.000Z | storage/walletdb.cpp | ouyun/FnFnCoreWallet | 3aa61145bc3f524d1dc10ada22e164689a73d794 | [
"MIT"
] | null | null | null | storage/walletdb.cpp | ouyun/FnFnCoreWallet | 3aa61145bc3f524d1dc10ada22e164689a73d794 | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2019 The Multiverse developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletdb.h"
#include "leveldbeng.h"
#include <boost/foreach.hpp>
#include <boost/bind.hpp>
using na... | 21.868284 | 116 | 0.624029 | ouyun |
ab967c96d59adb365b9e31659a8c6d6a18a571fb | 270 | hpp | C++ | src/widgets/settingspages/CommandPage.hpp | agenttud/chatterino7 | b40763c5f847c017106115f92b864b40b3a20501 | [
"MIT"
] | 1,145 | 2019-05-18T22:51:52.000Z | 2022-03-31T22:12:39.000Z | src/widgets/settingspages/CommandPage.hpp | agenttud/chatterino7 | b40763c5f847c017106115f92b864b40b3a20501 | [
"MIT"
] | 2,034 | 2019-05-18T22:28:54.000Z | 2022-03-31T22:24:21.000Z | src/widgets/settingspages/CommandPage.hpp | agenttud/chatterino7 | b40763c5f847c017106115f92b864b40b3a20501 | [
"MIT"
] | 397 | 2019-05-18T22:45:51.000Z | 2022-03-31T22:12:39.000Z | #pragma once
#include <QTextEdit>
#include <QTimer>
#include "widgets/settingspages/SettingsPage.hpp"
namespace chatterino {
class CommandPage : public SettingsPage
{
public:
CommandPage();
private:
QTimer commandsEditTimer_;
};
} // namespace chatterino
| 13.5 | 49 | 0.744444 | agenttud |
ab96996c768e015fb5aa467b3007b691dde42bbd | 2,565 | hpp | C++ | include/Move_strategy.hpp | mjcaisse/CDT-plusplus | fa11dd19c806a96afbb48e406234e82cae62029a | [
"BSD-3-Clause"
] | null | null | null | include/Move_strategy.hpp | mjcaisse/CDT-plusplus | fa11dd19c806a96afbb48e406234e82cae62029a | [
"BSD-3-Clause"
] | null | null | null | include/Move_strategy.hpp | mjcaisse/CDT-plusplus | fa11dd19c806a96afbb48e406234e82cae62029a | [
"BSD-3-Clause"
] | null | null | null | /// Causal Dynamical Triangulations in C++ using CGAL
///
/// Copyright © 2017-2020 Adam Getchell
///
/// Template class for all move algorithms, e.g. Metropolis, MoveAlways
///
/// @file Move_strategy.hpp
/// @brief Base class for move algorithms on Delaunay Triangulations
/// @author Adam Getchell
#ifndef INCLUDE_MO... | 25.147059 | 72 | 0.707212 | mjcaisse |
ab9d0df4b91d7eed887be585aa4dde53d50eb971 | 2,133 | hpp | C++ | GLFramework/stdafx.hpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 39 | 2016-03-23T00:39:46.000Z | 2022-02-07T21:26:05.000Z | GLFramework/stdafx.hpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 1 | 2016-03-24T14:39:45.000Z | 2016-03-24T17:34:39.000Z | GLFramework/stdafx.hpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 3 | 2016-08-15T01:27:13.000Z | 2021-12-29T01:37:51.000Z | #pragma once
#pragma region
//C RunTime Header Files
#include <wchar.h>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <memory>
using namespace std;
#pragma endregion stl
#pragma region
//SDL and opengl Header files
#include "staticDependancies/glad/glad.h"
#in... | 23.7 | 79 | 0.711205 | Illation |
ab9e78b628e2acadb080ef547e1f368d591a8f03 | 2,700 | cpp | C++ | src/ohm.cpp | rohanl/ESP8266_WiFi_v2.x | 6ce604a64effa9c6a56ff078529f616de8f82835 | [
"Unlicense"
] | 72 | 2017-03-08T22:31:33.000Z | 2022-01-28T05:41:39.000Z | src/ohm.cpp | rohanl/ESP8266_WiFi_v2.x | 6ce604a64effa9c6a56ff078529f616de8f82835 | [
"Unlicense"
] | 228 | 2017-03-05T13:21:16.000Z | 2021-10-09T23:06:26.000Z | src/ohm.cpp | rohanl/ESP8266_WiFi_v2.x | 6ce604a64effa9c6a56ff078529f616de8f82835 | [
"Unlicense"
] | 53 | 2017-03-06T10:59:13.000Z | 2022-02-06T23:08:25.000Z | #include "emonesp.h"
#include "input.h"
#include "wifi.h"
#include "app_config.h"
#include "RapiSender.h"
#include <WiFiClientSecure.h>
#include <ESP8266HTTPClient.h>
#include <Arduino.h>
#define ACTIVE_TAG_START "<active>"
#define ACTIVE_TAG_END "</active>"
//Server strings for Ohm Connect
const char *ohm_host... | 26.213592 | 77 | 0.510741 | rohanl |
aba579bd8df72707a495c46c1914a111dc0a4013 | 2,480 | cpp | C++ | dbms/src/Core/FieldVisitors.cpp | rudneff/ClickHouse | 3cb59b92bccbeb888d136f7c6e14b622382c0434 | [
"Apache-2.0"
] | 3 | 2016-12-30T14:19:47.000Z | 2021-11-13T06:58:32.000Z | dbms/src/Core/FieldVisitors.cpp | rudneff/ClickHouse | 3cb59b92bccbeb888d136f7c6e14b622382c0434 | [
"Apache-2.0"
] | null | null | null | dbms/src/Core/FieldVisitors.cpp | rudneff/ClickHouse | 3cb59b92bccbeb888d136f7c6e14b622382c0434 | [
"Apache-2.0"
] | 1 | 2021-02-07T16:00:54.000Z | 2021-02-07T16:00:54.000Z | #include <DB/Core/FieldVisitors.h>
namespace DB
{
String FieldVisitorDump::operator() (const String & x) const
{
String res;
WriteBufferFromString wb(res);
writeQuoted(x, wb);
return res;
}
String FieldVisitorDump::operator() (const Array & x) const
{
String res;
WriteBufferFromString wb(res);
FieldVisito... | 19.527559 | 106 | 0.662903 | rudneff |
aba597a776c11ed7cc96e272a450ffeaa32db935 | 1,113 | cpp | C++ | src/common/file_utils.cpp | subject721/flow-orchestrator | cadc646db5eece510c1dc1edf7bacf5060a7915c | [
"BSD-3-Clause"
] | 3 | 2021-10-05T08:13:56.000Z | 2022-02-07T22:41:03.000Z | src/common/file_utils.cpp | subject721/flow-orchestrator | cadc646db5eece510c1dc1edf7bacf5060a7915c | [
"BSD-3-Clause"
] | null | null | null | src/common/file_utils.cpp | subject721/flow-orchestrator | cadc646db5eece510c1dc1edf7bacf5060a7915c | [
"BSD-3-Clause"
] | 1 | 2022-02-07T22:41:05.000Z | 2022-02-07T22:41:05.000Z | /*
* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2021, Stefan Seitz
*
*/
#include <common/file_utils.hpp>
#include <fstream>
std::string load_file_as_string(const std::filesystem::path& file_path) {
if ( exists(file_path) ) {
std::ifstream file_stream(file_path.c_str());
if ( !fil... | 19.526316 | 74 | 0.651393 | subject721 |
abb2e1af112da0d2e340cf43e24338c277ab56b5 | 4,006 | cpp | C++ | src/pair_wise_intersect.cpp | fanhualta/dint | d5b4b9ef1998119b2f06b9143153f7e82f12cb56 | [
"Apache-2.0"
] | 16 | 2019-01-27T20:41:07.000Z | 2021-05-03T05:21:50.000Z | src/pair_wise_intersect.cpp | fanhualta/dint | d5b4b9ef1998119b2f06b9143153f7e82f12cb56 | [
"Apache-2.0"
] | 3 | 2020-06-25T03:28:28.000Z | 2021-04-26T07:15:24.000Z | src/pair_wise_intersect.cpp | fanhualta/dint | d5b4b9ef1998119b2f06b9143153f7e82f12cb56 | [
"Apache-2.0"
] | 6 | 2019-08-20T02:34:16.000Z | 2022-02-22T00:01:11.000Z | #include <iostream>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <succinct/mapper.hpp>
#include "index_types.hpp"
#include "util.hpp"
typedef uint32_t term_id_type;
typedef std::vector<term_id_type> term_id_vec;
bool read_query(term_id_vec& ret, std::ist... | 26.706667 | 76 | 0.545432 | fanhualta |
abb4af9ca0f37e64e893acb3d381b4a8ece93033 | 887 | hpp | C++ | libs/core/include/fcppt/math/clamp.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/math/clamp.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/math/clamp.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2017.
// Copyright Philipp Middendorf 2009 - 2017.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_MATH_CLAMP_HPP_INCLUDED
#define... | 26.878788 | 86 | 0.709132 | freundlich |
abb665fee6e513631c6c6b5cd487fd41b08d95a2 | 1,343 | cpp | C++ | building_teams.cpp | ShinAKS/cses_solutions | e4ebcf80c010785f1b73df7aa8052da07ad549e0 | [
"MIT"
] | null | null | null | building_teams.cpp | ShinAKS/cses_solutions | e4ebcf80c010785f1b73df7aa8052da07ad549e0 | [
"MIT"
] | null | null | null | building_teams.cpp | ShinAKS/cses_solutions | e4ebcf80c010785f1b73df7aa8052da07ad549e0 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
#define int long long
#define pb push_back
#define pii pair<int,int>
#define vi vector<int>
#define vii vector<pii>
#define mi map<int,int>
#define mii map<pii,int>
#define all(a) (a).begin(),(a).end()
#defi... | 21.31746 | 66 | 0.553239 | ShinAKS |
abc22ac2eb9ffd59dcfe49ab824e9b5c86288107 | 2,386 | cpp | C++ | tests/ImageViewIterator_test.cpp | alexanderbelous/imageview | 817e92ac1dcbffc7fb0ebb11afe4ee9836f37df0 | [
"MIT"
] | null | null | null | tests/ImageViewIterator_test.cpp | alexanderbelous/imageview | 817e92ac1dcbffc7fb0ebb11afe4ee9836f37df0 | [
"MIT"
] | null | null | null | tests/ImageViewIterator_test.cpp | alexanderbelous/imageview | 817e92ac1dcbffc7fb0ebb11afe4ee9836f37df0 | [
"MIT"
] | null | null | null | #include <imageview/internal/ImageViewIterator.h>
#include <imageview/pixel_formats/PixelFormatRGB24.h>
#include <gtest/gtest.h>
namespace imageview {
namespace {
// Sample flat image used in several tests.
constexpr std::size_t kSampleNumPixels = 6;
constexpr std::array<std::byte, kSampleNumPixels * PixelFormatRGB2... | 37.873016 | 106 | 0.723806 | alexanderbelous |
abc295e794bf9c5aa4bb1221c5380463a68eda1a | 608 | cpp | C++ | src/massive8/main.cpp | Danila18/unit-homework | 64e864f991abcf2c8ef566bdc493b59522dfea11 | [
"BSD-3-Clause"
] | null | null | null | src/massive8/main.cpp | Danila18/unit-homework | 64e864f991abcf2c8ef566bdc493b59522dfea11 | [
"BSD-3-Clause"
] | null | null | null | src/massive8/main.cpp | Danila18/unit-homework | 64e864f991abcf2c8ef566bdc493b59522dfea11 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <iomanip>
using namespace std;
int main() {
int i, n, a; // Шеренга
cout << "количество учеников = ";
cin >> n;
cout << "рост Пети = ";
cin >> a;
int *arr = new int [n];
for (i = 0; i < n; i++)
{
cout << "рост ученика[" << i << "]= ";
... | 25.333333 | 111 | 0.391447 | Danila18 |
abc5441b74f514ebcb7730bde1d668759db582ec | 634 | hpp | C++ | include/euclidean2/object/projectile.hpp | Euclidean-Entertainment/Assignment_2 | 04a855f3cec41c9046340b3248d32e5acb94c221 | [
"BSD-3-Clause"
] | 1 | 2018-05-03T03:57:29.000Z | 2018-05-03T03:57:29.000Z | include/euclidean2/object/projectile.hpp | Euclidean-Entertainment/Assignment_2 | 04a855f3cec41c9046340b3248d32e5acb94c221 | [
"BSD-3-Clause"
] | 1 | 2018-05-04T14:17:53.000Z | 2018-05-04T14:17:53.000Z | include/euclidean2/object/projectile.hpp | Euclidean-Entertainment/Assignment_2 | 04a855f3cec41c9046340b3248d32e5acb94c221 | [
"BSD-3-Clause"
] | 2 | 2018-05-03T03:57:32.000Z | 2018-05-20T12:01:55.000Z | /**
* Projectiles
*/
#ifndef _PROJECTILE_HPP_INCLUDED_
#define _PROJECTILE_HPP_INCLUDED_
#include "euclidean2/math/vec3.hpp"
//extern
static constexpr float GRAVITY = -9.8f;
struct projectile_t
{
vec3_t position;
vec3_t velocity;
material_t mat;
};
/**
* Create a projectile
*/
void projectile_... | 11.527273 | 96 | 0.689274 | Euclidean-Entertainment |
abc547430175b3e41f19d0b63a5d6bb45e08fe91 | 328,380 | cpp | C++ | src/blas/blas_loader.cpp | cdgarland/oneMKL | b1b8dc1072224afc254836d7b6150e3ef4b9eba5 | [
"Apache-2.0"
] | 1 | 2020-10-13T22:29:38.000Z | 2020-10-13T22:29:38.000Z | src/blas/blas_loader.cpp | cdgarland/oneMKL | b1b8dc1072224afc254836d7b6150e3ef4b9eba5 | [
"Apache-2.0"
] | null | null | null | src/blas/blas_loader.cpp | cdgarland/oneMKL | b1b8dc1072224afc254836d7b6150e3ef4b9eba5 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 62.346687 | 100 | 0.587061 | cdgarland |
abca03d3c0b2981e896b543279a34d92352a6a33 | 243 | hpp | C++ | futurehead/futurehead_node/daemon.hpp | futureheadgroup/futurehead-node | 9995fb99462c77b07a880763cbb162a41279a5da | [
"BSD-3-Clause"
] | 2 | 2021-04-15T03:09:48.000Z | 2021-05-09T13:44:48.000Z | futurehead/futurehead_node/daemon.hpp | FutureHeadCoin/futurehead-node | 3871da56c478144b79cb12d43813f49ad280f6d4 | [
"BSD-3-Clause"
] | null | null | null | futurehead/futurehead_node/daemon.hpp | FutureHeadCoin/futurehead-node | 3871da56c478144b79cb12d43813f49ad280f6d4 | [
"BSD-3-Clause"
] | null | null | null | namespace boost
{
namespace filesystem
{
class path;
}
}
namespace futurehead
{
class node_flags;
}
namespace futurehead_daemon
{
class daemon
{
public:
void run (boost::filesystem::path const &, futurehead::node_flags const & flags);
};
}
| 11.571429 | 82 | 0.740741 | futureheadgroup |
abca50600a5a77cb7d8a78505189dbed98ee493f | 457 | cpp | C++ | Train/Sheet/Sheet-A/base/Sheet-A 0-20/11-20/17-Nearly Lucky Number.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Train/Sheet/Sheet-A/base/Sheet-A 0-20/11-20/17-Nearly Lucky Number.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Train/Sheet/Sheet-A/base/Sheet-A 0-20/11-20/17-Nearly Lucky Number.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
#include <vector>
#include <algorithm>
#include <string.h>
#include <array>
#include <iterator>
#define pb push_back
#define up upper_bound
#define lp lower_bound
using namespace std;
int main() {
int cnt = 0;
string inp;
cin>>inp;
for (int i = 0 , s = inp.size() ; i < s; ++i... | 16.925926 | 46 | 0.599562 | mohamedGamalAbuGalala |
abcd8c69fe75f35c086ed74df3916557179a05dd | 4,827 | cpp | C++ | Sandbox/src/Sandbox2D.cpp | davidliljefors/Hazel | 1467f1c20ba46bdfe943d72a75b6d86bca1c2a66 | [
"Apache-2.0"
] | 1 | 2020-09-27T09:22:33.000Z | 2020-09-27T09:22:33.000Z | Sandbox/src/Sandbox2D.cpp | davidliljefors/Hazel | 1467f1c20ba46bdfe943d72a75b6d86bca1c2a66 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Sandbox2D.cpp | davidliljefors/Hazel | 1467f1c20ba46bdfe943d72a75b6d86bca1c2a66 | [
"Apache-2.0"
] | null | null | null | #include "Sandbox2D.h"
#include "imgui/imgui.h"
#include <glm/gtc/type_ptr.hpp>
#include<sstream>
Hazel::Ref<Hazel::Texture2D> logo;
float frametime = 1.f;
Sandbox2D::Sandbox2D()
: Layer("Sandbox2D"), m_CameraController(1280.f / 720.f)
{
}
void Sandbox2D::OnAttach()
{
HZ_PROFILE_FUNCTION();
m_CheckerTexture =... | 31.141935 | 170 | 0.719495 | davidliljefors |
abce765833e3622126dd06720bc68f7121d15d5d | 3,344 | cpp | C++ | src/synth/SubstractiveSynthParams.cpp | MacFurax/ofxPDSPTools | a2c7af9035d771287abc9414cfadd299e9a8dd41 | [
"MIT"
] | 12 | 2019-09-17T15:43:50.000Z | 2021-07-20T09:46:44.000Z | src/synth/SubstractiveSynthParams.cpp | MacFurax/ofxPDSPTools | a2c7af9035d771287abc9414cfadd299e9a8dd41 | [
"MIT"
] | null | null | null | src/synth/SubstractiveSynthParams.cpp | MacFurax/ofxPDSPTools | a2c7af9035d771287abc9414cfadd299e9a8dd41 | [
"MIT"
] | null | null | null | #include "SubstractiveSynthParams.h"
SubstractiveSynthParams::SubstractiveSynthParams() : PatchParams()
{
//AddParam("SYNTH.Filter Type", 0, {"LowPass", "BandPass", "HighPass", "Notch"});
//AddParam("SYNTH.Filter Cutoff", 180.0f, 0.0f, 180.0f, 100.f); // because filter type is default to LowPass, set cutoff on ... | 41.8 | 151 | 0.627392 | MacFurax |
abd07f05e6c77b74fce9a618542642fa503989d8 | 1,817 | cpp | C++ | LightOJ/RealLifeTraffic.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | LightOJ/RealLifeTraffic.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | LightOJ/RealLifeTraffic.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<vector>
#include<iostream>
#include<algorithm>
#include<map>
#define getMin(a,b) ((a<b)?(a):(b))
#define getMax(a,b) ((a>b)?(a):(b))
#define MAX 100009
using namespace std;
typedef pair<int,int> pn;
vector<int>edge[MAX];
int dc,n,m;
int disTime[MAX+7],level[MAX+7],degree[MAX... | 18.353535 | 61 | 0.4612 | sourav025 |
abd37b2861264413aab60f209147cc454baf62d1 | 4,202 | cpp | C++ | DT3LevelEditor/Scripting/EdLevelGroup.cpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2018-10-05T15:03:27.000Z | 2019-03-19T11:01:56.000Z | DT3LevelEditor/Scripting/EdLevelGroup.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3LevelEditor/Scripting/EdLevelGroup.cpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | //==============================================================================
///
/// File: EdLevelGroup.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part of t... | 33.616 | 131 | 0.485721 | 9heart |
abd640ea279444956abe1c9c3fd24355d870c751 | 1,365 | hpp | C++ | third_party/boost/simd/function/if_else.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/if_else.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/if_else.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | //==================================================================================================
/*!
@file
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//============================... | 25.277778 | 100 | 0.607326 | xmar |
abd7ba14696f07a75a41a63d4bf210569f958323 | 44,017 | cpp | C++ | jni/application/Game_State.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | jni/application/Game_State.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | jni/application/Game_State.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | //
// Game_State.cpp
// game
//
// Created by Donald Clark on 11/9/13.
//
//
#include "Game_State.h"
#include "Utility.h"
#include "Atmosphere.h"
#include "Atmosphere_Factory.h"
#include "Environment.h"
#include "Environment_Factory.h"
#include "Terrain.h"
#include "Terrain_Factory.h"
#include "Npc.h"
#include "Npc... | 33.320969 | 193 | 0.61399 | clarkdonald |
abddbf88cbc45e029b00c0f6619d31e09e8e16fc | 1,953 | cpp | C++ | classes/misc/binary.cpp | Patriccollu/smooth | 8673d4702c55b1008bbcabddf7907da0e50505e4 | [
"Artistic-2.0"
] | 24 | 2017-08-22T15:55:34.000Z | 2022-03-06T11:41:31.000Z | classes/misc/binary.cpp | Patriccollu/smooth | 8673d4702c55b1008bbcabddf7907da0e50505e4 | [
"Artistic-2.0"
] | 6 | 2018-07-21T12:17:55.000Z | 2021-08-12T11:27:27.000Z | classes/misc/binary.cpp | Patriccollu/smooth | 8673d4702c55b1008bbcabddf7907da0e50505e4 | [
"Artistic-2.0"
] | 9 | 2017-09-13T02:32:18.000Z | 2022-03-06T11:41:32.000Z | /* The smooth Class Library
* Copyright (C) 1998-2014 Robert Kausch <robert.kausch@gmx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRA... | 19.928571 | 98 | 0.623144 | Patriccollu |
abe1f724699e3f979362f2000179d30fc9aaece0 | 5,420 | cpp | C++ | examples/xtd.forms.examples/components/radio_button_renderer/src/radio_button_renderer.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | examples/xtd.forms.examples/components/radio_button_renderer/src/radio_button_renderer.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | examples/xtd.forms.examples/components/radio_button_renderer/src/radio_button_renderer.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #include <xtd/xtd>
using namespace std;
using namespace xtd;
using namespace xtd::drawing;
using namespace xtd::forms;
namespace examples {
class form1 : public form {
public:
form1() {
text("Radio button renderer example");
client_size({500, 300});
set_color(color::blue);
set_color(nu... | 56.458333 | 319 | 0.701292 | BaderEddineOuaich |
abe5e6e76216b8146499aacefd06df6cda681624 | 18,274 | hpp | C++ | include/feature_brex.hpp | dsbrown1331/brex_gridworld_cpp | 15c36c703cf8b874d9bd7f87e426338af23781cd | [
"MIT"
] | 1 | 2020-05-22T14:04:50.000Z | 2020-05-22T14:04:50.000Z | include/feature_brex.hpp | dsbrown1331/safe-imitation-learning | dc4f40a7f51f4ff98994371d6aa026ec8181557a | [
"MIT"
] | null | null | null | include/feature_brex.hpp | dsbrown1331/safe-imitation-learning | dc4f40a7f51f4ff98994371d6aa026ec8181557a | [
"MIT"
] | null | null | null |
#ifndef feature_brex_h
#define feature_brex_h
#include <cmath>
#include <stdlib.h>
#include <vector>
#include <numeric>
#include <math.h>
#include "mdp.hpp"
#include "../include/unit_norm_sampling.hpp"
using namespace std;
class FeatureBREX { // B-REX with known features
protected:
double r_m... | 36.114625 | 346 | 0.611306 | dsbrown1331 |
abe7f3ad7b2d8aa10aa5dac919ed75796d215c6b | 649 | hpp | C++ | include/armadillo_bits/glue_conv_bones.hpp | ArashMassoudieh/GIFMod_ | 1fa9eda21fab870fc3baf56462f79eb800d5154f | [
"MIT"
] | 5 | 2017-11-20T19:32:27.000Z | 2018-08-28T06:08:45.000Z | include/armadillo_bits/glue_conv_bones.hpp | ArashMassoudieh/GIFMod_ | 1fa9eda21fab870fc3baf56462f79eb800d5154f | [
"MIT"
] | 1 | 2017-07-04T05:40:30.000Z | 2017-07-04T05:43:37.000Z | include/armadillo_bits/glue_conv_bones.hpp | ArashMassoudieh/GIFMod_ | 1fa9eda21fab870fc3baf56462f79eb800d5154f | [
"MIT"
] | 2 | 2017-11-09T22:00:45.000Z | 2018-08-30T10:56:08.000Z | // Copyright (C) 2010-2015 Conrad Sanderson
// Copyright (C) 2010-2015 NICTA (www.nicta.com.au)
//
// 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://mozilla.org/MPL/2.0/.
//! \addtogroup... | 23.178571 | 128 | 0.684129 | ArashMassoudieh |
abe8932ed04afd54599641d77234d3e3c36ae565 | 148 | cpp | C++ | src/blockchain/Chain.cpp | perriera/blockchain | 2c89ecc110dcc9c042bdb919c7cf3017a43d4ce8 | [
"MIT"
] | null | null | null | src/blockchain/Chain.cpp | perriera/blockchain | 2c89ecc110dcc9c042bdb919c7cf3017a43d4ce8 | [
"MIT"
] | null | null | null | src/blockchain/Chain.cpp | perriera/blockchain | 2c89ecc110dcc9c042bdb919c7cf3017a43d4ce8 | [
"MIT"
] | null | null | null | #include "../../include/blockchain/Chain.hpp"
#include <iostream>
using namespace std;
string Chain::say_hello() const { return "Hello, world"; }
| 21.142857 | 58 | 0.709459 | perriera |
abea15dbeb4a2eca53e18bb902262f62ecbde7c1 | 2,785 | cpp | C++ | src/CText.cpp | Fabio3rs/COFF-to-GTAScript-Helper | dc606372c48dd4f50ac822b77b71d5c0ea765544 | [
"MIT"
] | null | null | null | src/CText.cpp | Fabio3rs/COFF-to-GTAScript-Helper | dc606372c48dd4f50ac822b77b71d5c0ea765544 | [
"MIT"
] | null | null | null | src/CText.cpp | Fabio3rs/COFF-to-GTAScript-Helper | dc606372c48dd4f50ac822b77b71d5c0ea765544 | [
"MIT"
] | null | null | null | /*
Config parser originally write to Guitar++ https://github.com/Fabio3rs/Guitar-PlusPlus
Write by Fabio3rs - https://github.com/Fabio3rs
*/
#include "CText.h"
#include <cctype>
#include <iostream>
void CText::Parse(){
if(fileName.length() == 0){
return;
}
if(is_open()){
file.close();
}
... | 20.328467 | 87 | 0.578456 | Fabio3rs |
743a8842b3091b531819bf40c8a6e9a0a86fd7a7 | 44 | cpp | C++ | engine/src/wolf.system/wolf.cpp | SiminBadri/Wolf.Engine | 3da04471ec26e162e1cbb7cc88c7ce37ee32c954 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | 1 | 2020-07-15T13:14:26.000Z | 2020-07-15T13:14:26.000Z | engine/src/wolf.system/wolf.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | engine/src/wolf.system/wolf.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | #include "w_system_pch.h"
#include "wolf.h"
| 14.666667 | 25 | 0.727273 | SiminBadri |
743b4c50eaed31f885e75d5392de88ffc68400d3 | 25,971 | cpp | C++ | test/src/json/json_serialize_test.cpp | emseers/eelbot-framework | f5fec8357df2edcbd0bd2f8acfc86983970adbba | [
"MIT"
] | 2 | 2020-06-14T03:39:45.000Z | 2020-08-30T00:24:47.000Z | test/src/json/json_serialize_test.cpp | Emseers/eelbot-framework | f5fec8357df2edcbd0bd2f8acfc86983970adbba | [
"MIT"
] | 1 | 2021-04-30T03:18:54.000Z | 2021-05-10T01:56:53.000Z | test/src/json/json_serialize_test.cpp | emseers/eelbot-framework | f5fec8357df2edcbd0bd2f8acfc86983970adbba | [
"MIT"
] | null | null | null | // Part of the Eelbot Framework project, under the MIT License.
// Copyright (c) 2020 The Emseers.
#include "catch2/catch_test_macros.hpp"
#include "eelbot_framework/discord_bot/structs.hpp"
#include "eelbot_framework/json.hpp"
TEST_CASE("discord_bot::session_start_limit can be serialized to JSON", "[unit-test][json]... | 42.092382 | 117 | 0.675754 | emseers |
743be13f0a0a46ceade8ddaae28417c5ca8de768 | 1,777 | cpp | C++ | src/elona/lua_env/api/classes/class_LuaInventory.cpp | nanbansenji/ElonaFoobar | ddbd6639db8698e89f09b2512526e855d8016e46 | [
"MIT"
] | 84 | 2018-03-03T02:44:32.000Z | 2019-07-14T16:16:24.000Z | src/elona/lua_env/api/classes/class_LuaInventory.cpp | ki-foobar/ElonaFoobar | d251cf5bd8c21789db3b56b1c9b1302ce69b2c2e | [
"MIT"
] | 685 | 2018-02-27T04:31:17.000Z | 2019-07-12T13:43:00.000Z | src/elona/lua_env/api/classes/class_LuaInventory.cpp | nanbansenji/ElonaFoobar | ddbd6639db8698e89f09b2512526e855d8016e46 | [
"MIT"
] | 23 | 2019-07-26T08:52:38.000Z | 2021-11-09T09:21:58.000Z | #include <sstream>
#include "../../../inventory.hpp"
#include "../../../position.hpp"
#include "../common.hpp"
LUA_API_OPTOUT_SOL_AUTOMAGIC(elona::Inventory)
/**
* @luadoc
*
* Represents an item inventory, a list of items.
*/
namespace elona::lua::api::classes::class_LuaInventory
{
/**
* @luadoc has_free_s... | 19.527473 | 78 | 0.668542 | nanbansenji |
743bf2d3a89892ad01ec24607e9876f54d1ad44e | 4,482 | cpp | C++ | src/rendering/nodes/GIComposeNode.cpp | Shimmen/ArkoseRenderer | d39e1b3d5f5b669370b8aeed5cd1cfada5216763 | [
"MIT"
] | 7 | 2020-11-02T22:27:27.000Z | 2022-01-11T04:25:48.000Z | src/rendering/nodes/GIComposeNode.cpp | Shimmen/ArkoseRenderer | d39e1b3d5f5b669370b8aeed5cd1cfada5216763 | [
"MIT"
] | null | null | null | src/rendering/nodes/GIComposeNode.cpp | Shimmen/ArkoseRenderer | d39e1b3d5f5b669370b8aeed5cd1cfada5216763 | [
"MIT"
] | 2 | 2020-12-09T03:40:05.000Z | 2021-09-14T03:12:40.000Z | #include "GIComposeNode.h"
#include "SceneNode.h"
#include "geometry/Frustum.h"
#include "utility/Logging.h"
#include "utility/Profiling.h"
#include <imgui.h>
GIComposeNode::GIComposeNode(Scene& scene)
: m_scene(scene)
{
}
RenderPipelineNode::ExecuteCallback GIComposeNode::constructFrame(Registry& reg) const
{
... | 44.82 | 145 | 0.651272 | Shimmen |
743cde608a05bbb3a0bd2a91f9db0abec55c34c4 | 992 | cc | C++ | src/q_251_300/q0258.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 2 | 2021-09-28T18:41:03.000Z | 2021-09-28T18:42:57.000Z | src/q_251_300/q0258.cc | vNaonLu/Daily_LeetCode | 30024b561611d390931cef1b22afd6a5060cf586 | [
"MIT"
] | 16 | 2021-09-26T11:44:20.000Z | 2021-11-28T06:44:02.000Z | src/q_251_300/q0258.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 1 | 2021-11-22T09:11:36.000Z | 2021-11-22T09:11:36.000Z | #include <gtest/gtest.h>
#include <iostream>
using namespace std;
/**
* This file is generated by leetcode_add.py v1.0
*
* 258.
* Add Digits
*
* ––––––––––––––––––––––––––––– Description –––––––––––––––––––––––––––––
*
* Given an integer ‘num’ , repeatedly add all its digits until the
* result has o... | 20.244898 | 74 | 0.543347 | vNaonLu |
743e6fe2ac450c77ff5de332c10e70cb73bd686a | 6,244 | cpp | C++ | projects/Application/source/scenes/PlaygroundScene.cpp | antjowie/Empires | 15023e3b3d3f51dca6af7d477dca0c0a17c6f7cf | [
"MIT"
] | null | null | null | projects/Application/source/scenes/PlaygroundScene.cpp | antjowie/Empires | 15023e3b3d3f51dca6af7d477dca0c0a17c6f7cf | [
"MIT"
] | null | null | null | projects/Application/source/scenes/PlaygroundScene.cpp | antjowie/Empires | 15023e3b3d3f51dca6af7d477dca0c0a17c6f7cf | [
"MIT"
] | null | null | null | #include "scenes/PlaygroundScene.h"
#include "cameras/FreelookCamera.h"
#include "GalaxyGenerator.h"
#include "prngs/xorshf96.h"
#include <algorithm>
void PlaygroundScene::onCreate(const DrawableFactory & drawableFactory)
{
Timer timer;
m_fullscreen = false;
m_fullscreenCooldown = 0.f;
m_lineRenderer.init(400,1.... | 29.314554 | 138 | 0.695067 | antjowie |
743f292987b1a62732867617cc225471d696d782 | 8,738 | cpp | C++ | src/databasetool.cpp | AlvaroIT/qbrew-master | 2f6a98ee99779863d585839d3f254a957ea9fbf6 | [
"BSD-2-Clause"
] | null | null | null | src/databasetool.cpp | AlvaroIT/qbrew-master | 2f6a98ee99779863d585839d3f254a957ea9fbf6 | [
"BSD-2-Clause"
] | null | null | null | src/databasetool.cpp | AlvaroIT/qbrew-master | 2f6a98ee99779863d585839d3f254a957ea9fbf6 | [
"BSD-2-Clause"
] | null | null | null | /***************************************************************************
databasetool.cpp
-------------------
Database editor for QBrew
-------------------
Copyright 2005-2008, David Johnson
Please see the header file for copyright and license information
***********************************************... | 36.869198 | 78 | 0.623369 | AlvaroIT |
7442a187f4ae6f8ca5172a8630cad7c5c8527a1d | 1,321 | cpp | C++ | OrcLevel.cpp | JTuthill01/Nightmare | e4b712e28c228c66a33664418cc176cf527c28c9 | [
"MIT"
] | null | null | null | OrcLevel.cpp | JTuthill01/Nightmare | e4b712e28c228c66a33664418cc176cf527c28c9 | [
"MIT"
] | null | null | null | OrcLevel.cpp | JTuthill01/Nightmare | e4b712e28c228c66a33664418cc176cf527c28c9 | [
"MIT"
] | null | null | null | #include "stdafx.hpp"
#include "OrcLevel.hpp"
OrcLevel::OrcLevel(sf::RenderWindow * window, std::stack<Level*>* level) : Level(window, level)
{
this->initLevel();
this->spawnOrcs();
}
OrcLevel::~OrcLevel()
{
}
void OrcLevel::update(const float & deltaTime)
{
this->pPlayer.update(deltaTime);
t... | 21.306452 | 109 | 0.656321 | JTuthill01 |
7443e2e05eb37e6b4ebc9b39f8855bc08eb65dd1 | 4,644 | cpp | C++ | opticalFlow.cpp | axessta/city3115-contrib | 89859979c9e90133a1037a0c8fffc27bb9cf66e0 | [
"Apache-2.0"
] | null | null | null | opticalFlow.cpp | axessta/city3115-contrib | 89859979c9e90133a1037a0c8fffc27bb9cf66e0 | [
"Apache-2.0"
] | null | null | null | opticalFlow.cpp | axessta/city3115-contrib | 89859979c9e90133a1037a0c8fffc27bb9cf66e0 | [
"Apache-2.0"
] | null | null | null | // opticalFlow.cpp, jake deery, 2020
#include "opticalFlow.h"
opticalFlow::opticalFlow(VideoCapture inputVideo) {
// init - load vars into object
capSource = inputVideo;
// Check for failure
if(capSource.isOpened() == false) {
cout << "[E] Could not open or find the webcam . . . " << "\n";
delete this;
}
... | 23.22 | 94 | 0.626184 | axessta |
7445f5925c64a4bd05bed89c4ad74b42b43f08b2 | 2,993 | cxx | C++ | src/main.cxx | C0MPU73R/tlopo-stats | 7a7c2bfb5c2a1b9888e94ac611ad76da193f9405 | [
"MIT"
] | 1 | 2021-11-08T03:44:13.000Z | 2021-11-08T03:44:13.000Z | src/main.cxx | C0MPU73R/tlopo-stats | 7a7c2bfb5c2a1b9888e94ac611ad76da193f9405 | [
"MIT"
] | null | null | null | src/main.cxx | C0MPU73R/tlopo-stats | 7a7c2bfb5c2a1b9888e94ac611ad76da193f9405 | [
"MIT"
] | null | null | null | #include "collector/eventCollector.h"
#include "avatar/avatarManager.h"
#include "database/database.h"
#include "collector/statCollectorManager.h"
#include "net/rpcServer.h"
#include <iostream>
void usage(const std::string& error = "")
{
std::cerr << "tlopostats [options]" << std::endl;
std::cerr << "options... | 29.058252 | 116 | 0.531908 | C0MPU73R |
744787492330da29e14b648d0d2c2c356dc3f44f | 760 | cpp | C++ | 999_Practice/Day_19/0091_smallest_poitive_missing_number.cpp | Gandham-Srinithya/Data-Structure-and-Algorithms | 177d03105188c83a157947ca9870bf8037e92528 | [
"MIT"
] | 126 | 2019-12-22T17:49:08.000Z | 2021-12-14T18:45:51.000Z | 999_Practice/Day_19/0091_smallest_poitive_missing_number.cpp | Gandham-Srinithya/Data-Structure-and-Algorithms | 177d03105188c83a157947ca9870bf8037e92528 | [
"MIT"
] | 7 | 2019-12-25T18:03:41.000Z | 2021-02-20T06:25:27.000Z | 999_Practice/Day_19/0091_smallest_poitive_missing_number.cpp | Gandham-Srinithya/Data-Structure-and-Algorithms | 177d03105188c83a157947ca9870bf8037e92528 | [
"MIT"
] | 54 | 2019-12-26T06:28:39.000Z | 2022-02-01T05:04:43.000Z | // You are given an array arr[] of N integers including 0. The task is to find the smallest
// positive number missing from the array.
// CONSTRAINS
// 1 <= N <= 10^6
// -10^6 <= Ai <= 10^6
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int arr[n];
for(int i=0; i<n; i++)
... | 14.615385 | 91 | 0.428947 | Gandham-Srinithya |
7452dbf34f38250e6c28d9cf4e057d30ce33af19 | 12,829 | cpp | C++ | tests/src/runtimeApi/synchronization/copy_coherency.cpp | parmance/HIP | 96ee9d1397f02ac4b4badd9243994728f6a89fe5 | [
"MIT"
] | 1,935 | 2017-05-28T04:52:18.000Z | 2022-03-30T23:50:43.000Z | tests/src/runtimeApi/synchronization/copy_coherency.cpp | JCLYHY23/HIP | 6a09344dba91a1a9816cb6bcdcc6d8bc6ea564c3 | [
"MIT"
] | 1,310 | 2017-05-30T22:16:09.000Z | 2022-03-31T08:25:58.000Z | tests/src/runtimeApi/synchronization/copy_coherency.cpp | JCLYHY23/HIP | 6a09344dba91a1a9816cb6bcdcc6d8bc6ea564c3 | [
"MIT"
] | 495 | 2017-06-01T01:26:27.000Z | 2022-03-28T16:36:51.000Z | /*
Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, ... | 34.579515 | 113 | 0.628342 | parmance |
74532d6ffd32bd2419c23ebb30fa60d76516517c | 16,683 | cpp | C++ | src/CharacterMgr.cpp | CoderRaka/Game-Server | 3b3c5a5492653be682f0bb841aab047c62981237 | [
"MIT"
] | 85 | 2015-02-05T18:28:15.000Z | 2022-02-16T18:29:21.000Z | src/CharacterMgr.cpp | CoderRaka/Game-Server | 3b3c5a5492653be682f0bb841aab047c62981237 | [
"MIT"
] | 8 | 2015-03-10T01:28:22.000Z | 2018-01-19T16:26:57.000Z | src/CharacterMgr.cpp | CoderRaka/Game-Server | 3b3c5a5492653be682f0bb841aab047c62981237 | [
"MIT"
] | 70 | 2015-01-08T16:25:11.000Z | 2021-11-11T19:10:00.000Z | #include"Global.h"
void charMgr_beginCharacterSelection(clientGamemain_t *cgm)
{
pyMarshalString_t pms;
pym_init(&pms);
pym_tuple_begin(&pms);
pym_addUnicode(&pms, (sint8*)"Name"); // familyName // this should be null if hasCharacters is 0
pym_addInt(&pms, 0); // hasCharacters
pym_addInt(&pms, cgm->userID); // u... | 33.70303 | 132 | 0.735599 | CoderRaka |
7455ae178539249381cc24a9a7f492a583791938 | 646 | cpp | C++ | 10.12.2020/Task_2.cpp | andzh1/Advent_of_Code_2020 | a953e0977a6ee44bfcc0df66d50335be62c60cfb | [
"MIT"
] | null | null | null | 10.12.2020/Task_2.cpp | andzh1/Advent_of_Code_2020 | a953e0977a6ee44bfcc0df66d50335be62c60cfb | [
"MIT"
] | null | null | null | 10.12.2020/Task_2.cpp | andzh1/Advent_of_Code_2020 | a953e0977a6ee44bfcc0df66d50335be62c60cfb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
freopen("Puzzle_Input.txt", "r", stdin);
string s;
vector <int> input;
input.push_back(0);
while(cin >> s) input.push_back(stoi(s));
long long answer = 1;
sort(input.begin(), input.end());
for(int i = 0; i < input.size(); i++){
... | 25.84 | 63 | 0.482972 | andzh1 |
745696ff98dbba1745faca706c9d6069f010bb8a | 7,403 | cpp | C++ | src/cascadia/TerminalCore/TerminalApi.cpp | Kapperchino/Terminal | 4c47631bf4aa907aad4f7088bc7edc7e5cde11b9 | [
"MIT"
] | 3 | 2019-05-31T13:51:53.000Z | 2020-05-11T15:01:08.000Z | src/cascadia/TerminalCore/TerminalApi.cpp | Kapperchino/Terminal | 4c47631bf4aa907aad4f7088bc7edc7e5cde11b9 | [
"MIT"
] | 1 | 2019-06-03T20:03:55.000Z | 2019-06-03T20:03:55.000Z | src/cascadia/TerminalCore/TerminalApi.cpp | vstoms/Terminal | 53f5ba294c5f84191dad517593cf6b330ee083c0 | [
"MIT"
] | 1 | 2019-09-15T10:27:17.000Z | 2019-09-15T10:27:17.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "Terminal.hpp"
using namespace Microsoft::Terminal::Core;
using namespace Microsoft::Console::Types;
using namespace Microsoft::Console::VirtualTerminal;
// Print puts the text in the buffer and moves the c... | 29.26087 | 91 | 0.685533 | Kapperchino |
745b39a581c9e05e896d866408e9fa27a77a7fd3 | 1,832 | cpp | C++ | source/circle.cpp | momenarahmati/programmiersprachen-aufgabenblatt-2 | b1e3725cfb61dcd58e1e22bbe0ed25646f7d068e | [
"MIT"
] | null | null | null | source/circle.cpp | momenarahmati/programmiersprachen-aufgabenblatt-2 | b1e3725cfb61dcd58e1e22bbe0ed25646f7d068e | [
"MIT"
] | null | null | null | source/circle.cpp | momenarahmati/programmiersprachen-aufgabenblatt-2 | b1e3725cfb61dcd58e1e22bbe0ed25646f7d068e | [
"MIT"
] | null | null | null | #include "circle.hpp"
#include <cmath>
#include "color.hpp"
#include "mat2.hpp"
#include "vec2.hpp"
#include "window.hpp"
#define Pi 3.1415926
Circle::Circle() :
center_{ 0.0,0.0 },
radius_{ 1.0 },
color_{ 0,0,0 }
{}
Circle::Circle(Vec2 const& center, float const& radius) :
center_{ center },
radius_{ radius }
{}... | 24.756757 | 94 | 0.644105 | momenarahmati |
746108a2246c09087ec538a341c4a6cb9ff7eea5 | 370 | cpp | C++ | LydiaLabExpPlugins/modeDebug/ModeDebugPluginWidget.cpp | mcoder2014/LydiaLabExpPlugins | b3d33ad8acdbb8bea2d6fe81ca2552cb9e6d0a08 | [
"MIT"
] | 1 | 2020-10-26T09:24:29.000Z | 2020-10-26T09:24:29.000Z | LydiaLabExpPlugins/modeDebug/ModeDebugPluginWidget.cpp | mcoder2014/LydiaLabExpPlugins | b3d33ad8acdbb8bea2d6fe81ca2552cb9e6d0a08 | [
"MIT"
] | null | null | null | LydiaLabExpPlugins/modeDebug/ModeDebugPluginWidget.cpp | mcoder2014/LydiaLabExpPlugins | b3d33ad8acdbb8bea2d6fe81ca2552cb9e6d0a08 | [
"MIT"
] | 1 | 2022-03-06T18:52:28.000Z | 2022-03-06T18:52:28.000Z | #include "ModeDebugPluginWidget.h"
#include "ui_ModeDebugPluginWidget.h"
ModeDebugPluginWidget::ModeDebugPluginWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::ModeDebugPluginWidget)
{
ui->setupUi(this);
}
ModeDebugPluginWidget::~ModeDebugPluginWidget()
{
delete ui;
}
Ui::ModeDebugPluginWidget *... | 18.5 | 63 | 0.748649 | mcoder2014 |
746113cc75ef14c42f8707fe6bf5c04e63d4b149 | 679 | cpp | C++ | qrecthf.cpp | koalakoker/resParser | 263eee6f4660628161ee5e47e9e6bf8f6709b638 | [
"Unlicense"
] | null | null | null | qrecthf.cpp | koalakoker/resParser | 263eee6f4660628161ee5e47e9e6bf8f6709b638 | [
"Unlicense"
] | null | null | null | qrecthf.cpp | koalakoker/resParser | 263eee6f4660628161ee5e47e9e6bf8f6709b638 | [
"Unlicense"
] | null | null | null | #include "qrecthf.h"
QRectHF::QRectHF()
{
}
QRectHF::QRectHF(QPoint topleft, QPoint bottomright) : QRect(topleft,bottomright)
{
m_topHF = hfloat(topleft.y());
m_leftHF = hfloat(topleft.x());
m_bottomHF = hfloat(bottomright.y());
m_rightHF = hfloat(bottomright.x());
}
QRectHF::QRectHF(QRectHF& val) : ... | 16.166667 | 81 | 0.662739 | koalakoker |
7464fe00bf0fe24c13b400af9da5d954590f232c | 4,747 | cpp | C++ | src/sequence/hmm/tools/hmm_train.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 615 | 2015-01-31T17:14:03.000Z | 2022-03-27T03:03:02.000Z | src/sequence/hmm/tools/hmm_train.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 167 | 2015-01-20T17:48:16.000Z | 2021-12-20T00:15:29.000Z | src/sequence/hmm/tools/hmm_train.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 264 | 2015-01-30T00:08:01.000Z | 2022-03-02T17:19:11.000Z | /**
* @file hmm_train.cpp
* @author Chase Geigle
*/
#include <iostream>
#include "cpptoml.h"
#include "meta/hashing/probe_map.h"
#include "meta/io/filesystem.h"
#include "meta/io/gzstream.h"
#include "meta/logging/logger.h"
#include "meta/sequence/hmm/discrete_observations.h"
#include "meta/sequence/hmm/hmm.h"
#in... | 28.42515 | 78 | 0.547925 | Lolik111 |
7468f4823bb7c06688068ccd69e9bfb46fa2c940 | 7,307 | cpp | C++ | src/impl.util.windows.cpp | stlsoft/recls | 8ffe32ce0fcf9cf9aeb6fa00c0a6e0bc3be78367 | [
"BSD-3-Clause"
] | 2 | 2015-10-08T09:46:51.000Z | 2019-10-11T20:32:24.000Z | src/impl.util.windows.cpp | stlsoft/recls | 8ffe32ce0fcf9cf9aeb6fa00c0a6e0bc3be78367 | [
"BSD-3-Clause"
] | null | null | null | src/impl.util.windows.cpp | stlsoft/recls | 8ffe32ce0fcf9cf9aeb6fa00c0a6e0bc3be78367 | [
"BSD-3-Clause"
] | 1 | 2021-02-15T23:42:24.000Z | 2021-02-15T23:42:24.000Z | /* /////////////////////////////////////////////////////////////////////////
* File: impl.util.windows.cpp
*
* Purpose: Windows utility functions for the recls API.
*
* Created: 17th August 2003
* Updated: 10th January 2017
*
* Home: http://recls.org/
*
* Copyright (c) 2003-2017, Mat... | 29.946721 | 112 | 0.553989 | stlsoft |
746c1ffc08fbe7812a9c30bd08f3bb6127ae702b | 235 | cpp | C++ | SeriesSum/series1/main.cpp | narendrajethi220/DSA | 26888fa0d529d6ee866f37e5305af50b1e9923e5 | [
"MIT"
] | null | null | null | SeriesSum/series1/main.cpp | narendrajethi220/DSA | 26888fa0d529d6ee866f37e5305af50b1e9923e5 | [
"MIT"
] | null | null | null | SeriesSum/series1/main.cpp | narendrajethi220/DSA | 26888fa0d529d6ee866f37e5305af50b1e9923e5 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int N;
cout<<"Enter the range";
cin>>N;
double sum=0.0;
for(int i=1;i<=N;i++)
{
sum+=((double)1/(i*i));
}
cout<<sum;
return 0;
}
| 13.823529 | 29 | 0.476596 | narendrajethi220 |
746ee98d246e1a64be2101c3a2c0923e28611ef3 | 1,361 | cpp | C++ | Sesion-1-Ambiente/Sesion-1-Ambiente/SH_BulletController.cpp | UPC-DESARROLLO-JUEGOS-1/2017-II-Shooter2D- | e8c17abe3023272f807cad38a11991d21b9242b8 | [
"MIT"
] | 1 | 2020-04-24T21:50:50.000Z | 2020-04-24T21:50:50.000Z | Sesion-1-Ambiente/Sesion-1-Ambiente/SH_BulletController.cpp | UPC-DESARROLLO-JUEGOS-1/2017-II-Shooter2D- | e8c17abe3023272f807cad38a11991d21b9242b8 | [
"MIT"
] | null | null | null | Sesion-1-Ambiente/Sesion-1-Ambiente/SH_BulletController.cpp | UPC-DESARROLLO-JUEGOS-1/2017-II-Shooter2D- | e8c17abe3023272f807cad38a11991d21b9242b8 | [
"MIT"
] | null | null | null | #include "SH_BulletController.h"
#include "SH_World.h"
#include "SH_BaseBullet.h"
#include "SH_PlayerBullet.h"
#include "SH_EnemyBullet.h"
#include "SH_EnumBullet.h"
SH_BulletController::SH_BulletController()
{
}
void SH_BulletController::Initialize(SH_World* world)
{
mWorld = world;
}
SH_BaseBullet* SH_BulletCont... | 18.902778 | 94 | 0.679647 | UPC-DESARROLLO-JUEGOS-1 |
746fca6bb3b63bd0d221a92b30a709046a15ba6f | 2,247 | cpp | C++ | src/test/cpp/skizzay/fsm/guarded_action_transition.t.cpp | skizzay/finite-state-machine | f7eef45c2a9a4508e035ed11f7ee75b69e3ad7ac | [
"MIT"
] | null | null | null | src/test/cpp/skizzay/fsm/guarded_action_transition.t.cpp | skizzay/finite-state-machine | f7eef45c2a9a4508e035ed11f7ee75b69e3ad7ac | [
"MIT"
] | null | null | null | src/test/cpp/skizzay/fsm/guarded_action_transition.t.cpp | skizzay/finite-state-machine | f7eef45c2a9a4508e035ed11f7ee75b69e3ad7ac | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include <skizzay/fsm/ancestors.h>
#include <skizzay/fsm/guarded_action_transition.h>
using namespace skizzay::fsm;
namespace {
struct timer_expired {};
struct green {};
struct red {
bool should_transition_result = true;
bool should_transition(timer_expired const &) const noexcept {
ret... | 33.537313 | 76 | 0.635069 | skizzay |
7478359e44d5f7d65fd52c8f994cc956a1720ee0 | 560 | cpp | C++ | Mutex/src/mutex1.cpp | tcandzq/CPPExperiment | db25532648d12fd5a2c86213d92f29f2cfe3f628 | [
"MIT"
] | null | null | null | Mutex/src/mutex1.cpp | tcandzq/CPPExperiment | db25532648d12fd5a2c86213d92f29f2cfe3f628 | [
"MIT"
] | null | null | null | Mutex/src/mutex1.cpp | tcandzq/CPPExperiment | db25532648d12fd5a2c86213d92f29f2cfe3f628 | [
"MIT"
] | null | null | null | #include<iostream>
#include<mutex>
#include<thread>
#include<vector>
using namespace std;
mutex g_mutex;
int g_count = 0;
void Counter()
{
g_mutex.lock();
int i = ++g_count;
cout << "cout: " << i << endl;
g_mutex.unlock();
}
int main()
{
const size_t SIZE = 4;
// Create a group of counter... | 14.358974 | 41 | 0.564286 | tcandzq |
747d94b3ffd29bc75ade9032437c7a9cf291539d | 660 | cpp | C++ | codes/moderncpp/overload/overload02/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 3 | 2022-01-25T07:33:43.000Z | 2022-03-30T10:25:09.000Z | codes/moderncpp/overload/overload02/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | null | null | null | codes/moderncpp/overload/overload02/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 2 | 2022-01-17T13:39:12.000Z | 2022-03-30T10:25:12.000Z | #include <iostream>
#include <variant>
template <class F1, class F2>
struct overload : F1, F2
{
overload(F1 const& f1, F2 const& f2) : F1{f1}, F2{f2}
{
std::cout << "overload::overload\n";
}
~overload()
{
std::cout << "overload::~overload\n";
}
using F1::operator();
... | 18.333333 | 61 | 0.466667 | eric2003 |
7489844774ef8f830116f71d17e326f7529cea2f | 7,148 | cpp | C++ | test/unit/ut_action.cpp | MikeCharikov/vsm-cpp-sdk | 966dfe7cd3a436f8452e16c97328e720f882c484 | [
"BSD-3-Clause"
] | 1 | 2020-04-24T17:50:56.000Z | 2020-04-24T17:50:56.000Z | test/unit/ut_action.cpp | AlexandreBorowczyk/vsm-cpp-sdk | 234be1fc05697b79b88398b2c425a5b35d6e3ffb | [
"BSD-3-Clause"
] | null | null | null | test/unit/ut_action.cpp | AlexandreBorowczyk/vsm-cpp-sdk | 234be1fc05697b79b88398b2c425a5b35d6e3ffb | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2018, Smart Projects Holdings Ltd
// All rights reserved.
// See LICENSE file for license details.
#include <UnitTest++.h>
#include <ugcs/vsm/actions.h>
using namespace ugcs::vsm;
Geodetic_tuple geo_pos(1,2,3);
Wgs84_position position(geo_pos);
TEST(convertions_from_base_class_wait)
{
Action::... | 34.038095 | 91 | 0.686766 | MikeCharikov |
749839e336e5cb55b4a3992005f5a9f39cc954a2 | 266,481 | cpp | C++ | src/main_4900.cpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | src/main_4900.cpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | src/main_4900.cpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
// Including type: OVR.OpenVR.IVRSystem/OVR.OpenVR._ResetSeatedZeroPose
#include "OVR/OpenVR/IVRSystem__ResetSeatedZ... | 81.968933 | 416 | 0.782799 | v0idp |
749bcf92b37ac0ba601e16971c55377063f38aba | 2,854 | cpp | C++ | exportNF/release/windows/obj/src/flixel/input/actions/ResetPolicy.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | exportNF/release/windows/obj/src/flixel/input/actions/ResetPolicy.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | exportNF/release/windows/obj/src/flixel/input/actions/ResetPolicy.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | // Generated by Haxe 4.2.1+bf9ff69
#include <hxcpp.h>
#ifndef INCLUDED_flixel_input_actions_ResetPolicy
#include <flixel/input/actions/ResetPolicy.h>
#endif
namespace flixel{
namespace input{
namespace actions{
::flixel::input::actions::ResetPolicy ResetPolicy_obj::ALL_SETS;
::flixel::input::actions::ResetPolicy Res... | 32.067416 | 168 | 0.736861 | theblobscp |
749cc5378df5ed5d1784f0ce941407ced7d5e34d | 1,127 | cpp | C++ | C++/findSubstring.cpp | colorfulberry/LeetCode | a4103a63d2969e8819447685f42423cd22fed2ff | [
"MIT"
] | 2 | 2020-04-08T17:57:43.000Z | 2021-11-07T09:11:51.000Z | C++/findSubstring.cpp | colorfulberry/LeetCode | a4103a63d2969e8819447685f42423cd22fed2ff | [
"MIT"
] | null | null | null | C++/findSubstring.cpp | colorfulberry/LeetCode | a4103a63d2969e8819447685f42423cd22fed2ff | [
"MIT"
] | 8 | 2018-03-13T18:20:26.000Z | 2022-03-09T19:48:11.000Z | // Time Complexity: O((m - n * k) * n * k) ~ O(m * n * k), where m is string length, n is dict size, k is word length
// Space Complexity: O( n * k)
class Solution {
public:
vector<int> findSubstring(string s, vector<string> &dict) {
const size_t wordLength = dict.front().length();
c... | 34.151515 | 117 | 0.511979 | colorfulberry |
749e46b8f34a6252e282499cffa6a56a92e50d63 | 7,867 | cpp | C++ | CFD/src/mesh_generation/hexcore.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | CFD/src/mesh_generation/hexcore.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | CFD/src/mesh_generation/hexcore.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z | #include "mesh_generation/hexcore.h"
#include "core/math/aabb.h"
#include "core/container/tvector.h"
#include "mesh_generation/point_octotree.h"
#include <set>
struct HexcoreCell {
u64 morton;
uint depth; //todo could compute this implicitly, but probably more error prone
bool front;
union {
H... | 29.245353 | 101 | 0.519385 | CompilerLuke |
749f389de3bac739587fcfed16103233f8ba35a2 | 1,413 | hpp | C++ | src/lib/interface/AffichageReseau.hpp | EXsky51/in608-tcp_ip_simulation | 98376c152a062ce2a23cfab775c89d31a156e2e6 | [
"MIT"
] | 2 | 2021-05-25T22:44:15.000Z | 2021-05-31T00:19:30.000Z | src/lib/interface/AffichageReseau.hpp | EXsky51/in608-tcp_ip_simulation | 98376c152a062ce2a23cfab775c89d31a156e2e6 | [
"MIT"
] | 3 | 2021-05-17T12:46:46.000Z | 2021-05-24T10:18:11.000Z | src/lib/interface/AffichageReseau.hpp | EXsky51/in608-tcp_ip_simulation | 98376c152a062ce2a23cfab775c89d31a156e2e6 | [
"MIT"
] | 32 | 2021-05-03T12:05:42.000Z | 2021-05-25T16:15:45.000Z | /**
* @file AffichageReseau.hpp
* @brief Déclaration de la classe AffichageReseau.
*
* @author Johann RAMANANDRAISIORY
* @date 2021
**/
#ifndef AFFICHAGERESEAU_H
#define AFFICHAGERESEAU_H
#include "Contexte.hpp"
#include <QApplication>
#include <QWidget>
#include <QPushButton>
#inclu... | 20.779412 | 58 | 0.624204 | EXsky51 |
74a1f318626066b24f7134aa1ac433fdc0b2a719 | 441 | cpp | C++ | Advance Recursion/knapsack.cpp | Mythical-stack/C-Crash-Course | 323b7f5b1e0b270138e54a1a18fb1e81015a1763 | [
"Apache-2.0"
] | 1 | 2021-08-10T11:45:13.000Z | 2021-08-10T11:45:13.000Z | Advance Recursion/knapsack.cpp | jkbells/C-Crash-Course | 323b7f5b1e0b270138e54a1a18fb1e81015a1763 | [
"Apache-2.0"
] | null | null | null | Advance Recursion/knapsack.cpp | jkbells/C-Crash-Course | 323b7f5b1e0b270138e54a1a18fb1e81015a1763 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int knapsack(int value[], int wt[], int n,int w){
if(n==0 || w == 0){
return 0;
}
if(wt[n-1] > w){
return knapsack(value,wt,n-1,w);
}
return max(knapsack(value,wt,n-1, w-wt[n-1])+value[n-1],knapsack(value,wt,n-1,w));
}
int main()
{
int w... | 19.173913 | 86 | 0.535147 | Mythical-stack |
74a61de67f99b88a582eb9e12d85cf90891acbb9 | 663 | cpp | C++ | examples/ex_filesys_watcher.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 25 | 2015-03-30T02:02:43.000Z | 2019-03-04T22:29:12.000Z | examples/ex_filesys_watcher.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 122 | 2015-04-01T08:15:26.000Z | 2019-10-16T20:31:22.000Z | examples/ex_filesys_watcher.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 4 | 2016-09-02T12:14:09.000Z | 2018-11-23T20:38:49.000Z |
#include <allegro_flare/allegro_flare.h>
using namespace allegro_flare;
class MyProject : public Screen
{
public:
MyProject(Display *display)
: Screen(display)
{
// watch the executable directory
FileSysWatcher::watch_directory__in_thread(".");
}
void user_event_func() override... | 13.26 | 56 | 0.616893 | MarkOates |
74abe413be908a5a95d1a36757e8e6aecedd7c09 | 1,702 | cpp | C++ | codechef/PLUS/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codechef/PLUS/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codechef/PLUS/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 26-05-2018 20:55:53
* solution_verdict: Partially Accepted language: C++14
* run... | 27.451613 | 111 | 0.363102 | kzvd4729 |
74af1ce4aa917359acc3c826d3982f183fcd498a | 17,617 | cpp | C++ | src/python/bindings/bindings_selection.cpp | mdimura/pteros | 1692394075482987638c40236312ebaac49d5780 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-12-01T10:28:52.000Z | 2020-12-01T10:28:52.000Z | src/python/bindings/bindings_selection.cpp | mdimura/pteros | 1692394075482987638c40236312ebaac49d5780 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/python/bindings/bindings_selection.cpp | mdimura/pteros | 1692394075482987638c40236312ebaac49d5780 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /*
* This file is a part of
*
* ============================================
* ### Pteros molecular modeling library ###
* ============================================
*
* https://github.com/yesint/pteros
*
* (C) 2009-2020, Semen Yesylevskyy
*
* All works, which use Pteros, should cite the following paper... | 47.485175 | 174 | 0.604586 | mdimura |
74b2e71be885b294e25bbe33cbb1b2c19c230b88 | 714 | cpp | C++ | Company: Adobe/1.Subarray_with_given_sum.cpp | vaibhavkrishanyadav/6Companies30Days | a6f72ffce08a67df8b2ebada6008d01a90291d49 | [
"MIT"
] | null | null | null | Company: Adobe/1.Subarray_with_given_sum.cpp | vaibhavkrishanyadav/6Companies30Days | a6f72ffce08a67df8b2ebada6008d01a90291d49 | [
"MIT"
] | null | null | null | Company: Adobe/1.Subarray_with_given_sum.cpp | vaibhavkrishanyadav/6Companies30Days | a6f72ffce08a67df8b2ebada6008d01a90291d49 | [
"MIT"
] | null | null | null | //1.Subarray with given sum
//https://practice.geeksforgeeks.org/problems/subarray-with-given-sum-1587115621/1
class Solution
{
public:
//Function to find a continuous sub-array which adds up to a given number.
vector<int> subarraySum(int arr[], int n, long long s)
{
// Your code here
i... | 24.62069 | 82 | 0.478992 | vaibhavkrishanyadav |
74b8e2e40bd35a2f76965d519300372cb9de76ff | 1,142 | hpp | C++ | PolyEngine/RenderingDevice/OpenGL/Src/GLTextureDeviceProxy.hpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 1 | 2017-04-30T13:55:54.000Z | 2017-04-30T13:55:54.000Z | PolyEngine/RenderingDevice/OpenGL/Src/GLTextureDeviceProxy.hpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | null | null | null | PolyEngine/RenderingDevice/OpenGL/Src/GLTextureDeviceProxy.hpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 3 | 2017-11-22T16:37:26.000Z | 2019-04-24T17:47:58.000Z | #pragma once
#include <IRenderingDevice.hpp>
#include "GLUtils.hpp"
namespace Poly
{
struct ScreenSize;
enum class eInternalTextureUsageType
{
NONE,
COLOR_ATTACHEMENT,
DEPTH_ATTACHEMENT,
_COUNT
};
class GLTextureDeviceProxy : public ITextureDeviceProxy
{
public:
GLTextureDeviceProxy(size_t width, s... | 26.55814 | 145 | 0.784588 | MuniuDev |
74bd1e36f103407b376a0a3ad380c153c8414258 | 6,286 | hh | C++ | src/laserdisc/LaserdiscPlayer.hh | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 7 | 2019-10-11T21:47:05.000Z | 2021-10-05T19:58:18.000Z | src/laserdisc/LaserdiscPlayer.hh | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2019-05-25T21:08:47.000Z | 2019-05-25T21:10:35.000Z | src/laserdisc/LaserdiscPlayer.hh | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #ifndef LASERDISCPLAYER_HH
#define LASERDISCPLAYER_HH
#include "ResampledSoundDevice.hh"
#include "BooleanSetting.hh"
#include "RecordedCommand.hh"
#include "EmuTime.hh"
#include "Schedulable.hh"
#include "DynamicClock.hh"
#include "Filename.hh"
#include "VideoSystemChangeListener.hh"
#include "EventListener.hh"
#incl... | 26.411765 | 89 | 0.742921 | D15C0DE |
74bd36cecac3a9ad05697054786227de758aded2 | 1,683 | cpp | C++ | Concurrency/1116_PrintZeroEvenOdd/ZeroEvenOdd_lockfree.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | 1 | 2020-03-08T23:23:38.000Z | 2020-03-08T23:23:38.000Z | Concurrency/1116_PrintZeroEvenOdd/ZeroEvenOdd_lockfree.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | 1 | 2020-01-27T14:01:43.000Z | 2020-01-27T14:01:43.000Z | Concurrency/1116_PrintZeroEvenOdd/ZeroEvenOdd_lockfree.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | null | null | null | // Runtime: 60 ms, faster than 35.63% of C++ online submissions for Print Zero Even Odd.
// Memory Usage: 9.2 MB, less than 100.00% of C++ online submissions for Print Zero Even Odd.
#include <atomic>
#include <thread>
class ZeroEvenOdd
{
private:
int n;
std::atomic<bool> isZero{true};
std::atomic<bool> i... | 23.704225 | 93 | 0.465835 | liweiyap |
74bd78491bad1e8e46bd345f1d313f152484e7d8 | 11,775 | cpp | C++ | src/main.cpp | sei-kiu/Wio-Terminal-Grove-infrared-receiver | 5d68096826bcf9dbee7470a14bf94147af951200 | [
"MIT"
] | 2 | 2022-01-05T10:15:12.000Z | 2022-01-05T10:15:28.000Z | src/main.cpp | sei-kiu/Wio-Terminal-detecting-IR-remote-button-presses | 5d68096826bcf9dbee7470a14bf94147af951200 | [
"MIT"
] | null | null | null | src/main.cpp | sei-kiu/Wio-Terminal-detecting-IR-remote-button-presses | 5d68096826bcf9dbee7470a14bf94147af951200 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include "../include/Free_Fonts.h" //include free fonts library from https://github.com/Seeed-Studio/Seeed_Arduino_LCD/blob/master/examples/320x240/Free_Font_Demo/Free_Fonts.h
#include "TFT_eSPI.h"
#include "IRremote.h"
TFT_eSPI tft;
int IR_RECEIVE_PIN = 0;
IRrecv irrecv(IR_RECEIVE_PIN);
Stri... | 56.610577 | 363 | 0.656985 | sei-kiu |
74be1efb0c36c92b9ed0bddfd73d002c907871ab | 7,354 | cpp | C++ | ubc/Object.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | 1 | 2021-09-14T06:12:58.000Z | 2021-09-14T06:12:58.000Z | ubc/Object.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | null | null | null | ubc/Object.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | 2 | 2019-05-13T23:04:31.000Z | 2021-09-14T06:12:59.000Z | #include <libutl/libutl.h>
#include <libutl/AutoPtr.h>
#include <libutl/Bool.h>
#include <libutl/MaxObject.h>
#include <libutl/String.h>
#include <libutl/Uint.h>
////////////////////////////////////////////////////////////////////////////////////////////////////
UTL_CLASS_IMPL_ABC(utl::Object);
/////////////////////... | 25.098976 | 100 | 0.406174 | Brillist |
74c0e973c0c8c7624c39b0b80cf7a44c5b00baf9 | 5,727 | cpp | C++ | src/ir/types.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | src/ir/types.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | src/ir/types.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | #include "coreir/ir/types.h"
#include "coreir/ir/globalvalue.h"
#include "coreir/ir/casting/casting.h"
#include "coreir/ir/context.h"
#include "coreir/ir/namespace.h"
#include "coreir/ir/common.h"
#include "coreir/ir/error.h"
#include "coreir/ir/typegen.h"
#include "coreir/ir/value.h"
using namespace std;
namespace C... | 27.401914 | 199 | 0.629824 | joyliu37 |
74caf89198d5b02f3d3cfc4ba0583460d4c94a2e | 1,418 | cpp | C++ | test/sequencer/SeqTest4.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 10 | 2015-02-17T15:27:50.000Z | 2021-12-10T08:34:13.000Z | test/sequencer/SeqTest4.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 6 | 2016-05-10T17:11:09.000Z | 2022-03-31T07:52:11.000Z | test/sequencer/SeqTest4.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 13 | 2016-05-01T09:56:51.000Z | 2022-03-28T09:27:49.000Z | #include <eeros/logger/StreamLogWriter.hpp>
#include <eeros/sequencer/Sequencer.hpp>
#include <eeros/sequencer/Sequence.hpp>
#include <eeros/sequencer/Wait.hpp>
#include <eeros/core/Fault.hpp>
#include <signal.h>
#include <chrono>
#include <gtest/gtest.h>
namespace seqTest4 {
using namespace eeros::sequencer;
int cou... | 22.15625 | 136 | 0.673484 | ClaudiaVisentin |
74ccb968f62328c55d50c98104839a25b37eade1 | 3,689 | cpp | C++ | src/camera.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | 1 | 2020-09-23T11:17:35.000Z | 2020-09-23T11:17:35.000Z | src/camera.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | src/camera.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | #include "camera.hpp"
#include "engine.hpp"
#include "game_session.hpp"
namespace space
{
CameraProps::CameraProps() : scale(1.0f), following(false), followingRotation(false)
{
}
Camera::Camera(Engine &engine, std::string debugName) : debugName(debugName), _engine(engine), _zoomScale(1.0f)
{
... | 24.111111 | 115 | 0.548116 | astrellon |
74d77cd5445f3d1ecc810e8ecd96103fbe94940e | 5,872 | cpp | C++ | ChainIDE/contractwidget/ContractWidget.cpp | AnyChainIDE/AnyChainIDE | b4f2775a968b5aaa1114f58590f736f356fcf3b3 | [
"MIT"
] | null | null | null | ChainIDE/contractwidget/ContractWidget.cpp | AnyChainIDE/AnyChainIDE | b4f2775a968b5aaa1114f58590f736f356fcf3b3 | [
"MIT"
] | null | null | null | ChainIDE/contractwidget/ContractWidget.cpp | AnyChainIDE/AnyChainIDE | b4f2775a968b5aaa1114f58590f736f356fcf3b3 | [
"MIT"
] | null | null | null | #include "ContractWidget.h"
#include "ui_ContractWidget.h"
#include <QCoreApplication>
#include <QGuiApplication>
#include <QClipboard>
#include <QDir>
#include <QMenu>
#include "ChainIDE.h"
#include "datamanager/DataManagerHX.h"
#include "datamanager/DataManagerUB.h"
#include "datamanager/DataManagerCTC.h"
#include ... | 33.747126 | 197 | 0.676771 | AnyChainIDE |
74e135f01c967a7b4d283e4fac56d360ed812608 | 7,254 | cpp | C++ | bin/sept/ZoomWindow.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | bin/sept/ZoomWindow.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | bin/sept/ZoomWindow.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | // 2020.03.16 - Victor Dods
#include "MainWindow.hpp"
#include <iostream>
#include <QtWidgets>
bool WheelFilter::eventFilter (QObject *obj, QEvent *event)
{
if (event->type() == QEvent::Wheel) {
auto wheel_event = static_cast<QWheelEvent*>(event);
if (wheel_event->modifiers() == Qt::ControlModifi... | 35.558824 | 132 | 0.633995 | vdods |
74e205cb10d4ec90ec9ffc2ba3b208d12e7fbb4a | 1,249 | cpp | C++ | lambda.cpp | as-xjc/learn_cpp | 238c5fca03956393694436d43833598abb435963 | [
"MIT"
] | null | null | null | lambda.cpp | as-xjc/learn_cpp | 238c5fca03956393694436d43833598abb435963 | [
"MIT"
] | null | null | null | lambda.cpp | as-xjc/learn_cpp | 238c5fca03956393694436d43833598abb435963 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <set>
#include <thread>
#include <vector>
void static_or_local_lambda() {
static auto generator = []() {
return 1;
};
auto generator2 = []() {
return 1;
};
std::printf("generator 1:%p\n", &generator);
std::printf("generator 2:%p\n", &generator2);
}
... | 18.924242 | 86 | 0.567654 | as-xjc |
74e6ab1cb3afd798480ad9862f87c14473e2e6fd | 5,313 | hpp | C++ | include/as/multithread_task/parallel_for.hpp | asmith-git/multithread-task | 4b09b854aff2cf24651fd75bbed8d3019f8be379 | [
"Apache-2.0"
] | null | null | null | include/as/multithread_task/parallel_for.hpp | asmith-git/multithread-task | 4b09b854aff2cf24651fd75bbed8d3019f8be379 | [
"Apache-2.0"
] | null | null | null | include/as/multithread_task/parallel_for.hpp | asmith-git/multithread-task | 4b09b854aff2cf24651fd75bbed8d3019f8be379 | [
"Apache-2.0"
] | null | null | null | #ifndef ASMITH_PARALLEL_FOR_TASK_HPP
#define ASMITH_PARALLEL_FOR_TASK_HPP
// Copyright 2017 Adam Smith
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/l... | 30.36 | 202 | 0.654056 | asmith-git |
d55f8de827a5b2a68185b3d9d9d3c2bb3658bf6a | 17,143 | cpp | C++ | wpn.cpp | commandus/wpn | 7064b4effd1d1e502daf6bddcdf126165706ca32 | [
"MIT"
] | 2 | 2020-11-22T23:45:19.000Z | 2020-12-14T06:54:31.000Z | wpn.cpp | commandus/wpn | 7064b4effd1d1e502daf6bddcdf126165706ca32 | [
"MIT"
] | null | null | null | wpn.cpp | commandus/wpn | 7064b4effd1d1e502daf6bddcdf126165706ca32 | [
"MIT"
] | 1 | 2021-05-13T12:23:19.000Z | 2021-05-13T12:23:19.000Z | /**
* Copyright (c) 2018 Andrei Ivanov <andrei.i.ivanov@commandus.com>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights ... | 29.97028 | 158 | 0.635186 | commandus |
d563068ad87208151ba4618b1b8ed063349fe979 | 2,640 | cpp | C++ | Engine/source/sfx/sfxResource.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 2,113 | 2015-01-01T11:23:01.000Z | 2022-03-28T04:51:46.000Z | Engine/source/sfx/sfxResource.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 948 | 2015-01-02T01:50:00.000Z | 2022-02-27T05:56:40.000Z | Engine/source/sfx/sfxResource.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 944 | 2015-01-01T09:33:53.000Z | 2022-03-15T22:23:03.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | 31.807229 | 87 | 0.682197 | vbillet |
d56d520ca31a1a0d4e01db3fd7025bab7c717764 | 3,133 | cpp | C++ | lib/spdk/SpdkIoBuf.cpp | janlt/daqdb | 04ff602fe0a6c199a782b877203b8b8b9d3fec66 | [
"Apache-2.0"
] | 22 | 2019-02-08T17:23:12.000Z | 2021-10-12T06:35:37.000Z | lib/spdk/SpdkIoBuf.cpp | janlt/daqdb | 04ff602fe0a6c199a782b877203b8b8b9d3fec66 | [
"Apache-2.0"
] | 8 | 2019-02-11T06:30:47.000Z | 2020-04-22T09:49:44.000Z | lib/spdk/SpdkIoBuf.cpp | daq-db/daqdb | e30afe8a9a4727e60d0c1122d28679a4ce326844 | [
"Apache-2.0"
] | 10 | 2019-02-11T10:26:52.000Z | 2019-09-16T20:49:25.000Z | /**
* Copyright (c) 2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 30.125 | 76 | 0.637408 | janlt |
d570b489b19f2331a163a6fb31ebaebd8e1f7d88 | 803 | cpp | C++ | chp5-while-guess/chp5-while-guess/chp5-while-guess.cpp | cmacdougald/2020SPRING-ITSE1307 | c7d941deace980fd99dfadcd55518f75b3d20684 | [
"MIT"
] | null | null | null | chp5-while-guess/chp5-while-guess/chp5-while-guess.cpp | cmacdougald/2020SPRING-ITSE1307 | c7d941deace980fd99dfadcd55518f75b3d20684 | [
"MIT"
] | null | null | null | chp5-while-guess/chp5-while-guess/chp5-while-guess.cpp | cmacdougald/2020SPRING-ITSE1307 | c7d941deace980fd99dfadcd55518f75b3d20684 | [
"MIT"
] | null | null | null | // chp5-while-guess.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <time.h>
#include <cstdlib>
int main()
{
srand(time(0));
int intMAXNUMBER = 100;
int intRandomNumber = rand() % intMAXNUMBER + 1;
int intGuess = 0;
do {
std::cer... | 20.589744 | 79 | 0.582814 | cmacdougald |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.