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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab317f2010241fa360a163ab638cd9b6f2de4a34 | 4,060 | hpp | C++ | iehl/src/application/rasterization/render_ui.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | iehl/src/application/rasterization/render_ui.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | iehl/src/application/rasterization/render_ui.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | #pragma once
#include "application.hpp"
inline
void render_ui(Application& app) {
if(ImGui::Begin("Settings")) {
if(ImGui::TreeNode("Frustum culling")) {
ImGui::Checkbox("Enabled",
&app.settings.frustum_culling.is_enabled);
ImGui::NewLine();
ImGui::Tex... | 32.48 | 74 | 0.488916 | the-last-willy |
ab32a64124b0a399d4a190d1b63c44330e8fac06 | 6,049 | cpp | C++ | Scatterer.cpp | pl2526/PSCAcoustic | eaf127f0bd6aa9bdf4a051b4390966e86fdf6751 | [
"MIT"
] | null | null | null | Scatterer.cpp | pl2526/PSCAcoustic | eaf127f0bd6aa9bdf4a051b4390966e86fdf6751 | [
"MIT"
] | null | null | null | Scatterer.cpp | pl2526/PSCAcoustic | eaf127f0bd6aa9bdf4a051b4390966e86fdf6751 | [
"MIT"
] | null | null | null | /*
* Scatterer.cpp
* PSCAcoustic
*
* Objects describing scatterers.
*
*
* Copyright 2014 Pierre-David Letourneau
*
* 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 restri... | 28.804762 | 178 | 0.643247 | pl2526 |
ab3514310f38f9b565d931c6a66d6d8630466452 | 11,648 | cpp | C++ | code/wxWidgets/src/mac/classic/slider.cpp | Bloodknight/NeuTorsion | a5890e9ca145a8c1b6bec7b70047a43d9b1c29ea | [
"MIT"
] | 38 | 2016-02-20T02:46:28.000Z | 2021-11-17T11:39:57.000Z | code/wxWidgets/src/mac/classic/slider.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 17 | 2016-02-20T02:19:55.000Z | 2021-02-08T15:15:17.000Z | code/wxWidgets/src/mac/classic/slider.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 46 | 2016-02-20T02:47:33.000Z | 2021-01-31T15:46:05.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: slider.cpp
// Purpose: wxSlider
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id: slider.cpp,v 1.7 2005/07/28 22:08:24 VZ Exp $
// Copyright: (c) Stefan Csomor
// Licence: ... | 26.593607 | 125 | 0.630495 | Bloodknight |
ab3a1664a48b4a43e11f51b277dbe3c09cc7cab3 | 17,397 | cpp | C++ | lib/AIECreateFlows.cpp | heterosys/mlir-aie | 56e3eda28efb1ed4847e0c4461dceced78b19ca9 | [
"Apache-2.0"
] | 2 | 2022-01-26T05:15:56.000Z | 2022-01-26T05:15:57.000Z | lib/AIECreateFlows.cpp | pssrawat/mlir-aie | b3f29a6344b70c6730d7ce0485b7bda54f3277dc | [
"Apache-2.0"
] | null | null | null | lib/AIECreateFlows.cpp | pssrawat/mlir-aie | b3f29a6344b70c6730d7ce0485b7bda54f3277dc | [
"Apache-2.0"
] | null | null | null | //===- AIECreateFlows.cpp ---------------------------------------*- C++ -*-===//
//
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// (c) Copyright 2019 Xilinx Inc.
//... | 38.403974 | 80 | 0.592746 | heterosys |
ab45e542f666c867491a4dd1ad2d4919ba6baa42 | 4,018 | cpp | C++ | tc 160+/Election.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/Election.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/Election.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
struct Cand {
int votes, pos;
Cand(int votes_=-1, int pos_=-1): votes(votes_), pos(pos_) {}
};
bool operator<(const Cand &a, con... | 39.782178 | 309 | 0.567944 | ibudiselic |
ab461ee802514032d2c677f3341b4d68dd4ae23e | 1,384 | cpp | C++ | src/common/util/time_util.cpp | toppic-suite/toppic-suite | b5f0851f437dde053ddc646f45f9f592c16503ec | [
"Apache-2.0"
] | 8 | 2018-05-23T14:37:31.000Z | 2022-02-04T23:48:38.000Z | src/common/util/time_util.cpp | toppic-suite/toppic-suite | b5f0851f437dde053ddc646f45f9f592c16503ec | [
"Apache-2.0"
] | 9 | 2019-08-31T08:17:45.000Z | 2022-02-11T20:58:06.000Z | src/common/util/time_util.cpp | toppic-suite/toppic-suite | b5f0851f437dde053ddc646f45f9f592c16503ec | [
"Apache-2.0"
] | 4 | 2018-04-25T01:39:38.000Z | 2020-05-20T19:25:07.000Z | //Copyright (c) 2014 - 2020, The Trustees of Indiana University.
//
//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 a... | 28.244898 | 76 | 0.710983 | toppic-suite |
ab48ba0cd115a730341c1ab4611c5b6bb4a95a20 | 9,807 | cpp | C++ | src/helics/application_api/Publications.cpp | manoj1511/HELICS | 5b085bb4331f943d3fa98eb40056c3e10a1b882d | [
"BSD-3-Clause"
] | null | null | null | src/helics/application_api/Publications.cpp | manoj1511/HELICS | 5b085bb4331f943d3fa98eb40056c3e10a1b882d | [
"BSD-3-Clause"
] | null | null | null | src/helics/application_api/Publications.cpp | manoj1511/HELICS | 5b085bb4331f943d3fa98eb40056c3e10a1b882d | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2017-2019,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See
the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "Publications.hpp"
#include "../core/core-exceptions.hpp"
#i... | 22.544828 | 114 | 0.525135 | manoj1511 |
ab4a43b5617dfb5f6db66430419acb39469229f2 | 661 | cpp | C++ | utm/src/test_user.cpp | jn89b/UTM | cced37217708499d5b0dbe9106722b039ef935ac | [
"MIT"
] | 1 | 2021-11-16T08:11:11.000Z | 2021-11-16T08:11:11.000Z | utm/src/test_user.cpp | jn89b/UTM | cced37217708499d5b0dbe9106722b039ef935ac | [
"MIT"
] | null | null | null | utm/src/test_user.cpp | jn89b/UTM | cced37217708499d5b0dbe9106722b039ef935ac | [
"MIT"
] | 1 | 2022-03-29T10:08:03.000Z | 2022-03-29T10:08:03.000Z | #include "ros/ros.h"
#include <std_msgs/Int8.h>
int user_input;
void usercontrol_cb(const std_msgs::Int8::ConstPtr& msg)
{
user_input = msg->data;
std::cout<<"user_input: "<<user_input<<std::endl;
if (user_input == NULL)
{
ROS_INFO("i hear nothing");
}
}
int main(int argc, char **argv)... | 18.361111 | 65 | 0.559758 | jn89b |
ab4b4fa227e7bd93d006b133b21798b01e03c27d | 6,246 | cpp | C++ | lib/i2c.cpp | wez/flutterby-cpp | bad14b987b435f5e322bd61a1437cf944be45068 | [
"MIT"
] | null | null | null | lib/i2c.cpp | wez/flutterby-cpp | bad14b987b435f5e322bd61a1437cf944be45068 | [
"MIT"
] | null | null | null | lib/i2c.cpp | wez/flutterby-cpp | bad14b987b435f5e322bd61a1437cf944be45068 | [
"MIT"
] | null | null | null | #include "flutterby/I2c.h"
#include "flutterby/BusyWait.h"
#include "avr_autogen.h"
static constexpr uint8_t TWI_ADDRESS_READ = 0x01;
static constexpr uint8_t TWI_ADDRESS_WRITE = 0x00;
static constexpr uint8_t TWI_DEVICE_ADDRESS_MASK = 0xFE;
namespace flutterby {
namespace I2cMaster {
enum TwiStatus {
BusError = 0... | 26.025 | 80 | 0.652257 | wez |
ab4b6cebe9a28475bac79e7b69dd5038466fbd24 | 17,374 | hpp | C++ | include/Bit/Graphics/TgaFile.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/Graphics/TgaFile.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/Graphics/TgaFile.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | // ///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com
//
// This software is provided 'as-is', without any express or
// implied warranty. In no event will the authors be held
// liable for any damages arising from the use of this... | 35.09899 | 107 | 0.369115 | jimmiebergmann |
ab4c1c7759af94dafe1133646093083b1709bbaf | 1,318 | cpp | C++ | source/GUIImage.cpp | vonLeebpl/WKIrrlichtLime | 79e17540574bceaecc27049d99eb4ee2f6ca3479 | [
"Zlib"
] | 19 | 2019-06-23T15:43:58.000Z | 2021-07-22T14:22:52.000Z | source/GUIImage.cpp | vonLeebpl/WKIrrlichtLime | 79e17540574bceaecc27049d99eb4ee2f6ca3479 | [
"Zlib"
] | 4 | 2019-06-23T15:46:02.000Z | 2022-02-07T14:42:58.000Z | source/GUIImage.cpp | vonLeebpl/WKIrrlichtLime | 79e17540574bceaecc27049d99eb4ee2f6ca3479 | [
"Zlib"
] | 6 | 2019-11-17T08:42:22.000Z | 2022-01-11T07:40:17.000Z | #include "stdafx.h"
#include "GUIElement.h"
#include "GUIImage.h"
#include "Texture.h"
using namespace irr;
using namespace System;
namespace IrrlichtLime {
namespace GUI {
GUIImage^ GUIImage::Wrap(gui::IGUIImage* ref)
{
if (ref == nullptr)
return nullptr;
return gcnew GUIImage(ref);
}
GUIIm... | 18.828571 | 55 | 0.683612 | vonLeebpl |
ab5051fb9349bed5ddafd38bdb41b1bd8ceaf2c9 | 1,185 | hpp | C++ | Siv3D/include/Siv3D/Process.hpp | RYOSKATE/OpenSiv3D | ac02c341e4d116785a6531ad7567559a086e665a | [
"MIT"
] | null | null | null | Siv3D/include/Siv3D/Process.hpp | RYOSKATE/OpenSiv3D | ac02c341e4d116785a6531ad7567559a086e665a | [
"MIT"
] | null | null | null | Siv3D/include/Siv3D/Process.hpp | RYOSKATE/OpenSiv3D | ac02c341e4d116785a6531ad7567559a086e665a | [
"MIT"
] | null | null | null | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Fwd.hpp"
# include "S... | 16.690141 | 96 | 0.612658 | RYOSKATE |
ab50b7ce8d89220e57b519c712ed1490af2d1d56 | 50 | hpp | C++ | src/boost_spirit_repository_include_qi.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_repository_include_qi.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_repository_include_qi.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/repository/include/qi.hpp>
| 25 | 49 | 0.8 | miathedev |
ab51bcd9e61e291d3ca7cd5fc55c1384707c0387 | 2,907 | cpp | C++ | modules/core/src/Debug/gmLog.cpp | GraphMIC/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 43 | 2016-04-11T11:34:05.000Z | 2022-03-31T03:37:57.000Z | modules/core/src/Debug/gmLog.cpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 1 | 2016-05-17T12:58:16.000Z | 2016-05-17T12:58:16.000Z | modules/core/src/Debug/gmLog.cpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 14 | 2016-05-13T20:23:16.000Z | 2021-12-20T10:33:19.000Z | #include "gmLog.hpp"
#include <iostream>
#include <sstream>
#include <QThread>
#include <QApplication>
namespace gm
{
std::mutex Log::m_mutex;
auto Log::format(std::string format, va_list args) -> std::string
{
char buffer[256];
vsnprintf(buffer, 256, format.c_str(), args);
r... | 32.3 | 148 | 0.509804 | GraphMIC |
ab5254f7735791ad4d6251ce0dce9eb8fce8cec1 | 3,221 | hpp | C++ | captal/src/captal/systems/sorting.hpp | cvbn127/captal-engine | 93a5f428b4cee810b529b7c9a9b3bf6504c8f32f | [
"MIT"
] | 78 | 2021-11-02T13:55:43.000Z | 2022-02-25T09:37:22.000Z | captal/src/captal/systems/sorting.hpp | cvbn127/captal-engine | 93a5f428b4cee810b529b7c9a9b3bf6504c8f32f | [
"MIT"
] | null | null | null | captal/src/captal/systems/sorting.hpp | cvbn127/captal-engine | 93a5f428b4cee810b529b7c9a9b3bf6504c8f32f | [
"MIT"
] | 6 | 2021-11-03T06:56:22.000Z | 2022-01-13T19:11:29.000Z | //MIT License
//
//Copyright (c) 2021 Alexy Pellegrini
//
//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, ... | 37.453488 | 174 | 0.735175 | cvbn127 |
ab5ae14f5a414898f01c5b6b9108828486d7eaea | 8,369 | cxx | C++ | src/extern/dcmtk-3.5.4/dcmsr/libsrc/dsrdtitn.cxx | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/dcmtk-3.5.4/dcmsr/libsrc/dsrdtitn.cxx | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/dcmtk-3.5.4/dcmsr/libsrc/dsrdtitn.cxx | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000-2005, OFFIS
*
* This software and supporting documentation were developed by
*
* Kuratorium OFFIS e.V.
* Healthcare Information and Communication Systems
* Escherweg 2
* D-26121 Oldenburg, Germany
*
* THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRA... | 32.691406 | 125 | 0.636755 | OpenXIP |
ab626cda2f5fac4c9de5bccaa944763648a3bd36 | 1,610 | cpp | C++ | umd/ddi/umd_ddi_resource.cpp | tnamet/Crystal | 9fbce322a014547326ba690092e412d019f1ecb4 | [
"MIT"
] | 2 | 2021-07-09T19:41:39.000Z | 2022-02-01T10:50:05.000Z | umd/ddi/umd_ddi_resource.cpp | tnamet/Crystal | 9fbce322a014547326ba690092e412d019f1ecb4 | [
"MIT"
] | 1 | 2021-07-09T19:50:40.000Z | 2021-07-10T09:01:38.000Z | umd/ddi/umd_ddi_resource.cpp | tnamet/Crystal | 9fbce322a014547326ba690092e412d019f1ecb4 | [
"MIT"
] | 1 | 2022-02-01T10:50:08.000Z | 2022-02-01T10:50:08.000Z | #include "pch.h"
#include "objects\umd_resource.h"
namespace Crystal
{
namespace UMD
{
namespace DDI
{
////////////////////////////////////////////////////////////////////////////////
VOID WINAPI CreateResource(
D3D10DDI_HDEVICE hDevice,
const D3D11DDIARG_CREATERESOURCE* pCreateResource,
D3D... | 24.393939 | 81 | 0.526087 | tnamet |
ab648cbda2bc26fe6d2e26c7b7927505ec5e2018 | 3,790 | hpp | C++ | include/commata/string_value.hpp | furfurylic/commata | 6afbc218d262d8363e8436fd943b1e13444d9f83 | [
"Unlicense"
] | null | null | null | include/commata/string_value.hpp | furfurylic/commata | 6afbc218d262d8363e8436fd943b1e13444d9f83 | [
"Unlicense"
] | null | null | null | include/commata/string_value.hpp | furfurylic/commata | 6afbc218d262d8363e8436fd943b1e13444d9f83 | [
"Unlicense"
] | null | null | null | /**
* These codes are licensed under the Unlicense.
* http://unlicense.org
*/
#ifndef COMMATA_GUARD_2501F2DC_A59A_46EC_ABF7_C898072C318D
#define COMMATA_GUARD_2501F2DC_A59A_46EC_ABF7_C898072C318D
#include <string>
#include <type_traits>
#include "typing_aid.hpp"
namespace commata { namespace detail {
template <... | 26.690141 | 74 | 0.59314 | furfurylic |
036451149f8e9d86174328c8e34cfb40195046fc | 6,577 | cpp | C++ | media_driver/agnostic/gen12_tgllp/vp/kernel_free/Source/Core_Kernels/CSC_Premultiplied_444_16.cpp | lacc97/media-driver | 8aa1d74b80668f9963e691b1c01ab564f50aec85 | [
"Intel",
"BSD-3-Clause",
"MIT"
] | 660 | 2017-11-21T15:55:52.000Z | 2022-03-31T06:31:00.000Z | media_driver/agnostic/gen12_tgllp/vp/kernel_free/Source/Core_Kernels/CSC_Premultiplied_444_16.cpp | lacc97/media-driver | 8aa1d74b80668f9963e691b1c01ab564f50aec85 | [
"Intel",
"BSD-3-Clause",
"MIT"
] | 1,070 | 2017-12-01T00:26:10.000Z | 2022-03-31T17:55:26.000Z | media_driver/agnostic/gen12_tgllp/vp/kernel_free/Source/Core_Kernels/CSC_Premultiplied_444_16.cpp | lacc97/media-driver | 8aa1d74b80668f9963e691b1c01ab564f50aec85 | [
"Intel",
"BSD-3-Clause",
"MIT"
] | 309 | 2017-11-30T08:34:09.000Z | 2022-03-30T18:52:07.000Z | /*
* Copyright (c) 2019, Intel Corporation
*
* 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, merge, publis... | 73.077778 | 267 | 0.686787 | lacc97 |
0367cab4b5bd162050b7e5928f2690765df3995d | 617 | cpp | C++ | sandbox/window/update_system.cpp | KabelitzJ/sandbox | fe870387e634e101a63398409966c61088e1384b | [
"MIT"
] | null | null | null | sandbox/window/update_system.cpp | KabelitzJ/sandbox | fe870387e634e101a63398409966c61088e1384b | [
"MIT"
] | null | null | null | sandbox/window/update_system.cpp | KabelitzJ/sandbox | fe870387e634e101a63398409966c61088e1384b | [
"MIT"
] | null | null | null | #include "update_system.hpp"
#include <core/events.hpp>
namespace sbx {
update_system::update_system(GLFWwindow* handle)
: _handle{handle},
_frame_counter{0u},
_timer{0.0f} { }
void update_system::initialize() {
}
void update_system::update([[maybe_unused]] const time delta_time) {
glfwSwapB... | 16.675676 | 69 | 0.65316 | KabelitzJ |
03685d449f49acc47ddf993d70dd5a51b5744ff5 | 7,950 | cpp | C++ | windows_desktop/a_inputpassword_w.cpp | sarawut11/mwc-qt-wallet | 86012434fa29abd9903f6eecec6bc9d6daa757d9 | [
"Apache-2.0"
] | 17 | 2019-07-03T21:15:17.000Z | 2021-09-09T19:45:39.000Z | windows_desktop/a_inputpassword_w.cpp | sarawut11/mwc-qt-wallet | 86012434fa29abd9903f6eecec6bc9d6daa757d9 | [
"Apache-2.0"
] | 849 | 2019-07-07T13:57:51.000Z | 2022-03-07T03:36:56.000Z | windows_desktop/a_inputpassword_w.cpp | sarawut11/mwc-qt-wallet | 86012434fa29abd9903f6eecec6bc9d6daa757d9 | [
"Apache-2.0"
] | 20 | 2019-06-24T05:53:52.000Z | 2021-11-08T05:50:39.000Z | // Copyright 2019 The MWC Developers
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | 35.333333 | 114 | 0.668805 | sarawut11 |
0368aa6f2d8013623d607654a3ad5d04571b2e52 | 5,295 | hpp | C++ | tests/connection/ConnectionTestUtils.hpp | mathieunassar/ghostmodule | 8e9a9e958ec3cfa3494b49211920e3f669a9c8bd | [
"Apache-2.0"
] | 2 | 2019-10-05T06:51:49.000Z | 2020-10-11T11:20:59.000Z | tests/connection/ConnectionTestUtils.hpp | mathieunassar/ghostmodule | 8e9a9e958ec3cfa3494b49211920e3f669a9c8bd | [
"Apache-2.0"
] | 24 | 2019-06-19T21:33:23.000Z | 2020-10-04T11:36:41.000Z | tests/connection/ConnectionTestUtils.hpp | mathieunassar/ghostmodule | 8e9a9e958ec3cfa3494b49211920e3f669a9c8bd | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Mathieu Nassar
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 30.606936 | 112 | 0.785458 | mathieunassar |
036b1c07c488a045fa55075f70940f20707feb20 | 4,396 | hpp | C++ | util/asio/detail/fiber_socket_impl.hpp | oriubimo/gaia | 2e7807b3269040870b69ca9f792566774598ff60 | [
"BSD-2-Clause"
] | null | null | null | util/asio/detail/fiber_socket_impl.hpp | oriubimo/gaia | 2e7807b3269040870b69ca9f792566774598ff60 | [
"BSD-2-Clause"
] | null | null | null | util/asio/detail/fiber_socket_impl.hpp | oriubimo/gaia | 2e7807b3269040870b69ca9f792566774598ff60 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2019, Beeri 15. All rights reserved.
// Author: Roman Gershman (romange@gmail.com)
//
#pragma once
#include <boost/asio/ip/tcp.hpp>
#include "util/asio/yield.h"
namespace util {
class IoContext;
namespace detail {
class FiberSocketImpl {
public:
using error_code = ::boost::system::error_code;
us... | 30.109589 | 94 | 0.708599 | oriubimo |
036e4fa29b552832e98b0ce5eb4cf30878f8abb9 | 800 | cpp | C++ | cpp/detector.cpp | jinyyu/filedump | 72b55e4ed260585a754078dc9623ff2fbbe5d9fc | [
"MIT"
] | null | null | null | cpp/detector.cpp | jinyyu/filedump | 72b55e4ed260585a754078dc9623ff2fbbe5d9fc | [
"MIT"
] | null | null | null | cpp/detector.cpp | jinyyu/filedump | 72b55e4ed260585a754078dc9623ff2fbbe5d9fc | [
"MIT"
] | null | null | null | #include "detector.h"
#include <ndpi/ndpi_api.h>
void* init_ndpi_ctx()
{
ndpi_detection_module_struct* handle = ndpi_init_detection_module();
NDPI_PROTOCOL_BITMASK all;
NDPI_BITMASK_SET_ALL(all);
ndpi_set_protocol_detection_bitmask2(handle, &all);
return (void*) handle;
}
void free_ndpi_ctx(void* ... | 20 | 75 | 0.725 | jinyyu |
0372f4c4018c80dc8ccfa97528895de6558dc5b5 | 1,396 | hpp | C++ | src/helpers/transform_helpers.hpp | Pandhariix/naoqi_driver | 460e778b60e48432aecb506e303db8ce64c8315e | [
"Apache-2.0"
] | 38 | 2015-08-20T15:35:48.000Z | 2022-03-23T13:43:06.000Z | src/helpers/transform_helpers.hpp | Pandhariix/naoqi_driver | 460e778b60e48432aecb506e303db8ce64c8315e | [
"Apache-2.0"
] | 109 | 2015-07-31T16:11:14.000Z | 2022-03-17T14:08:23.000Z | src/helpers/transform_helpers.hpp | Pandhariix/naoqi_driver | 460e778b60e48432aecb506e303db8ce64c8315e | [
"Apache-2.0"
] | 78 | 2015-08-23T08:50:39.000Z | 2022-03-07T11:05:39.000Z | /*
* Copyright 2015 Aldebaran
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 26.339623 | 134 | 0.729226 | Pandhariix |
037d22f08885ccd252c6a2c265c75396cc075065 | 10,434 | hpp | C++ | include/codegen/include/UnityEngine/CanvasRenderer.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/CanvasRenderer.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/CanvasRenderer.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:39 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: UnityEngine.Component
#include "UnityEngine/Component.hpp"
/... | 68.644737 | 699 | 0.761261 | Futuremappermydud |
037dba4a84b70045e932f0e04d9b56142e791992 | 1,512 | cpp | C++ | source/engine/systems/resource_system/resource_system.cpp | DatBeQuiet/GLRenderer | 1a2d272e7f7d4e9b5283354fd2fb209621f384ab | [
"MIT"
] | 7 | 2020-07-12T09:38:26.000Z | 2020-11-22T14:04:26.000Z | source/engine/systems/resource_system/resource_system.cpp | DatBeQuiet/GLRenderer | 1a2d272e7f7d4e9b5283354fd2fb209621f384ab | [
"MIT"
] | null | null | null | source/engine/systems/resource_system/resource_system.cpp | DatBeQuiet/GLRenderer | 1a2d272e7f7d4e9b5283354fd2fb209621f384ab | [
"MIT"
] | null | null | null | // Copyright (c) 2019 Guillem Costa Miquel, kayter72@gmail.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, cop... | 36.878049 | 80 | 0.76455 | DatBeQuiet |
03875e160608bf7af702a9f36666c3f3346cc92a | 824 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/quest/CharacterEquippedWeapon_ConditionType.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/quest/CharacterEquippedWeapon_ConditionType.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/quest/CharacterEquippedWeapon_ConditionType.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/quest/ICharacterConditionType.hpp>
namespace RED4ext
{
namespace quest {
struct Charac... | 28.413793 | 85 | 0.752427 | jackhumbert |
038ee46a557fd94d3e1bde5bec371b755c0ba428 | 6,331 | cc | C++ | dcmsr/tests/tsrcodvl.cc | trice-imaging/dcmtk | 60b158654dc7215d938a9ddba92ef5e93ded298d | [
"Apache-2.0"
] | 3 | 2017-04-14T15:09:38.000Z | 2020-05-08T10:09:22.000Z | dcmsr/tests/tsrcodvl.cc | trice-imaging/dcmtk | 60b158654dc7215d938a9ddba92ef5e93ded298d | [
"Apache-2.0"
] | null | null | null | dcmsr/tests/tsrcodvl.cc | trice-imaging/dcmtk | 60b158654dc7215d938a9ddba92ef5e93ded298d | [
"Apache-2.0"
] | 3 | 2017-04-14T15:09:41.000Z | 2022-01-27T23:23:35.000Z | /*
*
* Copyright (C) 2015, J. Riesmeier, Oldenburg, Germany
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation are maintained by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmsr
*
* Aut... | 46.896296 | 152 | 0.728795 | trice-imaging |
038f8e753dee5d8ad8974c2d429e7c8e1b1f86c7 | 500 | cpp | C++ | Wonderland/Wonderland/Editor/Foundation/Debug/DebugView.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 3 | 2018-04-09T13:01:07.000Z | 2021-03-18T12:28:48.000Z | Wonderland/Wonderland/Editor/Foundation/Debug/DebugView.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | null | null | null | Wonderland/Wonderland/Editor/Foundation/Debug/DebugView.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 1 | 2021-03-18T12:28:50.000Z | 2021-03-18T12:28:50.000Z | ////////////////////////////////////////////////////////////////////////////////
// Filename: DebugView.cpp
////////////////////////////////////////////////////////////////////////////////
#include "DebugView.h"
//#include "..\UI\Base\UIViewShader.h"
/*
DebugView::DebugView(UIBase* _parent) : View::View(_parent)
{
}
D... | 20.833333 | 80 | 0.478 | RodrigoHolztrattner |
0392daf9dc72fcd49aca04d69e19288d94f74cb5 | 1,195 | cpp | C++ | source/native/conduit.cpp | rodsan0/conduit | b24935a9016077b763fe2f22f403cae356e70a41 | [
"MIT"
] | null | null | null | source/native/conduit.cpp | rodsan0/conduit | b24935a9016077b763fe2f22f403cae356e70a41 | [
"MIT"
] | 1 | 2020-10-22T20:41:05.000Z | 2020-10-22T20:41:05.000Z | source/native/conduit.cpp | rodsan0/conduit | b24935a9016077b763fe2f22f403cae356e70a41 | [
"MIT"
] | null | null | null | // This file is part of Pipe Profile
// Copyright (C) Matthew Andres Moreno, 2020.
// Released under MIT license; see LICENSE
#include <chrono>
#include <iomanip>
#include <iostream>
#include "uitsl/chrono/TimeGuard.hpp"
#include "uitsl/mpi/mpi_utils.hpp"
#include "../config_utils.hpp"
#include "../grid_utils.hpp... | 22.12963 | 82 | 0.625941 | rodsan0 |
03930740f02747447d7a9521472719b2734b0baa | 5,279 | hpp | C++ | include/verilog/types/netlist.hpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 1 | 2019-04-30T17:56:23.000Z | 2019-04-30T17:56:23.000Z | include/verilog/types/netlist.hpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | null | null | null | include/verilog/types/netlist.hpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 4 | 2018-08-01T08:32:00.000Z | 2019-12-18T06:34:33.000Z | // ============================================================================
// Copyright 2018 Paul le Roux and Calvin Maree
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code ... | 38.532847 | 101 | 0.683084 | qedalab |
0394e6b231d61d8ce742a8fe2fdfc75c78804d34 | 983 | cpp | C++ | solved/c-e/crazy-calendar/crazy.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/c-e/crazy-calendar/crazy.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/c-e/crazy-calendar/crazy.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
typedef unsigned int u32;
// I/O
#define BUF 65536
struct Reader {
char buf[BUF]; char b; int bi, bz;
Reader() { bi=bz=0; read(); }
void read() {
if (bi==bz) { bi=0; bz = fread(buf, 1, BUF, stdin); }
b = bz ? buf[bi++] : 0; }
void skip() { while (b > 0 && b <= 32) rea... | 21.369565 | 76 | 0.418108 | abuasifkhan |
0395eea8f4d53b571b3fc042ee7d756372eeacbe | 4,743 | cpp | C++ | src/20/part1/solver_20_part1.cpp | jonvuri/advent_of_code_2021 | 0416aa253f38545f2d943be54b2da424c9fb5eaf | [
"Unlicense"
] | null | null | null | src/20/part1/solver_20_part1.cpp | jonvuri/advent_of_code_2021 | 0416aa253f38545f2d943be54b2da424c9fb5eaf | [
"Unlicense"
] | null | null | null | src/20/part1/solver_20_part1.cpp | jonvuri/advent_of_code_2021 | 0416aa253f38545f2d943be54b2da424c9fb5eaf | [
"Unlicense"
] | null | null | null | #include <algorithm>
#include <bitset>
#include <cstddef>
#include <numeric>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <doctest/doctest.h>
#include "solver_20_part1.h"
namespace {
std::vector<std::vector<bool>> enhance_canvas(
const std::vector<std::vector<bool>> &input_c... | 26.948864 | 516 | 0.510226 | jonvuri |
0398af969bc8d838871bdb9ca52dc9639ade960d | 7,277 | hpp | C++ | Sisyphe/cppbase/src/interpreter/debugStubInfoInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/cppbase/src/interpreter/debugStubInfoInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/cppbase/src/interpreter/debugStubInfoInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | /*
* debugStubInfoInterpreter.hpp
*
*
* @date 14-07-2020
* @author Teddy DIDE
* @version 1.00
* cppBase generated by gensources.
*/
#ifndef _DEBUGSTUBINFO_INTERPRETER_HPP_
#define _DEBUGSTUBINFO_INTERPRETER_HPP_
#include "config.hpp"
#include "Macros.hpp"
#include "Base.hpp"
#include "Array.hpp"
#include "c... | 45.767296 | 164 | 0.786313 | tedi21 |
039a3950a4c231a311c2bac9fe0b7c0b2d05714d | 1,109 | cpp | C++ | LeetCode/100/1706.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/100/1706.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/100/1706.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | // created by Kona @VSCode
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <queue>
#include <vector>
#include <string.h>
#define LOCAL_TEST
typedef long long ll;
using std::cin;
using std::cout;
using std::endl;
using std::map;
using std::queue;
using std::string;
using std::vector;... | 19.12069 | 69 | 0.511271 | K-ona |
039e5a6998f5578c7b281d99376a9be2cd0035ec | 533 | cpp | C++ | test/test_sleep.cpp | hsbyhub/libxco | e71f995839886c69e710ca5811403f025b8d0c4f | [
"MulanPSL-1.0"
] | 3 | 2022-03-12T03:01:24.000Z | 2022-03-23T11:02:48.000Z | test/test_sleep.cpp | hsbyhub/libxco | e71f995839886c69e710ca5811403f025b8d0c4f | [
"MulanPSL-1.0"
] | null | null | null | test/test_sleep.cpp | hsbyhub/libxco | e71f995839886c69e710ca5811403f025b8d0c4f | [
"MulanPSL-1.0"
] | 1 | 2022-03-21T05:36:03.000Z | 2022-03-21T05:36:03.000Z | /*================================================================*
Copyright (C) 2021 All rights reserved, www.hsby.link.
�ļ����ƣ�test_sleep.cpp
�� �� �ߣ�hsby
�������ڣ�2022/2/10
*================================================================*/
#include "iomanager.h"
#include "hook.h"
v... | 24.227273 | 68 | 0.399625 | hsbyhub |
03a1b9b7f4a3ba54aadb7453ced71e876a6926f8 | 58,868 | cpp | C++ | src/game/projectile.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | 2 | 2018-08-30T23:48:22.000Z | 2021-04-07T19:16:18.000Z | src/game/projectile.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | null | null | null | src/game/projectile.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | null | null | null | // Copyright (C) 2004 Id Software, Inc.
//
#include "../idlib/precompiled.h"
#pragma hdrstop
#include "Game_local.h"
/*
===============================================================================
idProjectile
===============================================================================
*/
static const in... | 27.178209 | 195 | 0.65815 | AMS21 |
03a43c3e11cfeecb0d395b3b3cd467a8069ac275 | 1,463 | cpp | C++ | sources/main.cpp | piligr1m/Multithreads | e46e1482b3e34af1f9c980fc392a28a49867a1c0 | [
"MIT"
] | null | null | null | sources/main.cpp | piligr1m/Multithreads | e46e1482b3e34af1f9c980fc392a28a49867a1c0 | [
"MIT"
] | null | null | null | sources/main.cpp | piligr1m/Multithreads | e46e1482b3e34af1f9c980fc392a28a49867a1c0 | [
"MIT"
] | null | null | null | //
// main.cpp
// LW6
//
// Created by Stanislav Martynov on 17.12.2019.
// Copyright © 2019 Stanislav Martynov. All rights reserved.
//
#include "search_prototype.hpp"
#include "log.hpp"
#include <iostream>
#include <exception>
#include <sstream>
#include <thread>
#include <exception>
#include <vector>
#include <... | 23.596774 | 75 | 0.555707 | piligr1m |
03a81df8b7523cd1fc062bd2b9d8b10df56d3cb8 | 105 | cpp | C++ | src/main.cpp | Beafantles/Ecosystem-simulation | 1cbeae0fecb02ad5e7964f7fee160406d73b3815 | [
"MIT"
] | 4 | 2017-12-01T14:06:16.000Z | 2019-08-10T03:45:45.000Z | src/main.cpp | Beafantles/Ecosystem-simulation | 1cbeae0fecb02ad5e7964f7fee160406d73b3815 | [
"MIT"
] | null | null | null | src/main.cpp | Beafantles/Ecosystem-simulation | 1cbeae0fecb02ad5e7964f7fee160406d73b3815 | [
"MIT"
] | null | null | null | // Copyright 2017 Beafantles
#include <program.hpp>
int main()
{
return Program().run();
}
| 11.666667 | 29 | 0.6 | Beafantles |
03a9593ad41559fd07baa385507d851327187634 | 1,210 | cpp | C++ | src/common/fast_hash.cpp | datavetaren/prologcoin | 8583db7d99a8007f634210aefdfb92bf45596fd3 | [
"MIT"
] | 38 | 2017-06-14T07:13:10.000Z | 2022-02-16T15:41:25.000Z | src/common/fast_hash.cpp | datavetaren/prologcoin | 8583db7d99a8007f634210aefdfb92bf45596fd3 | [
"MIT"
] | 10 | 2017-07-01T11:13:10.000Z | 2021-02-27T05:40:30.000Z | src/common/fast_hash.cpp | datavetaren/prologcoin | 8583db7d99a8007f634210aefdfb92bf45596fd3 | [
"MIT"
] | 7 | 2017-07-05T20:38:51.000Z | 2021-08-02T04:30:46.000Z | #include "fast_hash.hpp"
namespace prologcoin { namespace common {
// This is intentionally not a constant so it can be changed at
// startup time.
uint32_t fast_hash::HASH_SEED = 38136192;
#ifdef __GNUC__
#define FORCE_INLINE __attribute__((always_inline)) inline
#else
#define FORCE_INLINE inline
#endif
static FO... | 17.285714 | 63 | 0.58595 | datavetaren |
03ab41f8ed0b61a9d492c7c4f56b2d168eab7ce0 | 4,778 | cpp | C++ | fsck/tests/TestCursors.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | fsck/tests/TestCursors.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | fsck/tests/TestCursors.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | #include <database/Distinct.h>
#include <database/Filter.h>
#include <database/Group.h>
#include <database/LeftJoinEq.h>
#include <database/Select.h>
#include <database/Union.h>
#include <database/VectorSource.h>
#include <boost/static_assert.hpp>
#include <gtest/gtest.h>
template<typename Obj, size_t Size>
static V... | 18.737255 | 91 | 0.53851 | TomatoYoung |
03acc8a5650da2902953a3002048b2e0efd00bb9 | 10,509 | cpp | C++ | Source/Engine/Graphics/PathIntegratorDXR1_1.cpp | KaiH0717/Kaguya | 6bdcac77984e3d359ea2fabe926dd44a467dde68 | [
"MIT"
] | 176 | 2020-10-31T21:28:27.000Z | 2022-01-22T12:15:38.000Z | Source/Engine/Graphics/PathIntegratorDXR1_1.cpp | KaiH0717/Kaguya | 6bdcac77984e3d359ea2fabe926dd44a467dde68 | [
"MIT"
] | null | null | null | Source/Engine/Graphics/PathIntegratorDXR1_1.cpp | KaiH0717/Kaguya | 6bdcac77984e3d359ea2fabe926dd44a467dde68 | [
"MIT"
] | 9 | 2020-12-25T01:12:48.000Z | 2022-01-13T16:28:43.000Z | #include "PathIntegratorDXR1_1.h"
#include "RendererRegistry.h"
void PathIntegratorDXR1_1::SetViewportResolution(uint32_t Width, uint32_t Height)
{
Resolution.RefreshViewportResolution(Width, Height);
Resolution.RefreshRenderResolution(Width, Height);
}
void PathIntegratorDXR1_1::Initialize()
{
Shaders::Compile();... | 34.12013 | 109 | 0.748882 | KaiH0717 |
03b31615ddff4c4e9c9484e81a4ccef30ab6597e | 300 | cpp | C++ | Samples/Win7Samples/winbase/cluster/win2003/filesharesample/file share sampleex/StdAfx.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/winbase/cluster/win2003/filesharesample/file share sampleex/StdAfx.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/winbase/cluster/win2003/filesharesample/file share sampleex/StdAfx.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | // stdafx.cpp : source file that includes just the standard includes
// File Share SampleEx.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
const WCHAR g_wszResourceTypeNames[] =
L"File Share Sample\0"
;
| 30 | 69 | 0.706667 | windows-development |
03b533ace916cbbb62f55fd2bbb1033f1b2789ff | 141 | cpp | C++ | Engine/src/math/vec2.cpp | anujv99/2DEngine | 5f2f7f681bf4e45de1964ade82198c2da5b9f7c1 | [
"MIT"
] | null | null | null | Engine/src/math/vec2.cpp | anujv99/2DEngine | 5f2f7f681bf4e45de1964ade82198c2da5b9f7c1 | [
"MIT"
] | 1 | 2019-09-28T10:37:53.000Z | 2019-10-02T07:26:35.000Z | Engine/src/math/vec2.cpp | anujv99/2DEngine | 5f2f7f681bf4e45de1964ade82198c2da5b9f7c1 | [
"MIT"
] | 1 | 2019-05-27T03:35:07.000Z | 2019-05-27T03:35:07.000Z | #include "pch.h"
#include "vec2.h"
#include <Box2D/Common/b2Math.h>
namespace prev {
Vec2::Vec2(b2Vec2 _vec) : x(_vec.x), y(_vec.y) {}
} | 14.1 | 50 | 0.64539 | anujv99 |
03b5475b38b77e55f849cb3de32c94cf7da4bf7c | 784 | cpp | C++ | src/test/compiler/filter_func_test_script.cpp | ArnauPrat/furious | 0275d82e8f7ee957dfd216920ce72bbdb8917bb7 | [
"MIT"
] | 17 | 2019-07-31T11:40:38.000Z | 2021-11-23T02:53:47.000Z | src/test/compiler/filter_func_test_script.cpp | ArnauPrat/furious | 0275d82e8f7ee957dfd216920ce72bbdb8917bb7 | [
"MIT"
] | 1 | 2018-10-03T21:09:17.000Z | 2018-10-03T21:09:17.000Z | src/test/compiler/filter_func_test_script.cpp | ArnauPrat/furious | 0275d82e8f7ee957dfd216920ce72bbdb8917bb7 | [
"MIT"
] | null | null | null |
#include "lang/lang.h"
#include "filter_func_test_header.h"
static bool filter(const Position* pos, const Velocity* vel)
{
return vel->m_x < 2.0f && vel->m_y < 2.0f && vel->m_z < 2.0f;
}
BEGIN_FDB_SCRIPT
struct UpdatePosition
{
UpdatePosition(float speed) : m_speed{speed} {}
void run(fdb_context_t* context,
... | 23.757576 | 72 | 0.654337 | ArnauPrat |
03b9c622c9099ef29e570147423c63a4845db5cf | 2,014 | cc | C++ | src/backends/threads.cc | asveikau/pollster | 522bb808a5d04e198cf488e8169ef90943050dbf | [
"0BSD"
] | null | null | null | src/backends/threads.cc | asveikau/pollster | 522bb808a5d04e198cf488e8169ef90943050dbf | [
"0BSD"
] | null | null | null | src/backends/threads.cc | asveikau/pollster | 522bb808a5d04e198cf488e8169ef90943050dbf | [
"0BSD"
] | null | null | null | /*
Copyright (C) 2018, 2019 Andrew Sveikauskas
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
*/
#include <pollster/threads.h>
#include <string.h>
polls... | 21.891304 | 84 | 0.585402 | asveikau |
03bcbd034b5774cba8abace15b4cead0cb756570 | 3,442 | hpp | C++ | phylanx/execution_tree/primitives/greater.hpp | rtohid/phylanx | c2e4e8e531c204a70b1907995b1fd467870e6d9d | [
"BSL-1.0"
] | null | null | null | phylanx/execution_tree/primitives/greater.hpp | rtohid/phylanx | c2e4e8e531c204a70b1907995b1fd467870e6d9d | [
"BSL-1.0"
] | null | null | null | phylanx/execution_tree/primitives/greater.hpp | rtohid/phylanx | c2e4e8e531c204a70b1907995b1fd467870e6d9d | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017-2018 Hartmut Kaiser
//
// 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)
#if !defined(PHYLANX_PRIMITIVES_GREATER_OCT_07_2017_0223PM)
#define PHYLANX_PRIMITIVES_GREATER_OCT_07_2017_0223PM
#inclu... | 36.617021 | 79 | 0.662115 | rtohid |
03bf5f39fd0da8e70983d7e7ec09b0242fa5a497 | 420 | hpp | C++ | include/logger.hpp | danrouse/bsq-zenjeqt | be978da9d48ecdc8bfc9cdf7aa3995ff7031513f | [
"MIT"
] | null | null | null | include/logger.hpp | danrouse/bsq-zenjeqt | be978da9d48ecdc8bfc9cdf7aa3995ff7031513f | [
"MIT"
] | null | null | null | include/logger.hpp | danrouse/bsq-zenjeqt | be978da9d48ecdc8bfc9cdf7aa3995ff7031513f | [
"MIT"
] | 2 | 2021-08-31T23:50:57.000Z | 2021-09-09T16:15:19.000Z | #pragma once
#include "modloader/shared/modloader.hpp"
#include "beatsaber-hook/shared/utils/logging.hpp"
Logger& getLogger();
#ifdef ZENJEQT_DEBUG
#define _LOG_DEBUG(m...) getLogger().debug(std::string(__func__) + " (" + std::string(__FILE__) + ":" + std::to_string(__LINE__) + ")" + m)
#define LOG_DEBUG(m...) _LOG_... | 26.25 | 139 | 0.707143 | danrouse |
03c492a2a195bbe9fdb6af9c1a9b5ca174278a24 | 868 | cpp | C++ | Baekjoon/11049.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/11049.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/11049.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
#include <climits>
using namespace std;
int dp(int arr[], int size)
{
int** table;
int i, j, k, L, tmp, result;
table = new int*[size + 1];
for (int i = 0; i < size + 1; i++)
table[i] = new int[size + 1];
for (int i = 1; i <= size; i++)
table[i][i] = 0;
for (int i = 1; i <= size; i++)
... | 16.692308 | 71 | 0.467742 | Twinparadox |
03d2f0e6633b4f2498ba34688507555d7fd8df33 | 1,475 | cpp | C++ | corelib/src/Optimizer/ceres/LocalParameterization.cpp | supersaiyajinggod/VISFS | 6567df9b064437a32dc96d6f03ef6cd4ea1b24ce | [
"BSD-3-Clause"
] | 3 | 2021-06-09T13:20:59.000Z | 2022-01-14T13:31:11.000Z | corelib/src/Optimizer/ceres/LocalParameterization.cpp | supersaiyajinggod/VISFS | 6567df9b064437a32dc96d6f03ef6cd4ea1b24ce | [
"BSD-3-Clause"
] | null | null | null | corelib/src/Optimizer/ceres/LocalParameterization.cpp | supersaiyajinggod/VISFS | 6567df9b064437a32dc96d6f03ef6cd4ea1b24ce | [
"BSD-3-Clause"
] | null | null | null | #include <Eigen/Core>
#include <Eigen/Geometry>
#include "Optimizer/ceres/LocalParameterization.h"
#include "Math.h"
namespace VISFS {
namespace Optimizer {
bool PoseLocalParameterization::Plus(const double * x, const double * delta, double * x_plus_delta) const {
Eigen::Map<const Eigen::Vector3d> _p(x);
Eig... | 28.921569 | 108 | 0.67661 | supersaiyajinggod |
03d4c2fe97f7aa0487cb004f2ad097f5ae3c2562 | 1,754 | hpp | C++ | library/ATF/CUnmannedTraderTaxRateManager.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CUnmannedTraderTaxRateManager.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CUnmannedTraderTaxRateManager.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <CGuild.hpp>
#include <CLogFile.hpp>
#include <CMyTimer.hpp>
#include <TRC_AutoTrade.hpp>
#include <std__vector.hpp>
START_ATF_NAMESPACE
struct CUnmannedTr... | 40.790698 | 125 | 0.712087 | lemkova |
03d5f85a47aefe82cbe78b3c85e1e37c556c054e | 1,116 | cpp | C++ | Component Demo/IMove.cpp | dbechrd/CompositionDemo | 6a43aef15e6a63f00695dfc1434051ca50109dfe | [
"MIT"
] | 2 | 2015-01-23T06:08:36.000Z | 2016-12-29T18:15:31.000Z | Component Demo/IMove.cpp | dbechrd/CompositionDemo | 6a43aef15e6a63f00695dfc1434051ca50109dfe | [
"MIT"
] | null | null | null | Component Demo/IMove.cpp | dbechrd/CompositionDemo | 6a43aef15e6a63f00695dfc1434051ca50109dfe | [
"MIT"
] | null | null | null | #include "IMove.h"
#include "IPosition.h"
#include <iostream>
std::map<Entity*, IMove*> IMove::collection;
std::map<Entity*, IMove*>::iterator IMove::iter;
IMove *IMove::GetRef(Entity *entity)
{
iter = collection.find(entity);
if(iter != collection.end())
{
return iter->second;
}
return NULL;
}
void IMove::Upd... | 15.942857 | 82 | 0.638889 | dbechrd |
03dc14a1649cdc9519fc60d27951704b8e63f08b | 8,340 | cpp | C++ | c_src/erlimage_nif_old.cpp | eyedouble/erlimage | cfef24124a2f10759db20d7595ea4d188e521b55 | [
"MIT"
] | null | null | null | c_src/erlimage_nif_old.cpp | eyedouble/erlimage | cfef24124a2f10759db20d7595ea4d188e521b55 | [
"MIT"
] | null | null | null | c_src/erlimage_nif_old.cpp | eyedouble/erlimage | cfef24124a2f10759db20d7595ea4d188e521b55 | [
"MIT"
] | null | null | null |
#include "erlimage/erlimage.h"
#include "erlimage/erlimage_base.cpp"
#include "erlimage/erlimage_io.cpp"
#include "erlimage/erlimage_pixels.cpp"
/* END CONFIRMED */
/* PROP API */
/* ---------------------------
READ FILE
--------------------------- */
static ERL_NIF_TERM
readFile ( ErlNifEnv* env... | 26.903226 | 124 | 0.592806 | eyedouble |
03dd8ca8ef6578a5bd735cdd8495fbf4e243547c | 11,061 | hpp | C++ | include/common/impl.common_hashtbl.hpp | davitkalantaryan/fork-cpp-raft | f8d08a645ba541d42c6f2db54137fbfa53b5908d | [
"BSD-3-Clause"
] | null | null | null | include/common/impl.common_hashtbl.hpp | davitkalantaryan/fork-cpp-raft | f8d08a645ba541d42c6f2db54137fbfa53b5908d | [
"BSD-3-Clause"
] | null | null | null | include/common/impl.common_hashtbl.hpp | davitkalantaryan/fork-cpp-raft | f8d08a645ba541d42c6f2db54137fbfa53b5908d | [
"BSD-3-Clause"
] | null | null | null |
// common/hashtbl.impl.hpp
// 2017 Jul 21
#ifndef COMMON_IMPL_COMMON_HASHTBL_HPP
#define COMMON_IMPL_COMMON_HASHTBL_HPP
#include <malloc.h>
#include <memory.h>
#include <utility>
#include <new>
#ifndef COMMON_COMMON_HASHTBL_HPP
//#error do not include this header directly
#include "common_hashtbl.hpp"... | 26.52518 | 127 | 0.606636 | davitkalantaryan |
03df00db644cb41aa55bb94015eabdfcc603029e | 42 | cpp | C++ | Windows/VS2017/vtkOgg/vtkOgg.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkOgg/vtkOgg.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkOgg/vtkOgg.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | #include "vtkOgg.h"
vtkOgg::vtkOgg()
{
}
| 7 | 19 | 0.619048 | WinBuilds |
03e104630d3b5bb7dc6ca0cdd31a2cb87ad12b6d | 446 | cpp | C++ | Hashes/GpCryptoHash_Ripemd160.cpp | ITBear/GpCryptoCore | c08a62f76eb25e6b43f170f3b69b79bb33f5b867 | [
"MIT"
] | null | null | null | Hashes/GpCryptoHash_Ripemd160.cpp | ITBear/GpCryptoCore | c08a62f76eb25e6b43f170f3b69b79bb33f5b867 | [
"MIT"
] | null | null | null | Hashes/GpCryptoHash_Ripemd160.cpp | ITBear/GpCryptoCore | c08a62f76eb25e6b43f170f3b69b79bb33f5b867 | [
"MIT"
] | 4 | 2020-06-09T07:03:42.000Z | 2021-05-18T04:12:07.000Z | #include "GpCryptoHash_Ripemd160.hpp"
#include "../ExtSources/ripemd160.hpp"
namespace GPlatform {
void GpCryptoHash_Ripemd160::S_H
(
GpRawPtrByteR aData,
GpRawPtrByteRW aResOut
)
{
Ripemd160(aData, aResOut);
}
GpCryptoHash_Ripemd160::Res160T GpCryptoHash_Ripemd160::S_H (GpRawPtrByt... | 17.84 | 82 | 0.681614 | ITBear |
03e297a61715caf5ab8ddc51e0cc93c30deb28c3 | 67 | cpp | C++ | source/dummy-header-includes/kickstart/root/core/stdlib-extensions/files.include.cpp | progrock-libraries/kickstart | d62c22efc92006dd76d455cf8f9d4f2a045e9126 | [
"MIT"
] | 2 | 2021-09-21T18:34:27.000Z | 2022-02-13T02:50:57.000Z | source/dummy-header-includes/kickstart/root/core/stdlib-extensions/files.include.cpp | progrock-libraries/kickstart | d62c22efc92006dd76d455cf8f9d4f2a045e9126 | [
"MIT"
] | null | null | null | source/dummy-header-includes/kickstart/root/core/stdlib-extensions/files.include.cpp | progrock-libraries/kickstart | d62c22efc92006dd76d455cf8f9d4f2a045e9126 | [
"MIT"
] | null | null | null | #include <kickstart/main_library/core/stdlib-extensions/files.hpp>
| 33.5 | 66 | 0.835821 | progrock-libraries |
03e2b3e71a92d595425a8503b160c56faaadbaee | 4,374 | cpp | C++ | test/VecmapTest.cpp | Voultapher/Vool | 69b5d5e0fbc453accf21e0bc983d6391da7b1dfa | [
"Apache-2.0"
] | 2 | 2016-03-19T22:14:00.000Z | 2016-08-26T17:35:17.000Z | test/VecmapTest.cpp | Voultapher/Vool | 69b5d5e0fbc453accf21e0bc983d6391da7b1dfa | [
"Apache-2.0"
] | null | null | null | test/VecmapTest.cpp | Voultapher/Vool | 69b5d5e0fbc453accf21e0bc983d6391da7b1dfa | [
"Apache-2.0"
] | null | null | null | /*
* Vool - Unit tests for vec_map
*
* Copyright (c) 2016 Lukas Bergdoll - www.lukas-bergdoll.net
*
* This code is licensed under the Apache License 2.0 (https://opensource.org/licenses/Apache-2.0)
*/
#include "AllTests.h"
#include <Vecmap.h>
#include <vector>
#include <exception>
namespace vool
{
namespace tests
... | 25.729412 | 97 | 0.678555 | Voultapher |
03e42113c8a6633f10439016cc59ddb5528d2adf | 3,401 | cpp | C++ | test/test_necklace.cpp | gmedders/pimd | ab03d489613e76b31a7e4c5f0a10271f248c96a7 | [
"BSD-3-Clause"
] | 1 | 2022-03-06T12:46:57.000Z | 2022-03-06T12:46:57.000Z | test/test_necklace.cpp | gmedders/pimd | ab03d489613e76b31a7e4c5f0a10271f248c96a7 | [
"BSD-3-Clause"
] | 2 | 2018-07-07T05:07:43.000Z | 2018-07-27T04:36:50.000Z | test/test_necklace.cpp | gmedders/pimd | ab03d489613e76b31a7e4c5f0a10271f248c96a7 | [
"BSD-3-Clause"
] | 1 | 2022-03-16T12:38:10.000Z | 2022-03-16T12:38:10.000Z | #include <algorithm>
#include <random>
#include <stdexcept>
#include <string>
#include "necklace.h"
#include "gtest/gtest.h"
const double tol(1.0E-8);
TEST(necklace, setup) {
const int nbead(4);
const int ndim(1);
const int natom(1);
parts::necklace necklace;
necklace.setup(ndim, natom, nbead);
EXPECT_... | 36.569892 | 78 | 0.671567 | gmedders |
03e7fb8fc6550f3ce378d48cdde26c0d834b375e | 7,278 | cpp | C++ | src/mavsdk/core/curl_wrapper.cpp | BeagleSystems/MAVSDK | 4b4e87174d2bf629966dc6b3c48865d7a34b94b4 | [
"BSD-3-Clause"
] | 275 | 2019-06-13T17:50:40.000Z | 2022-03-28T01:03:01.000Z | src/core/curl_wrapper.cpp | matheus-ps/MAVSDK | 3f3892f9df7f6f2faff25750e07441fed1d9ad72 | [
"BSD-3-Clause"
] | 655 | 2019-06-07T13:08:12.000Z | 2022-03-23T04:51:21.000Z | src/core/curl_wrapper.cpp | matheus-ps/MAVSDK | 3f3892f9df7f6f2faff25750e07441fed1d9ad72 | [
"BSD-3-Clause"
] | 299 | 2019-06-10T06:58:58.000Z | 2022-03-25T04:14:34.000Z | #include "global_include.h"
#include "log.h"
#include "curl_wrapper.h"
#include <iostream>
#include <cstdio>
#include <fstream>
#include <string>
namespace mavsdk {
// converts curl output to string
// taken from
// https://stackoverflow.com/questions/9786150/save-curl-content-result-into-a-string-in-c
static size_t ... | 32.932127 | 99 | 0.6385 | BeagleSystems |
03e90ecb3a454cdd97f281e414b0e681d64b8d38 | 1,069 | hpp | C++ | src/ray/canvas.hpp | st-walker/cppray | da9340a4545e7c9a6e590b79fa5d18ab7ba225c0 | [
"MIT"
] | null | null | null | src/ray/canvas.hpp | st-walker/cppray | da9340a4545e7c9a6e590b79fa5d18ab7ba225c0 | [
"MIT"
] | null | null | null | src/ray/canvas.hpp | st-walker/cppray | da9340a4545e7c9a6e590b79fa5d18ab7ba225c0 | [
"MIT"
] | null | null | null | #ifndef RAY_CANVAS_HPP
#define RAY_CANVAS_HPP
#include <vector>
#include "colour.hpp"
namespace ray {
class Canvas {
public:
using Pixels = std::vector<Colour>;
Canvas() = delete;
Canvas(int width, int height)
: width_(width), height_(height), pixels(width * height) {}
int width() const { return wid... | 24.860465 | 65 | 0.693171 | st-walker |
03f5fc13bcc7d66a0fb27df211f49541fd346a6d | 4,039 | cpp | C++ | src/intl/utils/maptest.cpp | AlexeyMochalov/firebird | 8b485a455c70d1eaf201192b46b5dd5fdf5ea386 | [
"Condor-1.1"
] | 988 | 2016-03-16T10:27:43.000Z | 2022-03-31T14:52:19.000Z | src/intl/utils/maptest.cpp | mistmist/firebird | d31495be14daa8bca46c879bdaf0e30194abd891 | [
"Condor-1.1"
] | 574 | 2016-03-23T15:35:56.000Z | 2022-03-31T07:11:03.000Z | src/intl/utils/maptest.cpp | mistmist/firebird | d31495be14daa8bca46c879bdaf0e30194abd891 | [
"Condor-1.1"
] | 241 | 2016-03-17T09:53:16.000Z | 2022-03-29T19:58:29.000Z | /*
* The contents of this file are subject to the Interbase Public
* License Version 1.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.Inprise.com/IPL.html
*
* Software distributed under the License is distributed on an
* ... | 27.47619 | 88 | 0.665759 | AlexeyMochalov |
03f7599bef882e864585ced200b84ba7ebb357aa | 3,056 | cpp | C++ | src/Node.cpp | sahandKashani/OpenGL-cloth-simulator | 9888b9ec08df8969278a33f1be3fbd908132d0d2 | [
"Unlicense"
] | 1 | 2021-03-22T03:04:05.000Z | 2021-03-22T03:04:05.000Z | src/Node.cpp | sahandKashani/OpenGL-cloth-simulator | 9888b9ec08df8969278a33f1be3fbd908132d0d2 | [
"Unlicense"
] | null | null | null | src/Node.cpp | sahandKashani/OpenGL-cloth-simulator | 9888b9ec08df8969278a33f1be3fbd908132d0d2 | [
"Unlicense"
] | 1 | 2017-04-24T01:59:49.000Z | 2017-04-24T01:59:49.000Z | #include "Node.h"
// OpenGL imports
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "ClothSimulator.h"
#include "Arrow.h"
#include "DrawingSettings.h"
#include <vector>
Node::Node() :
position(Vector3(0.0, 0.0, 0.0)),
oldPosition(Vector3(0.0, 0.0, 0.0)),
moveable(true),
force(Vec... | 20.648649 | 95 | 0.614529 | sahandKashani |
ff03a01777f3651c8c7f697b361262d5d2b3bd22 | 6,199 | cpp | C++ | qtreportslib/tags/report.cpp | PO-21/QtReports | f7b04ce52cee9a2110e04fb3dafcc96bf87bd2b0 | [
"MIT"
] | 3 | 2019-05-20T07:56:23.000Z | 2021-12-29T16:42:33.000Z | qtreportslib/tags/report.cpp | PO-21/QtReports | f7b04ce52cee9a2110e04fb3dafcc96bf87bd2b0 | [
"MIT"
] | 15 | 2016-02-25T03:48:47.000Z | 2018-05-02T13:39:46.000Z | qtreportslib/tags/report.cpp | PO-21/QtReports | f7b04ce52cee9a2110e04fb3dafcc96bf87bd2b0 | [
"MIT"
] | 3 | 2016-03-04T10:16:27.000Z | 2019-12-23T08:15:18.000Z | #include "report.hpp"
namespace qtreports
{
namespace detail
{
Report::Report() :
m_orientation( QPrinter::Orientation::Portrait ),
m_size( 595, 842 ),
m_margins( 30, 30, 30, 30 )
{}
Report::~Report() {}
void Report::setDefaultStyle( con... | 24.120623 | 99 | 0.471205 | PO-21 |
ff0656fdaaf6b5036312df2ed3f14e2942491d07 | 6,223 | cpp | C++ | 4.27/PlayFabPlugin/PlayFab/Source/PlayFabCpp/Private/Core/PlayFabAuthenticationInstanceAPI.cpp | parnic-sks/UnrealMarketplacePlugin | 87a9d392de53d2031a3ceafbc79ab86d86ca3a33 | [
"Apache-2.0"
] | 85 | 2018-11-21T00:01:28.000Z | 2022-03-26T14:04:07.000Z | 4.27/PlayFabPlugin/PlayFab/Source/PlayFabCpp/Private/Core/PlayFabAuthenticationInstanceAPI.cpp | parnic-sks/UnrealMarketplacePlugin | 87a9d392de53d2031a3ceafbc79ab86d86ca3a33 | [
"Apache-2.0"
] | 17 | 2019-04-04T12:24:48.000Z | 2021-10-12T08:06:47.000Z | 4.27/PlayFabPlugin/PlayFab/Source/PlayFabCpp/Private/Core/PlayFabAuthenticationInstanceAPI.cpp | parnic-sks/UnrealMarketplacePlugin | 87a9d392de53d2031a3ceafbc79ab86d86ca3a33 | [
"Apache-2.0"
] | 38 | 2018-11-17T09:53:27.000Z | 2022-03-26T22:33:11.000Z | //////////////////////////////////////////////////////
// Copyright (C) Microsoft. 2018. All rights reserved.
//////////////////////////////////////////////////////
// This is automatically generated by PlayFab SDKGenerator. DO NOT modify this manually!
#include "Core/PlayFabAuthenticationInstanceAPI.h"
#include "Cor... | 41.486667 | 227 | 0.784027 | parnic-sks |
ff0672c3023be47c39de877ef3163a0bd50efdce | 2,405 | cpp | C++ | common/source/common/toolkit/serialization/SerializeStr.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | common/source/common/toolkit/serialization/SerializeStr.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | common/source/common/toolkit/serialization/SerializeStr.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | #include "Serialization.h"
template<typename Collection>
static void serializeStringCollection(Serializer& ser, const Collection& value)
{
Serializer atStart = ser.mark();
uint32_t sizeAtStart = ser.size();
uint32_t elements = 0; // list<T> is slow for size()
ser
% uint32_t(0) // total length field... | 22.06422 | 98 | 0.644075 | TomatoYoung |
ff0970f063640906fc162ae8f8b42c624f57573b | 4,596 | cpp | C++ | apps/MCManager/src/MCClient.cpp | FleX-d/RSM | fa6eb54bd0377ddb63fe023a3b73bc893938f1fa | [
"BSD-3-Clause"
] | null | null | null | apps/MCManager/src/MCClient.cpp | FleX-d/RSM | fa6eb54bd0377ddb63fe023a3b73bc893938f1fa | [
"BSD-3-Clause"
] | 1 | 2018-05-25T11:05:02.000Z | 2018-05-25T11:05:02.000Z | apps/MCManager/src/MCClient.cpp | FleX-d/RSM | fa6eb54bd0377ddb63fe023a3b73bc893938f1fa | [
"BSD-3-Clause"
] | 2 | 2018-05-25T11:02:10.000Z | 2018-06-19T09:44:28.000Z | /*
Copyright (c) 2017, Globallogic s.r.o.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... | 40.315789 | 144 | 0.592907 | FleX-d |
ff0a2e16b32c73a19a6f8adb1441d3dcd048a235 | 12,389 | cpp | C++ | src/w11/w11MacroScaleSample.cpp | qiadev/MacroUniformityRuler | 54f155c9374c7d6f3afab7f4594a91189d1a9a46 | [
"MIT"
] | null | null | null | src/w11/w11MacroScaleSample.cpp | qiadev/MacroUniformityRuler | 54f155c9374c7d6f3afab7f4594a91189d1a9a46 | [
"MIT"
] | null | null | null | src/w11/w11MacroScaleSample.cpp | qiadev/MacroUniformityRuler | 54f155c9374c7d6f3afab7f4594a91189d1a9a46 | [
"MIT"
] | null | null | null | #include "w11MacroScaleSample.h"
#include "w11Defects.h"
#include "w11Utilities.h"
#include <iostream>
#include <string>
#include <math.h>
w11MacroScaleSample::w11MacroScaleSample(const double width,const double height,const int dpi)
{
double dx= 25.4 / dpi;
double dy= dx;
long pwidth= static_cast<long>(width / ... | 29.997579 | 122 | 0.694729 | qiadev |
ff0d3801acf9f7b1b12f1a7a067974afd2632a0d | 306 | cpp | C++ | Practice2/Task2.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | Practice2/Task2.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | Practice2/Task2.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | #define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
using namespace std;
int main() {
float r, a;
cout << "Please enter a circle radius to calculate a area of your circle:" << endl;
cin >> r;
a = M_PI*r*r;
cout << "Your area of circle is:" << a << endl;
return 0;
} | 17 | 87 | 0.607843 | zuza-rzemieniewska |
ff1144e93497bdbcb638979303e15db3c3213ccc | 1,694 | cpp | C++ | source/toy/thread/RwMutex.cpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 4 | 2017-07-06T22:18:41.000Z | 2021-05-24T21:28:37.000Z | source/toy/thread/RwMutex.cpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | null | null | null | source/toy/thread/RwMutex.cpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 1 | 2020-08-02T13:00:38.000Z | 2020-08-02T13:00:38.000Z | #include <cstdint>
#include <mutex>
#include <condition_variable>
#include "toy/Oops.hpp"
#include "toy/thread/RwMutex.hpp"
namespace toy{
namespace thread{
struct RwMutexPrivate
{
mutable std::mutex mutex;
std::condition_variable readGate;
std::condition_variable writeGate;
uint32_t r... | 16.133333 | 61 | 0.651712 | ToyAuthor |
ff12755193b81e46565d7edde010c8fe409ca4e1 | 1,227 | hh | C++ | src/generator/multiple_birth_generator.hh | Apperta-IXN-for-the-NHS/GOSH-FHIRworks2020-datamaskgen | b8c075b01640f99730fcd39ad87c3009a510fa01 | [
"Apache-2.0"
] | 2 | 2020-03-10T04:35:17.000Z | 2020-03-30T12:26:51.000Z | src/generator/multiple_birth_generator.hh | Apperta-IXN-for-the-NHS/GOSH-FHIRworks2020-datamaskgen | b8c075b01640f99730fcd39ad87c3009a510fa01 | [
"Apache-2.0"
] | 4 | 2020-03-09T01:11:30.000Z | 2020-03-10T03:12:43.000Z | src/generator/multiple_birth_generator.hh | Apperta-IXN-for-the-NHS/GOSH-FHIRworks2020-datamaskgen | b8c075b01640f99730fcd39ad87c3009a510fa01 | [
"Apache-2.0"
] | 1 | 2020-05-29T14:38:49.000Z | 2020-05-29T14:38:49.000Z | //
// Created by Patrick Wu on 05/03/2020.
//
#ifndef GOSH_FHIRWORKS2020_DATAMASKGEN_MULTIPLE_BIRTH_GENERATOR_HH
#define GOSH_FHIRWORKS2020_DATAMASKGEN_MULTIPLE_BIRTH_GENERATOR_HH
#include <unordered_map>
#include <vector>
#include <iostream>
#include "../patient/patient.hh"
#include "generator_with_weight.hh"
usin... | 29.926829 | 98 | 0.728606 | Apperta-IXN-for-the-NHS |
ff13e27994068cd1b392551d716801bbbfaffe12 | 270 | cpp | C++ | hiro/reference/widget/check-button.cpp | mp-lee/higan | c38a771f2272c3ee10fcb99f031e982989c08c60 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | hiro/reference/widget/check-button.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 2 | 2015-10-06T14:59:48.000Z | 2022-01-27T08:57:57.000Z | hiro/reference/widget/check-button.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | namespace phoenix {
void pCheckButton::setChecked(bool checked) {
}
void pCheckButton::setImage(const image& image, Orientation orientation) {
}
void pCheckButton::setText(string text) {
}
void pCheckButton::constructor() {
}
void pCheckButton::destructor() {
}
}
| 14.210526 | 74 | 0.740741 | mp-lee |
d431c0ad81e74bca7e3279ff2613475df879d96c | 5,238 | cc | C++ | tests/test_wikipedia.cc | charlesnicholson/nanocobs | 63d45da07b600859f55e3d726005d0d6b2d1a080 | [
"Unlicense"
] | 14 | 2021-04-19T18:25:05.000Z | 2022-03-21T21:57:28.000Z | tests/test_wikipedia.cc | charlesnicholson/nanocobs | 63d45da07b600859f55e3d726005d0d6b2d1a080 | [
"Unlicense"
] | 3 | 2021-05-02T14:54:53.000Z | 2021-08-31T16:19:07.000Z | tests/test_wikipedia.cc | charlesnicholson/nanocobs | 63d45da07b600859f55e3d726005d0d6b2d1a080 | [
"Unlicense"
] | 2 | 2021-05-18T06:10:49.000Z | 2021-05-27T13:19:48.000Z | #include "../cobs.h"
#include "byte_vec.h"
#include "doctest.h"
#include <numeric>
static constexpr byte_t CSV = COBS_INPLACE_SENTINEL_VALUE;
namespace {
void round_trip_inplace(byte_vec_t const &decoded,
byte_vec_t const &encoded) {
byte_vec_t decoded_inplace{CSV};
decoded_inplace.insert... | 30.277457 | 81 | 0.640321 | charlesnicholson |
d433c0db71c0b2ed384cfa869f971914c72257eb | 1,656 | cpp | C++ | climate-change/src/VS-Project/HighHouse.cpp | jerry871002/CSE201-project | c42cc0e51d0c8367e4d06fc33756ab2ec4118ff4 | [
"MIT"
] | 5 | 2021-05-27T21:50:33.000Z | 2022-01-28T11:54:32.000Z | climate-change/src/VS-Project/HighHouse.cpp | jerry871002/CSE201-project | c42cc0e51d0c8367e4d06fc33756ab2ec4118ff4 | [
"MIT"
] | null | null | null | climate-change/src/VS-Project/HighHouse.cpp | jerry871002/CSE201-project | c42cc0e51d0c8367e4d06fc33756ab2ec4118ff4 | [
"MIT"
] | 1 | 2021-01-04T21:12:05.000Z | 2021-01-04T21:12:05.000Z | #include "HighHouse.h"
#include <Math.hpp>
#include <GodotGlobal.hpp>
#include <cstdlib>
#include <ctime>
using namespace godot;
void HighHouse::_register_methods()
{
register_method((char*)"_init", &HighHouse::_init);
register_method((char*)"_process", &HighHouse::_process);
register_method((char*)"_i... | 24.716418 | 102 | 0.649155 | jerry871002 |
d4372f7937a18d122a2160cbeca362b70837812b | 1,102 | cpp | C++ | olcLanguage/olcLanguage/Source.cpp | Cyan-Coder/olcLanguage | c127a438e9f32bf6bb45650184b2d591a29f1045 | [
"MIT"
] | 1 | 2018-05-24T13:43:31.000Z | 2018-05-24T13:43:31.000Z | olcLanguage/olcLanguage/Source.cpp | Cyan-Coder/olcLanguage | c127a438e9f32bf6bb45650184b2d591a29f1045 | [
"MIT"
] | null | null | null | olcLanguage/olcLanguage/Source.cpp | Cyan-Coder/olcLanguage | c127a438e9f32bf6bb45650184b2d591a29f1045 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <sstream>
#include <conio.h>
#include "Memory.h"
#include "Processor.h"
#include "AssemblyInterpreter.h"
std::string slurp(std::ifstream* in) {
std::stringstream sstr;
sstr << in->rdbuf();
return sstr.str();
}
// This is the virtual machine that runs a pre-compiled p... | 19.678571 | 92 | 0.651543 | Cyan-Coder |
d43c4ad09040a4100e8d1c54b6ae928d42bd29b7 | 1,325 | hpp | C++ | include/sigmoid_layer.hpp | sdadia/deep-learning-and-optimization | b44be79de116e2d4b203452a161641519f18f580 | [
"MIT"
] | 1 | 2018-10-02T15:29:14.000Z | 2018-10-02T15:29:14.000Z | include/sigmoid_layer.hpp | sdadia/deep-learning-and-optimization | b44be79de116e2d4b203452a161641519f18f580 | [
"MIT"
] | null | null | null | include/sigmoid_layer.hpp | sdadia/deep-learning-and-optimization | b44be79de116e2d4b203452a161641519f18f580 | [
"MIT"
] | null | null | null | #ifndef _SIGMOID_LAYER_HPP_
#define _SIGMOID_LAYER_HPP_
#include "common.hpp"
namespace dpl
{
class SigmoidLayer
{
public:
SigmoidLayer();
SigmoidLayer(std::vector<ftensor_t> &input);
void setUp(std::vector<ft... | 20.703125 | 83 | 0.539623 | sdadia |
d446bbf9b76a07bdd29a9045369d517d032049bd | 10,462 | hpp | C++ | Nacro/SDK/FN_TabGameOptionsMain_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_TabGameOptionsMain_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2021-08-11T18:40:26.000Z | 2021-08-11T18:40:26.000Z | Nacro/SDK/FN_TabGameOptionsMain_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function TabGameOption... | 56.858696 | 172 | 0.720703 | Milxnor |
d44df7cba3388a6013894edb99f4b16ad2c3e8e7 | 7,780 | hpp | C++ | src/GLFWMouseInputDevice.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | null | null | null | src/GLFWMouseInputDevice.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | 29 | 2016-08-01T14:50:12.000Z | 2017-12-17T20:28:27.000Z | src/GLFWMouseInputDevice.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2017 Ronnie Brohn (EpicBrownie)
//
// Distributed under The MIT License (MIT).
// (See accompanying file License.txt or copy at
// https://opensource.org/licens... | 32.689076 | 137 | 0.704113 | epicbrownie |
d450fec638ccbaaf4ac74f01cc93a8500d089c3d | 26,420 | cpp | C++ | adapters-stk/test/assembly_engine/assembly_engine.cpp | hillyuan/Tianxin | 57c7a5ed2466dda99471dec41cd85878335774d7 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T03:49:50.000Z | 2022-03-22T03:49:50.000Z | adapters-stk/test/assembly_engine/assembly_engine.cpp | hillyuan/Tianxin | 57c7a5ed2466dda99471dec41cd85878335774d7 | [
"BSD-3-Clause"
] | null | null | null | adapters-stk/test/assembly_engine/assembly_engine.cpp | hillyuan/Tianxin | 57c7a5ed2466dda99471dec41cd85878335774d7 | [
"BSD-3-Clause"
] | null | null | null | // @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... | 42.681745 | 178 | 0.68028 | hillyuan |
d452e1576c7d3544ff2532a158b2afbdecffb5f2 | 33 | cpp | C++ | tests/unit/parse/input/cstring.cpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 1 | 2019-04-30T17:56:23.000Z | 2019-04-30T17:56:23.000Z | tests/unit/parse/input/cstring.cpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | null | null | null | tests/unit/parse/input/cstring.cpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 4 | 2018-08-01T08:32:00.000Z | 2019-12-18T06:34:33.000Z | #include "parse/input/cstring.h"
| 16.5 | 32 | 0.757576 | qedalab |
d454e72179f769891bbc396d1e4d92027a378566 | 8,836 | cpp | C++ | src/hdf5/DimensionHDF5.cpp | balint42/nix | 50f1de33b946b7b194c82fb0efd9b0cecba9ed54 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/hdf5/DimensionHDF5.cpp | balint42/nix | 50f1de33b946b7b194c82fb0efd9b0cecba9ed54 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/hdf5/DimensionHDF5.cpp | balint42/nix | 50f1de33b946b7b194c82fb0efd9b0cecba9ed54 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/hdf5/DimensionHDF5.hpp>
#inc... | 23.816712 | 102 | 0.629131 | balint42 |
d45d256456ed61f2a4e65ac5d0bb7ba3337c2d5a | 4,003 | cpp | C++ | Leetcode/Dynamic Programming/ones-and-zeroes.cpp | susantabiswas/competitive_coding | 49163ecdc81b68f5c1bd90988cc0dfac34ad5a31 | [
"MIT"
] | 2 | 2021-04-29T14:44:17.000Z | 2021-10-01T17:33:22.000Z | Leetcode/Dynamic Programming/ones-and-zeroes.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | null | null | null | Leetcode/Dynamic Programming/ones-and-zeroes.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | 1 | 2021-10-01T17:33:29.000Z | 2021-10-01T17:33:29.000Z | /*
https://leetcode.com/problems/ones-and-zeroes/
*/
class Solution {
public:
/*
******************************** SOLUTION 1: Without State Reduction *****************************
TC: O(Smn)
SC: O(Smn)
*/
tuple<int, int> getCount(string &s) {
int zeros = 0;
for(co... | 44.977528 | 123 | 0.490132 | susantabiswas |
d45d478ff71c0b0bf0da6a387e7ab1119eae5713 | 1,435 | hpp | C++ | librperf2/pt_parser.hpp | RainM/rperf2 | f989916b546383353854eb193122dbaa7964f536 | [
"Apache-2.0"
] | 24 | 2018-10-19T16:52:37.000Z | 2020-08-29T18:46:43.000Z | librperf2/pt_parser.hpp | RainM/rperf2 | f989916b546383353854eb193122dbaa7964f536 | [
"Apache-2.0"
] | null | null | null | librperf2/pt_parser.hpp | RainM/rperf2 | f989916b546383353854eb193122dbaa7964f536 | [
"Apache-2.0"
] | 4 | 2019-01-08T13:39:06.000Z | 2019-10-31T05:25:49.000Z | #pragma once
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#if defined(__cplusplus)
extern "C"
#endif
void process_pt(char* pt_begin, size_t len, FILE* trace_output);
#if defined(__cplusplus)
#include <string>
#include <map>
#include <mutex>
//void add_symbol(const std::string& dso, const std::string& ... | 27.075472 | 133 | 0.737282 | RainM |
d45e08e4bbc2ec3b9d6d9b24527e5d4549633339 | 1,355 | cpp | C++ | code/game/actor.cpp | ugozapad/g-ray-engine | 6a28c26541a6f4d50b0ca666375ab45f815c9299 | [
"BSD-2-Clause"
] | 1 | 2021-11-18T15:13:30.000Z | 2021-11-18T15:13:30.000Z | code/game/actor.cpp | ugozapad/g-ray-engine | 6a28c26541a6f4d50b0ca666375ab45f815c9299 | [
"BSD-2-Clause"
] | null | null | null | code/game/actor.cpp | ugozapad/g-ray-engine | 6a28c26541a6f4d50b0ca666375ab45f815c9299 | [
"BSD-2-Clause"
] | null | null | null | #include "stdafx.h"
#include "actor.h"
#include "engine/camera.h"
#include "camerafps.h"
#include "engine/input.h"
#include "weaponrail.h"
#include "render/model.h"
#include "render/material.h"
#include "objectfactory.h"
#include "render/device.h"
Actor::Actor()
{
m_camera = new CameraFPS();
g_cameraManager.SetActiv... | 22.583333 | 136 | 0.690037 | ugozapad |
d45fb1399e39920ac99f83b44eedb8167fa1d714 | 22,218 | cpp | C++ | src/SummaryFunctions.cpp | shipmadison/tscam02_MSE | 312b4203c87fcda721d8721a544dd9376bf0b5dd | [
"MIT"
] | null | null | null | src/SummaryFunctions.cpp | shipmadison/tscam02_MSE | 312b4203c87fcda721d8721a544dd9376bf0b5dd | [
"MIT"
] | null | null | null | src/SummaryFunctions.cpp | shipmadison/tscam02_MSE | 312b4203c87fcda721d8721a544dd9376bf0b5dd | [
"MIT"
] | null | null | null | #include <admodel.h>
#include "wtsADMB.hpp"
#include "ModelConstants.hpp"
#include "SummaryFunctions.hpp"
/**
* Calculate biomass (1000's t) associated with abundance array.
*
* @param n_xmsz - abundance array (millions)
* @param w_xmz - individual weight-at-size by sex, maturity state (kg)
* @return as... | 34.076687 | 117 | 0.569268 | shipmadison |
d46193f3a9ee4ea443062307493285236acfb22b | 812 | hpp | C++ | school/Class.hpp | Biyorne/learningcpp | bcf963990800ed939fa4cc1b30fadccaf098155b | [
"MIT"
] | null | null | null | school/Class.hpp | Biyorne/learningcpp | bcf963990800ed939fa4cc1b30fadccaf098155b | [
"MIT"
] | null | null | null | school/Class.hpp | Biyorne/learningcpp | bcf963990800ed939fa4cc1b30fadccaf098155b | [
"MIT"
] | null | null | null | #ifndef SCHOOL_CLASS_HPP_INCLUDED
#define SCHOOL_CLASS_HPP_INCLUDED
#include "Address.hpp"
#include "Date.hpp"
#include "Employee.hpp"
#include "TimeOfDay.hpp"
#include <string>
namespace school
{
class Class
{
public:
Class(const std::string & NAME, const Employee & INSTRUCTOR, const Date & DATE, const Address &... | 21.945946 | 139 | 0.735222 | Biyorne |
d4621c7c9e3ad958bf545200d4dcced317f7c6a5 | 18,063 | cpp | C++ | examples/bob.cpp | vpavlov/iris | 2c0439713186e882b9dfe621c94abe83ff7edb31 | [
"MIT"
] | null | null | null | examples/bob.cpp | vpavlov/iris | 2c0439713186e882b9dfe621c94abe83ff7edb31 | [
"MIT"
] | null | null | null | examples/bob.cpp | vpavlov/iris | 2c0439713186e882b9dfe621c94abe83ff7edb31 | [
"MIT"
] | null | null | null | #include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <vector>
#include <cmath>
#include <algorithm>
#include <limits>
#include <iris/iris.h>
#include <iris/memory.h>
#include <iris/logger.h>
#include <iris/mesh.h>
#include <iris/comm_rec.h>
#include <iris/utils.h>
#include <iris/timer.h>
#include <iris/... | 28.356358 | 143 | 0.596966 | vpavlov |
d46336231d66d6453177b159e924b7e1cb548133 | 4,249 | cpp | C++ | datastore/common/parsers/ParserDomainName.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 27 | 2017-11-04T23:58:54.000Z | 2022-03-28T14:21:50.000Z | datastore/common/parsers/ParserDomainName.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 64 | 2020-03-16T19:59:43.000Z | 2022-03-18T14:49:18.000Z | datastore/common/parsers/ParserDomainName.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 13 | 2019-12-01T21:32:33.000Z | 2022-03-28T15:40:02.000Z | // =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... | 41.252427 | 80 | 0.600141 | cmwill |
d464e25216f85d70d1889515f85607642aacb2d3 | 2,311 | cpp | C++ | grading_tool/graphics_poly_item.cpp | almikh/automatic-knee-oa-grading-tools | f59c2ba627ed3f52d0acdb01535c3224c64210de | [
"MIT"
] | null | null | null | grading_tool/graphics_poly_item.cpp | almikh/automatic-knee-oa-grading-tools | f59c2ba627ed3f52d0acdb01535c3224c64210de | [
"MIT"
] | null | null | null | grading_tool/graphics_poly_item.cpp | almikh/automatic-knee-oa-grading-tools | f59c2ba627ed3f52d0acdb01535c3224c64210de | [
"MIT"
] | null | null | null | #include "graphics_poly_item.h"
#include <QGraphicsSceneMouseEvent>
#include <QPainter>
#include <QDebug>
#include "utils.h"
GraphicsPolyItem::GraphicsPolyItem(const QPolygonF& poly, QGraphicsItem* parent) :
QGraphicsPolygonItem(poly, parent)
{
setFlag(QGraphicsItem::GraphicsItemFlag::ItemIsSelectable, false);
... | 27.511905 | 99 | 0.67936 | almikh |
d46cdb5592d382167ee95fade32e877d9e253c9e | 7,371 | cpp | C++ | src/layer/reduction.cpp | tianylijun/ncnn | 2f54246cb7e25b17f0ef19b8dafdc7cc4b619edd | [
"BSD-3-Clause"
] | null | null | null | src/layer/reduction.cpp | tianylijun/ncnn | 2f54246cb7e25b17f0ef19b8dafdc7cc4b619edd | [
"BSD-3-Clause"
] | null | null | null | src/layer/reduction.cpp | tianylijun/ncnn | 2f54246cb7e25b17f0ef19b8dafdc7cc4b619edd | [
"BSD-3-Clause"
] | null | null | null | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... | 22.962617 | 125 | 0.474698 | tianylijun |
d46d0e779a8115616cd4f0a7292489f404817662 | 2,035 | cpp | C++ | src/Mesh.cpp | davidpox/spaceinvaders-3d | 51092df718f895a0f2c12c6a4044027a69da1088 | [
"MIT"
] | null | null | null | src/Mesh.cpp | davidpox/spaceinvaders-3d | 51092df718f895a0f2c12c6a4044027a69da1088 | [
"MIT"
] | null | null | null | src/Mesh.cpp | davidpox/spaceinvaders-3d | 51092df718f895a0f2c12c6a4044027a69da1088 | [
"MIT"
] | null | null | null | #include "Mesh.h"
Mesh::Mesh(std::vector<Vertex> verticies, std::vector<GLuint> indicies, std::vector<Texture> textures)
{
this->verticies = verticies;
this->indicies = indicies;
this->textures = textures;
setupMesh();
}
Mesh::~Mesh()
{
}
void Mesh::setupMesh() {
glGenVertexArrays(1, &VAO);
glGenBuffers(1,... | 25.4375 | 103 | 0.698771 | davidpox |
d47786e1beda4f85e8fa541f427d556d5652407f | 24,366 | cpp | C++ | src/client/clientlib-bg-access.cpp | kevinhsieh/non_iid_dml | ddc3111a355f62877cafbbba03998f203d1350e5 | [
"BSD-3-Clause"
] | 21 | 2020-08-24T09:21:14.000Z | 2022-03-26T03:24:25.000Z | src/client/clientlib-bg-access.cpp | kevinhsieh/non_iid_dml | ddc3111a355f62877cafbbba03998f203d1350e5 | [
"BSD-3-Clause"
] | 1 | 2020-09-05T09:20:51.000Z | 2020-09-12T21:34:30.000Z | src/client/clientlib-bg-access.cpp | kevinhsieh/non_iid_dml | ddc3111a355f62877cafbbba03998f203d1350e5 | [
"BSD-3-Clause"
] | 7 | 2020-08-28T04:10:34.000Z | 2022-02-16T06:27:00.000Z | /*
* Copyright (c) 2016, Anonymous Institution.
* 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 code must retain the above copyright
* notice, t... | 42.449477 | 94 | 0.682508 | kevinhsieh |
d47874437dbc055129676424cfc5d1d05e3e1799 | 4,917 | cpp | C++ | Source/GodsOfDeceitUtilsImpl/Private/GUtilsImpl/GUtilsImpl.cpp | SeditiousGames/GodsOfDeceit | f25f81f4bb820c48e20527857983c78e15b22b33 | [
"MIT"
] | 1 | 2019-07-21T07:00:43.000Z | 2019-07-21T07:00:43.000Z | Source/GodsOfDeceitUtilsImpl/Private/GUtilsImpl/GUtilsImpl.cpp | SeditiousGames/GodsOfDeceit | f25f81f4bb820c48e20527857983c78e15b22b33 | [
"MIT"
] | null | null | null | Source/GodsOfDeceitUtilsImpl/Private/GUtilsImpl/GUtilsImpl.cpp | SeditiousGames/GodsOfDeceit | f25f81f4bb820c48e20527857983c78e15b22b33 | [
"MIT"
] | null | null | null | /**
* @file
* @author Mamadou Babaei <info@babaei.net>
* @version 0.1.0
*
* @section LICENSE
*
* (The MIT License)
*
* Copyright (c) 2018 - 2019 Mamadou Babaei
* Copyright (c) 2018 - 2019 Seditious Games Studio
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this soft... | 33.222973 | 81 | 0.522676 | SeditiousGames |
d47a019cd50f0f3c05e0d84aa94b2da8656163d2 | 4,479 | cpp | C++ | lib/freertos/Semaphore.cpp | kubasejdak/osal | 6e43ba761572444b2f56b529e501f40c00d4e718 | [
"BSD-2-Clause"
] | 1 | 2021-09-12T21:05:45.000Z | 2021-09-12T21:05:45.000Z | lib/freertos/Semaphore.cpp | kubasejdak/osal | 6e43ba761572444b2f56b529e501f40c00d4e718 | [
"BSD-2-Clause"
] | 2 | 2020-01-24T18:00:15.000Z | 2020-02-03T21:15:54.000Z | lib/freertos/Semaphore.cpp | kubasejdak/osal | 6e43ba761572444b2f56b529e501f40c00d4e718 | [
"BSD-2-Clause"
] | 2 | 2020-06-15T16:27:58.000Z | 2021-09-12T21:05:49.000Z | /////////////////////////////////////////////////////////////////////////////////////
///
/// @file
/// @author Kuba Sejdak
/// @copyright BSD 2-Clause License
///
/// Copyright (c) 2020-2021, Kuba Sejdak <kuba.sejdak@gmail.com>
/// All rights reserved.
///
/// Redistribution and use in source and binary forms, with or... | 34.453846 | 120 | 0.708417 | kubasejdak |
d47c814eea5b5cf55a67a35bd9fbad86648b06f6 | 15,941 | hpp | C++ | INCLUDE/Vcl/ibdatabase.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | 1 | 2022-01-13T01:03:55.000Z | 2022-01-13T01:03:55.000Z | INCLUDE/Vcl/ibdatabase.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | INCLUDE/Vcl/ibdatabase.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | // Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'IBDatabase.pas' rev: 6.00
#ifndef IBDatabaseHPP
#define IBDatabaseHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <... | 42.171958 | 131 | 0.777492 | earthsiege2 |
d47e12edc8fc7b92b8b86f2f901eec3f8382cf58 | 4,979 | cpp | C++ | src/qt/qtbase/tests/manual/qopenglwidget/openglwidget/openglwidget.cpp | zwollerob/PhantomJS_AMR6VL | 71c126e98a8c32950158d04d0bd75823cd008b99 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/manual/qopenglwidget/openglwidget/openglwidget.cpp | zwollerob/PhantomJS_AMR6VL | 71c126e98a8c32950158d04d0bd75823cd008b99 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/manual/qopenglwidget/openglwidget/openglwidget.cpp | zwollerob/PhantomJS_AMR6VL | 71c126e98a8c32950158d04d0bd75823cd008b99 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... | 26.768817 | 86 | 0.666198 | zwollerob |
d47e6dee496b271b1b0164af253bc11eab0159e9 | 2,744 | hpp | C++ | kosession/Define.hpp | mustafakemalgilor/ko-mfc-launcher | fc41f1756e84a4632f1d631663a4456919420ba6 | [
"MIT"
] | 2 | 2021-08-03T15:15:35.000Z | 2022-01-21T10:17:44.000Z | kosession/Define.hpp | mustafakemalgilor/ko-mfc-launcher | fc41f1756e84a4632f1d631663a4456919420ba6 | [
"MIT"
] | null | null | null | kosession/Define.hpp | mustafakemalgilor/ko-mfc-launcher | fc41f1756e84a4632f1d631663a4456919420ba6 | [
"MIT"
] | 2 | 2021-05-24T23:13:57.000Z | 2022-01-10T10:20:48.000Z | /**
* ______________________________________________________
* This file is part of ko-ascension-launcher project.
*
* @author Mustafa Kemal Gılor <mustafagilor@gmail.com> (2015)
* .
* SPDX-License-Identifier: MIT
* ______________________________________________________
*/
#pragma once
#define WIN32_LE... | 25.407407 | 380 | 0.659621 | mustafakemalgilor |
d47e9e32bbf5c1c7c5dc9ab42e7947690d7457cc | 2,172 | cpp | C++ | src/hal/ComediFqd.cpp | bajric/eeros | 157dcfa87f87f55bc2fec703ea2c4eb1c27a35c8 | [
"Apache-2.0"
] | null | null | null | src/hal/ComediFqd.cpp | bajric/eeros | 157dcfa87f87f55bc2fec703ea2c4eb1c27a35c8 | [
"Apache-2.0"
] | null | null | null | src/hal/ComediFqd.cpp | bajric/eeros | 157dcfa87f87f55bc2fec703ea2c4eb1c27a35c8 | [
"Apache-2.0"
] | null | null | null | #include <eeros/hal/ComediFqd.hpp>
using namespace eeros::hal;
ComediFqd::ComediFqd(std::string id,
ComediDevice* device,
uint32_t subDeviceNumber,
uint32_t channelA,
uint32_t channelB,
uint32_t channelZ,
double scale,
double offset,
double initValue) :
Scalable... | 44.326531 | 139 | 0.783149 | bajric |
d48059168d59ced75bb1079403dda4cfb052b04e | 3,280 | cpp | C++ | test/regex/src/main.cpp | lukedan/codepad | b2d85554a0fb910dd4d45831a364ce7dfb56efb2 | [
"Apache-2.0"
] | 42 | 2017-05-26T15:56:44.000Z | 2022-02-24T13:57:40.000Z | test/regex/src/main.cpp | lukedan/codepad | b2d85554a0fb910dd4d45831a364ce7dfb56efb2 | [
"Apache-2.0"
] | 5 | 2018-08-12T01:57:48.000Z | 2022-01-20T04:55:40.000Z | test/regex/src/main.cpp | lukedan/codepad | b2d85554a0fb910dd4d45831a364ce7dfb56efb2 | [
"Apache-2.0"
] | 4 | 2020-03-27T12:51:53.000Z | 2022-03-26T04:29:30.000Z | // Copyright (c) the Codepad contributors. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE.txt in the project root for license information.
#pragma once
/// \file
/// Test for regular expressions.
#include <iostream>
/// Enables printing UTF-8 strings using standard streams.
std:... | 32.156863 | 111 | 0.669207 | lukedan |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.