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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01a8355b87c487d6dbfd441788d509b7c248f69d | 953 | cpp | C++ | Source/Core/Utility/Value.cpp | CCSEPBVR/KVS | f6153b3f52aa38904cc96d38d5cd609c5dccfc59 | [
"BSD-3-Clause"
] | null | null | null | Source/Core/Utility/Value.cpp | CCSEPBVR/KVS | f6153b3f52aa38904cc96d38d5cd609c5dccfc59 | [
"BSD-3-Clause"
] | null | null | null | Source/Core/Utility/Value.cpp | CCSEPBVR/KVS | f6153b3f52aa38904cc96d38d5cd609c5dccfc59 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************/
/**
* @file Value.cpp
*/
/*----------------------------------------------------------------------------
*
* Copyright (c) Visualization Laboratory, Kyoto University.
* All rights reserved.
* See http://www.viz.media.kyoto-u.ac.jp/k... | 28.029412 | 78 | 0.537251 | CCSEPBVR |
01add52005565d3321e5156ee799c67cb32aacf7 | 3,589 | cpp | C++ | src/plugins/azoth/plugins/abbrev/abbrevsmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/azoth/plugins/abbrev/abbrevsmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/azoth/plugins/abbrev/abbrevsmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 26.585185 | 110 | 0.648091 | Maledictus |
01b3fb942edcab0b3ec1492f58b5f496f8f8fc57 | 3,393 | hh | C++ | xinput_calibrator-0.7.5/src/calibrator.hh | minakhan01/FaceRecognitionCaroline | e23f37160839657a305357330ac0ddb3515c01cb | [
"MIT"
] | null | null | null | xinput_calibrator-0.7.5/src/calibrator.hh | minakhan01/FaceRecognitionCaroline | e23f37160839657a305357330ac0ddb3515c01cb | [
"MIT"
] | null | null | null | xinput_calibrator-0.7.5/src/calibrator.hh | minakhan01/FaceRecognitionCaroline | e23f37160839657a305357330ac0ddb3515c01cb | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2009 Tias Guns
* Copyright (c) 2009 Soren Hauberg
*
* 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... | 35.34375 | 125 | 0.716475 | minakhan01 |
01b8800d83d55d8f7d6be054567dcc49d26ced73 | 390 | cpp | C++ | labs/5/Practice_12/solutions/task4.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 19 | 2020-02-21T16:46:50.000Z | 2022-01-26T19:59:49.000Z | labs/5/Practice_12/solutions/task4.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 1 | 2020-03-14T08:09:45.000Z | 2020-03-14T08:09:45.000Z | labs/5/Practice_12/solutions/task4.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 11 | 2020-02-23T12:29:58.000Z | 2021-04-11T08:30:12.000Z | #include <iostream>
using namespace std;
int main() {
string text;
cin >> text;
for(int i=0; i<text.length(); i++) {
if (text[i] == text[i+1]) {
int k = 0;
while(text[i] == text[i + k + 1]) {
k++;
}
text.erase(i, k)... | 15.6 | 48 | 0.364103 | triffon |
01b92bfb14a277e032868d3db5e9840f2caaf5f3 | 1,487 | cpp | C++ | src/Scenes/save.cpp | SPC-Some-Polish-Coders/PopHead | 2bce21b1a6b3d16a2ccecf0d15faeebf6a486c81 | [
"MIT"
] | 117 | 2019-03-18T20:09:54.000Z | 2022-03-27T22:40:52.000Z | src/Scenes/save.cpp | SPC-Some-Polish-Coders/PopHead | 2bce21b1a6b3d16a2ccecf0d15faeebf6a486c81 | [
"MIT"
] | 443 | 2019-04-07T19:59:56.000Z | 2020-05-23T12:25:28.000Z | src/Scenes/save.cpp | SPC-Some-Polish-Coders/PopHead | 2bce21b1a6b3d16a2ccecf0d15faeebf6a486c81 | [
"MIT"
] | 19 | 2019-03-20T19:57:34.000Z | 2020-11-21T15:35:02.000Z | #include "pch.hpp"
#include "save.hpp"
#include "ECS/entityUtil.hpp"
#include "ECS/Components/charactersComponents.hpp"
#include "ECS/Components/physicsComponents.hpp"
#include "ECS/Components/objectsComponents.hpp"
#include "ECS/Components/graphicsComponents.hpp"
namespace ph {
struct GameSaveBlob
{
Vec2 savePointP... | 22.530303 | 64 | 0.718897 | SPC-Some-Polish-Coders |
01bc1fce2e1986d4474d872f47806d6812fd6924 | 155 | cpp | C++ | src/state/LC.cpp | UmbrellaSampler/carnd-term3-1_path_planning | 5d3828753b0ecde20aa4a7ba7d0ef16e21acdea7 | [
"MIT"
] | null | null | null | src/state/LC.cpp | UmbrellaSampler/carnd-term3-1_path_planning | 5d3828753b0ecde20aa4a7ba7d0ef16e21acdea7 | [
"MIT"
] | null | null | null | src/state/LC.cpp | UmbrellaSampler/carnd-term3-1_path_planning | 5d3828753b0ecde20aa4a7ba7d0ef16e21acdea7 | [
"MIT"
] | null | null | null | //
// Created by uwe_e on 03.02.2020.
//
#include "LC.h"
double LC::Cost() const
{
// Lane change gets always executed
return -1;
}
| 11.923077 | 40 | 0.554839 | UmbrellaSampler |
01bd85278a2cee18317d3094364b016789eb2e17 | 752 | hpp | C++ | include/sprout/range/algorithm/replace_copy.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | 4 | 2021-12-29T22:17:40.000Z | 2022-03-23T11:53:44.000Z | dsp/lib/sprout/sprout/range/algorithm/replace_copy.hpp | TheSlowGrowth/TapeLooper | ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264 | [
"MIT"
] | 16 | 2021-10-31T21:41:09.000Z | 2022-01-22T10:51:34.000Z | include/sprout/range/algorithm/replace_copy.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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)
==... | 44.235294 | 79 | 0.644947 | thinkoid |
01c5c4fd251b6084e184943fd6b499de1d275b54 | 103 | cpp | C++ | 3/TCPClient/main.cpp | ulyanyunakh/operating-systems | edb195c5ff72138f9d3f7b940d7acce507cb69d3 | [
"MIT"
] | null | null | null | 3/TCPClient/main.cpp | ulyanyunakh/operating-systems | edb195c5ff72138f9d3f7b940d7acce507cb69d3 | [
"MIT"
] | null | null | null | 3/TCPClient/main.cpp | ulyanyunakh/operating-systems | edb195c5ff72138f9d3f7b940d7acce507cb69d3 | [
"MIT"
] | null | null | null | #include <iostream>
#include "TCPClient.cpp"
int main() {
TCPClient client;
client.start();
} | 14.714286 | 24 | 0.650485 | ulyanyunakh |
01c5d1dafc7991df2c138640f389b939971efdbc | 18,329 | cpp | C++ | dep/libusbp/test/error_message_test.cpp | pauldevine/fluxengine | a107d4f17f3ecf69cfcde916f4468b44712b1253 | [
"MIT"
] | 71 | 2016-04-24T22:15:21.000Z | 2022-03-21T22:32:09.000Z | dep/libusbp/test/error_message_test.cpp | pauldevine/fluxengine | a107d4f17f3ecf69cfcde916f4468b44712b1253 | [
"MIT"
] | 6 | 2018-11-26T16:42:29.000Z | 2021-02-16T19:21:24.000Z | dep/libusbp/test/error_message_test.cpp | pauldevine/fluxengine | a107d4f17f3ecf69cfcde916f4468b44712b1253 | [
"MIT"
] | 26 | 2018-06-18T13:41:37.000Z | 2021-12-17T10:02:46.000Z | /* This file tests the conversion of errors from libusbp's underlying APIs to
* libusbp_error objects. It also documents and justifies the explicit mappings
* that are in the error handling code. */
#include <test_helper.h>
#ifndef NDEBUG
// Here is a list of the messages we want to use consistently across platfo... | 40.107221 | 93 | 0.652682 | pauldevine |
01c7c739310b6ce652d67f6728c62ffd21db67ee | 6,912 | cpp | C++ | src/brook/scripts/template_expander.cpp | darwin/inferno | e87017763abae0cfe09d47987f5f6ac37c4f073d | [
"Zlib"
] | 2 | 2016-05-09T11:57:28.000Z | 2021-07-28T16:46:08.000Z | src/brook/scripts/template_expander.cpp | darwin/inferno | e87017763abae0cfe09d47987f5f6ac37c4f073d | [
"Zlib"
] | null | null | null | src/brook/scripts/template_expander.cpp | darwin/inferno | e87017763abae0cfe09d47987f5f6ac37c4f073d | [
"Zlib"
] | null | null | null | #ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
string findReplace (string s, string find, str... | 29.412766 | 79 | 0.58724 | darwin |
01cf388e8b6a6a56f14aa9701057e419e02c0c58 | 5,880 | cpp | C++ | sources/core/system.cpp | alexandrerodrigopinheiro/libyetzirah | 5fdf6dfd4e903cc10addbed67f2e66a4cdbae617 | [
"Apache-2.0"
] | null | null | null | sources/core/system.cpp | alexandrerodrigopinheiro/libyetzirah | 5fdf6dfd4e903cc10addbed67f2e66a4cdbae617 | [
"Apache-2.0"
] | null | null | null | sources/core/system.cpp | alexandrerodrigopinheiro/libyetzirah | 5fdf6dfd4e903cc10addbed67f2e66a4cdbae617 | [
"Apache-2.0"
] | null | null | null | #include "core/system.h"
ygl::core::system::system() :
_hud(false),
_window(nullptr),
_double_window(nullptr),
_render(nullptr),
_camera(nullptr),
_double_scene(nullptr),
_event(nullptr),
_handler(nullptr),
_hertz(nullptr),
_info(nullptr)
{
}
ygl::core::system::~system()
{
this->destroy();
}
bool ygl::cor... | 21.459854 | 171 | 0.67466 | alexandrerodrigopinheiro |
01d2df441a67e7f683484b52ed949de4472b8502 | 7,567 | cpp | C++ | src/Tokenstream.cpp | UtopiaLang/src | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | 7 | 2021-03-01T17:24:45.000Z | 2021-10-01T02:28:25.000Z | src/Tokenstream.cpp | UtopiaLang/Utopia | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | 6 | 2021-02-27T18:25:45.000Z | 2021-09-10T21:27:39.000Z | src/Tokenstream.cpp | UtopiaLang/src | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | null | null | null | #include "Tokenstream.hpp"
#include <optional>
#include "is_whitespace.hpp"
#include "Profiling.hpp"
#include "ParseError.hpp"
#include "TokenAssignment.hpp"
#include "TokenBlock.hpp"
#include "TokenBool.hpp"
#include "TokenConcat.hpp"
#include "TokenDivide.hpp"
#include "TokenEquals.hpp"
#include "TokenFunction.hpp"... | 22.454006 | 124 | 0.525572 | UtopiaLang |
01d3206744019dbb5d121703f75aecc78a60d57e | 10,778 | cpp | C++ | src/cbag/schematic/cellview_info.cpp | growly/cbag | 468bf580223490a8ce0769471e25abf936b56a4e | [
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2020-02-13T21:51:04.000Z | 2021-12-11T10:01:45.000Z | src/cbag/schematic/cellview_info.cpp | growly/cbag | 468bf580223490a8ce0769471e25abf936b56a4e | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2019-06-03T19:05:14.000Z | 2020-03-17T22:59:36.000Z | src/cbag/schematic/cellview_info.cpp | growly/cbag | 468bf580223490a8ce0769471e25abf936b56a4e | [
"Apache-2.0",
"BSD-3-Clause"
] | 5 | 2019-06-03T17:02:46.000Z | 2020-09-01T23:03:01.000Z | // SPDX-License-Identifier: BSD-3-Clause AND Apache-2.0
/*
Copyright (c) 2018, Regents of the University of California
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code mu... | 41.6139 | 100 | 0.650677 | growly |
01d3dea0466abde0d50963a8ab1120522bb71411 | 14,396 | cpp | C++ | Game/Source/Enemy.cpp | Ar-Ess/Split_Duty_NoNameBros | 7c723fa2f4a1d08954b11e3d81c767e226f3f186 | [
"MIT"
] | null | null | null | Game/Source/Enemy.cpp | Ar-Ess/Split_Duty_NoNameBros | 7c723fa2f4a1d08954b11e3d81c767e226f3f186 | [
"MIT"
] | 1 | 2021-02-25T11:10:21.000Z | 2021-02-25T11:10:21.000Z | Game/Source/Enemy.cpp | Ar-Ess/Split_Duty_NoNameBros | 7c723fa2f4a1d08954b11e3d81c767e226f3f186 | [
"MIT"
] | null | null | null | #define _CRT_SECURE_NO_WARNINGS
#include "App.h"
#include "Scene.h"
#include "Combat.h"
#include "Enemy.h"
#include "Pathfinding.h"
#include "Log.h"
#define DEFAULT_PATH_LENGTH 50
Enemy::Enemy() : Entity(EntityType::ENEMY)
{
//PathFinding::GetInstance()->CreatePath(*path, iPoint(0, 0), iPoint(0, 0));
}
Enemy... | 26.908411 | 144 | 0.48055 | Ar-Ess |
01d62e3204e1e18448aaa4abce554e8a673de006 | 1,411 | cpp | C++ | src/base/session/extension/MessagingExtension.cpp | mark-online/sne | 92190c78a1710778acf16dd3a83af064db5c269b | [
"MIT"
] | null | null | null | src/base/session/extension/MessagingExtension.cpp | mark-online/sne | 92190c78a1710778acf16dd3a83af064db5c269b | [
"MIT"
] | null | null | null | src/base/session/extension/MessagingExtension.cpp | mark-online/sne | 92190c78a1710778acf16dd3a83af064db5c269b | [
"MIT"
] | null | null | null | #include "BasePCH.h"
#include <sne/base/session/extension/MessagingExtension.h>
#include <sne/base/session/impl/SessionImpl.h>
#include <sne/base/memory/MemoryBlock.h>
#include <sne/base/utility/Logger.h>
#include <sne/core/Exception.h>
namespace sne { namespace base {
MessagingExtension::~MessagingExtension()
{
... | 26.622642 | 83 | 0.683203 | mark-online |
01d904ca5c63e447dc46dad085a2346e924e3741 | 572 | cpp | C++ | code_snippets/chapter03/chapter03_02-002_prime_number.cpp | nandasanchit17/real-time-cpp | fae1aece8b4fe2aaae18c8bd81a99661b0609a23 | [
"BSL-1.0"
] | 1 | 2020-03-19T08:10:23.000Z | 2020-03-19T08:10:23.000Z | code_snippets/chapter03/chapter03_02-002_prime_number.cpp | nandasanchit17/real-time-cpp | fae1aece8b4fe2aaae18c8bd81a99661b0609a23 | [
"BSL-1.0"
] | null | null | null | code_snippets/chapter03/chapter03_02-002_prime_number.cpp | nandasanchit17/real-time-cpp | fae1aece8b4fe2aaae18c8bd81a99661b0609a23 | [
"BSL-1.0"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2017 - 2018.
// 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)
//
// chapter03_02-002_prime_nu... | 26 | 79 | 0.624126 | nandasanchit17 |
01d9f512748b21332a10b45f160d84f0118f5468 | 1,756 | cpp | C++ | src/ui/JoinServerView.cpp | lh123/NesEmulator | 5a32598b0f40d2fb02db4e1fc5cd931bff8604a8 | [
"MIT"
] | null | null | null | src/ui/JoinServerView.cpp | lh123/NesEmulator | 5a32598b0f40d2fb02db4e1fc5cd931bff8604a8 | [
"MIT"
] | null | null | null | src/ui/JoinServerView.cpp | lh123/NesEmulator | 5a32598b0f40d2fb02db4e1fc5cd931bff8604a8 | [
"MIT"
] | null | null | null | #include "ui/JoinServerView.h"
#include <cstring>
JoinServerView::JoinServerView() : UIComponent("CreateServer"), mIpInputBuffer{0}, mPortInputBuffer{0} {
setWindowFlags(ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse);
}
JoinServerView::~JoinServerView() {}
void JoinServerView::addClickListener(const Cl... | 33.132075 | 107 | 0.67369 | lh123 |
01dac4ecefc32e031c00e5e5393cf1d739fd956d | 1,754 | cpp | C++ | testvideocapture.cpp | nimohunter/Calibration-Use-ChArucoBoard | 7ab0df7648871b6f7e45c39f1ee4ed3f803ac9c5 | [
"MIT"
] | 8 | 2017-06-05T03:43:28.000Z | 2021-02-28T06:39:30.000Z | testvideocapture.cpp | nimohunter/Calibration-Use-ChArucoBoard | 7ab0df7648871b6f7e45c39f1ee4ed3f803ac9c5 | [
"MIT"
] | null | null | null | testvideocapture.cpp | nimohunter/Calibration-Use-ChArucoBoard | 7ab0df7648871b6f7e45c39f1ee4ed3f803ac9c5 | [
"MIT"
] | 1 | 2019-11-03T19:54:25.000Z | 2019-11-03T19:54:25.000Z | #include <opencv2/highgui.hpp>
#include <opencv2/calib3d.hpp>
#include <opencv2/aruco/charuco.hpp>
#include <opencv2/imgproc.hpp>
#include <ctime>
#include <iostream>
#include <vector>
#include <mutex>
using namespace cv;
using namespace std;
// Some basic colors
Scalar red(0, 0, 255);
Scalar green(0,255,0);
Scalar bl... | 25.057143 | 115 | 0.644242 | nimohunter |
01de575d81a9366ebfad229d41a4902d4711e94e | 2,822 | cpp | C++ | POO/exemploPOO.cpp | geovani-moc/Algoritmos-basico | d2d838c158da62a94946a7af29b24ca7396af34e | [
"Apache-2.0"
] | null | null | null | POO/exemploPOO.cpp | geovani-moc/Algoritmos-basico | d2d838c158da62a94946a7af29b24ca7396af34e | [
"Apache-2.0"
] | null | null | null | POO/exemploPOO.cpp | geovani-moc/Algoritmos-basico | d2d838c158da62a94946a7af29b24ca7396af34e | [
"Apache-2.0"
] | null | null | null | #include <iostream>
// PROGRAMADOR: GEOVANI PEREIRA DOS SANTOS
// EXEMPLO DE POO EM C++, POLIMORFISMO, CLASSES, HERANCA
using namespace std;
// inicio questao 1
class Animal
{
private:
string nome;
int idade;
public:
Animal(){}
~Animal(){}
virtual void emitirSom(){}
virtual void movimento(){}... | 18.565789 | 63 | 0.573352 | geovani-moc |
01dfa40a33f2215a67b857be1d57adb07ebc8184 | 1,060 | cpp | C++ | bob/bob.cpp | akilram/exercism-cpp-answers | 88d1247beb6ad003640efd5af87a05ad1a0d3a88 | [
"MIT"
] | null | null | null | bob/bob.cpp | akilram/exercism-cpp-answers | 88d1247beb6ad003640efd5af87a05ad1a0d3a88 | [
"MIT"
] | null | null | null | bob/bob.cpp | akilram/exercism-cpp-answers | 88d1247beb6ad003640efd5af87a05ad1a0d3a88 | [
"MIT"
] | null | null | null | #include "bob.h"
using namespace std;
using namespace boost;
namespace bob
{
string hey(const string message)
{
const string message_trimmed = trim_copy(message);
// Guard empty strings / Check if message is empty
if (message_trimmed.empty())
return REPLY_FINE;
// Check if message is a... | 21.632653 | 70 | 0.646226 | akilram |
01e21b7fb1fd1848e3d1bcc8b8af524b9a9d432e | 2,303 | cpp | C++ | engine/kotek.core.containers.multithreading/src/main_core_containers_multithreading_dll.cpp | wh1t3lord/kotek | 1e3eb61569974538661ad121ed8eb28c9e608ae6 | [
"Apache-2.0"
] | null | null | null | engine/kotek.core.containers.multithreading/src/main_core_containers_multithreading_dll.cpp | wh1t3lord/kotek | 1e3eb61569974538661ad121ed8eb28c9e608ae6 | [
"Apache-2.0"
] | null | null | null | engine/kotek.core.containers.multithreading/src/main_core_containers_multithreading_dll.cpp | wh1t3lord/kotek | 1e3eb61569974538661ad121ed8eb28c9e608ae6 | [
"Apache-2.0"
] | null | null | null | #include "../include/kotek_core_containers_multithreading.h"
namespace Kotek
{
namespace Core
{
bool InitializeModule_Core_Containers_MultiThreading(
ktkMainManager* p_manager)
{
InitializeModule_Core_Containers_MultiThreading_Atomic(p_manager);
InitializeModule_Core_Containers_MultiThreading_Mutex(p_ma... | 35.430769 | 71 | 0.85063 | wh1t3lord |
01e23a1b9fe93d2962f63b2e407eedd149433f6e | 201 | cpp | C++ | Labs/Lab6/main.cpp | Xeltide/Comp3512 | ec1aff98d4b2fda6446d60afca571940a3701e29 | [
"MIT"
] | null | null | null | Labs/Lab6/main.cpp | Xeltide/Comp3512 | ec1aff98d4b2fda6446d60afca571940a3701e29 | [
"MIT"
] | null | null | null | Labs/Lab6/main.cpp | Xeltide/Comp3512 | ec1aff98d4b2fda6446d60afca571940a3701e29 | [
"MIT"
] | null | null | null | #include "FixedVector.h"
#include <iostream>
int main()
{
lab6::FixedVector<int, 10> numbers;
numbers.Add(1);
numbers.Add(2);
std::cout << numbers[0] << std::endl;
system("pause");
return 0;
} | 14.357143 | 38 | 0.646766 | Xeltide |
01e24a552a21603e3ab827ddaa6d5bee45318fec | 3,124 | cpp | C++ | Ejercicios/TAREA #6-Punto-de-Venta-parte/productos.cpp | AngelaC02/cpp | 89464b01bc79b91e2229340481e5f9db0621d00c | [
"MIT"
] | null | null | null | Ejercicios/TAREA #6-Punto-de-Venta-parte/productos.cpp | AngelaC02/cpp | 89464b01bc79b91e2229340481e5f9db0621d00c | [
"MIT"
] | null | null | null | Ejercicios/TAREA #6-Punto-de-Venta-parte/productos.cpp | AngelaC02/cpp | 89464b01bc79b91e2229340481e5f9db0621d00c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
extern void agregarProducto(string descripcion, int cantidad, double precio);
void productos(int opcion)
{
system("cls");
int opcionProducto = 0;
switch (opcion)
{
case 1:
{
cout<< "BEBIDAS CALIENTES"<< endl;
cout<< "*****************"<<... | 22.970588 | 78 | 0.422215 | AngelaC02 |
01e2e0f336f4c2eb778a480c1bb94929901b9268 | 2,965 | cpp | C++ | Applications/bftpd/circular_queue.cpp | comnetsAD/ALCC | fc9c627de8c381987fc775ce0872339fceb43ddf | [
"MIT"
] | 6 | 2021-05-19T16:58:15.000Z | 2022-03-10T03:51:20.000Z | Applications/bftpd/circular_queue.cpp | comnetsAD/ALCC | fc9c627de8c381987fc775ce0872339fceb43ddf | [
"MIT"
] | null | null | null | Applications/bftpd/circular_queue.cpp | comnetsAD/ALCC | fc9c627de8c381987fc775ce0872339fceb43ddf | [
"MIT"
] | 4 | 2021-05-24T11:19:18.000Z | 2022-03-08T17:58:24.000Z | #include <cstdio>
#include <memory>
#include <mutex>
/**
* Important Usage Note: This library reserves one spare entry for queue-full detection
* Otherwise, corner cases and detecting difference between full/empty is hard.
* You are not seeing an accidental off-by-one.
*/
template <class T>
class circular_buffer {
p... | 16.657303 | 86 | 0.593255 | comnetsAD |
01e3edbb06683b818b2fb7656e1cf2381299369a | 1,720 | hxx | C++ | mmtbx/geometry/overlap.hxx | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | mmtbx/geometry/overlap.hxx | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | mmtbx/geometry/overlap.hxx | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | template< typename Sphere >
bool
BetweenSpheres::operator ()(const Sphere& left, const Sphere& right) const
{
typedef typename Sphere::value_type value_type;
value_type sum_radii = left.radius() + right.radius();
return ( left.centre() - right.centre() ).length_sq() < sum_radii * sum_radii;
}
template< typename ... | 24.571429 | 82 | 0.672674 | rimmartin |
01e5b76c313cc068efd302bc19faecbff2bc230e | 6,939 | cpp | C++ | test/block_cipher/test_ocb.cpp | ilwoong/MockupCrypto | 17b104db12fd485917b0bbb8ff6c5a5b10793ea3 | [
"MIT"
] | null | null | null | test/block_cipher/test_ocb.cpp | ilwoong/MockupCrypto | 17b104db12fd485917b0bbb8ff6c5a5b10793ea3 | [
"MIT"
] | null | null | null | test/block_cipher/test_ocb.cpp | ilwoong/MockupCrypto | 17b104db12fd485917b0bbb8ff6c5a5b10793ea3 | [
"MIT"
] | null | null | null | /**
* The MIT License
*
* Copyright (c) 2020 Ilwoong Jeong (https://github.com/ilwoong)
*
* 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... | 38.126374 | 136 | 0.455973 | ilwoong |
01e5dd225456b00ddf680c9f290272a4767aa4aa | 3,868 | cpp | C++ | vent_control_settings.cpp | jim-sokoloff/emergency-field-ventilator-timer-relay | c6fb63cf889a6cba79d06053890e494960ecd4d9 | [
"Apache-2.0"
] | null | null | null | vent_control_settings.cpp | jim-sokoloff/emergency-field-ventilator-timer-relay | c6fb63cf889a6cba79d06053890e494960ecd4d9 | [
"Apache-2.0"
] | null | null | null | vent_control_settings.cpp | jim-sokoloff/emergency-field-ventilator-timer-relay | c6fb63cf889a6cba79d06053890e494960ecd4d9 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020, Jim Sokoloff
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 36.838095 | 129 | 0.657446 | jim-sokoloff |
01e61fc26ed94a0be13c45cbeddbcfe2b12162d1 | 876 | hpp | C++ | src/mctsnode.hpp | andrewsng/checkers_bot | 9d98df021cd236b27ef36702a6e98e613fad3911 | [
"MIT"
] | null | null | null | src/mctsnode.hpp | andrewsng/checkers_bot | 9d98df021cd236b27ef36702a6e98e613fad3911 | [
"MIT"
] | null | null | null | src/mctsnode.hpp | andrewsng/checkers_bot | 9d98df021cd236b27ef36702a6e98e613fad3911 | [
"MIT"
] | null | null | null | #ifndef MCTSNODE_HPP
#define MCTSNODE_HPP
#include "board.hpp"
#include "move.hpp"
#include "checkersgame.hpp"
#include "movegen.hpp"
#include <vector>
#include <memory>
#include <optional>
#include <utility>
class MCTSNode {
public:
MCTSNode(Board board, int player, std::optional<Move> move = {});
std::pa... | 20.372093 | 69 | 0.690639 | andrewsng |
5439b81bcbbfc18adf9a1b0754cb7d54b3c42de3 | 946 | cpp | C++ | deps/mozjs/src/jsapi-tests/testIsInsideNursery.cpp | ktrzeciaknubisa/jxcore-binary-packaging | 5759df084be10a259a4a4f1b38c214c6084a7c0f | [
"Apache-2.0"
] | 2,494 | 2015-02-11T04:34:13.000Z | 2022-03-31T14:21:47.000Z | deps/mozjs/src/jsapi-tests/testIsInsideNursery.cpp | ktrzeciaknubisa/jxcore-binary-packaging | 5759df084be10a259a4a4f1b38c214c6084a7c0f | [
"Apache-2.0"
] | 685 | 2015-02-11T17:14:26.000Z | 2021-04-13T09:58:39.000Z | deps/mozjs/src/jsapi-tests/testIsInsideNursery.cpp | ktrzeciaknubisa/jxcore-binary-packaging | 5759df084be10a259a4a4f1b38c214c6084a7c0f | [
"Apache-2.0"
] | 442 | 2015-02-12T13:45:46.000Z | 2022-03-21T05:28:05.000Z | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
*/
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. *... | 27.028571 | 89 | 0.665962 | ktrzeciaknubisa |
543a03dda8300e9b85cbaa3f227d199ea28c9210 | 70 | cpp | C++ | darknet-master/build/modules/video/opencv_perf_video_pch.cpp | mcyy23633/ship_YOLOv4 | 2eb53e578546fce663a2f3fa153481ce4f82c588 | [
"MIT"
] | null | null | null | darknet-master/build/modules/video/opencv_perf_video_pch.cpp | mcyy23633/ship_YOLOv4 | 2eb53e578546fce663a2f3fa153481ce4f82c588 | [
"MIT"
] | null | null | null | darknet-master/build/modules/video/opencv_perf_video_pch.cpp | mcyy23633/ship_YOLOv4 | 2eb53e578546fce663a2f3fa153481ce4f82c588 | [
"MIT"
] | null | null | null | #include "C:/opencv/opencv-4.5.1/modules/video/perf/perf_precomp.hpp"
| 35 | 69 | 0.771429 | mcyy23633 |
543bb049ab3219a5e951858c153bb97a4ef4dbc2 | 154 | cpp | C++ | Source/VRInteractables/VRInteractablesGameModeBase.cpp | calben/UE4-VRInteractables | 61dcf4f091540cacb15d6d4790972159387d9b1b | [
"MIT"
] | null | null | null | Source/VRInteractables/VRInteractablesGameModeBase.cpp | calben/UE4-VRInteractables | 61dcf4f091540cacb15d6d4790972159387d9b1b | [
"MIT"
] | null | null | null | Source/VRInteractables/VRInteractablesGameModeBase.cpp | calben/UE4-VRInteractables | 61dcf4f091540cacb15d6d4790972159387d9b1b | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "VRInteractables.h"
#include "VRInteractablesGameModeBase.h"
| 17.111111 | 78 | 0.785714 | calben |
543c91e1504073763275497bd8044116f3ae455d | 1,717 | cpp | C++ | src/homework/03_iteration/dna.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean | 9e2f45a1d9682f5c9391a594e1284c6beffd9f58 | [
"MIT"
] | null | null | null | src/homework/03_iteration/dna.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean | 9e2f45a1d9682f5c9391a594e1284c6beffd9f58 | [
"MIT"
] | null | null | null | src/homework/03_iteration/dna.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean | 9e2f45a1d9682f5c9391a594e1284c6beffd9f58 | [
"MIT"
] | null | null | null | #include "dna.h"
#include<iostream>
using std::string;
/*
Write code for function get_gc_content that accepts
a const reference string parameter and returns a double.
Calculate GC content:
Iterate string count Gs and Cs, divide count by string length.
Return quotient.
*/
double get_gc_content(const std::string & dna1... | 16.669903 | 81 | 0.645312 | acc-cosc-1337-spring-2020 |
544185533b55c01b0fdd57f4c4f463e146128426 | 916 | cpp | C++ | ViAn/Project/Test/bookmarktest.cpp | NFCSKL/NFC-ViAn | ce04b78b4c9695374d71198f57d4236a5cad1525 | [
"MIT"
] | 1 | 2019-12-08T03:53:03.000Z | 2019-12-08T03:53:03.000Z | ViAn/Project/Test/bookmarktest.cpp | NFCSKL/NFC-ViAn | ce04b78b4c9695374d71198f57d4236a5cad1525 | [
"MIT"
] | 182 | 2018-02-08T11:03:26.000Z | 2019-06-27T15:27:47.000Z | ViAn/Project/Test/bookmarktest.cpp | NFCSKL/NFC-ViAn | ce04b78b4c9695374d71198f57d4236a5cad1525 | [
"MIT"
] | null | null | null | #include "bookmarktest.h"
#include <QTest>
void BookmarkTest::initTestCase(){
m_temp_dir.setAutoRemove(true);
QVERIFY(m_temp_dir.isValid());
}
void BookmarkTest::cleanupTestCase(){
}
void BookmarkTest::init() {
qDebug() << "Creating new bookmark";
m_bookmark = std::unique_ptr<Bookmark>(new Bookmark... | 24.105263 | 64 | 0.708515 | NFCSKL |
544276e6bdbff93e21c4f34fb50c81c69fc6d78d | 553 | hpp | C++ | src/Planet.hpp | bethang/corona3d_2020 | 868dcea42dbcc04c49b8fbe3635f2a2fbd8c9d6f | [
"MIT"
] | null | null | null | src/Planet.hpp | bethang/corona3d_2020 | 868dcea42dbcc04c49b8fbe3635f2a2fbd8c9d6f | [
"MIT"
] | null | null | null | src/Planet.hpp | bethang/corona3d_2020 | 868dcea42dbcc04c49b8fbe3635f2a2fbd8c9d6f | [
"MIT"
] | 2 | 2021-05-26T18:22:15.000Z | 2022-01-27T17:31:00.000Z | /*
* Planet.hpp
*
* Created on: May 29, 2020
* Author: rodney
*/
#ifndef PLANET_HPP_
#define PLANET_HPP_
#include "Common_Functions.hpp"
class Planet {
public:
Planet();
virtual ~Planet();
void init(); // initialize with defaults (Venus mass/radius)
void init(double m, double r);
double get_mass();
... | 18.433333 | 72 | 0.661844 | bethang |
5446dc70b3d692c6716a556d36038b7dc0de1d28 | 1,638 | hpp | C++ | source/Kai/Function.hpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | 4 | 2016-07-19T08:53:09.000Z | 2021-08-03T10:06:41.000Z | source/Kai/Function.hpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | null | null | null | source/Kai/Function.hpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | null | null | null | //
// Function.h
// This file is part of the "Kai" project, and is released under the MIT license.
//
// Created by Samuel Williams on 13/04/10.
// Copyright 2010 Samuel Williams. All rights reserved.
//
//
#ifndef _KFUNCTION_H
#define _KFUNCTION_H
#include "Object.hpp"
#define KAI_BUILTIN_FUNCTION(function) (bu... | 24.088235 | 111 | 0.704518 | ioquatix |
544a10fc63f7ea4f343fed1a79ef94c85b872663 | 629 | cpp | C++ | infoarena/medie/medie.cpp | cristicretu/cplusplus | 87f5980271431b11ae1b8c14ce6d2c620a404488 | [
"MIT"
] | 1 | 2022-01-27T17:13:08.000Z | 2022-01-27T17:13:08.000Z | infoarena/medie/medie.cpp | cristicretu/cplusplus | 87f5980271431b11ae1b8c14ce6d2c620a404488 | [
"MIT"
] | null | null | null | infoarena/medie/medie.cpp | cristicretu/cplusplus | 87f5980271431b11ae1b8c14ce6d2c620a404488 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
std::fstream fin("medie.in", std::ios::in);
std::fstream fout("medie.out", std::ios::out);
static const int mxn = 9e3, mxfv = 7e3;
int n, v[1 + mxn], fv[1 + mxfv];
int main(){
fin >> n;
int mx = 0;
for (int i = 1; i <= n; ++i){
fin >> v[i];
mx = std::max(mx, v[i])... | 20.290323 | 54 | 0.427663 | cristicretu |
544acb2c6342d07a708ea1d87af4006afd274bc0 | 2,388 | cpp | C++ | Ansel/src/source/entities/Camera.cpp | maxortner01/ansel | cf9930c921ca439968daa29b242a1b532030088a | [
"BSD-2-Clause"
] | 2 | 2019-04-04T07:26:54.000Z | 2019-07-07T20:48:30.000Z | Ansel/src/source/entities/Camera.cpp | maxortner01/ansel | cf9930c921ca439968daa29b242a1b532030088a | [
"BSD-2-Clause"
] | null | null | null | Ansel/src/source/entities/Camera.cpp | maxortner01/ansel | cf9930c921ca439968daa29b242a1b532030088a | [
"BSD-2-Clause"
] | null | null | null | #include "../../headers/entities/camera.h"
#include "../../headers/event/Keyboard.h"
#include "../../headers/Engine.h"
namespace Ansel
{
Camera::Camera() {
location = { 0, 0, 0 };
rotation = { 0, 0, 0 };
}
void Camera::pollEvents() {
float s = speed * (Engine::getTime() - last_time);
if (Keyboard::isKeyPr... | 20.947368 | 138 | 0.628141 | maxortner01 |
5451d290772f70b3ea382043f086211946d84b7f | 84 | cpp | C++ | ToyLib/Source/Toy/Block.cpp | pauldoo/scratch | 1c8703d8b8e5cc5a026bfd5f0b036b9632faf161 | [
"0BSD"
] | null | null | null | ToyLib/Source/Toy/Block.cpp | pauldoo/scratch | 1c8703d8b8e5cc5a026bfd5f0b036b9632faf161 | [
"0BSD"
] | 4 | 2021-08-31T22:03:39.000Z | 2022-02-19T07:12:05.000Z | ToyLib/Source/Toy/Block.cpp | pauldoo/scratch | 1c8703d8b8e5cc5a026bfd5f0b036b9632faf161 | [
"0BSD"
] | 1 | 2022-02-23T13:46:49.000Z | 2022-02-23T13:46:49.000Z | #include "Toy/PrecompiledDeclarations.h"
#include "Toy/Block.h"
namespace Toy {
}
| 12 | 40 | 0.738095 | pauldoo |
5451def9790860b6ee396c0f6cd6265fee3e337c | 829 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/game/AudioSyncs.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/game/AudioSyncs.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/game/AudioSyncs.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Scripting/Natives/Generated/audio/AudEventStruct.hpp>
#include <RED4ext/Scripting/Natives/Generated/audio/AudParameter.hpp>
#include <RED4ext/Script... | 29.607143 | 71 | 0.761158 | jackhumbert |
5454dba3a53b68e0d9663c294e2da04bd63c39cd | 777 | hpp | C++ | src/camera.hpp | sosterwalder/mte7102-proj2 | 0c554fd45b4e1c05d3daa1e0a885efff56857e7d | [
"MIT"
] | null | null | null | src/camera.hpp | sosterwalder/mte7102-proj2 | 0c554fd45b4e1c05d3daa1e0a885efff56857e7d | [
"MIT"
] | null | null | null | src/camera.hpp | sosterwalder/mte7102-proj2 | 0c554fd45b4e1c05d3daa1e0a885efff56857e7d | [
"MIT"
] | null | null | null | #pragma once
#include <nanogui/object.h>
#include <Eigen/Core>
NAMESPACE_BEGIN(QCE);
class Camera : public nanogui::Object {
public:
template<class T>
static Eigen::Matrix<T,4,4> perspective(const T fov, const T aspect, const T near, const T far)
{
assert(aspect > 0);
assert(far > near);... | 21 | 99 | 0.532819 | sosterwalder |
5457cc9f57740136fedbea641e81d64d14fdcc95 | 459 | cpp | C++ | Baekjoon/10844.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/10844.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/10844.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(void)
{
int N, mod = 1000000000;
long long dp[101][10] = { 0, }, ans = 0;
cin >> N;
for (int i = 1; i < 10; i++)
dp[1][i] = 1;
for (int i = 2; i <= N; i++)
{
dp[i][0] = dp[i - 1][1];
dp[i][9] = dp[i - 1][8];
for (int j = 1; j < 9; j++)
... | 19.956522 | 58 | 0.446623 | Twinparadox |
5458e9ab04b23d7b38aad366e9673cbd8a1fe37b | 451 | cpp | C++ | src/task/rejected.cpp | SameAsMuli/todo | 75b6380b2e8c9a0696f97f43b103de7d12fbd840 | [
"MIT"
] | null | null | null | src/task/rejected.cpp | SameAsMuli/todo | 75b6380b2e8c9a0696f97f43b103de7d12fbd840 | [
"MIT"
] | null | null | null | src/task/rejected.cpp | SameAsMuli/todo | 75b6380b2e8c9a0696f97f43b103de7d12fbd840 | [
"MIT"
] | null | null | null | #include <sstream> // std::stringstream
#include "task/rejected.hpp"
#include "util/ansi.hpp"
namespace todo {
namespace task {
Rejected::Rejected() : CompleteAbstract("rejected", '/') {}
std::string Rejected::format(const Task &task) {
std::stringstream ss;
ss << util::ansi::foreground_red << task.getPref... | 20.5 | 63 | 0.649667 | SameAsMuli |
5462edc1ff6b2feb8267261303d8966957f32c96 | 2,055 | cpp | C++ | codeforces/D - Om Nom and Necklace/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/D - Om Nom and Necklace/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/D - Om Nom and Necklace/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729# created: Jun/18/2020 12:32
* solution_verdict: Accepted language: GNU C++14
* run... | 28.150685 | 111 | 0.442822 | kzvd4729 |
54647a479195d2a60f1e9cde641741077b1267e2 | 593 | hpp | C++ | characters/Medusa.hpp | sonamdkindy/fantasycombat | 1203d336db2c2f2a8815a449ee881a5f54b2a641 | [
"MIT"
] | null | null | null | characters/Medusa.hpp | sonamdkindy/fantasycombat | 1203d336db2c2f2a8815a449ee881a5f54b2a641 | [
"MIT"
] | null | null | null | characters/Medusa.hpp | sonamdkindy/fantasycombat | 1203d336db2c2f2a8815a449ee881a5f54b2a641 | [
"MIT"
] | null | null | null | /*********************************************************************
** Program name: Medusa.hpp
** Author: Sonam D. Kindy
** Date: 11/11/17
** Description: This file is the Medusa subclass specification/interface.
*********************************************************************/
#ifndef MEDUSA_HPP
#define MEDU... | 23.72 | 73 | 0.494098 | sonamdkindy |
5468ce1778fecd1114ac1c6967b9734dcf757220 | 11,022 | cpp | C++ | tools/source_maker/source_templates/wxwidgets.cpp | wxphp/wxphp | a691f72e66162fabf4408abe9545d2f4cccb15fa | [
"PHP-3.01"
] | 269 | 2015-01-01T08:03:31.000Z | 2022-01-23T04:13:53.000Z | tools/source_maker/source_templates/wxwidgets.cpp | wxphp/wxphp | a691f72e66162fabf4408abe9545d2f4cccb15fa | [
"PHP-3.01"
] | 92 | 2015-01-01T13:03:06.000Z | 2020-11-23T02:43:58.000Z | tools/source_maker/source_templates/wxwidgets.cpp | wxphp/wxphp | a691f72e66162fabf4408abe9545d2f4cccb15fa | [
"PHP-3.01"
] | 54 | 2015-01-10T17:28:26.000Z | 2021-06-10T22:57:19.000Z | /*
* @author Mário Soares
* @contributors Jefferson González
* @contributors René Vögeli / Rangee GmbH
*
* @license
* This file is part of wxPHP check the LICENSE file for information.
*
* @description
* Main start point for the wxWidgets php extension
*
* @note
* Some parts of this file are auto-generated ... | 27.693467 | 189 | 0.664671 | wxphp |
546eb21252dda258eb26665bf591b7d2c2b6884e | 6,072 | cpp | C++ | BVH Builder/main2.cpp | FirowMD/Luna-Engine | 4011a43df48ca85f6d8f8657709471da02bd8301 | [
"MIT"
] | 2 | 2021-07-28T23:08:29.000Z | 2021-09-14T19:32:36.000Z | BVH Builder/main2.cpp | FirowMD/Luna-Engine | 4011a43df48ca85f6d8f8657709471da02bd8301 | [
"MIT"
] | null | null | null | BVH Builder/main2.cpp | FirowMD/Luna-Engine | 4011a43df48ca85f6d8f8657709471da02bd8301 | [
"MIT"
] | null | null | null | #include "Defines.h"
#include "Engine Includes/MainInclude.h"
#include "HighLevel/DirectX/HighLevel.h"
#include "HighLevel/DirectX/Utlities.h"
#include "Engine/Model/Mesh.h"
HighLevel gHighLevel;
Model mModel;
Texture DefaultTexture;
Camera *cPlayer;
NewMesh<3> mNewMesh;
bool _DirectX::FrameFunction() {
//Sco... | 26.172414 | 104 | 0.610343 | FirowMD |
546f806fe4d620ca3eb7756b1571ce8cff7beddd | 5,871 | cpp | C++ | target.cpp | marionette-of-u/kp19pp | 61a80859774e4c391b9a6e2b2e98387bacb92410 | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2015-12-16T05:33:11.000Z | 2018-06-06T14:18:31.000Z | target.cpp | marionette-of-u/kp19pp | 61a80859774e4c391b9a6e2b2e98387bacb92410 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | target.cpp | marionette-of-u/kp19pp | 61a80859774e4c391b9a6e2b2e98387bacb92410 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "target.hpp"
namespace kp19pp{
namespace target{
term_type epsilon_functor::operator ()() const{
return 0;
}
term_type end_of_seq_functor::operator ()() const{
return (std::numeric_limits<int>::max)();
}
semantic_type::semantic_type() :
... | 43.488889 | 134 | 0.539431 | marionette-of-u |
5471c23e8b00e040c3e9d1455c0f115e7c5311ed | 1,863 | cpp | C++ | tests/message-mgmt/mssg.cpp | sahilg-xilinx/XRT | e0825c342c73e11c585d8ac15fc57486f1d8aa3e | [
"Apache-2.0"
] | 359 | 2018-10-05T03:05:08.000Z | 2022-03-31T06:28:16.000Z | tests/message-mgmt/mssg.cpp | sahilg-xilinx/XRT | e0825c342c73e11c585d8ac15fc57486f1d8aa3e | [
"Apache-2.0"
] | 5,832 | 2018-10-02T22:43:29.000Z | 2022-03-31T22:28:05.000Z | tests/message-mgmt/mssg.cpp | sahilg-xilinx/XRT | e0825c342c73e11c585d8ac15fc57486f1d8aa3e | [
"Apache-2.0"
] | 442 | 2018-10-02T23:06:29.000Z | 2022-03-21T08:34:44.000Z | #include <iostream>
#include <string>
#include <getopt.h>
#include <thread>
// host_src includes
#include "xclhal2.h"
#include "xclbin.h"
void foo(int num, xclDeviceHandle handle)
{
xclLogMsg(handle, XRT_NOTICE, "XRT", "(5) Running Thread number %d", num);
}
int main(int argc, char** argv) {
xclDeviceInfo2 de... | 27.80597 | 90 | 0.577026 | sahilg-xilinx |
54732009494d921b7d77ea136f13e492c68aa61a | 35,916 | cxx | C++ | windows/core/ntgdi/gre/htblt.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | windows/core/ntgdi/gre/htblt.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | windows/core/ntgdi/gre/htblt.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /******************************Module*Header*******************************\
* Module Name: htblt.cxx
*
* Contains routine to halftone a bitmap. This path is used when a
* StretchBlt or PlgBlt is called with StretchBltMode == HALFTONE.
*
* Created: 18-Nov-1991 16:06:47
* Author: Wendy Wu [wendywu]
*
* Copyrig... | 32.920257 | 144 | 0.506292 | npocmaka |
54763fcc90137468e020fa4b6bffd32a3e614e70 | 1,102 | cc | C++ | src/workers/close.cc | bengotow/better-sqlite3 | 2606eef344cdf22f23ec8bd403f4aeb305f644cb | [
"MIT"
] | 2 | 2017-10-10T06:24:35.000Z | 2021-06-15T15:01:39.000Z | src/workers/close.cc | bengotow/better-sqlite3 | 2606eef344cdf22f23ec8bd403f4aeb305f644cb | [
"MIT"
] | null | null | null | src/workers/close.cc | bengotow/better-sqlite3 | 2606eef344cdf22f23ec8bd403f4aeb305f644cb | [
"MIT"
] | 2 | 2017-03-15T06:34:50.000Z | 2017-05-05T02:47:03.000Z | #include <sqlite3.h>
#include <nan.h>
#include "close.h"
#include "../objects/database/database.h"
#include "../util/macros.h"
CloseWorker::CloseWorker(Database* db, bool still_connecting) : Nan::AsyncWorker(NULL),
db(db),
still_connecting(still_connecting) {}
void CloseWorker::Execute() {
if (!still_connecting) {
... | 24.488889 | 87 | 0.674229 | bengotow |
5476bd178dd9d0553e59594c499d3aef3e84ef5f | 1,527 | hpp | C++ | Starfarm/src/Component/BaseRendererComponent.hpp | fossabot/Starfarm | 2d03fcdd2fa59f6061d523f69f2653134c9d0c64 | [
"MIT"
] | null | null | null | Starfarm/src/Component/BaseRendererComponent.hpp | fossabot/Starfarm | 2d03fcdd2fa59f6061d523f69f2653134c9d0c64 | [
"MIT"
] | 2 | 2019-04-17T15:22:46.000Z | 2019-05-06T10:13:08.000Z | Starfarm/src/Component/BaseRendererComponent.hpp | fossabot/Starfarm | 2d03fcdd2fa59f6061d523f69f2653134c9d0c64 | [
"MIT"
] | 2 | 2019-04-19T08:23:13.000Z | 2019-05-06T10:17:52.000Z | //
// Created by Tiphaine LAURENT on 30/04/2019.
//
#ifndef STARFARM_BASERENDERERCOMPONENT_HPP
# define STARFARM_BASERENDERERCOMPONENT_HPP
# include <Component.hpp>
# include <SFML/Graphics.hpp>
namespace game
{
class BaseRendererComponent
: public ecs::Component<BaseRendererComponent>
{
// ATTRIBUTE... | 27.763636 | 89 | 0.67649 | fossabot |
54777c1b03848acdd180ab1c2bf048f45a0add81 | 1,050 | cpp | C++ | test/test_tbsr.cpp | watagashi0619/TFHE | 392c06812edd3ccfa56099fbacb8428fbc1fc277 | [
"MIT"
] | 3 | 2021-08-11T05:36:05.000Z | 2021-12-29T06:26:30.000Z | test/test_tbsr.cpp | watagashi0619/TFHE | 392c06812edd3ccfa56099fbacb8428fbc1fc277 | [
"MIT"
] | 1 | 2021-09-13T12:53:43.000Z | 2021-09-19T04:12:41.000Z | test/test_tbsr.cpp | watagashi0619/TFHE | 392c06812edd3ccfa56099fbacb8428fbc1fc277 | [
"MIT"
] | null | null | null | #include <array>
#include <cassert>
#include <iostream>
#include <random>
#include "key.hpp"
#include "params.hpp"
#include "tbsr.hpp"
#include "tlwe.hpp"
#include "trgsw.hpp"
#include "trlwe.hpp"
#include "util.hpp"
using namespace TFHE;
void test_tbsr_add() {
// secret key
secret_key skey;
// generate ... | 26.25 | 85 | 0.625714 | watagashi0619 |
547a9a9ccd2100f6f258cd586fc509b27f1a18cc | 3,861 | cpp | C++ | PROJECT_KART/minigame1.cpp | keithmulqueen/Project-KART | 6e170ec754b728581bbfcad8c2329ebf26da83ac | [
"Unlicense"
] | null | null | null | PROJECT_KART/minigame1.cpp | keithmulqueen/Project-KART | 6e170ec754b728581bbfcad8c2329ebf26da83ac | [
"Unlicense"
] | null | null | null | PROJECT_KART/minigame1.cpp | keithmulqueen/Project-KART | 6e170ec754b728581bbfcad8c2329ebf26da83ac | [
"Unlicense"
] | null | null | null | #include "minigame1.h"
#include "ui_minigame1.h"
MiniGame1::MiniGame1(QWidget *parent) :
QDialog(parent),
ui(new Ui::MiniGame1)
{
ui->setupUi(this);
buttons.push_back(ui->pushButton);
buttons.push_back(ui->pushButton_2);
buttons.push_back(ui->pushButton_3);
buttons.push_back(ui->pushButton_... | 32.445378 | 174 | 0.62704 | keithmulqueen |
547b9aaec5bdfa120c3d9e32e4be6ec92d6d60d5 | 2,871 | cpp | C++ | core/window.cpp | joeedh/game.js | 9271efd2cbbc52ff3ceca7745a0fda114ab613d6 | [
"MIT"
] | null | null | null | core/window.cpp | joeedh/game.js | 9271efd2cbbc52ff3ceca7745a0fda114ab613d6 | [
"MIT"
] | null | null | null | core/window.cpp | joeedh/game.js | 9271efd2cbbc52ff3ceca7745a0fda114ab613d6 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2013 The ANGLE Project 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 "window.h"
#include "EGLWindow.h"
AppWindow::AppWindow(const std::string& name, size_t width, size_t height,
... | 18.403846 | 96 | 0.62069 | joeedh |
5482a77db8240d204268d5c1a953d4b302e393ea | 11,236 | hpp | C++ | third_party/omr/example/glue/ConcurrentMarkingDelegate.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/example/glue/ConcurrentMarkingDelegate.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/example/glue/ConcurrentMarkingDelegate.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2017, 2018 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 36.718954 | 135 | 0.754717 | xiacijie |
5486638402411922cc15fe751c923fa95862153a | 2,876 | cpp | C++ | software/tests/pid_learner.cpp | Mateck/Eirbot1A_2018 | 730ddb85fc40b9b8f5eef05142ad609fffb004ce | [
"MIT"
] | 3 | 2018-01-26T18:08:18.000Z | 2018-03-03T19:08:37.000Z | software/tests/pid_learner.cpp | Mateck/Eirbot1A_2018 | 730ddb85fc40b9b8f5eef05142ad609fffb004ce | [
"MIT"
] | null | null | null | software/tests/pid_learner.cpp | Mateck/Eirbot1A_2018 | 730ddb85fc40b9b8f5eef05142ad609fffb004ce | [
"MIT"
] | 1 | 2018-02-08T16:44:44.000Z | 2018-02-08T16:44:44.000Z | // DO NOT USE
// MOTORS DIRECTION BLINK WHEN ROBOT IS STOPPED0P
#include "mbed.h"
#include "errors.h"
#include "robot1.h"
#include "qei.h"
#include "pid.h"
#include "motors.h"
int err = 0;
Timer tim;
// Serial PC
Serial pc(USBTX, USBRX);
// Left Qei
TIM_Encoder_InitTypeDef* p_encoder_left = new TIM_E... | 30.273684 | 76 | 0.695063 | Mateck |
54866b75e625593f783f66a1a8d3e1cfa136219e | 1,487 | cpp | C++ | oadrtest/oadrtest/helper/HttpDelegate.cpp | AnalyticsFire/OpenADR-VEN-Library | 621e410370c3b3b91a5973d1fc19094278eeff75 | [
"Apache-2.0"
] | null | null | null | oadrtest/oadrtest/helper/HttpDelegate.cpp | AnalyticsFire/OpenADR-VEN-Library | 621e410370c3b3b91a5973d1fc19094278eeff75 | [
"Apache-2.0"
] | 3 | 2021-01-20T13:02:54.000Z | 2021-02-19T14:05:34.000Z | oadrtest/oadrtest/helper/HttpDelegate.cpp | AnalyticsFire/OpenADR-VEN-Library | 621e410370c3b3b91a5973d1fc19094278eeff75 | [
"Apache-2.0"
] | null | null | null | /*
* HttpDelegate.cpp
*
* Created on: May 20, 2021
* Author: Michal Kowalczyk
*/
#include "HttpDelegate.h"
HttpDelegate::HttpDelegate(IHttp &http)
: m_http(http)
{
}
bool HttpDelegate::post(std::string url, std::string content)
{
return m_http.post(url, content);
}
void HttpDelegate::setParameters(std::... | 21.550725 | 72 | 0.66846 | AnalyticsFire |
548722b5a3bd38586d6b1047ad956e3e5ec430b3 | 15,448 | cpp | C++ | src/Model_ELBDM/CPU_ELBDM/CPU_ELBDMSolver.cpp | CliffLinTw/gamer_non-uniform_AMR | f21c3d89ce870da3a1833641576bf054b604b648 | [
"BSD-3-Clause"
] | null | null | null | src/Model_ELBDM/CPU_ELBDM/CPU_ELBDMSolver.cpp | CliffLinTw/gamer_non-uniform_AMR | f21c3d89ce870da3a1833641576bf054b604b648 | [
"BSD-3-Clause"
] | null | null | null | src/Model_ELBDM/CPU_ELBDM/CPU_ELBDMSolver.cpp | CliffLinTw/gamer_non-uniform_AMR | f21c3d89ce870da3a1833641576bf054b604b648 | [
"BSD-3-Clause"
] | null | null | null | #include "GAMER.h"
#include "CUFLU.h"
#if ( !defined GPU && MODEL == ELBDM )
// useful macros
#define to1D(z,y,x) ( z*FLU_NXT*FLU_NXT + y*FLU_NXT + x )
#ifdef LAPLACIAN_4TH
# define LAP1(In,t) ( real(1.0/ 12.0)*( - In[t-2] + (real)16.0*In[t-1] - (real)30.0*In[t] + \
... | 40.759894 | 122 | 0.495987 | CliffLinTw |
5487315f43d40a1a0b383121ec90a0f3b1968e1a | 3,673 | cpp | C++ | Morphs/Importers/CoreUtils/Shared/CanvasTex/cpp/Source/Android-Mac/TextureCompression.cpp | bghgary/BabylonPolymorph | 32ff708abb0d1c0b7f613b18ac7803be95f0cb31 | [
"MIT"
] | null | null | null | Morphs/Importers/CoreUtils/Shared/CanvasTex/cpp/Source/Android-Mac/TextureCompression.cpp | bghgary/BabylonPolymorph | 32ff708abb0d1c0b7f613b18ac7803be95f0cb31 | [
"MIT"
] | null | null | null | Morphs/Importers/CoreUtils/Shared/CanvasTex/cpp/Source/Android-Mac/TextureCompression.cpp | bghgary/BabylonPolymorph | 32ff708abb0d1c0b7f613b18ac7803be95f0cb31 | [
"MIT"
] | null | null | null | //
// Copyright (C) Microsoft. All rights reserved.
//
#include "TextureCompression.h"
#include "ScratchImage.h"
#include <CanvasTex/Image.h>
#include <gli/core/bc.hpp>
#include <gli/convert.hpp>
namespace
{
//----------------------------------------------------------------------------------------------------------... | 42.709302 | 191 | 0.630003 | bghgary |
548792b7132622efbd8a29a0c76bfecb8a71f82b | 820 | hpp | C++ | src/test/C/GaussianDerivates/GaussianDerivatesIncludes.hpp | dikujepsen/OpenTran | af9654fcf55e394e7bece38e59bbdc3dd343f092 | [
"MIT"
] | 1 | 2015-02-09T12:56:07.000Z | 2015-02-09T12:56:07.000Z | v3.0/test/C/old_version_of_same_code/GaussianDerivates/GaussianDerivatesIncludes.hpp | dikujepsen/OpenTran | af9654fcf55e394e7bece38e59bbdc3dd343f092 | [
"MIT"
] | null | null | null | v3.0/test/C/old_version_of_same_code/GaussianDerivates/GaussianDerivatesIncludes.hpp | dikujepsen/OpenTran | af9654fcf55e394e7bece38e59bbdc3dd343f092 | [
"MIT"
] | null | null | null | float He(const int n,
const float x) {
float v;
switch(n) {
case 0:
v = 1;
break;
case 1:
v = x;
break;
case 2:
v = x*x-1;
break;
case 3:
v = pow(x,3)-3*x;
break;
case 4:
v = pow(x,4)-6*x*x+3;
break;
case 5:
v = pow(x,5)-10*pow(x,3)+15*x;
break;
defau... | 15.185185 | 83 | 0.482927 | dikujepsen |
54881cb8e7e41325f0e92d30714c5afaffebe86a | 2,039 | cpp | C++ | src/src/Share/ShareLib/LinuxPublic/ACE_wrappers/examples/Reactor/WFMO_Reactor/Prerun_State_Changes.cpp | 549654033/RDHelp | 0f5f9c7d098635c7216713d7137c845c0d999226 | [
"MIT"
] | 2 | 2020-05-20T05:16:34.000Z | 2020-05-20T05:19:19.000Z | src/src/Share/ShareLib/LinuxPublic/ACE_wrappers/examples/Reactor/WFMO_Reactor/Prerun_State_Changes.cpp | jimxie2012/RDHelp | 0f5f9c7d098635c7216713d7137c845c0d999226 | [
"MIT"
] | null | null | null | src/src/Share/ShareLib/LinuxPublic/ACE_wrappers/examples/Reactor/WFMO_Reactor/Prerun_State_Changes.cpp | jimxie2012/RDHelp | 0f5f9c7d098635c7216713d7137c845c0d999226 | [
"MIT"
] | 4 | 2020-05-20T01:50:16.000Z | 2021-08-29T13:48:25.000Z | // $Id: Prerun_State_Changes.cpp 80826 2008-03-04 14:51:23Z wotte $
//
// ============================================================================
//
// = LIBRARY
// examples
//
// = FILENAME
// Prerun_State_Changes.cpp
//
// = DESCRIPTION
//
// Tests the Reactor's ability to handle state chang... | 29.550725 | 117 | 0.513487 | 549654033 |
5489bc4061d37a20d9b00ce63970cd8ac0643d5e | 6,638 | cpp | C++ | gui/shapes/Rect.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | null | null | null | gui/shapes/Rect.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | null | null | null | gui/shapes/Rect.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | 1 | 2020-04-19T23:20:25.000Z | 2020-04-19T23:20:25.000Z | #include "Rect.h"
/// <summary>
/// Non top-left anchor shapes are hard to draw, so there is a absolute representation
/// which is converted from the user defined anchor and location to the equivalent
/// coordinate as if the shape is using a top-left anchor. I tried to convert negative
/// size, but that is too much... | 25.049057 | 95 | 0.679271 | TrapGameStudio |
548bc0e28f1a2bbb8f62229b61ae35c95fdac9e7 | 34 | cpp | C++ | CPP/CC/Assignments/Assignment#1/C_to_CPPfile.cpp | Ahmed-Al-Balochi/Coding | 1bf1df5df9184960bbc4347f498879924cd9da06 | [
"MIT"
] | null | null | null | CPP/CC/Assignments/Assignment#1/C_to_CPPfile.cpp | Ahmed-Al-Balochi/Coding | 1bf1df5df9184960bbc4347f498879924cd9da06 | [
"MIT"
] | null | null | null | CPP/CC/Assignments/Assignment#1/C_to_CPPfile.cpp | Ahmed-Al-Balochi/Coding | 1bf1df5df9184960bbc4347f498879924cd9da06 | [
"MIT"
] | null | null | null | voidmain(){printf("Helllo World";} | 34 | 34 | 0.735294 | Ahmed-Al-Balochi |
548d862ea6980fc9958d1e339100c52381cffd1e | 526 | cpp | C++ | template_demos/template_non_type_parameter/test1.cpp | MDGSF/CppPractice | 96d7f05031ebd5f4616c3ccee2a5ab3f51b986d2 | [
"MIT"
] | null | null | null | template_demos/template_non_type_parameter/test1.cpp | MDGSF/CppPractice | 96d7f05031ebd5f4616c3ccee2a5ab3f51b986d2 | [
"MIT"
] | null | null | null | template_demos/template_non_type_parameter/test1.cpp | MDGSF/CppPractice | 96d7f05031ebd5f4616c3ccee2a5ab3f51b986d2 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
// max 这个不是类型的参数只能是常量
template <class T, int max>
int arr_min(T arr[], int n) {
int result = max;
for (int i = 0; i < n; i++) {
if (arr[i] < result) {
result = arr[i];
}
}
return result;
}
int main() {
int arr1[] = {10, 20, 15, 12};
int n1 = sizeof(a... | 18.785714 | 47 | 0.555133 | MDGSF |
5492500a037577e2aee33d1952ea23d1b496ae76 | 887 | cpp | C++ | The Adventures of Aladdin/apple.cpp | AkeelMedina22/The-Adventures-of-Aladdin | 35954db21cc5fa16617334f8cfb7c7dac0949a59 | [
"MIT"
] | null | null | null | The Adventures of Aladdin/apple.cpp | AkeelMedina22/The-Adventures-of-Aladdin | 35954db21cc5fa16617334f8cfb7c7dac0949a59 | [
"MIT"
] | null | null | null | The Adventures of Aladdin/apple.cpp | AkeelMedina22/The-Adventures-of-Aladdin | 35954db21cc5fa16617334f8cfb7c7dac0949a59 | [
"MIT"
] | null | null | null | #include "apple.hpp"
#include <iostream>
Apple::Apple(SDL_Texture *asst):assets(asst)
{
mover = {900, 540, 35, 35};
//health =1;
}
void Apple::draw(SDL_Renderer* gRenderer)
{
SDL_RenderCopy(gRenderer, assets, &src, &mover); //crashes at this line
//SDL_RenderCopyEx(gRenderer, assets, &src,... | 19.282609 | 81 | 0.554679 | AkeelMedina22 |
549670c6c38f32680a3510f0c0837a2babeedf0c | 490 | cpp | C++ | lang/C++/enforced-immutability-1.cpp | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 5 | 2021-01-29T20:08:05.000Z | 2022-03-22T06:16:05.000Z | lang/C++/enforced-immutability-1.cpp | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/C++/enforced-immutability-1.cpp | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2021-04-13T04:19:31.000Z | 2021-04-13T04:19:31.000Z | #include <iostream>
class MyOtherClass
{
public:
const int m_x;
MyOtherClass(const int initX = 0) : m_x(initX) { }
};
int main()
{
MyOtherClass mocA, mocB(7);
std::cout << mocA.m_x << std::endl; // displays 0, the default value given for MyOtherClass's constructor.
std::cout << mocB.m_x << std::endl; // d... | 21.304348 | 108 | 0.667347 | ethansaxenian |
54992dfbb246a4767b290e9cf0168181edfa74d2 | 1,707 | cpp | C++ | main.cpp | Druggist/arkanoid-3d-opengl | df67234723379aa20cdee9337ed7dbcc65f6e442 | [
"MIT"
] | null | null | null | main.cpp | Druggist/arkanoid-3d-opengl | df67234723379aa20cdee9337ed7dbcc65f6e442 | [
"MIT"
] | null | null | null | main.cpp | Druggist/arkanoid-3d-opengl | df67234723379aa20cdee9337ed7dbcc65f6e442 | [
"MIT"
] | null | null | null | #include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "constants.h"
#include "game.h"
Game Arkanoid;
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode){
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) glfwSetWindowShouldClose(window, GL_TRUE);
if (key >= 0 && key < 1024) {
if ... | 21.884615 | 95 | 0.71529 | Druggist |
549bc77d4d9955ff740c64a70053b70ea6363edf | 7,151 | cpp | C++ | Source/ResourceModel.cpp | pablogalve/Edu-Game-Engine | 99b5ae6a96a1168f43f3e8f81f89bfca897b9109 | [
"Unlicense"
] | null | null | null | Source/ResourceModel.cpp | pablogalve/Edu-Game-Engine | 99b5ae6a96a1168f43f3e8f81f89bfca897b9109 | [
"Unlicense"
] | null | null | null | Source/ResourceModel.cpp | pablogalve/Edu-Game-Engine | 99b5ae6a96a1168f43f3e8f81f89bfca897b9109 | [
"Unlicense"
] | null | null | null | #include "ResourceModel.h"
#include "Application.h"
#include "ModuleFileSystem.h"
#include "ModuleResources.h"
#include "Assimp/scene.h"
#include "Assimp/cimport.h"
#include "Assimp/postprocess.h"
#include "ResourceMaterial.h"
#include "ResourceMesh.h"
#include "utils/SimpleBinStream.h"
#include "HashString.h"
#in... | 24.158784 | 155 | 0.590267 | pablogalve |
549da7fd12822d1e9257854c8746462d34e93629 | 518 | cpp | C++ | OXGame/Game Design/StageMenu.cpp | kreuwont/OXGame | 6de134161f2bb67c09c99f52b2ec966c31aed4fd | [
"MIT"
] | null | null | null | OXGame/Game Design/StageMenu.cpp | kreuwont/OXGame | 6de134161f2bb67c09c99f52b2ec966c31aed4fd | [
"MIT"
] | null | null | null | OXGame/Game Design/StageMenu.cpp | kreuwont/OXGame | 6de134161f2bb67c09c99f52b2ec966c31aed4fd | [
"MIT"
] | null | null | null | #include "stdh.h"
#include "Game.h"
#include "..\Interface\UIManager.h"
#include "StageMenu.h"
#include "..\Interface\UIMenu.h"
#include "..\Interface\UIRoomSettings.h"
void StageMenu::Init()
{
UIManager* pUIManager = UIManager::getSingleton();
GameManager* pManager = GameManager::getSingleton();
pUIManager->GetMe... | 22.521739 | 53 | 0.716216 | kreuwont |
549dfff473b7957f7e0036345498c0eeb73e4ed5 | 7,778 | cc | C++ | Root/PruningUtil.cc | liboyang0112/TRExFitter | 052e56162de0c31259e70aeff846dce634a40602 | [
"BSD-2-Clause"
] | null | null | null | Root/PruningUtil.cc | liboyang0112/TRExFitter | 052e56162de0c31259e70aeff846dce634a40602 | [
"BSD-2-Clause"
] | null | null | null | Root/PruningUtil.cc | liboyang0112/TRExFitter | 052e56162de0c31259e70aeff846dce634a40602 | [
"BSD-2-Clause"
] | null | null | null | // Class include
#include "TRExFitter/PruningUtil.h"
#include "TRExFitter/Common.h"
// C++ includes
#include <memory>
// -------------------------------------------------------------------------------------------------
// class PruningUtil
//___________________________________________________________________________... | 36.009259 | 146 | 0.64181 | liboyang0112 |
549f463f90e5ac62a6ae8ef3a9843e9fa7504210 | 743 | cpp | C++ | src/fCallStack.cpp | lockie/Cracker | 48fc4f8323fcbc9193e100d936646da2fd1b191b | [
"MIT"
] | null | null | null | src/fCallStack.cpp | lockie/Cracker | 48fc4f8323fcbc9193e100d936646da2fd1b191b | [
"MIT"
] | null | null | null | src/fCallStack.cpp | lockie/Cracker | 48fc4f8323fcbc9193e100d936646da2fd1b191b | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include <vcl.h>
#include "fCallStack.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TCallStack *CallStack;
//-------------------------------------------------------------... | 29.72 | 78 | 0.304172 | lockie |
549fd552e9a679e43ce724319e204aefd7ec0837 | 2,026 | cpp | C++ | tests/cpp-tests.cpp | lethosor/liblib | ca9039f41549f0897a4a7c2e154588744936546e | [
"Zlib"
] | 10 | 2017-10-24T16:37:57.000Z | 2020-07-04T15:19:10.000Z | tests/cpp-tests.cpp | lethosor/liblib | ca9039f41549f0897a4a7c2e154588744936546e | [
"Zlib"
] | 3 | 2018-08-24T19:43:28.000Z | 2018-11-24T17:59:42.000Z | tests/cpp-tests.cpp | lethosor/liblib | ca9039f41549f0897a4a7c2e154588744936546e | [
"Zlib"
] | 7 | 2017-05-14T04:43:42.000Z | 2020-03-22T05:14:50.000Z | #include "libdylibxx.h"
#include "test.inc.h"
using namespace libdylib;
void run_tests()
{
TEST(!libdylib::last_error());
dylib lib(lib_path);
TEST(lib.is_open());
TEST(lib.get_handle());
TEST(!lib.open("foo"));
TEST(lib.close());
TEST(!lib.close());
TEST(!lib.open("foo"));
TEST(... | 26.311688 | 107 | 0.567621 | lethosor |
54a50e92d2883d987d1ef80b8e0155fdf048a0f1 | 928 | hpp | C++ | src/Screen.hpp | Antonito/c8emu | 2997b3dcbf25cba9364c80d3b6d5a85f43b199fe | [
"MIT"
] | null | null | null | src/Screen.hpp | Antonito/c8emu | 2997b3dcbf25cba9364c80d3b6d5a85f43b199fe | [
"MIT"
] | null | null | null | src/Screen.hpp | Antonito/c8emu | 2997b3dcbf25cba9364c80d3b6d5a85f43b199fe | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <array>
namespace c8emu {
class Screen {
public:
Screen(std::uint32_t const width, std::uint32_t const height,
std::array<std::uint8_t, 0x800> const &gfx, std::array<bool, 16> &keys,
std::uint8_t const scaleFactor);
in... | 22.634146 | 80 | 0.672414 | Antonito |
54a5f6f9acc59d7a406c944983ec8216adfb7778 | 22,949 | cpp | C++ | SOC_Photon/src/Battery.cpp | davegutz/myStateOfCharge | d03dc5e92a9561d4b28be271d4eabe40b48b32ce | [
"MIT"
] | 1 | 2021-12-03T08:56:33.000Z | 2021-12-03T08:56:33.000Z | SOC_Photon/src/Battery.cpp | davegutz/myStateOfCharge | d03dc5e92a9561d4b28be271d4eabe40b48b32ce | [
"MIT"
] | null | null | null | SOC_Photon/src/Battery.cpp | davegutz/myStateOfCharge | d03dc5e92a9561d4b28be271d4eabe40b48b32ce | [
"MIT"
] | null | null | null | //
// MIT License
//
// Copyright (C) 2021 - Dave Gutz
//
// 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, modi... | 42.975655 | 231 | 0.632446 | davegutz |
54aae303e126317458f72e0ee85341964d116164 | 1,667 | cpp | C++ | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/writeengine/redistribute/we_redistribute.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/writeengine/redistribute/we_redistribute.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/writeengine/redistribute/we_redistribute.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | 2 | 2022-02-27T14:00:01.000Z | 2022-03-31T06:24:22.000Z | /* Copyright (C) 2014 InfiniDB, Inc.
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; version 2 of
the License.
This program is distributed in the hope that it will be useful,
but W... | 25.257576 | 77 | 0.695261 | zettadb |
54ab2a327565fb96afa48ba07573431d29e56942 | 2,001 | inl | C++ | Dev/Cpp/src/RendererGodot/Shaders/Model2D.inl | swimming92404/EffekseerForGodot3 | abb890364b2f0f0853b7893b5ec484c525bc5513 | [
"MIT"
] | 89 | 2021-02-17T04:06:54.000Z | 2022-03-31T08:40:26.000Z | Dev/Cpp/src/RendererGodot/Shaders/Model2D.inl | swimming92404/EffekseerForGodot3 | abb890364b2f0f0853b7893b5ec484c525bc5513 | [
"MIT"
] | 9 | 2021-03-14T22:51:24.000Z | 2022-03-29T21:24:14.000Z | Dev/Cpp/src/RendererGodot/Shaders/Model2D.inl | swimming92404/EffekseerForGodot3 | abb890364b2f0f0853b7893b5ec484c525bc5513 | [
"MIT"
] | 9 | 2021-03-05T06:21:34.000Z | 2022-03-10T18:08:20.000Z |
const char code[] =
#if !LIGHTING
R"(
render_mode unshaded;
)"
#endif
R"(
uniform mat4 ViewMatrix;
uniform mat4 ModelMatrix;
uniform vec4 ModelUV;
uniform vec4 ModelColor : hint_color;
)"
#if DISTORTION
R"(
uniform float DistortionIntensity;
uniform sampler2D DistortionTexture : hint_normal;
)"
#elif LIGHTING
R"(
... | 23.541176 | 115 | 0.703648 | swimming92404 |
54ae2681a994d03a0021072782ba6609098afe62 | 8,102 | cpp | C++ | test/leetcode/testProblem21to40.cpp | fyabc/LeetCode | 4a5c7dfdf8537059b98849f2a8ab1b5fafa45b9c | [
"MIT"
] | null | null | null | test/leetcode/testProblem21to40.cpp | fyabc/LeetCode | 4a5c7dfdf8537059b98849f2a8ab1b5fafa45b9c | [
"MIT"
] | null | null | null | test/leetcode/testProblem21to40.cpp | fyabc/LeetCode | 4a5c7dfdf8537059b98849f2a8ab1b5fafa45b9c | [
"MIT"
] | null | null | null | //
// Created by v-yaf on 12/17/2019.
//
#include "gtest/gtest.h"
#include "leetcode/problem21to30.cpp"
#include "leetcode/problem31to40.cpp"
using namespace std;
TEST(Problem21Test, Basic) {
Solution21 s;
auto ll1 = ListNode::fromInitList({1, 2, 4}), lr1 = ListNode::fromInitList({1, 3, 4});
auto r1 = L... | 29.569343 | 205 | 0.482967 | fyabc |
54b04987412002345d7c15d28c8b4b50d9d50b6b | 13,970 | cpp | C++ | src/shape_signatures/heat_kernel_signature.cpp | josefgraus/self_similiarity | c032daa3009f60fdc8a52c437a07c6e3ba2efe4b | [
"MIT"
] | 1 | 2021-02-25T09:35:14.000Z | 2021-02-25T09:35:14.000Z | src/shape_signatures/heat_kernel_signature.cpp | josefgraus/self_similarity | c032daa3009f60fdc8a52c437a07c6e3ba2efe4b | [
"MIT"
] | null | null | null | src/shape_signatures/heat_kernel_signature.cpp | josefgraus/self_similarity | c032daa3009f60fdc8a52c437a07c6e3ba2efe4b | [
"MIT"
] | 2 | 2021-02-25T09:35:15.000Z | 2021-08-12T13:26:38.000Z | #include "heat_kernel_signature.h"
#include <memory>
#include <exception>
#include <unsupported/Eigen/MatrixFunctions>
#include <cppoptlib/solver/lbfgsbsolver.h>
#include <geometry/patch.h>
#include <matching/threshold.h>
#include <matching/quadratic_bump.h>
#include <utilities/units.h>
#include <matching/constrain... | 29.978541 | 157 | 0.721546 | josefgraus |
2a5b668d11f4ffffb6010aef49e9ba94c4f7ab79 | 1,993 | hh | C++ | src/utils/field_sources/DipoleFieldSource.hh | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 17 | 2018-02-09T23:39:06.000Z | 2022-03-04T16:27:04.000Z | src/utils/field_sources/DipoleFieldSource.hh | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 22 | 2017-05-31T19:40:14.000Z | 2021-09-24T22:07:47.000Z | src/utils/field_sources/DipoleFieldSource.hh | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 37 | 2016-12-08T19:39:35.000Z | 2022-02-11T19:59:34.000Z | //////////////////////////////// -*- C++ -*- //////////////////////////////
//
// FILE NAME
// DipoleFieldSource.hh
//
// AUTHOR
// A. Shishlo
//
// CREATED
// 12/25/2020
//
// DESCRIPTION
// A class is an implementation of ShiftedFieldSource class.
// This class describes dipole magnetic field. It needs ... | 24.304878 | 83 | 0.556949 | LeoRya |
2a615a51da61ae8caa5e034aa95f45fd55c7c526 | 1,130 | cc | C++ | pegasus/ops/parsing_utils_test.cc | akhilbobby/pegasus | 4c00483789a4c5c4db58fef95e3f135940a4b82b | [
"Apache-2.0"
] | 1,270 | 2020-03-25T04:20:42.000Z | 2022-03-31T07:50:34.000Z | pegasus/ops/parsing_utils_test.cc | rohitsroch/pegasus | 1e029a8928e8fdfba6ec7b241f6fbce92e078740 | [
"Apache-2.0"
] | 199 | 2020-04-17T14:06:43.000Z | 2022-03-23T09:57:19.000Z | pegasus/ops/parsing_utils_test.cc | rohitsroch/pegasus | 1e029a8928e8fdfba6ec7b241f6fbce92e078740 | [
"Apache-2.0"
] | 276 | 2020-04-16T10:44:55.000Z | 2022-03-25T01:18:29.000Z | // Copyright 2020 The PEGASUS Authors..
//
// 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 agr... | 31.388889 | 75 | 0.722124 | akhilbobby |
2a615af8a5939932bff1e9fd2eabb884417d67d5 | 2,703 | cc | C++ | big-lalr/test/util-test.cc | hooddanielc/stone | e3bfd674e35a6e0c11a6985fb61cf63accb73a1a | [
"Apache-2.0"
] | null | null | null | big-lalr/test/util-test.cc | hooddanielc/stone | e3bfd674e35a6e0c11a6985fb61cf63accb73a1a | [
"Apache-2.0"
] | null | null | null | big-lalr/test/util-test.cc | hooddanielc/stone | e3bfd674e35a6e0c11a6985fb61cf63accb73a1a | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <lick/lick.h>
#include <big-lalr/util.h>
using namespace biglr;
FIXTURE(get_random_string_result) {
auto str1 = get_random_str(10);
auto str2 = get_random_str(10);
EXPECT_NE(str1, str2);
EXPECT_EQ(str1.size(), str2.size());
EXPECT_EQ(str1.siz... | 25.027778 | 85 | 0.657788 | hooddanielc |
2a61d539199b995b2cceadbe99ece28acdb5b1a3 | 5,716 | hpp | C++ | wz4/wz4frlib/chaosfx.hpp | wzman/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 47 | 2015-03-22T05:58:47.000Z | 2022-03-29T19:13:37.000Z | wz4/wz4frlib/chaosfx.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | null | null | null | wz4/wz4frlib/chaosfx.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 16 | 2015-12-31T08:13:18.000Z | 2021-03-09T02:07:30.000Z | /*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... | 24.744589 | 82 | 0.557208 | wzman |
2a63c16badf8f26ea5e07554ca9fde46ae33b0a6 | 6,743 | cpp | C++ | src/kernels/cpu/broadcast_v2.cpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | src/kernels/cpu/broadcast_v2.cpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | src/kernels/cpu/broadcast_v2.cpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | #include <backend/base/base_broadcast_v2.h>
#include <core/tensor_builder.h>
#include <global/operator_factory.h>
#include <backend/name.h>
#include <core/device.h>
#include <utils/assert.h>
#include <core/memory.h>
#include <numeric>
#include <kernels/cpu/operator_on_cpu.h>
#ifdef TS_USE_OPENMP
#include "kernels/com... | 34.403061 | 114 | 0.495625 | ViewFaceCore |
2a6592ea65d0d5efb94aee12373bf7caec7b72c3 | 2,844 | hpp | C++ | src/libField/Serialization.hpp | CD3/libField | 8aa93e21d3bbc01c38ecc3a6ea31bd4ceb8bbfd6 | [
"MIT"
] | null | null | null | src/libField/Serialization.hpp | CD3/libField | 8aa93e21d3bbc01c38ecc3a6ea31bd4ceb8bbfd6 | [
"MIT"
] | 5 | 2017-06-18T17:05:04.000Z | 2022-02-05T19:14:38.000Z | src/libField/Serialization.hpp | CD3/libField | 8aa93e21d3bbc01c38ecc3a6ea31bd4ceb8bbfd6 | [
"MIT"
] | null | null | null | #ifndef Serialization_hpp
#define Serialization_hpp
/** @file Serialization.hpp
* @brief Provides serialization support to library.
* @author C.D. Clark III
* @date 07/18/17
*/
#if SERIALIZATION_ENABLED
#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
#error \
"Boost member template friends must be disabled in order ... | 29.319588 | 88 | 0.677567 | CD3 |
2a6702b60db14ee7923639fada27f3582d2ed959 | 13,605 | cpp | C++ | dev/Code/Framework/AzToolsFramework/AzToolsFramework/Manipulators/LinearManipulator.cpp | yuriy0/lumberyard | 18ab07fd38492d88c34df2a3e061739d96747e13 | [
"AML"
] | null | null | null | dev/Code/Framework/AzToolsFramework/AzToolsFramework/Manipulators/LinearManipulator.cpp | yuriy0/lumberyard | 18ab07fd38492d88c34df2a3e061739d96747e13 | [
"AML"
] | null | null | null | dev/Code/Framework/AzToolsFramework/AzToolsFramework/Manipulators/LinearManipulator.cpp | yuriy0/lumberyard | 18ab07fd38492d88c34df2a3e061739d96747e13 | [
"AML"
] | null | null | null | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 47.239583 | 133 | 0.722528 | yuriy0 |
2a676f2c1010003498275994a15dc60ffb6408d4 | 246 | hpp | C++ | inc/serializable/serializable.hpp | rahulyesantharao/b-epsilon_tree | ac821d801b42b2877e309ccc163a03fe2378abb7 | [
"MIT"
] | 12 | 2020-04-10T22:51:40.000Z | 2021-12-10T16:51:38.000Z | inc/serializable/serializable.hpp | rahulyesantharao/b-epsilon_tree | ac821d801b42b2877e309ccc163a03fe2378abb7 | [
"MIT"
] | null | null | null | inc/serializable/serializable.hpp | rahulyesantharao/b-epsilon_tree | ac821d801b42b2877e309ccc163a03fe2378abb7 | [
"MIT"
] | 3 | 2020-10-29T15:59:43.000Z | 2022-03-13T04:47:04.000Z | #ifndef SERIALIZABLE_H
#define SERIALIZABLE_H
#include <block_manager/block_manager.hpp>
class Serializable {
public:
virtual int Serialize(Block *disk_store, int pos) = 0;
virtual void Deserialize(const Block &disk_store) = 0;
};
#endif
| 18.923077 | 56 | 0.764228 | rahulyesantharao |
2a69bb77e9d7465d497e2d7f879468c60767eaec | 2,854 | cpp | C++ | source/ui/framework/box_element.cpp | ThatNerdyPikachu/Tinfoil | abef7e3648f483368301b43611017c7ffa6f6fc2 | [
"MIT"
] | 9 | 2020-12-24T00:12:29.000Z | 2022-02-22T11:37:45.000Z | source/ui/framework/box_element.cpp | skvaznoi/Tinfoil | abef7e3648f483368301b43611017c7ffa6f6fc2 | [
"MIT"
] | null | null | null | source/ui/framework/box_element.cpp | skvaznoi/Tinfoil | abef7e3648f483368301b43611017c7ffa6f6fc2 | [
"MIT"
] | 1 | 2020-07-20T01:30:03.000Z | 2020-07-20T01:30:03.000Z | #include "ui/framework/box_element.hpp"
#include "util/graphics_util.hpp"
#include "error.hpp"
namespace tin::ui
{
BoxElement::BoxElement(u32 width, u32 height) :
Element(width, height)
{
}
void BoxElement::Draw(Canvas canvas, Position position)
{
// There is nothing to draw if t... | 31.362637 | 151 | 0.555011 | ThatNerdyPikachu |
2a6a0467492016eda54fb84e038ce129e2f27e3c | 4,039 | hpp | C++ | include/Plane.hpp | tyduptyler13/MyEngine | 6081686eb0f3357b9046f82a7aecafa691c3b05b | [
"MIT"
] | 7 | 2018-10-27T02:55:07.000Z | 2021-12-31T20:20:33.000Z | include/Plane.hpp | MyUPlay/MyEngine | 6081686eb0f3357b9046f82a7aecafa691c3b05b | [
"MIT"
] | 2 | 2016-12-12T21:00:31.000Z | 2018-02-12T00:43:02.000Z | include/Plane.hpp | tyduptyler13/MyEngine | 6081686eb0f3357b9046f82a7aecafa691c3b05b | [
"MIT"
] | 2 | 2018-08-30T05:47:09.000Z | 2021-03-03T05:37:35.000Z | #pragma once
#include <stdexcept>
#include "Vector3.hpp"
#include "Sphere.hpp"
#include "Line3.hpp"
#include "Matrix4.hpp"
#include "Matrix3.hpp"
namespace MyEngine {
template<typename T = float>
class Plane {
public:
Vector3<T> normal;
T constant;
Plane() : normal(1, 0, 0), constant(0) {}
Plane(con... | 22.314917 | 95 | 0.665511 | tyduptyler13 |
2a6b274a5bd14e6af1a96918d94d45122af4d020 | 1,124 | cpp | C++ | Striver SDE Sheet/Day - 19 (Binary Tree)/Construct BTree from Inorder and Preorder(Hard).cpp | HariAcidReign/Striver-SDE-Solutions | 80757b212abe479f3975b890398a8d877ebfd41e | [
"MIT"
] | 25 | 2021-08-17T04:04:41.000Z | 2022-03-16T07:43:30.000Z | Striver SDE Sheet/Day - 19 (Binary Tree)/Construct BTree from Inorder and Preorder(Hard).cpp | hashwanthalla/Striver-Sheets-Resources | 80757b212abe479f3975b890398a8d877ebfd41e | [
"MIT"
] | null | null | null | Striver SDE Sheet/Day - 19 (Binary Tree)/Construct BTree from Inorder and Preorder(Hard).cpp | hashwanthalla/Striver-Sheets-Resources | 80757b212abe479f3975b890398a8d877ebfd41e | [
"MIT"
] | 8 | 2021-08-18T02:02:23.000Z | 2022-02-11T06:05:07.000Z | // Hari
class Solution {
public:
int idx = 0;
unordered_map<int, int> m;
TreeNode* helper(vector<int>preorder, vector<int>inorder, int start, int end){
// traverse preorder
if(start > end) return nullptr; // base case
TreeNode* curr = new TreeNode(preorder[idx++]);
if(s... | 35.125 | 84 | 0.580071 | HariAcidReign |
2a6d236483e63b3d8786d3292f6145af6fad3e3b | 958 | cpp | C++ | editor/LevelEditor.cpp | ronsaldo/loden | 6178482abe5c3a0f05448649d6bfd7c61b054355 | [
"MIT"
] | null | null | null | editor/LevelEditor.cpp | ronsaldo/loden | 6178482abe5c3a0f05448649d6bfd7c61b054355 | [
"MIT"
] | null | null | null | editor/LevelEditor.cpp | ronsaldo/loden | 6178482abe5c3a0f05448649d6bfd7c61b054355 | [
"MIT"
] | null | null | null | #include "LevelEditor.hpp"
#include "MainFrame.hpp"
namespace Loden
{
namespace LevelEditor
{
bool LevelEditor::initialize()
{
// Create the system window
screen = GUI::SystemWindow::create(engine, "Loden Level Editor", 1024, 768);
if (!screen)
return false;
mainFrame = MainFrame::create(this... | 17.418182 | 80 | 0.697286 | ronsaldo |
2a6e3d85156ca5a10346d5dc5b575123f64af19f | 2,101 | cpp | C++ | src/audio.cpp | Cc618/Tiny-Saw | e15447e05cd5a54a99bc0e7636214e8fda44caa0 | [
"MIT"
] | null | null | null | src/audio.cpp | Cc618/Tiny-Saw | e15447e05cd5a54a99bc0e7636214e8fda44caa0 | [
"MIT"
] | null | null | null | src/audio.cpp | Cc618/Tiny-Saw | e15447e05cd5a54a99bc0e7636214e8fda44caa0 | [
"MIT"
] | null | null | null | #include "audio.h"
#include <portaudio.h>
#include "consts.h"
#include "audiohandler.h"
#include "input.h"
namespace audio
{
// Global Variables //
float mainVolume = .5f;
float unisonPitch = 0.f;
float unisonPhase = 0.f;
static PaStream *stream;
static AudioHandler audio;
// Intern Fun... | 24.717647 | 73 | 0.537839 | Cc618 |
2a722c31cdb4c459fc0986aa3c8189d900650a90 | 86,907 | cpp | C++ | Engine/source/interior/interior.cpp | baktubak/Torque3D | c26235c5b81ed55b231af86254d740ce17540d25 | [
"MIT"
] | 6 | 2015-06-01T15:44:43.000Z | 2021-01-07T06:50:21.000Z | Engine/source/interior/interior.cpp | timmgt/Torque3D | ebc6c9cf3a2c7642b2cd30be3726810a302c3deb | [
"Unlicense"
] | null | null | null | Engine/source/interior/interior.cpp | timmgt/Torque3D | ebc6c9cf3a2c7642b2cd30be3726810a302c3deb | [
"Unlicense"
] | 10 | 2015-01-05T15:58:31.000Z | 2021-11-20T14:05:46.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | 32.844671 | 130 | 0.558735 | baktubak |
2a73a0677563f7662cc6c10b8cd50885ef91645b | 51 | hpp | C++ | src/boost_type_traits_has_pre_increment.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_type_traits_has_pre_increment.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_type_traits_has_pre_increment.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/type_traits/has_pre_increment.hpp>
| 25.5 | 50 | 0.843137 | miathedev |
2a73d8f6d62a04bb23f4877e543e931268253c59 | 1,472 | cc | C++ | backend/place_test.cc | zyw199515/hive-cpp | b4b9f8d9446476f94ffb3ee0fbaec19f232c2879 | [
"MIT"
] | null | null | null | backend/place_test.cc | zyw199515/hive-cpp | b4b9f8d9446476f94ffb3ee0fbaec19f232c2879 | [
"MIT"
] | null | null | null | backend/place_test.cc | zyw199515/hive-cpp | b4b9f8d9446476f94ffb3ee0fbaec19f232c2879 | [
"MIT"
] | null | null | null |
#include "backend/place.h"
#include "glog/logging.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
using namespace hive;
// Test samples are constructed according to official ruling book examples.
TEST(PlaceTest, GetPlacePieceTypes) {
HiveState state;
state.active_player = Side::kBlack;
state.black_piece_... | 38.736842 | 100 | 0.685462 | zyw199515 |
2a744e8a6057669732ce7218660b84a098f1295d | 704 | cpp | C++ | hackerrank/bs_MaximumSubarraySum.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | hackerrank/bs_MaximumSubarraySum.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | hackerrank/bs_MaximumSubarraySum.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
void solve() {
ll n, mod;
cin >> n >> mod;
vector<ll> pref(n);
ll crt = 0;
for (int i = 0; i < n; i++) {
ll x; cin >> x;
x %= mod;
crt = (crt + x) % mod;
pref[i] = crt;
}
set<ll> s;
s.ins... | 19.027027 | 44 | 0.444602 | sogapalag |
2a74c014ed2e2775784522dbce71e21211697aab | 4,787 | cpp | C++ | ShareLib/DBCmd.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | ShareLib/DBCmd.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | ShareLib/DBCmd.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | 1 | 2022-01-17T09:34:39.000Z | 2022-01-17T09:34:39.000Z | #include <boost/format.hpp>
#include "bnf.h"
#include "logsystem.h"
#include "DBCmd.h"
#include "PrintExcuteInfo.h"
CDBCmd::CDBCmd()
: m_dbconn(NULL)
, m_nrecords(0)
, m_res(NULL)
, m_row(NULL)
, m_fieldinfo(NULL)
, m_nfields(0)
{
}
CDBCmd::CDBCmd(MYSQL* mysql)
: m_dbconn(mysql)
, m_nrecords(0)
, m_res(NULL)... | 15.956667 | 121 | 0.633382 | openlastchaos |
2a76b7d6750f1cdf37b9f4d40dd7ed485a45f9d7 | 3,464 | cpp | C++ | src/Profiling/denoise-profiling/src/denoise_multiple.cpp | sayandipde/approx_ibc | b8878ed24accab2a32a51cac9d0cdc6f61a49e75 | [
"Apache-2.0"
] | 1 | 2021-01-12T07:33:15.000Z | 2021-01-12T07:33:15.000Z | src/Profiling/denoise-profiling/src/denoise_multiple.cpp | sayandipde/approx_ibc | b8878ed24accab2a32a51cac9d0cdc6f61a49e75 | [
"Apache-2.0"
] | null | null | null | src/Profiling/denoise-profiling/src/denoise_multiple.cpp | sayandipde/approx_ibc | b8878ed24accab2a32a51cac9d0cdc6f61a49e75 | [
"Apache-2.0"
] | 3 | 2020-09-29T22:43:07.000Z | 2021-01-23T08:08:41.000Z | /*
* Copyright (c) 2020 sayandipde
* Eindhoven University of Technology
* Eindhoven, The Netherlands
*
* Name : image_signal_processing.cpp
*
* Authors : Sayandip De (sayandip.de@tue.nl)
* Sajid Mohamed (s.mohamed@tue.nl)
*
* Date : March 26, 2020
*
* Function ... | 28.393443 | 130 | 0.626155 | sayandipde |
2a773aeadc27cee30e75bd0534fa1903ce803f61 | 1,385 | cpp | C++ | 1311-F.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | 1311-F.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | 1 | 2020-02-24T19:45:57.000Z | 2020-02-24T19:45:57.000Z | 1311-F.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null |
// . . . . . . . . Not Completed
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// Author : Ankit Raj
// Problem Name : Moving Points
// Problem Link : https://codeforces.com/contest/1311/problem/F
// * * * ... | 23.083333 | 90 | 0.46426 | ankiiitraj |
2a77663897a5deb811771a974f08997a5e952519 | 101 | cpp | C++ | lldb/test/API/lang/cpp/elaborated-types/main.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | lldb/test/API/lang/cpp/elaborated-types/main.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | lldb/test/API/lang/cpp/elaborated-types/main.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | struct Struct {
int x;
};
int main() {
Struct use;
use.x = 3;
return use.x; // break here
}
| 10.1 | 29 | 0.554455 | mkinsner |
2a7df292397a18f6003ec9edf48bc85571e4bb2a | 140 | cpp | C++ | Projects/Sample/source/main.cpp | Nohzmi/Reflectpp | 35a340f277ef374c9f9aeef89849918fdf7c2848 | [
"BSD-3-Clause"
] | 3 | 2021-02-16T23:01:49.000Z | 2021-03-10T16:13:55.000Z | Projects/Sample/source/main.cpp | Nohzmi/Reflectpp | 35a340f277ef374c9f9aeef89849918fdf7c2848 | [
"BSD-3-Clause"
] | null | null | null | Projects/Sample/source/main.cpp | Nohzmi/Reflectpp | 35a340f277ef374c9f9aeef89849918fdf7c2848 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2020, Nohzmi. All rights reserved.
#include "window.h"
int main()
{
Window app;
app.Update();
return EXIT_SUCCESS;
}
| 11.666667 | 51 | 0.671429 | Nohzmi |