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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6fcd18ed8a983cb176aaf53745e195587724393c | 2,356 | cpp | C++ | src/Core/Subsystems/Window/Window.cpp | tmarrec/cowboy-engine | 55ee5a6cabe1834e62c1bd2497cce0fd63114c94 | [
"MIT"
] | null | null | null | src/Core/Subsystems/Window/Window.cpp | tmarrec/cowboy-engine | 55ee5a6cabe1834e62c1bd2497cce0fd63114c94 | [
"MIT"
] | null | null | null | src/Core/Subsystems/Window/Window.cpp | tmarrec/cowboy-engine | 55ee5a6cabe1834e62c1bd2497cce0fd63114c94 | [
"MIT"
] | null | null | null | #include "Window.h"
#include "../Renderer/Renderer.h"
#include "../Input/InputManager.h"
extern Renderer g_Renderer;
extern InputManager g_InputManager;
// Init GLFW
Window::Window()
{
if (glfwInit() != GLFW_TRUE)
{
ERROR_EXIT("Failed to initialize GLFW.");
}
glfwSetErrorCallback(&Windo... | 23.326733 | 89 | 0.716469 | tmarrec |
6fd08a40ab435d35cea9f6a1b157f5f8b589a06f | 13,277 | cpp | C++ | tests/strings_split_test.cpp | kingsamchen/esl | 9a1f02cbea4902ab110ce7e9457f226a2c2c3375 | [
"MIT"
] | null | null | null | tests/strings_split_test.cpp | kingsamchen/esl | 9a1f02cbea4902ab110ce7e9457f226a2c2c3375 | [
"MIT"
] | null | null | null | tests/strings_split_test.cpp | kingsamchen/esl | 9a1f02cbea4902ab110ce7e9457f226a2c2c3375 | [
"MIT"
] | null | null | null | // Copyright (c) 2022 Kingsley Chen <kingsamchen at gmail dot com>
// This file is subject to the terms of license that can be found
// in the LICENSE file.
#include <deque>
#include <forward_list>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <string_view>
... | 39.397626 | 98 | 0.572494 | kingsamchen |
6fd76b6e14f6fb2194d97301c1df08ceaa281187 | 3,380 | cpp | C++ | Chapter 4/CppPrimer_Sec4.8/CppPrimer_Sec4.8/main.cpp | toddbrentlinger/Cpp-Primer-5th-Edition | 24594e1c8ae4cd5e28508d2e51f53631246efc18 | [
"MIT"
] | null | null | null | Chapter 4/CppPrimer_Sec4.8/CppPrimer_Sec4.8/main.cpp | toddbrentlinger/Cpp-Primer-5th-Edition | 24594e1c8ae4cd5e28508d2e51f53631246efc18 | [
"MIT"
] | null | null | null | Chapter 4/CppPrimer_Sec4.8/CppPrimer_Sec4.8/main.cpp | toddbrentlinger/Cpp-Primer-5th-Edition | 24594e1c8ae4cd5e28508d2e51f53631246efc18 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using std::cout; using std::cin; using std::endl;
using std::string;
void Section48();
void Exercise425();
void Exercise426();
void Exercise427();
inline void NewSection(const string &text = "")
{
cout << "\n\t" << text << "\n" << endl;
}
int main()
{
Sect... | 21.666667 | 75 | 0.601183 | toddbrentlinger |
6fdb6745bc5feb92588f0bfca2eb7e0c5b05615d | 4,764 | cpp | C++ | 2SidesMatching.cpp | TarekProjects/Game-Theory | 854c97a89cab4c3879cb0dc3e8e52aa170287fc8 | [
"MIT"
] | null | null | null | 2SidesMatching.cpp | TarekProjects/Game-Theory | 854c97a89cab4c3879cb0dc3e8e52aa170287fc8 | [
"MIT"
] | null | null | null | 2SidesMatching.cpp | TarekProjects/Game-Theory | 854c97a89cab4c3879cb0dc3e8e52aa170287fc8 | [
"MIT"
] | null | null | null | // 2SidesMatching.cpp
#include <iostream>
#include <string.h>
#include <stdio.h>
using namespace std;
// Number of Men or Women
// Need to change the N
// regarding the size of the matching
#define N 8 //4
// This function returns true if woman 'w' prefers man 'm1' over man 'm'
bool womanPrefersM1overM(int prefer[2... | 34.028571 | 114 | 0.451511 | TarekProjects |
6fe941234485592fb6d8a4ad7eced97f2b274b78 | 307 | hpp | C++ | src/javax/xml/bind/attachment/fwd-POI.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/javax/xml/bind/attachment/fwd-POI.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/javax/xml/bind/attachment/fwd-POI.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Forward declarations for javax.xml.bind.attachment
#pragma once
namespace javax
{
namespace xml
{
namespace bind
{
namespace attachment
{
class AttachmentUnmarshaller;
} // attachment
} // bind
} // xml
} // javax
| 17.055556 | 53 | 0.52443 | pebble2015 |
6feb163bfa606b7b3790026da1e298fa452d2c4c | 7,108 | cpp | C++ | tc 160+/RobotRace.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/RobotRace.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/RobotRace.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <cctype>
#include <queue>
using namespace std;
vector<string> B;
int M, N;
int dist[26][26]; // robot to token
int match[26]; // robot to tok... | 34.843137 | 364 | 0.541503 | ibudiselic |
6fed2b7df1f6ea96184bd839868322731bf75c19 | 2,403 | cc | C++ | iridium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc | behemoth3663/ports_local | ad57042ae62c907f9340ee696f468fdfeb562a8b | [
"BSD-3-Clause"
] | 1 | 2022-02-08T02:24:08.000Z | 2022-02-08T02:24:08.000Z | iridium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc | behemoth3663/ports_local | ad57042ae62c907f9340ee696f468fdfeb562a8b | [
"BSD-3-Clause"
] | null | null | null | iridium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc | behemoth3663/ports_local | ad57042ae62c907f9340ee696f468fdfeb562a8b | [
"BSD-3-Clause"
] | null | null | null | --- chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc.orig 2020-03-16 18:40:30 UTC
+++ chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -224,11 +224,11 @@
#include "chrome/browser/ui/webui/conflicts/conflicts_ui.h"
#endif
-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
+#if d... | 42.910714 | 92 | 0.715356 | behemoth3663 |
6fef629815347e48be9d5336d1bf768c9d8b2ee9 | 152 | hpp | C++ | GraphicRepresentation.hpp | Juk3n/SpaceStationSimulation | 159bfcac0082d28411246b48b28c5a5fad5d3523 | [
"MIT"
] | 1 | 2020-04-09T18:32:46.000Z | 2020-04-09T18:32:46.000Z | GraphicRepresentation.hpp | Juk3n/SpaceStationSimulation | 159bfcac0082d28411246b48b28c5a5fad5d3523 | [
"MIT"
] | null | null | null | GraphicRepresentation.hpp | Juk3n/SpaceStationSimulation | 159bfcac0082d28411246b48b28c5a5fad5d3523 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
struct GraphicRepresentation {
std::string graphic;
GraphicRepresentation(std::string g) : graphic(g) {
}
}; | 13.818182 | 54 | 0.690789 | Juk3n |
6ff7e5810189a19afc1aaa91ca023d4c167ccfc6 | 1,504 | hh | C++ | include/device/stm32f4xx/hal/dbg_t.hh | no111u3/stm32cclib | 172087dab568f1452755df6e9f8624930fc10396 | [
"Apache-2.0"
] | 24 | 2018-04-26T20:06:31.000Z | 2022-03-19T18:45:57.000Z | include/device/stm32f4xx/hal/dbg_t.hh | no111u3/stm32cclib | 172087dab568f1452755df6e9f8624930fc10396 | [
"Apache-2.0"
] | null | null | null | include/device/stm32f4xx/hal/dbg_t.hh | no111u3/stm32cclib | 172087dab568f1452755df6e9f8624930fc10396 | [
"Apache-2.0"
] | 9 | 2018-01-22T11:40:53.000Z | 2022-03-23T20:03:19.000Z | #ifndef DBG_T_HH
#define DBG_T_HH
#include "hal/common/dbg_common_t.hh"
namespace hal {
using dbg_config_sleep = lib::regbit<0>;
using dbg_config_stop = lib::regbit<1>;
using dbg_config_standby = lib::regbit<2>;
using dbg_config_trace_ioen = lib::regbit<5>;
using dbg_config_trace_mode =
li... | 37.6 | 59 | 0.72141 | no111u3 |
6ff928c0ff1955a3accfbc34f1a417db072df0c5 | 2,164 | cpp | C++ | source/Graphics/Animation/rotate.cpp | deadmann/cerberus | 749f8e90bd87b2d8737c57a599979939b2774916 | [
"BSD-2-Clause"
] | null | null | null | source/Graphics/Animation/rotate.cpp | deadmann/cerberus | 749f8e90bd87b2d8737c57a599979939b2774916 | [
"BSD-2-Clause"
] | null | null | null | source/Graphics/Animation/rotate.cpp | deadmann/cerberus | 749f8e90bd87b2d8737c57a599979939b2774916 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2010 Steven Noonan <steven@uplinklabs.net>
* and Miah Clayton <miah@ferrousmoon.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistribut... | 34.349206 | 88 | 0.704251 | deadmann |
b502f896e70a5425d6ad9cfa706f41b1d769763c | 1,204 | cc | C++ | CLHEP/Combination/Lockable.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | CLHEP/Combination/Lockable.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | CLHEP/Combination/Lockable.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | // -*- C++ -*-
// $Id: Lockable.cc 600 2010-06-21 07:46:30Z stroili $
//
// Lockable.cc -- classes dealing with combinatorics
//
#ifdef GNUPRAGMA
#pragma implementation
#endif
#include <iostream>
#include "CLHEP/Combination/Lockable.h"
ClassId HepLockable::ClassID() {
static int x; return &x;
}
unsigned long Hep... | 21.122807 | 72 | 0.618771 | brownd1978 |
b513224abc39a245c066bad03e1fda6c58a78c34 | 7,264 | cpp | C++ | simulator/modules/execute/execute.cpp | jamzrob/mipt-mips | 1ae47ac16967d4132d5f4a2ac486b18147660c16 | [
"MIT"
] | 10 | 2021-03-10T13:22:15.000Z | 2021-03-12T23:09:42.000Z | simulator/modules/execute/execute.cpp | jamzrob/mipt-mips | 1ae47ac16967d4132d5f4a2ac486b18147660c16 | [
"MIT"
] | null | null | null | simulator/modules/execute/execute.cpp | jamzrob/mipt-mips | 1ae47ac16967d4132d5f4a2ac486b18147660c16 | [
"MIT"
] | null | null | null | /**
* execute.cpp - Simulation of execute units
* Copyright 2015-2018 MIPT-MIPS
*/
#include <infra/config/config.h>
#include "execute.h"
namespace config {
Value<uint64> complex_alu_latency = { "complex-alu-latency", 3, "Latency of complex arithmetic logic unit"};
} // namespace config
template <typename IS... | 37.061224 | 139 | 0.64565 | jamzrob |
b51deadbb193e6e4d3ed2ec92ede1bc51c5a0761 | 719 | cpp | C++ | RemoteForceInterface.cpp | CFD-GO/RemoteForceInterface | 0f4093a78e0f9104131144e8d4852ae8de14ed42 | [
"MIT"
] | 2 | 2018-07-01T18:09:58.000Z | 2020-12-29T04:11:35.000Z | RemoteForceInterface.cpp | CFD-GO/RemoteForceInterface | 0f4093a78e0f9104131144e8d4852ae8de14ed42 | [
"MIT"
] | 1 | 2019-01-02T21:21:23.000Z | 2019-01-02T21:21:23.000Z | RemoteForceInterface.cpp | CFD-GO/RemoteForceInterface | 0f4093a78e0f9104131144e8d4852ae8de14ed42 | [
"MIT"
] | null | null | null | #include "RemoteForceInterface.hpp"
namespace rfi {
template class RemoteForceInterface< ForceCalculator, RotParticle >;
template class RemoteForceInterface< ForceCalculator, NRotParticle >;
template class RemoteForceInterface< ForceCalculator, RotParticle, StructureOfArrays >;
template class RemoteFor... | 59.916667 | 92 | 0.815021 | CFD-GO |
b5225cbacdf2f7544d9cc417051600c40f607c39 | 625 | hpp | C++ | NWNXLib/API/API/CVirtualMachineDebugLoader.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 111 | 2018-01-16T18:49:19.000Z | 2022-03-13T12:33:54.000Z | NWNXLib/API/API/CVirtualMachineDebugLoader.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 636 | 2018-01-17T10:05:31.000Z | 2022-03-28T20:06:03.000Z | NWNXLib/API/API/CVirtualMachineDebugLoader.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 110 | 2018-01-16T19:05:54.000Z | 2022-03-28T03:44:16.000Z | #pragma once
#include "nwn_api.hpp"
#include "CResHelper.hpp"
#include "CResNDB.hpp"
#ifdef NWN_API_PROLOGUE
NWN_API_PROLOGUE(CVirtualMachineDebugLoader)
#endif
struct CExoString;
typedef int BOOL;
struct CVirtualMachineDebugLoader : CResHelper<CResNDB, 2064>
{
BOOL m_bLoaded;
int32_t DemandDebugInfo(C... | 16.447368 | 61 | 0.792 | summonFox |
dde3dbb3fd69d631ca24807ba65cb211d4aa138f | 632 | hpp | C++ | src/operators.hpp | egel-lang/egel | a05c176067a721ffa0d5789bd62815e224f91ca5 | [
"MIT"
] | 48 | 2017-04-26T15:54:16.000Z | 2022-03-28T15:30:41.000Z | src/operators.hpp | egel-lang/egel | a05c176067a721ffa0d5789bd62815e224f91ca5 | [
"MIT"
] | 4 | 2018-09-27T00:01:06.000Z | 2022-01-11T22:46:33.000Z | src/operators.hpp | egel-lang/egel | a05c176067a721ffa0d5789bd62815e224f91ca5 | [
"MIT"
] | 6 | 2018-03-17T19:09:35.000Z | 2022-03-28T23:01:12.000Z | #ifndef OPERATORS_HPP
#define OPERATORS_HPP
#include "utils.hpp"
#define OPERATOR_BOTTOM "="
int operator_compare(const icu::UnicodeString& o0, const icu::UnicodeString& o1);
bool operator_is_infix(const icu::UnicodeString& o);
bool operator_is_prefix(const icu::UnicodeString& o);
bool operator_is_post... | 30.095238 | 85 | 0.780063 | egel-lang |
ddeb47a153b8775ba0b07d548c732626813a6d39 | 2,336 | hpp | C++ | src/BoxedOptional.hpp | geoffsiuciak/CaffQL | 6603abbf86a0ef9f5293b0ff2a0cd808d13e48ee | [
"MIT"
] | 20 | 2019-06-28T17:46:40.000Z | 2022-03-30T22:20:51.000Z | src/BoxedOptional.hpp | geoffsiuciak/CaffQL | 6603abbf86a0ef9f5293b0ff2a0cd808d13e48ee | [
"MIT"
] | 2 | 2020-03-30T11:04:41.000Z | 2021-07-29T16:48:05.000Z | src/BoxedOptional.hpp | geoffsiuciak/CaffQL | 6603abbf86a0ef9f5293b0ff2a0cd808d13e48ee | [
"MIT"
] | 4 | 2020-03-31T09:16:49.000Z | 2021-05-19T05:17:46.000Z | #pragma once
#include "Json.hpp"
namespace caffql {
template <typename T>
struct BoxedOptional {
BoxedOptional() = default;
BoxedOptional(T value) : value{std::make_unique<T>(std::move(value))} {}
BoxedOptional(BoxedOptional const & optional) { *this = optional; }
BoxedOptional & operator=(BoxedOp... | 22.679612 | 83 | 0.576627 | geoffsiuciak |
ddee87c5a0568ca26009abcea8b9ecee985d3fb5 | 5,153 | cpp | C++ | src/context/synthwrapper.cpp | alargepileofash/in-formant | 3fc77925b68e349b96d7cf20c00223a4b343d04d | [
"Apache-2.0"
] | 55 | 2020-10-07T20:22:22.000Z | 2021-08-28T10:58:36.000Z | src/context/synthwrapper.cpp | alargepileofash/in-formant | 3fc77925b68e349b96d7cf20c00223a4b343d04d | [
"Apache-2.0"
] | 16 | 2020-12-06T22:02:38.000Z | 2021-08-19T09:37:56.000Z | src/context/synthwrapper.cpp | alargepileofash/in-formant | 3fc77925b68e349b96d7cf20c00223a4b343d04d | [
"Apache-2.0"
] | 11 | 2019-12-16T16:06:19.000Z | 2020-04-15T15:28:31.000Z | #ifndef WITHOUT_SYNTH
#include "synthwrapper.h"
#include <QSplineSeries>
#include <cfloat>
using namespace Main;
SynthWrapper::SynthWrapper()
: mEnabled(false),
mNoiseGain(0.3),
mGlotGain(1.0),
mGlotPitch(170),
mGlotRd(1.7),
mGlotTc(1.0),
mFilterShift(1.0),
mVoiced(true)... | 22.11588 | 115 | 0.665049 | alargepileofash |
ddef9dfa63eac601d96ec4c3dd13dc4136a8b6d5 | 899 | cpp | C++ | solutions/Easy/1893. Check if All the Integers in a Range Are Covered/solution2.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | solutions/Easy/1893. Check if All the Integers in a Range Are Covered/solution2.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | solutions/Easy/1893. Check if All the Integers in a Range Are Covered/solution2.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
class Solution {
public:
bool isCovered(vector<vector<int>>& ranges, int left, int right) {
bool flags[51];
memset(flags, false, sizeof(flags));
for (auto it = ranges.begin(); it != ranges.end(); it++) {
fill(flags + *(*it).begin(), flags +... | 26.441176 | 81 | 0.502781 | BASARANOMO |
ddf69fd22dc3781db12f59d0af5b357dcb945ef3 | 5,328 | cpp | C++ | development/Common/Utility/source/Metrics/Concurrency.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | null | null | null | development/Common/Utility/source/Metrics/Concurrency.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | 44 | 2018-06-28T03:01:44.000Z | 2022-03-20T19:53:00.000Z | development/Common/Utility/source/Metrics/Concurrency.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | null | null | null | #include "Metrics/Concurrency.h"
#include "Debugging/DevConfiguration.h"
#include "Metrics/PerformanceTracer.h"
#include "Platform/Support.h"
#include <filesystem>
namespace fs = std::filesystem;
#if YAGET_CONC_METRICS_ENABLED == 1
#include <atlbase.h>
YAGET_COMPILE_GLOBAL_SETTINGS("(WIP) Concurenty Metri... | 30.976744 | 136 | 0.689752 | eglowacki |
ddf8fe56326cecccac5699013e014f15dc872cec | 441 | cpp | C++ | sources/libcpp55iip_scan/tw_win_l2_dss_imagelayout_set.cpp | Savraska2/GTS | 78c8b4d634f1379eb3e33642716717f53bf7e1ad | [
"BSD-3-Clause"
] | 61 | 2016-03-26T03:04:43.000Z | 2021-09-17T02:11:18.000Z | sources/libcpp55iip_scan/tw_win_l2_dss_imagelayout_set.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 92 | 2016-04-10T23:40:22.000Z | 2022-03-11T21:49:12.000Z | sources/libcpp55iip_scan/tw_win_l2_dss_imagelayout_set.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 18 | 2016-03-26T11:19:14.000Z | 2021-08-07T00:26:02.000Z | #include "pri.h"
#include "tw_win_l2_dss.h"
int tw_win_l2_dss::_imagelayout_set( TW_IMAGELAYOUT *p_tw_imagelayout )
{
TW_UINT16 rc;
rc = this->ds_entry(
DG_IMAGE,DAT_IMAGELAYOUT,MSG_SET,
(TW_MEMREF *)p_tw_imagelayout
);
if (TWRC_SUCCESS != rc) {
if (OK != this->ds_pri_error(
"DG_IMAGE,DAT_IMAGELAYOUT,MSG... | 19.173913 | 71 | 0.696145 | Savraska2 |
ddfeacd9f7cd5b0f32774d9a4d851f53178eeea5 | 2,589 | cpp | C++ | src/pot.cpp | romz-pl/kohn-sham-atom | f8d87850469097ed39ba855b50df46787b1c3114 | [
"MIT"
] | 1 | 2022-02-24T03:48:19.000Z | 2022-02-24T03:48:19.000Z | src/pot.cpp | romz-pl/kohn-sham-atom | f8d87850469097ed39ba855b50df46787b1c3114 | [
"MIT"
] | null | null | null | src/pot.cpp | romz-pl/kohn-sham-atom | f8d87850469097ed39ba855b50df46787b1c3114 | [
"MIT"
] | null | null | null | #include <cassert>
#include "pot.h"
#include "exchslater.h"
#include "corrvwn.h"
#include "constants.h"
#include "paramdb.h"
#include <stdexcept>
//
// Constructor
//
Pot::Pot( )
: m_z( ParamDb::GetDouble( "Atom_Proton" ) )
{
SetXc( );
}
//
// Returns value of electron density for radius "r"
//
double Pot:... | 17.26 | 89 | 0.609888 | romz-pl |
fb0eef1467ac8597505243de5d17aa690fd3d7a4 | 4,975 | hpp | C++ | libs/EventManager/EventManager.hpp | KillianG/R-Type | e3fd801ae58fcea49ac75c400ec0a2837cb0da2e | [
"MIT"
] | 1 | 2019-08-14T12:31:50.000Z | 2019-08-14T12:31:50.000Z | libs/EventManager/EventManager.hpp | KillianG/R-Type | e3fd801ae58fcea49ac75c400ec0a2837cb0da2e | [
"MIT"
] | null | null | null | libs/EventManager/EventManager.hpp | KillianG/R-Type | e3fd801ae58fcea49ac75c400ec0a2837cb0da2e | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <algorithm>
#include <functional>
#include <unordered_map>
#include <algorithm>
#include "Receiver.hpp"
#include "BaseEvent.hpp"
#include "ClassTypeId.hpp"
/**
* @brief CallBack Wrapper
*/
class BaseCallbackWrapper {
public:
virtual ~BaseCallbackWrapper() noexcept = defau... | 32.94702 | 150 | 0.638593 | KillianG |
fb12baa069900773885b91c9b260b1e5bf482011 | 4,818 | cxx | C++ | src/stream/init.cxx | jiverson002/vcuda-driver | ad12a876930728018b2bbaab17c0f2004a2f375d | [
"MIT"
] | null | null | null | src/stream/init.cxx | jiverson002/vcuda-driver | ad12a876930728018b2bbaab17c0f2004a2f375d | [
"MIT"
] | null | null | null | src/stream/init.cxx | jiverson002/vcuda-driver | ad12a876930728018b2bbaab17c0f2004a2f375d | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <ostream>
#include <system_error>
#include <fcntl.h>
#include <semaphore.h>
#include <sys/stat.h>
#include "vcuda/driver/stream.h"
/*----------------------------------------------------------------------------*/
/*! */... | 36.225564 | 85 | 0.51702 | jiverson002 |
fb19003c0df7dfb523237c441c628bf5572d58a5 | 6,368 | cpp | C++ | src/display/display.cpp | william-swy/chip-8-emulator | 2831a1a5f4a6d03bde877df4f6c068d938c1142b | [
"MIT"
] | null | null | null | src/display/display.cpp | william-swy/chip-8-emulator | 2831a1a5f4a6d03bde877df4f6c068d938c1142b | [
"MIT"
] | null | null | null | src/display/display.cpp | william-swy/chip-8-emulator | 2831a1a5f4a6d03bde877df4f6c068d938c1142b | [
"MIT"
] | null | null | null | #include "display.h"
#define SDL_MAIN_HANDLED
#include <SDL2/SDL.h>
#include <array>
#include <memory>
#include "input_events.h"
class display::Display::sdl_pimpl {
public:
sdl_pimpl(int screen_width, int screen_height) {
SDL_Init(SDL_INIT_VIDEO);
window = std::unique_ptr<SDL_Window, sdl_deleter>(
... | 33.87234 | 100 | 0.638505 | william-swy |
fb1ca42824b7e80cdbb15be11eb0454203355f3f | 743 | cpp | C++ | tests/module/ModuleTest.cpp | rfernandes/answer | aeb69e72308072c445a011a86ce4c6838af42a46 | [
"MIT"
] | 1 | 2015-06-26T02:31:43.000Z | 2015-06-26T02:31:43.000Z | tests/module/ModuleTest.cpp | rfernandes/answer | aeb69e72308072c445a011a86ce4c6838af42a46 | [
"MIT"
] | null | null | null | tests/module/ModuleTest.cpp | rfernandes/answer | aeb69e72308072c445a011a86ce4c6838af42a46 | [
"MIT"
] | null | null | null | #define BOOST_TEST_MODULE ModuleTest
#include <boost/test/included/unit_test.hpp>
#include "answer/Module.hh"
using namespace std;
class TestModule: public answer::Module
{
public:
virtual FlowStatus inFlow(answer::Context &context);
virtual FlowStatus outFlow(answer::Context &context);
virtual FlowStatus outF... | 19.552632 | 82 | 0.753701 | rfernandes |
fb1ee32b9bb9ab01bc79aa1a99de87b7290367ca | 1,415 | cpp | C++ | src/machine/memory/memman.cpp | skiff-vm/skiff | 51a4dd736b9d35ff657f09867aff26d15ec1877e | [
"MIT"
] | null | null | null | src/machine/memory/memman.cpp | skiff-vm/skiff | 51a4dd736b9d35ff657f09867aff26d15ec1877e | [
"MIT"
] | null | null | null | src/machine/memory/memman.cpp | skiff-vm/skiff | 51a4dd736b9d35ff657f09867aff26d15ec1877e | [
"MIT"
] | null | null | null | #include "machine/memory/memman.hpp"
namespace skiff {
namespace machine {
namespace memory {
memman_c::memman_c() {}
memman_c::~memman_c()
{
for (auto i = 0; i < _slots.size(); i++) {
if (nullptr != _slots.at(i)) {
delete _slots.at(i);
}
}
}
std::tuple<bool, uint64_t> memman_c::alloc(const uint64... | 23.583333 | 75 | 0.64947 | skiff-vm |
fb1f674179acc4b0d81081340504e2f54a1d2e70 | 214 | hpp | C++ | include/MajorityElement.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/MajorityElement.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/MajorityElement.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef MAJORITY_ELEMENT_HPP_
#define MAJORITY_ELEMENT_HPP_
#include <vector>
using namespace std;
class MajorityElement {
public:
int majorityElement(vector<int> &nums);
};
#endif // MAJORITY_ELEMENT_HPP_
| 15.285714 | 43 | 0.780374 | yanzhe-chen |
fb2464b11946b9ed19db719a4469fe94c09434fc | 6,882 | cpp | C++ | src/ui/navtoolbar_base.cpp | KeyWorksRW/wxUiEditor | fc58bb37284430fa5901579ae121d4482b588c75 | [
"Apache-2.0"
] | 7 | 2021-10-22T02:43:12.000Z | 2022-01-15T10:52:58.000Z | src/ui/navtoolbar_base.cpp | KeyWorksRW/wxUiEditor | fc58bb37284430fa5901579ae121d4482b588c75 | [
"Apache-2.0"
] | 288 | 2021-05-16T19:12:04.000Z | 2022-03-30T13:22:31.000Z | src/ui/navtoolbar_base.cpp | KeyWorksRW/wxUiEditor | fc58bb37284430fa5901579ae121d4482b588c75 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Code generated by wxUiEditor -- see https://github.com/KeyWorksRW/wxUiEditor/
//
// DO NOT EDIT THIS FILE! Your changes will be lost if it is re-generated!
////////////////////////////////////////////////////////////////////////////////... | 64.924528 | 163 | 0.685847 | KeyWorksRW |
fb2794f8d14bfeaaf1dedd0db097adfed25eb354 | 2,292 | cpp | C++ | src/door.cpp | chris-hunt-98/sokoban-3D | a27b1678b02566d19287b2aee080feb3f1ae66e9 | [
"MIT"
] | null | null | null | src/door.cpp | chris-hunt-98/sokoban-3D | a27b1678b02566d19287b2aee080feb3f1ae66e9 | [
"MIT"
] | null | null | null | src/door.cpp | chris-hunt-98/sokoban-3D | a27b1678b02566d19287b2aee080feb3f1ae66e9 | [
"MIT"
] | null | null | null | #include "door.h"
#include "mapfile.h"
#include "gameobject.h"
#include "graphicsmanager.h"
#include "roommap.h"
#include "moveprocessor.h"
MapLocation::MapLocation(Point3_S16 p, const std::string& room_name): pos {p}, name {room_name} {}
Door::Door(GameObject* parent, bool def, bool active): Switchable(parent, def... | 25.466667 | 106 | 0.663176 | chris-hunt-98 |
fb27e948815ceb996de608f29e76c012188a9bd9 | 295 | hpp | C++ | Include/SA/Input/Base/Bindings/InputBindingBase.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | 1 | 2022-01-20T23:17:18.000Z | 2022-01-20T23:17:18.000Z | Include/SA/Input/Base/Bindings/InputBindingBase.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | Include/SA/Input/Base/Bindings/InputBindingBase.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Sapphire's Suite. All Rights Reserved.
#pragma once
#ifndef SAPPHIRE_INPUT_INPUT_BINDING_BASE_GUARD
#define SAPPHIRE_INPUT_INPUT_BINDING_BASE_GUARD
#include <SA/Core/Types/Abstract.hpp>
namespace Sa
{
class InputBindingBase : public Abstract
{
};
}
#endif // GUARD
| 16.388889 | 60 | 0.779661 | SapphireSuite |
fb286ccd0963b17ec2931878e9a0650c35afd424 | 690 | cpp | C++ | 1024.cpp | michaelarakel/timus-solutions | eb6421cb132959f096192e79d4e9ccbd48b5bce3 | [
"Unlicense"
] | null | null | null | 1024.cpp | michaelarakel/timus-solutions | eb6421cb132959f096192e79d4e9ccbd48b5bce3 | [
"Unlicense"
] | null | null | null | 1024.cpp | michaelarakel/timus-solutions | eb6421cb132959f096192e79d4e9ccbd48b5bce3 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int gcd(int a, int b)
{
if (b == 0)
return a;
return gcd(b, a % b);
}
int lcm(int a, int b)
{
return max(a, b) / gcd(a, b) * min(a, b);
}
int main()
{
int n;
cin >> n;
vector <int> v(n);
for (int i = 0; i... | 13.8 | 43 | 0.45942 | michaelarakel |
fb2a00f0768bf8d3cd297faba718382c4189978d | 2,186 | cpp | C++ | src/main.cpp | stouma915/brainfuck-interpreter-cpp | 4686836779c6a7a8641e10124d993a7cc389c361 | [
"MIT"
] | null | null | null | src/main.cpp | stouma915/brainfuck-interpreter-cpp | 4686836779c6a7a8641e10124d993a7cc389c361 | [
"MIT"
] | null | null | null | src/main.cpp | stouma915/brainfuck-interpreter-cpp | 4686836779c6a7a8641e10124d993a7cc389c361 | [
"MIT"
] | null | null | null | #include <filesystem>
#include <fstream>
#include <iostream>
#include <sstream>
#include "interpreter.h"
#include "util.h"
#define VERSION "1.0.4"
void show_usage(std::string file_name) {
std::cout << "Brainf**k Interpreter " << VERSION << "\n"
"\n"
"Usage:\n"
"... | 25.418605 | 113 | 0.466148 | stouma915 |
fb38ad07cef52d3972ccff61f0af939d9e9daf23 | 59,948 | cpp | C++ | DistanceOcclusionTool.cpp | andrewwillmott/distance-occlusion | ed8f02c0d82592762fd58a919cd101bbf69908af | [
"Unlicense"
] | 90 | 2015-06-08T04:42:39.000Z | 2022-01-03T05:49:17.000Z | DistanceOcclusionTool.cpp | andrewwillmott/distance-occlusion | ed8f02c0d82592762fd58a919cd101bbf69908af | [
"Unlicense"
] | null | null | null | DistanceOcclusionTool.cpp | andrewwillmott/distance-occlusion | ed8f02c0d82592762fd58a919cd101bbf69908af | [
"Unlicense"
] | 5 | 2016-05-12T17:39:58.000Z | 2022-02-28T06:47:01.000Z | //------------------------------------------------------------------------------
// Purpose: Distance Field and Occlusion generator tool
// Author: Andrew Willmott
//------------------------------------------------------------------------------
#include "DistanceOcclusionLib.h"
#include <ctype.h>
#include <math.h>
#... | 30.837449 | 179 | 0.418062 | andrewwillmott |
fb3b6460eb55e79b96cea0f8ce0749e0a9e4d902 | 1,637 | cpp | C++ | crashHandler/crashHandler.cpp | FreeSoftwareDevlopment/dllRunner | 7c21e09739cbfcac5334f3b2ad0ccbfae85248e0 | [
"MIT"
] | null | null | null | crashHandler/crashHandler.cpp | FreeSoftwareDevlopment/dllRunner | 7c21e09739cbfcac5334f3b2ad0ccbfae85248e0 | [
"MIT"
] | null | null | null | crashHandler/crashHandler.cpp | FreeSoftwareDevlopment/dllRunner | 7c21e09739cbfcac5334f3b2ad0ccbfae85248e0 | [
"MIT"
] | null | null | null | #include "framework.h"
#include "crashHandler.h"
void errmsg(const char* x) {
printf("%s failed (%d).\n", x, GetLastError());
}
extern "C" {
CRASHHANDLER_API int main(int argc, char* argv[])
{
const char* ending = "Process exited with %lu";
STARTUPINFOA si;
PROCESS_INFORMATION pi;
ZeroMemory(&si, sizeof(s... | 25.984127 | 72 | 0.610263 | FreeSoftwareDevlopment |
fb42796bf4c91d4738414516a724e5a78b19a74d | 1,538 | cpp | C++ | main/src/config/ConfigLoader.cpp | fangedhex/tinybooter | 229366da2da6f688a811f1badbb061aba55a5f6a | [
"MIT"
] | 2 | 2019-01-07T12:05:56.000Z | 2020-12-27T15:49:59.000Z | main/src/config/ConfigLoader.cpp | fangedhex/tinybooter | 229366da2da6f688a811f1badbb061aba55a5f6a | [
"MIT"
] | null | null | null | main/src/config/ConfigLoader.cpp | fangedhex/tinybooter | 229366da2da6f688a811f1badbb061aba55a5f6a | [
"MIT"
] | null | null | null | #include "config/ConfigLoader.hpp"
#include <dirent.h>
#include "config/INIReader.h"
bool has_suffix(const std::string &str, const std::string &suffix)
{
return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0;
}
std::vector<ServiceConfig> ConfigLoader::getServi... | 29.018868 | 110 | 0.492198 | fangedhex |
fb5d2c1bb7344244c2ce46bb28231fb80eb460ab | 930 | cpp | C++ | 20171207_01.cpp | AhiVelasquez/fondEs | 9adb51dbe8925b5813595adfd6be619a1efac62b | [
"MIT"
] | null | null | null | 20171207_01.cpp | AhiVelasquez/fondEs | 9adb51dbe8925b5813595adfd6be619a1efac62b | [
"MIT"
] | null | null | null | 20171207_01.cpp | AhiVelasquez/fondEs | 9adb51dbe8925b5813595adfd6be619a1efac62b | [
"MIT"
] | null | null | null | /*
Esercizio 1.
Si scriva in C++ una funzione che, letta da standard input una sequenza di numeri interi terminati da
un “tappo” pari a 17, restituisca “true” solo se tutti gli elementi sono divisibili per 17 oppure minori
di 17. Si scriva un main di prova.
ESEMPIO: se la sequenza fosse {2 -5 34 6 51 17} allora il meto... | 22.682927 | 104 | 0.631183 | AhiVelasquez |
fb5e2bfbdbe857102666de4af597abdb16f462b6 | 11,090 | hpp | C++ | src/core/impl/TChem_Impl_TransientContStirredTankReactorRHS.hpp | kyungjoo-kim/TChem | 69915ca8de71df9a6a463aae45c5bd6db31646bc | [
"BSD-2-Clause"
] | null | null | null | src/core/impl/TChem_Impl_TransientContStirredTankReactorRHS.hpp | kyungjoo-kim/TChem | 69915ca8de71df9a6a463aae45c5bd6db31646bc | [
"BSD-2-Clause"
] | null | null | null | src/core/impl/TChem_Impl_TransientContStirredTankReactorRHS.hpp | kyungjoo-kim/TChem | 69915ca8de71df9a6a463aae45c5bd6db31646bc | [
"BSD-2-Clause"
] | 1 | 2022-02-26T18:04:44.000Z | 2022-02-26T18:04:44.000Z | /* =====================================================================================
TChem version 2.0
Copyright (2020) NTESS
https://github.com/sandialabs/TChem
Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Governme... | 34.76489 | 119 | 0.571867 | kyungjoo-kim |
fb600d2fb30dfa81892c0db1884ad66e032b87b3 | 2,901 | cpp | C++ | src/tcp/AsyncConnection.cpp | Mvwivs/tp_advanced_cpp_project | 1be9389005d002709920c7f7cc73ebfe6c16c17b | [
"Apache-2.0"
] | 2 | 2020-05-14T12:21:42.000Z | 2020-05-14T12:27:37.000Z | src/tcp/AsyncConnection.cpp | Mvwivs/tp_advanced_cpp_project | 1be9389005d002709920c7f7cc73ebfe6c16c17b | [
"Apache-2.0"
] | 2 | 2020-03-20T11:09:43.000Z | 2020-05-22T16:50:38.000Z | src/tcp/AsyncConnection.cpp | Mvwivs/tp_advanced_cpp_project | 1be9389005d002709920c7f7cc73ebfe6c16c17b | [
"Apache-2.0"
] | null | null | null |
#include "tcp/AsyncConnection.hpp"
#include <cstring>
#include <utility>
#include <unistd.h>
namespace tcp {
using namespace std::string_literals;
AsyncConnection::AsyncConnection(int& socket) :
fd_(socket) {
try {
source_ = get_source_address(fd_);
destination_ = get_destination_address(fd_);
}
catch (co... | 22.488372 | 94 | 0.690452 | Mvwivs |
fb6184f2444625de09a4bae9e43ba8b428f4f2e4 | 905 | cpp | C++ | editor/shared/workspaces/editors/editor_assets.cpp | sadisutikku/engine_libs | b9d8aea6218e043162850c092fd32eb930120e15 | [
"MIT"
] | null | null | null | editor/shared/workspaces/editors/editor_assets.cpp | sadisutikku/engine_libs | b9d8aea6218e043162850c092fd32eb930120e15 | [
"MIT"
] | null | null | null | editor/shared/workspaces/editors/editor_assets.cpp | sadisutikku/engine_libs | b9d8aea6218e043162850c092fd32eb930120e15 | [
"MIT"
] | null | null | null |
//////////////////////////////////////////////////////////////////////
//! Includes
//////////////////////////////////////////////////////////////////////
#include "editor/shared/workspaces/editors/editor_assets.h"
#include "editor/shared/workspaces/editors/editor_components/editor_component_files.h"
namespace edit... | 16.454545 | 86 | 0.598895 | sadisutikku |
fb6584c996a711771bfe3b51df558f0e7eb0768d | 2,843 | hpp | C++ | libraries/chain/include/koinos/chain/wasm/type_conversion.hpp | arafat877/koinos-chain | 3773eaf326be5fcab271b1a411a8eb5282ed2b28 | [
"MIT"
] | 1 | 2021-04-27T19:48:51.000Z | 2021-04-27T19:48:51.000Z | libraries/chain/include/koinos/chain/wasm/type_conversion.hpp | arafat877/koinos-chain | 3773eaf326be5fcab271b1a411a8eb5282ed2b28 | [
"MIT"
] | null | null | null | libraries/chain/include/koinos/chain/wasm/type_conversion.hpp | arafat877/koinos-chain | 3773eaf326be5fcab271b1a411a8eb5282ed2b28 | [
"MIT"
] | null | null | null | #pragma once
#include <koinos/chain/wasm/common.hpp>
#include <koinos/chain/exceptions.hpp>
namespace eosio::vm {
template<typename T>
struct wasm_type_converter<T*> : linear_memory_access {
auto from_wasm(void* val) {
validate_ptr<T>(val, 1);
return eosio::vm::aligned_ptr_wrapper<T, ali... | 33.447059 | 132 | 0.634893 | arafat877 |
fb67979268c2001c7f933e63b7794ce2c785adc6 | 5,772 | cpp | C++ | src/AppLines/DlgCreateStencil.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/AppLines/DlgCreateStencil.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/AppLines/DlgCreateStencil.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | 1 | 2022-01-07T15:58:38.000Z | 2022-01-07T15:58:38.000Z | /*
**
** $Filename: DlgCreateStencil.cpp $
** $Release: Dortmund 2002 $
** $Revision$
** $Date$
** $Author$
** $Developer: Steffen A. Mork $
**
** Blizzard III - Fast stencil creation on shape creation
**
** (C) Copyright 2002 Steffen A. Mork
** All Rights Reserved
**
**
*/
/**************************************... | 31.889503 | 87 | 0.648475 | stmork |
fb681ba0e3f37e5c7166705eee12d6f6a62f172a | 30,148 | cxx | C++ | drivers/fixedkmdod/KMDOD/blthw.cxx | ms-iot/ScreenProvider | e6866f33e7813d6ef0f6fdedce61b52d7a9ca9c0 | [
"MIT"
] | 20 | 2016-06-04T19:31:59.000Z | 2020-05-24T01:44:39.000Z | drivers/fixedkmdod/KMDOD/blthw.cxx | ms-iot/ScreenProvider | e6866f33e7813d6ef0f6fdedce61b52d7a9ca9c0 | [
"MIT"
] | 8 | 2016-10-04T19:09:02.000Z | 2018-09-18T22:53:40.000Z | drivers/fixedkmdod/KMDOD/blthw.cxx | ms-iot/ScreenProvider | e6866f33e7813d6ef0f6fdedce61b52d7a9ca9c0 | [
"MIT"
] | 20 | 2015-10-21T22:24:43.000Z | 2021-03-09T13:24:28.000Z | /******************************Module*Header*******************************\
* Module Name: blthw.cxx
*
* Sample display driver functions for a HW blt simulation. This file is
* only provided to simulate how a real hardware-accelerated display-only
* driver functions, and should not be used in a real driver.
*
* Copy... | 30.889344 | 183 | 0.711457 | ms-iot |
fb698752550440d16dcbd5749465c511e3cda037 | 503 | cpp | C++ | src/lib/statistics.cpp | dsledz/sled | a7763441fe98fc6029294f85358a666353311aed | [
"BSD-2-Clause"
] | null | null | null | src/lib/statistics.cpp | dsledz/sled | a7763441fe98fc6029294f85358a666353311aed | [
"BSD-2-Clause"
] | null | null | null | src/lib/statistics.cpp | dsledz/sled | a7763441fe98fc6029294f85358a666353311aed | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2018-2019, Dan Sledz
* All rights reserved.
* Licensed under BSD-2-Clause license.
*/
#include "sled/statistics.h"
namespace sled {
void StatisticsReport::add(const std::string &name, StatisticImpl stat) {
// XXX: Handle overwrites
m_statistics[name] = stat;
}
StatisticImpl StatisticsRepo... | 20.12 | 73 | 0.687873 | dsledz |
fb71a09236c3e5410436fae8c35d10b75ba6b5aa | 7,767 | cpp | C++ | pomdog/experimental/gui/horizontal_layout.cpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 163 | 2015-03-16T08:42:32.000Z | 2022-01-11T21:40:22.000Z | pomdog/experimental/gui/horizontal_layout.cpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 17 | 2015-04-12T20:57:50.000Z | 2020-10-10T10:51:45.000Z | pomdog/experimental/gui/horizontal_layout.cpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 21 | 2015-04-12T20:45:11.000Z | 2022-01-14T20:50:16.000Z | // Copyright mogemimi. Distributed under the MIT license.
#include "pomdog/experimental/gui/horizontal_layout.hpp"
#include "pomdog/experimental/gui/drawing_context.hpp"
#include "pomdog/experimental/gui/pointer_point.hpp"
#include "pomdog/experimental/gui/ui_event_dispatcher.hpp"
#include "pomdog/experimental/gui/ui_... | 26.599315 | 115 | 0.625209 | mogemimi |
fb736ed37f985e04cf70939fa8edb7bc74283dd7 | 438 | cpp | C++ | unit-tests/tools-tests/some-name-proxy.cpp | tvladax/dbus-cxx | 396041a2130985acd72bb801b7137ec06e04b161 | [
"BSD-3-Clause"
] | null | null | null | unit-tests/tools-tests/some-name-proxy.cpp | tvladax/dbus-cxx | 396041a2130985acd72bb801b7137ec06e04b161 | [
"BSD-3-Clause"
] | null | null | null | unit-tests/tools-tests/some-name-proxy.cpp | tvladax/dbus-cxx | 396041a2130985acd72bb801b7137ec06e04b161 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: LGPL-3.0-or-later OR BSD-3-Clause
// SPDX-License-Identifier: LGPL-3.0-or-later OR BSD-3-Clause
#include "some_nameProxy.h"
int main() {
std::shared_ptr<DBus::Dispatcher> dispatch = DBus::StandaloneDispatcher::create();
std::shared_ptr<DBus::Connection> conn = dispatch->create_conne... | 39.818182 | 99 | 0.716895 | tvladax |
fb7746e92644280141c6f19aacddd83bc79e3fec | 3,342 | cpp | C++ | src/mesh/mesh.cpp | TurkMvc/lol | c3fb98c6f371e4648891b59b4adc6cb95ae73451 | [
"WTFPL"
] | null | null | null | src/mesh/mesh.cpp | TurkMvc/lol | c3fb98c6f371e4648891b59b4adc6cb95ae73451 | [
"WTFPL"
] | null | null | null | src/mesh/mesh.cpp | TurkMvc/lol | c3fb98c6f371e4648891b59b4adc6cb95ae73451 | [
"WTFPL"
] | null | null | null | //
// Lol Engine
//
// Copyright © 2010—2018 Sam Hocevar <sam@hocevar.net>
//
// Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the terms of the Do What the Fuck You Want
// to Public License, Version 2, a... | 21.151899 | 96 | 0.627768 | TurkMvc |
fb77c0cf836cfd57da201d0681e72282cd54661b | 2,058 | hpp | C++ | include/cclk.hpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | 1 | 2021-12-12T22:08:23.000Z | 2021-12-12T22:08:23.000Z | include/cclk.hpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | null | null | null | include/cclk.hpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | 1 | 2021-12-12T22:08:29.000Z | 2021-12-12T22:08:29.000Z | #pragma once
#include "common.hpp"
#define CCLK_MINVALUE 0
#define CCLK_MAXVALUE 64
struct cclk;
struct cclkWidget : SequencerWidget
{
cclkWidget(cclk *module);
};
struct cclk : Module
{
enum ParamIds
{
COUNTER_INC,
COUNTER_DEC,
COUNTER_INC2,
COUNTER_DEC2,
COUNTR_IN_ATT,
RESET_IN_ATT,
NUM_PARAMS
};... | 18.375 | 69 | 0.711856 | CardinalModules |
fb793c4292282f6fedf8186f2cec9c4b874d9699 | 1,159 | hpp | C++ | include/CL/sycl/detail/singleton.hpp | infinitesnow/InceptionCL | e3d3a6218e551d42dfcead4f121cec294d50d85c | [
"Unlicense"
] | 2 | 2017-10-05T13:13:41.000Z | 2019-05-15T19:20:49.000Z | include/CL/sycl/detail/singleton.hpp | infinitesnow/InceptionCL | e3d3a6218e551d42dfcead4f121cec294d50d85c | [
"Unlicense"
] | null | null | null | include/CL/sycl/detail/singleton.hpp | infinitesnow/InceptionCL | e3d3a6218e551d42dfcead4f121cec294d50d85c | [
"Unlicense"
] | null | null | null | #ifndef TRISYCL_SYCL_DETAIL_SINGLETON_HPP
#define TRISYCL_SYCL_DETAIL_SINGLETON_HPP
/** \file Mix-in to add a singleton implementation with an instance() method
Ronan at Keryell point FR
This file is distributed under the University of Illinois Open Source
License. See LICENSE.TXT for details.
*/
#inclu... | 21.462963 | 76 | 0.679034 | infinitesnow |
fb7bfb7524c7d74576da08e646ae88dab873b3de | 18,847 | cpp | C++ | GraphicsSandbox/D11Graphics.cpp | UberCelloCzar/GraphicsSandbox | 3a96f99ca3693a67fdff69fdf7d338e8e5d21086 | [
"MIT"
] | null | null | null | GraphicsSandbox/D11Graphics.cpp | UberCelloCzar/GraphicsSandbox | 3a96f99ca3693a67fdff69fdf7d338e8e5d21086 | [
"MIT"
] | null | null | null | GraphicsSandbox/D11Graphics.cpp | UberCelloCzar/GraphicsSandbox | 3a96f99ca3693a67fdff69fdf7d338e8e5d21086 | [
"MIT"
] | null | null | null | // Code written by Trevor Walden, some code referenced from prior work with Chris Cascioli
#include "D11Graphics.h"
#include <d3dcompiler.h>
#include "WICTextureLoader.h"
#include "DDSTextureLoader.h"
#include <sstream>
#include <atlcomcli.h>
D11Graphics* D11Graphics::D11GraphicsInstance = 0;
D11Graphics::D11Graphic... | 30.203526 | 187 | 0.751048 | UberCelloCzar |
fb7d09b01aaad43fb02bec674793c1b0d0fe2947 | 3,272 | cpp | C++ | src/providers/Employee/Employee_Provider.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | 4 | 2015-12-16T06:43:14.000Z | 2020-01-24T06:05:47.000Z | src/providers/Employee/Employee_Provider.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | null | null | null | src/providers/Employee/Employee_Provider.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | null | null | null | #include "Employee_Provider.h"
#include "Resource.h"
CIMPLE_NAMESPACE_BEGIN
Employee_Provider::Employee_Provider()
{
}
Employee_Provider::~Employee_Provider()
{
}
Load_Status Employee_Provider::load()
{
return LOAD_OK;
}
Unload_Status Employee_Provider::unload()
{
return UNLOAD_OK;
}
Get_Instance_Status E... | 21.385621 | 60 | 0.645171 | LegalizeAdulthood |
fb84496a4af7683fdcd361f148532b9108091e95 | 3,051 | tpp | C++ | src/unbounded_ordered/tree/iterator/xml/xml_const_reverse_iterator.tpp | lejeuneretif/unbounded-ordered-tree | 0e4a431ee0b1228295c651858449005eb3e5c813 | [
"MIT"
] | 1 | 2022-03-26T09:54:25.000Z | 2022-03-26T09:54:25.000Z | src/unbounded_ordered/tree/iterator/xml/xml_const_reverse_iterator.tpp | lejeuneretif/unbounded-ordered-tree | 0e4a431ee0b1228295c651858449005eb3e5c813 | [
"MIT"
] | null | null | null | src/unbounded_ordered/tree/iterator/xml/xml_const_reverse_iterator.tpp | lejeuneretif/unbounded-ordered-tree | 0e4a431ee0b1228295c651858449005eb3e5c813 | [
"MIT"
] | null | null | null | #ifndef UNBOUNDED_ORDERED_TREE_XML_CONST_REVERSE_ITERATOR_TPP
#define UNBOUNDED_ORDERED_TREE_XML_CONST_REVERSE_ITERATOR_TPP
#include "unbounded_ordered/node/unbounded_ordered_node.hpp"
#include "unbounded_ordered/tree/iterator/xml/xml_reverse_iterator_t.tpp"
#include "unbounded_ordered/tree/unbounded_ordered_tree_decl... | 50.016393 | 94 | 0.748935 | lejeuneretif |
fb8934d7980e45b3fed0cf0fa3744f6e623de4a9 | 303 | hpp | C++ | include/tori/lib.hpp | mocabe/Neco-lang-v2 | a30075802492fa5c2d1725a2ba0e3e06dde4ce13 | [
"MIT"
] | null | null | null | include/tori/lib.hpp | mocabe/Neco-lang-v2 | a30075802492fa5c2d1725a2ba0e3e06dde4ce13 | [
"MIT"
] | 7 | 2019-02-11T13:50:25.000Z | 2019-10-28T15:39:18.000Z | include/tori/lib.hpp | mocabe/Neco-lang-v2 | a30075802492fa5c2d1725a2ba0e3e06dde4ce13 | [
"MIT"
] | null | null | null | // Copyright (c) 2018-2019 mocabe(https://github.com/mocabe)
// This code is licensed under MIT license.
#pragma once
#include "core.hpp"
#include "lib/primitive.hpp"
#include "lib/unit.hpp"
#include "lib/identity.hpp"
#include "lib/binary_operator.hpp"
#include "lib/if.hpp"
#include "lib/util.hpp"
| 21.642857 | 60 | 0.729373 | mocabe |
fb8950c26bf5b436bf92555443123bad9889e374 | 395 | cpp | C++ | ExampleSetup/src/circ1.cpp | Davmo049/AutoDependencyInferer | 4a8de057e534b9d4ae24ffad01c8ae1b577427f7 | [
"MIT"
] | null | null | null | ExampleSetup/src/circ1.cpp | Davmo049/AutoDependencyInferer | 4a8de057e534b9d4ae24ffad01c8ae1b577427f7 | [
"MIT"
] | null | null | null | ExampleSetup/src/circ1.cpp | Davmo049/AutoDependencyInferer | 4a8de057e534b9d4ae24ffad01c8ae1b577427f7 | [
"MIT"
] | null | null | null | #include "circ1.hpp"
#include "circ2.hpp"
#include "hippo.hpp" //nm W
#include "fruit.hpp"
#include "folder/banana.hpp"
#include "globals.hpp" //nm U
#include <iostream>
#include <utility>
void circ1(int i) //nm T
{
if ((i % 2) == 1)
{
circ2(i+1);
}
std::cout << "circ1:" << i << " " << Numbers... | 18.809524 | 74 | 0.56962 | Davmo049 |
fb8e8bdce4e2b57bdcb24a02432e4875fd021866 | 2,819 | cc | C++ | libs/xapiancommon/loadfile.cc | restpose/restpose | 8f0bfe96e997eb988baf5edfcc49957aa2f1ceec | [
"MIT"
] | 4 | 2015-11-05T10:36:12.000Z | 2018-10-27T09:59:48.000Z | libs/xapiancommon/loadfile.cc | restpose/restpose | 8f0bfe96e997eb988baf5edfcc49957aa2f1ceec | [
"MIT"
] | null | null | null | libs/xapiancommon/loadfile.cc | restpose/restpose | 8f0bfe96e997eb988baf5edfcc49957aa2f1ceec | [
"MIT"
] | null | null | null | /* loadfile.cc: load a file into a std::string.
*
* Copyright (C) 2006,2010 Olly Betts
*
* 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; either version 2 of the License, or
* (at your opt... | 23.689076 | 76 | 0.678609 | restpose |
fb8fcc2e2620127dbf55dcc11f9b3adc814273f6 | 10,023 | cpp | C++ | src/win32/Enumerator_win32.cpp | AliGriv/JoystickLibrary | 0e48220658e045c6b3d1cce86bdb4c4dd40c4d7b | [
"BSD-3-Clause"
] | 4 | 2017-09-01T12:25:59.000Z | 2020-07-30T08:40:50.000Z | src/win32/Enumerator_win32.cpp | AliGriv/JoystickLibrary | 0e48220658e045c6b3d1cce86bdb4c4dd40c4d7b | [
"BSD-3-Clause"
] | 7 | 2016-07-13T03:45:10.000Z | 2020-01-30T01:44:03.000Z | src/win32/Enumerator_win32.cpp | AliGriv/JoystickLibrary | 0e48220658e045c6b3d1cce86bdb4c4dd40c4d7b | [
"BSD-3-Clause"
] | 3 | 2017-12-07T03:20:01.000Z | 2021-04-07T22:04:31.000Z | #include "Enumerator.hpp"
using namespace JoystickLibrary;
constexpr wchar_t *ENUMERATOR_CLASS_NAME = L"__JL_Enumerator";
constexpr wchar_t *ENUMERATOR_WND_NAME = L"__JL_Enumerator_Window";
const GUID HID_CLASS_GUID = { 0x4d1e55b2, 0xf16f, 0x11Cf, { 0x88, 0xcb, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30 }};
struct DIEnume... | 27.385246 | 137 | 0.636436 | AliGriv |
6520cfb6cf12021a3f88353bbd89b590c6769bf1 | 1,095 | hpp | C++ | include/usuario.hpp | diegofilbal/Concordo | e41322a55c38e56664c4871106780e4adaf57ee2 | [
"MIT"
] | null | null | null | include/usuario.hpp | diegofilbal/Concordo | e41322a55c38e56664c4871106780e4adaf57ee2 | [
"MIT"
] | null | null | null | include/usuario.hpp | diegofilbal/Concordo | e41322a55c38e56664c4871106780e4adaf57ee2 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
class Usuario{
// Atributos da classe
private:
// Armazena o ID do usuário
int id;
// Armazena o nome do usuário
std::string nome;
// Armazena o email do usuário
std::string email;
// Armazena a senha do usuário... | 22.346939 | 80 | 0.56895 | diegofilbal |
65240ad887bd67f7f7b3757556c2573827427186 | 9,591 | cpp | C++ | FlixBus/FlixBus/Vehicle.cpp | c371group/FlixBus | 87db7a922e40b1f67d9c90661127379e510f17a5 | [
"MIT"
] | null | null | null | FlixBus/FlixBus/Vehicle.cpp | c371group/FlixBus | 87db7a922e40b1f67d9c90661127379e510f17a5 | [
"MIT"
] | null | null | null | FlixBus/FlixBus/Vehicle.cpp | c371group/FlixBus | 87db7a922e40b1f67d9c90661127379e510f17a5 | [
"MIT"
] | null | null | null | //implementation file
#include "Vehicle.h"
// Destructor
vehicle::~vehicle() = default;
// Base constructor
vehicle::vehicle() = default;
// Constructor, takes string and assigns it as id_no_ attribute.
vehicle::vehicle(std::string val)
{
this->id_no_ = val;
}
// Sets string value to id_no_ attribute.
void vehicle... | 21.408482 | 130 | 0.690543 | c371group |
6525cc44edcc8c344698cc1a65ec9703e6a58d36 | 3,739 | cpp | C++ | libmamba/tests/test_execution.cpp | martinRenou/mamba | fd7d78076ffc9a626637bc59a83b99d7cac27e22 | [
"BSD-3-Clause"
] | 405 | 2019-03-25T15:38:35.000Z | 2020-06-19T05:51:38.000Z | libmamba/tests/test_execution.cpp | martinRenou/mamba | fd7d78076ffc9a626637bc59a83b99d7cac27e22 | [
"BSD-3-Clause"
] | 193 | 2019-03-25T15:25:38.000Z | 2020-06-18T09:34:54.000Z | libmamba/tests/test_execution.cpp | martinRenou/mamba | fd7d78076ffc9a626637bc59a83b99d7cac27e22 | [
"BSD-3-Clause"
] | 23 | 2019-03-25T15:05:18.000Z | 2020-06-17T14:14:11.000Z | #include <gtest/gtest.h>
#include <mamba/core/execution.hpp>
namespace mamba
{
// Spawns a number of threads that will execute the provided task a given number of times.
// This is useful to make sure there are great chances that the tasks
// are being scheduled concurrently.
// Joins all threads befo... | 37.767677 | 100 | 0.559775 | martinRenou |
652b992a2f4f0056d6b861961f38feb968f2faa5 | 628 | cpp | C++ | algorithms/range-sum-query-immutable.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 41 | 2018-07-03T07:35:30.000Z | 2021-09-25T09:33:43.000Z | algorithms/range-sum-query-immutable.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 2 | 2018-07-23T10:50:11.000Z | 2020-10-06T07:34:29.000Z | algorithms/range-sum-query-immutable.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 7 | 2018-07-06T13:43:18.000Z | 2020-10-06T02:29:57.000Z | class NumArray
{
private:
vector<int> nums;
vector<int> store;
public:
NumArray(vector<int> nums)
{
this->nums = nums;
this->store = vector<int>(nums.size(), 0);
if (nums.size() > 0) {
store[0] = nums[0];
for (int i = 1; i < nums.size(); i++) {
... | 19.030303 | 64 | 0.492038 | Chronoviser |
652d78eeaefb0a04271e1a88991e825c5d931086 | 4,013 | cpp | C++ | contracts/profile/profile.cpp | decentrawise/eosio-recurring-action | 2411b0ef291d67c50e82c13bda13fc826c9e29b9 | [
"MIT"
] | null | null | null | contracts/profile/profile.cpp | decentrawise/eosio-recurring-action | 2411b0ef291d67c50e82c13bda13fc826c9e29b9 | [
"MIT"
] | null | null | null | contracts/profile/profile.cpp | decentrawise/eosio-recurring-action | 2411b0ef291d67c50e82c13bda13fc826c9e29b9 | [
"MIT"
] | null | null | null | #include <eosio/eosio.hpp>
#include <eosio/system.hpp>
#include <eosio/transaction.hpp>
#include "../../src/recurring_action.hpp"
// #define RECURRING_ACTION eosio::name("count")
#define RECURRING_ACTION eosio::name("tick")
#define RECURRING_DELAYSEC 1
class [[eosio::contract]] profile: public eosio::contract,
... | 34.895652 | 98 | 0.661351 | decentrawise |
652f7e2921326be22af233eddc6f5345fbe64eb7 | 228 | cpp | C++ | LUOGU/1098.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | LUOGU/1098.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | LUOGU/1098.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
int p1,p2,p3;
cin>>pq>>p2>>p3>>s;
for(int i=0;i<s.length();i++)
{
if(s[i]=='-')
{
}
}
return 0;
}
| 22.8 | 72 | 0.412281 | PIPIKAI |
653286e9dac338ad32fab89da65a5c7a3af1a3d8 | 11,216 | cpp | C++ | app/main.cpp | KPO-2020-2021/zad5_2-Orlowski-K | 091ade48eafb67394e55d14b52d15c4e40dc6ef8 | [
"Unlicense"
] | null | null | null | app/main.cpp | KPO-2020-2021/zad5_2-Orlowski-K | 091ade48eafb67394e55d14b52d15c4e40dc6ef8 | [
"Unlicense"
] | null | null | null | app/main.cpp | KPO-2020-2021/zad5_2-Orlowski-K | 091ade48eafb67394e55d14b52d15c4e40dc6ef8 | [
"Unlicense"
] | null | null | null | // Executables must have the following defined if the library contains
// doctest definitions. For builds with this disabled, e.g. code shipped to
// users, this can be left out.
#ifdef ENABLE_DOCTEST_IN_LIBRARY
#define DOCTEST_CONFIG_IMPLEMENT
#include "../tests/doctest/doctest.h"
#endif
#include <iostream>
#include ... | 43.642023 | 186 | 0.537268 | KPO-2020-2021 |
6532d864a903903366ed50385fd87e22566c3493 | 8,917 | cpp | C++ | animatron.cpp | spaceape/animatron | 2b92d067df682292f014e538ad99e4168b30f27a | [
"BSD-3-Clause"
] | 1 | 2019-05-17T09:51:05.000Z | 2019-05-17T09:51:05.000Z | animatron.cpp | spaceape/animatron | 2b92d067df682292f014e538ad99e4168b30f27a | [
"BSD-3-Clause"
] | null | null | null | animatron.cpp | spaceape/animatron | 2b92d067df682292f014e538ad99e4168b30f27a | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2011, spaceape [[ spaceape99@gmail.com ]]
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 must retain the above copyright
... | 32.425455 | 142 | 0.643826 | spaceape |
653864db0350ad253a1f9278e7a9cdc479b2fdac | 4,576 | hpp | C++ | sol/functional.hpp | bananu7/sol | 599673150ebadfcbfd87e21701a021b4d228debb | [
"MIT"
] | 1 | 2015-03-27T12:36:25.000Z | 2015-03-27T12:36:25.000Z | sol/functional.hpp | bananu7/sol | 599673150ebadfcbfd87e21701a021b4d228debb | [
"MIT"
] | null | null | null | sol/functional.hpp | bananu7/sol | 599673150ebadfcbfd87e21701a021b4d228debb | [
"MIT"
] | null | null | null | // The MIT License (MIT)
// Copyright (c) 2013 Danny Y., Rapptz
// 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
// ... | 36.608 | 153 | 0.696023 | bananu7 |
653883b0e2570d0dd1f63477ae769616cc0c1924 | 11,297 | cxx | C++ | Source/Applications/AppCommon/Scene/Objects/pqCMBPoints.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | Source/Applications/AppCommon/Scene/Objects/pqCMBPoints.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | Source/Applications/AppCommon/Scene/Objects/pqCMBPoints.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... | 35.303125 | 100 | 0.728069 | developkits |
653f292840e819cb17113cb680c411175e29f7b4 | 2,470 | hpp | C++ | libocean/src/BytecodeWriter.hpp | 3Jade/Ocean | a17bbd6ece6ba0a7539c933cadfc7faad564f9d2 | [
"MIT"
] | null | null | null | libocean/src/BytecodeWriter.hpp | 3Jade/Ocean | a17bbd6ece6ba0a7539c933cadfc7faad564f9d2 | [
"MIT"
] | null | null | null | libocean/src/BytecodeWriter.hpp | 3Jade/Ocean | a17bbd6ece6ba0a7539c933cadfc7faad564f9d2 | [
"MIT"
] | null | null | null | #include <stdint.h>
#include <string_view>
#include <list>
#include <SkipProbe/SkipProbe.hpp>
#include "OpCode.hpp"
#include "LibOcean.hpp"
class BytecodeWriter
{
public:
struct Instruction
{
OpCode op;
OceanValue value;
};
class DeferredJump
{
public:
DeferredJump(Instruction* builder);
void SetTarget... | 23.084112 | 97 | 0.761538 | 3Jade |
653fac3731c38933bf2b479b560c9638fdd9a27b | 884 | hpp | C++ | tests/client/app.hpp | AlexCasual/rvisioncase | ebe8d933dcb842fcd5276f27197152187f2c4a6b | [
"MIT"
] | null | null | null | tests/client/app.hpp | AlexCasual/rvisioncase | ebe8d933dcb842fcd5276f27197152187f2c4a6b | [
"MIT"
] | null | null | null | tests/client/app.hpp | AlexCasual/rvisioncase | ebe8d933dcb842fcd5276f27197152187f2c4a6b | [
"MIT"
] | null | null | null | #pragma once
#include <core/logger.hpp>
#include <rpc/client/client.hpp>
namespace rvision
{
class app final : public Poco::Util::ServerApplication
{
public:
explicit app();
~app();
app(const app&) = delete;
app& operator = (const app&) = delete;
private:
void startup();
void main();
void exit... | 25.257143 | 95 | 0.705882 | AlexCasual |
6544834eaacf0909062c7313010940a009af2763 | 1,243 | hpp | C++ | Packt_CreatingGamesWithAI/BattleCity/GameObjects/TankRelatedGameObjects/TankMissileManager.hpp | mcihanozer/Hands-On-Game-AI-Development | 36453b678cfeb644aeeccf4e77069fa6531684d2 | [
"MIT"
] | 6 | 2018-12-04T04:39:42.000Z | 2022-03-01T09:36:39.000Z | Packt_CreatingGamesWithAI/BattleCity/GameObjects/TankRelatedGameObjects/TankMissileManager.hpp | mcihanozer/Hands-On-Game-AI-Development | 36453b678cfeb644aeeccf4e77069fa6531684d2 | [
"MIT"
] | 1 | 2019-07-25T19:52:35.000Z | 2019-07-25T19:52:35.000Z | Packt_CreatingGamesWithAI/BattleCity/GameObjects/TankRelatedGameObjects/TankMissileManager.hpp | PacktPublishing/Hands-On-Game-AI-Development | 27328e4658bfd1606abe51cc14a8adbe8c752d76 | [
"MIT"
] | 4 | 2018-11-08T09:29:02.000Z | 2020-05-09T21:21:28.000Z | //
// TankMissileManager.hpp
// Packt_CreatingGamesWithAI
//
// Created by Cihan Ozer on 22/06/2018.
// Copyright © 2018 Cihan Ozer. All rights reserved.
//
#ifndef TankMissileManager_hpp
#define TankMissileManager_hpp
#include "TankMissile.hpp"
#include "ExplosionAnimation.hpp"
#include "CollisionGrid.hpp"
#in... | 23.45283 | 93 | 0.713596 | mcihanozer |
654b162618169030d04ab9d1a8ac882e55b58c44 | 4,042 | hpp | C++ | cpp/src/samchon/library/GAPopulation.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 111 | 2016-04-08T14:10:15.000Z | 2020-12-21T12:25:10.000Z | cpp/src/samchon/library/GAPopulation.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 16 | 2016-05-27T05:41:56.000Z | 2020-06-23T14:55:00.000Z | cpp/src/samchon/library/GAPopulation.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 49 | 2016-10-27T09:45:35.000Z | 2020-12-21T12:25:13.000Z | #pragma once
#include <algorithm>
#include <functional>
#include <memory>
#include <vector>
namespace samchon
{
namespace library
{
/**
* @brief A population in a generation in G.A.
*
* @tparam GeneArray
* <p> An array(std::vector) containing genes as elments; sequnce listing </p>
* <p> The GeneArray must ... | 31.333333 | 116 | 0.680604 | wydingez |
654b955b73fe7da48f23fd06f8ffbc5e559f5e10 | 12,923 | cc | C++ | Source/BladeDevice/source/input/windows/DInput8Mouse.cc | OscarGame/blade | 6987708cb011813eb38e5c262c7a83888635f002 | [
"MIT"
] | 146 | 2018-12-03T08:08:17.000Z | 2022-03-21T06:04:06.000Z | Source/BladeDevice/source/input/windows/DInput8Mouse.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 1 | 2019-01-18T03:35:49.000Z | 2019-01-18T03:36:08.000Z | Source/BladeDevice/source/input/windows/DInput8Mouse.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 31 | 2018-12-03T10:32:43.000Z | 2021-10-04T06:31:44.000Z | /********************************************************************
created: 2011/05/14
filename: DInput8Mouse.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#if BLADE_PLATFORM == BLADE_PLATFORM_WINDOWS
#include <BladeWin32API.h>
#includ... | 25.044574 | 141 | 0.56264 | OscarGame |
6551739eaf95454ad513b824819bd97d350af097 | 1,377 | cpp | C++ | week1/maximum-sum-bitonic-sequence.cpp | sanketg186/100DaysOfCode | d44c7d4ac7b3fcf0cb91ab027a4cca133e433209 | [
"MIT"
] | null | null | null | week1/maximum-sum-bitonic-sequence.cpp | sanketg186/100DaysOfCode | d44c7d4ac7b3fcf0cb91ab027a4cca133e433209 | [
"MIT"
] | null | null | null | week1/maximum-sum-bitonic-sequence.cpp | sanketg186/100DaysOfCode | d44c7d4ac7b3fcf0cb91ab027a4cca133e433209 | [
"MIT"
] | null | null | null | // Maximum Sum Bitonic Subsequence
// Given an array of integers A. A subsequence of A is called Bitonic if it is first increasing then decreasing.
// Input:
// The first line contains an integer T denoting the no of test cases. Each test case consist of two lines. The first line contains an integer N denoting the ... | 26.480769 | 245 | 0.51634 | sanketg186 |
6553925752179ed338c319881ccd9a95c4942843 | 733 | cpp | C++ | src/actions/print_timestamp.cpp | Acciente717/xmlparser | 7aa19173ffc1aeb437ecd9c7c9e53d7a55c60f92 | [
"MIT"
] | 4 | 2020-07-12T08:48:43.000Z | 2021-04-28T06:51:54.000Z | src/actions/print_timestamp.cpp | Acciente717/xmlparser | 7aa19173ffc1aeb437ecd9c7c9e53d7a55c60f92 | [
"MIT"
] | null | null | null | src/actions/print_timestamp.cpp | Acciente717/xmlparser | 7aa19173ffc1aeb437ecd9c7c9e53d7a55c60f92 | [
"MIT"
] | 2 | 2020-04-25T06:56:30.000Z | 2020-12-09T07:36:03.000Z | /* Copyright [2020] Zhiyao Ma */
#include "actions.hpp"
#include "global_states.hpp"
#include "in_order_executor.hpp"
/// Print the timestamp that located at path
/// "dm_log_packet.pair.<xmlattr>.key.timestamp". It throws an exception if
/// the path is invalid.
void print_timestamp(pt::ptree &&tree, long seq_num) {
... | 33.318182 | 76 | 0.566166 | Acciente717 |
655424814b92601b115ff63a0a4a9044ab58f741 | 2,179 | hpp | C++ | models/utils/qoi.hpp | CancerModeling/Angiogenesis3D1D | 77527d3facd127e225ccb9e53874ddbba2096744 | [
"BSL-1.0"
] | 2 | 2021-11-02T07:49:33.000Z | 2021-11-16T15:47:40.000Z | models/utils/qoi.hpp | CancerModeling/Angiogenesis3D1D | 77527d3facd127e225ccb9e53874ddbba2096744 | [
"BSL-1.0"
] | null | null | null | models/utils/qoi.hpp | CancerModeling/Angiogenesis3D1D | 77527d3facd127e225ccb9e53874ddbba2096744 | [
"BSL-1.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2019 Prashant K. Jha
//
// 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)
//////////////////////////////////////////... | 22.463918 | 80 | 0.560349 | CancerModeling |
655a22e09c6e4e3bd54ad93a9b7ba1ee0cd19e0e | 1,228 | cpp | C++ | Hash-Tables/Bloom filter.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 86 | 2016-10-18T23:30:36.000Z | 2022-01-09T21:57:34.000Z | Hash-Tables/Bloom filter.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 1 | 2018-04-13T09:38:36.000Z | 2018-04-13T09:38:36.000Z | Hash-Tables/Bloom filter.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 39 | 2017-03-02T07:25:40.000Z | 2020-12-14T12:13:50.000Z | #include <bits/stdc++.h>
using namespace std;
class BloomFilter
{
private:
class Bitset
{
private:
unsigned long long *b;
public:
Bitset() : b(nullptr) {
}
Bitset(const int _size) : b(new unsigned long long[1 + (_size >> 6)]) {
memset(b, 0, sizeof(b));... | 17.055556 | 94 | 0.458469 | Fresher001 |
655a328f927e3b6c7df6f3b3b80dcfe858567414 | 1,035 | cpp | C++ | src/core/scripted_controller/condition_factory.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 3 | 2015-02-22T20:34:28.000Z | 2020-03-04T08:55:25.000Z | src/core/scripted_controller/condition_factory.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 22 | 2015-12-13T16:29:40.000Z | 2017-03-04T15:45:44.000Z | src/core/scripted_controller/condition_factory.cpp | Reaping2/Reaping2 | 0d4c988c99413e50cc474f6206cf64176eeec95d | [
"MIT"
] | 14 | 2015-11-23T21:25:09.000Z | 2020-07-17T17:03:23.000Z | #include "platform/i_platform.h"
#include "condition_factory.h"
#include "is_hit_condition.h"
#include "distance_to_aggressor_condition.h"
#include "is_not_hit_condition.h"
#include "distance_to_players_condition.h"
#include "distance_to_target_condition.h"
#include "random_condition.h"
using platform::AutoId;
namespa... | 36.964286 | 95 | 0.770048 | MrPepperoni |
655dbc2dfe402235f0f78e845d4e5dedc7a01c8c | 780 | cpp | C++ | 12/12.24.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | null | null | null | 12/12.24.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | 2 | 2020-08-15T17:33:00.000Z | 2021-07-05T14:18:26.000Z | 12/12.24.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | 1 | 2020-08-15T17:24:54.000Z | 2020-08-15T17:24:54.000Z | #include <iostream>
#include <cstdlib>
#include <cstring>
int main() {
std::size_t size;
std::cout << "Enter how many characters you want to type: ";
std::cin >> size;
++size; // account for null character
if (size < 2) {
std::cerr << "Invalid size.\n";
return EXIT_FAILURE;
}
... | 24.375 | 64 | 0.533333 | kousikpramanik |
655fbff57408a7c97e2971d7c85aa7f675e356a1 | 1,235 | cpp | C++ | test/pgm.cpp | QuantumComputingLab/qpixlpp | af84a81462d29a46a59bc5e10d91d02080c48520 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-11-17T03:33:25.000Z | 2021-11-17T03:33:25.000Z | test/pgm.cpp | QuantumComputingLab/qpixlpp | af84a81462d29a46a59bc5e10d91d02080c48520 | [
"BSD-3-Clause-LBNL"
] | null | null | null | test/pgm.cpp | QuantumComputingLab/qpixlpp | af84a81462d29a46a59bc5e10d91d02080c48520 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <gtest/gtest.h>
#include "qpixl/pgm.hpp"
#include "qpixl/frqi/util.hpp"
template <typename R>
void test_qpixl_pgm_readPGMA( ) {
std::vector< R > data ;
std::string fileName = "../test/test.pgm" ;
size_t nrows, ncols, maxval ;
int s ;
// no zero padding
s = qpixl::readPGMA( fileName , data , nr... | 21.666667 | 71 | 0.603239 | QuantumComputingLab |
65674e04b92938e5bc7d867ed6dfb529c53ee41c | 113 | cpp | C++ | unit_test/hip/Test_HIP_Batched_SerialMatUtil_Real.cpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 156 | 2017-03-01T23:38:10.000Z | 2022-03-27T21:28:03.000Z | unit_test/hip/Test_HIP_Batched_SerialMatUtil_Real.cpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 1,257 | 2017-03-03T15:25:16.000Z | 2022-03-31T19:46:09.000Z | unit_test/hip/Test_HIP_Batched_SerialMatUtil_Real.cpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 76 | 2017-03-01T17:03:59.000Z | 2022-03-03T21:04:41.000Z | #include "Test_HIP.hpp"
#include "Test_Batched_SerialMatUtil.hpp"
#include "Test_Batched_SerialMatUtil_Real.hpp"
| 28.25 | 46 | 0.840708 | dialecticDolt |
656dc1a2a658f1e3606df4525fee8bf74fe2ef56 | 3,666 | cpp | C++ | tools/thread4z/project/main.cpp | asummersday/zsummer | 092a239051b8c8cf92f7675ea0ffe26f920acbf9 | [
"MIT"
] | 2 | 2015-03-25T01:17:44.000Z | 2017-06-01T06:56:46.000Z | tools/thread4z/project/main.cpp | asummersday/zsummer | 092a239051b8c8cf92f7675ea0ffe26f920acbf9 | [
"MIT"
] | null | null | null | tools/thread4z/project/main.cpp | asummersday/zsummer | 092a239051b8c8cf92f7675ea0ffe26f920acbf9 | [
"MIT"
] | null | null | null |
#include "../thread.h"
#include <sstream>
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <string>
#include <vector>
#include <time.h>
using namespace std;
#define MAX_NUM (10*1000*1000)
class CTestLock: public zsummer::thread4z::CThread
{
public:
static int ms_ask;
static int ms_data[MAX_... | 16.14978 | 80 | 0.61102 | asummersday |
656df2d47272190c318b6c314828965fac0bed81 | 3,426 | cpp | C++ | FakeMath/FakeMath/tests/Vec2/Vector2SubtractionTest.cpp | FakeEngine/FakeMath | ce5810be8011f54ffc5f97e96eb1d4f4d2c08f5e | [
"Apache-2.0"
] | null | null | null | FakeMath/FakeMath/tests/Vec2/Vector2SubtractionTest.cpp | FakeEngine/FakeMath | ce5810be8011f54ffc5f97e96eb1d4f4d2c08f5e | [
"Apache-2.0"
] | null | null | null | FakeMath/FakeMath/tests/Vec2/Vector2SubtractionTest.cpp | FakeEngine/FakeMath | ce5810be8011f54ffc5f97e96eb1d4f4d2c08f5e | [
"Apache-2.0"
] | 3 | 2021-02-28T13:54:40.000Z | 2021-04-27T14:58:33.000Z | #include "Vector2SubtractionTest.h"
#include "../../src/Core/Test.h"
namespace FakeVector2Tests
{
int test_subtract_vector_1()
{
FakeVec2f v(25.4f, 64.3f);
FakeVec2f vOther(5.4f, 4.3f);
FakeVec2f expected(20.0f, 60.0f);
FakeTimer timer("FakeVector2Tests::test_subtract_vector_1");
FakeVec2f result;
Fak... | 20.392857 | 71 | 0.685347 | FakeEngine |
65708e6862686e400c507c2adefa74f91003b19c | 471 | hpp | C++ | Raven.CppClient/finally.hpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-04-24T02:34:53.000Z | 2019-08-01T08:22:26.000Z | Raven.CppClient/finally.hpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 2 | 2019-03-21T09:00:02.000Z | 2021-02-28T23:49:26.000Z | Raven.CppClient/finally.hpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-03-04T11:58:54.000Z | 2021-03-01T00:25:49.000Z | #pragma once
template <class F>
class finally
{
public:
explicit finally(F f) noexcept
: f_(std::move(f)), invoke_(true) {}
finally(finally&& other) noexcept
: f_(std::move(other.f_)),
invoke_(other.invoke_)
{
other.invoke_ = false;
}
finally(const finally&) = delete;
... | 17.444444 | 48 | 0.577495 | mlawsonca |
657d44396105a45a1e7d7d21d8a565345bd2b546 | 1,777 | cpp | C++ | src/xr_3da/xrGame/ui/UIListItemMP.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | src/xr_3da/xrGame/ui/UIListItemMP.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | null | null | null | src/xr_3da/xrGame/ui/UIListItemMP.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | // File: UIListItemMP.cpp
// Description: List item for multiplayer dialog (servers list)
// Created: 22.12.2004
// Author: Serhiy 0. Vynnychenko
// Mail: narrator@gsc-game.kiev.ua
//
// Copyright 2004 GSC Game World
//
#include "StdAfx.h"
#include "UIListItemMP.h"
#include "../HUDMan... | 26.522388 | 103 | 0.696117 | ixray-team |
657faa7278d53fb34571894a7d09dc96541aab89 | 1,080 | cpp | C++ | codes/POJ/poj3208.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/POJ/poj3208.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/POJ/poj3208.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long ll;
const int maxd = 10;
const int status = 4;
const int g[4][12] = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{3, 3, 3, 3, 3, 3, 0, 3, 3, 3},
{3, 3, 3, 3, 3, 3, 1, 3, 3, 3},
{3, 3, 3, 3, 3, 3, 2, 3, 3, 3}};
ll n, dp[maxd+5][s... | 17.419355 | 58 | 0.418519 | JeraKrs |
6580a2a3c9609ee57a0818be2f580c8cda9c5799 | 758 | hpp | C++ | gui/parameterwidget.hpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | null | null | null | gui/parameterwidget.hpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | 5 | 2015-02-19T09:25:15.000Z | 2015-02-19T14:43:20.000Z | gui/parameterwidget.hpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | null | null | null | #ifndef PARAMETERWIDGET_HPP
#define PARAMETERWIDGET_HPP
#include "launchparameters.hpp"
#include <QWidget>
class QComboBox;
class QDoubleSpinBox;
class QPushButton;
class ParameterWidget : public QWidget
{
Q_OBJECT
public:
explicit ParameterWidget(QWidget* parent_ = 0);
private:
std::vector<RocketModel> m_model... | 17.627907 | 49 | 0.804749 | julienlopez |
658b658961cb2a36ac469626867a856137c9544e | 269 | cpp | C++ | testsuites/posix-torture/src/memory.cpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 935 | 2018-05-23T14:56:18.000Z | 2022-03-29T07:27:20.000Z | testsuites/posix-torture/src/memory.cpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 314 | 2018-05-04T15:58:06.000Z | 2022-03-30T16:24:17.000Z | testsuites/posix-torture/src/memory.cpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 65 | 2019-04-21T14:26:51.000Z | 2022-03-12T03:16:41.000Z | #include <cassert>
#include <sys/mman.h>
#include "testsuite.hpp"
DEFINE_TEST(map_unmap_anonymous, ([] {
void *window = mmap(nullptr, 0x1000, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
assert(window != MAP_FAILED);
munmap(window, 0x1000);
}))
| 22.416667 | 61 | 0.70632 | kITerE |
658e4b74b4549890af72056dad7c0757952d274e | 677 | cc | C++ | Part-I/Ch5/5.4.1/5.14.cc | kilinchange/CPP_Primer_5th_edition | bcf8cd72b1586f76a6ed98ab989c437742d04038 | [
"MIT"
] | null | null | null | Part-I/Ch5/5.4.1/5.14.cc | kilinchange/CPP_Primer_5th_edition | bcf8cd72b1586f76a6ed98ab989c437742d04038 | [
"MIT"
] | null | null | null | Part-I/Ch5/5.4.1/5.14.cc | kilinchange/CPP_Primer_5th_edition | bcf8cd72b1586f76a6ed98ab989c437742d04038 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cstring>
int main()
{
std::string prev, temp, word;
int counter = 1, maxCount = 0;
while (std::cin >> temp) {
if (temp == prev)
counter += 1;
else
{
if (maxCount < counter) {
word = prev;
... | 21.15625 | 59 | 0.422452 | kilinchange |
658fab7e5f4bbc3e45b7c0500f92eb2a30b2d670 | 225 | hpp | C++ | include/tcframe/driver.hpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 76 | 2015-03-31T01:36:17.000Z | 2021-12-29T08:16:25.000Z | include/tcframe/driver.hpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 68 | 2016-11-28T18:58:26.000Z | 2018-08-10T13:33:35.000Z | include/tcframe/driver.hpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 17 | 2015-04-24T03:52:32.000Z | 2022-03-11T23:28:02.000Z | #pragma once
#include "tcframe/driver/Driver.hpp"
#include "tcframe/driver/SlugParser.hpp"
#include "tcframe/driver/RawIOManipulator.hpp"
#include "tcframe/driver/SpecDriver.hpp"
#include "tcframe/driver/TestCaseDriver.hpp"
| 28.125 | 46 | 0.804444 | tcgen |
65957203cac56e1589b535c54607b9d8ab6748f6 | 3,566 | cpp | C++ | yelp/LT-564 Find the Closest Palindrome.cpp | yekesit/OA-or-Interview-Questions | 89c0a4db10c4ffde6d49835c0621f9ec2e04f141 | [
"MIT"
] | null | null | null | yelp/LT-564 Find the Closest Palindrome.cpp | yekesit/OA-or-Interview-Questions | 89c0a4db10c4ffde6d49835c0621f9ec2e04f141 | [
"MIT"
] | null | null | null | yelp/LT-564 Find the Closest Palindrome.cpp | yekesit/OA-or-Interview-Questions | 89c0a4db10c4ffde6d49835c0621f9ec2e04f141 | [
"MIT"
] | null | null | null | //
// Created by Ke Ye on 2019-08-08.
//
#include <iostream>
using namespace std;
/* After get the thought, the problem is not hard. The core is to generate from large part to small part since
* we need the least difference. eg. 123 >> 323, 121. Obviously 121 is good
* Then there are some other situations. If ther... | 41.465116 | 122 | 0.638531 | yekesit |
659a2e0ba1d8a82c7e13bf2af82d7e95333c1abd | 2,618 | cpp | C++ | qlog_tcp_server/DataView.cpp | byteatom/qlog | 1e7c1e482b0a07821386db5e9b475c856955450f | [
"MIT"
] | 1 | 2021-09-15T05:58:31.000Z | 2021-09-15T05:58:31.000Z | qlog_tcp_server/DataView.cpp | byteatom/qlog | 1e7c1e482b0a07821386db5e9b475c856955450f | [
"MIT"
] | null | null | null | qlog_tcp_server/DataView.cpp | byteatom/qlog | 1e7c1e482b0a07821386db5e9b475c856955450f | [
"MIT"
] | 1 | 2021-07-15T08:34:24.000Z | 2021-07-15T08:34:24.000Z | #include "DataView.h"
#include "ui_DataView.h"
#include <QBitmap>
#include "VarItem.h"
DataView::DataView(QWidget *parent) :
QDialog(parent),
table(nullptr),
row(0),
col(0),
ui(new Ui::DataView)
{
ui->setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
QBrush bgBrush(Qt::Dense7Pattern);
... | 22.376068 | 74 | 0.630634 | byteatom |
659d36040cb35d1941d13ff34c6f31e712e5c684 | 953 | cpp | C++ | 166/A[ Rank List ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | 166/A[ Rank List ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | 166/A[ Rank List ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define sd(x) scanf("%d",&x)
#define su(x) scanf("%u",&x)
#define slld(x) scanf("%lld",&x)
#define sc(x) scanf("%c",&x)
#define ss(x) scanf("%s",x)
#define sf(x) scanf("%f",&x)
#define slf(x) scanf("%lf",&x)
#define ll long long int
#define mod(x,n) (x+n)%n
struct Pair
... | 12.539474 | 38 | 0.49213 | mejanvijay |
4f1ef24af1a0797b79d867b543119a787ae5fdc9 | 2,456 | cpp | C++ | susi/susi.cpp | triffon/sdp-2017-18 | cd4b97832517b7639da299cc088d22c3c12eb179 | [
"MIT"
] | 2 | 2017-10-18T14:24:38.000Z | 2019-06-30T14:03:07.000Z | susi/susi.cpp | tancheto/sdp-2017-18 | cd4b97832517b7639da299cc088d22c3c12eb179 | [
"MIT"
] | null | null | null | susi/susi.cpp | tancheto/sdp-2017-18 | cd4b97832517b7639da299cc088d22c3c12eb179 | [
"MIT"
] | 2 | 2017-11-29T09:12:38.000Z | 2018-11-08T12:15:51.000Z | #include <fstream>
#include <sstream>
#include "student.h"
const int FIRST_STUDENT = 80000;
void testStudent() {
Student s("Иван Иванов", 80000, 5.5);
std::cout << s;
std::ostringstream oss;
oss << s;
std::istringstream iss(oss.str());
iss >> s;
std::cout << s;
std::cout << "->" << s.getName() << "<-... | 24.56 | 77 | 0.598127 | triffon |
4f1f8e595ede1bba123d38b2865515cf103f16f9 | 490 | cpp | C++ | basics/fibonacci.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | basics/fibonacci.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | basics/fibonacci.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
void fib(int num){
int t1= 0;
int t2=1;
for(int i=1; i<=num; i++){
if(i==1){
cout<<"Term 1 is:"<<t1<<endl;
}
else if(i==2){
cout<<"Term 2 is:"<<t2<<endl;
}
else{
t1 = t2+t1;
cout<... | 16.896552 | 46 | 0.371429 | neerajsingh869 |
4f21351e43486a21035aa0d8c73819a76987fec5 | 5,517 | cpp | C++ | hooks/recv_commands/CMDRECV_Cancel.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/recv_commands/CMDRECV_Cancel.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/recv_commands/CMDRECV_Cancel.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | #include "CMDRECV_Cancel.h"
#include <SCBW/api.h>
//Helper functions declaration
namespace {
void CancelResearch_Proc(CUnit* unit); //53E30
void CancelUpgrade_Proc(CUnit* unit); //54280
void refundQueueSlot(CUnit* unit, u16 slot); //66A70
void function_00466E40(CUnit* unit); //66E40
void AI_CancelSt... | 18.207921 | 66 | 0.659416 | Lucifirius |
4f22d28a450c1a4e72c9580f719442b1a8a0f81b | 53,203 | cc | C++ | paddle/fluid/operators/batch_norm_op.cc | heliqi/Paddle | feb0ed1b912b66de55c30d8af1ccc61cc1fdf59b | [
"Apache-2.0"
] | 1 | 2021-09-03T14:11:48.000Z | 2021-09-03T14:11:48.000Z | paddle/fluid/operators/batch_norm_op.cc | heliqi/Paddle | feb0ed1b912b66de55c30d8af1ccc61cc1fdf59b | [
"Apache-2.0"
] | 9 | 2021-08-03T11:39:03.000Z | 2021-09-16T08:03:58.000Z | paddle/fluid/operators/batch_norm_op.cc | heliqi/Paddle | feb0ed1b912b66de55c30d8af1ccc61cc1fdf59b | [
"Apache-2.0"
] | 1 | 2021-07-15T09:23:23.000Z | 2021-07-15T09:23:23.000Z | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 41.051698 | 80 | 0.601357 | heliqi |
4f23d7a7df5b0f6b65991c5b8e71e1b0bb2f221a | 39,458 | cpp | C++ | Engine/source/gfx/D3D9/gfxD3D9Device.cpp | John3/t3d_benchmarking | 27a5780ad704aa91b45ff1bb0d69ed07668d03be | [
"MIT"
] | 10 | 2015-03-12T20:20:34.000Z | 2021-02-03T08:07:31.000Z | Engine/source/gfx/D3D9/gfxD3D9Device.cpp | John3/t3d_benchmarking | 27a5780ad704aa91b45ff1bb0d69ed07668d03be | [
"MIT"
] | 3 | 2015-07-04T23:50:43.000Z | 2016-08-01T09:19:52.000Z | Engine/source/gfx/D3D9/gfxD3D9Device.cpp | John3/t3d_benchmarking | 27a5780ad704aa91b45ff1bb0d69ed07668d03be | [
"MIT"
] | 6 | 2015-11-28T16:18:26.000Z | 2020-03-29T17:14:56.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.502471 | 177 | 0.631887 | John3 |
4f24380a09f8e36db440b0d4c239db0fa5bd464e | 1,983 | hpp | C++ | include/dsp/digital.hpp | EBone/L_Rack | cf024c69e27c277d64ae1d7dfea8f391e9c2a9e3 | [
"Zlib",
"BSD-3-Clause"
] | 233 | 2018-07-02T16:49:36.000Z | 2022-02-27T21:45:39.000Z | include/dsp/digital.hpp | EBone/L_Rack | cf024c69e27c277d64ae1d7dfea8f391e9c2a9e3 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-09T11:32:15.000Z | 2022-01-07T01:45:43.000Z | include/dsp/digital.hpp | EBone/L_Rack | cf024c69e27c277d64ae1d7dfea8f391e9c2a9e3 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-14T21:55:30.000Z | 2021-05-04T04:20:34.000Z | #pragma once
#include "util/math.hpp"
namespace rack {
/** Turns HIGH when value reaches 1.f, turns LOW when value reaches 0.f. */
struct SchmittTrigger {
enum State {
UNKNOWN,
LOW,
HIGH
};
State state;
SchmittTrigger() {
reset();
}
void reset() {
state = UNKNOWN;
}
/** Updates the state of the ... | 18.53271 | 115 | 0.636409 | EBone |
4f2530bf3620b34220b35964d652b4f1de56d9af | 3,274 | hpp | C++ | Components/9918/9918.hpp | ajacocks/CLK | 5f39938a192f976f51f54e4bbaf6d5cded03d48d | [
"MIT"
] | null | null | null | Components/9918/9918.hpp | ajacocks/CLK | 5f39938a192f976f51f54e4bbaf6d5cded03d48d | [
"MIT"
] | null | null | null | Components/9918/9918.hpp | ajacocks/CLK | 5f39938a192f976f51f54e4bbaf6d5cded03d48d | [
"MIT"
] | null | null | null | //
// 9918.hpp
// Clock Signal
//
// Created by Thomas Harte on 25/11/2017.
// Copyright 2017 Thomas Harte. All rights reserved.
//
#ifndef TMS9918_hpp
#define TMS9918_hpp
#include "../../Outputs/CRT/CRT.hpp"
#include "../../ClockReceiver/ClockReceiver.hpp"
#include "Implementation/9918Base.hpp"
#include <cstdi... | 30.886792 | 97 | 0.734881 | ajacocks |
4f25a243fe66cc1620c1c87fe31a3122b193cb64 | 1,128 | cc | C++ | src/ops/gather_cpu.cc | aj7tesh/CTranslate2 | 8e424efdbcf40c89dca7e237a249464a95eeaf74 | [
"MIT"
] | null | null | null | src/ops/gather_cpu.cc | aj7tesh/CTranslate2 | 8e424efdbcf40c89dca7e237a249464a95eeaf74 | [
"MIT"
] | null | null | null | src/ops/gather_cpu.cc | aj7tesh/CTranslate2 | 8e424efdbcf40c89dca7e237a249464a95eeaf74 | [
"MIT"
] | null | null | null | #include "ctranslate2/ops/gather.h"
#include "type_dispatch.h"
namespace ctranslate2 {
namespace ops {
template <Device D, typename T>
void Gather::compute(const StorageView& data,
const StorageView& input,
StorageView& output) const {
const auto* ind... | 31.333333 | 100 | 0.528369 | aj7tesh |
4f266df43e959e98047761b8c4d47c30124be358 | 14,336 | cpp | C++ | core/io/resource_loader.cpp | willt/godot | bc005a57d38137b062e0ccc26467353f53556930 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | core/io/resource_loader.cpp | willt/godot | bc005a57d38137b062e0ccc26467353f53556930 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | core/io/resource_loader.cpp | willt/godot | bc005a57d38137b062e0ccc26467353f53556930 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | /*************************************************************************/
/* resource_loader.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 28.444444 | 147 | 0.67341 | willt |
4f2673042ddebac2fe031d02465a94a473b5c447 | 6,937 | cpp | C++ | src/polybench/POLYBENCH_GEMVER-Cuda.cpp | woodard/RAJAPerf | 14a64c4fd124868018735d7bed5ffb5269b519c9 | [
"BSD-3-Clause"
] | null | null | null | src/polybench/POLYBENCH_GEMVER-Cuda.cpp | woodard/RAJAPerf | 14a64c4fd124868018735d7bed5ffb5269b519c9 | [
"BSD-3-Clause"
] | null | null | null | src/polybench/POLYBENCH_GEMVER-Cuda.cpp | woodard/RAJAPerf | 14a64c4fd124868018735d7bed5ffb5269b519c9 | [
"BSD-3-Clause"
] | 1 | 2019-06-11T13:43:36.000Z | 2019-06-11T13:43:36.000Z | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2017-19, Lawrence Livermore National Security, LLC
// and RAJA Performance Suite project contributors.
// See the RAJAPerf/COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~... | 27.859438 | 100 | 0.559464 | woodard |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.