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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bc6747102e6ab8a206d1a82eb8c61d368458af3b | 2,557 | cc | C++ | core/Player.cc | bsdelf/mous | eb59b625d0ba8236f3597ae6015d9215cef922cf | [
"BSD-2-Clause"
] | 75 | 2015-04-26T11:22:07.000Z | 2022-02-12T17:18:37.000Z | core/Player.cc | bsdelf/mous | eb59b625d0ba8236f3597ae6015d9215cef922cf | [
"BSD-2-Clause"
] | 7 | 2016-05-31T21:56:01.000Z | 2019-09-15T06:25:28.000Z | core/Player.cc | bsdelf/mous | eb59b625d0ba8236f3597ae6015d9215cef922cf | [
"BSD-2-Clause"
] | 19 | 2015-09-23T01:50:15.000Z | 2022-02-12T17:18:41.000Z | #include <core/Player.h>
#include <util/Plugin.h>
#include "PlayerImpl.h"
namespace mous {
Player::Player()
: impl(std::make_unique<Impl>()) {
}
Player::~Player() {
}
PlayerStatus Player::Status() const {
return impl->Status();
}
void Player::LoadFormatProbePlugin(const std::shared_ptr<Plugin>& plugin) {
... | 17.756944 | 75 | 0.698084 | bsdelf |
bc6a7359892790e93dc8e01384d37d3adf1c82bf | 4,859 | cpp | C++ | geopdf/src/ossimGeoPdfInfo.cpp | martidi/ossim-plugins | 7dfb14d3fb87ce954fd13d41bd78d26cddc9f9c8 | [
"MIT"
] | null | null | null | geopdf/src/ossimGeoPdfInfo.cpp | martidi/ossim-plugins | 7dfb14d3fb87ce954fd13d41bd78d26cddc9f9c8 | [
"MIT"
] | null | null | null | geopdf/src/ossimGeoPdfInfo.cpp | martidi/ossim-plugins | 7dfb14d3fb87ce954fd13d41bd78d26cddc9f9c8 | [
"MIT"
] | 1 | 2019-11-02T11:01:58.000Z | 2019-11-02T11:01:58.000Z | //----------------------------------------------------------------------------
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Mingjie Su
//
// Description: Ogr Info object.
//
//----------------------------------------------------------------------------
//... | 24.054455 | 79 | 0.603211 | martidi |
bc73f65cbe8cc38613c797e4b423c5726673d8ec | 1,090 | hpp | C++ | IbeoLux/src/Additional/Convert/ConvertException.hpp | MechLabEngineering/SICKRPi-Scanner | 19d7603a7bee444c8cfbd646f9773178ecf2e188 | [
"MIT"
] | null | null | null | IbeoLux/src/Additional/Convert/ConvertException.hpp | MechLabEngineering/SICKRPi-Scanner | 19d7603a7bee444c8cfbd646f9773178ecf2e188 | [
"MIT"
] | null | null | null | IbeoLux/src/Additional/Convert/ConvertException.hpp | MechLabEngineering/SICKRPi-Scanner | 19d7603a7bee444c8cfbd646f9773178ecf2e188 | [
"MIT"
] | null | null | null | /**
* @file ConvertException.hpp
*
* Enthält die Exceptionklassen für die verschiedenen Konvertierungen.
*
* @author Christian Blumberg
* @date 2012-06-04
*/
#ifndef CONVERTEXCEPTION_H_
#define CONVERTEXCEPTION_H_
#include <exception>
namespace convert
{
/** @brief allgemeine Exception.
*
* Die allgemein... | 29.459459 | 178 | 0.761468 | MechLabEngineering |
bc74f2be16b58fa8c88975bfddb548ce871a7ea2 | 21,700 | cpp | C++ | source/RobotController/RobotControllerGUI/GeneratedFiles/RelWithDebInfo/moc_MainWindowProgram.cpp | xxzl0130/ProgrammingExperience | 4f18ad6eb6bc1e7f0d69b458e0c4efbbf4326cfd | [
"MIT"
] | 1 | 2020-09-08T02:54:11.000Z | 2020-09-08T02:54:11.000Z | source/RobotController/RobotControllerGUI/GeneratedFiles/RelWithDebInfo/moc_MainWindowProgram.cpp | xxzl0130/ProgrammingExperience | 4f18ad6eb6bc1e7f0d69b458e0c4efbbf4326cfd | [
"MIT"
] | 1 | 2020-09-08T02:53:54.000Z | 2020-09-23T00:55:35.000Z | source/RobotController/RobotControllerGUI/GeneratedFiles/RelWithDebInfo/moc_MainWindowProgram.cpp | xxzl0130/ProgrammingExperience | 4f18ad6eb6bc1e7f0d69b458e0c4efbbf4326cfd | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'MainWindowProgram.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.11.1)
**
** WARNING! All changes made in this file will be lost!
**************************************************... | 44.195519 | 103 | 0.621198 | xxzl0130 |
bc83b577104ff2d20a0cb607272c0cf23f48cd9b | 14,008 | cc | C++ | squid/squid3-3.3.8.spaceify/src/ssl/ErrorDetail.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-01-20T15:25:34.000Z | 2017-12-20T06:47:42.000Z | squid/squid3-3.3.8.spaceify/src/ssl/ErrorDetail.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-05-15T09:32:55.000Z | 2016-02-18T13:43:31.000Z | squid/squid3-3.3.8.spaceify/src/ssl/ErrorDetail.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | null | null | null | #include "squid.h"
#include "errorpage.h"
#include "ssl/ErrorDetail.h"
#if HAVE_MAP
#include <map>
#endif
#if HAVE_CLIMITS
#include <climits>
#endif
struct SslErrorEntry {
Ssl::ssl_error_t value;
const char *name;
};
static const char *SslErrorDetailDefaultStr = "SSL handshake error (%err_name)";
//Use std::m... | 31.337808 | 130 | 0.698387 | spaceify |
bc851415eb6e085b42b5e526a2901403e79cd9c4 | 500 | hpp | C++ | foundation/pro/include/pro/log/debug.hpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | 14 | 2018-06-16T04:49:50.000Z | 2021-04-10T03:18:40.000Z | foundation/pro/include/pro/log/debug.hpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | null | null | null | foundation/pro/include/pro/log/debug.hpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | 7 | 2018-06-14T10:15:32.000Z | 2020-11-06T17:07:09.000Z | /**
* @file
* @copyright defined in xmax/LICENSE
*/
#pragma once
namespace pro
{
/**
* ouput a msg to console
* @param[in] char* content of msg
*/
void _debug_output(const char* ouput);
/**
* ouput a msg to console in a line
* @param[in] char* content of msg
*/
void _debug_output_line(const char* ouput);
... | 17.241379 | 50 | 0.67 | xleakOfficial |
bc90d411a58b49272fccf8a06f815a34a17da3bc | 216 | cpp | C++ | src/babs_ecs_tests.cpp | misnor/babsecs | a8d1dc1f2a0fa5bd03563be125c8e6d90e81495f | [
"Apache-2.0"
] | null | null | null | src/babs_ecs_tests.cpp | misnor/babsecs | a8d1dc1f2a0fa5bd03563be125c8e6d90e81495f | [
"Apache-2.0"
] | 16 | 2019-07-27T00:27:37.000Z | 2021-09-12T16:43:58.000Z | src/babs_ecs_tests.cpp | misnor/babsecs | a8d1dc1f2a0fa5bd03563be125c8e6d90e81495f | [
"Apache-2.0"
] | null | null | null | #include "doctest.h"
#include "babs_ecs.hpp"
TEST_CASE("Confirming symlink babs_ecs -> ECSManager works")
{
babs_ecs::ECSManager ecs;
babs_ecs::Entity e = ecs.CreateEntity();
REQUIRE(e.UUID == 1);
}
| 15.428571 | 60 | 0.675926 | misnor |
bc91c8d9c597cff54f6a84b1680f9458bd162806 | 335 | hpp | C++ | osx-main/inc/m4c0/osx/main.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | osx-main/inc/m4c0/osx/main.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | osx-main/inc/m4c0/osx/main.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | #pragma once
#include "m4c0/objc/mtk_view.hpp"
#include "m4c0/objc/ns_event.hpp"
namespace m4c0::osx {
class delegate {
public:
virtual void start(const objc::mtk_view * view) = 0;
virtual void on_event(const objc::ns_event * e) = 0;
virtual void stop() = 0;
};
int main(int argc, char ** argv, de... | 20.9375 | 56 | 0.656716 | m4c0 |
bca0e0986fd75ad575dd819364d3ad08d9a8af91 | 2,025 | cpp | C++ | src/SpriteEdit/SpriteEditView.cpp | segafan/wme1_jankavan_tlc_edition-repo | 72163931f348d5a2132577930362d297cc375a26 | [
"MIT"
] | 3 | 2021-03-28T00:11:48.000Z | 2022-01-12T13:10:52.000Z | src/SpriteEdit/SpriteEditView.cpp | segafan/wme1_jankavan_tlc_edition-repo | 72163931f348d5a2132577930362d297cc375a26 | [
"MIT"
] | null | null | null | src/SpriteEdit/SpriteEditView.cpp | segafan/wme1_jankavan_tlc_edition-repo | 72163931f348d5a2132577930362d297cc375a26 | [
"MIT"
] | null | null | null | // SpriteEditView.cpp : implementation of the CSpriteEditView class
//
#include "stdafx.h"
#include "SpriteEdit.h"
#include "SpriteEditDoc.h"
#include "SpriteEditView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CSpriteEditView
IMPLEMENT_DYNCREATE(CSpriteEditView, CView)
BEGIN_MESSAGE_MAP(C... | 20.25 | 84 | 0.725432 | segafan |
bca1956fbf29c6987aa220186307632abedd123f | 3,556 | cpp | C++ | 3282 Tree/main.cpp | sqc1999/BZOJ | eff99fe97dbb4c59e650c54f343a2365eebd1d99 | [
"MIT"
] | 1 | 2016-07-18T12:05:57.000Z | 2016-07-18T12:05:57.000Z | 3282 Tree/main.cpp | sqc1999/BZOJ | eff99fe97dbb4c59e650c54f343a2365eebd1d99 | [
"MIT"
] | null | null | null | 3282 Tree/main.cpp | sqc1999/BZOJ | eff99fe97dbb4c59e650c54f343a2365eebd1d99 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
#include <cstdarg>
#include <cctype>
using namespace std;
const int N = 3e5;
struct splay_node
{
static splay_node *nul;
struct constructor
{
constructor()
{
nul = new splay_node;
nul->l = nul->r = nul->p = nul;
}
};
static constructor ctor;
sp... | 18.520833 | 90 | 0.495219 | sqc1999 |
bca910f2df9d33f4349d93a72df17536c0ccb3b3 | 1,284 | hpp | C++ | modules/fs/include/fs/file_entry.hpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 29 | 2016-01-27T09:43:44.000Z | 2020-03-12T04:16:02.000Z | modules/fs/include/fs/file_entry.hpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 20 | 2016-01-22T15:59:33.000Z | 2016-10-28T10:22:45.000Z | modules/fs/include/fs/file_entry.hpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 6 | 2016-02-11T14:09:04.000Z | 2018-03-17T00:18:35.000Z | #ifndef AVERSIVE_FS_FILE_ENTRY_HPP
#define AVERSIVE_FS_FILE_ENTRY_HPP
#include "entry.hpp"
#include "filesystem.hpp"
#include "path_list.hpp"
namespace Aversive {
namespace fs {
class FileEntry :
public Entry,
public FileSystem,
public PathList<FileEntry> {
private:
File _file;
public:
template<cla... | 18.342857 | 74 | 0.653427 | aversiveplusplus |
bcb7e1b4cc6d93356a490c44f1e8d94bf1afb0f8 | 1,330 | hpp | C++ | include/vbte/compute/context.hpp | Berling/bachelor_arbeit | c788227721a132560943c6991f5e3a25c47217cf | [
"MIT"
] | null | null | null | include/vbte/compute/context.hpp | Berling/bachelor_arbeit | c788227721a132560943c6991f5e3a25c47217cf | [
"MIT"
] | null | null | null | include/vbte/compute/context.hpp | Berling/bachelor_arbeit | c788227721a132560943c6991f5e3a25c47217cf | [
"MIT"
] | null | null | null | #pragma once
#include <CL/cl.hpp>
#include <GL/glew.h>
namespace vbte {
namespace compute {
class buffer;
class kernel;
class shared_buffer;
}
}
namespace vbte {
namespace compute {
class context {
private:
cl::Context default_context_;
cl::Device default_device_;
cl::CommandQueue command_queue... | 22.166667 | 152 | 0.691729 | Berling |
bcb99a49438eb7eeb7a99182e052f67cec9db7d6 | 19,547 | cpp | C++ | src/MagnumPlugins/StanfordImporter/Test/StanfordImporterTest.cpp | bowling-allie/magnum-plugins | 40181647a0725a255dbbc53d59dd261dff3a6f14 | [
"MIT"
] | null | null | null | src/MagnumPlugins/StanfordImporter/Test/StanfordImporterTest.cpp | bowling-allie/magnum-plugins | 40181647a0725a255dbbc53d59dd261dff3a6f14 | [
"MIT"
] | null | null | null | src/MagnumPlugins/StanfordImporter/Test/StanfordImporterTest.cpp | bowling-allie/magnum-plugins | 40181647a0725a255dbbc53d59dd261dff3a6f14 | [
"MIT"
] | null | null | null | /*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019
Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
... | 40.137577 | 132 | 0.728398 | bowling-allie |
bcc056cd984d5fea6f448def9c6a7416d312f9ab | 1,731 | cpp | C++ | src/Config.cpp | pezcode/Cluster | 2e5d7a1bea0493ff3554dc329b83db950cb49eff | [
"MIT"
] | 243 | 2019-11-21T11:35:43.000Z | 2022-03-13T11:56:25.000Z | src/Config.cpp | pezcode/Cluster | 2e5d7a1bea0493ff3554dc329b83db950cb49eff | [
"MIT"
] | 7 | 2020-01-24T15:07:23.000Z | 2021-06-04T04:33:09.000Z | src/Config.cpp | pezcode/Cluster | 2e5d7a1bea0493ff3554dc329b83db950cb49eff | [
"MIT"
] | 18 | 2019-11-21T11:35:49.000Z | 2022-02-09T20:06:14.000Z | #include "Config.h"
#include <bx/commandline.h>
#include "Renderer/Renderer.h"
Config::Config() :
writeLog(true),
logFile("Cluster.log"),
renderer(bgfx::RendererType::Count), // default renderer, chosen by platform
renderPath(Cluster::RenderPath::Clustered),
tonemappingMode(Renderer::TonemappingMo... | 27.919355 | 80 | 0.649913 | pezcode |
bcc24ea20aa53be8adc810359c0791135d4d58ae | 439 | cpp | C++ | cpp_sandbox/wxw_attempt/wxwidgets_practice.cpp | kjgonzalez/codefiles | b86f25182d1b5553a331f8721dd06b51fa157c3e | [
"MIT"
] | null | null | null | cpp_sandbox/wxw_attempt/wxwidgets_practice.cpp | kjgonzalez/codefiles | b86f25182d1b5553a331f8721dd06b51fa157c3e | [
"MIT"
] | 10 | 2019-10-01T20:48:15.000Z | 2020-04-14T18:21:09.000Z | cpp_sandbox/wxw_attempt/wxwidgets_practice.cpp | kjgonzalez/codefiles | b86f25182d1b5553a331f8721dd06b51fa157c3e | [
"MIT"
] | null | null | null | /*
date: 200205
objective: try to make a simple gui with buttons, and will build up from there
NOTES:
* don't need an "int main" thing
need a class that represents what the application is.
"pixel game engine" ???
stat | description
???? | ???
???? | ???
???? | ???
???? | ???
???? | ???
???? | ???
*/
#include <iostr... | 14.633333 | 78 | 0.585421 | kjgonzalez |
bcc4576d45258fcbc2ba1a95851fc8e32d457201 | 394 | hpp | C++ | pieces/Exception.hpp | ismo-karkkainen/specificjson | e948881dad57d79908a31c73f92ed4a34f2f026b | [
"UPL-1.0"
] | null | null | null | pieces/Exception.hpp | ismo-karkkainen/specificjson | e948881dad57d79908a31c73f92ed4a34f2f026b | [
"UPL-1.0"
] | null | null | null | pieces/Exception.hpp | ismo-karkkainen/specificjson | e948881dad57d79908a31c73f92ed4a34f2f026b | [
"UPL-1.0"
] | null | null | null | class Exception : public std::exception {
private:
const char* reason;
public:
Exception(const char* Reason) : reason(Reason) { }
const char* what() const throw() { return reason; }
};
class ContextException : public Exception {
private:
char context[64];
public:
ContextException(const Exception... | 20.736842 | 65 | 0.675127 | ismo-karkkainen |
3449eb11e34cd9099368b15ec6f150de155dd4bb | 111 | cpp | C++ | Graph Algorithms/BFS.cpp | moinak878/Data-Structures-and-Algorithms- | 75692d39c50e57121f12eb8175aa2de13c13196d | [
"MIT"
] | 2 | 2019-10-20T03:13:35.000Z | 2020-06-23T16:23:35.000Z | Graph Algorithms/BFS.cpp | moinak878/Data-Structures-and-Algorithms- | 75692d39c50e57121f12eb8175aa2de13c13196d | [
"MIT"
] | 2 | 2019-10-01T16:02:25.000Z | 2020-01-30T18:28:38.000Z | Graph Algorithms/BFS.cpp | moinak878/Data-Structures-and-Algorithms- | 75692d39c50e57121f12eb8175aa2de13c13196d | [
"MIT"
] | 5 | 2020-01-30T17:08:21.000Z | 2020-10-01T13:48:22.000Z | #include <vector>
#include <iostream>
using namespace std;
//graphs adjacency list given
int main(){
} | 12.333333 | 29 | 0.684685 | moinak878 |
344ac20976c6d0485ffe4afa041a10e829c3c82e | 1,448 | cpp | C++ | Source_/HeroDebugModule/Private/HeroDebuggerCategory_OwnedTag.cpp | JiaqiJin/RPGPrototype_ue4 | e328798e880089841c0bfea1e25abee045dbf447 | [
"MIT"
] | 2 | 2021-09-25T19:34:12.000Z | 2021-09-29T10:52:55.000Z | Source_/HeroDebugModule/Private/HeroDebuggerCategory_OwnedTag.cpp | JiaqiJin/RPGPrototype_ue4 | e328798e880089841c0bfea1e25abee045dbf447 | [
"MIT"
] | null | null | null | Source_/HeroDebugModule/Private/HeroDebuggerCategory_OwnedTag.cpp | JiaqiJin/RPGPrototype_ue4 | e328798e880089841c0bfea1e25abee045dbf447 | [
"MIT"
] | null | null | null | #include "HeroDebuggerCategory_OwnedTag.h"
#if WITH_GAMEPLAY_DEBUGGER
#include "AbilitySystemComponent.h"
#include "AbilitySystemGlobals.h"
#include "GameplayEffect.h"
#include "GameplayAbilitySpec.h"
#include "GameplayDebugger.h"
#include "GameplayTagContainer.h"
HeroDebuggerCategory_OwnedTag::HeroDebuggerCategory_O... | 28.392157 | 131 | 0.791436 | JiaqiJin |
3457529236d584234fa2924ecfd856fdc6388cf9 | 531 | cpp | C++ | GeeksForGeeks/Detect cycle in an undirected graph.cpp | DSC-IIITKota/coding-platform | f596f3e2677c353a4723633ddb3b499df8791037 | [
"MIT"
] | null | null | null | GeeksForGeeks/Detect cycle in an undirected graph.cpp | DSC-IIITKota/coding-platform | f596f3e2677c353a4723633ddb3b499df8791037 | [
"MIT"
] | null | null | null | GeeksForGeeks/Detect cycle in an undirected graph.cpp | DSC-IIITKota/coding-platform | f596f3e2677c353a4723633ddb3b499df8791037 | [
"MIT"
] | 1 | 2020-12-04T12:46:52.000Z | 2020-12-04T12:46:52.000Z | bool helper(int node, int parent, vector<bool> &visited, vector<int> g[]){
visited[node] = true;
for(auto i : g[node]){
if(!visited[i]){
if(helper(i, node, visited, g))
return true;
}
else if(i!=parent || i==node)
return true;
}
return fals... | 24.136364 | 74 | 0.504708 | DSC-IIITKota |
346c3e99e424048708e943c89a9f5b91abd3a83c | 213 | hpp | C++ | third-party/sprawl/include/sprawl/common/noncopyable.hpp | 3Jade/Ocean | a17bbd6ece6ba0a7539c933cadfc7faad564f9d2 | [
"MIT"
] | null | null | null | third-party/sprawl/include/sprawl/common/noncopyable.hpp | 3Jade/Ocean | a17bbd6ece6ba0a7539c933cadfc7faad564f9d2 | [
"MIT"
] | null | null | null | third-party/sprawl/include/sprawl/common/noncopyable.hpp | 3Jade/Ocean | a17bbd6ece6ba0a7539c933cadfc7faad564f9d2 | [
"MIT"
] | null | null | null | #pragma once
namespace sprawl
{
class noncopyable;
}
class sprawl::noncopyable
{
public:
noncopyable() {}
private:
noncopyable(const noncopyable& other);
noncopyable& operator=(const noncopyable& other);
};
| 13.3125 | 50 | 0.746479 | 3Jade |
346d2bf5d56aec1140d7113b1d67bb22a1eb9492 | 2,554 | hpp | C++ | libEPLViz/src/mainWidgets/PluginSelectorWidget.hpp | epl-viz/EPL-Viz | 80d790110113f83da6845ce124997d13bfd45270 | [
"BSD-3-Clause"
] | 3 | 2017-01-23T13:29:21.000Z | 2021-03-08T17:40:42.000Z | libEPLViz/src/mainWidgets/PluginSelectorWidget.hpp | epl-viz/EPL-Viz | 80d790110113f83da6845ce124997d13bfd45270 | [
"BSD-3-Clause"
] | 4 | 2017-03-26T12:56:08.000Z | 2017-08-18T20:32:37.000Z | libEPLViz/src/mainWidgets/PluginSelectorWidget.hpp | epl-viz/EPL-Viz | 80d790110113f83da6845ce124997d13bfd45270 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2017, EPL-Vizards
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditi... | 34.513514 | 82 | 0.723962 | epl-viz |
346e17f4393de3cb209d82fc6647b18cc5cf1b36 | 2,271 | cpp | C++ | introduction_to_cpp_programming/Statistics/statistics.cpp | CalciumCat/cpp-playground | 21cc96e00f4bea768bbc3cb3f6f820ca81eab973 | [
"MIT"
] | null | null | null | introduction_to_cpp_programming/Statistics/statistics.cpp | CalciumCat/cpp-playground | 21cc96e00f4bea768bbc3cb3f6f820ca81eab973 | [
"MIT"
] | null | null | null | introduction_to_cpp_programming/Statistics/statistics.cpp | CalciumCat/cpp-playground | 21cc96e00f4bea768bbc3cb3f6f820ca81eab973 | [
"MIT"
] | null | null | null | /* statistics.cpp contains functions that calculate the average and standard
deviation of 1, 2, 3 or 4 real values */
#include<iostream>
#include<cmath>
#include "statistics.h"
using namespace std;
/* Function to calculate the average of one number */
double average(double first){
return first;
}
/* Function to c... | 28.746835 | 85 | 0.726112 | CalciumCat |
347bd0f8d9e4b13ec2b4100dcdd1dcd221aefefe | 1,067 | cpp | C++ | ext/n7zip/streams/out_stream.cpp | yagisumi/node-n7zip | d9648a99734115cead0c148fba6b0729a77eda1b | [
"MIT"
] | null | null | null | ext/n7zip/streams/out_stream.cpp | yagisumi/node-n7zip | d9648a99734115cead0c148fba6b0729a77eda1b | [
"MIT"
] | 1 | 2020-10-16T17:26:54.000Z | 2020-10-16T17:26:54.000Z | ext/n7zip/streams/out_stream.cpp | yagisumi/node-n7zip | d9648a99734115cead0c148fba6b0729a77eda1b | [
"MIT"
] | null | null | null | #include "out_stream.h"
#include "../reader/extract_worker.h"
namespace n7zip {
OutStream::OutStream(UInt32 index, ExtractWorker* worker, UInt32 limit)
: m_index(index)
, m_worker(worker)
{
TRACE_THIS("+ OutStream");
if (limit > MIN_LIMIT) {
m_limit = limit;
}
m_buffer = std::make_unique<OutBufferData... | 19.759259 | 71 | 0.671978 | yagisumi |
3488c980390ca04d2093e567051f18001e437889 | 698 | cpp | C++ | PETCS/Advanced/ccc12s5.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | PETCS/Advanced/ccc12s5.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | PETCS/Advanced/ccc12s5.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int MAX = 30;
int R, C, K, dp[MAX][MAX]; bool cat[MAX][MAX];
int main() {
cin.tie(0)->sync_with_stdio(0);
#ifndef ONLINE_JUDGE
freopen("../../input.txt", "r", stdin);
freopen("../../output.txt", "w", stdout);
#endif
cin >> R >> C >> K;
for... | 24.928571 | 50 | 0.406877 | dl4us |
34974bf01c6e284c51a6e036a32a9838985c1f88 | 1,951 | cpp | C++ | midisong.cpp | shikolad/PianoPractice | 9d705f2064dcc5499f2a7feb1975164523912249 | [
"MIT"
] | null | null | null | midisong.cpp | shikolad/PianoPractice | 9d705f2064dcc5499f2a7feb1975164523912249 | [
"MIT"
] | null | null | null | midisong.cpp | shikolad/PianoPractice | 9d705f2064dcc5499f2a7feb1975164523912249 | [
"MIT"
] | null | null | null | #include "midisong.h"
#include <QFile>
#include <QDataStream>
MidiSong::MidiSong(QObject *parent) : QObject(parent)
{
}
MidiSong::~MidiSong()
{
}
void MidiSong::addTrack(MidiTrack *track){
trackList.append(track);
}
MidiSong *MidiSong::loadFromFile(QString filePath){
QFile file;
file.setFileName(fileP... | 21.206522 | 71 | 0.604818 | shikolad |
34a5062f7bfd22d0b9dbce3a722ddb2caf970d13 | 2,255 | cpp | C++ | src/coloc_node.cpp | saihv/coloc | 260e78eb34b1b86928ac0bd3ddf29072325c7a2e | [
"MIT"
] | 7 | 2018-10-24T05:12:48.000Z | 2021-12-28T08:08:17.000Z | src/coloc_node.cpp | saihv/coloc | 260e78eb34b1b86928ac0bd3ddf29072325c7a2e | [
"MIT"
] | 1 | 2019-02-21T10:13:11.000Z | 2019-02-24T18:30:05.000Z | src/coloc_node.cpp | saihv/coloc | 260e78eb34b1b86928ac0bd3ddf29072325c7a2e | [
"MIT"
] | 4 | 2018-10-31T04:02:04.000Z | 2021-04-23T07:41:16.000Z | #include "coloc/coloc.hpp"
using namespace openMVG;
void readCalibData(std::pair <int, int>& imageSize, std::vector<Mat3>& K, std::vector<Vec3>& dist, std::string& fileName, unsigned int& numDrones)
{
std::ifstream calibData;
calibData.open(fileName);
std::string line;
std::vector<double> values;
std::getline(... | 23.489583 | 146 | 0.680266 | saihv |
34a52666fb7f98df5a07fc1ff2bd56dca263a605 | 1,240 | cpp | C++ | source/graphics/hal/vulkan/vulkanpipelinestatemanager.cpp | lukaklar/Khan-Engine | 2496366759649d282d725fa637b25fb1e0d4fdfa | [
"Apache-2.0"
] | null | null | null | source/graphics/hal/vulkan/vulkanpipelinestatemanager.cpp | lukaklar/Khan-Engine | 2496366759649d282d725fa637b25fb1e0d4fdfa | [
"Apache-2.0"
] | null | null | null | source/graphics/hal/vulkan/vulkanpipelinestatemanager.cpp | lukaklar/Khan-Engine | 2496366759649d282d725fa637b25fb1e0d4fdfa | [
"Apache-2.0"
] | null | null | null | #include "graphics/precomp.h"
#ifdef KH_GFXAPI_VULKAN
#include "graphics/hal/vulkan/vulkanpipelinestatemanager.hpp"
namespace Khan
{
void VulkanPipelineStateManager::Create(VkDevice device)
{
// TODO: Load pipeline cache
m_PipelineCache = VK_NULL_HANDLE;
}
void VulkanPipelineStateManager::Destroy(VkDevice d... | 27.555556 | 88 | 0.779032 | lukaklar |
34a89aa4a8ce1d5355c55b9a53baf54a7c93f94f | 2,903 | cpp | C++ | SRM615/AmebaDiv1.cpp | CanoeFZH/SRM | 02e3eeaa6044b14640e450725f68684e392009cb | [
"MIT"
] | null | null | null | SRM615/AmebaDiv1.cpp | CanoeFZH/SRM | 02e3eeaa6044b14640e450725f68684e392009cb | [
"MIT"
] | null | null | null | SRM615/AmebaDiv1.cpp | CanoeFZH/SRM | 02e3eeaa6044b14640e450725f68684e392009cb | [
"MIT"
] | null | null | null | // BEGIN CUT HERE
// END CUT HERE
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <vector>
#include <map>
#include <string>
#include <set>
#include <algorithm>
using namespace std;
class AmebaDiv1
{
public:
int ... | 40.887324 | 308 | 0.512573 | CanoeFZH |
34ab57be203613de1a4e9556f905b46a39c5c211 | 41,087 | cpp | C++ | source/dataIO/dataio_silo_utility.cpp | jfbucas/PION | e0a66aa301e4d94d581ba4df078f1a3b82faab99 | [
"BSD-3-Clause"
] | 4 | 2020-08-20T11:31:22.000Z | 2020-12-05T13:30:03.000Z | source/dataIO/dataio_silo_utility.cpp | Mapoet/PION | 51559b18f700c372974ac8658a266b6a647ec764 | [
"BSD-3-Clause"
] | null | null | null | source/dataIO/dataio_silo_utility.cpp | Mapoet/PION | 51559b18f700c372974ac8658a266b6a647ec764 | [
"BSD-3-Clause"
] | 4 | 2020-08-20T14:33:19.000Z | 2022-03-07T10:29:34.000Z | /// \file dataio_silo_utility.cpp
/// \author Jonathan Mackey
///
/// This is code for analysing silo data files in serial mode;
/// written so that a single function will determine if the file is
/// serial or parallel and read in the data regardless. It gets the
/// parameters for the grid from the header.
///
///
... | 30.639075 | 90 | 0.560761 | jfbucas |
34af0db0e62fa70c384f9a59d3d093fc3b0aa016 | 927 | hpp | C++ | includeH/setup.hpp | mangoldk/AdvIonChannelMMOptimizer | c86f0564ef3419a46d5ffa0bed89ca4747090fae | [
"BSD-3-Clause"
] | 1 | 2021-08-18T09:29:17.000Z | 2021-08-18T09:29:17.000Z | includeH/setup.hpp | silvalab/AdvIonChannelMMOptimizer | c86f0564ef3419a46d5ffa0bed89ca4747090fae | [
"BSD-3-Clause"
] | null | null | null | includeH/setup.hpp | silvalab/AdvIonChannelMMOptimizer | c86f0564ef3419a46d5ffa0bed89ca4747090fae | [
"BSD-3-Clause"
] | null | null | null | #ifndef SETUP_HPP_
#define SETUP_HPP_
#include <iostream>
#include "MarkovChannel.hpp"
#include <string>
#include <sstream>
#include "math.hpp"
#include "restart.hpp"
#include <vector>
#include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
class Setup{
private:
int N;
int times;
int ... | 23.175 | 72 | 0.730313 | mangoldk |
34b4ab14d82536fd27f5dcf8e900c358ea14aadb | 3,183 | hpp | C++ | Source/Jobrocket/Job.hpp | jacobmilligan/JobRocket | 8f6a505c6e4e8fe0f13720dd93d8248ca0572b22 | [
"MIT"
] | 1 | 2020-09-18T16:51:57.000Z | 2020-09-18T16:51:57.000Z | Source/Jobrocket/Job.hpp | jacobmilligan/JobRocket | 8f6a505c6e4e8fe0f13720dd93d8248ca0572b22 | [
"MIT"
] | null | null | null | Source/Jobrocket/Job.hpp | jacobmilligan/JobRocket | 8f6a505c6e4e8fe0f13720dd93d8248ca0572b22 | [
"MIT"
] | null | null | null | //
// Job.hpp
// Jobrocket
//
// --------------------------------------------------------------
//
// Created by
// Jacob Milligan on 9/12/2017
// Copyright (c) 2016 Jacob Milligan. All rights reserved.
//
#pragma once
#include "Jobrocket/Detail/Apply.hpp"
#include "Jobrocket/Detail/AtomicCounter.hpp"
#include... | 26.525 | 99 | 0.638391 | jacobmilligan |
34b5920b6f66b364cde26fde95950fd3637fda29 | 774 | cpp | C++ | tests/format-io-tests/angular_momentum-tests/angular_momentum-tests.cpp | LoliGothick/mitama-dimensional | 46b9ae3764bd472da9ed5372afd82e6b5d542543 | [
"MIT"
] | 34 | 2019-01-18T11:51:02.000Z | 2021-09-17T02:46:43.000Z | tests/format-io-tests/angular_momentum-tests/angular_momentum-tests.cpp | LoliGothick/mitama-dimensional | 46b9ae3764bd472da9ed5372afd82e6b5d542543 | [
"MIT"
] | 11 | 2019-02-10T23:12:07.000Z | 2019-05-06T21:05:09.000Z | tests/format-io-tests/angular_momentum-tests/angular_momentum-tests.cpp | LoliGothick/mitama-dimensional | 46b9ae3764bd472da9ed5372afd82e6b5d542543 | [
"MIT"
] | 5 | 2019-02-27T11:53:20.000Z | 2021-03-20T21:59:59.000Z | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <mitama/dimensional/systems/si/derived_units/angular_momentum.hpp>
#include <mitama/dimensional/systems/si/quantity.hpp>
#include "../format_io_common.hpp"
TEST_CASE("angular_momentum format test", "[quantity][abbreviation]") {
REQUIRE(fmt(1 | systems::s... | 48.375 | 186 | 0.745478 | LoliGothick |
34b6cb642b80758dae5f969e7f38914459304d51 | 5,897 | cpp | C++ | src/Ext/WeaponType/Hooks.Wave.cpp | Otamaa/Antares | 7241a5ff20f4dbf7153cc77e16edca5c9db473d4 | [
"BSD-4-Clause"
] | 4 | 2021-04-24T04:34:06.000Z | 2021-09-19T13:55:33.000Z | src/Ext/WeaponType/Hooks.Wave.cpp | Otamaa/Antares | 7241a5ff20f4dbf7153cc77e16edca5c9db473d4 | [
"BSD-4-Clause"
] | null | null | null | src/Ext/WeaponType/Hooks.Wave.cpp | Otamaa/Antares | 7241a5ff20f4dbf7153cc77e16edca5c9db473d4 | [
"BSD-4-Clause"
] | 2 | 2021-08-17T14:44:45.000Z | 2021-09-19T11:02:04.000Z | #include "Body.h"
#include "../Techno/Body.h"
#include <HouseClass.h>
#include <WaveClass.h>
// custom beam styles
// 6FF5F5, 6
DEFINE_HOOK(6FF5F5, TechnoClass_Fire, 6)
{
GET(TechnoClass* const, pThis, ESI);
GET(WeaponTypeClass* const, pSource, EBX);
GET(TechnoClass* const, pTarget, EDI);
auto const pData = Weap... | 21.840741 | 95 | 0.686959 | Otamaa |
34bcd4184391ad1f18777b945b389f2dc5902a59 | 121 | cpp | C++ | sources/source.cpp | Ko71k/lab-05-stack | 037400eed089f0aeab059e6fea91526a045b22b9 | [
"MIT"
] | null | null | null | sources/source.cpp | Ko71k/lab-05-stack | 037400eed089f0aeab059e6fea91526a045b22b9 | [
"MIT"
] | null | null | null | sources/source.cpp | Ko71k/lab-05-stack | 037400eed089f0aeab059e6fea91526a045b22b9 | [
"MIT"
] | null | null | null | //Copyright 2022 Ko71k <rassmagin.rrr@gmail.com>
#include <stdexcept>
#include <stack.hpp>
auto example() -> void {
}
| 13.444444 | 48 | 0.694215 | Ko71k |
34c7c3831acb508e26bf7799b9d2d103ca8ead86 | 1,091 | cc | C++ | src/small-int.cc | xdissent/node-linux-cec | 7bb8ce1b434397e809e64bc9ab8ddbc70d4e1bfa | [
"MIT"
] | 2 | 2019-05-13T21:34:33.000Z | 2022-03-22T17:39:53.000Z | src/small-int.cc | xdissent/node-linux-cec | 7bb8ce1b434397e809e64bc9ab8ddbc70d4e1bfa | [
"MIT"
] | 4 | 2018-11-17T20:56:30.000Z | 2022-01-22T06:58:52.000Z | src/small-int.cc | xdissent/node-linux-cec | 7bb8ce1b434397e809e64bc9ab8ddbc70d4e1bfa | [
"MIT"
] | null | null | null |
#include "small-int.h"
#include <napi.h>
#define UINT8_MASK 0xffffff00
#define UINT16_MASK 0xffff0000
namespace nodelinuxcec {
SmallInt SmallInt::New(napi_env env, uint16_t val) {
napi_value value;
napi_status status = napi_create_uint32(env, val, &value);
if (status != napi_ok) throw Napi::Error::New(env);
... | 27.974359 | 79 | 0.724106 | xdissent |
34c9f80dc4dc33c2d94533ff92d114cdc8781de8 | 397 | cpp | C++ | source/dodbm/operations/helpers/has_column.cpp | WopsS/dodbm | 053f0a6b90e1e081b07418a91cf1f3420d69e390 | [
"MIT"
] | 1 | 2021-02-19T07:22:21.000Z | 2021-02-19T07:22:21.000Z | source/dodbm/operations/helpers/has_column.cpp | WopsS/dodbm | 053f0a6b90e1e081b07418a91cf1f3420d69e390 | [
"MIT"
] | null | null | null | source/dodbm/operations/helpers/has_column.cpp | WopsS/dodbm | 053f0a6b90e1e081b07418a91cf1f3420d69e390 | [
"MIT"
] | null | null | null | #include <dodbm/operations/helpers/has_column.hpp>
#include <dodbm/exception.hpp>
void dodbm::operations::helpers::has_column::set_column(const std::string& name)
{
if (name.empty())
{
throw dodbm::exception("Operation requires a valid column");
}
m_column = name;
}
const std::string& dodbm::... | 22.055556 | 80 | 0.695214 | WopsS |
34ca7c47c1e3086f5e3d18dc8b4ea166f7b20354 | 8,093 | cpp | C++ | src/http/status.cpp | anand-gs/cplusplus | 97f9115df1920c811531b053fc8b9fc9b1ad2ed2 | [
"MIT"
] | null | null | null | src/http/status.cpp | anand-gs/cplusplus | 97f9115df1920c811531b053fc8b9fc9b1ad2ed2 | [
"MIT"
] | null | null | null | src/http/status.cpp | anand-gs/cplusplus | 97f9115df1920c811531b053fc8b9fc9b1ad2ed2 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////
//
// status.cpp
//
//////////////////////////////////////////////////////
/*
LICENSE: BEGIN
===============================================================================
@author Shan Anand
@email anand.gs@gmail.com
@source https://github.com/shan-anand
@brief H... | 39.671569 | 98 | 0.664896 | anand-gs |
34ccae50fa65539137369018410c7071092dbcfc | 1,262 | cpp | C++ | Deitel/Chapter03/examples/3.17/GradeBook.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Deitel/Chapter03/examples/3.17/GradeBook.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Deitel/Chapter03/examples/3.17/GradeBook.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... | 28.681818 | 88 | 0.50317 | SebastianTirado |
34cffd29d194e5ea47d3e19ed1e2001594c51e6d | 362 | cpp | C++ | 242_isAnagram.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 242_isAnagram.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 242_isAnagram.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | class Solution {
public:
bool isAnagram(string s, string t) {
if (s.size() != t.size())
return false;
int S[26] = {0}, T[26] = {0};
for (char c : s) {
++S[c - 'a'];
}
for (char c : t) {
++T[c - 'a'];
}
for (int i = 0; i < 25; ++i) {
if (S[i] != T[i])
re... | 14.48 | 38 | 0.395028 | imxiaobo |
34d2dcf08894e40d3b26eeea1569447ccd307307 | 1,675 | cpp | C++ | reve/dynamic/llreve-dynamic/lib/llreve/dynamic/SerializeTraces.cpp | mattulbrich/llreve | 68cb958c1c02177fa0db1965a8afd879a97c2fc4 | [
"BSD-3-Clause"
] | 20 | 2016-08-11T19:51:13.000Z | 2021-09-02T13:10:58.000Z | reve/dynamic/llreve-dynamic/lib/llreve/dynamic/SerializeTraces.cpp | mattulbrich/llreve | 68cb958c1c02177fa0db1965a8afd879a97c2fc4 | [
"BSD-3-Clause"
] | 9 | 2016-08-11T11:59:24.000Z | 2021-07-16T09:44:28.000Z | reve/dynamic/llreve-dynamic/lib/llreve/dynamic/SerializeTraces.cpp | mattulbrich/llreve | 68cb958c1c02177fa0db1965a8afd879a97c2fc4 | [
"BSD-3-Clause"
] | 7 | 2017-08-19T14:42:27.000Z | 2020-05-20T16:14:13.000Z | /*
* This file is part of
* llreve - Automatic regression verification for LLVM programs
*
* Copyright (C) 2016 Karlsruhe Institute of Technology
*
* The system is published under a BSD license.
* See LICENSE (distributed with this file) for details.
*/
#include "llreve/dynamic/SerializeTraces.h"
#include ... | 23.591549 | 66 | 0.6 | mattulbrich |
34d6f3ce91882f05394f4de5d917d295fadb5d79 | 1,439 | hpp | C++ | src/rdf4cpp/rdf/datatypes/xsd/Integer.hpp | kaimal11/rdf4cpp | c6c38937dc004ecd459ef881dc2cf6217d1cfeae | [
"MIT"
] | null | null | null | src/rdf4cpp/rdf/datatypes/xsd/Integer.hpp | kaimal11/rdf4cpp | c6c38937dc004ecd459ef881dc2cf6217d1cfeae | [
"MIT"
] | null | null | null | src/rdf4cpp/rdf/datatypes/xsd/Integer.hpp | kaimal11/rdf4cpp | c6c38937dc004ecd459ef881dc2cf6217d1cfeae | [
"MIT"
] | null | null | null |
/**
* @file Registers xsd:integer with DatatypeRegistry
*/
#ifndef RDF4CPP_XSD_INTEGER_HPP
#define RDF4CPP_XSD_INTEGER_HPP
#include <rdf4cpp/rdf/datatypes/registry/DatatypeMapping.hpp>
#include <rdf4cpp/rdf/datatypes/registry/LiteralDatatypeImpl.hpp>
#include <cstdint>
#include <ostream>
#include <regex>
namespa... | 26.648148 | 117 | 0.728978 | kaimal11 |
34d6f58341493524d49d4648861ea0aa01f9acf6 | 6,298 | cpp | C++ | DESIRE-Modules/Physics-PhysX/src/PhysXPhysicsComponent.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | 1 | 2020-10-04T18:50:01.000Z | 2020-10-04T18:50:01.000Z | DESIRE-Modules/Physics-PhysX/src/PhysXPhysicsComponent.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | null | null | null | DESIRE-Modules/Physics-PhysX/src/PhysXPhysicsComponent.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | 1 | 2018-09-18T08:03:33.000Z | 2018-09-18T08:03:33.000Z | #include "stdafx_PhysX.h"
#include "PhysXPhysicsComponent.h"
#include "PhysXPhysics.h"
#include "PxMathExt.h"
#include "Engine/Core/GameObject.h"
#include "Engine/Core/Math/Transform.h"
PhysXPhysicsComponent::PhysXPhysicsComponent(GameObject& object)
: PhysicsComponent(object)
{
}
PhysXPhysicsComponent::~PhysXPhys... | 28.116071 | 151 | 0.790251 | nyaki-HUN |
34dbbe56d316b2d1e37540223181a4a889183cae | 720 | cpp | C++ | src/gotobed/Misc.cpp | andrelo1/gotobed-le | 68c6e9e222610dd8154b17ca7fe3afb1ac726703 | [
"MIT"
] | null | null | null | src/gotobed/Misc.cpp | andrelo1/gotobed-le | 68c6e9e222610dd8154b17ca7fe3afb1ac726703 | [
"MIT"
] | null | null | null | src/gotobed/Misc.cpp | andrelo1/gotobed-le | 68c6e9e222610dd8154b17ca7fe3afb1ac726703 | [
"MIT"
] | null | null | null | #include "Misc.h"
#include "Offsets.h"
namespace Gotobed::Misc
{
void Init()
{
// don't show sleep menu
SafeWrite16(Offsets::TESFurniture::Activate + 0x0131, 0x14EB);
// don't show "serve time" message
SafeWrite8(Offsets::TESFurniture::Activate + 0x00E4, 0xEB);
// get up using movement keys
SafeWrite8(Of... | 34.285714 | 72 | 0.733333 | andrelo1 |
34e2e52621ed60b83c268854b0565d99eed0fd01 | 1,912 | cpp | C++ | PC_Aula_25/2_Watering Grass/2_Watering_Grass.cpp | ElizabethYasmin/PC | e3cd03d7f80fae366df1181d5b87514ea8ee597c | [
"MIT"
] | null | null | null | PC_Aula_25/2_Watering Grass/2_Watering_Grass.cpp | ElizabethYasmin/PC | e3cd03d7f80fae366df1181d5b87514ea8ee597c | [
"MIT"
] | null | null | null | PC_Aula_25/2_Watering Grass/2_Watering_Grass.cpp | ElizabethYasmin/PC | e3cd03d7f80fae366df1181d5b87514ea8ee597c | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
#include <cstdio>
#include <iostream>
#include <cmath>
using namespace std;
struct interval{
double a;
double b;
int index;
bool operator < (interval x) const {
return a < x.a;
}
};
double A,B,maxx;
int n, it, best;
vector<int> cover;
bool possibl... | 22.494118 | 61 | 0.417887 | ElizabethYasmin |
34e32f4cbc16e9737b6e461b370ca6bd4ff61743 | 5,052 | cpp | C++ | src/gui/abstract_gobj.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | src/gui/abstract_gobj.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | src/gui/abstract_gobj.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | /*
* djnn v2
*
* The copyright holders for the contents of this file are:
* Ecole Nationale de l'Aviation Civile, France (2018)
* See file "license.terms" for the rights and conditions
* defined by copyright holders.
*
*
* Contributors:
* Mathieu Magnaudet <mathieu.magnaudet@enac.fr>
*
*/
#i... | 33.236842 | 122 | 0.660728 | alicemona |
34e3e88bc4fd4812c9eaff990cfd749b0ba62cd4 | 78,861 | cpp | C++ | src/8086tiny_new.cpp | francescosacco/tinyXT | d0beb4d5d3c8ad37bc0de0d89cbe522a4deb0aa5 | [
"MIT"
] | 6 | 2018-01-12T05:55:15.000Z | 2022-03-26T14:31:02.000Z | src/8086tiny_new.cpp | francescosacco/tinyXT | d0beb4d5d3c8ad37bc0de0d89cbe522a4deb0aa5 | [
"MIT"
] | 1 | 2019-10-08T07:48:01.000Z | 2019-12-20T14:53:21.000Z | src/8086tiny_new.cpp | francescosacco/tinyXT | d0beb4d5d3c8ad37bc0de0d89cbe522a4deb0aa5 | [
"MIT"
] | 2 | 2021-01-02T16:06:06.000Z | 2021-11-04T13:52:40.000Z | // =============================================================================
// File: 8086tiny_new.cpp
//
// Description:
// 8086tiny plus Revision 1.34
//
// Modified from 8086tiny to separate hardware emulation into an interface
// class and support more 80186/NEC V20 instructions.
// Copyright 2014 Julian Olds
/... | 29.175361 | 320 | 0.488264 | francescosacco |
34e769cb264e0dc3f64ca4d707bf0d9bdaf23913 | 25,834 | cpp | C++ | test/instruction/instruction.cpp | poundflag/MOS-6502-Emulator-Base | 987a6c4e2be137cac751d5575860573e8f29e452 | [
"MIT"
] | null | null | null | test/instruction/instruction.cpp | poundflag/MOS-6502-Emulator-Base | 987a6c4e2be137cac751d5575860573e8f29e452 | [
"MIT"
] | null | null | null | test/instruction/instruction.cpp | poundflag/MOS-6502-Emulator-Base | 987a6c4e2be137cac751d5575860573e8f29e452 | [
"MIT"
] | null | null | null | #include "../../src/instruction/instruction.h"
#include "../../src/alu.h"
#include "../../src/bus/buscontroller.h"
#include "../../src/bus/model/busdevice.h"
#include "../../src/bus/model/ram.h"
#include "../../src/register/model/stack.h"
#include "../../src/register/registercontroller.h"
#include <gtest/gtest.h>
clas... | 33.902887 | 80 | 0.750639 | poundflag |
34eb2af91a03deafdaa525823baab2ccb0cd85a0 | 366 | cpp | C++ | 06_algorithms/10_other_algo/05_find.cpp | Gmrakari/STL | 1fc90b1c573a140efa695efd5c55e80ad03b7595 | [
"MIT"
] | null | null | null | 06_algorithms/10_other_algo/05_find.cpp | Gmrakari/STL | 1fc90b1c573a140efa695efd5c55e80ad03b7595 | [
"MIT"
] | null | null | null | 06_algorithms/10_other_algo/05_find.cpp | Gmrakari/STL | 1fc90b1c573a140efa695efd5c55e80ad03b7595 | [
"MIT"
] | null | null | null |
/*
* Date:2021-08-20 15:25
* filename:05_find.cpp
*
*/
/*
* 根据equality操作符,循序查找[first, last)内的所有元素,找出第一个匹配
* "等同(equality)条件"者,如果找到,就返回一个Inputterator指向该元素,
* 否则返回迭代器last
*
*/
template <class Inputerator, class T>
Inputerator find(Inputerator first, Inputerator last, const T& value) {
while (first != last &&... | 16.636364 | 71 | 0.68306 | Gmrakari |
34f299e15530bb73ed0cf27e3e1944d2d397f323 | 947 | cpp | C++ | 605PlaceFlowers.cpp | Bowen-Ding/LeetcodeByCPP | 6d043d870631050d9a41e50caa4e9274a357ddca | [
"Apache-2.0"
] | 1 | 2022-01-11T01:32:16.000Z | 2022-01-11T01:32:16.000Z | 605PlaceFlowers.cpp | Bowen-Ding/LeetcodeByCPP | 6d043d870631050d9a41e50caa4e9274a357ddca | [
"Apache-2.0"
] | null | null | null | 605PlaceFlowers.cpp | Bowen-Ding/LeetcodeByCPP | 6d043d870631050d9a41e50caa4e9274a357ddca | [
"Apache-2.0"
] | null | null | null | #include <bits//stdc++.h>
#include <vector>
#include <iostream>
using namespace std;
/*
题目描述:
假设有一个很长的花坛,一部分地块种植了花,另一部分却没有。可是,花不能种植在相邻的地块上,它们会争夺水源,两者都会死去。
给你一个整数数组 flowerbed 表示花坛,由若干 0 和 1 组成,其中 0 表示没种植花,1 表示种植了花。另有一个数 n ,能否在不打破种植规则的情况下种入 n 朵花?能则返回 true ,不能则返回 false。
示例 1:
输入:flowerbed = [1,0,0,0,1], n = 1
输出:true
... | 22.547619 | 113 | 0.463569 | Bowen-Ding |
34f2de1a5f094e95b806b802a71cf59f615283e4 | 1,898 | cpp | C++ | mainwindow.cpp | SqYtCO/Stopwatch | 5347f31d830db72e883508bfbb84a7cbc5591fe6 | [
"MIT"
] | null | null | null | mainwindow.cpp | SqYtCO/Stopwatch | 5347f31d830db72e883508bfbb84a7cbc5591fe6 | [
"MIT"
] | null | null | null | mainwindow.cpp | SqYtCO/Stopwatch | 5347f31d830db72e883508bfbb84a7cbc5591fe6 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include <qdebug.h>
MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
{
setupGUI();
// on startbutton-click: if stopwatch is not running, start it
QObject::connect(&startbutton, &QPushButton::clicked, [this]() { if(!timewidget.isRunning()) timewidget.start(); });
startaction.set... | 40.382979 | 117 | 0.716017 | SqYtCO |
34f99f45e716d3c7121353b509b86300845ff493 | 1,042 | cpp | C++ | BT-Clipper/Source/DSP/InitPostTone.cpp | landonviator/BT-Clipper | 4b6d633e84eadc24df346b21cc8b4d7724fb3770 | [
"MIT"
] | null | null | null | BT-Clipper/Source/DSP/InitPostTone.cpp | landonviator/BT-Clipper | 4b6d633e84eadc24df346b21cc8b4d7724fb3770 | [
"MIT"
] | null | null | null | BT-Clipper/Source/DSP/InitPostTone.cpp | landonviator/BT-Clipper | 4b6d633e84eadc24df346b21cc8b4d7724fb3770 | [
"MIT"
] | null | null | null | /*
==============================================================================
InitPostTone.cpp
Created: 23 Jan 2022 7:02:37pm
Author: Landon Viator
==============================================================================
*/
#include "../PluginProcessor.h"
void BTClipperAudioProcessor::ini... | 45.304348 | 117 | 0.65643 | landonviator |
5a55eca2957ac308a5b9dd9e7d566407db3d9e55 | 854 | cpp | C++ | LeetCode/c++/88_Merge Sorted Array.cpp | Weak-Chicken/Algo_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | 1 | 2018-02-08T23:50:19.000Z | 2018-02-08T23:50:19.000Z | LeetCode/c++/88_Merge Sorted Array.cpp | Weak-Chicken/Algo_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | 1 | 2018-04-11T19:08:22.000Z | 2018-04-12T19:24:57.000Z | LeetCode/c++/88_Merge Sorted Array.cpp | Weak-Chicken/Cpp_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | null | null | null | class Solution
{
public:
void insert_one_element(vector<int>& nums, int number, int position, int m)
{
for (int i = m - 1; i >= position; i--)
{
nums[i + 1] = nums[i];
}
nums[position] = number;
};
void merge(vector<int>& nums1, int m, vector<int>& nums2... | 24.4 | 99 | 0.375878 | Weak-Chicken |
5a568d7e6075400e599616a86fdfd006648edc71 | 682 | cpp | C++ | shell/parser.cpp | amanudde1999/os-concepts | 4e3f5d9c2e898e5cf247fea89bb1e845730c1ca5 | [
"MIT"
] | null | null | null | shell/parser.cpp | amanudde1999/os-concepts | 4e3f5d9c2e898e5cf247fea89bb1e845730c1ca5 | [
"MIT"
] | null | null | null | shell/parser.cpp | amanudde1999/os-concepts | 4e3f5d9c2e898e5cf247fea89bb1e845730c1ca5 | [
"MIT"
] | null | null | null | /**
Assignment 1: Processes
Name: Amro Amanuddein
StudentID: 1572498
Course: CMPUT 379 Fall 2021
*/
#include <iostream>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include "parser.h"
using namespace std;
cmds parse(string cmd_string){
cmds cmd_input;
boost::split(cmd_input.cmd... | 24.357143 | 82 | 0.709677 | amanudde1999 |
5a606d4fc145f0384b71f5c86ba2276e87c363a5 | 1,524 | hpp | C++ | include/codegen/include/System/EmptyArray_1.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/EmptyArray_1.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/EmptyArray_1.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "e... | 42.333333 | 156 | 0.690945 | Futuremappermydud |
5a741631d09960b51a077008587af778b9cebf5e | 1,796 | cpp | C++ | Wallet/UnoSemuxAddrsGroup.cpp | uno-labs/semux-light-core | 49972e8ee1cb60f166f9cede847831d3c6411e9f | [
"MIT"
] | 1 | 2020-08-12T05:44:09.000Z | 2020-08-12T05:44:09.000Z | Wallet/UnoSemuxAddrsGroup.cpp | uno-labs/semux-light-core | 49972e8ee1cb60f166f9cede847831d3c6411e9f | [
"MIT"
] | null | null | null | Wallet/UnoSemuxAddrsGroup.cpp | uno-labs/semux-light-core | 49972e8ee1cb60f166f9cede847831d3c6411e9f | [
"MIT"
] | 1 | 2020-06-09T13:20:15.000Z | 2020-06-09T13:20:15.000Z | #include "UnoSemuxAddrsGroup.hpp"
#include "UnoSemuxWalletUtils.hpp"
namespace UnoSemux {
UnoSemuxAddrsGroup::UnoSemuxAddrsGroup (GpCryptoKeyFactory::SP aFactory):
iFactory(std::move(aFactory))
{
}
UnoSemuxAddrsGroup::~UnoSemuxAddrsGroup (void) noexcept
{
Clear();
}
void UnoSemuxAddrsGroup::Clear (v... | 22.734177 | 95 | 0.717149 | uno-labs |
5a78366465e39e122e39bfa8904d8ad99c7708e5 | 2,440 | cpp | C++ | src/auto/ThreeShotAutonRoutine.cpp | core2062/NordVPN2021 | 0e21021f9308441849a4d40cc64478c98d8fcafa | [
"BSD-3-Clause"
] | null | null | null | src/auto/ThreeShotAutonRoutine.cpp | core2062/NordVPN2021 | 0e21021f9308441849a4d40cc64478c98d8fcafa | [
"BSD-3-Clause"
] | null | null | null | src/auto/ThreeShotAutonRoutine.cpp | core2062/NordVPN2021 | 0e21021f9308441849a4d40cc64478c98d8fcafa | [
"BSD-3-Clause"
] | null | null | null | #include "ThreeShotAutonRoutine.h"
ThreeShotRoutine::ThreeShotRoutine() : COREAuton("Three Shot Routine") {}
void ThreeShotRoutine::AddNodes() {
driveNode = new Node(7000, new DriveAction(BACKWARD));
shotOneOnNode = new Node(5, new LaunchAction(LAUNCHER_ON));
delayShotOneNode = new Node(shotDelayTime, new... | 51.914894 | 80 | 0.764754 | core2062 |
5a797dd05adbaf0d6a42440a100f4f516b5d1327 | 453 | cpp | C++ | vslib/Event.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | 50 | 2016-03-23T08:04:44.000Z | 2022-03-25T05:06:16.000Z | vslib/Event.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | 589 | 2016-04-01T04:09:09.000Z | 2022-03-31T00:38:10.000Z | vslib/Event.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | 234 | 2016-03-28T20:59:21.000Z | 2022-03-23T09:26:22.000Z | #include "Event.h"
#include "swss/logger.h"
using namespace saivs;
Event::Event(
_In_ EventType eventType,
_In_ std::shared_ptr<EventPayload> payload):
m_eventType(eventType),
m_payload(payload)
{
SWSS_LOG_ENTER();
// empty
}
EventType Event::getType() const
{
SWSS_LOG_ENTER();
... | 14.612903 | 55 | 0.671082 | vmittal-msft |
5a8004ba9031cc996a0f2e1ffc5222750c8b1eb9 | 2,179 | hpp | C++ | tuple/trim.hpp | 5cript/mpl14 | 4c6da6b8bce1f57b0df8c4ef456fe03a61982cad | [
"MIT"
] | null | null | null | tuple/trim.hpp | 5cript/mpl14 | 4c6da6b8bce1f57b0df8c4ef456fe03a61982cad | [
"MIT"
] | null | null | null | tuple/trim.hpp | 5cript/mpl14 | 4c6da6b8bce1f57b0df8c4ef456fe03a61982cad | [
"MIT"
] | null | null | null | #ifndef MPLEX_TUPLE_TUPLE_TRIM_HPP_INCLUDED
#define MPLEX_TUPLE_TUPLE_TRIM_HPP_INCLUDED
#include <tuple>
#include "pop_back.hpp"
namespace mplex {
template <typename Tuple, typename Predicate, bool Abort = false>
struct trim_left
{ };
template <typename Predicate, typename T, typename... L... | 34.046875 | 142 | 0.623681 | 5cript |
5a80c63ed2bbebeb465127747f9491cd9eaf0e4c | 242 | cpp | C++ | Lab1/Sheep.cpp | devtedlee/cppStudyProjects | 65c7504773a332b32b473058b273fe1356d0b7b5 | [
"MIT"
] | null | null | null | Lab1/Sheep.cpp | devtedlee/cppStudyProjects | 65c7504773a332b32b473058b273fe1356d0b7b5 | [
"MIT"
] | null | null | null | Lab1/Sheep.cpp | devtedlee/cppStudyProjects | 65c7504773a332b32b473058b273fe1356d0b7b5 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Sheep.h"
namespace lab1
{
Sheep::Sheep(char* name)
: Animal(name)
, mFurCount(0)
{
};
Sheep::~Sheep()
{
}
void Sheep::Bark() const
{
std::cout << Animal::GetName() << ": MEA~" << std::endl;
}
} | 11.52381 | 58 | 0.566116 | devtedlee |
5a856dacd42c9494452c2330b853017ebd142fbf | 2,574 | cpp | C++ | Game/Entity/Player.cpp | BaiKongQue/CSCI-166_AI_Project | 81af3d77f6ba595b87f8e7e73caf7b9fc083c592 | [
"MIT"
] | null | null | null | Game/Entity/Player.cpp | BaiKongQue/CSCI-166_AI_Project | 81af3d77f6ba595b87f8e7e73caf7b9fc083c592 | [
"MIT"
] | null | null | null | Game/Entity/Player.cpp | BaiKongQue/CSCI-166_AI_Project | 81af3d77f6ba595b87f8e7e73caf7b9fc083c592 | [
"MIT"
] | null | null | null | #include "Player.h"
float* Player::vk = nullptr;
Player::Player(Window* window, std::vector<Entity*>* entities, std::vector<int>* walls, int spawnPos):
Person(window, entities, walls, spawnPos, GRID_TYPE::PLAYER, 4, "archer_sprite.png"),
arrows(0)
{
this->LoadVk();
}
float Player::GetReward(GRID_TYPE entityTyp... | 22.778761 | 102 | 0.529915 | BaiKongQue |
5a87c63820d80a41cfcf613c49cf8b4cca24444c | 892 | cpp | C++ | plugins/d3d9/src/state/ffp/sampler/disable.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/d3d9/src/state/ffp/sampler/disable.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/d3d9/src/state/ffp/sampler/disable.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 <sge/d3d9/d3dinclude.hpp>
#include <sge/d3d9/devicefuncs/set_texture_stage_state.hpp>
#inc... | 37.166667 | 99 | 0.73991 | cpreh |
5a8abcfc261da6bac5eff9e3f7749fd21c47c88b | 1,760 | hpp | C++ | src/include/qasioeventdispatcher.hpp | loyio/TPlayNow | eb2bd8652ffbfd68ce71da4ac54ae3949ff471d7 | [
"BSD-3-Clause",
"MIT"
] | 1 | 2022-03-21T04:04:14.000Z | 2022-03-21T04:04:14.000Z | src/include/qasioeventdispatcher.hpp | loyio/TMsgNow | eb2bd8652ffbfd68ce71da4ac54ae3949ff471d7 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/include/qasioeventdispatcher.hpp | loyio/TMsgNow | eb2bd8652ffbfd68ce71da4ac54ae3949ff471d7 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | #ifndef QASIOEVENTDISPATCHER_HPP
#define QASIOEVENTDISPATCHER_HPP
#include "QtCore/qabstracteventdispatcher.h"
// #include "private/qabstracteventdispatcher_p.h"
#include <QAbstractEventDispatcher>
/*
#include "QtCore/qabstracteventdispatcher.h"
#include "QtCore/qlist.h"
#include "private/qabstracteventdispatcher_p.h"... | 29.333333 | 105 | 0.775568 | loyio |
5a8bfb34ea4efc6c93d93f11074ca2950892bc31 | 2,014 | cpp | C++ | Ko-Fi Engine/Source/Texture.cpp | boscobarberesbert/Ko-Fi-Engine | 207ef2223f7c317a776cc7ca2da80ce9a2752116 | [
"MIT"
] | 2 | 2022-02-17T10:06:57.000Z | 2022-02-17T11:57:18.000Z | Ko-Fi Engine/Source/Texture.cpp | boscobarberesbert/game-engine | 207ef2223f7c317a776cc7ca2da80ce9a2752116 | [
"MIT"
] | null | null | null | Ko-Fi Engine/Source/Texture.cpp | boscobarberesbert/game-engine | 207ef2223f7c317a776cc7ca2da80ce9a2752116 | [
"MIT"
] | 8 | 2022-01-04T10:45:15.000Z | 2022-03-04T16:23:58.000Z | #include "Texture.h"
#include "glew.h"
#include "stb_image.h"
#include "ImGuiAppLog.h"
#define CHECKERS_SIZE 32
void Texture::SetUpTexture(std::string path)
{
if (path.empty()) {
GLubyte checkerImage[CHECKERS_SIZE][CHECKERS_SIZE][4];
for (int i = 0; i < CHECKERS_SIZE; i++) {
for (int j = 0; j < CHECKERS_SIZE; ... | 31.968254 | 107 | 0.723436 | boscobarberesbert |
5a8d3d9fbf26b8bc627de8106fd0d50434cf46e0 | 1,524 | cpp | C++ | src/mkdt_lib/src/registry.cpp | Superlokkus/code | f52cba0c04fc65c0b219ab8e58fdc8144320a039 | [
"MIT"
] | null | null | null | src/mkdt_lib/src/registry.cpp | Superlokkus/code | f52cba0c04fc65c0b219ab8e58fdc8144320a039 | [
"MIT"
] | null | null | null | src/mkdt_lib/src/registry.cpp | Superlokkus/code | f52cba0c04fc65c0b219ab8e58fdc8144320a039 | [
"MIT"
] | null | null | null | /*! @file registry.cpp
*
*/
#include <registry.hpp>
void mkdt::registry::register_service(mkdt::service_identifier service_id,
std::shared_ptr<mkdt::registry::receiver> service_object,
std::function<void(error)> completion_handler) {
bo... | 42.333333 | 112 | 0.578084 | Superlokkus |
5a8fd641261b95736d93fba5af5cdcd623dc534f | 16,082 | hpp | C++ | include/solace/path.hpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 18 | 2016-05-30T23:46:27.000Z | 2022-01-11T18:20:28.000Z | include/solace/path.hpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 4 | 2017-09-12T13:32:28.000Z | 2019-10-21T10:36:18.000Z | include/solace/path.hpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 5 | 2017-11-24T19:34:06.000Z | 2019-10-18T14:24:12.000Z | /*
* Copyright 2016 Ivan Ryabov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 29.028881 | 110 | 0.666148 | abbyssoul |
5a94661aa1a14f3937875bd68bc8848b1581bf46 | 707 | cpp | C++ | src/lib/Bmrk.cpp | alepez/bmrk | 04db2646b42662b976b4f4a1a5fb414ca73df163 | [
"MIT"
] | null | null | null | src/lib/Bmrk.cpp | alepez/bmrk | 04db2646b42662b976b4f4a1a5fb414ca73df163 | [
"MIT"
] | null | null | null | src/lib/Bmrk.cpp | alepez/bmrk | 04db2646b42662b976b4f4a1a5fb414ca73df163 | [
"MIT"
] | null | null | null | #include "Bmrk.hpp"
#include "Bookmark.hpp"
#include "PageDownloader.hpp"
#include "PageParser.hpp"
#include "Library.hpp"
namespace bmrk {
Bmrk::Bmrk(PageDownloaderPtr downloader, DatabasePtr db)
: downloader_{downloader}, db_{db} {
library_.reset(new Library);
library_->connect(db);
}
Future<BookmarkPtr> B... | 22.806452 | 74 | 0.691655 | alepez |
5a95081d9416399eb580dcde143b00bcaec31c77 | 2,599 | hxx | C++ | L2CapDev/mobileremotedrv.hxx | nbclark/mobile-remote | d291ec9accc763190646d97e45dad9e07c630973 | [
"Apache-2.0"
] | 1 | 2020-12-15T09:48:51.000Z | 2020-12-15T09:48:51.000Z | L2CapDev/mobileremotedrv.hxx | nbclark/mobile-remote | d291ec9accc763190646d97e45dad9e07c630973 | [
"Apache-2.0"
] | null | null | null | L2CapDev/mobileremotedrv.hxx | nbclark/mobile-remote | d291ec9accc763190646d97e45dad9e07c630973 | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use th... | 26.252525 | 85 | 0.710273 | nbclark |
5a9603906dc473d46a438fd3534f15a834fb30b2 | 1,668 | cpp | C++ | test/unit-tests/event/drop_event_test.cpp | twantonie/centurion | 198b80f9e8a29da2ae7d3c15e48ffa1a046165c3 | [
"MIT"
] | 126 | 2020-12-05T00:05:56.000Z | 2022-03-30T15:15:03.000Z | test/unit-tests/event/drop_event_test.cpp | twantonie/centurion | 198b80f9e8a29da2ae7d3c15e48ffa1a046165c3 | [
"MIT"
] | 46 | 2020-12-27T14:25:22.000Z | 2022-01-26T13:58:11.000Z | test/unit-tests/event/drop_event_test.cpp | twantonie/centurion | 198b80f9e8a29da2ae7d3c15e48ffa1a046165c3 | [
"MIT"
] | 13 | 2021-01-20T20:50:18.000Z | 2022-03-25T06:59:03.000Z | #include <gtest/gtest.h>
#include "events/event.hpp"
TEST(DropEvent, Defaults)
{
cen::drop_event event;
ASSERT_GT(event.time(), 0u);
ASSERT_EQ(cen::event_type::drop_file, event.type());
}
TEST(DropEvent, SetWillFreeFile)
{
cen::drop_event event;
event.set_will_free_file(true);
ASSERT_TRUE(event.will_fre... | 20.85 | 79 | 0.714628 | twantonie |
5a97e87eb1efd638ccdc8e41c6e3ff1e3bf411c4 | 211 | cpp | C++ | src/aimlset.cpp | hoathienvu8x/chatmachine | a05e9afd2dabe49e4a61ba97fbd07d2fcd041b89 | [
"Apache-2.0"
] | 4 | 2019-05-01T02:34:17.000Z | 2020-12-27T23:29:45.000Z | src/aimlset.cpp | hoathienvu8x/chatmachine | a05e9afd2dabe49e4a61ba97fbd07d2fcd041b89 | [
"Apache-2.0"
] | 1 | 2020-03-25T09:14:18.000Z | 2020-03-25T09:14:18.000Z | src/aimlset.cpp | hoathienvu8x/chatmachine | a05e9afd2dabe49e4a61ba97fbd07d2fcd041b89 | [
"Apache-2.0"
] | 11 | 2019-03-15T07:53:58.000Z | 2022-01-08T03:51:21.000Z | #include "aimlset.h"
#include "aimltemplateelement.h"
using namespace std;
using namespace aiml;
string Set::name() {
return m_sName;
}
string Set::toString() {
return "<set name=\""+m_sName+"\"></set>";
}
| 15.071429 | 43 | 0.677725 | hoathienvu8x |
5a9a3bc6a067df2104486193ed8c7445b1036b99 | 54,008 | cpp | C++ | matrix/EM_vector.cpp | kjhyun824/uncertain-graph-engine | 17aa1b8b5d03b03200583797ab0cfb4a42ff8845 | [
"Apache-2.0"
] | 140 | 2015-01-02T21:28:55.000Z | 2015-12-22T01:25:03.000Z | matrix/EM_vector.cpp | kjhyun824/uncertain-graph-engine | 17aa1b8b5d03b03200583797ab0cfb4a42ff8845 | [
"Apache-2.0"
] | 160 | 2016-11-07T18:37:33.000Z | 2020-03-10T22:57:07.000Z | matrix/EM_vector.cpp | kjhyun824/uncertain-graph-engine | 17aa1b8b5d03b03200583797ab0cfb4a42ff8845 | [
"Apache-2.0"
] | 25 | 2016-11-14T04:31:29.000Z | 2020-07-28T04:58:44.000Z | /*
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashMatrix.
*
* 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 ... | 33.052632 | 82 | 0.717153 | kjhyun824 |
5aa2b4e1a09f787abe920565809de530a007c56c | 1,737 | cpp | C++ | 2020-11-20/spam.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | 2 | 2020-12-12T00:02:40.000Z | 2021-04-21T19:49:59.000Z | 2020-11-20/spam.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | null | null | null | 2020-11-20/spam.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
using namespace std;
const int NOT_FILLED = 4;
typedef char name_t[32];
struct spam_t {
int lower, upper;
name_t attribute[3];
int get_index(int x) {
if (x<lower)
return 0;
if (x>=upper)
return 2;
return 1;
}
};
spam_t spam[110];
... | 21.182927 | 59 | 0.518135 | pufe |
5aa576333644e47f5049aadcb59b2d368157a8bd | 2,234 | cpp | C++ | 42.trapping-rain-water.cpp | Broadroad/learnLeetcode | c4af121b3451caa4d53819c5f8c62b38e8e5fb87 | [
"Apache-2.0"
] | null | null | null | 42.trapping-rain-water.cpp | Broadroad/learnLeetcode | c4af121b3451caa4d53819c5f8c62b38e8e5fb87 | [
"Apache-2.0"
] | null | null | null | 42.trapping-rain-water.cpp | Broadroad/learnLeetcode | c4af121b3451caa4d53819c5f8c62b38e8e5fb87 | [
"Apache-2.0"
] | null | null | null | /*
* @lc app=leetcode id=42 lang=cpp
*
* [42] Trapping Rain Water
*
* https://leetcode.com/problems/trapping-rain-water/description/
*
* algorithms
* Hard (45.51%)
* Likes: 4858
* Dislikes: 85
* Total Accepted: 378.9K
* Total Submissions: 831.6K
* Testcase Example: '[0,1,0,2,1,0,1,3,2,1,2,1]'
*
* ... | 23.765957 | 79 | 0.473142 | Broadroad |
5aa5ad73325cca8df2ae0828b9cd3fb922212c51 | 492 | hpp | C++ | src/VMEffects/TextureBase.hpp | cad420/VMEffects | 9f68b2e0e1c1a51b50f5a0383dd9d31c33ab2af0 | [
"MIT"
] | null | null | null | src/VMEffects/TextureBase.hpp | cad420/VMEffects | 9f68b2e0e1c1a51b50f5a0383dd9d31c33ab2af0 | [
"MIT"
] | null | null | null | src/VMEffects/TextureBase.hpp | cad420/VMEffects | 9f68b2e0e1c1a51b50f5a0383dd9d31c33ab2af0 | [
"MIT"
] | null | null | null |
#pragma once
#include "DeviceObjectImpl.hpp"
#include <VMEffects/ITexture.h>
namespace vm
{
namespace fx
{
template<typename Interface,typename DeviceType,typename DescType>
class TextureBase : public DeviceObject<Interface, DeviceType>
{
public:
TextureBase( IRefCnt *cnt, DeviceType *device,const TextureDesc & de... | 18.923077 | 75 | 0.747967 | cad420 |
5abb97b0f8e52b6cca1923c658f5dcee3de70436 | 6,955 | cpp | C++ | Projects/MissionariesAndCannibals/src/MandCEnvironment.cpp | GlobeOfGeek/modern_ai | d2f2e02b89b35cec00021732d57f99e078972342 | [
"MIT"
] | 5 | 2016-04-01T02:10:46.000Z | 2016-10-24T19:07:07.000Z | Projects/MissionariesAndCannibals/src/MandCEnvironment.cpp | GlobeOfGeek/morris_aima | d2f2e02b89b35cec00021732d57f99e078972342 | [
"MIT"
] | null | null | null | Projects/MissionariesAndCannibals/src/MandCEnvironment.cpp | GlobeOfGeek/morris_aima | d2f2e02b89b35cec00021732d57f99e078972342 | [
"MIT"
] | null | null | null | #include <json/json.h>
#include "MandCEnvironment.h"
#include <iostream>
#include "MandCEnvironmentState.h"
#include <vector>
#include "StateNode.h"
#include "MandCAction.h"
void MandCEnvironment::loadEnvironment(string fileName) {
StateNode *initialNode = NULL;
MandCEnvironmentState *initialState = new MandCE... | 32.050691 | 111 | 0.641265 | GlobeOfGeek |
5abe1290174aa54677aff998642aaf5fa1a4145d | 923 | cpp | C++ | src/Sudoku/Slice.cpp | Pafnoutios/libsudoku | 9d700716895d46f71e854133a1135ab6047b3f88 | [
"MIT"
] | null | null | null | src/Sudoku/Slice.cpp | Pafnoutios/libsudoku | 9d700716895d46f71e854133a1135ab6047b3f88 | [
"MIT"
] | null | null | null | src/Sudoku/Slice.cpp | Pafnoutios/libsudoku | 9d700716895d46f71e854133a1135ab6047b3f88 | [
"MIT"
] | null | null | null | #include "Slice.hpp"
#include "Cell.hpp"
#include <numeric>
Sudoku::Slice::Slice(const Size& size)
: _possibilities(size[iBlock])
, _members{ size[iBlock], nullptr }
{
std::iota(_possibilities.begin(), _possibilities.end(), 0);
}
void Sudoku::Slice::assignMember(int index, Cell& cell)
{
_members[index] = &c... | 22.512195 | 117 | 0.690141 | Pafnoutios |
5abe7c6e11498dddde9095eadb7b09122c5486ac | 601 | cpp | C++ | LeetCode/c++/985_Sum of Even Numbers After Queries_V2.cpp | Weak-Chicken/Algo_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | 1 | 2018-02-08T23:50:19.000Z | 2018-02-08T23:50:19.000Z | LeetCode/c++/985_Sum of Even Numbers After Queries_V2.cpp | Weak-Chicken/Algo_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | 1 | 2018-04-11T19:08:22.000Z | 2018-04-12T19:24:57.000Z | LeetCode/c++/985_Sum of Even Numbers After Queries_V2.cpp | Weak-Chicken/Cpp_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | null | null | null | class Solution
{
public:
vector<int> sumEvenAfterQueries(vector<int>& A, vector<vector<int>>& queries)
{
vector<int>res; int sum = 0;
if (A.size() == 0 || queries.size() == 0) return res;
for (int i = 0; i < A.size(); i++) if (A[i] % 2 == 0) sum += A[i];
for (int i = 0; i < que... | 33.388889 | 82 | 0.450915 | Weak-Chicken |
5ac9475d8d79f9b54b2b0259c5d7bac59840936d | 1,271 | hpp | C++ | include/codegen/include/GlobalNamespace/EnumFlagAttribute.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/EnumFlagAttribute.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/EnumFlagAttribute.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.PropertyAttribute
#include "UnityEngine/Pro... | 37.382353 | 85 | 0.693155 | Futuremappermydud |
5ace5f94900d63f26cc8724172224403cb0b14ea | 560 | cpp | C++ | dev/g++/projects/beaglebone/beagleboneComm/src/beagleboneCommInit.cpp | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/projects/beaglebone/beagleboneComm/src/beagleboneCommInit.cpp | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/projects/beaglebone/beagleboneComm/src/beagleboneCommInit.cpp | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | 1 | 2017-01-27T12:53:50.000Z | 2017-01-27T12:53:50.000Z | #include <unistd.h>
#include "raspberryCommInit.h"
#include "wiringPi.h"
namespace raspberryComm {
raspberryCommInit * raspberryCommInit::Instance = new raspberryCommInit();
raspberryCommInit::~raspberryCommInit() {
delete raspberryCommInit::Instance;
raspberryCommInit::Instance = NULL;
}
raspber... | 22.4 | 76 | 0.728571 | YannGarcia |
62c597a6f0a1fab651351abcfa196de3a43e6a49 | 1,579 | cpp | C++ | src/Apps/RemoteCloudControlServer/main.cpp | miseri/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 1 | 2021-07-14T08:15:05.000Z | 2021-07-14T08:15:05.000Z | src/Apps/RemoteCloudControlServer/main.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | null | null | null | src/Apps/RemoteCloudControlServer/main.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 2 | 2021-07-14T08:15:02.000Z | 2021-07-14T08:56:10.000Z | #include "RemoteCloudControlServerPch.h"
#include <iostream>
#include <thread>
#include <grpc/grpc.h>
#include <grpc++/server.h>
#include <grpc++/server_builder.h>
#include <grpc++/server_context.h>
#include <grpc++/server_credentials.h>
#include <grpc++/status.h>
#include <grpc++/stream.h>
#include <RemoteCloudContro... | 22.884058 | 142 | 0.720709 | miseri |
62c858754f08b5f68ae3fbc352fd415f21bc57dc | 3,084 | cpp | C++ | snark-logic/libs-source/multiprecision/test/test_jacobi.cpp | idealatom/podlodkin-freeton-year-control | 6aa96e855fe065c9a75c76da976a87fe2d1668e6 | [
"MIT"
] | 1 | 2021-09-14T18:09:38.000Z | 2021-09-14T18:09:38.000Z | snark-logic/libs-source/multiprecision/test/test_jacobi.cpp | idealatom/podlodkin-freeton-year-control | 6aa96e855fe065c9a75c76da976a87fe2d1668e6 | [
"MIT"
] | null | null | null | snark-logic/libs-source/multiprecision/test/test_jacobi.cpp | idealatom/podlodkin-freeton-year-control | 6aa96e855fe065c9a75c76da976a87fe2d1668e6 | [
"MIT"
] | 1 | 2021-09-15T20:27:27.000Z | 2021-09-15T20:27:27.000Z | ///////////////////////////////////////////////////////////////
// Copyright 2020 Mikhail Komarov. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
#ifdef _MSC_VER
#define _SCL_SECURE_NO_WARNINGS
#endif
#include... | 35.045455 | 120 | 0.74546 | idealatom |
62d34292368d8e44dfec1be6fbe80af145bf7687 | 14,652 | cc | C++ | lib/evaluate/variable.cc | ibara/f18 | 5344ef9272f2f46702e96409c8d697b927542e20 | [
"Apache-2.0"
] | null | null | null | lib/evaluate/variable.cc | ibara/f18 | 5344ef9272f2f46702e96409c8d697b927542e20 | [
"Apache-2.0"
] | null | null | null | lib/evaluate/variable.cc | ibara/f18 | 5344ef9272f2f46702e96409c8d697b927542e20 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 29.245509 | 90 | 0.589954 | ibara |
62e0570b5b063f862cfda43d51502080c71915b7 | 2,716 | cpp | C++ | src/sctokenoperations.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | 1 | 2020-12-13T16:56:32.000Z | 2020-12-13T16:56:32.000Z | src/sctokenoperations.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | null | null | null | src/sctokenoperations.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | null | null | null | #include "include/sctokenoperations.h"
#include <QRegularExpression>
TokenType SCTokenOperations::tokenType(const QChar &ch)
{
TokenType type;
QHash<QString, SCToken *>::const_iterator it = tokens.find(ch);
if (it != tokens.end())
type = it.value()->getType();
else
{
if (ch.isLette... | 26.368932 | 121 | 0.559278 | BryanMorfe |
62fc517303aacf36d20b8f79731d304af90e8662 | 896 | cpp | C++ | source/RegistNodes.cpp | xzrunner/vfxlab | a2a30ee369d1955ceb55353f2dcdafdf1ce2fe37 | [
"MIT"
] | null | null | null | source/RegistNodes.cpp | xzrunner/vfxlab | a2a30ee369d1955ceb55353f2dcdafdf1ce2fe37 | [
"MIT"
] | null | null | null | source/RegistNodes.cpp | xzrunner/vfxlab | a2a30ee369d1955ceb55353f2dcdafdf1ce2fe37 | [
"MIT"
] | null | null | null | #include "vfxlab/RegistNodes.h"
#include <ee0/ReflectPropTypes.h>
#include <js/RTTR.h>
#define REGIST_NODE_RTTI(type, name, prop) \
rttr::registration::class_<vfxlab::node::type>("vfxlab::"#name) \
.constructor<>() \
prop ... | 20.837209 | 79 | 0.613839 | xzrunner |
1a004aaafd9b8f98cfabbd936ba1728d67e3fb1c | 9,827 | cc | C++ | test/gurka/test_instructions_keep_toward.cc | mixvit/valhalla | 65d56caf85103f267452e7b79e49ec66a9bf480e | [
"MIT"
] | 1 | 2019-12-11T13:45:27.000Z | 2019-12-11T13:45:27.000Z | test/gurka/test_instructions_keep_toward.cc | Bolaxax/valhalla | f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb | [
"MIT"
] | 1 | 2020-07-29T17:39:33.000Z | 2020-08-03T11:07:51.000Z | test/gurka/test_instructions_keep_toward.cc | Bolaxax/valhalla | f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb | [
"MIT"
] | 1 | 2020-11-01T14:49:36.000Z | 2020-11-01T14:49:36.000Z | #include "gurka.h"
#include <gtest/gtest.h>
#if !defined(VALHALLA_SOURCE_DIR)
#define VALHALLA_SOURCE_DIR
#endif
using namespace valhalla;
class InstructionsKeepToward : public ::testing::Test {
protected:
static gurka::map map;
static void SetUpTestSuite() {
constexpr double gridsize_metres = 1000;
co... | 48.890547 | 96 | 0.47339 | mixvit |
1a01ed5437304d3d8e5213b54750414c978f5a0d | 469 | cpp | C++ | Prime_in_a_given_range/prime_number_2nd/main.cpp | narendrajethi220/Getting-Started | fd1b910228b6cfb30b82f50f52f6c32e79437ea3 | [
"MIT"
] | null | null | null | Prime_in_a_given_range/prime_number_2nd/main.cpp | narendrajethi220/Getting-Started | fd1b910228b6cfb30b82f50f52f6c32e79437ea3 | [
"MIT"
] | null | null | null | Prime_in_a_given_range/prime_number_2nd/main.cpp | narendrajethi220/Getting-Started | fd1b910228b6cfb30b82f50f52f6c32e79437ea3 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int isPrime(int n)
{
if(n<2)
return 0;
else if(n%2==0)
return 0;
for(int i=3;i*i<=n;i+=2)
{
if(n%i==0)
{
return 0;
}
}
return 1;
}
int main()
{
int num;
cout<<"Enter the num";... | 13.794118 | 29 | 0.392324 | narendrajethi220 |
1a054bec5c3e7f0d2a8f3785062f6278d1115ae7 | 10,743 | cc | C++ | src/flevent.cc | ComputerNerd/moonfltk | 6da77cacb0b158907c5cf9320b9d06ca44dd43c0 | [
"MIT"
] | 38 | 2016-06-22T18:39:45.000Z | 2021-09-14T00:15:18.000Z | src/flevent.cc | ComputerNerd/moonfltk | 6da77cacb0b158907c5cf9320b9d06ca44dd43c0 | [
"MIT"
] | 23 | 2018-03-21T13:19:32.000Z | 2022-02-15T12:09:23.000Z | src/flevent.cc | ComputerNerd/moonfltk | 6da77cacb0b158907c5cf9320b9d06ca44dd43c0 | [
"MIT"
] | 9 | 2016-06-23T11:44:29.000Z | 2022-02-05T09:08:49.000Z | /* The MIT License (MIT)
*
* Copyright (c) 2016 Stefano Trettel
*
* Software repository: MoonFLTK, https://github.com/stetre/moonfltk
*
* 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... | 27.335878 | 82 | 0.577213 | ComputerNerd |
1a103e9e3241b455e7d47b41619b73db878694f5 | 10,516 | cpp | C++ | src/engine/World.cpp | vaeinoe/lvs | 9d37b8f1008012f5fe616d0ef5be124142a6e178 | [
"Unlicense"
] | null | null | null | src/engine/World.cpp | vaeinoe/lvs | 9d37b8f1008012f5fe616d0ef5be124142a6e178 | [
"Unlicense"
] | null | null | null | src/engine/World.cpp | vaeinoe/lvs | 9d37b8f1008012f5fe616d0ef5be124142a6e178 | [
"Unlicense"
] | null | null | null | /*
* World.cpp
* Leavs
*
* Created by Väinö Ala-Härkönen on 10/27/12.
* Copyright 2012 Lumeet. All rights reserved.
*
*/
#include "World.h"
#include "Tile.h"
#include "LVSEngine.h"
#include "TileLevel.h"
using namespace ci;
void World::setup( Configuration *config, const Vec2i newSize )
{
rnd.seed(tim... | 27.60105 | 149 | 0.52073 | vaeinoe |
1a121ab5d7faeae9a52642f84fafc8afbf700e98 | 1,626 | cc | C++ | interview/slice_window.cc | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | interview/slice_window.cc | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | interview/slice_window.cc | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include <set>
using namespace std;
/*
* 给定一个数组array,给定一个正整数w
* 假设数组的大小大于w
* 输出数组中所有连续w个数的最大值和最小值的差的最大的绝对值。
* 也就是,对于连续的w个数,其中有最大值和最小值,计算最大值和最小值的差的绝对值,
* 需要输出所有连续w个数的最大的绝对值。
*
* 举例
* 数组 1 4 3 4 2 6
* w = 3
*
* 总共有四组连续的3个数
* 1 4 3
* 4 3 4
* 3 4 2
* 4 2 6
* 每组中的最大值和最... | 16.762887 | 84 | 0.528905 | sczzq |
1a12e2fea02ae0855fbe1ff6e52a5e9fb1f7dab8 | 9,244 | cpp | C++ | oneflow/core/framework/tensor_pool.cpp | shihan-ma/oneflow | 1705ec0859aefb4ff07a29ae4255fab70c67464b | [
"Apache-2.0"
] | null | null | null | oneflow/core/framework/tensor_pool.cpp | shihan-ma/oneflow | 1705ec0859aefb4ff07a29ae4255fab70c67464b | [
"Apache-2.0"
] | null | null | null | oneflow/core/framework/tensor_pool.cpp | shihan-ma/oneflow | 1705ec0859aefb4ff07a29ae4255fab70c67464b | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | 35.282443 | 113 | 0.625054 | shihan-ma |
1a135edc31e2f9ca47c8e5438f74ddb832858a50 | 7,057 | cpp | C++ | example/ccana/source/pyfunc.cpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | example/ccana/source/pyfunc.cpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | example/ccana/source/pyfunc.cpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | /**
@file pyfunc.cpp
@date 2020/05/06
@author goroyabu
@detail Automatically generated by make_anlpy_project.sh 1.0.0
**/
#include "ProjectCone3D.hpp"
#include "IterateCone3D.hpp"
#include "Extract2Photon.hpp"
#include "Project2Photon3D.hpp"
#include "Iterate2Photon3D.hpp"
#include "PETimager.hpp"
#i... | 48.668966 | 83 | 0.738841 | goroyabu |
1a1f918e9d0f00e54705b9fdbb05cb24e0112a3b | 1,709 | cpp | C++ | lib/core/barf_filoc.cpp | vdods/barf | 5c943ddbd6a0a7624645158b0c85994431dde269 | [
"Apache-2.0"
] | 1 | 2021-01-16T00:55:45.000Z | 2021-01-16T00:55:45.000Z | lib/core/barf_filoc.cpp | vdods/barf | 5c943ddbd6a0a7624645158b0c85994431dde269 | [
"Apache-2.0"
] | null | null | null | lib/core/barf_filoc.cpp | vdods/barf | 5c943ddbd6a0a7624645158b0c85994431dde269 | [
"Apache-2.0"
] | null | null | null | // 2006.02.11 - Copyright Victor Dods - Licensed under Apache 2.0
#include "barf_filoc.hpp"
#include <sstream>
#include "barf_message.hpp"
#include "barf_path.hpp"
#include "barf_util.hpp"
namespace Barf {
FiLoc const FiLoc::ms_invalid;
string FiLoc::AsString () const
{
assert(this != &ms_invalid && "can't us... | 28.483333 | 203 | 0.65828 | vdods |
1a26c978aaeee71576e873ab6ff0e05ae1159aaa | 11,886 | cpp | C++ | sourcecode/client/nsclient/src/goproxy.cpp | nosngame/nosn | 76dc0525aa9a5baf6aca7d2c18c75b79a1d31e28 | [
"Unlicense"
] | 4 | 2019-12-04T13:06:52.000Z | 2021-09-24T04:45:53.000Z | sourcecode/client/nsclient/src/goproxy.cpp | nosngame/nosn | 76dc0525aa9a5baf6aca7d2c18c75b79a1d31e28 | [
"Unlicense"
] | null | null | null | sourcecode/client/nsclient/src/goproxy.cpp | nosngame/nosn | 76dc0525aa9a5baf6aca7d2c18c75b79a1d31e28 | [
"Unlicense"
] | null | null | null | #include "precomplie.h"
namespace NSProxy
{
CNSMap< int, CGoProxyObject* > gGoProxyObject;
CNSLuaStack& CNSGoProxy::marshal( CNSLuaStack& luaStack ) const
{
NSClient::gpLuaStack = &luaStack;
// key 为第一个对象的名称,value为数据代理
if ( NSClient::gGoLoadProc( mFileName.getBuffer( ), mParentID, mType ) == false )
NSExce... | 28.099291 | 197 | 0.692075 | nosngame |
1a2a1882902e20ae5b55c42b5824338bd5b618ef | 2,982 | cpp | C++ | zodiacgraph/edgegrouppair.cpp | IEEM-HsKA/Automotive-Security-Threat-Modelling-Tool | e3b2ea5a188b11aaa4bb329edcc0d3d1b47ae07b | [
"MIT"
] | 1 | 2021-12-08T13:27:22.000Z | 2021-12-08T13:27:22.000Z | zodiacgraph/edgegrouppair.cpp | IEEM-HsKA/Automotive-Security-Threat-Modelling-Tool | e3b2ea5a188b11aaa4bb329edcc0d3d1b47ae07b | [
"MIT"
] | null | null | null | zodiacgraph/edgegrouppair.cpp | IEEM-HsKA/Automotive-Security-Threat-Modelling-Tool | e3b2ea5a188b11aaa4bb329edcc0d3d1b47ae07b | [
"MIT"
] | null | null | null | #include "edgegrouppair.h"
#include <QGraphicsScene>
#include <QSet>
#include "edgegroup.h"
#include "labeltextfactory.h"
#include "node.h"
#include "plugedge.h"
#include "scene.h"
#include "straightdoubleedge.h"
namespace zodiac {
EdgeGroupPair::EdgeGroupPair(Scene *scene, Node *nodeA, Node *nodeB)
: EdgeGroup... | 30.428571 | 79 | 0.728706 | IEEM-HsKA |
1a2c186186b06f127a7c4507d7f6435f264df189 | 333 | cpp | C++ | definitions/patches/aspell/FreeBSD/patch-prog__checker_string.cpp | VerKnowSys/sofin-definitions | 9ca5a00fda2acd510e59d39b50bd74c930edcc26 | [
"BSD-2-Clause"
] | 1 | 2021-12-07T12:36:18.000Z | 2021-12-07T12:36:18.000Z | definitions/patches/aspell/FreeBSD/patch-prog__checker_string.cpp | VerKnowSys/sofin-definitions | 9ca5a00fda2acd510e59d39b50bd74c930edcc26 | [
"BSD-2-Clause"
] | 1 | 2019-01-10T15:36:52.000Z | 2019-01-10T15:36:53.000Z | definitions/patches/aspell/FreeBSD/patch-prog__checker_string.cpp | VerKnowSys/sofin-definitions | 9ca5a00fda2acd510e59d39b50bd74c930edcc26 | [
"BSD-2-Clause"
] | null | null | null | --- prog/checker_string.cpp.orig Thu Jul 17 19:39:02 2003
+++ prog/checker_string.cpp Thu Jul 17 19:39:09 2003
@@ -4,6 +4,7 @@
// license along with this library if you did not you can find
// it at http://www.gnu.org/.
+#include <assert.h>
#include "checker_string.hpp"
#include "speller.hpp"
#include "document_... | 30.272727 | 63 | 0.696697 | VerKnowSys |
1a2fc46c2a343865fa8a7168cc966fcfdd154606 | 5,917 | cpp | C++ | Project/zoolib/HTTP/Content.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | 13 | 2015-01-28T21:05:09.000Z | 2021-11-03T22:21:11.000Z | Project/zoolib/HTTP/Content.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | null | null | null | Project/zoolib/HTTP/Content.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | 4 | 2018-11-16T08:33:33.000Z | 2021-12-11T19:40:46.000Z | // Copyright (c) 2014 Andrew Green. MIT License. http://www.zoolib.org
#include "zoolib/HTTP/Content.h"
#include "zoolib/Chan_XX_Limited.h"
#include "zoolib/ChanW_Bin_More.h"
#include "zoolib/Memory.h"
#include "zoolib/MIME.h"
#include "zoolib/Util_Chan.h"
#include "zoolib/Util_string.h"
namespace ZooLib {
namespace... | 25.072034 | 100 | 0.63495 | ElectricMagic |
1a31771161fe8f3544d44b68218306582a1f152d | 352 | hpp | C++ | src/triangle.hpp | tsoding/ray-tracer | c8d189cc53445cae56bfb5e4f76926b93d0e67d5 | [
"MIT"
] | 16 | 2016-05-25T10:33:41.000Z | 2019-09-02T22:09:00.000Z | src/triangle.hpp | tsoding/ray-tracer | c8d189cc53445cae56bfb5e4f76926b93d0e67d5 | [
"MIT"
] | 67 | 2018-07-16T10:34:20.000Z | 2018-10-23T16:02:43.000Z | src/triangle.hpp | tsoding/ray-tracer | c8d189cc53445cae56bfb5e4f76926b93d0e67d5 | [
"MIT"
] | 5 | 2018-07-31T19:09:08.000Z | 2018-08-21T21:31:44.000Z | #ifndef TRIANGLE_HPP_
#define TRIANGLE_HPP_
#include "vec.hpp"
#include "wall.hpp"
// TODO(#65): support for triangle meshes from obj files
struct Triangle {
v3f v1, v2, v3;
};
plane plane_of_triangle(const Triangle &triangle);
bool ray_hits_triangle(const Triangle &triangle,
const v3f &... | 18.526316 | 56 | 0.693182 | tsoding |
1a33ad5d47add3d5ac5bafec0e805dc293c93e3c | 4,446 | cpp | C++ | Snake/server/src/Server.cpp | BMZE/RVR-FinalProject | c9ee0fc65f159c329f831ba16b2aec72bda2fc75 | [
"MIT"
] | null | null | null | Snake/server/src/Server.cpp | BMZE/RVR-FinalProject | c9ee0fc65f159c329f831ba16b2aec72bda2fc75 | [
"MIT"
] | null | null | null | Snake/server/src/Server.cpp | BMZE/RVR-FinalProject | c9ee0fc65f159c329f831ba16b2aec72bda2fc75 | [
"MIT"
] | null | null | null | #include "Server.h"
#include <string>
#include <unistd.h>
#include <string.h>
#include <iostream>
#include <pthread.h>
#include "Message.h"
#include "Socket.h"
#include "InputInfo.h"
#include "ServerGame.h"
#pragma region STATIC ATTRIBUTES
ServerGame* Server::_game = nullptr;
volatile bool Server::_inputRegistered ... | 27.7875 | 95 | 0.523842 | BMZE |
1a369174ac4ebb2de07ca544bc39389415e4b708 | 57 | cpp | C++ | frame.cpp | spiroyster/frend | 24012ca09df82fc3bb11e84dfa3526b6f3c3c251 | [
"BSD-2-Clause"
] | null | null | null | frame.cpp | spiroyster/frend | 24012ca09df82fc3bb11e84dfa3526b6f3c3c251 | [
"BSD-2-Clause"
] | null | null | null | frame.cpp | spiroyster/frend | 24012ca09df82fc3bb11e84dfa3526b6f3c3c251 | [
"BSD-2-Clause"
] | null | null | null | #include "frend.hpp"
namespace frend
{
} | 6.333333 | 21 | 0.508772 | spiroyster |
1a3888f4f6e76123a8e7d1a33c44460adb94630f | 2,929 | cpp | C++ | Chapter_1_Introduction/Adhoc_Problems/vjudge_UVA-10388_snap.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_1_Introduction/Adhoc_Problems/vjudge_UVA-10388_snap.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_1_Introduction/Adhoc_Problems/vjudge_UVA-10388_snap.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | // UVa 10388 Snap
// Use basic deque operations and the random() function to simulate a card game
// Annoying presentation errors from printing extra newline chars. Also remember to clean up data structures between test cases!
// Time: O(1) since limited by 1000 moves, Memory: O(N) where N is the number of cards in the... | 29 | 128 | 0.435302 | BrandonTang89 |
1a38ac714f0267e3740415ec76da25f163f7978e | 1,345 | cpp | C++ | cppcheck/data/c_files/398.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/398.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/398.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | bool SiteInstanceImpl::ShouldLockToOrigin(BrowserContext* browser_context,
GURL site_url) {
// Don't lock to origin in --single-process mode, since this mode puts
// cross-site pages into the same process.
if (RenderProcessHost::run_renderer_in_process())
return false;
if (!DoesSiteRequireDedicatedProcess(browser_cont... | 38.428571 | 76 | 0.769517 | awsm-research |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.