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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aea1577d84d5843cd228c829e25bd4ecbce96a9a | 6,496 | hpp | C++ | cexpr_string.hpp | 5cript/table-cedsl | a1a6eb78e6289fd6c07d23f0d7538b257c21c2cd | [
"MIT"
] | null | null | null | cexpr_string.hpp | 5cript/table-cedsl | a1a6eb78e6289fd6c07d23f0d7538b257c21c2cd | [
"MIT"
] | null | null | null | cexpr_string.hpp | 5cript/table-cedsl | a1a6eb78e6289fd6c07d23f0d7538b257c21c2cd | [
"MIT"
] | null | null | null | #pragma once
#include <boost/preprocessor/cat.hpp>
namespace TableCesdl
{
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
// PACK
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
t... | 37.549133 | 144 | 0.528941 | 5cript |
aea360b06ca643a05c2f67877b4b9f581349c5e3 | 7,218 | inl | C++ | volume/Unified2/src/Task/GeomMesh/MeshIO/Local/MeshIO2.inl | llmontoryxd/mipt_diploma | 7d7d65cd619fe983736773f95ebb50b470adbed2 | [
"MIT"
] | null | null | null | volume/Unified2/src/Task/GeomMesh/MeshIO/Local/MeshIO2.inl | llmontoryxd/mipt_diploma | 7d7d65cd619fe983736773f95ebb50b470adbed2 | [
"MIT"
] | null | null | null | volume/Unified2/src/Task/GeomMesh/MeshIO/Local/MeshIO2.inl | llmontoryxd/mipt_diploma | 7d7d65cd619fe983736773f95ebb50b470adbed2 | [
"MIT"
] | null | null | null | template <>
void MeshIO<Space2>::SaveContacts(std::fstream& file, IO::FileType fileType)
{
switch (fileType)
{
case IO::Ascii:
using std::endl;
file << contactEdges.size() << endl;
for (IndexType contactEdgesIndex = 0; contactEdgesIndex < contactEdges.size(); ++contactEdgesIndex)
{
... | 33.110092 | 109 | 0.66542 | llmontoryxd |
00079e02eee9073677aaaafb05dd015288dc80a5 | 19,372 | hpp | C++ | core/unit_test/TestMemoryPool.hpp | Slaedr/kokkos | 5d6e7fb38e96aec88d2c514e1f9be1cf2b549b57 | [
"BSD-3-Clause"
] | 2 | 2019-12-18T20:37:06.000Z | 2020-04-07T00:44:39.000Z | core/unit_test/TestMemoryPool.hpp | Slaedr/kokkos | 5d6e7fb38e96aec88d2c514e1f9be1cf2b549b57 | [
"BSD-3-Clause"
] | 2 | 2020-01-15T21:08:09.000Z | 2020-12-05T06:07:35.000Z | core/unit_test/TestMemoryPool.hpp | Slaedr/kokkos | 5d6e7fb38e96aec88d2c514e1f9be1cf2b549b57 | [
"BSD-3-Clause"
] | 2 | 2020-04-01T19:16:16.000Z | 2022-02-09T21:45:19.000Z | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softw... | 30.363636 | 90 | 0.609023 | Slaedr |
0007b716f248c1a1fb92e813f56dfc37eaae71cd | 253 | cpp | C++ | test/apply.cpp | ericLemanissier/tl | bfedb4829a46dfc7a50e87fea9bae6a2ed01face | [
"CC0-1.0"
] | 40 | 2017-07-05T01:02:38.000Z | 2022-03-16T09:07:26.000Z | test/apply.cpp | ericLemanissier/tl | bfedb4829a46dfc7a50e87fea9bae6a2ed01face | [
"CC0-1.0"
] | null | null | null | test/apply.cpp | ericLemanissier/tl | bfedb4829a46dfc7a50e87fea9bae6a2ed01face | [
"CC0-1.0"
] | 11 | 2017-08-30T10:51:35.000Z | 2022-03-12T00:51:53.000Z | #include <string>
#include <cassert>
#include "tl/apply.hpp"
std::string append_int(std::string s, int i) {
return s + std::to_string(i);
}
int main() {
auto s = tl::apply(append_int, std::make_tuple("hi ", 42));
assert (s == "hi 42");
}
| 18.071429 | 63 | 0.608696 | ericLemanissier |
0011f0e9e1c6ebf573c698f4e977d7e0ad7a947c | 607 | cpp | C++ | _includes/leet038/leet038.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | _includes/leet038/leet038.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | 8 | 2019-12-19T04:46:05.000Z | 2022-02-26T03:45:22.000Z | _includes/leet038/leet038.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | class Solution {
public:
string countAndSay(int n) {
string s = "1";
while(--n){
string tmp;
int count = 1;
char c = s[0];
for(int i=1;i<s.length();i++){
if(s[i]==c)count++;
else{
tmp.push_... | 24.28 | 46 | 0.31631 | mingdaz |
00128a5caaa0ed51cbf864e6d99ce6387b985269 | 1,306 | cpp | C++ | hash.cpp | kaitian521/boost_learn | a22455c935812849327280116bcde6f48b5c5fa1 | [
"Apache-2.0"
] | null | null | null | hash.cpp | kaitian521/boost_learn | a22455c935812849327280116bcde6f48b5c5fa1 | [
"Apache-2.0"
] | null | null | null | hash.cpp | kaitian521/boost_learn | a22455c935812849327280116bcde6f48b5c5fa1 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <boost/functional/hash.hpp>
#include <boost/unordered_set.hpp>
#include <boost/foreach.hpp>
#include <string>
using namespace std;
namespace lib{
struct book
{
int id;
string author;
string title;
book(int _id, string _author, string _title)
{
id = _id;
... | 22.135593 | 77 | 0.591118 | kaitian521 |
0022fbcef6de92612798eb6085b1568b857188ef | 8,984 | cpp | C++ | Game/Client/CEGUI/CEGUI/src/renderers/IrrlichtRenderer/irrlichtrenderer.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/CEGUI/CEGUI/src/renderers/IrrlichtRenderer/irrlichtrenderer.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/CEGUI/CEGUI/src/renderers/IrrlichtRenderer/irrlichtrenderer.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /************************************************************************
filename: irrlichtrenderer.cpp
created: 20/7/2004
author: Thomas Suter
*************************************************************************/
/*************************************************************************
Crazy Eddie's GU... | 34.687259 | 121 | 0.561109 | hackerlank |
0025962662ccf18ff03d9d1a6d041a402c36ede5 | 2,485 | hpp | C++ | include/sqljoinexpression.hpp | Santili/cppsqlx | 32ba861d737cb16c2e337209c1c54e10fa575d3c | [
"MIT"
] | null | null | null | include/sqljoinexpression.hpp | Santili/cppsqlx | 32ba861d737cb16c2e337209c1c54e10fa575d3c | [
"MIT"
] | null | null | null | include/sqljoinexpression.hpp | Santili/cppsqlx | 32ba861d737cb16c2e337209c1c54e10fa575d3c | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2016, Santili Y-HRAH KRONG
* 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
* lis... | 38.828125 | 120 | 0.749698 | Santili |
00272a3127518f507ab7c27b0512b44b8896dfe8 | 4,850 | cpp | C++ | example/eagine/app/003_checker/main.cpp | matus-chochlik/eagine-app | 7aeecbf765a6e4316adfe145f9116aded6cdb550 | [
"BSL-1.0"
] | null | null | null | example/eagine/app/003_checker/main.cpp | matus-chochlik/eagine-app | 7aeecbf765a6e4316adfe145f9116aded6cdb550 | [
"BSL-1.0"
] | null | null | null | example/eagine/app/003_checker/main.cpp | matus-chochlik/eagine-app | 7aeecbf765a6e4316adfe145f9116aded6cdb550 | [
"BSL-1.0"
] | null | null | null | /// @example app/003_checker/main.cpp
///
/// Copyright Matus Chochlik.
/// 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 <eagine/app/main.hpp>
#include <eagine/app_config.hpp>
#include <eagine/embed... | 31.493506 | 80 | 0.547629 | matus-chochlik |
00379efc119be116f57dd62e99666759d0c3e913 | 29,887 | cpp | C++ | Debugger.cpp | smalltong02/Bruce-Ma | 2ee9455635af9f0300f53781382de88d3ef99003 | [
"MIT"
] | null | null | null | Debugger.cpp | smalltong02/Bruce-Ma | 2ee9455635af9f0300f53781382de88d3ef99003 | [
"MIT"
] | null | null | null | Debugger.cpp | smalltong02/Bruce-Ma | 2ee9455635af9f0300f53781382de88d3ef99003 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Debugger.h"
#include "NativeObject.h"
#include "utils.h"
#include "ExceptionThrow.h"
namespace cchips {
BYTE Debugger::_breakpoint_int3 = 0xCC;
BYTE Debugger::_breakpoint_long_int3[2] = { 0xCD, 0x03 };
BYTE Debugger::_breakpoint_ud2[2] = { 0 };
std::uint64_t Debugger::Mo... | 22.88438 | 141 | 0.562653 | smalltong02 |
00392ce4bb75348734db0aebe0f459e27390be67 | 2,436 | hpp | C++ | src/path_planning/include/dijkstra.hpp | duckstarr/controller | ed8020a4ba010981a6ea7377f39f0d1490359450 | [
"MIT"
] | 7 | 2021-05-15T21:58:46.000Z | 2022-02-03T04:34:54.000Z | src/path_planning/include/dijkstra.hpp | duckstarr/controller | ed8020a4ba010981a6ea7377f39f0d1490359450 | [
"MIT"
] | null | null | null | src/path_planning/include/dijkstra.hpp | duckstarr/controller | ed8020a4ba010981a6ea7377f39f0d1490359450 | [
"MIT"
] | null | null | null | /**
* @file dijkstra.h
* @brief Dijkstra shortest path algorithm.
*
*/
#ifndef DIJSTRA_H
#define DIJSTRA_H
#include <list>
#include <utility>
#include <vector>
#include <set>
namespace path_planning
{
class dijkstra
{
public:
/**
* @brief Pseudocode
* 1 function Dijkstra(Graph, s... | 29.349398 | 98 | 0.469212 | duckstarr |
004499cd503bcd78c2af2917505dc7baacb59165 | 604 | hpp | C++ | Structural-patterns/6_Flyweight/src/models/movingmodel.hpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | Structural-patterns/6_Flyweight/src/models/movingmodel.hpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | Structural-patterns/6_Flyweight/src/models/movingmodel.hpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include "basicmodel.hpp"
#include "../math/vector.hpp"
#include "../math/point.hpp"
namespace Models
{
class MovingModel
{
// Fields
private:
std::shared_ptr<BasicModel> model_;
Math::Point pos_;
// Constructors and destructor
public:
MovingM... | 16.324324 | 68 | 0.647351 | PP189B |
0044d2ace2a1f05b1bf712291be609423385b8dd | 1,858 | cpp | C++ | test/provider_test.cpp | bonastos/yadif | c5cb1fa3fb19d47bf1c37e2125da14a1fb8cbe02 | [
"BSL-1.0"
] | null | null | null | test/provider_test.cpp | bonastos/yadif | c5cb1fa3fb19d47bf1c37e2125da14a1fb8cbe02 | [
"BSL-1.0"
] | null | null | null | test/provider_test.cpp | bonastos/yadif | c5cb1fa3fb19d47bf1c37e2125da14a1fb8cbe02 | [
"BSL-1.0"
] | null | null | null | /*
* Copyright 2015 Dirk Bonekamper
*
* 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 <catch.hpp>
#include <yadif.hpp>
#include <map>
using namespace yadif;
namespace {
struct DestructionR... | 18.767677 | 80 | 0.614101 | bonastos |
004d3009705b6d8808da35df3a565f465b8a230a | 5,072 | cpp | C++ | 08-Application-Sunglasses-Filter/sunglasses.cpp | vladcuevas/OpenCV-Labs-Linux | 6e19a60555074b846c5c9dd2225a9eb064376325 | [
"MIT"
] | 1 | 2021-08-15T02:11:42.000Z | 2021-08-15T02:11:42.000Z | 08-Application-Sunglasses-Filter/sunglasses.cpp | vladcuevas/OpenCV-Labs-Linux | 6e19a60555074b846c5c9dd2225a9eb064376325 | [
"MIT"
] | null | null | null | 08-Application-Sunglasses-Filter/sunglasses.cpp | vladcuevas/OpenCV-Labs-Linux | 6e19a60555074b846c5c9dd2225a9eb064376325 | [
"MIT"
] | null | null | null | // Include libraries
#include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <iostream> // std::cout
#include <string> // std::string, std::to_string
#include <stdio.h> /* defines FILENAME_MAX */
// #define WINDOWS /* uncomment this line to use it for windows.*/
#include "c... | 30.926829 | 128 | 0.714314 | vladcuevas |
004ecf8562fe871f394b4c0b056ed8297f596492 | 4,225 | cpp | C++ | eip/src/v2/model/ListBandwidthsRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | eip/src/v2/model/ListBandwidthsRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | eip/src/v2/model/ListBandwidthsRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/eip/v2/model/ListBandwidthsRequest.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Eip {
namespace V2 {
namespace Model {
ListBandwidthsRequest::ListBandwidthsRequest()
{
marker_ = "";
markerIsSet_ = false;
limit_ = 0;
limitIsSet_ = false;
enterpriseProjectId_ = "";... | 22.593583 | 114 | 0.673609 | yangzhaofeng |
005104c33812c37d9d8f4693c8f833fe467367ae | 418 | hpp | C++ | realsense/singleton.hpp | IamWangYunKai/BallDetection | 71671f40d451eae174efad944fb324b1cd9ec89e | [
"MIT"
] | 14 | 2019-03-28T01:29:01.000Z | 2020-04-06T14:56:54.000Z | src/utils/singleton.hpp | ZJUSSL/Autoref | e67587b782636031a079d43930cb1d2551b3fc7b | [
"MIT"
] | null | null | null | src/utils/singleton.hpp | ZJUSSL/Autoref | e67587b782636031a079d43930cb1d2551b3fc7b | [
"MIT"
] | null | null | null | #ifndef __SINGLETON_H__
#define __SINGLETON_H__
template <class SingletonClass>
class Singleton{
public:
static SingletonClass * instance(){
static SingletonClass instance;
return &instance;
}
SingletonClass* operator ->() { return instance(); }
const SingletonClass* operator ->() const ... | 24.588235 | 68 | 0.684211 | IamWangYunKai |
0055c589625bd8a229f7c4e27976e039b616b7f8 | 779 | cpp | C++ | sem1-2-cource1/SEM-25-AP-1-Complex.cpp | yokkidack/bmstu | 3533ac4cd5376b25c1f236ce606e3e2c28944244 | [
"MIT"
] | null | null | null | sem1-2-cource1/SEM-25-AP-1-Complex.cpp | yokkidack/bmstu | 3533ac4cd5376b25c1f236ce606e3e2c28944244 | [
"MIT"
] | 15 | 2019-01-19T18:17:24.000Z | 2019-02-18T18:05:47.000Z | sem1-2-cource1/SEM-25-AP-1-Complex.cpp | yokkidack/bmstu | 3533ac4cd5376b25c1f236ce606e3e2c28944244 | [
"MIT"
] | 3 | 2019-02-14T15:37:52.000Z | 2020-09-27T10:15:11.000Z |
auto swap(Complex&) -> void{
}
auto operator=(const Complex& c) -> Complex&{
this -> swap (Complex{c});
return *this;
}
auto operator+(const Complex& c) -> Complex {
Complex res;
res.first = this->first + c.first;
res.second = this->second + s.second;
return res;
}
auto operator-(const Com... | 21.054054 | 45 | 0.612323 | yokkidack |
005672ef860ff1cb2505aa23695ea42efe9a63cb | 1,435 | cpp | C++ | src/208.implement_trie_prefix_tree_/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2016-07-02T17:44:10.000Z | 2016-07-02T17:44:10.000Z | src/208.implement_trie_prefix_tree_/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | null | null | null | src/208.implement_trie_prefix_tree_/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2019-12-21T04:57:15.000Z | 2019-12-21T04:57:15.000Z | class TrieNode {
public:
// Initialize your data structure here.
TrieNode() {
hasWord = false;
memset(next, 0, sizeof(next));
}
bool hasWord;
TrieNode* next[26];
};
class Trie {
public:
Trie() {
root = new TrieNode();
}
// Inserts a word into the trie.
void ... | 24.322034 | 63 | 0.491289 | cloudzfy |
0058eb52bcf522cac97e25b480563a4d15f1ec2e | 425 | hpp | C++ | CreaStein !!!/Test_SDL_DirectX9.0c/cl_SolPierre.hpp | RSF-Deus/Creastein | ec5aafbf09940dd630fc329a4450e1e37a0d2f62 | [
"MIT"
] | null | null | null | CreaStein !!!/Test_SDL_DirectX9.0c/cl_SolPierre.hpp | RSF-Deus/Creastein | ec5aafbf09940dd630fc329a4450e1e37a0d2f62 | [
"MIT"
] | null | null | null | CreaStein !!!/Test_SDL_DirectX9.0c/cl_SolPierre.hpp | RSF-Deus/Creastein | ec5aafbf09940dd630fc329a4450e1e37a0d2f62 | [
"MIT"
] | null | null | null |
#pragma once
#include "header_ressources.hpp"
#include "cl_CustomObject.hpp"
class SolPierre : public CustomObject
{
public:
SolPierre(CustomForme* _Forme);
SolPierre(CustomForme* _Forme, D3DXVECTOR3& _TranVector);
SolPierre(CustomForme* _Forme, D3DXVECTOR3& _TranVector, D3DXVECTOR3& _LocalRotVector, D3DXVECTOR... | 22.368421 | 119 | 0.788235 | RSF-Deus |
005b02ea4c38b6577b5c38c0584132e4b991a69e | 1,546 | cpp | C++ | Chapter07/7_7.cpp | GeertArien/c-accelerated | c0ae9f66b1733de04f3133db2e9d8af6d555fe6e | [
"MIT"
] | 27 | 2019-03-12T02:24:43.000Z | 2022-02-18T22:49:00.000Z | Chapter07/7_7.cpp | GeertArien/C-Accelerated | c0ae9f66b1733de04f3133db2e9d8af6d555fe6e | [
"MIT"
] | 1 | 2020-06-24T18:34:45.000Z | 2020-06-28T12:55:05.000Z | Chapter07/7_7.cpp | GeertArien/c-accelerated | c0ae9f66b1733de04f3133db2e9d8af6d555fe6e | [
"MIT"
] | 12 | 2019-04-22T03:49:19.000Z | 2021-08-31T17:39:35.000Z | /**
Accelerated C++, Exercise 7-7, 7_7.cpp
Change the driver for the cross-reference program so that it writes line if there is
only one line and lines otherwise.
*/
#include "stdafx.h"
#include <string>
using std::string;
using std::to_string;
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
u... | 18.404762 | 89 | 0.606727 | GeertArien |
0061bafd0043453b161ca03f2d13f38fe9564778 | 7,493 | cpp | C++ | test/ft/di_config.cpp | dan-42/di | 3253bfd841d03d75f7b70c05ac3789b605337deb | [
"BSL-1.0"
] | null | null | null | test/ft/di_config.cpp | dan-42/di | 3253bfd841d03d75f7b70c05ac3789b605337deb | [
"BSL-1.0"
] | null | null | null | test/ft/di_config.cpp | dan-42/di | 3253bfd841d03d75f7b70c05ac3789b605337deb | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2012-2019 Kris Jusiak (kris at jusiak dot net)
//
// 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)
//
// clang-format off
#include <initializer_list> // has to be before, due to the bug in clang ... | 25.4 | 127 | 0.634325 | dan-42 |
0062a7c758a5386c70233ad9791a11cd37b4323f | 3,403 | cpp | C++ | 32.Longest Valid Parentheses/main.cpp | industriousonesoft/MyLeetCodes | 0e8f4561f5428ffeb982ce1efe932f8985fde2b8 | [
"MIT"
] | null | null | null | 32.Longest Valid Parentheses/main.cpp | industriousonesoft/MyLeetCodes | 0e8f4561f5428ffeb982ce1efe932f8985fde2b8 | [
"MIT"
] | null | null | null | 32.Longest Valid Parentheses/main.cpp | industriousonesoft/MyLeetCodes | 0e8f4561f5428ffeb982ce1efe932f8985fde2b8 | [
"MIT"
] | null | null | null | /*
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
Example 1:
Input: s = "(()"
Output: 2
Explanation: The longest valid parentheses substring is "()".
Example 2:
Input: s = ")()())"
Output: 4
Explanation: The longest valid parent... | 25.586466 | 132 | 0.504849 | industriousonesoft |
0064baa12023f8aaed26a81c798fa21de21b9b48 | 513 | cpp | C++ | stos/cpp/Stack.cpp | Mrucznik/Cpp-exercises | e9cd09e288cf835f409110b1a94683e250549ff8 | [
"MIT"
] | null | null | null | stos/cpp/Stack.cpp | Mrucznik/Cpp-exercises | e9cd09e288cf835f409110b1a94683e250549ff8 | [
"MIT"
] | null | null | null | stos/cpp/Stack.cpp | Mrucznik/Cpp-exercises | e9cd09e288cf835f409110b1a94683e250549ff8 | [
"MIT"
] | null | null | null | #include <assert.h>
#include <stdlib.h>
#include "Stack.h"
Stack::Stack()
{
top = 0;
size = STACKSIZE;
dane = (int*)malloc(sizeof(int)*STACKSIZE);
}
Stack::~Stack()
{
free(dane);
}
void Stack::push(int element)
{
dane[top++] = element;
if(top == size)
{
dane = (int*)realloc(dane, (size*=2)*sizeof(int));
}... | 11.4 | 52 | 0.580897 | Mrucznik |
006a85846fce315cab104848970be33b7181d0e7 | 2,387 | hpp | C++ | contrib/autoboost/autoboost/preprocessor/detail/check.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/preprocessor/detail/check.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/preprocessor/detail/check.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | # /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... | 48.714286 | 122 | 0.671554 | CaseyCarter |
006e93246f8db38b6042c0e53cf78127e8c3465f | 1,449 | cpp | C++ | examples/Switch.System/Nameof/Nameof.cpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | examples/Switch.System/Nameof/Nameof.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | examples/Switch.System/Nameof/Nameof.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | #include <Switch/Switch>
using namespace System;
namespace Examples {
class Program : public object {
public:
using Stuff = System::Threading::Mutex;
class C {
public:
property_<int> Value {
get_ {return this->value;},
set_ {this->value = value;}
};
static int Method... | 24.15 | 75 | 0.608696 | victor-timoshin |
0074fd1cfcd9f7187b18ef148c55a6caf5683a37 | 1,489 | cpp | C++ | fmatch.cpp | rrosinha/fshchpman | b29686944c01c4bbe2b2033f4e417188cc7c892c | [
"MIT"
] | null | null | null | fmatch.cpp | rrosinha/fshchpman | b29686944c01c4bbe2b2033f4e417188cc7c892c | [
"MIT"
] | null | null | null | fmatch.cpp | rrosinha/fshchpman | b29686944c01c4bbe2b2033f4e417188cc7c892c | [
"MIT"
] | null | null | null | // Fishing match manager
// Register a fishing match draw and results
#include <iostream>
#include <string>
#include <vector>
#include <random>
struct fisherman {
std::string licenseID;
std::string name;
int age;
int peg;
double weight;
double score;
fisherman(std::string fname, int fage)
... | 19.337662 | 76 | 0.604433 | rrosinha |
0079d9c7e7b01ed43580037e0740300ae642f9c8 | 641 | cpp | C++ | include/hydro/engine/document/expression/SelectorInitializer.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/engine/document/expression/SelectorInitializer.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/engine/document/expression/SelectorInitializer.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 23.740741 | 105 | 0.452418 | hydraate |
007a2c6b5b7ccaf6bb916435b010d5ef9fae540f | 2,265 | cpp | C++ | Serialize and Deserialize BST/solution.cpp | darthhater101/Leetcode | 9342abbfee32e83528044917d5a304afede91559 | [
"MIT"
] | 1 | 2019-08-06T15:04:29.000Z | 2019-08-06T15:04:29.000Z | Serialize and Deserialize BST/solution.cpp | darthhater101/Leetcode | 9342abbfee32e83528044917d5a304afede91559 | [
"MIT"
] | null | null | null | Serialize and Deserialize BST/solution.cpp | darthhater101/Leetcode | 9342abbfee32e83528044917d5a304afede91559 | [
"MIT"
] | null | null | null | /*
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or
memory buffer, or transmitted across a network connection link to be reconstructed later in the same or another computer environment.
Design an algorithm to serialize and deserialize ... | 31.027397 | 133 | 0.650773 | darthhater101 |
007a893c624cfc4150f9dd9c56a0c4b71ee59e1a | 46,287 | cpp | C++ | src/vmlib/AsmParser.cpp | cryptocode/lake | ba95b25d4d6293092304b5d070ca7562e4ed6b35 | [
"MIT"
] | null | null | null | src/vmlib/AsmParser.cpp | cryptocode/lake | ba95b25d4d6293092304b5d070ca7562e4ed6b35 | [
"MIT"
] | null | null | null | src/vmlib/AsmParser.cpp | cryptocode/lake | ba95b25d4d6293092304b5d070ca7562e4ed6b35 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <strstream>
#include "AsmParser.h"
#include "VM.h"
#include "ExprStackOps.h"
#include "ExprColl.h"
#include "ExprDump.h"
#include "ExprInvoke.h"
#include "ExprBinOp.h"
#include "ExprUnaryOp.h"
#include "ExprStore.h"
#include "ExprLoad.h"
#include "ExprConditionalChain.h"
... | 29.056497 | 130 | 0.594357 | cryptocode |
007b1ca3a993db3a2c1c3d0268ff750b0adc9628 | 915 | cpp | C++ | libraries/VAL/src/Utils.cpp | teyssieuman/VAL | 15320d3988bb6ed633babe6c7bd663a97c23a393 | [
"BSD-3-Clause"
] | 65 | 2015-01-08T09:58:01.000Z | 2021-11-16T11:08:31.000Z | libraries/VAL/src/Utils.cpp | teyssieuman/VAL | 15320d3988bb6ed633babe6c7bd663a97c23a393 | [
"BSD-3-Clause"
] | 48 | 2015-01-19T01:07:16.000Z | 2021-07-29T18:26:54.000Z | libraries/VAL/src/Utils.cpp | teyssieuman/VAL | 15320d3988bb6ed633babe6c7bd663a97c23a393 | [
"BSD-3-Clause"
] | 45 | 2016-01-08T01:57:01.000Z | 2022-03-07T04:00:36.000Z | // Copyright 2019 - University of Strathclyde, King's College London and Schlumberger Ltd
// This source code is licensed under the BSD license found in the LICENSE file in the root directory of this source tree.
#include "Utils.h"
#include "Action.h"
#include "FuncExp.h"
#include "Polynomial.h"
#include <sstream>
#in... | 27.727273 | 122 | 0.640437 | teyssieuman |
0081151d0687afa7335aaf7f3204cc0b5f4da1b1 | 1,052 | hpp | C++ | include/MemeEditor/Dockspace.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | include/MemeEditor/Dockspace.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | include/MemeEditor/Dockspace.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | #ifndef _ML_DOCKSPACE_HPP_
#define _ML_DOCKSPACE_HPP_
#include <MemeEditor/GUI_Window.hpp>
#include <MemeCore/Vector2.hpp>
#define ML_Dockspace ml::Dockspace::getInstance()
namespace ml
{
// Docking/snapping area for windows
class ML_EDITOR_API Dockspace final
: public GUI_Window
, public ISingleton<Dockspace... | 22.869565 | 94 | 0.747148 | Gurman8r |
00860fa9128c8c9b7d31c4a6edb49985362ed5fe | 370 | cpp | C++ | chap14/Exer14_36.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 50 | 2016-01-08T14:28:53.000Z | 2022-01-21T12:55:00.000Z | chap14/Exer14_36.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 2 | 2017-06-05T16:45:20.000Z | 2021-04-17T13:39:24.000Z | chap14/Exer14_36.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 18 | 2016-08-17T15:23:51.000Z | 2022-03-26T18:08:43.000Z | #include <iostream>
#include <string>
#include <vector>
#include "Exer14_35_ReadString.h"
using std::cout;
using std::endl;
using std::string;
using std::vector;
int main()
{
ReadString reader;
string s;
vector<string> vs;
while((s = reader()) != ""){
vs.push_back(s);
}
for(const auto &s... | 17.619048 | 33 | 0.594595 | sjbarigye |
0a4f80341e181c46ebae69796cb23ca6f9a846e5 | 2,081 | c++ | C++ | 22.7.1.lld.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | 22.7.1.lld.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | 22.7.1.lld.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | // #include<iostream>
// using namespace std;
// class node{
// public:
// int data;
// node*next;
// node*prev;
// node(int val){
// data=val;
// next=NULL;
// prev=NULL;
// }
// };
// void insertAtTail(node* &head, int val){
// node... | 19.448598 | 48 | 0.371456 | Sambitcr-7 |
0a501750bee3a9e76153caa52ff112db2eb52d3d | 443 | cpp | C++ | AERPajaritas/AERPajaritas/Source.cpp | gejors55/Algorithm | 107d6cf4eb8fc7f4d0cebfe9b4e7b2811ac10533 | [
"MIT"
] | null | null | null | AERPajaritas/AERPajaritas/Source.cpp | gejors55/Algorithm | 107d6cf4eb8fc7f4d0cebfe9b4e7b2811ac10533 | [
"MIT"
] | null | null | null | AERPajaritas/AERPajaritas/Source.cpp | gejors55/Algorithm | 107d6cf4eb8fc7f4d0cebfe9b4e7b2811ac10533 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int pajaritas(int l, int h){
int cont;
if (l < 10 || h < 10){
return 0;
}
else{
if (l > h)
cont = pajaritas(l - h, h);
else
cont = pajaritas(l, h - l);
cont++;
}
return cont;
}
bool resuelveCaso(){
int l, h;
cin >> l >>h;
if (l == ... | 14.290323 | 34 | 0.507901 | gejors55 |
0a55d0415c302b12dc8688532f8c88e710e1b251 | 653 | cxx | C++ | test/subband/subband.cxx | DeadHeadRussell/echoprint-codegen | 9b658ee33e83fff28afe83e4d1d79612e3697e28 | [
"Apache-2.0"
] | null | null | null | test/subband/subband.cxx | DeadHeadRussell/echoprint-codegen | 9b658ee33e83fff28afe83e4d1d79612e3697e28 | [
"Apache-2.0"
] | null | null | null | test/subband/subband.cxx | DeadHeadRussell/echoprint-codegen | 9b658ee33e83fff28afe83e4d1d79612e3697e28 | [
"Apache-2.0"
] | null | null | null | #include <ostream>
#include "../../src/Codegen.h"
#include "../../src/MatrixUtility.h"
#include "../common/callback.h"
using std::cerr;
using std::cout;
using std::endl;
using std::ostream;
void outputCallback(ostream& writer, Codegen* codegen) {
matrix_f spectrogram = codegen->getSpectrogram();
uint number_ban... | 23.321429 | 94 | 0.624809 | DeadHeadRussell |
0a5b97784109fb9b882a73a060576dd38b1176a2 | 1,411 | hpp | C++ | C++ framework/arithmetics/booth_acc_4.hpp | hdieset/approximate_DNN_framework | a22d88cf6378288c57282aec06357f7ff2727a74 | [
"MIT"
] | 1 | 2020-10-20T07:27:04.000Z | 2020-10-20T07:27:04.000Z | C++ framework/arithmetics/booth_acc_4.hpp | hdieset/approximate_DNN_framework | a22d88cf6378288c57282aec06357f7ff2727a74 | [
"MIT"
] | null | null | null | C++ framework/arithmetics/booth_acc_4.hpp | hdieset/approximate_DNN_framework | a22d88cf6378288c57282aec06357f7ff2727a74 | [
"MIT"
] | null | null | null | #ifndef booth_acc_4_hpp
#define booth_acc_4_hpp
#include <assert.h>
#include "../Q.hpp"
#include "RCA.hpp"
Q BOOTH_ACC_RAD4(Q A, Q B)
{
bool a = 0;
bool p = 0; // for arithmetics shift
Q _P(0, A.int_bits);
int n = Q_TOT_BITS;
Q _B(0, B.int_bits);
_B.v = take_2s_complement(B.v); // -B
assert(n % 2 == 0); // n... | 23.516667 | 59 | 0.516655 | hdieset |
0a60aa4173726d3b1d81791f23eb604dbac21b52 | 2,150 | cpp | C++ | src/main.cpp | cpro95/renamer-youtube-dl | 98e1b5b14d9b5cecd24decf03c79e0b20ad756cc | [
"MIT"
] | null | null | null | src/main.cpp | cpro95/renamer-youtube-dl | 98e1b5b14d9b5cecd24decf03c79e0b20ad756cc | [
"MIT"
] | null | null | null | src/main.cpp | cpro95/renamer-youtube-dl | 98e1b5b14d9b5cecd24decf03c79e0b20ad756cc | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
// #include "CLI/CLI.hpp"
#include "lib/myStringLib.hpp"
#include "spdlog/spdlog.h"
#include "tabulate/tabulate.hpp"
void make_table(tabulate::Table& table, std::vector<std::string>& vMovieFiles) {
spdlog::info("Make Table...");
for (auto val : vMovieFiles) {
table.add_ro... | 25.294118 | 80 | 0.579535 | cpro95 |
0a632cc65d214b59ec6761d9872c577d80ace40e | 3,459 | cpp | C++ | simple-fcl-sys/wrapper.cpp | adnanademovic/rust-simple-fcl | 089556ae4bdaecc625ebcecef753b23400b7cce4 | [
"MIT"
] | null | null | null | simple-fcl-sys/wrapper.cpp | adnanademovic/rust-simple-fcl | 089556ae4bdaecc625ebcecef753b23400b7cce4 | [
"MIT"
] | null | null | null | simple-fcl-sys/wrapper.cpp | adnanademovic/rust-simple-fcl | 089556ae4bdaecc625ebcecef753b23400b7cce4 | [
"MIT"
] | 1 | 2018-10-28T15:19:01.000Z | 2018-10-28T15:19:01.000Z | #include <fcl/BVH/BVH_model.h>
#include <fcl/collision.h>
#include <fcl/config.h>
#include <fcl/distance.h>
#include "wrapper.h"
typedef fcl::BVHModel<fcl::OBBRSS> ModelData;
#if FCL_MAJOR_VERSION > 0 || FCL_MINOR_VERSION > 4
typedef std::shared_ptr<ModelData> Model;
#else
typedef boost::shared_ptr<ModelData> Model;
... | 38.865169 | 80 | 0.647008 | adnanademovic |
0a652bc3f9835e73ab34f37850fbc608f400cfe5 | 1,268 | cpp | C++ | code/third/DNSPing/Source/Terminal.cpp | CloudXNS/LDNS-Selector-Windows | 5c5288f27ed28d63ceb19d5ef86808f9c3112aef | [
"MIT"
] | 8 | 2016-05-26T03:18:46.000Z | 2022-01-21T09:00:49.000Z | code/third/DNSPing/Source/Terminal.cpp | CloudXNS/LDNS-Selecter | 5c5288f27ed28d63ceb19d5ef86808f9c3112aef | [
"MIT"
] | null | null | null | code/third/DNSPing/Source/Terminal.cpp | CloudXNS/LDNS-Selecter | 5c5288f27ed28d63ceb19d5ef86808f9c3112aef | [
"MIT"
] | 6 | 2016-05-06T08:33:14.000Z | 2019-10-21T03:01:02.000Z | // This code is part of DNSPing
// Ping with DNS requesting.
// Copyright (C) 2014-2016 Chengr28
//
// 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... | 31.7 | 69 | 0.727129 | CloudXNS |
0a681669a47c14e6e8cfb5b2755cbb2606d166b6 | 8,493 | cpp | C++ | src/Tests/UnitTests/ColliderTest.cpp | ilyaskurikhin/beesim | f30a8fad0d784074400e48055d69823717cae623 | [
"DOC"
] | null | null | null | src/Tests/UnitTests/ColliderTest.cpp | ilyaskurikhin/beesim | f30a8fad0d784074400e48055d69823717cae623 | [
"DOC"
] | null | null | null | src/Tests/UnitTests/ColliderTest.cpp | ilyaskurikhin/beesim | f30a8fad0d784074400e48055d69823717cae623 | [
"DOC"
] | null | null | null | /*
* prjsv 2016
* 2016
* Marco Antognini
*/
#include <Application.hpp>
#include <Env/Collider.hpp>
#include <catch.hpp>
#include <iostream>
// Create a dummy Collider subclass
class Body : public Collider
{
public:
Body(Vec2d const& position, double radius)
: Collider(position, radius)
{
}
}... | 28.404682 | 89 | 0.459673 | ilyaskurikhin |
0a6ae3c42c41f217565d913ba96217537ea2eebe | 3,005 | cpp | C++ | struct-4.7.cpp | dazmodel/cpp-study | 169569b8e29eab209f15bec042c6aac014737356 | [
"MIT"
] | null | null | null | struct-4.7.cpp | dazmodel/cpp-study | 169569b8e29eab209f15bec042c6aac014737356 | [
"MIT"
] | null | null | null | struct-4.7.cpp | dazmodel/cpp-study | 169569b8e29eab209f15bec042c6aac014737356 | [
"MIT"
] | null | null | null | #include <cmath>
#include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <vector>
using namespace std;
// Стуктура для хранения предметов
struct discipline {
string name;
int mark;
};
// Структура для хранения студентов
struct student {
int id;
string name;
discipline disciplines[3];
};
// Печат... | 30.663265 | 131 | 0.602995 | dazmodel |
0a7149d0b763515f075b1eecc1858b3b98342f3d | 1,857 | cpp | C++ | nim_rl/action/action.cpp | ZikangZhou/NimRL | 7efcad5a6ecdd78af3d27003f9baef097bde9f93 | [
"Apache-2.0"
] | 3 | 2020-10-12T01:18:29.000Z | 2022-02-22T21:29:28.000Z | nim_rl/action/action.cpp | ZikangZhou/NimRL | 7efcad5a6ecdd78af3d27003f9baef097bde9f93 | [
"Apache-2.0"
] | null | null | null | nim_rl/action/action.cpp | ZikangZhou/NimRL | 7efcad5a6ecdd78af3d27003f9baef097bde9f93 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Zhou Zikang. 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 applicabl... | 28.569231 | 78 | 0.674744 | ZikangZhou |
0a78adc31f688dac5403d51cde520c80a3d40983 | 609 | cpp | C++ | 9 - Special Pythagorean Triplet.cpp | asabs14/project-euler | 29367879215b7646bd30b2e829ea6315911ac655 | [
"MIT"
] | null | null | null | 9 - Special Pythagorean Triplet.cpp | asabs14/project-euler | 29367879215b7646bd30b2e829ea6315911ac655 | [
"MIT"
] | null | null | null | 9 - Special Pythagorean Triplet.cpp | asabs14/project-euler | 29367879215b7646bd30b2e829ea6315911ac655 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
bool isRightTriangle(int a, int b, int c) {
if (pow(double(a), 2) + pow(double(b), 2) == pow(double(c), 2)) return true;
else {
return false;
}
}
int findSolution() {
int a = 1;
int b = 2;
int c = 997;
while (a < 333) {
b = a + 1;
c = 1000 - ((2 ... | 16.459459 | 78 | 0.461412 | asabs14 |
0a7e51e379ede43adf6ba5057523a9b894d09047 | 2,032 | cpp | C++ | engine/generators/settlements/sector/source/WildflowerGardenGenerator.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 1 | 2020-05-24T22:44:03.000Z | 2020-05-24T22:44:03.000Z | engine/generators/settlements/sector/source/WildflowerGardenGenerator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | engine/generators/settlements/sector/source/WildflowerGardenGenerator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | #include "WildflowerGardenGenerator.hpp"
#include "ItemManager.hpp"
#include "RNG.hpp"
#include "TileGenerator.hpp"
using namespace std;
WildflowerGardenGenerator::WildflowerGardenGenerator(const string& new_deity_id, const AlignmentRange new_ar)
: GardenSectorFeature(new_deity_id, new_ar), wildflower_rand_min(1), wi... | 32.774194 | 119 | 0.627953 | sidav |
0a846bc75163459327ee550bc90a8700b1465d43 | 1,336 | cpp | C++ | source/backend/hiai/execution/NPUSlice.cpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | 6,958 | 2019-05-06T02:38:02.000Z | 2022-03-31T18:08:48.000Z | source/backend/hiai/execution/NPUSlice.cpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | 1,775 | 2019-05-06T04:40:19.000Z | 2022-03-30T15:39:24.000Z | source/backend/hiai/execution/NPUSlice.cpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | 1,511 | 2019-05-06T02:38:05.000Z | 2022-03-31T16:59:39.000Z | //
// NPUSlice.cpp
// MNN
//
// Created by MNN on b'2020/10/15'.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "NPUSlice.hpp"
#include "NPUBackend.hpp"
using namespace std;
namespace MNN {
NPUSlice::NPUSlice(MNN::Backend *b, const MNN::Op *op, const std::vector<Tensor *> &inputs, const std::vec... | 26.72 | 165 | 0.653443 | JujuDel |
0a87556de7f5e8f7b515e7c7dbed8290415755be | 6,408 | hpp | C++ | EverythingLibs/include/EVTNumbers/EVTInt128.hpp | illescasDaniel/EverythingLibs | 82bd9ef2b34ae2d7721685549dc1c0451c258ef8 | [
"MIT"
] | 1 | 2021-05-23T08:55:23.000Z | 2021-05-23T08:55:23.000Z | EverythingLibs/include/EVTNumbers/EVTInt128.hpp | illescasDaniel/EverythingLibs | 82bd9ef2b34ae2d7721685549dc1c0451c258ef8 | [
"MIT"
] | null | null | null | EverythingLibs/include/EVTNumbers/EVTInt128.hpp | illescasDaniel/EverythingLibs | 82bd9ef2b34ae2d7721685549dc1c0451c258ef8 | [
"MIT"
] | null | null | null | /*
The MIT License (MIT)
Copyright (c) 2017 Daniel Illescas Romero <https://github.com/illescasDaniel>
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 withou... | 34.085106 | 114 | 0.7049 | illescasDaniel |
0a898192d75e3228d41e1260c470c4d906696b7b | 1,279 | hpp | C++ | PXG3D/PXG3D/BridgeComponent.hpp | Developer-The-Great/Wooly | 31619dec3baa165e7ae2b082aa026a467d1370ab | [
"Apache-2.0"
] | null | null | null | PXG3D/PXG3D/BridgeComponent.hpp | Developer-The-Great/Wooly | 31619dec3baa165e7ae2b082aa026a467d1370ab | [
"Apache-2.0"
] | null | null | null | PXG3D/PXG3D/BridgeComponent.hpp | Developer-The-Great/Wooly | 31619dec3baa165e7ae2b082aa026a467d1370ab | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <set>
#include "Component.h"
#include "Subscriber.h"
#include "Transform.h"
#include "glm/gtc/quaternion.hpp"
namespace PXG
{
class BridgeComponent : public Component , public subscriber_base, public subject_base
{
void onNotify(subject_base* subject_base, event_t event) override
{
i... | 18.271429 | 98 | 0.652072 | Developer-The-Great |
0a8bc6010a31f24f9d8359e06061e829279aefbe | 1,740 | cpp | C++ | USACO Training/2.2/runround.cpp | aldew5/Competitve-Programming | eb0b93a35af3bd5e806aedc44b835830af01d496 | [
"MIT"
] | 2 | 2020-05-09T15:54:18.000Z | 2021-01-23T22:32:53.000Z | USACO Training/2.2/runround.cpp | aldew5/Competitive-Programming | fc93723fae739d0b06bcf2dbe3b9274584a79a66 | [
"MIT"
] | null | null | null | USACO Training/2.2/runround.cpp | aldew5/Competitive-Programming | fc93723fae739d0b06bcf2dbe3b9274584a79a66 | [
"MIT"
] | null | null | null | /*
ID: alec3
LANG: C++14
PROG: runround
*/
/*
Values are small enough that you can just brute force it.
*/
#include <bits/stdc++.h>
#define check(x) cout<<(#x)<<": "<<x<<" ";
#define io ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ss second
#define ff first
typedef long long ll;
typedef unsigned l... | 19.120879 | 66 | 0.440805 | aldew5 |
0a9896b064ab22d15b24a8428a23ba480af95509 | 638 | cpp | C++ | regression/esbmc-cpp/qt/QVector/vector_pop_front/main.cpp | vanderson-rocha/esbmc | 45768923a0fe79226feca5581b4d75b0a9f5f741 | [
"BSD-3-Clause"
] | 1 | 2021-02-26T22:03:18.000Z | 2021-02-26T22:03:18.000Z | regression/esbmc-cpp/qt/QVector/vector_pop_front/main.cpp | vanderson-rocha/esbmc | 45768923a0fe79226feca5581b4d75b0a9f5f741 | [
"BSD-3-Clause"
] | null | null | null | regression/esbmc-cpp/qt/QVector/vector_pop_front/main.cpp | vanderson-rocha/esbmc | 45768923a0fe79226feca5581b4d75b0a9f5f741 | [
"BSD-3-Clause"
] | 1 | 2021-04-15T14:14:27.000Z | 2021-04-15T14:14:27.000Z | // QVector::pop_front
#include <iostream>
#include <QVector>
#include <cassert>
using namespace std;
int main ()
{
QVector<int> myQVector;
myQVector.push_back (100);
myQVector.push_back (200);
myQVector.push_back (300);
assert(myQVector.front() == 100);
int n = 100;
cout << "Popping... | 21.266667 | 76 | 0.603448 | vanderson-rocha |
0a9d655b2faf2276811328e5411e92eb0f089a1c | 1,888 | cpp | C++ | examples/esomod/3d.cpp | phlip9/hadesmem | 59e13a92c05918b8c842141fd5cac1ed390cd79e | [
"MIT"
] | 19 | 2017-10-19T23:13:11.000Z | 2022-03-29T11:37:26.000Z | examples/esomod/3d.cpp | Bia10/hadesmem | b91bce37611d0e939a55d9490c49780f9f0f3bff | [
"MIT"
] | null | null | null | examples/esomod/3d.cpp | Bia10/hadesmem | b91bce37611d0e939a55d9490c49780f9f0f3bff | [
"MIT"
] | 10 | 2018-04-04T07:55:16.000Z | 2021-11-23T20:22:43.000Z | // Copyright (C) 2010-2015 Joshua Boyce
// See the file COPYING for copying permission.
#include "3d.hpp"
#include <iostream>
#include <hadesmem/error.hpp>
#include <hadesmem/find_pattern.hpp>
#include <hadesmem/process.hpp>
#include <hadesmem/read.hpp>
#include <hadesmem/write.hpp>
void Toggle3D(hades... | 39.333333 | 78 | 0.601695 | phlip9 |
0aa25986bb58f8f6cbb5f18420b3e7873d6d0602 | 4,810 | cpp | C++ | samples/threat_level/src/BuddySystem.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | samples/threat_level/src/BuddySystem.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | samples/threat_level/src/BuddySystem.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017
http://trederia.blogspot.com
crogine test application - 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 us... | 30.251572 | 118 | 0.635759 | fallahn |
0ab098e193a620955cd0d19af4aecc9117004ed7 | 1,240 | hpp | C++ | include/math/vector/vector4.hpp | Gotatang/DadEngine_2.0 | 1e97e86996571c8ba1efec72b0f0e914d86533d3 | [
"MIT"
] | 2 | 2018-03-12T13:59:13.000Z | 2018-11-27T20:13:57.000Z | include/math/vector/vector4.hpp | Gotatang/DadEngine_2.0 | 1e97e86996571c8ba1efec72b0f0e914d86533d3 | [
"MIT"
] | 5 | 2018-12-22T10:43:28.000Z | 2019-01-17T22:02:16.000Z | include/math/vector/vector4.hpp | ladevieq/dadengine | 1e97e86996571c8ba1efec72b0f0e914d86533d3 | [
"MIT"
] | null | null | null | #ifndef __VECTOR4_HPP_
#define __VECTOR4_HPP_
namespace DadEngine
{
class Vector4
{
public:
Vector4() = default;
Vector4(float _x, float _y, float _z, float _w);
// Standard vector functions
void Normalize();
float Length() const;
float SqLength() c... | 19.68254 | 73 | 0.591935 | Gotatang |
0ab0e7029fd669b03aeef6d084b4315a66914902 | 13,303 | cpp | C++ | LhaForge/FileListWindow/FileListModel.cpp | jarupxx/lhaforge | e6f9136eeabf9c00884c93b821ee330ac00ef35d | [
"MIT"
] | 18 | 2015-04-21T13:38:16.000Z | 2022-01-15T14:50:49.000Z | LhaForge/FileListWindow/FileListModel.cpp | jarupxx/lhaforge | e6f9136eeabf9c00884c93b821ee330ac00ef35d | [
"MIT"
] | 36 | 2019-08-24T14:29:44.000Z | 2022-03-03T14:14:19.000Z | LhaForge/FileListWindow/FileListModel.cpp | jarupxx/lhaforge | e6f9136eeabf9c00884c93b821ee330ac00ef35d | [
"MIT"
] | 5 | 2019-02-25T12:33:04.000Z | 2022-01-03T09:23:41.000Z | /*
* MIT License
* Copyright (c) 2005- Claybird
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | 28.304255 | 216 | 0.726302 | jarupxx |
0ab214612835eaa877bad0c8be6906d74f8d0fd6 | 1,056 | cpp | C++ | algoritma-dan-struktur-data/pointer.cpp | kodeaqua/script-praktikum | 807000b053ff2e0765ee28f7a5decb676131238d | [
"MIT"
] | 3 | 2021-12-25T06:08:42.000Z | 2022-01-04T01:22:45.000Z | algoritma-dan-struktur-data/pointer.cpp | kodeaqua/script-praktikum | 807000b053ff2e0765ee28f7a5decb676131238d | [
"MIT"
] | 3 | 2022-01-04T05:09:06.000Z | 2022-03-10T07:33:41.000Z | algoritma-dan-struktur-data/pointer.cpp | kodeaqua/script-praktikum | 807000b053ff2e0765ee28f7a5decb676131238d | [
"MIT"
] | 12 | 2021-12-04T12:28:41.000Z | 2022-03-31T02:29:21.000Z | #include <iostream>
using namespace std;
int main()
{
// --- pointer
int *andi; // Andi sebagai pointer
int budi = 5; // Budi bukan pointer, perhatikan perbedaan pada *
andi = &budi; // Isi dari Andi yaitu alamat Budi
cout << "Isi alamat memori Andi : " << andi << endl;
cout << "Isi alamat memori Budi ... | 22.468085 | 66 | 0.504735 | kodeaqua |
0ab512466514f72381e42224ceb55a832a646345 | 280 | hpp | C++ | library/vcl/math/math.hpp | julienbergerot/Waterfall | 30d285b7293d8c634f698f21690d1623c3ad831e | [
"MIT"
] | null | null | null | library/vcl/math/math.hpp | julienbergerot/Waterfall | 30d285b7293d8c634f698f21690d1623c3ad831e | [
"MIT"
] | null | null | null | library/vcl/math/math.hpp | julienbergerot/Waterfall | 30d285b7293d8c634f698f21690d1623c3ad831e | [
"MIT"
] | null | null | null | #pragma once
#include "matrix/matrix.hpp"
#include "vec_mat/vec_mat.hpp"
#include "quaternion/quaternion.hpp"
#include "rotation/rotation.hpp"
#include "affine/affine.hpp"
#include "frame/frame.hpp"
#include "projection/projection.hpp"
#include "interpolation/interpolation.hpp"
| 25.454545 | 42 | 0.785714 | julienbergerot |
0ab6f3f133e1a207fe7042e5f689a6bf36e404c1 | 1,208 | hpp | C++ | src/face.hpp | useafter-free/face_unlock_linux | 4d86317f87e44b80011b6aaa31ca1dfe9f87fd85 | [
"MIT"
] | 3 | 2021-02-14T08:09:18.000Z | 2021-03-04T09:55:29.000Z | src/face.hpp | useafter-free/face_unlock_linux | 4d86317f87e44b80011b6aaa31ca1dfe9f87fd85 | [
"MIT"
] | null | null | null | src/face.hpp | useafter-free/face_unlock_linux | 4d86317f87e44b80011b6aaa31ca1dfe9f87fd85 | [
"MIT"
] | null | null | null | #ifndef FACE_H
#define FACE_H
#include <opencv2/opencv.hpp>
#include <opencv2/face.hpp>
#include <opencv2/objdetect.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <string>
#define HAARCASCADE 1
#define DNN 2
using namespace cv;
class Face
{
public:
Face();
Face(std::string model... | 26.844444 | 123 | 0.719371 | useafter-free |
0ab84067abc552b0d0f373420b1f530d22b584cd | 1,647 | cpp | C++ | src/Profile/ProfilerDataProcessor.cpp | I-Hudson/Profiler | 1ce2a16ca15cb73d3b6364ca0a451b9656fee286 | [
"MIT"
] | 1 | 2020-01-03T17:33:11.000Z | 2020-01-03T17:33:11.000Z | src/Profile/ProfilerDataProcessor.cpp | I-Hudson/SimpleProfiler | 1ce2a16ca15cb73d3b6364ca0a451b9656fee286 | [
"MIT"
] | null | null | null | src/Profile/ProfilerDataProcessor.cpp | I-Hudson/SimpleProfiler | 1ce2a16ca15cb73d3b6364ca0a451b9656fee286 | [
"MIT"
] | null | null | null | #include "Profile/ProfilerDataProcessor.h"
#include <nlohmann/json.hpp>
namespace Profile
{
std::vector<std::string> Split(const std::string& a_stringToSplit, char a_splitCharacter);
ProfilerDataProcessor::ProfilerDataProcessor()
{
}
ProfilerDataProcessor::~ProfilerDataProcessor()
{
}
void ProfilerDataProc... | 21.38961 | 91 | 0.660595 | I-Hudson |
0ac17df5d0fe01c86e4eb197fa97ba2ffada759b | 4,340 | cpp | C++ | DirectUI/CoreUI.cpp | zodiacon/DirectUI | 00b7709ced648a77e14e5fc89e16f545b0577129 | [
"MIT"
] | 23 | 2017-08-08T09:54:17.000Z | 2021-11-01T01:52:44.000Z | DirectUI/CoreUI.cpp | zodiacon/DirectUI | 00b7709ced648a77e14e5fc89e16f545b0577129 | [
"MIT"
] | 3 | 2017-10-21T22:39:43.000Z | 2019-05-01T03:21:30.000Z | DirectUI/CoreUI.cpp | zodiacon/DirectUI | 00b7709ced648a77e14e5fc89e16f545b0577129 | [
"MIT"
] | 16 | 2017-08-09T10:50:38.000Z | 2021-12-16T03:33:52.000Z | #include "pch.h"
#include "CoreUI.h"
#include "Window.h"
#include "Application.h"
using namespace DirectUI;
using namespace DX;
DEFINE_DP_WITH_FLAGS(UIElement, Visibility, VisibilityType, VisibilityType::Visible, PropertyMetadataFlags::AffectsRender | PropertyMetadataFlags::AffectsLayout);
DEFINE_DP_WITH_FLAGS(UIElem... | 39.099099 | 166 | 0.759908 | zodiacon |
0ac37405b537a4594058d749d164539a5532f5de | 1,869 | hxx | C++ | include/nifty/graph/three_cycles.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | 38 | 2016-06-29T07:42:50.000Z | 2021-12-09T09:25:25.000Z | include/nifty/graph/three_cycles.hxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 62 | 2016-07-27T16:07:53.000Z | 2022-03-30T17:24:36.000Z | include/nifty/graph/three_cycles.hxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 20 | 2016-01-25T21:21:52.000Z | 2021-12-09T09:25:16.000Z | #pragma once
#include <algorithm>
#include <set>
#include "nifty/graph/subgraph_mask.hxx"
#include "nifty/graph/detail/search_impl.hxx"
namespace nifty{
namespace graph{
template<class GRAPH>
void findThreeCyclesEdges(
const GRAPH & graph,
std::vector< std::array<uint64_t, 3 > > & threeCycl... | 30.145161 | 67 | 0.506153 | konopczynski |
0ac784bd51b1c448e4d09a0832687e9cd78e5921 | 4,339 | cpp | C++ | src/tests/test_mix/source/test_word.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | 3 | 2018-01-25T01:14:37.000Z | 2021-08-31T15:22:21.000Z | src/tests/test_mix/source/test_word.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | null | null | null | src/tests/test_mix/source/test_word.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | 3 | 2020-03-07T06:35:23.000Z | 2020-12-04T04:15:35.000Z | #include "precompiled.h"
using namespace mix;
TEST(Word, Default_Word_Is_Positive_With_AllBytesZero)
{
const Word w;
ASSERT_EQ(w.sign(), Sign::Positive);
for (std::size_t i = 1; i <= Word::k_bytes_count; ++i)
{
ASSERT_EQ(w.byte(i), 0) << "Index: " << i;
}
}
TEST(Word, Set_OneByteField_PositiveVa... | 25.080925 | 91 | 0.675732 | grishavanika |
0ac990b5f1eae4263ed49cbdf39cbd97e5bc3525 | 2,543 | hpp | C++ | core/include/cubos/core/memory/endianness.hpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | 2 | 2021-09-28T14:13:27.000Z | 2022-03-26T11:36:48.000Z | core/include/cubos/core/memory/endianness.hpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | 72 | 2021-09-29T08:55:26.000Z | 2022-03-29T21:21:00.000Z | core/include/cubos/core/memory/endianness.hpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | null | null | null | #ifndef CUBOS_CORE_MEMORY_ENDIANNESS_HPP
#define CUBOS_CORE_MEMORY_ENDIANNESS_HPP
namespace cubos::core::memory
{
/// Swaps the bytes of a value, changing the endianness.
/// @tparam T The type of the value.
/// @param value The value to swap.
/// @return The swapped value.
template <typename T> T ... | 30.638554 | 79 | 0.63665 | GameDevTecnico |
0acd3bbdf4ce3b421d87bd7f7c65dc74b3e5d83a | 3,202 | cpp | C++ | core/elf/elf_resolver.cpp | JartC0ding/horizon | 2b9a75b45ac768a8da0f7a98f164a37690dc583f | [
"MIT"
] | null | null | null | core/elf/elf_resolver.cpp | JartC0ding/horizon | 2b9a75b45ac768a8da0f7a98f164a37690dc583f | [
"MIT"
] | null | null | null | core/elf/elf_resolver.cpp | JartC0ding/horizon | 2b9a75b45ac768a8da0f7a98f164a37690dc583f | [
"MIT"
] | null | null | null | #include <elf/elf_resolver.h>
#include <elf/elf.h>
#include <utils/log.h>
#include <utils/string.h>
using namespace elf;
namespace elf {
elf_symbol_resolver* kernel_resolver = nullptr;
elf_symbol_resolver* other_resolver[512] = {0};
int other_resolver_count = 0;
}
elf_symbol_resolver::elf_symbol_resolver(void* ra... | 29.109091 | 145 | 0.682386 | JartC0ding |
0ace77fa8e5e91555f099cd7be30824d52e2728f | 1,118 | cpp | C++ | engine/src/engine/private/base/player.cpp | brass-suzume/orb-engine | b26e63d6f8c2fc2036c9ea558b873f9e29b608f6 | [
"MIT"
] | null | null | null | engine/src/engine/private/base/player.cpp | brass-suzume/orb-engine | b26e63d6f8c2fc2036c9ea558b873f9e29b608f6 | [
"MIT"
] | null | null | null | engine/src/engine/private/base/player.cpp | brass-suzume/orb-engine | b26e63d6f8c2fc2036c9ea558b873f9e29b608f6 | [
"MIT"
] | null | null | null | #include "player.h"
#include "gameInstance.h"
#include "uiSystemInterface.h"
#include "entity.h"
#include "inputComponent.h"
ORB_REGISTER_TYPE_IN_NS( core, Player );
namespace core
{
void Player::Update( float dt )
{
HandleInput();
}
void Player::OnInit()
{
Super::OnInit();
m_uiSystem = &GetGameInstance... | 18.327869 | 85 | 0.681574 | brass-suzume |
0aceb9d4a3cb970fce0dcbf34f9e24e1f7c34820 | 3,350 | hpp | C++ | test/SvpTest.hpp | JordanMcManus/MBES-lib | 618d64f4e042bf5660015819f89537cdd70e696d | [
"MIT"
] | 13 | 2019-10-29T14:16:13.000Z | 2022-02-24T06:44:37.000Z | test/SvpTest.hpp | JordanMcManus/MBES-lib | 618d64f4e042bf5660015819f89537cdd70e696d | [
"MIT"
] | 62 | 2019-04-16T13:53:50.000Z | 2022-03-07T19:44:23.000Z | test/SvpTest.hpp | JordanMcManus/MBES-lib | 618d64f4e042bf5660015819f89537cdd70e696d | [
"MIT"
] | 18 | 2019-04-10T19:51:21.000Z | 2022-01-31T21:42:22.000Z | /*
* Copyright 2020 © Centre Interdisciplinaire de développement en Cartographie des Océans (CIDCO), Tous droits réservés
*/
/*
* File: SvpTest.hpp
* Author: Jordan McManus
*/
#ifndef SVPTEST_HPP
#define SVPTEST_HPP
#include "catch.hpp"
#include "../src/svp/SoundVelocityProfile.hpp"
TEST_CASE("SVP test, nul... | 26.8 | 119 | 0.637015 | JordanMcManus |
0ad09c76aef5c60e21a2b514166a684823fedc9c | 1,388 | cpp | C++ | SDK/ARKSurvivalEvolved_ProjArrow_Bolt_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_ProjArrow_Bolt_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_ProjArrow_Bolt_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_ProjArrow_Bolt_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-------------------------------------------------------------------... | 24.350877 | 125 | 0.682277 | 2bite |
bd57fe79a47e479ec3ea6d5710549000fd8f3488 | 356 | cpp | C++ | ieee_sep/normalizedString.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/normalizedString.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/normalizedString.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////
// normalizedString.cpp
// Implementation of the Class normalizedString
// Created on: 13-Apr-2020 2:51:36 PM
///////////////////////////////////////////////////////////
#include "normalizedString.h"
normalizedString::normalizedString(){
}
norma... | 19.777778 | 59 | 0.483146 | Tylores |
bd5884ee2d2fb3ad6e8f4868efe179878f2b3a98 | 306 | hpp | C++ | config.hpp | TheSovietStorm/PathTracer | 1c8a5d077f7fea37371ea1425966b77b751202c8 | [
"MIT"
] | null | null | null | config.hpp | TheSovietStorm/PathTracer | 1c8a5d077f7fea37371ea1425966b77b751202c8 | [
"MIT"
] | null | null | null | config.hpp | TheSovietStorm/PathTracer | 1c8a5d077f7fea37371ea1425966b77b751202c8 | [
"MIT"
] | null | null | null | //
// Created by Peter Zdankin on 01.04.18.
//
#ifndef PATHTRACER_CONFIG_HPP
#define PATHTRACER_CONFIG_HPP
#define RECURSION_DEPTH 9
#define PIXEL_SAMPLES 1
#define RAY_SAMPLES 30
//#define IGNORE_EVERYTHING_BUT_EMISSION
#define IMAGE_WIDTH 2560
#define IMAGE_HEIGHT 1600
#endif //PATHTRACER_CONFIG_HPP
| 19.125 | 40 | 0.813725 | TheSovietStorm |
bd5a94f18fff987c0e42f2bc541191465980dceb | 685 | hpp | C++ | analysis/src/analysis/ui/displays/pbs_machine_display.hpp | dotdecimal/open-cradle | f8b06f8d40b0f17ac8d2bf845a32fcd57bf5ce1d | [
"MIT"
] | null | null | null | analysis/src/analysis/ui/displays/pbs_machine_display.hpp | dotdecimal/open-cradle | f8b06f8d40b0f17ac8d2bf845a32fcd57bf5ce1d | [
"MIT"
] | null | null | null | analysis/src/analysis/ui/displays/pbs_machine_display.hpp | dotdecimal/open-cradle | f8b06f8d40b0f17ac8d2bf845a32fcd57bf5ce1d | [
"MIT"
] | 4 | 2018-09-28T17:12:54.000Z | 2022-03-20T14:22:29.000Z | #ifndef ANALYSIS_UI_DISPLAYS_PBS_MACHINE_DISPLAY_HPP
#define ANALYSIS_UI_DISPLAYS_PBS_MACHINE_DISPLAY_HPP
#include <analysis/ui/common.hpp>
#include <dosimetry/proton/pbs/machine.hpp>
namespace analysis {
api(enum)
enum class pbs_machine_display_section
{
NO_SECTION_SELECTION,
IMAGING_OVERVIEW,
SCANNING_... | 20.147059 | 64 | 0.8 | dotdecimal |
bd5e5366b23096fc4d7d886d16a0775dffee1369 | 606 | cpp | C++ | VulkanVisual/src/Model.cpp | rEddieD/VulTerGen | 0e6d7a1dcf3321ac570b27d9d031a110161766ff | [
"Apache-2.0"
] | null | null | null | VulkanVisual/src/Model.cpp | rEddieD/VulTerGen | 0e6d7a1dcf3321ac570b27d9d031a110161766ff | [
"Apache-2.0"
] | null | null | null | VulkanVisual/src/Model.cpp | rEddieD/VulTerGen | 0e6d7a1dcf3321ac570b27d9d031a110161766ff | [
"Apache-2.0"
] | null | null | null | #include "Model.h"
#include <iostream>
Model::Model(const float* vertexArray, size_t size)
{
this->size = size;
this->VertexArray = new float[this->size];
this->onHeap = true;
memcpy(VertexArray, vertexArray, size);
}
Model::Model(float vertexArray[], size_t size)
{
this->size = size;
this->VertexArray = vertex... | 18.363636 | 62 | 0.633663 | rEddieD |
bd60499dd15274bfafa982c754fa23f807ca6cba | 19,517 | cpp | C++ | HHKM/HookProc.cpp | gxhblues/HHKM | 8a263d860b4653cc69c81528d559f9c18ae3c550 | [
"MIT"
] | null | null | null | HHKM/HookProc.cpp | gxhblues/HHKM | 8a263d860b4653cc69c81528d559f9c18ae3c550 | [
"MIT"
] | null | null | null | HHKM/HookProc.cpp | gxhblues/HHKM | 8a263d860b4653cc69c81528d559f9c18ae3c550 | [
"MIT"
] | null | null | null | #include <windows.h>
#include <atomic>
#include <mutex>
#include "config.h"
#include "messages.h"
using namespace std;
#ifdef HHKM_UT
#include <vector>
extern vector<INPUT> sent_inputs;
void UT_SendInput(UINT, LPINPUT input, int)
{
sent_inputs.push_back(*input);
}
#define SendInputInternal UT_SendInput
#else
#defi... | 37.60501 | 177 | 0.502178 | gxhblues |
bd6105d46c4f2485034eb1079ddd65112f46eb93 | 3,696 | cpp | C++ | Sources/x10/xla_tensor/ops/native_batch_norm_backward.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | null | null | null | Sources/x10/xla_tensor/ops/native_batch_norm_backward.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | null | null | null | Sources/x10/xla_tensor/ops/native_batch_norm_backward.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | 1 | 2020-06-04T23:23:46.000Z | 2020-06-04T23:23:46.000Z | // Copyright 2020 TensorFlow 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 required by applicable law or agree... | 42 | 81 | 0.661255 | vguerra |
bd66dcb2db71f3c9cad70f3a53352b0892e3249a | 1,135 | cpp | C++ | containers/tuple/main.cpp | mididecouverte/cppmodern | 51142a20be2a4cb86ac7f6f4133d4d0ccea52163 | [
"MIT"
] | null | null | null | containers/tuple/main.cpp | mididecouverte/cppmodern | 51142a20be2a4cb86ac7f6f4133d4d0ccea52163 | [
"MIT"
] | null | null | null | containers/tuple/main.cpp | mididecouverte/cppmodern | 51142a20be2a4cb86ac7f6f4133d4d0ccea52163 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <tuple>
using namespace std;
int main (int argc, char *argv[])
{
/* Simple int string float tuple */
std::tuple<int, std::string, float> myTuple (10, "test", 3.14);
/* Access element of the tuple*/
std::get<0>(myTuple) = 100;
cout << "Va... | 28.375 | 72 | 0.582379 | mididecouverte |
bd6e8daca0afd741a27ccd3918bc7acdd1eeec62 | 998 | cpp | C++ | sem/4ex/trash.cpp | ruska112/infTasks | db3bf563376dac435f5fed74e03bc3592d67c46f | [
"MIT"
] | null | null | null | sem/4ex/trash.cpp | ruska112/infTasks | db3bf563376dac435f5fed74e03bc3592d67c46f | [
"MIT"
] | 1 | 2021-11-16T11:17:37.000Z | 2021-11-16T11:44:54.000Z | sem/4ex/trash.cpp | ruska112/infTasks | db3bf563376dac435f5fed74e03bc3592d67c46f | [
"MIT"
] | null | null | null | #include <iostream>
const int Maxl = 100;
const int Maxc = 100;
int Foggy(double bruh, int c, int z, int &res);
int main()
{
int i, j;
int c, z, result, count = 0, res;
setlocale(0, "");
do
{
scanf_s("%i", &i);
scanf_s("%i", &j);
} while (i > Maxl || j > Maxc || i < 1 || j < 1);
double arr = new ... | 19.192308 | 51 | 0.443888 | ruska112 |
bd71231bb519a4d0d5133b6c3f13f1f771c23901 | 437 | cpp | C++ | Laboratory/Integration/encode.cpp | JakeCooper/bebop | 42c695eb174b4060c71f3e1303ce46bb5df06f61 | [
"Apache-2.0"
] | null | null | null | Laboratory/Integration/encode.cpp | JakeCooper/bebop | 42c695eb174b4060c71f3e1303ce46bb5df06f61 | [
"Apache-2.0"
] | null | null | null | Laboratory/Integration/encode.cpp | JakeCooper/bebop | 42c695eb174b4060c71f3e1303ce46bb5df06f61 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <vector>
#if defined(_WIN32) || defined(WIN32) || defined(WIN64)
#include <fcntl.h>
#include <io.h>
#endif
#include "makelib.hpp"
int main()
{
#if defined(_WIN32) || defined(WIN32) || defined(WIN64)
_setmode(_fileno(stdout), _O_BINARY);
#endif
std::vector<uint8_t> buffer;
Library::enco... | 21.85 | 69 | 0.693364 | JakeCooper |
bd71b85ab5e9f0c73698dfa2345ac5cb0580b522 | 1,233 | hpp | C++ | src/shader_textured.hpp | lasty/ld40_more_is_worse | 07ffaae0448e81b07b6bb964c941a962e8a0e42b | [
"MIT"
] | null | null | null | src/shader_textured.hpp | lasty/ld40_more_is_worse | 07ffaae0448e81b07b6bb964c941a962e8a0e42b | [
"MIT"
] | null | null | null | src/shader_textured.hpp | lasty/ld40_more_is_worse | 07ffaae0448e81b07b6bb964c941a962e8a0e42b | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "maths_types.hpp"
namespace Shader {
class Textured
{
public:
struct Vertex
{
vec2 position;
col4 colour;
vec3 uv;
};
class VertexArray : public std::vector<Vertex>
{
public:
VertexArray();
~VertexArray();
private:
friend class Textured... | 17.125 | 84 | 0.650446 | lasty |
bd7603b776b7ee3c953b7c116c976390a65dfd93 | 3,536 | cpp | C++ | windz/log/AsyncLogging.cpp | Crystalwindz/windz | f13ea10187eb1706d1c7b31b34ce1bf458d721bd | [
"MIT"
] | null | null | null | windz/log/AsyncLogging.cpp | Crystalwindz/windz | f13ea10187eb1706d1c7b31b34ce1bf458d721bd | [
"MIT"
] | null | null | null | windz/log/AsyncLogging.cpp | Crystalwindz/windz | f13ea10187eb1706d1c7b31b34ce1bf458d721bd | [
"MIT"
] | null | null | null | #include "windz/base/Memory.h"
#include "windz/log/AsyncLogging.h"
#include "windz/log/LogFile.h"
#include <assert.h>
namespace windz {
AsyncLogging::AsyncLogging(const std::string &basename, off_t roll_size, int flush_interval)
: running_(false),
basename_(basename),
roll_size_(roll_size),
flu... | 29.714286 | 92 | 0.584276 | Crystalwindz |
bd77aea85b2752da6420fc2727d61f010c2fe0c5 | 291 | cpp | C++ | codes/Leetcode/leetcode118.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/Leetcode/leetcode118.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/Leetcode/leetcode118.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
vector<vector<int>> generate(int numRows) {
vector<vector<int>> ans;
vector<int> cur;
for (int i = 0; i < numRows; i++) {
cur.push_back(1);
for (int j = i-1; j > 0; j--)
cur[j] += cur[j-1];
ans.push_back(cur);
}
return ans;
}
};
| 19.4 | 45 | 0.539519 | JeraKrs |
bd77ddb984d4ed7018ad3cac3cfbd45abdbfb4d7 | 17,123 | cpp | C++ | Samples/Win7Samples/winbase/DeviceFoundation/PNPX/SimpleThermostat/UPnP/UPnPSimpleThermostatDeviceDLL/dllmain.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/winbase/DeviceFoundation/PNPX/SimpleThermostat/UPnP/UPnPSimpleThermostatDeviceDLL/dllmain.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/winbase/DeviceFoundation/PNPX/SimpleThermostat/UPnP/UPnPSimpleThermostatDeviceDLL/dllmain.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | ////////////////////////////////////////////////////////////////////////////////
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
/... | 23.716066 | 95 | 0.432109 | windows-development |
bd7c59f5f631a1c46d0627d29bc792439b9e68d5 | 239 | cpp | C++ | src/Resources/config/routing.cpp | inlife/video-cube | 1caefa2b2cda7c1386c3b75796086cb7201f5e8d | [
"MIT"
] | 2 | 2017-12-16T18:07:50.000Z | 2021-03-24T11:26:31.000Z | src/Resources/config/routing.cpp | Inlife/video-cube | 1caefa2b2cda7c1386c3b75796086cb7201f5e8d | [
"MIT"
] | null | null | null | src/Resources/config/routing.cpp | Inlife/video-cube | 1caefa2b2cda7c1386c3b75796086cb7201f5e8d | [
"MIT"
] | 1 | 2018-05-25T11:29:45.000Z | 2018-05-25T11:29:45.000Z | // Basic conroller routing
Cooper::Http::_router loadRouting() {
Cooper::Http::_router router;
router["main"] = new MainController();
router["user"] = new UserController();
router["video"] = new VideoController();
return router;
} | 23.9 | 41 | 0.698745 | inlife |
bd7d1bd64bbee87fa3657aacfa23e376273416d2 | 5,071 | cpp | C++ | main.cpp | markrad/Azure-IoT-CPP-Wrapper | f1468bd85c3b05595f0975727abdc501ae388b3b | [
"MIT"
] | null | null | null | main.cpp | markrad/Azure-IoT-CPP-Wrapper | f1468bd85c3b05595f0975727abdc501ae388b3b | [
"MIT"
] | null | null | null | main.cpp | markrad/Azure-IoT-CPP-Wrapper | f1468bd85c3b05595f0975727abdc501ae388b3b | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <stdexcept>
#include <thread>
#include <chrono>
#include <ctime>
#include "CIoTHubDevice.h"
#include "CIoTHubMessage.h"
#include "parson/parson.h"
using namespace std;
// typedef IOTHUBMESSAGE_DISPOSITION_RESULT (*MessageCallba... | 28.649718 | 191 | 0.64011 | markrad |
bd7d29f7b8736c1775137d56c25e4294bedd9a27 | 247 | cpp | C++ | EjemploPara.cpp | victorvelepucha/EjemplosC_Cpp | 399fe102160fff0d796b3c3ef70ff897faee5c28 | [
"MIT"
] | 2 | 2019-05-14T16:36:24.000Z | 2019-05-14T16:36:31.000Z | EjemploPara.cpp | victorvelepucha/EjemplosC_Cpp | 399fe102160fff0d796b3c3ef70ff897faee5c28 | [
"MIT"
] | null | null | null | EjemploPara.cpp | victorvelepucha/EjemplosC_Cpp | 399fe102160fff0d796b3c3ef70ff897faee5c28 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main() {
int i;
//for (i=0; i<100 ; i=i+5) {
/*for (i=0; i<100 ; i+=5) {
cout << "Hola mundo " << i+1 << endl;
}*/
for (i=100; i>0 ; i-=5);
cout << "Hola mundo " << i+1 << endl;
return 0;
}
| 15.4375 | 39 | 0.493927 | victorvelepucha |
bd7e84a9799474467181d62123622d55d079e4a6 | 58 | cpp | C++ | Api_CastleVania/GameEngineContents/Lamp.cpp | Munjongyun/Api_Portfolio | d8ae41a5dc1d1b1b8bce555e1c881d418606ec80 | [
"MIT"
] | null | null | null | Api_CastleVania/GameEngineContents/Lamp.cpp | Munjongyun/Api_Portfolio | d8ae41a5dc1d1b1b8bce555e1c881d418606ec80 | [
"MIT"
] | null | null | null | Api_CastleVania/GameEngineContents/Lamp.cpp | Munjongyun/Api_Portfolio | d8ae41a5dc1d1b1b8bce555e1c881d418606ec80 | [
"MIT"
] | null | null | null | #include "Lamp.h"
Lamp::Lamp()
{
}
Lamp::~Lamp()
{
}
| 5.272727 | 17 | 0.482759 | Munjongyun |
bd7f48c1246592b4722cda7190bc339694908c12 | 1,490 | cpp | C++ | src/resource/knot_model.cpp | wquist/realtime-rendering | 6b22d92f41b39255465efa96e3acfc45e87cb20d | [
"MIT"
] | 1 | 2021-12-15T20:06:17.000Z | 2021-12-15T20:06:17.000Z | src/resource/knot_model.cpp | wquist/realtime-rendering | 6b22d92f41b39255465efa96e3acfc45e87cb20d | [
"MIT"
] | null | null | null | src/resource/knot_model.cpp | wquist/realtime-rendering | 6b22d92f41b39255465efa96e3acfc45e87cb20d | [
"MIT"
] | null | null | null | #include "knot_model.h"
#include <glm/gtc/constants.hpp>
knot_model::knot_model(const glm::ivec2& pq, float r, size_t sg, size_t sl)
: model()
{
this->generate(pq, r, sg, sl);
}
void knot_model::generate(const glm::ivec2& pq, float r, size_t sg, size_t sl)
{
model::mesh mesh;
float dt = (2.f * glm::pi<float>()) /... | 22.238806 | 78 | 0.557047 | wquist |
bd83d0e6dfc1f86005a018d9fa78b3283b8af344 | 1,343 | hpp | C++ | src/core/primitives/mc-loader/BlockVariant.hpp | mmp/tungsten | bd54e3d98f1e87a70fccfd752b01933feacaaa69 | [
"Apache-2.0",
"Unlicense"
] | 9 | 2016-12-13T12:44:19.000Z | 2021-06-03T18:55:55.000Z | src/core/primitives/mc-loader/BlockVariant.hpp | westlicht/tungsten | 457c65226734784cb4d03a0d4846bc6797ab9bb7 | [
"Apache-2.0",
"Unlicense"
] | null | null | null | src/core/primitives/mc-loader/BlockVariant.hpp | westlicht/tungsten | 457c65226734784cb4d03a0d4846bc6797ab9bb7 | [
"Apache-2.0",
"Unlicense"
] | 5 | 2016-12-13T12:44:18.000Z | 2019-01-20T05:17:57.000Z | #ifndef BLOCKVARIANT_HPP_
#define BLOCKVARIANT_HPP_
#include "ModelRef.hpp"
#include "io/JsonUtils.hpp"
#include <string>
#include <vector>
namespace Tungsten {
namespace MinecraftLoader {
class BlockVariant
{
std::string _variant;
std::vector<ModelRef> _models;
public:
BlockVariant(const std::string ... | 20.044776 | 96 | 0.547282 | mmp |
bd91043c3ae04d265258163713e4a007c0d5566a | 324 | cpp | C++ | engine/src/Rendering/NullRenderer/NullMouse.cpp | tristanred/MicroEngine | 06635144b729420caf7c743e3d7ab325569ae293 | [
"MIT"
] | null | null | null | engine/src/Rendering/NullRenderer/NullMouse.cpp | tristanred/MicroEngine | 06635144b729420caf7c743e3d7ab325569ae293 | [
"MIT"
] | 11 | 2019-01-27T16:38:47.000Z | 2020-05-16T01:00:29.000Z | engine/src/Rendering/NullRenderer/NullMouse.cpp | tristanred/MicroEngine | 06635144b729420caf7c743e3d7ab325569ae293 | [
"MIT"
] | null | null | null | #include "Rendering/NullRenderer/NullMouse.h"
NullMouse::NullMouse() {}
NullMouse::~NullMouse() {}
bool NullMouse::IsClicked()
{
return false;
}
bool NullMouse::IsClicked(MouseButtons button)
{
return false;
}
vec2 NullMouse::GetMousePosition()
{
return vec2(0, 0);
}
void NullMouse::UpdateMouseState()... | 14.086957 | 46 | 0.703704 | tristanred |
bd91cc4532b56e0dddb73054d3d527ad31c40c93 | 245 | hpp | C++ | include/rua/thread/wait.hpp | yulon/rua | acb14aa0e60b68f09e88c726965552f7f4f5ace0 | [
"MIT"
] | null | null | null | include/rua/thread/wait.hpp | yulon/rua | acb14aa0e60b68f09e88c726965552f7f4f5ace0 | [
"MIT"
] | null | null | null | include/rua/thread/wait.hpp | yulon/rua | acb14aa0e60b68f09e88c726965552f7f4f5ace0 | [
"MIT"
] | null | null | null | #ifndef _RUA_THREAD_WAIT_HPP
#define _RUA_THREAD_WAIT_HPP
#include "../macros.hpp"
#ifdef _WIN32
#include "wait/win32.hpp"
#elif defined(RUA_UNIX) || RUA_HAS_INC(<pthread.h>) || defined(_PTHREAD_H)
#include "wait/posix.hpp"
#endif
#endif
| 14.411765 | 74 | 0.742857 | yulon |
bd9d6383b3e87c5ce430bcee539a43e8a896b566 | 868 | cpp | C++ | RtLibrary/src/Xuzumi/Platform.Windows/WindowsMessageBox.cpp | lymuc-studio/Xuzumi | 6377b07ba991d3c4f7cfa92c25fd35cc8a136f81 | [
"MIT"
] | null | null | null | RtLibrary/src/Xuzumi/Platform.Windows/WindowsMessageBox.cpp | lymuc-studio/Xuzumi | 6377b07ba991d3c4f7cfa92c25fd35cc8a136f81 | [
"MIT"
] | null | null | null | RtLibrary/src/Xuzumi/Platform.Windows/WindowsMessageBox.cpp | lymuc-studio/Xuzumi | 6377b07ba991d3c4f7cfa92c25fd35cc8a136f81 | [
"MIT"
] | null | null | null | #include "Xuzumi/Platform/MessageBox.h"
#include <Windows.h>
// Undef Windows API macro for this unit.
#ifdef MessageBox
# undef MessageBox
#endif // MessageBox
namespace Xuzumi
{
namespace
{
void showMessageBox_(
const char* title,
const char* message,
UInt32 style)
{
MessageBoxA(
nullptr,
... | 17.019608 | 69 | 0.679724 | lymuc-studio |
bd9fb3f553f4c4a18f3cb4dbd325ac05bd78b0c9 | 9,897 | hpp | C++ | src/lib/analysis/advisor/GPUOptimizer.hpp | GVProf/hpctoolkit | baf45028ead83ceba3e952bb8d0b14caf9ea5f78 | [
"BSD-3-Clause"
] | null | null | null | src/lib/analysis/advisor/GPUOptimizer.hpp | GVProf/hpctoolkit | baf45028ead83ceba3e952bb8d0b14caf9ea5f78 | [
"BSD-3-Clause"
] | null | null | null | src/lib/analysis/advisor/GPUOptimizer.hpp | GVProf/hpctoolkit | baf45028ead83ceba3e952bb8d0b14caf9ea5f78 | [
"BSD-3-Clause"
] | 2 | 2021-11-30T18:24:10.000Z | 2022-02-13T18:13:17.000Z | // -*-Mode: C++;-*-
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
//... | 33.323232 | 95 | 0.642619 | GVProf |
bda25b8f48b85d840385c17c5718d25da3b57334 | 2,936 | cpp | C++ | src/historywork/FetchRecentQsetsWork.cpp | viichain/vii-core | 2e5b794fb71e1385a2b5bc96920b5a69d4d8560f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/historywork/FetchRecentQsetsWork.cpp | viichain/vii-core | 2e5b794fb71e1385a2b5bc96920b5a69d4d8560f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/historywork/FetchRecentQsetsWork.cpp | viichain/vii-core | 2e5b794fb71e1385a2b5bc96920b5a69d4d8560f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null |
#include "historywork/FetchRecentQsetsWork.h"
#include "history/FileTransferInfo.h"
#include "history/HistoryManager.h"
#include "historywork/BatchDownloadWork.h"
#include "historywork/GetHistoryArchiveStateWork.h"
#include "main/Application.h"
#include "main/ErrorMessages.h"
#include "util/FileSystemException.h"
#inc... | 29.959184 | 76 | 0.625341 | viichain |
bda2c5a12fbbbbd43149032d4431303acc8389eb | 15,309 | hpp | C++ | include/System/Xml/Schema/XmlSchemaExternal.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Xml/Schema/XmlSchemaExternal.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Xml/Schema/XmlSchemaExternal.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Xml.Schema.XmlSchemaObject
#... | 54.870968 | 226 | 0.730877 | v0idp |
bdb4a575078fa19c9ea4fd3602f1ae467901bde5 | 892 | cpp | C++ | 268.cpp | nitin-maharana/LeetCode | d5e99fa313df3fda65bf385f46f8a62b6d061306 | [
"MIT"
] | 4 | 2016-02-28T17:09:14.000Z | 2017-04-15T15:56:08.000Z | 268.cpp | nitin-maharana/LeetCode | d5e99fa313df3fda65bf385f46f8a62b6d061306 | [
"MIT"
] | null | null | null | 268.cpp | nitin-maharana/LeetCode | d5e99fa313df3fda65bf385f46f8a62b6d061306 | [
"MIT"
] | null | null | null | /*
* Written by Nitin Kumar Maharana
* nitin.maharana@gmail.com
*/
//Using XOR.
class Solution {
public:
int missingNumber(vector<int>& nums) {
int result = 0;
for(int i = 1; i <= nums.size(); i++)
result ^= (i ^ nums[i-1]);
return result;
}
};
//Using... | 18.204082 | 45 | 0.482063 | nitin-maharana |
bdc302a756c49ce7824ce4b4bf96c35932511518 | 3,594 | cpp | C++ | tests/test-hdr/misc/thread_init_fini.cpp | radiansz/libcds | 24a9e5ee830c66ae5c928796f59369da2bb41c68 | [
"BSD-2-Clause"
] | null | null | null | tests/test-hdr/misc/thread_init_fini.cpp | radiansz/libcds | 24a9e5ee830c66ae5c928796f59369da2bb41c68 | [
"BSD-2-Clause"
] | null | null | null | tests/test-hdr/misc/thread_init_fini.cpp | radiansz/libcds | 24a9e5ee830c66ae5c928796f59369da2bb41c68 | [
"BSD-2-Clause"
] | 1 | 2018-10-28T11:44:57.000Z | 2018-10-28T11:44:57.000Z | /*
This file is a part of libcds - Concurrent Data Structures library
(C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
Redistribution and use in source and binary forms, ... | 33.90566 | 128 | 0.652198 | radiansz |
bdc7e0a5df0cb188bf0bcf90e4cd608698548cf1 | 2,886 | cpp | C++ | cloisim_ros_gps/src/gps.cpp | lge-ros2/sim_device | 3936c2ecef1b7a95827bdd8b6f478695092ebc33 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 5 | 2021-06-14T13:12:38.000Z | 2022-03-15T06:34:07.000Z | cloisim_ros_gps/src/gps.cpp | lge-ros2/sim-device | d1ff61c04f370b32af32b5bbd2ac58ce33319b2e | [
"MIT"
] | 7 | 2021-01-13T11:01:26.000Z | 2021-08-09T16:02:29.000Z | cloisim_ros_gps/src/gps.cpp | lge-ros2/sim_device | 3936c2ecef1b7a95827bdd8b6f478695092ebc33 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2021-02-26T07:18:54.000Z | 2022-02-03T08:56:58.000Z | /**
* @file gps.cpp
* @date 2021-01-14
* @author Hyunseok Yang
* @brief
* ROS2 GPS class for simulator
* @remark
* @copyright
* LGE Advanced Robotics Laboratory
* Copyright (c) 2020 LG Electronics Inc., LTD., Seoul, Korea
* All Rights are Reserved.
*
* SPDX-License-Ident... | 27.226415 | 99 | 0.711712 | lge-ros2 |
bdc8ce0c3355fcd2fd17edb6c222cc1c4cff7213 | 2,963 | cpp | C++ | src/heuristics/aco/tsp/aco.cpp | Alexander-Ignatyev/optimer | fc0fb8ffd35e6326f60d77c144cfe7635a6edaa7 | [
"BSD-3-Clause"
] | null | null | null | src/heuristics/aco/tsp/aco.cpp | Alexander-Ignatyev/optimer | fc0fb8ffd35e6326f60d77c144cfe7635a6edaa7 | [
"BSD-3-Clause"
] | null | null | null | src/heuristics/aco/tsp/aco.cpp | Alexander-Ignatyev/optimer | fc0fb8ffd35e6326f60d77c144cfe7635a6edaa7 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2008-2013 Alexander Ignatyev. All rights reserved.
#include "aco.h"
#include <algorithm>
#include <sstream>
#include <common/log.h>
#include <common/signals.h>
#include "ant.h"
#include "params.h"
namespace aco_tsp {
void update_pheromone(const Params ¶ms
, const std::ve... | 31.521277 | 78 | 0.560243 | Alexander-Ignatyev |
bdd01d716a02e20210ad25e93bd1119369f4b97c | 6,056 | cpp | C++ | src/xpcc/math/geometry/test/vector_test.cpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | 161 | 2015-01-13T15:52:06.000Z | 2020-02-13T01:26:04.000Z | src/xpcc/math/geometry/test/vector_test.cpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | 281 | 2015-01-06T12:46:40.000Z | 2019-01-06T13:06:57.000Z | src/xpcc/math/geometry/test/vector_test.cpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | 51 | 2015-03-03T19:56:12.000Z | 2020-03-22T02:13:36.000Z | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2011, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... | 28.299065 | 87 | 0.649604 | walmis |
bdd223d6a66f2ce1ee12983208b1fa77690c1561 | 1,328 | hpp | C++ | include/NP-Engine/Primitive/primitive_types.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | include/NP-Engine/Primitive/primitive_types.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | include/NP-Engine/Primitive/primitive_types.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | //
// primitive_types.hpp
// Project Space
//
// Created by Nathan Phipps on 12/30/20.
// Copyright © 2020 Nathan Phipps. All rights reserved.
//
// TODO: refactor these "primitive_types" files to Pascal casing
#ifndef NP_ENGINE_PRIMITIVE_TYPES_HPP
#define NP_ENGINE_PRIMITIVE_TYPES_HPP
#include <cstddef>
#includ... | 20.430769 | 89 | 0.753765 | naphipps |
bdd477d59a0c0ca533a11af0489ac6e0e213005f | 219 | cpp | C++ | system/Falcon9Factory.cpp | arulagrawal/cos214_project | 1ea65ac7e46b97107c0ec2a75359514bc6c98c15 | [
"BSD-2-Clause"
] | null | null | null | system/Falcon9Factory.cpp | arulagrawal/cos214_project | 1ea65ac7e46b97107c0ec2a75359514bc6c98c15 | [
"BSD-2-Clause"
] | null | null | null | system/Falcon9Factory.cpp | arulagrawal/cos214_project | 1ea65ac7e46b97107c0ec2a75359514bc6c98c15 | [
"BSD-2-Clause"
] | null | null | null | #include "Falcon9Factory.h"
///Falcon9Factory creates Falcon9 Rockets for easy use.
Falcon* Falcon9Factory::createFalcon(double weight, double fuelWeight, bool test)
{
return new Falcon9(weight, fuelWeight, test);
} | 36.5 | 81 | 0.780822 | arulagrawal |
bdd6b13fee970857664de63e9c3ebab29e587b33 | 3,982 | cpp | C++ | asio-course/Examples/9a.cpp | steelwil/homepage | 4166c3fb79361c4828a8fdc8b7094306827da35b | [
"Unlicense"
] | null | null | null | asio-course/Examples/9a.cpp | steelwil/homepage | 4166c3fb79361c4828a8fdc8b7094306827da35b | [
"Unlicense"
] | null | null | null | asio-course/Examples/9a.cpp | steelwil/homepage | 4166c3fb79361c4828a8fdc8b7094306827da35b | [
"Unlicense"
] | null | null | null | #include "network.h"
#include <iostream>
#include <iomanip>
#include <mutex>
#include <thread>
std::mutex global_stream_lock;
//==============================================================================
class MyConnection : public Connection
{
private:
void OnAccept(const std::string& host, uint16_t port)
... | 24.8875 | 97 | 0.493722 | steelwil |
75319ebd0638bd6a29371bcb02d23cb0a35d7c45 | 2,935 | cpp | C++ | src/stp/tactics/passive/BlockBall.cpp | RoboTeamTwente/roboteam_ai | 412c96cec328af9a8efefb3f484abd982acb7000 | [
"MIT"
] | 16 | 2018-10-10T09:55:22.000Z | 2021-04-26T09:58:47.000Z | src/stp/tactics/passive/BlockBall.cpp | RoboTeamTwente/roboteam_ai | 412c96cec328af9a8efefb3f484abd982acb7000 | [
"MIT"
] | 688 | 2018-09-26T11:42:21.000Z | 2022-03-17T09:32:25.000Z | src/stp/tactics/passive/BlockBall.cpp | RoboTeamTwente/roboteam_ai | 412c96cec328af9a8efefb3f484abd982acb7000 | [
"MIT"
] | 5 | 2018-12-25T12:45:56.000Z | 2020-09-25T07:51:02.000Z | /// Places our robot between the ball and a given target position (either enemy robot or position to defend)
#include "stp/tactics/passive/BlockBall.h"
#include <roboteam_utils/Circle.h>
#include "stp/computations/PositionComputations.h"
#include "stp/skills/GoToPos.h"
namespace rtt::ai::stp::tactic {
BlockBall::B... | 41.928571 | 180 | 0.70971 | RoboTeamTwente |
7534ed7782865f39eb9c6917d20287d8227275b1 | 711 | hh | C++ | hackt_docker/hackt/src/Object/lang/cflat_visitee.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/lang/cflat_visitee.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/lang/cflat_visitee.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/lang/cflat_visitee.hh"
TODO: rename and organize files?
$Id: cflat_visitee.hh,v 1.4 2010/04/07 00:12:50 fang Exp $
*/
#ifndef __HAC_OBJECT_LANG_CFLAT_VISITEE_H__
#define __HAC_OBJECT_LANG_CFLAT_VISITEE_H__
#include "util/visitee.hh"
// #include "Object/devel_switches.h"
namespace HAC {
namespac... | 22.935484 | 71 | 0.766526 | broken-wheel |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.