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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff6ae562d9a9ad053d94d30afdd64d831b21ab02 | 197 | cpp | C++ | engine/src/platform/android/pixelboost/network/networkHelpers.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | 6 | 2015-04-21T11:30:52.000Z | 2020-04-29T00:10:04.000Z | engine/src/platform/android/pixelboost/network/networkHelpers.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | null | null | null | engine/src/platform/android/pixelboost/network/networkHelpers.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | null | null | null | #ifdef PIXELBOOST_PLATFORM_ANDROID
#include "pixelboost/network/networkHelpers.h"
namespace pb
{
namespace NetworkHelpers
{
std::string GetWifiAddress()
{
return "";
}
}
}
#endif | 9.85 | 46 | 0.705584 | pixelballoon |
ff74b57f3d608596dc87107d22efe349443c8f7a | 1,450 | cpp | C++ | pawno/include/YSI 2.0/Source/Utils.cpp | gebo96/samp-gamemode | b54b1961d13ce1d21e37f8b63f00c809c76c34e2 | [
"blessing"
] | 2 | 2019-08-05T04:04:34.000Z | 2021-11-15T11:03:39.000Z | pawno/include/YSI 2.0/Source/Utils.cpp | gebo96/samp-gamemode | b54b1961d13ce1d21e37f8b63f00c809c76c34e2 | [
"blessing"
] | 2 | 2020-12-09T03:40:28.000Z | 2021-03-17T13:03:50.000Z | pawno/include/YSI 2.0/Source/Utils.cpp | gebo96/samp-gamemode | b54b1961d13ce1d21e37f8b63f00c809c76c34e2 | [
"blessing"
] | 2 | 2020-10-31T19:01:00.000Z | 2021-08-14T23:09:51.000Z | /*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distributed un... | 32.954545 | 98 | 0.658621 | gebo96 |
ff775d6947292d8ed8448c5cacd7b351f45b67e5 | 2,911 | cpp | C++ | src/procx.cpp | michalwidera/jeton | 587665ad904f3dd4dea709a4f4e43b3b5d34a67d | [
"MIT"
] | 1 | 2015-09-24T17:42:49.000Z | 2015-09-24T17:42:49.000Z | src/procx.cpp | michalwidera/jeton | 587665ad904f3dd4dea709a4f4e43b3b5d34a67d | [
"MIT"
] | 3 | 2015-04-16T16:18:32.000Z | 2019-01-17T11:57:19.000Z | src/procx.cpp | michalwidera/jeton | 587665ad904f3dd4dea709a4f4e43b3b5d34a67d | [
"MIT"
] | 2 | 2016-09-02T16:08:44.000Z | 2019-01-16T22:51:57.000Z | #include "procx.h"
#include <assert.h>
ProcessClass::ProcessClass(void)
{
State = STATE_ON;
RodzajWej = '.';
RodzajWyj = '.';
PrevProcess = NULL;
NextProcess = NULL;
}
void ProcessClass::LocalDestructor(void)
{
if(NextProcess != NULL)
{
NextProcess->LocalDestructor();
delete NextProcess;
NextProcess = N... | 18.424051 | 77 | 0.665751 | michalwidera |
ff7778c52ada84ac5349b0b126d952eb2d91777b | 535 | cpp | C++ | src/componentMask.cpp | taurheim/NomadECS | 0546833bf18d261cd7eb764279da1d17ce80954e | [
"MIT"
] | 136 | 2018-10-04T17:21:52.000Z | 2022-03-19T11:00:52.000Z | src/componentMask.cpp | taurheim/NomadECS | 0546833bf18d261cd7eb764279da1d17ce80954e | [
"MIT"
] | 1 | 2019-02-05T02:32:57.000Z | 2019-02-05T02:32:57.000Z | src/componentMask.cpp | taurheim/NomadECS | 0546833bf18d261cd7eb764279da1d17ce80954e | [
"MIT"
] | 23 | 2018-10-05T15:17:56.000Z | 2022-03-09T02:05:49.000Z | #include "componentMask.h"
#include "nomad.h"
namespace nomad {
bool ComponentMask::isNewMatch(nomad::ComponentMask oldMask, nomad::ComponentMask systemMask) {
return matches(systemMask) && !oldMask.matches(systemMask);
}
bool ComponentMask::isNoLongerMatched(nomad::ComponentMask oldMask, nomad::ComponentMask syste... | 35.666667 | 118 | 0.771963 | taurheim |
ff7c9635fa8d65737a8da4b201f35871c604abe3 | 8,050 | cpp | C++ | test/qupzilla-master/src/lib/webengine/webscrollbarmanager.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | 16 | 2019-05-23T08:10:39.000Z | 2021-12-21T11:20:37.000Z | test/qupzilla-master/src/lib/webengine/webscrollbarmanager.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | null | null | null | test/qupzilla-master/src/lib/webengine/webscrollbarmanager.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | 2 | 2019-05-23T18:37:43.000Z | 2021-08-24T21:29:40.000Z | /* ============================================================
* QupZilla - Qt web browser
* Copyright (C) 2016-2017 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundat... | 31.081081 | 136 | 0.62087 | JamesMBallard |
ff839702e524b288f5c640431e1a0282882b616c | 8,100 | cpp | C++ | project/src/treewalk_interpreter/scanner.cpp | Jeff-Mott-OR/cpplox | 6b2b771c50fd3d0121283d1f2e54860e1d263bca | [
"MIT"
] | 57 | 2018-04-18T11:06:31.000Z | 2022-01-26T22:15:01.000Z | project/src/treewalk_interpreter/scanner.cpp | Jeff-Mott-OR/cpplox | 6b2b771c50fd3d0121283d1f2e54860e1d263bca | [
"MIT"
] | 24 | 2018-04-20T04:24:39.000Z | 2018-11-13T06:11:37.000Z | project/src/treewalk_interpreter/scanner.cpp | Jeff-Mott-OR/cpplox | 6b2b771c50fd3d0121283d1f2e54860e1d263bca | [
"MIT"
] | 6 | 2018-04-19T03:25:35.000Z | 2020-02-20T03:22:52.000Z | #include "scanner.hpp"
#include <cctype>
#include <algorithm>
#include <array>
#include <iterator>
#include <utility>
#include <boost/lexical_cast.hpp>
using std::isalnum;
using std::isalpha;
using std::isdigit;
using std::array;
using std::back_inserter;
using std::copy_if;
using std::find_if;
using std::move;
us... | 31.395349 | 111 | 0.534815 | Jeff-Mott-OR |
ff8569555ece5c7cf7ea227a9e981e6cfda0efd4 | 4,915 | hpp | C++ | ndn-cxx/encoding/estimator.hpp | AsteriosPar/ndn-cxx | 778ad714f0d6dff8f5e75bdfea2658002b95bbd1 | [
"OpenSSL"
] | null | null | null | ndn-cxx/encoding/estimator.hpp | AsteriosPar/ndn-cxx | 778ad714f0d6dff8f5e75bdfea2658002b95bbd1 | [
"OpenSSL"
] | null | null | null | ndn-cxx/encoding/estimator.hpp | AsteriosPar/ndn-cxx | 778ad714f0d6dff8f5e75bdfea2658002b95bbd1 | [
"OpenSSL"
] | null | null | null | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2022 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... | 24.452736 | 97 | 0.687284 | AsteriosPar |
ff86cc6e6d5cde82a5369865a56a3e333ea45ff8 | 5,788 | cpp | C++ | tests/garbage_collection/gc_delete_test_coop.cpp | saurabhkadekodi/peloton-p3 | e0d84cdf59c0724850ad2d6b187fdb2ef1730369 | [
"Apache-2.0"
] | 1 | 2021-02-28T19:37:04.000Z | 2021-02-28T19:37:04.000Z | tests/garbage_collection/gc_delete_test_coop.cpp | saurabhkadekodi/peloton-p3 | e0d84cdf59c0724850ad2d6b187fdb2ef1730369 | [
"Apache-2.0"
] | 1 | 2016-05-06T05:07:37.000Z | 2016-05-09T23:40:50.000Z | tests/garbage_collection/gc_delete_test_coop.cpp | saurabhkadekodi/peloton-p3 | e0d84cdf59c0724850ad2d6b187fdb2ef1730369 | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Peloton
//
// gc_delete_test_coop.cpp
//
// Identification: tests/executor/gc_delete_test_coop.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===-------------------------------... | 34.047059 | 80 | 0.708189 | saurabhkadekodi |
ff8981a48d12dfee9b4d9d2cd76e1659de010af6 | 493 | hpp | C++ | source/Engine/GameObject.hpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | 8 | 2018-06-27T00:34:11.000Z | 2018-09-07T06:56:20.000Z | source/Engine/GameObject.hpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | null | null | null | source/Engine/GameObject.hpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | 2 | 2018-06-28T03:02:07.000Z | 2019-01-26T06:02:17.000Z | #pragma once
#include "Input.hpp"
#include <switch.h>
#include "SDL2/SDL.h"
#include <vector>
#include <functional>
class GameObject
{
public:
GameObject(int, int, int, int);
void SetAction(std::function<void()>);
void Press() { if (_onPress != nullptr) _onPress(); };
bool Hovered(... | 20.541667 | 62 | 0.592292 | rincew1nd |
ff89b78858cd90644eef2fcf23f7ed0c4eab2411 | 4,870 | cpp | C++ | Code/Engine/Animation/Graph/Nodes/Animation_RuntimeGraphNode_Ragdoll.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | 2 | 2022-03-25T17:37:45.000Z | 2022-03-26T02:22:22.000Z | Code/Engine/Animation/Graph/Nodes/Animation_RuntimeGraphNode_Ragdoll.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | null | null | null | Code/Engine/Animation/Graph/Nodes/Animation_RuntimeGraphNode_Ragdoll.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | null | null | null | #include "Animation_RuntimeGraphNode_Ragdoll.h"
#include "Engine/Animation/TaskSystem/Tasks/Animation_Task_Ragdoll.h"
#include "Engine/Animation/TaskSystem/Tasks/Animation_Task_DefaultPose.h"
#include "Engine/Physics/PhysicsRagdoll.h"
#include "Engine/Physics/PhysicsScene.h"
#include "System/Core/Logging/Log.h"
//----... | 39.593496 | 187 | 0.625667 | jagt |
ff8d44093357788ed0f52884afcd51ab01a92478 | 1,270 | cpp | C++ | modules/moduleTest/testCommon.cpp | helinux/FFdynamic | d65959641fd0f8e69e1d799b8b439c8ad2793600 | [
"MIT"
] | 299 | 2018-10-21T03:28:53.000Z | 2022-03-20T12:04:13.000Z | modules/moduleTest/testCommon.cpp | helinux/FFdynamic | d65959641fd0f8e69e1d799b8b439c8ad2793600 | [
"MIT"
] | 31 | 2018-11-13T12:46:15.000Z | 2022-01-19T19:30:16.000Z | modules/moduleTest/testCommon.cpp | helinux/FFdynamic | d65959641fd0f8e69e1d799b8b439c8ad2793600 | [
"MIT"
] | 68 | 2018-11-02T14:05:00.000Z | 2022-03-01T19:16:29.000Z | #include "testCommon.h"
using namespace ff_dynamic;
namespace test_common {
std::atomic<bool> g_bExit = ATOMIC_VAR_INIT(false);
std::atomic<int> g_bInterruptCount = ATOMIC_VAR_INIT(0);
void sigIntHandle(int sig) {
g_bExit = true;
LOG(INFO) << "sig " << sig << " captured. count" << g_bInterruptCount;
if ... | 28.222222 | 92 | 0.611024 | helinux |
ff8dfd03a24507754cb34b9f3f9288977bab48f3 | 14,769 | cpp | C++ | src/splinesonic/sim/Test.cpp | Ryp/Reaper | ccaef540013db7e8bf873db6e597e9036184d100 | [
"MIT"
] | 11 | 2016-11-07T07:47:46.000Z | 2018-07-19T16:04:45.000Z | src/splinesonic/sim/Test.cpp | Ryp/Reaper | ccaef540013db7e8bf873db6e597e9036184d100 | [
"MIT"
] | null | null | null | src/splinesonic/sim/Test.cpp | Ryp/Reaper | ccaef540013db7e8bf873db6e597e9036184d100 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// Reaper
///
/// Copyright (c) 2015-2022 Thibault Schueller
/// This file is distributed under the MIT License
////////////////////////////////////////////////////////////////////////////////
#include "Test.h"
#if defined(REAPER_USE_BU... | 36.647643 | 120 | 0.658 | Ryp |
ff9250213626d9179509c8cd779d17b5770051d8 | 2,719 | cpp | C++ | source/backend/opengl/execution/GLPool.cpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | 1 | 2019-08-09T03:16:49.000Z | 2019-08-09T03:16:49.000Z | source/backend/opengl/execution/GLPool.cpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | null | null | null | source/backend/opengl/execution/GLPool.cpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | 1 | 2021-08-23T03:40:09.000Z | 2021-08-23T03:40:09.000Z | //
// GLPool.cpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "GLPool.hpp"
#include "AllShader.hpp"
#include "GLBackend.hpp"
#include "Macro.h"
namespace MNN {
namespace OpenGL {
ErrorCode GLPool::onResize(const std::vector<Tensor *> &inputs, const std::... | 31.252874 | 130 | 0.606841 | xindongzhang |
910d156efe41482750f26a50252b38056131dfff | 494 | cpp | C++ | src/ktlexcept.cpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 38 | 2020-12-16T22:12:50.000Z | 2022-03-24T04:07:14.000Z | src/ktlexcept.cpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 165 | 2020-11-11T21:22:23.000Z | 2022-03-26T14:30:40.000Z | src/ktlexcept.cpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 5 | 2021-07-16T19:05:28.000Z | 2021-12-22T11:46:42.000Z | #include <ktlexcept.hpp>
#include <string.hpp>
namespace ktl {
NTSTATUS out_of_range::code() const noexcept {
return STATUS_ARRAY_BOUNDS_EXCEEDED;
}
NTSTATUS range_error::code() const noexcept {
return STATUS_RANGE_NOT_FOUND;
}
NTSTATUS overflow_error::code() const noexcept {
return STATUS_BUFFER_OVERFLOW;
}
... | 20.583333 | 48 | 0.771255 | Shtan7 |
91191747f06046dd61ef2f8fef4f1f0bba7ec5b7 | 424 | cpp | C++ | day02/main.cpp | wuggy-ianw/AoC2017 | 138c66bdd407e76f6ad71c9d68df50e0afa2251a | [
"Unlicense"
] | null | null | null | day02/main.cpp | wuggy-ianw/AoC2017 | 138c66bdd407e76f6ad71c9d68df50e0afa2251a | [
"Unlicense"
] | null | null | null | day02/main.cpp | wuggy-ianw/AoC2017 | 138c66bdd407e76f6ad71c9d68df50e0afa2251a | [
"Unlicense"
] | null | null | null | //
// Created by wuggy on 02/12/2017.
//
#include <fstream>
#include "day02.h"
#include "../utils/aocutils.h"
int main()
{
std::ifstream ifs("input.txt");
std::vector< std::vector<std::size_t> > sheet = AOCUtils::parseByLines<std::vector<std::size_t> >(ifs, AOCUtils::parseItem<std::size_t>);
std::cout << Day2... | 21.2 | 139 | 0.648585 | wuggy-ianw |
911db9de6e667c6f419998033a3f3f1dd4e83062 | 27,348 | cpp | C++ | MainWindow.cpp | mrQzs/LVGLBuilder | 41dbfbd6d9d6f624e0ae1b7c542eef5f681ca4b5 | [
"MIT"
] | null | null | null | MainWindow.cpp | mrQzs/LVGLBuilder | 41dbfbd6d9d6f624e0ae1b7c542eef5f681ca4b5 | [
"MIT"
] | null | null | null | MainWindow.cpp | mrQzs/LVGLBuilder | 41dbfbd6d9d6f624e0ae1b7c542eef5f681ca4b5 | [
"MIT"
] | null | null | null | #include "MainWindow.h"
#include <QDebug>
#include <QFileDialog>
#include <QInputDialog>
#include <QMessageBox>
#include <QSettings>
#include <QSortFilterProxyModel>
#include "LVGLDialog.h"
#include "LVGLFontData.h"
#include "LVGLFontDialog.h"
#include "LVGLHelper.h"
#include "LVGLItem.h"
#include "LVGLNewDialog.h"
#... | 33.229648 | 80 | 0.685644 | mrQzs |
911dd4796f0fde651220d48ea1b63b48ce2d0be8 | 2,964 | cpp | C++ | lib/os/thread_win32.cpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | lib/os/thread_win32.cpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | lib/os/thread_win32.cpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- lib/os/thread_win32.cpp --------------------------------------------===//
//* _ _ _ *
//* | |_| |__ _ __ ___ __ _ __| | *
//* | __| '_ \| '__/ _ \/ _` |/ _` | *
//* | |_| | | | | | __/ (_| | (_| | *
//* \__|_| |_|_| \___|\__,_|\__,_| *
//* *
//===... | 35.285714 | 89 | 0.501012 | paulhuggett |
9128bace1e9e94ff0e730643982c5494b5a74fab | 1,055 | cpp | C++ | src/lox/Object.cpp | dylanclark/loxplusplus | a533389e73f86c067ad705a317c3a3cc0f66b63f | [
"MIT"
] | null | null | null | src/lox/Object.cpp | dylanclark/loxplusplus | a533389e73f86c067ad705a317c3a3cc0f66b63f | [
"MIT"
] | null | null | null | src/lox/Object.cpp | dylanclark/loxplusplus | a533389e73f86c067ad705a317c3a3cc0f66b63f | [
"MIT"
] | null | null | null | #include <loxpp_pch.h>
#include <Object.h>
#include <VisitHelpers.h>
namespace Loxpp::Object {
// Handy template class and function to cast from a variant T1 to variant T2,
// where T2 is a superset of T1: https://stackoverflow.com/a/47204507/15150338
template <class... Args> struct variant_cast_proxy {
std::var... | 29.305556 | 78 | 0.595261 | dylanclark |
912bc5f9488b04a8bb775c60c37d5c0327a8f8d7 | 1,243 | cpp | C++ | arrays/largestBand.cpp | kaushikbalasundar/cpp_dsa_solutions | 6a74bd6d114a882b5c95c5e4cc74447d58bbae7b | [
"MIT"
] | null | null | null | arrays/largestBand.cpp | kaushikbalasundar/cpp_dsa_solutions | 6a74bd6d114a882b5c95c5e4cc74447d58bbae7b | [
"MIT"
] | null | null | null | arrays/largestBand.cpp | kaushikbalasundar/cpp_dsa_solutions | 6a74bd6d114a882b5c95c5e4cc74447d58bbae7b | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<unordered_set>
#include<algorithm>
using namespace std;
//find the longest band in a given array of integers
//Input: {1,9,3,0,5,2,4,10,7,12,6}
//Output: 8 {0,1,2,3,4,5,6,7}
int longestBand(vector<int> arr){
int result = 0;
unordered_set<int> os;
for(i... | 23.018519 | 111 | 0.565567 | kaushikbalasundar |
912c40f76e858930903aa926c3d49888dda1bc63 | 1,939 | cpp | C++ | client/src/Helper.cpp | bendelec/Grandma | d7ac708b5357107a0e4b32e175c2e8cb71fdbcd8 | [
"MIT"
] | 2 | 2020-05-25T11:12:19.000Z | 2022-01-18T01:38:19.000Z | client/src/Helper.cpp | bendelec/Grandma | d7ac708b5357107a0e4b32e175c2e8cb71fdbcd8 | [
"MIT"
] | 1 | 2020-03-28T03:47:22.000Z | 2020-03-28T03:47:22.000Z | client/src/Helper.cpp | bendelec/Grandma | d7ac708b5357107a0e4b32e175c2e8cb71fdbcd8 | [
"MIT"
] | 1 | 2022-01-18T01:50:30.000Z | 2022-01-18T01:50:30.000Z | /** ***************************************************************************
* Various helper functions
*
* (c)2020 Christian Bendele
*
*/
#include "Helper.h"
#include <sstream>
#include <iostream>
namespace Grandma {
std::vector<std::string> Helper::vectorize_path(const std::string path) {
std::stringst... | 23.646341 | 97 | 0.580712 | bendelec |
912cc52e2b2b978b1892fd6af1f65cdde82d667b | 996 | cpp | C++ | srcs/utils/datetime.cpp | alexandretea/ddti | d81fd3069e67402ba695a2ada50a67f90ea45fb9 | [
"MIT"
] | 3 | 2020-11-30T01:57:35.000Z | 2021-06-15T01:36:10.000Z | srcs/utils/datetime.cpp | alexandretea/ddti | d81fd3069e67402ba695a2ada50a67f90ea45fb9 | [
"MIT"
] | null | null | null | srcs/utils/datetime.cpp | alexandretea/ddti | d81fd3069e67402ba695a2ada50a67f90ea45fb9 | [
"MIT"
] | 1 | 2020-11-30T01:57:48.000Z | 2020-11-30T01:57:48.000Z | // C/C++ File
// Author: Alexandre Tea <alexandre.qtea@gmail.com>
// File: /Users/alexandretea/Work/ddti/srcs/utils/datetime.cpp
// Purpose: datetime utilities
// Created: 2017-07-29 22:52:26
// Modified: 2017-08-23 23:19:15
#include <ctime>
#include "datetime.hpp"
namespace utils {
namespace datetime {
std... | 17.172414 | 66 | 0.631526 | alexandretea |
9135f5762b1991c7b3549b6f7a47b86fe68019ac | 318 | cpp | C++ | Demos/ODFAEGVIDEOTUTORIAL/bar.cpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 5 | 2015-06-13T13:11:59.000Z | 2020-04-17T23:10:23.000Z | Demos/ODFAEGVIDEOTUTORIAL/bar.cpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 4 | 2019-01-07T11:46:21.000Z | 2020-02-14T15:04:15.000Z | Demos/ODFAEGVIDEOTUTORIAL/bar.cpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 4 | 2016-01-05T09:54:57.000Z | 2021-01-06T18:52:26.000Z | #include "bar.hpp"
using namespace odfaeg::graphic;
using namespace odfaeg::math;
using namespace odfaeg::physic;
Bar::Bar(Vec2f position, Vec2f size) : Entity(position, size, size * 0.5f, "E_BAR") {
BoundingVolume* bv = new BoundingBox(position.x, position.y, 0 ,size.x, size.y, 0);
setCollisionVolume(bv);
}
| 35.333333 | 87 | 0.716981 | Cwc-Test |
913cb13eefd820e77540f03164b2ed79872be779 | 640 | hpp | C++ | ShadowPeople/sound/Mixer.hpp | SamuelSiltanen/ShadowPeople | 58f94a4397dc5084d9705d4378599cae480b4776 | [
"Apache-2.0"
] | null | null | null | ShadowPeople/sound/Mixer.hpp | SamuelSiltanen/ShadowPeople | 58f94a4397dc5084d9705d4378599cae480b4776 | [
"Apache-2.0"
] | null | null | null | ShadowPeople/sound/Mixer.hpp | SamuelSiltanen/ShadowPeople | 58f94a4397dc5084d9705d4378599cae480b4776 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <memory>
#include <random>
#include "../Types.hpp"
#include "AudioFormat.hpp"
namespace sound
{
class RawAudioBuffer;
class Mixer
{
public:
Mixer(const AudioFormat& format);
void setFormat(const AudioFormat& format);
void mix(std::shared_ptr<RawAudioBuf... | 20 | 65 | 0.635938 | SamuelSiltanen |
913ea9d2070980d26d18cb720a52ff488776a0aa | 14,789 | cpp | C++ | Source/PluginProcessorReceive.cpp | jmaibaum/Camomile | 5801804fd69ad17ef29a026afbff5b5f89224297 | [
"BSD-2-Clause"
] | null | null | null | Source/PluginProcessorReceive.cpp | jmaibaum/Camomile | 5801804fd69ad17ef29a026afbff5b5f89224297 | [
"BSD-2-Clause"
] | null | null | null | Source/PluginProcessorReceive.cpp | jmaibaum/Camomile | 5801804fd69ad17ef29a026afbff5b5f89224297 | [
"BSD-2-Clause"
] | null | null | null | /*
// Copyright (c) 2015-2018 Pierre Guillot.
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/
#include "PluginProcessor.h"
#include "PluginParameter.h"
//////////////////////////////////////////////////////////////////... | 36.070732 | 123 | 0.451349 | jmaibaum |
913ec1eb1a1e01c777765330a73ea5f9d8a3a13c | 3,585 | hpp | C++ | include/staticlib/tinydir/file_sink.hpp | staticlibs/staticlib_tinydir | c8ab3dae0ef7543dc1d1e7a7debc7132ad8d1610 | [
"Apache-2.0"
] | 1 | 2021-03-13T03:12:23.000Z | 2021-03-13T03:12:23.000Z | include/staticlib/tinydir/file_sink.hpp | staticlibs/staticlib_tinydir | c8ab3dae0ef7543dc1d1e7a7debc7132ad8d1610 | [
"Apache-2.0"
] | 1 | 2018-10-18T21:31:26.000Z | 2018-10-18T21:31:26.000Z | include/staticlib/tinydir/file_sink.hpp | staticlibs/staticlib_tinydir | c8ab3dae0ef7543dc1d1e7a7debc7132ad8d1610 | [
"Apache-2.0"
] | 2 | 2017-03-05T02:30:03.000Z | 2018-05-21T16:17:31.000Z | /*
* Copyright 2017, alex at staticlibs.net
*
* 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 ag... | 22.980769 | 92 | 0.642678 | staticlibs |
91401b573cbfc972a277cf047c1f76ed67d81f83 | 2,598 | cpp | C++ | test/module/libs/converter/string_converter_test.cpp | alohamora/iroha | aa8be2c62fedaa2de08f94f2d920275ad9ae8ba7 | [
"Apache-2.0"
] | null | null | null | test/module/libs/converter/string_converter_test.cpp | alohamora/iroha | aa8be2c62fedaa2de08f94f2d920275ad9ae8ba7 | [
"Apache-2.0"
] | null | null | null | test/module/libs/converter/string_converter_test.cpp | alohamora/iroha | aa8be2c62fedaa2de08f94f2d920275ad9ae8ba7 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include <gtest/gtest.h>
#include "common/byteutils.hpp"
using namespace iroha;
using namespace std::string_literals;
/**
* @given hex string
* @when hex string was converted to binary string
* @then converted str... | 31.682927 | 76 | 0.669746 | alohamora |
91409ed7e7e1fad82fdd8058dadd1918cf6ab2f6 | 4,744 | hpp | C++ | octree/Octree.hpp | Koukan/voxomap | 104a068b4bc84f7a208460248f824dfcde49f470 | [
"MIT"
] | 2 | 2019-03-01T16:34:02.000Z | 2020-10-08T21:27:52.000Z | octree/Octree.hpp | Koukan/voxomap | 104a068b4bc84f7a208460248f824dfcde49f470 | [
"MIT"
] | null | null | null | octree/Octree.hpp | Koukan/voxomap | 104a068b4bc84f7a208460248f824dfcde49f470 | [
"MIT"
] | null | null | null | #ifndef _VOXOMAP_OCTREE_HPP_
#define _VOXOMAP_OCTREE_HPP_
#include <cstdint>
#include <memory>
#include <vector>
#include <assert.h>
namespace voxomap
{
/*!
\defgroup Octree Octree
Classes use for define the octree
*/
/*! \class Octree
\ingroup Octree
\brief Octree container
*/
template <class T_Nod... | 28.578313 | 108 | 0.60645 | Koukan |
914132746cecdd6b5bb28f6a9916459143ab1fed | 2,785 | cpp | C++ | rtc/src/main.cpp | Bergi84/vihaltests_ext | 6fc5a96c6da8398dfbccf3dce59ced1ba359ee4e | [
"BSD-2-Clause"
] | null | null | null | rtc/src/main.cpp | Bergi84/vihaltests_ext | 6fc5a96c6da8398dfbccf3dce59ced1ba359ee4e | [
"BSD-2-Clause"
] | null | null | null | rtc/src/main.cpp | Bergi84/vihaltests_ext | 6fc5a96c6da8398dfbccf3dce59ced1ba359ee4e | [
"BSD-2-Clause"
] | null | null | null | // file: main.cpp (uart)
// brief: VIHAL UART Test
// created: 2021-10-03
// authors: nvitya
#include "platform.h"
#include "cppinit.h"
#include "clockcnt.h"
#include "traces.h"
#include "hwclk.h"
#include "hwpins.h"
#include "hwuart.h"
#include "hwrtc.h"
#include "board_pins.h"
THwRtc gRtc;
volatile unsi... | 25.09009 | 159 | 0.644883 | Bergi84 |
91424f7e6fffe7065a55386e569947453016e96f | 18,465 | cpp | C++ | Source Code/Rendering/PostFX/PostFX.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | Source Code/Rendering/PostFX/PostFX.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | Source Code/Rendering/PostFX/PostFX.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Headers/PostFX.h"
#include "Headers/PreRenderOperator.h"
#include "Core/Headers/ParamHandler.h"
#include "Core/Headers/PlatformContext.h"
#include "Core/Headers/StringHelper.h"
#include "Core/Resources/Headers/ResourceCache.h"
#include "Core/Time/Headers/ApplicationTimer.h"
#... | 51.008287 | 167 | 0.730355 | IonutCava |
91446e3be5af90f48f56537f2b0d19e44bf57785 | 35,694 | cpp | C++ | mp/src/game/server/hl2mp/hl2mp_client.cpp | Code4Cookie/Atomic-Secobmod | 9738d91bc37f8d9e9fb63d4a444ecbeaa0e0cf70 | [
"Unlicense"
] | null | null | null | mp/src/game/server/hl2mp/hl2mp_client.cpp | Code4Cookie/Atomic-Secobmod | 9738d91bc37f8d9e9fb63d4a444ecbeaa0e0cf70 | [
"Unlicense"
] | null | null | null | mp/src/game/server/hl2mp/hl2mp_client.cpp | Code4Cookie/Atomic-Secobmod | 9738d91bc37f8d9e9fb63d4a444ecbeaa0e0cf70 | [
"Unlicense"
] | null | null | null | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
/*
===== tf_client.cpp ========================================================
HL2 client/server game specific stuff
... | 44.230483 | 177 | 0.734885 | Code4Cookie |
9149d2a1b7940bbed03cb6426d69eaecbbd1b6e1 | 2,320 | cpp | C++ | Source/FactoryGame/FGActorRepresentation.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | Source/FactoryGame/FGActorRepresentation.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | Source/FactoryGame/FGActorRepresentation.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | // This file has been automatically generated by the Unreal Header Implementation tool
#include "FGActorRepresentation.h"
bool UFGActorRepresentation::IsSupportedForNetworking() const{ return bool(); }
void UFGActorRepresentation::GetLifetimeReplicatedProps( TArray<FLifetimeProperty>& OutLifetimeProps) const{ }
FVect... | 68.235294 | 110 | 0.840948 | iam-Legend |
9153ce528d3233d5711d659b095c160f2610f2fe | 7,655 | cpp | C++ | ccl/src/phost/Morpheus_Ccl_CsrMatrix.cpp | morpheus-org/morpheus-interoperability | 66161199fa1926914e16c1feb02eb910ffef5ed4 | [
"Apache-2.0"
] | null | null | null | ccl/src/phost/Morpheus_Ccl_CsrMatrix.cpp | morpheus-org/morpheus-interoperability | 66161199fa1926914e16c1feb02eb910ffef5ed4 | [
"Apache-2.0"
] | 3 | 2021-10-09T16:17:19.000Z | 2021-10-12T21:31:23.000Z | ccl/src/phost/Morpheus_Ccl_CsrMatrix.cpp | morpheus-org/morpheus-fortran-interop | 66161199fa1926914e16c1feb02eb910ffef5ed4 | [
"Apache-2.0"
] | null | null | null | /**
* Morpheus_Ccl_CsrMatrix.cpp
*
* EPCC, The University of Edinburgh
*
* (c) 2021 The University of Edinburgh
*
* Contributing Authors:
* Christodoulos Stylianou (c.stylianou@ed.ac.uk)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... | 31.632231 | 80 | 0.677335 | morpheus-org |
9155d85b095ad63a3ce325cf87816c7be6bda86c | 41 | cpp | C++ | Othuum/AhwassaGraphicsLib/BufferObjects/Mesh.cpp | Liech/Yathsou | 95b6dda3c053bc25789cce416088e22f54a743b4 | [
"MIT"
] | 5 | 2021-04-20T17:00:41.000Z | 2022-01-18T20:16:03.000Z | Othuum/AhwassaGraphicsLib/BufferObjects/Mesh.cpp | Liech/Yathsou | 95b6dda3c053bc25789cce416088e22f54a743b4 | [
"MIT"
] | 7 | 2021-08-22T21:30:50.000Z | 2022-01-14T16:56:34.000Z | Othuum/AhwassaGraphicsLib/BufferObjects/Mesh.cpp | Liech/Yathsou | 95b6dda3c053bc25789cce416088e22f54a743b4 | [
"MIT"
] | null | null | null | #include "Mesh.h"
namespace Ahwassa {
} | 8.2 | 19 | 0.682927 | Liech |
915d64b41290a639c0c8a2e2ac5971ae28637546 | 4,787 | inl | C++ | sfml-extensions/Extensions/Vector4.inl | degski/SFML-Extensions | 13236325da2e9bef2e24f7ad80ec78db6bf33879 | [
"MIT"
] | null | null | null | sfml-extensions/Extensions/Vector4.inl | degski/SFML-Extensions | 13236325da2e9bef2e24f7ad80ec78db6bf33879 | [
"MIT"
] | null | null | null | sfml-extensions/Extensions/Vector4.inl | degski/SFML-Extensions | 13236325da2e9bef2e24f7ad80ec78db6bf33879 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... | 27.198864 | 108 | 0.519323 | degski |
9160e358a516a4aab8384bdc37461f8af33bc3f7 | 542 | cc | C++ | cses/1084.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | cses/1084.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | cses/1084.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://cses.fi/problemset/task/1084/
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
typedef vector<int> vi;
int main() {
int n, m, k;
cin >> n >> m >> k;
vi a(m);
for (int i = 0; i < n; i++) cin >> a[i];
vi b(m);
for (int i = 0; i < m; i++) cin >> b[i];
sort(a.begin... | 19.357143 | 42 | 0.47048 | Ashindustry007 |
9168643a5f8ec02fc865ff9fa16ef7cf29c61ce9 | 308 | cpp | C++ | Ruken/Source/Src/Vulkan/Resources/TextureLoadingDescriptor.cpp | Renondedju/Daemon | 8cdfcbc62d7e9dc6c6121ec1484555a23a20b8b6 | [
"MIT"
] | 4 | 2020-06-11T00:35:03.000Z | 2020-06-23T11:57:52.000Z | Ruken/Source/Src/Vulkan/Resources/TextureLoadingDescriptor.cpp | Renondedju/Daemon | 8cdfcbc62d7e9dc6c6121ec1484555a23a20b8b6 | [
"MIT"
] | 1 | 2020-03-17T13:34:16.000Z | 2020-03-17T13:34:16.000Z | Ruken/Source/Src/Vulkan/Resources/TextureLoadingDescriptor.cpp | Renondedju/Daemon | 8cdfcbc62d7e9dc6c6121ec1484555a23a20b8b6 | [
"MIT"
] | 2 | 2020-03-19T12:20:17.000Z | 2020-09-03T07:49:06.000Z |
#include "Vulkan/Resources/TextureLoadingDescriptor.hpp"
USING_RUKEN_NAMESPACE
#pragma region Constructor
TextureLoadingDescriptor::TextureLoadingDescriptor(Renderer const& in_renderer, RkChar const* in_path) noexcept:
renderer {in_renderer},
path {in_path}
{
}
#pragma endregion | 20.533333 | 112 | 0.766234 | Renondedju |
9168dd9019c6a142e4da3d36e2c18e93877a61b0 | 1,126 | cpp | C++ | 545_c.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 545_c.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 545_c.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | // Created by Tanuj Jain
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define pb push_back
#define mp make_pair
typedef long long ll;
typedef pair<int,int> pii;
template<class T> using oset=tree<T, null_typ... | 20.851852 | 106 | 0.515986 | onexmaster |
916b055dad09ff569d36ae770d7a317bb59ce520 | 2,320 | cpp | C++ | Source/Core/AS_SFML/Joystick.cpp | ace13/LD34 | 82ecda6bdd69208be1ec6d03c3eb250313c4b7d1 | [
"MIT"
] | 1 | 2017-01-05T01:55:16.000Z | 2017-01-05T01:55:16.000Z | Source/Core/AS_SFML/Joystick.cpp | ace13/AngelscriptMP | 583d481fdbef75e4d96a45eb2942a21189087c77 | [
"MIT"
] | null | null | null | Source/Core/AS_SFML/Joystick.cpp | ace13/AngelscriptMP | 583d481fdbef75e4d96a45eb2942a21189087c77 | [
"MIT"
] | null | null | null | #include "Shared.hpp"
#include <SFML/Window/Joystick.hpp>
namespace
{
enum Stick
{
Left = 0,
Right,
Pov
};
void getStickPosition(asIScriptGeneric* gen)
{
uint32_t id = gen->GetArgDWord(0);
Stick stick = Stick(gen->GetArgDWord(1));
switch (stick)
{
case Left:
new (gen->GetAddressOfReturnLocat... | 35.151515 | 130 | 0.709914 | ace13 |
9170c9869e819713d8036fa207df18ea7f74be52 | 1,365 | cpp | C++ | aws-cpp-sdk-ssm-contacts/source/model/ListContactChannelsResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-ssm-contacts/source/model/ListContactChannelsResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-ssm-contacts/source/model/ListContactChannelsResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ssm-contacts/model/ListContactChannelsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#incl... | 27.3 | 126 | 0.768498 | perfectrecall |
9176cd1e0a82f1e5bdb12346c0452393f36b4acb | 38,747 | cpp | C++ | Src/lunaui/notifications/DashboardWindowManager.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | 3 | 2018-11-16T14:51:17.000Z | 2019-11-21T10:55:24.000Z | Src/lunaui/notifications/DashboardWindowManager.cpp | penk/luna-sysmgr | 60c7056a734cdb55a718507f3a739839c9d74edf | [
"Apache-2.0"
] | 1 | 2021-02-20T13:12:15.000Z | 2021-02-20T13:12:15.000Z | Src/lunaui/notifications/DashboardWindowManager.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | null | null | null | /* @@@LICENSE
*
* Copyright (c) 2008-2012 Hewlett-Packard Development Company, L.P.
*
* 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
*
* Unl... | 29.398331 | 162 | 0.750665 | ericblade |
9177c39579b2d5034dc3556aa2cb796e77d693b8 | 584 | cpp | C++ | tests/test_list.cpp | ToruNiina/wad | f5f0445f7f0a53efd31988ce7d381bccb463b951 | [
"MIT"
] | null | null | null | tests/test_list.cpp | ToruNiina/wad | f5f0445f7f0a53efd31988ce7d381bccb463b951 | [
"MIT"
] | null | null | null | tests/test_list.cpp | ToruNiina/wad | f5f0445f7f0a53efd31988ce7d381bccb463b951 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "wad/list.hpp"
#include "wad/integer.hpp"
#include "utility.hpp"
TEST_CASE( "std::list save/load", "[std::list]" )
{
std::list<int> upto_16;
std::list<int> upto_u16;
std::list<int> upto_u32;
for(int i=0; i< 5; ++i) {upto_16 .push_back(i);}
... | 27.809524 | 55 | 0.633562 | ToruNiina |
917b03dd4a82d7015337584227ba1f3a8cf8e663 | 53,037 | cc | C++ | src/topo_ma.cc | erdemeren/VDlib | 23091adbea4ba26379eaf941be53d925304a0560 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/topo_ma.cc | erdemeren/VDlib | 23091adbea4ba26379eaf941be53d925304a0560 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/topo_ma.cc | erdemeren/VDlib | 23091adbea4ba26379eaf941be53d925304a0560 | [
"Apache-2.0",
"MIT"
] | null | null | null | #include <tgmath.h>
#include<algorithm>
#include "apf.h"
#include "ma.h"
#include "maMesh.h"
#include "topo_extinfo.h"
#include "topo_geom.h"
#include "topo_ma.h"
// Get the lowest quality element and it's quality.
std::pair<apf::MeshEntity*, double> calc_valid_q(apf::Mesh2* m,
... | 29.662752 | 201 | 0.593623 | erdemeren |
91825db1e52c5f3d5b3aa48752a882d39450bd28 | 28,923 | cpp | C++ | Eagle/src/Eagle/Script/ScriptEngineRegistry.cpp | IceLuna/Eagle | 3b0d5f014697c97138f160ddd535b1afd6d0c141 | [
"Apache-2.0"
] | 1 | 2021-12-10T19:15:25.000Z | 2021-12-10T19:15:25.000Z | Eagle/src/Eagle/Script/ScriptEngineRegistry.cpp | IceLuna/Eagle | 3b0d5f014697c97138f160ddd535b1afd6d0c141 | [
"Apache-2.0"
] | 41 | 2021-08-18T21:32:14.000Z | 2022-02-20T11:44:06.000Z | Eagle/src/Eagle/Script/ScriptEngineRegistry.cpp | IceLuna/Eagle | 3b0d5f014697c97138f160ddd535b1afd6d0c141 | [
"Apache-2.0"
] | null | null | null | #include "egpch.h"
#include "ScriptEngineRegistry.h"
#include "ScriptEngine.h"
#include "ScriptWrappers.h"
#include "Eagle/Components/Components.h"
#include "Eagle/Core/Entity.h"
#include <mono/jit/jit.h>
#include <mono/metadata/assembly.h>
namespace Eagle
{
std::unordered_map<MonoType*, std::function<void(Entity&)>... | 88.449541 | 271 | 0.831 | IceLuna |
91834e8215c7c0af05dc6635277eee55d53d54e4 | 1,790 | cpp | C++ | src/RESTAPI_oauth2Handler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | src/RESTAPI_oauth2Handler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | src/RESTAPI_oauth2Handler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | //
// License type: BSD 3-Clause License
// License copy: https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/blob/master/LICENSE
//
// Created by Stephane Bourque on 2021-03-04.
// Arilia Wireless Inc.
//
#include "Poco/JSON/Parser.h"
#include "RESTAPI_oauth2Handler.h"
#include "uAuthService.h"
void RESTAP... | 31.403509 | 123 | 0.594413 | shimmy568 |
91860598057b479f935047626faa8fe8337d007a | 810 | cpp | C++ | src/blinkit/blink/renderer/core/layout/ViewFragmentationContext.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | 13 | 2020-04-21T13:14:00.000Z | 2021-11-13T14:55:12.000Z | third_party/WebKit/Source/core/layout/ViewFragmentationContext.cpp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/layout/ViewFragmentationContext.cpp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright 2015 The Chromium 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 "core/layout/ViewFragmentationContext.h"
#include "core/layout/LayoutView.h"
namespace blink {
bool ViewFragmentationContext::isFragmentainerL... | 27 | 85 | 0.788889 | titilima |
9262f0f0afd214758b8e18e6dacf30a35ca5d0dd | 188 | cpp | C++ | library/src/ProgressBar.cpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | library/src/ProgressBar.cpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | library/src/ProgressBar.cpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | // Copyright 2016-2021 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md
#include "ux/ProgressBar.hpp"
#include "ux/draw/Rectangle.hpp"
using namespace ux::sgfx;
using namespace ux;
| 20.888889 | 75 | 0.760638 | StratifyLabs |
9262f30414ebd6153de123175ac857de8ebf8c87 | 382 | hpp | C++ | include/Defines.hpp | Aargonian/JLMG | 18fa141b7e8c895e93c2e5450d9e8543b3b7b1e7 | [
"MIT"
] | null | null | null | include/Defines.hpp | Aargonian/JLMG | 18fa141b7e8c895e93c2e5450d9e8543b3b7b1e7 | [
"MIT"
] | null | null | null | include/Defines.hpp | Aargonian/JLMG | 18fa141b7e8c895e93c2e5450d9e8543b3b7b1e7 | [
"MIT"
] | null | null | null | //
// Created by Aaron Helton on 1/16/2020.
//
#ifndef JLMG_DEFINES_HPP
#define JLMG_DEFINES_HPP
#include <cstdint>
typedef uint_least8_t uint8;
typedef uint_least16_t uint16;
typedef uint_least32_t uint32;
typedef uint_least64_t uint64;
typedef int_least8_t int8;
typedef int_least16_t int16;
typedef int_least32_t i... | 19.1 | 40 | 0.816754 | Aargonian |
9267740308a459caa4270a25b0bd9fcad4df2114 | 909 | hpp | C++ | vnix/bit-range.hpp | tevaughan/units | 75e5cfa76a44225983ca55f2a54e0869ff7b3715 | [
"BSD-3-Clause"
] | null | null | null | vnix/bit-range.hpp | tevaughan/units | 75e5cfa76a44225983ca55f2a54e0869ff7b3715 | [
"BSD-3-Clause"
] | 4 | 2019-04-17T21:36:00.000Z | 2019-04-30T22:06:31.000Z | vnix/bit-range.hpp | tevaughan/units | 75e5cfa76a44225983ca55f2a54e0869ff7b3715 | [
"BSD-3-Clause"
] | null | null | null | /// @file vnix/bit-range.hpp
/// @brief Definition of vnix::bit, vnix::bit_range.
/// @copyright 2019 Thomas E. Vaughan; all rights reserved.
/// @license BSD Three-Clause; see LICENSE.
#ifndef VNIX_BIT_HPP
#define VNIX_BIT_HPP
namespace vnix {
/// Word with specified bit set.
/// @tparam I Type of ... | 28.40625 | 71 | 0.647965 | tevaughan |
9271323e52f133fcecca87a1821b7f8ddec1a8b2 | 358 | cpp | C++ | test/unit/src/alloy/source/model.cpp | brunocodutra/alloy | e05e30a40b1b04c09819b8b968829ba4f62dc221 | [
"MIT"
] | 16 | 2017-06-15T18:37:05.000Z | 2022-02-20T09:17:38.000Z | test/unit/src/alloy/source/model.cpp | brunocodutra/alloy | e05e30a40b1b04c09819b8b968829ba4f62dc221 | [
"MIT"
] | 3 | 2017-06-15T18:26:02.000Z | 2017-07-29T15:29:16.000Z | test/unit/src/alloy/source/model.cpp | brunocodutra/alloy | e05e30a40b1b04c09819b8b968829ba4f62dc221 | [
"MIT"
] | 1 | 2018-06-05T20:39:14.000Z | 2018-06-05T20:39:14.000Z | #include <alloy.hpp>
#include "test.hpp"
template<auto X, auto Y, auto Z>
struct matrix {
constexpr matrix() {
auto f = [](auto&& sink) {
return values<X, Y, Z>()(FWD(sink));
};
static_assert(qualify<X>(alloy::source{callable<X>(f)}) >> expect(values<X, Y, Z>()));
}
};
in... | 18.842105 | 94 | 0.541899 | brunocodutra |
92744e2ec5f824ed15a53b13adbfd9f970556322 | 740 | cpp | C++ | snippets/cpp/VS_Snippets_CLR/Interop CallingConvention/CPP/callingconv.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-03-12T19:26:36.000Z | 2022-01-10T21:45:33.000Z | snippets/cpp/VS_Snippets_CLR/Interop CallingConvention/CPP/callingconv.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR/Interop CallingConvention/CPP/callingconv.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z |
// <Snippet1>
using namespace System;
using namespace System::Runtime::InteropServices;
public ref class LibWrap
{
public:
// CallingConvention.Cdecl must be used since the stack is
// cleaned up by the caller.
// int printf( const char *format [, argument]... )
[DllImport("msvcrt.dll",CharSet=CharSet::... | 27.407407 | 97 | 0.687838 | BohdanMosiyuk |
927874510225c5fb5aa53d0a5b089bc99afc57bd | 326 | cpp | C++ | alex/chapter4/4.3_functional_addition.cpp | Alexhhhc/gay-school-cpp-homework | fa864ce1632367ef0fa269c25030e60d3a0aafac | [
"BSD-3-Clause"
] | null | null | null | alex/chapter4/4.3_functional_addition.cpp | Alexhhhc/gay-school-cpp-homework | fa864ce1632367ef0fa269c25030e60d3a0aafac | [
"BSD-3-Clause"
] | null | null | null | alex/chapter4/4.3_functional_addition.cpp | Alexhhhc/gay-school-cpp-homework | fa864ce1632367ef0fa269c25030e60d3a0aafac | [
"BSD-3-Clause"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
float add(float x,float y);//声明add函数
float a,b,c;
cout<<"Please enter a&b:";//输出语句
cin>>a>>b; //输入语句
c=add(a,b); //调用add函数
cout<<"sum="<<c<<endl; //输出语句
return 0;
}
float add(float x,float y){ //定义add函数
float z;
z=x+y;
return... | 20.375 | 40 | 0.56135 | Alexhhhc |
927e4f75c55a804c83b0033ede86cba10772b177 | 1,403 | cc | C++ | source/Detectors/MeshModels.cc | vetlewi/AFRODITE | 4aa42184c0f94613e7e2b219bc8aca371094143e | [
"MIT"
] | null | null | null | source/Detectors/MeshModels.cc | vetlewi/AFRODITE | 4aa42184c0f94613e7e2b219bc8aca371094143e | [
"MIT"
] | 1 | 2021-05-04T10:52:08.000Z | 2021-05-04T10:52:08.000Z | source/Detectors/MeshModels.cc | vetlewi/AFRODITE | 4aa42184c0f94613e7e2b219bc8aca371094143e | [
"MIT"
] | null | null | null | //
// Created by Vetle Wegner Ingeberg on 30/04/2021.
//
#include "meshreader/incbin.h"
#ifndef SRC_PATH
#define SRC_PATH "../"
#endif // SRC_PATH
#ifndef PLY_PATH
#define PLY_PATH SRC_PATH"Mesh-Models"
#endif // PLY_PATH
#ifndef DETECTOR_PATH
#define DETECTOR_PATH PLY_PATH"/DETECTORS"
#endif // DETECTOR_PATH
#ifn... | 40.085714 | 103 | 0.840342 | vetlewi |
927e8a6f4a1a295f15b212626ccc771a4f6f0576 | 1,913 | cpp | C++ | cpp/graphs/shortestpaths/dijkstra.cpp | ayushbhatt2000/codelibrary | e1209b5e6195717d20127e12e908839c595c2f4c | [
"Unlicense"
] | 1,727 | 2015-01-01T18:32:37.000Z | 2022-03-28T05:56:03.000Z | cpp/graphs/shortestpaths/dijkstra.cpp | ayushbhatt2000/codelibrary | e1209b5e6195717d20127e12e908839c595c2f4c | [
"Unlicense"
] | 110 | 2015-05-03T10:23:18.000Z | 2021-07-31T22:44:39.000Z | cpp/graphs/shortestpaths/dijkstra.cpp | ayushbhatt2000/codelibrary | e1209b5e6195717d20127e12e908839c595c2f4c | [
"Unlicense"
] | 570 | 2015-01-01T10:17:11.000Z | 2022-03-31T22:23:46.000Z | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> edge;
typedef pair<int, int> item;
// https://cp-algorithms.com/graph/dijkstra_sparse.html
// O(E*log(V)) time and O(E) memory
tuple<vector<int>, vector<int>> dijkstra_heap(const vector<vector<edge>> &g, int s) {
size_t n = g.size();
vecto... | 23.617284 | 85 | 0.482488 | ayushbhatt2000 |
927feb418c31d63018cf81ffc516680a7b3d707a | 2,613 | cpp | C++ | src/gameworld/gameworld/scene/speciallogic/worldspecial/specialguildquestion.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/scene/speciallogic/worldspecial/specialguildquestion.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/scene/speciallogic/worldspecial/specialguildquestion.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #include "specialguildquestion.hpp"
#include "scene/activityshadow/activityshadow.hpp"
#include "obj/character/role.h"
#include "obj/otherobj/gatherobj.h"
#include "servercommon/activitydef.hpp"
#include "config/logicconfigmanager.hpp"
#include "servercommon/string/gameworldstr.h"
#include "scene/scenemanager.h"
#inclu... | 21.775 | 98 | 0.745886 | mage-game |
928569bb6b8d4e4dd3aa3ba56dc744b2e81b2734 | 349 | cpp | C++ | Engine/Application/ClientApplication.cpp | hhyyrylainen/Leviathan | 0a0d2ea004a153f9b17c6230da029e8160716f71 | [
"BSL-1.0"
] | 16 | 2018-12-22T02:09:05.000Z | 2022-03-09T20:38:59.000Z | Engine/Application/ClientApplication.cpp | hhyyrylainen/Leviathan | 0a0d2ea004a153f9b17c6230da029e8160716f71 | [
"BSL-1.0"
] | 46 | 2018-04-02T11:06:01.000Z | 2019-12-14T11:16:04.000Z | Engine/Application/ClientApplication.cpp | hhyyrylainen/Leviathan | 0a0d2ea004a153f9b17c6230da029e8160716f71 | [
"BSL-1.0"
] | 14 | 2018-04-09T02:26:15.000Z | 2021-09-11T03:12:15.000Z | // ------------------------------------ //
#include "ClientApplication.h"
using namespace Leviathan;
// ------------------------------------ //
DLLEXPORT ClientApplication::ClientApplication() {}
DLLEXPORT ClientApplication::ClientApplication(Engine* engine) : LeviathanApplication(engine)
{}
DLLEXPORT ClientApplicat... | 29.083333 | 93 | 0.616046 | hhyyrylainen |
928721107e2c12801e71dbdca664b7c9fd173c72 | 356 | cpp | C++ | Plugins/Pixel2D/Source/Pixel2DEditor/Private/Pixel2DLayers/Pixel2DLayerCommands.cpp | UnderGround-orchestra-band/SuperRogue | 65a520ac6ccf859c5994e429ffe915e9ff6f1028 | [
"MIT"
] | 1 | 2021-12-18T13:50:51.000Z | 2021-12-18T13:50:51.000Z | Plugins/Pixel2D/Source/Pixel2DEditor/Private/Pixel2DLayers/Pixel2DLayerCommands.cpp | UnderGround-orchestra-band/SuperRogue | 65a520ac6ccf859c5994e429ffe915e9ff6f1028 | [
"MIT"
] | 1 | 2021-11-30T08:09:46.000Z | 2021-11-30T08:09:46.000Z | Plugins/Pixel2D/Source/Pixel2DEditor/Private/Pixel2DLayers/Pixel2DLayerCommands.cpp | UnderGround-orchestra-band/SuperRogue | 65a520ac6ccf859c5994e429ffe915e9ff6f1028 | [
"MIT"
] | null | null | null | // Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#include "Pixel2DLayerCommands.h"
#define LOCTEXT_NAMESPACE "FPixel2DLayerModule"
void FPixel2DLayerCommands::RegisterCommands()
{
UI_COMMAND(OpenPluginWindow, "Pixel2DLayers", "Bring up Pixel2D Layers window", EUserInterfaceActionType::Button, FInputGest... | 27.384615 | 132 | 0.80618 | UnderGround-orchestra-band |
92886a7939396c808f0ed681d65c74420a805bbc | 2,062 | cpp | C++ | code/SoulVania/ItemRenderingSystem.cpp | warzes/Soulvania | 83733b6a6aa38f8024109193893eb5b65b0e6294 | [
"MIT"
] | 1 | 2021-06-30T06:29:54.000Z | 2021-06-30T06:29:54.000Z | code/SoulVania/ItemRenderingSystem.cpp | warzes/Soulvania | 83733b6a6aa38f8024109193893eb5b65b0e6294 | [
"MIT"
] | null | null | null | code/SoulVania/ItemRenderingSystem.cpp | warzes/Soulvania | 83733b6a6aa38f8024109193893eb5b65b0e6294 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ItemRenderingSystem.h"
#include "GameObject.h"
ItemRenderingSystem::ItemRenderingSystem(
GameObject& parent,
std::string spritePath,
std::unique_ptr<IEffect> deadEffect,
std::unique_ptr<IEffect> hitEffect)
:
parent{ parent }
{
this->spritePath = spritePath;
this->deadEffect = std:... | 20.828283 | 62 | 0.733269 | warzes |
928ff6427e75f750af4d841ed2de785f10a04b9e | 2,641 | inl | C++ | repos/plywood/src/build/Instantiators.inl | lambdatastic/plywood | 1a5688e0cdd03471a17f3a628752a5734cbd0d07 | [
"MIT"
] | null | null | null | repos/plywood/src/build/Instantiators.inl | lambdatastic/plywood | 1a5688e0cdd03471a17f3a628752a5734cbd0d07 | [
"MIT"
] | null | null | null | repos/plywood/src/build/Instantiators.inl | lambdatastic/plywood | 1a5688e0cdd03471a17f3a628752a5734cbd0d07 | [
"MIT"
] | null | null | null | // ply instantiate build-common PLY_BUILD
void inst_ply_build_common(TargetInstantiatorArgs* args) {
args->addSourceFiles("common/ply-build-common");
args->addIncludeDir(Visibility::Public, "common");
args->addTarget(Visibility::Public, "reflect");
}
// ply instantiate build-target PLY_BUILD
void inst_ply_... | 43.295082 | 99 | 0.706929 | lambdatastic |
92922d321b2e9ab0af0973ddf5fc489078167e7c | 740 | cpp | C++ | Codeforces/918B/map.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | Codeforces/918B/map.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | Codeforces/918B/map.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <string>
#include <iomanip>
#include <climits>
#include <vector>
#include <set>
#include <queue>
#include <map>
using namespace std;
map <string, string> mp;
int main()
{
ios::sync_with_stdio(false);
int se... | 20 | 64 | 0.55 | codgician |
92938214ecf428d006b075c336428d30b84ba127 | 9,478 | cc | C++ | simulation/astrobee_gazebo/src/astrobee_gazebo.cc | linorobot/astrobee | e74a241ddea4e2088923891f8173fdcfea4afd2b | [
"Apache-2.0"
] | 3 | 2018-01-04T02:00:49.000Z | 2020-09-29T20:32:07.000Z | simulation/astrobee_gazebo/src/astrobee_gazebo.cc | nicedone/astrobee | e74a241ddea4e2088923891f8173fdcfea4afd2b | [
"Apache-2.0"
] | null | null | null | simulation/astrobee_gazebo/src/astrobee_gazebo.cc | nicedone/astrobee | e74a241ddea4e2088923891f8173fdcfea4afd2b | [
"Apache-2.0"
] | 2 | 2020-02-20T06:02:33.000Z | 2020-07-21T11:45:47.000Z | /* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with... | 33.491166 | 95 | 0.675986 | linorobot |
9295ce21dcffbbc90049cad2b6d7fcb6ba7dd7a9 | 13,233 | hpp | C++ | src/3rd party/components/AlexMX/multi_edit.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 8 | 2016-01-25T20:18:51.000Z | 2019-03-06T07:00:04.000Z | src/3rd party/components/AlexMX/multi_edit.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | null | null | null | src/3rd party/components/AlexMX/multi_edit.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 3 | 2016-02-14T01:20:43.000Z | 2021-02-03T11:19:11.000Z | // Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'multi_edit.pas' rev: 6.00
#ifndef multi_editHPP
#define multi_editHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <CommCtrl.hpp... | 39.035398 | 130 | 0.775712 | OLR-xray |
9298a61340db9fd60a9c5603815e935dcdeec3d5 | 1,389 | cpp | C++ | src/gui/window_taborder.cpp | ShigotoShoujin/shigoto.shoujin | 165bac0703ffdec544ab275af25dd3504529a565 | [
"MIT"
] | 1 | 2021-10-31T04:29:16.000Z | 2021-10-31T04:29:16.000Z | src/gui/window_taborder.cpp | ShigotoShoujin/shigoto.shoujin | 165bac0703ffdec544ab275af25dd3504529a565 | [
"MIT"
] | null | null | null | src/gui/window_taborder.cpp | ShigotoShoujin/shigoto.shoujin | 165bac0703ffdec544ab275af25dd3504529a565 | [
"MIT"
] | null | null | null | //#include "../assert/assert.hpp"
#include "../assert/assert.hpp"
#include "window.hpp"
#include "window_taborder.hpp"
namespace shoujin::gui {
void WindowTabOrder::AddWindow(Window* window, int& out_taborder)
{
SHOUJIN_ASSERT(window);
if(window->tabstop()) {
_taborder_map.emplace(++_taborder_max, window);
out... | 19.842857 | 85 | 0.714903 | ShigotoShoujin |
929b975bdfe46c0afc7e916b74dc9b1e3dd5e2bd | 608 | cpp | C++ | C++/Algorithms/RecursionAlgorithms/RecursiveSum.cpp | m-payal/AlgorithmsAndDataStructure | db53da00cefa3b681b4fcebfc0d22ee91cd489f9 | [
"MIT"
] | 195 | 2020-05-09T02:26:13.000Z | 2022-03-30T06:12:07.000Z | C++/Algorithms/RecursionAlgorithms/RecursiveSum.cpp | m-payal/AlgorithmsAndDataStructure | db53da00cefa3b681b4fcebfc0d22ee91cd489f9 | [
"MIT"
] | 31 | 2021-06-15T19:00:57.000Z | 2022-02-02T15:51:25.000Z | C++/Algorithms/RecursionAlgorithms/RecursiveSum.cpp | m-payal/AlgorithmsAndDataStructure | db53da00cefa3b681b4fcebfc0d22ee91cd489f9 | [
"MIT"
] | 64 | 2020-05-09T02:26:15.000Z | 2022-02-23T16:02:01.000Z | /*
Title - Recusive Sum
Description- A Program to recursively calculate sum of N natural numbers.
*/
#include<bits/stdc++.h>
using namespace std;
// A recursive function to calculate the sum of N natural numbers
int recursiveSum(int num)
{
if(num == 0)
return 0;
return (recursiveSum(num - 1) + num); ... | 19.612903 | 80 | 0.636513 | m-payal |
929c1561b2ff5533ede9ff300b9fbd2f63160531 | 24,627 | cpp | C++ | ajaapps/crossplatform/demoapps/ntv2capture8k/ntv2capture8k.cpp | ibstewart/ntv2 | 0acbac70a0b5e6509cca78cfbf69974c73c10db9 | [
"MIT"
] | null | null | null | ajaapps/crossplatform/demoapps/ntv2capture8k/ntv2capture8k.cpp | ibstewart/ntv2 | 0acbac70a0b5e6509cca78cfbf69974c73c10db9 | [
"MIT"
] | null | null | null | ajaapps/crossplatform/demoapps/ntv2capture8k/ntv2capture8k.cpp | ibstewart/ntv2 | 0acbac70a0b5e6509cca78cfbf69974c73c10db9 | [
"MIT"
] | null | null | null | /* SPDX-License-Identifier: MIT */
/**
@file ntv2capture8k.cpp
@brief Implementation of NTV2Capture class.
@copyright (C) 2012-2021 AJA Video Systems, Inc. All rights reserved.
**/
#include "ntv2capture8k.h"
#include "ntv2utils.h"
#include "ntv2devicefeatures.h"
#include "ajabase/system/process.h"
#include "ajab... | 39.593248 | 157 | 0.697811 | ibstewart |
929d530fe906177786471f26757b646ba7848678 | 2,832 | cpp | C++ | Scratch-firmata/Scratch_Firmata_lib/ControlPanel.cpp | bLandais/txRobotic | bfe4a0ef0fdb9745e222ab0f5c61223cb3543e03 | [
"CC0-1.0"
] | 2 | 2018-04-04T18:59:50.000Z | 2021-06-13T01:07:38.000Z | Scratch-firmata/Scratch_Firmata_lib/ControlPanel.cpp | bLandais/txRobotic | bfe4a0ef0fdb9745e222ab0f5c61223cb3543e03 | [
"CC0-1.0"
] | 9 | 2017-03-22T17:26:25.000Z | 2017-06-25T13:35:34.000Z | Scratch-firmata/Scratch_Firmata_lib/ControlPanel.cpp | bLandais/txRobotic | bfe4a0ef0fdb9745e222ab0f5c61223cb3543e03 | [
"CC0-1.0"
] | 3 | 2017-03-22T15:09:12.000Z | 2018-04-04T18:59:51.000Z |
/*
File: ControlPanel.cpp
Author: Mathilde
Created on 18 octobre 2016, 11:37
*/
#include <map>
#include "vector"
#include <math.h>
#include <iostream>
#include "Arduino.h"
#include "ControlPanel.h"
#include "Button.h"
// constructors
ControlPanel::ControlPanel() {
}
ControlPanel::ControlPanel(int newB... | 23.6 | 74 | 0.513771 | bLandais |
929f720a94a4ebbc040a014231c03521e5eccb7c | 11,055 | cpp | C++ | src/GameCardProcess.cpp | jakcron/NXTools | 04662e529f2be92f590ca0754e780c7716b8c077 | [
"MIT"
] | 40 | 2017-07-18T18:21:00.000Z | 2018-08-05T12:30:05.000Z | src/GameCardProcess.cpp | PMArkive/NNTools | 276db64e45471a77345a87abb5c10a54ed8cc71e | [
"MIT"
] | 9 | 2018-04-05T07:44:54.000Z | 2018-08-07T09:11:22.000Z | src/GameCardProcess.cpp | PMArkive/NNTools | 276db64e45471a77345a87abb5c10a54ed8cc71e | [
"MIT"
] | 13 | 2018-01-22T09:10:13.000Z | 2018-08-05T12:30:06.000Z | #include "GameCardProcess.h"
#include <tc/crypto.h>
#include <tc/io/IOUtil.h>
#include <nn/hac/GameCardUtil.h>
#include <nn/hac/ContentMetaUtil.h>
#include <nn/hac/ContentArchiveUtil.h>
#include <nn/hac/GameCardFsMetaGenerator.h>
#include "FsProcess.h"
nstool::GameCardProcess::GameCardProcess() :
mModuleName("nst... | 38.653846 | 235 | 0.686839 | jakcron |
92a57ef5e759d6605d43b995e30da1833c5f2339 | 734 | cpp | C++ | lib/src/Flag.cpp | Kylerchrdsn/OOP-Strategoo | da182252ed37eca4c30d7aefa513434abb4a2ff2 | [
"MIT"
] | null | null | null | lib/src/Flag.cpp | Kylerchrdsn/OOP-Strategoo | da182252ed37eca4c30d7aefa513434abb4a2ff2 | [
"MIT"
] | null | null | null | lib/src/Flag.cpp | Kylerchrdsn/OOP-Strategoo | da182252ed37eca4c30d7aefa513434abb4a2ff2 | [
"MIT"
] | null | null | null | /******************************************************
Flag.cpp
This is the implementation file for the Flag
class.
******************************************************/
#include "headers/Flag.h"
//*****************************************************
Flag::Flag(Player* owner, int xPos, int yPos, int... | 31.913043 | 113 | 0.415531 | Kylerchrdsn |
92ac653f1ffe2d4ef4b60de2ad61758cf81572e8 | 1,018 | cpp | C++ | ABC/ABC123/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | 1 | 2021-06-01T17:13:44.000Z | 2021-06-01T17:13:44.000Z | ABC/ABC123/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | ABC/ABC123/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <set>
#include <queue>
#define FOR(idx, begin, end) for(int idx = (int)(begin); idx < (int)(end); ++idx)
#ifdef _DEBUG
#define DMP(x) cerr << #x << ": " << x << "\... | 19.576923 | 81 | 0.561886 | rajyan |
92b1144443ce18ad5f19b27b82200db1b051780f | 7,191 | cpp | C++ | src/BabylonCpp/src/gizmos/plane_drag_gizmo.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 277 | 2017-05-18T08:27:10.000Z | 2022-03-26T01:31:37.000Z | src/BabylonCpp/src/gizmos/plane_drag_gizmo.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 77 | 2017-09-03T15:35:02.000Z | 2022-03-28T18:47:20.000Z | src/BabylonCpp/src/gizmos/plane_drag_gizmo.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 37 | 2017-03-30T03:36:24.000Z | 2022-01-28T08:28:36.000Z | #include <babylon/gizmos/plane_drag_gizmo.h>
#include <babylon/babylon_stl_util.h>
#include <babylon/engines/scene.h>
#include <babylon/gizmos/position_gizmo.h>
#include <babylon/lights/hemispheric_light.h>
#include <babylon/materials/standard_material.h>
#include <babylon/meshes/builders/mesh_builder_options.h>
#incl... | 36.688776 | 100 | 0.681129 | samdauwe |
92b27659ae0fc9884ea551f525dc787337b01179 | 534 | hpp | C++ | table/include/item_set.hpp | TheAspiringHacker/Asparserations | 2962c685f5aa36fde966a1ea2a4549401c39ba37 | [
"MIT"
] | 12 | 2017-08-27T21:12:30.000Z | 2018-09-17T05:42:42.000Z | table/include/item_set.hpp | TheAspiringHacker/Asparserations | 2962c685f5aa36fde966a1ea2a4549401c39ba37 | [
"MIT"
] | 1 | 2021-06-16T20:44:33.000Z | 2021-06-16T20:44:33.000Z | table/include/item_set.hpp | TheAspiringHacker/Asparserations | 2962c685f5aa36fde966a1ea2a4549401c39ba37 | [
"MIT"
] | 1 | 2021-07-27T07:42:26.000Z | 2021-07-27T07:42:26.000Z | #ifndef ASPARSERATIONS_TABLE_ITEM_SET_H_
#define ASPARSERATIONS_TABLE_ITEM_SET_H_
#include "item.hpp"
#include <set>
namespace asparserations {
namespace table {
class Item_Set
{
friend bool operator<(const Item_Set&, const Item_Set&);
public:
Item_Set(const std::set<Item>&);
const std... | 20.538462 | 62 | 0.666667 | TheAspiringHacker |
92b39c56d4725cc5af4999bb319eda82e936e79c | 32,603 | cpp | C++ | src/OpenGL/frontend/gl_formats.cpp | kbiElude/VKGL | fffabf412723a3612ba1c5bfeafe1da38062bd18 | [
"MIT"
] | 114 | 2018-08-05T16:26:53.000Z | 2021-12-30T07:28:35.000Z | src/OpenGL/frontend/gl_formats.cpp | kbiElude/VKGL | fffabf412723a3612ba1c5bfeafe1da38062bd18 | [
"MIT"
] | 5 | 2018-08-18T21:16:58.000Z | 2018-11-22T21:50:48.000Z | src/OpenGL/frontend/gl_formats.cpp | kbiElude/VKGL | fffabf412723a3612ba1c5bfeafe1da38062bd18 | [
"MIT"
] | 6 | 2018-08-05T22:32:28.000Z | 2021-10-04T15:39:53.000Z | /* VKGL (c) 2018 Dominik Witczak
*
* This code is licensed under MIT license (see LICENSE.txt for details)
*/
#include "Common/macros.h"
#include "OpenGL/frontend/gl_formats.h"
typedef struct InternalFormatData
{
OpenGL::FormatDataType data_type;
uint32_t n_components;
/* For base and com... | 83.170918 | 240 | 0.52121 | kbiElude |
92b5fdc2de86dc8bea366b6becd7a3a38690d844 | 175 | cpp | C++ | ChronicleLogger/src/main/com/sowrov/util/thread/ThreadLocker.cpp | sowrov/ChronicleLogger | 50678be7e2987211ab976d105fcd8549e5b8744b | [
"Apache-2.0"
] | 1 | 2020-03-05T10:36:48.000Z | 2020-03-05T10:36:48.000Z | ChronicleLogger/src/main/com/sowrov/util/thread/ThreadLocker.cpp | sowrov/ChronicleLogger | 50678be7e2987211ab976d105fcd8549e5b8744b | [
"Apache-2.0"
] | null | null | null | ChronicleLogger/src/main/com/sowrov/util/thread/ThreadLocker.cpp | sowrov/ChronicleLogger | 50678be7e2987211ab976d105fcd8549e5b8744b | [
"Apache-2.0"
] | null | null | null | #include "ThreadLocker.h"
#ifdef _P_THREAD
pthread_mutex_t Global_Mutex_Lock = PTHREAD_MUTEX_INITIALIZER;
#elif defined(_BOOST_THREAD)
boost::mutex Global_Mutex_Lock;
#endif
| 21.875 | 62 | 0.84 | sowrov |
92c1746c8d3a8d16fb209eedc62b2e190decd3cf | 1,142 | cpp | C++ | src/Utils/mpcdiUtils.cpp | scaredyfish/MPCDI | 1ddbc9abf99d39d4464afa2005934c325443cf28 | [
"BSD-3-Clause"
] | 3 | 2021-03-09T01:57:37.000Z | 2021-05-07T08:40:41.000Z | src/Utils/mpcdiUtils.cpp | scaredyfish/MPCDI | 1ddbc9abf99d39d4464afa2005934c325443cf28 | [
"BSD-3-Clause"
] | 1 | 2021-06-01T07:52:36.000Z | 2021-06-03T00:54:49.000Z | src/Utils/mpcdiUtils.cpp | scaredyfish/MPCDI | 1ddbc9abf99d39d4464afa2005934c325443cf28 | [
"BSD-3-Clause"
] | 4 | 2020-06-22T14:14:15.000Z | 2021-11-11T14:34:42.000Z | /* =========================================================================
Program: MPCDI Library
Language: C++
Date: $Date: 2012-08-22 20:19:58 -0400 (Wed, 22 Aug 2012) $
Version: $Revision: 19513 $
Copyright (c) 2013 Scalable Display Technologies, Inc.
All Rights Reserved.
The MPCDI Librar... | 27.853659 | 86 | 0.60683 | scaredyfish |
92c2194c831fa6102456e80f868b6c6f385ccb51 | 1,508 | cpp | C++ | ex03/main.cpp | Gundul42/CPP_mod03 | 822c83ebca93e9a519bc8629c58ac39ef02365d6 | [
"MIT"
] | null | null | null | ex03/main.cpp | Gundul42/CPP_mod03 | 822c83ebca93e9a519bc8629c58ac39ef02365d6 | [
"MIT"
] | null | null | null | ex03/main.cpp | Gundul42/CPP_mod03 | 822c83ebca93e9a519bc8629c58ac39ef02365d6 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... | 31.416667 | 80 | 0.322944 | Gundul42 |
92c35370d69641889736865a3d06ccea318d9824 | 8,562 | inl | C++ | src/core/containers/internal/hash_map.inl | JakubLukas/NewEngine | 38ea585a37347ec0630673b9d4a7f948e4dc1477 | [
"MIT"
] | 4 | 2017-10-04T11:38:48.000Z | 2021-11-16T20:35:37.000Z | src/core/containers/internal/hash_map.inl | JakubLukas/NewEngine | 38ea585a37347ec0630673b9d4a7f948e4dc1477 | [
"MIT"
] | 4 | 2018-06-07T23:27:02.000Z | 2018-10-18T12:19:57.000Z | src/core/containers/internal/hash_map.inl | JakubLukas/NewEngine | 38ea585a37347ec0630673b9d4a7f948e4dc1477 | [
"MIT"
] | null | null | null |
namespace Veng
{
template<class KeyType, class ValueType, class Hasher>
HashMap<KeyType, ValueType, Hasher>::HashNode::HashNode(const KeyType& key, const ValueType& value)
: key(key)
, value(value)
, next(INVALID_INDEX)
{}
template<class KeyType, class ValueType, class Hasher>
HashMap<KeyType, ValueType, Hasher>... | 26.103659 | 176 | 0.726583 | JakubLukas |
92c3decbf871b019c6694afd8c9bea1858e7186f | 968 | cpp | C++ | PlacementQuestions/OYO/decodingbottomup.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | PlacementQuestions/OYO/decodingbottomup.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | 3 | 2020-05-08T18:02:51.000Z | 2020-05-09T08:37:35.000Z | PlacementQuestions/OYO/decodingbottomup.cpp | UltraProton/PlacementPrep | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int decodings(string &str);
int main(){
string str="";
cin>>str;
cout<<decodings(str)<<endl;
return 0;
}
int decodings(string &str){
int n=str.size();
/*
Here just do the reverse process of memoization and get the ans in the bottom ... | 24.2 | 138 | 0.578512 | UltraProton |
92c4de0efac80a39026d318d969880de4dc60da2 | 4,966 | cpp | C++ | aws-cpp-sdk-inspector2/source/model/Ec2InstanceAggregation.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-inspector2/source/model/Ec2InstanceAggregation.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-inspector2/source/model/Ec2InstanceAggregation.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/inspector2/model/Ec2InstanceAggregation.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace A... | 29.384615 | 130 | 0.751108 | perfectrecall |
92c53c9df52cadbe122e3624411e3485c05c45f3 | 1,587 | hpp | C++ | include/nifty/meta/tuple.hpp | DerThorsten/nifty_meta | d31d35f54b8bf252518bee18eacaa696fee82e9b | [
"MIT"
] | null | null | null | include/nifty/meta/tuple.hpp | DerThorsten/nifty_meta | d31d35f54b8bf252518bee18eacaa696fee82e9b | [
"MIT"
] | null | null | null | include/nifty/meta/tuple.hpp | DerThorsten/nifty_meta | d31d35f54b8bf252518bee18eacaa696fee82e9b | [
"MIT"
] | null | null | null | #pragma once
#include <utility>
#include <tuple>
#include <type_traits>
#include "nifty/meta/integral_constant.hpp"
namespace nifty{
namespace meta{
// find the position of a type in a tuple
template <class T, class Tuple>
struct TupleTypeIndex;
template <class T, class... Types>
struct TupleTy... | 24.415385 | 90 | 0.626969 | DerThorsten |
92c886868c9ee688b61549cd38d011f4d4e9cc10 | 4,506 | cpp | C++ | src/mongo/dbtests/counttests.cpp | corefan/mongo | c949cad1fa6e4cb26693748b1751f4fd2e6113b8 | [
"Apache-2.0"
] | null | null | null | src/mongo/dbtests/counttests.cpp | corefan/mongo | c949cad1fa6e4cb26693748b1751f4fd2e6113b8 | [
"Apache-2.0"
] | null | null | null | src/mongo/dbtests/counttests.cpp | corefan/mongo | c949cad1fa6e4cb26693748b1751f4fd2e6113b8 | [
"Apache-2.0"
] | 1 | 2021-02-28T12:03:02.000Z | 2021-02-28T12:03:02.000Z | // counttests.cpp : count.{h,cpp} unit tests.
/**
* Copyright (C) 2008 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is... | 31.51049 | 97 | 0.46893 | corefan |
92c8fb05fa571187ba977c80c16b54df073d7bc5 | 771 | cc | C++ | src/InsetOp.cc | pbrier/Mandoline | bb517e7e5ba531d4e20c2474a53ee521dd1d1642 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-01-05T06:40:55.000Z | 2017-01-05T06:40:55.000Z | src/InsetOp.cc | pbrier/Mandoline | bb517e7e5ba531d4e20c2474a53ee521dd1d1642 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/InsetOp.cc | pbrier/Mandoline | bb517e7e5ba531d4e20c2474a53ee521dd1d1642 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | //
// InsetOp.cc
// Mandoline
//
// Created by GM on 11/24/10.
// Copyright 2010 Belfry DevWorks. All rights reserved.
//
#include "InsetOp.h"
#include "BGL/BGL.h"
#include "SlicingContext.h"
#include "CarvedSlice.h"
InsetOp::~InsetOp()
{
}
void InsetOp::main()
{
if ( isCancelled ) return;
if ( NULL ... | 17.930233 | 63 | 0.642023 | pbrier |
92da1c435775bc9520949451a04473e003db78f7 | 1,676 | cpp | C++ | bitbots_throw_engine/src/throws/throw_curves/throw_movement_position_only.cpp | 5reichar/bitbots_kick_engine | 0817f4f0a206de6f0f01a0cedfe201f62e677a11 | [
"BSD-3-Clause"
] | null | null | null | bitbots_throw_engine/src/throws/throw_curves/throw_movement_position_only.cpp | 5reichar/bitbots_kick_engine | 0817f4f0a206de6f0f01a0cedfe201f62e677a11 | [
"BSD-3-Clause"
] | null | null | null | bitbots_throw_engine/src/throws/throw_curves/throw_movement_position_only.cpp | 5reichar/bitbots_kick_engine | 0817f4f0a206de6f0f01a0cedfe201f62e677a11 | [
"BSD-3-Clause"
] | null | null | null | #include "throws/throw_curves/throw_movement_position_only.h"
namespace bitbots_throw{
ThrowMovementPositionOnly::ThrowMovementPositionOnly(std::shared_ptr<ThrowMaterial> material)
: ThrowMovement(material){
}
void ThrowMovementPositionOnly::add_movement_prepare_throw(){
throw_start_t... | 42.974359 | 97 | 0.73389 | 5reichar |
92ddce5f43a5131e26d6b3cb705efcb8c1bfe597 | 82 | cpp | C++ | 1-15/thefunction.cpp | domijin/ComPhy | 0dea6d7b09eb4880b7f2d8f55c321c827e713488 | [
"MIT"
] | null | null | null | 1-15/thefunction.cpp | domijin/ComPhy | 0dea6d7b09eb4880b7f2d8f55c321c827e713488 | [
"MIT"
] | null | null | null | 1-15/thefunction.cpp | domijin/ComPhy | 0dea6d7b09eb4880b7f2d8f55c321c827e713488 | [
"MIT"
] | null | null | null | #include<math.h>
double cubeandmult(double u, double v)
{
return(pow(u,3)*v);
}
| 13.666667 | 38 | 0.670732 | domijin |
92e010291c2ea4a5cc83c09327e575f3bde61fe4 | 627 | cpp | C++ | 1128_N_Queens_Puzzle/1128_N_Queens_Puzzle/1128_N_Queens_Puzzle.cpp | Iluvata/PAT-Advanced-Level-Practice | 08a02e82eef30c81ed9ef8e4f327f7b2a9535582 | [
"MIT"
] | 2 | 2020-10-17T12:26:42.000Z | 2021-11-12T08:47:10.000Z | 1128_N_Queens_Puzzle/1128_N_Queens_Puzzle/1128_N_Queens_Puzzle.cpp | Iluvata/PAT-Advanced-Level-Practice | 08a02e82eef30c81ed9ef8e4f327f7b2a9535582 | [
"MIT"
] | 1 | 2020-10-19T11:31:55.000Z | 2020-10-19T11:31:55.000Z | 1128_N_Queens_Puzzle/1128_N_Queens_Puzzle/1128_N_Queens_Puzzle.cpp | Iluvata/PAT-Advanced-Level-Practice | 08a02e82eef30c81ed9ef8e4f327f7b2a9535582 | [
"MIT"
] | 1 | 2020-10-18T01:08:34.000Z | 2020-10-18T01:08:34.000Z | // 1128_N_Queens_Puzzle.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include "pch.h"
#include <iostream>
#include <vector>
#include <cmath>
#include <map>
using namespace std;
int main()
{
int k, n;
cin >> k;
for (int i = 0; i < k; ++i) {
cin >> n;
vector<bool> row(n + 1, false);
map<int, bool> diagsum;
map<... | 16.945946 | 61 | 0.527911 | Iluvata |
2baf016f451c314c8757506b9861d33fd0efd790 | 34,785 | cpp | C++ | aoiduino/esp-esp8266.cpp | gunjouinc/Aoiduino | f2b954010672d60bec69d6019cd1e77a14d21046 | [
"MIT"
] | null | null | null | aoiduino/esp-esp8266.cpp | gunjouinc/Aoiduino | f2b954010672d60bec69d6019cd1e77a14d21046 | [
"MIT"
] | null | null | null | aoiduino/esp-esp8266.cpp | gunjouinc/Aoiduino | f2b954010672d60bec69d6019cd1e77a14d21046 | [
"MIT"
] | null | null | null | /******************************************************************************
**
** Copyright 2009-2020 Gunjou Inc. All rights reserved.
** Contact: Gunjou Inc. (information@gunjou.co.jp)
**
** This software is released under the MIT License.
** https://github.com/gunjouinc/Aoiduino/blob/master/LICENSE
**
***********... | 27.629071 | 120 | 0.43812 | gunjouinc |
2bb0e4b01eb05a6a8ba1ded0a5f2b6258a848804 | 2,487 | cpp | C++ | hw4/src/lib/sema/SymbolTable.cpp | idoleat/P-Language-Compiler-CourseProject | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | 7 | 2020-09-10T16:54:49.000Z | 2022-03-15T12:39:23.000Z | hw4/src/lib/sema/SymbolTable.cpp | idoleat/simple-P-compiler | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | null | null | null | hw4/src/lib/sema/SymbolTable.cpp | idoleat/simple-P-compiler | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | null | null | null | #include "sema/SemanticAnalyzer.hpp"
/*
std::unordered_map<std::string, SemanticAnalyzer::SymbolEntry *>::iterator SemanticAnalyzer::SymbolTable::addSymbol(const char *name, int kind, uint32_t level, const char *type, int attribute){
dumpList.push_back(name);
return insert(name, new SymbolEntry(name, kind, leve... | 42.87931 | 201 | 0.741053 | idoleat |
2bb38f193fc366ae90906435b71efe731f765443 | 7,249 | cpp | C++ | Benchmarks/lud/lud_1_tiling/src/lud.cpp | LemonAndRabbit/rodinia-hls | 097e8cf572a9ab04403c4eb0cfdb042f233f4aea | [
"BSD-2-Clause"
] | 16 | 2020-12-28T15:07:53.000Z | 2022-02-16T08:55:40.000Z | Benchmarks/lud/lud_1_tiling/src/lud.cpp | LemonAndRabbit/rodinia-hls | 097e8cf572a9ab04403c4eb0cfdb042f233f4aea | [
"BSD-2-Clause"
] | null | null | null | Benchmarks/lud/lud_1_tiling/src/lud.cpp | LemonAndRabbit/rodinia-hls | 097e8cf572a9ab04403c4eb0cfdb042f233f4aea | [
"BSD-2-Clause"
] | 6 | 2020-12-28T07:33:08.000Z | 2022-01-13T16:31:22.000Z | #include"lud.h"
#include <iostream>
//Elment with the block BSIZE, diagonal
#define AA(i,j) result[(offset + i) * matrix_dim + j + offset]
//Elment with global index
#define BB(i,j) result[i * matrix_dim + j]
using namespace std;
extern "C"{
void diagonal_load(float* result, float* buffer, int offset){
int i, j;
... | 29.831276 | 130 | 0.473445 | LemonAndRabbit |
2bb78be9e19739ee70cd0fd08d20d3b9cb48b7e1 | 1,287 | cc | C++ | GeneralUtilities/src/VMInfo.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 1 | 2021-06-23T22:09:28.000Z | 2021-06-23T22:09:28.000Z | GeneralUtilities/src/VMInfo.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 125 | 2020-04-03T13:44:30.000Z | 2021-10-15T21:29:57.000Z | GeneralUtilities/src/VMInfo.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | null | null | null | #include "GeneralUtilities/inc/VMInfo.hh"
#include <array>
#include <fstream>
#include <map>
#include <sstream>
#include <stdexcept>
#include <unistd.h>
namespace {
// Helper function to check the units and return the value.
long parseLine ( std::string const& line,
std::string const& unitExpe... | 23.833333 | 74 | 0.602176 | lborrel |
2bb9375679e453bbb52cceb696885b9fe5125bd0 | 3,125 | ipp | C++ | libember/Headers/ember/glow/impl/GlowParameter.ipp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 78 | 2015-07-31T14:46:38.000Z | 2022-03-28T09:28:28.000Z | libember/Headers/ember/glow/impl/GlowParameter.ipp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 81 | 2015-08-03T07:58:19.000Z | 2022-02-28T16:21:19.000Z | libember/Headers/ember/glow/impl/GlowParameter.ipp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 49 | 2015-08-03T12:53:10.000Z | 2022-03-17T17:25:49.000Z | /*
libember -- C++ 03 implementation of the Ember+ Protocol
Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com).
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef __LIBEMBER_GLOW_GLOWPARAMET... | 32.894737 | 142 | 0.64096 | purefunsolutions |
2bbc823dacc872e579598f40345eddda0492ea26 | 1,095 | cpp | C++ | codeforces/A - Edit Distance/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Edit Distance/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Edit Distance/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Nov/29/2019 12:50
* solution_verdict: Accepted language: GNU C++14
* run... | 35.322581 | 111 | 0.389954 | kzvd4729 |
2bbf29d7d690776f16f91246827260af76486411 | 2,333 | hxx | C++ | opencascade/HLRTopoBRep_OutLiner.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/HLRTopoBRep_OutLiner.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/HLRTopoBRep_OutLiner.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 1994-08-03
// Created by: Christophe MARION
// Copyright (c) 1994-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
// the terms of the ... | 25.086022 | 123 | 0.786541 | mgreminger |
2bc41f310b986fe7940cfe2ab64e3fefd9973fed | 1,017 | hpp | C++ | src/service/MoleculeService.hpp | MichelML/chempp | cba27b910e7cbf626bcd4e1c25e394311e5f74e9 | [
"Apache-2.0"
] | 5 | 2021-05-21T17:15:32.000Z | 2021-07-26T17:38:52.000Z | src/service/MoleculeService.hpp | MichelML/chempp | cba27b910e7cbf626bcd4e1c25e394311e5f74e9 | [
"Apache-2.0"
] | 15 | 2021-05-17T14:24:15.000Z | 2021-08-12T15:30:11.000Z | src/service/MoleculeService.hpp | MichelML/chempp | cba27b910e7cbf626bcd4e1c25e394311e5f74e9 | [
"Apache-2.0"
] | 1 | 2021-06-26T01:07:18.000Z | 2021-06-26T01:07:18.000Z |
#ifndef EXAMPLE_POSTGRESQL_MOLECULESERVICE_HPP
#define EXAMPLE_POSTGRESQL_MOLECULESERVICE_HPP
#include "db/MoleculeDb.hpp"
#include "dto/StatusDto.hpp"
#include "dto/MoleculeDto.hpp"
#include "dto/MoleculesListDto.hpp"
#include "oatpp/web/protocol/http/Http.hpp"
#include "oatpp/core/macro/component.hpp"
class Molec... | 37.666667 | 169 | 0.797443 | MichelML |
2bc42c4bafc9df7ba7729f3a502e5669e9893ba0 | 3,234 | hpp | C++ | qipython/pyguard.hpp | Maelic/libqi-python | d5e250a7ce1b6039bb1f57f750cab51412dfecca | [
"BSD-3-Clause"
] | 7 | 2015-08-12T01:25:11.000Z | 2021-07-15T11:08:34.000Z | qipython/pyguard.hpp | Maelic/libqi-python | d5e250a7ce1b6039bb1f57f750cab51412dfecca | [
"BSD-3-Clause"
] | 10 | 2015-10-01T11:33:53.000Z | 2022-03-23T10:19:33.000Z | qipython/pyguard.hpp | Maelic/libqi-python | d5e250a7ce1b6039bb1f57f750cab51412dfecca | [
"BSD-3-Clause"
] | 7 | 2015-02-24T10:38:52.000Z | 2022-03-14T10:18:26.000Z | /*
** Copyright (C) 2020 SoftBank Robotics Europe
** See COPYING for the license
*/
#pragma once
#ifndef QIPYTHON_GUARD_HPP
#define QIPYTHON_GUARD_HPP
#include <qipython/common.hpp>
#include <ka/typetraits.hpp>
#include <type_traits>
namespace qi
{
namespace py
{
/// DefaultConstructible Guard
/// Procedure<_ (A... | 23.779412 | 90 | 0.653061 | Maelic |
2bc58ddcf7479e5d3006b54cb23426bb1db7b70d | 7,820 | cpp | C++ | src/gui/qt/qt_backend.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | src/gui/qt/qt_backend.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | src/gui/qt/qt_backend.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | /*
* djnn v2
*
* The copyright holders for the contents of this file are:
* Ecole Nationale de l'Aviation Civile, France (2018)
* See file "license.terms" for the rights and conditions
* defined by copyright holders.
*
*
* Contributors:
* Mathieu Magnaudet <mathieu.magnaudet@enac.fr>
*
*/
#i... | 32.995781 | 108 | 0.625575 | alicemona |
2bc7cc8408c2e86201c75f4a22350f032a56f075 | 979 | cpp | C++ | Source/Foundation/bsfCore/Managers/BsMeshManager.cpp | myrgy/bsf | 2c31da99f5763a47c0dee7e2cdb3d4ac3b3c37a6 | [
"MIT"
] | 1 | 2018-04-16T12:14:52.000Z | 2018-04-16T12:14:52.000Z | Source/Foundation/bsfCore/Managers/BsMeshManager.cpp | myrgy/bsf | 2c31da99f5763a47c0dee7e2cdb3d4ac3b3c37a6 | [
"MIT"
] | null | null | null | Source/Foundation/bsfCore/Managers/BsMeshManager.cpp | myrgy/bsf | 2c31da99f5763a47c0dee7e2cdb3d4ac3b3c37a6 | [
"MIT"
] | null | null | null | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "Managers/BsMeshManager.h"
#include "BsCoreApplication.h"
#in... | 28.794118 | 124 | 0.658836 | myrgy |
2bc81063a73e18c00b73fdb550fd89f181f2c024 | 8,210 | cc | C++ | src/Formlsms/rss_expl.cc | asminer/smart | 269747c4578b670e5c3973f93a1e6ec71d95be78 | [
"Apache-2.0"
] | 6 | 2018-05-30T23:02:14.000Z | 2022-01-19T07:30:46.000Z | src/Formlsms/rss_expl.cc | asminer/smart | 269747c4578b670e5c3973f93a1e6ec71d95be78 | [
"Apache-2.0"
] | null | null | null | src/Formlsms/rss_expl.cc | asminer/smart | 269747c4578b670e5c3973f93a1e6ec71d95be78 | [
"Apache-2.0"
] | 2 | 2018-07-13T18:53:27.000Z | 2021-04-12T17:54:02.000Z |
#include <cstdio>
#include "rss_expl.h"
#include "../ExprLib/exprman.h"
#include "../ExprLib/mod_vars.h"
// For ordering states
#include "../include/heap.h"
#include "../Modules/expl_states.h"
// ******************************************************************
// * ... | 29.746377 | 94 | 0.484409 | asminer |
2bce03c358b7d9221c58a8ab25166381d8f27de2 | 698 | cc | C++ | cmd/cmd_args.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | cmd/cmd_args.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | cmd/cmd_args.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | #include <system.hh>
#include <urbite.hh>
#include <process.hh>
#include <strutils.hh>
using namespace makemore;
extern "C" void mainmore(Process *);
void mainmore(
Process *process
) {
unsigned int itabn = process->itab.size();
if (itabn < 2)
return;
strvec argext;
if (!process->read(&argext, itabn -... | 19.388889 | 51 | 0.667622 | jdb19937 |
2bcef84f16db5b67460b4be9c6bec13eb5570382 | 122 | cpp | C++ | ACEXML/common/Element_Def_Builder.cpp | BeiJiaan/ace | 2845970c894bb350d12d6a32e867d7ddf2487f25 | [
"DOC"
] | 16 | 2015-05-11T04:33:44.000Z | 2022-02-15T04:28:39.000Z | ACEXML/common/Element_Def_Builder.cpp | BeiJiaan/ace | 2845970c894bb350d12d6a32e867d7ddf2487f25 | [
"DOC"
] | null | null | null | ACEXML/common/Element_Def_Builder.cpp | BeiJiaan/ace | 2845970c894bb350d12d6a32e867d7ddf2487f25 | [
"DOC"
] | 7 | 2015-01-08T16:11:34.000Z | 2021-07-04T16:04:40.000Z | // $Id$
#include "ACEXML/common/Element_Def_Builder.h"
ACEXML_Element_Def_Builder::~ACEXML_Element_Def_Builder ()
{
}
| 12.2 | 58 | 0.762295 | BeiJiaan |
2bd23f8c9b1f6d6f07901780f6f8045644b96d26 | 12,695 | cpp | C++ | ThirdParty/UPnP/Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp | snazy2000/MediaBrowser.Plugins | 8c3a23fc0ce0186dd1ef048bf51a0eb7a1ee42b0 | [
"MIT"
] | 1 | 2021-05-15T16:24:07.000Z | 2021-05-15T16:24:07.000Z | ThirdParty/UPnP/Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp | bllakjakk/MediaBrowser.Plugins | 4b115a832f7f31d752ba0c135c65d570c6220bec | [
"MIT"
] | null | null | null | ThirdParty/UPnP/Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp | bllakjakk/MediaBrowser.Plugins | 4b115a832f7f31d752ba0c135c65d570c6220bec | [
"MIT"
] | null | null | null | /*****************************************************************
|
| Platinum - Synchronous Media Browser
|
| Copyright (c) 2004-2010, Plutinosoft, LLC.
| All rights reserved.
| http://www.plutinosoft.com
|
| This program is free software; you can redistribute it and/or
| modify it under the terms of the GNU Genera... | 38.353474 | 111 | 0.525876 | snazy2000 |
2bda52c3a52f8cc9f8c5e5d7d2099af28122dee2 | 20,268 | hh | C++ | graph-tool-2.27/src/graph/inference/blockmodel/graph_blockmodel_partition.hh | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | graph-tool-2.27/src/graph/inference/blockmodel/graph_blockmodel_partition.hh | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | graph-tool-2.27/src/graph/inference/blockmodel/graph_blockmodel_partition.hh | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | // graph-tool -- a general graph modification and manipulation thingy
//
// Copyright (C) 2006-2018 Tiago de Paula Peixoto <tiago@skewed.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation;... | 28.506329 | 87 | 0.433886 | Znigneering |
2bdf37205f44b62d3314760437b00baa263f64ea | 5,437 | cc | C++ | deprected/tests/testUtils.cc | RobertWeber1/cli | 5cb67325610be41014403e9342dddbe942511c2b | [
"MIT"
] | null | null | null | deprected/tests/testUtils.cc | RobertWeber1/cli | 5cb67325610be41014403e9342dddbe942511c2b | [
"MIT"
] | null | null | null | deprected/tests/testUtils.cc | RobertWeber1/cli | 5cb67325610be41014403e9342dddbe942511c2b | [
"MIT"
] | null | null | null | #include "testUtils.h"
namespace CLI
{
std::ostream & operator<<( std::ostream & os, border::Element::Type type )
{
switch(type)
{
case border::Element::NONE:
return os << "NONE";
case border::Element::UNUSED_1:
return os << "UNUSED_1";
case border::Element::UNUSED_2:
r... | 22.654167 | 126 | 0.516093 | RobertWeber1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.