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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00701a704c6302c328d884ce29f8ad3c21001a6c | 1,037 | cpp | C++ | source/Core/TextMesh.cpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 31 | 2015-03-19T08:44:48.000Z | 2021-12-15T20:52:31.000Z | source/Core/TextMesh.cpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 19 | 2015-07-09T09:02:44.000Z | 2016-06-09T03:51:03.000Z | source/Core/TextMesh.cpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 3 | 2017-10-04T23:38:18.000Z | 2022-03-07T08:27:13.000Z | // Copyright (C) 2011 - 2014 David Reid. See included LICENCE file.
#include <GTGE/Core/TextMesh.hpp>
namespace GT
{
TextMesh::TextMesh()
: m_vertices(), m_indices(), m_glyphMapHandle(0)
{
}
TextMesh::TextMesh(const TextMeshVertex* verticesIn, size_t vertexCount, const unsigned int* indicesIn... | 24.690476 | 157 | 0.57377 | mackron |
00732c4cb1ce7b11f4756b9076ae4da1bd10d004 | 720 | hpp | C++ | AVR++/FlashArray.hpp | cinderblock/AVR | 35b58ae71daf358d320e155eed947dfa7aad3d4a | [
"MIT"
] | 3 | 2017-02-13T18:43:11.000Z | 2020-11-17T20:29:36.000Z | AVR++/FlashArray.hpp | cinderblock/AVR | 35b58ae71daf358d320e155eed947dfa7aad3d4a | [
"MIT"
] | null | null | null | AVR++/FlashArray.hpp | cinderblock/AVR | 35b58ae71daf358d320e155eed947dfa7aad3d4a | [
"MIT"
] | null | null | null | /*
* File: FlashArray.h
* Author: Cameron
*
*/
#pragma once
#include <avr/io.h>
#include <avr/pgmspace.h>
#include <stddef.h>
// Clear out conflicting gcc defines
#undef AVR
namespace AVR {
template <size_t location, unsigned int count, class T = uint8_t> class FlashArray {
static_assert(sizeof(T) * count + ... | 21.176471 | 108 | 0.65 | cinderblock |
007f94d99f51a5770e677eec79b853954269bbec | 1,070 | cpp | C++ | basicas.cpp | Aaron-Shrike/control-pacientes-hospital | 851ecfe7cf8967e78a61f0014fc12bb7122c82d1 | [
"MIT"
] | null | null | null | basicas.cpp | Aaron-Shrike/control-pacientes-hospital | 851ecfe7cf8967e78a61f0014fc12bb7122c82d1 | [
"MIT"
] | null | null | null | basicas.cpp | Aaron-Shrike/control-pacientes-hospital | 851ecfe7cf8967e78a61f0014fc12bb7122c82d1 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <conio.h>
#include <iostream>
#include <windows.h>
using namespace std;
#define MAX 50
#define LIM 50
// operacions basicas de datos simples
int leeEntero(char msje[], int min, int max)
{ int num;
do{
printf("%s", msje);
scanf("%d", &num);
}while(!(num>=m... | 18.135593 | 49 | 0.540187 | Aaron-Shrike |
0084c41aa67707d64175edb14f9b799da30d4da9 | 5,439 | cpp | C++ | dnyBlackSpace/Code/common/utils.cpp | danielbrendel/dnyBlackSpace | fce0d12e5d3054b25dbdec97329f230fbbc452c8 | [
"MIT"
] | null | null | null | dnyBlackSpace/Code/common/utils.cpp | danielbrendel/dnyBlackSpace | fce0d12e5d3054b25dbdec97329f230fbbc452c8 | [
"MIT"
] | 1 | 2022-03-15T00:53:11.000Z | 2022-03-15T00:53:11.000Z | dnyBlackSpace/Code/common/utils.cpp | danielbrendel/dnyBlackSpace | fce0d12e5d3054b25dbdec97329f230fbbc452c8 | [
"MIT"
] | null | null | null | #include "utils.h"
#include "vars.h"
/*
Black Space (dnyBlackSpace) developed by Daniel Brendel
(C) 2018 - 2022 by Daniel Brendel
Version: 1.0
Contact: dbrendel1988<at>gmail<dot>com
GitHub: https://github.com/danielbrendel/
Released under the MIT license
*/
//=================================================... | 26.023923 | 140 | 0.513881 | danielbrendel |
0a517fe488569c20ec855d87cb2992327a39b657 | 1,241 | cpp | C++ | src/RESTSession.cpp | Yhgenomics/maraton-framework | 9044321d8c252c635a197a5c32512cb0538688f1 | [
"MIT"
] | 4 | 2015-11-12T03:51:46.000Z | 2015-11-13T03:29:04.000Z | src/RESTSession.cpp | Yhgenomics/maraton-framework | 9044321d8c252c635a197a5c32512cb0538688f1 | [
"MIT"
] | null | null | null | src/RESTSession.cpp | Yhgenomics/maraton-framework | 9044321d8c252c635a197a5c32512cb0538688f1 | [
"MIT"
] | null | null | null | #include "RESTSession.h"
RESTSession::RESTSession( uv_tcp_t * conn )
: ClusterSession(conn)
{
router.request( [this] ( HTTPRequest* req ) {
std::string body_str = req->body();
if ( body_str.empty() )
{
this->close();
return;
}
try
... | 20.683333 | 60 | 0.5278 | Yhgenomics |
0a52670a5390b1265809480e666ccaf8543dafbe | 6,492 | cpp | C++ | src/game/server/tf/serverbenchmark_tf.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/server/tf/serverbenchmark_tf.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/server/tf/serverbenchmark_tf.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "cbase.h"
#include "serverbenchmark_tf.h"
#include "tf_shareddefs.h"
#include "tf_bot_temp.h"
#include "entity_tfstart.h"
#include "t... | 27.508475 | 231 | 0.661892 | cstom4994 |
0a52f67ca8bc757db349a8522c99fbdab40bcf12 | 102 | cpp | C++ | tests/log_parser/src/log_parser_lib/parser_alloc.cpp | SuperOyuncuNW/vds | 87a40059150fb2523f10da9ed1a63b75ac0d531c | [
"MIT"
] | 2 | 2018-02-16T00:27:04.000Z | 2018-06-16T02:53:47.000Z | tests/log_parser/src/log_parser_lib/parser_alloc.cpp | SuperOyuncuNW/vds | 87a40059150fb2523f10da9ed1a63b75ac0d531c | [
"MIT"
] | 1 | 2018-07-20T04:18:00.000Z | 2018-07-21T12:04:57.000Z | tests/log_parser/src/log_parser_lib/parser_alloc.cpp | SuperOyuncuNW/vds | 87a40059150fb2523f10da9ed1a63b75ac0d531c | [
"MIT"
] | 12 | 2017-07-16T12:01:52.000Z | 2022-03-16T20:36:57.000Z | #include "stdafx.h"
#include "parser_alloc.h"
const parser_alloc::no_throw_t parser_alloc::no_throw;
| 20.4 | 54 | 0.794118 | SuperOyuncuNW |
0a558bf4f08aa3e55d8c770c122f81d0396c1dac | 4,719 | cpp | C++ | tensorvis/tensorvisbase/src/processors/tensorfield3dinformation.cpp | JochenJankowai/modules | 20c5c2df6af4fe5faaa87a9a61432406a6d750e0 | [
"BSD-2-Clause"
] | null | null | null | tensorvis/tensorvisbase/src/processors/tensorfield3dinformation.cpp | JochenJankowai/modules | 20c5c2df6af4fe5faaa87a9a61432406a6d750e0 | [
"BSD-2-Clause"
] | null | null | null | tensorvis/tensorvisbase/src/processors/tensorfield3dinformation.cpp | JochenJankowai/modules | 20c5c2df6af4fe5faaa87a9a61432406a6d750e0 | [
"BSD-2-Clause"
] | null | null | null | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2017-2020 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 43.293578 | 100 | 0.691884 | JochenJankowai |
0a58c614a525dfb8cdec2b7f333230eb3d1ef350 | 2,580 | cc | C++ | cell.cc | WeiningLi/Reversi | b1ac7b664535d9dff0b11e038ae2226187f298f5 | [
"MIT"
] | null | null | null | cell.cc | WeiningLi/Reversi | b1ac7b664535d9dff0b11e038ae2226187f298f5 | [
"MIT"
] | null | null | null | cell.cc | WeiningLi/Reversi | b1ac7b664535d9dff0b11e038ae2226187f298f5 | [
"MIT"
] | null | null | null | #include <iostream>
#include "cell.h"
#include "subject.h"
#include "observer.h"
#include "state.h"
#include "info.h"
using namespace std;
/*
class Cell : public Subject<Info, State>, public Observer<Info, State> {
const size_t r, c;
Colour colour = Colour::NoColour;
*/
// set location
Cell::Cell(size_t r, size_t... | 31.851852 | 156 | 0.68062 | WeiningLi |
0a597c65c80a9358fea083b13f80b58d6fc6c9cb | 2,908 | cpp | C++ | Engine/src/RoraymaEngine/Core/ImGui/ImGuiLayer.cpp | Stolkerve/RoraymaEngine | e8dcddcb6679bb7417b22eaec1d5beb9c0c82cc2 | [
"Apache-2.0"
] | null | null | null | Engine/src/RoraymaEngine/Core/ImGui/ImGuiLayer.cpp | Stolkerve/RoraymaEngine | e8dcddcb6679bb7417b22eaec1d5beb9c0c82cc2 | [
"Apache-2.0"
] | null | null | null | Engine/src/RoraymaEngine/Core/ImGui/ImGuiLayer.cpp | Stolkerve/RoraymaEngine | e8dcddcb6679bb7417b22eaec1d5beb9c0c82cc2 | [
"Apache-2.0"
] | null | null | null | #include "ImGuiLayer.hh"
#include <imgui.h>
#include <examples/imgui_impl_glfw.h>
#include <examples/imgui_impl_opengl3.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "../App.hh"
#include "../../Utils/Base64.hh"
#include "../../Scene/AssetsManager.hh"
rym::ImGuiLayer::ImGuiLayer() :
Layer("ImGui Layer"... | 28.509804 | 166 | 0.696011 | Stolkerve |
0a5ab638f1c58e3e8f1a6611e9f94be4b7b6fbf4 | 6,356 | cpp | C++ | src/tool-kern2mens.cpp | johnnymac647/humlib | c67954045fb5570915d6a1c75d9a1e36cc9bdf93 | [
"BSD-2-Clause"
] | 19 | 2016-06-18T02:03:56.000Z | 2022-02-23T17:26:32.000Z | src/tool-kern2mens.cpp | johnnymac647/humlib | c67954045fb5570915d6a1c75d9a1e36cc9bdf93 | [
"BSD-2-Clause"
] | 43 | 2017-03-09T07:32:12.000Z | 2022-03-23T20:18:35.000Z | src/tool-kern2mens.cpp | johnnymac647/humlib | c67954045fb5570915d6a1c75d9a1e36cc9bdf93 | [
"BSD-2-Clause"
] | 5 | 2019-11-14T22:24:02.000Z | 2021-09-07T18:27:21.000Z | //
// Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu>
// Creation Date: Sat May 5 21:06:29 PDT 2018
// Last Modified: Sat May 5 21:06:32 PDT 2018
// Filename: tool-kern2mens.cpp
// URL: https://github.com/craigsapp/humlib/blob/master/src/tool-kern2mens.cpp
// Syntax: C++11; humlib
//... | 23.628253 | 101 | 0.608874 | johnnymac647 |
0a5b512de3947239ae1df9746332cbe7e97abc78 | 15,680 | hpp | C++ | include/dplx/dp/encoder/core.hpp | deeplex-net/deeppack | ba39c493442238484a2efca6d364be23ffab2c8f | [
"BSL-1.0"
] | null | null | null | include/dplx/dp/encoder/core.hpp | deeplex-net/deeppack | ba39c493442238484a2efca6d364be23ffab2c8f | [
"BSL-1.0"
] | null | null | null | include/dplx/dp/encoder/core.hpp | deeplex-net/deeppack | ba39c493442238484a2efca6d364be23ffab2c8f | [
"BSL-1.0"
] | null | null | null |
// Copyright Henrik Steffen Gaßmann 2020.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// defines the following encoder specializations
// * null_type
// * mp_varargs<...>
// * void -- opera... | 29.253731 | 79 | 0.620918 | deeplex-net |
0a5b7c319a554df3879f7370de20f26fbf07e264 | 5,751 | cpp | C++ | Source/SystemQOR/MSWindows/WinQL/Application/IO/NOT_WinQLIOConnector.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQL/Application/IO/NOT_WinQLIOConnector.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQL/Application/IO/NOT_WinQLIOConnector.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //WinQLIOConnector.cpp
// Copyright Querysoft Limited 2013
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit th... | 32.308989 | 116 | 0.540949 | mfaithfull |
0a5fbf13d10b795007004b2bf95bf24e2b3dee04 | 465 | hpp | C++ | mapbox/boost_spirit_karma.hpp | sauter-hq/boost-spirit-mapbox-variant | 10de030ab654f1bea88b8b68fbe491c0dba78c83 | [
"BSL-1.0"
] | 1 | 2016-08-24T02:11:48.000Z | 2016-08-24T02:11:48.000Z | src/mapbox/boost_spirit_karma.hpp | dan-42/cpp-project-template | 40a11d1d6b54af8e3fcce1ac2a469f840db56928 | [
"MIT"
] | null | null | null | src/mapbox/boost_spirit_karma.hpp | dan-42/cpp-project-template | 40a11d1d6b54af8e3fcce1ac2a469f840db56928 | [
"MIT"
] | null | null | null | // Copyright 2016 Damien Buhl (alias daminetreg) for Fr. Sauter AG, CH-4016 BASEL
// 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)
#ifndef MAPBOX_BOOST_SPIRIT_KARMA_HPP
#define MAPBOX_BOOST_SPIRIT_KARM... | 31 | 81 | 0.763441 | sauter-hq |
0a6831617171aa9bbd3a678760f0106c40e48d00 | 15,682 | cpp | C++ | examples/PlatformIO/touch_calib/src/touch_calib.cpp | dracir9/ESP_TouchScreen | 0ef23bc9fe185c1736094a759534e42fb19dba27 | [
"MIT"
] | 6 | 2021-01-17T09:50:33.000Z | 2022-01-05T11:33:25.000Z | examples/PlatformIO/touch_calib/src/touch_calib.cpp | dracir9/ESP_TouchScreen | 0ef23bc9fe185c1736094a759534e42fb19dba27 | [
"MIT"
] | 2 | 2021-02-04T19:51:40.000Z | 2021-08-10T14:24:12.000Z | examples/PlatformIO/touch_calib/src/touch_calib.cpp | dracir9/ESP_TouchScreen | 0ef23bc9fe185c1736094a759534e42fb19dba27 | [
"MIT"
] | null | null | null |
#include "touch_calib.h"
// adjust pressure sensitivity - note works 'backwards'
#define MINPRESSURE 200
#define MAXPRESSURE 10000
#define TOLERANCE 5
#define TOUCH_PIN_YP 33
#define TOUCH_PIN_XM 15
#define TOUCH_PIN_YM 13
#define TOUCH_PIN_XP 12
TFT_eSPI tft = TFT_eSPI();
TouchScreen ts(TOUCH_PIN_XP, TOUCH_PIN_YP... | 26.945017 | 139 | 0.462122 | dracir9 |
0a6be7ee087b795ed56f61a821c0f31846bf0ad3 | 1,672 | inl | C++ | compat/thrust/system/detail/generic/temporary_buffer.inl | rjknight123/p9-skminer | 39b19a03fdf17695a1b842f4e5e00a524fd040b5 | [
"Apache-2.0"
] | 338 | 2015-01-29T17:46:42.000Z | 2021-11-15T12:28:07.000Z | compat/thrust/system/detail/generic/temporary_buffer.inl | rjknight123/p9-skminer | 39b19a03fdf17695a1b842f4e5e00a524fd040b5 | [
"Apache-2.0"
] | 80 | 2015-02-19T15:58:49.000Z | 2022-03-20T17:47:22.000Z | compat/thrust/system/detail/generic/temporary_buffer.inl | rjknight123/p9-skminer | 39b19a03fdf17695a1b842f4e5e00a524fd040b5 | [
"Apache-2.0"
] | 303 | 2015-01-05T15:55:43.000Z | 2020-11-02T20:57:28.000Z | /*
* Copyright 2008-2012 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 27.409836 | 133 | 0.735048 | rjknight123 |
0a6d79339c78980bdbbdfa46baf2c8d7e06d8a64 | 3,443 | cpp | C++ | new.cpp | aleezeh611/5-State-Model-Simulator | 383e278321cf9367ad2a39b3c89842f9a3bff718 | [
"MIT"
] | 3 | 2021-08-06T15:43:07.000Z | 2021-08-09T17:05:48.000Z | new.cpp | aleezeh611/Multithreaded-5-State-Model-Simulator | 383e278321cf9367ad2a39b3c89842f9a3bff718 | [
"MIT"
] | null | null | null | new.cpp | aleezeh611/Multithreaded-5-State-Model-Simulator | 383e278321cf9367ad2a39b3c89842f9a3bff718 | [
"MIT"
] | null | null | null | /*
Submitted by: Aleezeh Usman
Roll #: 18i-0529
*/
#include"Utility.h"
using namespace std;
int main(int argc, char* argv[]){
int file;
int fd = int(argv[1][0]);
char temp[1024]; //everything read from files will be filtered through checks and stored in one single char array
int j = 0;
... | 33.105769 | 128 | 0.452512 | aleezeh611 |
0a6e9264861c99e1794dfa87d905e72eb6a6a917 | 2,664 | cpp | C++ | libs/libmath/test/src/math/integer.cpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 1 | 2022-02-11T21:25:53.000Z | 2022-02-11T21:25:53.000Z | libs/libmath/test/src/math/integer.cpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 15 | 2021-08-21T13:41:29.000Z | 2022-03-08T14:13:43.000Z | libs/libmath/test/src/math/integer.cpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | null | null | null | // License: The Unlicense (https://unlicense.org)
#include "math/integer.hpp"
#include "doctest/doctest.h"
#include <chrono>
TEST_CASE("tybl::math::basic_unsigned_integer::basic_unsigned_integer()") {
using uint24_t = tybl::math::uint24;
uint24_t a; // uninitialized
uint24_t b; // uninitialized
uint24_t ... | 29.274725 | 104 | 0.552928 | tybl |
0a6ed131b6462892bae51a59e84162e189cf3489 | 1,458 | cpp | C++ | Project/OLD/Physics/PhysicsEngineDefiner.cpp | Conny14156/asian-viking | 3b8a0acfb4d98ee80be16c7ef646a157f9045650 | [
"Zlib",
"BSD-3-Clause"
] | 1 | 2015-03-13T22:57:35.000Z | 2015-03-13T22:57:35.000Z | Project/OLD/Physics/PhysicsEngineDefiner.cpp | Conny14156/asian-viking | 3b8a0acfb4d98ee80be16c7ef646a157f9045650 | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | Project/OLD/Physics/PhysicsEngineDefiner.cpp | Conny14156/asian-viking | 3b8a0acfb4d98ee80be16c7ef646a157f9045650 | [
"Zlib",
"BSD-3-Clause"
] | 2 | 2018-10-11T17:49:26.000Z | 2018-10-24T06:06:49.000Z | #include "Physics.hpp"
//#include "../../../Engine.hpp"
//LOW Is this really needed?
//#include "../../../Vector.h"
//#include "../../Component/RigidComponent.hpp"
ResourceType IEngineResource<PhysicsEngine>::type = ResourceType::Physics;
void PhysicsEngine::addPhysics(Component::RigidComponent* obj)
{
if (obj)
r... | 20.828571 | 74 | 0.656379 | Conny14156 |
0a7511493ef5c22cdee60b09b0734cccd4456f9b | 127 | hpp | C++ | NWNXLib/API/Mac/API/s4singleSt.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Mac/API/s4singleSt.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/s4singleSt.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
#include <cstdint>
namespace NWNXLib {
namespace API {
struct s4singleSt
{
s4singleSt* nextLink;
};
}
}
| 7.470588 | 25 | 0.677165 | acaos |
0a792235a3dedf1a19f3469685be919f1202862e | 6,786 | cpp | C++ | src/cutting.cpp | Catchouli/RealTimeMeshSlicing | 436c197778af8fbaaeea21df3ca20569be19e09d | [
"BSD-2-Clause"
] | 3 | 2021-01-18T19:00:28.000Z | 2021-03-08T21:00:43.000Z | src/cutting.cpp | Catchouli/RealTimeMeshSlicing | 436c197778af8fbaaeea21df3ca20569be19e09d | [
"BSD-2-Clause"
] | 2 | 2021-11-16T08:56:33.000Z | 2021-11-16T09:04:06.000Z | src/cutting.cpp | Catchouli/RealTimeMeshSlicing | 436c197778af8fbaaeea21df3ca20569be19e09d | [
"BSD-2-Clause"
] | null | null | null | #include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <stdio.h>
#include <math.h>
#include "maths/Vector.h"
#include "maths/Matrix.h"
#include "meshes/Mesh.h"
using namespace cut;
const char* windowTitle = "Mesh cutting example";
// Globals
HWND hWnd;
HDC hDC;
HGLRC hRC;
Mesh mesh;
Mesh left, right;... | 22.695652 | 97 | 0.709549 | Catchouli |
0a7cc30dcdc842a1dee09c2f0d894d3fa2048d83 | 3,157 | cpp | C++ | NPSVisor/SVisor/svBase_dll/source/svBase.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | NPSVisor/SVisor/svBase_dll/source/svBase.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | NPSVisor/SVisor/svBase_dll/source/svBase.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | //-------- svBase.cpp ---------------------------------------
//-----------------------------------------------------------
#include "precHeader.h"
//-----------------------------------------------------------
#include <shlwapi.h>
#include <shlobj.h>
//-----------------------------------------------------------
//#defi... | 30.355769 | 91 | 0.486221 | NPaolini |
0a87c64f035eb9fa03e91d69f16ec32d56e05227 | 8,486 | cpp | C++ | libraries/plugins/comment_cashout_logging/comment_cashout_logging_plugin.cpp | drov0/hive | 747380ac6d1d621a99c94ccf3fd24bbece754a57 | [
"MIT"
] | 283 | 2020-03-20T02:13:12.000Z | 2022-03-31T22:40:07.000Z | libraries/plugins/comment_cashout_logging/comment_cashout_logging_plugin.cpp | drov0/hive | 747380ac6d1d621a99c94ccf3fd24bbece754a57 | [
"MIT"
] | 19 | 2020-03-20T03:09:16.000Z | 2021-08-28T22:35:09.000Z | libraries/plugins/comment_cashout_logging/comment_cashout_logging_plugin.cpp | drov0/hive | 747380ac6d1d621a99c94ccf3fd24bbece754a57 | [
"MIT"
] | 94 | 2020-03-20T01:53:05.000Z | 2022-03-04T11:08:23.000Z | #include <hive/plugins/comment_cashout_logging/comment_cashout_logging_plugin.hpp>
#include <hive/chain/util/impacted.hpp>
#include <hive/protocol/config.hpp>
#include <hive/utilities/plugin_utilities.hpp>
#include <fc/io/json.hpp>
#include <fc/smart_ref_impl.hpp>
#include <boost/format.hpp>
namespace hive { namesp... | 28.572391 | 143 | 0.672048 | drov0 |
0a897145792291f0a9df7be4458d47cee40afb89 | 607 | cpp | C++ | src/5-5.cpp | mola1129/algorithm | bc7cd383b5788bce81bbb7a6f90e21a69b21e59c | [
"CC0-1.0"
] | null | null | null | src/5-5.cpp | mola1129/algorithm | bc7cd383b5788bce81bbb7a6f90e21a69b21e59c | [
"CC0-1.0"
] | null | null | null | src/5-5.cpp | mola1129/algorithm | bc7cd383b5788bce81bbb7a6f90e21a69b21e59c | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <vector>
int main() {
int N, W;
std::cin >> N >> W;
std::vector<int> a(N);
for (int i = 0; i < N; ++i) {
std::cin >> a[i];
}
std::vector<std::vector<bool>> dp(N + 1, std::vector<bool>(W + 1, false));
dp[0][0] = true; // 初期条件
for (int i = 1; i <= N; ++i) {
for (i... | 20.233333 | 76 | 0.406919 | mola1129 |
0a94cd377ae743132095a8b4de64cce96e928352 | 790 | cpp | C++ | test/Input/MotionEvent.cpp | kurocha/input | 619cbe901ebb2cfd9dd97235d30e596edc96aa14 | [
"MIT",
"Unlicense"
] | null | null | null | test/Input/MotionEvent.cpp | kurocha/input | 619cbe901ebb2cfd9dd97235d30e596edc96aa14 | [
"MIT",
"Unlicense"
] | null | null | null | test/Input/MotionEvent.cpp | kurocha/input | 619cbe901ebb2cfd9dd97235d30e596edc96aa14 | [
"MIT",
"Unlicense"
] | null | null | null | //
// MotionEvent.cpp
// This file is part of the "Input" project and released under the MIT License.
//
// Created by Samuel Williams on 23/2/2019.
// Copyright, 2019, by Samuel Williams. All rights reserved.
//
#include <UnitTest/UnitTest.hpp>
#include <Input/MotionEvent.hpp>
namespace Input
{
using namespace... | 26.333333 | 123 | 0.697468 | kurocha |
0a9a9f5d9cf41d2033140ec58c634463f040c44d | 7,221 | cpp | C++ | upgrade/pack_builder/test/TestConfigParser.cpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 1 | 2021-05-18T07:21:59.000Z | 2021-05-18T07:21:59.000Z | upgrade/pack_builder/test/TestConfigParser.cpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | null | null | null | upgrade/pack_builder/test/TestConfigParser.cpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | null | null | null | #include "gmock/gmock.h"
#include "hal/interfaces/test_doubles/FileSystemStub.hpp"
#include "infra/util/BoundedString.hpp"
#include "pack_builder/UpgradePackConfigParser.hpp"
namespace {
static const std::string completeConfig =
R"({
"output_filename": "output/goes/here",
"component... | 35.22439 | 122 | 0.704612 | oguzcanphilips |
0a9e5786a6db1d8c5fc9c0fa60a85912ccdd1c71 | 1,859 | cpp | C++ | interface/NiceTextCtrl.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | interface/NiceTextCtrl.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | interface/NiceTextCtrl.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | // NiceTextCtrl.cpp
// Copyright (c) 2010, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#include <stdafx.h>
#include "NiceTextCtrl.h"
#include "ObjList.h"
CDoubleCtrl::CDoubleCtrl(wxWindow* parent, wxWindowID id, double factor)
:wxTextCtrl(parent, id), m_factor... | 21.125 | 96 | 0.646584 | tapeguy |
0aa06e73304fb60ea5264b4ceadc14660be6574c | 16,082 | cpp | C++ | WIINOONNA NeuralNetAPI CPP/neuralnetapi/ejemplos_adaline.cpp | sciencetechworks/WINOONNA | 64a8a416f94986f8f28dc083c2403d75a7611fc4 | [
"Apache-2.0"
] | null | null | null | WIINOONNA NeuralNetAPI CPP/neuralnetapi/ejemplos_adaline.cpp | sciencetechworks/WINOONNA | 64a8a416f94986f8f28dc083c2403d75a7611fc4 | [
"Apache-2.0"
] | null | null | null | WIINOONNA NeuralNetAPI CPP/neuralnetapi/ejemplos_adaline.cpp | sciencetechworks/WINOONNA | 64a8a416f94986f8f28dc083c2403d75a7611fc4 | [
"Apache-2.0"
] | null | null | null | /**
Wonderfully Integrated Native Object Oriented Neural Network API.
STANDARD DISCLAIMER
ScienceTechWorks is furnishing this item "as is". ScienceTechWorks does not provide any warranty of the item whatsoever, whether express, implied, or statutory, including, but not limited to, any warranty of merchantabil... | 39.905707 | 644 | 0.762965 | sciencetechworks |
0aa0c957d6aa7a5659862a292492750fb4515a77 | 909 | hpp | C++ | include/pair.hpp | imesper/fibonacci-cpp | 088f2540967c4432c35cdc271fc5154a5831ba18 | [
"MIT"
] | null | null | null | include/pair.hpp | imesper/fibonacci-cpp | 088f2540967c4432c35cdc271fc5154a5831ba18 | [
"MIT"
] | null | null | null | include/pair.hpp | imesper/fibonacci-cpp | 088f2540967c4432c35cdc271fc5154a5831ba18 | [
"MIT"
] | null | null | null | #ifndef PAIR_HPP
#define PAIR_HPP
/**
* @brief Pair class that represent and do the calculations on a pairwise element.
*
*/
class Pair
{
public:
unsigned long long a;
unsigned long long b;
/**
* @brief Constructor
*
*/
Pair() {}
/**
* @brief Constructor with initializat... | 18.18 | 82 | 0.523652 | imesper |
0aa13246ac2da2ba0e92b5f188245a7f4557e0e5 | 2,422 | hpp | C++ | include/cpu.hpp | wbrbr/gbemu | 76797389302b8d3840cd76d941acf52b5624abd0 | [
"MIT"
] | 1 | 2021-05-06T18:50:46.000Z | 2021-05-06T18:50:46.000Z | include/cpu.hpp | wbrbr/gbemu | 76797389302b8d3840cd76d941acf52b5624abd0 | [
"MIT"
] | null | null | null | include/cpu.hpp | wbrbr/gbemu | 76797389302b8d3840cd76d941acf52b5624abd0 | [
"MIT"
] | null | null | null | #ifndef GBEMU_CPU_HPP
#define GBEMU_CPU_HPP
#include <stdint.h>
struct Ppu;
class Timer;
struct SideEffects
{
uint8_t cycles;
bool break_;
};
enum Registers {
REG_A,
REG_B,
REG_C,
REG_D,
REG_E,
REG_L,
REG_H
};
struct Mbc
{
virtual ~Mbc();
virtual void load(uint8_t* cartri... | 17.550725 | 65 | 0.633774 | wbrbr |
0aa32318ccc9e2e4b1fd9a981d853e8fe685bdf8 | 5,747 | hpp | C++ | opencv2.framework/Versions/A/Headers/text/ocr.hpp | starbadboy/TotoScanner | c97bcf1f475b8c6da2664b6e2df817860864445a | [
"MIT"
] | 150 | 2015-01-06T10:59:06.000Z | 2017-02-25T15:49:36.000Z | opencv2.framework/Versions/A/Headers/text/ocr.hpp | starbadboy/TotoScanner | c97bcf1f475b8c6da2664b6e2df817860864445a | [
"MIT"
] | 1 | 2015-05-15T19:41:42.000Z | 2015-05-15T19:41:42.000Z | opencv2.framework/Versions/A/Headers/text/ocr.hpp | starbadboy/TotoScanner | c97bcf1f475b8c6da2664b6e2df817860864445a | [
"MIT"
] | 46 | 2015-01-03T00:47:14.000Z | 2017-03-10T19:05:34.000Z | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 42.88806 | 152 | 0.654254 | starbadboy |
0aa64b0630f8f2c63be70097e9de2d1297fad651 | 4,994 | cpp | C++ | gateway_client_lua/Objs_class_lite.cpp | denghe/xxlib_simple_cpp | 6aa72124c08e85ff1771bf717b1ea4e4b319c16e | [
"MIT"
] | 4 | 2020-06-05T03:02:09.000Z | 2020-11-09T05:25:33.000Z | gateway_client_lua/Objs_class_lite.cpp | denghe/xxlib_simple_cpp | 6aa72124c08e85ff1771bf717b1ea4e4b319c16e | [
"MIT"
] | null | null | null | gateway_client_lua/Objs_class_lite.cpp | denghe/xxlib_simple_cpp | 6aa72124c08e85ff1771bf717b1ea4e4b319c16e | [
"MIT"
] | 4 | 2020-06-18T02:01:49.000Z | 2020-10-28T07:27:16.000Z | #include "Objs_class_lite.h"
#include "Objs_class_lite.cpp.inc"
namespace Objs {
void PkgGenTypes::RegisterTo(xx::ObjectHelper& oh) {
oh.Register<Objs::CppFish>();
}
}
namespace xx {
}
namespace Objs {
FishBase::FishBase(FishBase&& o) noexcept {
this->operator=(std::move(o));
}
FishBase& Fi... | 35.169014 | 94 | 0.57509 | denghe |
0aa974d7969683d39109099eb0822263c7a65a5b | 495 | cpp | C++ | online_judges/cf/1251/e1/e1.cpp | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | 2 | 2018-02-20T14:44:57.000Z | 2018-02-20T14:45:03.000Z | online_judges/cf/1251/e1/e1.cpp | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | null | null | null | online_judges/cf/1251/e1/e1.cpp | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
typedef long long ll;
const int N = 5100;
int n;
pii arr[N];
ll dp[N];
int main() {
ios_base::sync_with_stdio(0);
cin.tie(NULL);
int T;
cin >> T;
while (T--) {
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> a >> b;
a... | 16.5 | 40 | 0.456566 | miaortizma |
0ab73b04ae74a69f91c61452f8c33f6f70e07bc4 | 3,598 | cpp | C++ | android-31/android/mtp/MtpObjectInfo.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/mtp/MtpObjectInfo.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/mtp/MtpObjectInfo.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JString.hpp"
#include "./MtpObjectInfo.hpp"
namespace android::mtp
{
// Fields
// QJniObject forward
MtpObjectInfo::MtpObjectInfo(QJniObject obj) : JObject(obj) {}
// Constructors
// Methods
jint MtpObjectInfo::getAssociationDesc() const
{
return callMethod<jint>(
"getAssociationDesc"... | 16.971698 | 63 | 0.658421 | YJBeetle |
0aba897e3edf431158d8fc59558495ba7b7d8d64 | 2,759 | hpp | C++ | gpcl/object_pool.hpp | Chingyat/gpcl | c2702b8b13fa948f6753285ba62455ddf9413578 | [
"BSL-1.0"
] | 2 | 2021-02-10T11:51:25.000Z | 2021-12-20T12:35:36.000Z | gpcl/object_pool.hpp | Chingyat/gpcl | c2702b8b13fa948f6753285ba62455ddf9413578 | [
"BSL-1.0"
] | 2 | 2021-11-28T03:09:15.000Z | 2021-11-29T15:08:43.000Z | gpcl/object_pool.hpp | Chingyat/gpcl | c2702b8b13fa948f6753285ba62455ddf9413578 | [
"BSL-1.0"
] | null | null | null | //
// object_pool.hpp
// ~~~~~~~~~~~~~~~
//
// Copyright (c) 2020 Zhengyi Fu (tsingyat at outlook dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef GPCL_OBJECT_POOL_HPP
#define GPCL_OBJECT_POOL... | 22.991667 | 79 | 0.661472 | Chingyat |
0ac2b12c61a091b9c89ef2fee818e75164b9349e | 3,011 | cpp | C++ | participantsregister.cpp | johanremilien/concilia | 0f81517007e47f2d91bc260217e2912c61d65843 | [
"MIT"
] | 1 | 2022-03-20T11:00:06.000Z | 2022-03-20T11:00:06.000Z | participantsregister.cpp | johanremilien/concilia | 0f81517007e47f2d91bc260217e2912c61d65843 | [
"MIT"
] | null | null | null | participantsregister.cpp | johanremilien/concilia | 0f81517007e47f2d91bc260217e2912c61d65843 | [
"MIT"
] | null | null | null | #include "participantsregister.h"
#include "participant.h"
const Participant &ParticipantsRegister::create(QString firstName, QString lastName)
{
return rename(create().id(), firstName, lastName);
}
QString ParticipantsRegister::firstName(ID id) const
{
return value(id).firstName();
}
QString ParticipantsReg... | 27.126126 | 100 | 0.673198 | johanremilien |
0ac33bcb00c61dfd09b41e78538870fe677ae8ab | 585 | cpp | C++ | C++/soln-graph-problems/minimum-number-of-vertices-to-reach-all-nodes.cpp | ansumandas441/Data-Structures-and-Algorithms | 8fa30569b974c8e24e761df266072069f1dfe033 | [
"MIT"
] | 120 | 2021-02-19T07:39:50.000Z | 2022-02-19T14:55:28.000Z | C++/soln-graph-problems/minimum-number-of-vertices-to-reach-all-nodes.cpp | ansumandas441/Data-Structures-and-Algorithms | 8fa30569b974c8e24e761df266072069f1dfe033 | [
"MIT"
] | null | null | null | C++/soln-graph-problems/minimum-number-of-vertices-to-reach-all-nodes.cpp | ansumandas441/Data-Structures-and-Algorithms | 8fa30569b974c8e24e761df266072069f1dfe033 | [
"MIT"
] | 22 | 2021-06-21T17:21:27.000Z | 2021-12-24T01:56:29.000Z | /**
@author Farheen Bano
Date 24-07-2021
Reference-
https://leetcode.com/problems/minimum-number-of-vertices-to-reach-all-nodes
*/
class Solution {
public:
vector<int> findSmallestSetOfVertices(int n, vector<vector<int>>& edges) {
vector<int> result;
vector<int> indegree(n,0);
... | 20.892857 | 78 | 0.521368 | ansumandas441 |
0ac3ce7244c9b0941a512c821043670d661284b8 | 1,998 | hpp | C++ | math2D.hpp | Xelonidas/OdysseyGameEngine | f19082f07fbd9b8045e4cf304c656e9965c49d7e | [
"MIT"
] | 1 | 2021-07-04T11:06:05.000Z | 2021-07-04T11:06:05.000Z | math2D.hpp | Xelonidas/OdysseyGameEngine | f19082f07fbd9b8045e4cf304c656e9965c49d7e | [
"MIT"
] | null | null | null | math2D.hpp | Xelonidas/OdysseyGameEngine | f19082f07fbd9b8045e4cf304c656e9965c49d7e | [
"MIT"
] | null | null | null | #pragma once
class vector2 {
public:
float x, y;
vector2(float dx, float dy) : x(dx), y(dy) { }
vector2() : x(0), y(0) { }
friend std::ostream& operator<<(std::ostream& os, const vector2& vec) {
return os<<"["<<vec.x<<" "<<vec.y<<"]";
}
vector2 operator+( vector2 vec2) {
return vector2(x + vec2.x, y +... | 18.5 | 112 | 0.565566 | Xelonidas |
0ac70b4b2664eaea4e000559b51863e8633a731d | 3,686 | cpp | C++ | altona/main/extra/freecam.cpp | wzman/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 47 | 2015-03-22T05:58:47.000Z | 2022-03-29T19:13:37.000Z | altona/main/extra/freecam.cpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | null | null | null | altona/main/extra/freecam.cpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 16 | 2015-12-31T08:13:18.000Z | 2021-03-09T02:07:30.000Z | /*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... | 22.753086 | 86 | 0.494303 | wzman |
bd57b512011fdee7514969a84f10e99dfef3c668 | 1,396 | hpp | C++ | src/stdplus/fd/gmock.hpp | pzh2386034/stdplus | 9148977c89406ee3b096dc5a3bd9e8f22abb7764 | [
"Apache-2.0"
] | 4 | 2018-11-05T10:44:47.000Z | 2020-11-20T08:16:15.000Z | src/stdplus/fd/gmock.hpp | pzh2386034/stdplus | 9148977c89406ee3b096dc5a3bd9e8f22abb7764 | [
"Apache-2.0"
] | 1 | 2020-11-18T22:40:50.000Z | 2020-11-19T16:14:18.000Z | src/stdplus/fd/gmock.hpp | pzh2386034/stdplus | 9148977c89406ee3b096dc5a3bd9e8f22abb7764 | [
"Apache-2.0"
] | 2 | 2018-11-05T10:44:35.000Z | 2022-01-14T01:47:39.000Z | #pragma once
#include <gmock/gmock.h>
#include <stdplus/fd/intf.hpp>
namespace stdplus
{
namespace fd
{
class FdMock : public Fd
{
public:
MOCK_METHOD(span<std::byte>, read, (span<std::byte> buf), (override));
MOCK_METHOD(span<std::byte>, recv, (span<std::byte> buf, RecvFlags flags),
(overri... | 34.9 | 78 | 0.640401 | pzh2386034 |
bd5929d43bc1a14c6ae84b16a5112bed88f3f0fb | 16,009 | cpp | C++ | ionGraphicsGL/COpenGLImplementation.cpp | iondune/ionEngine | 7ce3394dafbabf0e0bb9f5d07dbfae31161800d4 | [
"MIT"
] | 36 | 2015-06-28T14:53:06.000Z | 2021-10-31T04:26:53.000Z | ionGraphicsGL/COpenGLImplementation.cpp | iondune/ionEngine | 7ce3394dafbabf0e0bb9f5d07dbfae31161800d4 | [
"MIT"
] | 90 | 2015-05-01T07:21:43.000Z | 2017-08-30T01:16:41.000Z | ionGraphicsGL/COpenGLImplementation.cpp | iondune/ionEngine | 7ce3394dafbabf0e0bb9f5d07dbfae31161800d4 | [
"MIT"
] | 9 | 2016-04-08T07:48:02.000Z | 2019-07-22T15:13:53.000Z |
#include "COpenGLImplementation.h"
#include "Utilities.h"
#include "CVertexBuffer.h"
#include "CIndexBuffer.h"
#include "CVertexShader.h"
#include "CGeometryShader.h"
#include "CPixelShader.h"
#include "CShaderProgram.h"
#include "CPipelineState.h"
#include "CRenderTarget.h"
#include "CTexture.h"
#includ... | 32.406883 | 219 | 0.699232 | iondune |
bd5f9aebf1b8d0260535f4e1ee5ba16dac6f9943 | 2,579 | cpp | C++ | examples/mavshell/mavshell.cpp | rworrall/MAVSDK | 634f171bb5b492e2d5bd6453f54e7e88c603899e | [
"BSD-3-Clause"
] | 275 | 2019-06-13T17:50:40.000Z | 2022-03-28T01:03:01.000Z | examples/mavshell/mavshell.cpp | rworrall/MAVSDK | 634f171bb5b492e2d5bd6453f54e7e88c603899e | [
"BSD-3-Clause"
] | 655 | 2019-06-07T13:08:12.000Z | 2022-03-23T04:51:21.000Z | examples/mavshell/mavshell.cpp | rworrall/MAVSDK | 634f171bb5b492e2d5bd6453f54e7e88c603899e | [
"BSD-3-Clause"
] | 299 | 2019-06-10T06:58:58.000Z | 2022-03-25T04:14:34.000Z | #include <future>
#include <mavsdk/mavsdk.h>
#include <mavsdk/plugins/shell/shell.h>
#include <iostream>
using namespace mavsdk;
using std::chrono::seconds;
void run_interactive_shell(std::shared_ptr<System> system);
void usage(const std::string& bin_name)
{
std::cerr << "Usage : " << bin_name << " <connection_u... | 26.864583 | 84 | 0.596355 | rworrall |
bd632523d77517acccb11eae8803be11e7d47a55 | 428 | cpp | C++ | source/Container/ContainerRun.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 8 | 2015-01-23T05:41:46.000Z | 2019-11-20T05:10:27.000Z | source/Container/ContainerRun.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | null | null | null | source/Container/ContainerRun.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 4 | 2015-05-05T05:15:43.000Z | 2020-03-07T11:10:56.000Z | /*********************************************************************************************************
* ContainerRun.cpp
* Note: Phoenix Editor Container Features
* Date: @2015.06
* E-mail:<forcemz@outlook.com>
* Copyright (C) 2015 The ForceStudio All Rights Reserved.
**********************************************... | 38.909091 | 107 | 0.380841 | fstudio |
bd6b8ad363503c7b21e489e46bb5df8c53fc71fa | 1,414 | hpp | C++ | c++/position.hpp | ToruNiina/rigid_disk | 4c4fa95674feb17e273515e45b0707f914c29e5e | [
"MIT"
] | null | null | null | c++/position.hpp | ToruNiina/rigid_disk | 4c4fa95674feb17e273515e45b0707f914c29e5e | [
"MIT"
] | null | null | null | c++/position.hpp | ToruNiina/rigid_disk | 4c4fa95674feb17e273515e45b0707f914c29e5e | [
"MIT"
] | null | null | null | #ifndef MCMC_2D_DISK_POSITION_HPP
#define MCMC_2D_DISK_POSITION_HPP
#include <cmath>
namespace rigid_disk
{
struct position
{
double x, y;
position& operator+=(const position& rhs) noexcept
{
x += rhs.x;
y += rhs.y;
}
position& operator-=(const position& rhs) noexcept
{
... | 21.424242 | 76 | 0.634371 | ToruNiina |
bd6efa2925919a5db622eb533e256f4669f45628 | 359 | cpp | C++ | tests/auto/test_shareddata/mydata.cpp | huobiapi/REST-QTCpp-demo | 5c7a3f4fe7b39b14c62c820d9e52de92083a8206 | [
"MIT"
] | 2 | 2019-10-08T05:29:43.000Z | 2021-05-25T17:32:22.000Z | tests/auto/test_shareddata/mydata.cpp | huobiapi/REST-QTCpp-demo | 5c7a3f4fe7b39b14c62c820d9e52de92083a8206 | [
"MIT"
] | null | null | null | tests/auto/test_shareddata/mydata.cpp | huobiapi/REST-QTCpp-demo | 5c7a3f4fe7b39b14c62c820d9e52de92083a8206 | [
"MIT"
] | 2 | 2021-09-11T13:55:56.000Z | 2022-01-20T12:48:23.000Z | #include "mydata.h"
#include "mydata_p.h"
MyData::MyData()
: d(new MyDataPrivate)
{
}
MyData::MyData(const MyData &other)
: d(other.d)
{}
MyData& MyData::operator=(const MyData &other)
{
d = other.d;
return *this;
}
MyData::~MyData(){}
qint64 MyData::getId() const
{
return d->id;
}
void MyData... | 11.966667 | 46 | 0.607242 | huobiapi |
bd708597f01de623095eef3816e027e76aac1999 | 3,606 | cc | C++ | src/xenia/gpu/gl4/wgl_control.cc | Parovozik/Xenia_UI | 3f12becc1845a8fc264ae74d25e28e543f61b5b4 | [
"BSD-3-Clause"
] | null | null | null | src/xenia/gpu/gl4/wgl_control.cc | Parovozik/Xenia_UI | 3f12becc1845a8fc264ae74d25e28e543f61b5b4 | [
"BSD-3-Clause"
] | null | null | null | src/xenia/gpu/gl4/wgl_control.cc | Parovozik/Xenia_UI | 3f12becc1845a8fc264ae74d25e28e543f61b5b4 | [
"BSD-3-Clause"
] | 1 | 2018-10-16T16:45:27.000Z | 2018-10-16T16:45:27.000Z | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. ... | 29.801653 | 80 | 0.613145 | Parovozik |
bd758c2b34dcf3370103d78b8b4713370a4041ad | 659 | cpp | C++ | tests/SearchInsertPositionTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | tests/SearchInsertPositionTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | tests/SearchInsertPositionTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "catch.hpp"
#include "SearchInsertPosition.hpp"
TEST_CASE("Search Insert Position") {
SearchInsertPosition s;
SECTION("Sample tests") {
vector<int> nums{1, 3, 5, 6};
REQUIRE(s.searchInsert(nums, 5) == 2);
REQUIRE(s.searchInsert(nums, 2) == 1);
REQUIRE(s.searchInsert(nu... | 27.458333 | 46 | 0.572079 | yanzhe-chen |
bd7c88262f197200ae2eedd73c04708de3bd8869 | 2,345 | cpp | C++ | Person.cpp | luisfelipe7/GitTests | 546498e58935ad7606e1a03dbd1e8c0eba0847b4 | [
"MIT"
] | null | null | null | Person.cpp | luisfelipe7/GitTests | 546498e58935ad7606e1a03dbd1e8c0eba0847b4 | [
"MIT"
] | null | null | null | Person.cpp | luisfelipe7/GitTests | 546498e58935ad7606e1a03dbd1e8c0eba0847b4 | [
"MIT"
] | null | null | null | /*
Author: Felipe Castro
Class: Main.cpp
Information: Created to perform simple tests with Git
*/
#include <iostream>
using namespace std;
class Person
{
// Attributes
private:
string name;
string id;
int age;
// Constructors
public:
// Without Parameters
Person()
{
name =... | 23.686869 | 87 | 0.51258 | luisfelipe7 |
bd7e24028a85103aeaf3f8061c78bd7e46b68a62 | 1,852 | cpp | C++ | Source/PluginMapViewImporting/PluginMapViewActorFactory.cpp | Sabrave/PluginStreetMap | d47dc74aad393d92a8dae14292cce8acb0568276 | [
"MIT"
] | 3 | 2022-02-19T05:39:29.000Z | 2022-02-19T10:59:09.000Z | Source/PluginMapViewImporting/PluginMapViewActorFactory.cpp | Sabrave/PluginMapView | d47dc74aad393d92a8dae14292cce8acb0568276 | [
"MIT"
] | null | null | null | Source/PluginMapViewImporting/PluginMapViewActorFactory.cpp | Sabrave/PluginMapView | d47dc74aad393d92a8dae14292cce8acb0568276 | [
"MIT"
] | null | null | null | // Copyright 2017 Zhongqi Shan. All Rights Reserved.
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "PluginMapViewImporting.h"
#include "AssetData.h"
#include "PluginMapViewActorFactory.h"
#include "PluginMapViewActor.h"
#include "PluginMapViewComponent.h"
#include "PluginMapView.h"
/////////... | 37.04 | 104 | 0.776998 | Sabrave |
bd869c4fd1130c5f8d1339136416f84f415d55d8 | 554 | cpp | C++ | opencl/source/gen11/windows/command_stream_receiver_gen11.cpp | kcencele/compute-runtime | bec8cdd6f1392bf0549e3b9340b4926b6e84f89a | [
"Intel",
"MIT"
] | 1 | 2019-03-01T13:54:45.000Z | 2019-03-01T13:54:45.000Z | opencl/source/gen11/windows/command_stream_receiver_gen11.cpp | kcencele/compute-runtime | bec8cdd6f1392bf0549e3b9340b4926b6e84f89a | [
"Intel",
"MIT"
] | 5 | 2019-03-26T17:26:07.000Z | 2021-03-30T12:17:10.000Z | opencl/source/gen11/windows/command_stream_receiver_gen11.cpp | kcencele/compute-runtime | bec8cdd6f1392bf0549e3b9340b4926b6e84f89a | [
"Intel",
"MIT"
] | 4 | 2018-05-09T10:04:27.000Z | 2018-07-12T13:33:31.000Z | /*
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.inl"
#include "opencl/source/os_interface/windows/device_command_stream.inl"
#include "opencl/source/os_interface/windows/wddm_device_command_stream.inl... | 30.777778 | 86 | 0.82852 | kcencele |
bd8de21dbd527d95bbd46f72044a17a7ecc18ea5 | 284 | hpp | C++ | include/shape.hpp | vorsitzende/libgeo | fdcd88bd5029433b7ed75c69bfbaca547af1b2e2 | [
"MIT"
] | null | null | null | include/shape.hpp | vorsitzende/libgeo | fdcd88bd5029433b7ed75c69bfbaca547af1b2e2 | [
"MIT"
] | 1 | 2019-06-13T14:18:12.000Z | 2019-06-13T14:18:12.000Z | include/shape.hpp | vorsitzende/libgeo | fdcd88bd5029433b7ed75c69bfbaca547af1b2e2 | [
"MIT"
] | 1 | 2019-06-12T16:44:39.000Z | 2019-06-12T16:44:39.000Z |
#ifndef _SHAPE_HPP_
#define _SHAPE_HPP_
#include "point.hpp"
namespace geo {
class Shape {
public:
virtual const Point center (void) const = 0;
virtual double_t area (void) const = 0;
virtual double_t perimeter (void) const = 0;
};
};
#endif /* _SHAPE_HPP_ */
| 14.947368 | 48 | 0.665493 | vorsitzende |
bd8faa0459d0c71a0e2a8d5b9d58815b2eff0c9c | 1,949 | hpp | C++ | src/modules/common/include/common/rotate_rectangle.hpp | mangosroom/mvk-nodes | 0ec3a7853e949d192ee54daeaf25875cd3cb6d18 | [
"Apache-2.0"
] | 5 | 2021-12-24T10:18:46.000Z | 2022-03-15T14:11:04.000Z | src/modules/common/include/common/rotate_rectangle.hpp | mangosroom/mvk-nodes | 0ec3a7853e949d192ee54daeaf25875cd3cb6d18 | [
"Apache-2.0"
] | null | null | null | src/modules/common/include/common/rotate_rectangle.hpp | mangosroom/mvk-nodes | 0ec3a7853e949d192ee54daeaf25875cd3cb6d18 | [
"Apache-2.0"
] | null | null | null | /**
* @file rotate_rectangle.hpp
* @author mango (2321544362@qq.com)
* @brief 旋转矩形类
* @version 0.1
* @date 2021-08-24
*
* @copyright Copyright (c) 2021
*
*/
#ifndef MVK_ROTATE_RECTANGLE_HPP_
#define MVK_ROTATE_RECTANGLE_HPP_
#include "common/point.hpp"
#include <array>
#include <cmath>
namespace mvk
{
... | 21.898876 | 65 | 0.448948 | mangosroom |
bd9067da4cf6b3a8f1341a939ac1a6135f81059f | 699 | cpp | C++ | Emissions/Data/Type_Map.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | Emissions/Data/Type_Map.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | Emissions/Data/Type_Map.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Type_Map.cpp - map for types and subtypes
//*********************************************************
#include "Type_Map.hpp"
//---------------------------------------------------------
// Type_Map constructor
//-------------------------------------------... | 26.884615 | 60 | 0.34907 | kravitz |
bd9166b86ceee5f42cf1844d81ac1ee77a8c809a | 2,452 | hpp | C++ | modules/core/linalg/include/nt2/linalg/functions/mtimes.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/linalg/include/nt2/linalg/functions/mtimes.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/linalg/include/nt2/linalg/functions/mtimes.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// Se... | 31.844156 | 171 | 0.631321 | psiha |
bd94a0bbeef9927267c298c95a545a2c24ccda23 | 1,576 | hpp | C++ | iroha-master/shared_model/interfaces/base/noncopyable_model_primitive.hpp | rogelcorral/My-Iroha-Playground | c370a114e6039f8667c2b68b7dcb10e4c387c67d | [
"Apache-2.0"
] | 1 | 2019-06-23T12:47:19.000Z | 2019-06-23T12:47:19.000Z | shared_model/interfaces/base/noncopyable_model_primitive.hpp | ecsantana76/iroha | 9cc430bb2c8eb885393e2a636fa92d1e605443ae | [
"Apache-2.0"
] | 8 | 2017-12-25T05:25:58.000Z | 2018-01-20T10:12:45.000Z | shared_model/interfaces/base/noncopyable_model_primitive.hpp | ecsantana76/iroha | 9cc430bb2c8eb885393e2a636fa92d1e605443ae | [
"Apache-2.0"
] | 1 | 2018-01-18T18:23:09.000Z | 2018-01-18T18:23:09.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_NONCOPYABLE_MODEL_PRIMITIVE_HPP
#define IROHA_NONCOPYABLE_MODEL_PRIMITIVE_HPP
#include <ciso646>
#include "utils/string_builder.hpp"
namespace shared_model {
namespace interface {
/**
* Base... | 28.654545 | 80 | 0.676396 | rogelcorral |
bd9523a29b81f0408999f8359ea6a43d31122bd7 | 1,004 | cpp | C++ | Automata/FA.cpp | yufengzjj/ERE | 5c62b344472754dc67b75038de7193e653e1e37d | [
"MIT"
] | 23 | 2016-10-21T08:20:12.000Z | 2021-09-30T08:17:51.000Z | Automata/FA.cpp | yufengzjj/ERE | 5c62b344472754dc67b75038de7193e653e1e37d | [
"MIT"
] | null | null | null | Automata/FA.cpp | yufengzjj/ERE | 5c62b344472754dc67b75038de7193e653e1e37d | [
"MIT"
] | 11 | 2016-10-20T16:12:49.000Z | 2022-01-16T12:37:25.000Z | #include "FA.h"
#include <limits>
std::string FA::alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
FA::FA(const alphabet_type& d)
:ato_(d, alphabet)
{
}
FA::~FA()
{
}
void FA::print(std::string name)
{
ato_.print(name);
}
bool FA::check(under_type str)
{
auto acp = ato_.get_accept... | 12.55 | 92 | 0.620518 | yufengzjj |
bd99c6b07eca85502a3b686d3c0b2e1985c8c3d9 | 2,902 | cpp | C++ | src/adiar/bdd/count.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | src/adiar/bdd/count.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | src/adiar/bdd/count.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | #include <adiar/bdd.h>
#include <adiar/data.h>
#include <adiar/internal/assert.h>
#include <adiar/internal/count.h>
namespace adiar
{
//////////////////////////////////////////////////////////////////////////////
// Data structures
struct sat_sum : path_sum
{
label_t levels_visited = 0u;
};
////////... | 28.732673 | 102 | 0.541351 | logsem |
bd9be4ae070a8ba2b048101da98f3b049e6d3799 | 1,460 | cpp | C++ | src/libtriton/bindings/python/namespaces/initSolverNamespace.cpp | patacca/Triton | e5b6e089efba6bac0731d9abb306351b150ab872 | [
"Apache-2.0"
] | 2,337 | 2015-06-03T10:26:30.000Z | 2022-03-30T02:42:26.000Z | src/libtriton/bindings/python/namespaces/initSolverNamespace.cpp | patacca/Triton | e5b6e089efba6bac0731d9abb306351b150ab872 | [
"Apache-2.0"
] | 914 | 2015-06-03T10:56:48.000Z | 2022-03-30T11:11:40.000Z | src/libtriton/bindings/python/namespaces/initSolverNamespace.cpp | patacca/Triton | e5b6e089efba6bac0731d9abb306351b150ab872 | [
"Apache-2.0"
] | 521 | 2015-06-03T10:41:15.000Z | 2022-03-26T15:45:08.000Z | //! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the Apache License 2.0.
*/
#include <triton/pythonBindings.hpp>
#include <triton/pythonUtils.hpp>
#include <triton/pythonXFunctions.hpp>
#include <triton/solverEnums.hpp>
/*! \page py_SOLVER_page SOLVER
\brief [**python api**] All... | 26.545455 | 108 | 0.708904 | patacca |
bd9d3305071f376c9c0fed7afcd17ec31be722eb | 2,851 | cc | C++ | cavs/backend/op_decl_pooling.cc | xsz/HPops | 35bcc0316fe313529b67472ad6702ceacf771d01 | [
"Apache-2.0"
] | 9 | 2020-09-19T06:29:48.000Z | 2022-01-31T09:24:25.000Z | cavs/backend/op_decl_pooling.cc | xsz/HPops | 35bcc0316fe313529b67472ad6702ceacf771d01 | [
"Apache-2.0"
] | 1 | 2021-02-15T05:56:57.000Z | 2021-02-17T21:15:27.000Z | cavs/backend/op_decl_pooling.cc | xsz/HPops | 35bcc0316fe313529b67472ad6702ceacf771d01 | [
"Apache-2.0"
] | 3 | 2020-09-19T16:22:47.000Z | 2021-02-16T07:34:47.000Z | #include "cavs/backend/op_decl.h"
#include "cavs/util/op_util.h"
#include "cavs/util/op_def_builder.h"
using std::vector;
namespace backend {
class PoolingOpDecl : public OpDecl{
public:
PoolingOpDecl(const OpDef& def) : OpDecl(def) {};
void MakeGradient(vector<OpDef>* grad) override {
CHECK(grad->size() ==... | 34.768293 | 86 | 0.652052 | xsz |
bda13936261859ae2642a2cc7f807d00f1722450 | 362 | cpp | C++ | Source/JxCollection.cpp | CasparKielwein/Jinx | db991c815ddb21e37adfb69e037b36592ad4c2de | [
"MIT"
] | 210 | 2016-07-08T23:50:26.000Z | 2022-03-28T21:44:38.000Z | Source/JxCollection.cpp | CasparKielwein/Jinx | db991c815ddb21e37adfb69e037b36592ad4c2de | [
"MIT"
] | 19 | 2017-12-31T00:07:54.000Z | 2022-03-28T02:30:04.000Z | Source/JxCollection.cpp | CasparKielwein/Jinx | db991c815ddb21e37adfb69e037b36592ad4c2de | [
"MIT"
] | 10 | 2017-07-08T05:07:06.000Z | 2021-08-17T15:56:24.000Z | /*
The Jinx library is distributed under the MIT License (MIT)
https://opensource.org/licenses/MIT
See LICENSE.TXT or Jinx.h for license details.
Copyright (c) 2016 James Boer
*/
#include "JxInternal.h"
namespace Jinx
{
inline_t CollectionPtr CreateCollection()
{
return std::allocate_shared<Collection>(Allocator... | 18.1 | 67 | 0.748619 | CasparKielwein |
bda9caa639e88eadf7b06e337ef487e9ef5270fb | 23,107 | cpp | C++ | contract/lite-client/crypto/test/test-cells.cpp | TONCommunity/ton-sync-payments-channel | 2e5cd4902406923fdba32b8309ab8c40db3ae5bc | [
"MIT"
] | 5 | 2019-10-15T18:26:06.000Z | 2020-05-09T14:09:49.000Z | contract/lite-client/crypto/test/test-cells.cpp | TONCommunity/ton-sync-payments-channel | 2e5cd4902406923fdba32b8309ab8c40db3ae5bc | [
"MIT"
] | null | null | null | contract/lite-client/crypto/test/test-cells.cpp | TONCommunity/ton-sync-payments-channel | 2e5cd4902406923fdba32b8309ab8c40db3ae5bc | [
"MIT"
] | 2 | 2020-07-24T16:09:02.000Z | 2021-08-18T17:08:28.000Z | /*
This file is part of TON Blockchain Library.
TON Blockchain Library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later ver... | 35.170472 | 188 | 0.576535 | TONCommunity |
bdb48dd9f21bd1b84e14311330dc1f6e8b7fc88f | 5,607 | cpp | C++ | Samples/Win7Samples/netds/upnp/genericucp/cpp/deviceprop.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/netds/upnp/genericucp/cpp/deviceprop.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/netds/upnp/genericucp/cpp/deviceprop.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.
//
// Copyright (c) Microsoft Corporation. All rights reserved
//
// DeviceProp.cpp ... | 25.371041 | 91 | 0.601391 | windows-development |
bdb58c0dee08419c68e110260a126798512364c5 | 936 | cpp | C++ | meta/source/net/message/nodes/GetNodesMsgEx.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | meta/source/net/message/nodes/GetNodesMsgEx.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | meta/source/net/message/nodes/GetNodesMsgEx.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | #include <common/net/message/nodes/GetNodesRespMsg.h>
#include <program/Program.h>
#include "GetNodesMsgEx.h"
#include <boost/lexical_cast.hpp>
bool GetNodesMsgEx::processIncoming(ResponseContext& ctx)
{
LogContext log("GetNodes incoming");
NodeType nodeType = (NodeType)getValue();
LOG_DEBUG_CONTEXT(log, 5... | 24.631579 | 88 | 0.67735 | TomatoYoung |
bdb634561bdb2032c650bbd840df2db976b4a223 | 160 | hh | C++ | include/hostname.hh | dkozinski/uvgRTP | c74d6a75a7c226cec919ab2639d13f6a770d069c | [
"BSD-2-Clause"
] | null | null | null | include/hostname.hh | dkozinski/uvgRTP | c74d6a75a7c226cec919ab2639d13f6a770d069c | [
"BSD-2-Clause"
] | null | null | null | include/hostname.hh | dkozinski/uvgRTP | c74d6a75a7c226cec919ab2639d13f6a770d069c | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include <string>
namespace uvg_rtp {
namespace hostname {
std::string get_hostname();
std::string get_username();
};
};
| 14.545455 | 35 | 0.6125 | dkozinski |
bdba181f5b1bc18da94c6c85bd616114d6bdd1bf | 5,559 | cpp | C++ | ESCenterlines/ESCenterlinesScreen.cpp | spof95/ESCenterlines | 9d7ec99239a778d277aaf7f6282715b161136a84 | [
"MIT"
] | null | null | null | ESCenterlines/ESCenterlinesScreen.cpp | spof95/ESCenterlines | 9d7ec99239a778d277aaf7f6282715b161136a84 | [
"MIT"
] | null | null | null | ESCenterlines/ESCenterlinesScreen.cpp | spof95/ESCenterlines | 9d7ec99239a778d277aaf7f6282715b161136a84 | [
"MIT"
] | null | null | null | #include "ESCenterlinesScreen.h"
CESCenterlinesScreen::CESCenterlinesScreen(FILETIME& sTime, CCenterlineSettings& centerline_settings)
: ActiveRunwaysUpdateTime(sTime), centerline_settings(centerline_settings)
{
ActiveRunwaysLastUpdateTime = sTime;
}
CESCenterlinesScreen::~CESCenterlinesScreen()
{
}
void CESCente... | 27.934673 | 122 | 0.74258 | spof95 |
bdbc2cf6209df15482bb5fb20293b5fd12790f89 | 1,128 | cc | C++ | openmi/core/distribute_runtime/distribute_connector.cc | ComputationalAdvertising/openmi | 1d986ada6c57fecf482f4b8dc4d2488cb0189a3e | [
"Apache-2.0"
] | null | null | null | openmi/core/distribute_runtime/distribute_connector.cc | ComputationalAdvertising/openmi | 1d986ada6c57fecf482f4b8dc4d2488cb0189a3e | [
"Apache-2.0"
] | null | null | null | openmi/core/distribute_runtime/distribute_connector.cc | ComputationalAdvertising/openmi | 1d986ada6c57fecf482f4b8dc4d2488cb0189a3e | [
"Apache-2.0"
] | null | null | null | #include "openmi/core/distribute_runtime/distribute_connector.h"
namespace openmi {
DistributeConnector::DistributeConnector(): thrift_client_(nullptr) {
}
DistributeConnector::~DistributeConnector() {
}
int DistributeConnector::Init(proto::comm::RpcComm& rpc_comm, int conn_timeout, int req_timeout) {
auto rpc_... | 28.2 | 110 | 0.661348 | ComputationalAdvertising |
bdc00155787910a1815f034f8ab1089d4159b6de | 3,843 | hpp | C++ | include/System/Xml/Serialization/XmlChoiceIdentifierAttribute.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Xml/Serialization/XmlChoiceIdentifierAttribute.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Xml/Serialization/XmlChoiceIdentifierAttribute.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.Attribute
#include "System/A... | 48.64557 | 242 | 0.749415 | v0idp |
bdc0193e71a2f98ff49e5dde4a548b7ebcc7a45b | 519 | cpp | C++ | Stopwatch/leds.cpp | Pieter-Dewachter/Microcontrollers | ab7e094ac1e5855197fc164c9469ccb6e2360183 | [
"MIT"
] | null | null | null | Stopwatch/leds.cpp | Pieter-Dewachter/Microcontrollers | ab7e094ac1e5855197fc164c9469ccb6e2360183 | [
"MIT"
] | null | null | null | Stopwatch/leds.cpp | Pieter-Dewachter/Microcontrollers | ab7e094ac1e5855197fc164c9469ccb6e2360183 | [
"MIT"
] | null | null | null | #include <LPC17xx.h>
#include "leds.h"
Leds::Leds(uint8_t myLed) {
selectedLed = myLed;
switch(myLed) {
case 1:
pin = 18;
break;
case 2:
pin = 20;
break;
case 3:
pin = 21;
break;
case 4:
pin = 23;
break;
}
LPC_GPIO1->FIODIR |= (1 << pin);
LPC_GPI... | 14.828571 | 35 | 0.514451 | Pieter-Dewachter |
bdc2e47be83ee4813af84d74e12196cd9d5902a8 | 25,075 | hpp | C++ | mat_functions.hpp | else-engine/ee_math | 2610f5d05263a35274f3aa1163f292e70f15452c | [
"Zlib"
] | null | null | null | mat_functions.hpp | else-engine/ee_math | 2610f5d05263a35274f3aa1163f292e70f15452c | [
"Zlib"
] | null | null | null | mat_functions.hpp | else-engine/ee_math | 2610f5d05263a35274f3aa1163f292e70f15452c | [
"Zlib"
] | null | null | null | /**
* Copyright (c) 2017 Gauthier ARNOULD
* This file is released under the zlib License (Zlib).
* See file LICENSE or go to https://opensource.org/licenses/Zlib
* for full license details.
*/
#pragma once
#include <cmath>
#include "basis.hpp"
#include "mat.hpp"
#include "vec_functions.hpp"
namespace ee {
name... | 36.287988 | 108 | 0.467159 | else-engine |
bdcc4ed8dd68b06e6ba24e97e690cf9c485e097e | 3,580 | cc | C++ | Java/DeeZFile.cc | sfu-compbio/deez | 92cd56befd0c6fbd3355e75ab1747913c11ec716 | [
"BSD-3-Clause"
] | 13 | 2015-04-11T13:30:41.000Z | 2020-06-24T16:58:18.000Z | Java/DeeZFile.cc | sfu-compbio/deez | 92cd56befd0c6fbd3355e75ab1747913c11ec716 | [
"BSD-3-Clause"
] | 1 | 2017-09-29T08:56:30.000Z | 2017-09-29T08:56:30.000Z | Java/DeeZFile.cc | sfu-compbio/deez | 92cd56befd0c6fbd3355e75ab1747913c11ec716 | [
"BSD-3-Clause"
] | 6 | 2015-07-06T19:30:59.000Z | 2022-03-11T07:22:24.000Z | /// 786
#include <DeeZAPI.h>
#include "DeeZFile.h"
#include <stdio.h>
jfieldID getHandleField (JNIEnv *env, jobject obj)
{
jclass c = env->GetObjectClass(obj);
return env->GetFieldID(c, "nativeHandle", "J");
}
template <typename T>
T *getHandle (JNIEnv *env, jobject obj)
{
jlong handle = env->GetLongField(obj, ge... | 27.121212 | 193 | 0.66676 | sfu-compbio |
bdcc872805a9b1da0ac788da169b64453b572ebf | 13,178 | cpp | C++ | MBExtender/plugins/JoystickSupport/JoystickSupport.cpp | RandomityGuy/MBExtender | 5b5a4b5f8f9aafe76c6f50ab75f8a214ef22cb3c | [
"BSD-2-Clause"
] | 6 | 2018-11-04T00:40:15.000Z | 2021-12-22T03:12:48.000Z | MBExtender/plugins/JoystickSupport/JoystickSupport.cpp | RandomityGuy/MBExtender | 5b5a4b5f8f9aafe76c6f50ab75f8a214ef22cb3c | [
"BSD-2-Clause"
] | null | null | null | MBExtender/plugins/JoystickSupport/JoystickSupport.cpp | RandomityGuy/MBExtender | 5b5a4b5f8f9aafe76c6f50ab75f8a214ef22cb3c | [
"BSD-2-Clause"
] | 3 | 2020-05-17T21:27:12.000Z | 2021-04-11T05:49:37.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2015 The Platinum Team
//
// 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 restricti... | 33.193955 | 208 | 0.687054 | RandomityGuy |
bdcd34d5e0f48233a5f2e59ed465676ccde54e36 | 1,029 | hpp | C++ | Roguelike/Code/Game/Cursor.hpp | cugone/Roguelike | 0f53a1ae2a37e683773c1707ce4aeb056973af13 | [
"MIT"
] | null | null | null | Roguelike/Code/Game/Cursor.hpp | cugone/Roguelike | 0f53a1ae2a37e683773c1707ce4aeb056973af13 | [
"MIT"
] | 4 | 2021-05-04T03:21:49.000Z | 2021-10-06T05:21:24.000Z | Roguelike/Code/Game/Cursor.hpp | cugone/Roguelike | 0f53a1ae2a37e683773c1707ce4aeb056973af13 | [
"MIT"
] | 2 | 2020-01-19T00:50:34.000Z | 2021-04-01T07:51:02.000Z | #pragma once
#include "Engine/Core/TimeUtils.hpp"
#include "Engine/Math/AABB2.hpp"
#include "Engine/Math/IntVector2.hpp"
#include "Engine/Renderer/Mesh.hpp"
#include "Engine/Renderer/Vertex3D.hpp"
#include <vector>
class CursorDefinition;
class Entity;
class Layer;
class Cursor {
public:
Cur... | 22.369565 | 54 | 0.673469 | cugone |
bdcd6bd0a43dd128543d1bfe60a03f81814fd755 | 11,228 | cpp | C++ | src/Magnum/Test/AbstractShaderProgramTest.cpp | wivlaro/magnum | c9fb3bae3390bddc397b6cec1c5d74b17129ef22 | [
"MIT"
] | null | null | null | src/Magnum/Test/AbstractShaderProgramTest.cpp | wivlaro/magnum | c9fb3bae3390bddc397b6cec1c5d74b17129ef22 | [
"MIT"
] | null | null | null | src/Magnum/Test/AbstractShaderProgramTest.cpp | wivlaro/magnum | c9fb3bae3390bddc397b6cec1c5d74b17129ef22 | [
"MIT"
] | null | null | null | /*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015
Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Softwar... | 35.308176 | 87 | 0.715978 | wivlaro |
bdcd94a6ea0995b0d7e640af2dc32b73fc4ff4ff | 12,324 | cpp | C++ | engine/src/components/Camera.cpp | jsandham/PhysicsEngine | 51115ee9a59f3bc6e0895113c67563cfd4a1ef3c | [
"MIT"
] | 2 | 2018-12-19T01:52:39.000Z | 2022-03-29T16:04:15.000Z | engine/src/components/Camera.cpp | jsandham/PhysicsEngine | 51115ee9a59f3bc6e0895113c67563cfd4a1ef3c | [
"MIT"
] | null | null | null | engine/src/components/Camera.cpp | jsandham/PhysicsEngine | 51115ee9a59f3bc6e0895113c67563cfd4a1ef3c | [
"MIT"
] | null | null | null | #include <algorithm>
#include "../../include/components/Camera.h"
#include "../../include/graphics/Graphics.h"
using namespace PhysicsEngine;
Camera::Camera(World* world) : Component(world)
{
mEntityId = Guid::INVALID;
mRenderTextureId = Guid::INVALID;
mQuery.mQueryBack = 0;
mQuery.mQueryFront = 1;
... | 25.358025 | 118 | 0.676891 | jsandham |
752b241a697d49663e7a53f59c026910ec9ecb23 | 881 | cpp | C++ | 1. Array/28-triplet-sum-in-array.cpp | dhruvaop/DSA | 188a0bf8a7e6e2ba9eb321bd5cda88739a5088a0 | [
"MIT"
] | 1 | 2021-09-08T09:19:48.000Z | 2021-09-08T09:19:48.000Z | 1. Array/28-triplet-sum-in-array.cpp | dhruvaop/DSA | 188a0bf8a7e6e2ba9eb321bd5cda88739a5088a0 | [
"MIT"
] | null | null | null | 1. Array/28-triplet-sum-in-array.cpp | dhruvaop/DSA | 188a0bf8a7e6e2ba9eb321bd5cda88739a5088a0 | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution{
public:
//Function to find if there exists a triplet in the
//array A[] which sums up to X.
bool find3Numbers(int A[], int n, int X)
{
//Your Code Here
unordered_map<int,in... | 18.354167 | 56 | 0.45403 | dhruvaop |
7530e3d0f160a4f6b0a2d50da4c39c9b37fee61f | 1,825 | hpp | C++ | include/lol/def/LcdsPracticeGameSearchResult.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LcdsPracticeGameSearchResult.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LcdsPracticeGameSearchResult.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
#include "LcdsGameMap.hpp"
#include "LcdsPlayerParticipant.hpp"
namespace lol {
struct LcdsPracticeGameSearchResult {
uint64_t id;
std::string name;
LcdsPlayerParticipant owner;
int32_t maxNumPlayers;
bool privateGame;
int32_t team1Count;
int32_t t... | 35.784314 | 73 | 0.639452 | Maufeat |
7531431e3632f17dc5e838da028e9df388f33175 | 2,302 | cpp | C++ | sg/scene/lights/HDRILight.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | null | null | null | sg/scene/lights/HDRILight.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | null | null | null | sg/scene/lights/HDRILight.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | null | null | null | // Copyright 2021-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "Light.h"
#include "sg/texture/Texture2D.h"
namespace ospray {
namespace sg {
struct OSPSG_INTERFACE HDRILight : public Light
{
HDRILight();
virtual ~HDRILight() override = default;
void preCommit() override;
void postCo... | 25.865169 | 79 | 0.612076 | ebachard |
7532bdb1fefb89d8637414d5a58c9bd08e28c513 | 2,076 | cpp | C++ | virus1.cpp | AxlidinovJ/masalalar_C | ca48c0db29155016a729fbe23030d4a638175d9b | [
"MIT"
] | 3 | 2021-12-02T20:28:27.000Z | 2021-12-08T10:21:24.000Z | virus1.cpp | AxlidnovJ/masalalar_C | e0643137e115d7b9b26651a0d5acc24bc79f8d4f | [
"MIT"
] | null | null | null | virus1.cpp | AxlidnovJ/masalalar_C | e0643137e115d7b9b26651a0d5acc24bc79f8d4f | [
"MIT"
] | null | null | null |
#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int main()
{
char str[200], wrd[20];
int i, j, strLen, wrdLen, tmp, chk=0;
int doIncrement, isSpace;
cout<<"Satrni kiriting ";
gets(str);
cout<<"Belgini kiritng ";
cin>>wrd;
strLen = strlen(str);
wrdLen = ... | 23.325843 | 64 | 0.331407 | AxlidinovJ |
7534c5dc04c42724a741838e6d56e6d80f4c61c9 | 5,862 | cpp | C++ | firmware/firmware/nixie_clock/clock.cpp | shengwen1997/nixie-clock | 85358b9cba41331ac872cd237b1a8c61e36650e9 | [
"MIT"
] | 5 | 2016-01-12T14:37:52.000Z | 2019-10-17T20:46:45.000Z | firmware/firmware/nixie_clock/clock.cpp | shengwen1997/nixie-clock | 85358b9cba41331ac872cd237b1a8c61e36650e9 | [
"MIT"
] | null | null | null | firmware/firmware/nixie_clock/clock.cpp | shengwen1997/nixie-clock | 85358b9cba41331ac872cd237b1a8c61e36650e9 | [
"MIT"
] | 4 | 2015-11-24T00:48:19.000Z | 2019-01-04T08:13:46.000Z | #include <Arduino.h>
#include "pindef.h"
#include "tube_control.h"
#include "RTC.h"
#include "clock.h"
#include "mp3.h"
#include "serial.h"
#include "alarm.h"
int tube[8]; //This array records the data of all tubes
int tube_index = 0;
int clock_mode = TIME_MODE;
//Hibernation
hibernate_setting_t hibernate_setting;... | 23.829268 | 106 | 0.698226 | shengwen1997 |
753ba6516ff06f9f09cb84010c986482355c39d5 | 5,386 | cpp | C++ | Library/Source/Nano/Debugging/NUsageLog.cpp | refnum/Nano | dceb0907061f7845d8a3c662f309ca164e932e6f | [
"BSD-3-Clause"
] | 23 | 2019-11-12T09:31:11.000Z | 2021-09-13T08:59:37.000Z | Library/Source/Nano/Debugging/NUsageLog.cpp | refnum/nano | dceb0907061f7845d8a3c662f309ca164e932e6f | [
"BSD-3-Clause"
] | 1 | 2020-10-30T09:54:12.000Z | 2020-10-30T09:54:12.000Z | Library/Source/Nano/Debugging/NUsageLog.cpp | refnum/Nano | dceb0907061f7845d8a3c662f309ca164e932e6f | [
"BSD-3-Clause"
] | 3 | 2015-09-08T11:00:02.000Z | 2017-09-11T05:42:30.000Z | /* NAME:
NUsageLog.cpp
DESCRIPTION:
Log system.
COPYRIGHT:
Copyright (c) 2006-2021, refNum Software
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source cod... | 27.340102 | 87 | 0.595247 | refnum |
753e1b07947394f8fdbfac37eb0ec354b5f47870 | 7,789 | cpp | C++ | src/render/roundedFrames/renderRoundedFramesCorners.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | 11 | 2021-11-29T10:32:29.000Z | 2022-02-13T12:11:26.000Z | src/render/roundedFrames/renderRoundedFramesCorners.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | null | null | null | src/render/roundedFrames/renderRoundedFramesCorners.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | null | null | null | #pragma once
#include "../../util/list.cpp"
#include "../common/canvasContext.cpp"
#include "../common/color.cpp"
#include "../common/glUtil.cpp"
#include "renderRoundedFramesCommon.cpp"
#include <emscripten.h>
#include <math.h>
struct RoundedFrameCornerVertexAttributes
{
float x, y;
float centerX, centerY;
... | 42.331522 | 111 | 0.681602 | ilidemi |
753edac201008a01efe515e89414938e3a23eb98 | 3,297 | cpp | C++ | DirectX3D11/Framework/Utility/Font.cpp | GyumLee/DirectX3D11 | 6158874aa12e790747e6fd8a53de608071c49574 | [
"Apache-2.0"
] | null | null | null | DirectX3D11/Framework/Utility/Font.cpp | GyumLee/DirectX3D11 | 6158874aa12e790747e6fd8a53de608071c49574 | [
"Apache-2.0"
] | null | null | null | DirectX3D11/Framework/Utility/Font.cpp | GyumLee/DirectX3D11 | 6158874aa12e790747e6fd8a53de608071c49574 | [
"Apache-2.0"
] | null | null | null | #include "Framework.h"
Font::Font()
{
DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED,
__uuidof(IDWriteFactory), (IUnknown**)&writeFactory);
D2D1CreateFactory(D2D1_FACTORY_TYPE_MULTI_THREADED, &factory);
IDXGIDevice* dxgiDevice;
DEVICE->QueryInterface(&dxgiDevice);
factory->CreateDevice(dxgiDevice, &device);
... | 25.757813 | 147 | 0.721868 | GyumLee |
753f9f47e4c9c3ddf942ebab88edca2693523ad9 | 597 | cpp | C++ | foundation/cpp/1_basics_of_programming/1_getting_started/7_digits_of_a_number.cpp | vikaskbm/pepcoding | fb39b6dd62f4e5b76f75e12f2b222e2adb4854c1 | [
"MIT"
] | 2 | 2021-03-16T08:56:46.000Z | 2021-03-17T05:37:21.000Z | foundation/cpp/1_basics_of_programming/1_getting_started/7_digits_of_a_number.cpp | vikaskbm/pepcoding | fb39b6dd62f4e5b76f75e12f2b222e2adb4854c1 | [
"MIT"
] | null | null | null | foundation/cpp/1_basics_of_programming/1_getting_started/7_digits_of_a_number.cpp | vikaskbm/pepcoding | fb39b6dd62f4e5b76f75e12f2b222e2adb4854c1 | [
"MIT"
] | null | null | null | // Digits Of A Number
// 1. You've to display the digits of a number.
// 2. Take as input "n", the number for which digits have to be displayed.
// 3. Print the digits of the number line-wise.
#include <iostream>
using namespace std;
void digits_of_number(long int num) {
long int n = num;
long int mult = 1;
... | 19.258065 | 74 | 0.542714 | vikaskbm |
7547eb3a735352cf93aee3542b0bd8182c942705 | 23,507 | hpp | C++ | SRC/UI/LiveFiducialsWidget.hpp | poli0048/Recon | d3836b3ea569f389c238469b17390ed6e9c34b65 | [
"BSD-3-Clause"
] | 1 | 2021-12-26T12:53:35.000Z | 2021-12-26T12:53:35.000Z | SRC/UI/LiveFiducialsWidget.hpp | poli0048/Recon | d3836b3ea569f389c238469b17390ed6e9c34b65 | [
"BSD-3-Clause"
] | null | null | null | SRC/UI/LiveFiducialsWidget.hpp | poli0048/Recon | d3836b3ea569f389c238469b17390ed6e9c34b65 | [
"BSD-3-Clause"
] | 2 | 2021-06-12T18:34:18.000Z | 2021-12-26T12:53:44.000Z | //This widget lets you select a reference frame from live imagery and mark fiducials to be used for registration
//Author: Bryan Poling
//Copyright (c) 2021 Sentek Systems, LLC. All rights reserved.
#pragma once
//System Includes
#include <vector>
#include <unordered_map>
#include <memory>
#include <chrono>
//Externa... | 39.574074 | 160 | 0.679585 | poli0048 |
7547fcdd91bbe0c0c67c9b999b840f35fe9debb3 | 4,809 | cpp | C++ | Test/String__Replace_String.cpp | Leonetienne/StringTools | 1fe3eeb14470470d8c95c40c98a12c15320bcd57 | [
"BSD-2-Clause"
] | null | null | null | Test/String__Replace_String.cpp | Leonetienne/StringTools | 1fe3eeb14470470d8c95c40c98a12c15320bcd57 | [
"BSD-2-Clause"
] | null | null | null | Test/String__Replace_String.cpp | Leonetienne/StringTools | 1fe3eeb14470470d8c95c40c98a12c15320bcd57 | [
"BSD-2-Clause"
] | null | null | null | #include <StringTools.h>
#include "Catch2.h"
// Tests that replacing something in an empty string returns an empty string
TEST_CASE(__FILE__"/EmptyString", "[Strings][ReplaceString]")
{
// Setup
const std::string in = "";
// Exercise
const std::string out = StringTools::Replace(in, "burger",... | 28.122807 | 119 | 0.649407 | Leonetienne |
7549cbb5a8aa0d31821642cf45596783ee8bd8e5 | 1,161 | hpp | C++ | Metazion/Net/SelectListenStrategy.hpp | KaleoFeng/Metazion | 5f1149d60aa87b391c2f40de7a89a5044701f2ca | [
"MIT"
] | 15 | 2018-10-30T07:49:02.000Z | 2020-10-20T06:27:08.000Z | Metazion/Net/SelectListenStrategy.hpp | kaleofeng/metazion | 5f1149d60aa87b391c2f40de7a89a5044701f2ca | [
"MIT"
] | null | null | null | Metazion/Net/SelectListenStrategy.hpp | kaleofeng/metazion | 5f1149d60aa87b391c2f40de7a89a5044701f2ca | [
"MIT"
] | 5 | 2020-12-04T07:39:31.000Z | 2021-11-23T03:16:39.000Z | #ifndef _MZ_NET_SELECTLISTENSTRATEGY_HPP_
#define _MZ_NET_SELECTLISTENSTRATEGY_HPP_
#include "Metazion/Net/NetInclude.hpp"
#if defined(NETWORK_USE_SELECT_MODEL)
#include "Metazion/Net/SelectStrategy.hpp"
DECL_NAMESPACE_MZ_NET_BEGIN
class ListenSocket;
class SelectListenStrategy final : public SelectStrategy {
... | 20.368421 | 65 | 0.763997 | KaleoFeng |
754fb99e669c53e49ad948b2ded580727816d27f | 3,576 | cpp | C++ | src/game.cpp | Bkrenz/SDL-Playground | d72ce890920a005e3d692b4bfde275a2cceaf9e3 | [
"MIT"
] | null | null | null | src/game.cpp | Bkrenz/SDL-Playground | d72ce890920a005e3d692b4bfde275a2cceaf9e3 | [
"MIT"
] | null | null | null | src/game.cpp | Bkrenz/SDL-Playground | d72ce890920a005e3d692b4bfde275a2cceaf9e3 | [
"MIT"
] | null | null | null | /**
* The main Game class that defines the main loop functions
*
*/
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <string>
#include <stdio.h>
#include <iostream>
#include <game.h>
Game::Game(std::string title, int windowWidth, int windowHeight)
{
this->title = title;
this->windowHeight = w... | 22.35 | 147 | 0.613814 | Bkrenz |
7555be13556d0857c2c281a3aeef025dddbf8005 | 956 | hpp | C++ | shared_model/interfaces/iroha_internal/transaction_batch_parser_impl.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1,467 | 2016-10-25T12:27:19.000Z | 2022-03-28T04:32:05.000Z | shared_model/interfaces/iroha_internal/transaction_batch_parser_impl.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 2,366 | 2016-10-25T10:07:57.000Z | 2022-03-31T22:03:24.000Z | shared_model/interfaces/iroha_internal/transaction_batch_parser_impl.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 662 | 2016-10-26T04:41:22.000Z | 2022-03-31T04:15:02.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_TRANSACTION_BATCH_PARSER_IMPL_HPP
#define IROHA_TRANSACTION_BATCH_PARSER_IMPL_HPP
#include "interfaces/iroha_internal/transaction_batch_parser.hpp"
namespace shared_model {
namespace interface {
... | 32.965517 | 80 | 0.771967 | akshatkarani |
75563a32db8d5884f9cfb16958ab19af6115217d | 3,485 | cpp | C++ | tests/simple_test.cpp | HarrievG/daw_json_link | 8de661ccdbe0b85fdc669810d27ef8b55ece4ba2 | [
"MIT"
] | null | null | null | tests/simple_test.cpp | HarrievG/daw_json_link | 8de661ccdbe0b85fdc669810d27ef8b55ece4ba2 | [
"MIT"
] | null | null | null | tests/simple_test.cpp | HarrievG/daw_json_link | 8de661ccdbe0b85fdc669810d27ef8b55ece4ba2 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2019 Darrell Wright
//
// 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,... | 35.927835 | 82 | 0.70703 | HarrievG |
755bc8cf6d4069914e5046abfcc026a3e01829a5 | 1,562 | cpp | C++ | src/RFF.cpp | arotem3/random-kitchen-sinks | f85073456a5f4a13904e73c3c4706c205e5396ba | [
"Apache-2.0"
] | 6 | 2019-11-15T18:31:10.000Z | 2021-05-18T04:15:08.000Z | src/RFF.cpp | arotem3/random-kitchen-sinks | f85073456a5f4a13904e73c3c4706c205e5396ba | [
"Apache-2.0"
] | null | null | null | src/RFF.cpp | arotem3/random-kitchen-sinks | f85073456a5f4a13904e73c3c4706c205e5396ba | [
"Apache-2.0"
] | 1 | 2020-03-02T09:55:33.000Z | 2020-03-02T09:55:33.000Z | #include <random_kitchen_sinks.hpp>
/* RFF(gamma=1, n_feats=100, seed=-1) : initialize random fourier features.
* --- gamma : parameter of Gaussian kernel, i.e. exp(-gamma * ||x||^2)
* --- n_feats : number of random features
* --- seed : random seed, if seed<0 then the seed will be randomized. */
random_sinks::RFF:... | 42.216216 | 203 | 0.618438 | arotem3 |
755d5b07956b716a1af2abd6c75afb07b4ee6169 | 684 | cpp | C++ | soj/1115.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/1115.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/1115.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
#define N 100000
int l=1;
void Mul(int a[],int b)
{
int i,e;
e=0;
for (i=0;i<l;i++)
{
e=a[i]*b+e;
a[i]=e%10;
e/=10;
}
while (e)
{
a[l++]=e%10;
e/=10;
}
}
void Fac(int a[],int n)
{
int i;
for (i=1;i<=n;... | 14.25 | 32 | 0.347953 | huangshenno1 |
755def83203c50be274e65dacd75c9253118019e | 3,221 | hpp | C++ | Genesis/include/Genesis/Core/Transform.hpp | JoshuaMasci/Genesis | 761060626a92e3df7b860a97209fca341cdda240 | [
"MIT"
] | 2 | 2020-01-22T05:57:12.000Z | 2020-04-06T01:15:30.000Z | Genesis/include/Genesis/Core/Transform.hpp | JoshuaMasci/Genesis | 761060626a92e3df7b860a97209fca341cdda240 | [
"MIT"
] | null | null | null | Genesis/include/Genesis/Core/Transform.hpp | JoshuaMasci/Genesis | 761060626a92e3df7b860a97209fca341cdda240 | [
"MIT"
] | null | null | null | #pragma once
namespace Genesis
{
class TransformF
{
protected:
vector3F position;
quaternionF orientation;
vector3F scale;
public:
TransformF(vector3F& position = vector3F(0.0f), quaternionF& orientation = quaternionF(1.0f, 0.0f, 0.0f, 0.0f), vector3F& scale = vector3F(1.0f));
//Getters
inline vector... | 38.345238 | 148 | 0.733313 | JoshuaMasci |
755fb275213ec9198dbc1d806597f1cf1f13d904 | 31,039 | cpp | C++ | engine/subsystems/vulkan/se_vulkan_render_subsystem_device.cpp | grobermoldavan/SabrinaEngine | 9a6f983500deb2d03cc2dcb5710407d01a62b2fd | [
"MIT"
] | null | null | null | engine/subsystems/vulkan/se_vulkan_render_subsystem_device.cpp | grobermoldavan/SabrinaEngine | 9a6f983500deb2d03cc2dcb5710407d01a62b2fd | [
"MIT"
] | null | null | null | engine/subsystems/vulkan/se_vulkan_render_subsystem_device.cpp | grobermoldavan/SabrinaEngine | 9a6f983500deb2d03cc2dcb5710407d01a62b2fd | [
"MIT"
] | null | null | null |
#include "se_vulkan_render_subsystem_device.hpp"
#include "se_vulkan_render_subsystem_utils.hpp"
#include "engine/subsystems/se_window_subsystem.hpp"
#include "engine/subsystems/se_application_allocators_subsystem.hpp"
#include "engine/allocator_bindings.hpp"
#define SE_VK_INVALID_DEVICE_RATING -1.0f
static size_t g... | 46.535232 | 173 | 0.674893 | grobermoldavan |
7562856f8ac597b5d21d7f9b262ab06824263ae4 | 347 | cpp | C++ | rosdyn_chain_state/src/rosdyn_utilities_node_test.cpp | CNR-STIIMA-IRAS/rosdyn_utilities | 00fc5c48db94af3581315401a9cbc57ff3077f79 | [
"BSD-3-Clause"
] | null | null | null | rosdyn_chain_state/src/rosdyn_utilities_node_test.cpp | CNR-STIIMA-IRAS/rosdyn_utilities | 00fc5c48db94af3581315401a9cbc57ff3077f79 | [
"BSD-3-Clause"
] | null | null | null | rosdyn_chain_state/src/rosdyn_utilities_node_test.cpp | CNR-STIIMA-IRAS/rosdyn_utilities | 00fc5c48db94af3581315401a9cbc57ff3077f79 | [
"BSD-3-Clause"
] | null | null | null | #include <ros/ros.h>
#include <rosdyn_chain_state/chain_state.h>
int main(int argc, char* argv[])
{
ros::init(argc, argv, "foo_test");
ros::NodeHandle nh;
rosdyn::ChainPtr kin(new rosdyn::Chain());
rosdyn::ChainStateXPtr state(new rosdyn::ChainStateX(kin));
rosdyn::ChainState7Ptr state7(new rosdyn::ChainSta... | 23.133333 | 63 | 0.708934 | CNR-STIIMA-IRAS |
7563a0226f4b279cb0b2cb058e2dc1079e9ae2b1 | 1,305 | cpp | C++ | src/engine/ray_tracing.cpp | stastaj/Svit | 7b9487fb43d205383612dd55f938247be5f39d90 | [
"BSD-2-Clause"
] | null | null | null | src/engine/ray_tracing.cpp | stastaj/Svit | 7b9487fb43d205383612dd55f938247be5f39d90 | [
"BSD-2-Clause"
] | null | null | null | src/engine/ray_tracing.cpp | stastaj/Svit | 7b9487fb43d205383612dd55f938247be5f39d90 | [
"BSD-2-Clause"
] | null | null | null | #include "engine/ray_tracing.h"
#include "light/light.h"
#include "math/numeric.h"
#include <numeric>
namespace Svit
{
Vector3
RayTracingEngine::get_color (Ray& _ray, World& _world)
{
boost::optional<Intersection> best = _world.scene->intersect(_ray,
std::numeric_limits<float>::max());
if (best)
{
... | 24.622642 | 75 | 0.64751 | stastaj |
756bfb944b3df61dc606266187d10bea817bcc1e | 1,093 | cxx | C++ | ltn/cli/main.cxx | JeneLitsch/litan | 4eb37378c41226d1299aa695da85056fd548730e | [
"MIT"
] | 14 | 2021-07-27T17:26:20.000Z | 2022-02-23T23:29:55.000Z | ltn/cli/main.cxx | JeneLitsch/litan | 4eb37378c41226d1299aa695da85056fd548730e | [
"MIT"
] | 35 | 2021-11-24T23:36:49.000Z | 2022-03-23T15:45:41.000Z | ltn/cli/main.cxx | JeneLitsch/litan | 4eb37378c41226d1299aa695da85056fd548730e | [
"MIT"
] | 3 | 2022-01-24T07:20:42.000Z | 2022-01-25T00:48:56.000Z | #include "Litan.hxx"
#include <filesystem>
#include <fstream>
void compileFile(ltn::c::Ltnc & ltnc, const std::filesystem::path & filepath) {
std::cout << "[Compiling] " << filepath << "\n";
try {
if(!std::filesystem::exists(filepath)) {
throw std::runtime_error{"Cannot open " + filepath.string()};
}
std::i... | 24.288889 | 79 | 0.643184 | JeneLitsch |
7577c58d5fafdc6f69ec0ae9e76edb7b1f929d95 | 2,364 | cpp | C++ | raygame/main.cpp | brionnafranklin/LinkedBinaryTree-master | 69443a49927e1f2f99787df9210707d3aa0d8342 | [
"MIT"
] | null | null | null | raygame/main.cpp | brionnafranklin/LinkedBinaryTree-master | 69443a49927e1f2f99787df9210707d3aa0d8342 | [
"MIT"
] | null | null | null | raygame/main.cpp | brionnafranklin/LinkedBinaryTree-master | 69443a49927e1f2f99787df9210707d3aa0d8342 | [
"MIT"
] | null | null | null | /*******************************************************************************************
*
* raylib [core] example - basic window
*
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
* Copyright (c) 201... | 28.142857 | 93 | 0.428511 | brionnafranklin |
757af61b5c425b357b9ec6536f17e253d094c499 | 4,089 | cpp | C++ | src/log.cpp | tim77/wf-config | 0c91e34356780b19024f833110a1dca613cc56bd | [
"MIT"
] | null | null | null | src/log.cpp | tim77/wf-config | 0c91e34356780b19024f833110a1dca613cc56bd | [
"MIT"
] | null | null | null | src/log.cpp | tim77/wf-config | 0c91e34356780b19024f833110a1dca613cc56bd | [
"MIT"
] | null | null | null | #include <wayfire/util/log.hpp>
#include <sstream>
#include <functional>
#include <iostream>
#include <map>
#include <chrono>
#include <iomanip>
template<> std::string wf::log::to_string<void*> (void* arg)
{
if (!arg)
return "(null)";
std::ostringstream out;
out << arg;
return out.str();
}
te... | 27.816327 | 79 | 0.630717 | tim77 |
757b6418a2408a2665352e6fc45e690c2e439d09 | 2,404 | cpp | C++ | aws-cpp-sdk-worklink/source/model/DeviceStatus.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-worklink/source/model/DeviceStatus.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-worklink/source/model/DeviceStatus.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 29.679012 | 92 | 0.639351 | curiousjgeorge |
7594085414c848a069bfd60e470f167353ac51d9 | 509 | cpp | C++ | verify/AOJ_disjoint_set.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | 1 | 2021-06-01T17:13:44.000Z | 2021-06-01T17:13:44.000Z | verify/AOJ_disjoint_set.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | verify/AOJ_disjoint_set.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | //
//#define PROBLEM 'http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DSL_1_A'
//
//#include <iostream>
//#include <vector>
//
//#include "../../../library/src/UnionFind.cpp"
//
//using namespace std;
//using lint = long long;
//
//int main() {
//
// int n, q;
// cin >> n >> q;
//
// UnionFind uf(n);
// for (i... | 15.90625 | 84 | 0.485265 | rajyan |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.