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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5e48b3deeca191dff86aa7d36cc8c5f2ab15b218 | 1,967 | hpp | C++ | src/viewer/tile_provider.hpp | malasiot/maplite | 1edeec673110cdd5fa904ff2ff88289b6c3ec324 | [
"MIT"
] | 12 | 2017-05-11T21:44:57.000Z | 2021-12-30T08:35:56.000Z | src/viewer/tile_provider.hpp | malasiot/mftools | 1edeec673110cdd5fa904ff2ff88289b6c3ec324 | [
"MIT"
] | 8 | 2016-10-27T10:10:05.000Z | 2019-12-07T21:27:02.000Z | src/viewer/tile_provider.hpp | malasiot/mftools | 1edeec673110cdd5fa904ff2ff88289b6c3ec324 | [
"MIT"
] | 5 | 2017-10-17T08:18:58.000Z | 2021-11-12T11:44:23.000Z | #ifndef __TILE_PROVIDER_H__
#define __TILE_PROVIDER_H__
#include <QPixmap>
#include <QPixmapCache>
#include "geometry.hpp"
class TileProvider: public QObject
{
Q_OBJECT
public:
TileProvider(const QByteArray &id, unsigned int tileSize):
tile_size_(tileSize), id_(id), async_(false), start_zoom_(-1), has... | 28.926471 | 100 | 0.68124 | malasiot |
5e4de08ccf4c1ed4e615d55ce4b84e736ec89ffa | 10,624 | cpp | C++ | remodet_repository_wdh_part/hp_demo_bak.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/hp_demo_bak.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/hp_demo_bak.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | // if not use OPENCV, note it.
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
// if not use, note it.
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
// Google log &... | 36.634483 | 156 | 0.577654 | UrwLee |
5e4eeb30aab610c15d659219b4b2639ae6bf94b8 | 2,162 | hh | C++ | psdaq/psdaq/eb/Batch.hh | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 16 | 2017-11-09T17:10:56.000Z | 2022-03-09T23:03:10.000Z | psdaq/psdaq/eb/Batch.hh | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 6 | 2017-12-12T19:30:05.000Z | 2020-07-09T00:28:33.000Z | psdaq/psdaq/eb/Batch.hh | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 25 | 2017-09-18T20:02:43.000Z | 2022-03-27T22:27:42.000Z | #ifndef Pds_Eb_Batch_hh
#define Pds_Eb_Batch_hh
#include "eb.hh"
#include "psdaq/service/EbDgram.hh"
#include <cstdint> // For uint64_t
#include <cstddef> // for size_t
namespace Pds {
namespace Eb {
class Batch
{
public:
Batch();
public:
sta... | 23.758242 | 85 | 0.584181 | ZhenghengLi |
5e5016ca697c7845540ba25711dcfef827df438b | 1,221 | cpp | C++ | src/EnemyWandering.cpp | anqin-gh/minimaze | cfa3df279c75d5fe95a2e69af4569a3981a6f274 | [
"MIT"
] | null | null | null | src/EnemyWandering.cpp | anqin-gh/minimaze | cfa3df279c75d5fe95a2e69af4569a3981a6f274 | [
"MIT"
] | null | null | null | src/EnemyWandering.cpp | anqin-gh/minimaze | cfa3df279c75d5fe95a2e69af4569a3981a6f274 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <random>
#include <EnemyWandering.h>
#include <Renderer.h>
#include <RendManager.h>
namespace minimaze {
EnemyWandering::EnemyWandering()
: m_rend_manager{&RendManager::get_instance()}
{
init();
}
void EnemyWandering::init() {
std::default_random_engine generator;
std::uniform_int_... | 21.421053 | 64 | 0.719902 | anqin-gh |
5e5710941b5bfedbc3bd03b2c065a90f96c0d2cd | 16,820 | cpp | C++ | Modules/ExampleModule/src/smartrefinement.cpp | pv6/smart-refinement-tool | 1221a0a22ec0fc868cf922267fd0af73697025ea | [
"BSD-3-Clause"
] | null | null | null | Modules/ExampleModule/src/smartrefinement.cpp | pv6/smart-refinement-tool | 1221a0a22ec0fc868cf922267fd0af73697025ea | [
"BSD-3-Clause"
] | null | null | null | Modules/ExampleModule/src/smartrefinement.cpp | pv6/smart-refinement-tool | 1221a0a22ec0fc868cf922267fd0af73697025ea | [
"BSD-3-Clause"
] | null | null | null | #include <smartrefinement.hpp>
#include <queue>
#include <iostream>
#include <vvt/algorithms/generallsm.hpp>
#include <vvt/algorithms/chanveselsm.hpp>
namespace vvt {
namespace accessory {
SmartRefinement::SmartRefinement(viewer::base *viewer) :
PropagationAccessory(viewer),
smartBr... | 37.968397 | 147 | 0.481391 | pv6 |
5e59824552fc0d88437aa54cf513d0704cf47ee2 | 3,100 | hpp | C++ | src/stan/math/rev/core.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/math/rev/core.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/math/rev/core.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_REV_CORE_HPP
#define STAN_MATH_REV_CORE_HPP
#include <stan/math/rev/core/autodiffstackstorage.hpp>
#include <stan/math/rev/core/build_vari_array.hpp>
#include <stan/math/rev/core/chainable_alloc.hpp>
#include <stan/math/rev/core/chainablestack.hpp>
#include <stan/math/rev/core/init_chainablest... | 47.692308 | 65 | 0.785806 | alashworth |
5e683509ed69e27ce1bc582e62270e503fe47f28 | 592 | hpp | C++ | include/rive/nested_animation.hpp | rive-app/rive-cpp | 2cc9cc92868d468ca75f8b5fcc40ad1ec33d27b1 | [
"MIT"
] | 139 | 2020-08-17T20:10:24.000Z | 2022-03-28T12:22:44.000Z | include/rive/nested_animation.hpp | rive-app/rive-cpp | 2cc9cc92868d468ca75f8b5fcc40ad1ec33d27b1 | [
"MIT"
] | 89 | 2020-08-28T16:41:01.000Z | 2022-03-28T19:10:49.000Z | include/rive/nested_animation.hpp | rive-app/rive-cpp | 2cc9cc92868d468ca75f8b5fcc40ad1ec33d27b1 | [
"MIT"
] | 19 | 2020-10-19T00:54:40.000Z | 2022-02-28T05:34:17.000Z | #ifndef _RIVE_NESTED_ANIMATION_HPP_
#define _RIVE_NESTED_ANIMATION_HPP_
#include "rive/generated/nested_animation_base.hpp"
#include <stdio.h>
namespace rive
{
class NestedAnimation : public NestedAnimationBase
{
public:
StatusCode onAddedDirty(CoreContext* context) override;
// Advance animations and apply the... | 28.190476 | 69 | 0.782095 | rive-app |
5e6e42425dcad7b83032aa5639e9bd1c2b6eb83e | 2,268 | cpp | C++ | world/seasons/source/SeasonFactory.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | world/seasons/source/SeasonFactory.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | world/seasons/source/SeasonFactory.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "SeasonFactory.hpp"
#include "Spring.hpp"
#include "Summer.hpp"
#include "Autumn.hpp"
#include "Winter.hpp"
using namespace std;
SeasonSerializationMap SeasonFactory::season_map;
SeasonFactory::SeasonFactory()
{
}
SeasonFactory::~SeasonFactory()
{
}
ISeasonPtr SeasonFactory::create_season(const Season sea... | 23.873684 | 117 | 0.715608 | prolog |
5e703cdd9ca2cb7d95d7f6c206ba3cfc36a709ea | 5,736 | hpp | C++ | game/quest/PC.hpp | miguelmig/LibM2 | dad7591a885a421842851905dc2bc8bbd648ca20 | [
"BSD-3-Clause"
] | null | null | null | game/quest/PC.hpp | miguelmig/LibM2 | dad7591a885a421842851905dc2bc8bbd648ca20 | [
"BSD-3-Clause"
] | null | null | null | game/quest/PC.hpp | miguelmig/LibM2 | dad7591a885a421842851905dc2bc8bbd648ca20 | [
"BSD-3-Clause"
] | 1 | 2021-11-14T10:51:30.000Z | 2021-11-14T10:51:30.000Z | /* This file belongs to the LibM2 library (http://github.com/imermcmaps/LibM2)
* Copyright (c) 2013, iMer (www.imer.cc)
* All rights reserved.
* Licensed under the BSD 3-clause license (http://opensource.org/licenses/BSD-3-Clause)
*/
#ifndef __LIBM2_GAME_QUEST_HPP
#define __LIBM2_GAME_QUEST_HPP
#include "../stdIncl... | 49.025641 | 354 | 0.614017 | miguelmig |
5e73977de01edda429bf31620ef17ccf67aad6d5 | 3,568 | cpp | C++ | day18a.cpp | Fossegrimen/advent-of-code | d9323346c167435fe461214e9eae990a1940c78e | [
"MIT"
] | null | null | null | day18a.cpp | Fossegrimen/advent-of-code | d9323346c167435fe461214e9eae990a1940c78e | [
"MIT"
] | null | null | null | day18a.cpp | Fossegrimen/advent-of-code | d9323346c167435fe461214e9eae990a1940c78e | [
"MIT"
] | null | null | null |
#include <iostream>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
typedef std::queue<char> OutputQueue;
typedef std::stack<char> OperatorStack;
typedef std::vector<char> TokenList;
void shuntingYardAlgorithm(const TokenList& tokens, OutputQueue& outputQueue);
uint64_t... | 23.629139 | 84 | 0.43778 | Fossegrimen |
5e76666312e198d4bca69ff7c21fe85b79cf3922 | 2,169 | cpp | C++ | problems/codeforces/1520/f-guess-the-kth-zero/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codeforces/1520/f-guess-the-kth-zero/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codeforces/1520/f-guess-the-kth-zero/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define long int64_t
#define DV(a) (" [" #a "=" + to_string(a) + "]")
// *****
struct fenwick {
int N;
vector<int> tree;
explicit fenwick(int N = 0) : N(N), tree(N + 1, 0) {}
int sum(int i) {
int sum = 0;
while (i > 0) {
sum... | 19.718182 | 66 | 0.420009 | brunodccarvalho |
5e7f18c28fca97ab25b2e639734e788486d458d9 | 1,530 | inl | C++ | Core/DianYing/Include/Dy/Meta/Information/Inline/DMetaMetarialInstanceTmp.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | 4 | 2019-03-17T19:46:54.000Z | 2019-12-09T20:11:01.000Z | Core/DianYing/Include/Dy/Meta/Information/Inline/DMetaMetarialInstanceTmp.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | Core/DianYing/Include/Dy/Meta/Information/Inline/DMetaMetarialInstanceTmp.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | #ifndef GUARD_DY_META_INFORMATION_INLINE_DMETAMETARIALINSTANCETMP_INL
#define GUARD_DY_META_INFORMATION_INLINE_DMETAMETARIALINSTANCETMP_INL
///
/// MIT License
/// Copyright (c) 2018-2019 Jongmin Yun
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITE... | 34.772727 | 81 | 0.769281 | liliilli |
5e8033d6a5e8dbc6b5461d779d6109848849d550 | 15,005 | cpp | C++ | libs/yap/example/autodiff_library/BinaryOPNode.cpp | Talustus/boost_src | ffe074de008f6e8c46ae1f431399cf932164287f | [
"BSL-1.0"
] | 32 | 2019-02-27T06:57:07.000Z | 2021-08-29T10:56:19.000Z | third_party/boost/libs/yap/example/autodiff_library/BinaryOPNode.cpp | avplayer/cxxrpc | 7049b4079fac78b3828e68f787d04d699ce52f6d | [
"BSL-1.0"
] | 1 | 2019-03-04T11:21:00.000Z | 2019-05-24T01:36:31.000Z | third_party/boost/libs/yap/example/autodiff_library/BinaryOPNode.cpp | avplayer/cxxrpc | 7049b4079fac78b3828e68f787d04d699ce52f6d | [
"BSL-1.0"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z | /*
* BinaryOPNode.cpp
*
* Created on: 6 Nov 2013
* Author: s0965328
*/
#include "auto_diff_types.h"
#include "BinaryOPNode.h"
#include "PNode.h"
#include "Stack.h"
#include "Tape.h"
#include "EdgeSet.h"
#include "Node.h"
#include "VNode.h"
#include "OPNode.h"
#include "ActNode.h"
#include "... | 23.013804 | 113 | 0.588937 | Talustus |
5e82025e8dadf298a606cd33e4afd6e015564838 | 962 | cpp | C++ | ITP1/ITP1_7D.cpp | taki-d/AizuOnlineJudgeAnswer | 9ab2a6db91d9ea703081703b66ee5aaeb8ec0c31 | [
"MIT"
] | 2 | 2017-05-02T06:46:31.000Z | 2017-06-18T21:59:05.000Z | ITP1/ITP1_7D.cpp | taki-d/AizuOnlineJudgeAnswer | 9ab2a6db91d9ea703081703b66ee5aaeb8ec0c31 | [
"MIT"
] | null | null | null | ITP1/ITP1_7D.cpp | taki-d/AizuOnlineJudgeAnswer | 9ab2a6db91d9ea703081703b66ee5aaeb8ec0c31 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main()
{
int a,b,c;
cin >> a >> b >> c;
vector<vector<int>> A(a,vector<int>(b,0));
vector<vector<int>> B(b,vector<int>(c,0));
for (int d = 0; d < a; ++d) {
for (int e = 0; e < b; ++e) {
cin >> A.at(d).at(e);
... | 18.862745 | 68 | 0.351351 | taki-d |
5e88c33719a8b3c623d5ae9d2b5b3a96e8ed9d82 | 90 | hpp | C++ | 2SST/2LW/files.hpp | AVAtarMod/University | 3c784a1e109b7a6f6ea495278ec3dc126258625a | [
"BSD-3-Clause"
] | 1 | 2021-07-31T06:55:08.000Z | 2021-07-31T06:55:08.000Z | 2SST/2LW/files.hpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | 1 | 2020-11-25T12:00:11.000Z | 2021-01-13T08:51:52.000Z | 2SST/2LW/files.hpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | null | null | null | #ifndef FILES
#define FILES
#include <fstream>
bool isFileExist(const char *file);
#endif | 15 | 35 | 0.766667 | AVAtarMod |
5e88c9cd294c0c9ca7fd2c0eb85bfc85a43eea8d | 4,251 | cpp | C++ | sjf_p.cpp | tanujsinghal24/Lab_codes-COC3930- | 3f36835b16897304c6b5d00ead1219d76f6b58df | [
"MIT"
] | 1 | 2021-08-02T08:35:32.000Z | 2021-08-02T08:35:32.000Z | sjf_p.cpp | tanujsinghal24/Lab_codes-COC3930- | 3f36835b16897304c6b5d00ead1219d76f6b58df | [
"MIT"
] | null | null | null | sjf_p.cpp | tanujsinghal24/Lab_codes-COC3930- | 3f36835b16897304c6b5d00ead1219d76f6b58df | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class System_p {
public:
int process_num ,burst_time,arrival_t;
};
int n;
int wait_time[1000], turn_around_t[1000], total_wt = 0,total_tat = 0;
void print_process(System_p pt[],int i,int curr_t){
cout << "Process num Burst time Arrival time Current time\n";
... | 32.204545 | 168 | 0.537521 | tanujsinghal24 |
5e8b22afdc251b65480a82d20249eeabcd099f99 | 4,103 | cpp | C++ | src/mpc-base.cpp | PepMS/eagle-mpc | 522b4af6f31dcdec72c9c461ace28bb774aa4057 | [
"BSD-3-Clause"
] | 10 | 2021-07-14T10:50:20.000Z | 2022-03-14T06:27:13.000Z | src/mpc-base.cpp | PepMS/multicopter-mpc | 522b4af6f31dcdec72c9c461ace28bb774aa4057 | [
"BSD-3-Clause"
] | 29 | 2020-06-04T08:38:52.000Z | 2020-09-25T10:26:25.000Z | src/mpc-base.cpp | PepMS/eagle-mpc | 522b4af6f31dcdec72c9c461ace28bb774aa4057 | [
"BSD-3-Clause"
] | 2 | 2021-11-02T02:14:45.000Z | 2022-01-10T11:32:59.000Z | #include "eagle_mpc/mpc-base.hpp"
namespace eagle_mpc
{
MpcAbstract::MpcAbstract(const std::string& yaml_path)
{
eagle_mpc::ParserYaml parser(yaml_path);
params_server_ = boost::make_shared<ParamsServer>(parser.get_params());
initializeRobotObjects();
loadParams();
int_models_.reserve(params_.kno... | 46.101124 | 119 | 0.737022 | PepMS |
5e8ccbbf856ee66c4c6afbe3f21b273f792e6fbc | 1,749 | cpp | C++ | Editor/Source/Controls/ToolbarView.cpp | Claudio-Marchini/Lumen | 41183d71f0fe6dfe9964617b127b40b26339c822 | [
"MIT"
] | null | null | null | Editor/Source/Controls/ToolbarView.cpp | Claudio-Marchini/Lumen | 41183d71f0fe6dfe9964617b127b40b26339c822 | [
"MIT"
] | null | null | null | Editor/Source/Controls/ToolbarView.cpp | Claudio-Marchini/Lumen | 41183d71f0fe6dfe9964617b127b40b26339c822 | [
"MIT"
] | null | null | null | #include "ToolbarView.h"
#include "../EditorApplication.h"
#include <imgui/imgui.h>
void ToolbarView::Render()
{
if (ImGui::BeginMainMenuBar())
{
if (ImGui::BeginMenu("Project"))
{
if (ImGui::MenuItem("Create"))
{
mFileOpen = true;
}
ImGui::MenuItem("Open");
if (ImGui::MenuItem("Save")... | 20.576471 | 103 | 0.626072 | Claudio-Marchini |
5e906bde120ef8c06b7312812947a1ed610dcf97 | 609 | cpp | C++ | Leetcode/May-Challenge/remove-kdigits.cpp | shashankkmciv18/dsa | 6feba269292d95d36e84f1adb910fe2ed5467f71 | [
"MIT"
] | 54 | 2020-07-31T14:50:23.000Z | 2022-03-14T11:03:02.000Z | Leetcode/May-Challenge/remove-kdigits.cpp | SahilMund/dsa | a94151b953b399ea56ff50cf30dfe96100e8b9a7 | [
"MIT"
] | null | null | null | Leetcode/May-Challenge/remove-kdigits.cpp | SahilMund/dsa | a94151b953b399ea56ff50cf30dfe96100e8b9a7 | [
"MIT"
] | 30 | 2020-08-15T17:39:02.000Z | 2022-03-10T06:50:18.000Z | class Solution {
public:
string removeKdigits(string num, int k) {
int n = num.size();
if( n<= k ) {
return "0";
}
while(k) {
int i = 0;
// for finding the peaks.
while(i+1<n && num[i+1]>=num[i]) i++;
... | 20.3 | 58 | 0.338259 | shashankkmciv18 |
5e993460efef73c852f0c0da59d4ff81ccfb98e3 | 182 | cpp | C++ | regression/esbmc-cpp/qt/QVector/vector_capacity_bug/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/qt/QVector/vector_capacity_bug/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/qt/QVector/vector_capacity_bug/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | #include <QVector>
#include <cassert>
int main ()
{
QVector<int> myQVector;
myQVector << 1 << 4 << 6 << 8 << 10 << 12;
assert( !(myQVector.capacity() > 0) );
return 0;
}
| 13 | 44 | 0.56044 | shmarovfedor |
5e99fc1ad3513b3b4399c14fccbfcc41d5f07bc7 | 749 | hpp | C++ | cmdstan/stan/lib/stan_math/test/unit/math/torsten/expect_near_matrix_eq.hpp | csetraynor/Torsten | 55b59b8068e2a539346f566ec698c755a9e3536c | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/torsten/expect_near_matrix_eq.hpp | csetraynor/Torsten | 55b59b8068e2a539346f566ec698c755a9e3536c | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/torsten/expect_near_matrix_eq.hpp | csetraynor/Torsten | 55b59b8068e2a539346f566ec698c755a9e3536c | [
"BSD-3-Clause"
] | null | null | null | #ifndef TEST_MATH_MATRIX_EXPECT_NEAR_MATRIX_EQ_HPP
#define TEST_MATH_MATRIX_EXPECT_NEAR_MATRIX_EQ_HPP
#include <gtest/gtest.h>
void expect_near_matrix_eq(const
Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>& a,
const
Eigen::Matrix... | 32.565217 | 84 | 0.543391 | csetraynor |
5ea16254bd340594b68996760722d1463f05ff33 | 647 | cpp | C++ | src/bits_of_matcha/tensor/iterations/flatiteration.cpp | patztablook22/matcha-core | c6c595e82a6f2ff42342f28ed856be37a2b2ab5c | [
"MIT"
] | null | null | null | src/bits_of_matcha/tensor/iterations/flatiteration.cpp | patztablook22/matcha-core | c6c595e82a6f2ff42342f28ed856be37a2b2ab5c | [
"MIT"
] | null | null | null | src/bits_of_matcha/tensor/iterations/flatiteration.cpp | patztablook22/matcha-core | c6c595e82a6f2ff42342f28ed856be37a2b2ab5c | [
"MIT"
] | 1 | 2022-01-09T12:07:04.000Z | 2022-01-09T12:07:04.000Z | #include "bits_of_matcha/tensor/iterations/flatiteration.h"
#include "bits_of_matcha/tensor/iterators/flatiterator.h"
#include "bits_of_matcha/tensor/tensor.h"
namespace matcha {
template <class T, class Access>
FlatIteration<T, Access>::FlatIteration(Access& tensor)
: tensor_(tensor)
{}
template <class T, class ... | 23.962963 | 71 | 0.735703 | patztablook22 |
5ea3878acb0a6799a1327973d36d59e0acf096d6 | 5,787 | cpp | C++ | src/Script/gameObjs/majorGos/bushs/Bush.cpp | turesnake/tprPixelGames | 6b5471a072a1a8b423834ab04ff03e64df215d5e | [
"BSD-3-Clause"
] | 591 | 2020-03-12T05:10:33.000Z | 2022-03-30T13:41:59.000Z | src/Script/gameObjs/majorGos/bushs/Bush.cpp | turesnake/tprPixelGames | 6b5471a072a1a8b423834ab04ff03e64df215d5e | [
"BSD-3-Clause"
] | 4 | 2020-04-06T01:55:06.000Z | 2020-05-02T04:28:04.000Z | src/Script/gameObjs/majorGos/bushs/Bush.cpp | turesnake/tprPixelGames | 6b5471a072a1a8b423834ab04ff03e64df215d5e | [
"BSD-3-Clause"
] | 112 | 2020-04-05T23:55:36.000Z | 2022-03-17T11:58:02.000Z | /*
* ======================= Bush.cpp ==========================
* -- tpr --
* CREATE -- 2019.10.09
* MODIFY --
* ----------------------------------------------------------
*/
#include "pch.h"
#include "Script/... | 31.796703 | 101 | 0.51633 | turesnake |
5ea8820da0106fd47dbe8c8727502233e2c7aca2 | 379 | hpp | C++ | include/ce2/modules/ae/detail/ae_defines.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | include/ce2/modules/ae/detail/ae_defines.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | include/ce2/modules/ae/detail/ae_defines.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "chokoengine.hpp"
#define CE_MOD_AE_NS ModuleAE
#define CE_BEGIN_MOD_AE_NAMESPACE\
CE_BEGIN_NAMESPACE\
namespace CE_MOD_AE_NS {
#define CE_END_MOD_AE_NAMESPACE }\
CE_END_NAMESPACE
#if PLATFORM_WIN
#ifdef BUILD_MODULE_AE
#define CE_AE_EXPORT __declspec(dllexport)
#else
#define CE_AE_EXPORT _... | 17.227273 | 42 | 0.825858 | chokomancarr |
5eac58620adb30b5a225f27e47cf7ed807f85462 | 4,869 | cc | C++ | src/PingService.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | 1 | 2016-01-18T12:41:28.000Z | 2016-01-18T12:41:28.000Z | src/PingService.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | null | null | null | src/PingService.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | null | null | null | /* Copyright (c) 2011-2012 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(... | 31.211538 | 80 | 0.659889 | taschik |
5eadd409f127c8b4fcf46a006fd9a0e3ac303e55 | 1,694 | cpp | C++ | clang/test/Driver/sycl-offload.cpp | steffenlarsen/llvm | 9d60c3d97773c63b8ee597c35c3f897dbc1a7f9f | [
"Apache-2.0"
] | null | null | null | clang/test/Driver/sycl-offload.cpp | steffenlarsen/llvm | 9d60c3d97773c63b8ee597c35c3f897dbc1a7f9f | [
"Apache-2.0"
] | null | null | null | clang/test/Driver/sycl-offload.cpp | steffenlarsen/llvm | 9d60c3d97773c63b8ee597c35c3f897dbc1a7f9f | [
"Apache-2.0"
] | null | null | null | /// Check "-aux-target-cpu" and "target-cpu" are passed when compiling for SYCL offload device and host codes:
// RUN: %clang -### -fsycl -c %s 2>&1 | FileCheck -check-prefix=CHECK-OFFLOAD %s
// CHECK-OFFLOAD: clang{{.*}} "-cc1" {{.*}} "-fsycl-is-device"
// CHECK-OFFLOAD-SAME: "-aux-target-cpu" "[[HOST_CPU_NAME:[^ ... | 62.740741 | 110 | 0.619835 | steffenlarsen |
5eb6cc9ecbe82e80d5d57e365e50d79f65fe8661 | 2,054 | cpp | C++ | src/game/snake_game.cpp | Hippo/Snake | 9390c34e86685bf905bad85d09819f0df8b2d7e0 | [
"MIT"
] | null | null | null | src/game/snake_game.cpp | Hippo/Snake | 9390c34e86685bf905bad85d09819f0df8b2d7e0 | [
"MIT"
] | null | null | null | src/game/snake_game.cpp | Hippo/Snake | 9390c34e86685bf905bad85d09819f0df8b2d7e0 | [
"MIT"
] | null | null | null | #include "game/snake_game.hpp"
#include <chrono>
#include <queue>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
static std::queue<int> s_KeyQueue;
#define MILLIS() std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolu... | 26 | 140 | 0.614898 | Hippo |
5ebb412f4a888654ce1059403fcbf0e730ed7023 | 1,052 | cpp | C++ | src/game/server/infclass/entities/laser-teleport.cpp | srdante/teeworlds-infclassR | 8b05eae1f23297617da47403cf04bceafdc198ac | [
"Zlib"
] | 6 | 2021-02-24T22:15:23.000Z | 2022-03-23T18:41:58.000Z | src/game/server/infclass/entities/laser-teleport.cpp | srdante/teeworlds-infclassR | 8b05eae1f23297617da47403cf04bceafdc198ac | [
"Zlib"
] | 75 | 2021-02-02T17:48:50.000Z | 2022-03-23T18:54:25.000Z | src/game/server/infclass/entities/laser-teleport.cpp | srdante/teeworlds-infclassR | 8b05eae1f23297617da47403cf04bceafdc198ac | [
"Zlib"
] | 8 | 2021-03-13T15:06:27.000Z | 2022-03-23T12:09:07.000Z | /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <game/server/gamecontext.h>
#include "laser-teleport.h"
CLaserTeleport::CLaserTeleport(CGameContext *pGameContext, vec2 StartPos,... | 27.684211 | 122 | 0.737643 | srdante |
5ebf84420dd74f26c0ae3a9a2ebc6a9d46fe8777 | 595 | cpp | C++ | codeforce6/1029B. Creating the Contest.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce6/1029B. Creating the Contest.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce6/1029B. Creating the Contest.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | /*
Idea:
- Using cumulative sum we can determine the maximum
number of consequtive elements that form the answer.
*/
#include <bits/stdc++.h>
using namespace std;
int const N = 2e5 + 1;
int n, a[N];
bool ck[N];
int main() {
scanf("%d", &n);
for(int i = 0; i < n; ++i)
scanf("%d", a + i);
for(i... | 14.875 | 58 | 0.457143 | khaled-farouk |
5ec73d33048f446fe2e21da885d82b95f5720d80 | 10,076 | cpp | C++ | BinarySearchTrees-Improved/SearchTree.cpp | jogdandsnehal14/BinarySearchTrees-Improved | 0a1df1bfefdc55241cbc2e22d7e9674ba0d651fc | [
"MIT"
] | null | null | null | BinarySearchTrees-Improved/SearchTree.cpp | jogdandsnehal14/BinarySearchTrees-Improved | 0a1df1bfefdc55241cbc2e22d7e9674ba0d651fc | [
"MIT"
] | null | null | null | BinarySearchTrees-Improved/SearchTree.cpp | jogdandsnehal14/BinarySearchTrees-Improved | 0a1df1bfefdc55241cbc2e22d7e9674ba0d651fc | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
// File: SearchTree.cpp
// Author: Snehal Jogdand
// Date: 01/14/2020
// Program 1: Improved binary search trees
//
// DESCRIPTION:
// SearchTree:
// The class file for SearchTree class
// Provides the set of variables and functio... | 26.585752 | 89 | 0.597261 | jogdandsnehal14 |
5eca1173bcd8decc94a75037514d66d74e9ecacd | 37,582 | cpp | C++ | src/algos/fmath.cpp | rdmenezes/fibernavigator2 | bbb8bc8ff16790580d5b03fce7e1fad45fae1b91 | [
"MIT"
] | null | null | null | src/algos/fmath.cpp | rdmenezes/fibernavigator2 | bbb8bc8ff16790580d5b03fce7e1fad45fae1b91 | [
"MIT"
] | null | null | null | src/algos/fmath.cpp | rdmenezes/fibernavigator2 | bbb8bc8ff16790580d5b03fce7e1fad45fae1b91 | [
"MIT"
] | null | null | null | /*
* fmath.cpp
*
* Created on: Jul 17, 2012
* @author Ralph Schurade
*/
#include "fmath.h"
#include "math.h"
#include "../thirdparty/newmat10/newmatap.h"
#include "../thirdparty/newmat10/newmatio.h"
#include "../thirdparty/newmat10/newmatrm.h"
#include "../thirdparty/newmat10/precisio.h"
#include <QDebug>
#incl... | 30.357027 | 161 | 0.414879 | rdmenezes |
5ecb86d81887a82e2049be442d56db498b130b8a | 2,194 | cpp | C++ | codes/UVA/10001-19999/uva10641.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/10001-19999/uva10641.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/10001-19999/uva10641.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
const int N = 105;
const int M = 1005;
const int INF = 0x3f3f3f3f;
const double eps = 1e-6;
const double pi = atan(1.0)*4;
struct state {
int l, r, val;
}s[M];
struct point {
double x, y;
point (double x = 0, double ... | 17.275591 | 74 | 0.494075 | JeraKrs |
5eddaa1e4c73618c8bbf3056d1b2a275d5ad9ced | 1,585 | cxx | C++ | kernel/mutex.cxx | SuperLeaf1995/uDOS | 9c2236b14ccdc2a4c25ec5e725b8df4525bf8b96 | [
"Unlicense"
] | 2 | 2022-01-23T00:11:16.000Z | 2022-01-26T22:18:01.000Z | kernel/mutex.cxx | SuperLeaf1995/uDOS | 9c2236b14ccdc2a4c25ec5e725b8df4525bf8b96 | [
"Unlicense"
] | null | null | null | kernel/mutex.cxx | SuperLeaf1995/uDOS | 9c2236b14ccdc2a4c25ec5e725b8df4525bf8b96 | [
"Unlicense"
] | 2 | 2022-02-03T22:04:59.000Z | 2022-03-26T10:51:25.000Z | export module mutex;
export namespace base {
typedef volatile int short atomic_int;
struct mutex {
enum {
UNLOCKED = 0,
LOCKED = 1,
};
mutex(mutex& lhs) = delete;
mutex(const mutex& lhs) = delete;
mutex(mutex&& lhs) = delete;
... | 22.323944 | 57 | 0.4347 | SuperLeaf1995 |
5ee7a117d61504477aa81ee3698c1333c6fa8bef | 563 | cpp | C++ | 2.cpp | wuyongfa-genius/Algorithms_in_C- | 0973fc1e2c01a818056a0f0b3bfac7a62449bc73 | [
"MIT"
] | 1 | 2021-08-17T05:22:09.000Z | 2021-08-17T05:22:09.000Z | 2.cpp | wuyongfa-genius/Algorithms_in_C- | 0973fc1e2c01a818056a0f0b3bfac7a62449bc73 | [
"MIT"
] | null | null | null | 2.cpp | wuyongfa-genius/Algorithms_in_C- | 0973fc1e2c01a818056a0f0b3bfac7a62449bc73 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
int main(){
vector<vector<double>>in={{0.0400, 0.0800, 0.1200, 0.1600, 0.2000},
{0.2400, 0.2800, 0.3200, 0.3600, 0.4000},
{0.4400, 0.4800, 0.5200, 0.5600, 0.6000},
{0.6400, 0.6800, 0.7200, 0.7600, 0.8000},
{0.8400, 0.8800, 0.9200, 0.9600, 1... | 28.15 | 71 | 0.571936 | wuyongfa-genius |
d67927f1561a131ccbc566922fca8e4679197cb9 | 717 | hpp | C++ | ares/fc/fc.hpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/fc/fc.hpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/fc/fc.hpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | #pragma once
//started: 2011-09-05
#include <ares/ares.hpp>
#include <component/processor/mos6502/mos6502.hpp>
#include <component/audio/ym2149/ym2149.hpp>
#include <component/audio/ym2413/ym2413.hpp>
#include <component/eeprom/x24c01/x24c01.hpp>
namespace ares::Famicom {
#include <ares/inline.hpp>
struct Regio... | 23.9 | 50 | 0.707113 | moon-chilled |
d67a4821068d7a35b268da8e5e7661b7c65cd068 | 3,411 | cpp | C++ | src/hssh/local_topological/training/boosting_feature_selection.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/hssh/local_topological/training/boosting_feature_selection.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/hssh/local_topological/training/boosting_feature_selection.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 34.454545 | 118 | 0.61888 | anuranbaka |
d67acbf8f7a05b2d9fc364162a06e452d6b8c175 | 6,163 | cpp | C++ | src/gluon/app/app.cpp | cmourglia/gluon-old | 9c9a55e86cd8878c0e90917882965c87c84969eb | [
"MIT"
] | null | null | null | src/gluon/app/app.cpp | cmourglia/gluon-old | 9c9a55e86cd8878c0e90917882965c87c84969eb | [
"MIT"
] | null | null | null | src/gluon/app/app.cpp | cmourglia/gluon-old | 9c9a55e86cd8878c0e90917882965c87c84969eb | [
"MIT"
] | 2 | 2022-02-21T19:09:02.000Z | 2022-02-21T19:09:51.000Z | #include "gluon/app/app.h"
// #include "gluon/core/Utils.h"
#include <SDL.h>
#include <SDL_image.h>
#include <beard/io/io.h>
#include <nanosvg.h>
#include <vector>
#include "gluon/widgets/widget.h"
GluonApp* GluonApp::s_instance = nullptr;
GluonApp* GluonApp::instance() { return s_instance; }
GluonApp::GluonApp(i... | 29.917476 | 80 | 0.469252 | cmourglia |
d67ce055c71847927406dd2e774cbd3657ab1ae1 | 14,896 | hpp | C++ | src/hadt_forward_list.hpp | gahcep/HeterogeneousList | e39a6b3ceff2423e9ed3711bbf9bff5c1e5d145f | [
"MIT"
] | null | null | null | src/hadt_forward_list.hpp | gahcep/HeterogeneousList | e39a6b3ceff2423e9ed3711bbf9bff5c1e5d145f | [
"MIT"
] | null | null | null | src/hadt_forward_list.hpp | gahcep/HeterogeneousList | e39a6b3ceff2423e9ed3711bbf9bff5c1e5d145f | [
"MIT"
] | null | null | null | #pragma once
// std::bidirectional_iterator_tag, std::forward_iterator_tag, std::iterator
#include <iterator>
// std::out_of_range, std::length_error
#include <stdexcept>
// std::cout, std::endl, std::ostream
#include <iostream>
// std::move, std::swap, std::ptrdiff_t
#include <utility>
// std::is_same, std::enabl... | 24.951424 | 115 | 0.66058 | gahcep |
d680da63aa1e35fd53bd14dada1f39efa659114b | 679 | hpp | C++ | RFGR Extended Camera/pch.hpp | Moneyl/RFGR-Extended-Camera | a68fa3a531f0be71eea0416bdd390bd1b1fa560e | [
"MIT"
] | 4 | 2020-05-25T01:42:56.000Z | 2021-01-16T19:46:50.000Z | RFGR Extended Camera/pch.hpp | Moneyl/RFGR-Extended-Camera | a68fa3a531f0be71eea0416bdd390bd1b1fa560e | [
"MIT"
] | null | null | null | RFGR Extended Camera/pch.hpp | Moneyl/RFGR-Extended-Camera | a68fa3a531f0be71eea0416bdd390bd1b1fa560e | [
"MIT"
] | null | null | null | #pragma once
//Keep in mind that precompiled header use is actually disabled for the moment, since I was having issues getting them working properly.
#pragma warning(push, 0) //Disable warnings on included files since I can't / won't modify them to remove warnings.
#include <windows.h>
#include <stdio.h>
#include <st... | 26.115385 | 136 | 0.748159 | Moneyl |
d68582f71f2fc072e07c8f7be7c157197ab3f61b | 4,887 | cpp | C++ | plugins/channel-safely/channel-manager.cpp | cppcooper/dfhack-cxxrandom | 550ee4441473ced455ab552ccdbff77cf0978e31 | [
"CC-BY-3.0"
] | null | null | null | plugins/channel-safely/channel-manager.cpp | cppcooper/dfhack-cxxrandom | 550ee4441473ced455ab552ccdbff77cf0978e31 | [
"CC-BY-3.0"
] | null | null | null | plugins/channel-safely/channel-manager.cpp | cppcooper/dfhack-cxxrandom | 550ee4441473ced455ab552ccdbff77cf0978e31 | [
"CC-BY-3.0"
] | null | null | null | #include "channel-manager.h"
#include "inlines.h"
#include <df/block_square_event_designation_priorityst.h>
#include <LuaTools.h>
#include <LuaWrapper.h>
extern color_ostream* debug_out;
extern bool cheat_mode;
// executes dig designations for the specified tile coordinates
static bool dig_now_tile(color_ostream &ou... | 41.415254 | 125 | 0.606916 | cppcooper |
d688e280038f673816c624e808145f579b1b157a | 2,533 | cpp | C++ | fboss/agent/hw/test/dataplane_tests/HwInDiscardCounterTests.cpp | phshaikh/fboss | 05e6ed1e9d62bf7db45a770886b1761e046c1722 | [
"BSD-3-Clause"
] | 1 | 2020-03-20T22:47:21.000Z | 2020-03-20T22:47:21.000Z | fboss/agent/hw/test/dataplane_tests/HwInDiscardCounterTests.cpp | phshaikh/fboss | 05e6ed1e9d62bf7db45a770886b1761e046c1722 | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/hw/test/dataplane_tests/HwInDiscardCounterTests.cpp | phshaikh/fboss | 05e6ed1e9d62bf7db45a770886b1761e046c1722 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | 32.896104 | 80 | 0.702724 | phshaikh |
d6895fc87a464aec04165fc254a2ea15e733e06f | 2,198 | cpp | C++ | utility/fsutils.cpp | anatolse/beam | 43c4ce0011598641d9cdeffbfdee66fde0a49730 | [
"Apache-2.0"
] | 2 | 2020-03-11T09:10:10.000Z | 2020-04-17T13:45:08.000Z | utility/fsutils.cpp | anatolse/beam | 43c4ce0011598641d9cdeffbfdee66fde0a49730 | [
"Apache-2.0"
] | null | null | null | utility/fsutils.cpp | anatolse/beam | 43c4ce0011598641d9cdeffbfdee66fde0a49730 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 The Beam Team
//
// 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... | 31.4 | 97 | 0.66424 | anatolse |
d6917a653edaec9f829f04d7520029e30008ea9c | 5,018 | cpp | C++ | experimental/Pomdog.Experimental/Rendering/Renderer.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Rendering/Renderer.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Rendering/Renderer.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#include "Renderer.hpp"
#include "RenderCommand.hpp"
#include "Pomdog.Experimental/Rendering/RenderCommandProcessor.hpp"
#include "Pomdog/Graphics/GraphicsCommandList.hpp"
#include "Pomdog/Utility/Assert.hpp"
#include <algorithm>
#include <functio... | 25.343434 | 81 | 0.676365 | ValtoForks |
d6984666bc2ca846b10e0e34b9da321c7ff06d8b | 5,269 | cpp | C++ | ImageProcessing/HarrisCornerDetector.cpp | IntelSoftware/MulticoreImageProcessing | 1dbb65b6ac893d608016f6595523f5b0b9ba342e | [
"Intel"
] | 14 | 2018-07-18T08:08:51.000Z | 2021-12-24T15:32:23.000Z | ImageProcessing/HarrisCornerDetector.cpp | IntelSoftware/MulticoreImageProcessing | 1dbb65b6ac893d608016f6595523f5b0b9ba342e | [
"Intel"
] | null | null | null | ImageProcessing/HarrisCornerDetector.cpp | IntelSoftware/MulticoreImageProcessing | 1dbb65b6ac893d608016f6595523f5b0b9ba342e | [
"Intel"
] | 7 | 2018-10-10T09:02:05.000Z | 2021-03-20T05:34:28.000Z | #include "stdafx.h"
#include < math.h>
#include <fstream>
#include "omp.h"
using namespace std;
extern "C" __declspec(dllexport) int __stdcall HarrisCornerDetector(BYTE* inBGR, BYTE* outBGR, int stride, int width, int height, KVP* arr, int nArr)
{
// Pack the following structure on one-byte boundaries: smallest poss... | 34.89404 | 149 | 0.59423 | IntelSoftware |
d6998d6612575288ebed1b2c85d3f7c60738ad8a | 440 | cc | C++ | cc/template.cc | asciphx/CarryLib | 6f8c54f182525eee47feae412a109e15ead319cc | [
"MIT"
] | 1 | 2021-12-02T11:24:08.000Z | 2021-12-02T11:24:08.000Z | cc/template.cc | asciphx/CarryLib | 6f8c54f182525eee47feae412a109e15ead319cc | [
"MIT"
] | null | null | null | cc/template.cc | asciphx/CarryLib | 6f8c54f182525eee47feae412a109e15ead319cc | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
using namespace std;
template <typename T,int N>
class Array{private:T arr[N];
public:int Size()const{return N;}};
template <typename T> void print(T& x) { std::cout << x << std::endl; }
template <typename T, typename... Args>
void print(T s, Args... a) { std::cout << s; print<Args... | 27.5 | 71 | 0.618182 | asciphx |
d6a2b7460e047a9fbe289a488e5b9ebf1d56154c | 5,326 | hpp | C++ | src/color/lab/convert/LabCH.hpp | ehtec/color | aa6d8c796303d1f3cfd7361978bfa58eac808b6e | [
"Apache-2.0"
] | 120 | 2015-12-31T22:30:14.000Z | 2022-03-29T15:08:01.000Z | src/color/lab/convert/LabCH.hpp | ehtec/color | aa6d8c796303d1f3cfd7361978bfa58eac808b6e | [
"Apache-2.0"
] | 6 | 2016-08-22T02:14:56.000Z | 2021-11-06T22:39:52.000Z | src/color/lab/convert/LabCH.hpp | ehtec/color | aa6d8c796303d1f3cfd7361978bfa58eac808b6e | [
"Apache-2.0"
] | 23 | 2016-02-03T01:56:26.000Z | 2021-09-28T16:36:27.000Z | #ifndef color_lab_convert_LabCH
#define color_lab_convert_LabCH
#include "../../_internal/convert.hpp"
#include "../category.hpp"
#include "../../LabCH/LabCH.hpp"
namespace color
{
namespace _internal
{
template
<
typename lab_tag_name
,typename LabCH_tag_... | 40.656489 | 160 | 0.647953 | ehtec |
d6a76973891f68e41b3c62084dae8a29d8a61ab6 | 8,726 | cpp | C++ | sound-cloud/audio/Audio.cpp | MikaylaFischler/light-art-sound-cloud | 31fa393d85e42fb0523579b46da5a1680fa63650 | [
"MIT"
] | null | null | null | sound-cloud/audio/Audio.cpp | MikaylaFischler/light-art-sound-cloud | 31fa393d85e42fb0523579b46da5a1680fa63650 | [
"MIT"
] | null | null | null | sound-cloud/audio/Audio.cpp | MikaylaFischler/light-art-sound-cloud | 31fa393d85e42fb0523579b46da5a1680fa63650 | [
"MIT"
] | null | null | null | #include "Audio.hpp"
AudioControlSGTL5000* Audio::board = NULL;
AudioInputI2S* Audio::input = NULL;
AudioAnalyzeFFT1024* Audio::fft_l = NULL;
AudioAnalyzeFFT1024* Audio::fft_r = NULL;
AudioConnection* Audio::fft_l_conn = NULL;
AudioConnection* Audio::fft_r_conn = NULL;
float** Audio::last_fft = NULL;
float*** Audio::f... | 30.833922 | 159 | 0.683475 | MikaylaFischler |
d6ad47df68a2fcb10c7d062499ad5b3f4b09c858 | 260 | cpp | C++ | src/skills/Skill.cpp | char-lotl/traveller-cc | 802d36d7eaa8b027655912c4c71f7ebff2f2059f | [
"MIT"
] | null | null | null | src/skills/Skill.cpp | char-lotl/traveller-cc | 802d36d7eaa8b027655912c4c71f7ebff2f2059f | [
"MIT"
] | null | null | null | src/skills/Skill.cpp | char-lotl/traveller-cc | 802d36d7eaa8b027655912c4c71f7ebff2f2059f | [
"MIT"
] | null | null | null | #include <optional>
#include <string>
#include "Skill.h"
Skill::Skill(skill_type ws) : which_skill(ws) {
// nothing required here
}
Skill::Skill(skill_type ws, std::string subsk) :
which_skill(ws), specialty(subsk) {
// still nothing required here
}
| 20 | 48 | 0.7 | char-lotl |
d6ae0786b9df375767708406bdc7c02258a5dfb4 | 925 | cpp | C++ | src/shader.cpp | cbries/tetrisgl | a40f22140d05c2cf6116946459a99a0477c1569a | [
"MIT"
] | 1 | 2015-02-23T19:06:04.000Z | 2015-02-23T19:06:04.000Z | src/shader.cpp | cbries/tetrisgl | a40f22140d05c2cf6116946459a99a0477c1569a | [
"MIT"
] | null | null | null | src/shader.cpp | cbries/tetrisgl | a40f22140d05c2cf6116946459a99a0477c1569a | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2008 Christian Benjamin Ries
* License: MIT
* Website: https://github.com/cbries/tetrisgl
*/
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iostream>
#include "shader.h"
#include "textfile.h"
GLuint setShaders( std::string filename ) {
GLuint v, f;
char *vs = NULL,*fs = N... | 18.877551 | 49 | 0.675676 | cbries |
d6b42c58ecda30c17d6cfe97615a6f11bcaafbf5 | 25,018 | cpp | C++ | src/modules/processes/ColorCalibration/BackgroundNeutralizationInterface.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/modules/processes/ColorCalibration/BackgroundNeutralizationInterface.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/modules/processes/ColorCalibration/BackgroundNeutralizationInterface.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.9
// ----------------------------------------------------------------------------
// Standard ColorCalibration Process Module Version 1.5.1
// -------------------... | 43.509565 | 145 | 0.6664 | fmeschia |
d6b72ff253851c83c2993880e81f78e70d7d0fa2 | 3,323 | hpp | C++ | AdenitaCoreSE/include/SEAdenitaCoreSEAppGUI.hpp | edellano/Adenita-SAMSON-Edition-Win- | 6df8d21572ef40fe3fc49165dfaa1d4318352a69 | [
"BSD-3-Clause"
] | 2 | 2020-09-07T20:48:43.000Z | 2021-09-03T05:49:59.000Z | AdenitaCoreSE/include/SEAdenitaCoreSEAppGUI.hpp | edellano/Adenita-SAMSON-Edition | 6df8d21572ef40fe3fc49165dfaa1d4318352a69 | [
"BSD-3-Clause"
] | 6 | 2020-04-05T18:39:28.000Z | 2022-01-11T14:28:55.000Z | AdenitaCoreSE/include/SEAdenitaCoreSEAppGUI.hpp | edellano/Adenita-SAMSON-Edition-Win- | 6df8d21572ef40fe3fc49165dfaa1d4318352a69 | [
"BSD-3-Clause"
] | 2 | 2021-07-13T12:58:13.000Z | 2022-01-11T13:52:00.000Z | #pragma once
#include "SBGApp.hpp"
#include "ui_SEAdenitaCoreSEAppGUI.h"
#include <QMessageBox>
#include <QComboBox>
#include <QSpinBox>
#include <QToolButton>
class SEAdenitaCoreSEApp;
/// This class implements the GUI of the app
// SAMSON Element generator pro tip: add GUI functionality in this class. The non-G... | 25.75969 | 141 | 0.676497 | edellano |
d6b7722e541ebf76bffe5916983ea58851b594fb | 934 | cpp | C++ | Examples/MacroEquals/main_macro_equals.cpp | sapphire-devteam/SA-UnitTestHelper | 5413b64f5554036e9fd18e2e0f7784f97aaf3c2f | [
"MIT"
] | null | null | null | Examples/MacroEquals/main_macro_equals.cpp | sapphire-devteam/SA-UnitTestHelper | 5413b64f5554036e9fd18e2e0f7784f97aaf3c2f | [
"MIT"
] | null | null | null | Examples/MacroEquals/main_macro_equals.cpp | sapphire-devteam/SA-UnitTestHelper | 5413b64f5554036e9fd18e2e0f7784f97aaf3c2f | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Sapphire's Suite. All Rights Reserved.. All Rights Reserved.
#include <UnitTestHelper.hpp>
using namespace Sa;
#include <limits>
struct MyClass
{
float myFloat = 0.0f;
std::string ToString() const { return std::to_string(myFloat); }
bool operator==(const MyClass& _rhs) const { return myFlo... | 18.68 | 82 | 0.647752 | sapphire-devteam |
d6b93ff1997f8e0b9757ff88ebc8c24bf999b815 | 21,359 | cpp | C++ | bLSM.cpp | sears/bLSM | fc49c4e0ce1ef69bd9d18b7ed5c83151aee9c91c | [
"Apache-2.0"
] | 114 | 2015-03-10T16:07:35.000Z | 2022-01-11T08:36:42.000Z | bLSM.cpp | anqin/bLSM | fc49c4e0ce1ef69bd9d18b7ed5c83151aee9c91c | [
"Apache-2.0"
] | 1 | 2019-03-16T11:31:59.000Z | 2019-03-16T11:31:59.000Z | bLSM.cpp | anqin/bLSM | fc49c4e0ce1ef69bd9d18b7ed5c83151aee9c91c | [
"Apache-2.0"
] | 36 | 2015-02-17T22:04:17.000Z | 2021-06-06T02:38:18.000Z | /*
* blsm.cpp
*
* Copyright 2009-2012 Yahoo! 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 applicab... | 29.706537 | 197 | 0.607145 | sears |
d6be3a6d75ddc19a8644ddffec93b7abf0149286 | 8,720 | cpp | C++ | deps/vision/src/kernel/Vca_VcaProxyFacilitator.cpp | MichaelJCaruso/vxa-node | 4b02a17f48bed6f71f622e0bb743f87d932a2a6f | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/kernel/Vca_VcaProxyFacilitator.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/kernel/Vca_VcaProxyFacilitator.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** VcaProxyFacilitator Implementation *****/
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
**********... | 35.737705 | 89 | 0.613532 | MichaelJCaruso |
d6c104fa17fa520526bfcf9bb738caf35463c9d0 | 2,379 | cpp | C++ | Graph/SmartTravelAgent_mst.cpp | Satyabrat35/Programming | 841ead1bf847b567d8e21963673413cbd65277f4 | [
"Apache-2.0"
] | null | null | null | Graph/SmartTravelAgent_mst.cpp | Satyabrat35/Programming | 841ead1bf847b567d8e21963673413cbd65277f4 | [
"Apache-2.0"
] | null | null | null | Graph/SmartTravelAgent_mst.cpp | Satyabrat35/Programming | 841ead1bf847b567d8e21963673413cbd65277f4 | [
"Apache-2.0"
] | null | null | null | /**************erik****************/
#include<bits/stdc++.h>
#include <cstdio>
#include <iostream>
#include <algorithm>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
//map<ll,ll> mp1;
//set<int> s1;
//set<int>::iterator it;
#define maxm(a,b,c) max(a,max(c,b))
#define minm(a,b,c) ... | 21.432432 | 45 | 0.497268 | Satyabrat35 |
d6c1056bfef3fed68dadf7c849e6745cab5b1819 | 1,001 | cpp | C++ | opencl/test/unit_test/mocks/ult_cl_device_factory.cpp | 8tab/compute-runtime | 71bd96ad7184df83c7af04ffa8e0d6678ab26f99 | [
"MIT"
] | 1 | 2020-09-03T17:10:38.000Z | 2020-09-03T17:10:38.000Z | opencl/test/unit_test/mocks/ult_cl_device_factory.cpp | 8tab/compute-runtime | 71bd96ad7184df83c7af04ffa8e0d6678ab26f99 | [
"MIT"
] | null | null | null | opencl/test/unit_test/mocks/ult_cl_device_factory.cpp | 8tab/compute-runtime | 71bd96ad7184df83c7af04ffa8e0d6678ab26f99 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/test/unit_test/mocks/ult_cl_device_factory.h"
#include "shared/test/unit_test/mocks/ult_device_factory.h"
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
using namespace NEO;
UltClDeviceFactory::UltClDevic... | 29.441176 | 117 | 0.733267 | 8tab |
d6cc54b5038fd2b46509fb1f732378ab4a3a6cb1 | 6,704 | cpp | C++ | export/windows/obj/src/haxe/Utf8.cpp | arturspon/zombie-killer | 07848c5006916e9079537a3d703ffe3740afaa5a | [
"MIT"
] | null | null | null | export/windows/obj/src/haxe/Utf8.cpp | arturspon/zombie-killer | 07848c5006916e9079537a3d703ffe3740afaa5a | [
"MIT"
] | null | null | null | export/windows/obj/src/haxe/Utf8.cpp | arturspon/zombie-killer | 07848c5006916e9079537a3d703ffe3740afaa5a | [
"MIT"
] | 1 | 2021-07-16T22:57:01.000Z | 2021-07-16T22:57:01.000Z | // Generated by Haxe 4.0.0-rc.2+77068e10c
#include <hxcpp.h>
#ifndef INCLUDED_haxe_Utf8
#include <haxe/Utf8.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_37807d8ab8df9b7c_31_new,"haxe.Utf8","new",0x67cc940b,"haxe.Utf8.new","C:\\HaxeToolkit\\haxe\\std/cpp/_std/haxe/Utf8.hx",31,0xf320feca)
HX_LOCAL_STACK_FRAME(_hx_pos_37807d... | 32.230769 | 184 | 0.717482 | arturspon |
d6d4077878bdf7b27ae363f9c09f59580f36cbb2 | 4,753 | hpp | C++ | include/cppdevtk/base/posix_signals_watcher_unx.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/cppdevtk/base/posix_signals_watcher_unx.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/cppdevtk/base/posix_signals_watcher_unx.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// \file
///
/// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n
/// Licensed under the Apache License, Version 2.0 (the "License");\n
/// you may not use this file e... | 35.470149 | 126 | 0.637492 | CoSoSys |
d6d474fa9f74a5839fb55c4fb4a80b55b004b937 | 3,072 | cpp | C++ | infer/tests/codetoanalyze/cpp/performance/array.cpp | sujin0529/infer | f08a09d6896ac2a22081ead4830eb86c64af8813 | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/tests/codetoanalyze/cpp/performance/array.cpp | sujin0529/infer | f08a09d6896ac2a22081ead4830eb86c64af8813 | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/tests/codetoanalyze/cpp/performance/array.cpp | sujin0529/infer | f08a09d6896ac2a22081ead4830eb86c64af8813 | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <algorithm>
#include <iostream>
#include <iterator>
void array_access_constant() {
float radii[8];
for (int i = 0; i <... | 21.942857 | 75 | 0.57194 | sujin0529 |
d6dbe2b458bb202daf066b4258ca621ef81265e3 | 5,335 | cpp | C++ | Source/DialogSystemEditor/Private/DialogSystemEditor.cpp | n3td0g/DialogSystem | 5c7919c5d69246c3798f2322b08f0c10c736d0dc | [
"Apache-2.0"
] | null | null | null | Source/DialogSystemEditor/Private/DialogSystemEditor.cpp | n3td0g/DialogSystem | 5c7919c5d69246c3798f2322b08f0c10c736d0dc | [
"Apache-2.0"
] | null | null | null | Source/DialogSystemEditor/Private/DialogSystemEditor.cpp | n3td0g/DialogSystem | 5c7919c5d69246c3798f2322b08f0c10c736d0dc | [
"Apache-2.0"
] | null | null | null | #include "DialogSystemEditor.h"
#include "Developer/AssetTools/Public/AssetTypeCategories.h"
#include "Editor/PropertyEditor/Public/PropertyEditorModule.h"
#include "Editor/WorkspaceMenuStructure/Public/WorkspaceMenuStructure.h"
#include "Editor/WorkspaceMenuStructure/Public/WorkspaceMenuStructureModule.h"
#include "IS... | 48.063063 | 177 | 0.837863 | n3td0g |
d6e39e70fae327912f6873c30dbdedebf5e06f51 | 21,363 | cpp | C++ | src/prod/src/Common/NamingUri.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 1 | 2018-03-15T02:09:21.000Z | 2018-03-15T02:09:21.000Z | src/prod/src/Common/NamingUri.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | src/prod/src/Common/NamingUri.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 32.368182 | 188 | 0.509011 | AnthonyM |
d6eb8f831c53eadf73c7a302ff50b2fa9423ce2c | 1,385 | cpp | C++ | game/game/definitions/visualfxdefinitions.cpp | houkama/OpenGothic | 0a5e429bc1fd370259abe8664f19dc9e365ecac5 | [
"MIT"
] | 576 | 2019-07-22T19:14:33.000Z | 2022-03-31T22:27:28.000Z | game/game/definitions/visualfxdefinitions.cpp | houkama/OpenGothic | 0a5e429bc1fd370259abe8664f19dc9e365ecac5 | [
"MIT"
] | 208 | 2019-07-22T17:25:30.000Z | 2022-03-14T18:53:06.000Z | game/game/definitions/visualfxdefinitions.cpp | houkama/OpenGothic | 0a5e429bc1fd370259abe8664f19dc9e365ecac5 | [
"MIT"
] | 67 | 2019-10-14T19:39:38.000Z | 2022-01-27T13:58:03.000Z | #include "visualfxdefinitions.h"
#include <Tempest/Log>
#include "graphics/visualfx.h"
#include "gothic.h"
using namespace Tempest;
VisualFxDefinitions::VisualFxDefinitions() {
vm = Gothic::inst().createVm("VisualFx.dat");
}
VisualFxDefinitions::~VisualFxDefinitions() {
vm->clearReferences(Daedalus::IC_Pfx);... | 25.648148 | 105 | 0.66426 | houkama |
d6eee2708dbb00fd305fc1cc4b9964a38cf58567 | 1,332 | cpp | C++ | code/engine.vc2008/xrCore/DateTime.cpp | icetorch2001/xray-oxygen | 8c210ac2824f794cea69266048fe12d584ee3f04 | [
"Apache-2.0"
] | 1 | 2021-09-14T14:28:56.000Z | 2021-09-14T14:28:56.000Z | code/engine.vc2008/xrCore/DateTime.cpp | icetorch2001/xray-oxygen | 8c210ac2824f794cea69266048fe12d584ee3f04 | [
"Apache-2.0"
] | null | null | null | code/engine.vc2008/xrCore/DateTime.cpp | icetorch2001/xray-oxygen | 8c210ac2824f794cea69266048fe12d584ee3f04 | [
"Apache-2.0"
] | 3 | 2021-11-01T06:21:26.000Z | 2022-01-08T16:13:23.000Z | #include "stdafx.h"
#include "DateTime.hpp"
Time::Time()
{
t = time(nullptr);
aTm = *localtime(&t);
}
Time::Time(time_t InTime)
: t(InTime)
{
aTm = *localtime(&t);
}
int Time::GetSeconds() const
{
return aTm.tm_sec;
}
int Time::GetMinutes() const
{
return aTm.tm_min;
}
int Time::GetHours() const
{
return aT... | 18 | 106 | 0.671171 | icetorch2001 |
d6f089d99a397f8a5e7b624930a39dc86f3b8f0a | 3,682 | cpp | C++ | 004_Metalights Improved Interleaved Shading/SplitGBufferPass.cpp | Mr-Devin/GraphicAlgorithm | 58877e6a8dba75ab171b0d89260defaffa22d047 | [
"MIT"
] | 1 | 2021-11-16T11:40:04.000Z | 2021-11-16T11:40:04.000Z | 004_Metalights Improved Interleaved Shading/SplitGBufferPass.cpp | younha169/GraphicAlgorithm | 93287ae4d4171764e788371887c4fd1549304552 | [
"MIT"
] | null | null | null | 004_Metalights Improved Interleaved Shading/SplitGBufferPass.cpp | younha169/GraphicAlgorithm | 93287ae4d4171764e788371887c4fd1549304552 | [
"MIT"
] | null | null | null | #include "SplitGBufferPass.h"
#include "Interface.h"
#include "Common.h"
#include "Utils.h"
#include "Shader.h"
CSplitGBufferPass::CSplitGBufferPass(const std::string& vPassName, int vExcutionOrder) : IRenderPass(vPassName, vExcutionOrder)
{
}
CSplitGBufferPass::~CSplitGBufferPass()
{
}
void CSplitGBufferPass::initV... | 54.955224 | 135 | 0.828083 | Mr-Devin |
d6f2721ece0f2de78fbe13346552ceae479b4c4a | 373 | cpp | C++ | tests/testcases/unary.cpp | graydon/uint128_t | e7d55400adde4fa13008d6f4778ad3514d41aca7 | [
"MIT"
] | 180 | 2015-02-23T22:18:43.000Z | 2022-03-12T11:46:31.000Z | tests/testcases/unary.cpp | graydon/uint128_t | e7d55400adde4fa13008d6f4778ad3514d41aca7 | [
"MIT"
] | 15 | 2017-06-14T13:09:42.000Z | 2022-01-16T22:25:50.000Z | tests/testcases/unary.cpp | graydon/uint128_t | e7d55400adde4fa13008d6f4778ad3514d41aca7 | [
"MIT"
] | 52 | 2015-04-08T03:44:06.000Z | 2022-03-25T14:04:36.000Z | #include <gtest/gtest.h>
#include "uint128_t.h"
TEST(Arithmetic, unary_plus){
const uint128_t value(0x12345ULL);
EXPECT_EQ(+value, value);
}
TEST(Arithmetic, unary_minus){
const uint128_t val(1);
const uint128_t neg = -val;
EXPECT_EQ(-val, neg);
EXPECT_EQ(-neg, val);
EXPECT_EQ(neg, uint12... | 23.3125 | 76 | 0.705094 | graydon |
d6f39dfa02feb89ede21cceaec669673a72df4f6 | 763 | cpp | C++ | 0049 - Group Anagrams/cpp/main.cpp | xiaoswu/Leetcode | e4ae8b2f72a312ee247084457cf4e6dbcfd20e18 | [
"MIT"
] | 5 | 2018-10-18T06:47:19.000Z | 2020-06-19T09:30:03.000Z | 0049 - Group Anagrams/cpp/main.cpp | xiaoswu/Leetcode | e4ae8b2f72a312ee247084457cf4e6dbcfd20e18 | [
"MIT"
] | null | null | null | 0049 - Group Anagrams/cpp/main.cpp | xiaoswu/Leetcode | e4ae8b2f72a312ee247084457cf4e6dbcfd20e18 | [
"MIT"
] | null | null | null | //
// main.cpp
// 49 - Group Anagrams
//
// Created by ynfMac on 2019/12/7.
// Copyright © 2019 ynfMac. All rights reserved.
//
#include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
class Solution {
public:
vector<vector<string>> groupAnagrams(vector<string>& strs) {
unor... | 20.621622 | 64 | 0.551769 | xiaoswu |
d6f7bcff72dda89ef8880f3cb0501646fa1349f5 | 357 | hpp | C++ | PlanetaMatchMakerServer/source/utilities/asio_stream_compatibility.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 6 | 2019-08-15T09:48:55.000Z | 2021-07-25T14:40:59.000Z | PlanetaMatchMakerServer/source/utilities/asio_stream_compatibility.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 43 | 2019-12-25T14:54:52.000Z | 2022-02-24T17:22:48.000Z | PlanetaMatchMakerServer/source/utilities/asio_stream_compatibility.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 2 | 2020-05-06T20:14:44.000Z | 2020-06-02T21:21:10.000Z | #pragma once
#include <boost/asio.hpp>
namespace boost {
namespace asio {
std::ostream& operator <<(std::ostream& os, const basic_socket<ip::tcp>::endpoint_type& endpoint);
}
namespace system {
std::ostream& operator <<(std::ostream& os, const error_code& error_code);
std::ostream& operator <<(std::ostream& ... | 25.5 | 100 | 0.703081 | InstytutXR |
d6fb0c289baea16265ec7b05735877e69c88a012 | 2,301 | cpp | C++ | utility/checked_delete.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | 47 | 2016-05-20T08:49:47.000Z | 2022-01-03T01:17:07.000Z | utility/checked_delete.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | null | null | null | utility/checked_delete.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | 37 | 2016-07-25T04:52:08.000Z | 2022-02-14T03:55:08.000Z | // Copyright (c) 2016
// Author: Chrono Law
#include <std.hpp>
using namespace std;
#include <boost/checked_delete.hpp>
using namespace boost;
///////////////////////////////////////
class demo_class;
void do_delete(demo_class* p)
//{ delete p;}
{ checked_delete(p);}
///////////////////////////////////////
vo... | 17.044444 | 63 | 0.544111 | MaxHonggg |
d9010b55ad78ce4d46baa6ae6a686e8932f05969 | 121 | hpp | C++ | src/rolmodl/hpp/forwarddecl/Win.hpp | maximsmol/rolmodl | fb41b7f9f4669eea84ce6f1574cdf1be9b6f072f | [
"MIT"
] | 1 | 2022-02-19T21:34:42.000Z | 2022-02-19T21:34:42.000Z | src/rolmodl/hpp/forwarddecl/Win.hpp | maximsmol/rolmodl | fb41b7f9f4669eea84ce6f1574cdf1be9b6f072f | [
"MIT"
] | null | null | null | src/rolmodl/hpp/forwarddecl/Win.hpp | maximsmol/rolmodl | fb41b7f9f4669eea84ce6f1574cdf1be9b6f072f | [
"MIT"
] | 1 | 2021-12-07T09:33:42.000Z | 2021-12-07T09:33:42.000Z | #pragma once
#include <cstdint>
#include <SDL.h>
namespace rolmodl {
class Win_Base;
class Win;
class Win_SW;
}
| 10.083333 | 19 | 0.68595 | maximsmol |
d905a9ffc825dde40cd5c10f1e3ea532268ff364 | 3,459 | cpp | C++ | Source/Engine/Engine/GameObject3D.cpp | Syoukei66/Animal-Space-Battle | edb17e2f75fd5b43697889597e1eaac2e9e9cd76 | [
"MIT"
] | null | null | null | Source/Engine/Engine/GameObject3D.cpp | Syoukei66/Animal-Space-Battle | edb17e2f75fd5b43697889597e1eaac2e9e9cd76 | [
"MIT"
] | null | null | null | Source/Engine/Engine/GameObject3D.cpp | Syoukei66/Animal-Space-Battle | edb17e2f75fd5b43697889597e1eaac2e9e9cd76 | [
"MIT"
] | null | null | null | #include "GameObject3D.h"
#include "GameObjectRenderState.h"
// =================================================================
// Constructor / Destructor
// =================================================================
GameObject3D::GameObject3D()
: parent_(nullptr)
, children_()
{
this->transform_ = new... | 20.110465 | 108 | 0.596993 | Syoukei66 |
d9069f1e1538cf1f8469e29bbc94bbd40f57f2c3 | 12,569 | hxx | C++ | opencascade/AppDef_Variational.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/AppDef_Variational.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/AppDef_Variational.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 1996-05-14
// Created by: Philippe MANGIN / Jeannine PANCIATICI
// Copyright (c) 1996-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
... | 41.896667 | 512 | 0.782003 | mgreminger |
d91148dff2f98caf9ebfc8bbd422ef78cc17fad9 | 4,368 | hpp | C++ | src/tools/include/benchmark.hpp | kovdan01/parallel-computing | 878d836e4b05563dc7fe11b6d7ca65fea950b5b7 | [
"Intel"
] | null | null | null | src/tools/include/benchmark.hpp | kovdan01/parallel-computing | 878d836e4b05563dc7fe11b6d7ca65fea950b5b7 | [
"Intel"
] | null | null | null | src/tools/include/benchmark.hpp | kovdan01/parallel-computing | 878d836e4b05563dc7fe11b6d7ca65fea950b5b7 | [
"Intel"
] | null | null | null | #ifndef PARALLEL_COMPUTING_TOOLS_BENCHMARK_HPP_
#define PARALLEL_COMPUTING_TOOLS_BENCHMARK_HPP_
#include <chrono>
// NOTE: gcc 8.2.0 on cHARISMa does not support concepts
// Instead, use horrible std::enable_if
// #include <concepts>
#include <cstdint>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include... | 25.846154 | 128 | 0.633013 | kovdan01 |
d911b4fcec81fea1c844a18f81a150e5deff5489 | 16,907 | cpp | C++ | OpenTESArena/src/Game/Game.cpp | Digital-Monk/OpenTESArena | 95f0bdaa642ff090b94081795a53b00f10dc4b03 | [
"MIT"
] | null | null | null | OpenTESArena/src/Game/Game.cpp | Digital-Monk/OpenTESArena | 95f0bdaa642ff090b94081795a53b00f10dc4b03 | [
"MIT"
] | null | null | null | OpenTESArena/src/Game/Game.cpp | Digital-Monk/OpenTESArena | 95f0bdaa642ff090b94081795a53b00f10dc4b03 | [
"MIT"
] | null | null | null | #include <chrono>
#include <cmath>
#include <cstdint>
#include <sstream>
#include <stdexcept>
#include <string>
#include <thread>
#include "SDL.h"
#include "Game.h"
#include "Options.h"
#include "PlayerInterface.h"
#include "../Assets/CityDataFile.h"
#include "../Interface/Panel.h"
#include "../Media/FontManager.h"
#... | 29.250865 | 99 | 0.71497 | Digital-Monk |
d9150cc66db91b2e7def973f1b5f6bcf9b967920 | 667 | hpp | C++ | Murat/src/core/LayerStack.hpp | dilmuratjohn/openglTutorial-cpp | 98b524db0c0f13fa9166a13e252777bee8ec60cd | [
"Apache-2.0"
] | null | null | null | Murat/src/core/LayerStack.hpp | dilmuratjohn/openglTutorial-cpp | 98b524db0c0f13fa9166a13e252777bee8ec60cd | [
"Apache-2.0"
] | null | null | null | Murat/src/core/LayerStack.hpp | dilmuratjohn/openglTutorial-cpp | 98b524db0c0f13fa9166a13e252777bee8ec60cd | [
"Apache-2.0"
] | null | null | null | //
// Created by murat on 2019-08-09.
//
#ifndef M_LAYER_STACK_HPP
#define M_LAYER_STACK_HPP
#include "Layer.hpp"
#include <muratpch.hpp>
namespace Murat {
class LayerStack {
public:
LayerStack();
~LayerStack();
void pushLayer(Layer *layer);
void pushOverlay(Layer *overlay... | 18.027027 | 75 | 0.611694 | dilmuratjohn |
d91a238a3c440aa54ae9f3d30e36724a5c777042 | 1,971 | cpp | C++ | bezGameEngine/src/bez/Events/MouseEvent.cpp | Gustvo/bezGameEngine | 8d0ac4613d1a1aac65cab51d337b9a77d56f29ec | [
"MIT"
] | null | null | null | bezGameEngine/src/bez/Events/MouseEvent.cpp | Gustvo/bezGameEngine | 8d0ac4613d1a1aac65cab51d337b9a77d56f29ec | [
"MIT"
] | null | null | null | bezGameEngine/src/bez/Events/MouseEvent.cpp | Gustvo/bezGameEngine | 8d0ac4613d1a1aac65cab51d337b9a77d56f29ec | [
"MIT"
] | null | null | null | #include <stdafx.hpp>
#include <bez/Events/MouseEvent.hpp>
namespace bez {
/// Mouse Motion Event
MouseMotionEvent::MouseMotionEvent(float x, float y) {
m_mouseCoordinates = std::make_pair(x, y);
registerInput(std::make_pair(x, y));
};
std::string MouseMotionEvent::toString() const {
std::stringstream ss;
... | 23.464286 | 79 | 0.726027 | Gustvo |
d91c0500122a7a3f3517f87c43aff269db2af384 | 162 | hpp | C++ | WinApiFramework/OpenGL/Surface3.hpp | TonSharp/OpenWAPI | d61a8f006ea866c399e68f338c2661e9ef624369 | [
"MS-PL"
] | 3 | 2021-09-17T07:54:28.000Z | 2021-09-18T08:28:33.000Z | WinApiFramework/OpenGL/Surface3.hpp | TonSharp/WAPITIS | d61a8f006ea866c399e68f338c2661e9ef624369 | [
"MS-PL"
] | 21 | 2021-09-19T18:13:55.000Z | 2021-12-14T10:28:53.000Z | WinApiFramework/OpenGL/Surface3.hpp | TonSharp/OpenWAPI | d61a8f006ea866c399e68f338c2661e9ef624369 | [
"MS-PL"
] | null | null | null | #pragma once
#include <vector>
#include "GLContext.hpp"
using namespace std;
struct Surface3
{
Vertex normal;
Vertex points[3];
TextureCoord texCoords[3];
}; | 13.5 | 27 | 0.740741 | TonSharp |
d91cf6b58e0d9ef32c0b2003e5ae0186af652950 | 4,819 | cpp | C++ | src/libQts/QtsTimeStamper.cpp | qtlmovie/qtlmovie | 082ad5ea6522a02d5ac0d86f23cdd6152edff613 | [
"BSD-2-Clause"
] | 8 | 2016-08-09T14:05:58.000Z | 2020-09-05T14:43:36.000Z | src/libQts/QtsTimeStamper.cpp | qtlmovie/qtlmovie | 082ad5ea6522a02d5ac0d86f23cdd6152edff613 | [
"BSD-2-Clause"
] | 15 | 2016-08-09T14:11:21.000Z | 2022-01-15T23:39:07.000Z | src/libQts/QtsTimeStamper.cpp | qtlmovie/qtlmovie | 082ad5ea6522a02d5ac0d86f23cdd6152edff613 | [
"BSD-2-Clause"
] | 1 | 2017-08-26T22:08:58.000Z | 2017-08-26T22:08:58.000Z | //----------------------------------------------------------------------------
//
// Copyright (c) 2013-2017, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistri... | 35.696296 | 88 | 0.550322 | qtlmovie |
0ba804d2e7625df0820087d850d2a864b2cf2882 | 16,584 | cpp | C++ | src/Window.cpp | Lehdari/evolution_simulator_2 | daf7e8699e29cc25964f3a4234e3a1385ee7b1cf | [
"CC0-1.0"
] | null | null | null | src/Window.cpp | Lehdari/evolution_simulator_2 | daf7e8699e29cc25964f3a4234e3a1385ee7b1cf | [
"CC0-1.0"
] | null | null | null | src/Window.cpp | Lehdari/evolution_simulator_2 | daf7e8699e29cc25964f3a4234e3a1385ee7b1cf | [
"CC0-1.0"
] | null | null | null | //
// Project: evolution_simulator_2
// File: Window.cpp
//
// Copyright (c) 2021 Miika 'Lehdari' Lehtimäki
// You may use, distribute and modify this code under the terms
// of the licence specified in file LICENSE which is distributed
// with this source code package.
//
#include <Window.hpp>
#include <Utils.hpp>
#i... | 35.435897 | 124 | 0.599855 | Lehdari |
0ba95ca95977bdcd247d1625b254eb9ca1388f52 | 889 | cpp | C++ | Native/Framework/source/Tools/ModelPipeline/Program.cpp | btrowbridge/DirectX.2D.Bespoke.Games | 382728f7c9d50597f9fc84e222efd468c33716a5 | [
"MS-PL"
] | null | null | null | Native/Framework/source/Tools/ModelPipeline/Program.cpp | btrowbridge/DirectX.2D.Bespoke.Games | 382728f7c9d50597f9fc84e222efd468c33716a5 | [
"MS-PL"
] | null | null | null | Native/Framework/source/Tools/ModelPipeline/Program.cpp | btrowbridge/DirectX.2D.Bespoke.Games | 382728f7c9d50597f9fc84e222efd468c33716a5 | [
"MS-PL"
] | null | null | null | #include "pch.h"
using namespace std;
using namespace ModelPipeline;
using namespace Library;
int main(int argc, char* argv[])
{
#if defined(DEBUG) | defined(_DEBUG)
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
try
{
if (argc < 2)
{
throw exception("Usage: ModelPipeline pathToInputF... | 21.682927 | 86 | 0.723285 | btrowbridge |
0bad188a8c9958ee5f94c4ca05a73f0cf8ef61b5 | 355 | cpp | C++ | codeforce3/580A. Kefa and First Steps.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce3/580A. Kefa and First Steps.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce3/580A. Kefa and First Steps.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int const N = 1e5 + 1;
int n, a[N];
int main() {
cin >> n;
for(int i = 0; i < n; ++i)
cin >> a[i];
a[n] = -1;
int lst = a[0], res = 0;
for(int i = 0, tmp; i < n; ++i) {
tmp = i;
while(a[i] <= a[i + 1])
++i;
res = max(res, i - tmp + 1);
}
c... | 13.653846 | 35 | 0.43662 | khaled-farouk |
0bad32c49e39045d506aed745a89a492e63810e4 | 1,062 | cpp | C++ | gmtl-0.6.1/examples/faqexample.cpp | Glitch0011/QuadTree-Example | 3558c999f68475bc98b8fa33b0f6d14076c9ec48 | [
"MIT"
] | null | null | null | gmtl-0.6.1/examples/faqexample.cpp | Glitch0011/QuadTree-Example | 3558c999f68475bc98b8fa33b0f6d14076c9ec48 | [
"MIT"
] | null | null | null | gmtl-0.6.1/examples/faqexample.cpp | Glitch0011/QuadTree-Example | 3558c999f68475bc98b8fa33b0f6d14076c9ec48 | [
"MIT"
] | null | null | null | /** This is an example about a lot of cool stuff.
* The comments in this example use a slightly special
* format to make them easy to process into
* doxygen backend stuff.
*/
/* These are the headers that we need to include.
* They are all needed because we say so.
*/
#include <gmtl/gmtl.h>
#include <gmtl/Matrix.h>
in... | 24.697674 | 56 | 0.654426 | Glitch0011 |
0bb7a8234e4429790c908a27256cde3d8ba6f2a7 | 1,220 | cc | C++ | 10-More-about-MergeSort/cpp/09-Solving-Reverse-Pairs-Problem-by-MergeSort/Solution2.cc | OpenCreate/Play-with-DSA | 49de3eb3e54815d1ff6520e5933e467c1f56bdfc | [
"MIT"
] | 9 | 2020-08-10T03:43:54.000Z | 2021-11-12T06:26:32.000Z | 10-More-about-MergeSort/cpp/09-Solving-Reverse-Pairs-Problem-by-MergeSort/Solution2.cc | OpenCreate/Play-with-DSA | 49de3eb3e54815d1ff6520e5933e467c1f56bdfc | [
"MIT"
] | null | null | null | 10-More-about-MergeSort/cpp/09-Solving-Reverse-Pairs-Problem-by-MergeSort/Solution2.cc | OpenCreate/Play-with-DSA | 49de3eb3e54815d1ff6520e5933e467c1f56bdfc | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution2 {
public:
int reversePairs(vector<int> &nums) {
int res = 0;
vector<int> temp(nums);
res = sort(nums, 0, nums.size() - 1, temp);
return res;
}
private:
int sort(vector<int> &nums, int l, int r, vector<int> &temp) {
... | 21.403509 | 74 | 0.47623 | OpenCreate |
0bb98d873e78976da89a6d136a3216e1db481ffe | 2,512 | cpp | C++ | DX11 Framework/utility/Vector3D.cpp | kyle-robinson/dx11-framework | 7e4f6517b4e7e3ddda405250c46815e6e970207d | [
"MIT"
] | 1 | 2021-04-22T03:15:56.000Z | 2021-04-22T03:15:56.000Z | DX11 Framework/utility/Vector3D.cpp | kyle-robinson/dx11-framework | 7e4f6517b4e7e3ddda405250c46815e6e970207d | [
"MIT"
] | null | null | null | DX11 Framework/utility/Vector3D.cpp | kyle-robinson/dx11-framework | 7e4f6517b4e7e3ddda405250c46815e6e970207d | [
"MIT"
] | null | null | null | #include "Vector3D.h"
#include <sstream>
#include <math.h>
#include <cmath>
#include <assert.h>
#include <debugapi.h>
Vector3D::Vector3D() : x( 0 ), y( 0 ), z( 0 ) { }
Vector3D::Vector3D( float x, float y, float z ) : x( x ), y( y ), z( z ) { }
Vector3D::Vector3D( const Vector3D &vec ) : x( vec.x ), y( vec.y ), z( v... | 17.942857 | 82 | 0.591959 | kyle-robinson |
0bbac2da2f5a4bbc70f66b97e89a02a9f7006025 | 328 | cpp | C++ | Algorithm/stack-based/TOH.cpp | Alquama00s/DS-Algo | 594b04e8d119a188763481209cbfcc49c62fc002 | [
"MIT"
] | null | null | null | Algorithm/stack-based/TOH.cpp | Alquama00s/DS-Algo | 594b04e8d119a188763481209cbfcc49c62fc002 | [
"MIT"
] | null | null | null | Algorithm/stack-based/TOH.cpp | Alquama00s/DS-Algo | 594b04e8d119a188763481209cbfcc49c62fc002 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
void TOH(int n,char I,char F,char A){
if(n==1){
cout<<"moving top disk from "<<I<<" to "<<F<<"\n";
}else{
TOH(n-1,I,A,F);
cout<<"move top disk from "<<I<<" to "<<F<<"\n";
TOH(n-1,A,F,I);
}
}
int main(){
TOH(3,'I','F','A');
retu... | 21.866667 | 59 | 0.466463 | Alquama00s |
0bbce92c471249cca5f10b7eb437600e68408103 | 11,997 | cpp | C++ | server/src/WSStreamer.cpp | urbenlegend/WebStreamer | 562b16a4b8e10cce25c4088e38e83f93bc87e1ee | [
"MIT"
] | 42 | 2015-09-19T13:33:02.000Z | 2021-08-12T18:36:51.000Z | server/src/WSStreamer.cpp | cqzhanghy/WebStreamer | 562b16a4b8e10cce25c4088e38e83f93bc87e1ee | [
"MIT"
] | 3 | 2015-08-05T19:09:03.000Z | 2017-08-08T18:30:53.000Z | server/src/WSStreamer.cpp | cqzhanghy/WebStreamer | 562b16a4b8e10cce25c4088e38e83f93bc87e1ee | [
"MIT"
] | 14 | 2015-09-20T14:01:56.000Z | 2020-01-06T17:26:28.000Z | #include <string>
#include <fstream>
#include <vector>
#include "boost/shared_ptr.hpp"
#include "boost/asio.hpp"
#include "websocketpp.hpp"
#include "websocket_connection_handler.hpp"
#include "utils.h"
#include "rtpdump.h"
#include "WSStreamer.h"
using namespace std;
extern ofstream debug;
vector<unsigned char> r... | 30.372152 | 165 | 0.674752 | urbenlegend |
0bbe6460148f47156b49021f25cf9ea43874ee2a | 369 | cpp | C++ | 2021.09.27_homework-3/Project3/Source.cpp | HudzievaPolina/programming-c-2021-1course- | f4e0c769419d12f95c42913980bbdc053302b7c6 | [
"Apache-2.0"
] | null | null | null | 2021.09.27_homework-3/Project3/Source.cpp | HudzievaPolina/programming-c-2021-1course- | f4e0c769419d12f95c42913980bbdc053302b7c6 | [
"Apache-2.0"
] | null | null | null | 2021.09.27_homework-3/Project3/Source.cpp | HudzievaPolina/programming-c-2021-1course- | f4e0c769419d12f95c42913980bbdc053302b7c6 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
int a = 1;
int n = 0;
cin >> n;
for (int i = 1; i <= n; ++i)
{
for (int j = 1; j <= i; ++j)
{
if (j == i || a == n)
{
cout << a << " " << endl;
a++;
break;
}
else
{
cout << a << " ";
a++;
}
}
... | 11.903226 | 32 | 0.401084 | HudzievaPolina |
0bbf5ad61ba8db5ba02b382b9c17078337aa6faa | 1,173 | cpp | C++ | Chapter-4-Making-Decisions/Review Questions and Exercises/Algorithm Workbench/41.cpp | jesushilarioh/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 3 | 2019-02-02T16:59:48.000Z | 2019-02-28T14:50:08.000Z | Chapter-4-Making-Decisions/Review Questions and Exercises/Algorithm Workbench/41.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | null | null | null | Chapter-4-Making-Decisions/Review Questions and Exercises/Algorithm Workbench/41.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 4 | 2020-04-10T17:22:17.000Z | 2021-11-04T14:34:00.000Z | /********************************************************************
*
* 41. Match the conditional expression with the if/else
* statement that performs the same operation.
*
* A) q = x < y ? a + b : x * 2;
* B) q = x < y ? x * 2 : a + b;
* C) x < y ? q = 0 : q = 1;
* ____ if (x < y)
* ... | 20.578947 | 69 | 0.311168 | jesushilarioh |
0bc2810b2261b1a9ce35f7563376965ba463f9f4 | 3,211 | cpp | C++ | Sesion2/main.cpp | Miguel445Ar/A-y-R-Algoritmos-1 | c9b64573965d5c4371d2de1a1fff1a9425c34388 | [
"CC0-1.0"
] | null | null | null | Sesion2/main.cpp | Miguel445Ar/A-y-R-Algoritmos-1 | c9b64573965d5c4371d2de1a1fff1a9425c34388 | [
"CC0-1.0"
] | null | null | null | Sesion2/main.cpp | Miguel445Ar/A-y-R-Algoritmos-1 | c9b64573965d5c4371d2de1a1fff1a9425c34388 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <functional>
#include <vector>
#include <algorithm>
#include <string>
using std::cout;
using std::cin;
using std::function;
using std::vector;
using std::sort;
using std::string;
// Functores en C++ (Los de verdad)
class Inc
{
int num;
public:
Inc(int n) : num(n) { }
// T... | 20.06875 | 72 | 0.521956 | Miguel445Ar |
0bc71853638f5b80269dd0cd94279ff60a22cbf6 | 21,082 | cpp | C++ | source/main.cpp | io55/ART_IO55 | 8c7fa55955260a4ba4c780fa8ae8c0bba775e1b7 | [
"Unlicense"
] | 1 | 2022-03-12T02:43:54.000Z | 2022-03-12T02:43:54.000Z | source/main.cpp | io55/ART_IO55 | 8c7fa55955260a4ba4c780fa8ae8c0bba775e1b7 | [
"Unlicense"
] | null | null | null | source/main.cpp | io55/ART_IO55 | 8c7fa55955260a4ba4c780fa8ae8c0bba775e1b7 | [
"Unlicense"
] | null | null | null | #include <grrlib.h>
#include <stdlib.h>
#include <wiiuse/wpad.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <vector>
#include "icon_jpg.h"
#include "terminus_ttf.h"
#include "game/scenegenerator.cpp"
#include "globals.h"
#include "math/camera.h"
#include "menu.h"
#include "options.h"
static in... | 39.040741 | 120 | 0.482592 | io55 |
0bcc54ac82e17955fc42528cc2f78e58a1799faf | 350 | hpp | C++ | kernel/lib/bitmap.hpp | ethan4984/rock | 751b9af1009b622bedf384c1f80970b333c436c3 | [
"BSD-2-Clause"
] | 207 | 2020-05-27T21:57:28.000Z | 2022-02-26T15:17:27.000Z | kernel/lib/bitmap.hpp | ethan4984/crepOS | 751b9af1009b622bedf384c1f80970b333c436c3 | [
"BSD-2-Clause"
] | 3 | 2020-07-26T18:14:05.000Z | 2020-12-09T05:32:07.000Z | kernel/lib/bitmap.hpp | ethan4984/rock | 751b9af1009b622bedf384c1f80970b333c436c3 | [
"BSD-2-Clause"
] | 17 | 2020-07-05T19:08:48.000Z | 2021-10-13T12:30:13.000Z | #ifndef BITMAP_HPP_
#define BITMAP_HPP_
#include <cstddef>
#include <cstdint>
#include <types.hpp>
namespace lib {
class bitmap {
public:
bitmap(size_t inital_size, bool can_grow = false);
bitmap() = default;
ssize_t alloc();
void free(size_t index);
private:
uint8_t *bm;
size_t bm_size;
... | 13.461538 | 54 | 0.674286 | ethan4984 |
0bd802c971a528be05a7c16576008aa2e15705f0 | 194 | cc | C++ | source/agent/addons/audioRanker/addon.cc | andreasunterhuber/owt-server | 128b83714361c0b543ec44fc841c9094f4267633 | [
"Apache-2.0"
] | 890 | 2019-03-08T08:04:10.000Z | 2022-03-30T03:07:44.000Z | source/agent/addons/audioRanker/addon.cc | vgemv/owt-server | fa6070af33feeeb79a962de08307ac5092991cbf | [
"Apache-2.0"
] | 583 | 2019-03-11T10:27:42.000Z | 2022-03-29T01:41:28.000Z | source/agent/addons/audioRanker/addon.cc | vgemv/owt-server | fa6070af33feeeb79a962de08307ac5092991cbf | [
"Apache-2.0"
] | 385 | 2019-03-08T07:50:13.000Z | 2022-03-29T06:36:28.000Z | // Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#include "AudioRankerWrapper.h"
#include <nan.h>
using namespace v8;
NODE_MODULE(addon, AudioRanker::Init)
| 17.636364 | 41 | 0.737113 | andreasunterhuber |
0be023d8a91bfd830b80ba1c0fccebe175f68e89 | 6,642 | cpp | C++ | Engine/source/gfx/gl/ggl/mac/aglBind.cpp | camporter/Torque3D | 938e28b6f36883cb420da4b04253b1394467a1f4 | [
"Unlicense"
] | 13 | 2015-04-13T21:46:01.000Z | 2017-11-20T22:12:04.000Z | Engine/source/gfx/gl/ggl/mac/aglBind.cpp | camporter/Torque3D | 938e28b6f36883cb420da4b04253b1394467a1f4 | [
"Unlicense"
] | 1 | 2015-11-16T23:57:12.000Z | 2015-12-01T03:24:08.000Z | Engine/source/gfx/gl/ggl/mac/aglBind.cpp | camporter/Torque3D | 938e28b6f36883cb420da4b04253b1394467a1f4 | [
"Unlicense"
] | 10 | 2015-01-05T15:58:31.000Z | 2021-11-20T14:05:46.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... | 33.887755 | 106 | 0.631286 | camporter |
0be32f6e8335377b2d68fade9fd7747cca977aa9 | 3,832 | hpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/widgets/ToggleButton.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | 3 | 2020-11-07T07:01:59.000Z | 2022-03-06T10:54:52.000Z | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/widgets/ToggleButton.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | 1 | 2020-11-14T16:53:09.000Z | 2020-11-14T16:53:09.000Z | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/widgets/ToggleButton.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | 3 | 2020-03-15T14:35:38.000Z | 2021-04-07T14:55:42.000Z | /**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* <h2><center>© Copyright (c) 2018 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Libert... | 30.412698 | 112 | 0.61143 | ramkumarkoppu |
0be9e2f4b4680081b0905ea468680ce0b89a4f02 | 12,781 | hh | C++ | maps/mi.hh | krishna-beemanapalli/PlotSim | 5c90671798db323a6109e1cdfa6fbbf8b96fb713 | [
"MIT"
] | 6 | 2020-03-30T15:18:23.000Z | 2020-05-09T01:24:22.000Z | maps/mi.hh | krishna-beemanapalli/PlotSim | 5c90671798db323a6109e1cdfa6fbbf8b96fb713 | [
"MIT"
] | 1 | 2020-05-06T20:41:07.000Z | 2020-05-06T20:41:07.000Z | maps/mi.hh | krishna-beemanapalli/PlotSim | 5c90671798db323a6109e1cdfa6fbbf8b96fb713 | [
"MIT"
] | 4 | 2020-04-22T06:48:32.000Z | 2020-10-21T01:03:08.000Z | static short state[][3] =
{
0, -210, -403, 1, -211, -433, 1, -240, -432, 1, -239, -417, 1, -210, -403, 0, -157, -449, 1, -157, -469, 1, -191, -496,
1, -197, -468, 1, -187, -454, 1, -157, -449, 0, 108, -41, 1, 125, -45, 1, 136, -64, 1, 115, -66, 1, 105, -69,
1, 87, -51, 1, 108, -41, 0, 177, -120... | 118.342593 | 122 | 0.493623 | krishna-beemanapalli |
0bf02dfc7db3196778d39d7f62a505c5e099aa56 | 695 | cpp | C++ | super-mario-dx10/05-SceneManager/GameObject.cpp | HoangTuan0611/Game | 64bbf4396ff38d17d3516c1eae687033f954d769 | [
"MIT"
] | null | null | null | super-mario-dx10/05-SceneManager/GameObject.cpp | HoangTuan0611/Game | 64bbf4396ff38d17d3516c1eae687033f954d769 | [
"MIT"
] | null | null | null | super-mario-dx10/05-SceneManager/GameObject.cpp | HoangTuan0611/Game | 64bbf4396ff38d17d3516c1eae687033f954d769 | [
"MIT"
] | null | null | null | #include <d3dx9.h>
#include <algorithm>
#include "debug.h"
#include "Textures.h"
#include "Game.h"
#include "GameObject.h"
#include "Sprites.h"
CGameObject::CGameObject()
{
x = y = 0;
vx = vy = 0;
nx = 1;
state = -1;
isDeleted = false;
}
void CGameObject::RenderBoundingBox()
{
D3DXVECTOR3 p(x, y, 0);
RECT re... | 15.795455 | 69 | 0.634532 | HoangTuan0611 |
0bf3c04d24efd8fc163ffca218251295659579b9 | 614 | cpp | C++ | test/ui/test-item-vector.cpp | antonvw/wxExtension | d5523346cf0b1dbd45fd20dc33bf8d679299676c | [
"MIT"
] | 9 | 2016-01-10T20:59:02.000Z | 2019-01-09T14:18:13.000Z | test/ui/test-item-vector.cpp | antonvw/wxExtension | d5523346cf0b1dbd45fd20dc33bf8d679299676c | [
"MIT"
] | 31 | 2015-01-30T17:46:17.000Z | 2017-03-04T17:33:50.000Z | test/ui/test-item-vector.cpp | antonvw/wxExtension | d5523346cf0b1dbd45fd20dc33bf8d679299676c | [
"MIT"
] | 2 | 2015-04-05T08:45:22.000Z | 2018-08-24T06:43:24.000Z | ////////////////////////////////////////////////////////////////////////////////
// Name: test-item-vector.cpp
// Purpose: Implementation for wex unit testing
// Author: Anton van Wezenbeek
// Copyright: (c) 2020 Anton van Wezenbeek
/////////////////////////////////////////////////////////////////////////////... | 25.583333 | 80 | 0.480456 | antonvw |
0bffc3dc70fd8e9de9cccdb7f0c8eb6b65cae632 | 579 | cpp | C++ | demos/exchange_manager_clean.cpp | MaximilienNaveau/shared_memory | 1440454759cdd19e0d898753d86b8714c1aefa84 | [
"BSD-3-Clause"
] | 2 | 2020-09-08T04:01:02.000Z | 2021-01-28T15:02:11.000Z | demos/exchange_manager_clean.cpp | MaximilienNaveau/shared_memory | 1440454759cdd19e0d898753d86b8714c1aefa84 | [
"BSD-3-Clause"
] | 13 | 2019-09-24T17:21:49.000Z | 2021-03-02T10:09:03.000Z | demos/exchange_manager_clean.cpp | MaximilienNaveau/shared_memory | 1440454759cdd19e0d898753d86b8714c1aefa84 | [
"BSD-3-Clause"
] | 2 | 2019-05-06T08:25:35.000Z | 2020-04-14T11:49:02.000Z | #include <signal.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <iostream>
#include "shared_memory/demos/four_int_values.hpp"
#include "shared_memory/exchange_manager_producer.hpp"
#define SEGMENT_ID "exchange_demo_segment"
#define QUEUE_SIZE 2000
int main()
{
shared_memory::Exchange_manage... | 27.571429 | 59 | 0.75475 | MaximilienNaveau |
0405eeac55d49dc3fb9f801220a850c5c48fcb26 | 1,201 | cpp | C++ | lib/src/io/Stream.cpp | tuanphuc/Viry3D | 8f6e141f222ce01372ffd2183a4d39e7a076aad2 | [
"Apache-2.0"
] | null | null | null | lib/src/io/Stream.cpp | tuanphuc/Viry3D | 8f6e141f222ce01372ffd2183a4d39e7a076aad2 | [
"Apache-2.0"
] | null | null | null | lib/src/io/Stream.cpp | tuanphuc/Viry3D | 8f6e141f222ce01372ffd2183a4d39e7a076aad2 | [
"Apache-2.0"
] | 1 | 2020-09-04T07:38:32.000Z | 2020-09-04T07:38:32.000Z | /*
* Viry3D
* Copyright 2014-2019 by Stack - stackos@qq.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 applicabl... | 17.157143 | 74 | 0.668609 | tuanphuc |
040700cc399337a7b35ef964523fd9bd98b6c7a1 | 1,469 | hpp | C++ | lib/aoc2021/include/aoc2021/day3/part2.hpp | bencodestx/aoc-2021-cpp | 41518858a6ec4af65754d0170f4d6bfbe4d9548d | [
"MIT"
] | null | null | null | lib/aoc2021/include/aoc2021/day3/part2.hpp | bencodestx/aoc-2021-cpp | 41518858a6ec4af65754d0170f4d6bfbe4d9548d | [
"MIT"
] | null | null | null | lib/aoc2021/include/aoc2021/day3/part2.hpp | bencodestx/aoc-2021-cpp | 41518858a6ec4af65754d0170f4d6bfbe4d9548d | [
"MIT"
] | null | null | null | #pragma once
#include "aoc2021/day3/operators.hpp"
#include "aoc2021/read_vector.hpp"
#include <array>
#include <bitset>
#include <cstddef>
#include <functional>
#include <istream>
namespace aoc2021::day3 {
template <std::size_t bit_count>
auto count_bits_in_position(const std::size_t bit, const auto &reports) {
... | 27.203704 | 80 | 0.671205 | bencodestx |
040942e8a5f9792ace3579338f93c58f580a870a | 842 | cpp | C++ | to edit/menu/title.cpp | wengxxaa/Ninja | a7e11b6db16fd614234c4a282411bd80cbfb5ad3 | [
"Apache-2.0"
] | 1 | 2019-10-23T04:39:51.000Z | 2019-10-23T04:39:51.000Z | to edit/menu/title.cpp | wengxxaa/Ninja | a7e11b6db16fd614234c4a282411bd80cbfb5ad3 | [
"Apache-2.0"
] | null | null | null | to edit/menu/title.cpp | wengxxaa/Ninja | a7e11b6db16fd614234c4a282411bd80cbfb5ad3 | [
"Apache-2.0"
] | 1 | 2019-10-23T04:39:52.000Z | 2019-10-23T04:39:52.000Z | #include "title.h"
#include <stdlib.h>
Title::Title()
{
// empty
}
Title::~Title()
{
belt.free();
title.free();
}
void Title::load( const int& screen_w )
{
belt.setName( "title-belt" );
belt.load( "data/sprites/menu/belt.png" );
belt.setPosition( screen_w/2 - belt.getWidth()/2, 10 );
title.setName( "t... | 16.84 | 67 | 0.625891 | wengxxaa |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.