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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c59a143d474b814642af06cb557da68bea8c713f | 4,527 | hpp | C++ | src/Core/File/MaterialData.hpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Core/File/MaterialData.hpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Core/File/MaterialData.hpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | #ifndef RADIUMENGINE_MATERIALDATA_HPP
#define RADIUMENGINE_MATERIALDATA_HPP
#include <string>
#include <vector>
#include <Core/RaCore.hpp>
#include <Core/Math/LinearAlgebra.hpp>
#include <Core/Containers/VectorArray.hpp>
#include <Core/File/AssetData.hpp>
namespace Ra {
namespace Asset {
/** @br... | 37.725 | 132 | 0.577645 | nmellado |
c59e29df6ff5d1f24267438115da1ba507763afa | 18,701 | cpp | C++ | ManagedScripts/RenSharpPlayerObserverClass.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | ManagedScripts/RenSharpPlayerObserverClass.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | ManagedScripts/RenSharpPlayerObserverClass.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | /*
Copyright 2020 Neijwiert
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 writing, software
distr... | 24.287013 | 198 | 0.770494 | mpforums |
c5a0fd6478feaced0f3d533b13dab00ccebeb137 | 742 | cpp | C++ | module_04/ex01/Enemy.cpp | sqatim/Cplusplus_modules_42 | 73a113f3731a3eb63f2943c5c6c3d8c14214c7ea | [
"MIT"
] | null | null | null | module_04/ex01/Enemy.cpp | sqatim/Cplusplus_modules_42 | 73a113f3731a3eb63f2943c5c6c3d8c14214c7ea | [
"MIT"
] | null | null | null | module_04/ex01/Enemy.cpp | sqatim/Cplusplus_modules_42 | 73a113f3731a3eb63f2943c5c6c3d8c14214c7ea | [
"MIT"
] | null | null | null | #include "Enemy.hpp"
Enemy::Enemy()
{
return ;
}
Enemy::Enemy(int hp, std::string const& type) : m_hp(hp), m_type(type)
{
return ;
}
Enemy::Enemy(Enemy const& src)
{
*this = src;
return ;
}
Enemy& Enemy::operator=(Enemy const& src)
{
if(this != &src)
{
this->m_hp = src.m_hp;
... | 12.793103 | 70 | 0.539084 | sqatim |
c5a0fdeb7f527791e42801108537b20eaa28c553 | 3,979 | cpp | C++ | test/core/exmon.cpp | nbosb/vcml | 5b946a32b024cbba8da6928971ffc2a4f9b712f1 | [
"Apache-2.0"
] | 36 | 2018-01-29T12:20:37.000Z | 2022-03-29T06:14:59.000Z | test/core/exmon.cpp | nbosb/vcml | 5b946a32b024cbba8da6928971ffc2a4f9b712f1 | [
"Apache-2.0"
] | 9 | 2018-12-04T10:37:14.000Z | 2021-11-16T16:57:29.000Z | test/core/exmon.cpp | nbosb/vcml | 5b946a32b024cbba8da6928971ffc2a4f9b712f1 | [
"Apache-2.0"
] | 18 | 2018-10-14T11:30:43.000Z | 2022-01-08T07:12:56.000Z | /******************************************************************************
* *
* Copyright 2018 Jan Henrik Weinstock *
* *
... | 32.349593 | 80 | 0.542599 | nbosb |
c5a30dc1df5e10c19c24118db1ab3a3c9d4c0bf8 | 1,999 | cpp | C++ | Sources/Network/setupnetwork_win32.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 248 | 2015-01-08T05:21:40.000Z | 2022-03-20T02:59:16.000Z | Sources/Network/setupnetwork_win32.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 39 | 2015-01-14T17:37:07.000Z | 2022-03-17T12:59:26.000Z | Sources/Network/setupnetwork_win32.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 82 | 2015-01-11T13:23:49.000Z | 2022-02-19T03:17:24.000Z | /*
** ClanLib SDK
** Copyright (c) 1997-2020 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... | 27.383562 | 78 | 0.726363 | xctan |
c5a4d7e70e3680417c3dde04cf982a9d5c44a778 | 8,655 | cpp | C++ | src/operators/opSetIntersect.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | 4 | 2018-08-31T09:44:52.000Z | 2021-03-01T19:10:00.000Z | src/operators/opSetIntersect.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | 21 | 2019-12-29T08:33:34.000Z | 2020-11-22T16:38:37.000Z | src/operators/opSetIntersect.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | null | null | null | #include "operators/opSetIntersect.h"
#include <iostream>
#include <memory>
#include "operators/simpleOperator.hpp"
#include "types/intVal.h"
#include "types/set.h"
using namespace std;
static const char* NO_UNDEFINED_IN_SETINTERSECT =
"OpSetIntersect does not yet handle all the cases where sets become "
"undef... | 34.899194 | 80 | 0.582207 | athanor |
c5a5662dddc15dbf4bde5659f84b48ad0017cbea | 4,530 | hh | C++ | include/nauths/mml/shapes/rect.hh | nicuveo/MML | b877a65abb61ea2fe6d8407b50f44fd170fb748d | [
"MIT"
] | null | null | null | include/nauths/mml/shapes/rect.hh | nicuveo/MML | b877a65abb61ea2fe6d8407b50f44fd170fb748d | [
"MIT"
] | null | null | null | include/nauths/mml/shapes/rect.hh | nicuveo/MML | b877a65abb61ea2fe6d8407b50f44fd170fb748d | [
"MIT"
] | null | null | null | //
// Copyright Antoine Leblanc 2010 - 2015
// Distributed under the MIT license.
//
// http://nauths.fr
// http://github.com/nicuveo
// mailto://antoine.jp.leblanc@gmail.com
//
#ifndef MML_RECT_HH_
# define MML_RECT_HH_
//HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
// Includes
# include "... | 26.647059 | 105 | 0.669316 | nicuveo |
c5ab8ba22b7309171f40ff08b9160b2f27043bea | 448 | hpp | C++ | library/ATF/_race_battle_log_info.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_race_battle_log_info.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_race_battle_log_info.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct _race_battle_log_info
{
char byNth;
unsigned int dwEndTime;
char byWinRace;
char byLoseRace;
... | 23.578947 | 108 | 0.689732 | lemkova |
c5b2b9e5db4236b2923919d3d9dbe7d9f71438da | 52 | cpp | C++ | src/controller/messenger.cpp | sbehren/wecker | 3543571cb4b59101322b0c48a781249c75c26a8a | [
"MIT"
] | null | null | null | src/controller/messenger.cpp | sbehren/wecker | 3543571cb4b59101322b0c48a781249c75c26a8a | [
"MIT"
] | null | null | null | src/controller/messenger.cpp | sbehren/wecker | 3543571cb4b59101322b0c48a781249c75c26a8a | [
"MIT"
] | null | null | null | #include "messenger.hpp"
Messenger::Messenger() {}
| 13 | 25 | 0.711538 | sbehren |
c5b3883ba2f838df6b95bae7a0fd152ce4ac0935 | 837 | hpp | C++ | cc_include/ccx_parser.hpp | pit-ray/TxEditorCCTool | 903180082db5ddc80009608e46630f6cfc026eaf | [
"MIT"
] | null | null | null | cc_include/ccx_parser.hpp | pit-ray/TxEditorCCTool | 903180082db5ddc80009608e46630f6cfc026eaf | [
"MIT"
] | null | null | null | cc_include/ccx_parser.hpp | pit-ray/TxEditorCCTool | 903180082db5ddc80009608e46630f6cfc026eaf | [
"MIT"
] | null | null | null | #ifndef CCX_PARSER_HPP
#define CCX_PARSER_HPP
#include "constants.hpp"
#include <map>
#include <string>
class CCXParser
{
private:
static const std::map<std::string, CCItems> to_ccitems ;
static const std::map<CCOpts, std::string> to_ccopts ;
static const std::map<std::string, CCLangs> to_cclangs ;
s... | 28.862069 | 74 | 0.708483 | pit-ray |
c5b39c15426ef4d94d7aa9d7ca0f08caef889d3f | 510 | cpp | C++ | programs/args/src/main.cpp | osstudy/thor-os | 9b5793da647a27d7a6de2e48f6dd39dca0313d2b | [
"BSL-1.0"
] | null | null | null | programs/args/src/main.cpp | osstudy/thor-os | 9b5793da647a27d7a6de2e48f6dd39dca0313d2b | [
"BSL-1.0"
] | null | null | null | programs/args/src/main.cpp | osstudy/thor-os | 9b5793da647a27d7a6de2e48f6dd39dca0313d2b | [
"BSL-1.0"
] | 1 | 2020-02-04T16:36:51.000Z | 2020-02-04T16:36:51.000Z | //=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// 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)
//================================================... | 30 | 73 | 0.466667 | osstudy |
c5b42641c2ff70d44422e27ddfedce0e71c15c04 | 1,581 | cpp | C++ | Surfaces/MackieControl/MackieControlInformation.cpp | Schrankee/Cakewalk-Control-Surface-SDK | 7db5014645567142fc0c47c4f7cd47a4eb7315b3 | [
"MIT"
] | 36 | 2015-03-29T09:49:55.000Z | 2021-11-05T05:35:29.000Z | Surfaces/MackieControl/MackieControlInformation.cpp | Schrankee/Cakewalk-Control-Surface-SDK | 7db5014645567142fc0c47c4f7cd47a4eb7315b3 | [
"MIT"
] | 2 | 2020-06-04T14:07:30.000Z | 2020-09-15T06:39:10.000Z | Surfaces/MackieControl/MackieControlInformation.cpp | Schrankee/Cakewalk-Control-Surface-SDK | 7db5014645567142fc0c47c4f7cd47a4eb7315b3 | [
"MIT"
] | 17 | 2015-03-29T09:42:46.000Z | 2021-09-24T14:41:35.000Z | #include "stdafx.h"
#include "MackieControlInformation.h"
/////////////////////////////////////////////////////////////////////////////
CMackieControlInformation::CMackieControlInformation()
{
m_dwUniqueId = 0;
m_dwOffset = 0;
}
CMackieControlInformation::~CMackieControlInformation()
{
}
////////... | 24.703125 | 78 | 0.54902 | Schrankee |
c5b91b38784454a3f9fbf279899b2ebea0cc4298 | 25,374 | cpp | C++ | matter/wifi/wf200/host_if.cpp | mmarc/sdk_support | 744316bcf0525fd6e07ea86969dd907c2cb10e5f | [
"Zlib"
] | 12 | 2021-03-17T08:04:41.000Z | 2022-03-06T19:03:47.000Z | matter/wifi/wf200/host_if.cpp | mmarc/sdk_support | 744316bcf0525fd6e07ea86969dd907c2cb10e5f | [
"Zlib"
] | 7 | 2020-08-25T02:41:16.000Z | 2022-03-21T19:55:46.000Z | matter/wifi/wf200/host_if.cpp | mmarc/sdk_support | 744316bcf0525fd6e07ea86969dd907c2cb10e5f | [
"Zlib"
] | 14 | 2020-08-25T01:45:53.000Z | 2022-02-28T01:59:59.000Z | /*
*
* Copyright (c) 2021 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 33.65252 | 132 | 0.59825 | mmarc |
c5ba7bae33bda6ff0a7e68efbb5d9f8a69ba2493 | 7,298 | cpp | C++ | q10789.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | 1 | 2018-03-19T05:18:49.000Z | 2018-03-19T05:18:49.000Z | q10789.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | null | null | null | q10789.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | null | null | null | //q10789.cpp - 2011/11/21
//accepted at
//run time = 0.020
#include <stdio.h>
int prime[303];
int binarySearch(int search, int data[]){
int low = 0, high = 302, mid;
while(low <= high){
mid = (low + high)/2;
if(data[mid] == search)
return mid;
else if(search > data[mid])
low = mid + 1... | 19.255937 | 46 | 0.544259 | abraxaslee |
c5c7fafd5e4f1df60f6200dfc6e2d6ceb3b25bbb | 1,488 | hpp | C++ | StrSTUN-synthesizer/strstunlib0/include/SearcherSizeEnumeration.hpp | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | 1 | 2021-06-23T05:10:36.000Z | 2021-06-23T05:10:36.000Z | StrSTUN-synthesizer/strstunlib0/include/SearcherSizeEnumeration.hpp | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | null | null | null | StrSTUN-synthesizer/strstunlib0/include/SearcherSizeEnumeration.hpp | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | null | null | null | #ifndef SEARCHER_SIZE_ENUMERATION
#define SEARCHER_SIZE_ENUMERATION
#include "strstunbase.hpp"
#include "Program.hpp"
#include "componentbase.hpp"
#include<algorithm>
class SearcherSizeEnumeration : public ObjBase {
public:
SearcherSizeEnumeration(
ObjBase* environment,
std::vector<ComponentBase*... | 33.818182 | 122 | 0.710349 | HALOCORE |
c5c9247a4aaaf06d941a1b69e8782137d442f974 | 1,048 | cpp | C++ | examples/binary_heap.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | 4 | 2016-04-15T07:54:39.000Z | 2021-01-11T09:02:16.000Z | examples/binary_heap.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | examples/binary_heap.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
template <typename T>
inline void _swap(T& a, T& b) { T t = move(a); a = move(b); b = move(t); }
template <typename T, const int MAXSIZE = 200001>
struct heap {
int size;
T ARR[MAXSIZE];
bool empty() { return size <= 0; }
T top() { return ARR[1]; }
void push(T x) {
... | 19.773585 | 74 | 0.512405 | kbu1564 |
c5c9b0f93bfd1bf2aa3d9279e6fd40baf8980cd2 | 1,012 | cpp | C++ | Project/code/codeEmeteur/projetEmeteur.cpp | joabda/Robot | ce27e2e615cb87480c05f9e0ce32124648f9baff | [
"MIT"
] | 1 | 2020-01-26T15:36:07.000Z | 2020-01-26T15:36:07.000Z | Project/code/codeEmeteur/projetEmeteur.cpp | joabda/Robot | ce27e2e615cb87480c05f9e0ce32124648f9baff | [
"MIT"
] | null | null | null | Project/code/codeEmeteur/projetEmeteur.cpp | joabda/Robot | ce27e2e615cb87480c05f9e0ce32124648f9baff | [
"MIT"
] | null | null | null | /*
* Code du projet final du robot emmeteur
* de signaux infrarouge
*
* Ecole Polytechnique de Montreal
* Departement de genie informatique
* Cours INF1900
*
* Theo Quiquempoix, Philippe Babin, Joe Abdo et Mathurin Chritin
* 2019
*
* Code qui n'est sous aucune license.
*
*/
#include "communicati... | 24.095238 | 83 | 0.705534 | joabda |
c5ca54a25aeb8c3a80a894930a2a42a7f2c502f2 | 34,838 | cc | C++ | testing/ols_test.cc | shgalus/shg | 0318d0126cf12c3236183447d130969c468a02fa | [
"MIT"
] | 9 | 2015-05-21T04:14:50.000Z | 2021-05-31T17:15:15.000Z | testing/ols_test.cc | shgalus/shg | 0318d0126cf12c3236183447d130969c468a02fa | [
"MIT"
] | 1 | 2015-05-21T05:31:04.000Z | 2015-05-21T05:31:04.000Z | testing/ols_test.cc | shgalus/shg | 0318d0126cf12c3236183447d130969c468a02fa | [
"MIT"
] | 2 | 2015-05-21T04:14:44.000Z | 2020-08-18T12:35:22.000Z | #include <shg/ols.h>
#include <cstring>
#include <sstream>
#include "testing.h"
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 26444) // NO_UNNAMED_RAII_OBJECTS
#endif
namespace SHG::Testing {
BOOST_AUTO_TEST_SUITE(ols_test)
BOOST_AUTO_TEST_CASE(basic_test) {
for (int k = 0; k <= 10; k++) {
... | 39.14382 | 71 | 0.540703 | shgalus |
c5d66ede0224cb3ff5af1c84724a549fff804b2c | 69,776 | cpp | C++ | Tests/math/big_integer.test.cpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 28 | 2018-07-23T06:52:19.000Z | 2021-09-07T22:15:52.000Z | Tests/math/big_integer.test.cpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 17 | 2018-09-13T13:29:05.000Z | 2021-01-04T09:23:31.000Z | Tests/math/big_integer.test.cpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 4 | 2019-02-27T13:33:16.000Z | 2019-12-27T14:14:55.000Z | /*
The MIT License
Copyright (c) 2020 Geoffrey Daniels. http://gpdaniels.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... | 54.855346 | 173 | 0.760046 | gpdaniels |
c5dc1aeff46fe9c292441b35582385592e74ddc4 | 2,455 | cpp | C++ | behavioral/state/boost_msm.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | 2 | 2021-01-21T11:03:08.000Z | 2021-01-31T17:47:12.000Z | behavioral/state/boost_msm.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | null | null | null | behavioral/state/boost_msm.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | null | null | null | #include <boost/msm/back/state_machine.hpp>
#include <boost/msm/front/state_machine_def.hpp>
#include <boost/msm/front/functor_row.hpp>
#include <boost/msm/front/states.hpp>
#include <iostream>
#include <vector>
namespace msm = boost::msm;
namespace mpl = boost::mpl;
// Transitions
struct CallDialed {};
struct HungUp... | 25.572917 | 107 | 0.694094 | stefanpantic |
c5dd39ff161ee1d99d147dc7a83623529ef099ca | 20,777 | hpp | C++ | AbstractHardware/Registers/MDR1986VE4/mdrportcregisters.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | AbstractHardware/Registers/MDR1986VE4/mdrportcregisters.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | null | null | null | AbstractHardware/Registers/MDR1986VE4/mdrportcregisters.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | /*******************************************************************************
* Filename : mdrportcregisters.hpp
*
* Details : GPIO Port Control. This header file is auto-generated for
* MDR1986VE4 device.
*
*
*******************************************************************************/... | 79 | 117 | 0.772248 | snorkysnark |
c5e66e4e01edaaab2d3ebb86bcd8323d81dba008 | 3,439 | cc | C++ | test/gtest/ucs/test_instr.cc | mike-dubman/ucx | 70f1617bbf43bde993f6fb135c2b6694a888f2b5 | [
"BSD-3-Clause"
] | null | null | null | test/gtest/ucs/test_instr.cc | mike-dubman/ucx | 70f1617bbf43bde993f6fb135c2b6694a888f2b5 | [
"BSD-3-Clause"
] | null | null | null | test/gtest/ucs/test_instr.cc | mike-dubman/ucx | 70f1617bbf43bde993f6fb135c2b6694a888f2b5 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) Mellanox Technologies Ltd. 2001-2012. ALL RIGHTS RESERVED.
* Copyright (C) UT-Battelle, LLC. 2014. ALL RIGHTS RESERVED.
* $COPYRIGHT$
* $HEADER$
*/
#include <ucs/gtest/test.h>
extern "C" {
#include <ucs/sys/preprocessor.h>
#include <ucs/debug/debug.h>
#include <ucs/debug/instrument.h>
}
#include ... | 27.95935 | 106 | 0.68392 | mike-dubman |
c5ed55aa6d081ea0741585552b643e2a177c9f2d | 3,996 | cpp | C++ | ilwisscript/ast/astnode.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | ilwisscript/ast/astnode.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | ilwisscript/ast/astnode.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | #include "kernel.h"
#include "ilwisdata.h"
#include "errorobject.h"
#include "symboltable.h"
#include "mastercatalog.h"
#include "astnode.h"
using namespace Ilwis;
NodeValue::NodeValue() : _content(ctUNKNOW){
}
NodeValue::NodeValue(const QVariant& v, ContentType tp) : _content(tp) {
push_back(v);
if ( tp == ... | 20.284264 | 102 | 0.57958 | ridoo |
c5ef9d669925d641fb301a3c252a554e9a80ead3 | 2,711 | cpp | C++ | src/shared_library/tests/crypto/crypto_provider.cpp | snowmeltarcade/projectfarm | 6a35330f63bff06465c4ee1a0fbc5277c0d22982 | [
"MIT"
] | null | null | null | src/shared_library/tests/crypto/crypto_provider.cpp | snowmeltarcade/projectfarm | 6a35330f63bff06465c4ee1a0fbc5277c0d22982 | [
"MIT"
] | 7 | 2021-05-30T21:52:39.000Z | 2021-06-25T22:35:28.000Z | src/shared_library/tests/crypto/crypto_provider.cpp | snowmeltarcade/projectfarm | 6a35330f63bff06465c4ee1a0fbc5277c0d22982 | [
"MIT"
] | null | null | null | #include "catch2/catch.hpp"
#include "crypto/crypto_provider.h"
using namespace std::literals;
using namespace projectfarm::shared::crypto;
/*********************************************
* QuickHash
********************************************/
TEST_CASE("QuickHash - empty string - returns empty string", "[crypto]... | 20.537879 | 77 | 0.573958 | snowmeltarcade |
c5f4efc0e4a7d9d6fc09a15a509520b37203963d | 2,739 | cc | C++ | projects/extractMPISkeleton/src/Utils.cc | haiwangcat/ROSE | 75bf4106a5febe40269ea0361a024b7811668d45 | [
"BSD-3-Clause"
] | 4 | 2015-03-17T13:52:21.000Z | 2022-01-12T05:32:47.000Z | projects/extractMPISkeleton/src/Utils.cc | haiwangcat/ROSE | 75bf4106a5febe40269ea0361a024b7811668d45 | [
"BSD-3-Clause"
] | null | null | null | projects/extractMPISkeleton/src/Utils.cc | haiwangcat/ROSE | 75bf4106a5febe40269ea0361a024b7811668d45 | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:18:01.000Z | 2019-12-25T10:18:01.000Z | #include "rose.h"
#include "Utils.h"
using namespace SageBuilder;
using namespace SageInterface;
bool debug = false;
void showSrcLoc (SgNode *i) {
Sg_File_Info &fileInfo = *(i->get_file_info());
printf ("Query node = %p = %s in %s \n ----- at line %d on column %d \n",
i,i->sage_class_name(),fileInfo.ge... | 29.771739 | 77 | 0.595838 | haiwangcat |
c5f79c67048cb8ae10f7a412ca3d59fedffdcdba | 50 | hpp | C++ | src/boost_thread_poly_lockable_adapter.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_thread_poly_lockable_adapter.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_thread_poly_lockable_adapter.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/thread/poly_lockable_adapter.hpp>
| 25 | 49 | 0.84 | miathedev |
c5fd80c0b08bfd6bec6ff5ebde8cfc668ef9a4d3 | 1,164 | cpp | C++ | read_response_conf.cpp | nak4mura/boost_honeypot | 8c40f2aed8455687b3f90e96548212caf71c2249 | [
"BSD-3-Clause"
] | null | null | null | read_response_conf.cpp | nak4mura/boost_honeypot | 8c40f2aed8455687b3f90e96548212caf71c2249 | [
"BSD-3-Clause"
] | null | null | null | read_response_conf.cpp | nak4mura/boost_honeypot | 8c40f2aed8455687b3f90e96548212caf71c2249 | [
"BSD-3-Clause"
] | null | null | null | #include "all.hpp"
read_response_conf* read_response_conf::_read_response_conf = nullptr;
read_response_conf::read_response_conf()
{
boost::property_tree::ptree pt;
read_server_conf* server_conf = read_server_conf::getInstance();
std::string responsecodeconffile;
try {
responsecodeconffile = se... | 27.714286 | 101 | 0.689003 | nak4mura |
680157e704cf763b5b3d95ee96489c10ca628261 | 397 | cpp | C++ | LINKED-LIST/EASY/Reverse Linked List/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | 3 | 2021-08-31T11:02:28.000Z | 2022-01-17T08:07:00.000Z | LINKED-LIST/EASY/Reverse Linked List/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | null | null | null | LINKED-LIST/EASY/Reverse Linked List/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | null | null | null | /*
PROBLEM LINK:- https://leetcode.com/problems/reverse-linked-list/
*/
class Solution {
public:
ListNode* reverseList(ListNode* head) {
if(head == NULL || head -> next == NULL)
return head;
ListNode *ans = reverseList(head -> next);
ListNode *tail = head -> next;
ta... | 23.352941 | 65 | 0.546599 | HassanRahim26 |
68024a358b817d352055c51562bb27011032b693 | 1,990 | hh | C++ | src/faodel-common/MutexWrapper.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | src/faodel-common/MutexWrapper.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | src/faodel-common/MutexWrapper.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#ifndef FAODEL_COMMON_MUTEXWRAPPER_HH
#define FAODEL_COMMON_MUTEXWRAPPER_HH
#include <string>
// MutexWrapper :... | 33.166667 | 107 | 0.728141 | faodel |
680aba673304142308d102ea59c0d5f0576fc6f1 | 1,773 | hpp | C++ | framework/calibration/nearest_neighbour_search.hpp | steppobeck/rgbd-recon | 171a8336c8e3ba52a1b187b73544338fdd3c9285 | [
"MIT"
] | 18 | 2016-09-03T05:12:25.000Z | 2022-02-23T15:52:33.000Z | framework/calibration/nearest_neighbour_search.hpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 1 | 2016-05-04T09:06:29.000Z | 2016-05-04T09:06:29.000Z | framework/calibration/nearest_neighbour_search.hpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 7 | 2016-04-20T13:58:50.000Z | 2018-07-09T15:47:26.000Z | #ifndef KINECT_NEAREST_NEIGHBOUR_SEARCH_HPP
#define KINECT_NEAREST_NEIGHBOUR_SEARCH_HPP
#include <DataTypes.h>
#include <glm/gtc/type_precision.hpp>
#include <vector>
#include <memory>
#include <utility>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Search_traits_3.h>
#include <CGAL/... | 31.105263 | 91 | 0.712352 | steppobeck |
6813c87460c9615865b6e539bb0768034ee7588d | 1,134 | hh | C++ | coding/PC/OO_PC/Condition.hh | snow-tyan/learn-cpp | ecab0fae7999005ed7fdb60ff4954b4014b2c2e6 | [
"MulanPSL-1.0"
] | null | null | null | coding/PC/OO_PC/Condition.hh | snow-tyan/learn-cpp | ecab0fae7999005ed7fdb60ff4954b4014b2c2e6 | [
"MulanPSL-1.0"
] | null | null | null | coding/PC/OO_PC/Condition.hh | snow-tyan/learn-cpp | ecab0fae7999005ed7fdb60ff4954b4014b2c2e6 | [
"MulanPSL-1.0"
] | null | null | null | #pragma once
#include "NonCopyable.hh"
#include "MutexLock.hh"
namespace wd
{
class Condition
: public Noncopyable
{
public:
Condition(MutexLock &mutex)
: _mutex(mutex)
{
if (pthread_cond_init(&_cond, nullptr))
{
perror("pthread_c... | 20.618182 | 64 | 0.446208 | snow-tyan |
68155cf069f350f4726d35253bcbdb03c4a6cf7c | 28,592 | cpp | C++ | pineapple/test/LYPineappleGame_2p_with_ghost_tests.cpp | caiqingfeng/libpoker | a2c60884fc5c8e31455fb39e432c49e0df55956b | [
"Apache-2.0"
] | 1 | 2021-04-20T06:22:30.000Z | 2021-04-20T06:22:30.000Z | pineapple/test/LYPineappleGame_2p_with_ghost_tests.cpp | caiqingfeng/libpoker | a2c60884fc5c8e31455fb39e432c49e0df55956b | [
"Apache-2.0"
] | null | null | null | pineapple/test/LYPineappleGame_2p_with_ghost_tests.cpp | caiqingfeng/libpoker | a2c60884fc5c8e31455fb39e432c49e0df55956b | [
"Apache-2.0"
] | 2 | 2020-10-29T08:21:22.000Z | 2020-12-02T06:40:18.000Z | /*
* LYPineappleGame_2p_with_ghost_tests.cpp
*
* Created on: 2014-9-25
* Author: caiqingfeng
*/
#include <gtest/gtest.h>
#include "src/LYPineappleGame.h"
//#include "common/src/my_log.h"
#include "poker/src/LYDeck.h"
#include "Fixture2p.h"
#include <iostream>
#include "src/LYPineappleAlgorithmDelegate.h"
#... | 41.139568 | 98 | 0.719572 | caiqingfeng |
681852eea3da9723d84425eda2022d8bf5ad2d6b | 7,118 | hpp | C++ | samples/threat_level/src/PhysicsObject.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | samples/threat_level/src/PhysicsObject.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | samples/threat_level/src/PhysicsObject.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017 - 2020
http://trederia.blogspot.com
crogine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the use of this ... | 33.41784 | 94 | 0.625457 | fallahn |
6818a2e581129e282a0b7043cbc6d25f2813165d | 492 | hpp | C++ | Source/Core/Vulkan/VulkanBufferView.hpp | glowing-chemist/Bell | 0cf4d0ac925940869077779700c1d3bd45ff841f | [
"MIT"
] | 14 | 2020-02-12T19:13:46.000Z | 2022-03-05T02:26:06.000Z | Source/Core/Vulkan/VulkanBufferView.hpp | glowing-chemist/Bell | 0cf4d0ac925940869077779700c1d3bd45ff841f | [
"MIT"
] | 5 | 2020-08-06T07:19:47.000Z | 2021-01-05T21:20:51.000Z | Source/Core/Vulkan/VulkanBufferView.hpp | glowing-chemist/Bell | 0cf4d0ac925940869077779700c1d3bd45ff841f | [
"MIT"
] | 2 | 2021-09-18T13:36:47.000Z | 2021-12-04T15:08:53.000Z | #ifndef VK_BUFFER_VIEW_HPP
#define VK_BUFFER_VIEW_HPP
#include "Core/BufferView.hpp"
#include "Core/Buffer.hpp"
#include "MemoryManager.hpp"
#include <vulkan/vulkan.hpp>
class VulkanBufferView : public BufferViewBase
{
public:
VulkanBufferView(Buffer&, const uint64_t offset = 0, const uint64_t size = VK_WHOLE_SIZ... | 16.965517 | 91 | 0.764228 | glowing-chemist |
681ca96d7d2973fb3e8880b52532ef175841f03b | 1,350 | hpp | C++ | Terra/file/ProjectObjectTable.hpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 68 | 2019-01-27T08:59:23.000Z | 2022-03-30T02:29:02.000Z | Terra/file/ProjectObjectTable.hpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 11 | 2019-03-18T17:21:53.000Z | 2019-07-07T05:28:55.000Z | Terra/file/ProjectObjectTable.hpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 8 | 2019-03-20T07:54:29.000Z | 2021-07-14T01:45:59.000Z | #pragma once
#include <unordered_map>
#include "../project/GraphProcessor.hpp"
#include "../misc/SingleInstance.hpp"
NS_HWM_BEGIN
template<class T>
class ObjectTable
{
public:
using id_type = UInt64;
//! register an object with the key id.
/*! @return true if registered, false if not because alread... | 19.565217 | 76 | 0.561481 | leeairw |
6820003baa3b8567ed62d0baf0c948ec67bfd4c4 | 6,829 | cpp | C++ | src/Draw.cpp | arslansadiq/KinectShape | 5e5f0c544fd6fc57c05b305f90d5bcc5903bd1d0 | [
"MIT"
] | 71 | 2015-03-05T16:59:00.000Z | 2021-12-07T08:42:16.000Z | src/Draw.cpp | coolvision/KinectShape | 5e5f0c544fd6fc57c05b305f90d5bcc5903bd1d0 | [
"MIT"
] | null | null | null | src/Draw.cpp | coolvision/KinectShape | 5e5f0c544fd6fc57c05b305f90d5bcc5903bd1d0 | [
"MIT"
] | 30 | 2015-02-05T16:31:02.000Z | 2020-12-28T05:41:33.000Z | /*
* Draw.cpp
*
* Created on: 2012
* Author: sk
*/
#include "ShapeApp.h"
#include <iostream>
// used for current surface estimate at tracking
// and for surface preview
void ShapeApp::rayMarch(Frame *f, ofMatrix4x4 *t) {
copyToDevice(camera_opt.t, t->getPtr(), sizeof(float) * 16);
rayMarchCUDA(camera_o... | 24.65343 | 79 | 0.657637 | arslansadiq |
68222e96b5ad4ef6e596053f99d8953ef1e6cf1e | 3,301 | cpp | C++ | Prim_to_BuildRoads.cpp | DeeptanshuM/Algorithms | 48f91e952b71370127db33fa42d642062690f9d9 | [
"MIT"
] | null | null | null | Prim_to_BuildRoads.cpp | DeeptanshuM/Algorithms | 48f91e952b71370127db33fa42d642062690f9d9 | [
"MIT"
] | null | null | null | Prim_to_BuildRoads.cpp | DeeptanshuM/Algorithms | 48f91e952b71370127db33fa42d642062690f9d9 | [
"MIT"
] | null | null | null | /*
Implemented Prim's algorithm, as explained in CLRS, to solve the problem of connecting
all cities on a map by building roads connecting them all such that the distance between
any two cities and the total length of the road network are optimized.
The cities are input as conventional cartesian coordinates on ... | 24.634328 | 102 | 0.616783 | DeeptanshuM |
682434ebc78e2bd9503256a1a961cf449f454b0f | 10,476 | cpp | C++ | src/gpu/render_graph/graph_frontend.cpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | 29 | 2021-11-19T11:28:22.000Z | 2022-03-29T00:26:51.000Z | src/gpu/render_graph/graph_frontend.cpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | null | null | null | src/gpu/render_graph/graph_frontend.cpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | 1 | 2022-03-05T08:14:40.000Z | 2022-03-05T08:14:40.000Z | #include "render_graph/frontend/render_graph.hpp"
#include "../cgpu/common/common_utils.h"
#include <EASTL/vector_map.h>
#include "tracy/Tracy.hpp"
namespace skr
{
namespace render_graph
{
RenderGraph::RenderGraph(const RenderGraphBuilder& builder) SKR_NOEXCEPT
: aliasing_enabled(builder.memory_aliasing)
{
}
con... | 36.249135 | 120 | 0.609775 | SakuraEngine |
6828fc96524821e711b28ecc1688b8333f3e13d9 | 703 | cpp | C++ | src/modules/filter/test/test_sobel.cpp | mangosroom/mvk-nodes | 0ec3a7853e949d192ee54daeaf25875cd3cb6d18 | [
"Apache-2.0"
] | 5 | 2021-12-24T10:18:46.000Z | 2022-03-15T14:11:04.000Z | src/modules/filter/test/test_sobel.cpp | mangosroom/mvk-nodes | 0ec3a7853e949d192ee54daeaf25875cd3cb6d18 | [
"Apache-2.0"
] | null | null | null | src/modules/filter/test/test_sobel.cpp | mangosroom/mvk-nodes | 0ec3a7853e949d192ee54daeaf25875cd3cb6d18 | [
"Apache-2.0"
] | null | null | null | /**
* @file test_sobel.cpp
* @author mango (2321544362@qq.com)
* @brief
* @version 0.1
* @date 2022-04-16
*
* @copyright Copyright (c) 2022
*
*/
#define CATCH_CONFIG_MAIN
#include "catch2/catch_test_macros.hpp"
#include "filter/sobel.hpp"
using namespace mvk;
TEST_CASE("test mvk-filter sobel", "[mvk-fil... | 22.677419 | 118 | 0.650071 | mangosroom |
682916e1297847b35f03f7962e08f4036fc99086 | 4,588 | cpp | C++ | DesignPatern/src/Behavioral/Strategy/robot.cpp | behnamasadi/design_pattern | 461d5bf75f5528ef9f01102299c0387b623d0d7c | [
"BSD-3-Clause"
] | 3 | 2019-07-20T06:22:32.000Z | 2020-05-31T07:49:06.000Z | DesignPatern/src/Behavioral/Strategy/robot.cpp | behnamasadi/design_pattern | 461d5bf75f5528ef9f01102299c0387b623d0d7c | [
"BSD-3-Clause"
] | null | null | null | DesignPatern/src/Behavioral/Strategy/robot.cpp | behnamasadi/design_pattern | 461d5bf75f5528ef9f01102299c0387b623d0d7c | [
"BSD-3-Clause"
] | 1 | 2020-05-31T02:00:08.000Z | 2020-05-31T02:00:08.000Z | //https://www.youtube.com/watch?v=ANXPjR5lKTE
#include <iostream>
#include <functional>
namespace before
{
class robot
{
public:
virtual void search()=0;
virtual void attack()=0;
virtual void defend()=0;
virtual ~robot()=default;
};
class linear : public robot
{
public:
void search()
{
... | 15.042623 | 112 | 0.568003 | behnamasadi |
68292df6ca422cb1b64b414e6f0dc959a1b2cc48 | 361 | cpp | C++ | src/construct/decimal_type.cpp | ionlang/ir-c | f5be3d0a6bed76b3fe354018045b82ded7d792ae | [
"Unlicense"
] | 3 | 2019-07-11T14:41:28.000Z | 2019-07-12T10:29:08.000Z | src/construct/decimal_type.cpp | ionlang/ir-c | f5be3d0a6bed76b3fe354018045b82ded7d792ae | [
"Unlicense"
] | 22 | 2019-12-05T04:43:34.000Z | 2020-11-05T23:29:25.000Z | src/construct/decimal_type.cpp | ionlang/ir-c | f5be3d0a6bed76b3fe354018045b82ded7d792ae | [
"Unlicense"
] | 3 | 2020-07-20T19:20:26.000Z | 2020-10-12T15:24:47.000Z | #include <ionir/passes/pass.h>
namespace ionir {
TypeDecimal::TypeDecimal(DecimalKind kind, bool isSigned) noexcept :
Type(TypeKind::Decimal, util::resolveDecimalKindName(kind)),
decimalKind(kind),
isSigned(isSigned) {
//
}
void TypeDecimal::accept(Pass& pass) {
return pass.visitDecimalType(... | 24.066667 | 70 | 0.706371 | ionlang |
682a79186475d1b05b22319ba0a296345adb235a | 316 | cpp | C++ | Run/Log.cpp | RuGrif/onion2 | b20d966de6a9ddeee0b66478d50725d1eaaad4c8 | [
"MIT"
] | null | null | null | Run/Log.cpp | RuGrif/onion2 | b20d966de6a9ddeee0b66478d50725d1eaaad4c8 | [
"MIT"
] | null | null | null | Run/Log.cpp | RuGrif/onion2 | b20d966de6a9ddeee0b66478d50725d1eaaad4c8 | [
"MIT"
] | null | null | null | #include "Log.h"
#include <iostream>
void Run_NS::TimeLog::log()
{
std::chrono::time_point<std::chrono::high_resolution_clock> t1 = std::chrono::high_resolution_clock::now();
std::cout << "Time = " << std::chrono::duration_cast<std::chrono::milliseconds>( t1 - t0 ).count() << " ms" << std::endl;
t0 = t1;
}
| 28.727273 | 123 | 0.651899 | RuGrif |
6833957154ac4ed59f44834461511410fa8f9e8d | 4,112 | cpp | C++ | test/unit_test/archive_test.cpp | jjsisjjz/klib | 29348e6fc03c6c5b84e4d5b8da8236ba74f02df8 | [
"MIT"
] | null | null | null | test/unit_test/archive_test.cpp | jjsisjjz/klib | 29348e6fc03c6c5b84e4d5b8da8236ba74f02df8 | [
"MIT"
] | null | null | null | test/unit_test/archive_test.cpp | jjsisjjz/klib | 29348e6fc03c6c5b84e4d5b8da8236ba74f02df8 | [
"MIT"
] | 1 | 2021-11-06T14:21:39.000Z | 2021-11-06T14:21:39.000Z | #include <filesystem>
#include <string>
#include <vector>
#include <catch2/catch.hpp>
#include "klib/archive.h"
#include "klib/util.h"
TEST_CASE("Compress and decompress using the zip algorithm", "[archive]") {
REQUIRE(std::filesystem::is_directory("madler-zlib-7085a61"));
REQUIRE(klib::folder_size("madler-zlib-... | 39.538462 | 80 | 0.695525 | jjsisjjz |
683719925c4c117084c5c484bd6e1e993136acf3 | 15,058 | cpp | C++ | src/RecordAndPlayFileMain.cpp | RossBencina/RealTimeFileStreaming | 6f706674e85db23cc9aa2f9e29e6c808084b9f02 | [
"MIT"
] | 34 | 2015-02-09T16:56:44.000Z | 2021-08-29T21:02:16.000Z | src/RecordAndPlayFileMain.cpp | denisfitz57/RealTimeFileStreaming | 0cfbc877de00801591e8a6e0afa51cefa97a6b9a | [
"MIT"
] | 1 | 2021-08-31T19:01:37.000Z | 2021-08-31T19:01:37.000Z | src/RecordAndPlayFileMain.cpp | denisfitz57/RealTimeFileStreaming | 0cfbc877de00801591e8a6e0afa51cefa97a6b9a | [
"MIT"
] | 5 | 2015-09-18T03:31:15.000Z | 2020-12-15T21:40:37.000Z | /*
Real Time File Streaming copyright (c) 2014 Ross Bencina
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use,... | 36.816626 | 155 | 0.642848 | RossBencina |
683d8dff9d4d4720daa530c115e88ba8b28af15c | 1,158 | hpp | C++ | src/P2_P1.d/dij.hpp | naruto2/CodeFEM | eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90 | [
"MIT"
] | 1 | 2020-09-27T07:28:04.000Z | 2020-09-27T07:28:04.000Z | src/navierstokes.d/dij.hpp | naruto2/CodeFEM | eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90 | [
"MIT"
] | null | null | null | src/navierstokes.d/dij.hpp | naruto2/CodeFEM | eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90 | [
"MIT"
] | null | null | null | static double dij(long i, long j)
{
return (1.0/12.0) * ( 12.0 *(alphaB(i)*alphaB(j) + alphaC(i)*alphaC(j))
+ 4.0 *(alphaB(i)* betaB(j) + betaB(i)*alphaB(j) + alphaB(i)*gammaB(j) + gammaB(i)*alphaB(j))
+ 4.0 *(alphaC(i)* betaC(j) + betaC(i)*alphaC(j) + alphaC(i)*... | 44.538462 | 123 | 0.509499 | naruto2 |
683d95d0f244a4533c566f1d223aee8ff20a6fc9 | 1,922 | cxx | C++ | plugins/cg_fltk/fltk_trigger_server.cxx | IXDdev/IXD_engine | 497c1fee90e486c19debc5347b740b56b1fef416 | [
"BSD-3-Clause"
] | 1 | 2020-07-26T10:54:41.000Z | 2020-07-26T10:54:41.000Z | plugins/cg_fltk/fltk_trigger_server.cxx | IXDdev/IXD_engine | 497c1fee90e486c19debc5347b740b56b1fef416 | [
"BSD-3-Clause"
] | null | null | null | plugins/cg_fltk/fltk_trigger_server.cxx | IXDdev/IXD_engine | 497c1fee90e486c19debc5347b740b56b1fef416 | [
"BSD-3-Clause"
] | null | null | null | #include "fltk_trigger_server.h"
#include <fltk/run.h>
#include <map>
std::map<void*,double> time_of_schedule;
void timeout_handler(void* _trig)
{
cgv::gui::trigger* trig = (cgv::gui::trigger*) _trig;
double t = fltk::get_time_secs();
std::map<void*,double>::iterator i = time_of_schedule.find(_trig);
if (i == ti... | 25.289474 | 89 | 0.724766 | IXDdev |
684260f48b52653417e857d1f5fbc55ab86c2c7d | 262 | cpp | C++ | Chapter_04/Source/Chapter_04/Chapter_04GameModeBase.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | 1 | 2020-10-26T10:11:26.000Z | 2020-10-26T10:11:26.000Z | Chapter_04/Source/Chapter_04/Chapter_04GameModeBase.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | null | null | null | Chapter_04/Source/Chapter_04/Chapter_04GameModeBase.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | 1 | 2020-10-26T10:11:36.000Z | 2020-10-26T10:11:36.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "Chapter_04GameModeBase.h"
#include "InventoryCharacter.h"
AChapter_04GameModeBase::AChapter_04GameModeBase()
{
DefaultPawnClass = AInventoryCharacter::StaticClass();
} | 29.111111 | 78 | 0.805344 | CoolHandNick80 |
969b83bd8c92dfe59ac06ff4394a6ead32fbb15a | 74 | cpp | C++ | Hercules0.1/vendor/stbi/stbi_image.cpp | CletusG/Hercules-Engine | d2e2e5a04b5149fd7779f7a1598070593fcc574d | [
"Apache-2.0"
] | null | null | null | Hercules0.1/vendor/stbi/stbi_image.cpp | CletusG/Hercules-Engine | d2e2e5a04b5149fd7779f7a1598070593fcc574d | [
"Apache-2.0"
] | null | null | null | Hercules0.1/vendor/stbi/stbi_image.cpp | CletusG/Hercules-Engine | d2e2e5a04b5149fd7779f7a1598070593fcc574d | [
"Apache-2.0"
] | null | null | null | #include "hcpch.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" | 24.666667 | 32 | 0.810811 | CletusG |
969d815229ffbb361833c151099aa0de26210897 | 18,207 | cpp | C++ | SimSpark/spark/plugin/objimporter/objimporter.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/spark/plugin/objimporter/objimporter.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/spark/plugin/objimporter/objimporter.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
this file is part of rcssserver3D
Fri May 9 2003
Copyright (C) 2002,2003 Koblenz University
Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
This program is free software; you can redistribute it and/or modify
it under the t... | 33.407339 | 113 | 0.45834 | IllyasvielEin |
96a3ddcf7c8a63690506fb8886125ddd57b2cdc5 | 1,552 | cpp | C++ | src/qsort.cpp | Algorithms-and-Data-Structures-2021/semester-work-merge-and-counting-sort | b584244baeb44bb3b6099caeedce2b608d241991 | [
"MIT"
] | null | null | null | src/qsort.cpp | Algorithms-and-Data-Structures-2021/semester-work-merge-and-counting-sort | b584244baeb44bb3b6099caeedce2b608d241991 | [
"MIT"
] | null | null | null | src/qsort.cpp | Algorithms-and-Data-Structures-2021/semester-work-merge-and-counting-sort | b584244baeb44bb3b6099caeedce2b608d241991 | [
"MIT"
] | null | null | null | #include "qsort.hpp"
#include <vector>
namespace itis {
using namespace std;
// Вычсление опорного элемента (pivot) через медиану, первого, среднего и последнего элементов.
int calculationPivot(int low, int mid, int high) {
int tmp;
if (mid < low) {
tmp = low;
low = mid;
mid = tmp;
... | 22.492754 | 99 | 0.533505 | Algorithms-and-Data-Structures-2021 |
96a40c642289c946465c81bcafb9c7060de0ace4 | 435 | cpp | C++ | src/worker/deprecated/poc_conformations.cpp | chemspacelab/clockwork | 0956d8d29417a974809166857de9a978d7fac677 | [
"MIT"
] | null | null | null | src/worker/deprecated/poc_conformations.cpp | chemspacelab/clockwork | 0956d8d29417a974809166857de9a978d7fac677 | [
"MIT"
] | 21 | 2019-01-04T10:55:39.000Z | 2019-09-23T11:02:59.000Z | src/worker/deprecated/poc_conformations.cpp | chemspacelab/clockwork | 0956d8d29417a974809166857de9a978d7fac677 | [
"MIT"
] | 1 | 2019-02-23T15:15:00.000Z | 2019-02-23T15:15:00.000Z |
#include <iostream>
#include <fstream>
#include <cmath>
#include <omp.h>
#include <openbabel/mol.h>
#include <openbabel/forcefield.h>
#include <openbabel/obconversion.h>
#include "io.cpp"
#include "kabsch.h"
#include "molecule.cpp"
int main(int argc,char **argv)
{
Archive archive;
archive.read_archive("../../fixtu... | 17.4 | 55 | 0.714943 | chemspacelab |
96aa41b630c6ba08965ff9288f3839d4f51bc57b | 396 | cpp | C++ | DerydocaEngine/src/TypeNameLookup.cpp | Derydoca/derydocaengine | a9cdb71082fbb879d9448dc0c1a95581681d61f1 | [
"BSD-3-Clause"
] | 37 | 2018-05-21T15:21:26.000Z | 2020-11-16T17:50:44.000Z | DerydocaEngine/src/TypeNameLookup.cpp | Derydoca/derydocaengine | a9cdb71082fbb879d9448dc0c1a95581681d61f1 | [
"BSD-3-Clause"
] | 38 | 2018-03-09T23:57:07.000Z | 2020-07-10T20:52:42.000Z | DerydocaEngine/src/TypeNameLookup.cpp | Derydoca/derydocaengine | a9cdb71082fbb879d9448dc0c1a95581681d61f1 | [
"BSD-3-Clause"
] | 5 | 2018-08-28T11:12:18.000Z | 2019-09-05T09:30:41.000Z | #include "EnginePch.h"
#include "TypeNameLookup.h"
namespace DerydocaEngine
{
TypeNameLookup::TypeNameLookup() :
m_nameLookup()
{
}
TypeNameLookup::~TypeNameLookup()
{
}
std::string TypeNameLookup::get(std::shared_ptr<Object> object)
{
unsigned long typeId = object->getTypeId();
auto it = m_nameLookup... | 16.5 | 64 | 0.689394 | Derydoca |
96ac110b6941c478cd0f503523bfe148f99d1161 | 3,171 | cpp | C++ | src/sibling_population.cpp | ou-real/nevil-sibling | d25189ff52bc41a05e0edc6b12178db4b195af8a | [
"MIT"
] | null | null | null | src/sibling_population.cpp | ou-real/nevil-sibling | d25189ff52bc41a05e0edc6b12178db4b195af8a | [
"MIT"
] | null | null | null | src/sibling_population.cpp | ou-real/nevil-sibling | d25189ff52bc41a05e0edc6b12178db4b195af8a | [
"MIT"
] | null | null | null | #include "nevil/sibling_population.hpp"
nevil::sibling_population::sibling_population() {}
nevil::sibling_population::sibling_population(size_t pop_size, bool sibling_neurons, float bracket_ratio, float mutation_rate)
: _population_size(pop_size)
, _bracket_size(int(bracket_ratio * pop_size))
, _mutation_rate(m... | 34.096774 | 152 | 0.749921 | ou-real |
96b3e66cfdf4afa3f245e27e434f6eaf8c916b09 | 37,959 | cpp | C++ | samples/denoiser/denoiser_main.cpp | shocker-0x15/OptiX_Utility | f3719a7151d79c7777fa5dbece7cfef186b7e30b | [
"Apache-2.0"
] | 32 | 2020-10-21T07:21:21.000Z | 2022-03-13T12:13:13.000Z | samples/denoiser/denoiser_main.cpp | shocker-0x15/OptiX_Utility | f3719a7151d79c7777fa5dbece7cfef186b7e30b | [
"Apache-2.0"
] | 6 | 2020-11-09T11:03:48.000Z | 2021-01-29T16:31:22.000Z | samples/denoiser/denoiser_main.cpp | shocker-0x15/OptiX_Utility | f3719a7151d79c7777fa5dbece7cfef186b7e30b | [
"Apache-2.0"
] | null | null | null | /*
JP: このサンプルはデノイザーの使用方法を示します。
OptiXはモンテカルロレイトレーシングによるレンダリング結果の分散、
画像中のノイズを低減するデノイザーを提供しています。
EN: This sample shows how to use the denoiser.
OptiX provides the denoiser to reduce noises in the image coming from variance of the rendering result
by Monte Carlo ray tracing.
*/
#include "denoiser_share... | 45.243147 | 133 | 0.651492 | shocker-0x15 |
96b3ea1a5e2f6fd14c38475a31efafe5a7cbb429 | 2,031 | hpp | C++ | Test/Tests/Audio.hpp | ThirdPartyNinjas/NinjaParty | 320665104158d7ad0c7b0d3841870e23f37213a7 | [
"MIT"
] | null | null | null | Test/Tests/Audio.hpp | ThirdPartyNinjas/NinjaParty | 320665104158d7ad0c7b0d3841870e23f37213a7 | [
"MIT"
] | null | null | null | Test/Tests/Audio.hpp | ThirdPartyNinjas/NinjaParty | 320665104158d7ad0c7b0d3841870e23f37213a7 | [
"MIT"
] | 1 | 2018-07-27T15:09:49.000Z | 2018-07-27T15:09:49.000Z | #include <memory>
#include <NinjaParty/AssetManager.hpp>
#include <NinjaParty/AudioRenderer.hpp>
#include <NinjaParty/Color.hpp>
#include <NinjaParty/Game.hpp>
#include <NinjaParty/Song.hpp>
#include <NinjaParty/SoundEffect.hpp>
namespace Tests
{
class TestGame : public NinjaParty::Game
{
public:
... | 24.768293 | 91 | 0.535697 | ThirdPartyNinjas |
96b70774819333d4e6b08b43c3ead1e650705a30 | 352 | cpp | C++ | Golem-Editor/src/GolemEditorApp.cpp | JayMarBu/Golem | f4c5d4615d41b5a6e5a3600b0007ecdd68791eb7 | [
"MIT"
] | null | null | null | Golem-Editor/src/GolemEditorApp.cpp | JayMarBu/Golem | f4c5d4615d41b5a6e5a3600b0007ecdd68791eb7 | [
"MIT"
] | null | null | null | Golem-Editor/src/GolemEditorApp.cpp | JayMarBu/Golem | f4c5d4615d41b5a6e5a3600b0007ecdd68791eb7 | [
"MIT"
] | null | null | null | #include <Golem.h>
#include <Golem/EntryPoint.h>
#include "EditorLayer.h"
namespace golem
{
class GolemEditorApp : public Application
{
public:
GolemEditorApp()
: Application("Golem Editor")
{
PushLayer(new EditorLayer());
}
~GolemEditorApp()
{
}
};
Application* CreateApplication()
{
ret... | 11.733333 | 42 | 0.667614 | JayMarBu |
96c0e1e9e7acb0b7196929027de77797000b8d97 | 661 | cc | C++ | src/util.cc | Nixsm/fat16reader | b115ff02630cd98a67a6c1f1513cd1b6d35a75ce | [
"MIT"
] | null | null | null | src/util.cc | Nixsm/fat16reader | b115ff02630cd98a67a6c1f1513cd1b6d35a75ce | [
"MIT"
] | null | null | null | src/util.cc | Nixsm/fat16reader | b115ff02630cd98a67a6c1f1513cd1b6d35a75ce | [
"MIT"
] | null | null | null | #include "util.h"
namespace util {
unsigned short toShort(uchar* bytes) {
return bytes[0] | (bytes[1] << 8);
}
unsigned int toInt(uchar* bytes) {
return bytes[0] | (bytes[1] << 8) | (bytes[2] << 16) | (bytes[3] << 24);
}
void toByte(unsigned short v, uchar* bytes) {
byt... | 26.44 | 80 | 0.481089 | Nixsm |
96c4b970a78822a20f519b486f664c407c8847bc | 392 | hpp | C++ | src/designpattern/Adapter.hpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | src/designpattern/Adapter.hpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | src/designpattern/Adapter.hpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | #pragma once
class Target
{
public:
Target();
virtual ~Target();
virtual void Request() = 0;
protected:
private:
};
class Adaptee
{
public:
Adaptee();
~Adaptee();
void SpecificRequest();
protected:
private:
};
class Adapter : public Target
{
public:
Adapter(Adaptee *ade)... | 12.25 | 30 | 0.59949 | brucexia1 |
96c5b55ff205c3bbe7a5e17094c3fb382a82b529 | 642 | cc | C++ | nofx/nofx_ofBuffer/nofx_dependencies.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | nofx/nofx_ofBuffer/nofx_dependencies.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | nofx/nofx_ofBuffer/nofx_dependencies.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | #include "nofx_dependencies.h"
v8::Persistent<v8::Function> DEP_charPtr;
namespace nofx
{
namespace ClassWrappers
{
NAN_METHOD(nofx_dependencies)
{
if (args.Length() != 1)
{
NanThrowTypeError("ofBuffer module has dependencies. Please pass the right depe... | 27.913043 | 113 | 0.574766 | sepehr-laal |
96cb090ecb2b5a4dc97bcda320fa85dab8a3c0d5 | 3,491 | hpp | C++ | include/navigation.hpp | Karansutradhar/collection_robot | 3dd9a0a1f54d55b72ba937825694192656934915 | [
"MIT"
] | null | null | null | include/navigation.hpp | Karansutradhar/collection_robot | 3dd9a0a1f54d55b72ba937825694192656934915 | [
"MIT"
] | null | null | null | include/navigation.hpp | Karansutradhar/collection_robot | 3dd9a0a1f54d55b72ba937825694192656934915 | [
"MIT"
] | 1 | 2021-04-13T07:49:58.000Z | 2021-04-13T07:49:58.000Z | /**
* @file navigation.hpp
* @author Ajinkya Parwekar
* @author Karan Sutradhar
* @author Mahmoud Dahmani
* @brief The navigation.hpp file for Indoor Sports Court Ball Collection Robot
* project. It contains Collection class methods definitions.
* @Copyright "Copyright 2020" <Ajinkya Parwekar>
* @Copyright "Cop... | 29.584746 | 80 | 0.709825 | Karansutradhar |
96ccd52a292d22f3fb9f129057dac10551456783 | 1,746 | hpp | C++ | src/dtl/bitmap/diff/merge_teb.hpp | harald-lang/tree-encoded-bitmaps | a4ab056f2cefa7843b27c736833b08977b56649c | [
"Apache-2.0"
] | 29 | 2020-06-18T12:51:42.000Z | 2022-02-22T07:38:24.000Z | src/dtl/bitmap/diff/merge_teb.hpp | marcellus-saputra/Thuja | 8443320a6d0e9a20bb6b665f0befc6988978cafd | [
"Apache-2.0"
] | null | null | null | src/dtl/bitmap/diff/merge_teb.hpp | marcellus-saputra/Thuja | 8443320a6d0e9a20bb6b665f0befc6988978cafd | [
"Apache-2.0"
] | 2 | 2021-04-07T13:43:34.000Z | 2021-06-09T04:49:39.000Z | #pragma once
//===----------------------------------------------------------------------===//
#include <dtl/bitmap/bitwise_operations.hpp>
#include <dtl/bitmap/util/bitmap_fun.hpp>
#include <dtl/bitmap/util/convert.hpp>
#include <dtl/bitmap/util/mutable_bitmap_tree.hpp>
#include <dtl/dtl.hpp>
#include <boost/dynamic_b... | 32.943396 | 80 | 0.505155 | harald-lang |
96cd06e9405ca307efcab8baecbaa3102d0b5329 | 2,505 | cpp | C++ | development/cpp/cloud_viewer.cpp | pokeypokeypokey/nsrc-perception-challenge | 6015c5d2562f72e23e46b40e796b8615e3283abf | [
"MIT"
] | null | null | null | development/cpp/cloud_viewer.cpp | pokeypokeypokey/nsrc-perception-challenge | 6015c5d2562f72e23e46b40e796b8615e3283abf | [
"MIT"
] | null | null | null | development/cpp/cloud_viewer.cpp | pokeypokeypokey/nsrc-perception-challenge | 6015c5d2562f72e23e46b40e796b8615e3283abf | [
"MIT"
] | null | null | null | #include <iostream>
#include <pcl/io/io.h>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <string>
#include <limits.h>
#include <unistd.h>
#define TEST_DATA_RELATIVE_PATH "/../../test_data/stereo_point_clouds/stereo_points_1.pcd"
// convenience
typedef pcl::PointXYZ p_xyz;
ty... | 32.532468 | 108 | 0.671058 | pokeypokeypokey |
96cdca2a783428f0692e773bb8000f0f10b79aae | 250 | cc | C++ | effective-modern-cpp/item-4-know-how-to-view-deduced-types/compiler_diagnostics.cc | wangyoucao577/effective_modern_cpp | 1301cac87255d6998a6c7ddf457f0f133b54233b | [
"MIT"
] | 1 | 2021-05-18T07:14:25.000Z | 2021-05-18T07:14:25.000Z | effective-modern-cpp/item-4-know-how-to-view-deduced-types/compiler_diagnostics.cc | wangyoucao577/effective_modern_cpp | 1301cac87255d6998a6c7ddf457f0f133b54233b | [
"MIT"
] | null | null | null | effective-modern-cpp/item-4-know-how-to-view-deduced-types/compiler_diagnostics.cc | wangyoucao577/effective_modern_cpp | 1301cac87255d6998a6c7ddf457f0f133b54233b | [
"MIT"
] | 1 | 2020-11-03T06:29:57.000Z | 2020-11-03T06:29:57.000Z |
#include "compiler_diagnostics.hpp"
int main() {
const int the_answer = 42;
auto x = the_answer;
auto y = &the_answer;
// elicit errors containing x's and y's types
TD<decltype(x)> x1;
TD<decltype(y)> y1;
return 0;
} | 15.625 | 49 | 0.616 | wangyoucao577 |
96cfa468af239aa28f18c52b9e5effc47f397815 | 2,958 | hpp | C++ | source/NanairoCore/Data/intersection_info.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 30 | 2015-09-06T03:14:29.000Z | 2021-06-18T11:00:19.000Z | source/NanairoCore/Data/intersection_info.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 31 | 2016-01-14T14:50:34.000Z | 2018-06-25T13:21:48.000Z | source/NanairoCore/Data/intersection_info.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 6 | 2017-04-09T13:07:47.000Z | 2021-05-29T21:17:34.000Z | /*!
\file intersection_info.hpp
\author Sho Ikeda
Copyright (c) 2015-2018 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef NANAIRO_INTERSECTION_INFO_HPP
#define NANAIRO_INTERSECTION_INFO_HPP
// Standard C++ library
#include <array>
// Na... | 23.664 | 75 | 0.733942 | byzin |
96d087828ef4009b56b874694be513b748131583 | 10,330 | cpp | C++ | src/bindings/Scriptdev2/scripts/eastern_kingdoms/blackrock_spire/instance_blackrock_spire.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | 1 | 2017-11-16T19:04:07.000Z | 2017-11-16T19:04:07.000Z | src/bindings/Scriptdev2/scripts/eastern_kingdoms/blackrock_spire/instance_blackrock_spire.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | src/bindings/Scriptdev2/scripts/eastern_kingdoms/blackrock_spire/instance_blackrock_spire.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... | 34.205298 | 152 | 0.643853 | mfooo |
96d703e3d82642acdab64abcbac0ad08e125527f | 4,566 | cpp | C++ | src/xray/collision/sources/triangle_mesh_resource.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/collision/sources/triangle_mesh_resource.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/collision/sources/triangle_mesh_resource.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 20.02.2009
// Author : Armen Abroyan
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "triangle_mesh_resource.h"
#include "opc... | 32.15493 | 158 | 0.653745 | ixray-team |
96d8e88cef3cdf5eb3f9a6d2931e0175ac1010f0 | 1,644 | cc | C++ | sllib/src/obsolete/tarray_ctypes.cc | cyamauch/sli | 64b22795c954376ce1e14be2e11d4de86980fed4 | [
"MIT"
] | 5 | 2015-11-24T15:29:01.000Z | 2018-08-14T05:30:45.000Z | sllib/src/obsolete/tarray_ctypes.cc | cyamauch/sli | 64b22795c954376ce1e14be2e11d4de86980fed4 | [
"MIT"
] | null | null | null | sllib/src/obsolete/tarray_ctypes.cc | cyamauch/sli | 64b22795c954376ce1e14be2e11d4de86980fed4 | [
"MIT"
] | 2 | 2016-08-19T15:41:04.000Z | 2021-12-25T09:00:34.000Z | /* -*- Mode: C++ ; Coding: euc-japan -*- */
/* Time-stamp: <2009-01-10 15:43:21 cyamauch> */
#include "tarray_ctypes.h"
/* */
#define _TARRAY_PLAIN__GET_SOURCE 1
#define _TARRAY_PLAIN__USE_SPLIT 1
#define _TARRAY_PLAIN__USE_VARG 1
#define _TARRAY_PLAIN__USE_OP 1
#define _TARRAY_PLAIN tarray_double
#define _TARRAY_P... | 25.6875 | 48 | 0.835158 | cyamauch |
96dab1189286d1f13717f94251d01e6333145513 | 28,409 | cpp | C++ | CarenRengineCodes/WIC/CarenWICBitmapDecoder.cpp | VictorSantosReis/CarenRengine | 8d0291171a6c5c402320ef2c0f6672ff2d412962 | [
"Apache-2.0"
] | 4 | 2020-10-19T17:17:11.000Z | 2020-10-22T18:12:34.000Z | CarenRengineCodes/WIC/CarenWICBitmapDecoder.cpp | VictorSantosReis/CarenRengine | 8d0291171a6c5c402320ef2c0f6672ff2d412962 | [
"Apache-2.0"
] | 1 | 2021-02-07T03:10:26.000Z | 2021-02-07T03:10:26.000Z | CarenRengineCodes/WIC/CarenWICBitmapDecoder.cpp | VictorSantosReis/CarenRengine | 8d0291171a6c5c402320ef2c0f6672ff2d412962 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 Victor Santos Reis
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 writing, softwar... | 30.613147 | 210 | 0.762294 | VictorSantosReis |
96dbd2c032127127dc82a35f91ae222c9cb192bc | 1,372 | hpp | C++ | include/owlcpp/terms/ns_iri_tag_gen_macro.hpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 10 | 2017-12-21T05:20:40.000Z | 2021-09-18T05:14:01.000Z | include/owlcpp/terms/ns_iri_tag_gen_macro.hpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 2 | 2017-12-21T07:31:54.000Z | 2021-06-23T08:52:35.000Z | include/owlcpp/terms/ns_iri_tag_gen_macro.hpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 7 | 2016-02-17T13:20:31.000Z | 2021-11-08T09:30:43.000Z | /** @file "/owlcpp/include/owlcpp/terms/ns_iri_tag_gen_macro.hpp"
part of owlcpp project.
@n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt.
@n Copyright Mikhail K Levin 2013
*******************************************************************************/
#ifndef NS_IRI_TAG_GEN_MACRO... | 38.111111 | 85 | 0.667638 | GreyMerlin |
96dc3fcd10ef01b302451b55cc10dce5b151fd8a | 5,105 | cpp | C++ | src/trace/AOGL/ARBProgramObject/ARBProgramObject.cpp | Lycheus/GLSL-ATTILA | ff401192b9fce46ca08d6de8990dd57763a1c711 | [
"BSD-3-Clause"
] | null | null | null | src/trace/AOGL/ARBProgramObject/ARBProgramObject.cpp | Lycheus/GLSL-ATTILA | ff401192b9fce46ca08d6de8990dd57763a1c711 | [
"BSD-3-Clause"
] | null | null | null | src/trace/AOGL/ARBProgramObject/ARBProgramObject.cpp | Lycheus/GLSL-ATTILA | ff401192b9fce46ca08d6de8990dd57763a1c711 | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
*
* Copyright (c) 2002 - 2011 by Computer Architecture Department,
* Universitat Politecnica de Catalunya.
* All rights reserved.
*
* The contents of this file may not be disclosed to third parties,
* copied or duplicated in any form, in... | 31.128049 | 159 | 0.636631 | Lycheus |
96e0df4481116336bbaac62dc440094eb7871bf5 | 6,102 | cpp | C++ | cpp/912.sort-an-array.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | cpp/912.sort-an-array.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | cpp/912.sort-an-array.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=912 lang=cpp
*
* [912] Sort an Array
*
* https://leetcode.com/problems/sort-an-array/description/
*
* algorithms
* Medium (64.10%)
* Total Accepted: 201K
* Total Submissions: 320.3K
* Testcase Example: '[5,2,3,1]'
*
* Given an array of integers nums, sort the array in ascending... | 31.453608 | 86 | 0.493445 | vermouth1992 |
96e2346966b51449aeef90a5215a6e6700e5906a | 8,960 | hpp | C++ | include/ueye_cam/camera_parameters.hpp | ChrisFajardo-TRI/ueye_cam | 8fc16e499015983518f4263156087d0fbd26331c | [
"BSD-3-Clause"
] | null | null | null | include/ueye_cam/camera_parameters.hpp | ChrisFajardo-TRI/ueye_cam | 8fc16e499015983518f4263156087d0fbd26331c | [
"BSD-3-Clause"
] | 31 | 2021-05-12T14:52:50.000Z | 2021-06-25T17:44:13.000Z | include/ueye_cam/camera_parameters.hpp | ChrisFajardo-TRI/ueye_cam | 8fc16e499015983518f4263156087d0fbd26331c | [
"BSD-3-Clause"
] | 1 | 2021-06-15T20:39:49.000Z | 2021-06-15T20:39:49.000Z | /*******************************************************************************
* SOFTWARE LICENSE AGREEMENT (BSD LICENSE):
*
* Copyright (c) 2013-2021, Anqi Xu and contributors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | 45.025126 | 155 | 0.630022 | ChrisFajardo-TRI |
96ebc48a3cf396be5c8dec7c15507e2c3361477a | 28,412 | cpp | C++ | src/chrono/physics/ChParticlesClones.cpp | chfeller/chrono | 652d5a6ed433611f2d335cf33b7da5658bf6f620 | [
"BSD-3-Clause"
] | 1 | 2015-03-19T16:48:13.000Z | 2015-03-19T16:48:13.000Z | src/chrono/physics/ChParticlesClones.cpp | chfeller/chrono | 652d5a6ed433611f2d335cf33b7da5658bf6f620 | [
"BSD-3-Clause"
] | null | null | null | src/chrono/physics/ChParticlesClones.cpp | chfeller/chrono | 652d5a6ed433611f2d335cf33b7da5658bf6f620 | [
"BSD-3-Clause"
] | 1 | 2018-10-25T07:05:40.000Z | 2018-10-25T07:05:40.000Z | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 39.243094 | 119 | 0.620512 | chfeller |
96ecac5adfdde761798188f93a6018414957688e | 273 | cpp | C++ | EfEfNet/Code/efefDebug.cpp | Paideieitor/EfEfNet-Library | ad1d9c20c5d06d74785dcf9d93947d00c19f44f7 | [
"MIT"
] | null | null | null | EfEfNet/Code/efefDebug.cpp | Paideieitor/EfEfNet-Library | ad1d9c20c5d06d74785dcf9d93947d00c19f44f7 | [
"MIT"
] | null | null | null | EfEfNet/Code/efefDebug.cpp | Paideieitor/EfEfNet-Library | ad1d9c20c5d06d74785dcf9d93947d00c19f44f7 | [
"MIT"
] | null | null | null | #include "efefDebug.h"
#include "efefPrivateGlobals.h"
#ifdef EFEF_DEBUG
#include <iostream>
#endif
int efef::DebugError(str str)
{
#ifdef EFEF_DEBUG
int error = WSAGetLastError();
std::cout << str << " -> " << error << '\n';
#endif
return EFEF_ERROR;
}
| 16.058824 | 48 | 0.644689 | Paideieitor |
96f0a8dce6c8e0f3160c46f273565ca0f35cd67a | 61 | cpp | C++ | ViewManager.cpp | Rogue-Modron-Methodology/platformer-game | f09c909a1abf6ffeab5c7a9d69051acc50bf77a8 | [
"CC0-1.0"
] | null | null | null | ViewManager.cpp | Rogue-Modron-Methodology/platformer-game | f09c909a1abf6ffeab5c7a9d69051acc50bf77a8 | [
"CC0-1.0"
] | null | null | null | ViewManager.cpp | Rogue-Modron-Methodology/platformer-game | f09c909a1abf6ffeab5c7a9d69051acc50bf77a8 | [
"CC0-1.0"
] | null | null | null | //ViewManager Implementation file
#include "ViewManager.h"
| 12.2 | 33 | 0.786885 | Rogue-Modron-Methodology |
96f34e4018b5c4d69f345a8d8238f7c07cb931f4 | 1,859 | cpp | C++ | wield/tests/unit_test/testThreadPerStageSchedulingPolicy-UT.cpp | paxos1977/wield | a4e4c2df28763d2a720e14b3d6e903b083eb3a7d | [
"BSD-4-Clause"
] | null | null | null | wield/tests/unit_test/testThreadPerStageSchedulingPolicy-UT.cpp | paxos1977/wield | a4e4c2df28763d2a720e14b3d6e903b083eb3a7d | [
"BSD-4-Clause"
] | null | null | null | wield/tests/unit_test/testThreadPerStageSchedulingPolicy-UT.cpp | paxos1977/wield | a4e4c2df28763d2a720e14b3d6e903b083eb3a7d | [
"BSD-4-Clause"
] | null | null | null | #include "./platform/UnitTestSupport.hpp"
#include <wield/schedulers/ThreadPerStage.hpp>
#include <wield/polling_policies/ExhaustivePollingPolicy.hpp>
#include "./test/Stages.hpp"
#include "./test/Traits.hpp"
#include "./test/ProcessingFunctor.hpp"
namespace {
struct ThreadPerStageFixture
{
ThreadPe... | 29.983871 | 122 | 0.693921 | paxos1977 |
96f6d14186120407d9d7fc9d9e936697a6e641ed | 706 | hpp | C++ | include/mainwindow.hpp | AlexCr4ckPentest/GWEpp | 44b69ccbc2988a570e379d6505c4911865cce1a2 | [
"MIT"
] | null | null | null | include/mainwindow.hpp | AlexCr4ckPentest/GWEpp | 44b69ccbc2988a570e379d6505c4911865cce1a2 | [
"MIT"
] | 2 | 2022-02-02T23:35:32.000Z | 2022-03-06T16:29:55.000Z | include/mainwindow.hpp | AlexCr4ckPentest/GWEpp | 44b69ccbc2988a570e379d6505c4911865cce1a2 | [
"MIT"
] | null | null | null | #pragma once
#include <QMainWindow>
#include "GPU_static_info_loader.hpp"
#include "GPU_dynamic_info_loader.hpp"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget* parent = nullptr);
~MainWindow();
public s... | 20.764706 | 104 | 0.77762 | AlexCr4ckPentest |
96fbe42e94868fa8a58336767f4f5b192f088a86 | 514 | cc | C++ | sdk/src/model/AbortMultipartUploadRequest.cc | OpenInspur/inspur-oss-cpp-sdk | a0932232aaf46aab7c5a2079f72d80cc5d634ba2 | [
"Apache-2.0"
] | null | null | null | sdk/src/model/AbortMultipartUploadRequest.cc | OpenInspur/inspur-oss-cpp-sdk | a0932232aaf46aab7c5a2079f72d80cc5d634ba2 | [
"Apache-2.0"
] | null | null | null | sdk/src/model/AbortMultipartUploadRequest.cc | OpenInspur/inspur-oss-cpp-sdk | a0932232aaf46aab7c5a2079f72d80cc5d634ba2 | [
"Apache-2.0"
] | null | null | null |
#include <inspurcloud/oss/model/AbortMultipartUploadRequest.h>
#include "../utils/Utils.h"
using namespace InspurCloud::OSS;
AbortMultipartUploadRequest::AbortMultipartUploadRequest(
const std::string &bucket, const std::string &key, const std::string &uploadId) :
OssObjectRequest(bucket, key),
uploadId_... | 25.7 | 85 | 0.768482 | OpenInspur |
8c05c77254ae0e29e9eb8b83370aaf95457be9b9 | 1,869 | cc | C++ | sstmac/test_skeletons/mem_thrash.cc | jjwilke/sst-macro | d5139c0e2e6c0055bd2ef6dc9ac565a6ec1fd4d9 | [
"BSD-Source-Code"
] | null | null | null | sstmac/test_skeletons/mem_thrash.cc | jjwilke/sst-macro | d5139c0e2e6c0055bd2ef6dc9ac565a6ec1fd4d9 | [
"BSD-Source-Code"
] | null | null | null | sstmac/test_skeletons/mem_thrash.cc | jjwilke/sst-macro | d5139c0e2e6c0055bd2ef6dc9ac565a6ec1fd4d9 | [
"BSD-Source-Code"
] | null | null | null | #include <mpi.h>
#include <stddef.h>
#include <stdio.h>
#include <vector>
#include <sstmac/skeleton.h>
#include <sprockit/keyword_registration.h>
#define sstmac_app_name mem_thrash
RegisterKeywords(
{ "sources", "ranks of senders" },
{ "destinations", "ranks of recvers" },
);
static void ping(int rank, int src, in... | 22.792683 | 99 | 0.608347 | jjwilke |
8c079f99c2a1251dcb99f282479773e2c48e11ef | 1,114 | cpp | C++ | externs/core.cpp | p4gauntlet/toz3_v2 | d92ef868b3c50e25b4bd3e0fede522beab4c26ca | [
"Apache-2.0"
] | 1 | 2021-11-01T19:41:52.000Z | 2021-11-01T19:41:52.000Z | externs/core.cpp | p4gauntlet/toz3_v2 | d92ef868b3c50e25b4bd3e0fede522beab4c26ca | [
"Apache-2.0"
] | 11 | 2021-11-01T20:16:47.000Z | 2022-03-11T02:19:11.000Z | externs/core.cpp | p4gauntlet/toz3_v2 | d92ef868b3c50e25b4bd3e0fede522beab4c26ca | [
"Apache-2.0"
] | null | null | null | #include "toz3/common/type_complex.h"
namespace TOZ3 {
class PacketIn : public ExternInstance {
private:
std::map<cstring, const IR::Method *> methods;
P4State *state;
const IR::Type_Extern *extern_type;
public:
explicit PacketIn(P4State *state, const IR::Type_Extern *type);
// Merge is a no-op... | 30.108108 | 74 | 0.625673 | p4gauntlet |
8c0811bef9e53cf029e241a8a31e031b6f7c7166 | 610 | hpp | C++ | include/ramen/helper/device.hpp | helixd2s/Ramen | 5b1ebcfdc796b2276b607e71e09c5842d0c52933 | [
"MIT"
] | 4 | 2021-05-13T21:12:09.000Z | 2022-01-26T18:24:30.000Z | include/ramen/helper/device.hpp | helixd2s/Ramen | 5b1ebcfdc796b2276b607e71e09c5842d0c52933 | [
"MIT"
] | null | null | null | include/ramen/helper/device.hpp | helixd2s/Ramen | 5b1ebcfdc796b2276b607e71e09c5842d0c52933 | [
"MIT"
] | null | null | null | #pragma once
//
#include "./core.hpp"
//
namespace vkh {
//
using DeviceCreateHelperBase = CreateHelper<vk::DeviceCreateInfo, vk::StructureType::eDeviceCreateInfo>;
//
class DeviceCreateHelper : public DeviceCreateHelperBase {
public:
std::vector<vk::PhysicalDevice> physicalDevices = {... | 23.461538 | 160 | 0.636066 | helixd2s |
8c10d96e078338eebf68726e8dae2ace6ce8a454 | 5,029 | hpp | C++ | lib/Core/inc/Core/Event/EventHandler.hpp | Cethric/HeaderTech | 3cdbb5e42350a00b4f2bac04b19c9fa82a3a1d32 | [
"BSD-3-Clause"
] | 1 | 2021-02-16T06:55:40.000Z | 2021-02-16T06:55:40.000Z | lib/Core/inc/Core/Event/EventHandler.hpp | Cethric/HeaderTech | 3cdbb5e42350a00b4f2bac04b19c9fa82a3a1d32 | [
"BSD-3-Clause"
] | 1 | 2021-05-20T10:54:35.000Z | 2021-05-21T08:17:14.000Z | lib/Core/inc/Core/Event/EventHandler.hpp | Cethric/HeaderTech | 3cdbb5e42350a00b4f2bac04b19c9fa82a3a1d32 | [
"BSD-3-Clause"
] | null | null | null | /*==============================================================================
= BSD 3-Clause License
=
= Copyright (c) 2021, Cethric
= All rights reserved.
=
= Redistribution and use in source and binary forms, with or without
= modification, are permitted provided that the following conditions are met:
=
=... | 39.289063 | 120 | 0.652018 | Cethric |
8c11bb55d2e94714b18d3329937e8e6dd87b6f6b | 47,897 | cc | C++ | hackt_docker/hackt/src/AST/parse_context.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/AST/parse_context.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/AST/parse_context.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "AST/parse_context.cc"
Class methods for context object passed around during
type-checking, and object construction.
This file was "Object/art_context.cc" in a previous life.
$Id: parse_context.cc,v 1.27 2010/04/30 18:41:46 fang Exp $
*/
#ifndef __AST_PARSE_CONTEXT_CC__
#define __AST_PARSE_CONTEX... | 33.659171 | 79 | 0.659144 | broken-wheel |
8c1275b3a032e29cb8ad89080abdcae978c020df | 468 | cpp | C++ | leetcode.com/0050 Pow(x, n)/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0050 Pow(x, n)/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0050 Pow(x, n)/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <iostream>
using namespace std;
class Solution {
public:
double myPow(double x, int n) {
long double result = 1.0, base = x;
long _n = n;
bool is_negative = n < 0;
if (is_negative) _n = -_n;
while (_n) {
if (_n & 1) {
result *= base;
... | 21.272727 | 43 | 0.448718 | sky-bro |
8c138a2b322a7d8b7a9a370045cdca9738a79972 | 2,911 | cpp | C++ | CODEFORCES/199/a.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | CODEFORCES/199/a.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | CODEFORCES/199/a.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <stack>
#include <algorithm>
#include <cctype>
#include <vector>
#include <queue>
#include <tr1/unordered_map>
#include <cmath>
#include <map>
#include <bitset>
using namespace std;
typedef long long ll;
typedef unsig... | 26.706422 | 84 | 0.509103 | henviso |
22c869872e496bda2f09f3beadbe7f63ae1b3908 | 13,343 | cpp | C++ | src/UserSpaceInstrumentation/InjectLibraryInTracee.cpp | IrinaShkviro/orb | 0297b7609a30dbe23fc0588feef0cb976d64d810 | [
"BSD-2-Clause"
] | 1 | 2021-03-27T10:07:43.000Z | 2021-03-27T10:07:43.000Z | src/UserSpaceInstrumentation/InjectLibraryInTracee.cpp | idfoxdale/orbit | c6525a14e65b1de57028eaca0ab633265aedf348 | [
"BSD-2-Clause"
] | null | null | null | src/UserSpaceInstrumentation/InjectLibraryInTracee.cpp | idfoxdale/orbit | c6525a14e65b1de57028eaca0ab633265aedf348 | [
"BSD-2-Clause"
] | 1 | 2020-07-14T13:16:03.000Z | 2020-07-14T13:16:03.000Z | // Copyright (c) 2021 The Orbit 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 "InjectLibraryInTracee.h"
#include <absl/base/casts.h>
#include <absl/strings/match.h>
#include <absl/strings/str_cat.h>
#include <absl/strings... | 42.903537 | 100 | 0.694596 | IrinaShkviro |
22d04c48211ff610a443efcc176e1357c5a03586 | 824 | cpp | C++ | 2022.05.26 - Homework3/Homework3/Source.cpp | Navarnova/Homework | 5de0f1fc31d6dbe33023badaede6e0d29cf4a250 | [
"Apache-2.0"
] | null | null | null | 2022.05.26 - Homework3/Homework3/Source.cpp | Navarnova/Homework | 5de0f1fc31d6dbe33023badaede6e0d29cf4a250 | [
"Apache-2.0"
] | null | null | null | 2022.05.26 - Homework3/Homework3/Source.cpp | Navarnova/Homework | 5de0f1fc31d6dbe33023badaede6e0d29cf4a250 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include"linkedlist.h"
using namespace std;
int main(int atgc, char*argv[])
{
LinkedList list;
cout << list << endl;
list.pushHead(1);
list.pushHead(3);
list.pushTail(0);
list.pushHead(0);
list.pushTail(-1);
cout << list << endl;
cout << "poped : " << list.popHead() << endl;
cout << "pope... | 22.888889 | 51 | 0.601942 | Navarnova |
22d3cbd739a7f2351df7eb859b0e979396c13389 | 5,449 | cpp | C++ | ltb-gvs/src/ltb/gvs/display/make_primitive.cpp | LoganBarnes/ltb-dvh | f9f4989c9f91f7121961d449e60e2a0da26f0b4c | [
"MIT"
] | null | null | null | ltb-gvs/src/ltb/gvs/display/make_primitive.cpp | LoganBarnes/ltb-dvh | f9f4989c9f91f7121961d449e60e2a0da26f0b4c | [
"MIT"
] | null | null | null | ltb-gvs/src/ltb/gvs/display/make_primitive.cpp | LoganBarnes/ltb-dvh | f9f4989c9f91f7121961d449e60e2a0da26f0b4c | [
"MIT"
] | null | null | null | // ///////////////////////////////////////////////////////////////////////////////////////
// LTB Geometry Visualization Server
// Copyright (c) 2020 Logan Barnes - All Rights Reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation fil... | 44.663934 | 120 | 0.650211 | LoganBarnes |
22d45eaa6351b3145c1fb237f00ccd61e67ce71b | 14,092 | cpp | C++ | src/app/AppSetup.cpp | apazylbe/PorQue4K | 209ba90a35f05df0be68df586c9e184183ed8263 | [
"Apache-2.0"
] | 15 | 2020-06-12T01:40:34.000Z | 2022-03-16T21:52:46.000Z | src/app/AppSetup.cpp | apazylbe/PorQue4K | 209ba90a35f05df0be68df586c9e184183ed8263 | [
"Apache-2.0"
] | 4 | 2020-06-12T23:57:52.000Z | 2020-06-24T19:19:16.000Z | src/app/AppSetup.cpp | apazylbe/PorQue4K | 209ba90a35f05df0be68df586c9e184183ed8263 | [
"Apache-2.0"
] | 3 | 2020-06-12T15:02:13.000Z | 2020-07-05T17:34:20.000Z | /*
Copyright 2020 Google Inc.
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 writing, software
... | 41.084548 | 80 | 0.734885 | apazylbe |
22d5d4db7817729af9c3d5a45fa54879f4afc591 | 7,682 | cxx | C++ | src/mod/pub/demo/abstract-racing/track.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | 1 | 2017-12-26T14:29:37.000Z | 2017-12-26T14:29:37.000Z | src/mod/pub/demo/abstract-racing/track.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | src/mod/pub/demo/abstract-racing/track.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | #include "stdafx.hxx"
#include "track.hxx"
#include "mws-mod.hxx"
#include "gfx.hxx"
#include "gfx-camera.hxx"
#include "util/util.hxx"
#include "spline.hxx"
#include "data-seqv.hxx"
#include <glm/inc.hpp>
#include <cstdio>
using std::vector;
track_sections::track_sections(int segment_count)
{
track_seg_section_ty... | 30.007813 | 121 | 0.652825 | indigoabstract |
22d76efa032c06cf91bbb61140f6f5143ed36ad9 | 1,695 | hpp | C++ | include/coinz/make_tail_index_sequence.hpp | mateka/coinz | 176253210ffe211ee2cac0c4ec34ea47f7633e53 | [
"MIT"
] | null | null | null | include/coinz/make_tail_index_sequence.hpp | mateka/coinz | 176253210ffe211ee2cac0c4ec34ea47f7633e53 | [
"MIT"
] | null | null | null | include/coinz/make_tail_index_sequence.hpp | mateka/coinz | 176253210ffe211ee2cac0c4ec34ea47f7633e53 | [
"MIT"
] | null | null | null | /*
* Copyright 2019 mateka
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files(the
),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublic... | 36.847826 | 80 | 0.750442 | mateka |
22dc005b6c68a9e204ffee0ae5fe7e32ee3fa444 | 512 | hh | C++ | gcs/constraint.hh | ciaranm/glasgow-constraint-solver | 39d925c776474743a51a80492585db3a07801908 | [
"MIT"
] | 5 | 2021-08-13T11:36:49.000Z | 2022-02-09T11:13:04.000Z | gcs/constraint.hh | ciaranm/glasgow-constraint-solver | 39d925c776474743a51a80492585db3a07801908 | [
"MIT"
] | null | null | null | gcs/constraint.hh | ciaranm/glasgow-constraint-solver | 39d925c776474743a51a80492585db3a07801908 | [
"MIT"
] | null | null | null | /* vim: set sw=4 sts=4 et foldmethod=syntax : */
#ifndef GLASGOW_CONSTRAINT_SOLVER_GUARD_GCS_CONSTRAINT_HH
#define GLASGOW_CONSTRAINT_SOLVER_GUARD_GCS_CONSTRAINT_HH 1
#include <functional>
#include <string>
namespace gcs
{
class Propagators;
class State;
class Constraint
{
public:
... | 20.48 | 78 | 0.658203 | ciaranm |
22dcdaa37ded2759da3b821c9c994440931b3146 | 1,259 | cpp | C++ | Extern/irrBullet/src/irrBulletCylinderShape.cpp | tomalbrc/ProceduralTerrainGeneration | 7017df46a62e9b04eff6fca03725c5ed6bb16ba4 | [
"MIT"
] | 1 | 2018-10-24T12:09:29.000Z | 2018-10-24T12:09:29.000Z | Extern/irrBullet/src/irrBulletCylinderShape.cpp | tomalbrc/ProceduralTerrainGeneration | 7017df46a62e9b04eff6fca03725c5ed6bb16ba4 | [
"MIT"
] | null | null | null | Extern/irrBullet/src/irrBulletCylinderShape.cpp | tomalbrc/ProceduralTerrainGeneration | 7017df46a62e9b04eff6fca03725c5ed6bb16ba4 | [
"MIT"
] | null | null | null | // Copyright (C) 2014- Danyal Zia
// Copyright (C) 2009-2013 Josiah Hartzell (Skyreign Software)
// This file is part of the "irrBullet" Bullet physics wrapper.
// For conditions of distribution and use, see copyright notice in irrBullet.h
// The above copyright notice and its accompanying information must remain here.... | 25.693878 | 99 | 0.755361 | tomalbrc |
22dff68da4e7d3135683eeacadb0c23dff6f3e86 | 261 | cpp | C++ | LeetCode/C++/Easy/Remove Duplicates from Sorted Array/solution.cpp | kcwong395/DataStructAndAlgor | 59085c7f0f7ddb7cc45709496932125c3e4a096e | [
"MIT"
] | null | null | null | LeetCode/C++/Easy/Remove Duplicates from Sorted Array/solution.cpp | kcwong395/DataStructAndAlgor | 59085c7f0f7ddb7cc45709496932125c3e4a096e | [
"MIT"
] | null | null | null | LeetCode/C++/Easy/Remove Duplicates from Sorted Array/solution.cpp | kcwong395/DataStructAndAlgor | 59085c7f0f7ddb7cc45709496932125c3e4a096e | [
"MIT"
] | null | null | null | class Solution {
public:
int removeDuplicates(vector<int>& nums) {
if (nums.size() == 0) return 0;
int validI = 1;
for (int i = 1; i < nums.size(); i++) {
if (nums[i] != nums[i - 1]) {
nums[validI++] = nums[i];
}
}
return validI;
}
}; | 14.5 | 42 | 0.524904 | kcwong395 |
22e1fbf8a114d69284df79706a385a7cc1db200c | 544 | cpp | C++ | baekjoon/1748.cpp | stevejhkang/algorithm-quiz | 066f528f3993ab8ad956774b0216712fee4b124d | [
"MIT"
] | 2 | 2019-04-19T09:21:57.000Z | 2019-10-31T15:13:05.000Z | baekjoon/1748.cpp | stevejhkang/algorithm-quiz | 066f528f3993ab8ad956774b0216712fee4b124d | [
"MIT"
] | 1 | 2019-03-13T05:50:31.000Z | 2019-03-13T05:50:53.000Z | baekjoon/1748.cpp | stevejhkang/algorithm-quiz | 066f528f3993ab8ad956774b0216712fee4b124d | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
int main() {
string n; cin >> n;
int len = n.size();
//cout << len << endl;
int answer = 0;
for (int i = 1; i <= len; i++) {
if (i == len) {//마지막 자리일 때
int num = atoi(n.c_str());
//cout << (num+... | 19.428571 | 48 | 0.547794 | stevejhkang |
22e35f298b44b2649f0205951b6db6bfe726e34e | 14,384 | cpp | C++ | user/drivers/vmwaresvga/src/FIFO.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | 4 | 2021-06-22T20:52:30.000Z | 2022-02-04T00:19:44.000Z | user/drivers/vmwaresvga/src/FIFO.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | null | null | null | user/drivers/vmwaresvga/src/FIFO.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | null | null | null | #include "FIFO.h"
#include "SVGA.h"
#include "Log.h"
#include <algorithm>
#include <unistd.h>
#include <svga_reg.h>
#include <svga3d_reg.h>
#include <libpci/Device.h>
#include <sys/syscalls.h>
using namespace svga;
using Err = ::SVGA::Errors;
/// Region of virtual memory in which FIFOs are mapped
static uintptr_t... | 30.09205 | 100 | 0.628685 | tristanseifert |
22e90829cc9c02a630c8e78a080f95e1b9d4786f | 3,024 | cc | C++ | app/main.cc | jskimko/fps | 53f3291f4a8854a94acc3ee69dcf2f26acb061fc | [
"MIT"
] | null | null | null | app/main.cc | jskimko/fps | 53f3291f4a8854a94acc3ee69dcf2f26acb061fc | [
"MIT"
] | null | null | null | app/main.cc | jskimko/fps | 53f3291f4a8854a94acc3ee69dcf2f26acb061fc | [
"MIT"
] | null | null | null | #include "fps/fps.hh"
#include <cstdio>
#include <stdexcept>
int main(int argc, char *argv[]) {
try {
// parse arguments.
if (argc < 3) {
fprintf(stderr, "usage: %s input output [fps]\n", argv[0]);
return 1;
}
const char *name_in = argv[1];
const char *name_out = argv[2];
... | 29.647059 | 97 | 0.54828 | jskimko |
22f26506cb097fd57f156c8813cc1db1e17bbadc | 35,970 | cpp | C++ | PlatformIO/teensy-r4ge-pro-gravitack/src/main.cpp | DigiTorus86/Teensy-R4ge-Pro | d94a73f4f60957b3f28a27b7d6f74b01a61121fa | [
"MIT"
] | 1 | 2022-01-13T02:00:52.000Z | 2022-01-13T02:00:52.000Z | PlatformIO/teensy-r4ge-pro-gravitack/src/main.cpp | DigiTorus86/Teensy-R4ge-Pro | d94a73f4f60957b3f28a27b7d6f74b01a61121fa | [
"MIT"
] | null | null | null | PlatformIO/teensy-r4ge-pro-gravitack/src/main.cpp | DigiTorus86/Teensy-R4ge-Pro | d94a73f4f60957b3f28a27b7d6f74b01a61121fa | [
"MIT"
] | 1 | 2022-01-11T12:55:50.000Z | 2022-01-11T12:55:50.000Z | /***************************************************
Gravitack
An homage to the classic arcade console
Requires:
- Teensy R4ge Pro v2
- Teensy 4.1 board
Copyright (c) 2021 Paul Pagel
This is free software; see the license.txt file for more information.
There is no warranty; not even for merchantability or fitness f... | 23.206452 | 131 | 0.63578 | DigiTorus86 |
22f5a8778f0ca42d75e8e861a2c3d71cba029086 | 782 | cpp | C++ | Array/MaximumProductSubarry/max_product_subarray.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | 2 | 2015-08-28T03:52:05.000Z | 2015-09-03T09:54:40.000Z | Array/MaximumProductSubarry/max_product_subarray.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | null | null | null | Array/MaximumProductSubarry/max_product_subarray.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
using std::vector;
using std::max;
using std::min;
class Solution {
public:
int maxProduct(vector<int>& nums) {
int max_value = nums[0], min_value = nums[0], max_final = nums[0];
for (int i = 1; i < nums.size(); i++) {
int mx ... | 23 | 74 | 0.563939 | yijingbai |
22fa1e9ceb25586e1c1c921fb42f38e1897d6f53 | 10,890 | hpp | C++ | test-suite-adjoint/adjointpiecewiseyieldcurveimpl.hpp | fduffy/QuantLibAdjoint | d9d355db4f46824bb5e607e28381943aef994ed4 | [
"BSD-3-Clause"
] | 41 | 2016-03-19T02:31:54.000Z | 2022-01-20T13:23:20.000Z | test-suite-adjoint/adjointpiecewiseyieldcurveimpl.hpp | fduffy/QuantLibAdjoint | d9d355db4f46824bb5e607e28381943aef994ed4 | [
"BSD-3-Clause"
] | null | null | null | test-suite-adjoint/adjointpiecewiseyieldcurveimpl.hpp | fduffy/QuantLibAdjoint | d9d355db4f46824bb5e607e28381943aef994ed4 | [
"BSD-3-Clause"
] | 22 | 2016-03-17T14:14:36.000Z | 2022-03-28T10:33:19.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2005, 2006, 2007, 2008, 2009 StatPro Italia srl
Copyright (C) 2015 CompatibL
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
Qu... | 32.801205 | 129 | 0.53921 | fduffy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.