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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83e058a2001fcf61af5b1aa8f04a126b1cb30ba7 | 459 | hpp | C++ | include/rive/constraints/targeted_constraint.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 139 | 2020-08-17T20:10:24.000Z | 2022-03-28T12:22:44.000Z | include/rive/constraints/targeted_constraint.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 89 | 2020-08-28T16:41:01.000Z | 2022-03-28T19:10:49.000Z | include/rive/constraints/targeted_constraint.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 19 | 2020-10-19T00:54:40.000Z | 2022-02-28T05:34:17.000Z | #ifndef _RIVE_TARGETED_CONSTRAINT_HPP_
#define _RIVE_TARGETED_CONSTRAINT_HPP_
#include "rive/generated/constraints/targeted_constraint_base.hpp"
#include <stdio.h>
namespace rive
{
class TransformComponent;
class TargetedConstraint : public TargetedConstraintBase
{
protected:
TransformComponent* m_Target = nullpt... | 24.157895 | 66 | 0.812636 | kariem2k |
83e0eb15225bda6935122b0f804610d14d20a668 | 3,597 | cpp | C++ | src/material/deferredMaterial.cpp | mfirmin/audio-demo | 767e2fc1b7afb53cd5aafad90ae562661a154373 | [
"MIT"
] | 1 | 2021-09-13T20:22:29.000Z | 2021-09-13T20:22:29.000Z | src/material/deferredMaterial.cpp | mfirmin/audio-demo | 767e2fc1b7afb53cd5aafad90ae562661a154373 | [
"MIT"
] | null | null | null | src/material/deferredMaterial.cpp | mfirmin/audio-demo | 767e2fc1b7afb53cd5aafad90ae562661a154373 | [
"MIT"
] | 1 | 2021-09-13T20:22:31.000Z | 2021-09-13T20:22:31.000Z | #include "deferredMaterial.hpp"
#include "gl/shaderUtils.hpp"
#include "light/light.hpp"
#include <GL/glew.h>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <string>
#include <sstream>
DeferredMaterial::DeferredMaterial(glm::vec3 color, float specularCoefficient, float shininess) : Material(color, sp... | 33 | 147 | 0.666389 | mfirmin |
83e893e9f021dbd7327ca9ac7bed37ba91434a57 | 7,862 | cpp | C++ | kbar.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | kbar.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | kbar.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | 1 | 2021-08-20T16:15:01.000Z | 2021-08-20T16:15:01.000Z | //
// DEKAF(tm): Lighter, Faster, Smarter(tm)
//
// Copyright (c) 2000-2003, Ridgeware, Inc.
//
// +-------------------------------------------------------------------------+
// | /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\|
// |/+------------------------------------------------------------... | 28.078571 | 146 | 0.407148 | ridgeware |
83ea2428af336f95fb2326f096ec03a630611643 | 5,743 | cpp | C++ | src/programs/advection.cpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | null | null | null | src/programs/advection.cpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | null | null | null | src/programs/advection.cpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | 1 | 2019-03-27T01:17:59.000Z | 2019-03-27T01:17:59.000Z |
#include <sweet/DataArray.hpp>
#if SWEET_GUI
#include "sweet/VisSweet.hpp"
#endif
#include <sweet/SimulationVariables.hpp>
#include "sweet/Operators2D.hpp"
#include <unistd.h>
#include <stdio.h>
SimulationVariables simVars;
class SimulationSWE
{
public:
DataArray<2> h;
DataArray<2> u;
DataArray<2> v;
DataArra... | 19.940972 | 143 | 0.640432 | pedrospeixoto |
83ec4d6f63c2476238bc4eb8701c2d307a2ee4c5 | 46,974 | cpp | C++ | DESIRE-Modules/Script-AngelScript/src/API/CoreAPI_Math_AngelScript.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | 1 | 2020-10-04T18:50:01.000Z | 2020-10-04T18:50:01.000Z | DESIRE-Modules/Script-AngelScript/src/API/CoreAPI_Math_AngelScript.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | null | null | null | DESIRE-Modules/Script-AngelScript/src/API/CoreAPI_Math_AngelScript.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | 1 | 2018-09-18T08:03:33.000Z | 2018-09-18T08:03:33.000Z | #include "stdafx_AngelScript.h"
#include "API/AngelScriptAPI.h"
#include "Engine/Core/Math/Math.h"
#include "Engine/Core/Math/Matrix4.h"
#include "Engine/Core/Math/Rand.h"
#include "Engine/Core/Math/Transform.h"
static Vector3* Vector3_Cross(const Vector3& vec0, const Vector3& vec1) { return new Vector3(vec0.Cross(ve... | 163.672474 | 323 | 0.691404 | nyaki-HUN |
83f3f8a87d7df2fb79e11988e0fab1b152b09aa3 | 1,958 | cpp | C++ | tests/containers/btree/test_btree_insert_find.cpp | hthetran/stxxl | 7f0223e52e9f10f28ed7d368cffecbbeeaa60ca7 | [
"BSL-1.0"
] | null | null | null | tests/containers/btree/test_btree_insert_find.cpp | hthetran/stxxl | 7f0223e52e9f10f28ed7d368cffecbbeeaa60ca7 | [
"BSL-1.0"
] | null | null | null | tests/containers/btree/test_btree_insert_find.cpp | hthetran/stxxl | 7f0223e52e9f10f28ed7d368cffecbbeeaa60ca7 | [
"BSL-1.0"
] | null | null | null | /***************************************************************************
* tests/containers/btree/test_btree_insert_find.cpp
*
* Part of the STXXL. See http://stxxl.org
*
* Copyright (C) 2006 Roman Dementiev <dementiev@ira.uka.de>
* Copyright (C) 2018 Manuel Penschuck <stxxl@manuel.jetzt>
*
* Distribut... | 34.350877 | 121 | 0.536261 | hthetran |
83f43a4b2d0b4d87c5f1eda0034a95df316aa789 | 495 | cpp | C++ | src/utility/general/timer.cpp | heiseish/DawnCpp | 6bcde05109bce67cc6d44c23d57e0c4348439196 | [
"Apache-2.0"
] | 3 | 2020-08-11T07:55:16.000Z | 2022-01-14T16:05:39.000Z | src/utility/general/timer.cpp | heiseish/DawnCpp | 6bcde05109bce67cc6d44c23d57e0c4348439196 | [
"Apache-2.0"
] | null | null | null | src/utility/general/timer.cpp | heiseish/DawnCpp | 6bcde05109bce67cc6d44c23d57e0c4348439196 | [
"Apache-2.0"
] | null | null | null | #include "timer.hpp"
#include <chrono>
namespace Dawn::Utility {
//---------------------------------
time_t GetCurrentEpoch()
{
struct timeval tv;
gettimeofday(&tv, nullptr);
return tv.tv_sec;
}
//---------------------------------
unsigned long GetCurrentEpochMs()
{
struct timeval tv;
gettimeofda... | 20.625 | 75 | 0.581818 | heiseish |
83f73dac265e4cad27c1d8a0259b17b031cb89f3 | 576 | hpp | C++ | simsync/include/simsync/reports/criticality_stack.hpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | simsync/include/simsync/reports/criticality_stack.hpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | simsync/include/simsync/reports/criticality_stack.hpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | #ifndef SIMSYNC_CRITICALITY_STACK_HPP
#define SIMSYNC_CRITICALITY_STACK_HPP
#include <simsync/reports/report.hpp>
#include <map>
namespace simsync {
class system;
class criticality_stack : public report {
public:
explicit criticality_stack(std::string const &output_file, const system &system);
~criticality_sta... | 19.862069 | 83 | 0.779514 | mariobadr |
83f975c550da54f756f9bb2e3551ea8bd57af189 | 1,206 | cpp | C++ | code_snippets/Chapter09/chapter.9.7.1-problematic.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 170 | 2015-05-02T18:08:38.000Z | 2018-07-31T11:35:17.000Z | code_snippets/Chapter09/chapter.9.7.1-problematic.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 7 | 2018-08-29T15:43:14.000Z | 2021-09-23T21:56:49.000Z | code_snippets/Chapter09/chapter.9.7.1-problematic.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 105 | 2015-05-28T11:52:19.000Z | 2018-07-17T14:11:25.000Z |
//
// This is example code from Chapter 9.7.1 "Argument types" of
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
//
//------------------------------------------------------------------------------
// simple Date (use Month type):
class Date {
public:
enum Month {
jan=1, feb, ... | 28.046512 | 95 | 0.43864 | TingeOGinge |
86049ec1359af6d5974e5f2a52f9c36b65c8410a | 2,917 | cpp | C++ | testsrc/clause_tests.cpp | sat-clique/cnfkit | 280605ef29c95df3d5b349d54b2410451a2f5564 | [
"X11"
] | null | null | null | testsrc/clause_tests.cpp | sat-clique/cnfkit | 280605ef29c95df3d5b349d54b2410451a2f5564 | [
"X11"
] | null | null | null | testsrc/clause_tests.cpp | sat-clique/cnfkit | 280605ef29c95df3d5b349d54b2410451a2f5564 | [
"X11"
] | null | null | null | #include <cnfkit/clause.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <array>
#include <cstdint>
using ::testing::Eq;
namespace cnfkit {
template <typename T>
class add_member {
private:
T dummy;
};
template <typename SizeType, typename... AdditionalBases>
class alignas(8) configurable_test_clau... | 29.765306 | 91 | 0.756256 | sat-clique |
8605112d9c5f9bf78d3e1656a8e9847225ef665f | 637 | hpp | C++ | nd-coursework/books/cpp/C++Templates/tuples/pushfront.hpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/C++Templates/tuples/pushfront.hpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/C++Templates/tuples/pushfront.hpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 by Addison-Wesley, David Vandevoorde, Nicolai M. Josuttis, and Douglas Gregor. All rights reserved.
// See the LICENSE file in the project root for more information.
//
// Name: pushfront.hpp
// Author: crdrisko
// Date: 11/07/2020-08:04:37
// Description: A metafunction for inserting a new elemen... | 28.954545 | 121 | 0.729984 | crdrisko |
860754f2a0285a3740195c1a3356b69a98973e17 | 3,353 | cpp | C++ | src/stalk_response.cpp | pykel/stalk | a51a0f4b9c005c058bcc4bce237aeb6c105b2c78 | [
"BSL-1.0"
] | null | null | null | src/stalk_response.cpp | pykel/stalk | a51a0f4b9c005c058bcc4bce237aeb6c105b2c78 | [
"BSL-1.0"
] | null | null | null | src/stalk_response.cpp | pykel/stalk | a51a0f4b9c005c058bcc4bce237aeb6c105b2c78 | [
"BSL-1.0"
] | null | null | null | #include "stalk/stalk_response.h"
#include "stalk/stalk_request.h"
#include "stalk_request_impl.h"
#include "stalk_response_impl.h"
#include "stalk_field_convert.h"
namespace Stalk
{
Response::Response() :
impl(std::make_unique<ResponseImpl>())
{
}
Response::Response(const Request& request) :
impl(std::make_... | 21.49359 | 116 | 0.670743 | pykel |
8615c18788c5a73c020e7170a20acdce2eccdc89 | 13,633 | cpp | C++ | Source/AllProjects/CIDKernel/Win32/CIDKernel_USB_Win32.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/CIDKernel/Win32/CIDKernel_USB_Win32.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/CIDKernel/Win32/CIDKernel_USB_Win32.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDKernel_USB_Win32.Cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/08/2004
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opens... | 29.508658 | 88 | 0.561579 | MarkStega |
861860e17b8af61d1b88fe742ed7868aa8915591 | 3,079 | hpp | C++ | include/audio/mapping/AudioToneSweepMapping.hpp | Tyulis/ToyGB | 841507fa19c320caa98b16eae2a6df0bc996ba51 | [
"MIT"
] | null | null | null | include/audio/mapping/AudioToneSweepMapping.hpp | Tyulis/ToyGB | 841507fa19c320caa98b16eae2a6df0bc996ba51 | [
"MIT"
] | null | null | null | include/audio/mapping/AudioToneSweepMapping.hpp | Tyulis/ToyGB | 841507fa19c320caa98b16eae2a6df0bc996ba51 | [
"MIT"
] | null | null | null | #ifndef _AUDIO_MAPPING_AUDIOTONESWEEPMAPPING_HPP
#define _AUDIO_MAPPING_AUDIOTONESWEEPMAPPING_HPP
#include "audio/timing.hpp"
#include "audio/mapping/AudioChannelMapping.hpp"
#include "audio/mapping/AudioControlMapping.hpp"
#include "core/hardware.hpp"
#include "memory/Constants.hpp"
#include "util/error.hpp"
namesp... | 45.955224 | 164 | 0.733355 | Tyulis |
861dd403d17dffa7ec09edea3f099cda24d0bee7 | 3,293 | hpp | C++ | include/paal/utils/read_rows.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | include/paal/utils/read_rows.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | include/paal/utils/read_rows.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | 1 | 2021-02-24T06:23:56.000Z | 2021-02-24T06:23:56.000Z | //=======================================================================
// Copyright (c) 2015
//
// 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)
//===============================================================... | 29.401786 | 139 | 0.648952 | Kommeren |
861dead9180f36f69ddbb2201a2a5cb260e705d8 | 80 | cpp | C++ | Sources/LibRT/source/RTMaths.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/LibRT/source/RTMaths.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/LibRT/source/RTMaths.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | #include "Dependencies.h"
#include "LibRT/include/RTMaths.h"
namespace RT
{
} | 10 | 34 | 0.725 | Rominitch |
8621b0db7d2de6ad6421e1f6a860765f27e2fc13 | 10,582 | cpp | C++ | src/diffusion/DiffusionEquation.cpp | WeiqunZhang/incflo | d72eb6e3c387704d06ceee686596337e5e9711d3 | [
"BSD-3-Clause"
] | null | null | null | src/diffusion/DiffusionEquation.cpp | WeiqunZhang/incflo | d72eb6e3c387704d06ceee686596337e5e9711d3 | [
"BSD-3-Clause"
] | null | null | null | src/diffusion/DiffusionEquation.cpp | WeiqunZhang/incflo | d72eb6e3c387704d06ceee686596337e5e9711d3 | [
"BSD-3-Clause"
] | null | null | null | #include <AMReX_EBFArrayBox.H>
#include <AMReX_EBMultiFabUtil.H>
#include <AMReX_MultiFabUtil.H>
#include <AMReX_ParmParse.H>
#include <AMReX_Vector.H>
#include <DiffusionEquation.H>
#include <diffusion_F.H>
#include <constants.H>
using namespace amrex;
//
// Constructor:
// We set up everything which doesn't change... | 35.871186 | 101 | 0.570214 | WeiqunZhang |
8623a3ff5ba52ff9debcee4a9db96c83d7db1876 | 9,490 | cpp | C++ | src/tree_gui.cpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/tree_gui.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/tree_gui.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 38.421053 | 185 | 0.73235 | trademarks |
8628075e4c6e8a0c045e8e24d135bb3e29866d3a | 15,184 | cpp | C++ | example-pix2pix/src/example-pix2pix.cpp | marcel303/ofxMSATensorFlow | 512a6e9a929e397c0bddf8bf86ea7521a22dd593 | [
"Apache-2.0"
] | 481 | 2016-01-28T22:05:07.000Z | 2022-03-07T23:29:10.000Z | example-pix2pix/src/example-pix2pix.cpp | marcel303/ofxMSATensorFlow | 512a6e9a929e397c0bddf8bf86ea7521a22dd593 | [
"Apache-2.0"
] | 37 | 2016-01-29T02:18:33.000Z | 2020-03-24T17:36:05.000Z | example-pix2pix/src/example-pix2pix.cpp | marcel303/ofxMSATensorFlow | 512a6e9a929e397c0bddf8bf86ea7521a22dd593 | [
"Apache-2.0"
] | 110 | 2016-01-29T14:00:39.000Z | 2020-11-22T14:20:56.000Z | /*
pix2pix (Image-to-Image Translation with Conditional Adversarial Nets).
An accessible explanation can be found [here](https://phillipi.github.io/pix2pix/) and [here](https://affinelayer.com/pix2pix/).
The network basically learns to map from one image to another.
E.g. in the example you draw in the left viewport,... | 33.892857 | 153 | 0.532205 | marcel303 |
862cc233b4dd498bdace193c9ae8429601c0efc4 | 3,425 | cpp | C++ | src/driver/denoiser/cublas.cpp | Skel0t/rodent | adb7df7d80e4b9c6f2fa3867b2e3eb2539f2ca12 | [
"MIT"
] | 1 | 2021-08-19T15:21:32.000Z | 2021-08-19T15:21:32.000Z | src/driver/denoiser/cublas.cpp | Skel0t/rodent | adb7df7d80e4b9c6f2fa3867b2e3eb2539f2ca12 | [
"MIT"
] | null | null | null | src/driver/denoiser/cublas.cpp | Skel0t/rodent | adb7df7d80e4b9c6f2fa3867b2e3eb2539f2ca12 | [
"MIT"
] | null | null | null | #include <cublas_v2.h>
#include <cublasLt.h>
#include <cuda_runtime.h>
extern "C" {
/* cublaslt supports row-major matrix multiplication. */
void cublaslt_S_gemm(const float* d_A, const float* d_B, float* d_C, int a_width, int a_height, int b_width, int device) {
cudaSetDevice(device);
cublasHa... | 42.283951 | 126 | 0.531095 | Skel0t |
862e02da65b63560136d7e691285e103424e7879 | 441 | cpp | C++ | Cpp-Snippets-09-sharedptr/main.cpp | LU-JIANGZHOU/Cpp-Snippets | 0b2e1ca26a0ffd79e25922c9d92104882cd415bd | [
"MIT"
] | null | null | null | Cpp-Snippets-09-sharedptr/main.cpp | LU-JIANGZHOU/Cpp-Snippets | 0b2e1ca26a0ffd79e25922c9d92104882cd415bd | [
"MIT"
] | null | null | null | Cpp-Snippets-09-sharedptr/main.cpp | LU-JIANGZHOU/Cpp-Snippets | 0b2e1ca26a0ffd79e25922c9d92104882cd415bd | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
using namespace std;
struct myBase
{
myBase() { cout << " myBase::myBase()\n"; }
~myBase() { cout << " myBase::~myBase()\n"; }
};
struct myDerived: public myBase
{
myDerived() { cout << " myDerived::myDerived()\n"; }
~myDerived() { cout << " myDerived::~... | 20.045455 | 60 | 0.598639 | LU-JIANGZHOU |
8630b6c29bba3b682a3e450b591bdbe302c909be | 5,230 | hpp | C++ | include/mckl/algorithm/pmcmc.hpp | zhouyan/MCKL | 1d03eb5a879e47e268efc73b1d433611e64307b3 | [
"BSD-2-Clause"
] | 12 | 2016-08-02T17:01:13.000Z | 2021-03-04T12:11:33.000Z | include/mckl/algorithm/pmcmc.hpp | zhouyan/MCKL | 1d03eb5a879e47e268efc73b1d433611e64307b3 | [
"BSD-2-Clause"
] | 5 | 2017-05-09T12:05:06.000Z | 2021-03-16T10:39:23.000Z | include/mckl/algorithm/pmcmc.hpp | zhouyan/MCKL | 1d03eb5a879e47e268efc73b1d433611e64307b3 | [
"BSD-2-Clause"
] | 2 | 2016-08-25T13:10:29.000Z | 2019-05-01T01:54:29.000Z | //============================================================================
// MCKL/include/mckl/algorithm/pmcmc.hpp
//----------------------------------------------------------------------------
// MCKL: Monte Carlo Kernel Library
//----------------------------------------------------------------------------
// Cop... | 30.406977 | 79 | 0.609751 | zhouyan |
8632fce14439b4ec0bc65b9e066f77f71f17bd95 | 8,012 | cpp | C++ | sugus/detail/Conversion.cpp | tiropp/sugus | 21b25bd74abdae0b421613ad5ecae57d8c5869a1 | [
"MIT"
] | 1 | 2018-03-23T08:51:11.000Z | 2018-03-23T08:51:11.000Z | sugus/detail/Conversion.cpp | tiropp/sugus | 21b25bd74abdae0b421613ad5ecae57d8c5869a1 | [
"MIT"
] | null | null | null | sugus/detail/Conversion.cpp | tiropp/sugus | 21b25bd74abdae0b421613ad5ecae57d8c5869a1 | [
"MIT"
] | null | null | null | #include "Conversion.h"
// BOOST includes
#include <boost/foreach.hpp>
// OpcUa includes
#include <opcua_guid.h>
// Sugus includes
#include <sugus/Exceptions.h>
#include <sugus/EndpointContainer.h>
#include <sugus/Value.h>
#include <sugus/detail/EndpointContainer.h>
namespace Sugus {
namespace detail {
String
T... | 28.310954 | 94 | 0.68647 | tiropp |
8636bb9734559286a9631f649a9eef8dbbc07f16 | 262 | cpp | C++ | 17/if_switch_init/if_init.cpp | odiubankov/cpp_examples | 4107315778aebfc9c397fea0524a1ab6565abfde | [
"MIT"
] | null | null | null | 17/if_switch_init/if_init.cpp | odiubankov/cpp_examples | 4107315778aebfc9c397fea0524a1ab6565abfde | [
"MIT"
] | null | null | null | 17/if_switch_init/if_init.cpp | odiubankov/cpp_examples | 4107315778aebfc9c397fea0524a1ab6565abfde | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
bool true_case() { return true; }
TEST(if_init, test) {
bool bar = true;
if (const auto foo = true_case(); foo) {
bar = false;
} else {
bar = foo;
}
const auto foo = false;
ASSERT_FALSE(bar);
ASSERT_FALSE(foo);
}
| 16.375 | 42 | 0.603053 | odiubankov |
863979125d319560e2587911ed9ba15e982c97d7 | 2,308 | cpp | C++ | HookDll/Hook/HookLog.cpp | 211847750/iagd | 051635e3bf1b26d27315f19ae3a63e33a6f67f37 | [
"MIT"
] | null | null | null | HookDll/Hook/HookLog.cpp | 211847750/iagd | 051635e3bf1b26d27315f19ae3a63e33a6f67f37 | [
"MIT"
] | null | null | null | HookDll/Hook/HookLog.cpp | 211847750/iagd | 051635e3bf1b26d27315f19ae3a63e33a6f67f37 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "HookLog.h"
#include <filesystem>
#include <iostream>
#include <windows.h>
#include <shlobj.h>
std::wstring GetIagdFolder() {
PWSTR path_tmp;
auto get_folder_path_ret = SHGetKnownFolderPath(FOLDERID_RoamingAppData, 0, nullptr, &path_tmp);
if (get_folder_path_ret != S_OK) {
... | 25.086957 | 100 | 0.506066 | 211847750 |
864386c9c52d25ed7e9ea5295551c429957210f0 | 1,817 | cpp | C++ | src/lib/problem.cpp | bunsanorg/bacs_archive | 2909b82e84259cc1441c5bc7f4bf87c2ec31548b | [
"Apache-2.0"
] | null | null | null | src/lib/problem.cpp | bunsanorg/bacs_archive | 2909b82e84259cc1441c5bc7f4bf87c2ec31548b | [
"Apache-2.0"
] | null | null | null | src/lib/problem.cpp | bunsanorg/bacs_archive | 2909b82e84259cc1441c5bc7f4bf87c2ec31548b | [
"Apache-2.0"
] | null | null | null | #include <bacs/archive/problem.hpp>
#include <bacs/archive/error.hpp>
#include <bunsan/pm/entry.hpp>
namespace bacs {
namespace archive {
namespace problem {
const std::string &flag_cast(const problem::Flag &flag) {
switch (flag.flag_case()) {
case Flag::kReserved:
return flag_cast(flag.reserved());
... | 23 | 75 | 0.698404 | bunsanorg |
8643f1dc9391398c5cb0d61cc5726fa78ef3c89c | 386 | hpp | C++ | FootSoldier.hpp | Dolev/WarGame | 0c51c62432e059483275ec916c16c411f40e9116 | [
"MIT"
] | null | null | null | FootSoldier.hpp | Dolev/WarGame | 0c51c62432e059483275ec916c16c411f40e9116 | [
"MIT"
] | null | null | null | FootSoldier.hpp | Dolev/WarGame | 0c51c62432e059483275ec916c16c411f40e9116 | [
"MIT"
] | null | null | null | #include "Soldier.hpp"
class FootSoldier: public Soldier{
protected:
//char letter=FS;
/* Direction Options:
Up, Down, Right, Left
FootSoldier Up();
FootSoldier Down();
FootSoldier Left();
FootSoldier Right();
*/
public:
FootSoldier();
... | 19.3 | 41 | 0.551813 | Dolev |
8645c70f3190470a98aaefd07c76e2a1070df7db | 2,946 | cpp | C++ | lib/src/tinytmxUtil.cpp | KaseyJenkins/tinytmx | b7ab2927dfe2e70459c55af991b3c1013d335fd5 | [
"BSD-2-Clause"
] | 2 | 2022-01-10T07:53:48.000Z | 2022-03-22T11:25:50.000Z | lib/src/tinytmxUtil.cpp | KaseyJenkins/tinytmx | b7ab2927dfe2e70459c55af991b3c1013d335fd5 | [
"BSD-2-Clause"
] | null | null | null | lib/src/tinytmxUtil.cpp | KaseyJenkins/tinytmx | b7ab2927dfe2e70459c55af991b3c1013d335fd5 | [
"BSD-2-Clause"
] | null | null | null | #include <cstdlib>
#include <algorithm>
#include <cctype>
#ifdef USE_MINIZ
#include "miniz.h"
#else
#include "zlib.h"
#endif
#include "tinytmxUtil.hpp"
#include "base64.h"
namespace tinytmx {
// trim from start (in place)
static inline void ltrim(std::string &s) {
s.erase(s.begin(), std::find_if(s... | 22.837209 | 92 | 0.491174 | KaseyJenkins |
86467b46799ce180ecaf4aeb72290b54e5e1e952 | 912 | cpp | C++ | source/jz19.cpp | loganautomata/leetcode | 5a626c91f271bae231328c92a3be23eba227f66e | [
"MIT"
] | null | null | null | source/jz19.cpp | loganautomata/leetcode | 5a626c91f271bae231328c92a3be23eba227f66e | [
"MIT"
] | null | null | null | source/jz19.cpp | loganautomata/leetcode | 5a626c91f271bae231328c92a3be23eba227f66e | [
"MIT"
] | null | null | null | #include "jz19.h"
using namespace std;
bool Jz19::isMatch(string s, string p)
{
vector<vector<bool>> dp(s.size() + 1, vector<bool>(p.size() + 1, false)); // 二维动态规划数组
// 初始状态
dp[0][0] = true;
for (int i = 2; i < dp[0].size(); i += 2)
{
dp[0][i] = dp[0][i - 2] && p[i - 1] == '*';
}
... | 22.8 | 96 | 0.294956 | loganautomata |
8646b4006ece47b569d999da6f3239cadf24a9aa | 163 | cc | C++ | build/x86/python/m5/internal/param_L1Cache_Controller.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/param_L1Cache_Controller.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/python/m5/internal/param_L1Cache_Controller.i_init.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_L1Cache_Controller();
}
EmbeddedSwig embed_swig_param_L1Cache_Controller(init_param_L1Cache_Controller);
| 20.375 | 80 | 0.809816 | billionshang |
864a3d443cf0689dbcbaefe0576b602c539826ae | 15,993 | cpp | C++ | qt-4.8.4/src/opengl/qgl_egl.cpp | easion/qt_for_gix | f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8 | [
"Apache-2.0"
] | null | null | null | qt-4.8.4/src/opengl/qgl_egl.cpp | easion/qt_for_gix | f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8 | [
"Apache-2.0"
] | null | null | null | qt-4.8.4/src/opengl/qgl_egl.cpp | easion/qt_for_gix | f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtOpenGL module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** License... | 39.9825 | 100 | 0.650847 | easion |
864d6aa4f31ca97ea85e61123781207a80fbb786 | 1,903 | hpp | C++ | caffe/include/caffe/layers/point_transformer_layer.hpp | shaoxiaohu/Face-Alignment-with-Two-Stage-Re-initialization- | ccd26fee4dd0b6cd0d11de4d5b4d2d746e8cc66b | [
"MIT"
] | 92 | 2017-07-19T05:12:05.000Z | 2021-11-09T07:59:07.000Z | caffe/include/caffe/layers/point_transformer_layer.hpp | mornydew/Face_Alignment_Two_Stage_Re-initialization | ccd26fee4dd0b6cd0d11de4d5b4d2d746e8cc66b | [
"MIT"
] | 11 | 2017-10-18T05:11:20.000Z | 2020-04-03T21:28:20.000Z | caffe/include/caffe/layers/point_transformer_layer.hpp | mornydew/Face_Alignment_Two_Stage_Re-initialization | ccd26fee4dd0b6cd0d11de4d5b4d2d746e8cc66b | [
"MIT"
] | 31 | 2017-07-20T11:37:39.000Z | 2021-03-08T09:01:26.000Z | #ifndef CAFFE_POINT_TRANSFORMER_LAYERHPP_
#define CAFFE_POINT_TRANSFORMER_LAYERHPP_
#include <string>
#include <utility>
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/data_transformer.hpp"
#include "caffe/internal_thread.hpp"
#include "caffe/layer.hpp"
#include "caffe/layers/base_data_layer.hpp"
#includ... | 32.810345 | 102 | 0.728849 | shaoxiaohu |
865a37e14172e95004d5af18c4348c90bea0b192 | 3,703 | cpp | C++ | Source/Projects/GoddamnGraphics/GoddamnGraphicsVulkan/Source/GoddamnEngine/GraphicsVulkan/GraphicsVulkanWindows.cpp | GoddamnIndustries/GoddamnEngine | 018c6582f6a2ebcba2c59693c677744434d66b20 | [
"MIT"
] | 4 | 2015-07-05T16:46:12.000Z | 2021-02-04T09:32:47.000Z | Source/Projects/GoddamnGraphics/GoddamnGraphicsVulkan/Source/GoddamnEngine/GraphicsVulkan/GraphicsVulkanWindows.cpp | GoddamnIndustries/GoddamnEngine | 018c6582f6a2ebcba2c59693c677744434d66b20 | [
"MIT"
] | null | null | null | Source/Projects/GoddamnGraphics/GoddamnGraphicsVulkan/Source/GoddamnEngine/GraphicsVulkan/GraphicsVulkanWindows.cpp | GoddamnIndustries/GoddamnEngine | 018c6582f6a2ebcba2c59693c677744434d66b20 | [
"MIT"
] | 1 | 2017-01-27T22:49:12.000Z | 2017-01-27T22:49:12.000Z | // ==========================================================================================
// Copyright (C) Goddamn Industries 2015. All Rights Reserved.
//
// This software or any its part is distributed under terms of Goddamn Industries End User
// License Agreement. By downloading or using this software or any i... | 39.817204 | 158 | 0.649743 | GoddamnIndustries |
865ced23c38df56f37d80cd8673372031c1aaaad | 916 | cpp | C++ | pellets/harold/harold_server_request_api.cpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | pellets/harold/harold_server_request_api.cpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 1 | 2015-05-26T07:40:19.000Z | 2015-05-26T07:40:19.000Z | pellets/harold/harold_server_request_api.cpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | #include "harold_server_request_api.h"
int HaroldServerRequestApi::OnRequest(struct mg_connection *conn)
{
if (conn->uri)
{
std::string sUri(conn->uri);
std::map<std::string, HaroldServerRequestApiFunc>::iterator it = m_mapApiList.find(sUri);
if (it != m_mapApiList.end())
{
... | 22.9 | 97 | 0.612445 | wohaaitinciu |
8661628444d42bad716d097bf25835e95407d4d9 | 3,167 | cpp | C++ | utils.cpp | superblocks/superblocks | 920dc78c2dfb4b3cbc5f0f316c1db82e76d083cc | [
"Unlicense"
] | 3 | 2018-09-09T10:05:38.000Z | 2020-11-06T02:11:46.000Z | utils.cpp | superblocks/superblocks | 920dc78c2dfb4b3cbc5f0f316c1db82e76d083cc | [
"Unlicense"
] | null | null | null | utils.cpp | superblocks/superblocks | 920dc78c2dfb4b3cbc5f0f316c1db82e76d083cc | [
"Unlicense"
] | null | null | null | // utils.cpp
// Superblocks - Version 0.4.3
#include "superblocks.hpp"
void Superblocks::timer_start()
{
cstart = clock();
}
float Superblocks::timer_end()
{
cend = clock() - cstart;
return (double)cend / ((double)CLOCKS_PER_SEC);
}
long Superblocks::gethashcutout( int step, const char* hash )
{
if( debug ) ... | 33.336842 | 92 | 0.499526 | superblocks |
866de3a8c64dc4d79bdfe21bc61a547ba9b7638f | 4,820 | cpp | C++ | src/util/Segmentation.cpp | je310/Card1 | 736671104e46aaf89ddf41cd825d6be24297a464 | [
"BSD-3-Clause"
] | 141 | 2015-02-20T18:44:53.000Z | 2022-01-06T09:33:05.000Z | src/util/Segmentation.cpp | je310/Card1 | 736671104e46aaf89ddf41cd825d6be24297a464 | [
"BSD-3-Clause"
] | 29 | 2015-02-23T10:05:10.000Z | 2019-04-25T03:55:09.000Z | src/util/Segmentation.cpp | je310/Card1 | 736671104e46aaf89ddf41cd825d6be24297a464 | [
"BSD-3-Clause"
] | 54 | 2015-02-23T00:22:53.000Z | 2022-01-06T09:33:07.000Z | /*
* This file is part of the CN24 semantic segmentation software,
* copyright (C) 2015 Clemens-Alexander Brust (ikosa dot de at gmail dot com).
*
* For licensing information, see the LICENSE file included with this project.
*/
#include <cstring>
#include <cmath>
#include "Segmentation.h"
#include <cstdlib>
n... | 32.348993 | 89 | 0.553734 | je310 |
866f9328f465d7491bea0d176dfd120ff44f12c5 | 1,508 | cpp | C++ | clove/source/Rendering/Camera.cpp | AGarlicMonkey/Garlic | 4f439b789b7db9fc7b2c104705f259c318be62fd | [
"MIT"
] | 33 | 2020-01-09T04:57:29.000Z | 2021-08-14T08:02:43.000Z | clove/source/Rendering/Camera.cpp | AGarlicMonkey/Garlic | 4f439b789b7db9fc7b2c104705f259c318be62fd | [
"MIT"
] | 234 | 2019-10-25T06:04:35.000Z | 2021-08-18T05:47:41.000Z | clove/source/Rendering/Camera.cpp | AGarlicMonkey/Garlic | 4f439b789b7db9fc7b2c104705f259c318be62fd | [
"MIT"
] | 4 | 2020-02-11T15:28:42.000Z | 2020-09-07T16:22:58.000Z | #include "Clove/Rendering/Camera.hpp"
#include "Clove/Rendering/RenderingLog.hpp"
#include <Clove/Maths/MathsHelpers.hpp>
namespace clove {
Camera::Camera(Viewport viewport, ProjectionMode const projection)
: viewport{ viewport }
, currentProjectionMode{ projection } {
setProjectionMode(p... | 38.666667 | 129 | 0.653183 | AGarlicMonkey |
8671f5b698a2ed5a315728d966df1a15bb486d40 | 35,579 | cpp | C++ | src/ListViewDelegate.cpp | BlueDragon28/GameSorting | aef3604038b3084c26c0d4430f81c05a83c0f5de | [
"MIT"
] | null | null | null | src/ListViewDelegate.cpp | BlueDragon28/GameSorting | aef3604038b3084c26c0d4430f81c05a83c0f5de | [
"MIT"
] | null | null | null | src/ListViewDelegate.cpp | BlueDragon28/GameSorting | aef3604038b3084c26c0d4430f81c05a83c0f5de | [
"MIT"
] | null | null | null | /*
* MIT Licence
*
* This file is part of the GameSorting
*
* Copyright © 2022 Erwan Saclier de la Bâtie (BlueDragon28)
*
* 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, in... | 27.644911 | 159 | 0.6632 | BlueDragon28 |
8672fb62615b4a3e3f2502d37e8c9d25348d19ca | 561 | cpp | C++ | Shape Class/rectangle.cpp | tj-dunham/CS1C_Project | 2c8f329a67a142c2ee2f7426047f0c3f51656169 | [
"MIT"
] | 1 | 2021-09-22T20:38:14.000Z | 2021-09-22T20:38:14.000Z | Shape Class/rectangle.cpp | korieliaz/2D-Graphics-Modeler | 2c8f329a67a142c2ee2f7426047f0c3f51656169 | [
"MIT"
] | null | null | null | Shape Class/rectangle.cpp | korieliaz/2D-Graphics-Modeler | 2c8f329a67a142c2ee2f7426047f0c3f51656169 | [
"MIT"
] | null | null | null | #include "rectangle.h"
void Rectangle::draw()
{
painter.setPen(pen);
painter.setBrush(brush);
painter.drawRect(position.x(), position.y(), shapeDimensions[int(Specifications::W)], shapeDimensions[int(Specifications::H)]);
painter.drawText(position.x(), position.y(), 20, 20, Qt::AlignLeft, QStrin... | 28.05 | 132 | 0.682709 | tj-dunham |
86738ebc0b81dd3072f5753cd79f650e556d3b2a | 4,259 | cpp | C++ | code/scripting/api/objs/event.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 307 | 2015-04-10T13:27:32.000Z | 2022-03-21T03:30:38.000Z | code/scripting/api/objs/event.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 2,231 | 2015-04-27T10:47:35.000Z | 2022-03-31T19:22:37.000Z | code/scripting/api/objs/event.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 282 | 2015-01-05T12:16:57.000Z | 2022-03-28T04:45:11.000Z |
#include "event.h"
#include "scripting/ade_args.h"
#include "scripting/ade.h"
#include "mission/missiongoals.h"
namespace scripting {
namespace api {
//**********HANDLE: event
ADE_OBJ(l_Event, int, "event", "Mission event handle");
ADE_VIRTVAR(Name, l_Event, "string", "Mission event name", "string", NULL)
{
int id... | 24.337143 | 158 | 0.663066 | trgswe |
8674954e5e0660fe3628659d0f7adf8ebac6c008 | 7,110 | cpp | C++ | ROF_Engine/ModuleResourceManager.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | ROF_Engine/ModuleResourceManager.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | ROF_Engine/ModuleResourceManager.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | #include "ModuleResourceManager.h"
#include "Application.h"
#include "ModuleFileSystem.h"
#include "ModuleSceneImporter.h"
#include "Globals.h"
#include "XMLUtilities.h"
#include "ResourceMesh.h"
#include "ResourceTexture.h"
#include "ResourceMaterial.h"
#include "MeshLoader.h"
#include "TextureLoader.h"
#include "Ma... | 24.773519 | 150 | 0.697468 | RogerOlasz |
86751774ee16587ad9db173108fa1bb19ec90bde | 2,653 | hpp | C++ | integration/vertex/VertexBuffer.hpp | DomRe/3DRenderer | a43230704889e03206638f6bb74509541a610677 | [
"MIT"
] | 19 | 2020-02-02T16:36:46.000Z | 2021-12-25T07:02:28.000Z | integration/vertex/VertexBuffer.hpp | DomRe/3DRenderer | a43230704889e03206638f6bb74509541a610677 | [
"MIT"
] | 103 | 2020-10-13T09:03:42.000Z | 2022-03-26T03:41:50.000Z | integration/vertex/VertexBuffer.hpp | DomRe/3DRenderer | a43230704889e03206638f6bb74509541a610677 | [
"MIT"
] | 5 | 2020-03-13T06:14:37.000Z | 2021-12-12T02:13:46.000Z | ///
/// VertexBuffer.hpp
/// galaxy
///
/// Refer to LICENSE.txt for more details.
///
#ifndef GALAXY_GRAPHICS_VERTEX_VERTEXBUFFER_HPP_
#define GALAXY_GRAPHICS_VERTEX_VERTEXBUFFER_HPP_
#include <vector>
#include "galaxy/graphics/vertex/Layout.hpp"
namespace galaxy
{
namespace graphics
{
///
/// Abstraction fo... | 20.098485 | 97 | 0.641915 | DomRe |
867fbf8e30dc2ac9b25fae3022edd56315525db1 | 528 | cpp | C++ | src/Delta.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 4 | 2017-04-13T02:11:15.000Z | 2021-11-29T18:04:16.000Z | src/Delta.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 27 | 2018-01-15T08:37:38.000Z | 2018-04-26T13:01:58.000Z | src/Delta.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 3 | 2017-07-24T13:13:28.000Z | 2019-04-10T19:09:56.000Z | #include "Delta.h"
using namespace std;
namespace ysk {
double Delta::getValue(const WorkingCopyGraph::Node &node) {
if(node == _u)
return _deltaU;
else if(node == _v)
return _deltaV;
else {
cerr << "Fatal error: class Delta: trying to get value of non-end-node!"<<endl;
exit(-1);
}
}
void De... | 18.206897 | 83 | 0.657197 | mironec |
8680a24b748fb40ccdceb5e5421d7e62170e6a98 | 12,823 | cc | C++ | gui/factory_edit.cc | makkrnic/simutrans-extended | 8afbbce5b88c79bfea1760cf6c7662d020757b6a | [
"Artistic-1.0"
] | null | null | null | gui/factory_edit.cc | makkrnic/simutrans-extended | 8afbbce5b88c79bfea1760cf6c7662d020757b6a | [
"Artistic-1.0"
] | null | null | null | gui/factory_edit.cc | makkrnic/simutrans-extended | 8afbbce5b88c79bfea1760cf6c7662d020757b6a | [
"Artistic-1.0"
] | null | null | null | /*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include <stdio.h>
#include "../simworld.h"
#include "../simtool.h"
#include "../bauer/fabrikbauer.h"
#include "../descriptor/ground_desc.h"
#include "../descriptor/intro_dates.h"
#include "../descriptor/f... | 34.194667 | 147 | 0.697575 | makkrnic |
8683f710f55766b44e37fff71e3d0d8089765303 | 283 | cpp | C++ | Libs/Core/CMake/TestBFD/TestBFD.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 515 | 2015-01-13T05:42:10.000Z | 2022-03-29T03:10:01.000Z | Libs/Core/CMake/TestBFD/TestBFD.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 425 | 2015-01-06T05:28:38.000Z | 2022-03-08T19:42:18.000Z | Libs/Core/CMake/TestBFD/TestBFD.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 341 | 2015-01-08T06:18:17.000Z | 2022-03-29T21:47:49.000Z |
#include <bfd.h>
// STD includes
#include <cstdlib>
int main(int /*argc*/, char * /*argv*/[])
{
bfd *abfd = 0;
asymbol *symbol = 0;
asection *p = 0;
bfd_init();
abfd = bfd_openr("/path/to/library", 0);
if (!abfd)
{
return false;
}
return EXIT_SUCCESS;
}
| 14.15 | 42 | 0.565371 | kraehlit |
8694d733b93aa352a8a836b80008497ff13ef2a4 | 1,363 | cpp | C++ | src/133.clone_graph/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2016-07-02T17:44:10.000Z | 2016-07-02T17:44:10.000Z | src/133.clone_graph/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | null | null | null | src/133.clone_graph/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2019-12-21T04:57:15.000Z | 2019-12-21T04:57:15.000Z | /**
* Definition for undirected graph.
* struct UndirectedGraphNode {
* int label;
* vector<UndirectedGraphNode *> neighbors;
* UndirectedGraphNode(int x) : label(x) {};
* };
*/
class Solution {
public:
UndirectedGraphNode *cloneGraph(UndirectedGraphNode *node) {
if (node == NULL) return ... | 36.837838 | 96 | 0.569332 | cloudzfy |
8698075905e16ce9032f346143058775d0abbc5a | 82 | hpp | C++ | include/dg/platform/window_events.hpp | epicodic/diligent-graph | 64325a17498fa6b913bffadfc1a43108c81dd7b0 | [
"Apache-2.0"
] | 3 | 2020-08-25T07:54:43.000Z | 2021-01-14T20:05:06.000Z | include/dg/platform/window_events.hpp | epicodic/diligent-graph | 64325a17498fa6b913bffadfc1a43108c81dd7b0 | [
"Apache-2.0"
] | null | null | null | include/dg/platform/window_events.hpp | epicodic/diligent-graph | 64325a17498fa6b913bffadfc1a43108c81dd7b0 | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace dg {
struct ResizeEvent
{
int width, height;
};
}
| 6.307692 | 22 | 0.634146 | epicodic |
869930b9054607fde2483fb0972e79cd6c46567e | 6,179 | hpp | C++ | lib/serialize/include/pajlada/serialize/deserialize.hpp | Functioneel/chatterino7 | 81a52498b6850626223f96fa81c3e847c23ee25d | [
"MIT"
] | 1 | 2022-01-08T17:59:48.000Z | 2022-01-08T17:59:48.000Z | include/pajlada/serialize/deserialize.hpp | brucelevis/serialize | 7d37cbfd5ac3bfbe046118e1cec3d32ba4696469 | [
"MIT"
] | 4 | 2022-03-07T14:40:30.000Z | 2022-03-31T10:26:28.000Z | lib/serialize/include/pajlada/serialize/deserialize.hpp | Functioneel/chatterino7 | 81a52498b6850626223f96fa81c3e847c23ee25d | [
"MIT"
] | 2 | 2020-06-04T09:52:24.000Z | 2021-12-25T13:58:30.000Z | #pragma once
#include <rapidjson/document.h>
#include <pajlada/serialize/common.hpp>
#ifdef PAJLADA_BOOST_ANY_SUPPORT
#include <boost/any.hpp>
#endif
#include <cassert>
#include <cmath>
#include <map>
#include <stdexcept>
#include <string>
#include <typeinfo>
#include <vector>
namespace pajlada {
// Deserialize i... | 25.533058 | 80 | 0.571128 | Functioneel |
869961fc338987f7240f1d3cd05a792122c1a918 | 8,067 | cpp | C++ | src/internal.cpp | chenlijun99/FuzzGen | 0f6ad947b3d573407b573cc54833263e03a6af73 | [
"Apache-2.0"
] | 233 | 2019-11-01T19:05:17.000Z | 2022-03-19T07:00:11.000Z | src/internal.cpp | chenlijun99/FuzzGen | 0f6ad947b3d573407b573cc54833263e03a6af73 | [
"Apache-2.0"
] | 21 | 2020-03-21T16:26:55.000Z | 2022-03-07T11:14:27.000Z | src/internal.cpp | chenlijun99/FuzzGen | 0f6ad947b3d573407b573cc54833263e03a6af73 | [
"Apache-2.0"
] | 54 | 2020-05-28T00:12:38.000Z | 2022-03-19T07:00:13.000Z | // ------------------------------------------------------------------------------------------------
/*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 ... | 34.622318 | 99 | 0.418247 | chenlijun99 |
86a159ca4d06f77ee3c07be51eab4c865a4f7e5c | 2,890 | cpp | C++ | src/Geometry.cpp | eestrada/raytracer | f1a80db1c2ec05e5b39a9dce9af6a56604755a0b | [
"MIT"
] | 1 | 2018-04-25T08:43:36.000Z | 2018-04-25T08:43:36.000Z | src/Geometry.cpp | eestrada/raytracer | f1a80db1c2ec05e5b39a9dce9af6a56604755a0b | [
"MIT"
] | null | null | null | src/Geometry.cpp | eestrada/raytracer | f1a80db1c2ec05e5b39a9dce9af6a56604755a0b | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <cmath>
#include "cg/Geometry.hpp"
#include "utils/exceptions.hpp"
namespace cg
{
rt::RayHit_ptr Sphere::intersect(const rt::Ray &ray, const Mat4 &xform) const
{
Vec3 new_center = xform * Vec4(this->center, 1.0);
Vec3 L = new_center - ray.pos;
double tca = L... | 28.333333 | 94 | 0.616609 | eestrada |
86a16c0a543193840e53468d39746d700a5d187e | 3,072 | cpp | C++ | Fuji/Source/Drivers/PS2/MFSystem_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 35 | 2015-01-19T22:07:48.000Z | 2022-02-21T22:17:53.000Z | Fuji/Source/Drivers/PS2/MFSystem_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 1 | 2022-02-23T09:34:15.000Z | 2022-02-23T09:34:15.000Z | Fuji/Source/Drivers/PS2/MFSystem_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 4 | 2015-05-11T03:31:35.000Z | 2018-09-27T04:55:57.000Z | #include "Fuji_Internal.h"
#if MF_SYSTEM == MF_DRIVER_PS2
#include "MFSystem_Internal.h"
#include <kernel.h>
// Timer Registers
#define T1_COUNT ((volatile unsigned long*)0x10000800)
#define T1_MODE ((volatile unsigned long*)0x10000810)
#define T1_COMP ((volatile unsigned long*)0x10000820)
#define T1_... | 22.755556 | 69 | 0.642253 | TurkeyMan |
86a2bb9524a136785bfefcef74e9bbd4aa6092eb | 1,191 | cpp | C++ | Object Oriented Algo Design in C++/practice/quicksort.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | Object Oriented Algo Design in C++/practice/quicksort.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | Object Oriented Algo Design in C++/practice/quicksort.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | /*sorting the given elements using quick sort*/
#include<iostream>
using namespace std;
class array
{
public:
array();
int a[1000];
int size;
};
array::array()
{
int index1;
cout<<"\nenter the size of the array:";
cin>>size;
cout<<"\nenter the elements of the array: ";
for(index1=1;index1<=size;index1++)
c... | 14.178571 | 52 | 0.603694 | aishwaryamallampati |
86a8d478527de8169fd08b97d30112281eeb3c16 | 4,146 | hpp | C++ | SpriteExtractorLib/Types.hpp | jowie94/SpriteExtractor | 96934f241e33229638beb8914ac68e866696433b | [
"MIT"
] | 1 | 2019-01-15T15:14:47.000Z | 2019-01-15T15:14:47.000Z | SpriteExtractorLib/Types.hpp | jowie94/SpriteExtractor | 96934f241e33229638beb8914ac68e866696433b | [
"MIT"
] | null | null | null | SpriteExtractorLib/Types.hpp | jowie94/SpriteExtractor | 96934f241e33229638beb8914ac68e866696433b | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <utility>
#include <cassert>
#include <vector>
template<class T>
struct Vec2
{
Vec2()
{}
Vec2(T x_, T y_)
: X(x_)
, Y(y_)
{
}
T X = 0;
T Y = 0;
};
struct Color final
{
using channel_t = unsigned char;
Color()
{}
Co... | 21.59375 | 86 | 0.548722 | jowie94 |
86aa25e8edbf2c875064fc71c27b9ffc3cdf6447 | 3,742 | hpp | C++ | include/vdds/sub.hpp | maxk-org/vdds | 015473498661cb8f06868cce2dc4519a6452b861 | [
"BSD-3-Clause"
] | null | null | null | include/vdds/sub.hpp | maxk-org/vdds | 015473498661cb8f06868cce2dc4519a6452b861 | [
"BSD-3-Clause"
] | null | null | null | include/vdds/sub.hpp | maxk-org/vdds | 015473498661cb8f06868cce2dc4519a6452b861 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2021, Qualcomm Innovation Center, Inc. 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,
// ... | 32.258621 | 81 | 0.711919 | maxk-org |
86b02c3b1a0c490e1b95f3829daf0b2048449625 | 1,934 | cpp | C++ | Common/util/l4util.cpp | sunzhuoshi/SteamVRDemoHelper | 536280f1e5df5e4bdb85fca3460353e0f19cf43d | [
"MIT"
] | null | null | null | Common/util/l4util.cpp | sunzhuoshi/SteamVRDemoHelper | 536280f1e5df5e4bdb85fca3460353e0f19cf43d | [
"MIT"
] | null | null | null | Common/util/l4util.cpp | sunzhuoshi/SteamVRDemoHelper | 536280f1e5df5e4bdb85fca3460353e0f19cf43d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "l4util.h"
#include <sstream>
#include <minwindef.h>
#include <Windows.h>
#include <Psapi.h>
namespace l4util {
std::string getCurrentExePath()
{
char buf[MAX_PATH] = "", *tmp;
if (GetModuleFileNameA(NULL, buf, MAX_PATH))
{
tmp = strrchr(buf, '\\');
if (tmp) {
*tmp = '\... | 20.145833 | 88 | 0.56515 | sunzhuoshi |
86b23086dbf47aa4c690d23d4a6be5ca5e40d20a | 4,064 | cpp | C++ | GTEngine/Source/Graphics/DX11/GteHLSLResource.cpp | pmjoniak/GeometricTools | ae6e933f9ab3a5474d830700ea8d9445cc78ef4b | [
"BSL-1.0"
] | 4 | 2019-03-03T18:13:30.000Z | 2020-08-25T18:15:30.000Z | GTEngine/Source/Graphics/DX11/GteHLSLResource.cpp | pmjoniak/GeometricTools | ae6e933f9ab3a5474d830700ea8d9445cc78ef4b | [
"BSL-1.0"
] | null | null | null | GTEngine/Source/Graphics/DX11/GteHLSLResource.cpp | pmjoniak/GeometricTools | ae6e933f9ab3a5474d830700ea8d9445cc78ef4b | [
"BSL-1.0"
] | 6 | 2016-07-15T11:04:52.000Z | 2021-12-07T03:11:42.000Z | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2018
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.2 (2017/09/05)
#include <GTEnginePCH.h>
#include <Graph... | 25.88535 | 78 | 0.697835 | pmjoniak |
86b6c31525dac0f661a90f9c8635444d2b501cbf | 22,309 | cpp | C++ | SpatialFilter/GaussianFilterAM.cpp | norishigefukushima/OpenCP | 63090131ec975e834f85b04e84ec29b2893845b2 | [
"BSD-3-Clause"
] | 137 | 2015-03-27T07:11:19.000Z | 2022-03-30T05:58:22.000Z | SpatialFilter/GaussianFilterAM.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 2 | 2016-05-18T06:33:16.000Z | 2016-07-11T17:39:17.000Z | SpatialFilter/GaussianFilterAM.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 43 | 2015-02-20T15:34:25.000Z | 2022-01-27T14:59:37.000Z | #include "stdafx.h"
using namespace std;
using namespace cv;
namespace cp
{
#pragma region GaussianFilterAM_Naive
template<typename Type>
GaussianFilterAM_Naive<Type>::GaussianFilterAM_Naive(cv::Size imgSize, Type sigma, int order)
: SpatialFilterBase(imgSize, cp::typeToCVDepth<Type>()), order(order), sigma(sigm... | 28.785806 | 226 | 0.621588 | norishigefukushima |
86b98be3e4213c1664fcf3eeae72e9a77b84759a | 35,519 | cpp | C++ | AdsLedMatrixCMS/v3.0.1/soft_v3/MatrixSimulator.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | AdsLedMatrixCMS/v3.0.1/soft_v3/MatrixSimulator.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | AdsLedMatrixCMS/v3.0.1/soft_v3/MatrixSimulator.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | 1 | 2020-06-13T08:34:26.000Z | 2020-06-13T08:34:26.000Z | // MatrixSimulator.cpp : implementation file
//
#include "stdafx.h"
#include "MATRIX.h"
#include "FontDisp.h"
#include "MatrixSimulator.h"
#include "resource.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define TIMER_ID 1001
#define CLOCK_ID ... | 26.040323 | 146 | 0.61598 | cuongquay |
86baf412b42932124acf064931e68fa6638e9078 | 1,202 | cpp | C++ | Week13/701.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | 101 | 2021-02-26T14:32:37.000Z | 2022-03-16T18:46:37.000Z | Week13/701.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | null | null | null | Week13/701.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | 30 | 2021-03-09T05:16:48.000Z | 2022-03-16T21:16:33.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 30.05 | 93 | 0.563228 | bobsingh149 |
86bdf01183e05b00bb2f0561b71eb902f4cbbd20 | 709 | cpp | C++ | C/C1433.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | C/C1433.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | C/C1433.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(){
int max = -1,t,n,indx;
cin>>t;
while(t--){
cin>>n;
vector<int> v(n);
max = -1;
indx = -1;
for(int i=0;i<n;i++){
cin>>v[i];
if(max < v[i]){
max = v[i];
... | 22.870968 | 54 | 0.294781 | Darknez07 |
86c12c8abab5a921e7fc00b8151a64ee1103a5ec | 2,491 | hpp | C++ | include/scapin/fft_helper.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | null | null | null | include/scapin/fft_helper.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | 4 | 2020-09-24T07:32:21.000Z | 2020-12-01T08:06:00.000Z | include/scapin/fft_helper.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | 1 | 2020-02-02T18:05:15.000Z | 2020-02-02T18:05:15.000Z | /**
* @file fft_utils.h
*
* @brief Helper functions to work with discrete Fourier transforms.
*
* This module is heavily inspired by the `numpy.fft.helper` module, see
*
* <https://docs.scipy.org/doc/numpy/reference/routines.fft.html#helper-routines>
*
*/
#pragma once
#include <cmath>
#include <numbers>
#inc... | 29.305882 | 81 | 0.59173 | sbrisard |
86c15fbcaa76966acfcaf38e56429152a80c7d74 | 1,992 | cpp | C++ | gym/102829/J.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | 1 | 2021-07-16T19:59:39.000Z | 2021-07-16T19:59:39.000Z | gym/102829/J.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | gym/102829/J.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <random>
#include <chrono>
using namespace std;
using namespace __gnu_pbds;
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
// typedef tree<int, null_type,less<int>, rb_tree_tag, tre... | 19.339806 | 102 | 0.545683 | albexl |
f866d8ef182572b70dd423abdfcad0fbb73e0d0d | 2,077 | cc | C++ | mod/test/case/wrd/syntax/commentTest.cc | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | 1 | 2019-02-02T07:07:32.000Z | 2019-02-02T07:07:32.000Z | mod/test/case/wrd/syntax/commentTest.cc | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | 25 | 2016-09-23T16:36:19.000Z | 2019-02-12T14:14:32.000Z | mod/test/case/wrd/syntax/commentTest.cc | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | null | null | null | #include "../../../wrdSyntaxTest.hpp"
using namespace wrd;
using namespace std;
namespace {
struct commentTest : public wrdSyntaxTest {};
}
TEST_F(commentTest, singleLineComment) {
// control group.
make().parse(R"SRC(
age int // age is age
main() int // main is also a main
re... | 28.452055 | 88 | 0.584015 | kniz |
f86b78dd5854f0da41a656d457189bd8a83d0826 | 3,318 | hpp | C++ | mlir/include/mlir-extensions/analysis/memory_ssa.hpp | nbpatel/mlir-extensions | 1270a2550694a53a0c70fd5b17d518eef133802b | [
"Apache-2.0"
] | 28 | 2021-08-10T12:07:31.000Z | 2022-03-13T10:54:40.000Z | mlir/include/mlir-extensions/analysis/memory_ssa.hpp | nbpatel/mlir-extensions | 1270a2550694a53a0c70fd5b17d518eef133802b | [
"Apache-2.0"
] | 21 | 2021-09-28T12:58:22.000Z | 2022-03-25T21:08:56.000Z | mlir/include/mlir-extensions/analysis/memory_ssa.hpp | nbpatel/mlir-extensions | 1270a2550694a53a0c70fd5b17d518eef133802b | [
"Apache-2.0"
] | 6 | 2021-08-23T16:54:40.000Z | 2022-03-11T23:43:56.000Z | // Copyright 2021 Intel 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 law or agreed... | 28.603448 | 79 | 0.705244 | nbpatel |
f873e81edc799f9a9101767be4c0c89189e11c1e | 4,759 | cpp | C++ | core/src/GarbageCollector.cpp | Devronium/ConceptApplicationServer | c1fcb8de8d752f352485840aab13511dd1aa6a15 | [
"BSD-2-Clause"
] | 11 | 2016-01-24T18:53:36.000Z | 2021-01-21T08:59:01.000Z | core/src/GarbageCollector.cpp | Devronium/ConceptApplicationServer | c1fcb8de8d752f352485840aab13511dd1aa6a15 | [
"BSD-2-Clause"
] | 1 | 2016-01-22T21:38:38.000Z | 2016-01-30T17:25:01.000Z | core/src/GarbageCollector.cpp | Devronium/ConceptApplicationServer | c1fcb8de8d752f352485840aab13511dd1aa6a15 | [
"BSD-2-Clause"
] | null | null | null | #include "GarbageCollector.h"
#include "CompiledClass.h"
#include "ClassCode.h"
#include "Array.h"
#include "PIFAlizator.h"
POOLED_IMPLEMENTATION(_GarbageElement)
POOLED_IMPLEMENTATION(GarbageCollector)
GarbageCollector::GarbageCollector() {
BASE = 0;
}
void GarbageCollector::Call_All_Destructors(vo... | 27.350575 | 90 | 0.499895 | Devronium |
f875187c4caccdffd3fe1f218c5f5e72d6a48cb8 | 1,091 | cpp | C++ | c3dEngine/c3dEngine/core/c3dModel.cpp | wantnon2/superSingleCell-c3dEngine | 512f99c649f1809bf63ef0e3e02342648372e2ce | [
"MIT"
] | 12 | 2015-02-12T10:54:20.000Z | 2019-02-18T22:15:53.000Z | c3dEngine/c3dEngine/core/c3dModel.cpp | wantnon2/superSingleCell-c3dEngine | 512f99c649f1809bf63ef0e3e02342648372e2ce | [
"MIT"
] | null | null | null | c3dEngine/c3dEngine/core/c3dModel.cpp | wantnon2/superSingleCell-c3dEngine | 512f99c649f1809bf63ef0e3e02342648372e2ce | [
"MIT"
] | 11 | 2015-02-10T04:02:14.000Z | 2021-12-08T09:12:10.000Z | //
// c3dActor.cpp
// HelloOpenGL
//
// Created by wantnon (yang chao) on 12-12-20.
//
//
#include "c3dModel.h"
void Cc3dModel::addMesh(Cc3dMesh*mesh){
assert(mesh);
m_meshList.push_back(mesh);
// mesh->setName("?");
this->addChild(mesh);
}
void Cc3dModel::submitVertex(GLenum usage){
int nM... | 25.372093 | 95 | 0.612282 | wantnon2 |
f8769575f228c445245a6a0385378c2333da12ac | 658 | cpp | C++ | test/math/log2.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | test/math/log2.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | test/math/log2.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/catch/begin.hpp>
#include <fcppt/catch/end.hpp>
#include <fcppt/math/log2.hpp>
#inc... | 24.37037 | 61 | 0.683891 | freundlich |
f87e89d1064fba1d2721358c40ba63553b595437 | 2,229 | cpp | C++ | src/core/logic.cpp | JackWolfard/cash | a646c0b94d075fa424a93904b7499a0dee90ac89 | [
"BSD-3-Clause"
] | 14 | 2018-08-08T19:02:21.000Z | 2022-01-07T14:42:43.000Z | src/core/logic.cpp | JackWolfard/cash | a646c0b94d075fa424a93904b7499a0dee90ac89 | [
"BSD-3-Clause"
] | null | null | null | src/core/logic.cpp | JackWolfard/cash | a646c0b94d075fa424a93904b7499a0dee90ac89 | [
"BSD-3-Clause"
] | 3 | 2020-04-20T20:58:34.000Z | 2021-11-23T14:50:14.000Z | #include "logic.h"
#include "proxyimpl.h"
#include "context.h"
using namespace ch::internal;
logic_buffer::logic_buffer(uint32_t size,
const std::string& name,
const source_location& sloc)
: lnode(ctx_curr()->create_node<proxyimpl>(size, name, sloc))
{}
logi... | 33.268657 | 104 | 0.577389 | JackWolfard |
f87e8b380cf1a015a1f191be94654d611ac51251 | 38,559 | cpp | C++ | planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/node.cpp | kmiya/AutowareArchitectureProposal.iv | 386b52c9cc90f4535ad833014f2f9500f0e64ccf | [
"Apache-2.0"
] | null | null | null | planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/node.cpp | kmiya/AutowareArchitectureProposal.iv | 386b52c9cc90f4535ad833014f2f9500f0e64ccf | [
"Apache-2.0"
] | null | null | null | planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/node.cpp | kmiya/AutowareArchitectureProposal.iv | 386b52c9cc90f4535ad833014f2f9500f0e64ccf | [
"Apache-2.0"
] | 1 | 2021-07-20T09:38:30.000Z | 2021-07-20T09:38:30.000Z | // Copyright 2020 Tier IV, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 46.400722 | 100 | 0.784331 | kmiya |
f888b9b913bea0295d270b2f4bb06291fd8d0310 | 252 | cpp | C++ | src/fatal.cpp | franko/elementary-plotlib | d11b56a13893781d84a8e93183f01b13140dd4e3 | [
"MIT"
] | 14 | 2020-04-03T02:14:08.000Z | 2021-07-16T21:05:56.000Z | src/fatal.cpp | franko/elementary-plotlib | d11b56a13893781d84a8e93183f01b13140dd4e3 | [
"MIT"
] | 2 | 2020-04-22T15:40:42.000Z | 2020-04-28T21:17:23.000Z | src/fatal.cpp | franko/libcanvas | d11b56a13893781d84a8e93183f01b13140dd4e3 | [
"MIT"
] | 1 | 2020-04-30T07:49:02.000Z | 2020-04-30T07:49:02.000Z |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "fatal.h"
void
fatal_exception(const char* msg, ...)
{
va_list ap;
va_start(ap, msg);
vfprintf(stderr, msg, ap);
fputs("\n", stderr);
va_end(ap);
abort();
}
| 14 | 37 | 0.599206 | franko |
f88a00d3eec19507b915f09fa3f1c1554e0e594c | 636 | cpp | C++ | source/ImageSymLoader.cpp | xzrunner/s2loader | 6317bbec560db93f866bda78373ef58aed504ca3 | [
"MIT"
] | null | null | null | source/ImageSymLoader.cpp | xzrunner/s2loader | 6317bbec560db93f866bda78373ef58aed504ca3 | [
"MIT"
] | null | null | null | source/ImageSymLoader.cpp | xzrunner/s2loader | 6317bbec560db93f866bda78373ef58aed504ca3 | [
"MIT"
] | null | null | null | #include "s2loader/ImageSymLoader.h"
#include <gum/Image.h>
#include <gum/ImageSymbol.h>
#include <gum/ImagePool.h>
#include <simp/NodeID.h>
namespace s2loader
{
ImageSymLoader::ImageSymLoader(gum::ImageSymbol& sym)
: m_sym(sym)
{
}
void ImageSymLoader::Load(const bimp::FilePath& res_path, float scale, bool async... | 20.516129 | 82 | 0.687107 | xzrunner |
f88b48791b1989df091bd1f5243a99ff90fcd269 | 14,690 | cpp | C++ | test/unit/module/bessel/cyl_bessel_in.cpp | the-moisrex/eve | 80b52663eefee11460abb0aedf4158a5067cf7dc | [
"MIT"
] | 340 | 2020-09-16T21:12:48.000Z | 2022-03-28T15:40:33.000Z | test/unit/module/bessel/cyl_bessel_in.cpp | the-moisrex/eve | 80b52663eefee11460abb0aedf4158a5067cf7dc | [
"MIT"
] | 383 | 2020-09-17T06:56:35.000Z | 2022-03-13T15:58:53.000Z | test/unit/module/bessel/cyl_bessel_in.cpp | the-moisrex/eve | 80b52663eefee11460abb0aedf4158a5067cf7dc | [
"MIT"
] | 28 | 2021-02-27T23:11:23.000Z | 2022-03-25T12:31:29.000Z | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 55.855513 | 120 | 0.608169 | the-moisrex |
f88c2a22990818344fa1d81a415acb3b7c0a2ad5 | 7,184 | cxx | C++ | RhoNNO/TRadon.cxx | marcelkunze/rhonno | b9a06557c5e059ab25ad9077a13dbaeb449ed85e | [
"MIT"
] | 2 | 2019-07-12T12:16:22.000Z | 2020-09-19T14:51:47.000Z | RhoNNO/TRadon.cxx | marcelkunze/rhonno | b9a06557c5e059ab25ad9077a13dbaeb449ed85e | [
"MIT"
] | null | null | null | RhoNNO/TRadon.cxx | marcelkunze/rhonno | b9a06557c5e059ab25ad9077a13dbaeb449ed85e | [
"MIT"
] | 2 | 2017-09-27T13:12:39.000Z | 2019-07-12T12:14:43.000Z | // radon_function
// various functions for performing the fuzzy Radon transform
// M.Kunze, Heidelberg University, 2018
#include <stdlib.h>
#include <math.h>
#include "TNtuple.h"
#include "TVector3.h"
#include "TH2D.h"
#include "TPolyMarker3D.h"
#include "TPolyLine3D.h"
#include "TRadon.h"
#include <string>
#include... | 30.184874 | 136 | 0.518235 | marcelkunze |
f88c8d94c3c043e07996124658bbc58ffe03bdc5 | 10,013 | cpp | C++ | waifu2x-converter-gls/src/convertRoutine.cpp | ymdymd/glsCV | fa89193d653767f11e01ec1bd13e2f3461a5b1b3 | [
"BSD-3-Clause"
] | null | null | null | waifu2x-converter-gls/src/convertRoutine.cpp | ymdymd/glsCV | fa89193d653767f11e01ec1bd13e2f3461a5b1b3 | [
"BSD-3-Clause"
] | 31 | 2016-05-09T01:31:21.000Z | 2016-08-11T11:34:39.000Z | waifu2x-converter-gls/src/convertRoutine.cpp | oasi-adamay/glsCV | fa89193d653767f11e01ec1bd13e2f3461a5b1b3 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2016, oasi-adamay
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 following dis... | 30.159639 | 83 | 0.679317 | ymdymd |
f89358a42dc7aa82998f13cf7e020491653d8e00 | 1,637 | cc | C++ | src/block_diagonal_check.cc | jwlawson/ptope | 2c664ac4fb7b036a298e7c6a1b2cf58d803f227a | [
"Apache-2.0"
] | 1 | 2019-02-22T03:03:13.000Z | 2019-02-22T03:03:13.000Z | src/block_diagonal_check.cc | jwlawson/ptope | 2c664ac4fb7b036a298e7c6a1b2cf58d803f227a | [
"Apache-2.0"
] | 9 | 2016-08-31T16:34:59.000Z | 2016-09-12T16:29:55.000Z | src/block_diagonal_check.cc | jwlawson/ptope | 2c664ac4fb7b036a298e7c6a1b2cf58d803f227a | [
"Apache-2.0"
] | null | null | null | /*
* block_diagonal_check.h
* Copyright 2015 John Lawson
*
* 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 ap... | 29.763636 | 75 | 0.682957 | jwlawson |
f89f10e98f3397294caa6ae1ab1a6e559ac1ed94 | 1,184 | cpp | C++ | c++/reverse_string_ii.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | c++/reverse_string_ii.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | c++/reverse_string_ii.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | /*
Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there are less than k characters left, reverse all of them. If there are less than 2k but greater than or equal to k characters, then reverse the first k characters and left t... | 31.157895 | 338 | 0.628378 | SongZhao |
f8a4350b740a31d57bb5677d091a93b605ce57be | 1,334 | cpp | C++ | Source Code V2/TssInSphere/ApplyCurls.cpp | DavidGeUSA/TSS | e364e324948c68efc6362a0db3aa51696227fa60 | [
"MIT"
] | 11 | 2020-09-27T07:35:22.000Z | 2022-03-09T11:01:31.000Z | Source Code V2/TssInSphere/ApplyCurls.cpp | DavidGeUSA/TSS | e364e324948c68efc6362a0db3aa51696227fa60 | [
"MIT"
] | 1 | 2020-10-28T13:14:58.000Z | 2020-10-28T21:04:44.000Z | Source Code V2/TssInSphere/ApplyCurls.cpp | DavidGeUSA/TSS | e364e324948c68efc6362a0db3aa51696227fa60 | [
"MIT"
] | 7 | 2020-09-27T07:35:24.000Z | 2022-01-02T13:53:21.000Z | /*******************************************************************
Author: David Ge (dge893@gmail.com, aka Wei Ge)
Last modified: 03/31/2018
Allrights reserved by David Ge
********************************************************************/
#include "ApplyCurls.h"
ApplyCurls::ApplyCurls()
{
}
void ... | 30.318182 | 104 | 0.578711 | DavidGeUSA |
f8a53d0a87cd66006e38d180d29989125d21774c | 1,313 | cpp | C++ | examples/login.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 5 | 2019-06-30T06:29:46.000Z | 2021-12-17T12:41:23.000Z | examples/login.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 2 | 2018-01-09T17:14:45.000Z | 2020-03-23T00:16:50.000Z | examples/login.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 7 | 2015-09-13T18:40:58.000Z | 2020-01-24T10:57:56.000Z | #include <iostream>
#include "greentop/ExchangeApi.h"
using namespace greentop;
int main(int argc, char* argv[]) {
if (argc != 3 && argc != 4 && argc != 5) {
std::cerr << "Usage: " << std::endl << argv[0] << " <application key> <username> <password>" << std::endl
<< " OR" << std::endl
... | 32.02439 | 120 | 0.5377 | Sherlock92 |
f8a57148fd7b220ab8f4df85c3196b2b642a64cf | 212 | hpp | C++ | firmware/robot2015/src-ctrl/modules/task-signals.hpp | JNeiger/robocup-firmware | c1bfd4ba24070eaa4e012fdc88aa468aafcc2e4e | [
"Apache-2.0"
] | 1 | 2018-09-25T20:28:58.000Z | 2018-09-25T20:28:58.000Z | firmware/robot2015/src-ctrl/modules/task-signals.hpp | JNeiger/robocup-firmware | c1bfd4ba24070eaa4e012fdc88aa468aafcc2e4e | [
"Apache-2.0"
] | null | null | null | firmware/robot2015/src-ctrl/modules/task-signals.hpp | JNeiger/robocup-firmware | c1bfd4ba24070eaa4e012fdc88aa468aafcc2e4e | [
"Apache-2.0"
] | null | null | null | #pragma once
// This is where the signals for different threads are defined for use across
// mutliple files
static const uint32_t MAIN_TASK_CONTINUE = 1 << 0;
static const uint32_t SUB_TASK_CONTINUE = 1 << 1;
| 26.5 | 77 | 0.764151 | JNeiger |
f8ab1ef69e0673149c22f655a1e406346603a62a | 1,936 | ipp | C++ | include/dracosha/validator/detail/member_helper.ipp | evgeniums/cpp-validator | e4feccdce19c249369ddb631571b60613926febd | [
"BSL-1.0"
] | 27 | 2020-09-18T13:45:33.000Z | 2022-03-16T21:14:37.000Z | include/dracosha/validator/detail/member_helper.ipp | evgeniums/cpp-validator | e4feccdce19c249369ddb631571b60613926febd | [
"BSL-1.0"
] | 7 | 2020-08-07T21:48:14.000Z | 2021-01-14T12:25:37.000Z | include/dracosha/validator/detail/member_helper.ipp | evgeniums/cpp-validator | e4feccdce19c249369ddb631571b60613926febd | [
"BSL-1.0"
] | 1 | 2021-03-30T09:17:58.000Z | 2021-03-30T09:17:58.000Z | /**
@copyright Evgeny Sidorov 2020
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
/****************************************************************************/
/** @file validator/detail/member_helper.ipp
*
* Defines hel... | 25.473684 | 139 | 0.627066 | evgeniums |
f8abf6fa7f6156c5588988b2f3e8d6d0c56b2cfa | 259 | hpp | C++ | Classes/Fish.hpp | 1994/AvoidTuitle | 6d9a37e2bf799efb299ae415afd2b22f6f9280be | [
"MIT"
] | null | null | null | Classes/Fish.hpp | 1994/AvoidTuitle | 6d9a37e2bf799efb299ae415afd2b22f6f9280be | [
"MIT"
] | null | null | null | Classes/Fish.hpp | 1994/AvoidTuitle | 6d9a37e2bf799efb299ae415afd2b22f6f9280be | [
"MIT"
] | null | null | null | //
// Fish.hpp
// seven
//
// Created by rimi on 15/6/12.
//
//
#ifndef Fish_cpp
#define Fish_cpp
#include <stdio.h>
#include "cocos2d.h"
USING_NS_CC;
class Fish:public Sprite {
public:
static Sprite * createFish(int type);
};
#endif /* Fish_cpp */
| 12.333333 | 41 | 0.648649 | 1994 |
f8ac710dbc05ff317d36287456057ad5add0a544 | 448 | cpp | C++ | codeforces/edu94/str_sim.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/edu94/str_sim.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/edu94/str_sim.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | //#define _GLIBCXX_DEBUG
#include <iostream>
#include <cassert>
#include <cstring>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin >> t;
while(t--){
int n;
cin >> n;
string... | 16 | 37 | 0.513393 | udayan14 |
f8acf57b80159041d0f4a9587836e99a603f06a5 | 4,567 | cpp | C++ | Client/AudioInterface.cpp | DylanWalseth/RTSLab8 | d08049ef3bc876dfc16774f6f5d0e840e075be81 | [
"MIT"
] | null | null | null | Client/AudioInterface.cpp | DylanWalseth/RTSLab8 | d08049ef3bc876dfc16774f6f5d0e840e075be81 | [
"MIT"
] | null | null | null | Client/AudioInterface.cpp | DylanWalseth/RTSLab8 | d08049ef3bc876dfc16774f6f5d0e840e075be81 | [
"MIT"
] | null | null | null | /*
* AudioInterface.cpp
*
* Created on: Apr 18, 2015
* Author: Walter Schilling
* This is the implementation of the audio Interface. It will manage the system.
*/
#include "AudioInterface.h"
/**
* This is the constructor for the class. It will instantiate a new instance of the class.
* @param dev... | 33.580882 | 206 | 0.722794 | DylanWalseth |
f8af877885d6c04d94b7f300a55536bbf663bb09 | 1,446 | cpp | C++ | HAPI_Start/TileMap.cpp | DamienHenderson/GEC-Engine | 8d1e89c3dc35adaf65e84de2594c715c600e4681 | [
"MIT"
] | null | null | null | HAPI_Start/TileMap.cpp | DamienHenderson/GEC-Engine | 8d1e89c3dc35adaf65e84de2594c715c600e4681 | [
"MIT"
] | null | null | null | HAPI_Start/TileMap.cpp | DamienHenderson/GEC-Engine | 8d1e89c3dc35adaf65e84de2594c715c600e4681 | [
"MIT"
] | null | null | null | #include "TileMap.hpp"
TileMap::TileMap(const HAPISPACE::CHapiXMLNode& node)
{
}
TileMap::~TileMap()
{
}
void TileMap::Load(const HAPISPACE::CHapiXMLNode & node, Visualisation& vis)
{
int x_chunks{ 0 }, y_chunks{ 0 };
for (auto& attrib : node.GetAttributes())
{
if (attrib.GetName() == "x_chunks")
{
x_ch... | 16.247191 | 76 | 0.582296 | DamienHenderson |
f8b65a0dbc3a2a7deb80efd896e132f219e3831a | 1,809 | cpp | C++ | gfg-DSA/linear-recurrence.cpp | shashankkmciv18/dsa | 6feba269292d95d36e84f1adb910fe2ed5467f71 | [
"MIT"
] | 54 | 2020-07-31T14:50:23.000Z | 2022-03-14T11:03:02.000Z | gfg-DSA/linear-recurrence.cpp | SahilMund/dsa | a94151b953b399ea56ff50cf30dfe96100e8b9a7 | [
"MIT"
] | null | null | null | gfg-DSA/linear-recurrence.cpp | SahilMund/dsa | a94151b953b399ea56ff50cf30dfe96100e8b9a7 | [
"MIT"
] | 30 | 2020-08-15T17:39:02.000Z | 2022-03-10T06:50:18.000Z | // Linear Recurrence Method for calculating high order numbers like
// F(100) in fibonacci series.
// Steps to Proceed :
// Step 1: Determine K, the number of terms F(i) depends.
// Ex- K=2 for fibonacci series i.e F(i) = F(i-1) +F(i-2)
// Step: 2 Determine initial values i.e F(1) and F(2)
// Ex- In fibonacci series, F... | 24.780822 | 96 | 0.577114 | shashankkmciv18 |
f8b7dd7896750564660235249a5471034fb074f5 | 811 | hpp | C++ | include/RED4ext/Types/generated/mesh/MeshImportedSnapPoint.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/mesh/MeshImportedSnapPoint.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/mesh/MeshImportedSnapPoint.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/ISerializable.hpp>
#include <RED4ext/Types/generated/Matrix.hpp>
#include <RED4ext/Types/generated/mesh/ImportedSnapTags.hpp>
namespace RED4ext
{
na... | 27.033333 | 68 | 0.738594 | Cyberpunk-Extended-Development-Team |
f8b83a348229825a74972f8adf91c24a60e3b00c | 9,914 | cpp | C++ | artifact/storm/src/storm/storage/memorystructure/MemoryStructure.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/storage/memorystructure/MemoryStructure.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/storage/memorystructure/MemoryStructure.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | #include "storm/storage/memorystructure/MemoryStructure.h"
#include <iostream>
#include "storm/logic/Formulas.h"
#include "storm/utility/macros.h"
#include "storm/storage/memorystructure/SparseModelMemoryProduct.h"
#include "storm/exceptions/InvalidOperationException.h"
namespace storm {
namespace storage {
... | 60.084848 | 332 | 0.608029 | glatteis |
f8b86f2c91c7f4bc5730030b44b8d4a30dc1daa6 | 10,121 | cpp | C++ | src/Kocmoc.cpp | SimonWallner/kocmoc-demo | a4f769b5ed7592ce50a18ab93c603d4371fbd291 | [
"MIT",
"Unlicense"
] | 12 | 2015-01-21T07:02:23.000Z | 2021-11-15T19:47:53.000Z | src/Kocmoc.cpp | SimonWallner/kocmoc-demo | a4f769b5ed7592ce50a18ab93c603d4371fbd291 | [
"MIT",
"Unlicense"
] | null | null | null | src/Kocmoc.cpp | SimonWallner/kocmoc-demo | a4f769b5ed7592ce50a18ab93c603d4371fbd291 | [
"MIT",
"Unlicense"
] | 3 | 2017-03-04T08:50:46.000Z | 2020-10-23T14:27:04.000Z | #include "Kocmoc.hpp"
#include "Context.hpp"
#include "Property.hpp"
#include "Exception.hpp"
#include "ImageLoader.hpp"
#include "KocmocLoader.hpp"
#include "utility.hpp"
#include "ShaderManager.hpp"
#include "AudioPlayer.hpp"
#include "AnimationSystem.hpp"
#include <gtx/spline.hpp>
using namespace kocmoc;
Kocmoc* ... | 28.27095 | 137 | 0.686691 | SimonWallner |
f8b8b475c29be7330f546a5b38ab661e443ef5a5 | 765 | cc | C++ | 2004-class/day2/object-ret.cc | tibbetts/inside-c | a72f6d44f15343e81b35da8edadd0e9c63315d40 | [
"MIT"
] | 18 | 2015-01-19T04:18:49.000Z | 2022-03-04T06:22:44.000Z | 2004-class/day2/object-ret.cc | tibbetts/inside-c | a72f6d44f15343e81b35da8edadd0e9c63315d40 | [
"MIT"
] | null | null | null | 2004-class/day2/object-ret.cc | tibbetts/inside-c | a72f6d44f15343e81b35da8edadd0e9c63315d40 | [
"MIT"
] | 4 | 2020-02-19T22:29:23.000Z | 2021-09-22T16:45:52.000Z | #include "stdio.h"
class twofield {
private:
int field1, field2;
public:
explicit twofield(int f);
// Copy constructor.
twofield(const twofield &of);
~twofield();
void setField(int f);
int getField() const;
};
twofield fromint(int j) {
twofield of(j);
return of;
}
int main(in... | 16.630435 | 55 | 0.616993 | tibbetts |
f8bb1144ae4497943224251410733206e4be5bd4 | 2,233 | cpp | C++ | input/input_state.cpp | Ced2911/native | 41fd5dcc905592a78017ffbb40eac39b1fdf994a | [
"MIT"
] | 2 | 2016-01-22T20:58:08.000Z | 2018-05-02T19:01:30.000Z | input/input_state.cpp | Ced2911/native | 41fd5dcc905592a78017ffbb40eac39b1fdf994a | [
"MIT"
] | null | null | null | input/input_state.cpp | Ced2911/native | 41fd5dcc905592a78017ffbb40eac39b1fdf994a | [
"MIT"
] | null | null | null | #include "input/input_state.h"
#include "input/keycodes.h"
const char *GetDeviceName(int deviceId) {
switch (deviceId) {
case DEVICE_ID_DEFAULT: return "built-in";
case DEVICE_ID_KEYBOARD: return "kbd";
case DEVICE_ID_PAD_0: return "pad";
case DEVICE_ID_X360_0: return "x360";
case DEVICE_ID_ACCELEROMETER: return... | 29.381579 | 106 | 0.765786 | Ced2911 |
f8bc29486b5f537d77561fae8c45488df7e9dbbc | 595 | cpp | C++ | ds18b20_ui.cpp | wintersteiger/wlmcd | 7bdc184b875a0be652a0dd346fd9a598c14181d8 | [
"MIT"
] | 4 | 2021-01-11T13:50:25.000Z | 2021-01-24T19:34:47.000Z | ds18b20_ui.cpp | wintersteiger/wlmcd | 7bdc184b875a0be652a0dd346fd9a598c14181d8 | [
"MIT"
] | 1 | 2021-02-12T15:49:18.000Z | 2021-02-12T16:50:55.000Z | ds18b20_ui.cpp | wintersteiger/wlmcd | 7bdc184b875a0be652a0dd346fd9a598c14181d8 | [
"MIT"
] | 2 | 2021-01-11T13:53:18.000Z | 2021-03-01T10:22:46.000Z | // Copyright (c) Christoph M. Wintersteiger
// Licensed under the MIT License.
#include "ds18b20_ui.h"
DOUBLE_FIELD(UI::statusp, Temperature, "Temperature", DS18B20, "C", device.Temperature());
#define EMPTY() fields.push_back(new Empty(row++, col));
DS18B20UI::DS18B20UI(DS18B20 &ds18b20)
{
devices.insert(&ds18b2... | 19.193548 | 90 | 0.677311 | wintersteiger |
f8c6f4cd3c1e3104ca66f480bd5a5fc2e1af0046 | 589 | cpp | C++ | peg/bluebook/find_the_character.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | peg/bluebook/find_the_character.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | peg/bluebook/find_the_character.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <cctype>
#include <iostream>
#include <string>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main()
{
use_io_optimizations();
char wanted;
cin >> wanted;
cin.ignore();
string sentence;
getline(cin, senten... | 14.725 | 47 | 0.561969 | Rkhoiwal |
f8cb18e9c09a49bd20739273bcc05d9a1006a95e | 1,819 | cc | C++ | ch3/send-more.cc | araya-andres/classic_computer_sci | 3cb67563f10be75f586315d156506cf76e18f884 | [
"Unlicense"
] | 21 | 2017-10-12T05:03:09.000Z | 2022-03-30T00:56:53.000Z | ch3/send-more.cc | araya-andres/classic_computer_sci | 3cb67563f10be75f586315d156506cf76e18f884 | [
"Unlicense"
] | 1 | 2017-11-14T05:29:12.000Z | 2017-11-14T17:28:48.000Z | ch3/send-more.cc | araya-andres/classic_computer_sci | 3cb67563f10be75f586315d156506cf76e18f884 | [
"Unlicense"
] | 10 | 2018-03-30T14:37:48.000Z | 2022-02-21T01:15:52.000Z | #include "common.h"
#include "csp.h"
#include "prettyprint.hpp"
#include <iostream>
#include <numeric>
#include <string>
#include <vector>
std::vector<char> flatten(const std::vector<std::string>& v) {
std::vector<char> flat;
auto it = flat.begin();
for (const auto& s: v) it = flat.insert(it, s.cbegin(), s... | 30.316667 | 89 | 0.598681 | araya-andres |
f8cf564ef2ef49d1b9c3391dff499ef55d9050bd | 6,563 | cpp | C++ | 2 course/EVM/lab_17/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 2 course/EVM/lab_17/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 2 course/EVM/lab_17/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | // -- системные либы -- //
#include <windows.h>
#include <vector>
#include <algorithm>
#include <random>
#include <ctime>
// Файлы заголовков C RunTime
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include "resource.h"
// -- мои классы -- //
#include "bitstring.h"
#include "five.h"
... | 30.668224 | 120 | 0.610544 | SgAkErRu |
f8d28173e818cf3982045871aab8aaadf5d44aa8 | 2,241 | cpp | C++ | GEngine/GRendererInfra/GRiRenderer.cpp | hegaoxiang/new--- | 1c65dce79fa292ff8d2f79fb4cf9d8e207a82be1 | [
"Zlib"
] | null | null | null | GEngine/GRendererInfra/GRiRenderer.cpp | hegaoxiang/new--- | 1c65dce79fa292ff8d2f79fb4cf9d8e207a82be1 | [
"Zlib"
] | null | null | null | GEngine/GRendererInfra/GRiRenderer.cpp | hegaoxiang/new--- | 1c65dce79fa292ff8d2f79fb4cf9d8e207a82be1 | [
"Zlib"
] | null | null | null | #include "GRiRenderer.h"
float GRiRenderer::AspectRatio() const
{
return static_cast<float>(mClientWidth) / mClientHeight;
}
HWND GRiRenderer::MainWnd()const
{
return mhMainWnd;
}
void GRiRenderer::SetClientWidth(int width)
{
mClientWidth = width;
}
void GRiRenderer::SetClientHeight(int height)
{
mClientHeigh... | 23.34375 | 164 | 0.714859 | hegaoxiang |
f8d59dc510fbd2e182e6d7397e856d11b14e869f | 582 | cpp | C++ | algorithms/max-min/main.cpp | valentinvstoyanov/dsa-cpp | 0d47377eff2df2888e7394b39203220e7aa82441 | [
"MIT"
] | null | null | null | algorithms/max-min/main.cpp | valentinvstoyanov/dsa-cpp | 0d47377eff2df2888e7394b39203220e7aa82441 | [
"MIT"
] | null | null | null | algorithms/max-min/main.cpp | valentinvstoyanov/dsa-cpp | 0d47377eff2df2888e7394b39203220e7aa82441 | [
"MIT"
] | null | null | null | #include <iostream>
#include "max_min.h"
int main() {
int arr[10] = {-199, 20, -200, 50, 1000, 1000, - 201, 1541, 0, 1};
auto mm = MaxMin(arr, 10);
std::cout << "max = " << mm.first << ", min = " << mm.second << std::endl;
std::cout << "max = " << Max(arr, 10) << std::endl;
std::cout << "max = " << Max(arr, ... | 38.8 | 76 | 0.501718 | valentinvstoyanov |
f8d87d10e11c2ceea2ea15f7130423e82793e1f0 | 1,676 | cc | C++ | test/quic/test_client_work.cc | cbodley/nexus | 6e5b19b6c6c74007a0643c55eb0775eb86e38f9b | [
"BSL-1.0"
] | 6 | 2021-10-31T10:33:30.000Z | 2022-03-25T20:54:58.000Z | test/quic/test_client_work.cc | cbodley/nexus | 6e5b19b6c6c74007a0643c55eb0775eb86e38f9b | [
"BSL-1.0"
] | null | null | null | test/quic/test_client_work.cc | cbodley/nexus | 6e5b19b6c6c74007a0643c55eb0775eb86e38f9b | [
"BSL-1.0"
] | null | null | null | #include <nexus/quic/server.hpp>
#include <gtest/gtest.h>
#include <optional>
#include <nexus/quic/client.hpp>
#include <nexus/quic/connection.hpp>
#include <nexus/global_init.hpp>
#include "certificate.hpp"
namespace nexus {
// constuct a client and server on different io_contexts
class Client : public testing::Tes... | 26.1875 | 82 | 0.718974 | cbodley |
f8dc8baf6f425fde5cd36be06c4236aa54650252 | 3,070 | cpp | C++ | mof2oal/src/cimreference.cpp | juergh/dash-sdk | 16757836f1f96ee3220992f70bffe92c18e08e76 | [
"AMDPLPA"
] | 13 | 2015-08-06T14:55:10.000Z | 2021-12-26T04:41:54.000Z | mof2oal/src/cimreference.cpp | juergh/dash-sdk | 16757836f1f96ee3220992f70bffe92c18e08e76 | [
"AMDPLPA"
] | null | null | null | mof2oal/src/cimreference.cpp | juergh/dash-sdk | 16757836f1f96ee3220992f70bffe92c18e08e76 | [
"AMDPLPA"
] | 1 | 2017-06-17T14:15:41.000Z | 2017-06-17T14:15:41.000Z | /*
* <AMD 3BSD notice header>
*
* Copyright (c) 2006, 2007, 2008 Advanced Micro Devices, Inc.
*
* All rights reserved.
*
* This file is subject to the license found in the LICENSE.AMD file which
* states the following in part:
*
* Redistribution and use in any form of this material and any product
* thereof ... | 32.659574 | 90 | 0.642997 | juergh |
f8e18e934c815584b42d24249fc25a873c31081c | 140 | cpp | C++ | C语言程序设计基础/15.【图形】输出一行星号.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 63 | 2021-01-10T02:32:17.000Z | 2022-03-30T04:08:38.000Z | C语言程序设计基础/15.【图形】输出一行星号.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 2 | 2021-06-09T05:38:58.000Z | 2021-12-14T13:53:54.000Z | C语言程序设计基础/15.【图形】输出一行星号.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 20 | 2021-01-12T11:49:36.000Z | 2022-03-26T11:04:58.000Z | #include <stdio.h>
int main()
{
int n, i;
scanf ("%d", &n);
for (i = 1; i <= n; i++)
{
printf ("*");
}
printf ("\n");
return 0;
} | 10.769231 | 25 | 0.428571 | xiabee |
f8e3c4478d822ef2a7afb75a556e32e84bf9387e | 13,611 | ipp | C++ | src/cradle/imaging/sample.ipp | mghro/astroid-core | 72736f64bed19ec3bb0e92ebee4d7cf09fc0399f | [
"MIT"
] | null | null | null | src/cradle/imaging/sample.ipp | mghro/astroid-core | 72736f64bed19ec3bb0e92ebee4d7cf09fc0399f | [
"MIT"
] | 3 | 2020-10-26T18:45:47.000Z | 2020-10-26T18:46:06.000Z | src/cradle/imaging/sample.ipp | mghro/astroid-core | 72736f64bed19ec3bb0e92ebee4d7cf09fc0399f | [
"MIT"
] | null | null | null | #include <cmath>
#include <cradle/imaging/geometry.hpp>
#include <cradle/imaging/iterator.hpp>
namespace cradle {
namespace impl {
template<unsigned N, class T, class SP>
optional<T>
compute_raw_image_sample(
image<N, T, SP> const& img, vector<N, double> const& p)
{
vector<N, double> image_p
= transf... | 28.594538 | 79 | 0.62163 | mghro |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.