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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20dd0e723bee057be45aa79aa81930c73d7a233a | 193 | cpp | C++ | 07-Algorithm STL/01-Iterator/Pair.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 21 | 2020-10-03T03:57:19.000Z | 2022-03-25T22:41:05.000Z | 07-Algorithm STL/01-Iterator/Pair.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 40 | 2020-10-02T07:02:34.000Z | 2021-10-30T16:00:07.000Z | 07-Algorithm STL/01-Iterator/Pair.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 90 | 2020-10-02T07:06:22.000Z | 2022-03-25T22:41:17.000Z | #include<iostream>
#include<utility>
using namespace std;
int main()
{
pair<int,int>p(10,20), p1(30,40);
cout<<(p==p1)<<endl;
cout<<(p!=p1)<<endl;
cout<<(p>p1)<<endl;
cout<<(p<p1)<<endl;
} | 17.545455 | 34 | 0.611399 | ShreyashRoyzada |
22134f220212bbc2e29cea9a2a7dcdbc96c053ef | 1,811 | cpp | C++ | source/ff.dxgi/source/data_blob.cpp | spadapet/ff-engine | 244f653c5a25f22f2222842f32608f1101150c6f | [
"MIT"
] | null | null | null | source/ff.dxgi/source/data_blob.cpp | spadapet/ff-engine | 244f653c5a25f22f2222842f32608f1101150c6f | [
"MIT"
] | null | null | null | source/ff.dxgi/source/data_blob.cpp | spadapet/ff-engine | 244f653c5a25f22f2222842f32608f1101150c6f | [
"MIT"
] | null | null | null | #include "pch.h"
#include "data_blob.h"
ff::dxgi::data_blob_dx::data_blob_dx(ID3DBlob* blob)
: data_blob_dx(blob, 0, blob->GetBufferSize())
{}
ff::dxgi::data_blob_dx::data_blob_dx(ID3DBlob* blob, size_t offset, size_t size)
: blob(blob)
, offset(offset)
, size_(size)
{
assert(blob && offset + size... | 28.746032 | 107 | 0.696853 | spadapet |
2217863310194bc24097740123343683c502dd9a | 3,863 | hpp | C++ | source/housys/include/hou/sys/display_mode.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/housys/include/hou/sys/display_mode.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/housys/include/hou/sys/display_mode.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#ifndef HOU_SYS_DISPLAY_MODE_HPP
#define HOU_SYS_DISPLAY_MODE_HPP
#include "hou/sys/display_format.hpp"
#include "hou/sys/sys_config.hpp"
#include "hou/mth/matrix.hpp"
#include <ostream>
#include <vector>
namespace hou
... | 19.029557 | 81 | 0.676676 | DavideCorradiDev |
221d6faa32e8595da0b1bd6ff086a65a8110a646 | 3,555 | cpp | C++ | tests/test-hdr/ordered_list/hdr_lazy_kv_rcu_shb.cpp | TatyanaBerlenko/libcds | 3f4dfab2aea72d70ce44e7fbc02da9a6908f0781 | [
"BSD-2-Clause"
] | 2 | 2016-12-03T22:09:50.000Z | 2021-08-31T12:44:24.000Z | tests/test-hdr/ordered_list/hdr_lazy_kv_rcu_shb.cpp | TatyanaBerlenko/libcds | 3f4dfab2aea72d70ce44e7fbc02da9a6908f0781 | [
"BSD-2-Clause"
] | null | null | null | tests/test-hdr/ordered_list/hdr_lazy_kv_rcu_shb.cpp | TatyanaBerlenko/libcds | 3f4dfab2aea72d70ce44e7fbc02da9a6908f0781 | [
"BSD-2-Clause"
] | 2 | 2018-05-26T19:27:12.000Z | 2021-08-31T12:44:28.000Z | //$$CDS-header$$
#include "ordered_list/hdr_lazy_kv.h"
#include <cds/urcu/signal_buffered.h>
#include <cds/container/lazy_kvlist_rcu.h>
namespace ordlist {
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
namespace {
typedef cds::urcu::gc< cds::urcu::signal_buffered<> > rcu_type;
struct RCU_SHB_cmp_traits... | 28.902439 | 93 | 0.627848 | TatyanaBerlenko |
2221d8c3f785527fe82e4b088a483f0a12017919 | 7,967 | cc | C++ | talk/p2p/base/p2ptransport.cc | udit043/libjingle | dd7c03d0c5c358ada97feae44a5f76acad8dca13 | [
"BSD-3-Clause"
] | 5 | 2015-09-16T06:10:59.000Z | 2019-12-25T05:30:00.000Z | talk/p2p/base/p2ptransport.cc | udit043/libjingle | dd7c03d0c5c358ada97feae44a5f76acad8dca13 | [
"BSD-3-Clause"
] | null | null | null | talk/p2p/base/p2ptransport.cc | udit043/libjingle | dd7c03d0c5c358ada97feae44a5f76acad8dca13 | [
"BSD-3-Clause"
] | 3 | 2015-08-01T11:38:08.000Z | 2019-11-01T05:16:09.000Z | /*
* libjingle
* Copyright 2004--2005, Google Inc.
*
* 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 a... | 37.938095 | 80 | 0.702648 | udit043 |
22283dbfb773142e676b11005e62a63f25061cbf | 4,747 | cpp | C++ | check/core/matrix/dense/dense_matrix/test/get_col_segment.cpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | check/core/matrix/dense/dense_matrix/test/get_col_segment.cpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | check/core/matrix/dense/dense_matrix/test/get_col_segment.cpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | #include "../test.hpp"
#include <queue>
TYPED_TEST(DenseMatrixTest_ColMajor_Size8x5_Pitch8, GetColSegment) {
const auto pitch = this->pitch_;
const auto capacity = this->capacity_;
const auto offset = this->offset_;
const auto mat = this->mat_;
const auto valptr0 = this->valptr0_;
const mcnla::... | 27.281609 | 69 | 0.629029 | emfomy |
2232c20a6c1a4c2a04f3a89074d07b5007312040 | 2,608 | cpp | C++ | storage/src/Storage.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | storage/src/Storage.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | storage/src/Storage.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | #include "storage/Storage.h"
#include <yaml-cpp/yaml.h>
#include <filesystem>
#include <fstream>
#include <string>
namespace storage::key {
const std::string row = "row";
const std::string col = "col";
const std::string pos = "pos";
const std::string value = "value";
} // namespace storage::key
namespace YAML {
... | 26.612245 | 73 | 0.671779 | codingpotato |
2239226ca034a82757bfc7fe66f872245acb1fd5 | 631 | cpp | C++ | src/Callback-v11.cpp | Alfheim/node-julia | 72c202e149912ba09d3aea8c006aba83ae447b64 | [
"MIT"
] | 71 | 2015-01-17T12:35:43.000Z | 2021-12-01T06:04:22.000Z | src/Callback-v11.cpp | Alfheim/node-julia | 72c202e149912ba09d3aea8c006aba83ae447b64 | [
"MIT"
] | 33 | 2015-02-24T00:21:53.000Z | 2018-01-18T01:12:23.000Z | src/Callback-v11.cpp | Alfheim/node-julia | 72c202e149912ba09d3aea8c006aba83ae447b64 | [
"MIT"
] | 15 | 2015-04-24T06:48:03.000Z | 2021-12-07T20:39:38.000Z | #include <node_version.h>
#include "Callback.h"
using namespace v8;
nj::Callback::Callback(const Local<Function> &cb,const Local<Object> &recv):callback_persist(),recv_persist()
{
Isolate *I = Isolate::GetCurrent();
callback_persist.Reset(I,cb);
recv_persist.Reset(I,recv);
}
Local<Function> nj::Callback::c... | 19.121212 | 109 | 0.692552 | Alfheim |
223b72eb05b17f7e523649297589f8da0aa2f026 | 3,041 | cpp | C++ | GameServer/Battle_ProcDead_APet.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | GameServer/Battle_ProcDead_APet.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | GameServer/Battle_ProcDead_APet.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | 1 | 2022-01-17T09:34:39.000Z | 2022-01-17T09:34:39.000Z | #include "stdhdrs.h"
#include "Server.h"
#include "Battle.h"
#include "WarCastle.h"
#include "CmdMsg.h"
#include "Exp.h"
#include "Log.h"
#include "doFunc.h"
void ProcDead(CAPet* df, CCharacter* of)
{
CPC* opc = NULL;
CNPC* onpc = NULL;
CPet* opet = NULL;
CElemental* oelemental = NULL;
CAPet* oapet ... | 19.125786 | 97 | 0.604078 | openlastchaos |
2241d810412d9325c504a0a757283b15dcae67c9 | 3,000 | cpp | C++ | src/verify/main_verify.cpp | velidurmuscan/VDSProject_Group6 | 74ad2e315ffe271a66d744078bc16fe002d33874 | [
"Unlicense",
"MIT"
] | null | null | null | src/verify/main_verify.cpp | velidurmuscan/VDSProject_Group6 | 74ad2e315ffe271a66d744078bc16fe002d33874 | [
"Unlicense",
"MIT"
] | null | null | null | src/verify/main_verify.cpp | velidurmuscan/VDSProject_Group6 | 74ad2e315ffe271a66d744078bc16fe002d33874 | [
"Unlicense",
"MIT"
] | null | null | null | /*=============================================================================
Written by Mohammad R Fadiheh (2017)
=============================================================================*/
#include<iostream>
#include<fstream>
#include<string>
#include<sstream>
#include<map>
struct node {
std::string var_... | 22.900763 | 132 | 0.574333 | velidurmuscan |
22479d2daedc168c0f739920d2e729da195d6ce8 | 189 | hpp | C++ | src/components/allcomponents.hpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | src/components/allcomponents.hpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | src/components/allcomponents.hpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | #ifndef INCLUDE_BALLCOMPONENTS
#define INCLUDE_BALLCOMPONENTS
#include "../components.hpp"
#include "primitives.hpp"
#include "drawingcomponents.hpp"
#include "gamecomponents.hpp"
#endif
| 18.9 | 32 | 0.804233 | wareya |
22481376becb28333dc86377cfd200f030a63ac2 | 14,430 | cpp | C++ | OREData/ored/marketdata/inflationcurve.cpp | nvolfango/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | 1 | 2021-03-30T17:24:17.000Z | 2021-03-30T17:24:17.000Z | OREData/ored/marketdata/inflationcurve.cpp | zhangjiayin/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | null | null | null | OREData/ored/marketdata/inflationcurve.cpp | zhangjiayin/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (C) 2016 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 59.139344 | 120 | 0.570132 | nvolfango |
22493a49d2e35d060825b9b6db2a8badc554f516 | 7,609 | cpp | C++ | src/xtd.core.native.unix/src/xtd/native/unix/directory.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | src/xtd.core.native.unix/src/xtd/native/unix/directory.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | src/xtd.core.native.unix/src/xtd/native/unix/directory.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #define __XTD_CORE_NATIVE_LIBRARY__
#include <xtd/native/directory.h>
#include <xtd/native/file_system.h>
#undef __XTD_CORE_NATIVE_LIBRARY__
#include <dirent.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/stat.h>
using namespace std;
using namespace xtd::native;
namespace {
bool pattern_compare(const s... | 34.90367 | 217 | 0.705086 | BaderEddineOuaich |
224cacc2e25eeabbac146d8cba9489c2bb5fe900 | 20,449 | cpp | C++ | libs/hmtslam/src/CHMTSLAM_main.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 2 | 2017-03-25T18:09:17.000Z | 2017-05-22T08:14:48.000Z | libs/hmtslam/src/CHMTSLAM_main.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/hmtslam/src/CHMTSLAM_main.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 1 | 2021-08-16T11:50:47.000Z | 2021-08-16T11:50:47.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 29.088193 | 113 | 0.554942 | yhexie |
225116285d24ca6e60ba3efca6ba3cd68e515985 | 6,441 | cpp | C++ | cppillr/parser.cpp | dacap/cppillr | 4b67403aab09c24d70c417e85567b48478f5aab0 | [
"MIT"
] | 4 | 2021-08-02T22:57:17.000Z | 2021-12-26T16:45:17.000Z | cppillr/parser.cpp | dacap/cppillr | 4b67403aab09c24d70c417e85567b48478f5aab0 | [
"MIT"
] | null | null | null | cppillr/parser.cpp | dacap/cppillr | 4b67403aab09c24d70c417e85567b48478f5aab0 | [
"MIT"
] | null | null | null | // Copyright (C) 2019-2021 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#include "cppillr/parser.h"
#include <memory>
void Parser::parse(const LexData& lex)
{
data.fn = lex.fn;
lex_data = &lex;
goto_token(-1);
dcl_seq();
}
// Conver... | 20.912338 | 72 | 0.567148 | dacap |
2252afa57cc8ec9b2d19325148cd3720d7dd5c34 | 7,530 | cc | C++ | cvmfs/receiver/payload_processor.cc | amadio/cvmfs | 2cc5dc22c6c163e8515229006a0c6f8fbad9c23d | [
"BSD-3-Clause"
] | null | null | null | cvmfs/receiver/payload_processor.cc | amadio/cvmfs | 2cc5dc22c6c163e8515229006a0c6f8fbad9c23d | [
"BSD-3-Clause"
] | 2 | 2018-05-04T13:43:45.000Z | 2018-08-27T13:53:45.000Z | cvmfs/receiver/payload_processor.cc | amadio/cvmfs | 2cc5dc22c6c163e8515229006a0c6f8fbad9c23d | [
"BSD-3-Clause"
] | null | null | null | /**
* This file is part of the CernVM File System.
*/
#include "payload_processor.h"
#include <fcntl.h>
#include <unistd.h>
#include <vector>
#include "logging.h"
#include "params.h"
#include "util/posix.h"
#include "util/string.h"
namespace {
const size_t kConsumerBuffer = 10 * 1024 * 1024; // 10 MB
}
namesp... | 28.740458 | 80 | 0.691368 | amadio |
2255c2bc0f12bbaf4f04a3925c00b7c81bee2a5c | 557 | cpp | C++ | source/dataset/CameraMgr.cpp | xzrunner/easyeditor3 | 61c89c8534d1342fb2890d7e6218fd7614410861 | [
"MIT"
] | null | null | null | source/dataset/CameraMgr.cpp | xzrunner/easyeditor3 | 61c89c8534d1342fb2890d7e6218fd7614410861 | [
"MIT"
] | null | null | null | source/dataset/CameraMgr.cpp | xzrunner/easyeditor3 | 61c89c8534d1342fb2890d7e6218fd7614410861 | [
"MIT"
] | null | null | null | #include "ee3/CameraMgr.h"
#include <painting3/OrthoCam.h>
namespace ee3
{
CameraMgr::CameraMgr(bool only3d)
: m_curr(CAM_3D)
{
assert(m_cams[CAM_3D] == nullptr);
if (!only3d)
{
m_cams[CAM_XZ] = std::make_shared<pt3::OrthoCam>(pt3::OrthoCam::VP_XZ);
m_cams[CAM_XY] = std::make_shared<pt3::OrthoCam>(pt3::Orth... | 20.62963 | 73 | 0.70377 | xzrunner |
225cbc1165f4d8ebe4aad018a0bded7ee16a7ee4 | 8,733 | cpp | C++ | iotcloud/src/v20210408/model/CertInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | iotcloud/src/v20210408/model/CertInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | iotcloud/src/v20210408/model/CertInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 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
... | 27.121118 | 140 | 0.675255 | suluner |
225d27d248e883e0c054df3a946207a9526d4dc9 | 4,619 | cpp | C++ | Source/CheatSheetUI/Private/UI/UI_CheatView.cpp | tomshinton/CheatSheetPlugin | 2d2f8d7b7b6370a2815315c0bb21c613a915ee39 | [
"MIT"
] | 8 | 2022-02-03T18:09:23.000Z | 2022-02-09T16:05:28.000Z | Source/CheatSheetUI/Private/UI/UI_CheatView.cpp | tomshinton/CheatSheetPlugin | 2d2f8d7b7b6370a2815315c0bb21c613a915ee39 | [
"MIT"
] | null | null | null | Source/CheatSheetUI/Private/UI/UI_CheatView.cpp | tomshinton/CheatSheetPlugin | 2d2f8d7b7b6370a2815315c0bb21c613a915ee39 | [
"MIT"
] | null | null | null | // CheatSheet Plugin - Tom Shinton 2019
#include "CheatSheetUI/Public/UI/UI_CheatView.h"
#include "CheatSheetUI/Public/UI/Entries/UI_CategoryEntry.h"
#include "CheatSheetUI/Public/UI/Entries/UI_CheatEntry.h"
#include <Runtime/UMG/Public/Components/ScrollBox.h>
#include <Runtime/UMG/Public/Components/VerticalBox.h>
... | 24.833333 | 117 | 0.746698 | tomshinton |
2262f39071bd2012923504ddb5dbbab5aed024f3 | 2,102 | cpp | C++ | 0rgb/example_2/src/inversecolorpsaceadjustement.cpp | Enkelena/oRGB | c7e250f0a28b8db073d60c05f693ad15489e271e | [
"MIT"
] | null | null | null | 0rgb/example_2/src/inversecolorpsaceadjustement.cpp | Enkelena/oRGB | c7e250f0a28b8db073d60c05f693ad15489e271e | [
"MIT"
] | null | null | null | 0rgb/example_2/src/inversecolorpsaceadjustement.cpp | Enkelena/oRGB | c7e250f0a28b8db073d60c05f693ad15489e271e | [
"MIT"
] | null | null | null | #include "inversecolorpsaceadjustement.hpp"
Eigen::Matrix3d Inverse::rotatePoint(double angle) {
Eigen::Matrix3d _matrix;
_matrix << 1, 0, 0,
0, 1, 0,
0, 0, 1;
_matrix(1,1) = cos(angle * M_PI / 180);
_matrix(1,2) = -sin(angle * M_PI / 180);
_matr... | 25.02381 | 77 | 0.508088 | Enkelena |
226c7b014b66da63b49119fed307734bbcca44b8 | 5,462 | cpp | C++ | src/component/renderer.cpp | pepng-CU/pepng | 6030798b6936a6f85655d5e5d1ca638be282de92 | [
"MIT"
] | 2 | 2021-04-28T20:51:25.000Z | 2021-04-28T20:51:38.000Z | src/component/renderer.cpp | pepng-CU/pepng | 6030798b6936a6f85655d5e5d1ca638be282de92 | [
"MIT"
] | null | null | null | src/component/renderer.cpp | pepng-CU/pepng | 6030798b6936a6f85655d5e5d1ca638be282de92 | [
"MIT"
] | null | null | null | #include "renderer.hpp"
#include "../io/io.hpp"
#include "transform.hpp"
#include "../object/camera.hpp"
Renderer::Renderer(std::shared_ptr<Model> model, std::shared_ptr<Material> material, GLenum render_mode) :
Component("Renderer"),
model(model),
material(material),
render_mode(render_mode),
rec... | 27.174129 | 137 | 0.584401 | pepng-CU |
226e61ddb34305690040a52e48dc35f82d3e7422 | 42 | cpp | C++ | lab3/smarttree/main.cpp | Adrjanjan/JiMP-Exercises | 0c5de5878bcf0ede27fedcdf3cebbe081679e180 | [
"MIT"
] | null | null | null | lab3/smarttree/main.cpp | Adrjanjan/JiMP-Exercises | 0c5de5878bcf0ede27fedcdf3cebbe081679e180 | [
"MIT"
] | null | null | null | lab3/smarttree/main.cpp | Adrjanjan/JiMP-Exercises | 0c5de5878bcf0ede27fedcdf3cebbe081679e180 | [
"MIT"
] | null | null | null | //
// Created by adrja on 22.03.2018.
//
| 8.4 | 34 | 0.571429 | Adrjanjan |
227142a71df76ed4b47ffc680d9db3ce94ea0582 | 3,803 | cpp | C++ | src/serac/physics/utilities/state_manager.cpp | jamiebramwell/serac | a839f8dc1560b1ec2b3d542f23a5f2ac71f2a962 | [
"BSD-3-Clause"
] | 1 | 2021-07-21T05:34:18.000Z | 2021-07-21T05:34:18.000Z | src/serac/physics/utilities/state_manager.cpp | jamiebramwell/serac | a839f8dc1560b1ec2b3d542f23a5f2ac71f2a962 | [
"BSD-3-Clause"
] | null | null | null | src/serac/physics/utilities/state_manager.cpp | jamiebramwell/serac | a839f8dc1560b1ec2b3d542f23a5f2ac71f2a962 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019-2021, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "serac/physics/utilities/state_manager.hpp"
namespace serac {
// Definition of extern variable
QuadratureD... | 37.653465 | 117 | 0.694715 | jamiebramwell |
2274b38223ec0101805591c9d00f091faada64f5 | 148 | cpp | C++ | src/chess/tweenable.cpp | delveam/chess | 2c1e8582b73cb59d71e14a50f671d4ccbac34b95 | [
"MIT"
] | null | null | null | src/chess/tweenable.cpp | delveam/chess | 2c1e8582b73cb59d71e14a50f671d4ccbac34b95 | [
"MIT"
] | 1 | 2021-07-25T15:54:27.000Z | 2021-07-25T15:54:27.000Z | src/chess/tweenable.cpp | delveam/chess | 2c1e8582b73cb59d71e14a50f671d4ccbac34b95 | [
"MIT"
] | null | null | null | #include "tweenable.hpp"
void Tweenable::update(float delta_time)
{
if (done()) {
return;
}
m_t += delta_time / m_duration;
}
| 13.454545 | 40 | 0.594595 | delveam |
22768f05debe929a3112e1e8c69e158092ec23f2 | 2,536 | cpp | C++ | Source/MapGenerator/Utils/MapEditorUtils.cpp | benoitestival/MapModuleEditor | 3a7d72d0dc3761bd61f19df1e5af46081a791356 | [
"MIT"
] | null | null | null | Source/MapGenerator/Utils/MapEditorUtils.cpp | benoitestival/MapModuleEditor | 3a7d72d0dc3761bd61f19df1e5af46081a791356 | [
"MIT"
] | null | null | null | Source/MapGenerator/Utils/MapEditorUtils.cpp | benoitestival/MapModuleEditor | 3a7d72d0dc3761bd61f19df1e5af46081a791356 | [
"MIT"
] | 1 | 2021-07-07T09:22:28.000Z | 2021-07-07T09:22:28.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "MapEditorUtils.h"
#include "MapGenerator/GameMode/EditorGameMode.h"
#include "MapGenerator/MapActor.h"
#include "MapGenerator/Objects/BaseMapManager.h"
#include "MapGenerator/HeightMapLandscape/LandscapeManager.h"
#include "MapGe... | 35.71831 | 102 | 0.800473 | benoitestival |
22827a71da757c0d7d34edb96ca7818e35355799 | 2,849 | hpp | C++ | src/Magma/Window/GLFWWindow.hpp | RiscadoA/Magma-Engine | ebf8d8c25d631a9731efa33e23b162339985ae3b | [
"Zlib"
] | 3 | 2017-11-01T21:47:57.000Z | 2022-01-07T03:50:58.000Z | src/Magma/Window/GLFWWindow.hpp | RiscadoA/Magma-Engine | ebf8d8c25d631a9731efa33e23b162339985ae3b | [
"Zlib"
] | null | null | null | src/Magma/Window/GLFWWindow.hpp | RiscadoA/Magma-Engine | ebf8d8c25d631a9731efa33e23b162339985ae3b | [
"Zlib"
] | null | null | null | #pragma once
#include "Window.hpp"
#include <atomic>
#include <queue>
struct GLFWwindow;
namespace Magma
{
/// <summary>
/// Implements Window abstract interface class using GLFW
/// </summary>
class GLFWWindow : public Window
{
public:
GLFWWindow();
virtual ~GLFWWindow() final;
/// <summary>
/// G... | 34.325301 | 95 | 0.75079 | RiscadoA |
22839d29257f3790c1872f3f32c065b3689ba351 | 3,320 | cpp | C++ | src/eepp/graphics/ctexturefontloader.cpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | src/eepp/graphics/ctexturefontloader.cpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | src/eepp/graphics/ctexturefontloader.cpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #include <eepp/graphics/ctexturefontloader.hpp>
#include <eepp/graphics/cfontmanager.hpp>
namespace EE { namespace Graphics {
cTextureFontLoader::cTextureFontLoader( const std::string FontName, cTextureLoader * TexLoader, const eeUint& StartChar, const eeUint& Spacing, const eeUint& TexColumns, const eeUint& TexRows,... | 22.432432 | 219 | 0.716566 | dogtwelve |
2285ef05a4bee2ac69dd0545677fe1b1304e5cdb | 33,821 | cpp | C++ | tests/storeTests/TestHMStorageHostGroup.cpp | tkraiser/NetCHASM | 6b6e70fb071c9be497b0f83359ecfa0ef6e8b2f4 | [
"Apache-2.0"
] | null | null | null | tests/storeTests/TestHMStorageHostGroup.cpp | tkraiser/NetCHASM | 6b6e70fb071c9be497b0f83359ecfa0ef6e8b2f4 | [
"Apache-2.0"
] | null | null | null | tests/storeTests/TestHMStorageHostGroup.cpp | tkraiser/NetCHASM | 6b6e70fb071c9be497b0f83359ecfa0ef6e8b2f4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019, Oath Inc.
// Licensed under the terms of the Apache 2.0 license. See LICENSE file in the root of the distribution for licensing details.
#include "TestHMStorageHostGroup.h"
#include "common.h"
#include "TestStorageHostGroup.h"
using namespace std;
CPPUNIT_TEST_SUITE_REGISTRATION(TESTNAME);
void
TES... | 39.556725 | 126 | 0.717838 | tkraiser |
228770341eaf4887a11b131dce6cda60ad4e53fa | 4,833 | cpp | C++ | src/nnfusion/core/graph/graph_util.cpp | lynex/nnfusion | 6332697c71b6614ca6f04c0dac8614636882630d | [
"MIT"
] | 639 | 2020-09-05T10:00:59.000Z | 2022-03-30T08:42:39.000Z | src/nnfusion/core/graph/graph_util.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 252 | 2020-09-09T05:35:36.000Z | 2022-03-29T04:58:41.000Z | src/nnfusion/core/graph/graph_util.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 104 | 2020-09-05T10:01:08.000Z | 2022-03-23T10:59:13.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "graph_util.hpp"
#include <queue>
void nnfusion::graph::ReverseDFS(const Graph* graph,
const GNodeVector& start,
const std::function<void(std::shared_ptr<GNode>)>& ente... | 28.263158 | 91 | 0.470515 | lynex |
22888136451d7d988fa8cc94016c41d942d399cf | 2,720 | cpp | C++ | worker/src/Master/RtcMaster.cpp | idarkblue/mediasoup | f77bbd3680c122a2a4f15836b746e53e4b8571d0 | [
"0BSD"
] | null | null | null | worker/src/Master/RtcMaster.cpp | idarkblue/mediasoup | f77bbd3680c122a2a4f15836b746e53e4b8571d0 | [
"0BSD"
] | null | null | null | worker/src/Master/RtcMaster.cpp | idarkblue/mediasoup | f77bbd3680c122a2a4f15836b746e53e4b8571d0 | [
"0BSD"
] | null | null | null | #define PMS_CLASS "pingos::RtcMaster"
#define MS_CLASS "pingos::RtcMaster"
#include "Master/Defines.hpp"
#include "Master/RtcMaster.hpp"
#include "Master/Log.hpp"
#include "Master/RtcWorker.hpp"
#include "MediaSoupErrors.hpp"
namespace pingos {
RtcMaster::RtcMaster()
{
}
RtcMaster::~RtcMaster()
{
}
RtcWorker* Rtc... | 22.666667 | 92 | 0.666912 | idarkblue |
228a1f7e09f9a0015524cf5801846fb76324f36d | 1,097 | cpp | C++ | p_euler_102.cpp | Krshivam/Project-Euler | 108d4c98450de09315e399956665edd369a50d64 | [
"MIT"
] | null | null | null | p_euler_102.cpp | Krshivam/Project-Euler | 108d4c98450de09315e399956665edd369a50d64 | [
"MIT"
] | null | null | null | p_euler_102.cpp | Krshivam/Project-Euler | 108d4c98450de09315e399956665edd369a50d64 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pll pair<ll,ll>
#define mp make_pair
#define pb push_back
ll dist(pll a,pll b){
return sqrt((a.first-b.first)*(a.first-b.first) + (a.second-b.second)*(a.second-b.second));
}
ll area(ll a,ll b, ll c){
ll s = (a+b+c);
return (s)... | 19.245614 | 100 | 0.534184 | Krshivam |
228c325c39695039d7ee268d2b8eec42e2962d24 | 6,775 | cpp | C++ | source/examples/ex20_scene_graphs.cpp | 3a2l/OpenGL-Examples | a7284a0fc596898188f53671dac36ae60da62408 | [
"MIT"
] | null | null | null | source/examples/ex20_scene_graphs.cpp | 3a2l/OpenGL-Examples | a7284a0fc596898188f53671dac36ae60da62408 | [
"MIT"
] | null | null | null | source/examples/ex20_scene_graphs.cpp | 3a2l/OpenGL-Examples | a7284a0fc596898188f53671dac36ae60da62408 | [
"MIT"
] | null | null | null | #include <application.hpp>
#include <shader.hpp>
#include <imgui-utils/utils.hpp>
#include <mesh/mesh.hpp>
#include <mesh/mesh-utils.hpp>
#include <camera/camera.hpp>
#include <camera/controllers/fly_camera_controller.hpp>
#include <glm/gtx/euler_angles.hpp>
#include <json/json.hpp>
#include <fstream>
#include <str... | 33.539604 | 108 | 0.586863 | 3a2l |
229ab0e7949131966932572a17990d829807197d | 8,714 | cpp | C++ | Blizzlike/ArcEmu/C++/QuestScripts/Quest_UnGoro.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/QuestScripts/Quest_UnGoro.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/QuestScripts/Quest_UnGoro.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* ArcScripts for ArcEmu MMORPG Server
* Copyright (C) 2009 ArcEmu Team <http://www.arcemu.org/>
* Copyright (C) 2008-2009 Sun++ Team <http://www.sunscripting.com/>
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2007-2008 Moon++ Team <http://www.moonplusplus.info/>
*
* This p... | 38.728889 | 108 | 0.660431 | 499453466 |
229acf34e1869f8476a505292837124d6e7d76a8 | 336 | cpp | C++ | 1487/b.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1487/b.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1487/b.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int get_cnt_skip(int n, int k) {
if (n % 2 == 0) {
return 0;
}
return k / ((n - 1) / 2);
}
void solve() {
int n, k;
scanf("%d%d", &n, &k);
printf("%d\n", (k - 1 + get_cnt_skip(n, k - 1)) % n + 1);
}
int main() {
int t;
scanf("%d", &t);
while (t--) {
... | 13.44 | 59 | 0.464286 | vladshablinsky |
22a08cf80db06465c549cf747068f85c5fde7287 | 896 | hpp | C++ | src/sdk/rules/LimitedTupleTrimmer.hpp | psettle/sudoku | ea0040f3a9c1c093fa9ece851d2ec4104760e97a | [
"MIT"
] | 1 | 2020-10-11T06:54:04.000Z | 2020-10-11T06:54:04.000Z | src/sdk/rules/LimitedTupleTrimmer.hpp | psettle/sudoku | ea0040f3a9c1c093fa9ece851d2ec4104760e97a | [
"MIT"
] | null | null | null | src/sdk/rules/LimitedTupleTrimmer.hpp | psettle/sudoku | ea0040f3a9c1c093fa9ece851d2ec4104760e97a | [
"MIT"
] | null | null | null | /**
* LimitedTupleTrimmer.hpp - Limited Tuple Trimmer
*
* Check for limited tuples that have been resolved and delete them.
*/
#ifndef _SDK_LIMITEDTUPLETRIMMER
#define _SDK_LIMITEDTUPLETRIMMER
#include "sdk/data/LimitedTupleDatabase.hpp"
#include "sdk/interfaces/ILimitedTupleObserver.hpp"
#include "sdk/interfaces/... | 28.903226 | 94 | 0.780134 | psettle |
22a6c28912f0c699bf66157eefc0977754af59f6 | 2,231 | cpp | C++ | src/HttpCacheMetadata.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 147 | 2017-10-05T01:42:02.000Z | 2022-01-21T08:15:05.000Z | src/HttpCacheMetadata.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 20 | 2018-05-17T01:55:16.000Z | 2021-04-20T07:27:00.000Z | src/HttpCacheMetadata.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 32 | 2018-05-05T13:04:34.000Z | 2022-03-25T16:57:11.000Z | /*
* Copyright 2017 Sony Corporation
*/
#include "HttpCacheMetadata.h"
namespace easyhttpcpp {
HttpCacheMetadata::HttpCacheMetadata() : m_httpMethod(Request::HttpMethodGet), m_statusCode(-1), m_responseBodySize(0),
m_sentRequestAtEpoch(0), m_receivedResponseAtEpoch(0), m_createdAtEpoch(0)
{
}
HttpCacheMe... | 19.919643 | 119 | 0.779023 | commshare |
22a7a56ac931e31adf1102ab56942347c6f443b4 | 5,938 | cpp | C++ | es-core/src/TextToSpeech.cpp | brooksytech/emulationstation | 67f12cb26127ff4f46966ea3735308ee4fd4e1ed | [
"Apache-2.0",
"MIT"
] | 139 | 2017-10-30T13:19:56.000Z | 2022-03-27T05:43:17.000Z | es-core/src/TextToSpeech.cpp | brooksytech/emulationstation | 67f12cb26127ff4f46966ea3735308ee4fd4e1ed | [
"Apache-2.0",
"MIT"
] | 273 | 2018-03-05T13:09:48.000Z | 2022-03-30T11:44:06.000Z | es-core/src/TextToSpeech.cpp | brooksytech/emulationstation | 67f12cb26127ff4f46966ea3735308ee4fd4e1ed | [
"Apache-2.0",
"MIT"
] | 193 | 2017-10-29T18:59:54.000Z | 2022-03-27T16:15:58.000Z | #include "TextToSpeech.h"
#include "Log.h"
#include "LocaleES.h"
#if WIN32
#include "SystemConf.h"
#include <sapi.h>
#include <sphelper.h>
#include <thread>
#pragma comment(lib, "sapi.lib")
void TextToSpeech::SpeakThread()
{
if (FAILED(::CoInitializeEx(NULL, COINITBASE_MULTITHREADED)))
return;
ISpVoice* pVoice ... | 23.105058 | 147 | 0.664534 | brooksytech |
22ad28df7094ac0534375bb2bcb3b6c19876399d | 139 | cpp | C++ | ByteCat/src/byteCat/lua/LuaFunction.cpp | CodingWithMenno/ByteCat | 0fd19aa6781a5c28c6ff5e6f66c9624ace860de7 | [
"Apache-2.0"
] | 2 | 2021-04-07T11:39:24.000Z | 2022-03-02T11:24:58.000Z | ByteCat/src/byteCat/lua/LuaFunction.cpp | CodingWithMenno/ByteCat | 0fd19aa6781a5c28c6ff5e6f66c9624ace860de7 | [
"Apache-2.0"
] | null | null | null | ByteCat/src/byteCat/lua/LuaFunction.cpp | CodingWithMenno/ByteCat | 0fd19aa6781a5c28c6ff5e6f66c9624ace860de7 | [
"Apache-2.0"
] | null | null | null | #include "bcpch.h"
#include "byteCat/lua/LuaFunction.h"
namespace BC
{
void LuaAPI::LOG(std::string string)
{
LOG_ERROR(string);
}
}
| 12.636364 | 37 | 0.690647 | CodingWithMenno |
22b32ed752e2ce78c767cb3c241707c2c2cd6c19 | 3,063 | cpp | C++ | cobs/file/ranfold_index_header.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | cobs/file/ranfold_index_header.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | cobs/file/ranfold_index_header.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | /*******************************************************************************
* cobs/file/ranfold_index_header.cpp
*
* Copyright (c) 2018 Florian Gauger
* Copyright (c) 2018 Timo Bingmann
*
* All rights reserved. Published under the MIT License in the LICENSE file.
********************************************... | 34.41573 | 80 | 0.592556 | karasikov |
22b636954ca7a11b897fd7d86ea09522e79bd331 | 775 | cpp | C++ | competitive-programming/codeforces/#786-Div. 3/abc_sort.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | competitive-programming/codeforces/#786-Div. 3/abc_sort.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | competitive-programming/codeforces/#786-Div. 3/abc_sort.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
struct Node
{
int data;
Node *next = NULL;
};
void insertAtMiddle(Node **head, int data,int position)
{
int count = 0;
while (count < position)
{
head = head->next;
count++;
}
struct Node *newNode = new Node();
newNode->data... | 14.903846 | 56 | 0.529032 | dushimsam |
22b7846ef3357e993329c3b5eb37391160222741 | 1,805 | cpp | C++ | Project/15-QPainter3/widget.cpp | liukai-tech/Qt-Learning | 5f7d29f5868b6fa8b9340095af6cd025f94f698f | [
"MIT"
] | null | null | null | Project/15-QPainter3/widget.cpp | liukai-tech/Qt-Learning | 5f7d29f5868b6fa8b9340095af6cd025f94f698f | [
"MIT"
] | null | null | null | Project/15-QPainter3/widget.cpp | liukai-tech/Qt-Learning | 5f7d29f5868b6fa8b9340095af6cd025f94f698f | [
"MIT"
] | null | null | null | #include "widget.h"
#include "ui_widget.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
}
Widget::~Widget()
{
delete ui;
}
//当鼠标按下时: 创建一条新线压入vector。并且将当前鼠标位置作为新线的起点。
void Widget::mousePressEvent(QMouseEvent *event){
QVector<QPoint>line;
_lines.... | 25.069444 | 70 | 0.610526 | liukai-tech |
42ef587ad8c653cd5c9abdcc52b28aa8fbd0583b | 7,253 | hpp | C++ | libs/ml/include/ml/ops/loss_functions/mean_square_error_loss.hpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | null | null | null | libs/ml/include/ml/ops/loss_functions/mean_square_error_loss.hpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | null | null | null | libs/ml/include/ml/ops/loss_functions/mean_square_error_loss.hpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | null | null | null | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... | 29.971074 | 100 | 0.560182 | jinmannwong |
42f6531ebc2e944c59b698966f111aeaab0a16ae | 505 | hpp | C++ | include/xul/data/collection.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 2 | 2018-03-16T07:06:48.000Z | 2018-04-02T03:02:14.000Z | include/xul/data/collection.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | null | null | null | include/xul/data/collection.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 1 | 2019-08-12T05:15:29.000Z | 2019-08-12T05:15:29.000Z | #pragma once
#include <xul/lang/object.hpp>
#include <xul/data/iterator.hpp>
#include <xul/data/element_traits.hpp>
namespace xul {
template <typename T, typename TraitsT = element_traits<T> >
class collection : public object
{
public:
typedef T element_type;
typedef TraitsT traits_type;
virtual int g... | 20.2 | 81 | 0.728713 | hindsights |
42f93e5e12f8e7523524e1bf42cac2b1bbcc6b15 | 1,211 | cc | C++ | unit-test/test_thread_group.cc | anqin/trident | 1291596db0532b07865920b46165722a6c6244f4 | [
"BSD-3-Clause"
] | 6 | 2015-03-03T14:22:29.000Z | 2021-07-20T13:20:28.000Z | unit-test/test_thread_group.cc | anqin/trident | 1291596db0532b07865920b46165722a6c6244f4 | [
"BSD-3-Clause"
] | null | null | null | unit-test/test_thread_group.cc | anqin/trident | 1291596db0532b07865920b46165722a6c6244f4 | [
"BSD-3-Clause"
] | 5 | 2015-03-03T14:30:18.000Z | 2018-04-12T06:01:39.000Z | // Copyright (c) 2014 The Trident Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
//
#include <gtest/gtest.h>
#include <trident/thread_group.h>
#include <trident/closure.h>
class ThreadGroupTest: public ::testing::Test
{
protect... | 23.288462 | 84 | 0.690339 | anqin |
42fd14d29eb945747cf63df671ab8fe8a34d816d | 51,984 | cpp | C++ | src/TSSequencerWidgetBase.cpp | j4s0n-c/trowaSoft-VCV | 9cd0d05607c88e95200472725df1d032b42130cd | [
"MIT"
] | 91 | 2017-11-28T07:23:09.000Z | 2022-03-28T08:31:51.000Z | src/TSSequencerWidgetBase.cpp | j4s0n-c/trowaSoft-VCV | 9cd0d05607c88e95200472725df1d032b42130cd | [
"MIT"
] | 59 | 2017-11-28T06:12:18.000Z | 2022-03-18T09:00:59.000Z | src/TSSequencerWidgetBase.cpp | j4s0n-c/trowaSoft-VCV | 9cd0d05607c88e95200472725df1d032b42130cd | [
"MIT"
] | 15 | 2017-11-28T13:42:35.000Z | 2021-12-26T08:03:37.000Z | #include <string.h>
#include <stdio.h>
//#include "widgets.hpp"
#include "trowaSoft.hpp"
using namespace rack;
//#include "dsp/digital.hpp"
#include "trowaSoftComponents.hpp"
#include "trowaSoftUtilities.hpp"
#include "TSSequencerModuleBase.hpp"
#include "TSSequencerWidgetBase.hpp"
#include "TSOSCConfigWidge... | 38.336283 | 289 | 0.636734 | j4s0n-c |
6e02834dd17eb1d9d1c81772ff522533a147c9f8 | 2,368 | cpp | C++ | 201-300/269-Alien_Dictionary-h.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | 1 | 2018-10-02T22:44:52.000Z | 2018-10-02T22:44:52.000Z | 201-300/269-Alien_Dictionary-h.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | 201-300/269-Alien_Dictionary-h.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | // There is a new alien language which uses the latin alphabet. However, the
// order among letters are unknown to you. You receive a list of non-empty words
// from the dictionary, where words are sorted lexicographically by the rules of
// this new language. Derive the order of letters in this language.
// Example 1... | 24.163265 | 80 | 0.489865 | ysmiles |
6e07301ca31abe344945c29129c033fc427e00f3 | 16,175 | cpp | C++ | src/pke/unittest/UnitTestBatching.cpp | marcelmon/PALISADE_capstone | 2cfd1626b26576f8fe93bb3a424f934ef700c5b2 | [
"BSD-2-Clause"
] | null | null | null | src/pke/unittest/UnitTestBatching.cpp | marcelmon/PALISADE_capstone | 2cfd1626b26576f8fe93bb3a424f934ef700c5b2 | [
"BSD-2-Clause"
] | null | null | null | src/pke/unittest/UnitTestBatching.cpp | marcelmon/PALISADE_capstone | 2cfd1626b26576f8fe93bb3a424f934ef700c5b2 | [
"BSD-2-Clause"
] | null | null | null | /*
* @file
* @author TPOC: palisade@njit.edu
*
* @copyright Copyright (c) 2017, New Jersey Institute of Technology (NJIT)
* 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. Redistributio... | 35.163043 | 150 | 0.726306 | marcelmon |
6e12edfa8a7f3ff1449a60c8383aaea72796e357 | 1,589 | cpp | C++ | C++/sum-of-distances-in-tree.cpp | black-shadows/LeetCode-Solutions | b1692583f7b710943ffb19b392b8bf64845b5d7a | [
"Fair",
"Unlicense"
] | 1 | 2020-04-16T08:38:14.000Z | 2020-04-16T08:38:14.000Z | sum-of-distances-in-tree.cpp | Jeevan-kumar-Raj/LeetCode-Solutions-Topicwise | f1111b4edd401a3fc47111993bd7250cf4dc76da | [
"MIT"
] | null | null | null | sum-of-distances-in-tree.cpp | Jeevan-kumar-Raj/LeetCode-Solutions-Topicwise | f1111b4edd401a3fc47111993bd7250cf4dc76da | [
"MIT"
] | 1 | 2021-12-25T14:48:56.000Z | 2021-12-25T14:48:56.000Z | // Time: O(n)
// Space: O(n)
class Solution {
public:
vector<int> sumOfDistancesInTree(int N, vector<vector<int>>& edges) {
unordered_map<int, vector<int>> graph;
for (const auto& edge : edges) {
graph[edge[0]].emplace_back(edge[1]);
graph[edge[1]].emplace_back(edg... | 30.557692 | 74 | 0.452486 | black-shadows |
6e163214b313f7debfbd7fb5f10c545127da76c3 | 312 | hpp | C++ | tests/typedefs.hpp | 5cript/interval-tree | 27ffeb8e6e8268cb94bd6d5c4f085cf5b595789f | [
"CC0-1.0"
] | 36 | 2018-08-06T13:59:13.000Z | 2022-03-25T19:58:58.000Z | tests/typedefs.hpp | 5cript/interval-tree | 27ffeb8e6e8268cb94bd6d5c4f085cf5b595789f | [
"CC0-1.0"
] | 13 | 2017-04-03T12:17:27.000Z | 2022-02-27T12:17:33.000Z | tests/typedefs.hpp | 5cript/interval-tree | 27ffeb8e6e8268cb94bd6d5c4f085cf5b595789f | [
"CC0-1.0"
] | 5 | 2019-04-01T15:53:59.000Z | 2021-09-15T16:38:32.000Z | #pragma once
template <typename ContainedT>
struct IntervalTypes
{
using value_type = ContainedT;
using interval_type = lib_interval_tree::interval <ContainedT>;
using tree_type = lib_interval_tree::interval_tree <interval_type>;
using iterator_type = typename tree_type::iterator;
};
| 28.363636 | 72 | 0.746795 | 5cript |
6e223d7642570e8cda894ef8230f867b0e0f5941 | 2,783 | cc | C++ | src/tck-simulate/graph.cc | schlepil/tchecker | 3ab68fe150d16e3db77db8380c47e02026c7815f | [
"MIT"
] | null | null | null | src/tck-simulate/graph.cc | schlepil/tchecker | 3ab68fe150d16e3db77db8380c47e02026c7815f | [
"MIT"
] | null | null | null | src/tck-simulate/graph.cc | schlepil/tchecker | 3ab68fe150d16e3db77db8380c47e02026c7815f | [
"MIT"
] | null | null | null | /*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#include "graph.hh"
namespace tchecker {
namespace tck_simulate {
/* node_t */
node_t::node_t(tchecker::zg::state_sptr_t const & s) : _state(s) {}
node_t::node_t(tchecker::zg::const_state_sptr_t co... | 28.690722 | 128 | 0.679842 | schlepil |
6e2243f6b58f9a4c6317829b37bef02bec7f500b | 6,411 | cpp | C++ | ViAn/GUI/viewpathdialog.cpp | NFCSKL/NFC-ViAn | ce04b78b4c9695374d71198f57d4236a5cad1525 | [
"MIT"
] | 1 | 2019-12-08T03:53:03.000Z | 2019-12-08T03:53:03.000Z | ViAn/GUI/viewpathdialog.cpp | NFCSKL/NFC-ViAn | ce04b78b4c9695374d71198f57d4236a5cad1525 | [
"MIT"
] | 182 | 2018-02-08T11:03:26.000Z | 2019-06-27T15:27:47.000Z | ViAn/GUI/viewpathdialog.cpp | NFCSKL/NFC-ViAn | ce04b78b4c9695374d71198f57d4236a5cad1525 | [
"MIT"
] | null | null | null | #include "viewpathdialog.h"
#include "Project/video.h"
#include "viewpathitem.h"
#include <QDebug>
#include <QDesktopServices>
#include <QDialogButtonBox>
#include <QFile>
#include <QFileDialog>
#include <QFormLayout>
#include <QHeaderView>
#include <QLineEdit>
#include <QPushButton>
#include <QTreeWidget>
#include <... | 33.046392 | 121 | 0.684761 | NFCSKL |
6e289d4783777cc8b427352df6e1c3245a581215 | 3,022 | hpp | C++ | OptFrame/Util/TestMove.hpp | vncoelho/optmarket | dcfa8d909da98d89a464eda2420c38b0526f900c | [
"MIT"
] | null | null | null | OptFrame/Util/TestMove.hpp | vncoelho/optmarket | dcfa8d909da98d89a464eda2420c38b0526f900c | [
"MIT"
] | null | null | null | OptFrame/Util/TestMove.hpp | vncoelho/optmarket | dcfa8d909da98d89a464eda2420c38b0526f900c | [
"MIT"
] | null | null | null | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 25.610169 | 103 | 0.708471 | vncoelho |
6e28af1cd0052ffafaaaea019130c799d8d50220 | 2,718 | cpp | C++ | test/matrix_array_test.cpp | muellan/containers | f07c4da2232faac115ff69b05f6d043308b01460 | [
"MIT"
] | 9 | 2017-07-03T20:57:53.000Z | 2022-03-10T12:19:01.000Z | test/matrix_array_test.cpp | muellan/containers | f07c4da2232faac115ff69b05f6d043308b01460 | [
"MIT"
] | null | null | null | test/matrix_array_test.cpp | muellan/containers | f07c4da2232faac115ff69b05f6d043308b01460 | [
"MIT"
] | null | null | null | /*****************************************************************************
*
* AM utilities
*
* released under MIT license
*
* 2008-2017 André Müller
*
*****************************************************************************/
#include "matrix_array.h"
#include <algorithm>
#include <numeric>
#include... | 22.65 | 79 | 0.37454 | muellan |
6e2a758fd3a6f4f517647b12778d72c42caccd28 | 724 | cc | C++ | suif/lib/suif1/symaddr.cc | paulhjkelly/taskgraph-metaprogramming | 54c4e2806a97bec555a90784ab4cf0880660bf89 | [
"BSD-3-Clause"
] | 5 | 2020-04-11T21:30:19.000Z | 2021-12-04T16:16:09.000Z | suif/lib/suif1/symaddr.cc | paulhjkelly/taskgraph-metaprogramming | 54c4e2806a97bec555a90784ab4cf0880660bf89 | [
"BSD-3-Clause"
] | null | null | null | suif/lib/suif1/symaddr.cc | paulhjkelly/taskgraph-metaprogramming | 54c4e2806a97bec555a90784ab4cf0880660bf89 | [
"BSD-3-Clause"
] | null | null | null | /* Symbolic Address Implementation */
/* Copyright (c) 1994 Stanford University
All rights reserved.
This software is provided under the terms described in
the "suif_copyright.h" include file. */
#include <suif_copyright.h>
#define _MODULE_ "libsuif.a"
#pragma implementation "symaddr.h"
#define RCS... | 15.083333 | 58 | 0.649171 | paulhjkelly |
6e32c57743069fda0ffce21b4fbd2939cde8edbd | 5,376 | cpp | C++ | compiler/target_benchmark_internals/floyd_benchmark_main.cpp | Ebiroll/floyd | 28d05ca4a3a36274cd6e6550eb127739bfde4329 | [
"MIT"
] | 95 | 2019-02-08T12:22:12.000Z | 2019-07-29T06:32:29.000Z | compiler/target_benchmark_internals/floyd_benchmark_main.cpp | Ebiroll/floyd | 28d05ca4a3a36274cd6e6550eb127739bfde4329 | [
"MIT"
] | 73 | 2019-02-25T18:44:36.000Z | 2019-07-02T10:00:45.000Z | compiler/target_benchmark_internals/floyd_benchmark_main.cpp | Ebiroll/floyd | 28d05ca4a3a36274cd6e6550eb127739bfde4329 | [
"MIT"
] | 9 | 2019-02-19T02:00:22.000Z | 2019-07-01T19:10:33.000Z | //
// main.cpp
// megastruct
//
// Created by Marcus Zetterquist on 2019-01-28.
// Copyright © 2019 Marcus Zetterquist. All rights reserved.
//
#include "gtest/gtest.h"
#include "benchmark/benchmark.h"
#include "hardware_caps.h"
#include <iostream>
#include <vector>
//////////////////////////////// BENCHMARK... | 25.722488 | 90 | 0.669085 | Ebiroll |
6e33019fa0d2effc92f96bd80fe19304a566073c | 24,638 | cpp | C++ | MIRU_CORE/src/directx12/D3D12Image.cpp | AndrewRichards-Code/MIRU | 7001830734c7ee0237243e3ab5cd9d2526d3db08 | [
"MIT"
] | 7 | 2020-09-07T12:36:42.000Z | 2021-07-01T22:15:04.000Z | MIRU_CORE/src/directx12/D3D12Image.cpp | AndrewRichards-Code/MIRU | 7001830734c7ee0237243e3ab5cd9d2526d3db08 | [
"MIT"
] | null | null | null | MIRU_CORE/src/directx12/D3D12Image.cpp | AndrewRichards-Code/MIRU | 7001830734c7ee0237243e3ab5cd9d2526d3db08 | [
"MIT"
] | 1 | 2021-06-11T04:28:57.000Z | 2021-06-11T04:28:57.000Z | #include "miru_core_common.h"
#if defined(MIRU_D3D12)
#include "D3D12Image.h"
#include "D3D12Allocator.h"
using namespace miru;
using namespace d3d12;
Image::Image(Image::CreateInfo* pCreateInfo)
:m_Device(reinterpret_cast<ID3D12Device*>(pCreateInfo->device))
{
MIRU_CPU_PROFILE_FUNCTION();
m_CI = *pCreateInfo;
... | 34.362622 | 249 | 0.79073 | AndrewRichards-Code |
6e37eb70713a8a61a8dd0019b40bf278c8943fdc | 3,098 | cpp | C++ | codeforces/round698_div2/c.cpp | zaurus-yusya/atcoder | 5fc345b3da50222fa1366d1ce52ae58799488cef | [
"MIT"
] | 3 | 2020-05-27T16:27:12.000Z | 2021-01-27T12:47:12.000Z | codeforces/round698_div2/c.cpp | zaurus-yusya/Competitive-Programming | c72e13a11f76f463510bd4a476b86631d9d1b13a | [
"MIT"
] | null | null | null | codeforces/round698_div2/c.cpp | zaurus-yusya/Competitive-Programming | c72e13a11f76f463510bd4a476b86631d9d1b13a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
// #include <atcoder/all>
// using namespace atcoder;
typedef long long ll;
typedef long double ld;
#define rep(i,n) for(ll i=0;i<(n);i++)
#define repr(i,n) for(ll i=(n-1);i>=0;i--)
#define all(x) x.begin(),x.end()
#define br cout << "\n";
using namespace std;
const long long INF = 1e18;
const ... | 29.504762 | 126 | 0.433505 | zaurus-yusya |
6e3a00efcd6c178ce51b193d1565a185e01052da | 1,461 | cpp | C++ | test/datastore/TestCacheMap.cpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | test/datastore/TestCacheMap.cpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | test/datastore/TestCacheMap.cpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | #include <pulsar/testing/CppTester.hpp>
#include <pulsar/datastore/CacheMap.hpp>
using namespace pulsar;
using namespace std;
TEST_SIMPLE(TestCacheMap){
CppTester tester("Testing CacheMap class");
CacheMap cm1;
using Vector=vector<double>;
Vector v1({1.0,2.0,3.0}),v2({2.0,3.0,4.0});
const std::st... | 39.486486 | 103 | 0.704997 | pulsar-chem |
6e437318383671d2e835f4141ae32a3690d524d9 | 1,066 | hpp | C++ | inc/cxpr_swap.hpp | TinfoilPancakes/hilbert-generator | e53ce260e3e998d0c1e92e6e2165c0c0a347aa81 | [
"MIT"
] | null | null | null | inc/cxpr_swap.hpp | TinfoilPancakes/hilbert-generator | e53ce260e3e998d0c1e92e6e2165c0c0a347aa81 | [
"MIT"
] | null | null | null | inc/cxpr_swap.hpp | TinfoilPancakes/hilbert-generator | e53ce260e3e998d0c1e92e6e2165c0c0a347aa81 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* __ */
/* cxpr_swap.hpp <(o )___ ... | 48.454545 | 80 | 0.212946 | TinfoilPancakes |
6e4bc35de6fb436d3f18646d12cf5f5e23d24710 | 6,760 | cpp | C++ | d3d10drv/texturecache.cpp | SuiMachine/khg-d3d10drv | 58235d94440791f63abca857584bd2f06c963d60 | [
"MIT"
] | null | null | null | d3d10drv/texturecache.cpp | SuiMachine/khg-d3d10drv | 58235d94440791f63abca857584bd2f06c963d60 | [
"MIT"
] | 2 | 2019-06-11T16:46:56.000Z | 2020-06-11T13:26:51.000Z | d3d10drv/texturecache.cpp | SuiMachine/khg-d3d10drv | 58235d94440791f63abca857584bd2f06c963d60 | [
"MIT"
] | 1 | 2021-09-27T09:54:57.000Z | 2021-09-27T09:54:57.000Z | /**
Cache for game textures; also handles the external extra textures.
*/
#include "texturecache.h"
#include "d3d10drv.h"
//Definitions of extra external textures
const TextureCache::ExternalTexture TextureCache::externalTextures[TextureCache::DUMMY_NUM_EXTERNAL_TEXTURES] = {{".detail",1},{".bump",0},{".height",0}};... | 27.479675 | 165 | 0.744527 | SuiMachine |
6e4d53110d855e9f2bb81c97891cd90e71655e9e | 15,076 | cpp | C++ | gem/Code/Source/Components/AlarmComponent.cpp | loherangrin/addons.o3de.date-time | e3e7719204490dc2b69598e88803aaa1b3bb4fa3 | [
"Apache-2.0"
] | null | null | null | gem/Code/Source/Components/AlarmComponent.cpp | loherangrin/addons.o3de.date-time | e3e7719204490dc2b69598e88803aaa1b3bb4fa3 | [
"Apache-2.0"
] | null | null | null | gem/Code/Source/Components/AlarmComponent.cpp | loherangrin/addons.o3de.date-time | e3e7719204490dc2b69598e88803aaa1b3bb4fa3 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2022 Matteo Grasso
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 26.542254 | 215 | 0.749005 | loherangrin |
6e4db13dd48163951056ee2a1dd16077f5c80020 | 9,380 | cpp | C++ | DlgSongProperties.cpp | addam/SkauTan | a46b60e91741da343a50a63948d3a19d961550d0 | [
"Unlicense"
] | null | null | null | DlgSongProperties.cpp | addam/SkauTan | a46b60e91741da343a50a63948d3a19d961550d0 | [
"Unlicense"
] | null | null | null | DlgSongProperties.cpp | addam/SkauTan | a46b60e91741da343a50a63948d3a19d961550d0 | [
"Unlicense"
] | null | null | null | #include "DlgSongProperties.h"
#include <assert.h>
#include <QDebug>
#include <QMessageBox>
#include "ui_DlgSongProperties.h"
#include "Database.h"
#include "Settings.h"
#include "Utils.h"
DlgSongProperties::DlgSongProperties(
Database & a_DB,
SongPtr a_Song,
QWidget * a_Parent
) :
Super(a_Parent),
m_UI(new U... | 25.48913 | 130 | 0.707143 | addam |
6e54992eea4715de53e651cc99cc17caeae4c0f1 | 3,010 | hpp | C++ | SDK/PUBG_BP_TslBaseLobbySceneTravel_FadeInOut_parameters.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 7 | 2019-03-06T11:04:52.000Z | 2019-07-10T20:00:51.000Z | SDK/PUBG_BP_TslBaseLobbySceneTravel_FadeInOut_parameters.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | null | null | null | SDK/PUBG_BP_TslBaseLobbySceneTravel_FadeInOut_parameters.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 10 | 2019-03-06T11:53:46.000Z | 2021-02-18T14:01:11.000Z | #pragma once
// PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_BP_TslBaseLobbySceneTravel_FadeInOut_classes.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//-----------... | 37.625 | 152 | 0.772757 | realrespecter |
6e5d0a1f79c6f9d2b44e14eea33ddc2f6dfa59cd | 258 | hpp | C++ | src/OCGL_Buffer.hpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/OCGL_Buffer.hpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/OCGL_Buffer.hpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | #pragma once
#include <NTL.hpp>
#include <glad/glad.h>
class OCGL_Buffer {
public:
OCGL_Buffer(size_t size);
OCGL_Buffer(OCGL_Buffer const &deviceBuffer);
OCGL_Buffer &operator=(OCGL_Buffer const &deviceBuffer);
GLuint vbo;
cl::Memory mem;
};
| 17.2 | 60 | 0.728682 | Jino42 |
6e6321da04804ffe3b088f4c0bec09eff53a567b | 8,430 | cpp | C++ | src/sdk/hl2_csgo/game/missionchooser/vgui/RoomTemplateListPanel.cpp | newcommerdontblame/ionlib | 47ca829009e1529f62b2134aa6c0df8673864cf3 | [
"MIT"
] | 51 | 2016-03-18T01:48:07.000Z | 2022-03-21T20:02:02.000Z | src/game/missionchooser/vgui/RoomTemplateListPanel.cpp | senny970/AlienSwarm | c5a2d3fa853c726d040032ff2c7b90c8ed8d5d84 | [
"Unlicense"
] | null | null | null | src/game/missionchooser/vgui/RoomTemplateListPanel.cpp | senny970/AlienSwarm | c5a2d3fa853c726d040032ff2c7b90c8ed8d5d84 | [
"Unlicense"
] | 26 | 2016-03-17T21:20:37.000Z | 2022-03-24T10:21:30.000Z | #include <vgui/IVGui.h>
#include <vgui/IInput.h>
#include "vgui_controls/Controls.h"
#include <vgui/IScheme.h>
#include <vgui_controls/ImagePanel.h>
#include <vgui_controls/Button.h>
#include <KeyValues.h>
#include "TileGenDialog.h"
#include "RoomTemplateListPanel.h"
#include "RoomTemplatePanel.h"
#include "TileSource... | 28.19398 | 116 | 0.707355 | newcommerdontblame |
6e65502e96a12437e12aad53ae1f8063e28098ee | 2,529 | cpp | C++ | 011/011.cpp | joeymich/Project-Euler | a061f6ecc2afa9f95f3727380443dfc6e8d43db0 | [
"MIT"
] | 1 | 2022-03-26T07:05:21.000Z | 2022-03-26T07:05:21.000Z | 011/011.cpp | joeymich/Project-Euler | a061f6ecc2afa9f95f3727380443dfc6e8d43db0 | [
"MIT"
] | null | null | null | 011/011.cpp | joeymich/Project-Euler | a061f6ecc2afa9f95f3727380443dfc6e8d43db0 | [
"MIT"
] | null | null | null | // Problem 11 -- Largest product in a grid
/*
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00
81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65
52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91
22 31 16 71 51 67 63 89 41 92 36 ... | 40.142857 | 63 | 0.550415 | joeymich |
6e6747cd12f03d84ef2675e5a7b0bdb74173bc1b | 1,145 | hpp | C++ | gearoenix/vulkan/texture/gx-vk-txt-cube.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/vulkan/texture/gx-vk-txt-cube.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/vulkan/texture/gx-vk-txt-cube.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_VULKAN_TEXTURE_CUBE_HPP
#define GEAROENIX_VULKAN_TEXTURE_CUBE_HPP
#include "../../core/gx-cr-build-configuration.hpp"
#ifdef GX_USE_VULKAN
#include "../../core/sync/gx-cr-sync-end-caller.hpp"
#include "../../render/texture/gx-rnd-txt-texture-cube.hpp"
#include "../../render/texture/gx-rnd-txt-texture-... | 30.945946 | 84 | 0.697817 | Hossein-Noroozpour |
6e67e9b6ff26bb8d951fb88800c8960d5a0cdfd5 | 1,019 | cpp | C++ | bp/src/OffscreenFramebuffer.cpp | larso0/bp | 0aa13c6d78f6e6a1097d9231c1b9fc47ae74a9fe | [
"MIT"
] | 8 | 2018-10-17T00:36:46.000Z | 2020-11-18T05:34:28.000Z | bp/src/OffscreenFramebuffer.cpp | larso0/bp | 0aa13c6d78f6e6a1097d9231c1b9fc47ae74a9fe | [
"MIT"
] | null | null | null | bp/src/OffscreenFramebuffer.cpp | larso0/bp | 0aa13c6d78f6e6a1097d9231c1b9fc47ae74a9fe | [
"MIT"
] | 1 | 2022-01-06T04:28:18.000Z | 2022-01-06T04:28:18.000Z | #include <bp/OffscreenFramebuffer.h>
#include <bp/RenderPass.h>
namespace bp
{
void OffscreenFramebuffer::init(RenderPass& renderPass, uint32_t width, uint32_t height,
const AttachmentSlot& colorAttachmentSlot,
const AttachmentSlot& depthAttachmentSlot)
{
Device& device = renderPass.getDevice();
colorAttach... | 30.878788 | 91 | 0.784102 | larso0 |
6e6a63640b448ebb8e7891e60e2c4139077bfed4 | 8,080 | hpp | C++ | src/dag/dag.hpp | kostdima/taraxa | 61e9a50a60049c3f989efaf6970cd99a74896767 | [
"MIT"
] | null | null | null | src/dag/dag.hpp | kostdima/taraxa | 61e9a50a60049c3f989efaf6970cd99a74896767 | [
"MIT"
] | null | null | null | src/dag/dag.hpp | kostdima/taraxa | 61e9a50a60049c3f989efaf6970cd99a74896767 | [
"MIT"
] | null | null | null | #pragma once
#include <atomic>
#include <bitset>
#include <boost/function.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/breadth_first_search.hpp>
#include <boost/graph/depth_first_search.hpp>
#include <boost/graph/graph_traits.hpp>
#include <boost/graph/graphviz.hpp>
#include <boost/graph/labele... | 35.283843 | 120 | 0.727723 | kostdima |
6e6af1da2aa1e2121cebb42182a44dc806e4e110 | 2,426 | hpp | C++ | Nacro/SDK/FN_Landscape_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_Landscape_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_Landscape_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function Landscape.Lan... | 55.136364 | 172 | 0.40643 | Milxnor |
6e6bb91077029d71cde67930680eda2bdbdc66fe | 4,131 | cpp | C++ | Kamek/src/meteor.cpp | H1dd3nM1nd/NewerSMBW | b747e89375245a1da650b186181d2b94a12387a0 | [
"MIT"
] | 1 | 2021-06-21T04:11:04.000Z | 2021-06-21T04:11:04.000Z | Kamek/src/meteor.cpp | CLF78/NSMASR-Code | b747e89375245a1da650b186181d2b94a12387a0 | [
"MIT"
] | null | null | null | Kamek/src/meteor.cpp | CLF78/NSMASR-Code | b747e89375245a1da650b186181d2b94a12387a0 | [
"MIT"
] | null | null | null | #include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
#include "boss.h"
const char* MEarcNameList [] = {
"kazan_rock",
NULL
};
class dMeteor : public dEn_c {
int onCreate();
int onDelete();
int onExecute();
int onDraw();
static dMeteor *build();
mHeapAllocator_c allocator;
m3d::mdl_c b... | 22.95 | 128 | 0.68458 | H1dd3nM1nd |
6e6cd33458522cbe4976a2251116feb73eb93c9e | 8,752 | cpp | C++ | src/framework/factory.cpp | ancrist/apitest | cde1d337e7f0b60aa5bb943fb54219cccfa0ad06 | [
"Unlicense"
] | 1 | 2017-03-14T12:29:06.000Z | 2017-03-14T12:29:06.000Z | src/framework/factory.cpp | ancrist/apitest | cde1d337e7f0b60aa5bb943fb54219cccfa0ad06 | [
"Unlicense"
] | null | null | null | src/framework/factory.cpp | ancrist/apitest | cde1d337e7f0b60aa5bb943fb54219cccfa0ad06 | [
"Unlicense"
] | null | null | null | #include "pch.h"
#include "factory.h"
#include "problems/dynamicstreaming.h"
#include "problems/null.h"
#include "problems/texturedquads.h"
#include "problems/untexturedobjects.h"
#include "solutions/dynamicstreaming/gl/buffersubdata.h"
#include "solutions/dynamicstreaming/gl/mappersistent.h"
#include "solutions/dyna... | 46.802139 | 121 | 0.650594 | ancrist |
6e6d5ad686077d589e3ff777bf78c9fd6fcc5252 | 1,950 | cpp | C++ | src/harbour-hafenschau.cpp | black-sheep-dev/harbour-hafenschau | 8384e769a0d6d5b85787e92565c475be9d2f37fa | [
"MIT"
] | 8 | 2021-01-09T21:37:36.000Z | 2022-01-05T09:27:13.000Z | src/harbour-hafenschau.cpp | black-sheep-dev/harbour-hafenschau | 8384e769a0d6d5b85787e92565c475be9d2f37fa | [
"MIT"
] | null | null | null | src/harbour-hafenschau.cpp | black-sheep-dev/harbour-hafenschau | 8384e769a0d6d5b85787e92565c475be9d2f37fa | [
"MIT"
] | 1 | 2021-03-13T11:21:03.000Z | 2021-03-13T11:21:03.000Z |
#include <QtQuick>
#include <sailfishapp.h>
#include "api/apiinterface.h"
#include "comments/commentsmodel.h"
#include "comments/commentssortfiltermodel.h"
#include "enums/enums.h"
#include "news/newslistmodel.h"
#include "news/newssortfiltermodel.h"
#include "region/regionsmodel.h"
#include "tools/datawriter.h"
in... | 34.821429 | 84 | 0.72 | black-sheep-dev |
6e81dcec9630a1c2e954cf272b68ab3816fb45b7 | 32,135 | cpp | C++ | graphics_test/graphics_test/src/ngl/rhi/d3d12/rhi_resource_view.d3d12.cpp | nagakagachi/sample_projct | 300fcdaf65a009874ce1964a64682aeb6a6ef82e | [
"MIT"
] | null | null | null | graphics_test/graphics_test/src/ngl/rhi/d3d12/rhi_resource_view.d3d12.cpp | nagakagachi/sample_projct | 300fcdaf65a009874ce1964a64682aeb6a6ef82e | [
"MIT"
] | null | null | null | graphics_test/graphics_test/src/ngl/rhi/d3d12/rhi_resource_view.d3d12.cpp | nagakagachi/sample_projct | 300fcdaf65a009874ce1964a64682aeb6a6ef82e | [
"MIT"
] | null | null | null |
#include "rhi_resource_view.d3d12.h"
#include "rhi.d3d12.h"
#include <array>
#include <algorithm>
namespace ngl
{
namespace rhi
{
// -------------------------------------------------------------------------------------------------------------------------------------------------
// -------------------------... | 35.390969 | 173 | 0.647394 | nagakagachi |
6e8df8ed79087855af3e93aa0c25fdda8d0629db | 11,956 | hpp | C++ | include/frechetrange/detail/bb/spatial_index.hpp | TWTDIG/frechetrange | b5b30708a7d2ec181ed6a870923542e286f894ab | [
"MIT"
] | 5 | 2018-03-24T02:40:36.000Z | 2020-08-31T02:50:49.000Z | include/frechetrange/detail/bb/spatial_index.hpp | TWTDIG/frechetrange | b5b30708a7d2ec181ed6a870923542e286f894ab | [
"MIT"
] | 9 | 2017-11-22T11:09:52.000Z | 2018-03-03T09:55:01.000Z | include/frechetrange/detail/bb/spatial_index.hpp | TWTDIG/frechetrange | b5b30708a7d2ec181ed6a870923542e286f894ab | [
"MIT"
] | 3 | 2017-11-21T07:29:32.000Z | 2019-12-22T15:50:47.000Z | #ifndef BB_SPATIAL_INDEX_HPP
#define BB_SPATIAL_INDEX_HPP
#include <algorithm> // for std::max and std::min
#include <array>
#include <cmath> // for std::sqrt and std::abs
#include <memory> // for std::unique_ptr
#include <utility> // for std::pair
#include <vector>
#include "frechet_distance.hpp"
... | 34.655072 | 93 | 0.505353 | TWTDIG |
6e8ed7dc5bcc95a9ffc0a61de4edc4429711ae1e | 4,144 | inl | C++ | include/as/as-mat.inl | pr0g/as | 5698ded06abca884385b9deebe8a2e702e8a66a8 | [
"MIT"
] | 6 | 2019-06-16T22:20:55.000Z | 2021-11-13T17:16:16.000Z | include/as/as-mat.inl | pr0g/as | 5698ded06abca884385b9deebe8a2e702e8a66a8 | [
"MIT"
] | null | null | null | include/as/as-mat.inl | pr0g/as | 5698ded06abca884385b9deebe8a2e702e8a66a8 | [
"MIT"
] | 1 | 2020-04-11T14:24:13.000Z | 2020-04-11T14:24:13.000Z | namespace as
{
template<typename T, index d>
AS_API mat<T, d> mat_identity()
{
mat<T, d> identity{};
for (index i = 0; i < mat<T, d>::size(); i += d + 1) {
identity[i] = T(1.0);
}
return identity;
}
template<typename T, index d>
AS_API constexpr index mat<T, d>::dim()
{
return d;
}
template<typename T,... | 22.521739 | 79 | 0.610521 | pr0g |
6e8fa2fb56d06ebf06acaaa2e29e4db377dfd422 | 1,196 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR/List`1_Reverse/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/List`1_Reverse/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/List`1_Reverse/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::Generic;
void main()
{
List<String^>^ dinosaurs = gcnew List<String^>();
dinosaurs->Add("Pachycephalosaurus");
dinosaurs->Add("Parasauralophus");
dinosaurs->Add("Mamenchisaurus");
dinosaurs->Add("Amargasaurus");
... | 18.4 | 54 | 0.664716 | hamarb123 |
6e9167bc0867048bff0f11a078a6b739187a31a6 | 8,478 | cpp | C++ | Module/Components/TextureVideoPlayerComponent.cpp | afrostalin/CEVPlayer | 5e91493a11b4c294d3582b80dae4ea2d95856a7d | [
"BSL-1.0"
] | 14 | 2018-03-16T10:08:12.000Z | 2021-04-13T21:11:53.000Z | Module/Components/TextureVideoPlayerComponent.cpp | afrostalin/CryVideoPlayer | 5e91493a11b4c294d3582b80dae4ea2d95856a7d | [
"BSL-1.0"
] | 4 | 2018-03-06T01:52:36.000Z | 2021-04-26T07:25:07.000Z | Module/Components/TextureVideoPlayerComponent.cpp | afrostalin/CEVPlayer | 5e91493a11b4c294d3582b80dae4ea2d95856a7d | [
"BSL-1.0"
] | 8 | 2018-06-14T13:09:13.000Z | 2021-04-13T21:11:57.000Z | // Copyright (C) 2017-2020 Ilya Chernetsov. All rights reserved. Contacts: <chernecoff@gmail.com>
// License: https://github.com/afrostalin/CEVPlayer/blob/master/LICENSE
#include "StdAfx.h"
#include "PluginEnv.h"
#include "TextureVideoPlayerComponent.h"
#include "Video/TextureVideoQueue.h"
#include <CrySchematyc/Util... | 37.184211 | 222 | 0.760085 | afrostalin |
6e98d6768c8266328d120379214e497a368e85b9 | 4,383 | cpp | C++ | relationships/unify_years.cpp | tehora/phd-sourcecodes | b8c9be03b6de012b886e3d3f43c9d179ec2d701b | [
"MIT"
] | null | null | null | relationships/unify_years.cpp | tehora/phd-sourcecodes | b8c9be03b6de012b886e3d3f43c9d179ec2d701b | [
"MIT"
] | null | null | null | relationships/unify_years.cpp | tehora/phd-sourcecodes | b8c9be03b6de012b886e3d3f43c9d179ec2d701b | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <ghutils.h>
#include <vector>
#include <map>
FILE *fmyids = fopen("myids.txt", "wt");
FILE *fstats = fopen("stats.txt", "wt");
#define MAXLINE 1000000000
typedef unsigned char uchr;
map <pair<int, int>, int > graf;
struct osoba {
string xlogin;
uchr rozmiar;
... | 27.055556 | 86 | 0.534337 | tehora |
6ea5479684aea0946f1f98de049a17fedcbb670c | 193 | cc | C++ | test/check_module.cc | respu/libposix | 27681383e5d3e19687d7fba23d97166beeeece13 | [
"Unlicense"
] | 2 | 2015-11-05T09:08:04.000Z | 2016-02-09T23:26:00.000Z | test/check_module.cc | yggchan/libposix | 27681383e5d3e19687d7fba23d97166beeeece13 | [
"Unlicense"
] | null | null | null | test/check_module.cc | yggchan/libposix | 27681383e5d3e19687d7fba23d97166beeeece13 | [
"Unlicense"
] | null | null | null | /* This is free and unencumbered software released into the public domain. */
#include "catch.hpp"
#include <posix++/module.h> /* for posix::module */
TEST_CASE("test_module") {
// TODO
}
| 19.3 | 77 | 0.683938 | respu |
6ea7712832a3df3014e2fcb66d4768d8068e545e | 737 | cpp | C++ | week2/man_dog.cpp | aviiciii/iitb-exercises | e078e28fceb87eecc747272abd410e7279b22a97 | [
"MIT"
] | null | null | null | week2/man_dog.cpp | aviiciii/iitb-exercises | e078e28fceb87eecc747272abd410e7279b22a97 | [
"MIT"
] | null | null | null | week2/man_dog.cpp | aviiciii/iitb-exercises | e078e28fceb87eecc747272abd410e7279b22a97 | [
"MIT"
] | null | null | null | #include <simplecpp>
main_program {
initCanvas("Man and Dog", 700, 700);
//draw axes
Turtle t;
t.right(90); t.forward(350);
t.right(180); t.forward(700);
t.right(180); t.forward(350);
t.right(90); t.forward(350);
t.right(180); t.forward(750);
Text tx1(400,365,"50");
... | 17.547619 | 41 | 0.506106 | aviiciii |
6ea88e63a74886932f19c68bba323ffcf6270374 | 1,497 | hpp | C++ | include/d_log_wrapper.hpp | domenn/cppcommonutil | 8f8f071a274a57e4d1bcf7f09935a08175c1204e | [
"Unlicense"
] | null | null | null | include/d_log_wrapper.hpp | domenn/cppcommonutil | 8f8f071a274a57e4d1bcf7f09935a08175c1204e | [
"Unlicense"
] | null | null | null | include/d_log_wrapper.hpp | domenn/cppcommonutil | 8f8f071a274a57e4d1bcf7f09935a08175c1204e | [
"Unlicense"
] | null | null | null | #pragma once
#ifdef D_USING_SPDLOG
#include <d_spdlog/spd_logging.hpp>
// Map level names ...
#ifdef TRACE
#define VERBOSE TRACE
#endif
#define WARNING WARN
#define WARNING WARN
#define D_ANY_LOG_DEFAULT_IMPL(level, ...) SPDLOG_##level(__VA_ARGS__)
#define D_LOG_DEFAULT(level, ...) D_ANY_LOG_DEFAULT_IMPL(level, __... | 37.425 | 92 | 0.751503 | domenn |
6eafdf3962cc7ba4f332c235594b6d890a07ce85 | 51,637 | hpp | C++ | Tools/RegistersGenerator/STM32F303/FieldValues/dma2fieldvalues.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | Tools/RegistersGenerator/STM32F303/FieldValues/dma2fieldvalues.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | null | null | null | Tools/RegistersGenerator/STM32F303/FieldValues/dma2fieldvalues.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | /*******************************************************************************
* Filename : dma2fieldvalues.hpp
*
* Details : Enumerations related with DMA2 peripheral. This header file is
* auto-generated for STM32F303 device.
*
*
***********************************************************... | 45.176728 | 92 | 0.77979 | snorkysnark |
6eb8e526605af71564eb43da9d58f483a10d949e | 636 | cpp | C++ | practice2/client.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | 47 | 2016-05-20T08:49:47.000Z | 2022-01-03T01:17:07.000Z | practice2/client.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | null | null | null | practice2/client.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | 37 | 2016-07-25T04:52:08.000Z | 2022-02-14T03:55:08.000Z | // Copyright (c) 2016
// Author: Chrono Law
#include <std.hpp>
//using namespace std;
using std::cout;
using std::endl;
using std::vector;
using std::string;
#include <boost/asio.hpp>
using namespace boost;
using namespace boost::asio;
int main()
{
cout << "client start" << endl;
io_service ios;
ip::tcp:... | 19.272727 | 53 | 0.611635 | MaxHonggg |
6eba7e03dfbf14404f71672278184027b9ddb131 | 1,214 | cpp | C++ | 1_two_sum/1_two_sum.cpp | ttiimm2214/leetcode | 489c76bf374e2116bcac6ece5efe901db62a5ce1 | [
"MIT"
] | null | null | null | 1_two_sum/1_two_sum.cpp | ttiimm2214/leetcode | 489c76bf374e2116bcac6ece5efe901db62a5ce1 | [
"MIT"
] | null | null | null | 1_two_sum/1_two_sum.cpp | ttiimm2214/leetcode | 489c76bf374e2116bcac6ece5efe901db62a5ce1 | [
"MIT"
] | null | null | null | /*
* Leetcode 1 Two Sum
*
* Compile: g++ 1_two_sum.cpp -o result
* Execute: ./result
*/
// Given an array of integers, return indices of the two numbers such that they add up to a specific target.
//You may assume that each input would have exactly one solution, and you may not use the same element twice.
//Exa... | 19.901639 | 109 | 0.62603 | ttiimm2214 |
6ec404498eb171bc328a030cf8df021cae51df05 | 8,477 | cpp | C++ | src/Texture.cpp | Derjik/VaubanEngine | 19792aeb7fe838c6b85d00270d15a2805f6fb9d5 | [
"0BSD"
] | 2 | 2018-10-09T14:31:12.000Z | 2018-10-26T08:47:59.000Z | src/Texture.cpp | Derjik/VaubanEngine | 19792aeb7fe838c6b85d00270d15a2805f6fb9d5 | [
"0BSD"
] | null | null | null | src/Texture.cpp | Derjik/VaubanEngine | 19792aeb7fe838c6b85d00270d15a2805f6fb9d5 | [
"0BSD"
] | null | null | null | #include <SDL2/SDL_render.h>
#include <VBN/Surface.hpp>
#include <VBN/Texture.hpp>
#include <VBN/Logging.hpp>
#include <VBN/Exceptions.hpp>
/*!
* The main constructor for this class is private, external callers should use
* the "from...()" factories instead.
*
* @param rawTexture SDL_Texture raw pointer to encapsu... | 25.079882 | 78 | 0.712634 | Derjik |
6ec447129489d64b92aeb18f535e9c5e18325ffa | 7,132 | cpp | C++ | kernel/process/thread.cpp | USN484259/COFUOS | a751c3ab1a24f634ae33b5ddced55c184c8f9381 | [
"MIT"
] | 1 | 2022-03-03T09:57:56.000Z | 2022-03-03T09:57:56.000Z | kernel/process/thread.cpp | USN484259/COFUOS | a751c3ab1a24f634ae33b5ddced55c184c8f9381 | [
"MIT"
] | null | null | null | kernel/process/thread.cpp | USN484259/COFUOS | a751c3ab1a24f634ae33b5ddced55c184c8f9381 | [
"MIT"
] | 1 | 2022-01-22T14:19:24.000Z | 2022-01-22T14:19:24.000Z | #include "thread.hpp"
#include "core_state.hpp"
#include "constant.hpp"
#include "memory/include/vm.hpp"
#include "process.hpp"
#include "pe64.hpp"
#include "dev/include/timer.hpp"
#include "lock_guard.hpp"
#include "assert.hpp"
using namespace UOS;
id_gen<dword> thread::new_id;
//initial thread
thread::thread(init... | 23.23127 | 262 | 0.671761 | USN484259 |
6ec5ebf72f798a370e0143c6238fdf7759f09726 | 1,346 | cpp | C++ | src/test_distribution.cpp | inesc-tec-robotics/carlos_controller | ffcc45f24dd534bb953d5bd4a47badd3d3d5223d | [
"BSD-3-Clause"
] | null | null | null | src/test_distribution.cpp | inesc-tec-robotics/carlos_controller | ffcc45f24dd534bb953d5bd4a47badd3d3d5223d | [
"BSD-3-Clause"
] | null | null | null | src/test_distribution.cpp | inesc-tec-robotics/carlos_controller | ffcc45f24dd534bb953d5bd4a47badd3d3d5223d | [
"BSD-3-Clause"
] | null | null | null |
#include <mission_ctrl_msgs/generateStudDistributionAction.h>
#include <mission_ctrl_msgs/mission_ctrl_defines.h>
#include <actionlib/client/simple_action_client.h>
typedef actionlib::SimpleActionClient<mission_ctrl_msgs::generateStudDistributionAction> Client;
void finishedHnd(const actionlib::SimpleClientGoalState... | 28.638298 | 96 | 0.746657 | inesc-tec-robotics |
6ecad6eb9fe81c9b4f19eb409116b3f286fb4bd7 | 1,062 | cpp | C++ | PlayerData.cpp | GracefulComet/Graceful-Engine | cc3e4dd6da0a13904d062ebbc21c198c8b42aac6 | [
"MIT"
] | null | null | null | PlayerData.cpp | GracefulComet/Graceful-Engine | cc3e4dd6da0a13904d062ebbc21c198c8b42aac6 | [
"MIT"
] | null | null | null | PlayerData.cpp | GracefulComet/Graceful-Engine | cc3e4dd6da0a13904d062ebbc21c198c8b42aac6 | [
"MIT"
] | null | null | null | #include "PlayerData.h"
PlayerMSG::PlayerMSG(PlayerAction action, ID target, ID sender )
:msg(target,sender,MSGTYPE::Player) {
m_action = action;
}
void PlayerMSG::update(void* Variables){
auto &mybod = *reinterpret_cast<b2Body*>(Variables);
switch( m_action){
case PlayerAction::Idle:
break;
case PlayerA... | 22.125 | 76 | 0.720339 | GracefulComet |
6ecae98fe9c4d2ee70fbbef1b6186b1fc18708bb | 5,758 | cpp | C++ | src/3rdParty/ogdf-2020/src/ogdf/basic/graph_generators/deterministic.cpp | MichaelTiernan/qvge | aff978d8592e07e24af4b8bab7c3204a7e7fb3fb | [
"MIT"
] | 3 | 2021-09-14T08:11:37.000Z | 2022-03-04T15:42:07.000Z | src/3rdParty/ogdf-2020/src/ogdf/basic/graph_generators/deterministic.cpp | MichaelTiernan/qvge | aff978d8592e07e24af4b8bab7c3204a7e7fb3fb | [
"MIT"
] | 2 | 2021-12-04T17:09:53.000Z | 2021-12-16T08:57:25.000Z | src/3rdParty/ogdf-2020/src/ogdf/basic/graph_generators/deterministic.cpp | MichaelTiernan/qvge | aff978d8592e07e24af4b8bab7c3204a7e7fb3fb | [
"MIT"
] | 2 | 2021-06-22T08:21:54.000Z | 2021-07-07T06:57:22.000Z | /** \file
* \brief Implementation of some graph generators
*
* \author Carsten Gutwenger, Markus Chimani
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<br>
* See README.md in the OGDF root directory for details.
*
* \par
* This program is free sof... | 20.062718 | 89 | 0.609934 | MichaelTiernan |
6ed0caefcd0ab8aff75867a73e480389777cb7e1 | 1,095 | hpp | C++ | device-manager.hpp | KeyboxWallet/keyboxd | 67c9103aaf48d5e83c922311acf5a4deab8c0755 | [
"MIT"
] | 2 | 2018-11-26T10:40:46.000Z | 2019-05-30T05:30:01.000Z | device-manager.hpp | KeyboxWallet/keyboxd | 67c9103aaf48d5e83c922311acf5a4deab8c0755 | [
"MIT"
] | null | null | null | device-manager.hpp | KeyboxWallet/keyboxd | 67c9103aaf48d5e83c922311acf5a4deab8c0755 | [
"MIT"
] | 1 | 2018-10-16T10:17:23.000Z | 2018-10-16T10:17:23.000Z | #ifndef _KEYBOX_DEVICE_MANAGER_INCLUDE_
#define _KEYBOX_DEVICE_MANAGER_INCLUDE_
#include "base-device.hpp"
#define KEYBOX2_VENDOR_ID 0xb6ab
#define KEYBOX2_PRODUCT_ID 0xbaeb
#define KEYBOX2_BCD_DEVICE 0x0001
#include <boost/asio.hpp>
#include <set>
class DeviceEventListener {
public:
virtual void deviceAdded(Bas... | 27.375 | 74 | 0.750685 | KeyboxWallet |
6ed55ed03b8a725a0e8cfa7a7481e4645e53f254 | 109,294 | cpp | C++ | src/Exciton/PaintingSecrets/nPaintingSecretGui.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | src/Exciton/PaintingSecrets/nPaintingSecretGui.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | src/Exciton/PaintingSecrets/nPaintingSecretGui.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | #include <exciton.h>
///////////////////////////////////////////////////////////////////////////////
#define DEBUGPAINTING
#ifdef DEBUGPAINTING
#define XDEBUG(msg) if (plan->Verbose>=90) plan -> Debug ( msg)
#else
#define XDEBUG(msg)
#endif
///////////////////////////////////////////////////////////////////////////... | 53.919092 | 119 | 0.332223 | Vladimir-Lin |
6edb231d511296e3cc3f04fab65844934e4425b2 | 3,697 | cc | C++ | src/page.cc | minkezhang/giga | bae6fe295e417b132ba5b6064fb25906188e3cbe | [
"MIT"
] | 1 | 2016-11-23T14:55:29.000Z | 2016-11-23T14:55:29.000Z | src/page.cc | cripplet/giga | bae6fe295e417b132ba5b6064fb25906188e3cbe | [
"MIT"
] | null | null | null | src/page.cc | cripplet/giga | bae6fe295e417b132ba5b6064fb25906188e3cbe | [
"MIT"
] | 1 | 2021-12-24T23:08:00.000Z | 2021-12-24T23:08:00.000Z | #include <random>
#include <sstream>
#include <string>
#include <vector>
#include "libs/cachepp/globals.h"
#include "libs/exceptionpp/exception.h"
#include "libs/md5/md5.h"
#include "src/page.h"
giga::Page::Page(cachepp::identifier id, std::string filename, size_t file_offset, size_t size, bool is_dirty) : cachepp::... | 28.007576 | 227 | 0.650798 | minkezhang |
6edcd5c4f6463bf25aca47ed69148505c77bd844 | 292 | cpp | C++ | 11172-Relational_Operators/RO.cpp | dangercard/Uva_Challenges | 735bf80da5d1995fece4614d38174d1ea276e7c2 | [
"Apache-2.0"
] | null | null | null | 11172-Relational_Operators/RO.cpp | dangercard/Uva_Challenges | 735bf80da5d1995fece4614d38174d1ea276e7c2 | [
"Apache-2.0"
] | null | null | null | 11172-Relational_Operators/RO.cpp | dangercard/Uva_Challenges | 735bf80da5d1995fece4614d38174d1ea276e7c2 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std ;
int main()
{
int n,a,b ;
cin >> n ;
while(n--)
{
cin >> a >> b ;
if(a > b)
{
cout << ">" << endl ;
}
else if(b > a)
{
cout << "<" << endl ;
}
else
{
cout << "=" << endl ;
}
}
}
| 10.068966 | 27 | 0.342466 | dangercard |
6ee1d7a9db4930b9f902cd0fba265dd5e38d3983 | 1,445 | hpp | C++ | addons/UH60/config/turrets/pilotCamera.hpp | ZHANGTIANYAO1/H-60 | 4c6764f74190dbe7d81ddeae746cf78d8b7dff92 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 14 | 2021-02-11T23:23:21.000Z | 2021-09-08T05:36:47.000Z | addons/UH60/config/turrets/pilotCamera.hpp | ZHANGTIANYAO1/H-60 | 4c6764f74190dbe7d81ddeae746cf78d8b7dff92 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 130 | 2021-09-09T21:43:16.000Z | 2022-03-30T09:00:37.000Z | addons/UH60/config/turrets/pilotCamera.hpp | ZHANGTIANYAO1/H-60 | 4c6764f74190dbe7d81ddeae746cf78d8b7dff92 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 11 | 2021-02-18T19:55:51.000Z | 2021-09-01T17:08:47.000Z | class OpticsIn
{
class Wide
{
opticsDisplayName = "TRK COR";
initAngleX = 0;
minAngleX = -360;
maxAngleX = 360;
initAngleY = 0;
minAngleY = -15;
maxAngleY = 85;
initFov = 0.3;
minFov = 0.3;
maxFov = 0.3;
visionMode[] = {"Nor... | 22.936508 | 61 | 0.536332 | ZHANGTIANYAO1 |
6ee36251eab69097dfc764dd240c98d10b042426 | 145 | hpp | C++ | src/Game.hpp | eXpl0it3r/MartisOpibus | 120910e564f73a8a2ed4822d0a1daf2cb9a15a2f | [
"CC0-1.0"
] | null | null | null | src/Game.hpp | eXpl0it3r/MartisOpibus | 120910e564f73a8a2ed4822d0a1daf2cb9a15a2f | [
"CC0-1.0"
] | null | null | null | src/Game.hpp | eXpl0it3r/MartisOpibus | 120910e564f73a8a2ed4822d0a1daf2cb9a15a2f | [
"CC0-1.0"
] | null | null | null | #pragma once
#include <SFML/Graphics/RenderWindow.hpp>
class Game
{
public:
void Run();
private:
sf::RenderWindow m_window;
};
| 11.153846 | 42 | 0.655172 | eXpl0it3r |
6eeb77bb351b602838edfcf2dbb32cf286f9c8ba | 1,285 | cpp | C++ | Treap (Cartesian Tree)/Cartesian Tree Build (stack).cpp | yokeshrana/Fast_Algorithms_in_Data_Structures | 2346fee16c6c3ffceac7cb79b1f449b4d8dc9df2 | [
"MIT"
] | 4 | 2021-01-15T16:30:48.000Z | 2021-08-12T03:17:00.000Z | Treap (Cartesian Tree)/Cartesian Tree Build (stack).cpp | andy489/Fast_Algorithms_in_Data_Structures | 0f28a75030df3367902f0aa859a34096ea2b2582 | [
"MIT"
] | null | null | null | Treap (Cartesian Tree)/Cartesian Tree Build (stack).cpp | andy489/Fast_Algorithms_in_Data_Structures | 0f28a75030df3367902f0aa859a34096ea2b2582 | [
"MIT"
] | 2 | 2021-02-24T14:50:08.000Z | 2021-02-28T17:39:41.000Z | // github.com/andy489
#include <vector>
#include <stack>
using namespace std;
vector<int> build(int *A, int n) {
vector<int> parent(n, -1);
stack<int> s;
for (int i = 0; i < n; ++i) {
int last = -1;
while (!s.empty() && A[s.top()] >= A[i]) {
last = s.top();
s.pop(... | 19.769231 | 50 | 0.438911 | yokeshrana |
6ef56e394fd47f690e8ca8dc51d23f417aa34b7f | 2,023 | cpp | C++ | src/KeyboardHook.cpp | Erwan28250/KeyChattering | b69e0b25064232b6bea9a87d6b9070a5dd04d40e | [
"MIT"
] | 1 | 2021-12-18T01:47:28.000Z | 2021-12-18T01:47:28.000Z | src/KeyboardHook.cpp | Erwan28250/KeyChattering | b69e0b25064232b6bea9a87d6b9070a5dd04d40e | [
"MIT"
] | null | null | null | src/KeyboardHook.cpp | Erwan28250/KeyChattering | b69e0b25064232b6bea9a87d6b9070a5dd04d40e | [
"MIT"
] | null | null | null | /*
* MIT Licence
*
* KeyChattering
*
* Copyright © 2021 Erwan Saclier de la Bâtie (Erwan28250)
*
* 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 limitati... | 38.169811 | 160 | 0.692042 | Erwan28250 |
6ef75b61101c57ae2bd1673bc48a238ded03d753 | 710 | cpp | C++ | p/3k/3741/main.cpp | josedelinux/luogu | f9ce86b8623224512aa3f9e1eecc45d3c89c74e4 | [
"MIT"
] | null | null | null | p/3k/3741/main.cpp | josedelinux/luogu | f9ce86b8623224512aa3f9e1eecc45d3c89c74e4 | [
"MIT"
] | null | null | null | p/3k/3741/main.cpp | josedelinux/luogu | f9ce86b8623224512aa3f9e1eecc45d3c89c74e4 | [
"MIT"
] | null | null | null | /*
4 possibilities:
vv(ok)
kk(ok)
vk(ok,target)
kv(unchangeable)
*/
#include <bits/stdc++.h>
#define DEBUGn
using namespace std;
int main() {
int cnt = 0;
int flag = 0; // "yes we can change" flag
int n;
string s;
cin >> n;
cin >> s;
for (int i = 0; i < n - 1; i++) {
int cur = s[i];
int next ... | 15.434783 | 48 | 0.474648 | josedelinux |
6ef7a80f4b765a75be37b615c05d2b080fe32d77 | 7,821 | hh | C++ | include/stmicro/stm32l4x6/syscfg.hh | no111u3/lp_devices | 9fcd370a2b8a3f03a8a2181e403ffe562e48a611 | [
"Apache-2.0"
] | null | null | null | include/stmicro/stm32l4x6/syscfg.hh | no111u3/lp_devices | 9fcd370a2b8a3f03a8a2181e403ffe562e48a611 | [
"Apache-2.0"
] | null | null | null | include/stmicro/stm32l4x6/syscfg.hh | no111u3/lp_devices | 9fcd370a2b8a3f03a8a2181e403ffe562e48a611 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2018 Boris Vinogradov <no111u3@gmail.com>
*
* 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 applic... | 36.71831 | 81 | 0.628692 | no111u3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.