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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9ef6378ff8a25a2feaa85428776e8cab4a6c3ee | 3,621 | cpp | C++ | libraries/WiFlySerial/Examples/WFSv3/WFSEthernetServer.cpp | ternarylabs/orb | 8c89894dc1eabfd99743f16d35786ff354dcc4e5 | [
"MIT"
] | 2 | 2017-06-22T16:56:06.000Z | 2017-12-14T20:54:14.000Z | src/libraries/WiFlySerial/Examples/WFSv3/WFSEthernetServer.cpp | snrub/big-red-button | dbaaf6969959717de60ad57c933f11e2894621dc | [
"MIT"
] | null | null | null | src/libraries/WiFlySerial/Examples/WFSv3/WFSEthernetServer.cpp | snrub/big-red-button | dbaaf6969959717de60ad57c933f11e2894621dc | [
"MIT"
] | 1 | 2020-05-21T14:00:46.000Z | 2020-05-21T14:00:46.000Z | /*
* WFSEthernetServer.cpp
* Arduino Ethernet Server class for wifi devices
* Based on Arduino 1.0 EthernetServer class
*
* Credits:
* First to the Arduino Ethernet team for their model upon which this is based.
* Modifications:
* Copyright GPL 2.1 Tom Waldock 2012
Version 1.07
This library is free softwa... | 28.289063 | 133 | 0.719967 | ternarylabs |
d9f26db61de0feadeb15def7a7c52cc7681c21e0 | 671 | cpp | C++ | 1002.cpp | WhiteDOU/LeetCode | 47fee5bfc74c1417a17e6bc426a356ce9864d2b2 | [
"MIT"
] | 1 | 2019-03-07T13:08:06.000Z | 2019-03-07T13:08:06.000Z | 1002.cpp | WhiteDOU/LeetCode | 47fee5bfc74c1417a17e6bc426a356ce9864d2b2 | [
"MIT"
] | null | null | null | 1002.cpp | WhiteDOU/LeetCode | 47fee5bfc74c1417a17e6bc426a356ce9864d2b2 | [
"MIT"
] | null | null | null |
class Solution
{
public:
vector<string> commonChars(vector<string> &A)
{
int mem[100][27];
vector<string> ans;
for (int i = 0; i < 100; ++i)
{
for (int j = 0; j < 27; ++j)
{
mem[i][j] = 0;
}
}
for (int i = 0; i < A.size(); ++i)
{
for (int j = 0; j < A[i].length(); ++j)
{
char tem... | 15.25 | 46 | 0.435171 | WhiteDOU |
d9f35e6d4889e81b956f3e104f23722883ad65eb | 6,971 | cc | C++ | unittest/core_engine_wide_and_deep_executor_test.cc | ComputationalAdvertising/openmi | 1d986ada6c57fecf482f4b8dc4d2488cb0189a3e | [
"Apache-2.0"
] | null | null | null | unittest/core_engine_wide_and_deep_executor_test.cc | ComputationalAdvertising/openmi | 1d986ada6c57fecf482f4b8dc4d2488cb0189a3e | [
"Apache-2.0"
] | null | null | null | unittest/core_engine_wide_and_deep_executor_test.cc | ComputationalAdvertising/openmi | 1d986ada6c57fecf482f4b8dc4d2488cb0189a3e | [
"Apache-2.0"
] | null | null | null | #include <unordered_set>
#include "executor.h"
#include "session.h"
#include "attr_value_utils.h"
#include "base/protobuf_op.h"
#include "base/logging.h"
#include "openmi/idl/proto/engine.pb.h"
#include "openmi/idl/proto/communication.pb.h"
using namespace openmi;
Tensor* GetTensor(Executor& exec, std::string name) {... | 34.855 | 103 | 0.619136 | ComputationalAdvertising |
d9fa341332c3fe9081905474b42b48e22e5b3d8d | 1,440 | cpp | C++ | Assignment 2/main.cpp | John-Ghaly88/ProgrammingIII_CPP_Course | 4a6d37d192d0035e07771e7586308623a3f28377 | [
"MIT"
] | null | null | null | Assignment 2/main.cpp | John-Ghaly88/ProgrammingIII_CPP_Course | 4a6d37d192d0035e07771e7586308623a3f28377 | [
"MIT"
] | null | null | null | Assignment 2/main.cpp | John-Ghaly88/ProgrammingIII_CPP_Course | 4a6d37d192d0035e07771e7586308623a3f28377 | [
"MIT"
] | null | null | null |
// make sure you include your own header file with the righ name .
// make sure you implement the methods using the same signature as the assignment
#include <iostream>
#include "dlist.h"
#include "dlist.cpp"
using namespace std;
int main(int argc, char* argv[])
{
DList queue;
initializeDList(queue);
//inse... | 26.666667 | 97 | 0.647222 | John-Ghaly88 |
d9fd9a2e05f7dfc05a1523451347f594e202ba1b | 1,617 | cpp | C++ | ReduceSum/main_cuda.cpp | qiao-bo/halide-app-private | e78f90d6346c03e84199356aab08110381bac6a5 | [
"MIT"
] | null | null | null | ReduceSum/main_cuda.cpp | qiao-bo/halide-app-private | e78f90d6346c03e84199356aab08110381bac6a5 | [
"MIT"
] | null | null | null | ReduceSum/main_cuda.cpp | qiao-bo/halide-app-private | e78f90d6346c03e84199356aab08110381bac6a5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <limits>
#include "Halide.h"
#include "halide_benchmark.h"
#define WIDTH 65536
#define USE_AUTO
using namespace Halide;
using namespace Halide::Tools;
class PipelineClass {
public:
Func output;
Buffer<int> input;
PipelineClass(Buffer<int> in) : input(in) {
// Parallel reducti... | 19.719512 | 58 | 0.619048 | qiao-bo |
d9ffa7a99ce2696459ad8e7b2b4f86b83c223b6d | 438 | cpp | C++ | MoravaEngine/src/Mono/ConsoleGameLib/RandomWord.cpp | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | 168 | 2020-07-18T04:20:27.000Z | 2022-03-31T23:39:38.000Z | MoravaEngine/src/Mono/ConsoleGameLib/RandomWord.cpp | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | 5 | 2020-11-23T12:33:06.000Z | 2022-01-05T15:15:30.000Z | MoravaEngine/src/Mono/ConsoleGameLib/RandomWord.cpp | dtrajko/MoravaEngine | dab8a9e84bde6bdb5e979596c29cabccb566b9d4 | [
"Apache-2.0"
] | 8 | 2020-09-07T03:04:18.000Z | 2022-03-25T13:47:16.000Z | #include "RandomWord.h"
#include "RWord.h"
#include <cstdlib>
const char* CGL::getRandomWord()
{
// Word is null at begining
const char* word = nullptr;
// Get random value
CGL_internal::RWord* ptrWord = CGL_internal::RWord::get();
if (ptrWord)
{
// Compute random value
unsigned int randomValue = rand() ... | 17.52 | 62 | 0.678082 | imgui-works |
8a015aaf02070aa5ab41f54da4b423aceab25dd1 | 1,018 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR_Classic/classic ArrayList Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_CLR_Classic/classic ArrayList Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_CLR_Classic/classic ArrayList Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
// <Snippet1>
using namespace System;
using namespace System::Collections;
void PrintValues( IEnumerable^ myList );
int main()
{
// Creates and initializes a new ArrayList.
ArrayList^ myAL = gcnew ArrayList;
myAL->Add( "Hello" );
myAL->Add( "World" );
myAL->Add( "!" );
// Displa... | 22.622222 | 62 | 0.586444 | hamarb123 |
8a06805a3233bdb9a497400bef9eae588661a939 | 7,956 | cc | C++ | planner/predicate.cc | MiaoDragon/planet | 54238a892ddf78ac3327665f4c6859681c6d4142 | [
"MIT"
] | 7 | 2020-10-11T08:23:42.000Z | 2022-03-03T10:23:55.000Z | planner/predicate.cc | MiaoDragon/planet | 54238a892ddf78ac3327665f4c6859681c6d4142 | [
"MIT"
] | null | null | null | planner/predicate.cc | MiaoDragon/planet | 54238a892ddf78ac3327665f4c6859681c6d4142 | [
"MIT"
] | 1 | 2020-06-17T21:03:46.000Z | 2020-06-17T21:03:46.000Z | #include <stdexcept>
#include "cspace.hh"
#include "fmt/format.h"
#include "predicate.hh"
#include "predicate-impl.hh"
constexpr char TRACEBACK_NAME[] = "err_func";
static int traceback(lua_State* L) {
// 'message' not a string?
if (!lua_isstring(L, 1)) {
return 1; // Keep it intact
}
lua... | 34.742358 | 99 | 0.651081 | MiaoDragon |
8a0b091ef9904d3ef700368612e82e5e3199c856 | 338 | cpp | C++ | C to C++/C to C++ 004/004.cpp | Jasonchan35/SimpleTalkCpp_Tutorial | b193074c25e33e77ce15004a053bcc037054282e | [
"MIT"
] | 44 | 2017-11-08T14:20:55.000Z | 2021-03-18T14:22:52.000Z | C to C++/C to C++ 004/004.cpp | Jasonchan35/SimpleTalkCpp_Tutorial | b193074c25e33e77ce15004a053bcc037054282e | [
"MIT"
] | null | null | null | C to C++/C to C++ 004/004.cpp | Jasonchan35/SimpleTalkCpp_Tutorial | b193074c25e33e77ce15004a053bcc037054282e | [
"MIT"
] | 19 | 2017-08-01T12:59:29.000Z | 2021-04-11T08:09:59.000Z | #define _CRT_SECURE_NO_WARNINGS
#include "Student.h"
static void HelperFunc() {
printf("main helper");
}
int main() {
//class (type) a object (instance)
Student a("John");
a.print();
a.print();
a.print();
printf("=== Program Ended ===\n");
printf("Press any to key to Exit !");
_getch()... | 15.363636 | 39 | 0.585799 | Jasonchan35 |
8a12ef3f57a57c7bc0255930d13bd156353dbf09 | 500 | hpp | C++ | include/CppML/Vocabulary/Value.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 48 | 2019-05-14T10:07:08.000Z | 2021-04-08T08:26:20.000Z | include/CppML/Vocabulary/Value.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | null | null | null | include/CppML/Vocabulary/Value.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 4 | 2019-11-18T15:35:32.000Z | 2021-12-02T05:23:04.000Z | /**
* Copyright Žiga Sajovic, XLAB 2019
* Distributed under the MIT License
*
* https://github.com/ZigaSajovic/CppML
**/
#ifndef CPPML_VALUE_HPP
#define CPPML_VALUE_HPP
namespace ml {
/*
* Value:
* Represents a typed value
*
*/
template <typename T, T t> struct Value {
using type = T;
static constexpr T va... | 17.857143 | 46 | 0.674 | changjurhee |
8a1356ae8ff9ef2c3dfe56fc3070aadc5dcca86d | 1,762 | cpp | C++ | SDK/ARKSurvivalEvolved_Tek_CloningChamber_Placement_Emitter_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Tek_CloningChamber_Placement_Emitter_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Tek_CloningChamber_Placement_Emitter_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Tek_CloningChamber_Placement_Emitter_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------... | 30.912281 | 191 | 0.749716 | 2bite |
8a16c01655e531689e15acb938a2ff977093b8c5 | 2,772 | cc | C++ | src/engine/Time.cc | skroon/dsmic-oakfoam | 02f9b8ac6eb2b0aa97c461b80337e5273e83153f | [
"BSD-2-Clause"
] | 2 | 2019-08-27T04:18:45.000Z | 2021-04-20T23:14:24.000Z | src/engine/Time.cc | skroon/dsmic-oakfoam | 02f9b8ac6eb2b0aa97c461b80337e5273e83153f | [
"BSD-2-Clause"
] | null | null | null | src/engine/Time.cc | skroon/dsmic-oakfoam | 02f9b8ac6eb2b0aa97c461b80337e5273e83153f | [
"BSD-2-Clause"
] | null | null | null | #include "Time.h"
#include "Parameters.h"
Time::Time(Parameters *prms, float main, float overtime, int stones)
: params(prms),
base_main(main),
base_overtime(overtime),
base_stones(stones)
{
this->setupTimeForColors();
}
Time::Time(Parameters *prms, float main)
: params(prms),
base_main(main),
... | 22.536585 | 92 | 0.65873 | skroon |
8a1c02917a8be16ab96fc64890730c6cee695f6a | 554 | cpp | C++ | lib/derived_libs/lib_routines/game_handler.cpp | mrbuzz/Network-Lib | b2a92e69d2446fdd21fa9a4e1d7f96bae2c9b664 | [
"MIT"
] | null | null | null | lib/derived_libs/lib_routines/game_handler.cpp | mrbuzz/Network-Lib | b2a92e69d2446fdd21fa9a4e1d7f96bae2c9b664 | [
"MIT"
] | null | null | null | lib/derived_libs/lib_routines/game_handler.cpp | mrbuzz/Network-Lib | b2a92e69d2446fdd21fa9a4e1d7f96bae2c9b664 | [
"MIT"
] | null | null | null | #include "../../../include/game_handler.h"
void * game_handler::run()
{
game_msg * msg;
std::string message;
std::cout << "[+] Thread game_handler running " << self() << "\n";
for(int i = 0; ;i++)
{
msg = _msg_pool.remove();
message = msg->get_message();
game_player * user = msg->get_dest();
... | 19.785714 | 87 | 0.563177 | mrbuzz |
8a1ca7667f1c19acb49674d2687a78694185d17d | 12,724 | cpp | C++ | Common/network/src/socket_manager.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 4 | 2021-10-20T09:18:06.000Z | 2022-03-27T05:08:26.000Z | Common/network/src/socket_manager.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 1 | 2021-11-05T03:28:41.000Z | 2021-11-06T07:48:05.000Z | Common/network/src/socket_manager.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 1 | 2021-12-13T16:04:22.000Z | 2021-12-13T16:04:22.000Z | /**
* \file socket_manager.cpp
* \brief 网络套接字管理类函数的实现
*/
#include "pch.h"
#include "socket_manager.h"
#include "shstd.h"
#include "system.pb.h"
using namespace shstd::hashmap;
/*#define SM_MAX_CONNECT_CNT (65000) //支持的最大连接数
static uint32 SMSocketHash(const int32 &nSock)
{
return (uint32)nSock;
}*/
name... | 26.675052 | 160 | 0.530729 | deeptexas-ai |
8a1d20103c9724b90310138603b0ce1c0f513824 | 473 | cpp | C++ | Week16/790.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | 101 | 2021-02-26T14:32:37.000Z | 2022-03-16T18:46:37.000Z | Week16/790.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | null | null | null | Week16/790.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | 30 | 2021-03-09T05:16:48.000Z | 2022-03-16T21:16:33.000Z | class Solution {
public:
int numTilings(int n) {
vector<long long> dp (n+1, 0);
long long modulo=1000000007;
dp[0]=1;
dp[1]=1;
for(int i=2; i<=n; i++){
dp[i]+=dp[i-1];
dp[i]%=modulo;
dp[i]+=dp[i-2];
dp[i]%=modulo;
fo... | 21.5 | 38 | 0.353066 | bobsingh149 |
8a1e9c7a13fae2780526246fc2ed172f58ee3855 | 21,884 | cpp | C++ | super-knowledge-platform/skpServer/trunk/src/core/skpEvent.cpp | yefy/skp | a9fafa09eacd6a0a802ea6550efd30ace79e4a4f | [
"MIT"
] | null | null | null | super-knowledge-platform/skpServer/trunk/src/core/skpEvent.cpp | yefy/skp | a9fafa09eacd6a0a802ea6550efd30ace79e4a4f | [
"MIT"
] | null | null | null | super-knowledge-platform/skpServer/trunk/src/core/skpEvent.cpp | yefy/skp | a9fafa09eacd6a0a802ea6550efd30ace79e4a4f | [
"MIT"
] | null | null | null | #include "skpEvent.h"
#include "skpEvent_p.h"
#include "skpMallocPoolEx.h"
#include "skpAutoFree.h"
#include "skpLog.h"
#define EPOLL_EVENT_LT 0 ///全部LT
#define EPOLL_EVENT_ET 1 ///全部ET
#define EPOLL_EVENT_LT_ET 2 ///LT ET一起支持
#define EPOLL_EVENT_TYPE EPOLL_EVENT_LT_ET
#define NODE_TYPE_MAP 0 /... | 27.218905 | 132 | 0.57919 | yefy |
8a21221e1ef0da6055b2f4d76c99b02d78331233 | 5,042 | cpp | C++ | source/AsioExpress/MessagePort/Ipc/IpcMessagePort.cpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/MessagePort/Ipc/IpcMessagePort.cpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/MessagePort/Ipc/IpcMessagePort.cpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | // Copyright Ross MacGregor 2013
// 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)
#include "AsioExpress/pch.hpp"
#include "AsioExpressConfig/config.hpp"
#include "AsioExpress/... | 28.011111 | 134 | 0.685244 | suhao |
8a23faa51086448e9c124cfbce896418e4d8eaf3 | 31,397 | cpp | C++ | src/api/jsonutils.cpp | EnyoYoen/Fast-Discord | 8d483a87d302370df770d47d311d16e95d6e3951 | [
"MIT"
] | 30 | 2021-09-18T15:50:30.000Z | 2022-03-25T14:12:57.000Z | src/api/jsonutils.cpp | EnyoYoen/Fast-Discord | 3fde017d67f6673205d0e7ff3de7cf2a572a6aec | [
"MIT"
] | 3 | 2021-11-22T11:11:42.000Z | 2021-12-11T12:28:26.000Z | src/api/jsonutils.cpp | EnyoYoen/Fast-Discord | 8d483a87d302370df770d47d311d16e95d6e3951 | [
"MIT"
] | 2 | 2022-01-11T02:50:04.000Z | 2022-01-22T14:04:33.000Z | #include "api/jsonutils.h"
#include "api/message.h"
#include "api/attachment.h"
#include "api/user.h"
#include "api/overwrite.h"
#include "api/channel.h"
#include "api/thread.h"
#include "api/team.h"
#include "api/application.h"
#include "api/guildmember.h"
#include "api/voice.h"
#include "api/guild.h"
#include "api/c... | 29.845057 | 100 | 0.640093 | EnyoYoen |
8a2705444d86f835b50e88630b346e54a9168b24 | 11,754 | cpp | C++ | source/trt_engine/trt_network_crt/plugins/grid_sampler_plugin/grid_sampler_plugin.cpp | jinyouzhi/Forward | 4d01f50fbc05e1a052bfe7c1f61f80ba865a8f88 | [
"BSD-3-Clause"
] | 491 | 2021-03-12T08:16:02.000Z | 2022-03-30T02:25:18.000Z | source/trt_engine/trt_network_crt/plugins/grid_sampler_plugin/grid_sampler_plugin.cpp | jinyouzhi/Forward | 4d01f50fbc05e1a052bfe7c1f61f80ba865a8f88 | [
"BSD-3-Clause"
] | 26 | 2021-03-17T09:09:27.000Z | 2022-01-23T01:49:55.000Z | source/trt_engine/trt_network_crt/plugins/grid_sampler_plugin/grid_sampler_plugin.cpp | jinyouzhi/Forward | 4d01f50fbc05e1a052bfe7c1f61f80ba865a8f88 | [
"BSD-3-Clause"
] | 67 | 2021-03-15T09:03:29.000Z | 2022-03-30T04:19:02.000Z | // Copyright (C) 2021 THL A29 Limited, a Tencent company. 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 ... | 43.858209 | 100 | 0.623022 | jinyouzhi |
8a2d54b489bc1e899c9ffa6a8b293b8a74bd565f | 619 | hpp | C++ | bunsan/pm/src/lib/repository/local_system.hpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | null | null | null | bunsan/pm/src/lib/repository/local_system.hpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | 10 | 2018-02-06T14:46:36.000Z | 2018-03-20T13:37:20.000Z | bunsan/pm/src/lib/repository/local_system.hpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | 1 | 2021-11-26T10:59:09.000Z | 2021-11-26T10:59:09.000Z | #pragma once
#include <bunsan/pm/repository.hpp>
#include <bunsan/tempfile.hpp>
#include <bunsan/utility/custom_resolver.hpp>
#include <boost/noncopyable.hpp>
namespace bunsan::pm {
class repository::local_system : private boost::noncopyable {
public:
local_system(repository &self, const local_system_config &co... | 19.967742 | 68 | 0.746365 | bacsorg |
8a454539e831ef699299d1f035c75bf42a7977fc | 1,285 | cpp | C++ | src/tests/rng.cpp | jjbandit/game | c28affd868201d3151ca75a20883e7fb26e09302 | [
"WTFPL"
] | null | null | null | src/tests/rng.cpp | jjbandit/game | c28affd868201d3151ca75a20883e7fb26e09302 | [
"WTFPL"
] | null | null | null | src/tests/rng.cpp | jjbandit/game | c28affd868201d3151ca75a20883e7fb26e09302 | [
"WTFPL"
] | null | null | null |
#include <bonsai_types.h>
#include <tests/test_utils.cpp>
s32
main(s32 ArgCount, const char** Args)
{
TestSuiteBegin("RNG", ArgCount, Args);
#if 0
random_series Entropy = {43215426453};
const u32 TableSize = 256;
u32 HitTable[TableSize] = {};
u32 MaxValue = 0;
memory_arena* Memory = AllocateArena(Megab... | 19.469697 | 91 | 0.61323 | jjbandit |
8a48d3123adb1a0ef856e62372e4ac7e6c70e767 | 1,135 | cpp | C++ | chapters/11/ex11_09.cpp | yG620/cpp_primer_5th_solutions | 68fdb2e5167228a3d31ac31c221c1055c2500b91 | [
"Apache-2.0"
] | null | null | null | chapters/11/ex11_09.cpp | yG620/cpp_primer_5th_solutions | 68fdb2e5167228a3d31ac31c221c1055c2500b91 | [
"Apache-2.0"
] | null | null | null | chapters/11/ex11_09.cpp | yG620/cpp_primer_5th_solutions | 68fdb2e5167228a3d31ac31c221c1055c2500b91 | [
"Apache-2.0"
] | null | null | null | //
// ex11_09.cpp
// Exercise 11.09
//
// Created by yG620 on 20/9/16
//
// @Brief > Define a map that associates words with a list of line
// numbers on which the word might occur.
//
// @KeyPoint 1. bug: error: expected unqualified-id before ‘[’ token
// fix: using WordLineNo = map<string... | 23.163265 | 103 | 0.570044 | yG620 |
8a4e26a8e4cf447fdc5689bdf4642f807eb67c7b | 2,379 | cpp | C++ | Pacman/Debug.cpp | GeraldBostock/Pacman | db8b30f2f04a85678f01c7311a9cf706fdd31804 | [
"MIT"
] | null | null | null | Pacman/Debug.cpp | GeraldBostock/Pacman | db8b30f2f04a85678f01c7311a9cf706fdd31804 | [
"MIT"
] | null | null | null | Pacman/Debug.cpp | GeraldBostock/Pacman | db8b30f2f04a85678f01c7311a9cf706fdd31804 | [
"MIT"
] | null | null | null | #include "Debug.h"
Debug::Debug()
{
}
Debug::~Debug()
{
}
void Debug::init(SDL_Renderer* renderer, int windowWidth, int windowHeight)
{
if (TTF_Init() == -1)
{
printf("SDL_ttf could not initialize! SDL_ttf Error: %s\n", TTF_GetError());
}
m_blendedRect = createDebugRect(windowWidth, windowHeight, render... | 29.012195 | 120 | 0.733922 | GeraldBostock |
8a4e6c5abfd83ae41c2ef4295e4459fc715167db | 547 | cpp | C++ | src/pyco_tree/pico_tree/_pyco_tree/_pyco_tree.cpp | Jaybro/pico_tree | c6f7fb798b60452add7d0e940c4a7737cd72a992 | [
"MIT"
] | 23 | 2020-07-19T23:03:01.000Z | 2022-03-07T15:06:26.000Z | src/pyco_tree/pico_tree/_pyco_tree/_pyco_tree.cpp | Jaybro/pico_tree | c6f7fb798b60452add7d0e940c4a7737cd72a992 | [
"MIT"
] | 1 | 2021-01-26T16:53:16.000Z | 2021-01-26T23:20:54.000Z | src/pyco_tree/pico_tree/_pyco_tree/_pyco_tree.cpp | Jaybro/pico_tree | c6f7fb798b60452add7d0e940c4a7737cd72a992 | [
"MIT"
] | 4 | 2021-03-04T14:03:28.000Z | 2021-05-27T05:36:40.000Z | #include <pybind11/pybind11.h>
#include <iostream>
#include "darray.hpp"
#include "def_core.hpp"
#include "def_darray.hpp"
#include "def_kd_tree.hpp"
PYBIND11_MODULE(_pyco_tree, m) {
m.doc() =
"PicoTree is a module for nearest neighbor searches and range searches "
"using a KdTree. It wraps the C++ Pic... | 24.863636 | 78 | 0.725777 | Jaybro |
8a52f8bbfc86473a4bbca1b74a930f7e4cc77dcf | 2,999 | cpp | C++ | src/util/models/modelitem.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/util/models/modelitem.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/util/models/modelitem.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 34.079545 | 102 | 0.687229 | MellonQ |
a437049631a5705c20e9dfdabb0254f5fc0d7722 | 618 | hpp | C++ | Scott_Sidoli Level 7 HW Submission/Exercise 3/Exercise73/lessThan.hpp | scottsidoli/C-for-Financial-Engineering---Baruch-Pre-MFE-Certificate | 79c2fb297a85c914d5f0b8671bb17636801e3ce7 | [
"MIT"
] | 1 | 2021-11-05T08:14:37.000Z | 2021-11-05T08:14:37.000Z | Scott_Sidoli Level 7 HW Submission/Exercise 3/Exercise73/lessThan.hpp | scottsidoli/C-for-Financial-Engineering---Baruch-Pre-MFE-Certificate | 79c2fb297a85c914d5f0b8671bb17636801e3ce7 | [
"MIT"
] | null | null | null | Scott_Sidoli Level 7 HW Submission/Exercise 3/Exercise73/lessThan.hpp | scottsidoli/C-for-Financial-Engineering---Baruch-Pre-MFE-Certificate | 79c2fb297a85c914d5f0b8671bb17636801e3ce7 | [
"MIT"
] | null | null | null | // Exercise 7.3 - STL Algorithms
//
// by Scott Sidoli
//
// 5-28-19
//
// lessThan.hpp
//
// lessThan class with global function and function object.
#ifndef lessThan_hpp
#define lessThan_hpp
extern double threshold;
class lessThan
{
private:
double boundary; // Threshold value
public:
l... | 16.702703 | 66 | 0.658576 | scottsidoli |
a43a1975be6bc1664f07c5d1eea75494fde1e886 | 334 | cpp | C++ | src/main.cpp | kaidokert/MosquitoBorneDisease | b3584f12a9c3be2907360152c04032b213f19cd1 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | kaidokert/MosquitoBorneDisease | b3584f12a9c3be2907360152c04032b213f19cd1 | [
"BSD-3-Clause"
] | 8 | 2018-11-13T14:33:26.000Z | 2018-11-23T18:01:38.000Z | src/main.cpp | kaidokert/MosquitoBorneDisease | b3584f12a9c3be2907360152c04032b213f19cd1 | [
"BSD-3-Clause"
] | 2 | 2019-08-05T07:21:28.000Z | 2019-08-23T06:24:23.000Z | /*
# main routines
#
# This file is part of SMosMod.
# Copyright (c) 2017-2018, Imperial College London
# For licensing information, see the LICENSE file distributed with the SMosMod
# software package.
*/
#include <iostream>
#include "world.hpp"
#include "agent.hpp"
int main() {
std::cout << "Hi Ben\n";
... | 15.904762 | 79 | 0.676647 | kaidokert |
a43f462c5aab064b525b2a0f5661660a93c41e94 | 670 | cpp | C++ | Arrays/Monotonic Array/Solution1.cpp | jabbala-ai/competitive-programming | 8ab4f3d291068e24b2ffe3e916f8f8a5c8f839c7 | [
"MIT"
] | null | null | null | Arrays/Monotonic Array/Solution1.cpp | jabbala-ai/competitive-programming | 8ab4f3d291068e24b2ffe3e916f8f8a5c8f839c7 | [
"MIT"
] | null | null | null | Arrays/Monotonic Array/Solution1.cpp | jabbala-ai/competitive-programming | 8ab4f3d291068e24b2ffe3e916f8f8a5c8f839c7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
bool breaksDirection(int direction, int previousInt, int currentInt)
{
int difference = currentInt - previousInt;
if(direction > 0){
return direction < 0;
}
return direction >0;
}
// Time Complexity - O(N)
// Spac... | 18.611111 | 68 | 0.656716 | jabbala-ai |
a444168398f0f4149c70f26a6f2627bf0e3bec2f | 3,239 | cc | C++ | Mu2eG4/src/addPointTrajectories.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | null | null | null | Mu2eG4/src/addPointTrajectories.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | Mu2eG4/src/addPointTrajectories.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | //
// Extract trajectories from the G4 internals and add them to the event.
// Skip trajectories with too few points.
//
// $Id: addPointTrajectories.cc,v 1.5 2014/01/18 04:31:53 kutschke Exp $
// $Author: kutschke $
// $Date: 2014/01/18 04:31:53 $
//
// Original author Rob Kutschke
//
// Notes:
// 1) The data product ... | 34.457447 | 89 | 0.654523 | bonventre |
a44b6796e9dc3bb76fb39df63a71aca44cadcb98 | 475 | cpp | C++ | sources/Renderer/OpenGL/GLCoreProfile/GLCoreExtensions.cpp | beldenfox/LLGL | 3a54125ebfa79bb06fccf8c413d308ff22186b52 | [
"BSD-3-Clause"
] | 1,403 | 2016-09-28T21:48:07.000Z | 2022-03-31T23:58:57.000Z | sources/Renderer/OpenGL/GLCoreProfile/GLCoreExtensions.cpp | beldenfox/LLGL | 3a54125ebfa79bb06fccf8c413d308ff22186b52 | [
"BSD-3-Clause"
] | 70 | 2016-10-13T20:15:58.000Z | 2022-01-12T23:51:12.000Z | sources/Renderer/OpenGL/GLCoreProfile/GLCoreExtensions.cpp | beldenfox/LLGL | 3a54125ebfa79bb06fccf8c413d308ff22186b52 | [
"BSD-3-Clause"
] | 122 | 2016-10-23T15:33:44.000Z | 2022-03-07T07:41:23.000Z | /*
* GLCoreExtensions.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "GLCoreExtensions.h"
namespace LLGL
{
#define LLGL_DEF_GL_EXT_PROCS
// Include inline header for object definitions
#include "GLCoreExten... | 16.964286 | 86 | 0.606316 | beldenfox |
a4569a35daa91f7a3d46db798aea0e059fe962fc | 989 | cc | C++ | examples/string.cc | knocknote/libhtml5 | 46e18a9122097b4d681c91f0747aa78a20611cab | [
"MIT"
] | 7 | 2019-08-29T05:22:05.000Z | 2020-07-07T15:35:50.000Z | examples/string.cc | blastrain/libhtml5 | 46e18a9122097b4d681c91f0747aa78a20611cab | [
"MIT"
] | 3 | 2019-07-12T09:43:31.000Z | 2019-09-10T03:36:45.000Z | examples/string.cc | blastrain/libhtml5 | 46e18a9122097b4d681c91f0747aa78a20611cab | [
"MIT"
] | 3 | 2019-10-25T05:35:30.000Z | 2020-07-21T21:40:52.000Z | #include "libhtml5.h"
static void stringTest()
{
{
html5::string s = "hello world";
std::cout << s << std::endl;
html5::console->log(s);
}
{
std::string s = "hello";
html5::string s2 = s;
s2 += "world";
std::cout << s2 << std::endl;
}
{
... | 24.725 | 72 | 0.484328 | knocknote |
a46099fe7b14fd6177cedd9034bd22c05d0a0431 | 826 | hpp | C++ | scratch/simulator/mutils.hpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 1 | 2018-10-16T02:32:49.000Z | 2018-10-16T02:32:49.000Z | scratch/simulator/mutils.hpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 13 | 2018-10-23T20:35:10.000Z | 2018-11-23T22:44:32.000Z | scratch/simulator/mutils.hpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 1 | 2018-10-16T03:11:39.000Z | 2018-10-16T03:11:39.000Z | #ifndef MUTILS_H
#define MUTILS_H
#ifndef M_PI
#define M_PI 3.1415926535
#endif
struct Mat3f {
float data[9];
};
void mat3f_zero_inplace(Mat3f* mat);
Mat3f mat3f_zero_copy();
void mat3f_identity_inplace(Mat3f* mat);
Mat3f mat3f_identity_copy();
void mat3f_projection_inplace(Mat3f* mat, float left, float right,... | 29.5 | 107 | 0.789346 | 2535Rover |
a468ecf79ee24066e45867ca1d343e8bf12e8017 | 1,405 | cpp | C++ | C语言程序设计基础/H24. 爱刷题的PQ大神(选作).cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 63 | 2021-01-10T02:32:17.000Z | 2022-03-30T04:08:38.000Z | C语言程序设计基础/H24. 爱刷题的PQ大神(选作).cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 2 | 2021-06-09T05:38:58.000Z | 2021-12-14T13:53:54.000Z | C语言程序设计基础/H24. 爱刷题的PQ大神(选作).cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 20 | 2021-01-12T11:49:36.000Z | 2022-03-26T11:04:58.000Z | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int cmp(const void *a, const void *b)
{
if (*((int*)a + 1) != *((int*)b + 1)) return -( *((int*)a + 1) - *((int*)b + 1) );
else
{
int na = *(int*)a;
int nb = *(int*)b;
char sa[15], sb[15];
int i = 0;
while(na)
{
sa[i++] = na % 10 + '0';
na ... | 16.927711 | 83 | 0.427758 | xiabee |
a46d42802b4b60c8c3de875ebd2bfbb4ca07df86 | 6,699 | cc | C++ | src/server/signal_handler_thread.test.cc | dspeterson/dory | 7261fb5481283fdd69b382c3cddbc9b9bd24366d | [
"Apache-2.0"
] | 82 | 2016-06-11T23:12:40.000Z | 2022-02-21T21:01:36.000Z | src/server/signal_handler_thread.test.cc | dspeterson/dory | 7261fb5481283fdd69b382c3cddbc9b9bd24366d | [
"Apache-2.0"
] | 18 | 2016-06-16T22:55:12.000Z | 2020-07-02T10:32:53.000Z | src/server/signal_handler_thread.test.cc | dspeterson/dory | 7261fb5481283fdd69b382c3cddbc9b9bd24366d | [
"Apache-2.0"
] | 14 | 2016-06-15T18:34:08.000Z | 2021-09-06T23:16:28.000Z | /* <server/signal_handler_thread.test.cc>
----------------------------------------------------------------------------
Copyright 2019 Dave Peterson <dave@dspeterson.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ... | 27.9125 | 79 | 0.627855 | dspeterson |
a46d8d2c231e1051c293f0be67af2890c51d33c2 | 5,629 | hpp | C++ | include/opengv/absolute_pose/modules/Epnp.hpp | PXLVision/opengv | e48f77da4db7b8cee36ec677ed4ff5c5354571bb | [
"BSD-3-Clause"
] | null | null | null | include/opengv/absolute_pose/modules/Epnp.hpp | PXLVision/opengv | e48f77da4db7b8cee36ec677ed4ff5c5354571bb | [
"BSD-3-Clause"
] | null | null | null | include/opengv/absolute_pose/modules/Epnp.hpp | PXLVision/opengv | e48f77da4db7b8cee36ec677ed4ff5c5354571bb | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* Author: Laurent Kneip *
* Contact: kneip.laurent@gmail.com *
* License: Copyright (c) 2013 Laurent Kneip, ANU. All rights reserved. *
... | 34.962733 | 80 | 0.606324 | PXLVision |
a46fdc9e38e3404e73486cc2634bf47e4e824d7b | 873 | cpp | C++ | source/Ch08/drill/drill2.cpp | AttilaAV/UDProg-Introduction | 791fe2120cfa3c47346e28cc588d06420842cf5f | [
"CC0-1.0"
] | null | null | null | source/Ch08/drill/drill2.cpp | AttilaAV/UDProg-Introduction | 791fe2120cfa3c47346e28cc588d06420842cf5f | [
"CC0-1.0"
] | null | null | null | source/Ch08/drill/drill2.cpp | AttilaAV/UDProg-Introduction | 791fe2120cfa3c47346e28cc588d06420842cf5f | [
"CC0-1.0"
] | null | null | null | #include "std_lib_facilities.h"
void swap_v(int a, int b)
{
int temp{0};
temp = a;
a = b;
b = temp;
}
void swap_r(int& a, int& b)
{
int temp{0};
temp = a;
a = b;
b = temp;
}
/* THIS FUNC WONT COMPILE BECAUSE CONSTS ARE READ-ONLY
error: assignment of read-only reference ‘a’ 'b'
void swap_cr(const int& a, cons... | 18.574468 | 114 | 0.532646 | AttilaAV |
a4702beab18564bd72014078d1a3c51a34e93b1e | 429 | hpp | C++ | src/afk/ai/behaviour/BaseBehaviour.hpp | christocs/ICT397 | 5ff6e4ed8757effad19b88fdb91f36504208f942 | [
"ISC"
] | null | null | null | src/afk/ai/behaviour/BaseBehaviour.hpp | christocs/ICT397 | 5ff6e4ed8757effad19b88fdb91f36504208f942 | [
"ISC"
] | null | null | null | src/afk/ai/behaviour/BaseBehaviour.hpp | christocs/ICT397 | 5ff6e4ed8757effad19b88fdb91f36504208f942 | [
"ISC"
] | null | null | null | #pragma once
#include <glm/glm.hpp>
namespace Afk {
namespace AI {
/**
* Base AI movement behaviour
*/
class BaseBehaviour {
public:
/**
* Get a new position based on the current position
*/
virtual auto update(const glm::vec3 ¤t_position) -> glm::vec3 = 0;
... | 18.652174 | 78 | 0.571096 | christocs |
a470ed5fdcb650839dcf406dfd58513c260183f0 | 8,750 | cpp | C++ | src/main/cpp/subsystems/Climber.cpp | frc3512/Robot-2020 | c6811155900ccffba93ea9ba131192dcb9fcb1bd | [
"BSD-3-Clause"
] | 10 | 2020-02-07T04:13:15.000Z | 2022-02-26T00:13:39.000Z | src/main/cpp/subsystems/Climber.cpp | frc3512/Robot-2020 | c6811155900ccffba93ea9ba131192dcb9fcb1bd | [
"BSD-3-Clause"
] | 82 | 2020-02-12T03:05:15.000Z | 2022-02-18T02:14:38.000Z | src/main/cpp/subsystems/Climber.cpp | frc3512/Robot-2020 | c6811155900ccffba93ea9ba131192dcb9fcb1bd | [
"BSD-3-Clause"
] | 5 | 2020-02-14T16:24:01.000Z | 2022-03-31T09:10:01.000Z | // Copyright (c) 2020-2021 FRC Team 3512. All Rights Reserved.
#include "subsystems/Climber.hpp"
#include <cmath>
#include <frc/DriverStation.h>
#include <frc/Joystick.h>
#include <frc/RobotBase.h>
#include <frc/RobotController.h>
#include <frc/StateSpaceUtil.h>
#include <frc/smartdashboard/SmartDashboard.h>
#includ... | 35.140562 | 80 | 0.648686 | frc3512 |
a4746f359ddf371aceff41bb484ccbb6791f8527 | 457 | cpp | C++ | src/codechef/contests/LP1TO202/COLGLF2.cpp | tllaw/cp | 91c131792cd00ebd12f7a2dddb26a863970b00ce | [
"MIT"
] | null | null | null | src/codechef/contests/LP1TO202/COLGLF2.cpp | tllaw/cp | 91c131792cd00ebd12f7a2dddb26a863970b00ce | [
"MIT"
] | null | null | null | src/codechef/contests/LP1TO202/COLGLF2.cpp | tllaw/cp | 91c131792cd00ebd12f7a2dddb26a863970b00ce | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
long long t, s, e, l;
cin >> t;
while(t--) {
cin >> s;
long long q[s] = {0}, r = 0;
for(long long i = 0; i < s; i++) {
cin >> q[i];
r += q[i];
}
for(long long i = 0; i < s; i++)... | 13.441176 | 38 | 0.391685 | tllaw |
a4747547e801bbff6eb42cb93ffe61adc6192ca6 | 4,708 | cpp | C++ | src/updater.cpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 6 | 2019-06-11T20:09:01.000Z | 2021-05-28T01:18:27.000Z | src/updater.cpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 7 | 2019-06-14T20:28:31.000Z | 2020-08-11T14:51:03.000Z | src/updater.cpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 1 | 2020-11-07T05:28:23.000Z | 2020-11-07T05:28:23.000Z | // Copyright © 2020 Niventill
// This file is licensed under ISC License. See "LICENSE" in the top level directory for more info.
//standard libraries
#include <filesystem>
#include <iostream>
#include <fstream>
//header includes
#include <config.hpp>
#include <var.hpp>
#include <common.hpp>
#include <debug.hpp>
#in... | 34.874074 | 206 | 0.647409 | DarXe |
a47bf8f6ba17ef54debc2e7d6d15ba1727eded46 | 4,446 | cpp | C++ | lib/maths/Spline.cpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | 1 | 2016-11-15T09:04:12.000Z | 2016-11-15T09:04:12.000Z | lib/maths/Spline.cpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | null | null | null | lib/maths/Spline.cpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 maldicion069
*
* Authors: Cristian Rodríguez Bernal <ccrisrober@gmail.com>
*
* This file is part of MonkeyBrushPlusPlus <https://github.com/maldicion069/monkeybrushplusplus>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Pu... | 33.428571 | 96 | 0.617859 | maldicion069 |
a481147d9118873aea62da21afee94fea64fe1f5 | 17,033 | hpp | C++ | core/ntsSingleCPUGraphOp.hpp | Sanzo00/NeutronStarLite | 57d92d1f7f6cd55c55a83ca086096a710185d531 | [
"Apache-2.0"
] | 1 | 2022-03-10T07:41:55.000Z | 2022-03-10T07:41:55.000Z | core/ntsSingleCPUGraphOp.hpp | Sanzo00/NeutronStarLite | 57d92d1f7f6cd55c55a83ca086096a710185d531 | [
"Apache-2.0"
] | null | null | null | core/ntsSingleCPUGraphOp.hpp | Sanzo00/NeutronStarLite | 57d92d1f7f6cd55c55a83ca086096a710185d531 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2021-2022 Qiange Wang, Northeastern University
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 app... | 41.043373 | 86 | 0.655727 | Sanzo00 |
a482b221c55ea3dd711168344e2d43bfc1c4f26f | 2,062 | cpp | C++ | librbr/src/mdp/mdp.cpp | kylewray/librbr | ea3dcef7c37b4f177373ac6fec1f4c4566cf7bd8 | [
"MIT"
] | null | null | null | librbr/src/mdp/mdp.cpp | kylewray/librbr | ea3dcef7c37b4f177373ac6fec1f4c4566cf7bd8 | [
"MIT"
] | 11 | 2015-04-02T01:32:47.000Z | 2015-04-02T01:32:47.000Z | librbr/src/mdp/mdp.cpp | kylewray/librbr | ea3dcef7c37b4f177373ac6fec1f4c4566cf7bd8 | [
"MIT"
] | null | null | null | /**
* The MIT License (MIT)
*
* Copyright (c) 2014 Kyle Hollins Wray, University of Massachusetts
*
* 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 ... | 23.431818 | 84 | 0.710475 | kylewray |
a494e4a3a4beedc35057517904c72cca21c15cac | 480 | hpp | C++ | TriVEngine/Source/Engine/Events/BaseEngineEvent.hpp | FrostByteGER/TriVEngine | 77db65a04950fc843515452af9a2bc2c940ab2c7 | [
"BSL-1.0"
] | null | null | null | TriVEngine/Source/Engine/Events/BaseEngineEvent.hpp | FrostByteGER/TriVEngine | 77db65a04950fc843515452af9a2bc2c940ab2c7 | [
"BSL-1.0"
] | null | null | null | TriVEngine/Source/Engine/Events/BaseEngineEvent.hpp | FrostByteGER/TriVEngine | 77db65a04950fc843515452af9a2bc2c940ab2c7 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include "EventExecutionType.hpp"
#include <iostream>
namespace TriV::Engine::Core::Events
{
class BaseEngineEvent
{
private:
EventExecutionType executionType;
protected:
explicit BaseEngineEvent(const EventExecutionType executionType)
{
this->executionType = executionType;
}
public:
... | 16 | 66 | 0.739583 | FrostByteGER |
a495ce7ace5135817f71187173b2487e38a63af9 | 17,700 | cpp | C++ | src/scsi2sd-util6/wxWidgets/src/gtk/assertdlg_gtk.cpp | fhgwright/SCSI2SD-V6 | 29555b30d3f96257ac12a546e75891490603aee8 | [
"BSD-3-Clause"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | src/scsi2sd-util6/wxWidgets/src/gtk/assertdlg_gtk.cpp | tweakoz/SCSI2SD-V6 | 77db5f86712213e25c9b12fa5c9fa9c54b80cb80 | [
"BSD-3-Clause"
] | null | null | null | src/scsi2sd-util6/wxWidgets/src/gtk/assertdlg_gtk.cpp | tweakoz/SCSI2SD-V6 | 77db5f86712213e25c9b12fa5c9fa9c54b80cb80 | [
"BSD-3-Clause"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /* ///////////////////////////////////////////////////////////////////////////
// Name: src/gtk/assertdlg_gtk.cpp
// Purpose: GtkAssertDialog
// Author: Francesco Montorsi
// Copyright: (c) 2006 Francesco Montorsi
// Licence: wxWindows licence
//////////////////////////////////////////////////////... | 35.119048 | 125 | 0.60774 | fhgwright |
a49ae046552c0aebf7784dd930a60fe403c4102b | 8,305 | cc | C++ | research/carls/knowledge_bank/knowledge_bank_test.cc | otiliastr/neural-structured-learning | 4a574b84c0a02e08ed3ef58e60284555e7e7c7e2 | [
"Apache-2.0"
] | 1 | 2021-05-10T10:46:57.000Z | 2021-05-10T10:46:57.000Z | research/carls/knowledge_bank/knowledge_bank_test.cc | Saiprasad16/neural-structured-learning | bde9105b12b2797c909a0fe20ef74bb7fff6100b | [
"Apache-2.0"
] | null | null | null | research/carls/knowledge_bank/knowledge_bank_test.cc | Saiprasad16/neural-structured-learning | bde9105b12b2797c909a0fe20ef74bb7fff6100b | [
"Apache-2.0"
] | null | null | null | /*Copyright 2020 Google LLC
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | 35.643777 | 80 | 0.680433 | otiliastr |
a4a0a3af308b4fd393f56a2bea193adba9fb6a04 | 9,919 | cpp | C++ | Quartz/Engine/Source/Platform/GLWindow.cpp | tobyplowy/quartz-engine | d08ff18330c9bb59ab8739b40d5a4781750697c1 | [
"BSD-3-Clause"
] | null | null | null | Quartz/Engine/Source/Platform/GLWindow.cpp | tobyplowy/quartz-engine | d08ff18330c9bb59ab8739b40d5a4781750697c1 | [
"BSD-3-Clause"
] | null | null | null | Quartz/Engine/Source/Platform/GLWindow.cpp | tobyplowy/quartz-engine | d08ff18330c9bb59ab8739b40d5a4781750697c1 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 Genten Studios
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer... | 28.019774 | 80 | 0.710959 | tobyplowy |
a4a7297b8e21b7fafb7dc6174503c1f9ffda5c43 | 2,138 | hpp | C++ | modules/boost/simd/base/include/boost/simd/arithmetic/functions/remround.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/include/boost/simd/arithmetic/functions/remround.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/include/boost/simd/arithmetic/functions/remround.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 29.287671 | 139 | 0.615529 | feelpp |
a4ae31b62b0195c58107025fc5f64b52d24b1ad5 | 4,133 | cpp | C++ | tests/filter_tests.cpp | obruns/bluetoe | de13682bce39335878262212f3615254e0af1702 | [
"MIT"
] | 1 | 2019-02-01T09:38:00.000Z | 2019-02-01T09:38:00.000Z | tests/filter_tests.cpp | obruns/bluetoe | de13682bce39335878262212f3615254e0af1702 | [
"MIT"
] | null | null | null | tests/filter_tests.cpp | obruns/bluetoe | de13682bce39335878262212f3615254e0af1702 | [
"MIT"
] | null | null | null | #include <iostream>
#include <bluetoe/filter.hpp>
#include <bluetoe/attribute.hpp>
#include <bluetoe/uuid.hpp>
#define BOOST_TEST_MODULE
#include <boost/test/included/unit_test.hpp>
namespace blued = bluetoe::details;
namespace {
template < class UUID >
blued::uuid_filter fixture()
{
return blue... | 33.064 | 111 | 0.65836 | obruns |
a4aeac9d036c8e6283235efbd6285376ee5d7156 | 685 | cpp | C++ | UVa-11498-DivisionOfNlogonia.cpp | antisocialamp/lowerBound | 6b0678954075dd07b247d057b62c2e55669c8cf1 | [
"MIT"
] | 1 | 2020-08-07T07:25:23.000Z | 2020-08-07T07:25:23.000Z | UVa-11498-DivisionOfNlogonia.cpp | chatziiola/lowerBound | 6b0678954075dd07b247d057b62c2e55669c8cf1 | [
"MIT"
] | null | null | null | UVa-11498-DivisionOfNlogonia.cpp | chatziiola/lowerBound | 6b0678954075dd07b247d057b62c2e55669c8cf1 | [
"MIT"
] | null | null | null | #include <cstdio>
int main(){
// INPUT PROCESS HAS BEEN MODIFIED DUE TO MULTIPLY CASES IN ONE INPUT
// integer K is the number of queries
// integers N, M are the coordinates (x,y) of point A (The division point)
int K, N, M;
// integers a and b stand for the coordinates of point X whose location we must... | 24.464286 | 90 | 0.525547 | antisocialamp |
a4b445b45998b88c1783a10823f78dc5bf0c4cb0 | 3,437 | hpp | C++ | include/Library/Physics/Environment/Objects/CelestialBodies/Sun.hpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | include/Library/Physics/Environment/Objects/CelestialBodies/Sun.hpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | include/Library/Physics/Environment/Objects/CelestialBodies/Sun.hpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Library ▸ Physics
/// @file Library/Physics/Environment/Objects/CelestialBodies/Sun.hpp
/// @author Lucas Brémond <lucas... | 38.617978 | 163 | 0.348851 | cowlicks |
a4b46e4de6a7cba12fdd44604fc2b9818b3b6040 | 663 | cpp | C++ | sources/Core/Instance.cpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | sources/Core/Instance.cpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | sources/Core/Instance.cpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | /**************************************************************************
* Created: 2008/07/22 6:56
* Author: Eugene V. Palchukovsky
* E-mail: eugene@palchukovsky.com
* -------------------------------------------------------------------
* Project: TunnelEx
* URL: http://tunnelex.net
* Copyrigh... | 23.678571 | 76 | 0.431373 | palchukovsky |
8a5465a4bdec3f0699a9dfc975923e47d15c5cf6 | 4,486 | cpp | C++ | src/Daemon.cpp | JadedCtrl/rifen | eddbc45d987abe6524715a25ed56e09e8c349300 | [
"MIT"
] | 4 | 2021-03-22T06:38:33.000Z | 2021-03-23T04:57:44.000Z | src/Daemon.cpp | JadedCtrl/rifen | eddbc45d987abe6524715a25ed56e09e8c349300 | [
"MIT"
] | 12 | 2021-02-25T22:13:36.000Z | 2021-05-03T01:21:50.000Z | src/Daemon.cpp | JadedCtrl/rifen | eddbc45d987abe6524715a25ed56e09e8c349300 | [
"MIT"
] | 1 | 2021-10-11T06:40:06.000Z | 2021-10-11T06:40:06.000Z | /*
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "Daemon.h"
#include <iostream>
#include <MessageRunner.h>
#include <Roster.h>
#include <Url.h>
#include "DeskbarView.h"
#include "FeedController.h"
#include "Notifier.h"
#... | 19.849558 | 76 | 0.708426 | JadedCtrl |
8a57cd016755c5f2542523c05a0a681508d0a43d | 3,366 | cpp | C++ | multibase/server/tcpsrv.cpp | Zzzzipper/cppprojects | e9c9b62ca1e411320c24a3d168cab259fa2590d3 | [
"MIT"
] | null | null | null | multibase/server/tcpsrv.cpp | Zzzzipper/cppprojects | e9c9b62ca1e411320c24a3d168cab259fa2590d3 | [
"MIT"
] | 1 | 2021-09-03T13:03:20.000Z | 2021-09-03T13:03:20.000Z | multibase/server/tcpsrv.cpp | Zzzzipper/cppprojects | e9c9b62ca1e411320c24a3d168cab259fa2590d3 | [
"MIT"
] | null | null | null | #include "tcpsrv.h"
#include "processor.h"
#include "json.h"
#include "m_types.h"
namespace multibase {
/**
* @brief session::session
* @param socket
*/
Session::Session(tcp::socket socket)
: socket_(std::move(socket))
{
}
/**
* @brief session::start
*/
void Se... | 30.053571 | 96 | 0.468509 | Zzzzipper |
8a5f2dcd1db9f849aa46606d0095a4d151269317 | 1,792 | cpp | C++ | test/extra_test/catch2/main.cpp | KaiserLancelot/kpkg | c19d2a027d47ec2dff7c3eeaa6eb86284aeefcd4 | [
"MIT"
] | 1 | 2022-02-28T12:31:46.000Z | 2022-02-28T12:31:46.000Z | test/extra_test/catch2/main.cpp | KaiserLancelot/kpkg | c19d2a027d47ec2dff7c3eeaa6eb86284aeefcd4 | [
"MIT"
] | null | null | null | test/extra_test/catch2/main.cpp | KaiserLancelot/kpkg | c19d2a027d47ec2dff7c3eeaa6eb86284aeefcd4 | [
"MIT"
] | 1 | 2021-11-06T14:20:25.000Z | 2021-11-06T14:20:25.000Z | #include <cstdint>
#include <vector>
#include <catch2/catch.hpp>
std::uint64_t factorial(std::uint64_t number) {
return number > 1 ? factorial(number - 1) * number : 1;
}
// https://github.com/catchorg/Catch2/blob/devel/docs/tutorial.md
// https://github.com/catchorg/Catch2/blob/devel/docs/benchmarks.md
TEST_CASE(... | 23.578947 | 67 | 0.582031 | KaiserLancelot |
8a5f4a69438e3fefb9daeb2033f78c90e9cd2849 | 2,503 | cpp | C++ | src/entities/CTask.cpp | nizikawa-worms/wkJellyWorm | ddc1b00d38eb92c501bf3554804f4e02319b7bd9 | [
"WTFPL"
] | 5 | 2021-04-19T14:29:50.000Z | 2022-01-07T02:46:30.000Z | src/entities/CTask.cpp | nizikawa-worms/wkJellyWorm | ddc1b00d38eb92c501bf3554804f4e02319b7bd9 | [
"WTFPL"
] | null | null | null | src/entities/CTask.cpp | nizikawa-worms/wkJellyWorm | ddc1b00d38eb92c501bf3554804f4e02319b7bd9 | [
"WTFPL"
] | 1 | 2021-04-19T14:29:24.000Z | 2021-04-19T14:29:24.000Z |
#include "../Lua.h"
#include <sol/sol.hpp>
#include "../Hooks.h"
#include "CTask.h"
DWORD *(__stdcall *origConstructCTask)(DWORD *This, int a2, int a3);
DWORD *__stdcall CTask::hookConstructCTask(DWORD *This, int a2, int a3) {
return origConstructCTask(This, a2, a3);
}
CTask * (__fastcall *origGetHashStoreObject)(... | 38.507692 | 399 | 0.695965 | nizikawa-worms |
8a60ffc6eba71542ceee88cba78ab310385560bb | 5,049 | hpp | C++ | include/Core/Transform/Rect.hpp | Tzupy/ObEngine | fa5c36aa41be1586088b76319c648d39c7f57cdf | [
"MIT"
] | null | null | null | include/Core/Transform/Rect.hpp | Tzupy/ObEngine | fa5c36aa41be1586088b76319c648d39c7f57cdf | [
"MIT"
] | null | null | null | include/Core/Transform/Rect.hpp | Tzupy/ObEngine | fa5c36aa41be1586088b76319c648d39c7f57cdf | [
"MIT"
] | null | null | null | #pragma once
#include <Transform/Movable.hpp>
#include <Transform/Referential.hpp>
namespace obe::Transform
{
/**
* \brief A Class that does represent a Rectangle with various methods to
* manipulate it
* @Bind
*/
class Rect : public Movable
{
protected:
/**
* \bri... | 37.4 | 80 | 0.576946 | Tzupy |
8a75c25038fddc0ec336ca4c1fb25fcc4ab95c35 | 2,904 | hpp | C++ | include/boost/channels/error_code.hpp | cblauvelt/boost_channels | 455772295caf9a3a215b9d2569e484f0e2f91022 | [
"BSL-1.0"
] | 23 | 2021-05-29T04:26:25.000Z | 2022-03-23T07:12:13.000Z | include/boost/channels/error_code.hpp | cblauvelt/boost_channels | 455772295caf9a3a215b9d2569e484f0e2f91022 | [
"BSL-1.0"
] | 2 | 2021-09-28T20:00:22.000Z | 2021-09-28T20:10:39.000Z | include/boost/channels/error_code.hpp | cblauvelt/boost_channels | 455772295caf9a3a215b9d2569e484f0e2f91022 | [
"BSL-1.0"
] | 1 | 2021-10-03T01:12:37.000Z | 2021-10-03T01:12:37.000Z | //
// Copyright (c) 2021 Richard Hodges (hodges.r@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/madmongo1/boost_channels
//
#ifndef BOOST_CHANNELS_INCLU... | 27.923077 | 79 | 0.603994 | cblauvelt |
8a7cb03762dc2b98162431636f480cfd9d9111cd | 1,024 | cpp | C++ | Source/SystemQOR/MSWindows/WinQL/GUI/Controllers/WinQLRowContainer.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQL/GUI/Controllers/WinQLRowContainer.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQL/GUI/Controllers/WinQLRowContainer.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //RowContainer.cpp
//#include "stdafx.h"
#include "WinQL/GUI/Controllers/RowContainer.h"
#include "WinQL/GUI/Window.h"
//--------------------------------------------------------------------------------
namespace nsWin32
{
//--------------------------------------------------------------------------------
namespace n... | 27.675676 | 161 | 0.5 | mfaithfull |
8a7d79370e318de649b0b85f333029193f1e959c | 4,681 | cpp | C++ | source/test/unit-test.cpp | CaptainCrowbar/rs-tl | fe9e3f072683f638a427d44d132e27435af5bd40 | [
"BSL-1.0"
] | null | null | null | source/test/unit-test.cpp | CaptainCrowbar/rs-tl | fe9e3f072683f638a427d44d132e27435af5bd40 | [
"BSL-1.0"
] | null | null | null | source/test/unit-test.cpp | CaptainCrowbar/rs-tl | fe9e3f072683f638a427d44d132e27435af5bd40 | [
"BSL-1.0"
] | null | null | null | // This file is generated by the rs-update-tests script
#include "rs-unit-test.hpp"
int main(int argc, char** argv) {
RS::UnitTest::begin_tests(argc, argv);
// types-test.cpp
UNIT_TEST(rs_tl_types_mixins)
UNIT_TEST(rs_tl_types_traits)
UNIT_TEST(rs_tl_types_iterator_category)
UNIT_TEST(rs_tl_... | 28.717791 | 58 | 0.771203 | CaptainCrowbar |
8a7d9f390c699a974d904a1db836d9520d3aed98 | 5,813 | cpp | C++ | Blink.cpp | CPaladiya/14_BlackJack | 4a65abbefac00d362e1017f064a10a15ae8f8a73 | [
"Linux-OpenIB"
] | null | null | null | Blink.cpp | CPaladiya/14_BlackJack | 4a65abbefac00d362e1017f064a10a15ae8f8a73 | [
"Linux-OpenIB"
] | null | null | null | Blink.cpp | CPaladiya/14_BlackJack | 4a65abbefac00d362e1017f064a10a15ae8f8a73 | [
"Linux-OpenIB"
] | null | null | null | #include "GameGUI.h"
//Will set tile to yellow color background to player score
void Window::PlayerScoreYellowTile(){
PlayerScore_->setStyleSheet("background-color : yellow ; font-size : 60 px; font-weight : bold; color : black");
}
//Will set tile to yellow color background to dealer score
void Window::DealerSco... | 42.742647 | 124 | 0.744194 | CPaladiya |
8a7e58908b7c902cd91155801a4cac3dd6a6307f | 1,676 | cpp | C++ | pack/cpp/deltas_amd64.cpp | viant/vec | 51f2e71bebfbfa80ab44f3d00bca1adeb4a9c3c9 | [
"Apache-2.0"
] | 1 | 2022-02-21T22:44:50.000Z | 2022-02-21T22:44:50.000Z | pack/cpp/deltas_amd64.cpp | viant/vec | 51f2e71bebfbfa80ab44f3d00bca1adeb4a9c3c9 | [
"Apache-2.0"
] | null | null | null | pack/cpp/deltas_amd64.cpp | viant/vec | 51f2e71bebfbfa80ab44f3d00bca1adeb4a9c3c9 | [
"Apache-2.0"
] | null | null | null | #include <smmintrin.h>
void compute_deltas(const int32_t * input, size_t length, int32_t * output, int32_t starting_point) asm("compute_deltas");
void compute_deltas(const int32_t * input, size_t length, int32_t * output, int32_t starting_point) {
__m128i prev = _mm_set1_epi32(starting_point);
size_t i = 0;
... | 42.974359 | 132 | 0.636038 | viant |
8a8169088648ed0531c5139f5793c4df1f1641f6 | 198 | hpp | C++ | sprout/type/algorithm.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/type/algorithm.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/type/algorithm.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_TYPE_ALGORITHM_HPP
#define SPROUT_TYPE_ALGORITHM_HPP
#include <sprout/config.hpp>
#include <sprout/type/algorithm/find_index.hpp>
#endif // #ifndef SPROUT_TYPE_ALGORITHM_HPP
| 24.75 | 48 | 0.80303 | osyo-manga |
8a81783e43cfe2326d44e3a56d4a3a8e9b13f88a | 436 | hpp | C++ | Internal/Vulkan/DescriptorsAllocator.hpp | artamonovoleg/EternityGraphic | 0702cca3cca64d3af06afe7bfa5cb1464d04da8f | [
"MIT"
] | null | null | null | Internal/Vulkan/DescriptorsAllocator.hpp | artamonovoleg/EternityGraphic | 0702cca3cca64d3af06afe7bfa5cb1464d04da8f | [
"MIT"
] | null | null | null | Internal/Vulkan/DescriptorsAllocator.hpp | artamonovoleg/EternityGraphic | 0702cca3cca64d3af06afe7bfa5cb1464d04da8f | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <vulkan/vulkan.hpp>
#include <DescriptorsAllocator.h>
namespace Eternity
{
class DescriptorsAllocator
{
private:
std::unique_ptr<vke::DescriptorAllocatorPool> mDescriptorPool;
public:
void Init(uint32_t framesNum);
void Shutdown();
... | 21.8 | 91 | 0.674312 | artamonovoleg |
8a81a8e144950f4b3c94fec4c916e191b983e661 | 907 | hpp | C++ | include/unet/wire/ethernet.hpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | include/unet/wire/ethernet.hpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | include/unet/wire/ethernet.hpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <ostream>
#include <unet/wire/wire.hpp>
namespace unet {
struct UNET_PACK EthernetAddr {
struct MemcmpTag {};
std::uint8_t addr[6];
};
UNET_ASSERT_SIZE(EthernetAddr, 6);
std::ostream& operator<<(std::ostream& os, EthernetAddr ethAddr);
struct UNET_PACK EthernetHeader ... | 22.675 | 80 | 0.759647 | andreimaximov |
8a84ae7e2fd4993fd455b4d55f1f18c5258259e7 | 1,444 | cpp | C++ | tests/gtests/internals/test_bfloat16.cpp | NomotoKazuhiro/oneDNN | 18795301d6776bc1431ec808cba7bdf83d191bf8 | [
"Apache-2.0"
] | 13 | 2020-05-29T07:39:23.000Z | 2021-11-22T14:01:28.000Z | tests/gtests/internals/test_bfloat16.cpp | NomotoKazuhiro/oneDNN | 18795301d6776bc1431ec808cba7bdf83d191bf8 | [
"Apache-2.0"
] | 8 | 2020-09-04T02:05:19.000Z | 2021-12-24T02:18:37.000Z | tests/gtests/internals/test_bfloat16.cpp | NomotoKazuhiro/oneDNN | 18795301d6776bc1431ec808cba7bdf83d191bf8 | [
"Apache-2.0"
] | 24 | 2020-08-07T04:21:48.000Z | 2021-12-09T02:03:35.000Z | /*******************************************************************************
* Copyright 2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 36.1 | 80 | 0.674515 | NomotoKazuhiro |
8a850c5a3cb8d7b820dca0a6f73f7197c0687f55 | 306 | hpp | C++ | tests/future/future_full.hpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 11 | 2021-03-15T07:06:21.000Z | 2021-09-27T13:54:25.000Z | tests/future/future_full.hpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | null | null | null | tests/future/future_full.hpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 1 | 2021-06-24T10:46:46.000Z | 2021-06-24T10:46:46.000Z | #pragma once
//------------------------------------------------------------------------------
namespace future_tests {
//------------------------------------------------------------------------------
void run_full();
//------------------------------------------------------------------------------
}
| 21.857143 | 80 | 0.140523 | olegpublicprofile |
8a85dc0a072208ef6f64954f0e6788b7cf962b06 | 524 | cpp | C++ | src/cmd/kits/tpcc/templates.cpp | lslersch/zero | ab779235f3c3bf58d6a3aa9d2a0a5296578ee498 | [
"Spencer-94"
] | 27 | 2015-04-21T08:52:37.000Z | 2022-03-18T03:38:58.000Z | src/cmd/kits/tpcc/templates.cpp | lslersch/zero | ab779235f3c3bf58d6a3aa9d2a0a5296578ee498 | [
"Spencer-94"
] | 24 | 2015-07-04T10:45:41.000Z | 2018-05-03T08:52:36.000Z | src/cmd/kits/tpcc/templates.cpp | lslersch/zero | ab779235f3c3bf58d6a3aa9d2a0a5296578ee498 | [
"Spencer-94"
] | 15 | 2015-03-31T09:57:10.000Z | 2021-06-09T13:44:58.000Z | #include "tpcc_schema.h"
#include "sort.h"
#include "table_man.cpp"
template class table_man_t<tpcc::customer_t>;
template class table_man_t<tpcc::district_t>;
template class table_man_t<tpcc::history_t>;
template class table_man_t<tpcc::item_t>;
template class table_man_t<tpcc::new_order_t>;
template class table_man... | 32.75 | 47 | 0.812977 | lslersch |
8a8f2b624ce6a94fbed1149ecfe5a72603f0c3ff | 5,092 | cpp | C++ | src/Reflines.cpp | data-bridge/build | 1bd37f7061d9bd5caf0c1bd9c5cbbd85c7a45486 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | src/Reflines.cpp | data-bridge/build | 1bd37f7061d9bd5caf0c1bd9c5cbbd85c7a45486 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | src/Reflines.cpp | data-bridge/build | 1bd37f7061d9bd5caf0c1bd9c5cbbd85c7a45486 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | /*
Part of BridgeData.
Copyright (C) 2016-17 by Soren Hein.
See LICENSE and README.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <regex>
#include "RefLines.h"
#include "Buffer.h"
#include "parse.h"
#include "Bexcept.h"
RefLines::RefLines()
{
RefLines::reset();
}
RefLines::~... | 18.185714 | 68 | 0.639631 | data-bridge |
8a922fb0cda6605a0faa3442d065cd28158375e5 | 2,495 | cpp | C++ | src/BinaryLogger.cpp | TalexDreamSoul/Sharpen | 9167c4080438a1f150232d733c4da878639d6f66 | [
"MIT"
] | null | null | null | src/BinaryLogger.cpp | TalexDreamSoul/Sharpen | 9167c4080438a1f150232d733c4da878639d6f66 | [
"MIT"
] | null | null | null | src/BinaryLogger.cpp | TalexDreamSoul/Sharpen | 9167c4080438a1f150232d733c4da878639d6f66 | [
"MIT"
] | null | null | null | #include <sharpen/BinaryLogger.hpp>
#include <sharpen/FileOps.hpp>
#include <sharpen/Varint.hpp>
#include <sharpen/IntOps.hpp>
sharpen::BinaryLogger::BinaryLogger(const char *logName,sharpen::EventEngine &engine)
:channel_(nullptr)
,logName_(logName)
,offset_(0)
{
this->channel_ = sharpen::MakeFileCha... | 27.119565 | 122 | 0.627655 | TalexDreamSoul |
8a9735ec1e98e7bbb007bf3e601dbf4c598e7bf7 | 1,372 | hpp | C++ | wfc/core/wfcglobal.hpp | mambaru/wfc | 170bf87302487c0cedc40b47c84447a765894774 | [
"MIT"
] | 1 | 2018-10-18T10:15:53.000Z | 2018-10-18T10:15:53.000Z | wfc/core/wfcglobal.hpp | mambaru/wfc | 170bf87302487c0cedc40b47c84447a765894774 | [
"MIT"
] | 7 | 2019-12-04T23:36:03.000Z | 2021-04-21T12:37:07.000Z | wfc/core/wfcglobal.hpp | mambaru/wfc | 170bf87302487c0cedc40b47c84447a765894774 | [
"MIT"
] | null | null | null | //
// Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2015
//
// Copyright: See COPYING file that comes with this distribution
//
#pragma once
#include <wfc/core/object_registry.hpp>
#include <wfc/core/fire_list.hpp>
#include <wfc/core/extended_args.hpp>
#include <wfc/core/ibuild_info.hpp>
#include <wfc/core... | 23.254237 | 69 | 0.760933 | mambaru |
8a98b494f158726ef5473f4de4bf57fc5c781b00 | 2,595 | cpp | C++ | 2021/14/b.cpp | kidonm/advent-of-code | b304d99d60dcdd9d67105964f2c6a6d8729ecfd6 | [
"Apache-2.0"
] | null | null | null | 2021/14/b.cpp | kidonm/advent-of-code | b304d99d60dcdd9d67105964f2c6a6d8729ecfd6 | [
"Apache-2.0"
] | null | null | null | 2021/14/b.cpp | kidonm/advent-of-code | b304d99d60dcdd9d67105964f2c6a6d8729ecfd6 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
typedef unsigned long long ll;
ll dfs(string &l, char targetChar, int d, int targetDepth,
unorde... | 21.625 | 80 | 0.56185 | kidonm |
8a9bbc28b89a5dcb0015ec77efcf527e12bcbbff | 11,998 | cpp | C++ | decode.cpp | Phlicess/wtNoe | 01dc1bcd3325a90d1ad04775aa0ff41efa93aa77 | [
"BSD-2-Clause"
] | null | null | null | decode.cpp | Phlicess/wtNoe | 01dc1bcd3325a90d1ad04775aa0ff41efa93aa77 | [
"BSD-2-Clause"
] | null | null | null | decode.cpp | Phlicess/wtNoe | 01dc1bcd3325a90d1ad04775aa0ff41efa93aa77 | [
"BSD-2-Clause"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sqlite3.h>
#include <string>
#include <vector>
#include <map>
#include <zlib.h>
#include <math.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <protozero/pbf_reader.hpp>
#include "mvt.hpp"
#include "proje... | 24.044088 | 129 | 0.520253 | Phlicess |
8a9d818b6e36183fd424976b6107bf4d97fcfd0e | 1,741 | cpp | C++ | 3/3.21.cpp | tjzhym/CPP-Primer | 04eab308e990cc4cf2dbf1e7a7035bff825f29dc | [
"MIT"
] | null | null | null | 3/3.21.cpp | tjzhym/CPP-Primer | 04eab308e990cc4cf2dbf1e7a7035bff825f29dc | [
"MIT"
] | null | null | null | 3/3.21.cpp | tjzhym/CPP-Primer | 04eab308e990cc4cf2dbf1e7a7035bff825f29dc | [
"MIT"
] | null | null | null | // 3.21.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <vector>
using namespace std;
void printVector (vector<int> v) {
cout << "The size of the vector is: " << endl;
cout << v.size() << endl;
cout << "The contents of the vector are: ... | 30.54386 | 135 | 0.611143 | tjzhym |
8a9ecb8b49a8b1cfe66f665236173800d7ef7406 | 1,115 | cpp | C++ | learncpp.com/04_Fundamental_Data_Types/Question03/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | learncpp.com/04_Fundamental_Data_Types/Question03/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | learncpp.com/04_Fundamental_Data_Types/Question03/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | /**
* Chapter 4 :: Question 3
*
* prompt user to input two floating number,
* and the operation, then caculate the result.
*
* CAUTION: no error handling
*
* KoaLaYT 00:41 30/01/2020
*
*/
#include <iostream>
double read_number() {
std::cout << "Enter a double value: ";
double input{};
std::cin >> in... | 16.893939 | 71 | 0.556054 | KoaLaYT |
8aa0ff946a1a1f66febc0c2bde78611d95acd3d5 | 4,051 | hpp | C++ | src/Import3DS.hpp | moonwho101/DungeonStompDirectX11PixelShader | d3f044d2a56285f900d39bc0fa2c6eeda20ba8c1 | [
"MIT"
] | null | null | null | src/Import3DS.hpp | moonwho101/DungeonStompDirectX11PixelShader | d3f044d2a56285f900d39bc0fa2c6eeda20ba8c1 | [
"MIT"
] | null | null | null | src/Import3DS.hpp | moonwho101/DungeonStompDirectX11PixelShader | d3f044d2a56285f900d39bc0fa2c6eeda20ba8c1 | [
"MIT"
] | null | null | null | #ifndef __IMPORT3DS_H
#define __IMPORT3DS_H
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <windows.h>
#include "world.hpp"
#define MAX_NUM_3DS_TRIANGLES 10000
#define MAX_NUM_3DS_VERTICES 10000
#define MAX_NUM_3DS_FACES 10000
#define MAX_NAME_LENGTH 256
#define MAX_NUM_3DS_TEXTURES 200
//#define MAX... | 20.881443 | 59 | 0.793631 | moonwho101 |
8aa743f717213070380398933b551ae8668c23c7 | 2,579 | cpp | C++ | PostView2/DlgSelectRange.cpp | febiosoftware/PostView | 45c60aec1ae8832d0e6f6410e774aeaded2037c0 | [
"MIT"
] | 9 | 2020-03-22T08:27:03.000Z | 2021-09-24T10:02:37.000Z | PostView2/DlgSelectRange.cpp | febiosoftware/PostView | 45c60aec1ae8832d0e6f6410e774aeaded2037c0 | [
"MIT"
] | 1 | 2021-03-02T06:45:59.000Z | 2021-03-02T06:45:59.000Z | PostView2/DlgSelectRange.cpp | febiosoftware/PostView | 45c60aec1ae8832d0e6f6410e774aeaded2037c0 | [
"MIT"
] | 2 | 2020-06-27T13:59:49.000Z | 2021-09-08T16:39:39.000Z | /*This file is part of the PostView source code and is licensed under the MIT license
listed below.
See Copyright-PostView.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obta... | 29.306818 | 96 | 0.749128 | febiosoftware |
8aae2b18b65f77d4801d7e2d1bd66b101205708d | 448 | hh | C++ | src/Zynga/Framework/Service/V2/Client/Mock/HasResponseBatchTest.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/Service/V2/Client/Mock/HasResponseBatchTest.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/Service/V2/Client/Mock/HasResponseBatchTest.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh //strict
namespace Zynga\Framework\Service\V2\Client\Mock;
use Zynga\Framework\Service\V2\Client\Mock\Batch as MockBatch;
use Zynga\Framework\Service\V2\Client\Mock\HasResponseBatch as Batch;
use Zynga\Framework\Testing\TestCase\V2\Base as TestCase;
class HasResponseBatchTest extends TestCase {
public functio... | 29.866667 | 69 | 0.767857 | chintan-j-patel |
8ab1b9b74dc3b56190a373ae7a5ef0b056252939 | 2,557 | hpp | C++ | blaise-lang/include/gasp/blaise/impl/blaise_ast_expression_utility.hpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | blaise-lang/include/gasp/blaise/impl/blaise_ast_expression_utility.hpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | blaise-lang/include/gasp/blaise/impl/blaise_ast_expression_utility.hpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <gasp/blaise/impl/blaise_ast_expression.hpp>
namespace gasp::blaise::ast
{
class blaise_ast_expression_utility
{
public:
static std::shared_ptr<blaise_ast_expression_boolean_value> as_boolean_literal(std::shared_ptr<blaise_ast_expression> expression);
static std::shared... | 73.057143 | 162 | 0.853344 | sanelli |
8ab64d8589a058c91ce21452fe86f3ead7b9a00f | 9,574 | cpp | C++ | XInput/RumbleController/RumbleController.cpp | zzgchina888/directx_sdk_sample | 1982d2323be0e44fc060515cd712f42cfdb38339 | [
"MIT"
] | 1 | 2021-04-29T15:44:11.000Z | 2021-04-29T15:44:11.000Z | XInput/RumbleController/RumbleController.cpp | zzgchina888/directx_sdk_sample | 1982d2323be0e44fc060515cd712f42cfdb38339 | [
"MIT"
] | null | null | null | XInput/RumbleController/RumbleController.cpp | zzgchina888/directx_sdk_sample | 1982d2323be0e44fc060515cd712f42cfdb38339 | [
"MIT"
] | 1 | 2021-08-03T02:40:50.000Z | 2021-08-03T02:40:50.000Z | //-----------------------------------------------------------------------------
// File: RumbleController.cpp
//
// Simple use of XInput rumble force-feedback
//
// Note: This sample works with all versions of XInput (1.4, 1.3, and 9.1.0)
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//-------... | 33.592982 | 131 | 0.469187 | zzgchina888 |
8ab89337337edf8390b55cc6fcffb4ee8a314cc9 | 1,483 | hpp | C++ | test/test_headless.hpp | hfsm/HFSM2 | 61ecd4d36508dcc348049ee72d51f6cfca095311 | [
"MIT"
] | 2 | 2021-01-26T02:50:53.000Z | 2021-07-14T02:07:52.000Z | test/test_headless.hpp | hfsm/HFSM2 | 61ecd4d36508dcc348049ee72d51f6cfca095311 | [
"MIT"
] | 1 | 2021-01-26T02:51:46.000Z | 2021-01-26T06:06:31.000Z | test/test_headless.hpp | hfsm/HFSM2 | 61ecd4d36508dcc348049ee72d51f6cfca095311 | [
"MIT"
] | null | null | null | #include "test_shared.hpp"
namespace test_headless {
//------------------------------------------------------------------------------
struct Context {};
using M = hfsm2::Machine<Context>;
////////////////////////////////////////////////////////////////////////////////
#define S(s) struct s
using FSM = M::Orthogo... | 28.519231 | 80 | 0.495617 | hfsm |
8ab8e443b2687a69937866a1269e9a93e3dfec11 | 2,103 | cpp | C++ | projs/hello_renderer/src/app.cpp | colintan95/gl_projects | ad9bcdeaaa65474f45968b26a9a565cbe34af68e | [
"MIT"
] | null | null | null | projs/hello_renderer/src/app.cpp | colintan95/gl_projects | ad9bcdeaaa65474f45968b26a9a565cbe34af68e | [
"MIT"
] | null | null | null | projs/hello_renderer/src/app.cpp | colintan95/gl_projects | ad9bcdeaaa65474f45968b26a9a565cbe34af68e | [
"MIT"
] | null | null | null | #include "app.h"
#include <iostream>
#include <cstdlib>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/string_cast.hpp>
#include "gfx_utils/primitives.h"
static const float kPi = 3.14159265358979323846f;
static const int kWindowWidth = 1920;
static ... | 23.897727 | 80 | 0.719924 | colintan95 |
8abc0dff5ba7c17b23beda13b48d8b1874bfde92 | 1,459 | cpp | C++ | Code/Core/Reflection/ReflectionIter.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 30 | 2020-07-15T06:16:55.000Z | 2022-02-10T21:37:52.000Z | Code/Core/Reflection/ReflectionIter.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 1 | 2020-11-23T13:35:00.000Z | 2020-11-23T13:35:00.000Z | Code/Core/Reflection/ReflectionIter.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 12 | 2020-09-16T17:39:34.000Z | 2021-08-17T11:32:37.000Z | // ReflectionIter.cpp
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
#include "ReflectionIter.h"
#include "Core/Reflection/ReflectionInfo.h"
// CONSTRUCTOR
//---------------------------------... | 30.395833 | 90 | 0.388622 | qq573011406 |
8abc6009e1ec035a964b32437a9bb94f40d8920c | 7,434 | cpp | C++ | assignment1/tokeniser.cpp | raymondsim/Computer-System | 0b4de4d55157d92e64cae4af048933e39cb09c1f | [
"MIT"
] | null | null | null | assignment1/tokeniser.cpp | raymondsim/Computer-System | 0b4de4d55157d92e64cae4af048933e39cb09c1f | [
"MIT"
] | null | null | null | assignment1/tokeniser.cpp | raymondsim/Computer-System | 0b4de4d55157d92e64cae4af048933e39cb09c1f | [
"MIT"
] | null | null | null | // AUTHOR: Mong Yuan SIM (a1808469)
// tokeniser implementation for the workshop example language
#include "tokeniser-extras.h"
// to shorten the code
using namespace std;
// we are extending the Assignment_Tokeniser namespace
namespace Assignment_Tokeniser
{
// token ::= ...
// * wspace ::= '\t' | '\... | 27.533333 | 83 | 0.539817 | raymondsim |
8ac039edbac845978fcfdfd70740fdfa80c04395 | 4,056 | cpp | C++ | hw1.skel/HW.cpp | edzh/csc472-hw | 036ef3fdeda1cc68549a93d23a8bd9bdb661849d | [
"MIT"
] | 1 | 2020-08-17T08:21:34.000Z | 2020-08-17T08:21:34.000Z | HW.cpp | jguerrero12/OpenGL-HW | 11d61fda94538e47c91d58af8b781c26b06e5da4 | [
"Apache-2.0"
] | null | null | null | HW.cpp | jguerrero12/OpenGL-HW | 11d61fda94538e47c91d58af8b781c26b06e5da4 | [
"Apache-2.0"
] | null | null | null | // ===============================================================
// Computer Graphics Homework Solutions
// Copyright (C) 2017 by George Wolberg
//
// HW.cpp - HW class. Base class of homework solutions.
//
// Written by: George Wolberg, 2017
// ===============================================================
#includ... | 30.961832 | 100 | 0.634369 | edzh |
8ac4d479a812e90669464437d2c692e2078b83c2 | 669 | hpp | C++ | Incursion/Code/Game/Tile.hpp | yixuan-wei/Incursion | fa76fd30d1867cd05ffbc165d3577bc45cfde7ba | [
"MIT"
] | null | null | null | Incursion/Code/Game/Tile.hpp | yixuan-wei/Incursion | fa76fd30d1867cd05ffbc165d3577bc45cfde7ba | [
"MIT"
] | null | null | null | Incursion/Code/Game/Tile.hpp | yixuan-wei/Incursion | fa76fd30d1867cd05ffbc165d3577bc45cfde7ba | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/Math/IntVec2.hpp"
struct AABB2;
struct Rgba8;
struct Vec2;
enum TileType : int
{
TILE_TYPE_GRASS = 0,
TILE_TYPE_STONE,
TILE_TYPE_MUD,
TILE_TYPE_GROUND,
TILE_TYPE_EXIT,
TILE_TYPE_SAND,
TILE_TYPE_DIRT,
TILE_TYPE_BRICK,
TILE_TYPE_WATER,
TILE_TYPE_STEEL,
TILE_TYPE_QUARTZ,
NUM_T... | 15.55814 | 60 | 0.750374 | yixuan-wei |
8ac4fb3ce878f4e92d12d999fa227e2f2a4b8431 | 3,628 | hpp | C++ | media/papers/OpenPatternMatching/artifact/code/patterns/regex.hpp | akrzemi1/Mach7 | eef288eb9fe59712ff153dd70791365391b7b118 | [
"BSD-3-Clause"
] | 1,310 | 2015-01-04T03:44:04.000Z | 2022-03-18T04:44:01.000Z | media/papers/OpenPatternMatching/artifact/code/patterns/regex.hpp | akrzemi1/Mach7 | eef288eb9fe59712ff153dd70791365391b7b118 | [
"BSD-3-Clause"
] | 62 | 2015-01-12T07:59:17.000Z | 2021-11-14T22:02:14.000Z | media/papers/OpenPatternMatching/artifact/code/patterns/regex.hpp | akrzemi1/Mach7 | eef288eb9fe59712ff153dd70791365391b7b118 | [
"BSD-3-Clause"
] | 108 | 2015-02-13T17:39:07.000Z | 2021-11-18T11:06:59.000Z | ///
/// \file regex.hpp
///
/// This file defines regular expression pattern.
///
/// \author Yuriy Solodkyy <yuriy.solodkyy@gmail.com>
///
/// This file is a part of Mach7 library (http://parasol.tamu.edu/mach7/).
/// Copyright (C) 2011-2012 Texas A&M University.
/// All rights reserved.
///
#pragma once
... | 36.646465 | 115 | 0.553197 | akrzemi1 |
8acbd57f29ae8cf70f9a2c9eb01ad0c1b78a441a | 3,914 | cpp | C++ | fmo-cpp/tests/test-processing.cpp | sverbach/fmo-android | b4957ea51a4e0df6dc5315eaaf16b73c954d16a4 | [
"MIT"
] | 37 | 2019-03-11T09:08:20.000Z | 2022-02-26T19:01:51.000Z | fmo-cpp/tests/test-processing.cpp | sverbach/fmo-android | b4957ea51a4e0df6dc5315eaaf16b73c954d16a4 | [
"MIT"
] | 83 | 2020-09-22T09:04:38.000Z | 2021-06-10T16:15:17.000Z | fmo-cpp/tests/test-processing.cpp | sverbach/fmo-android | b4957ea51a4e0df6dc5315eaaf16b73c954d16a4 | [
"MIT"
] | 10 | 2020-06-29T03:22:28.000Z | 2021-10-01T15:28:25.000Z | #include "../catch/catch.hpp"
#include <fmo/subsampler.hpp>
#include "test-data.hpp"
#include "test-tools.hpp"
SCENARIO("performing per-pixel operations", "[image][processing]") {
GIVEN("an empty destination image") {
fmo::Image dst{ };
WHEN("source image is BGR") {
fmo::Image src{fmo::... | 43.010989 | 98 | 0.490802 | sverbach |
8acf606e1275b391623e888e74947842eea93bdb | 88,169 | cpp | C++ | tests/Secrets/tst_secretsrequests/tst_secretsrequests.cpp | Denis-Semakin/sailfish-secrets | aebe33ad93ca2378f4f20d455fc43bacba8e9c89 | [
"BSD-3-Clause"
] | null | null | null | tests/Secrets/tst_secretsrequests/tst_secretsrequests.cpp | Denis-Semakin/sailfish-secrets | aebe33ad93ca2378f4f20d455fc43bacba8e9c89 | [
"BSD-3-Clause"
] | null | null | null | tests/Secrets/tst_secretsrequests/tst_secretsrequests.cpp | Denis-Semakin/sailfish-secrets | aebe33ad93ca2378f4f20d455fc43bacba8e9c89 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2018 Jolla Ltd.
* Contact: Chris Adams <chris.adams@jollamobile.com>
* All rights reserved.
* BSD 3-Clause License, see LICENSE.
*/
#include <QtTest>
#include <QObject>
#include <QElapsedTimer>
#include <QDBusReply>
#include <QQuickView>
#include <QQuickItem>
#include "Secrets/secretmanager.h"... | 46.551742 | 128 | 0.71651 | Denis-Semakin |
8ad271d72780b1da2ab16494ae3059a8a6ce425f | 2,336 | cpp | C++ | test/test_dispatcher.cpp | mjgigli/libaopp | d603127f4e5d9cc1caa6ec5def4f743b2e775812 | [
"MIT"
] | null | null | null | test/test_dispatcher.cpp | mjgigli/libaopp | d603127f4e5d9cc1caa6ec5def4f743b2e775812 | [
"MIT"
] | null | null | null | test/test_dispatcher.cpp | mjgigli/libaopp | d603127f4e5d9cc1caa6ec5def4f743b2e775812 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019 Matt Gigli
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 24.589474 | 79 | 0.624144 | mjgigli |
8ad3be829a82febcdebf128ffc1c0fc8b66e14ad | 7,003 | cpp | C++ | src/h5geo/h5mapimpl.cpp | kerim371/h5geo | a023d8c667ff002de361e8184165e6d72e510bde | [
"MIT"
] | 1 | 2021-06-17T23:40:52.000Z | 2021-06-17T23:40:52.000Z | src/h5geo/h5mapimpl.cpp | tierra-colada/h5geo | 1d577f4194c0f7826a3e584742fc9714831ec368 | [
"MIT"
] | null | null | null | src/h5geo/h5mapimpl.cpp | tierra-colada/h5geo | 1d577f4194c0f7826a3e584742fc9714831ec368 | [
"MIT"
] | null | null | null | #include "../../include/h5geo/misc/h5mapimpl.h"
#include "../../include/h5geo/h5mapcontainer.h"
#include "../../include/h5geo/h5core.h"
#include "../../include/h5geo/misc/h5core_enum_string.h"
#include <units/units.hpp>
#ifdef H5GEO_USE_GDAL
#include <gdal/gdal.h>
#include <gdal/gdal_priv.h>
#endif
H5MapImpl::H5MapI... | 23.982877 | 67 | 0.659574 | kerim371 |
8ad4be86b0655fff00eaef640e6f514311295235 | 4,996 | hh | C++ | hackt_docker/hackt/src/util/persistent.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/util/persistent.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/util/persistent.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "util/persistent.hh"
Base class interface for persistent, serializable objects.
$Id: persistent.hh,v 1.16 2007/07/31 23:23:43 fang Exp $
*/
#ifndef __UTIL_PERSISTENT_H__
#define __UTIL_PERSISTENT_H__
#include <iosfwd>
#include "util/persistent_fwd.hh"
#include "util/new_functor_fwd.hh"
//============... | 31.421384 | 79 | 0.647718 | broken-wheel |
8ad5187c0902df7abe9f2876e1aa7a5523a3bbf0 | 3,336 | cpp | C++ | maxexport/LODUtil.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 3 | 2019-04-20T10:16:36.000Z | 2021-03-21T19:51:38.000Z | maxexport/LODUtil.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | null | null | null | maxexport/LODUtil.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 2 | 2020-04-18T20:04:24.000Z | 2021-09-19T05:07:41.000Z | #include "StdAfx.h"
#include "LODUtil.h"
#ifdef SGEXPORT_LODCTRL
#include "LODCtrl.h"
#endif
#include <lang/Debug.h>
#include <lang/Character.h>
#include <lang/Exception.h>
#include <lang/NumberReader.h>
//-----------------------------------------------------------------------------
using namespace lang;
... | 26.0625 | 91 | 0.566247 | Andrewich |
e9d66aeaac4e09c6fa7cc7ebec141d02d1b24117 | 929 | cpp | C++ | acm/shuoj/timu/1015.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/shuoj/timu/1015.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/shuoj/timu/1015.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z | #include<cstring>
#include<iostream>
using namespace std;
const int maxn = 300;
int line[maxn],sum[maxn];
int n,m,Max,Min;
int ma[200][20];
int mi[200][20];
void dp(int a[]){
for(int i = 1;i<=n;i++)
sum[i] = sum[i-1] + a[i];
memset(ma,0,sizeof(ma));
memset(mi,0x3f,sizeof(mi));
for(int i = 1;i<=n... | 23.225 | 82 | 0.455328 | xiaohuihuigh |
e9d6e50343051d7a46cd39ba8de15e3b50100248 | 2,369 | cpp | C++ | Source/OpenTournament/UR_Ammo.cpp | NATOcm/OpenTournament | d279034fdad80bdbacb4d0dc687c334545364688 | [
"OML"
] | null | null | null | Source/OpenTournament/UR_Ammo.cpp | NATOcm/OpenTournament | d279034fdad80bdbacb4d0dc687c334545364688 | [
"OML"
] | null | null | null | Source/OpenTournament/UR_Ammo.cpp | NATOcm/OpenTournament | d279034fdad80bdbacb4d0dc687c334545364688 | [
"OML"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "UR_Ammo.h"
#include "UR_Weapon.h"
#include "UR_InventoryComponent.h"
#include "Engine.h"
#include "OpenTournament.h"
#include "UR_Character.h"
// Sets default values
AUR_Ammo::AUR_Ammo(const FObjectInitializer& Object... | 29.987342 | 177 | 0.743774 | NATOcm |
e9d828303c4ff6fb18b1755be725f7294977499b | 629 | cpp | C++ | _posts/KickStart/2021_Round_B/Increasing Substring.cpp | Yukun4119/Yukun4119.github.io | 152f87e46295bcb09f485bce2dd27ae2b9316d6a | [
"MIT"
] | null | null | null | _posts/KickStart/2021_Round_B/Increasing Substring.cpp | Yukun4119/Yukun4119.github.io | 152f87e46295bcb09f485bce2dd27ae2b9316d6a | [
"MIT"
] | null | null | null | _posts/KickStart/2021_Round_B/Increasing Substring.cpp | Yukun4119/Yukun4119.github.io | 152f87e46295bcb09f485bce2dd27ae2b9316d6a | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
void solve(int len, string str){
int curSum = 1;
cout << 1 << " ";
for(int i = 1; i < len; i++){
if(str[i] > str[i - 1])
{
curSum++;
}
else{
curSum = 1;
}
... | 17 | 40 | 0.406995 | Yukun4119 |
e9da2f8a629a8c55e28158299f6c63c553f29559 | 13,581 | cpp | C++ | spine-cocos2dx/MBSpineFramework/cocos2d-x-3.17.2/tests/performance-tests/Classes/tests/controller.cpp | BowenCoder/spine-cocos2dx | cfac5100b78782b2d4ce84b472a435f46aff4da9 | [
"MIT"
] | null | null | null | spine-cocos2dx/MBSpineFramework/cocos2d-x-3.17.2/tests/performance-tests/Classes/tests/controller.cpp | BowenCoder/spine-cocos2dx | cfac5100b78782b2d4ce84b472a435f46aff4da9 | [
"MIT"
] | null | null | null | spine-cocos2dx/MBSpineFramework/cocos2d-x-3.17.2/tests/performance-tests/Classes/tests/controller.cpp | BowenCoder/spine-cocos2dx | cfac5100b78782b2d4ce84b472a435f46aff4da9 | [
"MIT"
] | null | null | null | /****************************************************************************
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal... | 27.381048 | 129 | 0.600545 | BowenCoder |
e9dba42178d9d92f71535b72fa3fb4a4ab1115f5 | 6,214 | cc | C++ | src/quicksilver/PopulationControl.cc | cpc/hipcl-samples | 59ce99784b5e3158a9e23a9790a277586ada70e5 | [
"MIT"
] | 1 | 2020-12-29T21:44:16.000Z | 2020-12-29T21:44:16.000Z | src/quicksilver/PopulationControl.cc | cpc/hipcl-samples | 59ce99784b5e3158a9e23a9790a277586ada70e5 | [
"MIT"
] | null | null | null | src/quicksilver/PopulationControl.cc | cpc/hipcl-samples | 59ce99784b5e3158a9e23a9790a277586ada70e5 | [
"MIT"
] | 1 | 2020-04-09T22:04:18.000Z | 2020-04-09T22:04:18.000Z | #include "PopulationControl.hh"
#include "Globals.hh"
#include "MC_Particle.hh"
#include "MC_Processor_Info.hh"
#include "MonteCarlo.hh"
#include "NVTX_Range.hh"
#include "ParticleVault.hh"
#include "ParticleVaultContainer.hh"
#include "utilsMpi.hh"
#include <vector>
namespace {
void PopulationControlGuts(const double... | 36.769231 | 80 | 0.691664 | cpc |
e9de7686b8409d39b981c1368ed62c5d3aeef028 | 212 | cc | C++ | src/commands/text_processing/TSR.cc | jhhuh/imgui-terminal | 134f9cb6779738ecf00d6aba8315702986f71115 | [
"MIT"
] | 32 | 2017-09-19T07:25:29.000Z | 2022-03-21T08:21:48.000Z | src/commands/text_processing/TSR.cc | jhhuh/imgui-terminal | 134f9cb6779738ecf00d6aba8315702986f71115 | [
"MIT"
] | 1 | 2017-10-24T18:56:36.000Z | 2017-10-24T18:56:36.000Z | src/commands/text_processing/TSR.cc | jhhuh/imgui-terminal | 134f9cb6779738ecf00d6aba8315702986f71115 | [
"MIT"
] | 10 | 2017-10-18T05:08:14.000Z | 2022-03-21T09:29:04.000Z |
#include <terminal/Terminal.hh>
namespace terminal {
// Tabulation Stop Remove
// ECMA-48 8.3.156
bool
Terminal::TSR(uint32_t p)
{
// no default
log("TSR(%u)", p);
//! @todo
return false;
}
}
| 10.095238 | 31 | 0.608491 | jhhuh |
e9e194746202dfce6120c13d255a498a8d780fd5 | 2,848 | cpp | C++ | Deitel/Chapter05/exercises/5.30/Question.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Deitel/Chapter05/exercises/5.30/Question.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Deitel/Chapter05/exercises/5.30/Question.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | /*
* =====================================================================================
*
* Filename:
*
* Description:
*
* Version: 1.0
* Created: Thanks to github you know it
* Revision: none
* Compiler: g++
*
* Author: Mahmut Erdem ÖZGEN m.erdemozgen... | 24.982456 | 88 | 0.508076 | SebastianTirado |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.