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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a6a17ca5367be85657363320a4f8eb0db07a440 | 1,537 | cpp | C++ | Source/Untitled_DeckRPG/Core/SummonerPlayerController.cpp | JeffereyAEL/UntitledDeckRPG | e2935641957ba01645fdb0112eda5386b80fb919 | [
"Artistic-2.0"
] | null | null | null | Source/Untitled_DeckRPG/Core/SummonerPlayerController.cpp | JeffereyAEL/UntitledDeckRPG | e2935641957ba01645fdb0112eda5386b80fb919 | [
"Artistic-2.0"
] | null | null | null | Source/Untitled_DeckRPG/Core/SummonerPlayerController.cpp | JeffereyAEL/UntitledDeckRPG | e2935641957ba01645fdb0112eda5386b80fb919 | [
"Artistic-2.0"
] | null | null | null | #include "SummonerPlayerController.h"
#include "GlobalEventManager.h"
#include "SummonerGameMode.h"
#include "../Externals/DefinedDebugHelpers.h"
ASummonerPlayerController::ASummonerPlayerController() {
}
void ASummonerPlayerController::SetPersistentData(FSummonerPersistentData persistent_data) {
PersistentData =... | 34.155556 | 92 | 0.778139 | JeffereyAEL |
7a6af2c767973d87449fe453a86d95d2162536eb | 2,610 | cpp | C++ | Ppm.cpp | rautava/EspMatrix | 92a9216ea177c49c8847c99ee2892f46b87beb84 | [
"Unlicense"
] | null | null | null | Ppm.cpp | rautava/EspMatrix | 92a9216ea177c49c8847c99ee2892f46b87beb84 | [
"Unlicense"
] | null | null | null | Ppm.cpp | rautava/EspMatrix | 92a9216ea177c49c8847c99ee2892f46b87beb84 | [
"Unlicense"
] | null | null | null | #include "Ppm.hpp"
#include <cstdlib>
#include <string.h>
#include <Arduino.h>
#include <FS.h>
namespace
{
static char BUFFER[1024]{0};
inline bool isSpace(char c)
{
return (c == ' ') || (c == '\n') || (c == '\r');
}
int getNextNumber(const char *&startIter, const char *&endIter, const ... | 23.944954 | 84 | 0.470115 | rautava |
7a6c58bc19e2378738afc14634052b8bc67897d7 | 311 | hpp | C++ | test/deep_namespace/include/dn.hpp | luke-titley/cppmm | 3c0dbc5539ab33706e63d4a518f85cb6a9a54ed7 | [
"OLDAP-2.5",
"OLDAP-2.3"
] | 37 | 2020-11-03T19:51:36.000Z | 2022-02-08T06:09:51.000Z | test/deep_namespace/include/dn.hpp | luke-titley/cppmm | 3c0dbc5539ab33706e63d4a518f85cb6a9a54ed7 | [
"OLDAP-2.5",
"OLDAP-2.3"
] | 61 | 2020-11-06T16:59:25.000Z | 2021-09-08T20:48:47.000Z | test/deep_namespace/include/dn.hpp | luke-titley/cppmm | 3c0dbc5539ab33706e63d4a518f85cb6a9a54ed7 | [
"OLDAP-2.5",
"OLDAP-2.3"
] | 7 | 2020-11-05T04:53:22.000Z | 2021-09-03T23:32:21.000Z | #pragma once
namespace DN {
namespace v2_2 {
class Class {
public:
int i;
float f;
enum Enum { One, Two, Three };
struct Struct {
int a;
float b;
void structMethod() {}
};
};
void someFunction() {}
} // namespace v2_2
using namespace v2_2;
} // namespace DN
| 11.107143 | 34 | 0.562701 | luke-titley |
7a70f6842598b2c7e33cf0ab3501165564ccf6c4 | 1,311 | hpp | C++ | android-31/android/nfc/cardemulation/NfcFCardEmulation.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/nfc/cardemulation/NfcFCardEmulation.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/nfc/cardemulation/NfcFCardEmulation.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../../JObject.hpp"
namespace android::app
{
class Activity;
}
namespace android::content
{
class ComponentName;
}
namespace android::nfc
{
class NfcAdapter;
}
class JString;
namespace android::nfc::cardemulation
{
class NfcFCardEmulation : public JObject
{
public:
// Fields
// ... | 29.795455 | 158 | 0.765065 | YJBeetle |
7a74d0adbae2d3948f1a89f2f8611e2d0770465f | 734 | cpp | C++ | test/graph/minimum_spanning_tree/4.test.cpp | naskya/cp-library-cpp | e045f244060af4588a4a62cb150f07940002c448 | [
"CC0-1.0"
] | null | null | null | test/graph/minimum_spanning_tree/4.test.cpp | naskya/cp-library-cpp | e045f244060af4588a4a62cb150f07940002c448 | [
"CC0-1.0"
] | null | null | null | test/graph/minimum_spanning_tree/4.test.cpp | naskya/cp-library-cpp | e045f244060af4588a4a62cb150f07940002c448 | [
"CC0-1.0"
] | null | null | null | #define PROBLEM "https://onlinejudge.u-aizu.ac.jp/problems/GRL_2_A"
#include <iostream>
#include <vector>
#include "../../../include/graph/minimum_spanning_tree.hpp"
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
int V, E;
std::cin >> V >> E;
constexpr int INF = 1000000005;
s... | 26.214286 | 85 | 0.648501 | naskya |
7a7f174a59affca1c91d28708393abfe2f31f646 | 696 | cpp | C++ | HDU/20/hdu2056.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2017-08-19T16:02:15.000Z | 2017-08-19T16:02:15.000Z | HDU/20/hdu2056.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | null | null | null | HDU/20/hdu2056.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2018-01-05T23:37:23.000Z | 2018-01-05T23:37:23.000Z | #include <cstdio>
#include <algorithm>
using namespace std;
int main(void)
{
int i;
double a[2], b[2];
double x[4], y[4];
while (scanf("%lf%lf", x, y) != EOF)
{
for (i = 1; i < 4; i++)
scanf("%lf%lf", x+i, y+i);
if (x[0] > x[1]) swap(x[0], x[1]);
if (y[0] > y[1]... | 24.857143 | 78 | 0.359195 | bilibiliShen |
7a835830c8355142993c1411f242e7e392f8ad82 | 9,164 | inl | C++ | src/ucd/block.g.inl | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | 25 | 2016-10-21T12:37:23.000Z | 2021-02-22T05:46:46.000Z | sources/superlibs/owlevel/inc/ll/ucd/block.g.inl | twrl/conurbation | 0e92178fa36528acd3bbf1d1b6e417e7c1bbe659 | [
"MIT"
] | null | null | null | sources/superlibs/owlevel/inc/ll/ucd/block.g.inl | twrl/conurbation | 0e92178fa36528acd3bbf1d1b6e417e7c1bbe659 | [
"MIT"
] | 4 | 2016-09-05T10:23:18.000Z | 2020-07-09T19:37:37.000Z | // Ogonek
//
// Written in 2013 by Martinho Fernandes <martinho.fernandes@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public domain worldwide. This software is
// distributed without any warranty.
//
// You s... | 33.691176 | 96 | 0.621344 | libogonek |
7a84a2f99b6018835cb751caf4e84d079a7e3d49 | 377 | cpp | C++ | src/sorara/soraradb.cpp | FromHDDtoSSD/SorachanCoin_Server | 6601f18767187f0b6c3bb0c30eee4820f2c2e4ff | [
"MIT"
] | 10 | 2018-08-14T08:53:37.000Z | 2021-03-14T02:28:44.000Z | src/sorara/soraradb.cpp | FromHDDtoSSD/SorachanCoin_Server | 6601f18767187f0b6c3bb0c30eee4820f2c2e4ff | [
"MIT"
] | 1 | 2021-06-09T16:12:49.000Z | 2021-10-15T18:57:59.000Z | src/sorara/soraradb.cpp | FromHDDtoSSD/SorachanCoin_Server | 6601f18767187f0b6c3bb0c30eee4820f2c2e4ff | [
"MIT"
] | 3 | 2020-07-09T22:35:26.000Z | 2022-01-17T18:44:13.000Z | // Copyright (c) 2018-2021 The SorachanCoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <sorara/soraradb.h>
#include <key/privkey.h>
#include <key/pubkey.h>
CSoraraDB::CSoraraDB(const char *mode/*="r... | 37.7 | 98 | 0.745358 | FromHDDtoSSD |
185b7fd0dd2a745588a5f9b2b5c3ddadcdd2ae36 | 610 | cpp | C++ | Trabalhador/Trabalhador/TrabalhadorTest.cpp | cans10/Roteiro7 | a45734e737396169d98aff81b3aebb95b1b77870 | [
"MIT"
] | null | null | null | Trabalhador/Trabalhador/TrabalhadorTest.cpp | cans10/Roteiro7 | a45734e737396169d98aff81b3aebb95b1b77870 | [
"MIT"
] | null | null | null | Trabalhador/Trabalhador/TrabalhadorTest.cpp | cans10/Roteiro7 | a45734e737396169d98aff81b3aebb95b1b77870 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Trabalhador.h"
#include "TrabalhadorPorHora.h"
#include "TrabalhadorAssalariado.h"
using namespace std;
int main()
{
TrabalhadorPorHora t1 ("Carlos", 3600.00f);
int horasTrabalhada = 42;
TrabalhadorAssalariado t2 ("Francisco", 3600.00f);
cout.precision(2);
cout<< en... | 26.521739 | 131 | 0.670492 | cans10 |
185bcb1b662c1dd84785103c8d0c432b4e063109 | 21,800 | cpp | C++ | build/linux-build/Sources/src/zpp_nape/geom/ZPP_ConvexRayResult.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/zpp_nape/geom/ZPP_ConvexRayResult.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/zpp_nape/geom/ZPP_ConvexRayResult.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.0.0-preview.5
#include <hxcpp.h>
#ifndef INCLUDED_nape_geom_ConvexResult
#include <hxinc/nape/geom/ConvexResult.h>
#endif
#ifndef INCLUDED_nape_geom_RayResult
#include <hxinc/nape/geom/RayResult.h>
#endif
#ifndef INCLUDED_nape_geom_Vec2
#include <hxinc/nape/geom/Vec2.h>
#endif
#ifndef INCLUDED_n... | 42.084942 | 215 | 0.700367 | HedgehogFog |
185c155bdb5123a4904b217d7c5cfd76acb4bd8a | 2,757 | cpp | C++ | francor_base/test/src/unit_test_math.cpp | franc0r/libfrancor | 7dc28349949dbad2da219f2bda5c5cf21cb7f7d8 | [
"BSD-3-Clause"
] | null | null | null | francor_base/test/src/unit_test_math.cpp | franc0r/libfrancor | 7dc28349949dbad2da219f2bda5c5cf21cb7f7d8 | [
"BSD-3-Clause"
] | null | null | null | francor_base/test/src/unit_test_math.cpp | franc0r/libfrancor | 7dc28349949dbad2da219f2bda5c5cf21cb7f7d8 | [
"BSD-3-Clause"
] | null | null | null | /**
* Unit test for the math functions.
*
* \author Christian Merkl (knueppl@gmx.de)
* \date 28. December 2019
*/
#include <gtest/gtest.h>
#include "francor_base/algorithm/math.h"
TEST(Fak, Functionality)
{
EXPECT_EQ((francor::base::algorithm::math::fak<int>(4)), 24);
EXPECT_EQ((francor::base::algorithm... | 35.346154 | 119 | 0.701124 | franc0r |
186081f5dd99bf50474ae24b2e48ba50b3c31071 | 5,390 | cpp | C++ | matlab/intrelab/src/intrepid_getCellVolumetricMat.cpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | matlab/intrelab/src/intrepid_getCellVolumetricMat.cpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | matlab/intrelab/src/intrepid_getCellVolumetricMat.cpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | // @HEADER
// ************************************************************************
//
// Intrepid Package
// Copyright (2007) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of the ... | 40.833333 | 120 | 0.569388 | Sandia2014 |
1862f7abf2f645a2c3e432202aaaf9a2fe44f9d5 | 5,691 | cpp | C++ | main_scene.cpp | wutipong/font-render-tester | efa762cc4b1bc1a50fc73596d7b6b8bf70787ce9 | [
"MIT"
] | null | null | null | main_scene.cpp | wutipong/font-render-tester | efa762cc4b1bc1a50fc73596d7b6b8bf70787ce9 | [
"MIT"
] | null | null | null | main_scene.cpp | wutipong/font-render-tester | efa762cc4b1bc1a50fc73596d7b6b8bf70787ce9 | [
"MIT"
] | null | null | null | #include "main_scene.hpp"
#include <filesystem>
#include <fstream>
#include <glm/gtc/type_ptr.hpp>
#include <imgui.h>
#include <streambuf>
#include <utf8cpp/utf8.h>
#include <utf8cpp/utf8/cpp11.h>
#include "text_renderer.hpp"
bool MainScene::Init(Context &context) {
Font::Init();
InitTextRenderers();
dirChoos... | 28.59799 | 84 | 0.605869 | wutipong |
18632947868839d32b971238f92dd9e2f18d8a1b | 1,105 | cpp | C++ | test/primitive_synthesis.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 14 | 2018-03-10T21:50:20.000Z | 2021-11-22T04:09:09.000Z | test/primitive_synthesis.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 3 | 2018-06-12T15:17:22.000Z | 2019-06-20T12:00:45.000Z | test/primitive_synthesis.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 12 | 2018-03-10T17:02:07.000Z | 2022-01-09T16:04:56.000Z | #include <percy/percy.hpp>
#include <cassert>
#include <cstdio>
#include <fstream>
using namespace percy;
using kitty::dynamic_truth_table;
/// Tests synthesis using a restricted set of logic primitives.
int main(void)
{
chain c;
spec spec;
spec.verbosity = 0;
bsat_wrapper solver;
ssv_encoder enc... | 23.510638 | 64 | 0.648869 | mdsudara |
18633f540f94c514da0d35ab275b66dc595b7551 | 958 | hpp | C++ | include/poike/imgui/ImGuiCommandBuffers.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | include/poike/imgui/ImGuiCommandBuffers.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | include/poike/imgui/ImGuiCommandBuffers.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | #ifndef IMGUICOMMANDBUFFERS_HPP
#define IMGUICOMMANDBUFFERS_HPP
// clang-format off
#include <stdint.h> // for uint32_t
#include <poike/core/CommandBuffers.hpp> // for CommandBuffers
namespace poike { class CommandPool; }
namespace poike { class Device; }
namespace poike { class GraphicsPipeline; }
... | 29.030303 | 65 | 0.677453 | florianvazelle |
186a3bee6e7a8f143f735bbc19f0418f2f0a66b2 | 766 | cpp | C++ | sponza/src/Instance.cpp | HJBell/RepriseMySponza | 8d851b374d51d4b57d19f0c56bba795beb5e19e5 | [
"Unlicense",
"MIT"
] | null | null | null | sponza/src/Instance.cpp | HJBell/RepriseMySponza | 8d851b374d51d4b57d19f0c56bba795beb5e19e5 | [
"Unlicense",
"MIT"
] | null | null | null | sponza/src/Instance.cpp | HJBell/RepriseMySponza | 8d851b374d51d4b57d19f0c56bba795beb5e19e5 | [
"Unlicense",
"MIT"
] | null | null | null | #include <sponza/sponza.hpp>
using namespace sponza;
Instance::Instance(InstanceId i) : id(i)
{
mesh_id = 0;
material_id = 0;
xform = Matrix4x3();
is_static = false;
}
InstanceId Instance::getId() const
{
return id;
}
bool Instance::isStatic() const
{
return is_static;
}
void Instance::setS... | 13.438596 | 51 | 0.680157 | HJBell |
186d62c311f328023d5fe5986d6281f5a552cf96 | 1,007 | cpp | C++ | jni/application/Warrior.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | jni/application/Warrior.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | jni/application/Warrior.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | #include "Warrior.h"
#include "Sword.h"
#include "Shield.h"
using namespace Zeni;
using namespace std;
Warrior::Warrior(const Zeni::Point2f &position_,
const int &uid_,
const Team &team_,
const Zeni::Vector2f &size_)
: Player(position_, uid_, 120.0f, 600.0f, team_, "... | 23.418605 | 80 | 0.649454 | clarkdonald |
1872a98df9eb6a21ce40a75a1be94984cddb09f2 | 832 | hpp | C++ | impl/jamtemplate/common/tilemap/tile_node.hpp | runvs/1hgj_352 | ee7bbab20729427ce9e5f861101a75f6b3f699d3 | [
"CC0-1.0"
] | 6 | 2021-09-05T08:31:36.000Z | 2021-12-09T21:14:37.000Z | impl/jamtemplate/common/tilemap/tile_node.hpp | runvs/1hgj_352 | ee7bbab20729427ce9e5f861101a75f6b3f699d3 | [
"CC0-1.0"
] | 30 | 2021-05-19T15:33:03.000Z | 2022-03-30T19:26:37.000Z | impl/jamtemplate/common/tilemap/tile_node.hpp | runvs/1hgj_352 | ee7bbab20729427ce9e5f861101a75f6b3f699d3 | [
"CC0-1.0"
] | 3 | 2021-05-23T16:06:01.000Z | 2021-10-01T01:17:08.000Z | #ifndef GUARD_JAMTEMPLATE_TILENODE_HPP
#define GUARD_JAMTEMPLATE_TILENODE_HPP
#include "drawable_interface.hpp"
#include "pathfinder/node_interface.hpp"
#include "vector.hpp"
#include <memory>
namespace jt {
namespace tilemap {
class TileNode {
public:
TileNode(std::shared_ptr<jt::DrawableInterface> drawable,
... | 25.212121 | 75 | 0.74399 | runvs |
187398d23c78542a54ab333f124fe74b9c57e0fe | 722 | cpp | C++ | src/saiga/opengl/assets/plyAssetLoader.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/opengl/assets/plyAssetLoader.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/opengl/assets/plyAssetLoader.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2017 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "plyAssetLoader.h"
#include "saiga/core/model/plyModelLoader.h"
#include "saiga/opengl/shader/shaderLoader.h"
#include "saiga/opengl/texture/TextureLoader.h"
namespace Saiga
{
void PlyAs... | 22.5625 | 110 | 0.738227 | SimonMederer |
1873c969b7d34f6b1c0d8225f51a79e824b11254 | 27,681 | cpp | C++ | gui/win/native_x11.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | gui/win/native_x11.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | gui/win/native_x11.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | /**
* @copyright (c) 2015-2021 Ing. Buero Rothfuss
* Riedlinger Str. 8
* 70327 Stuttgart
* Germany
* http://www.rothfuss-web.de
*
* @author <a href="mailto:armin@rothfuss-web.de">Armin Rothfuss</a>
*
* Projec... | 35.26242 | 131 | 0.546982 | r3dl3g |
1879198fe4d7f8ccb363b4deb3c74011f10ff14c | 195 | cpp | C++ | src/views/home/Article.cpp | HadesD/LaraCC | cb4e52bb87c777042e68e54a52be73a1a1e3abbd | [
"MIT"
] | null | null | null | src/views/home/Article.cpp | HadesD/LaraCC | cb4e52bb87c777042e68e54a52be73a1a1e3abbd | [
"MIT"
] | null | null | null | src/views/home/Article.cpp | HadesD/LaraCC | cb4e52bb87c777042e68e54a52be73a1a1e3abbd | [
"MIT"
] | null | null | null | #include "views/home/Article.hpp"
namespace app::views::home
{
Article::Article() : Home(), article()
{
}
Article::Article(const std::string& slug) : Home(), article(slug)
{
}
}
| 12.1875 | 67 | 0.610256 | HadesD |
187da83de62997e2b9a1bbdb5e7fe87a7c80ced0 | 29,568 | cpp | C++ | src/json.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 7 | 2017-07-12T11:15:54.000Z | 2021-10-29T18:33:33.000Z | src/json.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 18 | 2017-05-16T03:48:45.000Z | 2022-03-16T19:51:26.000Z | src/json.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 1 | 2018-08-02T09:05:08.000Z | 2018-08-02T09:05:08.000Z | #include "json.h"
#include "math_general.h"
#include <sys/stat.h>
#include <cassert>
void JSData::operator=(const LargeInteger& other) {
this->reset();
this->elementType = JSData::token::tokenLargeInteger;
this->integerValue.getElement() = other;
}
void JSData::operator=(int other) {
this->reset();
this->e... | 29.246291 | 131 | 0.626759 | tmilev |
18808a9a4858993d6ae67c57dea60be6dc3ae606 | 2,140 | cpp | C++ | utils/Make_food_file.cpp | dcesini/Darwin | 7bc0f7fe136bc69063055fcb0cb859ad579084c0 | [
"Apache-2.0"
] | null | null | null | utils/Make_food_file.cpp | dcesini/Darwin | 7bc0f7fe136bc69063055fcb0cb859ad579084c0 | [
"Apache-2.0"
] | null | null | null | utils/Make_food_file.cpp | dcesini/Darwin | 7bc0f7fe136bc69063055fcb0cb859ad579084c0 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "../include/Constants.h"
#include "../include/Constants_wrapper.h"
#include "../include/Commons.h"
#include "../include/Being.h"
#include "../include/Chromo.h"
#include "../include/Food.h"
#include "../include/DNA.h"
#include "../include/World.h"
#include "../include/AutoRNG.h"
#include <ve... | 34.516129 | 123 | 0.68972 | dcesini |
18823995a652215862896e24a116d9325dba71d0 | 3,946 | cpp | C++ | stdgui/src/stdgui/d2d1/d2d1_graphics.cpp | Colbsters/stdgui | 0c1b2a493f6e3efa8a1463ae2d09f057368598f9 | [
"Apache-2.0"
] | null | null | null | stdgui/src/stdgui/d2d1/d2d1_graphics.cpp | Colbsters/stdgui | 0c1b2a493f6e3efa8a1463ae2d09f057368598f9 | [
"Apache-2.0"
] | null | null | null | stdgui/src/stdgui/d2d1/d2d1_graphics.cpp | Colbsters/stdgui | 0c1b2a493f6e3efa8a1463ae2d09f057368598f9 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "d2d1_graphics.h"
namespace stdgui
{
namespace d2d1
{
d2d1_graphics::d2d1_graphics()
:m_d2dFactory(nullptr), m_d2dRt(nullptr), m_isDrawing(false), m_props()
{
}
d2d1_graphics::~d2d1_graphics()
{
destroy();
}
... | 27.788732 | 113 | 0.503548 | Colbsters |
18841f430703f984a1092ab8b0be5ad32a418123 | 388 | hpp | C++ | chaine/src/application/2d/contains.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | chaine/src/application/2d/contains.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | chaine/src/application/2d/contains.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | #pragma once
#include "predicate/all.hpp"
#include <agl/opengl/all.hpp>
namespace face_vertex {
inline
bool contains(TriangleProxy tp, agl::Vec2 v) {
auto p0 = position(vertex(tp, 0)).xy();
auto p1 = position(vertex(tp, 1)).xy();
auto p2 = position(vertex(tp, 2)).xy();
return orientation(v, p0, p1)
... | 19.4 | 46 | 0.64433 | the-last-willy |
18871e7d89707105954cc51f52fe3fa279af2dc1 | 3,620 | cpp | C++ | Source/Utility/MythForest/Component/TextView/TextViewComponentModule.cpp | paintdream/PaintsNow | 52e14de651b56c100caac0ce2b14348441543e1a | [
"MIT"
] | 15 | 2016-09-17T16:29:42.000Z | 2021-11-24T06:21:27.000Z | Source/Utility/MythForest/Component/TextView/TextViewComponentModule.cpp | paintdream/PaintsNow | 52e14de651b56c100caac0ce2b14348441543e1a | [
"MIT"
] | null | null | null | Source/Utility/MythForest/Component/TextView/TextViewComponentModule.cpp | paintdream/PaintsNow | 52e14de651b56c100caac0ce2b14348441543e1a | [
"MIT"
] | 3 | 2017-04-07T13:33:57.000Z | 2021-03-31T02:04:48.000Z | #include "TextViewComponentModule.h"
#include "../../Engine.h"
using namespace PaintsNow;
TextViewComponentModule::TextViewComponentModule(Engine& engine) : BaseClass(engine) {
batchComponentModule = (engine.GetComponentModuleFromName("BatchComponent")->QueryInterface(UniqueType<BatchComponentModule>()));
as... | 45.822785 | 279 | 0.785359 | paintdream |
188c1511ce83836182d21c2a1398d57ef186c1d3 | 796 | cc | C++ | code/render/coregraphics/shaderinstance.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/render/coregraphics/shaderinstance.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/render/coregraphics/shaderinstance.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// shaderinstance.cc
// (C) 2007 Radon Labs GmbH
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "coregraphics/shad... | 29.481481 | 88 | 0.63191 | gscept |
18a182e88bde75789b0d410b1135945ef203062c | 11,253 | cpp | C++ | lib/node_types/esp/src/device.cpp | aleks96n/iotempower | 50933dcb9d8ae2cf80e9c48f95698c5de3db9a48 | [
"MIT"
] | 7 | 2019-05-22T19:05:27.000Z | 2022-01-19T09:34:24.000Z | lib/node_types/esp/src/device.cpp | aleks96n/iotempower | 50933dcb9d8ae2cf80e9c48f95698c5de3db9a48 | [
"MIT"
] | 20 | 2019-06-13T09:41:02.000Z | 2022-01-21T10:13:51.000Z | lib/node_types/esp/src/device.cpp | aleks96n/iotempower | 50933dcb9d8ae2cf80e9c48f95698c5de3db9a48 | [
"MIT"
] | 12 | 2019-06-04T09:18:13.000Z | 2022-01-13T10:09:31.000Z | // device.cpp
// author: ulno
// created: 2018-07-16
#include <Arduino.h>
#include "device.h"
void Subdevice::init_log() {
ulog(F("subdevice init: subname: >%s<"), name.as_cstr());
}
void Subdevice::init(const char* subname, bool subscribed) {
name.from(subname);
_subscribed = subscribed;
init_log();... | 38.670103 | 130 | 0.575758 | aleks96n |
18a4cffc153f2aea1e8cc17b0873856a2e899d0f | 2,489 | cpp | C++ | src/helper/save/save.cpp | sonich2401/cnote | 66bbd5caad70730003f6aa095d252dba725215e6 | [
"Unlicense"
] | 1 | 2021-05-22T23:23:30.000Z | 2021-05-22T23:23:30.000Z | src/helper/save/save.cpp | sonich2401/cnote | 66bbd5caad70730003f6aa095d252dba725215e6 | [
"Unlicense"
] | null | null | null | src/helper/save/save.cpp | sonich2401/cnote | 66bbd5caad70730003f6aa095d252dba725215e6 | [
"Unlicense"
] | null | null | null | #include "save.h"
extern const string homedir;
extern const string DEFAULT_PATH;
void Entry::print(bool type){
printf("%s:\n",this->command.c_str());
printf("\t%s\n",this->short_disc.c_str());
if(type == true){
printf("\t%s\n",this->disc.c_str());
}
}
#include <fstream>
bool Di... | 21.456897 | 80 | 0.548011 | sonich2401 |
18a5ac50728da6c154f9f2638e66ac5479dbfc6a | 10,937 | cpp | C++ | src/main.cpp | johanventer/raytracer | 06c4bb6157ac88d6d1202b685ac354e8189ddbd6 | [
"Unlicense"
] | 2 | 2019-01-16T06:37:00.000Z | 2019-01-29T05:12:18.000Z | src/main.cpp | johanventer/raytracer | 06c4bb6157ac88d6d1202b685ac354e8189ddbd6 | [
"Unlicense"
] | null | null | null | src/main.cpp | johanventer/raytracer | 06c4bb6157ac88d6d1202b685ac354e8189ddbd6 | [
"Unlicense"
] | null | null | null | // NOTE(johan): This is the only place that includes any standard libraries,
// and so keeps them all in one spot so we can see what we are using.
#include <stdio.h>
#include <stdint.h>
#include <float.h>
#include <math.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#define USE_BVH 1
... | 31.979532 | 80 | 0.535979 | johanventer |
18a64bfecd910b4073de98d6f2abf8e33a118aec | 801 | hpp | C++ | includes/Graphics/Bindable/BindableHeap.hpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | includes/Graphics/Bindable/BindableHeap.hpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | includes/Graphics/Bindable/BindableHeap.hpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | #ifndef __BINDABLE_HEAP_HPP__
#define __BINDABLE_HEAP_HPP__
#include <Bindable.hpp>
#include <cinttypes>
#include <vector>
#include <memory>
class BindableHeap : public Bindable {
public:
BindableHeap(Graphics& gfx,
std::uint32_t rootIndex
);
void AddSRV(Graphics& gfx, std::unique_ptr<class Texture>... | 25.83871 | 69 | 0.764045 | razerx100 |
18a6bafc545b952c4a466eb9e31d7aebc5e05664 | 328 | cpp | C++ | geeksforgeeks/Sorting/Sort an array of 0s, 1s and 2s - easy/Answer.cpp | theCodeTeen/CP_Collection | 78a0a564e8da47038232b0cca6f26153725af029 | [
"MIT"
] | null | null | null | geeksforgeeks/Sorting/Sort an array of 0s, 1s and 2s - easy/Answer.cpp | theCodeTeen/CP_Collection | 78a0a564e8da47038232b0cca6f26153725af029 | [
"MIT"
] | null | null | null | geeksforgeeks/Sorting/Sort an array of 0s, 1s and 2s - easy/Answer.cpp | theCodeTeen/CP_Collection | 78a0a564e8da47038232b0cca6f26153725af029 | [
"MIT"
] | null | null | null | void sort012(int a[], int n)
{
// coode here
int arr[3]={0,0,0},ptr=0;
for(int i=0;i<n;i++)
arr[a[i]]++;
for(int i=0;i<n;i++)
{
if(arr[ptr]==0)
ptr++;
a[i]=ptr;
arr[ptr]--;
... | 19.294118 | 34 | 0.280488 | theCodeTeen |
18a923543a439ce135e6e3db2e96fbb1c11ae435 | 4,027 | cpp | C++ | dense_RGBD/src/point_cloud_mapping.cpp | LSXiang/slam_learning_journey | 1173bbab4e50a29a61d3affb23ceca32bcc0bf97 | [
"MIT"
] | 4 | 2020-03-22T00:25:10.000Z | 2020-04-01T05:23:27.000Z | dense_RGBD/src/point_cloud_mapping.cpp | LSXiang/slam_learning_journey | 1173bbab4e50a29a61d3affb23ceca32bcc0bf97 | [
"MIT"
] | null | null | null | dense_RGBD/src/point_cloud_mapping.cpp | LSXiang/slam_learning_journey | 1173bbab4e50a29a61d3affb23ceca32bcc0bf97 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <Eigen/Geometry>
#include <boost/format.hpp> // for formating strings
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/filters/voxel_grid.h>
#include <pc... | 34.127119 | 98 | 0.548547 | LSXiang |
18af474a7a315ff9a3572a415fac5c27ceed58e5 | 800 | hpp | C++ | src/problems/101-150/111/problem111.hpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | 1 | 2019-12-25T10:17:15.000Z | 2019-12-25T10:17:15.000Z | src/problems/101-150/111/problem111.hpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | null | null | null | src/problems/101-150/111/problem111.hpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | null | null | null | //
// Created by Alex Beccaro on 27/12/18.
//
#ifndef PROJECT_EULER_PROBLEM111_HPP
#define PROJECT_EULER_PROBLEM111_HPP
#include <cstdint>
#include <string>
namespace problems {
class problem111 {
private:
/**
* Calculates the sum of the primes obtained from given bitmask, where 1 -> 'digit'... | 25 | 116 | 0.64375 | abeccaro |
18af98128f21b5e392ea63dd646cf5d0518ad980 | 3,503 | cpp | C++ | test/meta.cpp | alekseybk/useful | 304f5670c7f32b3af9bd50d467fcffa691c10506 | [
"WTFPL"
] | null | null | null | test/meta.cpp | alekseybk/useful | 304f5670c7f32b3af9bd50d467fcffa691c10506 | [
"WTFPL"
] | null | null | null | test/meta.cpp | alekseybk/useful | 304f5670c7f32b3af9bd50d467fcffa691c10506 | [
"WTFPL"
] | null | null | null | #include "testing.hpp"
#include "../wh/meta.hpp"
#include <memory>
using namespace wh::mt;
using namespace wh::base;
TEST(function_info)
{
struct X
{
int f(double, char);
};
static_assert(function_info<decltype(&X::f)>::arity == 2);
static_assert(std::is_same_v<function_info<decltype(&X:... | 33.682692 | 136 | 0.664859 | alekseybk |
18b2bfc409ef44ccf07fa6ff0cf2874d919ba7bc | 4,239 | hpp | C++ | src/heap/heap.hpp | dushivani/stlmp | 0db76e421cef34dc532612acb5f85293460896b5 | [
"MIT"
] | null | null | null | src/heap/heap.hpp | dushivani/stlmp | 0db76e421cef34dc532612acb5f85293460896b5 | [
"MIT"
] | null | null | null | src/heap/heap.hpp | dushivani/stlmp | 0db76e421cef34dc532612acb5f85293460896b5 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
template<typename T>
class heap {
private:
T *arr;
int size;
int capacity;
int type; // if 1, max heap else if -1 min heap
public:
heap() : arr(NULL), size(0), capacity(0), type(0) {}
heap(int capacity, int type) : arr(new T[capacity]), size(0), capacity(capac... | 29.034247 | 111 | 0.636943 | dushivani |
18b8d24fbae9772e81975404c6ac5cf1bc646c2f | 4,339 | cpp | C++ | ShaderGenerator/ShaderCompiler.cpp | axodox/ShaderCompiler | 178851c152fc67d737e319ac412ff1ddb505d1b2 | [
"MIT"
] | null | null | null | ShaderGenerator/ShaderCompiler.cpp | axodox/ShaderCompiler | 178851c152fc67d737e319ac412ff1ddb505d1b2 | [
"MIT"
] | null | null | null | ShaderGenerator/ShaderCompiler.cpp | axodox/ShaderCompiler | 178851c152fc67d737e319ac412ff1ddb505d1b2 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "ShaderCompiler.h"
using namespace std;
using namespace winrt;
namespace ShaderGenerator
{
struct ShaderCompilationContext
{
const ShaderInfo* Shader;
const ShaderCompilationArguments* Options;
queue<const OptionPermutation*> Input;
bool IsFailed = false;
mutex Input... | 27.993548 | 144 | 0.628947 | axodox |
18bd9b363752b4282e4977fbdcf6101fa0c7d546 | 852 | hpp | C++ | android-28/android/media/ThumbnailUtils.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/media/ThumbnailUtils.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-28/android/media/ThumbnailUtils.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
namespace android::graphics
{
class Bitmap;
}
class JString;
namespace android::media
{
class ThumbnailUtils : public JObject
{
public:
// Fields
static jint OPTIONS_RECYCLE_INPUT();
// QJniObject forward
template<typename ...Ts> explicit ThumbnailUtils(const ... | 25.818182 | 155 | 0.726526 | YJBeetle |
18bfc1b04ed7b26784e799fa5699e0412a6b409d | 1,122 | cpp | C++ | 1279_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 1279_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 1279_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | //Does not work
// 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... | 15.369863 | 106 | 0.532086 | onexmaster |
18c24299f0b3d8442ea2176e63f85f1b6bad557e | 2,113 | cpp | C++ | src/cpp/llnms-cli/ui/MainMenu.cpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | null | null | null | src/cpp/llnms-cli/ui/MainMenu.cpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | null | null | null | src/cpp/llnms-cli/ui/MainMenu.cpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | 1 | 2020-12-16T09:28:26.000Z | 2020-12-16T09:28:26.000Z | /**
* @file MainMenu.cpp
* @author Marvin Smith
* @date 12/31/2013
*/
/// CLI Libraries
#include <ui/AboutUI.hpp>
#include <ui/ConfigurationUI.hpp>
#include <ui/MainMenu.hpp>
#include <ui/NetworkManagerUI.hpp>
#include <utilities/CursesUtilities.hpp>
/// NCurses
#include <ncurses.h>
/**
* Print the LLNM... | 19.209091 | 59 | 0.453857 | marvins |
18c324c6ccdd4e3a82309e76feef7e0dde77704f | 1,428 | cpp | C++ | leetcode/1964/solution-2.cpp | mkmark/leetcode | 638a9d37fb3223107d2852ce493d831996a7649e | [
"MIT"
] | null | null | null | leetcode/1964/solution-2.cpp | mkmark/leetcode | 638a9d37fb3223107d2852ce493d831996a7649e | [
"MIT"
] | null | null | null | leetcode/1964/solution-2.cpp | mkmark/leetcode | 638a9d37fb3223107d2852ce493d831996a7649e | [
"MIT"
] | null | null | null | /*
author: mark@mkmark.net
time: O(nlogn)
space: O(n)
Runtime: 281 ms, faster than 93.48% of C++ online submissions for Find the Longest Valid Obstacle Course at Each Position.
Memory Usage: 116.5 MB, less than 100.00% of C++ online submissions for Find the Longest Valid Obstacle Course at Each Position.
*/
#include ... | 31.043478 | 128 | 0.565826 | mkmark |
18c3ae250fcd52e3e98f42cd15cf4e891d59f315 | 4,740 | cpp | C++ | src/loadernit.cpp | limal/nit | a1db3068d8f7426a1700e4729c247db97f9af9de | [
"Zlib"
] | 2 | 2015-09-19T00:43:34.000Z | 2016-05-31T19:33:22.000Z | src/loadernit.cpp | limal/nit | a1db3068d8f7426a1700e4729c247db97f9af9de | [
"Zlib"
] | null | null | null | src/loadernit.cpp | limal/nit | a1db3068d8f7426a1700e4729c247db97f9af9de | [
"Zlib"
] | null | null | null | /*
Copyright (C) 2010 Lukasz Wolnik
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, a... | 26.043956 | 119 | 0.675738 | limal |
18c3c26a628138cd9e7d2ddc91646a0a10634ab8 | 2,917 | cpp | C++ | IncrementalKS/FFI/c_wrapper.cpp | denismr/incremental-ks | c6bc98833db67d9dc90a0f997a11877860966337 | [
"MIT"
] | 15 | 2017-05-28T06:01:42.000Z | 2021-09-03T20:27:56.000Z | IncrementalKS/FFI/c_wrapper.cpp | denismr/incremental-ks | c6bc98833db67d9dc90a0f997a11877860966337 | [
"MIT"
] | 4 | 2018-03-31T00:50:50.000Z | 2021-06-11T12:52:07.000Z | IncrementalKS/FFI/c_wrapper.cpp | denismr/incremental-ks | c6bc98833db67d9dc90a0f997a11877860966337 | [
"MIT"
] | 4 | 2020-07-17T14:27:29.000Z | 2022-01-20T16:35:51.000Z | #include "c_wrapper.h"
#include "IKS.h"
#include <chrono>
IKS_WrappedPointer IKS_NewGeneratorWithSeed(unsigned seed) {
IKS_WrappedPointer wp;
auto * generator = new std::default_random_engine(seed);
wp.pointer = reinterpret_cast<void*>(generator);
return wp;
}
IKS_WrappedPointer IKS_NewGenerator(vo... | 37.883117 | 106 | 0.749743 | denismr |
18c871ee9a40cb7227af9224cf5c945ed7698b0a | 1,174 | cc | C++ | jax/training/21-10/10-ccpc-trails/2_kanade_doesnt_want_to_learn_cg.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | 2 | 2022-01-01T16:55:02.000Z | 2022-03-16T14:47:29.000Z | jax/training/21-10/10-ccpc-trails/2_kanade_doesnt_want_to_learn_cg.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | jax/training/21-10/10-ccpc-trails/2_kanade_doesnt_want_to_learn_cg.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using pi = pair<int, int>;
#define REP(i, l, r) for (int i = l; i < r; ++i)
#define F first
#define S second
#define PF push_fornt
#define PB push_back
#define MP make_pair
const char el = '\n';
const int N = 1e6 + 10;
int a,... | 18.634921 | 67 | 0.442078 | JaxVanYang |
18ce09bc25bf538ceabaca2635122db4247cf4a2 | 462 | cpp | C++ | ARRAY/N_bonacci_no.cpp | geeky01adarsh/DSA-Self-Paced-Course | e13902f47df0cb10b90e26d285aa97a9c6c03d97 | [
"MIT"
] | null | null | null | ARRAY/N_bonacci_no.cpp | geeky01adarsh/DSA-Self-Paced-Course | e13902f47df0cb10b90e26d285aa97a9c6c03d97 | [
"MIT"
] | null | null | null | ARRAY/N_bonacci_no.cpp | geeky01adarsh/DSA-Self-Paced-Course | e13902f47df0cb10b90e26d285aa97a9c6c03d97 | [
"MIT"
] | null | null | null | // the n-bonacci the term is equal to sum last n terms
#include <bits/stdc++.h>
using namespace std;
int main(){
int m,n;
cin>>m>>n;
int arr[m], sum=1;
arr[0]=0, arr[1]=1;
for(int i=0; i<n-1; i++){
arr[i] =0;
cout<<arr[i]<<" ";
// sum+=arr[i];
}
arr[n-1] =1;
cou... | 19.25 | 54 | 0.428571 | geeky01adarsh |
18d176005b09200ec7a1b91ca948affbf4cae430 | 3,155 | cpp | C++ | krust-io/platform/win32/public-api/window-platform.cpp | ahcox/krust | c4c349b3432d086466a13aef61ab220d8c43bcbb | [
"MIT"
] | 4 | 2016-05-09T08:22:52.000Z | 2019-12-07T16:19:50.000Z | krust-io/platform/win32/public-api/window-platform.cpp | ahcox/krust | c4c349b3432d086466a13aef61ab220d8c43bcbb | [
"MIT"
] | null | null | null | krust-io/platform/win32/public-api/window-platform.cpp | ahcox/krust | c4c349b3432d086466a13aef61ab220d8c43bcbb | [
"MIT"
] | null | null | null | // Copyright (c) 2016 Andrew Helge Cox
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publ... | 33.924731 | 107 | 0.753724 | ahcox |
18d73db32e8de7230e94b30127cdef69da5b641b | 331 | hpp | C++ | src/libs/ecs/abstract_component_pool.hpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/libs/ecs/abstract_component_pool.hpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/libs/ecs/abstract_component_pool.hpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #pragma once
#include "content/id.hpp"
namespace gorc {
template <typename IdT>
class abstract_component_pool {
public:
virtual ~abstract_component_pool()
{
return;
}
virtual void erase_equal_range(IdT entity) = 0;
virtual void flush_erase_queue() = 0;... | 16.55 | 55 | 0.598187 | jdmclark |
18d79b1389025dcc40a7cf3bbce79dfcdde1c497 | 1,526 | hpp | C++ | lib/cpp-core/include/core.hpp | PixDay/Merline-Engine | 3e7e83bee307a702b686c5d83b0288a4b663760f | [
"MIT"
] | null | null | null | lib/cpp-core/include/core.hpp | PixDay/Merline-Engine | 3e7e83bee307a702b686c5d83b0288a4b663760f | [
"MIT"
] | null | null | null | lib/cpp-core/include/core.hpp | PixDay/Merline-Engine | 3e7e83bee307a702b686c5d83b0288a4b663760f | [
"MIT"
] | 1 | 2022-02-04T21:05:15.000Z | 2022-02-04T21:05:15.000Z | /*
** File name :
** core.hpp
** File creator :
** Adrien Colombier
*/
#pragma once
#include "SFML/Graphics.hpp"
#include "displayableObject.hpp"
#include "textObject.hpp"
#include "sceneManager.hpp"
#include "inputManager.hpp"
#include "camera.hpp"
#define STOP_RUN "STOP_RUN"
class App
{
public:
App()... | 26.77193 | 83 | 0.569463 | PixDay |
18da320e0bec18b5e7dd18b35d2634dc3d4f0b4b | 1,792 | hpp | C++ | markov/interface.hpp | v1993/generators | 78b4a106b83ac8604d826d4751f7ab38c1ccdbd4 | [
"MIT"
] | null | null | null | markov/interface.hpp | v1993/generators | 78b4a106b83ac8604d826d4751f7ab38c1ccdbd4 | [
"MIT"
] | null | null | null | markov/interface.hpp | v1993/generators | 78b4a106b83ac8604d826d4751f7ab38c1ccdbd4 | [
"MIT"
] | null | null | null | #define MARKOV_OPT_MEMORY false
#include <generatorAPI.hpp>
#if MARKOV_OPT_MEMORY
#include <map>
#else
#include <unordered_map>
#endif
#include <deque>
#include <utility>
#include <boost/regex.hpp>
#include <boost/random.hpp>
#include <boost/random/random_device.hpp>
#include <boost/functional/hash.hpp>
template <t... | 26.746269 | 98 | 0.71596 | v1993 |
18db940b2bdb189916e1f0e1777302aea68721b5 | 894 | hpp | C++ | include/detwfa.hpp | akakou/TFHEpp | 7302eeceb3a5be17a751a0b54661f2df38f4741c | [
"Apache-2.0"
] | 5 | 2021-07-29T06:14:06.000Z | 2022-03-24T00:55:40.000Z | include/detwfa.hpp | akakou/TFHEpp | 7302eeceb3a5be17a751a0b54661f2df38f4741c | [
"Apache-2.0"
] | 1 | 2021-09-16T03:22:13.000Z | 2021-09-16T03:22:13.000Z | include/detwfa.hpp | akakou/TFHEpp | 7302eeceb3a5be17a751a0b54661f2df38f4741c | [
"Apache-2.0"
] | 1 | 2021-12-17T18:05:40.000Z | 2021-12-17T18:05:40.000Z | #pragma once
#include "trgsw.hpp"
namespace TFHEpp {
template <class P>
void CMUXFFT(TRLWE<P> &res, const TRGSWFFT<P> &cs, const TRLWE<P> &c1,
const TRLWE<P> &c0);
template <class P>
void CMUXFFTwithPolynomialMulByXaiMinusOne(TRLWE<P> &acc, const TRGSWFFT<P> &cs,
... | 35.76 | 96 | 0.590604 | akakou |
18dca01f01055d690ce29cf18456afc787d3a304 | 1,238 | cpp | C++ | find-elements-in-a-contaminated-binary-tree/find-elements-in-a-contaminated-binary-tree.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | 1 | 2022-02-14T07:57:07.000Z | 2022-02-14T07:57:07.000Z | find-elements-in-a-contaminated-binary-tree/find-elements-in-a-contaminated-binary-tree.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | find-elements-in-a-contaminated-binary-tree/find-elements-in-a-contaminated-binary-tree.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 23.807692 | 93 | 0.537964 | sharmishtha2401 |
18e158628d04dcf84f7d3fb63539441319eb908d | 4,378 | cpp | C++ | src/hdNuke/renderStack.cpp | TheFoundryVisionmongers/NukeHydraPlugins | 3ffaf6fae9ad3b988edcdb3198dd3109fbcda12a | [
"Apache-2.0"
] | 3 | 2022-03-03T17:40:54.000Z | 2022-03-21T22:14:43.000Z | src/hdNuke/renderStack.cpp | TheFoundryVisionmongers/NukeHydraPlugins | 3ffaf6fae9ad3b988edcdb3198dd3109fbcda12a | [
"Apache-2.0"
] | null | null | null | src/hdNuke/renderStack.cpp | TheFoundryVisionmongers/NukeHydraPlugins | 3ffaf6fae9ad3b988edcdb3198dd3109fbcda12a | [
"Apache-2.0"
] | 3 | 2021-12-06T06:48:54.000Z | 2022-02-08T23:58:30.000Z | // Copyright 2019-present Nathan Rusch
//
// 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 agre... | 29.986301 | 78 | 0.697122 | TheFoundryVisionmongers |
18e486c43ebf2829b03bfdec163687905625ab9a | 1,968 | hpp | C++ | lib/heif/Srcs/common/timetosamplebox.hpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | lib/heif/Srcs/common/timetosamplebox.hpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | lib/heif/Srcs/common/timetosamplebox.hpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2015, Nokia Technologies Ltd.
* All rights reserved.
*
* Licensed under the Nokia High-Efficiency Image File Format (HEIF) License (the "License").
*
* You may not use the High-Efficiency Image File Format except in compliance with the License.
* The License accompanies the software and can be fo... | 34.526316 | 116 | 0.716972 | anzksdk |
18ec607a0632994dff0c2c0406ecd90094722534 | 11,847 | cc | C++ | cc/chart-select-interface.cc | acorg/acmacs-map-draw | 6f0711f2fc452d9a6770db05bed38f0f08c2ea42 | [
"MIT"
] | null | null | null | cc/chart-select-interface.cc | acorg/acmacs-map-draw | 6f0711f2fc452d9a6770db05bed38f0f08c2ea42 | [
"MIT"
] | null | null | null | cc/chart-select-interface.cc | acorg/acmacs-map-draw | 6f0711f2fc452d9a6770db05bed38f0f08c2ea42 | [
"MIT"
] | null | null | null | #include "acmacs-chart-2/factory-import.hh"
#include "acmacs-chart-2/factory-export.hh"
#include "acmacs-map-draw/chart-select-interface.hh"
// ----------------------------------------------------------------------
void ChartAccess::reset()
{
modified_.reset();
modified_projection_.reset();
inverted_trans... | 40.433447 | 174 | 0.594412 | acorg |
18ed2956af96c4bf2e5f91769458c5ff4c205683 | 4,431 | cpp | C++ | unit_tests/zero_page_mode_LDA.cpp | vcato/qt-quick-6502-emulator | 6202e546efddc612f229da078238f829dd756e12 | [
"Unlicense"
] | null | null | null | unit_tests/zero_page_mode_LDA.cpp | vcato/qt-quick-6502-emulator | 6202e546efddc612f229da078238f829dd756e12 | [
"Unlicense"
] | 3 | 2019-09-14T02:46:26.000Z | 2020-12-22T01:07:08.000Z | unit_tests/zero_page_mode_LDA.cpp | vcato/qt-quick-6502-emulator | 6202e546efddc612f229da078238f829dd756e12 | [
"Unlicense"
] | null | null | null | #include "addressing_mode_helpers.hpp"
struct LDA_ZeroPage_Expectations
{
uint8_t a;
NZFlags flags;
};
using LDAZeroPage = LDA<ZeroPage, LDA_ZeroPage_Expectations, 3>;
using LDAZeroPageMode = ParameterizedInstructionExecutorTestFixture<LDAZeroPage>;
static void StoreTestValueAtEffectiveAddress(Instruc... | 32.822222 | 157 | 0.636425 | vcato |
18f3d4eeecea1982db766d3e08c74c5054bf5bd8 | 7,302 | cpp | C++ | Source/Helios/Debugging/Debugging.cpp | Makogan/Nyx-Helios | c70eae4010896ab5dc16bba4472d5a8dd7a66c51 | [
"MIT"
] | null | null | null | Source/Helios/Debugging/Debugging.cpp | Makogan/Nyx-Helios | c70eae4010896ab5dc16bba4472d5a8dd7a66c51 | [
"MIT"
] | null | null | null | Source/Helios/Debugging/Debugging.cpp | Makogan/Nyx-Helios | c70eae4010896ab5dc16bba4472d5a8dd7a66c51 | [
"MIT"
] | 1 | 2018-05-04T16:01:18.000Z | 2018-05-04T16:01:18.000Z | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/** *
* @brief Implementation of OpenGL debug functions
*
* @file Debug.cpp
* @author Camilo Talero
* @date 2018-04-19
* ... | 46.807692 | 91 | 0.528211 | Makogan |
18f519602b6436612d367c7c8487a8a1590a64e4 | 2,249 | hpp | C++ | mi/thread_safe_counter.hpp | tmichi/xyz2zxy | 77efe9bc62eff83c9225b051e800ae02f3cfac3c | [
"MIT"
] | null | null | null | mi/thread_safe_counter.hpp | tmichi/xyz2zxy | 77efe9bc62eff83c9225b051e800ae02f3cfac3c | [
"MIT"
] | 2 | 2022-02-03T06:36:57.000Z | 2022-02-09T07:16:04.000Z | mi/thread_safe_counter.hpp | tmichi/xyz2zxy | 77efe9bc62eff83c9225b051e800ae02f3cfac3c | [
"MIT"
] | null | null | null | /**
* @file thread_safe_counter.hpp
* @brief
* @author Takashi Michikawa <tmichi@me.com>
* @copyright (c) 2020 Takashi Michikawa
* Released under the MIT license
* https://opensource.org/licenses/mit-license.php
*/
#ifndef MI_THREAD_SAFE_COUNTER_HPP
#define MI_THREAD_SAFE_COUNTER_HPP 1
#include <mutex>
#inclu... | 33.073529 | 145 | 0.493553 | tmichi |
18fd975f1ee30c38f3d6291b456dfefd7bcab69d | 2,382 | cpp | C++ | Graph/findthecitywiththesmallestnumberofneighborsatathresholddistance.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 4 | 2020-12-29T09:27:10.000Z | 2022-02-12T14:20:23.000Z | Graph/findthecitywiththesmallestnumberofneighborsatathresholddistance.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-27T06:15:28.000Z | 2021-11-27T06:15:28.000Z | Graph/findthecitywiththesmallestnumberofneighborsatathresholddistance.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-17T21:42:57.000Z | 2021-11-17T21:42:57.000Z | /*
Leetcode Question 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
https://leetcode.com/problems/find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance/
*/
/*
This is the 3 step problem
For each city calculate the number of reachable cities within the threshold,... | 28.023529 | 106 | 0.531066 | thisisnitish |
bb40728a4b0de4503e68e2a8d602700641fb617e | 959 | cpp | C++ | tests/hello2/src/Main.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | tests/hello2/src/Main.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | tests/hello2/src/Main.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | #include <string.h>
#include "Ht.h"
using namespace Ht;
int main(int argc, char **argv)
{
Char_t buf[16];
CHtHif *pHtHif = new CHtHif();
CHtAuUnit *pAuUnit = new CHtAuUnit(pHtHif);
Host_t callHs;
callHs.a = 0x45454545;
callHs.b = 0x3423;
callHs.c[0] = 0x12;
callHs.c[1] = 0x67;
callHs.c[2] = -34;
callHs.d ... | 20.404255 | 117 | 0.623566 | TonyBrewer |
bb42d3ba1aa1533f71d8a8bb3c3f709152c84cfb | 629 | cpp | C++ | static-ds/unionfind.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | 3 | 2022-01-17T01:56:05.000Z | 2022-02-23T07:30:02.000Z | static-ds/unionfind.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | null | null | null | static-ds/unionfind.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | null | null | null | // Union-find
#include <vector>
#include <numeric>
using namespace std;
/*snippet-begin*/
struct union_find {
vector<int> p;
union_find(int n) : p(n) { iota(begin(p), end(p), 0); }
bool operator() (int x, int y) { return e(x) == e(y); }
int e(int x) {
if (p[x] == x) return x;
return p[... | 19.65625 | 59 | 0.484897 | ivan100sic |
bb4f63b8dd45ff79c3018499c2e869c8587104b2 | 2,280 | inl | C++ | utf8stringbuf/include/util/string/utf8codepointiterator.inl | awarnke/crystal_facet_uml | 6351bfb32ce6c68319299799335d8f561393d017 | [
"Apache-2.0"
] | null | null | null | utf8stringbuf/include/util/string/utf8codepointiterator.inl | awarnke/crystal_facet_uml | 6351bfb32ce6c68319299799335d8f561393d017 | [
"Apache-2.0"
] | 2 | 2020-03-21T16:12:57.000Z | 2020-11-22T13:48:58.000Z | utf8stringbuf/include/util/string/utf8codepointiterator.inl | awarnke/crystal_facet_uml | 6351bfb32ce6c68319299799335d8f561393d017 | [
"Apache-2.0"
] | null | null | null | /* File: utf8codepointiterator.inl; Copyright and License: see below */
static inline void utf8codepointiterator_init ( utf8codepointiterator_t *this_, utf8stringview_t string )
{
(*this_).remaining = string;
utf8codepointiterator_private_step_to_next( this_ );
}
static inline void utf8codepointiterator_destr... | 34.545455 | 109 | 0.672368 | awarnke |
bb5272be65d052474bae28311419571e1c03fabb | 415 | hpp | C++ | library/peripherals/lpc17xx/pwm.hpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 6 | 2020-06-20T23:56:42.000Z | 2021-12-18T08:13:54.000Z | library/peripherals/lpc17xx/pwm.hpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 153 | 2020-06-09T14:49:29.000Z | 2022-01-31T16:39:39.000Z | library/peripherals/lpc17xx/pwm.hpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 10 | 2020-08-02T00:55:38.000Z | 2022-01-24T23:06:51.000Z | #pragma once
#include "peripherals/lpc17xx/pin.hpp"
#include "peripherals/lpc17xx/system_controller.hpp"
#include "peripherals/lpc40xx/pwm.hpp"
namespace sjsu
{
namespace lpc17xx
{
// The LPC40xx driver is compatible with the lpc17xx peripheral
using ::sjsu::lpc40xx::Pwm;
// The LPC40xx GetPwm is compatible with the ... | 24.411765 | 63 | 0.771084 | SarahS16 |
bb575282eeebd65d88e26e0d46a01353059db8d2 | 2,363 | cpp | C++ | scenes/examples/03_shader_effects/06_framebuffer_multipass/src/scene.cpp | drohmer/CGP | 3e7651649320d0bff19394ecd9546e872802c3e7 | [
"MIT"
] | null | null | null | scenes/examples/03_shader_effects/06_framebuffer_multipass/src/scene.cpp | drohmer/CGP | 3e7651649320d0bff19394ecd9546e872802c3e7 | [
"MIT"
] | 2 | 2022-03-03T16:34:03.000Z | 2022-03-20T13:08:56.000Z | scenes/examples/03_shader_effects/06_framebuffer_multipass/src/scene.cpp | drohmer/CGP | 3e7651649320d0bff19394ecd9546e872802c3e7 | [
"MIT"
] | null | null | null | #include "scene.hpp"
using namespace cgp;
void scene_structure::initialize()
{
// Initialize the structure computing the effect (*)
// ********************************************* //
GLuint const shader_screen_effect = opengl_load_shader("shaders/screen_effect_convolution/vert.glsl","shaders/screen_effe... | 28.46988 | 150 | 0.680491 | drohmer |
bb5760ce97f8821a3bf30771f0b6272ba514ab4c | 1,048 | hpp | C++ | encoding/Sha512.hpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | encoding/Sha512.hpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | encoding/Sha512.hpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | #ifndef _SHA512_HPP_
#define _SHA512_HPP_
#include "HashFunctionInterface.hpp"
class Sha512 : public HashFunctionInterface<128, 16>
{
public:
Sha512() { this->reset(); }
virtual void reset() override;
virtual void transform(const uint8_t *data, size_t length) override;
virtual void finalize() override;
virt... | 24.952381 | 72 | 0.759542 | CltKitakami |
bb5e6e3236a82da5085c0482890129fc02356da4 | 4,844 | cpp | C++ | src/ecs/ecs.cpp | CodePenguino/Flexer-Framework | 1144c9e7cc346be20ae8effba921525a83fd8549 | [
"Apache-2.0"
] | null | null | null | src/ecs/ecs.cpp | CodePenguino/Flexer-Framework | 1144c9e7cc346be20ae8effba921525a83fd8549 | [
"Apache-2.0"
] | null | null | null | src/ecs/ecs.cpp | CodePenguino/Flexer-Framework | 1144c9e7cc346be20ae8effba921525a83fd8549 | [
"Apache-2.0"
] | null | null | null | #include <stddef.h>
#include <stdarg.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include "ecs.h"
#include "../common/array_stack.h"
#define INITIAL_CAPACITY 32
typedef struct
{
uint32_t type_count;
uint32_t cap;
size_t size;
size_t *data_size_array;
size_t *data_offset_a... | 25.494737 | 144 | 0.726259 | CodePenguino |
bb5f16d346358a53f45013e250a5712502c2d042 | 6,808 | hpp | C++ | examples/SlidingPawn/sliding_pawn.hpp | erasmux/Sally | 5643f08bd3bb83bcdf0e0e4d36efb9113c7880cb | [
"MIT"
] | null | null | null | examples/SlidingPawn/sliding_pawn.hpp | erasmux/Sally | 5643f08bd3bb83bcdf0e0e4d36efb9113c7880cb | [
"MIT"
] | null | null | null | examples/SlidingPawn/sliding_pawn.hpp | erasmux/Sally | 5643f08bd3bb83bcdf0e0e4d36efb9113c7880cb | [
"MIT"
] | null | null | null | #pragma once
#include <sally/sally.hpp>
#include <cmath>
class sliding_pawn :
public::sally::step_event_handler,
public sally::keyboard_event_handler,
public sally::RenderProvider
{
public:
static const int BOARD_WIDTH = 8;
static const int BOARD_HEIGHT = 8;
static const int PLYR_START_POS_X = 3;
static const ... | 28.970213 | 131 | 0.666422 | erasmux |
bb61ed1faf404065dec3bc5d92fd5a18360f7a9b | 1,742 | hpp | C++ | engines/First OGL Engine/include/TransparentRenderer.hpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | 1 | 2020-10-26T17:53:33.000Z | 2020-10-26T17:53:33.000Z | engines/First OGL Engine/include/TransparentRenderer.hpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | null | null | null | engines/First OGL Engine/include/TransparentRenderer.hpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | null | null | null | /**
* @file TransparentRenderer.hpp
*/
#ifndef OGL_E1_TRANSPARENTRENDERER_H
#define OGL_E1_TRANSPARENTRENDERER_H
#include "Utils/EngineTypes.hpp"
#include "Object.hpp"
#include "Shader.hpp"
#include "Scene.hpp"
#include <map>
namespace OGL::E1 {
/**
* @brief Class to render transparent Objects
*/
c... | 22.333333 | 66 | 0.571183 | sltn011 |
bb65e77742bfa509a1e011922937bf143a6d29b8 | 609 | cpp | C++ | src/prod/src/Reliability/Failover/fm/StateMachineAction.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Reliability/Failover/fm/StateMachineAction.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Reliability/Failover/fm/StateMachineAction.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// 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... | 29 | 98 | 0.630542 | vishnuk007 |
bb743fb69fddc292ef3135656ea2bb8dd63f941d | 900 | hpp | C++ | src/lola/pose/PoseFileService.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | 6 | 2017-01-16T10:41:56.000Z | 2020-10-09T09:13:30.000Z | src/lola/pose/PoseFileService.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | null | null | null | src/lola/pose/PoseFileService.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | 4 | 2015-08-07T13:07:32.000Z | 2021-08-03T03:18:33.000Z | #ifndef LOLA_POSE_FILE_SERVICE_H__
#define LOLA_POSE_FILE_SERVICE_H__
#include "lepp3/pose/PoseService.hpp"
#include <atomic>
#include <vector>
/**
* This allows to replay pose data saved before by the recorder module
*/
class PoseFileService : public lepp::PoseService {
public:
/**
* Create a new `PoseService... | 20 | 73 | 0.7 | am-lola |
bb7c5102afb2f1b27786ceecf8fdfe4e90fa5605 | 8,837 | hpp | C++ | simplecut.hpp | NDrive/osm-history-splitter | ca019248626c7b4b0cf4fe4406e01aa222f113c0 | [
"BSD-2-Clause"
] | null | null | null | simplecut.hpp | NDrive/osm-history-splitter | ca019248626c7b4b0cf4fe4406e01aa222f113c0 | [
"BSD-2-Clause"
] | null | null | null | simplecut.hpp | NDrive/osm-history-splitter | ca019248626c7b4b0cf4fe4406e01aa222f113c0 | [
"BSD-2-Clause"
] | null | null | null | #ifndef SPLITTER_SIMPLECUT_HPP
#define SPLITTER_SIMPLECUT_HPP
#include "cut.hpp"
#include "growing_bitset.hpp"
/*
Simplecut Algorithm
- walk over all node-versions
- walk over all bboxes
- if the current node-version is inside the bbox
- record its id in the bboxes node-tracker
- initialize the cur... | 34.519531 | 165 | 0.587077 | NDrive |
bb845e9f0821cb6e1f856ef4cea060005f2e9a53 | 813 | cpp | C++ | source/Background.cpp | JROB774/lala | daef5cd0f6cb5d520dd1a3123663bae11d914f80 | [
"MIT"
] | null | null | null | source/Background.cpp | JROB774/lala | daef5cd0f6cb5d520dd1a3123663bae11d914f80 | [
"MIT"
] | null | null | null | source/Background.cpp | JROB774/lala | daef5cd0f6cb5d520dd1a3123663bae11d914f80 | [
"MIT"
] | null | null | null | void Background::create(const std::string arg_file, const int arg_speed)
{
// Sets the speed and offset of the background.
speed = arg_speed;
offset = 0;
// Loads and creates the raw background image.
image.create(arg_file);
}
void Background::render()
{
// Moves the background.
offset -= ... | 24.636364 | 82 | 0.661747 | JROB774 |
bb850c953498eff952fe61b0e46ea9942cbdefc5 | 680 | cpp | C++ | Viking/Source/Viking/Renderer/Framebuffer.cpp | BartoszJakubZielonka/Viking | 560ad45ff66bd4e1a3ceaf3f8f7212cc95a0fbd8 | [
"Apache-2.0"
] | null | null | null | Viking/Source/Viking/Renderer/Framebuffer.cpp | BartoszJakubZielonka/Viking | 560ad45ff66bd4e1a3ceaf3f8f7212cc95a0fbd8 | [
"Apache-2.0"
] | 14 | 2021-01-01T17:03:53.000Z | 2021-05-23T11:45:21.000Z | Viking/Source/Viking/Renderer/Framebuffer.cpp | BartoszJakubZielonka/Viking | 560ad45ff66bd4e1a3ceaf3f8f7212cc95a0fbd8 | [
"Apache-2.0"
] | null | null | null | //
// Created by batzi on 16.05.2021.
//
#include "vipch.h"
#include "Framebuffer.h"
#include "Viking/Renderer/Renderer.h"
#include "Platform/OpenGL/OpenGLFramebuffer.h"
namespace Viking {
Ref<Framebuffer> Framebuffer::create(const FramebufferSpecification &spec) {
switch (Renderer::getAPI())
{
... | 26.153846 | 87 | 0.626471 | BartoszJakubZielonka |
bb8ee8fdbe52ddd35d89cea9f7dd615ea3cd9798 | 670 | cpp | C++ | algospot/POLY.cpp | falconlee236/Algorithm_Practice | 4e6e380a0e6c840525ca831a05c35253eeaaa25c | [
"MIT"
] | null | null | null | algospot/POLY.cpp | falconlee236/Algorithm_Practice | 4e6e380a0e6c840525ca831a05c35253eeaaa25c | [
"MIT"
] | null | null | null | algospot/POLY.cpp | falconlee236/Algorithm_Practice | 4e6e380a0e6c840525ca831a05c35253eeaaa25c | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int cache[101][101];
int poly(int n, int first){
if(n == first) return 1;
int& ret = cache[n][first];
if(ret != -1) return ret;
ret = 0;
for(int i = 1; i <= n - first; i++){
int add = first + i - 1;
add *= poly(n - first,... | 19.142857 | 42 | 0.468657 | falconlee236 |
bb9033512a834d876f9847b3ef99af0727946a09 | 8,425 | cpp | C++ | Source/LensCalibrator/Private/Workers/LensSolverWorkerFindCorners.cpp | Polypulse/LensCalibrator | a735da3401dcdfa28d2c3b8168e98fede8813c6b | [
"Apache-2.0"
] | 26 | 2020-12-01T02:37:41.000Z | 2022-03-30T21:27:10.000Z | Source/LensCalibrator/Private/Workers/LensSolverWorkerFindCorners.cpp | Polypulse/LensCalibrator | a735da3401dcdfa28d2c3b8168e98fede8813c6b | [
"Apache-2.0"
] | null | null | null | Source/LensCalibrator/Private/Workers/LensSolverWorkerFindCorners.cpp | Polypulse/LensCalibrator | a735da3401dcdfa28d2c3b8168e98fede8813c6b | [
"Apache-2.0"
] | 1 | 2021-10-07T07:47:20.000Z | 2021-10-07T07:47:20.000Z | /*
* Copyright (C) 2020 - LensCalibrator contributors, see Contributors.txt at the root of the project.
* 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/licen... | 35.251046 | 154 | 0.817092 | Polypulse |
bb977c0d5f4e36e9dba39f7929c4dd8d100bc970 | 3,875 | cpp | C++ | src/main.cpp | jonixis/Crest | dc2397775262ff4edfba7354398917a5070586b4 | [
"MIT"
] | null | null | null | src/main.cpp | jonixis/Crest | dc2397775262ff4edfba7354398917a5070586b4 | [
"MIT"
] | null | null | null | src/main.cpp | jonixis/Crest | dc2397775262ff4edfba7354398917a5070586b4 | [
"MIT"
] | null | null | null | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <imgui.h>
#include "DemoMenu.h"
#include "DemoClearColor.h"
#include "DemoTexture2D.h"
#include "DemoCube.h"
#include "DemoModelLoader.h"
#include "vendor/imgui/imgui_impl_glfw.h"
#include "vendor/imgui/imgui_impl_opengl3.h"
#include "Rende... | 30.03876 | 94 | 0.671226 | jonixis |
bb99419b78e1b3993369d2580847ec013332c62a | 2,274 | cpp | C++ | testing/container/vector/push_back.cpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 129 | 2016-08-18T23:24:15.000Z | 2022-03-25T12:06:05.000Z | testing/container/vector/push_back.cpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 86 | 2016-08-19T03:43:33.000Z | 2020-07-20T14:27:41.000Z | testing/container/vector/push_back.cpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 23 | 2016-08-18T23:52:13.000Z | 2022-02-28T16:28:20.000Z | #include <iostream>
#include <cassert>
#include <algorithm>
#include <vector>
#include <agency/container/vector.hpp>
void test_push_back()
{
using namespace agency;
{
// test copying push_back into empty vector
std::vector<int> copied_value(1,7);
vector<std::vector<int>> v;
v.push_back(copied_va... | 24.717391 | 102 | 0.636763 | nerikhman |
bb9cfb8a6c214627011ab4f8d89f64298a4ca37b | 18,697 | cpp | C++ | src/drivers/cabal.cpp | pierrelouys/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | 1 | 2021-01-25T20:16:33.000Z | 2021-01-25T20:16:33.000Z | src/drivers/cabal.cpp | pierrelouys/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | 1 | 2021-05-24T20:28:35.000Z | 2021-05-25T14:44:54.000Z | src/drivers/cabal.cpp | PSP-Archive/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | null | null | null | /******************************************************************
Cabal Bootleg
(c)1998 Red Corp
68000 + Z80
The original uses 2xYM3931 for sound
The bootleg uses YM2151 + 2xZ80 used as ADPCM players
TODO:
- fix ADPCM mapping
MEMORY MAP
0x000000 - 0x03ffff ROM
0x040000 - 0x0437ff RAM
0x043800 - 0x0437ff VRA... | 28.458143 | 102 | 0.662566 | pierrelouys |
bb9f0035db0b8c06782ffd5d71abcb72871b2ab5 | 1,029 | cpp | C++ | EU4toV3/Source/Mappers/ReligiousGroups/Religion.cpp | Idhrendur/EU4toVic3 | b29ba8e59a3bd14af11fb6b30f4626cde7264a4f | [
"MIT"
] | 42 | 2018-12-22T03:59:43.000Z | 2022-02-03T10:45:42.000Z | EU4toV2/Source/Mappers/ReligiousGroups/Religion.cpp | IhateTrains/EU4toVic2 | 061f5e1a0bc1a1f3b54bdfe471b501260149b56b | [
"MIT"
] | 336 | 2018-12-22T17:15:27.000Z | 2022-03-02T11:19:32.000Z | EU4toV2/Source/Mappers/ReligiousGroups/Religion.cpp | klorpa/EU4toVic2 | e3068eb2aa459f884c1929f162d0047a4cb5f4d4 | [
"MIT"
] | 56 | 2018-12-22T19:13:23.000Z | 2022-01-01T23:08:53.000Z | #include "Religion.h"
#include "CommonRegexes.h"
#include "Configuration.h"
#include "ParserHelpers.h"
mappers::Religion::Religion(std::istream& theStream)
{
registerKeys();
parseStream(theStream);
clearRegisteredKeywords();
if (theConfiguration.isHpmEnabled() && !hpmColorString.empty())
colorString = hpmColorS... | 33.193548 | 90 | 0.739553 | Idhrendur |
bba0cb25c5fe22e269854df65b00127989115cbc | 3,456 | cpp | C++ | Cplus/LongestSubstringofOneRepeatingCharacter.cpp | Jum1023/leetcode | d8248aa84452cb1ea768d9b05ecd72a6746c0016 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/LongestSubstringofOneRepeatingCharacter.cpp | Jum1023/leetcode | d8248aa84452cb1ea768d9b05ecd72a6746c0016 | [
"MIT"
] | null | null | null | Cplus/LongestSubstringofOneRepeatingCharacter.cpp | Jum1023/leetcode | d8248aa84452cb1ea768d9b05ecd72a6746c0016 | [
"MIT"
] | null | null | null | #include <map>
#include <string>
#include <vector>
using namespace std;
//user defined data
struct SegmentNode
{
int preflen; //longest repeating prefix length
char prechar; //longest repeating prefix character
int sufflen; //longest repeating suffix length
char suffchar; //longest repeating suffix character
... | 22.887417 | 90 | 0.639178 | Jum1023 |
bba6e14e2d67e3866da3540f36cf202d09761b94 | 31,452 | cpp | C++ | UVAutoRatio/UVAutoRatioPro.cpp | lipsyncpost/MayaPlugin-UVAutoRatio | 9f717c924f63eb726f63f3ebb6297e2b0e0a30ef | [
"MIT"
] | 30 | 2015-03-03T21:53:05.000Z | 2020-05-27T09:04:24.000Z | UVAutoRatio/UVAutoRatioPro.cpp | lipsyncpost/MayaPlugin-UVAutoRatio | 9f717c924f63eb726f63f3ebb6297e2b0e0a30ef | [
"MIT"
] | null | null | null | UVAutoRatio/UVAutoRatioPro.cpp | lipsyncpost/MayaPlugin-UVAutoRatio | 9f717c924f63eb726f63f3ebb6297e2b0e0a30ef | [
"MIT"
] | 20 | 2015-03-03T21:53:07.000Z | 2021-04-09T07:33:17.000Z | //
// UVAutoRatio Maya Plugin Source Code
// Copyright (C) 2007-2014 RenderHeads Ltd.
//
// This source is available for distribution and/or modification
// only under the terms of the MIT license. All rights reserved.
//
// The source is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRA... | 24.823994 | 288 | 0.620787 | lipsyncpost |
bbaad6b3fc7f82816ef48b5faa2742a9609a190c | 19,765 | cpp | C++ | main.cpp | Szaki/PMan | d6ef706ca18660c3b61c78a5c4faac9211de87a3 | [
"MIT"
] | null | null | null | main.cpp | Szaki/PMan | d6ef706ca18660c3b61c78a5c4faac9211de87a3 | [
"MIT"
] | null | null | null | main.cpp | Szaki/PMan | d6ef706ca18660c3b61c78a5c4faac9211de87a3 | [
"MIT"
] | null | null | null | #define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <vector>
#if defined(__APPLE__)
#include <GLUT/GLUT.h>
#include <OpenGL/gl3.h>
#include <OpenGL/glu.h>
#else
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
#include <windows.h>
#endif
#include <GL/glew.h>
#include ... | 23.670659 | 140 | 0.631773 | Szaki |
bbabbd5ab7ee4e5bdcf50ac55ecb42712686eec2 | 130 | cc | C++ | core/parameters/variable.cc | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | 5 | 2019-10-14T01:06:57.000Z | 2021-02-02T16:33:06.000Z | core/parameters/variable.cc | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | core/parameters/variable.cc | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | #include "variable.hh"
template class variable<double>;
#ifdef PROVIDE_SINGLE_PRECISION
template class variable<float>;
#endif
| 18.571429 | 33 | 0.8 | gnafit |
bbb3948776854ca49c0964a847cdb92ec57c8c23 | 14,385 | cpp | C++ | src/matching/stroke_transfer.cpp | josefgraus/self_similiarity | c032daa3009f60fdc8a52c437a07c6e3ba2efe4b | [
"MIT"
] | 1 | 2021-02-25T09:35:14.000Z | 2021-02-25T09:35:14.000Z | src/matching/stroke_transfer.cpp | josefgraus/self_similiarity | c032daa3009f60fdc8a52c437a07c6e3ba2efe4b | [
"MIT"
] | null | null | null | src/matching/stroke_transfer.cpp | josefgraus/self_similiarity | c032daa3009f60fdc8a52c437a07c6e3ba2efe4b | [
"MIT"
] | 2 | 2020-09-22T13:02:45.000Z | 2020-10-08T00:21:36.000Z | #include "stroke_transfer.h"
#include <queue>
#include <random>
#include <thread>
#include <queue>
#include <chrono>
#include <cppoptlib/solver/lbfgsbsolver.h>
#include <ctpl_stl.h>
#include <matching/threshold.h>
#include <matching/geodesic_fan.h>
#include <matching/parameterization/curve_unrolling.h>
using namesp... | 36.143216 | 282 | 0.678137 | josefgraus |
bbb3cba89345c661091770fe653b5aad469b7366 | 6,683 | cpp | C++ | src/windows/draw_window.cpp | Gusgo99/Fourier_drawing | 24048863ae9faabcf5db928e09cdc258f5017b2c | [
"MIT"
] | null | null | null | src/windows/draw_window.cpp | Gusgo99/Fourier_drawing | 24048863ae9faabcf5db928e09cdc258f5017b2c | [
"MIT"
] | null | null | null | src/windows/draw_window.cpp | Gusgo99/Fourier_drawing | 24048863ae9faabcf5db928e09cdc258f5017b2c | [
"MIT"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
MIT License
Copyright (c) 2020 Gustavo Pacola Gonçalves
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to d... | 28.438298 | 110 | 0.701032 | Gusgo99 |
bbb435310f4bc208a3df19355840b788fb21a18c | 939 | cpp | C++ | 9/9.28.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | null | null | null | 9/9.28.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | 2 | 2020-08-15T17:33:00.000Z | 2021-07-05T14:18:26.000Z | 9/9.28.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | 1 | 2020-08-15T17:24:54.000Z | 2020-08-15T17:24:54.000Z | #include <iostream>
#include <forward_list>
#include <string>
void addStr(std::forward_list<std::string> &lst, const std::string &str1, const std::string &str2) {
auto prev = lst.before_begin();
auto curr = lst.begin();
while (curr != lst.end()) {
if (*curr == str1) {
lst.insert_after(p... | 25.378378 | 100 | 0.506922 | kousikpramanik |
c7dd2566ccfbeae47cc5a5067f9c93ffd51a7481 | 3,462 | cpp | C++ | src/Response.cpp | AleksMVP/static-server | e11df53bd0bb20253f221767dd62502c9c6d3927 | [
"MIT"
] | 2 | 2021-04-13T16:53:18.000Z | 2021-10-04T07:41:38.000Z | src/Response.cpp | AleksMVP/static-server | e11df53bd0bb20253f221767dd62502c9c6d3927 | [
"MIT"
] | null | null | null | src/Response.cpp | AleksMVP/static-server | e11df53bd0bb20253f221767dd62502c9c6d3927 | [
"MIT"
] | 1 | 2021-03-19T14:45:14.000Z | 2021-03-19T14:45:14.000Z | #include "Response.h"
#include "Utils.h"
namespace fs = std::filesystem;
Response::Response(const Request& request, fs::path resolve_path) :
protocol("HTTP/1.1"),
server("Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g"),
connection("close"),
content_length(0),
... | 25.455882 | 77 | 0.467071 | AleksMVP |
c7e393d2c66f0aaf594327a417f78d8b8f97bbc3 | 10,038 | cpp | C++ | source/psu/psu.cpp | dravinflores/DCCS | 11a937e22c037749f8a37e404334fca8b2553444 | [
"MIT"
] | null | null | null | source/psu/psu.cpp | dravinflores/DCCS | 11a937e22c037749f8a37e404334fca8b2553444 | [
"MIT"
] | null | null | null | source/psu/psu.cpp | dravinflores/DCCS | 11a937e22c037749f8a37e404334fca8b2553444 | [
"MIT"
] | null | null | null | /*******************************************************************************
* File: psu/psu.cpp
* Author(s): Dravin Flores <dravinflores@gmail.com>
* Date Created: 17 December, 2021
*
* Purpose: This file defines all the functions prototyped in
* the psu.hpp head... | 35.72242 | 80 | 0.549412 | dravinflores |
c7e8fc13172390a4209a3ed4fca85f4eca794e84 | 543 | cpp | C++ | Ouroboros/Source/oMemory/memset2d4.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | Ouroboros/Source/oMemory/memset2d4.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | Ouroboros/Source/oMemory/memset2d4.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | // Copyright (c) 2016 Antony Arciuolo. See License.txt regarding use.
#include <oCore/assert.h>
#include <stdexcept>
#include <cstdint>
namespace ouro {
void memset4(void* dst, int32_t value, size_t bytes);
void memset2d4(void* dst, size_t row_pitch, int32_t value, size_t set_pitch, size_t num_rows)
{
oCheck((set_p... | 28.578947 | 95 | 0.710866 | igHunterKiller |
c7e94ba1d6ff8fb48042a14e61d7936572734dbd | 18,799 | hpp | C++ | modules/mcc/include/opencv2/mcc/ccm.hpp | riskiest/opencv_contrib | 47c716db455c1b9aaff0fe4cafba2c283132fb39 | [
"Apache-2.0"
] | null | null | null | modules/mcc/include/opencv2/mcc/ccm.hpp | riskiest/opencv_contrib | 47c716db455c1b9aaff0fe4cafba2c283132fb39 | [
"Apache-2.0"
] | null | null | null | modules/mcc/include/opencv2/mcc/ccm.hpp | riskiest/opencv_contrib | 47c716db455c1b9aaff0fe4cafba2c283132fb39 | [
"Apache-2.0"
] | 2 | 2020-08-07T07:12:11.000Z | 2020-08-07T08:35:45.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright(C) 20... | 35.138318 | 192 | 0.559019 | riskiest |
c7ef13c4e6d9061ad00c4944168059e014d2c675 | 17,748 | cpp | C++ | tests/benchdnn/conv/graph_deconv.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | tests/benchdnn/conv/graph_deconv.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | tests/benchdnn/conv/graph_deconv.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | 37.681529 | 83 | 0.622436 | wuxun-zhang |
c7f0a8819c631549f7cc9ddb9122eea18e8fabec | 1,223 | cpp | C++ | src/Player.cpp | DominicMaas/SpaceChunks | 78cc4385f4fa208969f21199df32cadca1356972 | [
"MIT"
] | 3 | 2018-10-28T19:03:00.000Z | 2020-01-04T00:24:02.000Z | src/Player.cpp | DominicMaas/SpaceChunks | 78cc4385f4fa208969f21199df32cadca1356972 | [
"MIT"
] | null | null | null | src/Player.cpp | DominicMaas/SpaceChunks | 78cc4385f4fa208969f21199df32cadca1356972 | [
"MIT"
] | null | null | null | #include "Player.hpp"
/*
Creates the player, takes in a position, rotation and rendering engine
*/
Player::Player(glm::vec3 pos, glm::vec3 rot, Engine* engine)
{
this->m_pEngine = engine;
this->m_pos = pos;
this->m_rot = rot;
this->m_Camera = new Camera(m_pEngine);
this->m_Camera->SetCameraPosition(this->m_pos... | 18.815385 | 71 | 0.710548 | DominicMaas |
c7f38b67f14e8b2fe21cfcc5425991a9cc25645b | 64 | hpp | C++ | Global-Conflicts-Development-Mission.utes/modules/ai_drivers/functions/AiDrivers/script_component.hpp | EM-Creations/ArmA-3-Collection | 3ad0d7c3bd22e41bfd033eeb6b29075dab140543 | [
"MIT"
] | null | null | null | Global-Conflicts-Development-Mission.utes/modules/ai_drivers/functions/AiDrivers/script_component.hpp | EM-Creations/ArmA-3-Collection | 3ad0d7c3bd22e41bfd033eeb6b29075dab140543 | [
"MIT"
] | 6 | 2021-10-31T13:39:55.000Z | 2021-12-22T21:03:26.000Z | Global-Conflicts-Development-Mission.utes/modules/ai_drivers/functions/AiDrivers/script_component.hpp | EM-Creations/ArmA-3-Collection | 3ad0d7c3bd22e41bfd033eeb6b29075dab140543 | [
"MIT"
] | null | null | null | #define COMPONENT AIDVR
#include "..\..\script_component.hpp"
| 21.333333 | 38 | 0.71875 | EM-Creations |
2a00d694b506971c392d969f994db1efd16b39e8 | 694 | cpp | C++ | wrappers/python/pyrs_net.cpp | BellosC/librealsense | 60b0354fef0831dc64e0986e0727eeb0a3c0694c | [
"Apache-2.0"
] | 6 | 2020-02-26T08:15:27.000Z | 2022-01-28T14:17:46.000Z | wrappers/python/pyrs_net.cpp | BellosC/librealsense | 60b0354fef0831dc64e0986e0727eeb0a3c0694c | [
"Apache-2.0"
] | 8 | 2020-01-08T04:01:48.000Z | 2022-02-15T16:17:06.000Z | wrappers/python/pyrs_net.cpp | BellosC/librealsense | 60b0354fef0831dc64e0986e0727eeb0a3c0694c | [
"Apache-2.0"
] | 4 | 2020-07-03T08:33:31.000Z | 2021-12-14T07:51:21.000Z | /* License: Apache 2.0. See LICENSE file in root directory.
Copyright(c) 2020 Intel Corporation. All Rights Reserved. */
#include <pybind11/pybind11.h>
// convenience functions
#include <pybind11/operators.h>
#include "librealsense2-net/rs_net.hpp"
#define NAME pyrealsense2_net
#define SNAME "pyrealsense2_net"
nam... | 27.76 | 78 | 0.736311 | BellosC |
2a0393774d941b564b8f524c23cdd53c1cedb042 | 47,189 | cpp | C++ | csl/cslbase/arith09.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/arith09.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/arith09.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | // arith09.cpp Copyright (C) 1989-2020 Codemist
//
// Arithmetic functions.
// GCD and some boolean operations
//
//
/**************************************************************************
* Copyright (C) 2020 Codemist. A C Norman *
* ... | 38.743021 | 86 | 0.538515 | arthurcnorman |
2a0704cd840cf163d619f0870a6d704946431ec5 | 3,974 | cpp | C++ | DirectZobEngine/Managers/CameraManager.cpp | zeralph/directZob | 7682ec0b77b697659be157cce62413e3ee877ee4 | [
"WTFPL"
] | 2 | 2019-06-12T18:11:36.000Z | 2022-01-19T00:26:00.000Z | DirectZobEngine/Managers/CameraManager.cpp | zeralph/directZob | 7682ec0b77b697659be157cce62413e3ee877ee4 | [
"WTFPL"
] | null | null | null | DirectZobEngine/Managers/CameraManager.cpp | zeralph/directZob | 7682ec0b77b697659be157cce62413e3ee877ee4 | [
"WTFPL"
] | 1 | 2019-10-05T02:44:47.000Z | 2019-10-05T02:44:47.000Z | #include "CameraManager.h"
#include "DirectZob.h"
CameraManager::CameraManager()
{
m_cameras.clear();
m_curCam = NULL;
m_nextCamera = NULL;
}
CameraManager::~CameraManager()
{
// for (int i = 0; i < m_cameras.size(); i++)
// {
// delete (m_cameras[i]);
// }
m_cameras.clear();
}
void CameraManager::UnloadAll()
{... | 20.379487 | 139 | 0.656517 | zeralph |
2a097d3fbdc64bc2a90a54a3f5a6ad58ac2fb008 | 14,148 | cpp | C++ | AGVC/clsTimeBlocks.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | AGVC/clsTimeBlocks.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | AGVC/clsTimeBlocks.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------------------
// COPYRIGHT NOTICE
// ----------------------------------------------------------------------------------------
//
// The Source Code Store LLC
// ACTIVEGANTT SCHEDULER COMPONENT FOR C++ - ActiveGan... | 37.728 | 245 | 0.731552 | jluzardo1971 |
2a200c532d28a4139673674376da5e1855a8d852 | 1,544 | cc | C++ | 0056_Merge_Intervals/0056.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0056_Merge_Intervals/0056.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0056_Merge_Intervals/0056.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null |
#include <map>
#include <vector>
using std::map;
using std::vector;
struct Interval {
int start;
int end;
Interval() : start(0), end(0) {}
Interval(int s, int e) : start(s), end(e) {}
};
// this is my solution.
// it's not good enough, although the time complexity is O(n * log n) which is
// the best time c... | 25.733333 | 80 | 0.627591 | LuciusKyle |
2a23e5e852d560a63119939a313b9afd08890360 | 102,350 | cpp | C++ | YorozuyaGSLib/source/CUserDBDetail.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/CUserDBDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/CUserDBDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <CUserDBDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::CUserDBAlive_Char_Complete2_ptr CUserDBAlive_Char_Complete2_next(nullptr);
Info::CUserDBAlive_Char_Complete2_clbk CUserDBAlive_Char_Complete2_user(nullptr);
Info::CUserDBAli... | 58.352338 | 384 | 0.687523 | lemkova |
2a29167dd838d76b34adcded356b3bd0597c28bf | 615 | cpp | C++ | search-algorithms/binary-search/c++/binary-search.cpp | DKSecurity99/academic-programming | a197cc2388b9ec618461380e47176d56621b0a6d | [
"MIT"
] | 2 | 2021-05-12T13:10:29.000Z | 2021-06-11T10:45:34.000Z | search-algorithms/binary-search/c++/binary-search.cpp | edmilson-dk/academic-programming | a197cc2388b9ec618461380e47176d56621b0a6d | [
"MIT"
] | null | null | null | search-algorithms/binary-search/c++/binary-search.cpp | edmilson-dk/academic-programming | a197cc2388b9ec618461380e47176d56621b0a6d | [
"MIT"
] | null | null | null | // O(log n)
#include <iostream>
using namespace std;
int binarySearch(int vector[], int size, int wanted) {
int left = 0;
int right = size-1;
while (left <= right) {
int pivot = left + (right - left) / 2;
if (vector[pivot] == wanted) return pivot;
else if (vector[pivot] < wanted) left = pivot+1;
... | 19.83871 | 60 | 0.6 | DKSecurity99 |
2a30761a649dd5ece7b35f67e26ea2c6eec05906 | 10,985 | cpp | C++ | cpp/basics/old_basic_cpp/singlelinkedlist/singlelinkedlist.cpp | isaacdejesus/Languages | aeb4598809a5cf3bffd2f2c5b010d2b310edae39 | [
"MIT"
] | null | null | null | cpp/basics/old_basic_cpp/singlelinkedlist/singlelinkedlist.cpp | isaacdejesus/Languages | aeb4598809a5cf3bffd2f2c5b010d2b310edae39 | [
"MIT"
] | null | null | null | cpp/basics/old_basic_cpp/singlelinkedlist/singlelinkedlist.cpp | isaacdejesus/Languages | aeb4598809a5cf3bffd2f2c5b010d2b310edae39 | [
"MIT"
] | null | null | null | #include <iostream>
#include "singlelinkedlist.h"
template <class DataType>
node<DataType>::node()
{
link=nullptr;
}
template <class DataType>
singlelinkedlist<DataType>::singlelinkedlist()
{
count=0;
head=nullptr;
tail=nullptr;
}
template <class DataType>
bool singlelinkedlist<DataType>::isEmpty()
{... | 25.1373 | 91 | 0.544197 | isaacdejesus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.