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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b797f6952a92c4021981cd5cb50e8fe4b7a6e3a6 | 969 | hpp | C++ | include/encstr/unroll.hpp | RequiDev/encstr | 5132a31c34a4e41f8fccad491660f0adc891ded5 | [
"MIT"
] | 28 | 2018-10-18T06:53:40.000Z | 2022-03-01T15:08:53.000Z | include/encstr/unroll.hpp | c3358/encstr | c93f3792ef29d9b5a51dfedef7567ae44dca06fd | [
"MIT"
] | null | null | null | include/encstr/unroll.hpp | c3358/encstr | c93f3792ef29d9b5a51dfedef7567ae44dca06fd | [
"MIT"
] | 3 | 2018-12-12T15:12:03.000Z | 2021-09-25T17:54:24.000Z | #pragma once
#include <utility>
#include <encstr/always_inline.hpp>
namespace encstr
{
template<size_t Count, size_t Step = 1>
struct unroll_t
{
template<typename Fn, typename... Args>
ENCSTR_ALWAYS_INLINE constexpr auto operator()(Fn&& fn, Args&&... args) noexcept -> decltype(std::forward<... | 35.888889 | 175 | 0.596491 | RequiDev |
b79dd052ea1bbb9085036c012610b1dda27aeba4 | 929 | hpp | C++ | Source/Tortuga/Components/Light.hpp | zeeshan595/Tortuga | a4a96c73b9c7e1fffb2cea6661d2579709b0a7e1 | [
"X11"
] | 7 | 2019-03-06T11:25:27.000Z | 2019-05-27T13:27:07.000Z | Source/Tortuga/Components/Light.hpp | zeeshan595/tortuga-library | a4a96c73b9c7e1fffb2cea6661d2579709b0a7e1 | [
"X11"
] | 3 | 2019-07-03T10:09:15.000Z | 2019-10-12T23:23:31.000Z | Source/Tortuga/Components/Light.hpp | zeeshan595/Tortuga | a4a96c73b9c7e1fffb2cea6661d2579709b0a7e1 | [
"X11"
] | null | null | null | #ifndef _LIGHT_COMPONENT
#define _LIGHT_COMPONENT
#include <glm/glm.hpp>
#include "../Core/ECS/Entity.hpp"
namespace Tortuga
{
namespace Components
{
enum LightType
{
POINT,
DIRECTIONAL
};
struct Light : Core::ECS::Component
{
private:
LightType Type = LightType::POINT;
glm::vec4 Color = glm::vec4(1, 1, 1, 1... | 14.292308 | 42 | 0.639397 | zeeshan595 |
b7b1b0bcbadf63c38c76aa1bd0fc482b2ab4050e | 875 | hpp | C++ | world/BlockType.hpp | brendanberg01/Voxel | 8b56f4fab57a1e7eb63b4794d0b4a193465d71a2 | [
"MIT"
] | null | null | null | world/BlockType.hpp | brendanberg01/Voxel | 8b56f4fab57a1e7eb63b4794d0b4a193465d71a2 | [
"MIT"
] | null | null | null | world/BlockType.hpp | brendanberg01/Voxel | 8b56f4fab57a1e7eb63b4794d0b4a193465d71a2 | [
"MIT"
] | null | null | null | //
// Created by Brendan Berg on 16.03.19.
//
#ifndef VOXEL_BLOCKTYPE_HPP
#define VOXEL_BLOCKTYPE_HPP
#include <string>
#include <vector>
#include <glm/glm.hpp>
#include "BlockUtility.hpp"
class BlockType
{
public:
BlockType (unsigned int blockID, const std::string& name);
BlockType ();
unsigned in... | 15.086207 | 79 | 0.681143 | brendanberg01 |
5d9be7a72754223955c5c27767b3c003bae7802d | 782 | hpp | C++ | include/conceptslib/detail/concepts/invocable_workaround.hpp | seriouslyhypersonic/experimental_concepts | f736237dfc54a7c89ef1ed3888acf6f0aec3b98a | [
"BSL-1.0"
] | null | null | null | include/conceptslib/detail/concepts/invocable_workaround.hpp | seriouslyhypersonic/experimental_concepts | f736237dfc54a7c89ef1ed3888acf6f0aec3b98a | [
"BSL-1.0"
] | null | null | null | include/conceptslib/detail/concepts/invocable_workaround.hpp | seriouslyhypersonic/experimental_concepts | f736237dfc54a7c89ef1ed3888acf6f0aec3b98a | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) Nuno Alves de Sousa 2019
*
* Use, modification and distribution is subject to the Boost Software License,
* Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef DETAIL_INVOCABLE_WORKAROUND_H
#define DETAIL_INVOCABLE_WORKAROUND_H
#inc... | 26.066667 | 79 | 0.748082 | seriouslyhypersonic |
5d9d26e143aac52c5b670f1646ee16c13aafaf8e | 5,705 | hpp | C++ | src/w32/wic/wic_fwd.hpp | kei10in/w32 | 57081311df54dbaa0f31407987a9f291bc785114 | [
"MIT"
] | null | null | null | src/w32/wic/wic_fwd.hpp | kei10in/w32 | 57081311df54dbaa0f31407987a9f291bc785114 | [
"MIT"
] | null | null | null | src/w32/wic/wic_fwd.hpp | kei10in/w32 | 57081311df54dbaa0f31407987a9f291bc785114 | [
"MIT"
] | null | null | null | #pragma once
#include "../com.hpp"
#include "wic_def.hpp"
#include "wic_guids.hpp"
namespace w32::wic {
namespace internal {
template <class T>
class palette_t;
template <class T>
class bitmap_source_t;
template <class T>
class format_converter_t;
template <class T>
class planar_format_converter_t;
template <cl... | 27.829268 | 80 | 0.832252 | kei10in |
5d9dbcefa28a0bfa083f70a2b6e8d1145ab99f32 | 815 | cpp | C++ | src/Object.cpp | cppcooper/gumbo-query | f4c69278f09616e6275acd0dd2ea1d22f3785dc8 | [
"MIT"
] | 1 | 2022-02-28T15:51:39.000Z | 2022-02-28T15:51:39.000Z | src/Object.cpp | cppcooper/gumbo-query | f4c69278f09616e6275acd0dd2ea1d22f3785dc8 | [
"MIT"
] | null | null | null | src/Object.cpp | cppcooper/gumbo-query | f4c69278f09616e6275acd0dd2ea1d22f3785dc8 | [
"MIT"
] | null | null | null | /***************************************************************************
*
* $Id$
*
**************************************************************************/
/**
* @file $HeadURL$
* @author $Author$(hoping@baimashi.com)
* @date $Date$
* @version $Revision$
* @brief
*
**/
#include <gumbo-query/Ob... | 13.583333 | 76 | 0.490798 | cppcooper |
5da468b6b52d1014af4bf260192430b84ccc8f22 | 16,695 | cpp | C++ | plugins/my_videobasedtracker/VideoTrackerCalibrationUtility.cpp | ccccjason/OSVR_device_plugin | 6c9171265900530341cfa79357151daa39618737 | [
"Apache-2.0"
] | 1 | 2022-03-28T05:09:11.000Z | 2022-03-28T05:09:11.000Z | plugins/videobasedtracker/VideoTrackerCalibrationUtility.cpp | ccccjason/my_osvr | fdb2a64cbf88211c34f8c8bd42f0f83a6b98769e | [
"Apache-2.0"
] | null | null | null | plugins/videobasedtracker/VideoTrackerCalibrationUtility.cpp | ccccjason/my_osvr | fdb2a64cbf88211c34f8c8bd42f0f83a6b98769e | [
"Apache-2.0"
] | null | null | null | /** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 L... | 38.556582 | 146 | 0.518598 | ccccjason |
5da7765db463a56f51e4be700d35f3460e6213a5 | 147 | cpp | C++ | KFPlugin/KFRobot/KFStateWait.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFPlugin/KFRobot/KFStateWait.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFPlugin/KFRobot/KFStateWait.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #include "KFStateWait.hpp"
namespace KFrame
{
bool KFStateWait::CheckState( KFFsm* fsm, KFRobot* robot )
{
return false;
}
} | 14.7 | 62 | 0.62585 | 282951387 |
5da86dca6536dd87cc29260b5b1139cb6cfcf2af | 1,240 | cpp | C++ | src/parse_invocation.cpp | to-miz/tg | 84950c00dc62418d1c82ac05489ce0df18ebd4db | [
"MIT"
] | null | null | null | src/parse_invocation.cpp | to-miz/tg | 84950c00dc62418d1c82ac05489ce0df18ebd4db | [
"MIT"
] | null | null | null | src/parse_invocation.cpp | to-miz/tg | 84950c00dc62418d1c82ac05489ce0df18ebd4db | [
"MIT"
] | null | null | null | struct parsed_invocation {
literal_block_t body;
int stack_size = 0;
int scope_index = -1;
bool valid = false;
};
parsed_invocation parse_invocation(process_state_t* state, tokenizer_t* tokenizer) {
auto impl = [](process_state_t* state, tokenizer_t* tokenizer, parsed_invocation* out) {
par... | 35.428571 | 92 | 0.647581 | to-miz |
5dab913194448f00e5cec4f25cbf98478074d65a | 974 | cpp | C++ | Object/Mesh.cpp | youch34/DirectX11 | abf187e54dfcbf1d869aa345807a54a541097118 | [
"Unlicense"
] | null | null | null | Object/Mesh.cpp | youch34/DirectX11 | abf187e54dfcbf1d869aa345807a54a541097118 | [
"Unlicense"
] | null | null | null | Object/Mesh.cpp | youch34/DirectX11 | abf187e54dfcbf1d869aa345807a54a541097118 | [
"Unlicense"
] | null | null | null | #include "stdafx.h"
#include "Mesh.h"
#include "Pipeline/ConstantBuffer.h"
Mesh::Mesh(std::vector<Texture2D>& textures)
{
this->textures = textures;
}
Mesh::~Mesh()
{
}
void Mesh::Render(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, DirectX::XMMATRIX parent, DirectX::XMMATRIX view_proj)
{
Ve... | 23.756098 | 127 | 0.705339 | youch34 |
5db2426a66a6e3da61d3e9508e7434d1a0943229 | 1,604 | hpp | C++ | include/nodes/internal/Export.hpp | bczol/QNodeEditor | 427b6fe13049aae62855b893b524f17278e8c06f | [
"BSD-3-Clause"
] | 13 | 2020-02-15T06:08:09.000Z | 2021-09-29T00:38:59.000Z | include/nodes/internal/Export.hpp | bczol/QNodeEditor | 427b6fe13049aae62855b893b524f17278e8c06f | [
"BSD-3-Clause"
] | null | null | null | include/nodes/internal/Export.hpp | bczol/QNodeEditor | 427b6fe13049aae62855b893b524f17278e8c06f | [
"BSD-3-Clause"
] | 7 | 2020-06-24T12:05:14.000Z | 2022-01-20T15:26:08.000Z | #pragma once
#include "Compiler.hpp"
#include "OperatingSystem.hpp"
#ifdef NODE_EDITOR_PLATFORM_WINDOWS
#define NODE_EDITOR_EXPORT __declspec(dllexport)
#define NODE_EDITOR_IMPORT __declspec(dllimport)
#define NODE_EDITOR_LOCAL
#elif NODE_EDITOR_COMPILER_GNU_VERSION_MAJOR >= 4 || defined(NODE_EDITOR_COMPILE... | 35.644444 | 88 | 0.763092 | bczol |
5dc1eb7aed5eb08037017b8182c5717682d4c67c | 3,967 | cpp | C++ | source/Rendering/Shader.cpp | zeskeertwee/Engine | 919d9cff18fa16a828ab3dc382f1f8e13337acfc | [
"MIT"
] | 7 | 2021-07-01T16:53:21.000Z | 2021-12-03T16:57:19.000Z | source/Rendering/Shader.cpp | zeskeertwee/Engine | 919d9cff18fa16a828ab3dc382f1f8e13337acfc | [
"MIT"
] | null | null | null | source/Rendering/Shader.cpp | zeskeertwee/Engine | 919d9cff18fa16a828ab3dc382f1f8e13337acfc | [
"MIT"
] | 1 | 2021-09-01T13:33:56.000Z | 2021-09-01T13:33:56.000Z | #include "Shader.hpp"
#include "Renderer.hpp"
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
bool compiled = false;
Shader::Shader(const std::string& filepath) : m_FilePath(filepath), m_RendererID(0) {
ShaderProgramSource source = ParseShader(filepath);
m_RendererID = CreateShad... | 29.385185 | 140 | 0.650618 | zeskeertwee |
5dc1ff4b9c3d257dd2a40aa727580636c5c31aad | 858 | hpp | C++ | byte-mini.hpp | Hypnotron/Line-Shortener | 5ab728f64874dc677a95cfc65d9b8b33d604cf61 | [
"MIT"
] | null | null | null | byte-mini.hpp | Hypnotron/Line-Shortener | 5ab728f64874dc677a95cfc65d9b8b33d604cf61 | [
"MIT"
] | null | null | null | byte-mini.hpp | Hypnotron/Line-Shortener | 5ab728f64874dc677a95cfc65d9b8b33d604cf61 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
using u8 = std::uint8_t;
using u16 = std::uint16_t;
using u32 = std::uint32_t;
using u64 = std::uint64_t;
using s8 = std::int8_t;
using s16 = std::int16_t;
using s32 = std::int32_t;
using s64 = std::int64_t;
using u8_fast = std::uint_fast8_t;
using u16_fast = std::uint_fast16_t;
us... | 24.514286 | 66 | 0.677156 | Hypnotron |
5dc2b2656e1543403e14e735f9251a65fb28f105 | 43,281 | cpp | C++ | FPSLighting/Dependencies/DIRECTX/Samples/C++/Direct3D/DepthOfField/DepthOfField.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | null | null | null | FPSLighting/Dependencies/DIRECTX/Samples/C++/Direct3D/DepthOfField/DepthOfField.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | null | null | null | FPSLighting/Dependencies/DIRECTX/Samples/C++/Direct3D/DepthOfField/DepthOfField.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------------------------
// File: DepthOfField.cpp
//
// Depth of field
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "DXUT.h"
#include "DXU... | 41.576369 | 119 | 0.59555 | billionare |
5dc45430aeee85d60feef3c2ae4f1933957f90dc | 9,584 | hh | C++ | source/include/Utilities.hh | leenderthayen/CRADLE | 8b7979a201c6d95abbc00cf44159b8fa577a17f5 | [
"MIT"
] | null | null | null | source/include/Utilities.hh | leenderthayen/CRADLE | 8b7979a201c6d95abbc00cf44159b8fa577a17f5 | [
"MIT"
] | 3 | 2019-04-22T13:07:52.000Z | 2021-04-13T04:49:09.000Z | source/include/Utilities.hh | leenderthayen/CRADLE | 8b7979a201c6d95abbc00cf44159b8fa577a17f5 | [
"MIT"
] | 1 | 2021-06-13T19:03:55.000Z | 2021-06-13T19:03:55.000Z | #ifndef UTILITIES
#define UTILITIES
#include <math.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <algorithm>
#include <map>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/symmetric.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#incl... | 32.488136 | 671 | 0.591402 | leenderthayen |
5dc6384b2d429a210dd324dd305f6ad60449a278 | 2,894 | hpp | C++ | asteria/src/variable_hashset.hpp | MaskRay/asteria | 56a9251f5bb80b92e5aff25eac145f8cd2495096 | [
"BSD-3-Clause"
] | null | null | null | asteria/src/variable_hashset.hpp | MaskRay/asteria | 56a9251f5bb80b92e5aff25eac145f8cd2495096 | [
"BSD-3-Clause"
] | null | null | null | asteria/src/variable_hashset.hpp | MaskRay/asteria | 56a9251f5bb80b92e5aff25eac145f8cd2495096 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.
#ifndef ASTERIA_VARIABLE_HASHSET_HPP_
#define ASTERIA_VARIABLE_HASHSET_HPP_
#include "fwd.hpp"
#include "variable.hpp"
#include "rocket/refcounted_ptr.hpp"
namespace Asteria {
class Variable_hashset
{
private:
rocket::refcount... | 24.319328 | 83 | 0.575328 | MaskRay |
5dc7a5571a2d3a4d93038dfbb2d456e762d33a6e | 1,117 | hpp | C++ | node.hpp | almogun9963/ex2.a | 00b5bafca4e894785d9cf0d5298078ed9b6487b8 | [
"MIT"
] | null | null | null | node.hpp | almogun9963/ex2.a | 00b5bafca4e894785d9cf0d5298078ed9b6487b8 | [
"MIT"
] | null | null | null | node.hpp | almogun9963/ex2.a | 00b5bafca4e894785d9cf0d5298078ed9b6487b8 | [
"MIT"
] | null | null | null | //
// Created by Almog on 13/04/2020.
//
#pragma once
#include <iostream>
class node {
std::string name;
char gender;
node* child;
node* left;
node* right;
int level;
public:
std::string getName()
{
return this->name;
}
char getGender()
{
... | 16.426471 | 58 | 0.444047 | almogun9963 |
5dcc7d2b1a6bad1d9ddae3ce33ec2e5654d91b6b | 7,572 | cpp | C++ | tests/matching.cpp | WolfgangVogl/compile-time-verbal-expressions | 7169afac274c98a8afe66440d393d3a9a0a8f7c4 | [
"Apache-2.0"
] | 5 | 2019-11-14T21:01:56.000Z | 2021-04-15T13:00:12.000Z | tests/matching.cpp | WolfgangVogl/compile-time-verbal-expressions | 7169afac274c98a8afe66440d393d3a9a0a8f7c4 | [
"Apache-2.0"
] | 1 | 2021-01-27T10:26:13.000Z | 2021-01-27T10:26:13.000Z | tests/matching.cpp | WolfgangVogl/compile-time-verbal-expressions | 7169afac274c98a8afe66440d393d3a9a0a8f7c4 | [
"Apache-2.0"
] | 1 | 2021-01-26T11:38:51.000Z | 2021-01-26T11:38:51.000Z | #include <ctve.hpp>
#include <ctre.hpp>
template <auto& input>
constexpr auto create()
{
using tmp = typename ctll::parser<ctre::pcre, input, ctre::pcre_actions>::
template output<ctre::pcre_context<>>;
static_assert(tmp(), "Regular Expression contains syntax error.");
using re = decltype(front(typename t... | 44.280702 | 154 | 0.729398 | WolfgangVogl |
5dd0b5b3e8bf433437ab2408cea31f3ea9c634e1 | 156 | cpp | C++ | demo/main.cpp | SkatGame/Lab6 | 0ae71bcbd29a25baf14587f5b8c5e327fd6b9022 | [
"MIT"
] | null | null | null | demo/main.cpp | SkatGame/Lab6 | 0ae71bcbd29a25baf14587f5b8c5e327fd6b9022 | [
"MIT"
] | null | null | null | demo/main.cpp | SkatGame/Lab6 | 0ae71bcbd29a25baf14587f5b8c5e327fd6b9022 | [
"MIT"
] | null | null | null | #include <header.hpp>
int main(int argc, char *argv[]) {
signal(SIGINT, Hasher::signal_catch);
Hasher hasher(argc, argv);
hasher.start(true);
} | 22.285714 | 41 | 0.660256 | SkatGame |
5dd2ff3a22c55f6cec97aa0ef4edf1bc8b5e34fa | 4,131 | hpp | C++ | src/heattransfer/radial.hpp | kewin1983/transient-pipeline-flow | 4ffe0b61d3d40d9bcb82a3743b2c2e403521835d | [
"MIT"
] | 1 | 2021-03-26T03:30:07.000Z | 2021-03-26T03:30:07.000Z | src/heattransfer/radial.hpp | kewin1983/transient-pipeline-flow | 4ffe0b61d3d40d9bcb82a3743b2c2e403521835d | [
"MIT"
] | null | null | null | src/heattransfer/radial.hpp | kewin1983/transient-pipeline-flow | 4ffe0b61d3d40d9bcb82a3743b2c2e403521835d | [
"MIT"
] | null | null | null | #pragma once
#include <armadillo>
#include "heattransfer/heattransferbase.hpp"
#include "heattransfer/burialmedium.hpp"
#include "heattransfer/ambientfluid.hpp"
class Pipeline;
class PipeWall;
/*!
* \brief Base class for heat transfer calculation with 1d radial models.
*
* This contains the description of the bu... | 37.216216 | 100 | 0.686032 | kewin1983 |
5dde3e340d4755eaa0f11aecbda1f2e86e103749 | 57,461 | cpp | C++ | src/io/dxf/RDxfExporter.cpp | ouxianghui/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 12 | 2021-03-26T03:23:30.000Z | 2021-12-31T10:05:44.000Z | src/io/dxf/RDxfExporter.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | null | null | null | src/io/dxf/RDxfExporter.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 9 | 2021-06-23T08:26:40.000Z | 2022-01-20T07:18:10.000Z | /**
* Copyright (c) 2011-2016 by Andrew Mustun. All rights reserved.
*
* This file is part of the QCAD project.
*
* QCAD is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,... | 33.388146 | 139 | 0.500548 | ouxianghui |
5ddf2c948a528e38cdf62bc72d3bdc4c12fc61b0 | 4,178 | cpp | C++ | OpenGL/src/Application.cpp | Jason-Skillman/OpenGL-Application | 1a6974b34670fd22590b212415723010a9e10ddd | [
"Apache-2.0"
] | null | null | null | OpenGL/src/Application.cpp | Jason-Skillman/OpenGL-Application | 1a6974b34670fd22590b212415723010a9e10ddd | [
"Apache-2.0"
] | null | null | null | OpenGL/src/Application.cpp | Jason-Skillman/OpenGL-Application | 1a6974b34670fd22590b212415723010a9e10ddd | [
"Apache-2.0"
] | null | null | null | #include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include "Renderer.h"
#include "VertexBuffer.h"
#include "VertexBufferLayout.h"
#include "IndexBuffer.h"
#include "VertexArray.h"
#include "Shader.h"
#include "Texture.h"
#include "glm/glm.hpp"
#i... | 27.853333 | 89 | 0.623265 | Jason-Skillman |
5ddf9daf553c81961c0da47780a7719356bf7f7e | 1,425 | cpp | C++ | devdc14.cpp | vidit1999/coding_problems | b6c9fa7fda37d9424cd11bcd54b385fd8cf1ee0a | [
"BSD-2-Clause"
] | 1 | 2020-02-24T18:28:48.000Z | 2020-02-24T18:28:48.000Z | devdc14.cpp | vidit1999/coding_problems | b6c9fa7fda37d9424cd11bcd54b385fd8cf1ee0a | [
"BSD-2-Clause"
] | null | null | null | devdc14.cpp | vidit1999/coding_problems | b6c9fa7fda37d9424cd11bcd54b385fd8cf1ee0a | [
"BSD-2-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
Given a positive integer n, return a strictly increasing sequence of
numbers so that the sum of the squares is equal to n².
If there are multiple solutions, return the result with the largest possible value:
For example: decompose(11) must return [1,2,4,10].
Note: th... | 23.75 | 83 | 0.64 | vidit1999 |
5ddfec40fee9aa5970c13c6fa6d0561decf1cfe1 | 2,415 | hpp | C++ | src/include/streamer/objects.hpp | philip1337/samp-plugin-streamer | 54b08afd5e73bd5f68f67f9cf8cc78189bf6ef8a | [
"Apache-2.0"
] | 2 | 2017-07-23T23:27:03.000Z | 2017-07-24T06:18:13.000Z | src/include/streamer/objects.hpp | Sphinxila/samp-plugin-streamer | 54b08afd5e73bd5f68f67f9cf8cc78189bf6ef8a | [
"Apache-2.0"
] | null | null | null | src/include/streamer/objects.hpp | Sphinxila/samp-plugin-streamer | 54b08afd5e73bd5f68f67f9cf8cc78189bf6ef8a | [
"Apache-2.0"
] | null | null | null | #ifndef OBJECTS_HPP
#define OBJECTS_HPP
#pragma once
#include "config.hpp"
#include <limits>
#include <string>
STREAMER_BEGIN_NS
int CreateDynamicObject(int modelid, float x, float y, float z,
float rx, float ry, float rz, int worldid, int interiorid, int playerid,
float streamDistance, float drawDistance, int a... | 56.162791 | 200 | 0.787992 | philip1337 |
5de13036ea80514d9a3d57d28bf1fc5fa0309b5b | 308 | cpp | C++ | Evo/History/HistorySystem.cpp | pk1954/Solutions | b224522283f82cb7d73b8005e35e0c045edc2fc0 | [
"MIT"
] | null | null | null | Evo/History/HistorySystem.cpp | pk1954/Solutions | b224522283f82cb7d73b8005e35e0c045edc2fc0 | [
"MIT"
] | null | null | null | Evo/History/HistorySystem.cpp | pk1954/Solutions | b224522283f82cb7d73b8005e35e0c045edc2fc0 | [
"MIT"
] | null | null | null | // HistorySystem.cpp
//
#include "stdafx.h"
#include "assert.h"
#include "HistorySystem.h"
#include "HistorySystemImpl.h"
HistorySystem * HistorySystem::CreateHistorySystem()
{
return new HistorySystemImpl( );
}
BYTES HistorySystem::GetSlotWrapperSize( )
{
return BYTES( sizeof( HistCacheItem ) );
}
| 17.111111 | 52 | 0.737013 | pk1954 |
5de59dd40368999a5dc2e0f3fdb44e2f24148ecc | 15,234 | hh | C++ | libs/cmdr11/include/cmdr11/cmdr_arg.hh | hedzr/cmdr-cxx | 7e4c1b8b92feadb45b3eb22c4e816902ddb4bd12 | [
"MIT"
] | 5 | 2021-03-05T02:02:39.000Z | 2022-01-01T12:44:02.000Z | libs/cmdr11/include/cmdr11/cmdr_arg.hh | hedzr/cmdr-cxx | 7e4c1b8b92feadb45b3eb22c4e816902ddb4bd12 | [
"MIT"
] | null | null | null | libs/cmdr11/include/cmdr11/cmdr_arg.hh | hedzr/cmdr-cxx | 7e4c1b8b92feadb45b3eb22c4e816902ddb4bd12 | [
"MIT"
] | null | null | null | //
// Created by Hedzr Yeh on 2021/1/11.
//
#ifndef CMDR_CXX11_CMDR_ARG_HH
#define CMDR_CXX11_CMDR_ARG_HH
#include <any>
#include <cassert>
#include <iomanip>
#include <sstream>
#include <type_traits>
#include <utility>
#include <variant>
#include "cmdr_cmn.hh"
#include "cmdr_string.hh"
#include "cmdr_var_t.hh"
na... | 29.523256 | 131 | 0.475318 | hedzr |
5de7117165ec3d6ede9af874228919bbbc058b66 | 1,235 | cpp | C++ | src/coordinates/cartesian.cpp | mattstvan/arc | 1e86947ba70bacd718dcbecbe08b5d4242fe8117 | [
"MIT"
] | null | null | null | src/coordinates/cartesian.cpp | mattstvan/arc | 1e86947ba70bacd718dcbecbe08b5d4242fe8117 | [
"MIT"
] | null | null | null | src/coordinates/cartesian.cpp | mattstvan/arc | 1e86947ba70bacd718dcbecbe08b5d4242fe8117 | [
"MIT"
] | 1 | 2022-03-31T02:27:33.000Z | 2022-03-31T02:27:33.000Z | #include <cartesian.h>
#include <keplerian.h>
#include <iostream>
/*
Cartesian base class methods
*/
// Default constructor
Cartesian::Cartesian() {
this->central_body = SUN;
this->epoch = DateTime{};
this->position = Vector3{};
this->velocity = Vector3{};
}
// Direct constructor
Cartesian::Cartesian(Celest... | 28.068182 | 72 | 0.659109 | mattstvan |
5deb3d98e1445a4b7457cefe314cfea841600665 | 1,720 | cpp | C++ | puzzle_app/src/states/MainMenu.cpp | SzyJ/CSC8501_15-Puzzle | 6dc3795a425ffc5f5f86c6777d12e63a12d390cb | [
"MIT"
] | null | null | null | puzzle_app/src/states/MainMenu.cpp | SzyJ/CSC8501_15-Puzzle | 6dc3795a425ffc5f5f86c6777d12e63a12d390cb | [
"MIT"
] | null | null | null | puzzle_app/src/states/MainMenu.cpp | SzyJ/CSC8501_15-Puzzle | 6dc3795a425ffc5f5f86c6777d12e63a12d390cb | [
"MIT"
] | null | null | null | // Author: Szymon Jackiewicz
//
// Project: puzzle_app
// File: MainMenu.cpp
// Date: 25/10/2019
#include "MainMenu.h"
#include "fsm/Controller.h"
#include "Utils/Color.h"
#include "Utils/Console.h"
#include <iostream>
namespace screen {
MainMenu::MainMenu() {
const char* m_MenuOptions[] = {
... | 23.561644 | 67 | 0.522093 | SzyJ |
5debebdd343473205354092d49b9d7b56d21f652 | 34 | hpp | C++ | tests/var_reference/totally_unused.hpp | selat/headless | a4c3342a8ac32fc219d872c8adf3042e7c7299a1 | [
"WTFPL"
] | null | null | null | tests/var_reference/totally_unused.hpp | selat/headless | a4c3342a8ac32fc219d872c8adf3042e7c7299a1 | [
"WTFPL"
] | null | null | null | tests/var_reference/totally_unused.hpp | selat/headless | a4c3342a8ac32fc219d872c8adf3042e7c7299a1 | [
"WTFPL"
] | null | null | null | #pragma once
void unused_func();
| 8.5 | 19 | 0.735294 | selat |
5dee6f6efeec62437b7290bcc93f8b0edcfa27e2 | 9,403 | hpp | C++ | bitsplatform/src/include/bitsplatform.hpp | mini-game-token/mgt.contracts | 4dc17dcff9efc29cd2237154c718669d5277d48f | [
"MIT"
] | 5 | 2019-01-07T05:07:12.000Z | 2019-07-31T07:57:40.000Z | bitsplatform/src/include/bitsplatform.hpp | mini-game-token/mgt.contracts | 4dc17dcff9efc29cd2237154c718669d5277d48f | [
"MIT"
] | null | null | null | bitsplatform/src/include/bitsplatform.hpp | mini-game-token/mgt.contracts | 4dc17dcff9efc29cd2237154c718669d5277d48f | [
"MIT"
] | 3 | 2019-01-07T08:38:58.000Z | 2019-07-30T06:46:10.000Z | #pragma once
#include <eosiolib/eosio.hpp>
#include <eosiolib/asset.hpp>
#include <eosiolib/transaction.hpp>
#include "game.hpp"
#include "user.hpp"
#include "global.hpp"
#include "data.hpp"
#include "token/token_stats.hpp"
#include "token/token_balance.hpp"
#include "referrer/ref_status.hpp"
#include "consume/con_s... | 35.483019 | 112 | 0.544294 | mini-game-token |
5defda2d0bbb08af8ca0eebb721a6212a28e7d0c | 1,612 | hpp | C++ | src/GameObjects/DrawableGameObjects/melee.hpp | PierrickLP/PopHead | 0c2ddd6d737f556b3f74b91b937b023c8e8010f0 | [
"MIT"
] | null | null | null | src/GameObjects/DrawableGameObjects/melee.hpp | PierrickLP/PopHead | 0c2ddd6d737f556b3f74b91b937b023c8e8010f0 | [
"MIT"
] | null | null | null | src/GameObjects/DrawableGameObjects/melee.hpp | PierrickLP/PopHead | 0c2ddd6d737f556b3f74b91b937b023c8e8010f0 | [
"MIT"
] | null | null | null | #pragma once
#include "GameObjects/GameObject.hpp"
#include <array>
namespace ph{
class GameData;
class Character;
class CollisionBody;
class Swing
{
public:
Swing(const GameObject& nodeWithAttackableObjects, const sf::Vector2f position,
const float damage, const float range, const float rotationRange, float at... | 26 | 96 | 0.797767 | PierrickLP |
5df019b7c224b97990c91adf33184ec8f531dbc3 | 3,288 | cpp | C++ | src/Backends/DirectX12/src/input_attachment_mapping.cpp | jayrulez/LiteFX | 482480fee96dd80c73356cd6898ea0e0544ac09d | [
"MIT"
] | 8 | 2021-06-23T09:04:10.000Z | 2022-02-06T19:01:21.000Z | src/Backends/DirectX12/src/input_attachment_mapping.cpp | jayrulez/LiteFX | 482480fee96dd80c73356cd6898ea0e0544ac09d | [
"MIT"
] | 29 | 2021-06-23T13:59:54.000Z | 2021-08-03T14:12:59.000Z | src/Backends/DirectX12/src/input_attachment_mapping.cpp | jayrulez/LiteFX | 482480fee96dd80c73356cd6898ea0e0544ac09d | [
"MIT"
] | 1 | 2021-10-30T18:44:02.000Z | 2021-10-30T18:44:02.000Z | #include <litefx/backends/dx12.hpp>
using namespace LiteFX::Rendering::Backends;
// ------------------------------------------------------------------------------------------------
// Implementation.
// ------------------------------------------------------------------------------------------------
class DirectX12In... | 40.097561 | 184 | 0.711679 | jayrulez |
5df1aabf1882c084dd350b054f0f9c9625af7fc9 | 372 | cpp | C++ | blink/src/main.cpp | snakeye/stm32-projects | ed20e723dc1e50111c6b547fc142665b7db7843b | [
"MIT"
] | null | null | null | blink/src/main.cpp | snakeye/stm32-projects | ed20e723dc1e50111c6b547fc142665b7db7843b | [
"MIT"
] | null | null | null | blink/src/main.cpp | snakeye/stm32-projects | ed20e723dc1e50111c6b547fc142665b7db7843b | [
"MIT"
] | null | null | null | #include <Arduino.h>
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
}
void loop()
{
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
del... | 26.571429 | 83 | 0.596774 | snakeye |
5df3b02bbe6e4fff2bd9bc48cc09912b1f0aa72e | 410 | cpp | C++ | 0746. Min Cost Climbing Stairs/solution_dp.cpp | Pluto-Zy/LeetCode | 3bb39fc5c000b344fd8727883b095943bd29c247 | [
"MIT"
] | null | null | null | 0746. Min Cost Climbing Stairs/solution_dp.cpp | Pluto-Zy/LeetCode | 3bb39fc5c000b344fd8727883b095943bd29c247 | [
"MIT"
] | null | null | null | 0746. Min Cost Climbing Stairs/solution_dp.cpp | Pluto-Zy/LeetCode | 3bb39fc5c000b344fd8727883b095943bd29c247 | [
"MIT"
] | null | null | null | class Solution {
public:
int minCostClimbingStairs(vector<int>& cost) {
// dp[i]: 爬到第 i 级阶梯的最小体力消耗
// dp[i] = min(dp[i - 1] + cost[i - 1], dp[i - 2] + cost[i - 2])
// dp[0] = 0, dp[1] = 0
int dp_0 = 0, dp_1 = 0;
for (int i = 1; i < cost.size(); ++i) {
int dp_temp = std::min(dp_1 + cost[i], d... | 27.333333 | 68 | 0.492683 | Pluto-Zy |
5df4cb55568837e4362bf0938ebb8ff14cd10709 | 7,333 | cpp | C++ | 6_TSP/src/controlador.cpp | eduherminio/Academic_ArtificialIntelligence | f0ec4d35cef64a1bf6841ea7ecf1d33017b3745f | [
"MIT"
] | 3 | 2017-05-16T22:25:16.000Z | 2019-05-07T16:12:21.000Z | 6_TSP/src/controlador.cpp | eduherminio/Academic_ArtificialIntelligence | f0ec4d35cef64a1bf6841ea7ecf1d33017b3745f | [
"MIT"
] | null | null | null | 6_TSP/src/controlador.cpp | eduherminio/Academic_ArtificialIntelligence | f0ec4d35cef64a1bf6841ea7ecf1d33017b3745f | [
"MIT"
] | null | null | null | #include "../header/controlador.h"
// #include "../header/dialogo_fichero_windows.h"
#include "../header/dialogo_fichero_linux.h"
#include "../header/recocido_simulado_tsp.h"
#include <thread>
namespace controlador
{
void Controlador::registra_observadores()
{
Observador<Evento_Vista>& observador_vista = vista.get... | 36.123153 | 200 | 0.723033 | eduherminio |
5df8d0d00371160f0496f9f9e7a68c4f7c596196 | 5,181 | cpp | C++ | src/apt.cpp | feliwir/libapt | 43b05b3de632896cb7d1351191a07c0f0cdf801a | [
"MIT"
] | 7 | 2016-12-19T21:13:41.000Z | 2021-03-19T11:14:29.000Z | src/apt.cpp | feliwir/libapt | 43b05b3de632896cb7d1351191a07c0f0cdf801a | [
"MIT"
] | 1 | 2017-06-17T12:14:08.000Z | 2017-06-17T14:47:20.000Z | src/apt.cpp | feliwir/libapt | 43b05b3de632896cb7d1351191a07c0f0cdf801a | [
"MIT"
] | 3 | 2017-11-07T12:22:10.000Z | 2020-04-30T20:48:59.000Z | #include <libapt/apt.hpp>
#include <libapt/manager.hpp>
#include "displayobject.hpp"
#include "characters/character.hpp"
#include "characters/movie.hpp"
#include "characters/image.hpp"
#include "characters/shape.hpp"
#include "graphics/buffer.hpp"
#include "util.hpp"
#include "geometry.hpp"
#include <iostream>
using na... | 22.428571 | 113 | 0.669948 | feliwir |
5dfb39659edd6b8b09b906fcd0aa1a236a928630 | 1,749 | hpp | C++ | include/cyp/tuple.hpp | ccharly/cyp | c79b972caa65b63e0369b0d06483221838f6ceaf | [
"MIT"
] | null | null | null | include/cyp/tuple.hpp | ccharly/cyp | c79b972caa65b63e0369b0d06483221838f6ceaf | [
"MIT"
] | null | null | null | include/cyp/tuple.hpp | ccharly/cyp | c79b972caa65b63e0369b0d06483221838f6ceaf | [
"MIT"
] | null | null | null | #ifndef CYP_TUPLE_HPP
#define CYP_TUPLE_HPP
#include <cyp/any.hpp>
#include <cyp/static_operators.hpp>
#include <utility>
#include <vector>
namespace cyp {
template <typename... Types>
class tuple : public std::tuple<Types...> {
public:
using std::tuple<Types...>::tuple;
static constexpr int static_size = siz... | 23.013158 | 90 | 0.59291 | ccharly |
b90098ec49bf9acb6531b6832c98e7c99d43957d | 1,431 | cpp | C++ | Luogu/P3956.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-09-11T13:17:28.000Z | 2020-09-11T13:17:28.000Z | Luogu/P3956.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-10-22T13:36:23.000Z | 2020-10-22T13:36:23.000Z | Luogu/P3956.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-10-22T13:33:11.000Z | 2020-10-22T13:33:11.000Z | /*
* Problem: P3956
* Author: Insouciant21
* Time: 2020/9/10 19:28:39
* Status: Accepted
*/
#include <bits/stdc++.h>
using namespace std;
constexpr auto inf = 0x3f3f3f;
int chess[110][110];
int best[110][110];
int movx[4] = {0, 1, 0, -1}, movy[4] = {1, 0, -1, 0};
int m, n;
int ans = inf;
void dfs(int x,... | 22.714286 | 57 | 0.422781 | Insouciant21 |
b90168d25d570ea630acbb41fb0d92eb2dcd5eff | 936 | cpp | C++ | Complex.cpp | zevoGet/fft | 11bc7914cef4675aaf4cd42245fb337a26fe59e6 | [
"BSD-3-Clause"
] | 5 | 2018-12-24T02:10:08.000Z | 2019-10-19T13:36:56.000Z | Complex.cpp | zevoGet/fft | 11bc7914cef4675aaf4cd42245fb337a26fe59e6 | [
"BSD-3-Clause"
] | null | null | null | Complex.cpp | zevoGet/fft | 11bc7914cef4675aaf4cd42245fb337a26fe59e6 | [
"BSD-3-Clause"
] | 1 | 2019-10-10T11:07:47.000Z | 2019-10-10T11:07:47.000Z | #include "Complex.h"
#include<cmath>
#include <stdio.h>
void Complexf::setReal(float real1){
real = real1;
};
void Complexf::setIm(float im1){
im = im1;
};
float Complexf::getReal(){
return real;
};
float Complexf::getIm(){
return im;
};
void Complexf::operator +=(Complexf c1){
... | 17.333333 | 48 | 0.550214 | zevoGet |
b9054ec88da477cf37d588c582328f6b16f9e867 | 1,890 | hpp | C++ | src/Tests/CoreTests/Tests.hpp | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | 1 | 2018-04-16T13:55:45.000Z | 2018-04-16T13:55:45.000Z | src/Tests/CoreTests/Tests.hpp | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | null | null | null | src/Tests/CoreTests/Tests.hpp | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | null | null | null | #ifndef RADIUM_TESTS_HPP_
#define RADIUM_TESTS_HPP_
#include <Core/CoreMacros.hpp>
#include <Tests/CoreTests/Manager.hpp>
namespace RaTests {
/// Base class for all tests.
class Test {
public:
Test() {
if ( !TestManager::getInstance() )
{
TestManager::createInstance();
}
... | 36.346154 | 99 | 0.462434 | sylvaindeker |
b90827ea8435073322f2b8a9b8667326f1ef4731 | 1,858 | cpp | C++ | theoraplayer/src/theoraplayer.cpp | tonysergi/theoraplayer | 5fe4bb2a77004bba67b8f7afd2441c3e51674e61 | [
"BSD-3-Clause"
] | 83 | 2015-08-04T06:19:59.000Z | 2022-03-25T03:33:55.000Z | theoraplayer/src/theoraplayer.cpp | tonysergi/theoraplayer | 5fe4bb2a77004bba67b8f7afd2441c3e51674e61 | [
"BSD-3-Clause"
] | 32 | 2015-07-31T22:47:16.000Z | 2022-03-16T01:57:49.000Z | theoraplayer/src/theoraplayer.cpp | tonysergi/theoraplayer | 5fe4bb2a77004bba67b8f7afd2441c3e51674e61 | [
"BSD-3-Clause"
] | 40 | 2015-07-25T03:01:48.000Z | 2022-03-29T07:55:34.000Z | /// @file
/// @version 2.0
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause
#include <cstdio>
#include <string>
#include <vector>
#include "Manager.h"
#include "theoraplayer.h"... | 20.195652 | 81 | 0.709903 | tonysergi |
b9092a063a561d30df09aba32c906865c3637e9f | 63,126 | cpp | C++ | 3rdParty/common/sources/PIUActionUtils.cpp | piaoasd123/colorpicker | 1323843fc92861f9d84dea65d1f672b61b99a2ff | [
"BSD-3-Clause"
] | 2 | 2017-02-27T02:41:39.000Z | 2017-05-18T16:24:38.000Z | 3rdParty/common/sources/PIUActionUtils.cpp | fpark12/colorpicker | 1323843fc92861f9d84dea65d1f672b61b99a2ff | [
"BSD-3-Clause"
] | null | null | null | 3rdParty/common/sources/PIUActionUtils.cpp | fpark12/colorpicker | 1323843fc92861f9d84dea65d1f672b61b99a2ff | [
"BSD-3-Clause"
] | null | null | null | // ADOBE SYSTEMS INCORPORATED
// Copyright 1993 - 2002 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this
// file in accordance with the terms of the Adobe license agreement
// accompanying it. If you have received this file from a source
// other t... | 27.327273 | 106 | 0.593448 | piaoasd123 |
b90dc2c4eb359ae0b0170434e09e5962fe055694 | 2,297 | cc | C++ | codingInterview/54.KthNodeInBST/KthNodeInBST.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | 2 | 2020-12-09T09:55:51.000Z | 2021-01-08T11:38:22.000Z | codingInterview/54.KthNodeInBST/KthNodeInBST.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | codingInterview/54.KthNodeInBST/KthNodeInBST.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include "binaryTree.h"
using std::cout;
using std::endl;
using std::vector;
class Solution {
public:
TreeNode* KthNode(TreeNode* pRoot, int k) {
if (!pRoot || k == 0) {
return nullptr;
}
return KthNodeCore(pRoot, k);
}
private:
... | 27.023529 | 80 | 0.543753 | stdbilly |
b912c1d7be85cc23d42708152fe19c7900e1e1b6 | 2,630 | cpp | C++ | MVJ_Engine_base/ModuleProgram.cpp | expelthegrace/ThomasTheEngine | d570c9746725e3f8232753799cce90cdc47a4b48 | [
"Unlicense"
] | null | null | null | MVJ_Engine_base/ModuleProgram.cpp | expelthegrace/ThomasTheEngine | d570c9746725e3f8232753799cce90cdc47a4b48 | [
"Unlicense"
] | null | null | null | MVJ_Engine_base/ModuleProgram.cpp | expelthegrace/ThomasTheEngine | d570c9746725e3f8232753799cce90cdc47a4b48 | [
"Unlicense"
] | null | null | null | #include "Application.h"
#include "ModuleProgram.h"
#include "ModuleRenderExercise.h"
#include <vector>
ModuleProgram::ModuleProgram()
{
}
ModuleProgram::~ModuleProgram()
{
}
void ModuleProgram::CreateProgram(GLuint& variable, char* vsName, char* fsName) {
char* dataVertex = nullptr;
FILE* file = nullptr;
fopen... | 22.869565 | 81 | 0.714829 | expelthegrace |
b91753a8bdb1b4a8b8866d24250284a74ae1e356 | 7,518 | hpp | C++ | lab_control_center/Doxygen_lcc_file_descriptions.hpp | Durrrr95/cpm_lab | e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67 | [
"MIT"
] | 9 | 2020-06-24T11:22:15.000Z | 2022-01-13T14:14:13.000Z | lab_control_center/Doxygen_lcc_file_descriptions.hpp | Durrrr95/cpm_lab | e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67 | [
"MIT"
] | 1 | 2021-05-10T13:48:04.000Z | 2021-05-10T13:48:04.000Z | lab_control_center/Doxygen_lcc_file_descriptions.hpp | Durrrr95/cpm_lab | e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67 | [
"MIT"
] | 2 | 2021-11-08T11:59:29.000Z | 2022-03-15T13:50:54.000Z | //Includes file descriptions for the LCC
/**
* \defgroup lcc_further_files LCC Files
* \brief Files for the LCC, e.g. build.bash
* \ingroup lcc_further
*/
/**
* \page lcc_further_page LCC Further Files
* \subpage lcc_f_build <br>
* \subpage lcc_f_gdb <br>
* \subpage lcc_f_run <br>
* \subpage lcc_f_start <br>
* \s... | 29.833333 | 142 | 0.704576 | Durrrr95 |
b918fb5953527ed7ce17822f21f5200fb1f105bc | 8,048 | cpp | C++ | cosmos_render.cpp | CobaltXII/cosmos | 3e468cd3490d5bf55c1eead2a77792b16bde35eb | [
"MIT"
] | 2 | 2019-02-17T12:28:05.000Z | 2021-03-18T10:42:14.000Z | cosmos_render.cpp | CobaltXII/cosmos | 3e468cd3490d5bf55c1eead2a77792b16bde35eb | [
"MIT"
] | null | null | null | cosmos_render.cpp | CobaltXII/cosmos | 3e468cd3490d5bf55c1eead2a77792b16bde35eb | [
"MIT"
] | null | null | null | /*
### cosmos_render
To compile, use the command
```bash
clang++ cosmos_render.cpp -o cosmos_render -std=c++11 -lOpenCL
```
To run, use the command
```bash
./cosmos_render <frames> [bodies=24576]
```
This will cause cosmos_render to output a bunch of rendered frames to the
directory that it was started in. These ... | 22.170799 | 135 | 0.710611 | CobaltXII |
2c6f17ea059b881e31434adcb2dd21ea9d384f28 | 3,185 | cpp | C++ | Code/ThirdParty/ads/ads_globals.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | 67 | 2018-01-17T17:18:37.000Z | 2020-08-24T23:45:56.000Z | Code/ThirdParty/ads/ads_globals.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | 132 | 2018-01-17T17:43:25.000Z | 2020-09-01T07:41:17.000Z | Code/ThirdParty/ads/ads_globals.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | 5 | 2021-02-12T15:23:31.000Z | 2022-01-09T15:16:21.000Z | /*******************************************************************************
** Qt Advanced Docking System
** Copyright (C) 2017 Uwe Kindler
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software ... | 31.85 | 80 | 0.534694 | fereeh |
2c708af8cdb9744879122b632d0604f867548fbe | 18,242 | cpp | C++ | Statements/Connector.cpp | basselhossam/flowchart-designer-and-simulator | 297cb6da45ef02b437f9622fe1662a280b2b37db | [
"MIT"
] | null | null | null | Statements/Connector.cpp | basselhossam/flowchart-designer-and-simulator | 297cb6da45ef02b437f9622fe1662a280b2b37db | [
"MIT"
] | null | null | null | Statements/Connector.cpp | basselhossam/flowchart-designer-and-simulator | 297cb6da45ef02b437f9622fe1662a280b2b37db | [
"MIT"
] | 1 | 2020-05-21T22:26:35.000Z | 2020-05-21T22:26:35.000Z | #include"Connector.h"
#include"..\GUI\Output.h"
#include"..\ApplicationManager.h"
#include"Statement.h"
#include"Conditional.h"
#include"Start.h"
#include"End.h"
Connector::Connector(Statement* Src, Statement* Dst, ApplicationManager * AM, bool yes)
//When a connector is created, it must have a source stat... | 25.911932 | 216 | 0.544184 | basselhossam |
2c778ee8f5b00c514c7a70759cb079e9a3ce3a7f | 1,867 | cpp | C++ | src/led.cpp | Schumbi/flurlampe | 47b8377e39db2857aa34e5f6f7181921e9330b8a | [
"MIT"
] | null | null | null | src/led.cpp | Schumbi/flurlampe | 47b8377e39db2857aa34e5f6f7181921e9330b8a | [
"MIT"
] | null | null | null | src/led.cpp | Schumbi/flurlampe | 47b8377e39db2857aa34e5f6f7181921e9330b8a | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include "led.hpp"
static const uint8_t ON = 1;
static const uint8_t OFF = 0;
// Implementation of Led Class
CLed_base::CLed_base(const uint8_t pin)
{
this->pin = pin;
pinMode(this->pin, OUTPUT);
digitalWrite(this->pin, OFF);
}
CLed_base::~CLed_base()
{
digitalWrite(this->pin, OFF);
}
/... | 16.522124 | 47 | 0.634708 | Schumbi |
2c79bedccdbf013f38eb112c5bdf8530b2fc4d65 | 1,185 | cpp | C++ | recursion/Leaf-Similar_Trees_872.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | recursion/Leaf-Similar_Trees_872.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | recursion/Leaf-Similar_Trees_872.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | /* ***********************************************************************
> File Name: Leaf-Similar_Trees_872.cpp
> Author: zzy
> Mail: 942744575@qq.com
> Created Time: Fri 09 Aug 2019 11:21:57 AM CST
********************************************************************** */
#include <stdio.h>
#include <ve... | 17.686567 | 74 | 0.55865 | obviouskkk |
2c7ecd3ca25f3fc3a264c210cc5db7c367dbd8b2 | 1,835 | cpp | C++ | service/src/sys/date.cpp | BOBBYWY/exodusdb | cfe8a3452480af90071dd10cefeed58299eed4e7 | [
"MIT"
] | 4 | 2021-01-23T14:36:34.000Z | 2021-06-07T10:02:28.000Z | service/src/sys/date.cpp | BOBBYWY/exodusdb | cfe8a3452480af90071dd10cefeed58299eed4e7 | [
"MIT"
] | 1 | 2019-08-04T19:15:56.000Z | 2019-08-04T19:15:56.000Z | service/src/sys/date.cpp | BOBBYWY/exodusdb | cfe8a3452480af90071dd10cefeed58299eed4e7 | [
"MIT"
] | 1 | 2022-01-29T22:41:01.000Z | 2022-01-29T22:41:01.000Z | #include <exodus/library.h>
libraryinit()
function main(in type, in in0, in mode0, out output, in glang) {
//c sys in,in,in,out,in
//should really be sensitive to timezone in @SW
var inx = in0;
var mode = mode0;
if (inx eq "") {
output = "";
return 0;
}
var nospaces = mode.index("*");
if (nospaces) {
... | 17.47619 | 92 | 0.513896 | BOBBYWY |
2c83e6ae536dcc9983b1c0292c52cb07eed0548a | 5,683 | hpp | C++ | worm.hpp | gcwnow/liero | d86387ef871a809671be790ebf9af6833f38b4bc | [
"BSD-2-Clause"
] | 6 | 2018-04-30T16:11:35.000Z | 2021-08-22T07:29:02.000Z | worm.hpp | gameblabla/liero-nspire | 1e5a8f2bda190e4895e933c6f7a346f5f39963d6 | [
"BSD-2-Clause"
] | null | null | null | worm.hpp | gameblabla/liero-nspire | 1e5a8f2bda190e4895e933c6f7a346f5f39963d6 | [
"BSD-2-Clause"
] | 1 | 2019-05-16T17:59:26.000Z | 2019-05-16T17:59:26.000Z | #ifndef LIERO_WORM_HPP
#define LIERO_WORM_HPP
#include "math.hpp"
#include <SDL/SDL.h>
#include <string>
#include <cstring>
struct Worm;
struct Ninjarope
{
Ninjarope()
: out(false)
, attached(false)
, anchor(0)
{
}
bool out; //Is the ninjarope out?
bool attached;
Worm* anch... | 21.773946 | 75 | 0.605666 | gcwnow |
2c84c897f33da96ee6034986b4326dd8d4334adf | 11,857 | cpp | C++ | src/RTL/Component/Exporting/CIFXViewNodeEncoder.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 44 | 2016-05-06T00:47:11.000Z | 2022-02-11T06:51:37.000Z | src/RTL/Component/Exporting/CIFXViewNodeEncoder.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 3 | 2016-06-27T12:37:31.000Z | 2021-03-24T12:39:48.000Z | src/RTL/Component/Exporting/CIFXViewNodeEncoder.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 15 | 2016-02-28T11:08:30.000Z | 2021-06-01T03:32:01.000Z | //***************************************************************************
//
// Copyright (c) 2001 - 2006 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
//
// ... | 25.664502 | 104 | 0.675129 | alemuntoni |
2c8f9594fe16366658412f7faa80903a46e1e047 | 506 | cpp | C++ | Introduction/Basics/Logging.cpp | Campeanu/ProjectZero | 33d2ff9f4761e265175b715ba0948d492a7f4541 | [
"MIT"
] | null | null | null | Introduction/Basics/Logging.cpp | Campeanu/ProjectZero | 33d2ff9f4761e265175b715ba0948d492a7f4541 | [
"MIT"
] | null | null | null | Introduction/Basics/Logging.cpp | Campeanu/ProjectZero | 33d2ff9f4761e265175b715ba0948d492a7f4541 | [
"MIT"
] | null | null | null | // Logging
#include <iostream>
// This is the main function
int main(int argc, char* argv[])
{
/**
* Every function has a local predefined variable __func__ that looks as follows:
* static const char __func__[] = "function-name";
*/
std::cout << __func__ << std::endl;
std::cout << __FUNCTI... | 23 | 85 | 0.634387 | Campeanu |
2c96a50fc9f495ffab483db9d79a784c509f9c39 | 1,141 | hpp | C++ | boost/sequence/elements.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | 11 | 2015-02-21T11:23:44.000Z | 2021-08-15T03:39:29.000Z | boost/sequence/elements.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | null | null | null | boost/sequence/elements.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | 3 | 2015-05-09T02:25:42.000Z | 2019-11-02T13:39:29.000Z | // Copyright David Abrahams 2006. Distributed under the Boost
// Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_SEQUENCE_ELEMENTS_DWA200655_HPP
# define BOOST_SEQUENCE_ELEMENTS_DWA200655_HPP
# include <boost/detail/function1... | 24.276596 | 89 | 0.676599 | ericniebler |
2c99c60d78188610e2610b766e3eb313d58acd0d | 948 | hpp | C++ | qashctl/src/mwdg/mixer_hctl_proxy_switch.hpp | amazingidiot/qastools | 6e3b0532ebc353c79d6df0628ed375e3d3c09d12 | [
"MIT"
] | null | null | null | qashctl/src/mwdg/mixer_hctl_proxy_switch.hpp | amazingidiot/qastools | 6e3b0532ebc353c79d6df0628ed375e3d3c09d12 | [
"MIT"
] | null | null | null | qashctl/src/mwdg/mixer_hctl_proxy_switch.hpp | amazingidiot/qastools | 6e3b0532ebc353c79d6df0628ed375e3d3c09d12 | [
"MIT"
] | null | null | null | /// QasTools: Desktop toolset for the Linux sound system ALSA.
/// \copyright See COPYING file.
#ifndef __INC_mixer_hctl_proxy_switch_hpp__
#define __INC_mixer_hctl_proxy_switch_hpp__
#include "mixer_hctl_proxy.hpp"
#include <QObject>
namespace MWdg
{
/// @brief Mixer_HCTL_Proxy_Switch
///
class Mixer_HCTL_Proxy_Sw... | 15.540984 | 62 | 0.738397 | amazingidiot |
2ca5cf55948708ad5f71ab64b57eef52a172ad3b | 7,053 | cpp | C++ | anno/ImageModel.cpp | urobots-io/anno | 8e240185e6fc0908687b15a39c892814a6bddee6 | [
"MIT"
] | 9 | 2020-07-17T05:28:52.000Z | 2022-03-03T18:26:12.000Z | anno/ImageModel.cpp | urobots-io/anno | 8e240185e6fc0908687b15a39c892814a6bddee6 | [
"MIT"
] | null | null | null | anno/ImageModel.cpp | urobots-io/anno | 8e240185e6fc0908687b15a39c892814a6bddee6 | [
"MIT"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
//
// Anno Labeling Tool
// 2020-2021 (c) urobots GmbH, https://urobots.io
#include "ImageModel.h"
#include "ColorTransformer.h"
ImageModel::ImageModel... | 29.144628 | 102 | 0.57635 | urobots-io |
2ca7fc69ececcfab60c1a0939649a398ee019601 | 13,599 | cpp | C++ | Source/ExistenceApps/ExistenceComponents/GameStateHandlerComponent.cpp | vivienneanthony/Urho3D-Mastercurrent-Existence | 2d75021489996e1abc2fd330ed967cd89a62f40d | [
"Apache-2.0"
] | 3 | 2015-05-22T23:39:03.000Z | 2016-04-13T03:52:59.000Z | Source/ExistenceApps/ExistenceComponents/GameStateHandlerComponent.cpp | vivienneanthony/Urho3D-Mastercurrent-Existence | 2d75021489996e1abc2fd330ed967cd89a62f40d | [
"Apache-2.0"
] | null | null | null | Source/ExistenceApps/ExistenceComponents/GameStateHandlerComponent.cpp | vivienneanthony/Urho3D-Mastercurrent-Existence | 2d75021489996e1abc2fd330ed967cd89a62f40d | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2008-2014 the Urho3D project.
//
// 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, m... | 28.750529 | 108 | 0.670343 | vivienneanthony |
2ca9eb45b7944f0eb29d515b2e94f782a73b869a | 79,342 | cpp | C++ | trunk/suiwgx/src/richedit/src/rtfwrit.cpp | OhmPopy/MPFUI | eac88d66aeb88d342f16866a8d54858afe3b6909 | [
"MIT"
] | 59 | 2017-08-27T13:27:55.000Z | 2022-01-21T13:24:05.000Z | src/suiwgx/richedit/src/rtfwrit.cpp | BigPig0/MPFUI | 7042e0a5527ab323e16d2106d715db4f8ee93275 | [
"MIT"
] | 5 | 2017-11-26T05:40:23.000Z | 2019-04-02T08:58:21.000Z | src/suiwgx/richedit/src/rtfwrit.cpp | BigPig0/MPFUI | 7042e0a5527ab323e16d2106d715db4f8ee93275 | [
"MIT"
] | 49 | 2017-08-24T08:00:50.000Z | 2021-11-07T01:24:41.000Z | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft shared
// source or premium shared source license agreement under which you licensed
// this source code. If you did not accept the terms of the license agreement,
// you are not au... | 27.790543 | 223 | 0.621953 | OhmPopy |
2cab9db46a01d3705e701d9d92de0de0a4083806 | 516 | cpp | C++ | 2019-12/examples/08_error_handling.cpp | st-louis-cpp-meetup/Presentations | 2e3a31a6285aabf295a9bf494bf7470844196857 | [
"CC-BY-4.0"
] | 2 | 2019-06-20T13:22:30.000Z | 2020-03-05T01:19:19.000Z | 2019-12/examples/08_error_handling.cpp | st-louis-cpp-meetup/Presentations | 2e3a31a6285aabf295a9bf494bf7470844196857 | [
"CC-BY-4.0"
] | null | null | null | 2019-12/examples/08_error_handling.cpp | st-louis-cpp-meetup/Presentations | 2e3a31a6285aabf295a9bf494bf7470844196857 | [
"CC-BY-4.0"
] | null | null | null | #include <iostream>
#include "fmt/format.h"
using namespace std; using namespace fmt;
int main()
{
auto format_with_error = [] (const char* format_str, auto data) {
try
{
cout << format(format_str, data);
}
catch (format_error& e)
{
cout << "Error: " << e.what() << "\n";
}
};
format_with_error("{... | 19.846154 | 66 | 0.610465 | st-louis-cpp-meetup |
2cb4d31f86e1550dc8b87185c0ca1577ec094312 | 618 | cpp | C++ | src/gambit/ast/gambitTree.cpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | 1 | 2019-02-20T19:19:23.000Z | 2019-02-20T19:19:23.000Z | src/gambit/ast/gambitTree.cpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | null | null | null | src/gambit/ast/gambitTree.cpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | null | null | null | #include "gambit/ast/gambitTree.hpp"
Gambit::Tree::Tree(std::vector<AST::Node*> nodes)
{
this->nodes = nodes;
}
Gambit::Tree::~Tree()
{
}
void
Gambit::Tree::pushNodes(std::vector<AST::Node*> nodes)
{
this->nodes = nodes;
}
void
Gambit::Tree::pushBranch(AST::Tree *tree)
{
this->nodes.push_back(tree);
}
void
... | 13.434783 | 54 | 0.644013 | Vandise |
2cb8b3f9a57585de9a7608ba997104ba2b0e131f | 330 | hpp | C++ | src/core/reflang/serializer.class.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/core/reflang/serializer.class.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/core/reflang/serializer.class.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include "serializer.hpp"
#include "types.hpp"
namespace eXl
{
namespace reflang
{
namespace serializer
{
void SerializeClassHeader(std::ostream& o, const Class& c, String const& iDefineDirective);
void SerializeClassSources(std::ostream& o, const Class& c);
... | 18.333333 | 97 | 0.687879 | eXl-Nic |
2cb912a3819f65b33e511d005e5cbbf61740a5fe | 1,101 | cpp | C++ | IconImageProvider.cpp | orbitrc/laniakea-dock | 08a03bd82ccab0f6b121eee680d652140f09798d | [
"MIT"
] | null | null | null | IconImageProvider.cpp | orbitrc/laniakea-dock | 08a03bd82ccab0f6b121eee680d652140f09798d | [
"MIT"
] | null | null | null | IconImageProvider.cpp | orbitrc/laniakea-dock | 08a03bd82ccab0f6b121eee680d652140f09798d | [
"MIT"
] | null | null | null | #include "IconImageProvider.h"
#include "Dock.h"
IconImageProvider::IconImageProvider(Dock *dock)
: QQuickImageProvider(QQuickImageProvider::Pixmap)
{
this->_dock = dock;
}
QPixmap IconImageProvider::requestPixmap(const QString& id, QSize *size, const QSize& requestedSize)
{
int width = 48;
int heigh... | 22.9375 | 100 | 0.590372 | orbitrc |
2cba79d85652d86711ff4fe096900235389f1549 | 1,862 | cpp | C++ | libs/pika/iterator_support/tests/unit/boost_iterator_categories.cpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 13 | 2022-01-17T12:01:48.000Z | 2022-03-16T10:03:14.000Z | libs/pika/iterator_support/tests/unit/boost_iterator_categories.cpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 163 | 2022-01-17T17:36:45.000Z | 2022-03-31T17:42:57.000Z | libs/pika/iterator_support/tests/unit/boost_iterator_categories.cpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 4 | 2022-01-19T08:44:22.000Z | 2022-01-31T23:16:21.000Z | // Copyright (c) 2021 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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 <pika/modules/iterator_support.hpp>
#include <pika/testing.hpp>
#include <it... | 47.74359 | 80 | 0.653598 | pika-org |
2cbb466b41c6b10ececef7528da747a861506686 | 622 | cxx | C++ | executables/SeparatorGraph.cxx | rsgysel/ChordAlg | 23b9c96008a0e0591f877450af97af6ab47d842d | [
"MIT"
] | 3 | 2015-10-30T22:36:50.000Z | 2015-12-04T05:49:22.000Z | executables/SeparatorGraph.cxx | rsgysel/ChordAlg | 23b9c96008a0e0591f877450af97af6ab47d842d | [
"MIT"
] | null | null | null | executables/SeparatorGraph.cxx | rsgysel/ChordAlg | 23b9c96008a0e0591f877450af97af6ab47d842d | [
"MIT"
] | null | null | null | /*
* SeparatorGraph - computes the separator graph (minimal separators
* and crossing relations) of a graph
*
* Warning: this computation requires exponential time/space
* in general
*/
#include <iostream>
#include "ChordAlgSrc/graph.h"
#include "ChordAlgSrc/separator_graph.h"
#include "chordalg_options.h"
... | 23.037037 | 69 | 0.696141 | rsgysel |
2cbddd1580a9d94e36bda0112df8274f3ba198b1 | 9,315 | inl | C++ | src/bin/tools/ValueOperations/BinaryOps.inl | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 19 | 2020-10-21T10:05:17.000Z | 2022-03-20T13:41:50.000Z | src/bin/tools/ValueOperations/BinaryOps.inl | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 4 | 2021-01-01T15:58:15.000Z | 2021-09-19T03:31:09.000Z | src/bin/tools/ValueOperations/BinaryOps.inl | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 4 | 2020-10-05T09:01:50.000Z | 2022-01-11T03:02:39.000Z | ////////////////////////////////////////////////////////////////////////////////
// BinaryOp.inl
////////////////////////////////////////////////////////////////////////////////
/*! @file
// Implements componetwise binary ops on values. To be included by Value.hh
*/
// Author: Julian Panetta (jpanetta), julian.... | 49.285714 | 182 | 0.659367 | pbedenbaugh |
2cc2b8a15992b531b0ca709ba11af5175a4c00ee | 708 | cpp | C++ | example12/temperatura.cpp | mateusesm/CPP-Activities | dc5b7063445e58c07738e7e27a8792b3966bee05 | [
"MIT"
] | 1 | 2021-11-26T00:26:37.000Z | 2021-11-26T00:26:37.000Z | example12/temperatura.cpp | mateusesm/CPP-Activities | dc5b7063445e58c07738e7e27a8792b3966bee05 | [
"MIT"
] | null | null | null | example12/temperatura.cpp | mateusesm/CPP-Activities | dc5b7063445e58c07738e7e27a8792b3966bee05 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int temperaturas[100];
int totalTemperatura = 0;
int totalDias = 0;
int temperatura = 0;
while (temperatura != 5) {
cout << "Informe a temperatura: (Digite 5 para sair)" << endl;
cin >> temperatura;
temperaturas[totalDias] = temperatura;
totalDi... | 22.83871 | 66 | 0.617232 | mateusesm |
2cc3d6757f4b131d538120e07c47c9946805d723 | 5,086 | cpp | C++ | src/lower.cpp | bsurmanski/wlc | e8e1b4965f5f8e1cf22e0b6cb16bac0e49a5c629 | [
"MIT"
] | 4 | 2015-02-13T01:14:23.000Z | 2019-06-29T19:25:49.000Z | src/lower.cpp | bsurmanski/wlc | e8e1b4965f5f8e1cf22e0b6cb16bac0e49a5c629 | [
"MIT"
] | null | null | null | src/lower.cpp | bsurmanski/wlc | e8e1b4965f5f8e1cf22e0b6cb16bac0e49a5c629 | [
"MIT"
] | null | null | null | #include <string>
#include "ast.hpp"
#include "astType.hpp"
#include "lower.hpp"
#include "message.hpp"
#include "token.hpp" // for getting operator precidence
using namespace std;
//
// Code for AST traversal, validation, and lowering
// if validate returns true, the AST should be in a consistant state, lowered, and... | 29.062857 | 106 | 0.635273 | bsurmanski |
2cc638f9a33fedb5df9d00bdcde5a6177d01e954 | 229 | cpp | C++ | X5/x5_10.cpp | dlachausse/tcxxpl4e-exercises | 90250e81e5afb9118a5064a58a5edc6692168160 | [
"CC0-1.0"
] | null | null | null | X5/x5_10.cpp | dlachausse/tcxxpl4e-exercises | 90250e81e5afb9118a5064a58a5edc6692168160 | [
"CC0-1.0"
] | null | null | null | X5/x5_10.cpp | dlachausse/tcxxpl4e-exercises | 90250e81e5afb9118a5064a58a5edc6692168160 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <fstream>
int main()
{
const char* filename = "integers.txt";
std::ifstream in(filename);
int i;
while(in >> i)
{
std::cout << i << '\n';
}
in.close();
} | 14.3125 | 42 | 0.49345 | dlachausse |
2cc6ad9059d7881305d0c85477b83cd67e2366d2 | 240 | hpp | C++ | pythran/pythonic/include/operator_/__pos__.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/operator_/__pos__.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/operator_/__pos__.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_OPERATOR_POS__HPP
#define PYTHONIC_INCLUDE_OPERATOR_POS__HPP
#include "pythonic/operator_/pos.hpp"
namespace pythonic
{
namespace operator_
{
FPROXY_DECL(pythonic::operator_, __pos__, pos);
}
}
#endif
| 15 | 51 | 0.783333 | artas360 |
2cc6e3a765fa9bce3e03ee43b9c1024f2e2674a7 | 1,786 | hpp | C++ | src/protocol/messages/FeeFilter.hpp | tkeycoin/tkeycoin2 | 7fb88605b8874e16c01df1ee2d47f45094d5cf57 | [
"MIT"
] | 3 | 2020-01-24T04:45:14.000Z | 2020-06-30T13:49:58.000Z | src/protocol/messages/FeeFilter.hpp | Dikii27/tkeycoin2 | 7fb88605b8874e16c01df1ee2d47f45094d5cf57 | [
"MIT"
] | 1 | 2020-06-18T15:51:36.000Z | 2020-06-20T17:25:45.000Z | src/protocol/messages/FeeFilter.hpp | Dikii27/tkeycoin2 | 7fb88605b8874e16c01df1ee2d47f45094d5cf57 | [
"MIT"
] | 1 | 2020-10-20T06:50:13.000Z | 2020-10-20T06:50:13.000Z | // Copyright (c) 2017-2020 TKEY DMCC LLC & Tkeycoin Dao. All rights reserved.
// Website: www.tkeycoin.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, incl... | 34.346154 | 81 | 0.7514 | tkeycoin |
2cc7ba1a882b6540531dc2d9ef504c58d20703fc | 936 | cpp | C++ | [BOJ 1074] Z.cpp | Yunseong-Jeong/Algorithm | 63e177f70dd457bd2c255e799d60415e8198cec7 | [
"MIT"
] | null | null | null | [BOJ 1074] Z.cpp | Yunseong-Jeong/Algorithm | 63e177f70dd457bd2c255e799d60415e8198cec7 | [
"MIT"
] | null | null | null | [BOJ 1074] Z.cpp | Yunseong-Jeong/Algorithm | 63e177f70dd457bd2c255e799d60415e8198cec7 | [
"MIT"
] | null | null | null | #include <iostream>
#pragma warning(disable:4996)
using namespace std;
long long N, r, c;
long long Z(long long pos_x, long long pos_y, long long size)
{
if (size != 2)
{
if (pos_x >= size / 2 && pos_y >= size / 2)
return (size * size / 4 * 3) + Z(pos_x - size / 2, pos_y - size / 2, size / 2);
else... | 21.272727 | 83 | 0.488248 | Yunseong-Jeong |
2cc9b06a1f84ae61fb44bff9002f83f66dd7f21c | 4,010 | cpp | C++ | inference_backend/pre_proc/opencv_utils/opencv_utils.cpp | fkhoshne/gst-video-analytics | c76892b40dd5df1caa9bab6a74bdf1fba928e14f | [
"MIT"
] | null | null | null | inference_backend/pre_proc/opencv_utils/opencv_utils.cpp | fkhoshne/gst-video-analytics | c76892b40dd5df1caa9bab6a74bdf1fba928e14f | [
"MIT"
] | null | null | null | inference_backend/pre_proc/opencv_utils/opencv_utils.cpp | fkhoshne/gst-video-analytics | c76892b40dd5df1caa9bab6a74bdf1fba928e14f | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#include "opencv_utils.h"
#include "inference_backend/logger.h"
#include <op... | 36.454545 | 99 | 0.574564 | fkhoshne |
2ccde272fcaee4e4098210a0be0d849a7a25d37b | 4,897 | cpp | C++ | src/BinaryRep/test/BinaryFormatTest.cpp | Andrei-Masilevich/ThorsSerializer | 4a532e818c797ae071d689017ec4e4ab4cc0c00c | [
"MIT"
] | null | null | null | src/BinaryRep/test/BinaryFormatTest.cpp | Andrei-Masilevich/ThorsSerializer | 4a532e818c797ae071d689017ec4e4ab4cc0c00c | [
"MIT"
] | null | null | null | src/BinaryRep/test/BinaryFormatTest.cpp | Andrei-Masilevich/ThorsSerializer | 4a532e818c797ae071d689017ec4e4ab4cc0c00c | [
"MIT"
] | null | null | null |
#include "gtest/gtest.h"
#include "BinaryFormat.h"
#include "IntBinRep.h"
using namespace ThorsAnvil::BinaryRep;
template<typename T>
void checkValue(T const& value, std::string const& expected);
TEST(BinaryFormatTest, Construct128)
{
BinForm128 value = 0xFF; // 16 byte
EXPECT_EQ(0xFF, static_cast<unsign... | 29.323353 | 109 | 0.664693 | Andrei-Masilevich |
2cd18655b2d0b5fb13d53fba707913b9ec7f0694 | 4,409 | cpp | C++ | libs/SFGUI-0.2.3/examples/ScrolledWindowViewport.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | 1 | 2016-04-04T09:30:38.000Z | 2016-04-04T09:30:38.000Z | libs/SFGUI-0.2.3/examples/ScrolledWindowViewport.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | libs/SFGUI-0.2.3/examples/ScrolledWindowViewport.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | #include <cstdlib>
#include <SFML/Graphics.hpp>
// Always include the necessary header files.
// Including SFGUI/SFGUI.hpp includes everything
// you can possibly need automatically.
#include <SFGUI/SFGUI.hpp>
class ScrolledWindowViewportExample {
public:
// Our button click handler.
void OnButtonClick();
vo... | 29.198675 | 143 | 0.700839 | Mertank |
2cd258572dc9881cac9b0c71ef3193ce07415516 | 9,639 | hpp | C++ | include/lmrtfy/thread_pool.hpp | Ahajha/LMRTFY | 36991b20c823bcb51cc962bed225687b374b4aba | [
"MIT"
] | 5 | 2022-01-08T10:23:04.000Z | 2022-02-28T07:15:03.000Z | include/lmrtfy/thread_pool.hpp | Ahajha/LMRTFY | 36991b20c823bcb51cc962bed225687b374b4aba | [
"MIT"
] | 3 | 2022-01-08T16:50:54.000Z | 2022-02-09T05:01:50.000Z | include/lmrtfy/thread_pool.hpp | Ahajha/LMRTFY | 36991b20c823bcb51cc962bed225687b374b4aba | [
"MIT"
] | 1 | 2022-01-08T14:51:52.000Z | 2022-01-08T14:51:52.000Z | #pragma once
#include <type_traits>
#include <condition_variable>
#include <future>
#include <vector>
#include <thread>
#include <queue>
#include <mutex>
#include <functional>
#include <utility>
#include "function2/function2.hpp"
#ifdef __cpp_concepts
#include <concepts>
#endif
namespace lmrtfy
{
enum class _pool_s... | 29.297872 | 96 | 0.70692 | Ahajha |
2cd67fcdd57a21cc909105f59ae6d56e6c3c2299 | 693 | cpp | C++ | src/render/sceneGraph.cpp | liuhongyi0101/SaturnRender | c6ec7ee39ef14749b09be4ae47f76613c71533cf | [
"MIT"
] | 2 | 2019-12-24T04:00:36.000Z | 2022-01-26T02:44:04.000Z | src/render/sceneGraph.cpp | liuhongyi0101/SaturnRender | c6ec7ee39ef14749b09be4ae47f76613c71533cf | [
"MIT"
] | null | null | null | src/render/sceneGraph.cpp | liuhongyi0101/SaturnRender | c6ec7ee39ef14749b09be4ae47f76613c71533cf | [
"MIT"
] | 2 | 2020-09-26T04:19:40.000Z | 2021-02-19T07:24:57.000Z | #include"renderer/sceneGraph.h"
#include "utils/loadshader.h"
SceneGraph::SceneGraph()
{
}
SceneGraph::~SceneGraph()
{
}
void SceneGraph::loadAssets(vks::VulkanDevice *vulkanDevice, VkQueue queue, std::shared_ptr<VertexDescriptions> vdo)
{
models.skybox.loadFromFile(modelPath + "models/cube.obj", vdo->vertexLayout,... | 28.875 | 117 | 0.748918 | liuhongyi0101 |
2cd6bb68b38498003ba18ed08dc1cf70c3f6b146 | 783 | cpp | C++ | libs/PPU/Texture.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | libs/PPU/Texture.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | libs/PPU/Texture.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "Texture.h"
#include "Timing/FrameClock.h"
namespace RF::gfx {
///////////////////////////////////////////////////////////////////////////////
Texture::Texture()
: mLastUsedInFrame( time::CommonClock::time_point() )
{
//
}
Texture::~Texture()
{
RF_ASSERT( mDeviceRepresentation == ... | 14.5 | 79 | 0.581098 | max-delta |
2cd8c310894237bb51cbc3d82e7807e14b8837ec | 16,470 | hpp | C++ | include/eepp/ui/uicodeeditor.hpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | include/eepp/ui/uicodeeditor.hpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | null | null | null | include/eepp/ui/uicodeeditor.hpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #ifndef EE_UI_UICODEEDIT_HPP
#define EE_UI_UICODEEDIT_HPP
#include <eepp/ui/doc/syntaxcolorscheme.hpp>
#include <eepp/ui/doc/syntaxhighlighter.hpp>
#include <eepp/ui/doc/textdocument.hpp>
#include <eepp/ui/keyboardshortcut.hpp>
#include <eepp/ui/uifontstyleconfig.hpp>
#include <eepp/ui/uiwidget.hpp>
using namespace ... | 28.945518 | 97 | 0.762963 | SpartanJ |
2cdb18f15cbe06a3e12b5e419a3bb418f2950b1f | 586 | cpp | C++ | py/cpp_gencode/Se2_Dx_exp_x.cpp | jian-li/sophus | 13fb3288311485dc94e3226b69c9b59cd06ff94e | [
"MIT"
] | 127 | 2019-04-23T07:06:42.000Z | 2022-03-31T15:36:37.000Z | py/cpp_gencode/Se2_Dx_exp_x.cpp | jian-li/sophus | 13fb3288311485dc94e3226b69c9b59cd06ff94e | [
"MIT"
] | 1 | 2021-03-08T07:18:06.000Z | 2021-03-08T07:18:06.000Z | py/cpp_gencode/Se2_Dx_exp_x.cpp | jian-li/sophus | 13fb3288311485dc94e3226b69c9b59cd06ff94e | [
"MIT"
] | 48 | 2019-05-24T18:51:32.000Z | 2021-08-16T01:54:06.000Z | Scalar const c0 = sin(theta);
Scalar const c1 = cos(theta);
Scalar const c2 = 1.0/theta;
Scalar const c3 = c0*c2;
Scalar const c4 = -c1 + 1;
Scalar const c5 = c2*c4;
Scalar const c6 = c1*c2;
Scalar const c7 = pow(theta, -2);
Scalar const c8 = c0*c7;
Scalar const c9 = c4*c7;
result[0] = 0;
result[1] = 0;
result[2] = -c0... | 25.478261 | 75 | 0.62628 | jian-li |
2ce15d2f1bb8fe46bc63a7c517812b7e76e043d2 | 932 | hpp | C++ | Circuit/SessionRunner.hpp | Wang-Yue/Circu | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | 8 | 2018-08-24T01:31:38.000Z | 2021-03-01T14:57:59.000Z | Circuit/SessionRunner.hpp | Wang-Yue/Circu | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | 1 | 2019-12-08T13:43:19.000Z | 2019-12-13T03:36:16.000Z | Circuit/SessionRunner.hpp | Wang-Yue/Circuit | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | null | null | null | //
// SessionRunner.hpp
// Circuit
//
// Created by Yue Wang on 8/18/18.
// Copyright © 2018 Yue Wang. All rights reserved.
//
#ifndef SessionRunner_hpp
#define SessionRunner_hpp
#include <vector>
#include "TypeDefs.hpp"
class Synth;
class Sample;
class Session;
template <typename AtomClass> class ChannelRunner;... | 23.3 | 81 | 0.759657 | Wang-Yue |
2ce4869c9fbf748652886d91f227194f6cb21da2 | 2,274 | cc | C++ | tests/testVector1.cc | TheCubeOfFire/gf | f9587d46add949191fb075f143472033e51920c9 | [
"Zlib"
] | null | null | null | tests/testVector1.cc | TheCubeOfFire/gf | f9587d46add949191fb075f143472033e51920c9 | [
"Zlib"
] | null | null | null | tests/testVector1.cc | TheCubeOfFire/gf | f9587d46add949191fb075f143472033e51920c9 | [
"Zlib"
] | null | null | null | /*
* Gamedev Framework (gf)
* Copyright (C) 2016-2022 Julien Bernard
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software fo... | 24.717391 | 77 | 0.670624 | TheCubeOfFire |
f8edca9ca240b05fbf1ee1a6a125b727ea43c441 | 3,515 | cpp | C++ | src/samples/common/shaders.cpp | glines/libmc | 4d74c630252a0e46fda9dbec357bd1cd47223f1f | [
"MIT"
] | 14 | 2017-01-10T16:33:25.000Z | 2020-05-12T18:49:02.000Z | src/samples/common/shaders.cpp | auntieNeo/libmc | 4d74c630252a0e46fda9dbec357bd1cd47223f1f | [
"MIT"
] | null | null | null | src/samples/common/shaders.cpp | auntieNeo/libmc | 4d74c630252a0e46fda9dbec357bd1cd47223f1f | [
"MIT"
] | 3 | 2017-09-20T01:05:10.000Z | 2020-12-29T09:13:23.000Z | /*
* Copyright (c) 2016 Jonathan Glines
* Jonathan Glines <jonathan@glines.net>
*
* 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
... | 35.505051 | 79 | 0.770128 | glines |
f8f4868f7e10133c0793d53bfb6cd8debc4ab20b | 959 | cpp | C++ | trunk/libs/graphics/source/buffers.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | trunk/libs/graphics/source/buffers.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | trunk/libs/graphics/source/buffers.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include <ang/graphics/graphics.h>
using namespace ang;
using namespace ang::graphics;
using namespace ang::graphics::buffers;
//ANG_IMPLEMENT_INTERFACE_CLASS_INFO(ang::graphics::buffers::igpu_buffer, lattelib);
//ANG_IMPLEMENT_INTERFACE_CLASS_INFO(ang::graphics::buffers::iindex_buffer, lattelib);
/... | 31.966667 | 87 | 0.816475 | ChuyX3 |
f8f5267031a6d93cb898acb6f278220f9c921a32 | 2,506 | cpp | C++ | Source/Foundation/Data/Helper/TimeBasedHelper.cpp | GoPlan/cldeplus | b5c7b95db10f64ac597aa0bf82e1bd94e4c7c940 | [
"Apache-2.0"
] | null | null | null | Source/Foundation/Data/Helper/TimeBasedHelper.cpp | GoPlan/cldeplus | b5c7b95db10f64ac597aa0bf82e1bd94e4c7c940 | [
"Apache-2.0"
] | null | null | null | Source/Foundation/Data/Helper/TimeBasedHelper.cpp | GoPlan/cldeplus | b5c7b95db10f64ac597aa0bf82e1bd94e4c7c940 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2015 LE, Duc-Anh
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | 41.766667 | 107 | 0.504389 | GoPlan |
f8fecb821247fc06a946285eb965520afeede292 | 5,009 | cpp | C++ | tests/enum.tests.cpp | dynamic-static/core | 60442bad208b86fccce0635f8fc391880f106d90 | [
"MIT"
] | null | null | null | tests/enum.tests.cpp | dynamic-static/core | 60442bad208b86fccce0635f8fc391880f106d90 | [
"MIT"
] | 2 | 2017-10-05T18:02:27.000Z | 2017-11-22T06:32:43.000Z | tests/enum.tests.cpp | DynamicStatic/Dynamic_Static.Core | 60442bad208b86fccce0635f8fc391880f106d90 | [
"MIT"
] | null | null | null |
/*
==========================================
Copyright (c) 2016-2020 Dynamic_Static
Patrick Purcell
Licensed under the MIT license
http://opensource.org/licenses/MIT
==========================================
*/
#include "dynamic_static/core/enum.hpp"
#include "catch2/catch.hpp"
#include <type_trai... | 31.503145 | 95 | 0.639449 | dynamic-static |
5d0213074f666ae49b764af34c55412a6d962051 | 5,739 | cpp | C++ | pitshift.cpp | YepSfx/VibratoVoiceEffect | 9fe37cffae368592f5fd69949f62a571144eed21 | [
"MIT"
] | null | null | null | pitshift.cpp | YepSfx/VibratoVoiceEffect | 9fe37cffae368592f5fd69949f62a571144eed21 | [
"MIT"
] | null | null | null | pitshift.cpp | YepSfx/VibratoVoiceEffect | 9fe37cffae368592f5fd69949f62a571144eed21 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "dsp_def.h"
#include "dsp_util.h"
#include "delay.h"
#include "pitshift.h"
#include <math.h>
#define DEF_CH 1
#define DEF_BIT 16
#define DEF_SAMRATE 22050
#define DEF_FADER 1
#define DEF_LOW 24
#define DEF_MID 1000
#define DEF_UPPER 2024
#define DEF_SHIFT 0
#define DEF... | 24.952174 | 82 | 0.601673 | YepSfx |
5d029d1a07d28841383dea749f0c8980e453c7b5 | 1,266 | cpp | C++ | src/IsoGame/Play/Objects/Entities/Enemies/Bosses/Boss1.cpp | Harry09/IsoGame | 7320bee14197b66a96f432d4071537b3bb892c13 | [
"MIT"
] | null | null | null | src/IsoGame/Play/Objects/Entities/Enemies/Bosses/Boss1.cpp | Harry09/IsoGame | 7320bee14197b66a96f432d4071537b3bb892c13 | [
"MIT"
] | null | null | null | src/IsoGame/Play/Objects/Entities/Enemies/Bosses/Boss1.cpp | Harry09/IsoGame | 7320bee14197b66a96f432d4071537b3bb892c13 | [
"MIT"
] | null | null | null | #include "Boss1.h"
#include <Common\Random.h>
#include <Play\Objects\Entities\Enemies\Robot.h>
#include <Play\Rooms\Room.h>
#include <SFML\Graphics.hpp>
Boss1::Boss1(const sf::Vector2f &pos)
: Boss(pos)
{
LoadTextures("enemies\\spaceCraft1", Object::FULL_DIRECTIONS);
SetTexture(Directions::S);
m_hitbox = sf::F... | 18.085714 | 66 | 0.680885 | Harry09 |
5d134fb32a17688d254ae3f4fe780ee799d5272c | 224 | hpp | C++ | Effective_C++/Item_12/customer.hpp | ZhuQingping/development_history | 84e294044f9b8ec1f02a06e1d24ef3b570a76406 | [
"BSD-2-Clause"
] | null | null | null | Effective_C++/Item_12/customer.hpp | ZhuQingping/development_history | 84e294044f9b8ec1f02a06e1d24ef3b570a76406 | [
"BSD-2-Clause"
] | null | null | null | Effective_C++/Item_12/customer.hpp | ZhuQingping/development_history | 84e294044f9b8ec1f02a06e1d24ef3b570a76406 | [
"BSD-2-Clause"
] | null | null | null | #ifndef CUSTOMER_HPP
#define CUSTOMER_HPP
class Customer
{
public:
Customer(std::string);
Customer(const Customer& rhs) ;
Customer& operator=(const Customer& rhs);
private:
std::string m_name;
};
#endif //CUSTOMER_HPP
| 14.933333 | 42 | 0.745536 | ZhuQingping |
5d13b99ac7f65b9bed8de2b21d66212c02519680 | 19,618 | cpp | C++ | src/uti_phgrm/NewOri/cNewO_NameManager.cpp | rjanvier/micmac | a6caebdacf627430f13f3c6e268ed86fef808e20 | [
"CECILL-B"
] | 8 | 2019-05-08T21:43:53.000Z | 2021-07-27T20:01:46.000Z | src/uti_phgrm/NewOri/cNewO_NameManager.cpp | rjanvier/micmac | a6caebdacf627430f13f3c6e268ed86fef808e20 | [
"CECILL-B"
] | 2 | 2019-05-24T17:11:33.000Z | 2019-06-30T17:55:28.000Z | src/uti_phgrm/NewOri/cNewO_NameManager.cpp | rjanvier/micmac | a6caebdacf627430f13f3c6e268ed86fef808e20 | [
"CECILL-B"
] | 2 | 2020-06-13T15:07:21.000Z | 2021-04-09T07:01:45.000Z | /*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : Marc Pierrot Deseilligny
Contributors : Gregoire Maille... | 30.845912 | 165 | 0.668162 | rjanvier |
5d14842ebe20559cd00265352623bb47cce4fd92 | 546 | cpp | C++ | Medusa/Medusa/Node/Action/Animation/AnimationManager.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 143 | 2015-11-18T01:06:03.000Z | 2022-03-30T03:08:54.000Z | Medusa/Medusa/Node/Action/Animation/AnimationManager.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 1 | 2019-10-23T13:00:40.000Z | 2019-10-23T13:00:40.000Z | Medusa/Medusa/Node/Action/Animation/AnimationManager.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 45 | 2015-11-18T01:17:59.000Z | 2022-03-05T12:29:45.000Z | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaPreCompiled.h"
#include "AnimationManager.h"
MEDUSA_BEGIN;
AnimationManager::AnimationManager()
{
}
AnimationManager::~AnimationManager(void)
{
}... | 15.166667 | 53 | 0.752747 | tony2u |
5d1db21e9b04630caa616f8f8a74b505bcef952b | 5,168 | cpp | C++ | core/pipe_win32.cpp | chwash/wwiv | 0d67acdede788f8a4fd2b442e92caeb411552359 | [
"Apache-2.0"
] | null | null | null | core/pipe_win32.cpp | chwash/wwiv | 0d67acdede788f8a4fd2b442e92caeb411552359 | [
"Apache-2.0"
] | null | null | null | core/pipe_win32.cpp | chwash/wwiv | 0d67acdede788f8a4fd2b442e92caeb411552359 | [
"Apache-2.0"
] | null | null | null | /**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2022, WWIV Software Services */
/* ... | 37.449275 | 107 | 0.54257 | chwash |
5d1fdb9098a26ffbb90585390d1e0170e62b5199 | 381 | cpp | C++ | JaraffeEngine_Vulkan/Engine/Core/HAL/Memory/Memory.cpp | Jaraffe-github/Old_Engines | 0586d383af99cfcf076b18dace49e779a55b88e8 | [
"BSD-3-Clause"
] | null | null | null | JaraffeEngine_Vulkan/Engine/Core/HAL/Memory/Memory.cpp | Jaraffe-github/Old_Engines | 0586d383af99cfcf076b18dace49e779a55b88e8 | [
"BSD-3-Clause"
] | null | null | null | JaraffeEngine_Vulkan/Engine/Core/HAL/Memory/Memory.cpp | Jaraffe-github/Old_Engines | 0586d383af99cfcf076b18dace49e779a55b88e8 | [
"BSD-3-Clause"
] | null | null | null | #include "stdafx.h"
#include "Memory.h"
#include "Allocator/TBB/TBBAllocator.h"
Memory::Memory()
{
}
Memory::~Memory()
{
}
void* Memory::Malloc(size_t Size)
{
return TBBAllocator::Malloc(Size);
}
void* Memory::Realloc(void * Original, size_t Size)
{
return TBBAllocator::Realloc(Original, Size);
}
void Mem... | 14.111111 | 51 | 0.692913 | Jaraffe-github |
5d27966fbc69a5632a823227cb78babd653e0a54 | 1,242 | cpp | C++ | src/21.merge-two-sorted-lists.cpp | Hilbert-Yaa/heil-my-lc | 075567698e3b826a542f63389e9a8f3136df799a | [
"MIT"
] | null | null | null | src/21.merge-two-sorted-lists.cpp | Hilbert-Yaa/heil-my-lc | 075567698e3b826a542f63389e9a8f3136df799a | [
"MIT"
] | null | null | null | src/21.merge-two-sorted-lists.cpp | Hilbert-Yaa/heil-my-lc | 075567698e3b826a542f63389e9a8f3136df799a | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=21 lang=cpp
*
* [21] Merge Two Sorted Lists
*/
// @lc code=start
#include <bits/stdc++.h>
using namespace std;
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), ... | 23.433962 | 62 | 0.477456 | Hilbert-Yaa |
5d285c8e05443687b6eb8b952a6370cea024b3cc | 31,902 | cpp | C++ | himan-lib/source/numerical_functions.cpp | jrintala/fmi-data | 625f0a44919e6406440349425ee0b3f1a64a923d | [
"MIT"
] | null | null | null | himan-lib/source/numerical_functions.cpp | jrintala/fmi-data | 625f0a44919e6406440349425ee0b3f1a64a923d | [
"MIT"
] | null | null | null | himan-lib/source/numerical_functions.cpp | jrintala/fmi-data | 625f0a44919e6406440349425ee0b3f1a64a923d | [
"MIT"
] | null | null | null | /**
* @file numerical_functions.cpp
*/
#include "numerical_functions.h"
#include "NFmiInterpolation.h"
#include "plugin_factory.h"
#include <algorithm>
#define HIMAN_AUXILIARY_INCLUDE
#include "fetcher.h"
#include "neons.h"
#include "radon.h"
#undef HIMAN_AUXILIARY_INCLUDE
using namespace himan;
using namespace... | 30.267552 | 158 | 0.602721 | jrintala |
5d291df80b68d4fcad10ee06346300cdf51ef886 | 826 | cpp | C++ | LitusEngine/src/Litus/Renderer/Renderer.cpp | LitusLuca/LitusEngine | 10abe5ea8ed47ed70ade989b1c53dc65da3be192 | [
"Unlicense"
] | 1 | 2021-08-31T08:54:07.000Z | 2021-08-31T08:54:07.000Z | LitusEngine/src/Litus/Renderer/Renderer.cpp | LitusLuca/LitusEngine | 10abe5ea8ed47ed70ade989b1c53dc65da3be192 | [
"Unlicense"
] | null | null | null | LitusEngine/src/Litus/Renderer/Renderer.cpp | LitusLuca/LitusEngine | 10abe5ea8ed47ed70ade989b1c53dc65da3be192 | [
"Unlicense"
] | null | null | null | #include "pch.h"
#include "Renderer.h"
namespace LT {
Renderer::SceneData* Renderer::s_sceneData = new Renderer::SceneData;
void Renderer::Init()
{
RenderCommand::Init();
}
void Renderer::Shutdown()
{
}
void Renderer::OnWindowResize(uint32_t width, uint32_t height)
{
RenderCommand::SetViewPort(0, 0, wi... | 21.179487 | 114 | 0.727603 | LitusLuca |
5d2934fd2c9b9fdc8485ed81ffa83fd4c4daa73c | 8,594 | cpp | C++ | src/wrapper.cpp | mtth/level2 | 06b3d0000e845317fb28ff00ad7c1776d015996f | [
"MIT"
] | null | null | null | src/wrapper.cpp | mtth/level2 | 06b3d0000e845317fb28ff00ad7c1776d015996f | [
"MIT"
] | null | null | null | src/wrapper.cpp | mtth/level2 | 06b3d0000e845317fb28ff00ad7c1776d015996f | [
"MIT"
] | null | null | null | #include "codecs.hpp"
#include "wrapper.hpp"
#include <chrono>
namespace Layer2 {
#define LAYER2_BUFFER_SIZE 1024
// Black hole array used to write any overflowing data. We must use this since
// Avro's encoder will throw an error when it tries to write and the underlying
// stream is full. Since this might happen a... | 27.025157 | 109 | 0.634047 | mtth |
5d31c1d232365f09296bdfe918a3464bdcc7a0e1 | 933 | cpp | C++ | LLY/LLY/resource/track.cpp | ooeyusea/GameEngine | 85e7ceef7ddf663f9601a8a8787e29e8e8cdb425 | [
"MIT"
] | 3 | 2015-07-04T03:35:51.000Z | 2017-09-10T08:23:25.000Z | LLY/LLY/resource/track.cpp | ooeyusea/GameEngine | 85e7ceef7ddf663f9601a8a8787e29e8e8cdb425 | [
"MIT"
] | null | null | null | LLY/LLY/resource/track.cpp | ooeyusea/GameEngine | 85e7ceef7ddf663f9601a8a8787e29e8e8cdb425 | [
"MIT"
] | null | null | null | #include "track.h"
#include "key_frame.h"
namespace lly {
void Track::get_interpolate_frame(KeyFrame& frame)
{
if (_frames.empty())
throw std::logic_error("empty frame");
size_t i = 0;
while (i < _frames.size())
{
if (frame.get_time_pos() < _frames[i]->... | 22.756098 | 75 | 0.511254 | ooeyusea |
5d355b7d3457b981c51217959ecf409e4bf68af5 | 3,750 | hpp | C++ | TextEditor/Components/MenuBehaviourVertical.hpp | itravers/CS211-TextEditor | 47ddf2745f54ae826a96209eb767fe8280f4ce30 | [
"Apache-2.0"
] | null | null | null | TextEditor/Components/MenuBehaviourVertical.hpp | itravers/CS211-TextEditor | 47ddf2745f54ae826a96209eb767fe8280f4ce30 | [
"Apache-2.0"
] | 42 | 2019-09-27T16:46:52.000Z | 2019-12-06T18:39:18.000Z | TextEditor/Components/MenuBehaviourVertical.hpp | itravers/CS211-TextEditor | 47ddf2745f54ae826a96209eb767fe8280f4ce30 | [
"Apache-2.0"
] | null | null | null | #/********************************************************************************
* Isaac Travers
* CIS 211 - Data Structures
* October 13th, 2019
*
* MenuBehaviourVertical.hpp: Extends menu behaviour
* responsible for rendering a menu in a vertical
* ... | 36.764706 | 101 | 0.5536 | itravers |
5d35c3bd930015c52e381c74f9e17899e0d65a51 | 18,331 | hpp | C++ | source/zisc/core/zisc/thread/atomic-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | 2 | 2017-10-18T13:24:11.000Z | 2018-05-15T00:40:52.000Z | source/zisc/core/zisc/thread/atomic-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | 9 | 2016-09-05T11:07:03.000Z | 2019-07-05T15:31:04.000Z | source/zisc/core/zisc/thread/atomic-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | null | null | null | /*!
\file atomic-inl.hpp
\author Sho Ikeda
\brief No brief description
\details
No detailed description.
\copyright
Copyright (c) 2015-2021 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef ZISC_ATOMIC_INL_HPP
#define ZISC_ATOMIC_... | 25.81831 | 93 | 0.676722 | byzin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.