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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
48f31abf0ae6a1c6a4b6b0e587ce546c4fce2f88 | 11,098 | cpp | C++ | Spitfire/RtcConductor.cpp | RainwayApp/spitfire | aec4f0184f93af8244a70f5d4a3c66ccebdf314d | [
"Apache-2.0"
] | 190 | 2017-09-06T19:55:48.000Z | 2022-02-11T22:26:29.000Z | Spitfire/RtcConductor.cpp | RainwayApp/spitfire | aec4f0184f93af8244a70f5d4a3c66ccebdf314d | [
"Apache-2.0"
] | 30 | 2017-10-02T09:26:11.000Z | 2021-06-05T22:06:34.000Z | Spitfire/RtcConductor.cpp | RainwayApp/spitfire | aec4f0184f93af8244a70f5d4a3c66ccebdf314d | [
"Apache-2.0"
] | 27 | 2017-09-14T11:46:01.000Z | 2022-03-23T09:00:53.000Z | #include <iostream>
#include <p2p/client/basic_port_allocator.h>
#include "RtcConductor.h"
namespace Spitfire
{
RtcConductor::RtcConductor()
{
RTC_LOG_T_F(LS_INFO);
// SUGG: Create observers on demand
peer_observer_.reset(new Observers::PeerConnectionObserver(this));
session_observer_ = new Observers::Crea... | 35.570513 | 167 | 0.752208 | RainwayApp |
48fe082d91c57376046d1652b005111b0bcf74d6 | 787 | hpp | C++ | include/cppurses/system/events/focus_event.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | include/cppurses/system/events/focus_event.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | include/cppurses/system/events/focus_event.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | #ifndef CPPURSES_SYSTEM_EVENTS_FOCUS_EVENT_HPP
#define CPPURSES_SYSTEM_EVENTS_FOCUS_EVENT_HPP
#include <cppurses/system/event.hpp>
namespace cppurses {
/// Sent to Widget that have just become the Widget in focus.
class Focus_in_event : public Event {
public:
bool send() const override;
bool filter_send(Wi... | 25.387097 | 61 | 0.749682 | jktjkt |
5b01899c9073aa6e6c1109fa93e610e786e738e1 | 3,032 | hpp | C++ | src/lib/lingo/utility/span.hpp | EliSauder/Lingo | ff0e0af04bb888b0e533f02fdeed52602e27d9e7 | [
"MIT"
] | 29 | 2020-01-05T19:26:47.000Z | 2021-11-21T10:25:26.000Z | src/lib/lingo/utility/span.hpp | EliSauder/Lingo | ff0e0af04bb888b0e533f02fdeed52602e27d9e7 | [
"MIT"
] | 57 | 2019-12-02T20:04:20.000Z | 2021-07-21T09:32:12.000Z | src/lib/lingo/utility/span.hpp | EliSauder/Lingo | ff0e0af04bb888b0e533f02fdeed52602e27d9e7 | [
"MIT"
] | 4 | 2020-01-06T03:42:36.000Z | 2021-07-12T20:40:52.000Z | #ifndef H_LINGO_UTILITY_SPAN
#define H_LINGO_UTILITY_SPAN
#include <lingo/platform/constexpr.hpp>
#include <lingo/utility/pointer_iterator.hpp>
#include <cassert>
#include <cstddef>
#include <iterator>
#include <type_traits>
namespace lingo
{
namespace utility
{
template <typename T>
class span
{
public:... | 22.459259 | 132 | 0.688654 | EliSauder |
5b01add79b6c8d014ba851129bdb4faa197fc697 | 541 | hpp | C++ | Practicum/Homework3/Header files/Card.hpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | Practicum/Homework3/Header files/Card.hpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | Practicum/Homework3/Header files/Card.hpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | /**
* Solution to homework assignment 3
* Object Oriented Programming Course
* Faculty of Mathematics and Informatics of Sofia University
* Summer semester 2020/2021
*
* @author Stefania Tsvetkova
* @idnumber 62573
* @task 1
* @compiler VC
*/
#pragma once
#include <string>
class Card
{
public:
// Constructors
Card... | 16.90625 | 60 | 0.722736 | nia-flo |
5b0dd00a69dcfbc2b121eab8d5e59b56e8141da5 | 8,954 | cpp | C++ | Algorithmic Trading.cpp | BillWCJ/AlgoTradingSciFi | 4235b4931d97f63420456f1ae03cad5bb4887cc5 | [
"Apache-2.0"
] | null | null | null | Algorithmic Trading.cpp | BillWCJ/AlgoTradingSciFi | 4235b4931d97f63420456f1ae03cad5bb4887cc5 | [
"Apache-2.0"
] | null | null | null | Algorithmic Trading.cpp | BillWCJ/AlgoTradingSciFi | 4235b4931d97f63420456f1ae03cad5bb4887cc5 | [
"Apache-2.0"
] | null | null | null | //----------------------------------------Inlcude Header & Source Files------------------
#include "AT-Header-Includes.h"
#include "AT-Header-Curl.h"
#include "AT-Header-User_Defined.h"
#include "AT-Source-Prototypes.cpp"
#include "AT-Source-Global_Variables.cpp"
#include "AT-Source-Curl.cpp"
#include "AT-Source-User_D... | 31.978571 | 160 | 0.530266 | BillWCJ |
5b0e1bdd20c1c04348131714d7b8db7983d79107 | 12,868 | cpp | C++ | spoki/libspoki/src/analysis/regression.cpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | 1 | 2022-02-03T15:35:16.000Z | 2022-02-03T15:35:16.000Z | spoki/libspoki/src/analysis/regression.cpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | null | null | null | spoki/libspoki/src/analysis/regression.cpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | null | null | null | /*
* This file is part of the CAF spoki driver.
*
* Copyright (C) 2018-2021
* Authors: Raphael Hiesgen
*
* All rights reserved.
*
* Report any bugs, questions or comments to raphael.hiesgen@haw-hamburg.de
*
*/
#include "spoki/analysis/regression.hpp"
#include <cassert>
namespace spoki::analysis {
double m... | 38.41194 | 80 | 0.612449 | inetrg |
5b0fec740010906f7f930d08c9c6ea58643b0369 | 17,143 | cpp | C++ | bullet-2.81-rev2613/src/BulletFluids/Sph/btFluidSphRigidConstraintSolver.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | 19 | 2015-01-18T09:34:48.000Z | 2021-07-22T08:00:17.000Z | bullet-2.81-rev2613/src/BulletFluids/Sph/btFluidSphRigidConstraintSolver.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | null | null | null | bullet-2.81-rev2613/src/BulletFluids/Sph/btFluidSphRigidConstraintSolver.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | 8 | 2015-02-09T08:03:04.000Z | 2021-07-22T08:01:54.000Z | /*
Bullet-FLUIDS
Copyright (c) 2012 Jackson Lee
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial app... | 43.732143 | 243 | 0.755702 | rtrius |
5b10dfe5d41c0bb4a90a02d3bf05986c19bc7517 | 15,302 | cpp | C++ | src/DFG.cpp | ecolab-nus/Morpher_CGRA_Mapper | dff8c005da1cd76db55d007c8dedcfb05536d53c | [
"MIT"
] | 12 | 2020-09-01T06:24:18.000Z | 2022-02-10T08:01:48.000Z | src/DFG.cpp | ecolab-nus/Morpher_CGRA_Mapper | dff8c005da1cd76db55d007c8dedcfb05536d53c | [
"MIT"
] | null | null | null | src/DFG.cpp | ecolab-nus/Morpher_CGRA_Mapper | dff8c005da1cd76db55d007c8dedcfb05536d53c | [
"MIT"
] | 4 | 2021-05-06T09:20:13.000Z | 2022-03-14T12:25:40.000Z | /*
* DFG.cpp
*
* Created on: 28 Feb 2018
* Author: manupa
*/
#include "DFG.h"
#include <assert.h>
#include <iostream>
#include <queue>
#include "Port.h"
#include <algorithm>
#include "tinyxml2.h"
using namespace tinyxml2;
namespace CGRAXMLCompile
{
DFG::DFG()
{
// TODO Auto-generated constructor stub
}
... | 22.872945 | 155 | 0.629003 | ecolab-nus |
5b11c8ad08cdb5e3c4bb34a909e37e9afac0224c | 10,612 | cpp | C++ | src/pages/expenses_pages.cpp | robromano/budgetwarrior | 376a7112812393cf357096fbc2a41b3973da65fd | [
"MIT"
] | null | null | null | src/pages/expenses_pages.cpp | robromano/budgetwarrior | 376a7112812393cf357096fbc2a41b3973da65fd | [
"MIT"
] | null | null | null | src/pages/expenses_pages.cpp | robromano/budgetwarrior | 376a7112812393cf357096fbc2a41b3973da65fd | [
"MIT"
] | null | null | null | //=======================================================================
// Copyright (c) 2013-2018 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=================================================================... | 28 | 172 | 0.557953 | robromano |
5b12853ae5b67ffaddb858a32276c9c2255d3aea | 2,727 | cc | C++ | dsms/src/execution/operators/select.cc | AlexeyAkhunov/streams | c527cdd48d1db229286c986761176ed536b7b86b | [
"BSD-3-Clause"
] | 2 | 2016-05-29T14:33:50.000Z | 2016-07-04T12:21:50.000Z | dsms/src/execution/operators/select.cc | AlexeyAkhunov/streams | c527cdd48d1db229286c986761176ed536b7b86b | [
"BSD-3-Clause"
] | null | null | null | dsms/src/execution/operators/select.cc | AlexeyAkhunov/streams | c527cdd48d1db229286c986761176ed536b7b86b | [
"BSD-3-Clause"
] | 2 | 2015-11-20T23:22:01.000Z | 2018-08-26T04:58:02.000Z | /**
* @file select.cc
* @date May 30, 2004
* @brief Implementation of the select operator
*/
#ifndef _SELECT_
#include "execution/operators/select.h"
#endif
#ifndef _DEBUG_
#include "common/debug.h"
#endif
using namespace Execution;
using namespace std;
#define UNLOCK_INPUT_TUPLE(t) (inStore ->... | 19.204225 | 68 | 0.678768 | AlexeyAkhunov |
5b12ae416756c8ce5aff5e6b3084c69de6b2dc92 | 10,957 | hpp | C++ | NeuKaDiS/KaDiS/external/RBC/external/tlx/tlx/string/replace.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | 284 | 2017-02-26T08:49:15.000Z | 2022-03-30T21:55:37.000Z | NeuKaDiS/KaDiS/external/RBC/external/tlx/tlx/string/replace.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | 24 | 2017-09-05T21:02:41.000Z | 2022-03-07T10:09:59.000Z | NeuKaDiS/KaDiS/external/RBC/external/tlx/tlx/string/replace.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | 62 | 2017-02-23T12:29:27.000Z | 2022-03-31T07:45:59.000Z | /*******************************************************************************
* tlx/string/replace.hpp
*
* Part of tlx - http://panthema.net/tlx
*
* Copyright (C) 2007-2017 Timo Bingmann <tb@panthema.net>
*
* All rights reserved. Published under the Boost Software License, Version 1.0
***********************... | 37.016892 | 80 | 0.642329 | bingmann |
5b17291083b2d13d020bc80076d828dee1819fc7 | 834 | hpp | C++ | Code/Engine/Math/RandomNumberGenerator.hpp | pronaypeddiraju/Engine | 0ca9720a00f51340c6eb6bba07d70972489663e8 | [
"Unlicense"
] | 1 | 2021-01-25T23:53:44.000Z | 2021-01-25T23:53:44.000Z | Code/Engine/Math/RandomNumberGenerator.hpp | pronaypeddiraju/Engine | 0ca9720a00f51340c6eb6bba07d70972489663e8 | [
"Unlicense"
] | null | null | null | Code/Engine/Math/RandomNumberGenerator.hpp | pronaypeddiraju/Engine | 0ca9720a00f51340c6eb6bba07d70972489663e8 | [
"Unlicense"
] | 1 | 2021-01-25T23:53:46.000Z | 2021-01-25T23:53:46.000Z | //------------------------------------------------------------------------------------------------------------------------------
#pragma once
typedef unsigned int uint;
//------------------------------------------------------------------------------------------------------------------------------
class RandomNumberGen... | 32.076923 | 128 | 0.515588 | pronaypeddiraju |
5b1bab9bc66e4cd90e080fbd7b5d5a84b2f32fb7 | 2,898 | cpp | C++ | tools/src/main/C++/server.cpp | jcarreira/spark | 0a5f85a838fb35dceedf76546d5c3a1788eeb539 | [
"Apache-2.0"
] | null | null | null | tools/src/main/C++/server.cpp | jcarreira/spark | 0a5f85a838fb35dceedf76546d5c3a1788eeb539 | [
"Apache-2.0"
] | null | null | null | tools/src/main/C++/server.cpp | jcarreira/spark | 0a5f85a838fb35dceedf76546d5c3a1788eeb539 | [
"Apache-2.0"
] | null | null | null | #include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <assert.h>
#include <sys/time.h>
#define PORT 9999
#define MILISECOND 1000 // 1ms = 1000 microseco... | 26.345455 | 91 | 0.645273 | jcarreira |
5b1c76af925e2027e796055338d80b5171ab56c3 | 338 | cpp | C++ | examples/misc/test_relpathmkdir.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | examples/misc/test_relpathmkdir.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | examples/misc/test_relpathmkdir.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z |
#include <saga/saga.hpp>
#include <vector>
int main ()
{
try
{
saga::filesystem::directory basedir("ssh://qb.loni.org/tmp/");
basedir.make_dir ("testdir");
basedir.close ();
}
catch ( const saga::exception & e )
{
std::cout << " SAGA exception: " << e.what () << std::endl;
return -1;
... | 15.363636 | 66 | 0.56213 | saga-project |
5b1de2f61a381dc0dc0ff220995476a36ffcc9b8 | 552 | hh | C++ | include/dynamic_graph_bridge/ros_init.hh | MaximilienNaveau/dynamic_graph_bridge | 6dafe58f9e72263fd361efa824c26ac49b96276d | [
"BSD-2-Clause"
] | null | null | null | include/dynamic_graph_bridge/ros_init.hh | MaximilienNaveau/dynamic_graph_bridge | 6dafe58f9e72263fd361efa824c26ac49b96276d | [
"BSD-2-Clause"
] | null | null | null | include/dynamic_graph_bridge/ros_init.hh | MaximilienNaveau/dynamic_graph_bridge | 6dafe58f9e72263fd361efa824c26ac49b96276d | [
"BSD-2-Clause"
] | 1 | 2021-11-29T16:46:35.000Z | 2021-11-29T16:46:35.000Z | #ifndef ROS_INIT_HH
# define ROS_INIT_HH
# include <ros/ros.h>
namespace dynamicgraph
{
ros::NodeHandle& rosInit (bool createAsyncSpinner=false, bool createMultiThreadSpinner=true);
/// \brief Return spinner or throw an exception if spinner
/// creation has been disabled at startup.
ros::AsyncSpinner& spinner... | 26.285714 | 95 | 0.744565 | MaximilienNaveau |
5b1fd99bba8635d6161f0c56081505ede17de9f1 | 1,693 | hpp | C++ | addons/medical_treatment/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/medical_treatment/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/medical_treatment/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | #define COMPONENT medical_treatment
#define COMPONENT_BEAUTIFIED Medical_Treatment
#include "\z\tfd\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
#ifdef DEBUG_ENABLED_MEDICAL_TREATMENT
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_MEDICAL_TREATMENT
#define ... | 21.705128 | 60 | 0.745422 | Task-Force-Dagger |
5b2099ab453050aa493da20b89f82d2e762ed3df | 687 | cpp | C++ | libs/segment/src/region.cpp | researchers-anonymous/test | 3a802254d53aca8635131b5b35f7f07d6eee0737 | [
"MIT"
] | 1 | 2021-06-27T21:46:33.000Z | 2021-06-27T21:46:33.000Z | libs/segment/src/region.cpp | researchers-anonymous/test | 3a802254d53aca8635131b5b35f7f07d6eee0737 | [
"MIT"
] | null | null | null | libs/segment/src/region.cpp | researchers-anonymous/test | 3a802254d53aca8635131b5b35f7f07d6eee0737 | [
"MIT"
] | null | null | null | #include <vector>
#include "outliers.h"
#include "i3dpcl.h"
#include "proposal.h"
#include "region.h"
#include "svd.h"
std::vector<Point> region::segment(std::vector<Point>& points)
{
// arguably unnecessary, still done
// to keep a 'non mutated' point cloud.
std::vector<Point> raw = points;
// rem... | 22.9 | 62 | 0.655022 | researchers-anonymous |
5b2317481e8628b4e2d6545aaf115e9634244471 | 506 | cpp | C++ | verify/verify-yuki/yuki-1170.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 69 | 2020-11-06T05:21:42.000Z | 2022-03-29T03:38:35.000Z | verify/verify-yuki/yuki-1170.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 21 | 2020-07-25T04:47:12.000Z | 2022-02-01T14:39:29.000Z | verify/verify-yuki/yuki-1170.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 9 | 2020-11-06T11:55:10.000Z | 2022-03-20T04:45:31.000Z | #define PROBLEM "https://yukicoder.me/problems/no/1170"
#include "../../template/template.hpp"
//
#include "../../data-structure/range-union-find.hpp"
using namespace Nyaan; void Nyaan::solve() {
inl(N, A, B);
vl x(N);
in(x);
RangeUnionFind uf(N);
rep(i, N) {
int l = lb(x, x[i] + A);
int r = lb(x, x... | 22 | 55 | 0.521739 | NachiaVivias |
5b297135c466cd8a2b4f9aa6cce5a269ae544257 | 7,299 | cpp | C++ | src/Connection.cpp | auduny/eventhub | 248771dfdd5b7cfcf9400ce48c4267231a7fd242 | [
"MIT"
] | null | null | null | src/Connection.cpp | auduny/eventhub | 248771dfdd5b7cfcf9400ce48c4267231a7fd242 | [
"MIT"
] | null | null | null | src/Connection.cpp | auduny/eventhub | 248771dfdd5b7cfcf9400ce48c4267231a7fd242 | [
"MIT"
] | null | null | null | #include "Connection.hpp"
#include <arpa/inet.h>
#include <fcntl.h>
#include <netinet/tcp.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <ctime>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "Common.hpp"
#include "Config.hpp"
#include "ConnectionWorker... | 26.445652 | 150 | 0.705713 | auduny |
5b2ebe14a4599c847f00946cbe29be01f36ee78b | 2,666 | cpp | C++ | app/src/interpolator.cpp | lygbuaa/eco_tracker | d77afb97d356769bfe5f7d9cb5e96b3cf40c4601 | [
"MIT"
] | 14 | 2019-04-20T05:38:18.000Z | 2021-04-08T06:30:41.000Z | app/src/interpolator.cpp | lygbuaa/eco_tracker | d77afb97d356769bfe5f7d9cb5e96b3cf40c4601 | [
"MIT"
] | 2 | 2020-06-06T11:12:06.000Z | 2020-08-10T11:27:12.000Z | app/src/interpolator.cpp | lygbuaa/eco_tracker | d77afb97d356769bfe5f7d9cb5e96b3cf40c4601 | [
"MIT"
] | 7 | 2019-07-12T03:47:34.000Z | 2021-04-08T06:44:17.000Z | #include "interpolator.hpp"
namespace eco_tracker {
void getInterpFourier(const int& filter_width,
const int& filter_height,
Eigen::MatrixXcf& interp1_fs,
Eigen::MatrixXcf& interp2_fs,
float a) {
Eigen::MatrixXcf temp1(filter_height, 1);
Eigen::MatrixXcf temp2(1, filter_width);
fo... | 35.078947 | 110 | 0.598275 | lygbuaa |
5b319737dd8abc9787dd8fc15d5d277383d7d109 | 1,751 | cc | C++ | src/core/interrupt/interrupt_controller_impl_test.cc | shimashimashi/gbeml | c40789e8592aef6665f15baec32d33a5283dfa62 | [
"MIT"
] | 1 | 2022-02-21T15:07:30.000Z | 2022-02-21T15:07:30.000Z | src/core/interrupt/interrupt_controller_impl_test.cc | shimashimashi/gbemu | c40789e8592aef6665f15baec32d33a5283dfa62 | [
"MIT"
] | 5 | 2022-02-24T14:15:24.000Z | 2022-03-03T17:24:35.000Z | src/core/interrupt/interrupt_controller_impl_test.cc | shimashimashi/gbemu | c40789e8592aef6665f15baec32d33a5283dfa62 | [
"MIT"
] | null | null | null | #include "core/interrupt/interrupt_controller_impl.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace gbeml {
TEST(InterruptControllerImplTest, readWrite) {
InterruptControllerImpl ic;
ic.writeInterruptFlag(0xff);
EXPECT_EQ(0xff, ic.readInterruptFlag());
ic.writeInterruptEnable(0xff);
EXPECT_... | 25.376812 | 55 | 0.768704 | shimashimashi |
5b319f2c81c0ab75b93e3fd5de3490157b800155 | 4,145 | hpp | C++ | android-31/android/opengl/EGL15.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/opengl/EGL15.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/opengl/EGL15.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
class JLongArray;
namespace android::opengl
{
class EGLConfig;
}
namespace android::opengl
{
class EGLContext;
}
namespace android::opengl
{
class EGLDisplay;
}
namespace android::opengl
{
class EGLImage;
}
namespace android::opengl
{
class EGLSurface;
}
namespace androi... | 38.027523 | 187 | 0.783353 | YJBeetle |
5b39844c5afd0a231c1f0063928977ac0ab550aa | 4,190 | hpp | C++ | datalake/common/tools/AbstractDatalakeTool.hpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 27 | 2017-11-04T23:58:54.000Z | 2022-03-28T14:21:50.000Z | datalake/common/tools/AbstractDatalakeTool.hpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 64 | 2020-03-16T19:59:43.000Z | 2022-03-18T14:49:18.000Z | datalake/common/tools/AbstractDatalakeTool.hpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 13 | 2019-12-01T21:32:33.000Z | 2022-03-28T15:40:02.000Z | // =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... | 43.195876 | 86 | 0.589737 | cmwill |
5b3bd8939f9454caeb6955693a9c736f322c0a4d | 1,244 | hpp | C++ | systems/opengl/OpenGLSystem.hpp | phisko/kengine | c30f98cc8e79cce6574b5f61088b511f29bbe8eb | [
"MIT"
] | 259 | 2018-11-01T05:12:37.000Z | 2022-03-28T11:15:27.000Z | systems/opengl/OpenGLSystem.hpp | raptoravis/kengine | 619151c20e9db86584faf04937bed3d084e3bc21 | [
"MIT"
] | 2 | 2018-11-30T13:58:44.000Z | 2018-12-17T11:58:42.000Z | systems/opengl/OpenGLSystem.hpp | raptoravis/kengine | 619151c20e9db86584faf04937bed3d084e3bc21 | [
"MIT"
] | 16 | 2018-12-01T13:38:18.000Z | 2021-12-04T21:31:55.000Z | #pragma once
#include "EntityCreator.hpp"
namespace kengine {
// These are the textures used by the "default" shaders
// If you want to use additional textures, you can either copy this struct or inherit from it,
// so long as you are careful to declare the reflectible attributes in the same order
// (as that or... | 36.588235 | 98 | 0.743569 | phisko |
5b3db57800fa6232eb39e9b7d49cc782d32e7e42 | 135 | cpp | C++ | allMatuCommit/循环打印10个星号_2021010801019_20210920083403.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | allMatuCommit/循环打印10个星号_2021010801019_20210920083403.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | allMatuCommit/循环打印10个星号_2021010801019_20210920083403.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | #include<stdio.h>
int main()
{
for (int i = 1; i <= 10; i++) {
if (i <= 9)printf("*");
else printf("*\n");
}
return 0;
} | 15 | 33 | 0.444444 | BachWV |
5b3e675fa8859376415c317ec1e4e862715005d8 | 14,210 | c++ | C++ | graph/graph.c++ | ALRBP/Private_Gossip_Average | 25f64a2ffe1b6a50a92a5eae7bc15f6eb503a82a | [
"MIT"
] | 2 | 2020-07-16T09:08:29.000Z | 2020-10-20T09:03:28.000Z | graph/graph.c++ | ALRBP/Private_Gossip_Average | 25f64a2ffe1b6a50a92a5eae7bc15f6eb503a82a | [
"MIT"
] | null | null | null | graph/graph.c++ | ALRBP/Private_Gossip_Average | 25f64a2ffe1b6a50a92a5eae7bc15f6eb503a82a | [
"MIT"
] | null | null | null |
#include <unordered_set>
#include <unordered_map>
#include <boost/dynamic_bitset.hpp>
#include "graph.h++"
PeersGraph::PeersGraph(void)
{
return;
}
PeersGraph::PeersGraph(const PeersGraph& t)
{
W = t.W;
}
PeersGraph::PeersGraph(HierarchicalGossipConnector tab[], size_t num)
{
W = boost::numeric::ublas... | 20.835777 | 169 | 0.373469 | ALRBP |
5b41fc4f3cae2f0ffd6e2f9259322e0dd17c9265 | 8,440 | cpp | C++ | Extern/mssdk_dx7/samples/Multimedia/DMusic/src/3DMusic/3dsound.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 1,040 | 2021-07-27T12:12:06.000Z | 2021-08-02T14:24:49.000Z | Extern/mssdk_dx7/samples/Multimedia/DMusic/src/3DMusic/3dsound.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 20 | 2021-07-27T12:25:22.000Z | 2021-08-02T12:22:19.000Z | Extern/mssdk_dx7/samples/Multimedia/DMusic/src/3DMusic/3dsound.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 71 | 2021-07-27T14:19:49.000Z | 2021-08-02T05:51:52.000Z | /*==========================================================================
*
* Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
*
* File: 3dsound.cpp
* Content: Windows setup and procs for DirectSound sample
*
**************************************************************************... | 27.225806 | 89 | 0.467062 | Ybalrid |
5b4282d6c35318ed94a910990e636d9438414d6a | 594 | hpp | C++ | src/include/XEngine/ResourceManager.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 11 | 2017-01-17T15:02:25.000Z | 2020-11-27T16:54:42.000Z | src/include/XEngine/ResourceManager.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 9 | 2016-10-23T20:15:38.000Z | 2018-02-06T11:23:17.000Z | src/include/XEngine/ResourceManager.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 2 | 2019-08-29T10:23:51.000Z | 2020-04-03T06:08:34.000Z | #pragma once
#include <string>
#include <memory>
#include <vector>
namespace XE
{
struct FileResource {
FileResource()
: buffer(nullptr){}
std::vector<char> bufferVec;
void* buffer;
};
class ResourceManager
{
public:
void _t_addLocationForRender(const std::string& location, const std::string& group, ... | 22.846154 | 175 | 0.734007 | devxkh |
5b48b9bdf7212fe8c782e4358713843cce1d356c | 3,638 | hpp | C++ | src/game_state.hpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/game_state.hpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/game_state.hpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014 Kristina Simpson <sweet.kristas@gmail.com>
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 app... | 33.685185 | 107 | 0.743815 | cbeck88 |
5b4a4ff2bf8005e70077834214ff13bb7ca1e3fa | 1,650 | cpp | C++ | koch.cpp | bhagi098/hello | 766e11db46da7d2d7518fea160121ce3cec2f6c4 | [
"Apache-2.0"
] | null | null | null | koch.cpp | bhagi098/hello | 766e11db46da7d2d7518fea160121ce3cec2f6c4 | [
"Apache-2.0"
] | null | null | null | koch.cpp | bhagi098/hello | 766e11db46da7d2d7518fea160121ce3cec2f6c4 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<stdio.h>
#include<graphics.h>
#include<stdlib.h>
using namespace std;
#define SIN 0.86602540 //sin(60 degrees)
int cnt=0;
void koch(int x1, int y1, int x2, int y2, int m)
{
int i,xx, yy, x[5], y[5], lx, ly, offx=50, offy=300;
lx=(x2-x1)/3;
ly=(y2-y1)/3;
x[... | 21.710526 | 71 | 0.492727 | bhagi098 |
5b4c73a53231c5f262652329584a5fa626c49037 | 248 | cpp | C++ | gEarth.Pack/oepUtil.cpp | songgod/gEarth | e4ea0fa15a40f08481c7ea7e42e6f4ace8659984 | [
"MIT"
] | 5 | 2021-06-16T06:24:29.000Z | 2022-03-10T03:41:44.000Z | gEarth.Pack/oepUtil.cpp | songgod/gEarth | e4ea0fa15a40f08481c7ea7e42e6f4ace8659984 | [
"MIT"
] | 1 | 2020-10-14T14:20:58.000Z | 2020-10-14T14:20:58.000Z | gEarth.Pack/oepUtil.cpp | songgod/gEarth | e4ea0fa15a40f08481c7ea7e42e6f4ace8659984 | [
"MIT"
] | 2 | 2021-06-16T06:24:32.000Z | 2021-08-02T09:05:42.000Z | #include "stdafx.h"
#include "oepUtil.h"
using namespace gEarthPack;
String^ gEarthPack::Str2Cli(const std::string& str)
{
return marshal_as<String^>(str);
}
std::string gEarthPack::Str2Std(String^ str)
{
return marshal_as<std::string>(str);
} | 17.714286 | 51 | 0.729839 | songgod |
5b52655c20a336e83c0b13357164468b75961eec | 1,795 | cpp | C++ | codeforces/B - Nastia and a Good Array/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/B - Nastia and a Good Array/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/B - Nastia and a Good Array/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: * kzvd4729 created: May/07/2021 21:06
* solution_verdict: Accepted language: GNU C++17 (64)
* run... | 26.791045 | 111 | 0.455153 | kzvd4729 |
5b5db68b4de5687b5d68fdb85fe1b5661fc8234c | 453 | cpp | C++ | rdPhysicS/rdPhysicS/src/rdps-packages/input/ContainerBuilder.cpp | rt-framework/rdPhysicalS | 0c4cd477169f2a573b1130f5d2867c04ce139368 | [
"MIT"
] | null | null | null | rdPhysicS/rdPhysicS/src/rdps-packages/input/ContainerBuilder.cpp | rt-framework/rdPhysicalS | 0c4cd477169f2a573b1130f5d2867c04ce139368 | [
"MIT"
] | null | null | null | rdPhysicS/rdPhysicS/src/rdps-packages/input/ContainerBuilder.cpp | rt-framework/rdPhysicalS | 0c4cd477169f2a573b1130f5d2867c04ce139368 | [
"MIT"
] | null | null | null | #include "ContainerBuilder.h"
#include "Container.h"
#include "base\PackageBase.h"
USING_RDPS
USING_PKG
ContainerBuilder::ContainerBuilder() :
container(new Container())
{}
ContainerBuilder::~ContainerBuilder()
{}
ContainerBuilder &ContainerBuilder::AddPackage(const std::string id,
PackageBase ... | 17.423077 | 69 | 0.730684 | rt-framework |
5b654b5cc6f00f5908970bf3b7c97b46839eead4 | 478 | cpp | C++ | 0067_add_binary.cpp | fxshan/LeetCode | a54bbe22bc335dcb3c7efffcc34357cab7641492 | [
"Apache-2.0"
] | 2 | 2020-06-04T13:20:20.000Z | 2020-06-04T14:49:10.000Z | 0067_add_binary.cpp | fxshan/LeetCode | a54bbe22bc335dcb3c7efffcc34357cab7641492 | [
"Apache-2.0"
] | null | null | null | 0067_add_binary.cpp | fxshan/LeetCode | a54bbe22bc335dcb3c7efffcc34357cab7641492 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
string addBinary(string a, tring b) {
int n = a.size(), m = b.size();
string res;
int k = max(n, m);
int x, y, carry = 0;
for (int i = 0; i < k; i++) {
x = i < n ? a[n - 1 - i] - '0' : 0;
y = i < m ? b[m - 1 - i] - '0' : 0;
x += y + carry;
carry = ... | 22.761905 | 41 | 0.426778 | fxshan |
5b66e69900811f973fc4f1f5b2c6f6d647606a5a | 487 | cpp | C++ | src/Randoms/The K-th Element.cpp | OmarElGabry/Cubes | 6102c0d680f047f24b7a85b75def6c7d2a6728c3 | [
"MIT"
] | 24 | 2015-09-20T20:01:53.000Z | 2019-03-06T19:26:23.000Z | src/Randoms/The K-th Element.cpp | musicrizz/cubes | 4e7f416d9c96617aa6752280fbfeb1e81237c700 | [
"MIT"
] | null | null | null | src/Randoms/The K-th Element.cpp | musicrizz/cubes | 4e7f416d9c96617aa6752280fbfeb1e81237c700 | [
"MIT"
] | 7 | 2015-09-20T20:21:10.000Z | 2021-01-29T16:15:56.000Z | #include <cstdlib>
#include <iostream>
using namespace std;
int main() {
// METHOD 1
const int n = 4;
int k = 5;
int array[n] = { 10, 4, 18, 3 };
int cur_numbers = 1;
while (cur_numbers < k) {
k -= cur_numbers;
cur_numbers++;
}
cout << array[k - 1] << endl;
// METHOD 2
int size = 0;
k = 5, cur_num... | 14.323529 | 39 | 0.560575 | OmarElGabry |
5b6c8fab03152b570ad65808949d5296f994fd23 | 217 | cc | C++ | code/debug_macro.cc | xry111/2019-summer-lecture-debug | ee9800750050cf724bd001c5f511dd0445a82cfe | [
"CC-BY-4.0"
] | 3 | 2019-09-08T11:41:34.000Z | 2020-11-14T12:20:57.000Z | code/debug_macro.cc | xry111/2019-summer-lecture-debug | ee9800750050cf724bd001c5f511dd0445a82cfe | [
"CC-BY-4.0"
] | null | null | null | code/debug_macro.cc | xry111/2019-summer-lecture-debug | ee9800750050cf724bd001c5f511dd0445a82cfe | [
"CC-BY-4.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define DBG(x) \
(void)(cout << "L" << __LINE__ \
<< ": " << #x << " = " \
<< (x) << '\n')
int main()
{
int something = 233;
DBG(something);
}
| 15.5 | 36 | 0.447005 | xry111 |
5b6de014af56ae6401c8dfe8aaef0666ed3dae38 | 1,245 | cpp | C++ | Memory-Partitioning/Fixed-MP/Equal/fmp.cpp | Gurubalan-GIT/OS-Algorithms | 0a5906b8e36343fe54e50094cf256dfea51422fd | [
"BSD-3-Clause"
] | null | null | null | Memory-Partitioning/Fixed-MP/Equal/fmp.cpp | Gurubalan-GIT/OS-Algorithms | 0a5906b8e36343fe54e50094cf256dfea51422fd | [
"BSD-3-Clause"
] | null | null | null | Memory-Partitioning/Fixed-MP/Equal/fmp.cpp | Gurubalan-GIT/OS-Algorithms | 0a5906b8e36343fe54e50094cf256dfea51422fd | [
"BSD-3-Clause"
] | null | null | null | /*
* Created Date: Thursday April 11th 2019
* Author: Gurubalan Harikrishnan
* Email-ID: gurubalan.work@gmail.com
* -----
* Copyright (c) 2019 Gurubalan Harikrishnan
*/
#include<iostream>
using namespace std;
int main(){
int osmem=100,a[100];
int mem,fixedmem,feasable,holes,n=0;
cout<<"Enter the memor... | 31.125 | 115 | 0.598394 | Gurubalan-GIT |
5b6e30d37d04067e2b791455540775d86bd7ba29 | 2,457 | cpp | C++ | MGS2.Options.cpp | bmn/mgs2mods | 48b6ffa54077b616327650e71ec1162c0c3163a6 | [
"MIT"
] | null | null | null | MGS2.Options.cpp | bmn/mgs2mods | 48b6ffa54077b616327650e71ec1162c0c3163a6 | [
"MIT"
] | null | null | null | MGS2.Options.cpp | bmn/mgs2mods | 48b6ffa54077b616327650e71ec1162c0c3163a6 | [
"MIT"
] | null | null | null | #include "MGS2.framework.h"
namespace MGS2::Options {
unsigned short AndMask = 0xFFFF;
unsigned short OrMask = 0;
unsigned short MusicVolume = 15;
unsigned short SEVolume = 15;
unsigned short Caption = 1;
char Applications = 0;
tFUN_Void oFUN_008787a0;
void __cdecl hkFUN_008787a0() {
if (App... | 24.326733 | 90 | 0.600326 | bmn |
5b710d23089a22363b39b34f78d7b4c0ef277710 | 31,085 | cpp | C++ | examples/IBFE/explicit/ex6/example.cpp | kkeonho/IBAMR | 50d5c37d8f2952abc21f05ab224f22003d23d6e7 | [
"BSD-3-Clause"
] | 264 | 2015-01-04T12:11:02.000Z | 2022-03-31T13:10:37.000Z | examples/IBFE/explicit/ex6/example.cpp | kkeonho/IBAMR | 50d5c37d8f2952abc21f05ab224f22003d23d6e7 | [
"BSD-3-Clause"
] | 1,057 | 2015-04-27T04:27:57.000Z | 2022-03-31T13:14:59.000Z | examples/IBFE/explicit/ex6/example.cpp | drwells/IBAMR | 0ceda3873405a35da4888c99e7d2b24d132f9071 | [
"BSD-3-Clause"
] | 126 | 2015-02-13T15:36:02.000Z | 2022-03-27T21:59:50.000Z | // ---------------------------------------------------------------------
//
// Copyright (c) 2017 - 2020 by the IBAMR developers
// All rights reserved.
//
// This file is part of IBAMR.
//
// IBAMR is free software and is distributed under the 3-clause BSD
// license. The full text of the license can be found in the f... | 47.241641 | 120 | 0.59125 | kkeonho |
ac8c1b413873dedfd46bac37619c87cd23e7d1c2 | 3,319 | cpp | C++ | general_image-fetch_cpp/general_image-fetch.cpp | liujiajun/examples | f5816f1720208c205411265357220afe03a5d16f | [
"MIT"
] | 8 | 2017-11-01T03:33:55.000Z | 2020-01-03T20:04:00.000Z | general_image-fetch_cpp/general_image-fetch.cpp | liujiajun/examples | f5816f1720208c205411265357220afe03a5d16f | [
"MIT"
] | 8 | 2017-10-27T09:03:35.000Z | 2019-07-03T07:45:35.000Z | general_image-fetch_cpp/general_image-fetch.cpp | liujiajun/examples | f5816f1720208c205411265357220afe03a5d16f | [
"MIT"
] | 17 | 2017-10-26T06:37:59.000Z | 2019-08-13T05:32:12.000Z | // Author(s): Inbae Jeong, Chansol Hong
// Maintainer: Chansol Hong (cshong@rit.kaist.ac.kr)
#include "ai_base.hpp"
#include <boost/lexical_cast.hpp>
#include <cppcodec/base64_rfc4648.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <fstream>
#include <iostream>
cla... | 29.633929 | 106 | 0.633022 | liujiajun |
ac929291e5a1d7f5e9b0b1923ea4dd7886733472 | 6,665 | cpp | C++ | app/src/main/jni/liveMedia/VorbisAudioRTPSource.cpp | Key-CN/Live555Porting-for-Android | db8b7b46fbc3dcf166c85cf3ec8b4cd04c3e2150 | [
"Apache-2.0"
] | 24 | 2017-08-10T16:33:03.000Z | 2022-03-25T16:18:18.000Z | app/src/main/jni/liveMedia/VorbisAudioRTPSource.cpp | Key-CN/Live555Porting-for-Android | db8b7b46fbc3dcf166c85cf3ec8b4cd04c3e2150 | [
"Apache-2.0"
] | 6 | 2017-11-01T09:58:05.000Z | 2020-10-17T13:17:48.000Z | app/src/main/jni/liveMedia/VorbisAudioRTPSource.cpp | Key-CN/Live555Porting-for-Android | db8b7b46fbc3dcf166c85cf3ec8b4cd04c3e2150 | [
"Apache-2.0"
] | 11 | 2017-08-28T13:02:43.000Z | 2021-04-15T07:19:02.000Z | /**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This librar... | 33.661616 | 183 | 0.688222 | Key-CN |
ac9a8e87a9e3b387ad15564d3c2ca2888b2b9ef9 | 1,988 | cpp | C++ | leetcode/heap/find_median.cpp | codingpotato/algorithm-cpp | 793dc9e141000f48ea19c77ef0047923a7667358 | [
"MIT"
] | null | null | null | leetcode/heap/find_median.cpp | codingpotato/algorithm-cpp | 793dc9e141000f48ea19c77ef0047923a7667358 | [
"MIT"
] | null | null | null | leetcode/heap/find_median.cpp | codingpotato/algorithm-cpp | 793dc9e141000f48ea19c77ef0047923a7667358 | [
"MIT"
] | null | null | null | #include <doctest/doctest.h>
#include <queue>
// 295. Find Median from Data Stream
class MedianFinder {
public:
MedianFinder() {}
void addNum(int num) {
if (small.empty() && big.empty()) {
small.push(num);
} else if (big.empty()) {
if (num <= small.top()) {
big.push(small.top());
... | 23.951807 | 68 | 0.551811 | codingpotato |
ac9f4204c506b5e7d37d06dab4aac8fbb10e298d | 914 | cpp | C++ | Love Babber OnGoing Placement/Queue/First_Non_Repeating_Character_In_The_Stream.cpp | work-mohit/Placement-Practice | 396e61f7980991b2d6392589f26f917981c135ab | [
"MIT"
] | null | null | null | Love Babber OnGoing Placement/Queue/First_Non_Repeating_Character_In_The_Stream.cpp | work-mohit/Placement-Practice | 396e61f7980991b2d6392589f26f917981c135ab | [
"MIT"
] | null | null | null | Love Babber OnGoing Placement/Queue/First_Non_Repeating_Character_In_The_Stream.cpp | work-mohit/Placement-Practice | 396e61f7980991b2d6392589f26f917981c135ab | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution {
public:
string FirstNonRepeating(string A){
queue<char> q;
int arr[26];
for(int i =0; i < 26; i++)
arr[i] = 0;
for(int i =0 ; i < A.length(); i++){
arr[... | 20.311111 | 65 | 0.413567 | work-mohit |
aca599455f4ea7348528212af3452bfc8b0cfeeb | 6,205 | cpp | C++ | src/win/FileUtilWin.cpp | ganego/gmic-8bf | ee49ae507da60d648df582772163e059faa9f4f1 | [
"MIT"
] | null | null | null | src/win/FileUtilWin.cpp | ganego/gmic-8bf | ee49ae507da60d648df582772163e059faa9f4f1 | [
"MIT"
] | null | null | null | src/win/FileUtilWin.cpp | ganego/gmic-8bf | ee49ae507da60d648df582772163e059faa9f4f1 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////
//
// This file is part of gmic-8bf, a filter plug-in module that
// interfaces with G'MIC-Qt.
//
// Copyright (c) 2020, 2021 Nicholas Hayes
//
// This file is licensed under the MIT License.
// See LICENSE.txt for complete licensing and attributi... | 22.896679 | 140 | 0.59162 | ganego |
aca7def74b9bdbf81917bd42dadb7b6d711e3063 | 34,555 | cpp | C++ | src/core/data_objects/string.cpp | karagog/gutil | 43936af9bc4be1945e4f1a3656e91dfbf42cc35b | [
"Apache-2.0"
] | null | null | null | src/core/data_objects/string.cpp | karagog/gutil | 43936af9bc4be1945e4f1a3656e91dfbf42cc35b | [
"Apache-2.0"
] | 2 | 2015-01-30T21:47:55.000Z | 2015-02-10T00:22:27.000Z | src/core/data_objects/string.cpp | karagog/gutil | 43936af9bc4be1945e4f1a3656e91dfbf42cc35b | [
"Apache-2.0"
] | null | null | null | /*Copyright 2010-2015 George Karagoulis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 24.664525 | 151 | 0.496889 | karagog |
acabb01e5b6c1945d634378a974f8175b04e9c77 | 12,186 | hpp | C++ | include/ext/net/mime/encode_mail_body.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | 1 | 2018-05-14T13:46:59.000Z | 2018-05-14T13:46:59.000Z | include/ext/net/mime/encode_mail_body.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | include/ext/net/mime/encode_mail_body.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <ext/is_string.hpp>
#include <ext/type_traits.hpp> // for is_iterator
#include <ext/base64.hpp>
#include <ext/net/mime/encoding_tables.hpp>
#include <ext/net/mime/encode_quoted_utils.hpp>
#include <ext/net/mime/mail_encoding.hpp>
#include <ext/net/smtp/smtp_extensions.hpp>
namespace ext::net::mi... | 37.495385 | 153 | 0.709749 | dmlys |
acaf58772980bdf9358d03a04135d041af64f8ad | 1,130 | cpp | C++ | Deitel/Chapter13/exercises/13.16/SavingsAccount.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Deitel/Chapter13/exercises/13.16/SavingsAccount.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Deitel/Chapter13/exercises/13.16/SavingsAccount.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | /*
* =====================================================================================
*
* Filename: SavingsAccount.cpp
*
* Description: Exercise 12.10 - Account Inheritance Hierarchy
*
* Version: 1.0
* Created: 24/07/16 20:28:01
* Revision: none
* Compiler: g++
*... | 27.560976 | 88 | 0.530088 | SebastianTirado |
acb6eda6354ab35a4fa1d7587e3ac65c35d69317 | 416 | cpp | C++ | hackerrank.com/infinitum16-firsttimer/xrange-and-pizza.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | hackerrank.com/infinitum16-firsttimer/xrange-and-pizza.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | hackerrank.com/infinitum16-firsttimer/xrange-and-pizza.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, m;
scanf("%d %d", &n, &m);
int loc = 0;
bool rev = false;
for (int i = 0; i < m; ++i) {
int type, k;
scanf("%d %d", &type, &k);
if (type == 1) {
loc = (loc + 2*k) % (2*n);
}
else {
rev ^= true;
loc = (2*k - loc + 2*n) % (2*n... | 13 | 35 | 0.430288 | s9v |
acb945b6db3280ca6902d7d6aae236007431f887 | 84 | cpp | C++ | ConsoleGameEngine/Exceptions.cpp | sirjavlux/ConsoleGameEngine | 04ece4053d7ad4566aef356fdb6e76233e8dd714 | [
"MIT"
] | 3 | 2021-01-03T12:44:08.000Z | 2021-01-08T14:02:50.000Z | ConsoleGameEngine/Exceptions.cpp | sirjavlux/ConsoleGameEngine | 04ece4053d7ad4566aef356fdb6e76233e8dd714 | [
"MIT"
] | null | null | null | ConsoleGameEngine/Exceptions.cpp | sirjavlux/ConsoleGameEngine | 04ece4053d7ad4566aef356fdb6e76233e8dd714 | [
"MIT"
] | null | null | null | #include <iostream>
#include <exception>
#include "SEngine.h"
using namespace std; | 14 | 20 | 0.75 | sirjavlux |
acc0640396f3f0ed4aceecd8362b6969773c198f | 1,487 | inl | C++ | mod/wrd/bridge/cpp/tcppBridgeFunc.inl | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | 1 | 2019-02-02T07:07:32.000Z | 2019-02-02T07:07:32.000Z | mod/wrd/bridge/cpp/tcppBridgeFunc.inl | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | 25 | 2016-09-23T16:36:19.000Z | 2019-02-12T14:14:32.000Z | mod/wrd/bridge/cpp/tcppBridgeFunc.inl | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | null | null | null | #pragma once
#include "tcppBridgeFunc.hpp"
#include "tcppBridge.hpp"
#include "../../frame/thread.hpp"
#include "../../ast/params.hpp"
namespace wrd {
#define TEMPL template <typename Ret, typename T, typename... Args>
#define ME tcppBridgeFuncBase<Ret, T, Args...>
TEMPL const params& ME::getParams() const {
... | 28.056604 | 112 | 0.613988 | kniz |
acc65d593a427ba17707336bab84eca2761cfb85 | 45,820 | cpp | C++ | Export.cpp | mkduncan/DeviceInterfaces | 100e86ae58e0c423df3f8c213d0a41d17005d571 | [
"MIT"
] | null | null | null | Export.cpp | mkduncan/DeviceInterfaces | 100e86ae58e0c423df3f8c213d0a41d17005d571 | [
"MIT"
] | null | null | null | Export.cpp | mkduncan/DeviceInterfaces | 100e86ae58e0c423df3f8c213d0a41d17005d571 | [
"MIT"
] | null | null | null | #include "Export.hpp"
#include "Logger.hpp"
#include "PrinterManager.hpp"
#include "Utility.hpp"
/*JNIEXPORT jboolean JNICALL JNIClassPath(addPrinter)(JNIEnv*, jobject)
{
return static_cast<jboolean>(PrinterManager::addPrinters());
}
JNIEXPORT jboolean JNICALL JNIClassPath(addPrinters)(JNIEnv*, jobject, jl... | 49.428263 | 17,202 | 0.68684 | mkduncan |
accf06d79af98df5f65bc793a0a10c656d04aa09 | 13,337 | cpp | C++ | shortest_path.cpp | andreashaja/CPP_ShortestPath | 1c8b3d332bf87a6f76778dfde09af326113ff14c | [
"MIT"
] | 1 | 2021-01-03T23:33:55.000Z | 2021-01-03T23:33:55.000Z | shortest_path.cpp | andreashaja/CPP_ShortestPath | 1c8b3d332bf87a6f76778dfde09af326113ff14c | [
"MIT"
] | 1 | 2020-08-28T17:17:52.000Z | 2020-08-28T17:17:52.000Z | shortest_path.cpp | andreashaja/CPP_ShortestPath | 1c8b3d332bf87a6f76778dfde09af326113ff14c | [
"MIT"
] | null | null | null | /* ---------------------------------------------------------------------
* The Fearless Engineer
* Copyright (C) 2020, Dr. Andreas Haja.
*
* Purpose: Program for finding the shortest path between cities using the Dikjstra / A* algorithm
*
* You should have received a copy of the MIT License along with this prog... | 42.610224 | 206 | 0.553423 | andreashaja |
accfab27dfa0f95571ce4c64f54f39d7694f04a5 | 489 | cpp | C++ | src/ECS/Exceptions/Exception.cpp | Ethan13310/ECS | 63aae52624b6468a7db078fdf7c32dd4caecaa70 | [
"MIT"
] | 12 | 2018-12-06T12:51:57.000Z | 2022-03-20T14:31:28.000Z | src/ECS/Exceptions/Exception.cpp | Ethan13310/ECS | 63aae52624b6468a7db078fdf7c32dd4caecaa70 | [
"MIT"
] | 1 | 2021-07-15T08:33:16.000Z | 2021-07-15T08:33:16.000Z | src/ECS/Exceptions/Exception.cpp | Ethan13310/ECS | 63aae52624b6468a7db078fdf7c32dd4caecaa70 | [
"MIT"
] | 3 | 2019-08-10T22:34:28.000Z | 2021-07-14T09:19:36.000Z | // Copyright (c) 2021 Ethan Margaillan <contact@ethan.jp>.
// Licensed under the MIT License - https://raw.githubusercontent.com/Ethan13310/ECS/master/LICENSE
#include <ECS/Exceptions/Exception.hpp>
ecs::Exception::Exception(std::string const &message) :
m_message{ message }
{}
ecs::Exception::Exception(std::string... | 27.166667 | 99 | 0.725971 | Ethan13310 |
acd10b196cccce6b8e3cad0388a0d466e135bb48 | 1,058 | hpp | C++ | Source/Utility/String/Tricks/kStringWhiteSpace.hpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | Source/Utility/String/Tricks/kStringWhiteSpace.hpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | Source/Utility/String/Tricks/kStringWhiteSpace.hpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../../../HelperMacros.hpp"
#include "../../../TypeTraits/StringTraits.hpp"
#include "../../Localization/kLocale.hpp"
namespace klib::kString
{
template<class CharT, class = std::enable_if_t<
type_trait::Is_Char_V<CharT>
>>
USE_RESULT constexpr bool IsWhiteSpace(CharT c)
{
const auto ... | 20.346154 | 70 | 0.664461 | KingKiller100 |
acd168aa9edba5e5ea7fbbf487cb9faaaab6f3eb | 257 | cpp | C++ | cgi-src/cgitest.cpp | jptech/web_server | f837142792e97448d44b256ec41a7c61d82686c1 | [
"BSD-3-Clause"
] | null | null | null | cgi-src/cgitest.cpp | jptech/web_server | f837142792e97448d44b256ec41a7c61d82686c1 | [
"BSD-3-Clause"
] | null | null | null | cgi-src/cgitest.cpp | jptech/web_server | f837142792e97448d44b256ec41a7c61d82686c1 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main(int argc, char **argv)
{
cout << "Hello I am a CGI test script \n";
if(argc >= 2)
{
cout << "The Square-Root of " << atoi(argv[1]) << " is " << sqrt(atoi(argv[1])) << endl;
}
} | 19.769231 | 92 | 0.571984 | jptech |
acd957f4a557674ab5443c0422ce0d094547a7cf | 8,752 | cpp | C++ | game/client/cstrike15/gameui/ironsight_editor.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/game/client/cstrike15/gameui/ironsight_editor.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/game/client/cstrike15/gameui/ironsight_editor.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
//
// Purpose:
//
//=============================================================================
#ifdef DEBUG
#include "cbase.h"
#include "ienginevgui.h"
#include "gameui_interface.h"
#include "basepanel.h"
#include "vgui/ILocalize.h"... | 30.925795 | 206 | 0.666819 | DannyParker0001 |
ace22bb70678243cafd518ce50b215a66e434c07 | 683 | cpp | C++ | build/cpp_test/src/__lib__.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | build/cpp_test/src/__lib__.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | build/cpp_test/src/__lib__.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#include <stdio.h>
extern "C" void __hxcpp_main();
extern "C" void __hxcpp_lib_main();
#ifndef INCLUDED_TestMain
#include <TestMain.h>
#endif
#ifndef INCLUDED_haxe_EntryPoint
#include <haxe/EntryPoint.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_fe66fde75063e1fc_1___hxcpp_mai... | 20.69697 | 133 | 0.718887 | TomBebb |
ace2463df5ab2d31d9e15547c436c6094ff758b1 | 1,028 | cpp | C++ | src/cpu.cpp | voidgloom/hyperfetch-cpp | bc70a60150908a6b3769b72dd57495c7c8b298c0 | [
"MIT"
] | null | null | null | src/cpu.cpp | voidgloom/hyperfetch-cpp | bc70a60150908a6b3769b72dd57495c7c8b298c0 | [
"MIT"
] | null | null | null | src/cpu.cpp | voidgloom/hyperfetch-cpp | bc70a60150908a6b3769b72dd57495c7c8b298c0 | [
"MIT"
] | null | null | null | #include "cpu.hpp"
#include "utils/cpuid.hpp"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
void CpuModule::fetch() {
CpuInfo cpu(true);
// check for cached cpu model name and read it if it exists
std::string cache_path = "/run/user/" + std::to_string(getuid()) + "/hyperfetch-cpp/cpu";
... | 32.125 | 93 | 0.588521 | voidgloom |
ace558bbdb6445a3847f6901a02c09cddb062f02 | 7,618 | cpp | C++ | tool_kits/ui_component/ui_kit/export/nim_ui_session_list_manager.cpp | stephenzhj/NIM_PC_Demo | 0d2933955e079afa5c9e4df196ee017fad6c79af | [
"BSD-2-Clause",
"OpenSSL"
] | 161 | 2016-01-24T13:55:15.000Z | 2021-06-01T03:48:56.000Z | tool_kits/ui_component/ui_kit/export/nim_ui_session_list_manager.cpp | stephenzhj/NIM_PC_Demo | 0d2933955e079afa5c9e4df196ee017fad6c79af | [
"BSD-2-Clause",
"OpenSSL"
] | 49 | 2016-01-24T14:06:52.000Z | 2021-06-01T07:14:53.000Z | tool_kits/ui_component/ui_kit/export/nim_ui_session_list_manager.cpp | xiejiulong/NIM_PC_Demo | 47f74270b200bb365035209c9734723f1cb7efea | [
"BSD-2-Clause",
"OpenSSL"
] | 140 | 2016-02-22T09:42:07.000Z | 2021-05-26T01:15:12.000Z | #include "stdafx.h"
#include "nim_ui_session_list_manager.h"
#include "callback/session/session_callback.h"
#include "nim_service/module/service/session_service.h"
#include "gui/main/team_event_form.h"
#include "gui/main/session_list.h"
namespace nim_ui
{
SessionListManager::SessionListManager()
{
nim_comp::SessionSe... | 32.555556 | 198 | 0.76713 | stephenzhj |
ace66fc40d75ff0ab3b44b024e07cd36661f7af1 | 13,255 | cpp | C++ | test/unit/alignment/pairwise/alignment_result_test.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | test/unit/alignment/pairwise/alignment_result_test.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | test/unit/alignment/pairwise/alignment_result_test.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
//
// Copyright (c) 2006-2018, Knut Reinert, FU Berlin
// Copyright (c) 2016-2018, Knut Reinert & MPI M... | 41.292835 | 128 | 0.592305 | giesselmann |
ace981e9cd3c15a6797e50c8fde9f17743ae9861 | 4,833 | hpp | C++ | kernel/include/sleep_queue.hpp | osstudy/thor-os | 9b5793da647a27d7a6de2e48f6dd39dca0313d2b | [
"BSL-1.0"
] | null | null | null | kernel/include/sleep_queue.hpp | osstudy/thor-os | 9b5793da647a27d7a6de2e48f6dd39dca0313d2b | [
"BSL-1.0"
] | null | null | null | kernel/include/sleep_queue.hpp | osstudy/thor-os | 9b5793da647a27d7a6de2e48f6dd39dca0313d2b | [
"BSL-1.0"
] | 1 | 2020-02-04T16:36:51.000Z | 2020-02-04T16:36:51.000Z | //=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// 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)
//================================================... | 26.266304 | 100 | 0.544382 | osstudy |
acea145aadabcaa83b20627ef78ecd09b314845b | 3,175 | cpp | C++ | src/kits/net/NetDebug.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | 3 | 2018-05-21T15:32:32.000Z | 2019-03-21T13:34:55.000Z | src/kits/net/NetDebug.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/kits/net/NetDebug.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | /* --------------------------------------------------------------------------
*
* BHAPI++ Copyright (C) 2017, Stanislaw Stasiak, based on Haiku & ETK++, The Easy Toolkit for C++ programing
* Copyright (C) 2004-2006, Anthony Lee, All Rights Reserved
*
* BHAPI++ library is a freeware; it may be used and distributed ... | 28.348214 | 109 | 0.665512 | stasinek |
acf07458efb02717a4e0b76a69b53a59858758cc | 4,110 | cpp | C++ | src/Drawing/OpenGL/OpenGLModel.cpp | tak2004/RF_UI | 848518a6defc6bf871f8cd306d6bd5d486ee401f | [
"Apache-2.0"
] | null | null | null | src/Drawing/OpenGL/OpenGLModel.cpp | tak2004/RF_UI | 848518a6defc6bf871f8cd306d6bd5d486ee401f | [
"Apache-2.0"
] | null | null | null | src/Drawing/OpenGL/OpenGLModel.cpp | tak2004/RF_UI | 848518a6defc6bf871f8cd306d6bd5d486ee401f | [
"Apache-2.0"
] | null | null | null | #include "RadonFramework/Drawing/OpenGL/OpenGLModel.hpp"
#include "RadonFramework/Drawing/OpenGL/OpenGL.hpp"
namespace RadonFramework::Drawing
{
void OpenGLModel::Generate(RF_Type::Float32* Vertices,
RF_Type::Size VertexCount,
RF_Type::Size ElementsPerVertex)
{
g... | 30.902256 | 79 | 0.640633 | tak2004 |
acf0ffae461ba7e843b63c069d7e07e7523708d0 | 5,461 | cpp | C++ | proj3/main.cpp | weixu000/physim | edc0eb5f0bb15caa996510a60c5440776cccd1b1 | [
"MIT"
] | null | null | null | proj3/main.cpp | weixu000/physim | edc0eb5f0bb15caa996510a60c5440776cccd1b1 | [
"MIT"
] | null | null | null | proj3/main.cpp | weixu000/physim | edc0eb5f0bb15caa996510a60c5440776cccd1b1 | [
"MIT"
] | null | null | null | #include <glad/glad.h>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <imgui_impl_opengl3.h>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/euler_angles.hpp>
#include "Axes.hpp"
#include "Camera.hpp"
#include "Collision.hpp"
#includ... | 24.488789 | 80 | 0.653177 | weixu000 |
acf7062c26237c030ec33c660e5fd42d61e45dda | 376 | cpp | C++ | CPP, C++ Solutions/334. Increasing Triplet Subsequence.cpp | arpitkekri/My-Leetcode-Solution-In-CPP | 345f1c53c627fce33ee84672c5d3661863367040 | [
"MIT"
] | 4 | 2021-06-21T04:32:12.000Z | 2021-11-02T04:20:36.000Z | CPP, C++ Solutions/334. Increasing Triplet Subsequence.cpp | arpitkekri/My-Leetcode-Solution-In-CPP | 345f1c53c627fce33ee84672c5d3661863367040 | [
"MIT"
] | null | null | null | CPP, C++ Solutions/334. Increasing Triplet Subsequence.cpp | arpitkekri/My-Leetcode-Solution-In-CPP | 345f1c53c627fce33ee84672c5d3661863367040 | [
"MIT"
] | 2 | 2021-08-19T11:27:18.000Z | 2021-09-26T14:51:30.000Z | // TC - O(N)
class Solution {
public:
bool increasingTriplet(vector<int>& nums) {
int n = nums.size();
int smaller = INT_MAX, next_smaller = INT_MAX;
for(int num: nums) {
if(num <= smaller) smaller = num;
else if(num <= next_smaller) next_smaller = num;
el... | 26.857143 | 60 | 0.534574 | arpitkekri |
acfaa450bb1b6542d254be59d62c0590a57feb0a | 2,310 | hpp | C++ | engine/runtime/rendering/generator/convex_polygon_mesh.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 791 | 2016-11-04T14:13:41.000Z | 2022-03-20T20:47:31.000Z | engine/runtime/rendering/generator/convex_polygon_mesh.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 28 | 2016-12-01T05:59:30.000Z | 2021-03-20T09:49:26.000Z | engine/runtime/rendering/generator/convex_polygon_mesh.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 151 | 2016-12-21T09:44:43.000Z | 2022-03-31T13:42:18.000Z | #ifndef GENERATOR_CONVEX_POLYGON_MESH_HPP
#define GENERATOR_CONVEX_POLYGON_MESH_HPP
#include <vector>
#include "math.hpp"
#include "mesh_vertex.hpp"
#include "triangle.hpp"
namespace generator
{
/// A polygonal disk with arbitrary number of corners.
/// Subdivided along each side to segments and radially to rings.... | 21.192661 | 90 | 0.725541 | ValtoForks |
4a02ba4a84bba6feddf1efe622f35e4e4ff6848b | 2,114 | cpp | C++ | Project Euler/problem18.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | Project Euler/problem18.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | Project Euler/problem18.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | #include<stdlib.h>
#include<iostream>
using namespace std;
int a[]={75,95, 64,17, 47, 82,18, 35, 87, 10,20, 04, 82, 47, 65,19, 01, 23, 75, 03, 34,88, 02, 77, 73, 07, 63, 67,99, 65, 04, 28, 06, 16, 70,92,41, 41, 26, 56, 83, 40, 80, 70, 33,41, 48, 72, 33, 47, 32, 37, 16, 94, 29,53, 71, 44, 65, 25, 43, 91, 52, 97, 51, 14... | 31.088235 | 473 | 0.309839 | TiwariAnil |
4a06e34dc08da7e8ca48a6dc544ad695cb49be85 | 847 | hpp | C++ | EnjoyEngine/EnjoyEngine/Time.hpp | Jar0T/EnjoyEngine_dll | 41e242a35e886a103e44f82d65586f19e0f4f81e | [
"MIT"
] | 1 | 2020-11-01T17:18:59.000Z | 2020-11-01T17:18:59.000Z | EnjoyEngine/EnjoyEngine/Time.hpp | Jar0T/EnjoyEngine_dll | 41e242a35e886a103e44f82d65586f19e0f4f81e | [
"MIT"
] | 21 | 2020-06-26T21:54:14.000Z | 2020-10-20T10:50:10.000Z | EnjoyEngine/EnjoyEngine/Time.hpp | Jar0T/EnjoyEngine_dll | 41e242a35e886a103e44f82d65586f19e0f4f81e | [
"MIT"
] | null | null | null | #pragma once
// System headers
// My headers
#include "Game.hpp"
#ifdef ENJOYENGINE_EXPORTS
#define ENJOYENGINE_API __declspec(dllexport)
#else
#define ENJOYENGINE_API __declspec(dllimport)
#endif
namespace EE {
/// <summary>
/// Class managing time elapsed between frames
/// </summary>
class ENJOYENGINE_API Ti... | 18.413043 | 68 | 0.681228 | Jar0T |
4a08892c71f283eea626f92520c1c06a111dcf92 | 872 | cpp | C++ | tests/main.cpp | danielealbano/cachegrand | 69c5e92b55c3851c2719a0ee26888243bf704b90 | [
"BSD-3-Clause"
] | 56 | 2020-05-14T15:39:25.000Z | 2022-03-16T04:31:21.000Z | tests/main.cpp | danielealbano/cachegrand | 69c5e92b55c3851c2719a0ee26888243bf704b90 | [
"BSD-3-Clause"
] | 62 | 2020-06-21T17:19:38.000Z | 2022-01-17T18:43:27.000Z | tests/main.cpp | danielealbano/cachegrand | 69c5e92b55c3851c2719a0ee26888243bf704b90 | [
"BSD-3-Clause"
] | 7 | 2020-06-05T15:40:33.000Z | 2021-10-06T16:00:10.000Z | #define CATCH_CONFIG_RUNNER
#include <catch2/catch.hpp>
#include <sys/types.h>
#include <unistd.h>
#include "thread.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
// It's necessary to setup the sigsegv fatal handler and to setup our own process group so it's not possible to use
// the default main function pro... | 29.066667 | 118 | 0.713303 | danielealbano |
4a14bd295cdd589499247ea093bb77769aced8cb | 1,579 | cpp | C++ | src/modules/cpu/generator/system_stats_linux.cpp | smprogsoft/openperf | 2eabdf86a14be2f56773e370708e27f94971c6f4 | [
"Apache-2.0"
] | 20 | 2019-12-04T01:28:52.000Z | 2022-03-17T14:09:34.000Z | src/modules/cpu/generator/system_stats_linux.cpp | smprogsoft/openperf | 2eabdf86a14be2f56773e370708e27f94971c6f4 | [
"Apache-2.0"
] | 115 | 2020-02-04T21:29:54.000Z | 2022-02-17T13:33:51.000Z | src/modules/cpu/generator/system_stats_linux.cpp | smprogsoft/openperf | 2eabdf86a14be2f56773e370708e27f94971c6f4 | [
"Apache-2.0"
] | 16 | 2019-12-03T16:41:18.000Z | 2021-11-06T04:44:11.000Z | #include <fstream>
#include <sstream>
#include <unistd.h>
#include <sys/resource.h>
#include "cpu/generator/system_stats.hpp"
namespace openperf::cpu::generator {
/* All of these are present as of 2.6.11 */
struct linux_proc_stats
{
std::string cpu;
uint64_t user;
uint64_t nice;
uint64_t system;
... | 24.671875 | 76 | 0.59658 | smprogsoft |
4a165bcd54e17fee9105e33f823cd6c8108e7ad0 | 1,082 | cpp | C++ | Game/Source/Game/src/MY_Game.cpp | RyanBluth/Low-Rez-Jam | e6d82807ea57502613fa8cd7afc97bd8b409b24c | [
"MIT"
] | null | null | null | Game/Source/Game/src/MY_Game.cpp | RyanBluth/Low-Rez-Jam | e6d82807ea57502613fa8cd7afc97bd8b409b24c | [
"MIT"
] | null | null | null | Game/Source/Game/src/MY_Game.cpp | RyanBluth/Low-Rez-Jam | e6d82807ea57502613fa8cd7afc97bd8b409b24c | [
"MIT"
] | null | null | null | #pragma once
#include <MY_Game.h>
#include <MY_ResourceManager.h>
#include <MY_Scene_Main.h>
MY_Game::MY_Game() :
Game("menu", new MY_Scene_Main(this, true), true) // initialize our game with a menu scene
{
// initialize all of our scenes in the game's scene map for later use
// only the current scene is updated... | 33.8125 | 166 | 0.738447 | RyanBluth |
4a16a8462981e84d2afcd1bceeb6fbe0e340e570 | 36,052 | cpp | C++ | src/trainer.cpp | SLiV9/MegaNaiadsTrainer | e41a055aed743a5741dfab7bd45e970974e5c5c4 | [
"MIT"
] | 1 | 2021-06-04T20:49:28.000Z | 2021-06-04T20:49:28.000Z | src/trainer.cpp | SLiV9/MegaNaiadsTrainer | e41a055aed743a5741dfab7bd45e970974e5c5c4 | [
"MIT"
] | null | null | null | src/trainer.cpp | SLiV9/MegaNaiadsTrainer | e41a055aed743a5741dfab7bd45e970974e5c5c4 | [
"MIT"
] | null | null | null | #include "trainer.hpp"
#include <algorithm>
#include <random>
#ifdef _MSC_VER
#include <direct.h>
#else
#include <sys/stat.h>
#endif
#include <torch/torch.h>
#include "const.hpp"
#include "trainingbrain.hpp"
constexpr size_t ROUNDS_BETWEEN_SAVES = 100;
struct Player
{
std::shared_ptr<TrainingBrain> brain;
size... | 26.744807 | 77 | 0.598136 | SLiV9 |
4a1dabbf4e3eb757d11d580e416146598d95d8d8 | 1,753 | cpp | C++ | Engine/source/Sound/CSoundAnalysis.cpp | lampardwade/tetris_lua_playgroundOSS | 29373294cfa66f2324ac984e5d4102854696fcc0 | [
"DOC",
"Apache-2.0"
] | 175 | 2015-01-07T08:38:31.000Z | 2022-02-28T20:40:47.000Z | Engine/source/Sound/CSoundAnalysis.cpp | lampardwade/tetris_lua_playgroundOSS | 29373294cfa66f2324ac984e5d4102854696fcc0 | [
"DOC",
"Apache-2.0"
] | 1 | 2020-09-10T09:45:48.000Z | 2020-09-11T10:10:52.000Z | Engine/source/Sound/CSoundAnalysis.cpp | lampardwade/tetris_lua_playgroundOSS | 29373294cfa66f2324ac984e5d4102854696fcc0 | [
"DOC",
"Apache-2.0"
] | 46 | 2015-03-14T16:11:18.000Z | 2022-02-28T20:40:49.000Z | /*
Copyright 2013 KLab Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 24.347222 | 76 | 0.630348 | lampardwade |
4a20b0d2d8725ac1740d4cb39d7d319886114a03 | 11,103 | cpp | C++ | Engine/Graphics Objects/MeshBVH.cpp | techmatt/Provincial | 3e636570d7ef359b823cb0dab3c5f8c3f1cb36b2 | [
"MIT"
] | 27 | 2015-09-03T18:41:03.000Z | 2022-01-17T20:38:54.000Z | Engine/Graphics Objects/MeshBVH.cpp | techmatt/Provincial | 3e636570d7ef359b823cb0dab3c5f8c3f1cb36b2 | [
"MIT"
] | null | null | null | Engine/Graphics Objects/MeshBVH.cpp | techmatt/Provincial | 3e636570d7ef359b823cb0dab3c5f8c3f1cb36b2 | [
"MIT"
] | 8 | 2015-02-23T10:04:30.000Z | 2020-09-04T10:56:22.000Z | /*
MeshBVH.cpp
Written by Matthew Fisher
A 3D bounding volume heiarchy for representing meshes.
*/
//
// This include will be ignored by double-inclusion detection in Main.h --- it is here to appease Intellisense since this is a *.cpp file and not a *.inl file.
//
#include "Main.h"
void MeshIntersectStatistics::Desc... | 39.233216 | 159 | 0.603711 | techmatt |
4a2108ff3708e7265728afbdc3717721d63dd996 | 7,219 | cpp | C++ | tests/red_black_tree_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | tests/red_black_tree_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | tests/red_black_tree_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "red_black_tree.hpp"
namespace gt = testing;
namespace pk
{
namespace testing
{
struct red_black_tree_tester : public gt::Test
{
static const int MAX_SIZE = 100;
// tested class:
red_black_tree<int, MAX_SIZE> rbt;
};
TEST_F(red_black_tree_tester, tests_emptyness_o... | 19.616848 | 105 | 0.624048 | pawel-kieliszczyk |
4a33909dee7f14ea624a19b754dbbc7a9ae8ec96 | 11,450 | cpp | C++ | src/src/web.cpp | jschoch/ESPels | d5709a2e46355abe0e82dc8268c9624979953219 | [
"Apache-2.0"
] | 6 | 2021-01-11T12:48:51.000Z | 2022-02-28T03:19:34.000Z | src/src/web.cpp | jschoch/ESPels | d5709a2e46355abe0e82dc8268c9624979953219 | [
"Apache-2.0"
] | 4 | 2021-01-11T23:42:44.000Z | 2021-07-30T14:22:50.000Z | src/src/web.cpp | jschoch/ESPels | d5709a2e46355abe0e82dc8268c9624979953219 | [
"Apache-2.0"
] | 2 | 2022-01-16T19:00:46.000Z | 2022-02-14T20:56:15.000Z |
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include "config.h"
// This defines ssid and password for the wifi configuration
#include "c:\Users\jesse\Documents\Arduino\config.h"
// json buffer
// config doc
StaticJsonDocument<600> doc;
// used for inbound msgs
StaticJsonDocument<600> inDoc;
Stati... | 27.068558 | 130 | 0.582009 | jschoch |
66577c74ffe1ad1cd74f50a3d47588e41ce819b1 | 798 | cpp | C++ | uri_1180.cpp | FelipeNBrito/Maratona | c37ccf45a9eefb50f0038b92c556dd9787b729f0 | [
"MIT"
] | 2 | 2016-07-21T04:33:22.000Z | 2016-07-21T05:50:54.000Z | uri_1180.cpp | FelipeNBrito/Maratona | c37ccf45a9eefb50f0038b92c556dd9787b729f0 | [
"MIT"
] | null | null | null | uri_1180.cpp | FelipeNBrito/Maratona | c37ccf45a9eefb50f0038b92c556dd9787b729f0 | [
"MIT"
] | null | null | null | /** PROBLEMA URI 1180 http://www.urionlinejudge.com.br/judge/pt/problems/view/1180
**
** A função encontraMenor recebe um vetor de inteiros V de tamanho n
**
** Modifique esta função para que ela ao final da execução tenha
** o menor elemento do vetor armazenado na variavel menor e a posicao
** de... | 19.95 | 83 | 0.622807 | FelipeNBrito |
66588a36ade077b39c6a7336540be123a18339c4 | 5,559 | hpp | C++ | modules/runtime_reflection/src/MetaObject/runtime_reflection/VisitorTraits.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | modules/runtime_reflection/src/MetaObject/runtime_reflection/VisitorTraits.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | modules/runtime_reflection/src/MetaObject/runtime_reflection/VisitorTraits.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #ifndef MO_VISITATION_VISITORTRAITS_HPP
#define MO_VISITATION_VISITORTRAITS_HPP
#include "StructTraits.hpp"
#include "TraitRegistry.hpp"
#include "type_traits.hpp"
#include <MetaObject/logging/logging.hpp>
#include <ct/reflect.hpp>
#include <ct/reflect/print.hpp>
#include <ct/type_traits.hpp>
#include <sstream>
nam... | 30.883333 | 117 | 0.589135 | dtmoodie |
6658dd15b8fd8dc7da7e4c1a240c6f09ac02ae23 | 3,348 | cc | C++ | examples/cpp/cryptarithm_sat.cc | szerfas1/or-tools | fa84bc05e72641dddfbb98164d81b8bc9bef6ea5 | [
"Apache-2.0"
] | 1 | 2021-03-30T21:10:27.000Z | 2021-03-30T21:10:27.000Z | examples/cpp/cryptarithm_sat.cc | szerfas1/or-tools | fa84bc05e72641dddfbb98164d81b8bc9bef6ea5 | [
"Apache-2.0"
] | null | null | null | examples/cpp/cryptarithm_sat.cc | szerfas1/or-tools | fa84bc05e72641dddfbb98164d81b8bc9bef6ea5 | [
"Apache-2.0"
] | null | null | null | // Copyright 2010-2018 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 38.045455 | 78 | 0.670848 | szerfas1 |
66612cbf5e2e8510748d860a2ec2a39701e3f169 | 2,552 | hpp | C++ | sdk/keyvault/azure-security-keyvault-keys/src/private/package_version.hpp | ysriram-adobe/azure-sdk-for-cpp | cfd115ed59ab264b51f434266559a7816a258deb | [
"MIT"
] | null | null | null | sdk/keyvault/azure-security-keyvault-keys/src/private/package_version.hpp | ysriram-adobe/azure-sdk-for-cpp | cfd115ed59ab264b51f434266559a7816a258deb | [
"MIT"
] | null | null | null | sdk/keyvault/azure-security-keyvault-keys/src/private/package_version.hpp | ysriram-adobe/azure-sdk-for-cpp | cfd115ed59ab264b51f434266559a7816a258deb | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
/**
* @file
* @brief Provides version information.
*/
#pragma once
#include <cstdint>
#define AZURE_SECURITY_KEYVAULT_KEYS_VERSION_MAJOR 4
#define AZURE_SECURITY_KEYVAULT_KEYS_VERSION_MINOR 2
#define AZURE_SECURITY_KEYVA... | 39.875 | 199 | 0.802116 | ysriram-adobe |
66644dda68eecbf2ecf31fe0e324e068af8c293a | 875 | cpp | C++ | src/FlashCommand.cpp | sgsiebers/SimpleAnimation | a1e42860fef23abf22cd998ae0ee457144b5c475 | [
"MIT"
] | null | null | null | src/FlashCommand.cpp | sgsiebers/SimpleAnimation | a1e42860fef23abf22cd998ae0ee457144b5c475 | [
"MIT"
] | null | null | null | src/FlashCommand.cpp | sgsiebers/SimpleAnimation | a1e42860fef23abf22cd998ae0ee457144b5c475 | [
"MIT"
] | 1 | 2018-07-17T10:52:19.000Z | 2018-07-17T10:52:19.000Z | #include "FlashCommand.h"
FlashCommand::FlashCommand(CRGB* _leds, uint16_t _length, CRGB _color, uint16_t _duration, uint8_t _numFlashes ):
LedCommand(_leds,_length),
color(_color),
duration(_duration),
numFlashes(_numFlashes),
timer(Timer(_duration)) {}
void FlashCommand::begin(){
DEBUG_PRINT("Begin Fla... | 19.444444 | 113 | 0.645714 | sgsiebers |
666478b74d7de9aa755cb9e197c676081f7dfb5b | 2,219 | cpp | C++ | source/rectangle.cpp | Mielein/programmiersprachen-aufgabenblatt-2 | db8de522662edd4f00fe7b9ab414905417ca234b | [
"MIT"
] | null | null | null | source/rectangle.cpp | Mielein/programmiersprachen-aufgabenblatt-2 | db8de522662edd4f00fe7b9ab414905417ca234b | [
"MIT"
] | null | null | null | source/rectangle.cpp | Mielein/programmiersprachen-aufgabenblatt-2 | db8de522662edd4f00fe7b9ab414905417ca234b | [
"MIT"
] | null | null | null | #include "rectangle.hpp"
#include <cmath>
#include <iostream>
Rectangle::Rectangle():
min_{},
max_{},
color_{}{}
Rectangle::Rectangle(Vec2 const& min, Vec2 const& max):
min_{min},
max_{max}{}
Rectangle::Rectangle::Rectangle(Vec2 const& min, Vec2 const& max, Color const& color):
min_{min},... | 32.15942 | 110 | 0.673276 | Mielein |
666a00ef67714df9367c6778c4e9e99986846436 | 1,149 | cpp | C++ | Firmware/FFBoard/UserExtensions/Src/CustomMain.cpp | bremme/OpenFFBoard | f3626c0f18e878097a7fa6717debabb23b9d13b0 | [
"MIT"
] | null | null | null | Firmware/FFBoard/UserExtensions/Src/CustomMain.cpp | bremme/OpenFFBoard | f3626c0f18e878097a7fa6717debabb23b9d13b0 | [
"MIT"
] | 8 | 2021-09-28T13:00:33.000Z | 2021-09-28T23:09:44.000Z | Firmware/FFBoard/UserExtensions/Src/CustomMain.cpp | bremme/OpenFFBoard | f3626c0f18e878097a7fa6717debabb23b9d13b0 | [
"MIT"
] | 1 | 2022-02-25T14:14:25.000Z | 2022-02-25T14:14:25.000Z | /*
* exampleMain.cpp
*
* Created on: 23.01.2020
* Author: Yannick
*/
#include <CustomMain.h>
// Change this
ClassIdentifier CustomMain::info = {
.name = "Custom" ,
.id=CLSID_CUSTOM,
.hidden=true //Set false to list
};
// Copy this to your class for identification
const ClassIdentifier CustomMain:... | 20.890909 | 95 | 0.7302 | bremme |
666eb1aeb86d49137690fa60d2ccfd18dad00ee3 | 1,632 | cpp | C++ | Tree/0145_BinaryTreePostorderTraversal/Solution.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | 1 | 2020-03-08T23:23:38.000Z | 2020-03-08T23:23:38.000Z | Tree/0145_BinaryTreePostorderTraversal/Solution.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | 1 | 2020-01-27T14:01:43.000Z | 2020-01-27T14:01:43.000Z | Tree/0145_BinaryTreePostorderTraversal/Solution.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | null | null | null | // Runtime: 4 ms, faster than 56.53% of C++ online submissions for Binary Tree Postorder Traversal.
// Memory Usage: 8.6 MB, less than 100.00% of C++ online submissions for Binary Tree Postorder Traversal.
#include <vector>
#include <stack>
#include <algorithm>
/**
* Definition for a binary tree node.
* struct Tree... | 27.2 | 136 | 0.519608 | liweiyap |
6670e1d4186be9c72dff31b567a9d890635ba4f8 | 3,704 | cpp | C++ | guiTest/src/ofApp.cpp | jdsierral/Cuboid-HW4 | a6251947497edcc62fefee4a776e3ac49fec7d35 | [
"Unlicense"
] | null | null | null | guiTest/src/ofApp.cpp | jdsierral/Cuboid-HW4 | a6251947497edcc62fefee4a776e3ac49fec7d35 | [
"Unlicense"
] | null | null | null | guiTest/src/ofApp.cpp | jdsierral/Cuboid-HW4 | a6251947497edcc62fefee4a776e3ac49fec7d35 | [
"Unlicense"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
gui.setup();
gui.add(levelSlider.setup("levelSlider", 0, -60, 12));
gui.add(muteToggle.setup("muteToggle", false));
ofEnableDepthTest();
ofSetupScreenPerspective();
ofSetupScreenOrtho();
for (int i = 0... | 19.913978 | 70 | 0.482991 | jdsierral |
6674ca8b0e3e42c604c3e8eee51a771eb257a6bb | 3,929 | cpp | C++ | src/lib/VectorGenerator.cpp | quadric-io/crave | 8096d8b151cbe0d2ba437657f42d8bb0e05f5436 | [
"MIT"
] | 32 | 2015-05-11T02:38:40.000Z | 2022-02-23T07:31:26.000Z | src/lib/VectorGenerator.cpp | quadric-io/crave | 8096d8b151cbe0d2ba437657f42d8bb0e05f5436 | [
"MIT"
] | 10 | 2018-06-08T14:44:58.000Z | 2021-08-19T16:07:21.000Z | src/lib/VectorGenerator.cpp | quadric-io/crave | 8096d8b151cbe0d2ba437657f42d8bb0e05f5436 | [
"MIT"
] | 8 | 2019-05-29T21:40:31.000Z | 2021-12-01T09:31:15.000Z | #include "../crave/backend/VectorGenerator.hpp"
#include "../crave/utils/Logging.hpp"
#include <string>
namespace crave {
VectorSolver::VectorSolver(int vector_id)
: constraints_(), vector_id_(vector_id), solver_(FactoryMetaSMT::getNewInstance()), vec_elements_() {}
void VectorSolver::addConstraint(VectorConstra... | 32.471074 | 106 | 0.651311 | quadric-io |
66765a5e7ac8b685399dbccf2e4c196977c14e48 | 1,613 | cpp | C++ | src/shk/test/log/invocation_log_test.cpp | pereckerdal/shuriken | 6988cf16904481e9d587b6ce9cfc7f1318518e50 | [
"Apache-2.0"
] | 19 | 2017-05-15T08:20:00.000Z | 2021-12-03T05:58:32.000Z | src/shk/test/log/invocation_log_test.cpp | pereckerdal/shuriken | 6988cf16904481e9d587b6ce9cfc7f1318518e50 | [
"Apache-2.0"
] | null | null | null | src/shk/test/log/invocation_log_test.cpp | pereckerdal/shuriken | 6988cf16904481e9d587b6ce9cfc7f1318518e50 | [
"Apache-2.0"
] | 3 | 2018-01-16T18:07:30.000Z | 2021-06-30T07:33:44.000Z | // Copyright 2017 Per Grön. All Rights Reserved.
//
// 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 l... | 29.327273 | 77 | 0.648481 | pereckerdal |
6676ac5b5ab6032de326d3c209c182d69b35fb24 | 4,204 | cpp | C++ | src/globalsearch/formats/xyzformat.cpp | lilithean/XtalOpt | 9ebc125e6014b27e72a04fb62c8820c7b9670c61 | [
"BSD-3-Clause"
] | 23 | 2017-09-01T04:35:02.000Z | 2022-01-16T13:51:17.000Z | src/globalsearch/formats/xyzformat.cpp | lilithean/XtalOpt | 9ebc125e6014b27e72a04fb62c8820c7b9670c61 | [
"BSD-3-Clause"
] | 20 | 2017-08-29T15:29:46.000Z | 2022-01-20T09:10:59.000Z | src/globalsearch/formats/xyzformat.cpp | lilithean/XtalOpt | 9ebc125e6014b27e72a04fb62c8820c7b9670c61 | [
"BSD-3-Clause"
] | 21 | 2017-06-15T03:11:34.000Z | 2022-02-28T05:20:44.000Z | /**********************************************************************
XyzFormat -- A simple reader for XYZ files.
Copyright (C) 2017 by Patrick Avery
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distributed un... | 32.338462 | 77 | 0.568982 | lilithean |
66791a4fe00fad5190c9aec38ec730be66d5f6f1 | 499 | cpp | C++ | book/CH09/S11_Setting_blend_constants_state_dynamically.cpp | THISISAGOODNAME/vkCookBook | d022b4151a02c33e5c58534dc53ca39610eee7b5 | [
"MIT"
] | 5 | 2019-03-02T16:29:15.000Z | 2021-11-07T11:07:53.000Z | book/CH09/S11_Setting_blend_constants_state_dynamically.cpp | THISISAGOODNAME/vkCookBook | d022b4151a02c33e5c58534dc53ca39610eee7b5 | [
"MIT"
] | null | null | null | book/CH09/S11_Setting_blend_constants_state_dynamically.cpp | THISISAGOODNAME/vkCookBook | d022b4151a02c33e5c58534dc53ca39610eee7b5 | [
"MIT"
] | 2 | 2018-07-10T18:15:40.000Z | 2020-01-03T04:02:32.000Z | //
// Created by yangyanjun on 2017/6/23.
//
//
// Chapter: 09 Command Recording and Drawing
// Recipe: 11 Setting blend constants state dynamically
#include "S11_Setting_blend_constants_state_dynamically.h"
namespace VKCookbook {
void SetBlendConstantsStateDynamically( VkCommandBuffer command_buf... | 27.722222 | 91 | 0.671343 | THISISAGOODNAME |
6681fb92988fe0749f88dc59cef0370c7ea4d036 | 911 | cpp | C++ | ctci/chapter01/chapter01_ex02.cpp | bewuethr/ctci | bc889be97d4021781dce877dee6f841601aab92d | [
"MIT"
] | 2 | 2018-07-31T02:08:48.000Z | 2021-12-23T13:50:18.000Z | ctci/chapter01/chapter01_ex02.cpp | bewuethr/ctci | bc889be97d4021781dce877dee6f841601aab92d | [
"MIT"
] | 2 | 2018-03-12T14:43:57.000Z | 2018-03-13T02:36:15.000Z | ctci/chapter01/chapter01_ex02.cpp | bewuethr/exercises | bc889be97d4021781dce877dee6f841601aab92d | [
"MIT"
] | 1 | 2015-05-28T11:57:01.000Z | 2015-05-28T11:57:01.000Z | // 1.2 - implement a function that reverses a C-style string
// notice that this works only with char arrays, not with pointer to chars as
// C string literals are constant
#include<iostream>
#include<cstring>
using namespace std;
void swap(char* a, char* b)
{
char temp = *a;
*a = *b;
*b = temp;
}
void... | 18.22 | 77 | 0.503842 | bewuethr |
668976c61de4cbabc9e94047c3a6472b179bb965 | 6,367 | cpp | C++ | Source/source/mobs/onion.cpp | Superkman23/Pikifen | 44ee4e954cbf74288bb46d6be8e837f216e82956 | [
"MIT"
] | null | null | null | Source/source/mobs/onion.cpp | Superkman23/Pikifen | 44ee4e954cbf74288bb46d6be8e837f216e82956 | [
"MIT"
] | null | null | null | Source/source/mobs/onion.cpp | Superkman23/Pikifen | 44ee4e954cbf74288bb46d6be8e837f216e82956 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Andre 'Espyo' Silva 2013.
* The following source file belongs to the open-source project Pikifen.
* Please read the included README and LICENSE files for more information.
* Pikmin is copyright (c) Nintendo.
*
* === FILE DESCRIPTION ===
* Onion class and Onion-related functions.
*/
#include ... | 28.297778 | 79 | 0.530391 | Superkman23 |
668c7a4afd7e0ce9f8b2c3e616058718df2f24f0 | 1,179 | cpp | C++ | MonoEngineV2/Settings.cpp | teutinsa/MonoEngineV2 | f1f0b71dbe8bc8f0a7ab42551f196232c6d4772e | [
"MIT"
] | null | null | null | MonoEngineV2/Settings.cpp | teutinsa/MonoEngineV2 | f1f0b71dbe8bc8f0a7ab42551f196232c6d4772e | [
"MIT"
] | null | null | null | MonoEngineV2/Settings.cpp | teutinsa/MonoEngineV2 | f1f0b71dbe8bc8f0a7ab42551f196232c6d4772e | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Settings.h"
Settings::Settings(_In_ const std::string& filename)
: m_filename(filename)
{ }
void Settings::WriteString(_In_ const std::string& section, _In_ const std::string& key, _In_ const std::string& value)
{
WritePrivateProfileStringA(section.c_str(), key.c_str(), value.c_str(), m_f... | 34.676471 | 144 | 0.749788 | teutinsa |
668fc8b1d13318e5dfeb491b3f94016caca4be25 | 459 | cpp | C++ | 2022_05_10-0var/2.cpp | ss-di/1580-2021-08Z-Qt | 2940d2f7f064a7f11e953925d0f8f19b0350af22 | [
"MIT"
] | null | null | null | 2022_05_10-0var/2.cpp | ss-di/1580-2021-08Z-Qt | 2940d2f7f064a7f11e953925d0f8f19b0350af22 | [
"MIT"
] | null | null | null | 2022_05_10-0var/2.cpp | ss-di/1580-2021-08Z-Qt | 2940d2f7f064a7f11e953925d0f8f19b0350af22 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
long isEqual(long a){
a = labs(a);
long d = a % 10;
// a = a / 10;
while (a != 0){
if (d != a % 10)
return false;
a = a / 10;
}
return true;
}
int main(){
long a, cnt = 0;
cin >> a;
while (a != 0) {
if (isE... | 14.806452 | 24 | 0.3878 | ss-di |
6693d800d7b6935f0fa63b837ae72d7cb0bf61a5 | 480 | cpp | C++ | 66_plusOne.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 66_plusOne.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 66_plusOne.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> plusOne(vector<int> &digits) {
int of = 0;
vector<int> result;
int sum = digits.back() + 1;
of = sum / 10;
digits.back() = sum % 10;
for (int bit = digits.size() - 2; bit >= 0; --bit) {
sum = digits[bit] + of;
of = sum / 10;
digits[bit]... | 17.777778 | 56 | 0.491667 | imxiaobo |
6697eb3553e4f2cd2b5b4da0d061d44a48486684 | 9,446 | cpp | C++ | DemoFramework/FslUtil/Vulkan1_0/source/FslUtil/Vulkan1_0/Extend/DeviceMemoryEx.cpp | alejandrolozano2/OpenGL_DemoFramework | 5fd85f05c98cc3d0c0a68bac438035df8cabaee7 | [
"MIT",
"BSD-3-Clause"
] | 3 | 2019-01-19T20:21:24.000Z | 2021-08-10T02:11:32.000Z | DemoFramework/FslUtil/Vulkan1_0/source/FslUtil/Vulkan1_0/Extend/DeviceMemoryEx.cpp | alejandrolozano2/OpenGL_DemoFramework | 5fd85f05c98cc3d0c0a68bac438035df8cabaee7 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | DemoFramework/FslUtil/Vulkan1_0/source/FslUtil/Vulkan1_0/Extend/DeviceMemoryEx.cpp | alejandrolozano2/OpenGL_DemoFramework | 5fd85f05c98cc3d0c0a68bac438035df8cabaee7 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-08-10T02:11:33.000Z | 2021-08-10T02:11:33.000Z | /****************************************************************************************************************************************************
* Copyright (c) 2016 Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | 34.985185 | 213 | 0.686322 | alejandrolozano2 |
669c10070b7ce9d05376b9c7aa18b31d4a672c89 | 7,972 | cpp | C++ | orion_protocol/test/test_orion_circular_buffer.cpp | ros-ukraine/orion | 050d9df15c2b8e58d42a2b1aa467f08a14da099f | [
"MIT"
] | null | null | null | orion_protocol/test/test_orion_circular_buffer.cpp | ros-ukraine/orion | 050d9df15c2b8e58d42a2b1aa467f08a14da099f | [
"MIT"
] | null | null | null | orion_protocol/test/test_orion_circular_buffer.cpp | ros-ukraine/orion | 050d9df15c2b8e58d42a2b1aa467f08a14da099f | [
"MIT"
] | null | null | null | /**
* Copyright 2020 ROS Ukraine
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distrib... | 48.024096 | 107 | 0.803562 | ros-ukraine |
66a7e730117f055f54ab383c319154470e2f3683 | 5,018 | cpp | C++ | src/framework/graphics/framebuffer.cpp | Cayan/otclient | 36c1ea9245c614dad50b073d67d32afd2727e9ef | [
"MIT"
] | 1 | 2017-05-07T00:58:10.000Z | 2017-05-07T00:58:10.000Z | src/framework/graphics/framebuffer.cpp | Cayan/otclient | 36c1ea9245c614dad50b073d67d32afd2727e9ef | [
"MIT"
] | null | null | null | src/framework/graphics/framebuffer.cpp | Cayan/otclient | 36c1ea9245c614dad50b073d67d32afd2727e9ef | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient>
*
* 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.869048 | 107 | 0.651455 | Cayan |
66a840da6cdb2fe53ae9a47f646da7472c0688cb | 8,475 | cc | C++ | libraries/nacl-mounts/pepper/PepperMount.cc | nachooya/naclports-1 | 43e9f13a836c1f6c609bb1418f672bd2041c3888 | [
"BSD-3-Clause"
] | 1 | 2019-01-17T23:49:48.000Z | 2019-01-17T23:49:48.000Z | libraries/nacl-mounts/pepper/PepperMount.cc | nachooya/naclports-1 | 43e9f13a836c1f6c609bb1418f672bd2041c3888 | [
"BSD-3-Clause"
] | null | null | null | libraries/nacl-mounts/pepper/PepperMount.cc | nachooya/naclports-1 | 43e9f13a836c1f6c609bb1418f672bd2041c3888 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <assert.h>
#include <errno.h>
#include <ppapi/c/pp_file_info.h>
#include <ppapi/c/ppb_file_io.h>
#include <ppapi/cpp/file_io.h>
#i... | 24.565217 | 80 | 0.639528 | nachooya |
66a9fafd28034b4fc85431b00d6055e80ef7dea5 | 2,449 | cpp | C++ | src/Entity.cpp | niniemann/sempr | 2f3b04c031d70b9675ad441f97728a8fb839abed | [
"BSD-3-Clause"
] | 8 | 2018-03-28T19:45:47.000Z | 2022-03-23T16:53:24.000Z | src/Entity.cpp | niniemann/sempr | 2f3b04c031d70b9675ad441f97728a8fb839abed | [
"BSD-3-Clause"
] | 58 | 2018-01-31T11:10:04.000Z | 2021-08-13T11:48:31.000Z | src/Entity.cpp | niniemann/sempr | 2f3b04c031d70b9675ad441f97728a8fb839abed | [
"BSD-3-Clause"
] | 1 | 2018-07-04T12:30:06.000Z | 2018-07-04T12:30:06.000Z | #include "Exception.hpp"
#include "Entity.hpp"
#include "Core.hpp"
#include <cassert>
#include <algorithm>
//#include <Entity_odb.h>
namespace sempr {
Entity::Entity() : core_(nullptr), id_(""), idIsURI_(false), isTemporary_(false)
{
}
Entity::~Entity()
{
}
Entity::Ptr Entity::create()
{
return Entity::Ptr(new... | 18.413534 | 134 | 0.648836 | niniemann |
66adb274e57d4bada1b7427798dd2e7848299805 | 1,484 | hpp | C++ | include/services/inotify.hpp | Sun24Y/lemonbuddy | 99f97b07eb9606bbe6a2cbea21421243ccd99f16 | [
"MIT"
] | 11 | 2018-04-23T16:00:33.000Z | 2021-06-08T03:46:50.000Z | include/services/inotify.hpp | NateBrune/lemonbuddy | 99f97b07eb9606bbe6a2cbea21421243ccd99f16 | [
"MIT"
] | null | null | null | include/services/inotify.hpp | NateBrune/lemonbuddy | 99f97b07eb9606bbe6a2cbea21421243ccd99f16 | [
"MIT"
] | 2 | 2018-04-20T16:32:54.000Z | 2020-02-21T15:38:06.000Z | #pragma once
#include <memory>
#include <sys/inotify.h>
#include "exception.hpp"
class InotifyException : public Exception
{
public:
explicit InotifyException(std::string msg)
: Exception("[Inotify] "+ msg){}
};
struct InotifyEvent
{
static const auto ACCESSED = IN_ACCESS;
static const auto MODIFIED... | 24.327869 | 74 | 0.653639 | Sun24Y |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.